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

 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 wj,qsH,efz,yM,Xl,kyH,Ty,dj,oo,f7,tHl,Pcj,Az,Fuf,Gy7,D6,Wu4,i7o,rzs,Xa,Ccl,dM7,oJH,mMz,Azu,UX,o6,Ac,Jc,DMj,zG,Z7H,a6,p$,ck,$My,jr,L$,b7M,Rfo,czc,q6,hfo,uj,joz,tx,Ss4,PV,l6o,KuM,wk7,aK,uaH,ycJ,e3j,kGl,tro,z4,BjH,fh,xMH,qXu,Wj4,Nxc,Q6u,bj,IZy,i$u,rcJ,UTs,CPs,dTc,Vru,Kh,Ac4,z37,DTJ,vT4,b$o,x6,ea,YXf,SXs,P3,h3M,MrM,lZz,FF,LjH,XF,Tx7,sg,Nz,Im,G_,iE,xTj,KjM,BxH,CA,qA7,wV4,um7,eB7,yxl,Jh,k4J,tq7,Ug,XV6,FT7,ZI,n6l,Ncf,v3,U6o,Hhs,Tcz,CjJ,d6j,AxH,Vqf,Rm,Sa,zB7,D6c,Zh7,bh6,SA6,KTM,w3M,PE7,Ps,Faf,nKM,nj,Ws,
sY,QE,Iw,VE,mx,Aa,iAs,$m,Uzc,dzz,j9,lZ,oKM,MC,Kj,Bs,qr,fI7,mzy,AhM,Jhj,zXl,aI4,Dz6,ZAl,p3f,vKy,kj,eR,bAo,YgM,gK7,RXj,EKo,chz,WI,hXs,sq,Nr,Qm,IQ,rY,lIy,T7,Mas,wsz,dY,uEs,yaM,ehM,oQ,k2s,t9l,Vm,fm,Fx6,AD,Hjz,Wxl,JD,NBl,swM,QwM,IDl,ijo,raH,DC,UC7,TBc,ZC,CZl,dCo,pm,vI,bB,Yj,Ojz,V9z,omf,gY,mCM,AaJ,Jaz,RQ,SR,hD,lB,Lm,Mr,Km,zhz,aDH,DCl,Zjl,psj,$Cz,vmz,bjj,YYj,gmJ,Emc,xj,Rhf,ca7,ua,SYs,e3,kS,hhy,LxM,M9y,KxH,xCc,qq4,wI6,k7j,tRy,PBu,XI4,F$c,G7H,nj6,NYJ,XO,QQz,ICl,imj,rD4,Urs,TYz,drf,pIJ,$rf,vjs,YqM,gj6,ia,Ej4,
rb,jQy,lCH,L$J,MR7,K$M,BYM,xr7,qfu,Of,uOJ,Sqf,ywu,eq6,kcl,t3o,Pac,XXl,FNc,Gco,nSj,srJ,WNH,ILM,Nby,Qrl,UKc,TbM,CaH,ig7,OgJ,rwo,V3M,gb,fLf,Ef,cX,mKf,JwM,zqs,Zgf,SfM,$KJ,pXj,bgM,gSs,vS7,LNo,jrJ,M3c,KN7,Bbl,xK6,qN4,u3c,w2J,y1l,eVH,k9z,tiu,X2j,G9s,nsy,HYc,s37,W2s,Viy,Kg,fHy,A16,J14,zVM,aHH,D17,p2M,$1o,vsM,ei,ks,bYj,c1o,F3,G9,lHl,L2f,kZM,zPH,QG,D$j,vCu,p1M,$$J,CY,bDo,YZ6,ECc,RPz,cXo,SZs,hPM,jR4,lGs,o3,M77,B4H,Kbs,qty,DH,$s,v2,ud4,yPM,eCH,kSM,tZf,Xls,GSs,FLH,KY,xs,UZo,uO,e7,O4o,kC,owM,VZz,tX,mZy,fRJ,vwf,
b47,gwH,cPy,Stf,jXo,lRo,LLJ,KL4,xZM,q8o,nD,eWs,P4f,XGH,FI6,GQy,nFu,tvz,yGo,uco,W1,wG6,Hv6,s2s,iv6,Q2z,Qy,Uul,C4s,duc,OvM,oF4,CD,Vv7,muo,f7c,AGl,zW6,Vy,Y8J,EFy,cGf,hWy,j24,LIo,JX,aR,zZ,xuM,l7j,qEc,pD,euJ,bO,YC,PYH,GPf,His,Wrl,szu,g4,Nrl,Qz6,IT7,r6s,UQM,Trs,CYz,Oic,hX,oZl,VWc,lO,xC,A6M,J6j,zuc,w_,Zic,pTl,vZf,Pl,c64,SEs,hus,jz4,lTM,n4,Hl,Wl,st,Kry,QQ,Brl,xQs,qkj,wmj,yq6,eYM,u$j,r_,kCc,Fgy,Ut,Xm7,GCJ,twf,n8J,C4,WgJ,sA6,Nsy,QAH,ins,Ino,rq4,CDj,U54,On7,Jq4,anM,ZnM,$5j,Yku,bnJ,v84,g8H,RYs,Sk7,cqc,hY4,ln7,
Lgs,Mwl,q4j,ZR,y2y,uQl,e$c,kdH,$w,vl,tl6,X07,Gd4,WM4,NAJ,svJ,yV,Qvz,FMs,dbu,OJJ,o$H,Xc,VlH,mbf,z$u,ZJM,DbM,bJM,Y4o,g$u,E$f,c2H,LMs,S4o,jvf,lOf,Mll,KMs,xbM,BAH,wfJ,qMf,U8,ubz,eUH,k6s,FHs,AG,JG,G6J,nGu,zQ,N1y,pv,$F,vG,rp7,b4,C9c,E8,d4l,ONH,oGs,Vpo,Sv,fBH,ApM,JpH,aBu,ZNH,vGH,YMc,qQ,gGj,EGo,RUz,cp7,SMu,hUM,jxu,lBj,y_,KHu,B1J,x4M,qCj,wwu,u4y,y7z,eKf,kMf,tBj,Pyo,XwH,FRM,ni,Tks,Cy4,HT,sE,Q_,dUj,Oqc,o1M,VBM,f_c,mUs,A7c,Zqu,pwo,$Uf,v1u,bqH,UE,Ci,dr,OE,fi,mr,A6,g16,zP,RKs,az,c7j,SCH,DT,hKj,jDJ,l_4,yrl,kaz,
GaH,sOf,WOf,ejs,NGs,iaj,aVf,Oa7,vN7,VN4,$tf,bau,YZ,gNj,EE,RjH,crl,hj7,jOz,lVs,MNM,SW,BGf,xtf,qPM,wMu,uTz,yez,eMj,KO4,Pp6,XMz,F4y,Li,NC7,QiJ,sij,ipj,reu,TCj,Cpf,U_c,Ae7,zMJ,D_s,pMc,k8,EMf,gMc,jiH,L44,MQs,K4z,BC6,x_o,q6c,sk,FP4,ndf,PfJ,tfM,GmM,ujc,WPo,OL7,Q9y,IMJ,iLc,ZLj,$aj,Daj,RwM,aMH,wjf,Edz,NNs,da7,pj4,HLs,ew7,yMu,kmM,Xjc,zwf,Dn,eHl,tDf,Pn6,X6f,F6l,ixj,Oxy,oBj,cm,fh4,JB7,ZxM,D24,$2z,vBJ,gBj,YOc,EBo,qb,RHz,cBM,hHu,SOJ,wA,BL4,K6l,MDM,uKz,x2s,yEJ,wRf,eQM,y1,kW6,Fsl,Pvf,XRu,noj,HT4,sV4,P0,IKJ,Nm7,iTc,
Cvc,d97,V6j,m9c,nJ,H0,aKH,D9s,W0,s4,ZTH,Nb,Q1,pR7,Iv,$9M,iV,voM,bTs,U4,Y3o,gol,EoM,RQH,cEj,hQc,S36,lKj,Ksy,M6H,BmM,x9M,jV6,qFM,ygs,uuy,Lsl,ebj,knj,ov,tgl,XCu,Pql,FGc,Gns,HrM,nHc,WGz,fJ,QHl,Isj,NEj,rgH,UI4,TEJ,oH4,mIy,DI6,vHy,mM,gH7,EHl,A2,Rbc,DO,ZO,LG6,zd,v0,Mgf,KG7,xI4,qKs,uDc,eOj,k3j,tsf,Prz,G3o,NIM,W06,F0f,QSc,I24,E4,sSs,iVJ,Sl,rKj,UDJ,TIl,Cry,Vso,dDy,oDy,JKM,zOs,$D6,py7,YKM,hO7,jS4,L0z,K0j,BIM,qIs,wru,uNy,eGc,kTy,tcz,Fpl,Wpc,s5H,GTu,Q5j,iCj,Izy,NZz,rI6,TZM,CUJ,dLz,OCf,oXl,yv,ep,Pf,Fb,mLJ,AIf,
zG4,ZCs,G6,nN,prH,Hf,bCM,YI6,gXH,sM,hGs,Mco,BZl,xL7,qLs,wSH,u1j,ksM,Qv,tVf,FwH,Ix,GsH,Ww6,sGz,N9o,HyH,T9s,Oy4,C8y,ofu,mG4,Jv4,aSf,$G6,pSu,gf4,d1,Efs,RDM,OM,cvl,ox,SLM,hD6,jG4,Lw4,lSz,MVl,Kws,B9y,xGM,tKf,XUu,GkM,F_H,ytl,wUf,HOj,sJl,rtH,UBy,dBl,Atf,z2f,Ap,alc,ZO6,pUM,vks,Ek7,ct4,h2u,jJ4,llj,L_M,qjl,MKM,ezs,kxl,PhM,ax,Foc,Gx7,nro,HM7,Wol,sfJ,NDu,I9J,iMc,$G,r5c,UFl,dFM,b9,Ch6,orj,A5c,g1,J5y,zzz,a9j,pJy,$FJ,DFc,bMj,Rzs,c54,SjH,jp,hzM,Mnl,KoH,KN,qcH,BDM,xFc,uCu,eJl,kI7,Fvc,Hdc,nQs,GIo,Wvj,Nay,Qqf,C5j,IQ6,
dHM,V4M,Od6,aQu,pzl,vQo,Yc6,Lvf,Kvc,BaM,u77,e_s,J7,Y1,GXH,syj,Wns,QyH,Iry,rLs,i9c,Udo,TMo,gk,nNJ,n2s,NMH,H9o,vw,Kq,O9M,o2M,ALo,JLs,z_7,arc,Ddu,Z9u,p_j,qt,$dJ,wG,v2o,b9J,YGJ,g2M,eN,E2H,SG6,jyy,lrJ,wuc,y3j,e0o,khu,PMM,XuM,WQ,GhM,neu,H1o,Wmu,s8j,NQz,INu,r34,TQf,CMc,mAu,VMc,A3M,FFM,GwH,U1,n9s,HHy,WFu,QZl,iHz,ItM,Usu,CGy,O1,OHs,o9M,dsM,VhH,ft4,AUJ,zSJ,JUf,at7,ms4,DsM,ZHy,p8s,$so,v9J,bHz,Yls,g9z,E9y,Slf,cUy,hS6,lty,jZM,oO,LFM,Bo7,yO4,Mho,eI7,koj,tLc,Pko,Nfz,IEf,iGM,UYl,Tfo,vQ,oPM,AOf,zIM,bA,pi4,ZG4,$YM,
E1,vPM,bGo,Yul,EPo,RIf,cOs,Suc,jBz,lEy,e5o,qeM,uff,t$y,k54,Psf,Xhu,G5l,HF4,s47,Q4j,V$M,Abu,z5J,aUf,Dk4,ZF7,ph7,vuf,bFM,Eu7,R5M,cb4,Se6,h5M,j44,lUj,LEj,B6l,uS7,wC,up,yI,eQ,ymM,PM,kVl,sN4,Uqz,iKH,pds,$qH,vYM,P1c,OK7,Wk7,GVM,EY6,RxM,cmy,QNo,hxs,li4,M06,xqz,qhu,rC,Pxu,tXH,nEs,saz,Qac,iof,rVs,Cxf,Ooo,dc7,f1u,AVy,$cc,Zol,zFz,pY4,a1H,vEl,EE4,zt,KD6,l1J,xcy,qrs,upJ,yo7,Du,eN7,P7s,Xvf,FJs,Gr6,iU7,I$s,EP,lp,opH,V8u,BM,f$j,mRj,Ao7,Jo6,zNy,a$M,DR4,ZUj,pvM,$Rz,vpM,bUH,Yrj,gps,Epf,xM,RNy,co4,Sru,hN7,jTu,l$H,LJf,
M8s,KJc,BtM,xRu,qic,wN,u8y,eZ7,tUl,Flc,HQs,Wl7,spH,QpH,iQJ,rHz,UEs,Xj,ozf,dEJ,VUu,fWf,mEs,zZM,aWj,DEc,pA7,Tm,vzc,rN,YiM,gzf,CL,Ezz,RZl,cHM,Sil,O6,LlJ,Klz,urM,wty,esM,kLo,zm,tjH,Ply,FUM,nLz,Hzz,s1j,Ny6,GL7,Q1s,Tys,oLo,Vj7,a9,f8o,mwj,DwH,Aij,zs6,a8J,YJy,ptJ,gL4,Rsc,SJ4,hss,j1z,l87,LUj,Mj4,Byz,xwJ,qpo,wF4,uM4,enz,tmf,FYo,WYl,QEs,i0y,TTj,Yd,CeH,dPc,O0z,oVJ,Vm7,mPJ,ARf,JR6,zn7,amj,DP6,Z0s,pFz,$Pj,vVJ,b0c,gVl,Yps,cRy,hnH,R9,jE7,Mmo,LYJ,Sf,xPJ,qWH,e7y,P_z,kHj,yWf,GH7,F3y,NHo,ncM,Ma,W34,C_6,ifo,rWu,UOz,TH6,
dOM,ocH,Of7,KL,Bj,aco,fc7,z7H,JWM,mO7,AWl,paf,vcu,YWo,bfc,cWM,R7H,jPo,lcj,Mof,K3H,L3c,BHl,qSs,xOz,uWj,kfs,tB,tts,PQj,GfH,NOJ,TOs,Xy,dS7,ffH,zAJ,JAs,mSM,AAu,W6,$So,DSM,ZSy,vaJ,YSy,bSu,RAu,cAH,hAM,jl7,lfJ,L5u,Mt6,BOj,xSH,Vz,wbu,m6,uIl,t1H,PXs,ag,Xbl,GNl,r0J,v6,se6,iXu,NpM,QeM,d8z,OXJ,CXl,o0z,V1H,J0o,fXJ,zio,aXo,YB,ZXl,pbf,$8c,D8J,bX7,v06,gL,RiH,M1y,K8s,Bp7,x8M,q$J,w9M,kvf,y_j,e97,uiM,PKJ,GvH,Wtj,suo,QuM,hB,IPJ,i6l,r_M,T2j,CKH,diH,O6c,ot7,VCJ,mi6,Kx,A_j,aPz,z9l,Z6M,Dic,p9c,$ic,vto,B6,Y$o,Ktc,Lts,q0y,
wx4,PmH,Xx7,FhM,Gif,nxM,Hc7,N3o,QMH,IFs,icj,T3l,CmM,dVu,Ocy,oxl,V2c,fFM,mVu,A9u,J9y,aFy,DVM,Zcj,vxc,Y0H,c9f,Rk4,Exz,gx7,jMl,lFM,IV,Lh7,M2u,KhJ,B3c,uA7,xVz,y8s,qoJ,eg6,TW,kgy,tb4,PHM,w5u,X5l,HtH,WWj,sdz,O3,Nh6,Qdu,Ivl,itc,r87,UJM,CHl,dJH,OtM,oA7,mJy,fvz,DJs,Vbl,VS,Zt4,A8H,av4,vAM,Yoo,Sou,RgH,c8u,EAo,gAM,DK,hgu,lvs,LWJ,MbH,KWH,Bhl,$o,vR,yZl,qw7,xJy,wO4,s0j,HPy,u24,nUs,Tvc,CwH,dnu,OPJ,oUM,Vzu,fbs,JZj,abu,ZPM,$ny,vU6,bPu,Rlz,EUu,cZu,hlz,yo,LKH,Mzz,KK7,Bv7,tg,PC,wKM,e4s,GFo,sks,NXl,Qky,IJH,iR4,rlJ,TXf,
dec,C3j,ORH,V_J,fJH,meH,Al4,Jlo,z4s,HC,aJs,Yv7,gIJ,$eH,pKj,bRs,vIy,L7z,h4M,NI,M_s,K7M,BX7,xej,q2o,w$y,uRj,ydy,e8s,tYz,X$J,GRo,H3o,sCl,i34,rdj,Ulo,dl4,C$s,Tq4,O3f,oWJ,mlM,Jdy,z8J,awu,rE,Z3z,p$H,$lM,b3f,vW6,Y2u,EW4,R8o,cdc,h8f,jCl,S2y,xlf,uHf,yQ6,eo6,k$y,Pd4,tTs,XDM,n5M,Hlo,WVj,sno,Qnl,NeJ,ilz,djj,CdM,o5s,VTo,fyH,ay4,DjJ,Zlz,pDM,bl4,YyM,Rou,Syj,cQl,hoy,vC,jnj,lyJ,xjM,Beu,qQM,weH,ysc,er6,P27,FXJ,Gbz,ni7,H2j,WXl,sYH,N5o,QYf,IYz,i2l,UhM,rss,T5M,C26,dh4,O27,oic,VAu,fYl,AsH,JsM,mhs,cC,Dhc,Z2s,peH,$hl,vij,
YQM,Ei4,Rrz,csj,SQf,hrJ,jY6,LXj,MAf,B5u,qH6,uwf,tI7,eEM,yuz,kec,PTc,GeJ,XPz,FQy,H_H,NWl,QWf,IqM,ruM,Up4,TWJ,dpM,obc,CTs,VIM,fqs,mpM,Auu,Juc,zEy,Dpy,aqJ,Z_o,pPM,$pc,vbz,b_o,YHM,gbH,EbJ,SHM,hEu,REz,cuc,MIc,KQJ,Xgl,etJ,PJf,F9H,tJu,es,Gqf,ngl,W94,Q$J,Niu,IxJ,iWu,kD,Py,U7u,TiJ,G3,nV,ogJ,CJz,d7c,m7o,ztc,D7M,ZWu,pgo,$7M,vgs,YRs,gg6,Egy,Rtl,cNy,SR7,htz,sK,j$c,lxM,Qb,L9c,MJM,K9j,Bij,x77,qxl,rI,UK,wNJ,uBz,T3,yTJ,eR4,kpM,tO4,XNz,Fzj,nl6,QFs,N84,sFf,Ijz,i5l,O57,T8l,Cg7,UWl,dWf,dI,mWM,AT4,JTc,zRJ,ajf,Z5o,b57,
$W6,OK,pN7,cTJ,hRM,jFf,ljl,LzM,MOM,xWM,qBz,ySl,edu,k8M,txM,Xpl,Fd4,G8l,n47,Wdz,sbj,Nll,IdJ,iEo,Umc,Tlz,Vxy,mmH,fdy,JSj,ppu,$m6,v4c,bE6,z3,D2,aS,YBM,g4M,E4y,Rdy,SBJ,hd6,jbJ,ldy,Mxu,Bl6,xmJ,qDu,Z2,wZo,yCl,eTl,PFl,XZc,pV,$D,n_M,Fyl,HBs,NFH,WyM,QIu,br,iBu,rCu,CF4,OBf,YD,VyH,f5c,mXy,ACH,JCl,zTM,a5j,ZBM,bBc,YD4,RTl,g_l,E_H,cCu,SDu,Lyz,hTu,l5H,Myc,Kyj,BF7,wEf,uPj,yjM,eLl,kly,nhH,Gl7,Ioy,U37,By,TwM,m1H,Cus,d3M,ohy,foz,m3s,pEo,$3c,yk,vhy,bZs,Y54,gh4,Ehf,cjc,hL4,RL7,S5J,loM,jtM,MdM,KBf,Bwo,x3y,qV4,wnJ,u07,
yJu,PW6,Gzl,Xno,nOf,Hwy,Wfu,tI,scM,NJz,XN,Ig6,Qcy,iwu,rJy,TJy,CWz,Owj,oOc,Vks,fg4,mxM,zec,Zwy,vOJ,$xl,bwo,YVu,Rel,xxM,jcz,wBc,utJ,ecM,kYM,FAs,H8j,sju,WAy,Qj4,IAl,i8H,rns,Uyy,TKs,dyM,Vuy,fA7,myf,AnM,aAs,zcf,$yu,v7H,b8y,Y_j,g7c,E7o,cnJ,OI,hcy,mp,lA7,Muo,KAM,uxo,emu,Xcf,G0M,nqf,WC6,sUu,N0u,I0H,rkM,UNl,dNl,oq6,mNj,f0f,VPH,Zz,Jko,Akf,zmj,a0s,DN6,Zky,pcj,$NM,vq7,Ymo,gq4,Eql,ckM,jUH,RmM,Smf,l0l,LCs,MPs,KC6,xN7,qnz,XqJ,Fqf,GAu,n3J,HeH,NUH,EI,TUH,C0c,dfJ,OeM,o3y,R5,cr,B2,Dfu,hI,Zes,bej,g3H,Ynf,jc,E37,Ryz,
SgJ;_.qM=function(q,w){if(Error.captureStackTrace)Error.captureStackTrace(this,_.qM);else{var u=Error().stack;u&&(this.stack=u)}q&&(this.message=String(q));w!==void 0&&(this.cause=w)};
wj=function(){throw Error("B");};
qsH=function(q,w){w=String.fromCharCode.apply(null,w);return q==null?w:q+w};
efz=function(q){var w=!1;w=w===void 0?!1:w;if(w4j){if(w&&(ulo?!q.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(q)))throw Error("C");q=(yzy||(yzy=new TextEncoder)).encode(q)}else{for(var u=0,y=new Uint8Array(3*q.length),e=0;e<q.length;e++){var t=q.charCodeAt(e);if(t<128)y[u++]=t;else{if(t<2048)y[u++]=t>>6|192;else{if(t>=55296&&t<=57343){if(t<=56319&&e<q.length){var X=q.charCodeAt(++e);if(X>=56320&&X<=57343){t=(t-55296)*1024+X-56320+65536;y[u++]=t>>18|
240;y[u++]=t>>12&63|128;y[u++]=t>>6&63|128;y[u++]=t&63|128;continue}else e--}if(w)throw Error("C");t=65533}y[u++]=t>>12|224;y[u++]=t>>6&63|128}y[u++]=t&63|128}}q=u===y.length?y:y.subarray(0,u)}return q};
yM=function(q){_.uc.setTimeout(function(){throw q;},0)};
_.tz=function(q,w){return q.lastIndexOf(w,0)==0};
Xl=function(q,w){var u=q.length-w.length;return u>=0&&q.indexOf(w,u)==u};
_.Gy=function(q){return/^[\s\xa0]*$/.test(q)};
_.H4=function(q,w){return q.indexOf(w)!=-1};
_.W4=function(q,w){return _.H4(q.toLowerCase(),w.toLowerCase())};
_.NM=function(q,w){var u=0;q=ss(String(q)).split(".");w=ss(String(w)).split(".");for(var y=Math.max(q.length,w.length),e=0;u==0&&e<y;e++){var t=q[e]||"",X=w[e]||"";do{t=/(\d*)(\D*)(.*)/.exec(t)||["","","",""];X=/(\d*)(\D*)(.*)/.exec(X)||["","","",""];if(t[0].length==0&&X[0].length==0)break;u=kyH(t[1].length==0?0:parseInt(t[1],10),X[1].length==0?0:parseInt(X[1],10))||kyH(t[2].length==0,X[2].length==0)||kyH(t[2],X[2]);t=t[3];X=X[3]}while(u==0)}return u};
kyH=function(q,w){return q<w?-1:q>w?1:0};
_.QM=function(){var q=_.uc.navigator;return q&&(q=q.userAgent)?q:""};
Ty=function(q){if(!ic||!rj)return!1;for(var w=0;w<rj.brands.length;w++){var u=rj.brands[w].brand;if(u&&_.H4(u,q))return!0}return!1};
dj=function(q){return _.H4(_.QM(),q)};
oo=function(){return ic?!!rj&&rj.brands.length>0:!1};
f7=function(){return oo()?!1:dj("Opera")};
tHl=function(){return oo()?!1:dj("Trident")||dj("MSIE")};
Pcj=function(){return oo()?Ty("Microsoft Edge"):dj("Edg/")};
Az=function(){return dj("Firefox")||dj("FxiOS")};
_.zy=function(){return dj("Safari")&&!(_.Jz()||(oo()?0:dj("Coast"))||f7()||(oo()?0:dj("Edge"))||Pcj()||(oo()?Ty("Opera"):dj("OPR"))||Az()||dj("Silk")||dj("Android"))};
_.Jz=function(){return oo()?Ty("Chromium"):(dj("Chrome")||dj("CriOS"))&&!(oo()?0:dj("Edge"))||dj("Silk")};
_.X44=function(){return dj("Android")&&!(_.Jz()||Az()||f7()||dj("Silk"))};
Fuf=function(q){var w={};q.forEach(function(u){w[u[0]]=u[1]});
return function(u){return w[u.find(function(y){return y in w})]||""}};
Gy7=function(q){var w=_.QM();if(q==="Internet Explorer"){if(tHl())if((q=/rv: *([\d\.]*)/.exec(w))&&q[1])w=q[1];else{q="";var u=/MSIE +([\d\.]+)/.exec(w);if(u&&u[1])if(w=/Trident\/(\d.\d)/.exec(w),u[1]=="7.0")if(w&&w[1])switch(w[1]){case "4.0":q="8.0";break;case "5.0":q="9.0";break;case "6.0":q="10.0";break;case "7.0":q="11.0"}else q="7.0";else q=u[1];w=q}else w="";return w}var y=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");u=[];for(var e;e=y.exec(w);)u.push([e[1],e[2],e[3]||void 0]);
w=Fuf(u);switch(q){case "Opera":if(f7())return w(["Version","Opera"]);if(oo()?Ty("Opera"):dj("OPR"))return w(["OPR"]);break;case "Microsoft Edge":if(oo()?0:dj("Edge"))return w(["Edge"]);if(Pcj())return w(["Edg"]);break;case "Chromium":if(_.Jz())return w(["Chrome","CriOS","HeadlessChrome"])}return q==="Firefox"&&Az()||q==="Safari"&&_.zy()||q==="Android Browser"&&_.X44()||q==="Silk"&&dj("Silk")?(w=u[2])&&w[1]||"":""};
_.nJz=function(q){if(oo()&&q!=="Silk"){var w=rj.brands.find(function(u){return u.brand===q});
if(!w||!w.version)return NaN;w=w.version.split(".")}else{w=Gy7(q);if(w==="")return NaN;w=w.split(".")}return w.length===0?NaN:Number(w[0])};
D6=function(){return ic?!!rj&&!!rj.platform:!1};
_.H7M=function(){return D6()?rj.platform==="Android":dj("Android")};
Wu4=function(){return dj("iPhone")&&!dj("iPod")&&!dj("iPad")};
_.Z6=function(){return Wu4()||dj("iPad")||dj("iPod")};
_.soy=function(){return D6()?rj.platform==="macOS":dj("Macintosh")};
_.Nj7=function(){return D6()?rj.platform==="Windows":dj("Windows")};
_.Qof=function(){return D6()?rj.platform==="Chrome OS":dj("CrOS")};
_.$J=function(q){return q[q.length-1]};
_.v4=function(q,w,u){w=_.I64(q,w,u);return w<0?null:typeof q==="string"?q.charAt(w):q[w]};
_.I64=function(q,w,u){for(var y=q.length,e=typeof q==="string"?q.split(""):q,t=0;t<y;t++)if(t in e&&w.call(u,e[t],t,q))return t;return-1};
i7o=function(q){for(var w=_.gj,u=typeof q==="string"?q.split(""):q,y=q.length-1;y>=0;y--)if(y in u&&w.call(void 0,u[y],y,q))return y;return-1};
_.SH=function(q,w){return _.c4(q,w)>=0};
_.hz=function(q,w){_.SH(q,w)||q.push(w)};
_.MM=function(q,w){w=_.c4(q,w);var u;(u=w>=0)&&_.jH(q,w);return u};
_.jH=function(q,w){Array.prototype.splice.call(q,w,1)};
_.qT=function(q){var w=q.length;if(w>0){for(var u=Array(w),y=0;y<w;y++)u[y]=q[y];return u}return[]};
_.yF=function(q,w){for(var u=1;u<arguments.length;u++){var y=arguments[u];if(_.uP(y)){var e=q.length||0,t=y.length||0;q.length=e+t;for(var X=0;X<t;X++)q[e+X]=y[X]}else q.push(y)}};
_.UMs=function(q,w,u,y){Array.prototype.splice.apply(q,rzs(arguments,1))};
rzs=function(q,w,u){return arguments.length<=2?Array.prototype.slice.call(q,w):Array.prototype.slice.call(q,w,u)};
Xa=function(q,w){w=w||q;for(var u=0,y=0,e={};y<q.length;){var t=q[y++],X=_.er(t)?"o"+_.kT(t):(typeof t).charAt(0)+t;Object.prototype.hasOwnProperty.call(e,X)||(e[X]=!0,w[u++]=t)}w.length=u};
_.Tjo=function(q,w,u){u=u||_.GG;for(var y=0,e=q.length,t;y<e;){var X=y+(e-y>>>1);var G=u(w,q[X]);G>0?y=X+1:(e=X,t=!G)}return t?y:-y-1};
_.Wk=function(q,w,u){if(!_.uP(q)||!_.uP(w)||q.length!=w.length)return!1;var y=q.length;u=u||Ccl;for(var e=0;e<y;e++)if(!u(q[e],w[e]))return!1;return!0};
_.GG=function(q,w){return q>w?1:q<w?-1:0};
Ccl=function(q,w){return q===w};
dM7=function(q,w,u){w=Array.prototype.splice.call(q,w,1);Array.prototype.splice.call(q,u,0,w[0])};
oJH=function(q){return O76[q]||""};
mMz=function(q){if(!VHc)return _.sX(q);q=f6l.test(q)?q.replace(f6l,oJH):q;q=atob(q);for(var w=new Uint8Array(q.length),u=0;u<q.length;u++)w[u]=q.charCodeAt(u);return w};
Azu=function(q,w){q.__closure__error__context__984382||(q.__closure__error__context__984382={});q.__closure__error__context__984382.severity=w};
_.iP=function(q){q=Error(q);Azu(q,"warning");return q};
UX=function(q,w){if(q!=null){var u;var y=(u=Jzo)!=null?u:Jzo={};u=y[q]||0;u>=w||(y[q]=u+1,q=Error(),Azu(q,"incident"),yM(q))}};
o6=function(q,w,u){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(u===void 0?0:u)&&Symbol.for&&q?Symbol.for(q):q!=null?Symbol(q):Symbol():w};
Ac=function(q,w){VF||_.f$ in q||zfz(q,a6s);q[_.f$]|=w};
Jc=function(q,w){VF||_.f$ in q||zfz(q,a6s);q[_.f$]=w};
DMj=function(q){if(4&q)return 512&q?512:1024&q?1024:0};
zG=function(q){Ac(q,34);return q};
Z7H=function(q){Ac(q,32);return q};
a6=function(){return typeof BigInt==="function"};
p$=function(q,w){return w===void 0?q.copyOnWrite!==DZ&&!!(2&(q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.f$]|0)):!!(2&w)&&q.copyOnWrite!==DZ};
_.EX=function(q,w){if(q!=null)if(typeof q==="string")q=q?new $T(q,vk):_.bP();else if(q.constructor!==$T)if(p4z&&q!=null&&q instanceof Uint8Array)q=q.length?new $T(new Uint8Array(q),vk):_.bP();else{if(!w)throw Error();q=void 0}return q};
ck=function(q,w){if(typeof w!=="number"||w<0||w>=q.length)throw Error();};
$My=function(q,w,u){w=w&128?0:-1;var y=q.length,e;if(e=!!y)e=q[y-1],e=e!=null&&typeof e==="object"&&e.constructor===Object;for(var t=y+(e?-1:0),X=0;X<t;X++)u(X-w,q[X]);if(e){q=q[y-1];for(var G in q)!isNaN(G)&&u(+G,q[G])}};
jr=function(q){return q&128?Sr:void 0};
L$=function(q){q.isGuard_doNotManuallySetPrettyPlease=!0;return q};
b7M=function(){var q=vJo;return L$(function(w){for(var u in q)if(w===q[u]&&!/^[0-9]+$/.test(u))return!0;return!1})};
_.K$=function(q){var w=q;if(Ysf(w)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(w))throw Error(String(w));}else if(gJ6(w)&&!Number.isSafeInteger(w))throw Error(String(w));return MT?BigInt(q):q=EJf(q)?q?"1":"0":Ysf(q)?q.trim()||"0":String(q)};
Rfo=function(q,w){if(q.length>w.length)return!1;if(q.length<w.length||q===w)return!0;for(var u=0;u<q.length;u++){var y=q[u],e=w[u];if(y>e)return!1;if(y<e)return!0}};
czc=function(q){var w=q>>>0;Bk=w;xT=(q-w)/4294967296>>>0};
q6=function(q){if(q<0){czc(-q);var w=_.P(Ss4(Bk,xT));q=w.next().value;w=w.next().value;Bk=q>>>0;xT=w>>>0}else czc(q)};
hfo=function(q,w){var u=w*4294967296+(q>>>0);return Number.isSafeInteger(u)?u:_.wc(q,w)};
uj=function(q,w){var u=w&2147483648;u&&(q=~q+1>>>0,w=~w>>>0,q==0&&(w=w+1>>>0));q=hfo(q,w);return typeof q==="number"?u?-q:q:u?"-"+q:q};
_.wc=function(q,w){w>>>=0;q>>>=0;if(w<=2097151)var u=""+(4294967296*w+q);else a6()?u=""+(BigInt(w)<<BigInt(32)|BigInt(q)):(u=(q>>>24|w<<8)&16777215,w=w>>16&65535,q=(q&16777215)+u*6777216+w*6710656,u+=w*8147497,w*=2,q>=1E7&&(u+=q/1E7>>>0,q%=1E7),u>=1E7&&(w+=u/1E7>>>0,u%=1E7),u=w+joz(u)+joz(q));return u};
joz=function(q){q=String(q);return"0000000".slice(q.length)+q};
_.yH=function(q,w){w&2147483648?a6()?q=""+(BigInt(w|0)<<BigInt(32)|BigInt(q>>>0)):(w=_.P(Ss4(q,w)),q=w.next().value,w=w.next().value,q="-"+_.wc(q,w)):q=_.wc(q,w);return q};
tx=function(q){if(q.length<16)q6(Number(q));else if(a6())q=BigInt(q),Bk=Number(q&BigInt(4294967295))>>>0,xT=Number(q>>BigInt(32)&BigInt(4294967295));else{var w=+(q[0]==="-");xT=Bk=0;for(var u=q.length,y=w,e=(u-w)%6+w;e<=u;y=e,e+=6)y=Number(q.slice(y,e)),xT*=1E6,Bk=Bk*1E6+y,Bk>=4294967296&&(xT+=Math.trunc(Bk/4294967296),xT>>>=0,Bk>>>=0);w&&(w=_.P(Ss4(Bk,xT)),q=w.next().value,w=w.next().value,Bk=q,xT=w)}};
Ss4=function(q,w){w=~w;q?q=~q+1:w+=1;return[q,w]};
PV=function(q){return Array.prototype.slice.call(q)};
_.Xm=function(q,w){throw Error(w===void 0?"unexpected value "+q+"!":w);};
_.Fm=function(q){if(q!=null&&typeof q!=="number")throw Error("I`"+typeof q+"`"+q);return q};
_.sA=function(q){if(q==null||typeof q==="number")return q;if(q==="NaN"||q==="Infinity"||q==="-Infinity")return Number(q)};
l6o=function(q){if(q!=null&&typeof q!=="boolean")throw Error("J`"+_.IK(q)+"`"+q);return q};
_.Lu6=function(q){if(q==null||typeof q==="boolean")return q;if(typeof q==="number")return!!q};
_.UA=function(q){switch(typeof q){case "bigint":return!0;case "number":return rc(q);case "string":return MH4.test(q);default:return!1}};
_.T4=function(q){if(!rc(q))throw _.iP("enum");return q|0};
_.Ch=function(q){return q==null?q:rc(q)?q|0:void 0};
KuM=function(q){if(typeof q!=="number")throw _.iP("int32");if(!rc(q))throw _.iP("int32");return q|0};
_.dc=function(q){return q==null?q:KuM(q)};
_.oK=function(q){if(q==null)return q;if(typeof q==="string"&&q)q=+q;else if(typeof q!=="number")return;return rc(q)?q|0:void 0};
_.VH=function(q){if(q==null)return q;if(typeof q==="string"&&q)q=+q;else if(typeof q!=="number")return;return rc(q)?q>>>0:void 0};
wk7=function(q){var w=0;w=w===void 0?0:w;if(!_.UA(q))throw _.iP("int64");var u=typeof q;switch(w){case 512:switch(u){case "string":return fh(q);case "bigint":return String(Jx(64,q));default:return BjH(q)}case 1024:switch(u){case "string":return xMH(q);case "bigint":return _.K$(Jx(64,q));default:return qXu(q)}case 0:switch(u){case "string":return fh(q);case "bigint":return _.K$(Jx(64,q));default:return z4(q)}default:return _.Xm(w,"Unknown format requested type for int64")}};
aK=function(q){return q==null?q:wk7(q)};
uaH=function(q){if(q[0]==="-")return!1;var w=q.length;return w<20?!0:w===20&&Number(q.substring(0,6))<184467};
ycJ=function(q){var w=q.length;return q[0]==="-"?w<20?!0:w===20&&Number(q.substring(0,7))>-922337:w<19?!0:w===19&&Number(q.substring(0,6))<922337};
e3j=function(q){if(q<0){q6(q);var w=_.wc(Bk,xT);q=Number(w);return Da(q)?q:w}w=String(q);if(uaH(w))return w;q6(q);return hfo(Bk,xT)};
kGl=function(q){if(ycJ(q))return q;tx(q);return _.yH(Bk,xT)};
tro=function(q){if(uaH(q))return q;tx(q);return _.wc(Bk,xT)};
z4=function(q){q=Za(q);Da(q)||(q6(q),q=uj(Bk,xT));return q};
_.PP6=function(q){q=Za(q);return q>=0&&Da(q)?q:e3j(q)};
BjH=function(q){q=Za(q);if(Da(q))q=String(q);else{var w=String(q);ycJ(w)?q=w:(q6(q),q=_.yH(Bk,xT))}return q};
_.Xky=function(q){q=Za(q);if(q>=0&&Da(q))q=String(q);else{var w=String(q);uaH(w)?q=w:(q6(q),q=_.wc(Bk,xT))}return q};
fh=function(q){var w=Za(Number(q));if(Da(w))return String(w);w=q.indexOf(".");w!==-1&&(q=q.substring(0,w));return kGl(q)};
xMH=function(q){var w=Za(Number(q));if(Da(w))return _.K$(w);w=q.indexOf(".");w!==-1&&(q=q.substring(0,w));return a6()?_.K$(Jx(64,BigInt(q))):_.K$(kGl(q))};
qXu=function(q){return Da(q)?_.K$(z4(q)):_.K$(BjH(q))};
_.FjM=function(q){return Da(q)?_.K$(_.PP6(q)):_.K$(_.Xky(q))};
_.GGc=function(q){var w=Za(Number(q));if(Da(w)&&w>=0)return String(w);w=q.indexOf(".");w!==-1&&(q=q.substring(0,w));return tro(q)};
_.nTs=function(q){var w=Za(Number(q));if(Da(w)&&w>=0)return _.K$(w);w=q.indexOf(".");w!==-1&&(q=q.substring(0,w));return a6()?_.K$((0,_.ph)(64,BigInt(q))):_.K$(tro(q))};
_.H$l=function(q){if(q==null)return q;if(typeof q==="bigint")return $6(q)?q=Number(q):(q=Jx(64,q),q=$6(q)?Number(q):String(q)),q;if(_.UA(q))return typeof q==="number"?z4(q):fh(q)};
Wj4=function(q,w){w=w===void 0?!1:w;var u=typeof q;if(q==null)return q;if(u==="bigint")return String(Jx(64,q));if(_.UA(q))return u==="string"?fh(q):w?BjH(q):z4(q)};
_.s6J=function(q){var w=typeof q;if(q==null)return q;if(w==="bigint")return _.K$(Jx(64,q));if(_.UA(q))return w==="string"?xMH(q):qXu(q)};
Nxc=function(q){if(q==null)return q;var w=typeof q;if(w==="bigint")return String(Jx(64,q));if(_.UA(q)){if(w==="string")return fh(q);if(w==="number")return z4(q)}};
Q6u=function(q){if(q==null)return q;var w=typeof q;if(w==="bigint")return String((0,_.ph)(64,q));if(_.UA(q)){if(w==="string")return _.GGc(q);if(w==="number")return _.PP6(q)}};
_.vV=function(q){if(typeof q!=="string")throw Error();return q};
bj=function(q){if(q!=null&&typeof q!=="string")throw Error();return q};
_.Y6=function(q){return q==null||typeof q==="string"?q:void 0};
IZy=function(q,w,u,y){if(q!=null&&q[cV]===Sq)return q;if(!Array.isArray(q))return u?y&2?((q=w[hx])||(q=new w,zG(q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),q=w[hx]=q),w=q):w=new w:w=void 0,w;u=q[_.f$]|0;y=u|y&32|y&2;y!==u&&Jc(q,y);return new w(q)};
i$u=function(q,w,u){q=w?KuM(q):_.oK(q);return q==null?u?0:void 0:q|0};
rcJ=function(q){return q};
UTs=function(q){return q};
CPs=function(q,w,u,y,e,t){q=IZy(q,y,u,t);e&&(q=Tx7(q));return q};
dTc=function(q){return[q,this.get(q)]};
Vru=function(){return O$M||(O$M=new jq(zG([]),void 0,void 0,void 0,oTM))};
Kh=function(q){var w=lj(Lh);return w?q[w]:void 0};
Ac4=function(q,w){var u=u===void 0?!1:u;if(lj(fZy)&&lj(Lh)&&void 0===fZy){var y=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=y[Lh];if(!e)return;if(e=e.reviveUnknownFields)try{e(y,w,mTo);return}catch(t){yM(t)}}u&&(q=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(u=lj(Lh))&&u in q&&(q=q[u])&&delete q[w])};
z37=function(q,w){var u=lj(Lh),y;VF&&u&&((y=q[u])==null?void 0:y[w])!=null&&UX(Jcy,3)};
DTJ=function(q,w){w<100||UX(aZc,1)};
vT4=function(q,w,u,y){var e=y!==void 0;y=!!y;var t=lj(Lh),X;!e&&VF&&t&&(X=q[t])&&BV(X,DTJ);t=[];var G=q.length;X=4294967295;var n=!1,N=!!(w&64),Q=N?w&128?0:-1:void 0;if(!(w&1)){var I=G&&q[G-1];I!=null&&typeof I==="object"&&I.constructor===Object?(G--,X=G):I=void 0;if(N&&!(w&128)&&!e){n=!0;var U;X=((U=Z$z)!=null?U:rcJ)(X-Q,Q,q,I)+Q}}w=void 0;for(U=0;U<G;U++){var d=q[U];if(d!=null&&(d=u(d,y))!=null)if(N&&U>=X){var V=U-Q,J=void 0;((J=w)!=null?J:w={})[V]=d}else t[U]=d}if(I)for(var a in I)G=I[a],G!=null&&
(G=u(G,y))!=null&&(U=+a,d=void 0,N&&!Number.isNaN(U)&&(d=U+Q)<X?t[d]=G:(U=void 0,((U=w)!=null?U:w={})[a]=G));w&&(n?t.push(w):t[X]=w);e&&lj(Lh)&&(q=Kh(q))&&q instanceof pkl&&(t[Lh]=$Ty(q));return t};
b$o=function(q){q[0]=x6(q[0]);q[1]=x6(q[1]);return q};
x6=function(q){switch(typeof q){case "number":return Number.isFinite(q)?q:""+q;case "bigint":return $6(q)?Number(q):""+q;case "boolean":return q?1:0;case "object":if(Array.isArray(q)){var w=q[_.f$]|0;return q.length===0&&w&1?void 0:vT4(q,w,x6)}if(q!=null&&q[cV]===Sq)return YXf(q);if(q instanceof $T){w=q.JSC$6714_value_;if(w==null)q="";else if(typeof w==="string")q=w;else{if(VHc){for(var u="",y=0,e=w.length-10240;y<e;)u+=String.fromCharCode.apply(null,w.subarray(y,y+=10240));u+=String.fromCharCode.apply(null,
y?w.subarray(y):w);w=btoa(u)}else w=_.wV(w);q=q.JSC$6714_value_=w}return q}if(q instanceof jq)return q=q.size!==0?Array.from(uE.prototype.entries.call(q),b$o):void 0,q;return}return q};
ea=function(q,w){if(w){Z$z=w==null||w===rcJ||w[gTo]!==ETM?rcJ:w;try{return YXf(q)}finally{Z$z=void 0}}return YXf(q)};
YXf=function(q){q=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return vT4(q,q[_.f$]|0,x6)};
SXs=function(q){switch(typeof q){case "boolean":return R3y||(R3y=[0,void 0,!0]);case "number":return q>0?void 0:q===0?cc4||(cc4=[0,void 0]):[-q,void 0];case "string":return[0,q];case "object":return q}};
P3=function(q,w,u){return q=_.kK(q,w[0],w[1],u?1:2)};
_.kK=function(q,w,u,y){y=y===void 0?0:y;if(q==null){var e=32;u?(q=[u],e|=128):q=[];w&&(e=e&-8380417|(w&1023)<<13)}else{if(!Array.isArray(q))throw Error("L");e=q[_.f$]|0;2048&e&&!(2&e)&&h3M();if(e&256)throw Error("N");if(e&64)return y!==0||e&2048||Jc(q,e|2048),q;if(u&&(e|=128,u!==q[0]))throw Error("O");a:{u=q;e|=64;var t=u.length;if(t){var X=t-1,G=u[X];if(G!=null&&typeof G==="object"&&G.constructor===Object){w=e&128?0:-1;X-=w;if(X>=1024)throw Error("Q");for(var n in G)t=+n,t<X&&(u[t+w]=G[n],delete G[n]);
e=e&-8380417|(X&1023)<<13;break a}}if(w){n=Math.max(w,t-(e&128?0:-1));if(n>1024)throw Error("R");e=e&-8380417|(n&1023)<<13}}}e|=64;y===0&&(e|=2048);Jc(q,e);return q};
h3M=function(){UX(j6c,5)};
MrM=function(q,w){if(typeof q!=="object")return q;if(Array.isArray(q)){var u=q[_.f$]|0;return q.length===0&&u&1?void 0:lZz(q,u,w)}if(q!=null&&q[cV]===Sq)return LjH(q);if(q instanceof jq){w=q.arrayState;if(w&2)return q;if(!q.size)return;u=zG(Array.from(uE.prototype.entries.call(q)));if(q.valueCtor)for(q=0;q<u.length;q++){var y=u[q],e=y[1];e==null||typeof e!=="object"?e=void 0:e!=null&&e[cV]===Sq?e=LjH(e):Array.isArray(e)?e=lZz(e,e[_.f$]|0,!!(w&32)):e=void 0;y[1]=e}return u}if(q instanceof $T)return q};
lZz=function(q,w,u){if(w&2)return q;!u||4096&w||16&w?q=XF(q,w,!1,u&&!(w&16)):(Ac(q,34),w&4&&Object.freeze(q));return q};
FF=function(q,w,u){q=new q.constructor(w);u&&(q.copyOnWrite=DZ);q.noLegacyNull=DZ;return q};
LjH=function(q){var w=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=w[_.f$]|0;return p$(q,u)?q:G_(q,w,u)?FF(q,w):XF(w,u)};
XF=function(q,w,u,y){y!=null||(y=!!(34&w));q=vT4(q,w,MrM,y);y=32;u&&(y|=2);w=w&8380609|y;Jc(q,w);return q};
Tx7=function(q){var w=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=w[_.f$]|0;return p$(q,u)?G_(q,w,u)?FF(q,w,!0):new q.constructor(XF(w,u,!1)):q};
sg=function(q){if(q.copyOnWrite!==DZ)return!1;var w=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;w=XF(w,w[_.f$]|0);Ac(w,2048);q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=w;q.copyOnWrite=void 0;q.noLegacyNull=void 0;return!0};
Nz=function(q){if(!sg(q)&&p$(q,q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.f$]|0))throw Error();};
Im=function(q,w){w===void 0&&(w=q[_.f$]|0);w&32&&!(w&4096)&&Jc(q,w|4096)};
G_=function(q,w,u){return u&2?!0:u&32&&!(u&4096)?(Jc(w,u|2),q.copyOnWrite=DZ,!0):!1};
iE=function(q,w,u,y,e){var t=u+(e?0:-1),X=q.length-1;if(X>=1+(e?0:-1)&&t>=X){var G=q[X];if(G!=null&&typeof G==="object"&&G.constructor===Object)return G[u]=y,w}if(t<=X)return q[t]=y,w;if(y!==void 0){var n;X=((n=w)!=null?n:w=q[_.f$]|0)>>13&1023||536870912;u>=X?y!=null&&(t={},q[X+(e?0:-1)]=(t[u]=y,t)):q[t]=y}return w};
_.T_=function(q,w,u,y,e){var t=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=t[_.f$]|0;y=p$(q,X)?1:y;e=!!e||y===3;y===2&&sg(q)&&(t=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=t[_.f$]|0);q=KjM(t,w);var G=q===rV?7:q[_.f$]|0,n=BxH(G,X);var N=4&n?!1:!0;if(N){4&n&&(q=PV(q),G=0,n=Ug(n,X),X=iE(t,X,w,q));for(var Q=0,I=0;Q<q.length;Q++){var U=u(q[Q]);U!=null&&(q[I++]=U)}I<Q&&(q.length=I);u=(n|4)&-513;n=u&=-1025;n&=-4097}n!==G&&(Jc(q,n),2&n&&Object.freeze(q));return q=xTj(q,n,t,
X,w,y,N,e)};
xTj=function(q,w,u,y,e,t,X,G){var n=w;t===1||(t!==4?0:2&w||!(16&w)&&32&y)?CA(w)||(w|=!q.length||X&&!(4096&w)||32&y&&!(4096&w||16&w)?2:256,w!==n&&Jc(q,w),Object.freeze(q)):(t===2&&CA(w)&&(q=PV(q),n=0,w=Ug(w,y),y=iE(u,y,e,q)),CA(w)||(G||(w|=16),w!==n&&Jc(q,w)));2&w||!(4096&w||16&w)||Im(u,y);return q};
KjM=function(q,w,u){q=Og(q,w,u);return Array.isArray(q)?q:rV};
BxH=function(q,w){2&w&&(q|=2);return q|1};
CA=function(q){return!!(2&q)&&!!(4&q)||!!(256&q)};
qA7=function(q){return _.EX(q,!0)};
wV4=function(q,w){var u=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=u[_.f$]|0;a:{var e=y;y=p$(q,y);!y&&sg(q)&&(u=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=u[_.f$]|0);var t=Og(u,w);q=!1;if(t==null){if(y){w=Vru();break a}t=[]}else if(t.constructor===jq)if(t.arrayState&2&&!y)t=Array.from(uE.prototype.entries.call(t));else{w=t;break a}else Array.isArray(t)?q=!!((t[_.f$]|0)&2):t=[];if(y){if(!t.length){w=Vru();break a}q||(q=!0,zG(t))}else if(q){q=!1;y=t;y=PV(y);for(t=0;t<
y.length;t++){var X=y[t]=PV(y[t]);Array.isArray(X[1])&&(X[1]=zG(X[1]))}t=y}!q&&e&32&&Z7H(t);y=new jq(t,void 0,i$u,i$u);e=iE(u,e,w,y);q||Im(u,e);w=y}return w};
_.om=function(q,w,u,y){Nz(q);var e=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=e[_.f$]|0;if(u==null)return iE(e,t,w),q;var X=u===rV?7:u[_.f$]|0,G=X,n=CA(X),N=n||Object.isFrozen(u);n||(X=0);N||(u=PV(u),G=0,X=Ug(X,t),N=!1);X|=5;var Q;n=(Q=DMj(X))!=null?Q:0;for(Q=0;Q<u.length;Q++){var I=u[Q],U=y(I,n);Object.is(I,U)||(N&&(u=PV(u),G=0,X=Ug(X,t),N=!1),u[Q]=U)}X!==G&&(N&&(u=PV(u),X=Ug(X,t)),Jc(u,X));iE(e,t,w,u);return q};
_.Va=function(q,w,u,y,e){Nz(q);var t=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;iE(t,t[_.f$]|0,w,(y==="0"?Number(u)===0:u===y)?void 0:u,e);return q};
_.fA=function(q,w,u){if(w&2)throw Error();var y=jr(w),e=KjM(q,u,y),t=e===rV?7:e[_.f$]|0,X=BxH(t,w);if(2&X||CA(X)||16&X)e=PV(e),t=0,X=Ug(X,w),iE(q,w,u,e,y);X&=-13;X!==t&&Jc(e,X);return e};
um7=function(q){if(VF){var w;return(w=q[Ah])!=null?w:q[Ah]=new Map}if(Ah in q)return q[Ah];w=new Map;Object.defineProperty(q,Ah,{value:w});return w};
eB7=function(q,w,u,y,e){var t=um7(q),X=yxl(t,q,w,u,e);X!==y&&(X&&(w=iE(q,w,X,void 0,e)),t.set(u,y));return w};
yxl=function(q,w,u,y,e){var t=q.get(y);if(t!=null)return t;for(var X=t=0;X<y.length;X++){var G=y[X];Og(w,G,e)!=null&&(t!==0&&(u=iE(w,u,t,void 0,e)),t=G)}q.set(y,t);return t};
Jh=function(q,w,u,y,e){var t=!1;y=Og(q,y,e,function(X){var G=IZy(X,u,!1,w);t=G!==X&&G!=null;return G});
if(y!=null)return t&&!p$(y)&&Im(q,w),y};
k4J=function(q,w,u,y,e,t,X,G){var n=p$(q,u);t=n?1:t;X=!!X||t===3;n=G&&!n;(t===2||n)&&sg(q)&&(w=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=w[_.f$]|0);q=KjM(w,e);var N=q===rV?7:q[_.f$]|0,Q=BxH(N,u);if(G=!(4&Q)){var I=q,U=u,d=!!(2&Q);d&&(U|=2);for(var V=!d,J=!0,a=0,b=0;a<I.length;a++){var g=IZy(I[a],y,!1,U);if(g instanceof y){if(!d){var l=p$(g);V&&(V=!l);J&&(J=l)}I[b++]=g}}b<a&&(I.length=b);Q|=4;Q=J?Q&-4097:Q|4096;Q=V?Q|8:Q&-9}Q!==N&&(Jc(q,Q),2&Q&&Object.freeze(q));if(n&&!(8&Q||!q.length&&
(t===1||(t!==4?0:2&Q||!(16&Q)&&32&u)))){CA(Q)&&(q=PV(q),Q=Ug(Q,u),u=iE(w,u,e,q));y=q;n=Q;for(N=0;N<y.length;N++)I=y[N],Q=Tx7(I),I!==Q&&(y[N]=Q);n|=8;Q=n=y.length?n|4096:n&-4097;Jc(q,Q)}return q=xTj(q,Q,w,u,e,t,G,X)};
tq7=function(q){q==null&&(q=void 0);return q};
Ug=function(q,w){return q=(2&w?q|2:q&-3)&-273};
_.PjH=function(q,w,u,y,e){Nz(q);w=_.T_(q,w,e,2,!0);var t;e=(t=DMj(w===rV?7:w[_.f$]|0))!=null?t:0;w.push(u(y,e));return q};
XV6=function(q,w,u,y,e,t,X){Nz(q);var G=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;q=k4J(q,G,G[_.f$]|0,u,w,2,!0);if(t&&X)e!=null||(e=q.length-1),ck(q,e),q.splice(e,t),q.length||(q[_.f$]&=-4097);else{if(t){if(typeof e!=="number"||e<0||e>q.length)throw Error();}else y=y!=null?y:new u;e!=void 0?q.splice(e,t,y):q.push(y);e=u=q===rV?7:q[_.f$]|0;(y=p$(y))?(u&=-9,q.length===1&&(u&=-4097)):u|=4096;u!==e&&Jc(q,u);y||Im(G)}};
FT7=function(q,w){if(typeof q==="string")return new am(mMz(q),w);if(Array.isArray(q))return new am(new Uint8Array(q),w);if(q.constructor===Uint8Array)return new am(q,!1);if(q.constructor===ArrayBuffer)return q=new Uint8Array(q),new am(q,!1);if(q.constructor===$T)return w=DI(q)||new Uint8Array(0),new am(w,!0,q);if(q instanceof Uint8Array)return q=q.constructor===Uint8Array?q:new Uint8Array(q.buffer,q.byteOffset,q.byteLength),new am(q,!1);throw Error();};
ZI=function(){var q=function(){throw Error();};
Object.setPrototypeOf(q,q.prototype);return q};
n6l=function(q,w){var u=u===void 0?G4u:u;return new $K(q,w,u)};
Ncf=function(q,w,u,y,e){w=Hhs(w,y);w!=null&&(u=_.WTl(q,u),e(w,q),_.sKz(q,u))};
v3=function(q,w,u,y){var e=y[q];if(e)return e;e={};e.binaryFields=y;e.messageMetadata=SXs(y[0]);var t=y[1],X=1;t&&t.constructor===Object&&(e.extensions=t,t=y[++X],typeof t==="function"&&(e.isMessageSet=!0,QKc!=null||(QKc=t),IaJ!=null||(IaJ=y[X+1]),t=y[X+=2]));for(var G={};t&&Array.isArray(t)&&t.length&&typeof t[0]==="number"&&t[0]>0;){for(var n=0;n<t.length;n++)G[t[n]]=t;t=y[++X]}for(n=1;t!==void 0;){typeof t==="number"&&(n+=t,t=y[++X]);var N=void 0;if(t instanceof $K)var Q=t;else Q=iho,X--;t=void 0;
if((t=Q)==null?0:t.$$isMsg){t=y[++X];N=y;var I=X;typeof t==="function"&&(t=t(),N[I]=t);N=t}t=y[++X];I=n+1;typeof t==="number"&&t<0&&(I-=t,t=y[++X]);for(;n<I;n++){var U=G[n];N?u(e,n,Q,N,U):w(e,n,Q,U)}}return y[q]=e};
U6o=function(q){return Array.isArray(q)?q[0]instanceof $K?q:[rxJ,q]:[q,void 0]};
Hhs=function(q,w){if(q instanceof _.bE)return q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(q))return P3(q,w,!1)};
Tcz=function(q,w,u,y){var e=u.$$binaryReaderFn;q[w]=y?function(t,X,G){return e(t,X,G,y)}:e};
CjJ=function(q,w,u,y,e){var t=u.$$binaryReaderFn,X,G;q[w]=function(n,N,Q){return t(n,N,Q,G||(G=v3(YK,Tcz,CjJ,y).messageMetadata),X||(X=d6j(y)),e)}};
d6j=function(q){var w=q[Ohj];if(w!=null)return w;var u=v3(YK,Tcz,CjJ,q);w=u.isMessageSet?function(y,e){return QKc(y,e,u)}:function(y,e){for(;o6s(e)&&e.nextWireType_!=4;){var t=e.nextField_,X=u[t];
if(X==null){var G=u.extensions;G&&(G=G[t])&&(G=Vqf(G),G!=null&&(X=u[t]=G))}if(X==null||!X(e,y,t)){G=e;X=G.fieldCursor_;Eg(G);if(G.discardUnknownFields)var n=void 0;else{var N=G.decoder_.cursor_-X;G.decoder_.cursor_=X;n=faz(G.decoder_,N)}N=G=X=void 0;var Q=y;n&&((X=(G=(N=Q[Lh])!=null?N:Q[Lh]=new pkl)[t])!=null?X:G[t]=[]).push(n)}}if(y=Kh(y))y.reviveUnknownFields=u.binaryFields[m6s];return!0};
q[Ohj]=w;q[m6s]=AxH.bind(q);return w};
AxH=function(q,w,u,y){var e=this[YK],t=this[Ohj],X=P3(void 0,e.messageMetadata,!1),G=Kh(q);if(G){var n=!1,N=e.extensions;if(N){e=function(V,J,a){if(a.length!==0)if(N[J])for(V=_.P(a),J=V.next();!J.done;J=V.next()){J=Jxy(J.value);try{n=!0,t(X,J)}finally{J.free()}}else y==null||y(q,J,a)};
if(w==null)BV(G,e);else if(G!=null){var Q=G[w];Q&&e(G,w,Q)}if(n){var I=q[_.f$]|0;if(I&2&&I&2048&&(u==null||!u.reviveIntoImmutable))throw Error();var U=jr(I),d=function(V,J){if(Og(q,V,U)!=null)switch(u==null?void 0:u.resolutionBehavior){case 1:return;default:throw Error();}J!=null&&(I=iE(q,I,V,J,U));delete G[V]};
w==null?$My(X,X[_.f$]|0,function(V,J){d(V,J)}):d(w,Og(X,w,U))}}}};
Vqf=function(q){q=U6o(q);var w=q[0].$$binaryReaderFn;if(q=q[1]){var u=d6j(q),y=v3(YK,Tcz,CjJ,q).messageMetadata;return function(e,t,X){return w(e,t,X,y,u)}}return w};
Rm=function(q,w,u){q[w]=u.$$binaryWriterFn};
Sa=function(q,w,u,y){var e,t,X=u.$$binaryWriterFn;q[w]=function(G,n,N){return X(G,n,N,t||(t=v3(c3,Rm,Sa,y).messageMetadata),e||(e=zB7(y)))}};
zB7=function(q){var w=q[aac];if(!w){var u=v3(c3,Rm,Sa,q);w=function(y,e){return D6c(y,e,u)};
q[aac]=w}return w};
D6c=function(q,w,u){$My(q,q[_.f$]|0,function(y,e){if(e!=null){var t=Zh7(u,y);t?t(w,e,y):y<500||UX(pVf,3)}});
(q=Kh(q))&&BV(q,function(y,e,t){hh(w,w.encoder_.end());for(y=0;y<t.length;y++)hh(w,DI(t[y])||new Uint8Array(0))})};
Zh7=function(q,w){var u=q[w];if(u)return u;if(u=q.extensions)if(u=u[w]){u=U6o(u);var y=u[0].$$binaryWriterFn;if(u=u[1]){var e=zB7(u),t=v3(c3,Rm,Sa,u).messageMetadata;u=q.isMessageSet?IaJ(t,e):function(X,G,n){return y(X,G,n,t,e)}}else u=y;
return q[w]=u}};
_.$6l=function(q,w,u){if(Array.isArray(w)){var y=w[_.f$]|0;if(y&4)return w;for(var e=0,t=0;e<w.length;e++){var X=q(w[e]);X!=null&&(w[t++]=X)}t<e&&(w.length=t);u&&(Jc(w,(y|5)&-1537),y&2&&Object.freeze(w));return w}};
_.ja=function(q,w,u){return new $K(q,w,u)};
_.v6u=function(q,w,u){return new $K(q,w,u)};
_.LA=function(q,w,u){iE(q,q[_.f$]|0,w,u,jr(q[_.f$]|0))};
bh6=function(q,w,u){w=_.sA(w);w!=null&&(_.Mz(q,u,1),q=q.encoder_,u=KA||(KA=new DataView(new ArrayBuffer(8))),u.setFloat64(0,+w,!0),Bk=u.getUint32(0,!0),xT=u.getUint32(4,!0),_.B3(q,Bk),_.B3(q,xT))};
_.xK=function(q,w,u){w=Nxc(w);if(w!=null){switch(typeof w){case "string":YA6(w)}if(w!=null)switch(_.Mz(q,u,0),typeof w){case "number":q=q.encoder_;q6(w);E6z(q,Bk,xT);break;case "bigint":u=BigInt.asUintN(64,w);u=new RBy(Number(u&BigInt(4294967295)),Number(u>>BigInt(32)));E6z(q.encoder_,u.JSC$6766_lo,u.JSC$6766_hi);break;default:u=YA6(w),E6z(q.encoder_,u.JSC$6766_lo,u.JSC$6766_hi)}}};
SA6=function(q,w,u){w=_.oK(w);w!=null&&w!=null&&(_.Mz(q,u,0),_.cxf(q.encoder_,w))};
_.jK6=function(q,w,u){hBu(q,u,Q6u(w))};
_.lau=function(q,w,u){w=_.Lu6(w);w!=null&&(_.Mz(q,u,0),q.encoder_.JSC$6768_buffer_.push(w?1:0))};
_.Mqf=function(q,w,u){w=_.Y6(w);w!=null&&LTy(q,u,efz(w))};
KTM=function(q,w,u,y,e){w=Hhs(w,y);w!=null&&(u=_.WTl(q,u),e(w,q),_.sKz(q,u))};
_.Bc6=function(q,w,u){w=w==null||typeof w=="string"||w instanceof $T?w:void 0;w!=null&&LTy(q,u,FT7(w,!0).buffer)};
_.x6s=function(q,w,u){w=_.oK(w);w!=null&&(w=parseInt(w,10),_.Mz(q,u,0),_.cxf(q.encoder_,w))};
_.qC=function(q,w){return function(u,y){var e={treatNewDataAsImmutable:!0};y&&Object.assign(e,y);u=Jxy(u,void 0,void 0,e);try{var t=new q,X=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;d6j(w)(X,u);var G=t}finally{u.free()}return G}};
_.wB=function(q){return function(w){return qgs(w,q)}};
w3M=function(q){return function(){return qgs(this,q)}};
_.uFJ=function(q){return L$(function(w){return w instanceof q&&!p$(w)})};
_.uZ=function(q){return function(w){return yhz(q,w)}};
PE7=function(q,w){return eX4({child:q,origin:w||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:k_z,getPayloadCase:function(u){return u.getPayloadCase()},
createInitMessage:function(u){var y=new yE,e=new tao;u=_.e9(e,1,u);return _.km(y,5,ta,u)}})};
Ps=function(q){return{valueOf:q}.valueOf()};
Faf=function(){var q=null;if(!X3u)return q;try{var w=function(u){return u};
q=X3u.createPolicy("goog#html",{createHTML:w,createScript:w,createScriptURL:w})}catch(u){}return q};
nKM=function(){G_j===void 0&&(G_j=Faf());return G_j};
_.FE=function(q){var w=nKM();q=w?w.createScriptURL(q):q;return new XE(q)};
_.G2=function(q){if(q instanceof XE)return q.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
nj=function(q){return q.toString().indexOf("`")===-1};
Ws=function(q){return new _.Hs(HA7,q)};
sY=function(q){return q instanceof _.Hs};
_.NC=function(q){if(sY(q))return q.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
QE=function(q){return new Was(function(w){return w.substr(0,q.length+1).toLowerCase()===q+":"})};
Iw=function(q,w){w=w===void 0?smc:w;if(sY(q))return q;for(var u=0;u<w.length;++u){var y=w[u];if(y instanceof Was&&y.isValid(q))return Ws(q)}};
_.UY=function(q,w){w=w===void 0?smc:w;return Iw(q,w)||iZ};
_.T2=function(q){var w=window;if(typeof MediaSource!=="undefined"&&q instanceof MediaSource||typeof w.ManagedMediaSource!=="undefined"&&q instanceof w.ManagedMediaSource)return Ws(URL.createObjectURL(q));w=q.type;w.toLowerCase()==="application/octet-stream"?w=!0:(w=w.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),w=(w==null?void 0:w.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(w[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(w[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(w[1])||/^font\/[\w-]+$/i.test(w[1])));if(!w)throw Error("da");return Ws(URL.createObjectURL(q))};
_.OY=function(q){for(var w=_.Cj.apply(1,arguments),u=[q[0]],y=0;y<w.length;y++)u.push(String(w[y])),u.push(q[y+1]);return Ws(u.join(""))};
_.Qmf=function(q){if(!NV6){a:{var w=document.createElement("a");try{w.href=q}catch(u){q=void 0;break a}q=w.protocol;q=q===":"||q===""?"https:":q}return q}try{w=new URL(q)}catch(u){return"https:"}return w.protocol};
_.ow=function(q){q instanceof _.Hs?q=_.NC(q):q=IIy.test(q)?q:void 0;return q};
VE=function(q,w){w=_.ow(w);w!==void 0&&(q.href=w)};
mx=function(q){var w=nKM();q=w?w.createHTML(q):q;return new fj(q)};
Aa=function(q){if(q instanceof fj)return q.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.Ja=function(q,w){q.src=_.G2(w).toString()};
iAs=function(q,w){q.setAttribute("sandbox","");for(var u=0;u<w.length;u++)q.sandbox.supports&&!q.sandbox.supports(w[u])||q.sandbox.add(w[u])};
_.rhf=function(q,w,u){q.removeAttribute("srcdoc");switch(w){case 0:if(u instanceof XE)throw new z2("TrustedResourceUrl",0);iAs(q,[]);w=_.ow(u);w!==void 0&&(q.src=w);break;case 1:if(!(u instanceof XE))throw new z2(typeof u,1);iAs(q,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.Ja(q,u);break;case 2:if(u instanceof XE)throw new z2("TrustedResourceUrl",2);iAs(q,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
w=_.ow(u);w!==void 0&&(q.src=w);break;default:_.Xm(w)}};
_.aw=function(q,w,u,y){w=_.ow(w);return w!==void 0?q.open(w,u,y):null};
_.DD=function(q){q=q===void 0?document:q;var w,u;q=(u=(w=q).querySelector)==null?void 0:u.call(w,"script[nonce]");return q==null?"":q.nonce||q.getAttribute("nonce")||""};
_.pj=function(q){var w=nKM();q=w?w.createScript(q):q;return new _.ZD(q)};
$m=function(q){if(q instanceof _.ZD)return q.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
Uzc=function(q){var w=_.DD(q.ownerDocument);w&&q.setAttribute("nonce",w)};
_.vs=function(q,w){q.textContent=$m(w);Uzc(q)};
_.bZ=function(q,w){q.src=_.G2(w);Uzc(q)};
_.Ym=function(q,w){if(q.nodeType===1&&/^(script|style)$/i.test(q.tagName))throw Error("da");q.innerHTML=Aa(w)};
_.gB=function(q,w,u,y){if(q.length===0)throw Error("da");q=q.map(function(t){if(t instanceof TVl)t=t.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return t});
var e=u.toLowerCase();if(q.every(function(t){return e.indexOf(t)!==0}))throw Error("ea`"+u);
w.setAttribute(u,y)};
_.Rw=function(q,w,u){if(w instanceof XE)q.href=_.G2(w).toString(),q.rel=u;else{if(CEf.indexOf(u)===-1)throw Error("fa`"+u);w=_.ow(w);w!==void 0&&(q.href=w,q.rel=u)}};
dzz=function(q){return"function"==typeof _.S9&&q instanceof _.S9};
_.OAM=function(q){if(dzz(q))return q.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.ha=function(q,w){w=_.ow(w);w!==void 0&&(q.href=w)};
j9=function(q,w){q&&(w=q.indexOf(w),0<=w&&q.splice(w,1))};
lZ=function(q){return typeof q==="function"};
oKM=function(q){return q instanceof Lj||q&&"closed"in q&&lZ(q.remove)&&lZ(q.add)&&lZ(q.unsubscribe)};
MC=function(){};
Kj=function(q){Vac(function(){throw q;})};
Bs=function(q){return q};
qr=function(){return fI7(_.Cj.apply(0,arguments))};
fI7=function(q){return q.length===0?Bs:q.length===1?q[0]:function(w){return q.reduce(function(u,y){return y(u)},w)}};
mzy=function(q){var w;return(w=q!=null?q:void 0)!=null?w:Promise};
AhM=function(q,w){return new wY(function(u){var y=0;return w.schedule(function(){y===q.length?u.complete():(u.next(q[y++]),u.closed||this.schedule())})})};
Jhj=function(q,w){if(!q)throw Error("ga");return new wY(function(u){var y=new Lj;y.add(w.schedule(function(){var e=q[Symbol.asyncIterator]();y.add(w.schedule(function(){var t=this;e.next().then(function(X){X.done?u.complete():(u.next(X.value),t.schedule())})}))}));
return y})};
zXl=function(q,w,u){w=w.schedule(function(){try{u.call(this)}catch(y){q.error(y)}},0);
q.add(w)};
aI4=function(q,w){return new wY(function(u){var y;u.add(w.schedule(function(){y=q[uB]();zXl(u,w,function(){var e=y.next(),t=e.value;e.done?u.complete():(u.next(t),this.schedule())})}));
return function(){var e;return lZ((e=y)==null?void 0:e.return)&&y.return()}})};
Dz6=function(q,w){return new wY(function(u){var y=new Lj;y.add(w.schedule(function(){var e=q[ym]();y.add(e.subscribe({next:function(t){y.add(w.schedule(function(){return u.next(t)}))},
error:function(t){y.add(w.schedule(function(){return u.error(t)}))},
complete:function(){y.add(w.schedule(function(){return u.complete()}))}}))}));
return y})};
ZAl=function(q,w){return new wY(function(u){return w.schedule(function(){return q.then(function(y){u.add(w.schedule(function(){u.next(y);u.add(w.schedule(function(){return u.complete()}))}))},function(y){u.add(w.schedule(function(){return u.error(y)}))})})})};
p3f=function(q){return new TypeError("ha`"+(q!==null&&typeof q==="object"?"an invalid object":"'"+q+"'"))};
vKy=function(q,w){if(q!=null){if(lZ(q[ym]))return Dz6(q,w);if($zJ(q))return AhM(q,w);if(lZ(q==null?void 0:q.then))return ZAl(q,w);if(Symbol.asyncIterator&&lZ(q==null?void 0:q[Symbol.asyncIterator]))return Jhj(q,w);if(lZ(q==null?void 0:q[uB]))return aI4(q,w)}throw p3f(q);};
kj=function(q,w){return w?vKy(q,w):eR(q)};
eR=function(q){if(q instanceof wY)return q;if(q!=null){if(lZ(q[ym]))return bAo(q);if($zJ(q))return YgM(q);if(lZ(q==null?void 0:q.then))return gK7(q);if(Symbol.asyncIterator&&lZ(q==null?void 0:q[Symbol.asyncIterator]))return EKo(q);if(lZ(q==null?void 0:q[uB]))return RXj(q)}throw p3f(q);};
bAo=function(q){return new wY(function(w){var u=q[ym]();if(lZ(u.subscribe))return u.subscribe(w);throw new TypeError("ia");})};
YgM=function(q){return new wY(function(w){for(var u=0;u<q.length&&!w.closed;u++)w.next(q[u]);w.complete()})};
gK7=function(q){return new wY(function(w){q.then(function(u){w.closed||(w.next(u),w.complete())},function(u){return w.error(u)}).then(null,Kj)})};
RXj=function(q){return new wY(function(w){for(var u=q[uB]();!w.closed;){var y=u.next(),e=y.value;y.done?w.complete():w.next(e)}return function(){return lZ(u==null?void 0:u.return)&&u.return()}})};
EKo=function(q){return new wY(function(w){chz(q,w).catch(function(u){return w.error(u)})})};
chz=function(q,w){var u,y,e,t,X,G;return _.F(function(n){switch(n.nextAddress){case 1:_.tD(n,2,3);var N=q[Symbol.asyncIterator];t=N!==void 0?N.call(q):new SgJ(_.P(q));case 5:return _.H(n,t.next(),8);case 8:y=n.yieldResult;if(y.done){n.jumpTo(3);break}X=y.value;w.next(X);n.jumpTo(5);break;case 3:_.Xg(n);_.Fg(n,9);if(!y||y.done||!(e=t.return)){n.jumpTo(9);break}return _.H(n,e.call(t),9);case 9:_.Xg(n,0,0,1);if(u)throw u.error;_.G7(n,10,1);break;case 10:_.G7(n,4);break;case 2:G=_.nm(n);u={error:G};n.jumpTo(3);
break;case 4:w.complete(),_.HI(n)}})};
WI=function(q,w){return w?AhM(q,w):YgM(q)};
hXs=function(q){return lZ(q[q.length-1])?q.pop():void 0};
sq=function(q){var w=q[q.length-1];return w&&lZ(w.schedule)?q.pop():void 0};
Nr=function(){var q=_.Cj.apply(0,arguments),w=sq(q);return w?AhM(q,w):WI(q)};
Qm=function(q){var w=lZ(q)?q:function(){return q};
return new wY(function(u){return u.error(w())})};
IQ=function(q){return function(w){if(lZ(w==null?void 0:w.lift))return w.lift(function(u){try{return q(u,this)}catch(y){this.error(y)}});
throw new TypeError("ja");}};
rY=function(){return IQ(function(q,w){var u=null;q._refCount++;var y=new iB(w,void 0,void 0,void 0,function(){if(!q||q._refCount<=0||0<--q._refCount)u=null;else{var e=q._connection,t=u;u=null;!e||t&&e!==t||e.unsubscribe();w.unsubscribe()}});
q.subscribe(y);y.closed||(u=q.connect())})};
lIy=function(){var q=jml;var w=w===void 0?0:w;return IQ(function(u,y){y.add(q.schedule(function(){return u.subscribe(y)},w))})};
T7=function(q){return IQ(function(w,u){var y=0;w.subscribe(new iB(u,function(e){u.next(q.call(void 0,e,y++))}))})};
Mas=function(q){return T7(function(w){return Lac(w)?q.apply(null,_.Cm(w)):q(w)})};
wsz=function(q){if(q.length===1){var w=q[0];if(KaJ(w))return{args:w,keys:null};if(w&&typeof w==="object"&&BVH(w)===xzj)return q=qYu(w),{args:q.map(function(u){return w[u]}),
keys:q}}return{args:q,keys:null}};
dY=function(){var q=_.Cj.apply(0,arguments),w=sq(q),u=hXs(q);q=wsz(q);var y=q.args,e=q.keys;if(y.length===0)return kj([],w);w=new wY(uEs(y,w,e?function(t){for(var X={},G=0;G<t.length;G++)X[e[G]]=t[G];return X}:Bs));
return u?w.pipe(Mas(u)):w};
uEs=function(q,w,u){u=u===void 0?Bs:u;return function(y){yaM(w,function(){for(var e=q.length,t=Array(e),X=e,G=q.map(function(){return!1}),n=!0,N={i$jscomp$260:0};N.i$jscomp$260<e;N={i$jscomp$260:N.i$jscomp$260},N.i$jscomp$260++)yaM(w,function(Q){return function(){kj(q[Q.i$jscomp$260],w).subscribe(new Oq(y,function(I){t[Q.i$jscomp$260]=I;
n&&(G[Q.i$jscomp$260]=!0,n=!G.every(Bs));n||y.next(u(t.slice()))},function(){return--X===0}))}}(N),y)},y)}};
yaM=function(q,w,u){q?u.add(q.schedule(w)):w()};
ehM=function(q,w,u,y){var e=[],t=0,X=0,G=!1,n=function(N){t++;eR(u(N,X++)).subscribe(new iB(w,function(Q){w.next(Q)},void 0,function(){t--;
for(var Q={};e.length&&t<y;Q={bufferedValue:void 0})Q.bufferedValue=e.shift(),n(Q.bufferedValue);!G||e.length||t||w.complete()}))};
q.subscribe(new iB(w,function(N){return t<y?n(N):e.push(N)},void 0,function(){G=!0;
!G||e.length||t||w.complete()}));
return function(){e=null}};
oQ=function(q,w){var u=u===void 0?Infinity:u;if(lZ(w))return oQ(function(y,e){return T7(function(t,X){return w(y,t,e,X)})(eR(q(y,e)))},u);
typeof w==="number"&&(u=w);return IQ(function(y,e){return ehM(y,e,q,u)})};
k2s=function(q){q=q===void 0?Infinity:q;return oQ(Bs,q)};
t9l=function(){var q=_.Cj.apply(0,arguments);return k2s(1)(WI(q,sq(q)))};
Vm=function(q){return new wY(function(w){eR(q()).subscribe(w)})};
fm=function(q,w,u){if(lZ(u)){var y=u;u=void 0}if(y)return fm(q,w,u).pipe(Mas(y));y=_.P(lZ(q.addEventListener)&&lZ(q.removeEventListener)?PZl.map(function(X){return function(G){return q[X](w,G,u)}}):lZ(q.addListener)&&lZ(q.removeListener)?XsM.map(Fx6(q,w)):lZ(q.on)&&lZ(q.off)?G26.map(Fx6(q,w)):[]);
var e=y.next().value,t=y.next().value;return!e&&$zJ(q)?oQ(function(X){return fm(X,w,u)})(WI(q)):new wY(function(X){if(!e)throw new TypeError("ka");
var G=function(){var n=_.Cj.apply(0,arguments);return X.next(1<n.length?n:n[0])};
e(G);return function(){return t(G)}})};
Fx6=function(q,w){return function(u){return function(y){return q[u](w,y)}}};
AD=function(){var q=_.Cj.apply(0,arguments),w=sq(q);var u=typeof q[q.length-1]==="number"?q.pop():Infinity;return q.length?q.length===1?eR(q[0]):k2s(u)(WI(q,w)):m$};
Hjz=function(q){return q.length===1&&nml(q[0])?q[0]:q};
Wxl=function(){var q=Hjz(_.Cj.apply(0,arguments));return IQ(function(w,u){var y=[w].concat(_.Cm(q)),e=function(){if(!u.closed)if(y.length>0){try{var t=eR(y.shift())}catch(G){e();return}var X=new iB(u,void 0,MC,MC);u.add(t.subscribe(X));X.add(e)}else u.complete()};
e()})};
JD=function(q){return IQ(function(w,u){var y=0;w.subscribe(new iB(u,function(e){return q.call(void 0,e,y++)&&u.next(e)}))})};
NBl=function(){var q=_.Cj.apply(0,arguments);q=Hjz(q);return q.length===1?eR(q[0]):new wY(swM(q))};
swM=function(q){return function(w){for(var u=[],y={i$jscomp$263:0};u&&!w.closed&&y.i$jscomp$263<q.length;y={i$jscomp$263:y.i$jscomp$263},y.i$jscomp$263++)u.push(eR(q[y.i$jscomp$263]).subscribe(new iB(w,function(e){return function(t){if(u){for(var X=0;X<u.length;X++)X!==e.i$jscomp$263&&u[X].unsubscribe();u=null}w.next(t)}}(y))))}};
QwM=function(){var q=_.Cj.apply(0,arguments),w=hXs(q),u=Hjz(q);return u.length?new wY(function(y){var e=u.map(function(){return[]}),t=u.map(function(){return!1});
y.add(function(){e=t=null});
for(var X={sourceIndex$jscomp$1:0};!y.closed&&X.sourceIndex$jscomp$1<u.length;X={sourceIndex$jscomp$1:X.sourceIndex$jscomp$1},X.sourceIndex$jscomp$1++)eR(u[X.sourceIndex$jscomp$1]).subscribe(new iB(y,function(G){return function(n){e[G.sourceIndex$jscomp$1].push(n);e.every(function(N){return N.length})&&(n=e.map(function(N){return N.shift()}),y.next(w?w.apply(null,_.Cm(n)):n),e.some(function(N,Q){return!N.length&&t[Q]})&&y.complete())}}(X),void 0,function(G){return function(){t[G.sourceIndex$jscomp$1]=
!0;
!e[G.sourceIndex$jscomp$1].length&&y.complete()}}(X)));
return function(){e=t=null}}):m$};
IDl=function(q){var w,u,y;return!!q&&typeof q.active==="boolean"&&typeof((w=q.clock)==null?void 0:w.now)==="function"&&((u=q.clock)==null?void 0:u.timeline)!==void 0&&!((y=q.lastMeasurement)==null||!y.timestamp)&&typeof q.equivalentTo==="function"&&typeof q.extrapolateToNow==="function"&&typeof q.extrapolateToTime==="function"&&typeof q.map==="function"&&typeof q.joinWith==="function"};
ijo=function(q){function w(u){return typeof u==="boolean"||typeof u==="string"||typeof u==="number"||u===void 0||u===null}
return w(q)?!0:Array.isArray(q)?q.every(w):typeof q==="object"?Object.keys(q).every(function(u){return typeof u==="string"})&&Object.values(q).every(function(u){return Array.isArray(u)?u.every(w):w(u)}):!1};
raH=function(q){if(ijo(q))return q;if(IDl(q))return{lastMeasurement:{value:raH(q.lastMeasurement.value),timestamp:z7(q.lastMeasurement.timestamp,new aQ(0,q.lastMeasurement.timestamp.timeline))},active:q.active};try{return JSON.parse(JSON.stringify(q))}catch(w){}return String(q)};
DC=function(q,w){return function(u){return new wY(function(y){return u.subscribe(function(e){q.timeExecution(w,function(){y.next(e)})()},function(e){q.timeExecution(w,function(){y.error(e)})()},function(){q.timeExecution(w,function(){y.complete()})()})})}};
UC7=function(q,w){var u=!1;return new wY(function(y){var e=q.setTimeout(function(){u=!0;y.next(!0);y.complete()},w);
return function(){u||q.clearTimeout(e)}})};
TBc=function(q){q=q.global;if(q.fetchLater)return q.fetchLater.bind(q)};
ZC=function(q){return IQ(function(w,u){var y=null,e=!1,t;y=w.subscribe(new iB(u,void 0,function(X){t=eR(q(X,ZC(q)(w)));y?(y.unsubscribe(),y=null,t.subscribe(u)):e=!0}));
e&&(y.unsubscribe(),y=null,t.subscribe(u))})};
CZl=function(q,w,u){return function(y,e){var t=u,X=w,G=0;y.subscribe(new iB(e,function(n){var N=G++;X=t?q(X,n,N):(t=!0,n);e.next(X)},void 0,void 0))}};
dCo=function(q){q=q===void 0?null:q;return IQ(function(w,u){var y=!1;w.subscribe(new iB(u,function(e){y=!0;u.next(e)},void 0,function(){y||u.next(q);
u.complete()}))})};
pm=function(){return IQ(function(q,w){q.subscribe(new iB(w,MC))})};
vI=function(q){return IQ(function(w,u){w.subscribe(new iB(u,function(){return u.next(q)}))})};
bB=function(q){return q<=0?function(){return m$}:IQ(function(w,u){var y=0;
w.subscribe(new iB(u,function(e){++y<=q&&(u.next(e),q<=y&&u.complete())}))})};
Yj=function(q){var w=w===void 0?Bs:w;var u;q=(u=q)!=null?u:Ojz;return IQ(function(y,e){var t,X=!0;y.subscribe(new iB(e,function(G){var n=w(G);if(X||!q(t,n))X=!1,t=n,e.next(G)}))})};
Ojz=function(q,w){return q===w};
V9z=function(q){q=q===void 0?omf:q;return IQ(function(w,u){var y=!1;w.subscribe(new iB(u,function(e){y=!0;u.next(e)},void 0,function(){return y?u.complete():u.error(q())}))})};
omf=function(){return new fDs};
gY=function(){var q=_.Cj.apply(0,arguments);return function(w){return t9l(w,Nr.apply(null,_.Cm(q)))}};
mCM=function(q){return IQ(function(w,u){var y=0;w.subscribe(new iB(u,function(e){q.call(void 0,e,y++,w)||(u.next(!1),u.complete())},void 0,function(){u.next(!0);
u.complete()}))})};
AaJ=function(){return IQ(function(q,w){var u=[];q.subscribe(new iB(w,function(y){u.push(y);1<u.length&&u.shift()},void 0,function(){for(var y=_.P(u),e=y.next();!e.done;e=y.next())w.next(e.value);
w.complete()},function(){u=null}))})};
Jaz=function(q,w){var u=arguments.length>=2;return function(y){return y.pipe(q?JD(function(e,t){return q(e,t,y)}):Bs,AaJ(),u?dCo(w):V9z(function(){return new fDs}))}};
RQ=function(q){var w=lZ(q)?q:function(){return q};
return lZ()?IQ(function(u,y){var e=w();(void 0)(e).subscribe(y).add(u.subscribe(e))}):function(u){var y=new Eq(u,w);
lZ(u==null?void 0:u.lift)&&(y.lift=u.lift);y.source=u;y.subjectFactory=w;return y}};
SR=function(q){var w=new cI(q,void 0,void 0);return function(u){return RQ(function(){return w})(u)}};
hD=function(q,w){return IQ(CZl(q,w,arguments.length>=2))};
lB=function(){var q=_.Cj.apply(0,arguments),w=sq(q);return IQ(function(u,y){(w?t9l(q,u,w):t9l(q,u)).subscribe(y)})};
Lm=function(q){return IQ(function(w,u){var y=null,e=0,t=!1;w.subscribe(new iB(u,function(X){var G;(G=y)==null||G.unsubscribe();G=e++;eR(q(X,G)).subscribe(y=new iB(u,function(n){return u.next(n)},void 0,function(){y=null;
t&&!y&&u.complete()}))},void 0,function(){(t=!0,!y)&&u.complete()}))})};
Mr=function(q,w){w=w===void 0?!1:w;return IQ(function(u,y){var e=0;u.subscribe(new iB(y,function(t){var X=q(t,e++);(X||w)&&y.next(t);!X&&y.complete()}))})};
Km=function(q,w,u){var y=lZ(q)||w||u?{next:q,error:w,complete:u}:q;return y?IQ(function(e,t){e.subscribe(new iB(t,function(X){var G;(G=y.next)==null||G.call(y,X);t.next(X)},function(X){var G;
(G=y.error)==null||G.call(y,X);t.error(X)},function(){var X;
(X=y.complete)==null||X.call(y);t.complete()}))}):Bs};
zhz=function(){var q=_.Cj.apply(0,arguments),w=hXs(q);return IQ(function(u,y){for(var e=q.length,t=Array(e),X=q.map(function(){return!1}),G=!1,n={i$jscomp$273:0};n.i$jscomp$273<e;n={i$jscomp$273:n.i$jscomp$273},n.i$jscomp$273++)eR(q[n.i$jscomp$273]).subscribe(new iB(y,function(N){return function(Q){t[N.i$jscomp$273]=Q;
G||X[N.i$jscomp$273]||(X[N.i$jscomp$273]=!0,(G=X.every(Bs))&&(X=null))}}(n),void 0,MC));
u.subscribe(new iB(y,function(N){G&&(N=[N].concat(_.Cm(t)),y.next(w?w.apply(null,_.Cm(N)):N))}))})};
aDH=function(q){var w=[],u=0,y;for(y in q)w[u++]=y;return w};
DCl=function(q,w){for(var u in q)if(q[u]==w)return!0;return!1};
Zjl=function(q,w,u){for(var y in q)if(w.call(u,q[y],y,q))return y};
psj=function(q){if(!q||typeof q!=="object")return q;if(typeof q.clone==="function")return q.clone();if(typeof Map!=="undefined"&&q instanceof Map)return new Map(q);if(typeof Set!=="undefined"&&q instanceof Set)return new Set(q);if(q instanceof Date)return new Date(q.getTime());var w=Array.isArray(q)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(q)||q instanceof DataView?{}:new q.constructor(q.length),u;for(u in q)w[u]=psj(q[u]);return w};
$Cz=function(q){var w=arguments.length;if(w==1&&Array.isArray(arguments[0]))return $Cz.apply(null,arguments[0]);if(w%2)throw Error("oa");for(var u={},y=0;y<w;y+=2)u[arguments[y]]=arguments[y+1];return u};
vmz=function(q){var w=arguments.length;if(w==1&&Array.isArray(arguments[0]))return vmz.apply(null,arguments[0]);for(var u={},y=0;y<w;y++)u[arguments[y]]=!0;return u};
_.BI=function(q){return new TVl(q[0].toLowerCase())};
bjj=function(q){try{return new URL(q,window.document.baseURI)}catch(w){return new URL("about:invalid")}};
YYj=function(q,w){var u=w.createRange();u.selectNode(w.body);q=mx(q);return u.createContextualFragment(Aa(q))};
gmJ=function(q){q=q.nodeName;return typeof q==="string"?q:"FORM"};
Emc=function(q){q=q.nodeType;return q===1||typeof q!=="number"};
xj=function(q,w,u){q.setAttribute(w,u)};
Rhf=function(q){return q.parts.map(function(w){var u=w.descriptor;return""+w.url+(u?" "+u:"")}).join(" , ")};
_.qK=function(q){var w=_.Cj.apply(1,arguments);if(w.length===0)return _.FE(q[0]);for(var u=q[0],y=0;y<w.length;y++)u+=encodeURIComponent(w[y])+q[y+1];return _.FE(u)};
_.wb=function(q,w){q=_.G2(q).toString();var u=q.split(/[?#]/),y=/[?]/.test(q)?"?"+u[1]:"";return ca7(u[0],y,/[#]/.test(q)?"#"+(y?u[2]:u[1]):"",w)};
ca7=function(q,w,u,y){function e(X,G){X!=null&&(Array.isArray(X)?X.forEach(function(n){return e(n,G)}):(w+=t+encodeURIComponent(G)+"="+encodeURIComponent(X),t="&"))}
var t=w.length?"&":"?";y.constructor===Object&&(y=Object.entries(y));Array.isArray(y)?y.forEach(function(X){return e(X[1],X[0])}):y.forEach(e);
return _.FE(q+w+u)};
ua=function(q,w,u,y){this.top=q;this.right=w;this.bottom=u;this.left=y};
SYs=function(q){q=q.global;if(q.PendingGetBeacon)return q.PendingGetBeacon};
e3=function(q){return function(w){return w.pipe(hhy(q,RQ(new yx)))}};
kS=function(q){return function(w){return w.pipe(hhy(q,SR(1)))}};
hhy=function(q,w){function u(y){return new wY(function(e){return y.subscribe(function(t){tw(q,function(){return void e.next(t)},3)},function(t){tw(q,function(){return void e.error(t)},3)},function(){tw(q,function(){return void e.complete()},3)})})}
return qr(u,lIy(),w,rY(),u)};
LxM=function(q){var w=jwM(q);return w===null?new PX(null):w.pipe(T7(function(u){u=u.serialize();if(lDc)u=_.uc.btoa(u);else{for(var y=[],e=0,t=0;t<u.length;t++){var X=u.charCodeAt(t);X>255&&(y[e++]=X&255,X>>=8);y[e++]=X}u=_.wV(y)}return u}),bB(1),kS(q.queue))};
M9y=function(q){var w=w===void 0?{}:w;if(typeof Event==="function")return new Event(q,w);if(typeof document!=="undefined"){var u=document.createEvent("CustomEvent");u.initCustomEvent(q,w.bubbles||!1,w.cancelable||!1,w.detail);return u}throw Error();};
KxH=function(q){return typeof q==="string"?document.getElementById(q):q};
xCc=function(q){var w=!1;w=w===void 0?!1:w;if(q.tagName==="IMG"){if(q.complete&&(!q.naturalWidth||!q.naturalHeight))return!0;var u;if(w&&((u=q.style)==null?void 0:u.display)==="none")return!0}var y,e;return BB7.test((y=q.getAttribute("width"))!=null?y:"")&&BB7.test((e=q.getAttribute("height"))!=null?e:"")};
qq4=function(q,w){if(q.tagName==="IMG")return q.naturalWidth&&q.naturalHeight?!0:!1;try{if(q.readyState)var u=q.readyState;else{var y,e;u=(y=q.contentWindow)==null?void 0:(e=y.document)==null?void 0:e.readyState}return u==="complete"}catch(t){return w===void 0?!1:w}};
wI6=function(q){q||(q=function(w,u,y){w.addEventListener(u,y)});
return q};
k7j=function(q,w){var u=ugf();u=u===void 0?new yD7:u;if(q=KxH(q)){var y=wI6(y);for(var e=!1,t=function(a){e||(e=!0,w(a))},X,G=2,n=0;n<e1o.length;++n)if(e1o[n]===q.tagName){G=3;
X=[q];break}X||(X=q.querySelectorAll(e1o.join(",")));var N=0,Q=0,I=!0,U=q=!1;n={};for(var d=0;d<X.length;n={isImg:void 0},d++){var V=X[d];if(!xCc(V))if(n.isImg=V.tagName==="IMG",qq4(V,u.crossDomainLoadedDefault))q=!0,n.isImg&&(I=!0);else{N++;var J=function(a){return function(b){N--;!N&&I&&t(G);a.isImg&&(b=b&&b.type==="error",Q--,b||(I=!0),!Q&&U&&I&&t(G))}}(n);
y(V,"load",J);n.isImg&&(Q++,y(V,"error",J))}}Q===0&&(I=!0);X=null;X=_.uc.document.readyState==="complete";if(N===0&&!q&&X)G=5;else if(N||!q){y(_.uc,"load",function(){!u.pendingImagesBlockLoad||!Q&&I?t(4):U=!0});
return}t(G)}};
tRy=function(q,w,u){if(q)for(var y=0;q!=null&&y<500&&!u(q);++y)q=w(q)};
PBu=function(q,w){tRy(q,function(u){try{return u===u.parent?null:u.parent}catch(y){}return null},w)};
XI4=function(q,w){if(q.tagName=="IFRAME")w(q);else{q=q.querySelectorAll("IFRAME");for(var u=0;u<q.length&&!w(q[u]);++u);}};
F$c=function(q){return(q=q.ownerDocument)&&(q.parentWindow||q.defaultView)||null};
G7H=function(q,w,u){try{var y=JSON.parse(u.data)}catch(X){}if(typeof y==="object"&&y&&y.type==="creativeLoad"){var e=F$c(q);if(u.source&&e){var t;PBu(u.source,function(X){try{if(X.parent===e)return t=X,!0}catch(G){}});
t&&XI4(q,function(X){if(X.contentWindow===t)return w(y),!0})}}};
nj6=function(q){return typeof q==="string"?document.getElementById(q):q};
NYJ=function(){var q={};return q[0]=_.qK(Hmu,"current"),q[1]=_.qK(W$M),q[2]=_.qK(sQf),q};
XO=function(q,w){return q.left===w.left&&q.top===w.top&&q.width===w.width&&q.height===w.height};
QQz=function(q,w){return{left:Math.max(q.left,w.left),top:Math.max(q.top,w.top),width:Math.max(0,Math.min(q.left+q.width,w.left+w.width)-Math.max(q.left,w.left)),height:Math.max(0,Math.min(q.top+q.height,w.top+w.height)-Math.max(q.top,w.top))}};
ICl=function(q,w){return{left:Math.round(q.left+w.x),top:Math.round(q.top+w.y),width:q.width,height:q.height}};
imj=function(q,w,u){if(q&&w!==null&&w!=w.top){if(!w.top)return new _.FO(-12245933,-12245933);w=w.top}try{return(u===void 0?0:u)?(new _.FO(w.innerWidth,w.innerHeight)).round():_.Gc(w).round()}catch(y){return new _.FO(-12245933,-12245933)}};
rD4=function(q,w,u){try{if(q){if(!w.top)return new ua(-12245933,-12245933,-12245933,-12245933);w=w.top}var y=imj(q,w,u),e=y.height,t=y.width;if(t===-12245933)return new ua(t,t,t,t);var X=HX(WX(w.document)),G=X.x,n=X.y;return new ua(n,G+t,n+e,G)}catch(N){return new ua(-12245933,-12245933,-12245933,-12245933)}};
Urs=function(q){var w;return(w=q.google_tag_data)!=null?w:q.google_tag_data={}};
TYz=function(q){var w,u;return typeof((w=q.navigator)==null?void 0:(u=w.userAgentData)==null?void 0:u.getHighEntropyValues)==="function"};
drf=function(q){if(!TYz(q))return null;var w=Urs(q);if(w.uach_promise)return w.uach_promise;q=q.navigator.userAgentData.getHighEntropyValues(CBu).then(function(u){w.uach!=null||(w.uach=u);return u});
return w.uach_promise=q};
pIJ=function(q){var w;return OmJ(ojs(VRM(fCs(mrM(ADo(JDH(z17(aCM(new Dr4,q.architecture||""),q.bitness||""),q.mobile||!1),q.model||""),q.platform||""),q.platformVersion||""),q.uaFullVersion||""),((w=q.fullVersionList)==null?void 0:w.map(function(u){var y=new Zml;y=_.sf(y,1,u.brand);return _.sf(y,2,u.version)}))||[]),q.wow64||!1)};
$rf=function(q){var w,u;return(u=(w=drf(q))==null?void 0:w.then(function(y){return pIJ(y)}))!=null?u:null};
vjs=function(q,w){return new wY(function(u){var y=!1,e=Array(w.length);e.fill(void 0);var t=new Set,X=new Set,G=function(I,U){q.running?(e[U]=I,t.add(U),y||(y=!0,tw(q,function(){y=!1;u.next(_.qT(e))},1))):u.error(new NK(U))},n=function(I,U){X.add(U);
t.add(U);tw(q,function(){u.error(I)},1)},N=function(I){X.add(I);
tw(q,function(){X.size===w.length&&u.complete()},1)},Q=w.map(function(I,U){return I.subscribe(function(d){return void G(d,U)},function(d){return void n(d,U)},function(){return void N(U)})});
return function(){Q.forEach(function(I){return void I.unsubscribe()})}})};
YqM=function(q,w,u){function y(){if(w.debugChannel){var a=w.debugChannel,b=a.next;var g={creativeId:w.debugNames.getName(u),requiredSignals:e,signals:Object.assign({},t),hasPrematurelyCompleted:X,errorMessage:G,erroredSignalKey:n};g={specMajor:2,specMinor:0,specPatch:0,timestamp:z7(w.timeProvider.now(),new aQ(0,w.timeProvider.timeline)),instanceId:w.debugNames.getName(w.symbol),creativeState:g};b.call(a,g)}}
for(var e=Object.keys(q),t={},X=!1,G=null,n=null,N={},Q=new Set,I=[],U=[],d=_.P(e),V=d.next(),J={};!V.done;J={key$jscomp$374:void 0},V=d.next())J.key$jscomp$374=V.value,V=q[J.key$jscomp$374],V instanceof PX?(N[J.key$jscomp$374]=V.value,Q.add(J.key$jscomp$374),w.debugChannel&&(t[String(J.key$jscomp$374)]=raH(V.value))):(V=V.pipe(Yj(function(a,b){return IDl(a)||IDl(b)?!1:a===b}),T7(function(a){return function(b){w.debugChannel&&(t[String(a.key$jscomp$374)]=raH(b),y());
var g={};return g[a.key$jscomp$374]=b,g}}(J)),ZC(function(a){return function(b){if(b instanceof NK)throw new bml(String(a.key$jscomp$374));
throw b;}}(J)),Km(function(a){return function(){Q.add(a.key$jscomp$374)}}(J),function(a){return function(b){n=String(a.key$jscomp$374);
G=String(b);y()}}(J),function(a){return function(){Q.has(a.key$jscomp$374)||(X=!0,y())}}(J))),U.push(J.key$jscomp$374),I.push(V));
(q=Object.keys(t).length>0)&&y();d=vjs(w.queue,I).pipe(ZC(function(a){if(a instanceof NK)throw new Qx(String(U[a.inputObservableIndex]));throw a;}),T7(function(a){return Object.freeze(Object.assign.apply(Object,[{},
N].concat(_.Cm(a))))}));
return(I=I.length>0)&&q?AD(Nr(Object.freeze(N)),d):I?d:Nr(Object.freeze(N))};
gj6=function(q,w,u,y,e){return q.performanceMonitor.timeExecution.bind(q.performanceMonitor)(733,function(){var t={};try{return w.pipe(ZC(function(X){y(Object.assign({},t,{error:X}));return m$}),oQ(function(X){try{var G=u(q,X)}catch(N){return y(Object.assign({},t,{error:N instanceof Error?N:String(N)})),m$}var n={};
return YqM(G,q,X.symbol).pipe(Km(function(N){n=N}),SR(1),rY()).pipe(e,ZC(function(N){y(Object.assign({},n,{error:N}));
return m$}),gY(void 0),T7(function(){return!0}))})).pipe(hD(function(X){return X+1},0),ZC(function(X){y(Object.assign({},t,{error:X}));
return m$}))}catch(X){return y(Object.assign({},t,{error:X})),m$}})()};
ia=function(q){var w=new Map;if(typeof q!=="object"||q===null)return w;Object.values(q).forEach(function(u){u&&typeof u.extrapolateToNow==="function"&&(w.has(u.clock.timeline)||w.set(u.clock.timeline,u.clock.now()))});
return w};
Ej4=function(q,w){return typeof q==="string"?encodeURIComponent(q):typeof q==="number"?String(q):Array.isArray(q)?q.map(function(u){return Ej4(u,w)}).join(","):q instanceof aQ?q.toString():q&&typeof q.extrapolateToNow==="function"?Ej4(q.extrapolateUsingTimestampMap(w).value,w):q===!0?"1":q===!1?"0":q===void 0||q===null?null:q instanceof R14?cDs(q):[q.top,
q.left,q.top+q.height,q.left+q.width].join()};
rb=function(q,w){q=Object.entries(q).map(function(u){var y=_.P(u);u=y.next().value;y=y.next().value;y=Ej4(y,w);return y===null?"":u+"="+y}).filter(function(u){return u!==""});
return q.length?q.join("&"):""};
jQy=function(q,w){var u=Sqf,y=h1c;w=w===void 0?.01:w;return function(e){w>0&&Math.random()<=w&&(q.global.HTMLFencedFrameElement&&q.global.fence&&typeof q.global.fence.reportEvent==="function"&&q.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),e=Object.assign({},e,{errorMessage:e.error instanceof Error&&e.error.message?e.error.message:String(e.error),errorStack:e.error instanceof Error&&e.error.stack?String(e.error.stack):null,errorName:e.error instanceof
Error&&e.error.name?String(e.error.name):null,errorContext:String(q.performanceMonitor.timedFunctionContext),errorEscapedQueryId:e.escapedQueryId}),u(Object.assign({},e,{payloadMapper:function(){return function(t){try{return y(Object.assign({},t))}catch(X){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),ia(e)).forEach(function(t){q.beaconFactory.makeBeacon(t).sendNow()}))}};
lCH=function(){var q=_.Cj.apply(0,arguments);return function(w){var u=w.pipe(SR(1),rY());w=q.map(function(y){return u.pipe(y,gY(!0))});
return dY(w).pipe(bB(1),pm())}};
L$J=function(){var q=_.Cj.apply(0,arguments);return function(w){var u=w.pipe(SR(1),rY());w=q.map(function(y){return u.pipe(y,gY(!0))});
return AD.apply(null,_.Cm(w)).pipe(bB(1),pm())}};
MR7=function(q,w){return function(u){var y=u.pipe(SR(1),rY());u=y.pipe(q,gY(!0));y=y.pipe(qr(w,SR(),rY()),gY(!0));u=dY([u,y]);return NBl(u,y).pipe(bB(1),pm())}};
K$M=function(q,w,u){u(!0)};
BYM=function(q,w){return qr(Lm(function(u){var y=q(u),e=w(u),t={};return y&&e&&t?new wY(function(X){e(y,t,function(G){X.next(Object.assign({},u,{canEmit:G}));X.complete()});
return function(){}}):Uf}),JD(function(u){return u.canEmit}))};
xr7=function(q){var w={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(u){return u.pipe(Lm(function(y){return new wY(function(e){function t(){G.disconnect();n.unsubscribe()}
var X=q.MutationObserver;if(X&&y.ref!==void 0){var G=new X(function(N){e.next(N)});
G.observe(y.ref,w);var n=y.JSC$7263_released.subscribe(t);return t}})}))}};
qfu=function(q){if(q.measurementDeferralState===3)return null;if(q.timeOnScreenReason!==void 0){var w=q.creativeFound===!1?"n":null;if(w!==null)return w}return q.geometricMeasurementErrors instanceof Tc?"msf":q.contextValidationErrors instanceof Cg?"c":q.contextVisibilityKnown===!1?"pv":q.geometricMeasurementErrors||q.contextValidationErrors?"x":null};
Of=function(q,w){return q.replace(wXf,function(u,y){try{var e=_.db.get(w,y);if(e==null||e.toString()==null)return u;e=e.toString();if(e==""||!_.Gy(e==null?"":String(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(t){}return u})};
uOJ=function(q,w){var u=Object.assign({},q),y=q.userAgentClientHints;u=(delete u.userAgentClientHints,u);u=q.payloadMapper(u);var e=rb(u,w);return _.or(q.urlPrefixes,function(t){var X="";typeof y==="string"&&(X="&"+rb({uach:y},w));var G={};return Of(t,(G.VIEWABILITY=e,G))+X})};
Sqf=function(q,w){var u=q.payloadMapper(q),y=rb(u,w);return y?_.or(q.urlPrefixes,function(e){e=e.indexOf("?")>=0?e:e+"?";e="?&".indexOf(e.slice(-1))>=0?e:e+"&";return e+y}):q.urlPrefixes};
ywu=function(){return qr(JD(function(q){return q!==void 0}),T7(function(q){return q}))};
eq6=function(q){return qr(T7(function(){return!0}),lB(!1),kS(q))};
kcl=function(q){return q.length<=0?m$:dY(q.map(function(w){var u=0;return w.pipe(T7(function(y){return{index:u++,value:y}}))})).pipe(JD(function(w){return w.every(function(u){return u.index===w[0].index})}),T7(function(w){return w.map(function(u){return u.value})}))};
t3o=function(q,w){q.currentState&&(q.previousState=q.currentState);q.currentState=w;q.previousState&&q.previousState.value?(w=Math.max(0,z7(w.timestamp,q.previousState.timestamp)),q.totalTime+=w,q.consecutiveTime+=w):q.consecutiveTime=0;return q};
Pac=function(){return qr(hD(t3o,{totalTime:0,consecutiveTime:0}),T7(function(q){return q.totalTime}))};
XXl=function(){return qr(hD(t3o,{totalTime:0,consecutiveTime:0}),T7(function(q){return q.consecutiveTime}))};
FNc=function(q,w){return function(u){return kcl(w.map(function(y){return u.pipe(q(y))}))}};
Gco=function(){var q;return qr(Km(function(w){return void(q=w.timestamp)}),XXl(),T7(function(w){return{timestamp:q,
value:Math.round(w)}}))};
nSj=function(q,w){return XO(q.topWindowViewportExternalGeometry,w.topWindowViewportExternalGeometry)&&XO(q.elementGeometry,w.elementGeometry)&&XO(q.exposedViewportLocalGeometry,w.exposedViewportLocalGeometry)&&XO(q.intersectionGeometry,w.intersectionGeometry)&&q.elementGeometrySourceName===w.elementGeometrySourceName&&q.measurementRequests===w.measurementRequests&&q.viewportGeometrySourceName===w.viewportGeometrySourceName&&q.viewportLocalAppOffset.x===w.viewportLocalAppOffset.x&&q.viewportLocalAppOffset.y===
w.viewportLocalAppOffset.y};
srJ=function(q,w){return function(u){return function(y){var e=y.pipe(RQ(new yx),rY());y=u.element.pipe(Yj());e=e.pipe(T7(function(t){return t.value}));
return dY([y,e,w]).pipe(T7(function(t){var X=_.P(t);t=X.next().value;var G=X.next().value;X=X.next().value;if(t.ref===void 0)var n={top:0,left:0,width:0,height:0};else{n=t.ref.getBoundingClientRect();var N=t.ref,Q=q.global,I=new _.Vx(0,0),U=fg(_.mN(N));if(Aw(U,"parent")){do{if(U==Q)var d=_.Jw(N);else d=Hg4(N),d=new _.Vx(d.left,d.top);I.x+=d.x;I.y+=d.y}while(U&&U!=Q&&U!=U.parent&&(N=U.frameElement)&&(U=U.parent))}n={top:I.y,left:I.x,width:n.width,height:n.height}}n=ICl(n,G.viewportLocalAppOffset);
Q=QQz(n,G.exposedViewportLocalGeometry);I=q.timeProvider.now();U=Object;N=U.assign;if(X!==2||q.inCrossDomainIframe||Q.width<=0||Q.height<=0)var V=!1;else try{var J=q.document.elementFromPoint(Q.left+Q.width/2,Q.top+Q.height/2);V=J?!WNH(J,t):!1}catch(a){V=!1}return{timestamp:I,value:N.call(U,{},G,{elementGeometrySourceName:"geo",intersectionGeometry:V?zc.intersectionGeometry:Q,elementGeometry:n})}}),e3(q.queue))}}};
WNH=function(q,w,u){u=u===void 0?0:u;return q.ref===void 0||w.ref===void 0?!1:q.ref===w.ref||_.ar(w.ref,function(y){return y===q.ref})?!0:w.ref.ownerDocument&&w.ref.ownerDocument.defaultView&&w.ref.ownerDocument.defaultView===w.ref.ownerDocument.defaultView.top?!1:u<10&&w.ref.ownerDocument&&w.ref.ownerDocument.defaultView&&w.ref.ownerDocument.defaultView.frameElement?WNH(q,new DL(w.ref.ownerDocument.defaultView.frameElement),u+1):!0};
ILM=function(q){return function(w){return w.pipe(q.ResizeObserver?Nby(q):Qrl(q),SR(1),rY())}};
Nby=function(q){return function(w){return w.pipe(Lm(function(u){var y=q.ResizeObserver;if(!y||u.ref===void 0)return Nr(zc.elementGeometry);var e=(new wY(function(t){function X(){u.ref!==void 0&&G.unobserve(u.ref);G.disconnect();n.unsubscribe()}
if(u.ref===void 0)return t.complete(),function(){};
var G=new y(function(N){N.forEach(function(Q){t.next(Q)})});
G.observe(u.ref);var n=u.JSC$7263_released.subscribe(X);return X})).pipe(DC(q.performanceMonitor,736),T7(function(t){return t.contentRect}));
return AD(Nr(u.ref.getBoundingClientRect()),e)}),Yj(XO))}};
Qrl=function(q){return function(w){var u=w.pipe(xr7(q)),y=q.onResize;u=AD(w.pipe(T7(function(){return M9y("resize")})),u,y);
return dY(w,u).pipe(DC(q.performanceMonitor,737),T7(function(e){e=_.P(e).next().value;return e.ref===void 0?void 0:e.ref.getBoundingClientRect()}),ywu(),Yj(XO))}};
UKc=function(q,w){var u=ig7(q,w).pipe(SR(1),rY());return function(y){return function(e){e=e.pipe(Lm(function(t){return t.element}),Yj());
return dY([u,e]).pipe(Lm(function(t){var X=_.P(t);t=X.next().value;X=X.next().value;return rwo(q,t.intersectionObserver,ILM(q),t.observations,y,t.flushRecords,X)}),e3(q.queue))}}};
TbM=function(q){return T7(function(w){return w.value.viewportGeometrySourceName!=="nio"?w:Object.assign({},w,{value:Object.assign({},w.value,{exposedViewportLocalGeometry:ZL(q,!0),topWindowViewportExternalGeometry:ZL(q,!0)})})})};
CaH=function(q,w){return Nr(w).pipe(q,T7(function(){return w}))};
ig7=function(q,w){return q.timeProvider.timeline!==dKy?Qm(new Tc(2)):q.MutationObserver?typeof IntersectionObserver==="undefined"?Qm(new Tc(0)):(new wY(function(u){var y=new yx,e=new pg(y.next.bind(y),{threshold:[].concat(_.Cm(w))});u.next({observations:y.pipe(DC(q.performanceMonitor,735)),intersectionObserver:e,flushRecords:function(t){t=e.takeRecords(t);t.length>0&&y.next(t)}})})).pipe(bB(1),SR(1),rY()):Qm(new Tc(1))};
OgJ=function(q){return vKy(q.sort(function(w,u){return w.time-u.time}),jml)};
rwo=function(q,w,u,y,e,t,X){return new wY(function(G){function n(){V||(V=!0,X.ref!==void 0&&w.unobserve(e,X.ref),Q.unsubscribe(),d.unsubscribe(),U.unsubscribe(),J.unsubscribe())}
if(X.ref!==void 0){oSl(w,e);w.observe(e,X.ref);var N=new $S({timestamp:q.timeProvider.now(),value:Object.assign({},zc,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),Q=y.pipe(oQ(function(a){return OgJ(a)}),JD(function(a){return a.target===X.ref}),T7(function(a){return{timestamp:new aQ(a.time,dKy),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:a.rootBounds||YS,topWindowViewportExternalGeometry:a.rootBounds||ZL(q,!0),measurementRequests:I,elementGeometrySourceName:"nio",intersectionGeometry:a.intersectionRect,elementGeometry:a.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:a.isIntersecting,isV2Visible:a.isVisible}}}),RQ(N),rY()).subscribe(G),I=new yx,U=I.subscribe(function(){t(e);
G.next({timestamp:q.timeProvider.now(),value:N.value.value});X.ref!==void 0&&(w.unobserve(e,X.ref),w.observe(e,X.ref))}),d=CaH(u,X).subscribe(function(){I.next()}),V=!1,J=X.JSC$7263_released.subscribe(function(){return n()});
return n}})};
V3M=function(q,w){var u=q.getOnBackgrounded().pipe(T7(function(){return"b"}));
return NBl(w,u).pipe(bB(1),kS(q.queue))};
gb=function(q){return function(w){var u;return w.pipe(Km(function(y){return void(u=y.timestamp)}),T7(function(y){return y.value}),q,T7(function(y){return{timestamp:u,
value:y}}))}};
fLf=function(q){return q.intersectionGeometry.width*q.intersectionGeometry.height/(q.elementGeometry.width*q.elementGeometry.height)};
Ef=function(q,w,u){u=u===void 0?function(y,e){return y===e}:u;
return q.timestamp.equals(w.timestamp)&&u(q.value,w.value)};
cX=function(q,w){return w.pipe(T7(function(u){return new Rr(q.timeProvider,{timestamp:q.timeProvider.now(),value:u})}))};
mKf=function(q){return function(w){return w.pipe(zhz(q),T7(function(u){var y=_.P(u);u=y.next().value;y=y.next().value;var e=u.value;return{timestamp:u.timestamp,value:e>=1?!0:e<=0?!1:e>=y}}))}};
JwM=function(){return qr(JD(function(q,w){return w>0}),AwH,lB(-1),Yj())};
zqs=function(q,w,u){return q?dY([w,u]).pipe(JD(function(y){var e=_.P(y);y=e.next().value;e=e.next().value;return y.timestamp.equals(e.timestamp)}),T7(function(y){var e=_.P(y);
y=e.next().value;e=e.next().value;return y.value>e.value?y:e})):w};
Zgf=function(q){return function(w){var u=w.pipe(aLu),y=w.pipe(DKM);return q instanceof wY?q.pipe(Lm(function(e){return zqs(e,u,y)})):zqs(q.value,u,y)}};
SfM=function(q,w,u,y){var e=y.geometryIsOccluded,t=y.exposureThreshold,X=y.wasLargeAdAtRender,G=y.allowLargeAdThreshold,n=y.largeAdExposureThreshold,N=y.mayUseViewportShareExposure,Q=y.hasMeasurementStarted;y=y.useIntersectionObserverV2;w=pXj(q,u,w);u=$KJ(q,u);y=vS7(w,y);var I=bgM(q,e,N,w),U=I.pipe(T7(function(eH){return eH.value}),Yj(),kS(q),hD(function(eH,x){return Math.max(eH,x)},0)),d=I.pipe(T7(function(eH){return eH.value}),JwM(),kS(q)),V=w.pipe(Yfz,T7(function(eH){return eH.value}),bB(2),Yj(),
kS(q));
X=gSs(q,w,X,G);var J=X.pipe(lB(!1),Yj(),T7(function(eH){return eH?n:t}));
G=I.pipe(mKf(J),Yj(),kS(q));var a=dY([G,w]).pipe(JD(function(eH){var x=_.P(eH);eH=x.next().value;x=x.next().value;return eH.timestamp.equals(x.timestamp)}),T7(function(eH){var x=_.P(eH);
eH=x.next().value;x=x.next().value;return{visible:eH.value,geometry:x.value.elementGeometry}}),hD(function(eH,x){return!x.visible&&eH.visible?eH:x},{visible:!1,
geometry:YS}),T7(function(eH){return eH.geometry}),lB(YS),kS(q),Yj(XO));
N=N instanceof wY?N.pipe(Yj(),vI()):Uf;J=dY([N,J]).pipe(vI());var b=w.pipe(JD(function(eH){return eH.value.viewportGeometrySourceName!=="ns"&&eH.value.elementGeometrySourceName!=="ns"}),hD(function(eH){return eH+1},0),lB(0),kS(q)),g=u.pipe(vI(!0),lB(!1),kS(q));
g=dY([Q,g]).pipe(T7(function(eH){var x=_.P(eH);eH=x.next().value;x=x.next().value;return eH&&!x}),kS(q));
var l=w.pipe(ESM,Yj()),S=l.pipe(T7(function(eH){return eH.value}),hD(function(eH,x){return Math.max(eH,x)},0),Yj(),kS(q));
q=l.pipe(T7(function(eH){return eH.value}),JwM(),kS(q));
return{shouldResetExposureSignals:N,shouldResetViewabilitySignals:J,geometrySignals:{readyGeometryWithDefault:w,measurementStrategy:w.pipe(RqJ),creativePosition:a.pipe(Yj(XO)),visible:G.pipe(Yj(Ef)),timestampedExposure:I.pipe(Yj(Ef)),maximumExposure:U,minimumExposure:d,browserSize:w.pipe(cw4,Yj(_.Wk)),timestampedScreenShare:l,maxScreenShare:S,minScreenShare:q,geometricMeasurementErrors:u,measurementRequests:w.pipe(T7(function(eH){return eH.value.measurementRequests})),
isLargeAd:X,geometryIsOccluded:e,hasMeasurementStarted:Q,geometryMeasurable:g,validMeasurementCount:b,loadTimeExposure:V,v2VisibilityBitVector:y}}};
$KJ=function(q,w){return w.pipe(JD(function(){return!1}),T7(function(u){return u}),ZC(function(u){return S3(new PX(u),q)}))};
pXj=function(q,w,u){return w.pipe(Wxl(Uf),kS(q)).pipe(Yj(function(y,e){return Ef(y,e,nSj)}),lB({timestamp:u.now(),
value:zc}),kS(q))};
bgM=function(q,w,u,y){u=y.pipe(Zgf(u),gb(T7(function(e){return Math.round(e*100)/100})),kS(q));
return w instanceof PX?u:dY([u,w]).pipe(T7(function(e){var t=_.P(e);e=t.next().value;t=t.next().value;return{timestamp:t.timestamp.maximum(e.timestamp),value:t.value?0:e.value}}),Yj(Ef),kS(q))};
gSs=function(q,w,u,y){w=[w.pipe(T7(function(e){return e.value.elementGeometry.width*e.value.elementGeometry.height>=242500}))];
u instanceof wY&&w.push(u.pipe(T7(function(e){return!!e})));
u=dY(w);return y?u.pipe(T7(function(e){return e.some(function(t){return t})}),lB(!1),Yj(),kS(q)):S3(new PX(!1),q)};
vS7=function(q,w){q=dY([q,w]).pipe(T7(function(e){var t=_.P(e);e=t.next().value;if(t.next().value&&e.value.isIntersecting)return e.value.isV2Visible}),Yj());
var u=q.pipe(T7(function(e){return e===void 0?!0:e}),hD(function(e,t){return e||!t},!1)),y=q.pipe(hD(function(e,t){return t===void 0?e:t?!1:e!=null?e:!0},void 0),T7(function(e){return!!e}));
return dY([w,QwM(q,u,y)]).pipe(T7(function(e){var t=_.P(e);e=t.next().value;var X=_.P(t.next().value);t=X.next().value;var G=X.next().value;X=X.next().value;var n=0;if(!e)return 0;if(t===void 0)return 16;t&&(n|=1);t||(n|=2);G&&(n|=4);X&&(n|=8);return n}))};
LNo=function(q,w,u,y,e){var t=hw.timeThresholdMs;var X=X===void 0?new hql(w,y):X;return(new wY(function(G){var n=u.pipe(lB(void 0),Lm(function(){return jrJ(e)})).pipe(T7(function(N){var Q=N.value;
N=N.timestamp;var I=Q.visible;Q=Q.consecutiveViewTime;var U=Q>=t;U||!I?j3(X):(N=Math.max(0,z7(w.now(),N)),lLl(X,Math.max(0,t-Q-N)));return U}),hD(function(N,Q){return Q||N},!1),Yj()).subscribe(G);
return function(){X.dispose();n.unsubscribe()}})).pipe(Mr(function(G){return!G},!0),kS(q))};
jrJ=function(q){return kcl([q,q.pipe(Gco())]).pipe(T7(function(w){var u=_.P(w);w=u.next().value;u=u.next().value;return{timestamp:w.timestamp,value:{visible:w.value,consecutiveViewTime:u.value}}}),Yj(function(w,u){return Ef(w,u,function(y,e){return y.consecutiveViewTime===e.consecutiveViewTime&&y.visible===e.visible})}))};
M3c=function(){return qr(XXl(),hD(function(q,w){return Math.max(q,w)},0),T7(function(q){return Math.round(q)}))};
KN7=function(q){return qr(mKf(Nr(q)),M3c())};
Bbl=function(q,w){return w instanceof wY?w.pipe(Lm(function(u){return(u=u?15:null)?Qm(new Tc(u)):q})):(w=w.value?15:null)?Qm(new Tc(w)):q};
xK6=function(q){var w=new Tc(13);if(q.length<1)return{chain:m$,capturedErrors:m$};var u=new yx,y=q[0];return{chain:q.slice(1).reduce(function(e,t){return e.pipe(ZC(function(X){u.next(X);return t}))},y).pipe(ZC(function(e){u.next(e);
return Qm(w)}),RQ(new yx),rY()),
capturedErrors:u}};
qN4=function(q,w){var u=q.pipe(RQ(new yx),rY());return Lm(function(y){return u.pipe(w(y))})};
u3c=function(q,w){if(q.inCrossDomainIframe)return Qm(new Tc(6));var u=new yx;return AD(Nr({}),w,u).pipe(T7(function(){return{timestamp:q.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:w2J(q),topWindowViewportExternalGeometry:ZL(q,!0),measurementRequests:u,viewportLocalAppOffset:{x:0,y:0}}}}),e3(q.queue))};
w2J=function(q){var w=ZL(q,!1);if(!q.inIframe||!la(q.global.parent)||q.global.parent===q.global)return w;var u=new Lg(q.global.parent,q.debugChannel);u.beaconFactory=q.beaconFactory;u=w2J(u);q=q.global.frameElement.getBoundingClientRect();return QQz(ICl(QQz(u,q),{x:w.left-q.left,y:w.top-q.top}),w)};
y1l=function(q){if(q.prerendering)return 3;var w;return(w={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[q.visibilityState||q.webkitVisibilityState||q.mozVisibilityState||""])!=null?w:0};
eVH=function(q){return q.document.JSC$7274_onVisibilityChange.pipe(T7(function(w){return w==="visible"}),Yj(),kS(q.queue))};
k9z=function(q,w,u){var y;return w.pipe(Yj(),Lm(function(e){return u.pipe(T7(function(){if(!y){y=!0;try{e.next()}finally{y=!1}}return!0}))}),lB(!1),kS(q.queue))};
tiu=function(q){return qr(gb(T7(function(w){return w>=1?!0:w<=0?!1:w>=q})),Pac(),T7(function(w){return Math.round(w)}))};
X2j=function(q,w,u,y,e){var t=PIo;if(t.length>1)for(var X=0;X<t.length-1;X++)if(t[X]<t[X+1])throw Error();X=e.pipe(lB(void 0),Lm(function(){return u.pipe(Gco())}),Yj(),kS(q));
e=e.pipe(lB(void 0),Lm(function(){return u.pipe(M3c())}),Yj(),kS(q));
return{totalMeasurementTime:y.pipe(lB(void 0),Lm(function(){return w.pipe(T7(function(G){return{timestamp:G.timestamp,value:!0}}),Pac())}),Yj(),kS(q)),
totalUnviewedTime:y.pipe(lB(void 0),Lm(function(){return w.pipe(T7(function(G){return{timestamp:G.timestamp,value:G.value===0}}),Pac())}),Yj(),kS(q)),
maxTimeOnScreen:y.pipe(lB(void 0),Lm(function(){return w.pipe(FNc(KN7,t))}),Yj(_.Wk),kS(q)),
timeOnScreen:y.pipe(lB(void 0),Lm(function(){return w.pipe(FNc(tiu,t),T7(function(G){return G.map(function(n,N){return N>0?n-G[N-1]:n})}))}),Yj(_.Wk),kS(q)),
maxConsecutiveViewTime:e,consecutiveViewTime:X.pipe(Yj(Ef),kS(q))}};
G9s=function(q){var w=!0;w=w===void 0?!1:w;return qr(Lm(function(u){return F24(q.document,u,w)}),kS(q.queue))};
nsy=function(q,w,u){var y=u.pipe(T7(function(e){return{value:e,timestamp:q.timeProvider.now()}}),Yj(Ef));
return w instanceof wY?w.pipe(Yj(),Lm(function(e){return e?S3(new PX({value:!1,timestamp:q.timeProvider.now()}),q.queue):y})):w.value===!1?y:new PX(!1)};
HYc=function(q,w,u,y,e,t,X){var G=hw;w=w instanceof wY?w.pipe(lB(!1),Yj()):w;var n=!q.isMobile();u=nsy(q,u,y);q=X.measurableCreative.pipe(eq6(q.queue));return Object.assign({},G,{geometryIsOccluded:u,wasLargeAdAtRender:e,allowLargeAdThreshold:n,mayUseViewportShareExposure:w,hasMeasurementStarted:q,useIntersectionObserverV2:t})};
s37=function(q,w,u,y,e,t){var X=1;t=t===void 0?!0:t;X=X===void 0?.01:X;var G=G===void 0?q.timeProvider.intervalObservable(100).pipe(kS(q.queue)):G;return q.performanceMonitor.timeExecution(916,function(){return W2s(q,w.pipe(e3(q.queue)),u.pipe(e3(q.queue)),y,e,t,X,G)})()};
W2s=function(q,w,u,y,e,t,X,G){var n=eVH(q).pipe(T7(function(Q){return!Q})),N=new Ngs(q,[new Q36(q,PIo),
new IHz(q,G)]);G=lCH(iY4,r1j);return gj6(q,w,function(Q,I){var U=S3(new PX(I.element),Q.queue).pipe(G9s(Q),kS(Q.queue)),d={loadedElement:U,shouldMeasure:U.pipe(vI(!0)),measurableCreative:U.pipe(T7(function(eH){var x=x===void 0?Symbol():x;return Object.freeze({symbol:x,element:S3(new PX(eH),Q.queue)})})),
creativeSearchResult:S3(new PX("mue"),Q.queue)},V=new PX(!1),J=new PX(!1),a=new PX(17),b=new PX(!1),g=new PX(!1),l=S3(MK,Q.queue);V=N.buildGeometrySource(d,{inApp:V,useV2:!1,requestSource:S3(a,Q.queue)}).geometrySource;d=HYc(Q,b,J,n,g,l,d);J=SfM(Q.queue,Q.timeProvider,V,d);d=J.geometrySignals;b=J.shouldResetViewabilitySignals;J=X2j(Q.queue,d.timestampedExposure,d.visible,J.shouldResetExposureSignals,b);b=LNo(Q.queue,Q.timeProvider,b,d.measurementRequests,d.visible);g=u.pipe(JD(function(eH){return eH===
I.element.ref}),T7(function(){return"ur"}));
l=UC7(Q.timeProvider,e).pipe(vI("t"));g=V3M(Q,AD(g,l));l=k9z(Q,d.measurementRequests,g.pipe(JD(function(eH){return eH!==null})));
V=g.pipe(JD(function(eH){return eH!==null}),T7(function(){return y1l(Q.global.document)===1}));
var S=U1M(Q.document);return Object.assign({},{beaconFactory:new PX(Q.beaconFactory),context:new PX(Q),inferredPingId:new PX("lidar2"),timeOnScreenPingId:new PX("lidartos"),binaryContext:new PX(17),binaryVersion:new PX(y),requestSource:a,contextValidationErrors:new PX(Q.validate()?null:new Cg),contextVisibilityKnown:new PX(S),payloadMapper:new PX(h1c),endOfSessionReason:g,timeOnScreenReason:g,requestMeasurementOnEndOfSession:l,hasImpressionFired:Tgz,crossDomainIframeState:new PX(Q.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:MK,inFetchLaterBeaconExperiment:MK,isTurtlex:MK,turtlexReportEventData:new PX(""),reportFencedFrameEvent:Uf,isViewableAttributionEnabled:MK,inViewableAttributionExperiment:new PX(0),fetchBeaconFactory:Uf,supportsPendingBeacon:MK,supportsFetchLater:MK,emit:new PX(K$M),beginToRenderEvent:new PX(Symbol()),activeViewUnmeasurableEvent:new PX(Symbol()),activeViewViewableEvent:new PX(Symbol()),creativeFound:Tgz,immediateUrlPrefixes:new PX(I.immediateUrls),timeOnScreenUrlPrefixes:new PX(I.timeOnScreenUrls),
cpmavUrls:Uf,viewableRelayUrls:Uf,measurementDeferralState:new PX(2),urlSerializer:new PX(uOJ),viewUrlSerializer:new PX(CI4),isCreativeLoaded:U.pipe(eq6(Q.queue)),pageVisible:n.pipe(T7(function(eH){return!eH})),
eosPageVisible:V,timestampedExposureHistory:d.timestampedExposure.pipe(hD(function(eH,x){eH.push(x);return eH},[]))},d,{viewable:cX(Q,b),
maxTimeOnScreen:cX(Q,J.maxTimeOnScreen),timeOnScreen:cX(Q,J.timeOnScreen),maxConsecutiveViewTime:cX(Q,J.maxConsecutiveViewTime),consecutiveViewTime:J.consecutiveViewTime.pipe(T7(function(eH){return new Rr(Q.timeProvider,eH)})),
totalMeasurementTime:cX(Q,J.totalMeasurementTime),totalUnviewedTime:cX(Q,J.totalUnviewedTime),userAgentClientHints:LxM(Q),clientOrderPingCounter:new PX(new R14)})},jQy(q,X),L$J(t?MR7(G,d1J):MR7(G,OYM),osz))};
Viy=function(q){var w=_.Cj.apply(1,arguments).filter(Boolean).join("&");if(!w)return q;var u=q.match(/[?&]adurl=/);return u?q.slice(0,u.index+1)+w+"&"+q.slice(u.index+1):q+(q.indexOf("?")<0?"?":"&")+w};
Kg=function(q,w){return w?"&"+q+"="+encodeURIComponent(w):""};
fHy=function(){try{var q,w;return!!((q=window)==null?0:(w=q.top)==null?0:w.location.href)&&!1}catch(u){return!0}};
_.BX=function(q){q&&typeof q.dispose=="function"&&q.dispose()};
_.xS=function(q){for(var w=0,u=arguments.length;w<u;++w){var y=arguments[w];_.uP(y)?_.xS.apply(null,y):_.BX(y)}};
A16=function(){var q=m1H();q=q===void 0?"bevasrsg":q;return new Promise(function(w){var u=window===window.top?window:fHy()?window:window.top,y=u[q],e;((e=y)==null?0:e.bevasrs)?w(new q1(y.bevasrs)):(y||(y={},y=(y.nqfbel=[],y),u[q]=y),y.nqfbel.push(function(t){w(new q1(t))}))})};
J14=function(q){var w={c:q.kG,e:q.jyX,mc:q.fz1,me:q.bIl};q.dA&&(w.co={c:q.dA.qoc,a:q.dA.x3C,s:q.dA.sR2});return w};
zVM=function(q){var w,u,y={kG:q.c,jyX:q.e,fz1:(w=q.mc)!=null?w:!1,bIl:(u=q.me)!=null?u:!1};q.co&&(y.dA={qoc:q.co.c,x3C:q.co.a,sR2:q.co.s});return y};
aHH=function(q){return function(){var w;return _.F(function(u){if(u.nextAddress==1)return _.H(u,q(),2);w=u.yieldResult;return u.return({f:function(){return w.rRB()},
c:function(y){return w.dC1(y)},
m:function(y){return w.l8(zVM(y))},
mws:function(y){return w.v6(zVM(y))}})})}};
D17=function(q,w){var u=m1H();u=u===void 0?"bevasrsg":u;w={s:function(t){var X;return q.snapshot(Object.assign({},t.c&&{kG:t.c},t.s&&{quV:t.s},{klx:(X=t.p)!=null?X:!0}))},
e:function(t){var X;return void((X=q.mea)==null?void 0:X.call(q,t))},
c:function(t,X){return q.qca(t,X)},
p:q.mTS,l:function(){return q.hDn()},
wpc:w?aHH(w):void 0};var y=window===window.top?window:fHy()?window:window.top,e=y[u];if(e){e.bevasrs=w;if(e.nqfbel!==void 0)for(u=_.P(e.nqfbel),y=u.next();!y.done;y=u.next())y=y.value,y(w);e.nqfbel=void 0}else e={},e=(e.bevasrs=w,e.nqfbel=void 0,e),y[u]=e};
p2M=function(q){var w=w===void 0?49:w;var u=[];_.wg(q,ZYo,6,_.uI()).forEach(function(y){_.yG(y,2)<=w&&u.push(_.yG(y,1))});
return u};
$1o=function(q){var w=w===void 0?49:w;var u=[];_.wg(q,ZYo,6,_.uI()).forEach(function(y){_.yG(y,2)>w&&u.push(_.yG(y,1))});
return u};
vsM=function(q){q.then(function(){},function(){})};
ei=function(q){return{fieldType:1,fieldName:q}};
ks=function(q){return{fieldType:2,fieldName:q}};
_.t1=function(q){return{fieldType:3,fieldName:q}};
bYj=function(){function q(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;Q=N=0}
function w(I){for(var U=X,d=0;d<64;d+=4)U[d/4]=I[d]<<24|I[d+1]<<16|I[d+2]<<8|I[d+3];for(d=16;d<80;d++)I=U[d-3]^U[d-8]^U[d-14]^U[d-16],U[d]=(I<<1|I>>>31)&4294967295;I=e[0];var V=e[1],J=e[2],a=e[3],b=e[4];for(d=0;d<80;d++){if(d<40)if(d<20){var g=a^V&(J^a);var l=1518500249}else g=V^J^a,l=1859775393;else d<60?(g=V&J|a&(V|J),l=2400959708):(g=V^J^a,l=3395469782);g=((I<<5|I>>>27)&4294967295)+g+b+l+U[d]&4294967295;b=a;a=J;J=(V<<30|V>>>2)&4294967295;V=I;I=g}e[0]=e[0]+I&4294967295;e[1]=e[1]+V&4294967295;e[2]=
e[2]+J&4294967295;e[3]=e[3]+a&4294967295;e[4]=e[4]+b&4294967295}
function u(I,U){if(typeof I==="string"){I=unescape(encodeURIComponent(I));for(var d=[],V=0,J=I.length;V<J;++V)d.push(I.charCodeAt(V));I=d}U||(U=I.length);d=0;if(N==0)for(;d+64<U;)w(I.slice(d,d+64)),d+=64,Q+=64;for(;d<U;)if(t[N++]=I[d++],Q++,N==64)for(N=0,w(t);d+64<U;)w(I.slice(d,d+64)),d+=64,Q+=64}
function y(){var I=[],U=Q*8;N<56?u(G,56-N):u(G,64-(N-56));for(var d=63;d>=56;d--)t[d]=U&255,U>>>=8;w(t);for(d=U=0;d<5;d++)for(var V=24;V>=0;V-=8)I[U++]=e[d]>>V&255;return I}
for(var e=[],t=[],X=[],G=[128],n=1;n<64;++n)G[n]=0;var N,Q;q();return{reset:q,update:u,digest:y,digestString:function(){for(var I=y(),U="",d=0;d<I.length;d++)U+="0123456789ABCDEF".charAt(Math.floor(I[d]/16))+"0123456789ABCDEF".charAt(I[d]%16);return U}}};
c1o=function(q,w){w=w===void 0?YN4:w;if(!gsu){var u;q=(u=q.navigator)==null?void 0:u.userAgentData;if(!q||typeof q.getHighEntropyValues!=="function"||q.brands&&typeof q.brands.map!=="function")return Promise.reject(Error("ya"));Es4((q.brands||[]).map(function(e){var t=new RVu;t=_.sf(t,1,e.brand);return _.sf(t,2,e.version)}));
typeof q.mobile==="boolean"&&_.P2(X3,2,q.mobile);gsu=q.getHighEntropyValues(w)}var y=new Set(w);return gsu.then(function(e){var t=X3.clone();y.has("platform")&&_.sf(t,3,e.platform);y.has("platformVersion")&&_.sf(t,4,e.platformVersion);y.has("architecture")&&_.sf(t,5,e.architecture);y.has("model")&&_.sf(t,6,e.model);y.has("uaFullVersion")&&_.sf(t,7,e.uaFullVersion);return t.serialize()}).catch(function(){return X3.serialize()})};
F3=function(q,w,u,y){this.initialValue_=q;this.maxValue_=w;this.currBaseValue_=this.currValue_=q;this.randomFactor_=u||0;this.backoffFactor_=y||2};
G9=function(q){this.src=q;this.listeners={};this.typeCount_=0};
lHl=function(){for(var q;q=SNc.remove();){try{q.fn.call(q.scope)}catch(w){yM(w)}hVo.put(q)}j3j=!1};
_.nY=function(q){switch(q){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}};
L2f=function(q){switch(q){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""}};
_.MiM=function(){};
kZM=function(q){return{ak8:new K2H(q),errorCount:new Bgj(q),eventCount:new x1H(q),mkq:new qZ7(q),cE8:new w1u(q),cXN:new uZy(q),xYp:new yXf(q),v0a:new ePM(q)}};
zPH=function(q,w,u,y){q=t7u(PO7(X1M(new _.H2(1828,"0"),q),new Fby));w.length&&GZc(q,nCs(new AXc,w));y!==void 0&&(q.destinationUrl=y);var e=new JXu(1828,"","",!1,"",q.build());_.sN(e,q);var t=new N1({flush:function(X){try{e.flush(X)}catch(G){u(G)}}});
t.addOnDisposeCallback(function(){setTimeout(function(){try{t.snapshotAndFlush()}finally{e.dispose()}})});
t.invocationLimit=1E5;t.flushInterval=3E4;t.JSC$7690_flushTimer.setInterval(3E4);return t};
QG=function(){var q,w,u;return(u=(q=globalThis.performance)==null?void 0:(w=q.now)==null?void 0:w.call(q))!=null?u:Date.now()};
D$j=function(q,w,u){if(q.disable)return new aG6;w=w?p2M(w):[];if(u)return u.owV(w),u.share();q={i3:q.i3,m8i:q.cJT,vi7:q.wdZ,destinationUrl:q.destinationUrl,ju2:q.ju2,bb:q.bb};u=w;u=u===void 0?[]:u;return new I3(q,u)};
_.ZDf=function(q){if(!q)return null;q=_.iI(q,4);return q===null||q===void 0?null:_.FE(q)};
vCu=function(q,w){return w?p1M(w):q?$$J(q):Promise.resolve()};
p1M=function(q){return new Promise(function(w,u){var y=_.rg("SCRIPT"),e=_.ZDf(q);_.bZ(y,e);y.onload=function(){_.UN(y);w()};
y.onerror=function(){_.UN(y);u(Error("Ja"))};
(T9("HEAD")[0]||document.documentElement).appendChild(y)})};
$$J=function(q){return new Promise(function(w){var u=_.rg("SCRIPT");if(q){var y=_.iI(q,6);y=y===null||y===void 0?null:_.pj(y)}else y=null;_.vs(u,y);(T9("HEAD")[0]||document.documentElement).appendChild(u);_.UN(u);w()})};
CY=function(q,w,u){var y,e=new Promise(function(t){y=setTimeout(t,w)});
return Promise.race([q.finally(function(){return void clearTimeout(y)}),
e.then(u)])};
bDo=function(q,w){try{return globalThis.sessionStorage.setItem(q,w),!0}catch(u){return!1}};
YZ6=function(q,w,u,y){w=w===void 0?0:w;u=u===void 0?q.length:u;var e=0;for(y&&(e=YZ6(y));w<u;w++)y=typeof q==="string"?q.charCodeAt(w):q[w],e=gCz(31,e)+y|0;return e};
ECc=function(q,w){return[YZ6(q,0,q.length>>1,w),YZ6(q,q.length>>1)]};
RPz=function(q){var w=_.P(ECc(q,dg));q=w.next().value;w=w.next().value;return q.toString(16)+w.toString(16)};
cXo=function(q,w){var u=ECc(w);q=new Uint32Array(q.buffer);w=q[0];var y=_.P(u);u=y.next().value;y=y.next().value;for(var e=1;e<q.length;e+=2){for(var t=w,X=e,G=u,n=y,N=0;N<22;N++)X=X>>>8|X<<24,X+=t|0,X^=G+38293,t=t<<3|t>>>29,t^=X,n=n>>>8|n<<24,n+=G|0,n^=N+38293,G=G<<3|G>>>29,G^=n;t=[t,X];q[e]^=t[0];e+1<q.length&&(q[e+1]^=t[1])}};
SZs=function(q,w,u,y,e){var t=(4-(dg.length+u.length)%4)%4,X=new Uint8Array(4+t+dg.length+4+u.length),G=new DataView(X.buffer),n=0;G.setUint32(n,Math.random()*4294967295);n=n+4+t;X.set(dg,n);n+=dg.length;G.setUint32(n,e);X.set(u,n+4);cXo(X,y);return q.insert(w,function(N){return void globalThis.sessionStorage.removeItem(N)})?bDo(w,_.wV(X))?"s":"t":"i"};
hPM=function(q,w){var u=globalThis.sessionStorage.getItem(q);if(!u)return["m"];try{var y=_.sX(u);cXo(y,w)}catch(e){return globalThis.sessionStorage.removeItem(q),["c"]}for(w=4;w<7&&y[w]===0;)w++;for(u=0;u<dg.length;u++)if(y[w++]!==dg[u])return globalThis.sessionStorage.removeItem(q),["d"];u=(new DataView(y.buffer)).getUint32(w);return Math.floor(Date.now()/1E3)>=u?(globalThis.sessionStorage.removeItem(q),["e"]):["a",new Uint8Array(y.buffer,w+4)]};
jR4=function(q){return globalThis.TextEncoder?(new TextEncoder).encode(q):_.ON(q)};
lGs=function(q){var w=q,u;return function(){if(w){var y=w;w=void 0;u=y.apply(this,arguments)}return u}};
o3=function(q){return L$(function(w){if(w instanceof q)return!0;var u,y,e=w==null?void 0:(u=w.ownerDocument)==null?void 0:(y=u.defaultView)==null?void 0:y[q.name];return Lbs(e)&&w instanceof e})};
_.m2=function(q,w,u){_.VG.call(this);this.JSC$7900_listener_=q;this.JSC$7900_interval_=w||0;this.handler_=u;this.callback_=(0,_.fY)(this.JSC$7902_doAction_,this)};
_.A1=function(q){q=M77(q);return _.FE(q)};
M77=function(q){return q===null?"null":q===void 0?"undefined":q};
B4H=function(q){if(q&&q.focus)if(q!==document.activeElement)q.focus();else return Kbs(function(){return _.F(function(w){document.activeElement&&document.activeElement.blur();return w.return(Kbs(function(){q.focus()}))})})};
_.x$4=function(q){var w=w===void 0?5:w;setTimeout(function(){var u;return _.F(function(y){y.nextAddress==1&&(u=document.activeElement);if(y.nextAddress!=5)return(document.activeElement===u||document.activeElement===document.body)&&w>=0&&q?_.H(y,B4H(q),5):y.jumpTo(0);if(document.activeElement===q)return y.return();q=q.parentElement;--w;return y.jumpTo(2)})},15)};
Kbs=function(q){return new Promise(function(w){requestAnimationFrame(function(){w(q())})})};
qty=function(q){if(_.J1)q(_.J1);else{var w;((w=z9)!=null?w:z9=[]).push(q)}};
DH=function(){!_.J1&&_.a3&&_.wlf(_.a3());return _.J1};
_.wlf=function(q){_.J1=q;var w;(w=z9)==null||w.forEach(qty);z9=void 0};
_.ZH=function(q){_.J1&&_.J1.beforeLoadModuleCode(q)};
_.pY=function(){_.J1&&_.J1.JSC$8851_setLoaded()};
$s=function(q){return $6(q)?Number(q):String(q)};
v2=function(q){this.action=q;this.wfv=!1};
ud4=function(q,w){v2.call(this,"set-drive-options");this.appId=q;this.appOrigin=w};
yPM=function(q){v2.call(this,"visibility");this.visible=q};
eCH=function(q,w,u){bI.call(this,q,w,u)};
kSM=function(q){Ys.call(this,q)};
tZf=function(q){q=q&&q.getWindow()||window;return q.gadgets&&q.gadgets.rpc};
Xls=function(q,w){var u=w&&w.getWindow()||window;if(tZf(w))q();else if(Pol)Pol.push(q);else var y=Pol=[q],e=u.setInterval(function(){if(tZf(w)){u.clearInterval(e);for(var t=0;t<y.length;t++)y[t]();Pol=null}},100)};
GSs=function(q,w){var u=new gg(q);_.sN(w,u);var y={passive:!1};w.listen(u,"mousewheel",function(e){return void FLH(q,e)},y).listen(q,"scroll",function(e){return void FLH(q,e)},y)};
FLH=function(q,w){var u;a:{for(u=w.target;u;){if(u.nodeType==1){var y=_.EN(u,"overflowY");if(y=="auto"||y=="scroll")break a}u=u.parentNode}u=null}if(!u||!_.R3(q,u)||u.scrollHeight==u.clientHeight||w.deltaY>0&&Math.abs(u.scrollTop-(u.scrollHeight-u.clientHeight))<=1||w.deltaY<0&&u.scrollTop==0)w.preventDefault(),w.stopPropagation()};
KY=function(q,w,u,y,e,t,X,G,n){G=G===void 0?!1:G;n=n===void 0?!1:n;bI.call(this,void 0,void 0,void 0);bI.call(this,t?t+" picker modal-dialog":"picker modal-dialog",!0,u);_.c2(q,"protocol");this.iframeManager_=new nwj;this.targetId_=Si();this.rpcToken_=Si();q=_.h1(q);_.ji(q,"hostId");u=_.ji(q,"parent");this.useGapi_=!n&&!0||(u==null?void 0:u.includes("onepick.corp.google.com"));G&&_.lI(q,"fv2","true");this.setUrl(q.toString());this.preferredDialogWidth_=y;this.preferredDialogHeight_=e;y!==void 0||
e!==void 0?y=!0:(y=_.ji(_.h1(q.toString()),"hostId"),H47||(H47=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),y=!H47.has(y));this.autoSizeDialog_=y;this.JSC$8090_gadgetsDomHelper_=X||this.JSC$8041_dom_;w&&(X=this.JSC$8090_gadgetsDomHelper_,w=_.ji(_.h1(this.JSC$8092_url_),"grugl")=="true"?WLj:sXs,tZf(X)||(X=X||WX(document),y=X.createElement("SCRIPT"),_.bZ(y,w),y.type="text/javascript",X.JSC$7229_document_.body.appendChild(y)));
q=q.toString();w=null;X=q.indexOf("/picker?");X>-1?w=q.substring(0,X+8-1):Xl(q,"/picker")&&(w=q);w&&this.setRelayUrl(w+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(q=this.buttons_,q.JSC$8075_element_=this.buttonEl_,q.render()):_.Ym(this.buttonEl_,N_l),_.M1(this.buttonEl_,!!this.buttons_))};
_.rPl=function(q){var w=w===void 0?QXu:w;var u=_.kT(q),y=function(t){t=_.P(t);t.next();t=B2(t);return w(u,t)},e=function(t){var X=_.P(t);
t=X.next().value;X=B2(X);return q.apply(t,X)};
return function(){var t=_.Cj.apply(0,arguments),X=this||_.uc,G=IR6.get(X);G||(G={},IR6.set(X,G));return i4H(G,[this].concat(_.Cm(t)),e,y)}};
xs=function(q){var w={};q=q.replace(/\r/g,"").split("\n");for(var u=0;u<q.length;u++){var y=q[u],e=y.indexOf(":");e<0||(w[y.substring(0,e)]=y.substring(e+2,y.length))}return w};
UZo=function(q,w,u){u=u===void 0?function(){}:u;
w=_.P(w);for(var y=w.next();!y.done;y=w.next()){var e=_.P(y.value);y=e.next().value;e=e.next().value;if(y instanceof Array&&y.includes(q)||y===q)return e()}return u()};
uO=function(q,w,u){u=u===void 0?function(){}:u;
return q?w():u()};
_.Coz=function(q){var w;return((w=T_o.documentOverride)!=null?w:q).__wizdispatcher};
e7=function(q){var w=yy;yy=q;return w};
O4o=function(q,w){var u;if((u=q)==null?0:u.isDisposed)throw Error("nb`"+String(q.debugName));for(;q!==void 0;){u=q;if(u.retrieve)return u.retrieve(w,{optional:!0});q=q.parent}return dZ6};
kC=function(q){return{"\u0275prov":{providedIn:"root",token:Symbol(q),factory:void 0,value:void 0}}};
owM=function(q){var w=e7(q);q={};return q[Symbol.dispose]=function(){e7(w)},q};
VZz=function(q,w){q.disposables||(q.disposables=[]);q.disposables.push(w)};
tX=function(q){var w=yy;w&&!w.isDisposed&&(VZz(w,q),q.parent=w)};
mZy=function(q){if(q.disposables){for(var w=_.P(q.disposables),u=w.next();!u.done;u=w.next())u=u.value,typeof u==="function"?u():fRJ(u);q.disposables.length=0}};
fRJ=function(q){if(!q.isDisposed){q.isDisposed=!0;var w;(w=q[Symbol.dispose])==null||w.call(q);delete q.parent;mZy(q)}};
vwf=function(q){var w={retrieve:function(u){switch(u.\u0275prov.token){case APJ.\u0275prov.token:var y=q.asyncDeps;break;case JPf.\u0275prov.token:y=q.rootElement;break;case zCs.\u0275prov.token:y=q.modelRootElement;break;case aRu.\u0275prov.token:y=q.appContext;break;case DZo.\u0275prov.token:y=q.rendererData;break;case Z4c.\u0275prov.token:y=q.injectingConstructor;break;case plM.\u0275prov.token:y=q.dispatcher}if(y)u=y;else a:{for(y=w.parent;y;){var e=y;if(e.retrieve){u=e.retrieve(u);break a}y=
y.parent}y=u.\u0275prov.token;e=$Zf[y];e!==void 0?u=e:(e=u.\u0275prov.providedIn,u.\u0275prov.factory?(u=u.\u0275prov.factory(),y&&e==="root"&&($Zf[y]=u)):u=dZ6)}return u}};
tX(w);return w};
b47=function(q){if(typeof document!=="undefined"&&document&&document.getElementById&&(q=document.getElementById(q))){var w=q.tagName.toUpperCase();if(w=="SCRIPT"||w=="LINK")return q}return null};
gwH=function(q,w){if((q=q===void 0?"":q)&&w)throw Error("ub");var u="";var y=_.uc._F_jsUrl;(q=w||b47(q))&&(u=q.src?q.src:q.getAttribute("href"));if(y&&u){if(y!=u)throw Error("vb`"+y+"`"+u);u=y}else u=y||u;if(!Ytj(u))throw Error("wb");return u};
cPy=function(){if(!Ewy){Ewy=!0;try{var q=gwH(_.uc._F_jsUrl?"":"base-js")}catch(y){return}var w=RCH(P1(q)),u=Object.keys(w);u.length!==0&&qty(function(y){for(var e=_.P(u),t=e.next();!t.done;t=e.next()){t=t.value;for(var X=_.P(Object.keys(w[t])),G=X.next();!G.done;G=X.next())y.addExtraEdge(t,G.value)}})}};
Stf=function(q,w,u){var y;return q&&w?q+"__"+w:(y=q!=null?q:w)!=null?y:u};
jXo=function(){var q=Object.assign({},hCc);Object.getOwnPropertyNames(hCc).forEach(function(w){XZ[w]!==void 0&&(q[w]=XZ[w])});
return q};
lRo=function(q,w){if(XZ.enablePerformanceTiming){var u,y;(y=(u=performance).mark)==null||y.call(u,q+"Start__"+w)}};
LLJ=function(q,w){if(XZ.enablePerformanceTiming){var u,y;(y=(u=performance).measure)==null||y.call(u,q+"__"+w,q+"Start__"+w)}};
KL4=function(q,w){var u=Object.create(MZ6);u.debugName=w;!yy||tX(u);w=e7(u);try{q(u)}finally{e7(w)}return function(){return void fRJ(u)}};
xZM=function(q){return FZ(q)&&B_o in q};
q8o=function(q,w){return Object.is(q,w)};
nD=function(q){var w=GZ;GZ=q;return w};
eWs=function(q){if(H1)throw Error("da");if(GZ!==null){var w=GZ.nextProducerIndex++;wG6(GZ);w<GZ.producerNode.length&&GZ.producerNode[w]!==q&&W1(GZ)&&uco(GZ.producerNode[w],GZ.producerIndexOfThis[w]);GZ.producerNode[w]!==q&&(GZ.producerNode[w]=q,GZ.producerIndexOfThis[w]=W1(GZ)?yGo(q,GZ,w):0);GZ.producerLastReadVersion[w]=q.version}};
P4f=function(q){if(!W1(q)||q.dirty)if(q.dirty||q.lastCleanEpoch!==kQs)(q.producerMustRecompute(q)||tvz(q))&&q.producerRecomputeValue(q),q.dirty=!1,q.lastCleanEpoch=kQs};
XGH=function(q){if(q.liveConsumerNode!==void 0){var w=H1;H1=!0;try{for(var u=_.P(q.liveConsumerNode),y=u.next();!y.done;y=u.next()){var e=y.value;e.dirty||(q=void 0,e.dirty=!0,XGH(e),(q=e.consumerMarkedDirty)==null||q.call(e,e))}}finally{H1=w}}};
FI6=function(){var q;return((q=GZ)==null?void 0:q.consumerAllowSignalWrites)!==!1};
GQy=function(q){q&&(q.nextProducerIndex=0);return nD(q)};
nFu=function(q,w){nD(w);if(q&&q.producerNode!==void 0&&q.producerIndexOfThis!==void 0&&q.producerLastReadVersion!==void 0){if(W1(q))for(w=q.nextProducerIndex;w<q.producerNode.length;w++)uco(q.producerNode[w],q.producerIndexOfThis[w]);for(;q.producerNode.length>q.nextProducerIndex;)q.producerNode.pop(),q.producerLastReadVersion.pop(),q.producerIndexOfThis.pop()}};
tvz=function(q){wG6(q);for(var w=0;w<q.producerNode.length;w++){var u=q.producerNode[w],y=q.producerLastReadVersion[w];if(y!==u.version)return!0;P4f(u);if(y!==u.version)return!0}return!1};
yGo=function(q,w,u){Hv6(q);if(q.liveConsumerNode.length===0&&q.producerNode!==void 0)for(var y=0;y<q.producerNode.length;y++)q.producerIndexOfThis[y]=yGo(q.producerNode[y],q,y);q.liveConsumerIndexOfThis.push(u);return q.liveConsumerNode.push(w)-1};
uco=function(q,w){Hv6(q);if(q.liveConsumerNode.length===1&&q.producerNode!==void 0)for(var u=0;u<q.producerNode.length;u++)uco(q.producerNode[u],q.producerIndexOfThis[u]);u=q.liveConsumerNode.length-1;q.liveConsumerNode[w]=q.liveConsumerNode[u];q.liveConsumerIndexOfThis[w]=q.liveConsumerIndexOfThis[u];q.liveConsumerNode.length--;q.liveConsumerIndexOfThis.length--;w<q.liveConsumerNode.length&&(u=q.liveConsumerIndexOfThis[w],q=q.liveConsumerNode[w],wG6(q),q.producerIndexOfThis[u]=w)};
W1=function(q){var w,u;return q.consumerIsAlwaysLive||((u=q==null?void 0:(w=q.liveConsumerNode)==null?void 0:w.length)!=null?u:0)>0};
wG6=function(q){q.producerNode!=null||(q.producerNode=[]);q.producerIndexOfThis!=null||(q.producerIndexOfThis=[]);q.producerLastReadVersion!=null||(q.producerLastReadVersion=[])};
Hv6=function(q){q.liveConsumerNode!=null||(q.liveConsumerNode=[]);q.liveConsumerIndexOfThis!=null||(q.liveConsumerIndexOfThis=[])};
s2s=function(q){var w=Object.create(WIf);w.computation=q;q=function(){P4f(w);eWs(w);if(w.value===sZ)throw w.error;return w.value};
q[N$]=w;return q};
iv6=function(q,w){var u=Object.create(N$s);u.value=q;w!==void 0&&(u.equal=w);q=function(){eWs(u);return u.value};
q[N$]=u;return[q,function(y){return Q2z(u,y)},
function(y){FI6()||I7J(u);Q2z(u,y(u.value))}]};
Q2z=function(q,w){FI6()||I7J(q);if(!q.equal(q.value,w)){q.value=w;q.version++;kQs++;XGH(q);var u;(u=rGJ)==null||u(q)}};
Qy=function(q){var w=nD(null);try{return q()}finally{nD(w)}};
_.r4=function(q,w,u){u=u===void 0?"":u;q=iv6(q,w==null?void 0:w.equals);var y=q[0],e=y[N$];e.debugName=Stf(w==null?void 0:w.debugName,u,"[signal]");if(!XZ.enablePerformanceTiming)return q;var t=q[1],X=q[2];return[y,function(G){Uul(function(){return void t(G)},e)},
function(G){Uul(function(){return void X(G)},e)}]};
Uul=function(q,w){lRo("signalSet",w.debugName);try{q()}finally{LLJ("signalSet",w.debugName)}};
C4s=function(q,w){var u=_.P(_.r4(q,void 0,"cPpJzc"));q=u.next().value;u=u.next().value;q[T$y]=u;q[UZ]=w;return q};
duc=function(q){return!!q&&typeof q==="object"&&Object.getPrototypeOf(q)===Object.prototype};
OvM=function(q){return typeof q==="function"&&T$y in q&&typeof q[T$y]==="function"};
oF4=function(q,w){Object.defineProperty(q,UZ,{get:function(){return w}})};
CD=function(q,w){if(TZ(q)){var u=q.map(function(t){return CD(t,w)});
oF4(u,w);return u}if(duc(q)){u={};q=_.P(Object.entries(q));for(var y=q.next();!y.done;y=q.next()){var e=_.P(y.value);y=e.next().value;e=e.next().value;u[y]=CD(e,w)}oF4(u,w);return u}return C4s(q,w)};
Vv7=function(q){if(TZ(q))return q.map(function(e){return Vv7(e)});
if(duc(q)){var w={};q=_.P(Object.entries(q));for(var u=q.next();!u.done;u=q.next()){var y=_.P(u.value);u=y.next().value;y=y.next().value;w[u]=Vv7(y)}return w}return OvM(q)?q():q};
muo=function(){var q={height:0,width:0};if(!duc(q))throw Error("Ib");var w=Symbol("Jb");return[CD(q,w),function(u,y){if(u[UZ]===w)if(typeof y==="function"){var e=[].concat(_.Cm(Vv7(u)));y=y(e)||e;f7c(u,[].concat(_.Cm(y)))}else f7c(u,y);else throw Error("Kb");}]};
f7c=function(q,w){if(OvM(q))q[T$y](w);else if(TZ(q)&&TZ(w))w=CD(w,q[UZ]),q.length=0,q.push.apply(q,_.Cm(w));else if((duc(q)||TZ(q))&&(TZ(w)||typeof w==="object"&&w!==null)){w=_.P(Object.entries(w));for(var u=w.next();!u.done;u=w.next()){var y=_.P(u.value);u=y.next().value;y=y.next().value;var e=q,t=e[u];Object.hasOwn(q,u)?f7c(t,y):e[u]=CD(y,q[UZ])}}else throw Error("Lb");};
AGl=function(q){return Object.create(Object.assign({},OZ,q))};
zW6=function(){var q;return(q=JGc)!=null?q:JGc=AGl({consumerAllowSignalWrites:!0})};
_.oR=function(q,w,u){u=u===void 0?"":u;q=s2s(q);var y=q[N$];y.debugName=Stf(w==null?void 0:w.debugName,u,"[computed]");(w==null?void 0:w.equals)!=null&&(y.equal=w.equals);return q};
Vy=function(q){var w=nD(a77);try{q()}finally{nD(w)}};
Y8J=function(q){if(!q.isDisposed)switch(q.effectType){case Dul:Zvl.schedule(q);break;case pG6:$ul.schedule(q);break;case vFf:bvM.schedule(q);break;default:_.Xm(q.effectType)}};
EFy=function(q){gF6.push(q);return function(){var w=gF6.indexOf(q);w!==-1&&gF6.splice(w,1)}};
cGf=function(){if(fD>0)Zvl.flush();else for(var q=_.P(RWj),w=q.next();!w.done;w=q.next())w.value.flush()};
hWy=function(q){for(var w=_.P(q),u=w.next();!u.done;u=w.next()){var y=u.value;for(u=[y];y.parent!==void 0;)y=y.parent,S8M(y)&&q.has(y)&&u.push(y);for(;u.length>0;)y=u.pop(),q.delete(y),y.run()}};
j24=function(q){fD--;if(q){q=_.P(RWj);for(var w=q.next();!w.done;w=q.next())w.value.clear()}else fD>0||cGf()};
LIo=function(q){var w=q.component;var u=q.debugInstance;q=q.fn;var y=l7j(w);mb={name:u?y+" ("+u+")":y,isReactive:w.componentType!==AX,parent:mb};w=q();mb=mb.parent;return w};
JX=function(){var q=mb;return q?q.isReactive:!1};
aR=function(q,w){var u=mb;w&&(mb=w);try{return q()}catch(t){q=t;zZ(q,mb);if(q!==Mvu){KI6=mb;w=[];for(var y=yy;y;){var e=void 0;w.push((e=y.debugName)!=null?e:"[context]");e=void 0;y=(e=y.parent)!=null?e:null}B$c=w.reverse()}Mvu=q;throw q;}finally{mb=u}};
zZ=function(q,w){try{var u=xuM(w===void 0?null:w);if(u&&!q.componentStack&&(q.componentStack=u,XZ.enableComponentStacksInErrorMessages)){var y=q.message+"\n\nComponent stack: "+u;q.stack&&(q.stack=q.stack.replace(q.message,y));q.message=y}}catch(e){}};
xuM=function(q){if(FZ(q)&&q.name!==void 0&&q.isReactive!==void 0&&q.parent!==void 0||q===null){for(var w=0,u="";w<20&&q;)u+=q.name+" > ",q=q.parent,w++;q=u.slice(0,-3)}else if(XZ.enableContextBasedComponentStacks){a:{for(q=q===void 0?yy:q;q;){if(xZM(q))break a;w=void 0;q=(w=q.parent)!=null?w:null}q=null}q=q.getComponentStack().slice(0,20).join(" > ")}else q="";return q};
l7j=function(q){return q.debugName||q.name||"[component]"};
qEc=function(q,w,u){w=Object.create(w);w.effectFn=q;u&&(w.debugName=u);tX(w);XZ.enableContextBasedComponentStacks||(w.componentStack=mb);return w};
_.DG=function(q,w){q=qEc(q,wTc,w);Y8J(q)};
_.ZG=function(q){var w=yy;if(w){var u=XZ.enableContextBasedComponentStacks?void 0:mb;VZz(w,function(){var y=nD(zW6());try{XZ.enableContextBasedComponentStacks?q():aR(function(){return void q()},u)}catch(e){throw XZ.enableContextBasedComponentStacks&&zZ(e),e;
}finally{nD(y)}})}};
pD=function(q,w){var u={};(w===void 0||w)&&tX(u);w=e7(u);try{q(u)}finally{e7(w)}return function(){return void fRJ(u)}};
_.$C=function(q){return typeof q==="function"?q():(q==null?0:q[uo4])?q.get():q};
_.v1=function(q,w){q=qEc(q,y64,w);Y8J(q)};
euJ=function(q){if(yy)throw Error("rb");pD(q,!1)};
bO=function(q,w){q=e7(q);try{return Qy(w)}finally{e7(q)}};
YC=function(q,w){var u=xuM(KI6),y,e;var t=(e=(y=B$c)==null?void 0:y.slice())!=null?e:[];w={componentStack:u,contextTrace:t,errorSeverity:3,featureFlags:jXo(),tagName:w};return[q,w]};
PYH=function(q,w,u){if(Object.hasOwnProperty.call(kPj,q)&&(q=kPj[q],Object.hasOwnProperty.call(q,w)&&(q=q[w],q instanceof Array))){for(var y=null,e=!1,t=0,X=q.length;t<X;++t){var G=q[t],n=G.contingentAttribute;if(!n)return G.contract;y===null&&(y={});n=Object.hasOwnProperty.call(y,n)?y[n]:y[n]=u(n);if(n===G.requiredValue)return G.contract;n==null&&(e=!0)}if(e)return null}w=tWs[w];return typeof w==="number"?w:null};
GPf=function(q,w,u){var y=null;(q=XTJ[q])&&(y=q[w]);return typeof y!=="number"&&((q=XTJ["*"])&&(y=q[w]),typeof y!=="number")?!1:!0===Frf[y][String(u).toLowerCase()]};
His=function(q,w){w=PYH(q.toLowerCase(),w,function(){var y;(y=XZ.handleError)==null||y.call.apply(y,[XZ].concat(_.Cm(YC(Error("Qb"),q.toLowerCase()))))});
if(w===null)return null;var u;return(u=nZl[w])!=null?u:null};
Wrl=function(q,w,u){if(u===null||u===void 0)return u;q=His(q,w);return q===null?u:q(w,u)};
szu=function(){};
g4=function(q,w){for(;q.length>w;)q.pop()};
Nrl=function(q){q=Array(q);g4(q,0);return q};
Qz6=function(q,w,u){if(u==null)q.removeAttribute(w);else{var y;(y=w.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":w.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?q.setAttributeNS(y,w,u):q.setAttribute(w,u)}};
IT7=function(q,w,u){q[w]=u};
r6s=function(q,w,u){q=q.style;if(typeof u==="string")q.cssText=u;else{q.cssText="";for(var y in u)if(iic.call(u,y)){w=q;var e=y,t=u[y];e.indexOf("-")>=0?w.setProperty(e,t):w[e]=t}}};
UQM=function(q,w,u){var y=typeof u;y==="object"||y==="function"?q[w]=u:Qz6(q,w,u)};
Trs=function(){var q=new szu;q[S7.default]=UQM;q.style=r6s;return q};
CYz=function(q,w,u,y){(y[w]||y[S7.default])(q,w,u)};
Oic=function(q,w,u){w=new dQ4(w,u);return q.__incrementalDOMData=w};
hX=function(q,w){if(q.__incrementalDOMData)return q.__incrementalDOMData;var u=q.nodeType===1?q.localName:q.nodeName,y=q.nodeType===1?q.getAttribute("key"):null;w=Oic(q,u,q.nodeType===1?y||w:null);if(q.nodeType===1&&(q=q.attributes,u=q.length)){y=w._attrsArr||(w._attrsArr=Nrl(u*2));for(var e=0,t=0;e<u;e+=1,t+=2){var X=q[e],G=X.value;y[t]=X.name;y[t+1]=G}}return w};
oZl=function(q,w,u,y,e){return w==u&&y==e};
VWc=function(q){for(var w=j7,u=lO();u!==q;){var y=u.nextSibling;w.removeChild(u);LD.deleted.push(u);u=y}};
lO=function(){return B1?B1.nextSibling:j7.firstChild};
xC=function(){B1=lO()};
A6M=function(q,w,u){xC();var y;a:{if(y=B1){do{var e=y,t=q,X=w,G=hX(e,X);if(fT7(e,t,G.nameOrCtor,X,G.key))break a}while(w&&(y=y.nextSibling))}y=null}y||(q==="#text"?(u=qZ.createTextNode(""),Oic(u,"#text",null),q=u):(y=qZ,e=j7,typeof q==="function"?y=new q:y=(e=q==="svg"?"http://www.w3.org/2000/svg":q==="math"?"http://www.w3.org/1998/Math/MathML":e==null||hX(e).nameOrCtor==="foreignObject"?null:e.namespaceURI)?y.createElementNS(e,q):y.createElement(q),Oic(y,q,w),q=y,u&&q.setAttribute("nonce",u)),LD.created.push(q),
y=q);u=y;if(u!==B1){if(mQu.indexOf(u)>=0)for(q=j7,w=u.nextSibling,y=B1;y!==null&&y!==u;)e=y.nextSibling,q.insertBefore(y,w),y=e;else j7.insertBefore(u,B1);B1=u}};
J6j=function(q,w,u){A6M(q,w,u);j7=B1;B1=null;return j7};
zuc=function(){VWc(null);B1=j7;j7=j7.parentNode};
w_=function(){B1=j7.lastChild};
Zic=function(q,w){w=w===void 0?{}:w;var u=w.matches===void 0?oZl:w.matches;return function(y,e,t){var X=LD,G=qZ,n=mQu,N=uo,Q=yQ,I=B1,U=j7,d=fT7;qZ=y.ownerDocument;LD=new aTJ(y);fT7=u;uo=[];yQ=[];B1=null;var V=j7=y.parentNode,J,a=DQf.call(y);if((J=a.nodeType===11||a.nodeType===9?a.activeElement:null)&&y.contains(J)){for(a=[];J!==V;)a.push(J),J=J.parentNode||(V?J.host:null);V=a}else V=[];mQu=V;try{return q(y,e,t)}finally{y=LD,eZ&&y.deleted.length>0&&eZ(y.deleted),qZ=G,LD=X,fT7=d,uo=N,yQ=Q,B1=I,j7=U,
mQu=n}}};
pTl=function(q,w,u,y){kw.push(CYz);kw.push(q);kw.push(w);kw.push(u);kw.push(y)};
vZf=function(q,w,u){var y=yQ;w=w._attrsArr||(w._attrsArr=Nrl(y.length));for(var e=!w.length||!1,t=0;t<y.length;t+=2){var X=y[t];if(e)w[t]=X;else if(w[t]!==X)break;var G=y[t+1];if(e||w[t+1]!==G)w[t+1]=G,pTl(q,X,G,u)}if(t<y.length||t<w.length){for(t=e=t;t<w.length;t+=2)tP[w[t]]=w[t+1];for(t=e;t<y.length;t+=2)e=y[t],X=y[t+1],tP[e]!==X&&pTl(q,e,X,u),w[t]=e,w[t+1]=X,delete tP[e];g4(w,y.length);for(var n in tP)pTl(q,n,void 0,u),delete tP[n]}q=$Qc;$Qc=u=kw.length;for(n=q;n<u;n+=5)(0,kw[n])(kw[n+1],kw[n+
2],kw[n+3],kw[n+4]);$Qc=q;g4(kw,q);g4(y,0)};
Pl=function(q){A6M("#text",null);var w=B1;var u=hX(w);if(u.text!==q){u=u.text=q;for(var y=1;y<arguments.length;y+=1)u=(0,arguments[y])(u);w.data!==u&&(w.data=u)}};
c64=function(q,w,u){if(u===!1&&biH.has(w))Qz6(q,w,null);else if(w!=="idomKey"&&w!=="skip"&&w!=="skipchildren"&&w!=="children"&&w!=="el"){if(w.startsWith("on"))if(w[2]===":"){if(u===void 0||u===null){var y;(y=XZ.handleError)==null||y.call.apply(y,[XZ].concat(_.Cm(YC(Error("Wb`"+w),q.tagName))));q[w]=void 0;return}if(typeof u!=="object"||u===null)throw Error("Xb`"+w+"`"+typeof u);if(typeof u.getFn!=="function")throw Error("Yb`"+w+"`"+Object.keys(u));var e=u.getFn(0),t=w.slice(3);if((y=JX())&&q["on"+
t]===void 0)q.addEventListener(t,e),_.ZG(function(){return void q.removeEventListener(t,e)});
else if(y||!YEM.includes(t))q["on"+t]=e}else{gZj(q,w,u);return}else if(w.startsWith("data-")&&typeof u==="string")try{u=EZM(u)}catch(X){u="zSoyz"}typeof u!=="function"||q._disposeEffects!=null?(XZ.enableAttributeSanitization&&(u=Wrl(q.tagName,w,u)),w==="style"?Ru7(q,w,u):w.startsWith("prop:")?(w=w.slice(5),q[w]=u):gZj(q,w,u)):(q._signalProps||(q._signalProps=[]),q._signalValues||(q._signalValues=[]),q._signalProps.push(w))}};
SEs=function(q,w,u){u=(u===void 0?{}:u).isReactive;if(w==null?0:w.el){var y=w.el;if(typeof y==="function")y(q);else{var e;(e=y.onRender)==null||e.call(y,q);q._disposeRef||(q._disposeRef=function(){var t;(t=y.onUnmount)==null||t.call(y);delete q._disposeRef},u&&_.ZG(function(){var t;
return void((t=q._disposeRef)==null?void 0:t.call(q))}))}}};
hus=function(q){return FZ(q)&&Xd in q};
jz4=function(q){return hus(q)?q[Xd].flattened:q};
lTM=function(q,w){var u=_.Cj.apply(2,arguments),y;w=(y=w)!=null?y:{};y={};return y.type=q,y.props=w,y.children=u,y[Fd]=!0,y};
_.GS=function(q){return q.children};
n4=function(q){var w=Lr6!==lTM;Lr6=q?MWs:lTM;return w};
Hl=function(q){return _.er(q)?"nodeType"in q:!1};
Wl=function(){return document.createTextNode("")};
st=function(q){q=document.createTextNode(String(q));q._isSignalTextNode=!0;return q};
Kry=function(q){var w=document.createElement("div");if(!(q instanceof fj)){if(q.contentKind!==NZ)throw Error("Ub");q=mx(q.toString())}_.Ym(w,q);q=_.P(w.childNodes);for(var u=q.next();!u.done;u=q.next())u.value._isSafeOrSanitizedHtmlNode=!0;return w};
QQ=function(q){q=typeof q;return q==="string"||q==="number"||q==="boolean"};
Brl=function(q){return q instanceof XE||sY(q)||"function"==typeof _.S9&&q instanceof _.S9||!1};
xQs=function(q,w){var u=q.parentElement;if(!u)return w;u.replaceChild(w,q);return w};
qkj=function(q,w){var u=q[0].parentElement;if(u)if(q[0].previousSibling||q[q.length-1].nextSibling){u.insertBefore(w,q[0]);for(var y=q.length-1;y>=0;y--)u.removeChild(q[y])}else u.textContent="",u.appendChild(w);return w};
wmj=function(q,w){if(q[0].parentElement)for(var u=q[0].parentElement,y=w.length,e=q.length,t=y,X=0,G=0,n=q[e-1].nextSibling,N=null;X<e||G<t;)if(q[X]===w[G])X++,G++;else{for(;q[e-1]===w[t-1];)e--,t--;if(e===X)for(var Q=t<y?G?w[G-1].nextSibling:w[t-G]:n;G<t;){var I=w[G++];u.insertBefore(I,Q)}else if(t===G)for(;X<e;)Q=q[X],N&&N.has(Q)||u.removeChild(Q),X++;else if(q[X]===w[t-1]&&w[G]===q[e-1])Q=q[--e].nextSibling,u.insertBefore(w[G++],q[X++].nextSibling),u.insertBefore(w[--t],Q),q[e]=w[t];else{if(!N)for(N=
new Map,Q=G;Q<t;)N.set(w[Q],Q++);Q=N.get(q[X]);if(Q==null)u.removeChild(q[X]),X++;else if(G<Q&&Q<t){I=X;for(var U=1,d=void 0;++I<e&&I<t&&(d=N.get(q[I]))!=null&&d===Q+U;)U++;if(U>Q-G)for(I=q[X];G<Q;)u.insertBefore(w[G++],I);else u.replaceChild(w[G++],q[X++])}else X++}}return w};
yq6=function(q){if(Array.isArray(q)){if(q.length>1)throw Error("gc`"+q.length+"`"+q.map(u$j).join(", "));q=q[0]}if(q==null)return null;if(!(q instanceof _.ZD)){var w,u;if((w=window)==null?0:(u=w.trustedTypes)==null?0:u.isScript(q))throw Error("fc");if(String(q).trim().length===0)return null;throw Error("hc`"+u$j(q));}return q};
eYM=function(q){if(Array.isArray(q)){if(q.length>1)throw Error("ic`"+q.length+"`"+q.map(u$j).join(", "));q=q[0]}if(q==null)return null;if(!dzz(q)){if(String(q).trim().length===0)return null;throw Error("jc`"+u$j(q));}return q};
u$j=function(q){return"("+typeof q+") "+(q!=null&&typeof q==="object"?q.constructor.name:typeof q)+" "+q};
r_=function(q,w){function u(){e=!1;w.isControlFlowComponent&&fD++;var t=y[0],X=y[Xd].flattened,G=n4(!0);try{var n=q(),N=kCc(t,n,y);Array.isArray(N)||(y[Xd].flattened=[N]);var Q=y[Xd].flattened;if(X&&(!Array.isArray(X)||X.length!==0)){var I=Array.isArray(X)?X[0]:X,U=I[IX],d=I._disposeEffects;I._disposeEffects=void 0;I=Array.isArray(Q)?Q[0]:Q;I[IX]=U;I[IX]&&(I[IX].numNodes=I===Q?1:Q.length);I._disposeEffects=d}y[0]=N;w.isControlFlowComponent&&j24(!1)}catch(V){throw w.isControlFlowComponent&&j24(!0),
V;}finally{n4(G)}}
w=w===void 0?{}:w;var y=twf(),e=!0;_.v1(function(){(PDM==null?0:PDM.logger)&&!e?PDM.logger.logGraft(y[0],u):u()},w.debugName);
return y};
kCc=function(q,w,u){for(;typeof w==="function";)w=w();if(w!=null&&w[Fd]){var y,e,t;(t=XZ.handleError)==null||t.call.apply(t,[XZ].concat(_.Cm(YC(Error("kc`"+((y=w.type)==null?void 0:y.TAG_NAME)),(e=w.type)==null?void 0:e.TAG_NAME))))}if(q==null)return w==null?Wl():QQ(w)?st(w):Brl(w)?st(w.toString()):Hl(w)?w:w.length===0?Wl():Xm7(w,u);if(Hl(q)){if(w==null)return xQs(q,Wl());if(QQ(w))return Fgy(q,w);if(Brl(w))return Fgy(q,w.toString());if(Hl(w))return xQs(q,w);if(w.length===0)return xQs(q,Wl());w=Xm7(w,
u);wmj([q],u[Xd].flattened);return w}q=Ut(q);if(w==null)return qkj(q,Wl());if(QQ(w))return qkj(q,st(w));if(Brl(w))return qkj(q,st(w.toString()));if(Hl(w))return wmj(q,[w])[0];if(w.length===0)return qkj(q,Wl());w=Xm7(w,u);wmj(q,u[Xd].flattened);return w};
Fgy=function(q,w){q.nodeType===Node.TEXT_NODE?q.textContent!==String(w)&&(q.textContent=String(w)):q=xQs(q,st(w));return q};
Ut=function(q,w,u){return GCJ(q,w!=null?w:[],u===void 0?!1:u)};
Xm7=function(q,w){var u=Ut(q,void 0,!0);if(u.length===0)return Wl();w[Xd].flattened=u;return q};
GCJ=function(q,w,u,y,e){w=w===void 0?[]:w;u=u===void 0?!1:u;e=e===void 0?-1:e;if(q==null)return w;if(q instanceof TS)return q=q.render(),GCJ(q,w,u,y,e);if(Hl(w)&&w.nodeType===Node.ELEMENT_NODE)switch(w.tagName){case "SCRIPT":u=yq6(q);u!==null&&_.vs(w,u);return;case "STYLE":u=eYM(q);u!==null&&(w.textContent=_.OAM(u));return}QQ(q)&&(q=st(q),y&&u&&(y[e]=q));if(q!=null&&q.contentKind===NZ||q instanceof fj){u=Kry(q);u=Array.from(u.childNodes);u=_.P(u);for(q=u.next();!q.done;q=u.next())n8J(w,q.value);return w}Brl(q)&&
(q=st(q.toString()),y&&u&&(y[e]=q));if(Hl(q))return n8J(w,q);if(Array.isArray(q)){for(var t=0;t<q.length;t++)GCJ(q[t],w,u,q,t);return w}if(typeof q==="function"){q=r_(q,{debugName:"qmF2ne"})[0];if(Array.isArray(q)){u=_.P(q);for(q=u.next();!q.done;q=u.next())n8J(w,q.value);return w}y&&u&&(y[e]=q);return n8J(w,q)}if(q!=null&&q[Fd]){y=n4(!0);e=Lr6;try{t=e.apply(null,[q.type,q.props].concat(_.Cm(q.children)))}finally{n4(y)}return GCJ(t,w,u)}var X;(X=XZ.handleError)==null||X.call.apply(X,[XZ].concat(_.Cm(YC(Error("lc")))));
return w};
twf=function(q){var w={};w=Object.assign([],(w[Xd]={flattened:[]},w));if(!q)return w;w[0]=Xm7(q,w);return w};
n8J=function(q,w){Array.isArray(q)?q.push(w):q.appendChild(w);return q};
C4=function(q){if(!XZ.enableLazyTsx)return q;if(Array.isArray(q)){for(var w=0;w<q.length;w++)q[w]=C4(q[w]);return q}return q instanceof TS?(q=q.render(),C4(q)):q};
WgJ=function(q,w){var u,y,e=l7j(q),t=function(d){y=d;d=n4(!0);var V=nD(d_);lRo("render",e);try{u=C4(q(w))}finally{LLJ("render",e),nD(V),n4(d)}};
t=XZ.enableContextPerComponent?KL4(t,e):pD(t,XZ.alwaysTrackContexts||!!yy);xZM(y);if(!w.renderedFromIdom){var X=e7(y);try{return Hnj(q,w,u),u}finally{e7(X)}}!hus(u)&&Array.isArray(u)&&(u=twf(u));var G=jz4(u);X=Array.isArray(G)?G[0]:G;var n=!1;if(X){var N,Q=(N=w==null?void 0:w.idomKey)!=null?N:q;N=G!==X;X._disposeEffects=t;var I=X[IX]||{},U=hus(u)?u:I.sourceDynamicRange;Object.assign(I,{key:Q,numNodes:N?G.length:1,context:y,higherOrder:!!X[IX],sourceDynamicRange:U});X[IX]=I}else n=!0;(function(){var d=
e7(y);try{Hnj(q,w,G)}finally{e7(d)}})();
n&&t();return u};
sA6=function(q){var w={},u;for(u in q)w={prev$jscomp$23:void 0,next$jscomp$32:void 0},w.prev$jscomp$23=Ot[u],w.next$jscomp$32=q[u],Ot[u]=function(y){return function(){var e=_.Cj.apply(0,arguments);y.prev$jscomp$23.apply(null,_.Cm(e));y.next$jscomp$32.apply(null,_.Cm(e))}}(w)};
Nsy=function(){if(JX())throw Error("mc");return oX};
QAH=function(q,w){if(!q.__unmounted&&w){q.__unmounted=!0;try{q.didUnmount()}catch(e){var u,y;(y=XZ.handleError)==null||y.call.apply(y,[XZ].concat(_.Cm(YC(e,(u=q.JSC$8165___type)==null?void 0:u.TAG_NAME))))}Ot.didUnmount(q);q.el=null;w.__instance&&delete w.__instance}};
ins=function(q,w,u){q._signalProps!=null&&q._disposeEffects==null&&((u===void 0?0:u)?q._disposeEffects=pD(function(){return void Ino(q,w)},XZ.alwaysTrackContexts||!!yy):Ino(q,w))};
Ino=function(q,w){_.v1(function(){for(var u=q._signalProps,y=q._signalValues,e=0;e<u.length;e++){var t=u[e],X=w[t]();y[e]!==X&&(y[e]=X,c64(q,t,X))}},"e3YVbb")};
rq4=function(q,w,u){var y,e=[];q._disposeEffects=pD(function(){_.v1(function(){var t=u();if(t===null||t===void 0)t="";if(QQ(t)||t===null)y!=null||(y=document.createTextNode("")),y.parentNode!==q&&(y._isSignalTextNode=!0,q.insertBefore(y,w)),y.textContent=String(t);else if(t!=null&&t.contentKind===NZ||t instanceof fj){for(var X=e.length>0?e[e.length-1].nextSibling:w,G=_.P(e),n=G.next();!n.done;n=G.next())q.removeChild(n.value);t=Kry(t);e=Array.from(t.childNodes);t=_.P(e);for(G=t.next();!G.done;G=t.next())q.insertBefore(G.value,
X)}else throw n=(G=(X=mb)==null?void 0:X.name)!=null?G:"unknown",Error("bc`"+n+"`"+typeof t);},"VvDgC")},XZ.alwaysTrackContexts||!!yy)};
CDj=function(q,w){var u=_.Cj.apply(2,arguments);w!=null||(w={});return!XZ.enableLazyTsx||mb!=null&&!JX()?U54(q,w,u):new Ts7(q,w,u)};
U54=function(q,w,u){if(q===_.GS)return u;if(typeof q==="function"){mb&&!JX()&&(w.renderedFromIdom=!0);var y=function(){var t=d5s(q,w,u);if(t)return t;u.length>0&&(w.children=u.length===1?u[0]:u);if(q.componentType===AX){var X;KL4(function(){var G=w;if(q.componentType!==AX)X=!1;else{G||(G={});var n=new VQ(G,q),N=nD(d_);try{var Q=n.render(G)}finally{nD(N)}Q instanceof HTMLElement?(Q.__instance=n,n.el=Q,n.JSC$8165___type=q,q.TAG_NAME=Q.tagName.toLowerCase(),Ot.didPatch(n),X=Q):X=Q}},q.name);
if(X)return X}return WgJ(q,w)};
return XZ.enableContextBasedComponentStacks?y():LIo({component:q,debugInstance:w.debugInstance,fn:y})}y=On7(q,w);for(var e in w)c64(y,e,w[e]);ins(y,w);Ut(u,y);SEs(y,w,{isReactive:!0});o8c(y,w);return y};
On7=function(q,w){q=(Vwf.has(q.toLowerCase())?0:fnM.has(q.startsWith("svg:")?q.replace("svg:",""):q))?document.createElementNS("http://www.w3.org/2000/svg",q.startsWith("svg:")?q.replace("svg:",""):q):m5M(q,w)||document.createElement(q);q[Aq6]=!0;return q};
Jq4=function(q){if(q){var w;(w=q._disposeRef)==null||w.call(q);var u;(u=q._disposeEffects)==null||u.call(q);q.__instance&&q.__instance instanceof f4&&(w=q.__instance,QAH(w,q),w instanceof VQ&&w.disposeEffects());for(w=0;w<q.childNodes.length;w++)Jq4(q.childNodes[w])}};
anM=function(q){zYz.push(q)===1&&requestAnimationFrame(function(){setTimeout(function(){var w=[].concat(_.Cm(zYz));zYz=[];w=_.P(w);for(var u=w.next();!u.done;u=w.next()){u=u.value;try{for(var y=0;y<u.length;y++)Jq4(u[y])}catch(e){y=u=void 0,(y=(u=XZ).handleError)==null||y.call.apply(y,[u].concat(_.Cm(YC(e))))}}})})};
_.W=function(q,w){return Lr6.apply(null,[q,w].concat(_.Cm(_.Cj.apply(2,arguments))))};
ZnM=function(){var q=document.body.firstElementChild;window.ng||q.__ngContext__||(q.__ngContext__={},q.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=D5H)};
_.r=function(q){var w=q.cond;if(w===void 0)return q.else&&q.else();var u=_.oR(function(){return!!w()},void 0,"JHVi8"),y=function(){var e=w();
if(!e){var t;(t=XZ.handleError)==null||t.call.apply(t,[XZ].concat(_.Cm(YC(pml.nonNullableCondIsNull()))))}return e};
return r_(function(){var e=u(),t;pD(function(){var X=nD(d_);try{t=C4(e?q.then(y):q.else&&q.else())}finally{nD(X)}},!0);
return t},{debugName:q.debugInstance,
isControlFlowComponent:!0})};
$5j=function(q){return _.r(q)};
_.mL=function(q){return q.keyBy==="INDEX"?v84(q):bnJ(q)};
Yku=function(q){q=_.P(q);for(var w=q.next();!w.done;w=q.next()){var u=void 0;(u=w.value)==null||u()}};
bnJ=function(q){var w=q.keyBy===void 0||q.keyBy==="REFERENCE",u=w?function(Q){return Q}:q.keyBy,y=[],e=[],t=[],X=[],G=[],n=[],N=!0;
_.ZG(function(){Yku(X)});
return r_(function(){var Q=q.each(),I=Q.length;if(I===0){if(y.length===0&&!N)return t;Yku(X);y=Q;e=[];for(Q=0;Q<y.length;Q++)e.push(u(y[Q]));t=[];X=[];G=[];n=[];q.fallback&&(X[0]=g8H(function(){t[0]=C4(q.fallback())}));
N=!1;return t}for(var U=new E8y,d=y.length-1;d>=0;d--)U.push(e[d],d);d=Array(I);for(var V=Array(I),J=Array(I),a=Array(I),b=Array(w?0:I),g={i$jscomp$485:0};g.i$jscomp$485<I;g={i$jscomp$485:g.i$jscomp$485,item$jscomp$103:void 0,key$jscomp$523:void 0},g.i$jscomp$485++){g.item$jscomp$103=Q[g.i$jscomp$485];g.key$jscomp$523=u(g.item$jscomp$103);var l=U.pop(g.key$jscomp$523);l!=null?(J[g.i$jscomp$485]=t[l],V[g.i$jscomp$485]=e[l],d[g.i$jscomp$485]=X[l],a[g.i$jscomp$485]=G[l],w||(b[g.i$jscomp$485]=n[l]),Vy(function(S){return function(){a[S.i$jscomp$485](S.i$jscomp$485);
if(!w)b[S.i$jscomp$485](S.item$jscomp$103)}}(g)),delete X[l]):d[g.i$jscomp$485]=g8H(function(S){return function(){var eH=_.P(_.r4(S.i$jscomp$485,void 0,"Fqk1zd")),x=eH.next().value;
eH=eH.next().value;a[S.i$jscomp$485]=eH;V[S.i$jscomp$485]=S.key$jscomp$523;if(w)J[S.i$jscomp$485]=C4(q.children(S.item$jscomp$103,x));else{var P4=_.P(_.r4(S.item$jscomp$103,void 0,"GBj5de"));eH=P4.next().value;P4=P4.next().value;b[S.i$jscomp$485]=P4;J[S.i$jscomp$485]=C4(q.children(eH,x))}}}(g))}Yku(X);
y=Q;e=V;t=J;X=d;G=a;n=b;N=!1;return J},{debugName:q.debugInstance,
isControlFlowComponent:!0})};
v84=function(q){var w=[],u=[],y=[],e=[],t=!1;_.ZG(function(){for(var X=_.P(e),G=X.next();!G.done;G=X.next())G=G.value,G()});
return r_(function(){var X=q.each();t&&X.length>0&&(e.pop()(),w.pop(),t=!1);for(var G=Array(X.length),n={i$jscomp$486:0};n.i$jscomp$486<X.length;n={i$jscomp$486:n.i$jscomp$486},n.i$jscomp$486++)if(n.i$jscomp$486<w.length)w[n.i$jscomp$486]!==X[n.i$jscomp$486]&&(Vy(function(Q){return function(){return void u[Q.i$jscomp$486](X[Q.i$jscomp$486])}}(n)),w[n.i$jscomp$486]=X[n.i$jscomp$486]),G[n.i$jscomp$486]=y[n.i$jscomp$486];
else{var N=g8H(function(Q){return function(){w[Q.i$jscomp$486]=X[Q.i$jscomp$486];var I=_.P(_.r4(X[Q.i$jscomp$486],void 0,"kGMqJe")),U=I.next().value;I=I.next().value;u[Q.i$jscomp$486]=I;G[Q.i$jscomp$486]=C4(q.children(U,Q.i$jscomp$486))}}(n));
e[n.i$jscomp$486]=N}for(;w.length>X.length;)w.pop(),e.pop()(),u.pop();X.length===0&&!t&&q.fallback&&(n=g8H(function(){G[0]=C4(q.fallback())}),e[0]=n,t=!0);
return y=G},{debugName:q.debugInstance,
isControlFlowComponent:!0})};
g8H=function(q){var w=yy;return pD(function(u){var y=nD(d_);try{u.parent=w,q(u)}finally{nD(y)}},!1)};
_.AP=function(q){return q};
_.JP=function(q){return{isDefault:!0,children:q.children}};
_.zS=function(q){var w=RYs(q),u=_.oR(function(){return cqc(w)},void 0,"BHmkEe");
return r_(function(){var y=u(),e;pD(function(){var t=nD(d_);try{e=C4(y())}finally{nD(t)}});
return e},{debugName:q.debugInstance,
isControlFlowComponent:!0})};
RYs=function(q){q=q.children;return Array.isArray(q)?q:[q]};
Sk7=function(q){var w=q.props;q=q.getChildren()[0];return w.when?{when:w.when,children:q}:{isDefault:!0,children:q}};
cqc=function(q){var w=function(){return null};
q=_.P(q);for(var u=q.next();!u.done;u=q.next())if(u=u.value,u!=null&&u[Fd]&&(u=u.type===_.JP?{isDefault:!0,children:u.children[0]}:{when:u.props.when,children:u.children[0]}),u instanceof TS&&(u=Sk7(u)),u.isDefault)w=u.children;else if(u.when())return u.children;return w};
hY4=function(q){var w=null,u;return{value:null,onRender:function(y){if(u&&y!==u){var e;(e=w)==null||e();u._disposeRef=void 0}u=y;w=q(y)||null},
onUnmount:function(){var y;(y=w)==null||y();w=null}}};
ln7=function(q){var w=Nsy();if(w==null)throw jAu.PRIMITIVE_INVALID_HOOK_CALL();var u=w.hookCounter++;w.hooks||(w.hooks=[]);var y=w.hooks;y[u]||(y[u]={key:q,host:w});if(q!==y[u].key){if(w.JSC$8165___type){var e;q=(e=w.JSC$8165___type)==null?void 0:e.name}else q=w instanceof VQ?l7j(w.functionComponent):"<"+w.el.tagName.toLowerCase()+">";throw jAu.OUT_OF_ORDER_HOOK_CALL(q);}return y[u]};
Lgs=function(q,w){return!q||q.length!==(w==null?void 0:w.length)||q.some(function(u,y){return u!==w[y]})};
Mwl=function(q,w){var u=ln7("onChange"),y=Nsy();Lgs(u.deps,w)&&(u.deps=w,u.pendingEffect=q,y.__syncEffects||(y.__syncEffects=[]),y.__syncEffects.push(u))};
q4j=function(q,w){var u;w!=null?u=w:u=_.Coz(document).getAppContext();u.get(Kgc).JSC$25319_getEventTarget().dispatchEvent(new Bs7(x5j,q,NZ))};
_.aX=function(q,w){var u=u===void 0?{enableDevtools:!1}:u;var y=function(){var t=nD(d_);try{return pD(function(){var X=_.Coz(_.mN(q)),G;var n=vwf({rootElement:{value:q},appContext:u.appContext||(X==null?void 0:(G=X.getOptionalAppContext)==null?void 0:G.call(X)),dispatcher:X});X=e7(n);n=n4(!0);fD++;try{Ut(w(),q),j24(!1)}catch(N){throw j24(!0),N;}finally{n4(n),e7(X)}},!1)}catch(X){throw XZ.enableContextBasedComponentStacks&&zZ(X),X;
}finally{nD(t)}},e=XZ.enableContextBasedComponentStacks?y():aR(y);
q[w0y]=!0;u.legacyTriggerSoyRendererEvents&&q4j(q,u.appContext);return function(){q.textContent="";e();q[w0y]=!1}};
_.DR=function(q){if(S8M(GZ)){var w;(w=XZ.handleError)==null||w.call.apply(w,[XZ].concat(_.Cm(YC(Error("ac")))))}var u=yy,y=XZ.enableContextBasedComponentStacks?void 0:mb;Promise.resolve().then(function(){if(u&&!u.isDisposed){var e=e7(u);try{XZ.enableContextBasedComponentStacks?q():aR(function(){return void q()},y)}catch(t){throw XZ.enableContextBasedComponentStacks&&zZ(t),t;
}finally{e7(e)}}})};
ZR=function(q,w){Mwl(function(){return Qy(q)},w)};
_.p4=function(q){JX()?_.DR(function(){Qy(q)}):Mwl(function(){return Qy(q)},[])};
y2y=function(q){var w=[].concat(_.Cm(q));q.length=0;q=_.P(w);for(w=q.next();!w.done;w=q.next()){w=w.value;uQl(w);var u=w.pendingEffect;w.pendingEffect=null;if(u=u==null?void 0:u())w.pendingCleanup=u}};
uQl=function(q){var w=q.pendingCleanup;q.pendingCleanup=null;w==null||w()};
e$c=function(q,w){if(JX())return q();var u=ln7("useMemoInternal");Lgs(u.deps,w)&&(u.deps=w,u.value=q());return u.value};
kdH=function(q,w){return e$c(q,w)};
$w=function(q){return e$c(q,[])};
vl=function(q){return $w(function(){return{value:q}})};
_.bo=function(q,w){if(!q)return null;q=Object.keys(q);q=_.P(q);for(var u=q.next();!u.done;u=q.next()){u=u.value;var y=u.toLowerCase();if(y.indexOf(w,y.length-w.length)>-1)return u}return null};
_.g_=function(){var q=arguments,w=_.Yw;q.length>1?w[q[0]]=q[1]:q.length===1&&Object.assign(w,q[0])};
_.Et=function(q,w){return q in _.Yw?_.Yw[q]:w};
_.RX=function(q,w){return!!_.Et(q,w)};
tl6=function(q){var w=_.Yw.EXPERIMENT_FLAGS;return w?w[q]:void 0};
X07=function(q){PVs.forEach(function(w){return w(q)})};
_.SZ=function(q){return q&&window.yterr?function(){try{return q.apply(this,arguments)}catch(w){_.cl(w)}}:q};
_.cl=function(q){var w=_.hP("yt.logging.errors.log");w?w(q,"ERROR",void 0,void 0,void 0,void 0,void 0):(w=_.Et("ERRORS",[]),w.push([q,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.g_("ERRORS",w));X07(q)};
_.jZ=function(q,w,u,y,e){var t=_.hP("yt.logging.errors.log");t?t(q,"WARNING",w,u,y,void 0,e):(t=_.Et("ERRORS",[]),t.push([q,"WARNING",w,u,y,void 0,e]),_.g_("ERRORS",t))};
Gd4=function(q,w){w=q.split(w);for(var u={},y=0,e=w.length;y<e;y++){var t=w[y].split("=");if(t.length===1&&t[0]||t.length===2)try{var X=FMs(t[0]||""),G=FMs(t[1]||"");if(X in u){var n=u[X];Array.isArray(n)?_.yF(n,G):u[X]=[n,G]}else u[X]=G}catch(U){var N=U,Q=t[0],I=String(Gd4);N.args=[{key:Q,value:t[1],query:q,method:n$f===I?"unchanged":I}];HJ4.hasOwnProperty(Q)||_.jZ(N)}}return u};
WM4=function(q){var w=[];_.db.forEach(q,function(u,y){var e=_.lo(y);_.L4(Array.isArray(u)?u:[u],function(t){t==""?w.push(e):w.push(e+"="+_.lo(t))})});
return w.join("&")};
_.MZ=function(q){q.charAt(0)==="?"&&(q=q.substring(1));return Gd4(q,"&")};
_.K4=function(q){return q.indexOf("?")!==-1?(q=(q||"").split("#")[0],q=q.split("?",2),_.MZ(q.length>1?q[1]:q[0])):{}};
_.Bl=function(q,w){return svJ(q,w||{},!0)};
NAJ=function(q,w){return svJ(q,w||{},!1)};
svJ=function(q,w,u){var y=q.split("#",2);q=y[0];y=y.length>1?"#"+y[1]:"";var e=q.split("?",2);q=e[0];e=_.MZ(e[1]||"");for(var t in w)if(u||!_.db.containsKey(e,t))e[t]=w[t];return _.xw(q,e)+y};
yV=function(q){if(!w)var w=window.location.href;var u=_.qu(q)[1]||null,y=_.w$(q);return u&&y?u4(q,w):y?_.w$(w)===y&&(Number(_.qu(w)[4]||null)||null)===(Number(_.qu(q)[4]||null)||null):!0};
_.IOs=function(q){q=Qvz(q);return q===null?!1:q[0]==="com"&&q[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Qvz=function(q){q=_.w$(q);return q!==null?q.split(".").reverse():null};
FMs=function(q){return q&&q.match(iJo)?q:ev(q)};
_.kF=function(q){return new r2c(q)};
_.tG=function(){Ubu||(Ubu=new TA6);return Ubu};
dbu=function(q){var w=_.PG,u,y;_.F(function(e){u=_.tG();return(y=u.resolve(_.kF(w)))?(q(y),e.return(Promise.resolve(y))):e.return(u.resolve(new CV4(w)).then(function(t){q(t);return t}))})};
_.T=function(q){q=Xc(q);return typeof q==="string"&&q==="false"?!1:!!q};
_.Fc=function(q,w){q=Xc(q);return q===void 0&&w!==void 0?w:Number(q||0)};
OJJ=function(q){q=Xc(q);return Array.isArray(q)?_.or(q,function(w){return Number(w||0)}):[Number(q||0)]};
_.GQ=function(q){q=Xc(q);return q!==void 0?String(q):""};
_.nv=function(q){q=Xc(q);return Array.isArray(q)?_.or(q,function(w){return String(w||"")}):[String(q||"")]};
o$H=function(){return _.Et("EXPERIMENTS_TOKEN","")};
Xc=function(q){return _.Et("EXPERIMENT_FLAGS",{})[q]};
VlH=function(){for(var q=[],w=_.Et("EXPERIMENTS_FORCED_FLAGS",{}),u=_.P(Object.keys(w)),y=u.next();!y.done;y=u.next())y=y.value,q.push({key:y,value:String(w[y])});u=_.Et("EXPERIMENT_FLAGS",{});y=_.P(Object.keys(u));for(var e=y.next();!e.done;e=y.next())e=e.value,e.startsWith("force_")&&w[e]===void 0&&q.push({key:e,value:String(u[e])});return q};
mbf=function(){if(!fOJ)return null;var q=fOJ();return"open"in q?q:null};
_.A2j=function(q){switch(_.HG(q)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.HG=function(q){return q&&"status"in q?q.status:-1};
_.WG=function(q,w){typeof q==="function"&&(q=_.SZ(q));return window.setTimeout(q,w)};
_.s8=function(q,w){typeof q==="function"&&(q=_.SZ(q));return window.setInterval(q,w)};
_.Nu=function(q){window.clearTimeout(q)};
z$u=function(q){q=_.K4(q);for(var w=_.P(J2s),u=w.next();!u.done;u=w.next())if(q[u.value]!==void 0)return!0;return!1};
ZJM=function(q,w,u,y,e,t,X,G){u=u===void 0?"GET":u;y=y===void 0?"":y;G=G===void 0?!1:G;var n=mbf();if(!n)return null;var N=function(){(n&&"readyState"in n?n.readyState:0)===4&&w&&_.SZ(w)(n)};
"onloadend"in n?n.addEventListener("loadend",N,!1):n.onreadystatechange=N;_.T("debug_forward_web_query_parameters")&&(q=aO6(q,window.location.search));n.open(u,q,!0);t&&(n.responseType=t);X&&(n.withCredentials=!0);u=u==="POST"&&(window.FormData===void 0||!(y instanceof FormData));if(e=DbM(q,e))for(var Q in e)n.setRequestHeader(Q,e[Q]),"content-type"===Q.toLowerCase()&&(u=!1);u&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(G&&"setAttributionReporting"in XMLHttpRequest.prototype){q=
{eventSourceEligible:!0,triggerEligible:!1};try{n.setAttributionReporting(q)}catch(I){_.jZ(I)}}n.send(y);return n};
DbM=function(q,w){w=w===void 0?{}:w;var u=yV(q),y=_.Et("INNERTUBE_CLIENT_NAME"),e=_.T("web_ajax_ignore_global_headers_if_set"),t;for(t in p0y){var X=_.Et(p0y[t]),G=t==="X-Goog-AuthUser"||t==="X-Goog-PageId";t!=="X-Goog-Visitor-Id"||X||(X=_.Et("VISITOR_DATA"));var n;if(!(n=!X)){if(!(n=u||(_.w$(q)?!1:!0))){n=q;var N;if(N=_.T("add_auth_headers_to_remarketing_google_dot_com_ping")&&t==="Authorization"&&(y==="TVHTML5"||y==="TVHTML5_UNPLUGGED"||y==="TVHTML5_SIMPLY"))N=Qvz(n),N=N===null?!1:N[1]==="google"?
!0:N[2]==="google"?N[0]==="au"&&N[1]==="com"?!0:N[0]==="uk"&&N[1]==="co"?!0:!1:!1;N&&(n=_.QV(n)||"",n=n.split("/"),n="/"+(n.length>1?n[1]:""),N=n==="/pagead");n=N?!0:!1}n=!n}n||e&&w[t]!==void 0||y==="TVHTML5_UNPLUGGED"&&G||(w[t]=X)}"X-Goog-EOM-Visitor-Id"in w&&"X-Goog-Visitor-Id"in w&&delete w["X-Goog-Visitor-Id"];if(u||!_.w$(q))w["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(u||!_.w$(q)){try{var Q=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(I){}Q&&(w["X-YouTube-Time-Zone"]=
Q)}document.location.hostname.endsWith("youtubeeducation.com")||!u&&_.w$(q)||(w["X-YouTube-Ad-Signals"]=WM4($b4()));return w};
_.v$l=function(q,w){var u=_.w$(q);_.T("debug_handle_relative_url_for_query_forward_killswitch")||!u&&yV(q)&&(u=document.location.hostname);var y=_.QV(q);y=(u=u&&(u.endsWith("youtube.com")||u.endsWith("youtube-nocookie.com")))&&y&&y.startsWith("/api/");if(!u||y)return q;var e=_.MZ(w),t={};_.L4(J2s,function(X){e[X]&&(t[X]=e[X])});
return NAJ(q,t)};
bJM=function(q,w){w.method="POST";w.postParams||(w.postParams={});return _.I2(q,w)};
Y4o=function(q,w){var u=_.Et("XSRF_FIELD_NAME"),y;w.headers&&(y=w.headers["Content-Type"]);return!w.excludeXsrf&&(!_.w$(q)||w.withCredentials||_.w$(q)===document.location.hostname)&&w.method==="POST"&&(!y||y==="application/x-www-form-urlencoded")&&!(w.postParams&&w.postParams[u])};
_.I2=function(q,w){var u=w.format||"JSON";q=g$u(q,w);var y=E$f(q,w),e=!1,t=R$o(q,function(n){if(!e){e=!0;G&&_.Nu(G);var N=_.A2j(n),Q=null,I=400<=n.status&&n.status<500,U=500<=n.status&&n.status<600;if(N||I||U)Q=c2H(q,u,n,w.convertToSafeHtml);N&&(N=S4o(u,n,Q));Q=Q||{};I=w.context||_.uc;N?w.onSuccess&&w.onSuccess.call(I,n,Q):w.onError&&w.onError.call(I,n,Q);w.onFinish&&w.onFinish.call(I,n,Q)}},w.method,y,w.headers,w.responseType,w.withCredentials);
y=w.timeout||0;if(w.onTimeout&&y>0){var X=w.onTimeout;var G=_.WG(function(){e||(e=!0,t.abort(),_.Nu(G),X.call(w.context||_.uc,t))},y)}return t};
g$u=function(q,w){w.includeDomain&&(q=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+q);var u=_.Et("XSRF_FIELD_NAME");if(w=w.urlParams)w[u]&&delete w[u],q=_.Bl(q,w);return q};
E$f=function(q,w){var u=_.Et("XSRF_FIELD_NAME"),y=_.Et("XSRF_TOKEN"),e=w.postBody||"",t=w.postParams;Y4o(q,w)&&(t||(t={}),t[u]=y);(_.T("ajax_parse_query_data_only_when_filled")&&t&&Object.keys(t).length>0||t)&&typeof e==="string"&&(e=_.MZ(e),_.db.extend(e,t),e=w.postBodyFormat&&w.postBodyFormat==="JSON"?JSON.stringify(e):_.i4(e));t=e||t&&!_.db.isEmpty(t);!h$u&&t&&w.method!=="POST"&&(h$u=!0,_.cl(Error("Gc")));return e};
c2H=function(q,w,u,y){var e=null;switch(w){case "JSON":try{var t=u.responseText}catch(X){throw y=Error("Hc"),y.params=q,_.jZ(y),X;}q=u.getResponseHeader("Content-Type")||"";t&&q.indexOf("json")>=0&&(t.substring(0,5)===")]}'\n"&&(t=t.substring(5)),e=JSON.parse(t));break;case "XML":if(q=(q=u.responseXML)?jvf(q):null)e={},_.L4(q.getElementsByTagName("*"),function(X){e[X.tagName]=lOf(X)})}y&&LMs(e);
return e};
LMs=function(q){if(_.er(q))for(var w in q)w==="html_content"||Xl(w,"_html")?q[w]=mx(q[w]):LMs(q[w])};
S4o=function(q,w,u){if(w&&w.status===204)return!0;switch(q){case "JSON":return!!u;case "XML":return Number(u&&u.return_code)===0;case "RAW":return!0;default:return!!u}};
jvf=function(q){return q?(q=("responseXML"in q?q.responseXML:q).getElementsByTagName("root"))&&q.length>0?q[0]:null:null};
lOf=function(q){var w="";_.L4(q.childNodes,function(u){w+=u.nodeValue});
return w};
Mll=function(q){if(q.name==="JavaException")return!0;q=q.stack;return q.includes("chrome://")||q.includes("-extension://")||q.includes("webkit-masked-url://")};
KMs=function(q){if(!q.stack)return!0;var w=!q.stack.includes("\n");return w&&q.stack.includes("ErrorType: ")||w&&q.stack.includes("Anonymous function (Unknown script")||q.stack.toLowerCase()==="not available"||q.fileName==="user-script"||q.fileName.startsWith("user-script:")?!0:!1};
_.r$=function(q){_.VG.call(this);this.JSC$8343_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!q};
xbM=function(q,w){var u=q.length,y=0,e=function(){return q.charCodeAt(y++)};
do{var t=BAH(e);if(t===Infinity)break;var X=t>>3;switch(t&7){case 0:t=BAH(e);if(X===w)return t;break;case 1:if(X===w)return;y+=8;break;case 2:t=BAH(e);if(X===w)return q.substr(y,t);y+=t;break;case 5:if(X===w)return;y+=4;break;default:return}}while(y<u)};
BAH=function(q){var w=q(),u=w&127;if(w<128)return u;w=q();u|=(w&127)<<7;if(w<128)return u;w=q();u|=(w&127)<<14;if(w<128)return u;w=q();return w<128?u|(w&127)<<21:Infinity};
wfJ=function(q,w,u,y){if(q)if(Array.isArray(q)){var e=y;for(y=0;y<q.length&&!(q[y]&&(e+=qMf(y,q[y],w,u),e>500));y++);y=e}else if(typeof q==="object")for(e in q){if(q[e]){var t=e;var X=q[e],G=w,n=u;t=typeof X!=="string"||t!=="clickTrackingParams"&&t!=="trackingParams"?0:(X=xbM(atob(X.replace(/-/g,"+").replace(/_/g,"/")),2))?qMf(t+".ve",X,G,n):0;y+=t;y+=qMf(e,q[e],w,u);if(y>500)break}}else u[w]=U8(q),y+=u[w].length;else u[w]=U8(q),y+=u[w].length;return y};
qMf=function(q,w,u,y){u+="."+q;q=U8(w);y[u]=q;return u.length+q.length};
U8=function(q){try{return(typeof q==="string"?q:String(JSON.stringify(q))).substr(0,500)}catch(w){return"unable to serialize "+typeof q+" ("+w.message+")"}};
ubz=function(q){switch(q){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}};
_.Cv=function(q,w,u,y,e){_.TQ.set(q,w,{maxAge:u,path:"/",domain:y===void 0?"youtube.com":y,secure:e===void 0?!1:e})};
_.ypy=function(q,w,u){_.TQ.remove(q,w===void 0?"/":w,u===void 0?"youtube.com":u)};
_.d$=function(){if(_.T("embeds_web_enable_cookie_detection_fix")){if(!_.uc.navigator.cookieEnabled)return!1}else if(!_.TQ.isEnabled())return!1;if(!_.TQ.isEmpty())return!0;_.T("embeds_web_enable_cookie_detection_fix")?_.TQ.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.TQ.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.TQ.get("TESTCOOKIESENABLED")!=="1")return!1;_.TQ.remove("TESTCOOKIESENABLED");return!0};
eUH=function(){var q=_.uc.navigator;return q?q.connection:void 0};
k6s=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(q){}};
_.P9H=function(){var q=eUH();if(q){var w=tpy[q.type||"unknown"]||"CONN_UNKNOWN";q=tpy[q.effectiveType||"unknown"]||"CONN_UNKNOWN";w==="CONN_CELLULAR_UNKNOWN"&&q!=="CONN_UNKNOWN"&&(w=q);if(w!=="CONN_UNKNOWN")return w;if(q!=="CONN_UNKNOWN")return q}};
FHs=function(){var q=eUH();if(q!=null&&q.effectiveType)return Xfu.hasOwnProperty(q.effectiveType)?Xfu[q.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.VV=function(){try{return _.O8(),!0}catch(q){return!1}};
_.O8=function(q){if(_.Et("DATASYNC_ID")!==void 0)return _.Et("DATASYNC_ID");throw new _.fv("Datasync ID not set",q===void 0?"unknown":q);};
_.mI=function(q){this.mechanism=q};
AG=function(q){this.mechanism=q};
JG=function(q){this.storage_=q;this.cachedIsStorageAvailable_=null};
G6J=function(){var q=null;try{q=_.uc.localStorage||null}catch(w){}JG.call(this,q)};
nGu=function(){var q=null;try{q=_.uc.sessionStorage||null}catch(w){}JG.call(this,q)};
zQ=function(q,w){this.mechanism_=q;this.JSC$8445_prefix_=w+"::"};
_.HN4=function(q){var w=new G6J;return w.isAvailable()?q?new zQ(w,q):w:null};
_.WHu=function(q){var w=new nGu;return w.isAvailable()?q?new zQ(w,q):w:null};
N1y=function(){var q;return(q=sxj())==null?void 0:q.get("LAST_RESULT_ENTRY_KEY",!0)};
_.Z7=function(q){Qxf||(_.a2?_.a2.logError(q):(_.D7.push({type:"ERROR",payload:q}),_.D7.length>10&&_.D7.shift()))};
pv=function(q,w){Qxf||(_.a2?_.a2.logEvent(q,w):(_.D7.push({type:"EVENT",eventType:q,payload:w}),_.D7.length>10&&_.D7.shift()))};
$F=function(q){if(q.indexOf(":")>=0)throw Error("Oc");};
vG=function(q){return q.substr(0,q.indexOf(":"))||q};
rp7=function(){return(IBM||iNc)&&b4("applewebkit")&&!b4("version")&&(!b4("safari")||b4("gsa/"))};
b4=function(q){var w=_.QM();return w?w.toLowerCase().indexOf(q)>=0:!1};
C9c=function(q,w,u,y){w=vG(w);var e=q instanceof Error?q:Error("Pc`"+q);if(e instanceof YF)return e;q={objectStoreNames:u,dbName:w,dbVersion:y};if(e.name==="QuotaExceededError")return new YF("QUOTA_EXCEEDED",q);if(_.g$&&e.name==="UnknownError")return new YF("QUOTA_MAYBE_EXCEEDED",q);if(e instanceof U4c)return new YF("MISSING_INDEX",Object.assign({},q,{objectStore:e.objectStore,index:e.index}));if(e.name==="InvalidStateError"&&T14.some(function(t){return e.message.includes(t)}))return new YF("EXECUTE_TRANSACTION_ON_CLOSED_DB",
q);
if(e.name==="AbortError")return new YF("UNKNOWN_ABORT",q,e.message);e.args=[Object.assign({},q,{name:"IdbError",originalName:e.name})];e.level="WARNING";return e};
E8=function(q,w,u){var y=N1y();return new YF("IDB_NOT_SUPPORTED",{context:{caller:q,publicName:w,version:u,hasSucceededOnce:y==null?void 0:y.hasSucceededOnce}})};
d4l=function(q){if(!q)throw Error();throw q;};
ONH=function(q){return q};
oGs=function(q,w,u){var y=function(){try{q.removeEventListener("success",e),q.removeEventListener("error",t)}catch(X){}},e=function(){w(q.result);
y()},t=function(){u(q.error);
y()};
q.addEventListener("success",e);q.addEventListener("error",t)};
Vpo=function(q){return new Promise(function(w,u){oGs(q,w,u)})};
Sv=function(q){return new R2(new cG(function(w,u){oGs(q,w,u)}))};
fBH=function(q,w){return new R2(new cG(function(u,y){var e=function(){var t=q?w(q):null;t?t.then(function(X){q=X;e()},y):u()};
e()}))};
ApM=function(q,w,u){return new Promise(function(y,e){var t=w!==void 0?self.indexedDB.open(q,w):self.indexedDB.open(q);var X=u.blocked,G=u.blocking,n=u.terminated,N=u.upgrade,Q=u.closed,I,U=function(){I||(I=new hG(t.result,{closed:Q}));return I};
t.addEventListener("upgradeneeded",function(d){try{if(d.newVersion===null)throw Error("Uc");if(t.transaction===null)throw Error("Vc");d.dataLoss&&d.dataLoss!=="none"&&pv("IDB_DATA_CORRUPTED",{reason:d.dataLossMessage||"unknown reason",dbName:vG(q)});var V=U(),J=new m44(t.transaction);N&&N(V,function(a){return d.oldVersion<a&&d.newVersion>=a},J);
J.done.catch(function(a){e(a)})}catch(a){e(a)}});
t.addEventListener("success",function(){var d=t.result;G&&d.addEventListener("versionchange",function(){G(U())});
d.addEventListener("close",function(){pv("IDB_UNEXPECTEDLY_CLOSED",{dbName:vG(q),dbVersion:d.version});n&&n()});
y(U())});
t.addEventListener("error",function(){e(t.error)});
X&&t.addEventListener("blocked",function(){X()})})};
JpH=function(q,w,u){u=u===void 0?{}:u;return ApM(q,w,u)};
_.l4=function(q,w){w=w===void 0?{}:w;var u,y,e,t;return _.F(function(X){if(X.nextAddress==1)return _.tD(X,2),u=self.indexedDB.deleteDatabase(q),y=w,(e=y.blocked)&&u.addEventListener("blocked",function(){e()}),_.H(X,Vpo(u),4);
if(X.nextAddress!=2)return _.jv(X,0);t=_.nm(X);throw C9c(t,q,"",-1);})};
aBu=function(q,w){var u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,_.Lv(zUl,w),2);u=y.yieldResult;return y.return(_.Mu(u,["databases"],{enableRetries:!0,mode:"readwrite"},function(e){var t=e.objectStore("databases");return t.get(q.actualName).then(function(X){if(X?q.actualName!==X.actualName||q.publicName!==X.publicName||q.userIdentifier!==X.userIdentifier:1)return t.put(q).then(function(){})})}))})};
_.Kv=function(q,w){var u;return _.F(function(y){if(y.nextAddress==1)return q?_.H(y,_.Lv(zUl,w),2):y.return();u=y.yieldResult;return y.return(u.delete("databases",q))})};
_.D4z=function(q,w){var u,y;return _.F(function(e){return e.nextAddress==1?(u=[],_.H(e,_.Lv(zUl,w),2)):e.nextAddress!=3?(y=e.yieldResult,_.H(e,_.Mu(y,["databases"],{enableRetries:!0,mode:"readonly"},function(t){u.length=0;return BG(t.objectStore("databases"),{},function(X){q(X.getValue())&&u.push(X.getValue());return X.continue()})}),3)):e.return(u)})};
ZNH=function(q,w){return _.D4z(function(u){return u.publicName===q&&u.userIdentifier!==void 0},w)};
vGH=function(){var q,w,u,y;return _.F(function(e){switch(e.nextAddress){case 1:q=N1y();if((w=q)==null?0:w.hasSucceededOnce)return e.return(!0);var t;if(t=pfo)t=/WebKit\/([0-9]+)/.exec(_.QM()),t=!!(t&&parseInt(t[1],10)>=600);t&&(t=/WebKit\/([0-9]+)/.exec(_.QM()),t=!(t&&parseInt(t[1],10)>=602));if(t||xF)return e.return(!1);try{if(u=self,!(u.indexedDB&&u.IDBIndex&&u.IDBKeyRange&&u.IDBObjectStore))return e.return(!1)}catch(X){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);
_.tD(e,2);y={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.H(e,aBu(y,$4M),4);case 4:return _.H(e,_.Kv("yt-idb-test-do-not-use",$4M),5);case 5:return e.return(!0);case 2:return _.nm(e),e.return(!1)}})};
YMc=function(){if(bNH!==void 0)return bNH;Qxf=!0;return bNH=vGH().then(function(q){Qxf=!1;var w;if((w=sxj())!=null&&w.expiringStorage_){var u;w={hasSucceededOnce:((u=N1y())==null?void 0:u.hasSucceededOnce)||q};var y;(y=sxj())==null||y.set("LAST_RESULT_ENTRY_KEY",w,2592E3,!0)}return q})};
qQ=function(){return _.hP("ytglobal.idbToken_")||void 0};
_.uY=function(){var q=qQ();return q?Promise.resolve(q):YMc().then(function(w){(w=w?$4M:void 0)&&_.wr("ytglobal.idbToken_",w);return w})};
gGj=function(q){if(!_.VV())throw q=new YF("AUTH_INVALID",{dbName:q}),_.Z7(q),q;var w=_.O8();return{actualName:q+":"+w,publicName:q,userIdentifier:w}};
EGo=function(q,w,u,y){var e,t,X,G,n,N;return _.F(function(Q){switch(Q.nextAddress){case 1:return t=(e=Error().stack)!=null?e:"",_.H(Q,_.uY(),2);case 2:X=Q.yieldResult;if(!X)throw G=E8("openDbImpl",q,w),_.T("ytidb_async_stack_killswitch")||(G.stack=G.stack+"\n"+t.substring(t.indexOf("\n")+1)),_.Z7(G),G;$F(q);n=u?{actualName:q,publicName:q,userIdentifier:void 0}:gGj(q);_.tD(Q,3);return _.H(Q,aBu(n,X),5);case 5:return _.H(Q,JpH(n.actualName,w,y),6);case 6:return Q.return(Q.yieldResult);case 3:return N=
_.nm(Q),_.tD(Q,7),_.H(Q,_.Kv(n.actualName,X),9);case 9:_.jv(Q,8);break;case 7:_.nm(Q);case 8:throw N;}})};
RUz=function(q,w,u){u=u===void 0?{}:u;return EGo(q,w,!1,u)};
cp7=function(q,w,u){u=u===void 0?{}:u;return EGo(q,w,!0,u)};
SMu=function(q,w){w=w===void 0?{}:w;var u,y;return _.F(function(e){if(e.nextAddress==1)return _.H(e,_.uY(),2);if(e.nextAddress!=3){u=e.yieldResult;if(!u)return e.return();$F(q);y=gGj(q);return _.H(e,_.l4(y.actualName,w),3)}return _.H(e,_.Kv(y.actualName,u),0)})};
hUM=function(q,w,u){q=q.map(function(y){return _.F(function(e){return e.nextAddress==1?_.H(e,_.l4(y.actualName,w),2):_.H(e,_.Kv(y.actualName,u),0)})});
return Promise.all(q).then(function(){})};
jxu=function(q){var w=w===void 0?{}:w;var u,y;return _.F(function(e){if(e.nextAddress==1)return _.H(e,_.uY(),2);if(e.nextAddress!=3){u=e.yieldResult;if(!u)return e.return();$F(q);return _.H(e,ZNH(q,u),3)}y=e.yieldResult;return _.H(e,hUM(y,w,u),0)})};
lBj=function(q,w){w=w===void 0?{}:w;var u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,_.uY(),2);if(y.nextAddress!=3){u=y.yieldResult;if(!u)return y.return();$F(q);return _.H(y,_.l4(q,w),3)}return _.H(y,_.Kv(q,u),0)})};
y_=function(q,w){return LHj(q,w)};
KHu=function(q){return _.Lv(Mpo(),q)};
B1J=function(q,w,u,y){var e,t,X;return _.F(function(G){switch(G.nextAddress){case 1:return e={config:q,hashData:w,timestamp:y!==void 0?y:(0,_.eW)()},_.H(G,KHu(u),2);case 2:return t=G.yieldResult,_.H(G,t.clear("hotConfigStore"),3);case 3:return _.H(G,t.put("hotConfigStore",e),4);case 4:return X=G.yieldResult,G.return(X)}})};
x4M=function(q,w,u,y,e){var t,X,G;return _.F(function(n){switch(n.nextAddress){case 1:return t={config:q,hashData:w,configData:u,timestamp:e!==void 0?e:(0,_.eW)()},_.H(n,KHu(y),2);case 2:return X=n.yieldResult,_.H(n,X.clear("coldConfigStore"),3);case 3:return _.H(n,X.put("coldConfigStore",t),4);case 4:return G=n.yieldResult,n.return(G)}})};
qCj=function(q){var w,u;return _.F(function(y){return y.nextAddress==1?_.H(y,KHu(q),2):y.nextAddress!=3?(w=y.yieldResult,u=void 0,_.H(y,_.Mu(w,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(e){return _.kZ(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(t){u=t.getValue()})}),3)):y.return(u)})};
wwu=function(q){var w,u;return _.F(function(y){return y.nextAddress==1?_.H(y,KHu(q),2):y.nextAddress!=3?(w=y.yieldResult,u=void 0,_.H(y,_.Mu(w,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(e){return _.kZ(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(t){u=t.getValue()})}),3)):y.return(u)})};
u4y=function(){return _.F(function(q){return _.H(q,jxu("ytGcfConfig"),0)})};
y7z=function(){return"INNERTUBE_API_KEY"in _.Yw&&"INNERTUBE_API_VERSION"in _.Yw};
_.t6=function(){return{innertubeApiKey:_.Et("INNERTUBE_API_KEY"),innertubeApiVersion:_.Et("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Et("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Et("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Et("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Et("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Et("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Et("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Et("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.RX("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.RX("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Et("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.GM7=function(q){var w={client:{hl:q.innertubeContextHostLanguage,gl:q.innertubeContextGeoLocation,clientName:q.innertubeContextClientName,clientVersion:q.innertubeContextClientVersion,configInfo:q.innertubeContextClientConfigInfo}};navigator.userAgent&&(w.client.userAgent=String(navigator.userAgent));var u=_.uc.devicePixelRatio;u&&u!=1&&(w.client.screenDensityFloat=String(u));u=o$H();u!==""&&(w.client.experimentsToken=u);u=VlH();u.length>0&&(w.request={internalExperimentFlags:u});eKf(q,void 0,w);
kMf(void 0,w);tBj(void 0,w);Pyo(q,void 0,w);XwH(void 0,w);_.T("start_client_gcf")&&FRM(void 0,w);_.Et("DELEGATED_SESSION_ID")&&!_.T("pageid_as_header_web")&&(w.user={onBehalfOfUser:_.Et("DELEGATED_SESSION_ID")});!_.T("fill_delegate_context_in_gel_killswitch")&&(q=_.Et("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(w.user=Object.assign({},w.user,{serializedDelegationContext:q}));q=_.Et("INNERTUBE_CONTEXT");var y;if(_.T("enable_persistent_device_token")&&(q==null?0:(y=q.client)==null?0:y.rolloutToken)){var e;
w.client.rolloutToken=q==null?void 0:(e=q.client)==null?void 0:e.rolloutToken}y=Object;e=y.assign;q=w.client;u={};for(var t=_.P(Object.entries(_.MZ(_.Et("DEVICE","")))),X=t.next();!X.done;X=t.next()){var G=_.P(X.value);X=G.next().value;G=G.next().value;X==="cbrand"?u.deviceMake=G:X==="cmodel"?u.deviceModel=G:X==="cbr"?u.browserName=G:X==="cbrver"?u.browserVersion=G:X==="cos"?u.osName=G:X==="cosver"?u.osVersion=G:X==="cplatform"&&(u.platform=G)}w.client=e.call(y,q,u);return w};
eKf=function(q,w,u){q=q.innertubeContextClientName;if(q==="WEB"||q==="MWEB"||q===1||q===2)if(w){u=_.PT(w,n14,96)||new n14;var y=Hql();y=Object.keys(WRc).indexOf(y);y=y===-1?null:y;y!==null&&_.Xo(u,3,y);_.e9(w,96,u)}else u&&(u.client.mainAppWebInfo=(y=u.client.mainAppWebInfo)!=null?y:{},u.client.mainAppWebInfo.webDisplayMode=Hql())};
kMf=function(q,w){var u=_.hP("yt.embedded_player.embed_url");u&&(q?(w=_.PT(q,sDz,7)||new sDz,_.sf(w,4,u),_.e9(q,7,w)):w&&(w.thirdParty={embedUrl:u}))};
tBj=function(q,w){var u;if(_.T("web_log_memory_total_kbytes")&&((u=_.uc.navigator)==null?0:u.deviceMemory)){var y;u=(y=_.uc.navigator)==null?void 0:y.deviceMemory;q?_.Fo(q,95,aK(u*1E6)):w&&(w.client.memoryTotalKbytes=""+u*1E6)}};
Pyo=function(q,w,u){if(q.appInstallData)if(w){var y;u=(y=_.PT(w,GP,62))!=null?y:new GP;_.sf(u,6,q.appInstallData);_.e9(w,62,u)}else u&&(u.client.configInfo=u.client.configInfo||{},u.client.configInfo.appInstallData=q.appInstallData)};
XwH=function(q,w){var u=_.P9H();u&&(q?_.Xo(q,61,Nku[u]):w&&(w.client.connectionType=u));_.T("web_log_effective_connection_type")&&(u=FHs())&&(q?_.Xo(q,94,QDu[u]):w&&(w.client.effectiveConnectionType=u))};
_.r7l=function(q,w,u){u=u===void 0?{}:u;var y={};_.Et("EOM_VISITOR_DATA")?y={"X-Goog-EOM-Visitor-Id":_.Et("EOM_VISITOR_DATA")}:y={"X-Goog-Visitor-Id":u.visitorData||_.Et("VISITOR_DATA","")};if(w&&w.includes("www.youtube-nocookie.com"))return y;w=u.authorization||_.Et("AUTHORIZATION");w||(q?w="Bearer "+_.hP("gapi.auth.getToken")().access_token:(I_s.instance||(I_s.instance=new I_s),q=iq7(),_.T("pageid_as_header_web")||delete q["X-Goog-PageId"],y=Object.assign({},y,q)));w&&(y.Authorization=w);return y};
FRM=function(q,w){var u=UUy();if(u){var y=u.coldConfigData,e=u.coldHashData;u=u.hotHashData;if(q){var t;w=(t=_.PT(q,GP,62))!=null?t:new GP;y=_.sf(w,1,y);_.sf(y,3,e).setHotHashData(u);_.e9(q,62,w)}else w&&(w.client.configInfo=w.client.configInfo||{},y&&(w.client.configInfo.coldConfigData=y),e&&(w.client.configInfo.coldHashData=e),u&&(w.client.configInfo.hotHashData=u))}};
ni=function(q){for(var w=q.length;--w>=0;)q[w]=0};
Tks=function(q,w,u,y,e){this.static_tree=q;this.extra_bits=w;this.extra_base=u;this.elems=y;this.max_length=e;this.has_stree=q&&q.length};
Cy4=function(q,w){this.dyn_tree=q;this.max_code=0;this.stat_desc=w};
HT=function(q,w){q.pending_buf[q.pending++]=w&255;q.pending_buf[q.pending++]=w>>>8&255};
sE=function(q,w,u){q.bi_valid>16-u?(q.bi_buf|=w<<q.bi_valid&65535,HT(q,q.bi_buf),q.bi_buf=w>>16-q.bi_valid,q.bi_valid+=u-16):(q.bi_buf|=w<<q.bi_valid&65535,q.bi_valid+=u)};
Q_=function(q,w,u){sE(q,u[w*2],u[w*2+1])};
dUj=function(q,w){var u=0;do u|=q&1,q>>>=1,u<<=1;while(--w>0);return u>>>1};
Oqc=function(q,w,u){var y=Array(16),e=0,t;for(t=1;t<=15;t++)y[t]=e=e+u[t-1]<<1;for(u=0;u<=w;u++)e=q[u*2+1],e!==0&&(q[u*2]=dUj(y[e]++,e))};
o1M=function(q){var w;for(w=0;w<286;w++)q.dyn_ltree[w*2]=0;for(w=0;w<30;w++)q.dyn_dtree[w*2]=0;for(w=0;w<19;w++)q.bl_tree[w*2]=0;q.dyn_ltree[512]=1;q.opt_len=q.static_len=0;q.last_lit=q.matches=0};
VBM=function(q){q.bi_valid>8?HT(q,q.bi_buf):q.bi_valid>0&&(q.pending_buf[q.pending++]=q.bi_buf);q.bi_buf=0;q.bi_valid=0};
f_c=function(q,w,u){VBM(q);HT(q,u);HT(q,~u);Iz.arraySet(q.pending_buf,q.window,w,u,q.pending);q.pending+=u};
mUs=function(q,w,u,y){var e=w*2,t=u*2;return q[e]<q[t]||q[e]===q[t]&&y[w]<=y[u]};
A7c=function(q,w,u){for(var y=q.heap[u],e=u<<1;e<=q.heap_len;){e<q.heap_len&&mUs(w,q.heap[e+1],q.heap[e],q.depth)&&e++;if(mUs(w,y,q.heap[e],q.depth))break;q.heap[u]=q.heap[e];u=e;e<<=1}q.heap[u]=y};
Zqu=function(q,w,u){var y=0;if(q.last_lit!==0){do{var e=q.pending_buf[q.d_buf+y*2]<<8|q.pending_buf[q.d_buf+y*2+1];var t=q.pending_buf[q.l_buf+y];y++;if(e===0)Q_(q,t,w);else{var X=iY[t];Q_(q,X+256+1,w);var G=J7M[X];G!==0&&(t-=zKy[X],sE(q,t,G));e--;X=e<256?rr[e]:rr[256+(e>>>7)];Q_(q,X,u);G=a_M[X];G!==0&&(e-=DUz[X],sE(q,e,G))}}while(y<q.last_lit)}Q_(q,256,w)};
pwo=function(q,w){var u=w.dyn_tree,y=w.stat_desc.static_tree,e=w.stat_desc.has_stree,t=w.stat_desc.elems,X,G=-1;q.heap_len=0;q.heap_max=573;for(X=0;X<t;X++)u[X*2]!==0?(q.heap[++q.heap_len]=G=X,q.depth[X]=0):u[X*2+1]=0;for(;q.heap_len<2;){var n=q.heap[++q.heap_len]=G<2?++G:0;u[n*2]=1;q.depth[n]=0;q.opt_len--;e&&(q.static_len-=y[n*2+1])}w.max_code=G;for(X=q.heap_len>>1;X>=1;X--)A7c(q,u,X);n=t;do X=q.heap[1],q.heap[1]=q.heap[q.heap_len--],A7c(q,u,1),y=q.heap[1],q.heap[--q.heap_max]=X,q.heap[--q.heap_max]=
y,u[n*2]=u[X*2]+u[y*2],q.depth[n]=(q.depth[X]>=q.depth[y]?q.depth[X]:q.depth[y])+1,u[X*2+1]=u[y*2+1]=n,q.heap[1]=n++,A7c(q,u,1);while(q.heap_len>=2);q.heap[--q.heap_max]=q.heap[1];X=w.dyn_tree;n=w.max_code;y=w.stat_desc.static_tree;e=w.stat_desc.has_stree;t=w.stat_desc.extra_bits;var N=w.stat_desc.extra_base,Q=w.stat_desc.max_length,I,U=0;for(I=0;I<=15;I++)q.bl_count[I]=0;X[q.heap[q.heap_max]*2+1]=0;for(w=q.heap_max+1;w<573;w++){var d=q.heap[w];I=X[X[d*2+1]*2+1]+1;I>Q&&(I=Q,U++);X[d*2+1]=I;if(!(d>
n)){q.bl_count[I]++;var V=0;d>=N&&(V=t[d-N]);var J=X[d*2];q.opt_len+=J*(I+V);e&&(q.static_len+=J*(y[d*2+1]+V))}}if(U!==0){do{for(I=Q-1;q.bl_count[I]===0;)I--;q.bl_count[I]--;q.bl_count[I+1]+=2;q.bl_count[Q]--;U-=2}while(U>0);for(I=Q;I!==0;I--)for(d=q.bl_count[I];d!==0;)y=q.heap[--w],y>n||(X[y*2+1]!==I&&(q.opt_len+=(I-X[y*2+1])*X[y*2],X[y*2+1]=I),d--)}Oqc(u,G,q.bl_count)};
$Uf=function(q,w,u){var y,e=-1,t=w[1],X=0,G=7,n=4;t===0&&(G=138,n=3);w[(u+1)*2+1]=65535;for(y=0;y<=u;y++){var N=t;t=w[(y+1)*2+1];++X<G&&N===t||(X<n?q.bl_tree[N*2]+=X:N!==0?(N!==e&&q.bl_tree[N*2]++,q.bl_tree[32]++):X<=10?q.bl_tree[34]++:q.bl_tree[36]++,X=0,e=N,t===0?(G=138,n=3):N===t?(G=6,n=3):(G=7,n=4))}};
v1u=function(q,w,u){var y,e=-1,t=w[1],X=0,G=7,n=4;t===0&&(G=138,n=3);for(y=0;y<=u;y++){var N=t;t=w[(y+1)*2+1];if(!(++X<G&&N===t)){if(X<n){do Q_(q,N,q.bl_tree);while(--X!==0)}else N!==0?(N!==e&&(Q_(q,N,q.bl_tree),X--),Q_(q,16,q.bl_tree),sE(q,X-3,2)):X<=10?(Q_(q,17,q.bl_tree),sE(q,X-3,3)):(Q_(q,18,q.bl_tree),sE(q,X-11,7));X=0;e=N;t===0?(G=138,n=3):N===t?(G=6,n=3):(G=7,n=4)}}};
bqH=function(q){var w=4093624447,u;for(u=0;u<=31;u++,w>>>=1)if(w&1&&q.dyn_ltree[u*2]!==0)return 0;if(q.dyn_ltree[18]!==0||q.dyn_ltree[20]!==0||q.dyn_ltree[26]!==0)return 1;for(u=32;u<256;u++)if(q.dyn_ltree[u*2]!==0)return 1;return 0};
UE=function(q,w,u){q.pending_buf[q.d_buf+q.last_lit*2]=w>>>8&255;q.pending_buf[q.d_buf+q.last_lit*2+1]=w&255;q.pending_buf[q.l_buf+q.last_lit]=u&255;q.last_lit++;w===0?q.dyn_ltree[u*2]++:(q.matches++,w--,q.dyn_ltree[(iY[u]+256+1)*2]++,q.dyn_dtree[(w<256?rr[w]:rr[256+(w>>>7)])*2]++);return q.last_lit===q.lit_bufsize-1};
Ci=function(q,w){q.msg=TP[w];return w};
dr=function(q){for(var w=q.length;--w>=0;)q[w]=0};
OE=function(q){var w=q.state,u=w.pending;u>q.avail_out&&(u=q.avail_out);u!==0&&(Iz.arraySet(q.output,w.pending_buf,w.pending_out,u,q.next_out),q.next_out+=u,w.pending_out+=u,q.total_out+=u,q.avail_out-=u,w.pending-=u,w.pending===0&&(w.pending_out=0))};
fi=function(q,w){var u=q.block_start>=0?q.block_start:-1,y=q.strstart-q.block_start,e=0;if(q.level>0){q.strm.data_type===2&&(q.strm.data_type=bqH(q));pwo(q,q.l_desc);pwo(q,q.d_desc);$Uf(q,q.dyn_ltree,q.l_desc.max_code);$Uf(q,q.dyn_dtree,q.d_desc.max_code);pwo(q,q.bl_desc);for(e=18;e>=3&&q.bl_tree[YCs[e]*2+1]===0;e--);q.opt_len+=3*(e+1)+5+5+4;var t=q.opt_len+3+7>>>3;var X=q.static_len+3+7>>>3;X<=t&&(t=X)}else t=X=y+5;if(y+4<=t&&u!==-1)sE(q,w?1:0,3),f_c(q,u,y);else if(q.strategy===4||X===t)sE(q,2+(w?
1:0),3),Zqu(q,oz,V_);else{sE(q,4+(w?1:0),3);u=q.l_desc.max_code+1;y=q.d_desc.max_code+1;e+=1;sE(q,u-257,5);sE(q,y-1,5);sE(q,e-4,4);for(t=0;t<e;t++)sE(q,q.bl_tree[YCs[t]*2+1],3);v1u(q,q.dyn_ltree,u-1);v1u(q,q.dyn_dtree,y-1);Zqu(q,q.dyn_ltree,q.dyn_dtree)}o1M(q);w&&VBM(q);q.block_start=q.strstart;OE(q.strm)};
mr=function(q,w){q.pending_buf[q.pending++]=w};
A6=function(q,w){q.pending_buf[q.pending++]=w>>>8&255;q.pending_buf[q.pending++]=w&255};
g16=function(q,w){var u=q.max_chain_length,y=q.strstart,e=q.prev_length,t=q.nice_match,X=q.strstart>q.w_size-262?q.strstart-(q.w_size-262):0,G=q.window,n=q.w_mask,N=q.prev,Q=q.strstart+258,I=G[y+e-1],U=G[y+e];q.prev_length>=q.good_match&&(u>>=2);t>q.lookahead&&(t=q.lookahead);do{var d=w;if(G[d+e]===U&&G[d+e-1]===I&&G[d]===G[y]&&G[++d]===G[y+1]){y+=2;for(d++;G[++y]===G[++d]&&G[++y]===G[++d]&&G[++y]===G[++d]&&G[++y]===G[++d]&&G[++y]===G[++d]&&G[++y]===G[++d]&&G[++y]===G[++d]&&G[++y]===G[++d]&&y<Q;);
d=258-(Q-y);y=Q-258;if(d>e){q.match_start=w;e=d;if(d>=t)break;I=G[y+e-1];U=G[y+e]}}}while((w=N[w&n])>X&&--u!==0);return e<=q.lookahead?e:q.lookahead};
zP=function(q){var w=q.w_size,u;do{var y=q.window_size-q.lookahead-q.strstart;if(q.strstart>=w+(w-262)){Iz.arraySet(q.window,q.window,w,w,0);q.match_start-=w;q.strstart-=w;q.block_start-=w;var e=u=q.hash_size;do{var t=q.head[--e];q.head[e]=t>=w?t-w:0}while(--u);e=u=w;do t=q.prev[--e],q.prev[e]=t>=w?t-w:0;while(--u);y+=w}if(q.strm.avail_in===0)break;e=q.strm;u=q.window;t=q.strstart+q.lookahead;var X=e.avail_in;X>y&&(X=y);X===0?u=0:(e.avail_in-=X,Iz.arraySet(u,e.input,e.next_in,X,t),e.state.wrap===
1?e.adler=E1M(e.adler,u,X,t):e.state.wrap===2&&(e.adler=J6(e.adler,u,X,t)),e.next_in+=X,e.total_in+=X,u=X);q.lookahead+=u;if(q.lookahead+q.insert>=3)for(y=q.strstart-q.insert,q.ins_h=q.window[y],q.ins_h=(q.ins_h<<q.hash_shift^q.window[y+1])&q.hash_mask;q.insert&&!(q.ins_h=(q.ins_h<<q.hash_shift^q.window[y+3-1])&q.hash_mask,q.prev[y&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=y,y++,q.insert--,q.lookahead+q.insert<3););}while(q.lookahead<262&&q.strm.avail_in!==0)};
RKs=function(q,w){for(var u;;){if(q.lookahead<262){zP(q);if(q.lookahead<262&&w===0)return 1;if(q.lookahead===0)break}u=0;q.lookahead>=3&&(q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+3-1])&q.hash_mask,u=q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart);u!==0&&q.strstart-u<=q.w_size-262&&(q.match_length=g16(q,u));if(q.match_length>=3)if(u=UE(q,q.strstart-q.match_start,q.match_length-3),q.lookahead-=q.match_length,q.match_length<=q.max_lazy_match&&q.lookahead>=3){q.match_length--;
do q.strstart++,q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+3-1])&q.hash_mask,q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart;while(--q.match_length!==0);q.strstart++}else q.strstart+=q.match_length,q.match_length=0,q.ins_h=q.window[q.strstart],q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+1])&q.hash_mask;else u=UE(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++;if(u&&(fi(q,!1),q.strm.avail_out===0))return 1}q.insert=q.strstart<2?q.strstart:2;return w===4?(fi(q,
!0),q.strm.avail_out===0?3:4):q.last_lit&&(fi(q,!1),q.strm.avail_out===0)?1:2};
az=function(q,w){for(var u,y;;){if(q.lookahead<262){zP(q);if(q.lookahead<262&&w===0)return 1;if(q.lookahead===0)break}u=0;q.lookahead>=3&&(q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+3-1])&q.hash_mask,u=q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart);q.prev_length=q.match_length;q.prev_match=q.match_start;q.match_length=2;u!==0&&q.prev_length<q.max_lazy_match&&q.strstart-u<=q.w_size-262&&(q.match_length=g16(q,u),q.match_length<=5&&(q.strategy===1||q.match_length===3&&
q.strstart-q.match_start>4096)&&(q.match_length=2));if(q.prev_length>=3&&q.match_length<=q.prev_length){y=q.strstart+q.lookahead-3;u=UE(q,q.strstart-1-q.prev_match,q.prev_length-3);q.lookahead-=q.prev_length-1;q.prev_length-=2;do++q.strstart<=y&&(q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+3-1])&q.hash_mask,q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart);while(--q.prev_length!==0);q.match_available=0;q.match_length=2;q.strstart++;if(u&&(fi(q,!1),q.strm.avail_out===0))return 1}else if(q.match_available){if((u=
UE(q,0,q.window[q.strstart-1]))&&fi(q,!1),q.strstart++,q.lookahead--,q.strm.avail_out===0)return 1}else q.match_available=1,q.strstart++,q.lookahead--}q.match_available&&(UE(q,0,q.window[q.strstart-1]),q.match_available=0);q.insert=q.strstart<2?q.strstart:2;return w===4?(fi(q,!0),q.strm.avail_out===0?3:4):q.last_lit&&(fi(q,!1),q.strm.avail_out===0)?1:2};
c7j=function(q,w){for(var u,y,e,t=q.window;;){if(q.lookahead<=258){zP(q);if(q.lookahead<=258&&w===0)return 1;if(q.lookahead===0)break}q.match_length=0;if(q.lookahead>=3&&q.strstart>0&&(y=q.strstart-1,u=t[y],u===t[++y]&&u===t[++y]&&u===t[++y])){for(e=q.strstart+258;u===t[++y]&&u===t[++y]&&u===t[++y]&&u===t[++y]&&u===t[++y]&&u===t[++y]&&u===t[++y]&&u===t[++y]&&y<e;);q.match_length=258-(e-y);q.match_length>q.lookahead&&(q.match_length=q.lookahead)}q.match_length>=3?(u=UE(q,1,q.match_length-3),q.lookahead-=
q.match_length,q.strstart+=q.match_length,q.match_length=0):(u=UE(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++);if(u&&(fi(q,!1),q.strm.avail_out===0))return 1}q.insert=0;return w===4?(fi(q,!0),q.strm.avail_out===0?3:4):q.last_lit&&(fi(q,!1),q.strm.avail_out===0)?1:2};
SCH=function(q,w){for(var u;;){if(q.lookahead===0&&(zP(q),q.lookahead===0)){if(w===0)return 1;break}q.match_length=0;u=UE(q,0,q.window[q.strstart]);q.lookahead--;q.strstart++;if(u&&(fi(q,!1),q.strm.avail_out===0))return 1}q.insert=0;return w===4?(fi(q,!0),q.strm.avail_out===0?3:4):q.last_lit&&(fi(q,!1),q.strm.avail_out===0)?1:2};
DT=function(q,w,u,y,e){this.good_length=q;this.max_lazy=w;this.nice_length=u;this.max_chain=y;this.func=e};
hKj=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 Iz.Buf16(1146);this.dyn_dtree=new Iz.Buf16(122);this.bl_tree=new Iz.Buf16(78);dr(this.dyn_ltree);dr(this.dyn_dtree);dr(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new Iz.Buf16(16);this.heap=new Iz.Buf16(573);dr(this.heap);this.heap_max=this.heap_len=0;this.depth=new Iz.Buf16(573);dr(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};
jDJ=function(q,w){if(!q||!q.state||w>5||w<0)return q?Ci(q,-2):-2;var u=q.state;if(!q.output||!q.input&&q.avail_in!==0||u.status===666&&w!==4)return Ci(q,q.avail_out===0?-5:-2);u.strm=q;var y=u.last_flush;u.last_flush=w;if(u.status===42)if(u.wrap===2)q.adler=0,mr(u,31),mr(u,139),mr(u,8),u.gzhead?(mr(u,(u.gzhead.text?1:0)+(u.gzhead.hcrc?2:0)+(u.gzhead.extra?4:0)+(u.gzhead.name?8:0)+(u.gzhead.comment?16:0)),mr(u,u.gzhead.time&255),mr(u,u.gzhead.time>>8&255),mr(u,u.gzhead.time>>16&255),mr(u,u.gzhead.time>>
24&255),mr(u,u.level===9?2:u.strategy>=2||u.level<2?4:0),mr(u,u.gzhead.os&255),u.gzhead.extra&&u.gzhead.extra.length&&(mr(u,u.gzhead.extra.length&255),mr(u,u.gzhead.extra.length>>8&255)),u.gzhead.hcrc&&(q.adler=J6(q.adler,u.pending_buf,u.pending,0)),u.gzindex=0,u.status=69):(mr(u,0),mr(u,0),mr(u,0),mr(u,0),mr(u,0),mr(u,u.level===9?2:u.strategy>=2||u.level<2?4:0),mr(u,3),u.status=113);else{var e=8+(u.w_bits-8<<4)<<8;e|=(u.strategy>=2||u.level<2?0:u.level<6?1:u.level===6?2:3)<<6;u.strstart!==0&&(e|=
32);u.status=113;A6(u,e+(31-e%31));u.strstart!==0&&(A6(u,q.adler>>>16),A6(u,q.adler&65535));q.adler=1}if(u.status===69)if(u.gzhead.extra){for(e=u.pending;u.gzindex<(u.gzhead.extra.length&65535)&&(u.pending!==u.pending_buf_size||(u.gzhead.hcrc&&u.pending>e&&(q.adler=J6(q.adler,u.pending_buf,u.pending-e,e)),OE(q),e=u.pending,u.pending!==u.pending_buf_size));)mr(u,u.gzhead.extra[u.gzindex]&255),u.gzindex++;u.gzhead.hcrc&&u.pending>e&&(q.adler=J6(q.adler,u.pending_buf,u.pending-e,e));u.gzindex===u.gzhead.extra.length&&
(u.gzindex=0,u.status=73)}else u.status=73;if(u.status===73)if(u.gzhead.name){e=u.pending;do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>e&&(q.adler=J6(q.adler,u.pending_buf,u.pending-e,e)),OE(q),e=u.pending,u.pending===u.pending_buf_size)){var t=1;break}t=u.gzindex<u.gzhead.name.length?u.gzhead.name.charCodeAt(u.gzindex++)&255:0;mr(u,t)}while(t!==0);u.gzhead.hcrc&&u.pending>e&&(q.adler=J6(q.adler,u.pending_buf,u.pending-e,e));t===0&&(u.gzindex=0,u.status=91)}else u.status=91;if(u.status===
91)if(u.gzhead.comment){e=u.pending;do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>e&&(q.adler=J6(q.adler,u.pending_buf,u.pending-e,e)),OE(q),e=u.pending,u.pending===u.pending_buf_size)){t=1;break}t=u.gzindex<u.gzhead.comment.length?u.gzhead.comment.charCodeAt(u.gzindex++)&255:0;mr(u,t)}while(t!==0);u.gzhead.hcrc&&u.pending>e&&(q.adler=J6(q.adler,u.pending_buf,u.pending-e,e));t===0&&(u.status=103)}else u.status=103;u.status===103&&(u.gzhead.hcrc?(u.pending+2>u.pending_buf_size&&OE(q),
u.pending+2<=u.pending_buf_size&&(mr(u,q.adler&255),mr(u,q.adler>>8&255),q.adler=0,u.status=113)):u.status=113);if(u.pending!==0){if(OE(q),q.avail_out===0)return u.last_flush=-1,0}else if(q.avail_in===0&&(w<<1)-(w>4?9:0)<=(y<<1)-(y>4?9:0)&&w!==4)return Ci(q,-5);if(u.status===666&&q.avail_in!==0)return Ci(q,-5);if(q.avail_in!==0||u.lookahead!==0||w!==0&&u.status!==666){y=u.strategy===2?SCH(u,w):u.strategy===3?c7j(u,w):ZT[u.level].func(u,w);if(y===3||y===4)u.status=666;if(y===1||y===3)return q.avail_out===
0&&(u.last_flush=-1),0;if(y===2&&(w===1?(sE(u,2,3),Q_(u,256,oz),u.bi_valid===16?(HT(u,u.bi_buf),u.bi_buf=0,u.bi_valid=0):u.bi_valid>=8&&(u.pending_buf[u.pending++]=u.bi_buf&255,u.bi_buf>>=8,u.bi_valid-=8)):w!==5&&(sE(u,0,3),f_c(u,0,0),w===3&&(dr(u.head),u.lookahead===0&&(u.strstart=0,u.block_start=0,u.insert=0))),OE(q),q.avail_out===0))return u.last_flush=-1,0}if(w!==4)return 0;if(u.wrap<=0)return 1;u.wrap===2?(mr(u,q.adler&255),mr(u,q.adler>>8&255),mr(u,q.adler>>16&255),mr(u,q.adler>>24&255),mr(u,
q.total_in&255),mr(u,q.total_in>>8&255),mr(u,q.total_in>>16&255),mr(u,q.total_in>>24&255)):(A6(u,q.adler>>>16),A6(u,q.adler&65535));OE(q);u.wrap>0&&(u.wrap=-u.wrap);return u.pending!==0?0:1};
l_4=function(q){if(!(this instanceof l_4))return new l_4(q);q=this.options=Iz.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},q||{});q.raw&&q.windowBits>0?q.windowBits=-q.windowBits:q.gzip&&q.windowBits>0&&q.windowBits<16&&(q.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new LRJ;this.strm.avail_out=0;var w=this.strm;var u=q.level,y=q.method,e=q.windowBits,t=q.memLevel,X=q.strategy;if(w){var G=1;u===-1&&(u=6);e<0?(G=0,e=-e):e>15&&
(G=2,e-=16);if(t<1||t>9||y!==8||e<8||e>15||u<0||u>9||X<0||X>4)w=Ci(w,-2);else{e===8&&(e=9);var n=new hKj;w.state=n;n.strm=w;n.wrap=G;n.gzhead=null;n.w_bits=e;n.w_size=1<<n.w_bits;n.w_mask=n.w_size-1;n.hash_bits=t+7;n.hash_size=1<<n.hash_bits;n.hash_mask=n.hash_size-1;n.hash_shift=~~((n.hash_bits+3-1)/3);n.window=new Iz.Buf8(n.w_size*2);n.head=new Iz.Buf16(n.hash_size);n.prev=new Iz.Buf16(n.w_size);n.lit_bufsize=1<<t+6;n.pending_buf_size=n.lit_bufsize*4;n.pending_buf=new Iz.Buf8(n.pending_buf_size);
n.d_buf=n.lit_bufsize;n.l_buf=3*n.lit_bufsize;n.level=u;n.strategy=X;n.method=y;if(w&&w.state){w.total_in=w.total_out=0;w.data_type=2;u=w.state;u.pending=0;u.pending_out=0;u.wrap<0&&(u.wrap=-u.wrap);u.status=u.wrap?42:113;w.adler=u.wrap===2?0:1;u.last_flush=0;if(!MBs){y=Array(16);for(t=X=0;t<28;t++)for(zKy[t]=X,e=0;e<1<<J7M[t];e++)iY[X++]=t;iY[X-1]=t;for(t=X=0;t<16;t++)for(DUz[t]=X,e=0;e<1<<a_M[t];e++)rr[X++]=t;for(X>>=7;t<30;t++)for(DUz[t]=X<<7,e=0;e<1<<a_M[t]-7;e++)rr[256+X++]=t;for(e=0;e<=15;e++)y[e]=
0;for(e=0;e<=143;)oz[e*2+1]=8,e++,y[8]++;for(;e<=255;)oz[e*2+1]=9,e++,y[9]++;for(;e<=279;)oz[e*2+1]=7,e++,y[7]++;for(;e<=287;)oz[e*2+1]=8,e++,y[8]++;Oqc(oz,287,y);for(e=0;e<30;e++)V_[e*2+1]=5,V_[e*2]=dUj(e,5);KRo=new Tks(oz,J7M,257,286,15);Bks=new Tks(V_,a_M,0,30,15);xUM=new Tks([],q1H,0,19,7);MBs=!0}u.l_desc=new Cy4(u.dyn_ltree,KRo);u.d_desc=new Cy4(u.dyn_dtree,Bks);u.bl_desc=new Cy4(u.bl_tree,xUM);u.bi_buf=0;u.bi_valid=0;o1M(u);u=0}else u=Ci(w,-2);u===0&&(w=w.state,w.window_size=2*w.w_size,dr(w.head),
w.max_lazy_match=ZT[w.level].max_lazy,w.good_match=ZT[w.level].good_length,w.nice_match=ZT[w.level].nice_length,w.max_chain_length=ZT[w.level].max_chain,w.strstart=0,w.block_start=0,w.lookahead=0,w.insert=0,w.match_length=w.prev_length=2,w.match_available=0,w.ins_h=0);w=u}}else w=-2;if(w!==0)throw Error(TP[w]);q.header&&(w=this.strm)&&w.state&&w.state.wrap===2&&(w.state.gzhead=q.header);if(q.dictionary){var N;typeof q.dictionary==="string"?N=wQj(q.dictionary):uXy.call(q.dictionary)==="[object ArrayBuffer]"?
N=new Uint8Array(q.dictionary):N=q.dictionary;q=this.strm;t=N;X=t.length;if(q&&q.state)if(N=q.state,w=N.wrap,w===2||w===1&&N.status!==42||N.lookahead)w=-2;else{w===1&&(q.adler=E1M(q.adler,t,X,0));N.wrap=0;X>=N.w_size&&(w===0&&(dr(N.head),N.strstart=0,N.block_start=0,N.insert=0),u=new Iz.Buf8(N.w_size),Iz.arraySet(u,t,X-N.w_size,N.w_size,0),t=u,X=N.w_size);u=q.avail_in;y=q.next_in;e=q.input;q.avail_in=X;q.next_in=0;q.input=t;for(zP(N);N.lookahead>=3;){t=N.strstart;X=N.lookahead-2;do N.ins_h=(N.ins_h<<
N.hash_shift^N.window[t+3-1])&N.hash_mask,N.prev[t&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=t,t++;while(--X);N.strstart=t;N.lookahead=2;zP(N)}N.strstart+=N.lookahead;N.block_start=N.strstart;N.insert=N.lookahead;N.lookahead=0;N.match_length=N.prev_length=2;N.match_available=0;q.next_in=y;q.input=e;q.avail_in=u;N.wrap=w;w=0}else w=-2;if(w!==0)throw Error(TP[w]);this._dict_set=!0}};
yrl=function(q,w){w=w||{};w.gzip=!0;w=new l_4(w);w.push(q,!0);if(w.err)throw w.msg||TP[w.err];return w.result};
kaz=function(q,w){var u=ejs();u&&u.publish.call(u,q.toString(),q,w)};
GaH=function(q,w,u){var y=ejs();if(!y)return 0;var e=y.subscribe(q.toString(),function(t,X){var G=_.hP("ytPubsub2Pubsub2SkipSubKey");G&&G==e||(G=function(){if(tNM[e])try{if(X&&q instanceof PAf&&q!=t)try{var n=q.dataClass,N=X;if(!N.args||!N.version)throw Error("Xc");try{if(!n.version_){var Q=new n;n.version_=Q.version}var I=n.version_}catch(U){}if(!I||N.version!=I)throw Error("Yc");try{X=Reflect.construct(n,_.qT(N.args))}catch(U){throw U.message="yt.pubsub2.Data.deserialize(): "+U.message,U;}}catch(U){throw U.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+q.toString()+": "+U.message,U;}w.call(u||window,X)}catch(U){_.cl(U)}},XQc[q.toString()]?_.hP("yt.scheduler.instance")?_.pi.addLowPriorityJob(G):_.WG(G,0):G())});
tNM[e]=!0;FO7[q.toString()]||(FO7[q.toString()]=[]);FO7[q.toString()].push(e);return e};
sOf=function(){var q=nNJ,w=GaH(Hac,function(u){q.apply(void 0,arguments);WOf(w)});
return w};
WOf=function(q){var w=ejs();w&&(typeof q==="number"&&(q=[q]),_.L4(q,function(u){w.unsubscribeByKey(u);delete tNM[u]}))};
ejs=function(){return _.hP("ytPubsub2Pubsub2Instance")};
NGs=function(q,w,u){u=u===void 0?{sampleRate:.1}:u;Math.random()<Math.min(.02,u.sampleRate/100)&&kaz("meta_logging_csi_event",{timerName:q,timelineData:w})};
_.QOc=function(q){return q?(q=q.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.pj(q):null:null};
_.$Z=function(q){return q?(q=q.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.FE(q):null:null};
iaj=function(){IVs||(IVs=_.$Z(_.Et("WORKER_SERIALIZATION_URL")));return IVs||void 0};
_.Utf=function(){var q=iaj();rr4||q===void 0||(rr4=new Worker(_.G2(q),void 0));return rr4};
_.TGl=function(){return typeof Worker==="function"&&iaj()?!0:!1};
_.oNM=function(){if(_.TGl()&&!CAy){var q=function(u){u=u.data;if(u.op==="gzippedGelBatch"){var y=dt6.get(u.key);y&&(Oa7(u.gzippedBatch,y.latencyPayload,y.url,y.options,y.sendFn),dt6.delete(u.key))}},w=_.Utf();
w&&(w.addEventListener("message",q),w.onerror=function(){dt6.clear()},CAy=!0)}};
aVf=function(q,w,u,y,e){e=e===void 0?!1:e;var t={startTime:(0,_.eW)(),ticks:{},infos:{}};if(vT)try{var X=VN4(w);if(X!=null&&(X>fVf||X<mtc))y(q,u);else{if(_.T("gzip_gel_with_worker")&&(_.T("initial_gzip_use_main_thread")&&!Ary||!_.T("initial_gzip_use_main_thread"))){CAy||_.oNM();var G=_.Utf();if(G&&!e){dt6.set(Jrs,{latencyPayload:t,url:q,options:u,sendFn:y});G.postMessage({op:"gelBatchToGzip",serializedBatch:w,key:Jrs});Jrs++;return}}var n=yrl(zj6(w));Oa7(n,t,q,u,y)}}catch(N){_.jZ(N),y(q,u)}else y(q,
u)};
Oa7=function(q,w,u,y,e){Ary=!1;var t=(0,_.eW)();w.ticks.gelc=t;bY++;_.T("disable_compression_due_to_performance_degredation")&&t-w.startTime>=Dto&&(Zaj++,_.T("abandon_compression_after_N_slow_zips")?bY===_.Fc("compression_disable_point")&&Zaj>pQM&&(vT=!1):vT=!1);$tf(w);y.headers||(y.headers={});y.headers["Content-Encoding"]="gzip";y.postBody=q;y.postParams=void 0;e(u,y)};
vN7=function(q){var w=w===void 0?!1:w;var u=u===void 0?!1:u;var y=(0,_.eW)(),e={startTime:y,ticks:{},infos:{}},t=w?_.hP("yt.logging.gzipForFetch",!1):!0;if(vT&&t){if(!q.body)return q;try{var X=u?q.body:typeof q.body==="string"?q.body:JSON.stringify(q.body);t=X;if(!u&&typeof X==="string"){var G=VN4(X);if(G!=null&&(G>fVf||G<mtc))return q;u=w?{level:1}:void 0;t=yrl(zj6(X),u);var n=(0,_.eW)();e.ticks.gelc=n;if(w){bY++;if((_.T("disable_compression_due_to_performance_degredation")||_.T("disable_compression_due_to_performance_degradation_lr"))&&
n-y>=Dto)if(Zaj++,_.T("abandon_compression_after_N_slow_zips")||_.T("abandon_compression_after_N_slow_zips_lr")){w=Zaj/bY;var N=pQM/_.Fc("compression_disable_point");bY>0&&bY%_.Fc("compression_disable_point")===0&&w>=N&&(vT=!1)}else vT=!1;$tf(e)}}q.headers=Object.assign({},{"Content-Encoding":"gzip"},q.headers||{});q.body=t;return q}catch(Q){return _.jZ(Q),q}}else return q};
VN4=function(q){try{return(new Blob(q.split(""))).size}catch(w){return _.jZ(w),null}};
$tf=function(q){_.T("gel_compression_csi_killswitch")||!_.T("log_gel_compression_latency")&&!_.T("log_gel_compression_latency_lr")||NGs("gel_compression",q,{sampleRate:.1})};
bau=function(){this.blockSize=-1};
YZ=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var q=1;q<this.blockSize;++q)this.pad_[q]=0;this.total_=this.inbuf_=0;this.reset()};
gNj=function(q){q=Object.assign({},q);delete q.Authorization;var w=Y1H();if(w){var u=new YZ;u.update(_.Et("INNERTUBE_API_KEY"));u.update(w);q.hash=_.wV(u.digest(),3)}return q};
EE=function(){ENc||(ENc=new _.gr("yt.innertube"));return ENc};
RjH=function(q,w,u,y){if(y)return null;y=EE().get("nextId",!0)||1;var e=EE().get("requests",!0)||{};e[y]={method:q,request:w,authState:gNj(u),requestTime:Math.round((0,_.eW)())};EE().set("nextId",y+1,86400,!0);EE().set("requests",e,86400,!0);return y};
crl=function(q){var w=EE().get("requests",!0)||{};delete w[q];EE().set("requests",w,86400,!0)};
hj7=function(q){var w=EE().get("requests",!0);if(w){for(var u in w){var y=w[u];if(!(Math.round((0,_.eW)())-y.requestTime<6E4)){var e=y.authState,t=gNj(_.r7l(!1));_.db.equals(e,t)&&(e=y.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round((0,_.eW)())),S1f(q,y.method,e,{}));delete w[u]}}EE().set("requests",w,86400,!0)}};
jOz=function(q){var w;return(q=q==null?void 0:(w=q.error)==null?void 0:w.code)&&q>=400&&q<=599?!1:!0};
lVs=function(q){var w;q=q==null?void 0:(w=q.error)==null?void 0:w.code;return!(q!==400&&q!==415)};
MNM=function(){if(LOH)return LOH();var q={};LOH=y_("LogsDatabaseV2",{objectStores:(q.LogsRequestsStore={addedAtVersion:2},q),shared:!1,upgrade:function(w,u,y){u(2)&&Rz(w,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});u(3);u(5)&&(y=y.objectStore("LogsRequestsStore"),y.JSC$8504_wrapped.indexNames.contains("newRequest")&&y.JSC$8504_wrapped.deleteIndex("newRequest"),cT(y,"newRequestV2",["status","interface","timestamp"]));u(7)&&w.JSC$8489_wrapped.objectStoreNames.contains("sapisid")&&w.JSC$8489_wrapped.deleteObjectStore("sapisid");
u(9)&&w.JSC$8489_wrapped.objectStoreNames.contains("SWHealthLog")&&w.JSC$8489_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return LOH()};
SW=function(q){return _.Lv(MNM(),q)};
BGf=function(q,w){var u,y,e,t;return _.F(function(X){if(X.nextAddress==1)return u={startTime:(0,_.eW)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.H(X,SW(w),2);if(X.nextAddress!=3)return y=X.yieldResult,e=Object.assign({},q,{options:JSON.parse(JSON.stringify(q.options)),interface:_.Et("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.H(X,y.put("LogsRequestsStore",e),3);t=X.yieldResult;u.ticks.tc=(0,_.eW)();KO4(u);return X.return(t)})};
xtf=function(q,w){var u,y,e,t,X,G,n,N;return _.F(function(Q){if(Q.nextAddress==1)return u={startTime:(0,_.eW)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.H(Q,SW(w),2);if(Q.nextAddress!=3)return y=Q.yieldResult,e=_.Et("INNERTUBE_CONTEXT_CLIENT_NAME",0),t=[q,e,0],X=[q,e,(0,_.eW)()],G=IDBKeyRange.bound(t,X),n="prev",_.T("use_fifo_for_networkless")&&(n="next"),N=void 0,_.H(Q,_.Mu(y,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(I){return _.kZ(I.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:G,direction:n},function(U){U.getValue()&&(N=U.getValue(),q==="NEW"&&(N.status="QUEUED",U.update(N)))})}),3);
u.ticks.tc=(0,_.eW)();KO4(u);return Q.return(N)})};
qPM=function(q,w){var u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,SW(w),2);u=y.yieldResult;return y.return(_.Mu(u,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(e){var t=e.objectStore("LogsRequestsStore");return t.get(q).then(function(X){if(X)return X.status="QUEUED",t.put(X).then(function(){return X})})}))})};
wMu=function(q,w,u,y){u=u===void 0?!0:u;var e;return _.F(function(t){if(t.nextAddress==1)return _.H(t,SW(w),2);e=t.yieldResult;return t.return(_.Mu(e,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(X){var G=X.objectStore("LogsRequestsStore");return G.get(q).then(function(n){return n?(n.status="NEW",u&&(n.sendCount+=1),y!==void 0&&(n.options.compress=y),G.put(n).then(function(){return n})):R2.resolve(void 0)})}))})};
uTz=function(q,w){var u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,SW(w),2);u=y.yieldResult;return y.return(u.delete("LogsRequestsStore",q))})};
yez=function(q){var w,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,SW(q),2);w=y.yieldResult;u=(0,_.eW)()-2592E6;return _.H(y,_.Mu(w,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(e){return BG(e.objectStore("LogsRequestsStore"),{},function(t){if(t.getValue().timestamp<=u)return t.delete().then(function(){return t.continue()})})}),0)})};
eMj=function(){_.F(function(q){return _.H(q,jxu("LogsDatabaseV2"),0)})};
KO4=function(q){_.T("nwl_csi_killswitch")||NGs("networkless_performance",q,{sampleRate:1})};
_.tQz=function(q){return _.Lv(ktH(),q)};
Pp6=function(q){var w,u;_.F(function(y){if(y.nextAddress==1)return _.H(y,_.tQz(q),2);w=y.yieldResult;u=(0,_.eW)()-2592E6;return _.H(y,_.Mu(w,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(e){return BG(e.objectStore("SWHealthLog"),{},function(t){if(t.getValue().timestamp<=u)return t.delete().then(function(){return t.continue()})})}),0)})};
XMz=function(q){var w;return _.F(function(u){if(u.nextAddress==1)return _.H(u,_.tQz(q),2);w=u.yieldResult;return _.H(u,w.clear("SWHealthLog"),0)})};
_.h6=function(q,w,u,y,e,t,X){e=e===void 0?"":e;t=t===void 0?!1:t;X=X===void 0?!1:X;if(q)if(u&&!b4("cobalt"))_.jZ(new _.fv("Legacy referrer-scrubbed ping detected")),q&&F4y(q,void 0,{scrubReferrer:!0});else if(e)ZJM(q,w,"POST",e,y);else if(_.Et("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||y||X)ZJM(q,w,"GET","",y,void 0,t,X);else{b:{try{c:{var G=new GtM({url:q});if(G.urlParamValues_.dsh==="1")var n=null;else{var N=G.urlParamValues_.ae;if(N==="1"){var Q=G.urlParamValues_.adurl;if(Q)try{n={version:3,directUrl:decodeURIComponent(Q),
asyncUrl:Viy(G.JSC$7379_url_,"act=1","ri=1",nMs(G))};break c}catch(V){}}n=N==="2"?{version:4,directUrl:Viy(G.JSC$7379_url_,"dct=1","suid="+G.suid_,""),asyncUrl:Viy(G.JSC$7379_url_,"act=1","ri=1","suid="+G.suid_)}:null}}if(n){var I=_.QV(q);var U=!(!I||!I.endsWith("/aclk")||_.c2(q,"ri")!=="1");break b}}catch(V){}U=!1}if(U){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(q,"")){var d=!0;break b}}catch(V){}d=!1}d?(w&&w(),u=!0):u=!1}else u=!1;u||F4y(q,w)}};
F4y=function(q,w,u){u=u===void 0?{}:u;var y=new Image,e=""+Hpz++;W4H[e]=y;y.onload=y.onerror=function(){w&&W4H[e]&&w();delete W4H[e]};
u.scrubReferrer&&(y.referrerPolicy="no-referrer");y.src=q};
Li=function(q,w){sij(q,w==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
NC7=function(q){var w;return((w=document.featurePolicy)==null?0:w.allowedFeatures().includes("attribution-reporting"))?q+"&nis=6":q+"&nis=5"};
QiJ=function(q){if(!q)return!1;try{var w;if(((w=_.MZ(q))==null?void 0:w.asm)==="4")return!0}catch(u){_.cl(u)}return!1};
sij=function(q,w){w?(q=NC7(q),_.h6(q,void 0,void 0,void 0,"",!0,!0)):_.h6(q)};
ipj=function(){Iuo||(Iuo=new _.gr("yt.offline"));return Iuo};
reu=function(q){if(_.T("offline_error_handling")){var w=ipj().get("errors",!0)||{};w[q.message]={name:q.name,stack:q.stack};q.level&&(w[q.message].level=q.level);ipj().set("errors",w,2592E3,!0)}};
TCj=function(q,w,u,y){y=y===void 0?!1:y;w=_.T("web_fp_via_jspb")?Object.assign({},w):w;_.T("use_cfr_monitor")&&U_c(q,w);if(_.T("use_request_time_ms_header"))w.headers&&yV(q)&&(w.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.eW)())));else{var e;if((e=w.postParams)==null?0:e.requestTimeMs)w.postParams.requestTimeMs=Math.round((0,_.eW)())}u&&Object.keys(w).length===0?_.h6(q):w.compress?w.postBody?(typeof w.postBody!=="string"&&(w.postBody=JSON.stringify(w.postBody)),aVf(q,w.postBody,
w,_.I2,y)):aVf(q,JSON.stringify(w.postParams),w,bJM,y):_.I2(q,w)};
Cpf=function(q,w){_.T("use_event_time_ms_header")&&yV(q)&&(w.headers||(w.headers={}),w.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.eW)())));return w};
_.OpM=function(){d_f||(d_f=new _.MQ({logOfflineErrors:!0,enablePolling:!0}));return d_f};
U_c=function(q,w){var u=w.onError?w.onError:function(){};
w.onError=function(e,t){Ki().requestComplete(q,!1);u(e,t)};
var y=w.onSuccess?w.onSuccess:function(){};
w.onSuccess=function(e,t){Ki().requestComplete(q,!0);y(e,t)}};
_.oMl=function(){return _.w$(document.location.toString())!=="www.youtube-nocookie.com"};
_.m_z=function(){return _.hP("ytNetworklessLoggingInitializationOptions")?_.VQ4.isNwlInitialized:_.fuJ};
Ae7=function(q,w){if(_.T("polymer_on_demand_shady_dom")){var u;var y=(u=q.__shady_native_firstElementChild)!=null?u:q.firstElementChild}else y=q.firstElementChild;for(;y;){if(q=w(y)?y:Ae7(y,w))return q;y=y.nextElementSibling}return null};
zMJ=function(){var q=document;if("visibilityState"in q)return q.visibilityState;var w=Je6+"VisibilityState";if(w in q)return q[w]};
_.auH=function(q,w){var u;BT(q,function(y){u=w[y];return!!u});
return u};
_.q5=function(q){var w=D_s(q);w?w.focus():_.xZ(q)};
D_s=function(q){return(q=Ae7(q,function(w){return _.ws(w)?Zp7(w)&&!!w.offsetParent:!1}))?q:null};
_.xZ=function(q,w){q.hasAttribute("tabindex")||q.setAttribute("tabindex","-1");q.focus(w)};
pMc=function(q,w,u,y){y=y===void 0?{}:y;q.addEventListener&&(w!="mouseenter"||"onmouseenter"in document?w!="mouseleave"||"onmouseenter"in document?w=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(w="MozMousePixelScroll"):w="mouseout":w="mouseover");return _.db.findKey(uD,function(e){var t=typeof e[4]==="boolean"&&e[4]==!!y,X=_.er(e[4])&&_.er(y)&&_.db.equals(e[4],y);return!!e.length&&e[0]==q&&e[1]==w&&e[2]==u&&(t||X)})};
_.ew=function(q,w,u,y){y=y===void 0?{}:y;if(!q||!q.addEventListener&&!q.attachEvent)return"";var e=pMc(q,w,u,y);if(e)return e;e=++$_f.count+"";var t=!(w!="mouseenter"&&w!="mouseleave"||!q.addEventListener||"onmouseenter"in document);var X=t?function(G){G=new yR(G);if(!_.ar(G.relatedTarget,function(n){return n==q},!0))return G.currentTarget=q,G.type=w,u.call(q,G)}:function(G){G=new yR(G);
G.currentTarget=q;return u.call(q,G)};
X=_.SZ(X);q.addEventListener?(w=="mouseenter"&&t?w="mouseover":w=="mouseleave"&&t?w="mouseout":w=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(w="MozMousePixelScroll"),vMu()||typeof y==="boolean"?q.addEventListener(w,X,y):q.addEventListener(w,X,!!y.capture)):q.attachEvent("on"+w,X);uD[e]=[q,w,u,X,y];return e};
_.YPf=function(q,w,u){var y=y===void 0?{}:y;var e=_.ew(q,w,function(){_.bpf(e);u.apply(q,arguments)},y)};
_.bpf=function(q){q&&(typeof q=="string"&&(q=[q]),_.L4(q,function(w){if(w in uD){var u=uD[w],y=u[0],e=u[1],t=u[3];u=u[4];y.removeEventListener?vMu()||typeof u==="boolean"?y.removeEventListener(e,t,u):y.removeEventListener(e,t,!!u.capture):y.detachEvent&&y.detachEvent("on"+e,t);delete uD[w]}}))};
k8=function(q){this.callback_=q;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(q=0;q<4;q++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.ew(window,"mousemove",(0,_.fY)(this.onMouseMove_,this));this.timerId_=_.s8((0,_.fY)(this.checkPosition_,this),25)};
EMf=function(){var q={};var w=q.preferMobileEvents===void 0?!1:q.preferMobileEvents;q=q.enableScrollEventListener===void 0?!0:q.enableScrollEventListener;if(_.hP("_lact",window)==null){var u=parseInt(_.Et("LACT"),10);u=isFinite(u)?Date.now()-Math.max(u,0):-1;_.wr("_lact",u,window);_.wr("_fact",u,window);u==-1&&_.tq();_.ew(document,"keydown",_.tq);_.ew(document,"keyup",_.tq);_.ew(document,"mousedown",_.tq);_.ew(document,"mouseup",_.tq);w?_.ew(window,"touchmove",function(){gMc("touchmove",200)},{passive:!0}):
(_.ew(window,"resize",function(){gMc("resize",200)}),q&&_.ew(window,"scroll",function(){gMc("scroll",200)}));
new k8(function(){gMc("mouse",100)});
_.ew(document,"touchstart",_.tq,{passive:!0});_.ew(document,"touchend",_.tq,{passive:!0})}};
gMc=function(q,w){RMy[q]||(RMy[q]=!0,_.pi.addLowPriorityJob(function(){_.tq();RMy[q]=!1},w))};
_.tq=function(){_.hP("_lact",window)==null&&EMf();var q=Date.now();_.wr("_lact",q,window);_.hP("_fact",window)==-1&&_.wr("_fact",q,window);(q=_.hP("ytglobal.ytUtilActivityCallback_"))&&q()};
_.Pm=function(){var q=_.hP("_lact",window);return q==null?-1:Math.max(Date.now()-q,0)};
_.nn=function(q,w,u){var y=_.X$();if(y&&w){var e=y.subscribe(q,function(){var t=arguments,X=function(){F$[e]&&w.apply&&typeof w.apply=="function"&&w.apply(u||window,t)};
try{_.cey[q]?X():_.WG(X,0)}catch(G){_.cl(G)}},u);
F$[e]=!0;GC[q]||(GC[q]=[]);GC[q].push(e);return e}return 0};
_.SPf=function(q){var w=_.X$();w&&(typeof q==="number"?q=[q]:typeof q==="string"&&(q=[parseInt(q,10)]),_.L4(q,function(u){w.unsubscribeByKey(u);delete F$[u]}))};
_.hMM=function(q,w){var u=_.X$();u&&u.publish.apply(u,arguments)};
_.lu6=function(q){var w=_.X$();if(w)if(w.clear(q),q)jiH(q);else for(var u in GC)jiH(u)};
_.X$=function(){return _.uc.ytPubsubPubsubInstance};
jiH=function(q){GC[q]&&(q=GC[q],_.L4(q,function(w){F$[w]&&delete F$[w]}),q.length=0)};
L44=function(){var q,w;return"h5vcc"in Hm&&((q=Hm.h5vcc.traceEvent)==null?0:q.traceBegin)&&((w=Hm.h5vcc.traceEvent)==null?0:w.traceEnd)?1:"performance"in Hm&&Hm.performance.mark&&Hm.performance.measure?2:0};
MQs=function(q){var w=L44();switch(w){case 1:Hm.h5vcc.traceEvent.traceBegin("YTLR",q);break;case 2:Hm.performance.mark(q+"-start");break;case 0:break;default:_.Xm(w,"unknown trace type")}};
K4z=function(q){var w=L44();switch(w){case 1:Hm.h5vcc.traceEvent.traceEnd("YTLR",q);break;case 2:w=q+"-start";var u=q+"-end";Hm.performance.mark(u);Hm.performance.measure(q,w,u);break;case 0:break;default:_.Xm(w,"unknown trace type")}};
BC6=function(q){var w,u;(u=(w=window).onerror)==null||u.call(w,q.message,"",0,0,q)};
x_o=function(q){if(_.T("web_lifecycle_error_handling_killswitch"))return q();try{return q()}catch(w){BC6(w)}};
q6c=function(q){return[q.auth===void 0?"undefined":q.auth,q.isJspb===void 0?"undefined":q.isJspb,q.cttAuthInfo===void 0?"undefined":q.cttAuthInfo,q.tier===void 0?"undefined":q.tier].join("/")};
_.C=function(q,w){if(q)return q[w.name]};
sk=function(){var q=_.hP("yt.logging.ims");q||(q=new Wm,_.wr("yt.logging.ims",q));return q};
FP4=function(q,w){if(q.endpoint==="log_event"){wjf(q);var u=ujc(q),y=yMu(q.payload)||"",e=ew7(y),t=200;if(e){if(e.enabled===!1&&!_.T("web_payload_policy_disabled_killswitch"))return;t=kmM(e.tier);if(t===400){tfM(q,w);return}}N5[u]=!0;u={cttAuthInfo:u,isJspb:!1,tier:t};sk().storePayload(u,q.payload);PfJ(w,!1,u,Xjc(y))}};
ndf=function(q,w,u){if(w.endpoint==="log_event"){wjf(void 0,w);var y=ujc(w,!0),e=ew7(q),t=200;if(e){if(e.enabled===!1&&!_.T("web_payload_policy_disabled_killswitch"))return;t=kmM(e.tier);if(t===400){GmM(q,w,u);return}}N5[y]=!0;y={cttAuthInfo:y,isJspb:!0,tier:t};sk().storePayload(y,ea(w.payload));PfJ(u,!0,y,Xjc(q))}};
PfJ=function(q,w,u,y){w=w===void 0?!1:w;y=y===void 0?!1:y;q&&(QR=new q);q=_.Fc("tvhtml5_logging_max_batch_ads_fork")||_.Fc("tvhtml5_logging_max_batch")||_.Fc("web_logging_max_batch")||100;var e=(0,_.eW)(),t=HLs(w,u.tier),X=t.lastDebounceQueueFromLogTimeMs;y&&(t.useVideoStatsEndPoint=!0);y=0;u&&(y=sk().getSequenceCount(u));var G=function(){WPo({writeThenSend:!0},w,u.tier)};
y>=1E3?G():y>=q?s9o||(s9o=NNs(function(){G();s9o=void 0},0)):e-X>=10&&(Q9y(w,u.tier),t.lastDebounceQueueFromLogTimeMs=e)};
tfM=function(q,w){if(q.endpoint==="log_event"){_.T("more_accurate_gel_parser")&&sk().storePayload({isJspb:!1},q.payload);wjf(q);var u=ujc(q),y=new Map;y.set(u,[q.payload]);var e=yMu(q.payload)||"";w&&(QR=new w);return new _.IA(function(t,X){QR&&QR.isReady()?IMJ(y,QR,t,X,{bypassNetworkless:!0},!0,Xjc(e)):t()})}};
GmM=function(q,w,u){if(w.endpoint==="log_event"){wjf(void 0,w);var y=ujc(w,!0),e=new Map;e.set(y,[ea(w.payload)]);u&&(QR=new u);return new _.IA(function(t){QR&&QR.isReady()?iLc(e,QR,t,{bypassNetworkless:!0},!0,Xjc(q)):t()})}};
ujc=function(q,w){var u="";if(q.dangerousLogToVisitorSession)u="visitorOnlyApprovedKey";else if(q.cttAuthInfo){if(w===void 0?0:w){w=q.cttAuthInfo.token;u=q.cttAuthInfo;var y=new rM6;u.videoId?y.setVideoId(u.videoId):u.playlistId&&iD(y,2,Ual,bj(u.playlistId));TNo[w]=y}else w=q.cttAuthInfo,u={},w.videoId?u.videoId=w.videoId:w.playlistId&&(u.playlistId=w.playlistId),Cf6[q.cttAuthInfo.token]=u;u=q.cttAuthInfo.token}return u};
WPo=function(q,w,u){q=q===void 0?{}:q;w=w===void 0?!1:w;new _.IA(function(y,e){var t=HLs(w,u),X=t.useVideoStatsEndPoint;t.useVideoStatsEndPoint=!1;da7(t.queueTimer);da7(t.queueMaxTimer);t.queueMaxTimer=0;QR&&QR.isReady()?u===void 0&&_.T("enable_web_tiered_gel")?OL7(y,e,q,w,300,X):OL7(y,e,q,w,u,X):(Q9y(w,u),y())})};
OL7=function(q,w,u,y,e,t){var X=QR;u=u===void 0?{}:u;y=y===void 0?!1:y;e=e===void 0?200:e;t=t===void 0?!1:t;var G=new Map,n=new Map,N={isJspb:y,cttAuthInfo:void 0,tier:e},Q={isJspb:y,cttAuthInfo:void 0};if(y){w=_.P(Object.keys(N5));for(e=w.next();!e.done;e=w.next())e=e.value,n=_.T("enable_web_tiered_gel")?sk().smartExtractMatchingEntries({keys:[N,Q],sizeLimit:1E3}):sk().extractMatchingEntries({isJspb:!0,cttAuthInfo:e}),n.length>0&&G.set(e,n),(_.T("web_fp_via_jspb_and_json")&&u.writeThenSend||!_.T("web_fp_via_jspb_and_json"))&&
delete N5[e];iLc(G,X,q,u,!1,t)}else{G=_.P(Object.keys(N5));for(N=G.next();!N.done;N=G.next())N=N.value,Q=_.T("enable_web_tiered_gel")?sk().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:N,tier:e},{isJspb:!1,cttAuthInfo:N}],sizeLimit:1E3}):sk().extractMatchingEntries({isJspb:!1,cttAuthInfo:N}),Q.length>0&&n.set(N,Q),(_.T("web_fp_via_jspb_and_json")&&u.writeThenSend||!_.T("web_fp_via_jspb_and_json"))&&delete N5[N];IMJ(n,X,q,w,u,!1,t)}};
Q9y=function(q,w){q=q===void 0?!1:q;w=w===void 0?200:w;var u=function(){WPo({writeThenSend:!0},q,w)},y=HLs(q,w),e=y===od4||y===Vfz?5E3:fM6;
_.T("web_gel_timeout_cap")&&!y.queueMaxTimer&&(e=NNs(function(){u()},e),y.queueMaxTimer=e);
da7(y.queueTimer);e=_.Et("LOGGING_BATCH_TIMEOUT",_.Fc("web_gel_debounce_ms",1E4));_.T("shorten_initial_gel_batch_timeout")&&maH&&(e=AMc);e=NNs(function(){_.Fc("gel_min_batch_size")>0?sk().getSequenceCount({cttAuthInfo:void 0,isJspb:q,tier:w})>=JMJ&&u():u()},e);
y.queueTimer=e};
IMJ=function(q,w,u,y,e,t,X){e=e===void 0?{}:e;var G=Math.round((0,_.eW)()),n=q.size,N=zwf(X);q=_.P(q);var Q=q.next();for(X={};!Q.done;X={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},Q=q.next()){var I=_.P(Q.value);Q=I.next().value;I=I.next().value;X.batchRequest=_.db.unsafeClone({context:_.GM7(w.config_||_.t6())});if(!_.uP(I)&&!_.T("throw_err_when_logevent_malformed_killswitch")){y();break}X.batchRequest.events=I;
(I=Cf6[Q])&&aMH(X.batchRequest,Q,I);delete Cf6[Q];X.dangerousLogToVisitorSession=Q==="visitorOnlyApprovedKey";Daj(X.batchRequest,G,X.dangerousLogToVisitorSession);ZLj(e);X.onSuccess$jscomp$3=function(U){_.T("start_client_gcf")&&_.pi.addLowPriorityJob(function(){return _.F(function(d){return _.H(d,pj4(U),0)})});
n--;n||u()};
X.networkFailures=0;X.onError$jscomp$5=function(U){return function(){U.networkFailures++;if(e.bypassNetworkless&&U.networkFailures===1)try{S1f(w,N,U.batchRequest,$aj({writeThenSend:!0},U.dangerousLogToVisitorSession,U.onSuccess$jscomp$3,U.onError$jscomp$5,t)),maH=!1}catch(d){_.cl(d),y()}n--;n||u()}}(X);
try{S1f(w,N,X.batchRequest,$aj(e,X.dangerousLogToVisitorSession,X.onSuccess$jscomp$3,X.onError$jscomp$5,t)),maH=!1}catch(U){_.cl(U),y()}}};
iLc=function(q,w,u,y,e,t){y=y===void 0?{}:y;var X=Math.round((0,_.eW)()),G={value:q.size},n=new Map([].concat(_.Cm(q)));n=_.P(n);for(var N=n.next();!N.done;N=n.next()){var Q=_.P(N.value).next().value,I=q.get(Q);N=new vdy;var U=w.config_||_.t6(),d=new rs,V=new bLu;_.sf(V,1,U.innertubeContextHostLanguage);_.sf(V,2,U.innertubeContextGeoLocation);_.Xo(V,16,U.innertubeContextClientNameFieldNumber);_.sf(V,17,U.innertubeContextClientVersion);if(U.innertubeContextClientConfigInfo){var J=U.innertubeContextClientConfigInfo,
a=new GP;J.coldConfigData&&_.sf(a,1,J.coldConfigData);J.appInstallData&&_.sf(a,6,J.appInstallData);J.coldHashData&&_.sf(a,3,J.coldHashData);J.hotHashData&&a.setHotHashData(J.hotHashData);_.e9(V,62,a)}(J=_.uc.devicePixelRatio)&&J!=1&&_.Fo(V,65,_.Fm(J));J=o$H();J!==""&&_.sf(V,54,J);J=VlH();if(J.length>0){a=new Y6J;for(var b=0;b<J.length;b++){var g=new Uk;g.setKey(J[b].key);iD(g,2,gd7,bj(J[b].value));Cn(a,15,Uk,g)}_.e9(d,5,a)}eKf(U,V);kMf(d);tBj(V);Pyo(U,V);XwH(V);_.T("start_client_gcf")&&FRM(V);_.Et("DELEGATED_SESSION_ID")&&
!_.T("pageid_as_header_web")&&(U=new ds,_.sf(U,3,_.Et("DELEGATED_SESSION_ID")));!_.T("fill_delegate_context_in_gel_killswitch")&&(J=_.Et("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(a=_.PT(d,ds,3)||new ds,U=d,J=_.sf(a,18,J),_.e9(U,3,J));U=V;J=_.P(Object.entries(_.MZ(_.Et("DEVICE",""))));for(a=J.next();!a.done;a=J.next())b=_.P(a.value),a=b.next().value,b=b.next().value,a==="cbrand"?_.sf(U,12,b):a==="cmodel"?_.sf(U,13,b):a==="cbr"?_.sf(U,87,b):a==="cbrver"?_.sf(U,88,b):a==="cos"?_.sf(U,18,
b):a==="cosver"?_.sf(U,19,b):a==="cplatform"&&_.Xo(U,42,ubz(b));d.setClient(V);_.e9(N,1,d);if(V=TNo[Q])a:{if(_.iI(V,Ok(V,Ual,1)))d=1;else if(V.getPlaylistId())d=2;else break a;_.e9(N,4,V);V=N.getContext()||new rs;U=_.PT(V,ds,3)||new ds;J=new oA;J.setToken(Q);_.Xo(J,1,d);Cn(U,12,oA,J);_.e9(V,3,U)}delete TNo[Q];Q=Q==="visitorOnlyApprovedKey";Edz()||_.VR(N,2,X);!Q&&(d=_.Et("EVENT_ID"))&&(V=RwM(),U=new cM6,_.sf(U,1,d),_.VR(U,2,V),_.e9(N,5,U));ZLj(y);if(_.T("jspb_serialize_with_worker")&&(d=_.Utf())&&
y.writeThenSend){_.S6H.set(hws,{client:w,resolve:u,networklessOptions:y,isIsolated:e,useVSSEndpoint:t,dangerousLogToVisitorSession:Q,requestsOutstanding:G});d.postMessage({op:"gelBatchToSerialize",batchRequest:ea(N),clientEvents:I,key:hws});hws++;break}if(I){d=[];for(V=0;V<I.length;V++)try{d.push(new fn(I[V]))}catch(l){_.cl(new _.fv("Transport failed to deserialize "+String(I[V])))}I=d}else I=[];I=_.P(I);for(d=I.next();!d.done;d=I.next())Cn(N,3,fn,d.value);I={startTime:(0,_.eW)(),ticks:{},infos:{}};
N=N.serialize();I.ticks.geljspc=(0,_.eW)();_.T("log_jspb_serialize_latency")&&NGs("gel_jspb_serialize",I,{sampleRate:.1});_.j9o(N,w,u,y,e,t,Q,G)}};
_.j9o=function(q,w,u,y,e,t,X,G){y=y===void 0?{}:y;G=G===void 0?{value:0}:G;t=zwf(t);y=$aj(y,X,function(n){_.T("start_client_gcf")&&_.pi.addLowPriorityJob(function(){return _.F(function(N){return _.H(N,pj4(n),0)})});
G.value--;G.value||u()},function(){G.value--;
G.value||u()},e);
y.headers["Content-Type"]="application/json+protobuf";y.postBodyFormat="JSPB";y.postBody=q;S1f(w,t,"",y);maH=!1};
ZLj=function(q){_.T("always_send_and_write")&&(q.writeThenSend=!1)};
$aj=function(q,w,u,y,e){q={retry:!0,onSuccess:u,onError:y,networklessOptions:q,dangerousLogToVisitorSession:w,bypassMonitoring:!!e,headers:{},postBodyFormat:"",postBody:"",compress:_.T("compress_gel")||_.T("compress_gel_lr")};Edz()&&(q.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.eW)())));return q};
Daj=function(q,w,u){Edz()||(q.requestTimeMs=String(w));_.T("unsplit_gel_payloads_in_logs")&&(q.unsplitGelPayloadsInLogs=!0);!u&&(w=_.Et("EVENT_ID"))&&(u=RwM(),q.serializedClientEventId={serializedEventId:w,clientCounter:String(u)})};
RwM=function(){var q=_.Et("BATCH_CLIENT_COUNTER")||0;q||(q=Math.floor(Math.random()*65535/2));q++;q>65535&&(q=1);_.g_("BATCH_CLIENT_COUNTER",q);return q};
aMH=function(q,w,u){if(u.videoId)var y="VIDEO";else if(u.playlistId)y="PLAYLIST";else return;q.credentialTransferTokenTargetId=u;q.context=q.context||{};q.context.user=q.context.user||{};q.context.user.credentialTransferTokens=[{token:w,scope:y}]};
wjf=function(q,w){var u=_.GQ("il_payload_scraping")==="enable_il_payload_scraping";if(!_.hP("yt.logging.transport.enableScrapingForTest"))if(u)lMH=[],_.wr("yt.logging.transport.enableScrapingForTest",!0),_.wr("yt.logging.transport.scrapedPayloadsForTesting",lMH),_.wr("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.wr("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.wr("yt.logging.transport.scrapeClientEvent",!0);else return;u=_.hP("yt.logging.transport.scrapedPayloadsForTesting");var y=_.hP("yt.logging.transport.payloadToScrape");w&&(w=_.hP("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(w.payload)())&&u.push(w);w=_.hP("yt.logging.transport.scrapeClientEvent");if(y&&y.length>=1)for(var e=0;e<y.length;e++)if(q&&q.payload[y[e]])if(w)u.push(q.payload);else{var t=void 0;u.push(((t=q)==null?void 0:t.payload)[y[e]])}_.wr("yt.logging.transport.scrapedPayloadsForTesting",
u)};
Edz=function(){return _.T("use_request_time_ms_header")||_.T("lr_use_request_time_ms_header")};
NNs=function(q,w){return _.T("transport_use_scheduler")===!1?_.WG(q,w):_.T("logging_avoid_blocking_during_navigation")||_.T("lr_logging_avoid_blocking_during_navigation")?_.mg(_.pi,function(){if(_.LP4().currentState==="none")q();else{var u={};_.LP4().install((u.none={callback:q},u))}},w):_.mg(_.pi,q,w)};
da7=function(q){_.T("transport_use_scheduler")?_.pi.cancelJob(q):_.Nu(q)};
pj4=function(q){var w,u,y,e,t,X,G,n,N,Q;return _.F(function(I){return I.nextAddress==1?(y=(w=q)==null?void 0:(u=w.responseContext)==null?void 0:u.globalConfigGroup,e=_.C(y,MfM),X=(t=y)==null?void 0:t.hotHashData,G=_.C(y,KPs),N=(n=y)==null?void 0:n.coldHashData,(Q=_.tG().resolve(_.kF(zC)))?X?e?_.H(I,BNy(Q,X,e),2):_.H(I,BNy(Q,X),2):I.jumpTo(2):I.return()):N?G?_.H(I,xaz(Q,N,G),0):_.H(I,xaz(Q,N),0):I.jumpTo(0)})};
HLs=function(q,w){w=w===void 0?200:w;return q?w===300?od4:qOM:w===300?Vfz:w67};
ew7=function(q){if(_.T("enable_web_tiered_gel")){q=uyM[q||""];var w,u,y,e=_.tG().resolve(_.kF(zC))==null?void 0:(w=yBM())==null?void 0:(u=w.loggingHotConfig)==null?void 0:(y=u.eventLoggingConfig)==null?void 0:y.payloadPolicies;if(e)for(w=0;w<e.length;w++)if(e[w].payloadNumber===q)return e[w]}};
yMu=function(q){q=Object.keys(q);q=_.P(q);for(var w=q.next();!w.done;w=q.next())if(w=w.value,uyM[w])return w};
kmM=function(q){switch(q){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}};
Xjc=function(q){return q==="gelDebuggingEvent"};
zwf=function(q){return(q===void 0?0:q)&&_.T("vss_through_gel_video_stats")?"video_stats":"log_event"};
Dn=function(q,w,u,y){y=y===void 0?{}:y;var e={},t=Math.round(y.timestamp||(0,_.eW)());e.eventTimeMs=t<Number.MAX_SAFE_INTEGER?t:0;e[q]=w;q=_.Pm();e.context={lastActivityMs:String(y.timestamp||!isFinite(q)?-1:q)};y.sequenceGroup&&!_.T("web_gel_sequence_info_killswitch")&&(q=e.context,w=y.sequenceGroup,w={index:eHl(w),groupKey:w},q.sequence=w,y.endOfSequence&&delete aA[y.sequenceGroup]);(y.sendIsolatedPayload?tfM:FP4)({endpoint:"log_event",payload:e,cttAuthInfo:y.cttAuthInfo,dangerousLogToVisitorSession:y.dangerousLogToVisitorSession},
u)};
eHl=function(q){aA[q]=q in aA?aA[q]+1:0;return aA[q]};
_.pn=function(q,w,u){u=u===void 0?{}:u;var y=Zn;_.RX("ytLoggingEventsDefaultDisabled",!1)&&Zn===Zn&&(y=null);Dn(q,w,y,u)};
_.$8=function(){if(_.T("web_fp_via_jspb")){var q=!0;q=q===void 0?!1:q;var w=kjf;kjf=[];if(w){w=_.P(w);for(var u=w.next();!u.done;u=w.next())u=u.value,q?Dn(u.payloadName,u.payload,Zn,u.options):_.pn(u.payloadName,u.payload,u.options)}WPo(void 0,!0);if(!_.T("web_fp_via_jspb_and_json"))return}WPo(void 0,!1)};
tDf=function(q,w){var u;if((u=w)==null?0:u.componentStack)return w;if(q=q.componentStack)w||(w={}),w.componentStack=q;return w};
Pn6=function(){_.L4(_.Et("ERRORS")||[],function(q){_.vm.apply(null,q)});
_.g_("ERRORS",[])};
_.bD=function(q){_.vm(q)};
_.Y8=function(q){_.vm(q,"WARNING")};
X6f=function(q){q instanceof Error?_.vm(q):(q=_.er(q)?JSON.stringify(q):String(q),q=new _.fv(q),q.name="RejectedPromiseError",_.Y8(q))};
F6l=function(q,w,u,y,e,t){w=w===void 0?"Unknown file":w;u=u===void 0?0:u;var X=!1,G=tl6("log_window_onerror_fraction");if(G&&Math.random()<G)X=!0;else{G=document.getElementsByTagName("script");for(var n=0,N=G.length;n<N;n++)if(G[n].src.indexOf("/debug-")>0){X=!0;break}}X&&(X=!1,e?X=!0:(typeof q==="string"?G=q:ErrorEvent&&q instanceof ErrorEvent?(X=!0,G=q.message,w=q.filename,u=q.lineno,y=q.colno):(G="Unknown error",w="Unknown file",u=0),e=new _.fv(G),e.name="UnhandledWindowError",e.message=G,e.fileName=
w,e.lineNumber=u,isNaN(y)?delete e.columnNumber:e.columnNumber=y),_.T("wiz_enable_component_stack_propagation_killswitch")||(t=tDf(e,t)),t&&_.gs(e,t),X?_.vm(e):_.Y8(e))};
_.vm=function(q,w,u,y,e,t,X,G){t=t===void 0?{}:t;t.name=u||_.Et("INNERTUBE_CONTEXT_CLIENT_NAME",1);t.version=y||_.Et("INNERTUBE_CONTEXT_CLIENT_VERSION");u=t;w=w===void 0?"ERROR":w;X=X===void 0?!1:X;w=w===void 0?"ERROR":w;X=X===void 0?!1:X;if(q&&(q.hasOwnProperty("level")&&q.level&&(w=q.level),_.T("console_log_js_exceptions")&&(y=[],y.push("Name: "+q.name),y.push("Message: "+q.message),q.hasOwnProperty("params")&&y.push("Error Params: "+JSON.stringify(q.params)),q.hasOwnProperty("args")&&y.push("Error args: "+
JSON.stringify(q.args)),y.push("File name: "+q.fileName),y.push("Stacktrace: "+q.stack),y=y.join("\n"),window.console.log(y,q)),!(Gj6>=5))){y=[];e=_.P(nBo);for(t=e.next();!t.done;t=e.next()){t=t.value;try{t()&&y.push(t())}catch(a){}}y=[].concat(_.Cm(Hxj),_.Cm(y));var n=W67(q);e=n.message||"Unknown Error";t=n.name||"UnknownError";var N=n.stack||q.stacktrace||"Not available";if(N.startsWith(t+": "+e)){var Q=N.split("\n");Q.shift();N=Q.join("\n")}Q=n.lineNumber||"Not available";n=n.fileName||"Not available";
var I=0;if(q.hasOwnProperty("args")&&q.args&&q.args.length)for(var U=0;U<q.args.length&&!(I=wfJ(q.args[U],"params."+U,u,I),I>=500);U++);else if(q.hasOwnProperty("params")&&q.params){var d=q.params;if(typeof q.params==="object")for(U in d){if(d[U]){var V="params."+U,J=U8(d[U]);u[V]=J;I+=V.length+J.length;if(I>500)break}}else u.params=U8(d)}if(y.length)for(U=0;U<y.length&&!(I=wfJ(y[U],"params.context."+U,u,I),I>=500);U++);navigator.vendor&&!u.hasOwnProperty("vendor")&&(u["device.vendor"]=navigator.vendor);
U={message:e,name:t,lineNumber:Q,fileName:n,stack:N,params:u,sampleWeight:1};u=Number(q.columnNumber);isNaN(u)||(U.lineNumber=U.lineNumber+":"+u);if(q.level==="IGNORED")q=0;else a:{q=sgs();u=_.P(q.messageWeights);for(y=u.next();!y.done;y=u.next())if(y=y.value,U.message&&U.message.match(y.messageRegExp)){q=y.weight;break a}q=_.P(q.callbackWeights);for(u=q.next();!u.done;u=q.next())if(u=u.value,u.callback(U)){q=u.weight;break a}q=1}U.sampleWeight=q;q=_.P(NL7);for(u=q.next();!u.done;u=q.next())if(u=
u.value,u.patternsForType[U.name])for(e=_.P(u.patternsForType[U.name]),y=e.next();!y.done;y=e.next())if(t=y.value,y=U.message.match(t.regexp)){U.params["params.error.original"]=y[0];e=t.groups;t={};for(Q=0;Q<e.length;Q++)t[e[Q]]=y[Q+1],U.params["params.error."+e[Q]]=y[Q+1];U.message=u.messageFn(t);break}U.params||(U.params={});q=sgs();U.params["params.errorServiceSignature"]="msg="+q.messageWeights.length+"&cb="+q.callbackWeights.length;U.params["params.serviceWorker"]="false";_.uc.document&&_.uc.document.querySelectorAll&&
(U.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Ek(QgM,"sample")).constructor!==Ek&&(U.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(U);if(U.sampleWeight!==0&&!Ihu.has(U.message)){if(X&&_.T("web_enable_error_204"))ixj(w===void 0?"ERROR":w,U);else{w=w===void 0?"ERROR":w;w==="ERROR"?(rBj.publish("handleError",U),_.T("record_app_crashed_web")&&U2M===0&&U.sampleWeight===1&&(U2M++,X={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.T("report_client_error_with_app_crash_ks")||(X.systemHealth={crashData:{clientError:{logMessage:{message:U.message}}}}),_.pn("appCrashed",X)),TLs++):w==="WARNING"&&rBj.publish("handleWarning",U);if(_.T("kevlar_gel_error_routing")){X=w;G=G===void 0?{}:G;b:{q=_.P(CnM);for(u=q.next();!u.done;u=q.next())if(b4(u.value.toLowerCase())){q=!0;break b}q=!1}if(q)G=void 0;else{u={stackTrace:U.stack};U.fileName&&(u.filename=U.fileName);q=U.lineNumber&&U.lineNumber.split?U.lineNumber.split(":"):[];q.length!==
0&&(q.length!==1||isNaN(Number(q[0]))?q.length!==2||isNaN(Number(q[0]))||isNaN(Number(q[1]))||(u.lineNumber=Number(q[0]),u.columnNumber=Number(q[1])):u.lineNumber=Number(q[0]));q={level:"ERROR_LEVEL_UNKNOWN",message:U.message,errorClassName:U.name,sampleWeight:U.sampleWeight};X==="ERROR"?q.level="ERROR_LEVEL_ERROR":X==="WARNING"&&(q.level="ERROR_LEVEL_WARNNING");u={isObfuscated:!0,browserStackInfo:u};G.pageUrl=window.location.href;G.kvPairs=[];_.Et("FEXP_EXPERIMENTS")&&(G.experimentIds=_.Et("FEXP_EXPERIMENTS"));
y=_.Et("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!tl6("web_disable_gel_stp_ecatcher_killswitch")&&y)for(e=_.P(Object.keys(y)),t=e.next();!t.done;t=e.next())t=t.value,G.kvPairs.push({key:t,value:String(y[t])});if(y=U.params)for(e=_.P(Object.keys(y)),t=e.next();!t.done;t=e.next())t=t.value,G.kvPairs.push({key:"client."+t,value:String(y[t])});y=_.Et("SERVER_NAME");e=_.Et("SERVER_VERSION");y&&e&&(G.kvPairs.push({key:"server.name",value:y}),G.kvPairs.push({key:"server.version",value:e}));G={errorMetadata:G,
stackTrace:u,logMessage:q}}G&&(_.pn("clientError",G),(X==="ERROR"||_.T("errors_flush_gel_always_killswitch"))&&_.$8())}_.T("suppress_error_204_logging")||ixj(w,U)}try{Ihu.add(U.message)}catch(a){}Gj6++}}};
ixj=function(q,w){var u=w.params||{};q={urlParams:{a:"logerror",t:"jserror",type:w.name,msg:w.message.substr(0,250),line:w.lineNumber,level:q,"client.name":u.name},postParams:{url:_.Et("PAGE_NAME",window.location.href),file:w.fileName},method:"POST"};u.version&&(q["client.version"]=u.version);if(q.postParams){w.stack&&(q.postParams.stack=w.stack);w=_.P(Object.keys(u));for(var y=w.next();!y.done;y=w.next())y=y.value,q.postParams["client."+y]=u[y];if(u=_.Et("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(w=
_.P(Object.keys(u)),y=w.next();!y.done;y=w.next())y=y.value,q.postParams[y]=u[y];(u=_.Et("LAVA_VERSION"))&&(q.postParams["lava.version"]=u);u=_.Et("SERVER_NAME");w=_.Et("SERVER_VERSION");u&&w&&(q.postParams["server.name"]=u,q.postParams["server.version"]=w)}_.I2(_.Et("ECATCHER_REPORT_HOST","")+"/error_204",q)};
_.d2l=function(q,w){w=w===void 0?"ERROR":w;var u=u===void 0?{}:u;var y=_.hP("ytbin.polymer.shared.lib.tampering.info");y&&(y=y())&&(u["params.tamperingInfo"]=y.sort().join(","));_.vm(q,w,void 0,void 0,!0,u)};
_.gs=function(q){var w=_.Cj.apply(1,arguments);q.args||(q.args=[]);Array.isArray(q.args)&&q.args.push.apply(q.args,_.Cm(w))};
Oxy=function(q){q.level="IGNORED"};
oBj=function(q,w){Hxj.push(q);w();Hxj.pop()};
cm=function(q,w){for(var u in w)w.hasOwnProperty(u)&&(q=_.RA(q,u,w[u]));return q};
_.VDf=function(q,w,u){u=u===void 0?!1:u;if(!q)return null;if(q.adInfoDialogEndpoint||q.backstageImageUploadEndpoint||q.confirmDialogEndpoint||q.clientActionEndpoint||q.createBackstagePostDialogEndpoint||q.createCommentReplyDialogEndpoint||q.flowEndpoint||q.guideBuilderEndpoint||q.liveChatDialogEndpoint||q.modalEndpoint||q.openPopupAction||q.shareEndpoint||q.shareEntityEndpoint||q.showLiveChatItemEndpoint||q.subscriptionManagerEndpoint||q.unlimitedCreateFamilyEndpoint||q.unlimitedFamilyFlowEndpoint||
q.updateCommentDialogEndpoint||q.updateCommentReplyDialogEndpoint||q.userFeedbackEndpoint||q.videoEditorEndpoint||q.ypcCancelSurveyEndpoint)return w=_.Fc("polymer_report_client_url_requested_rate"),!u&&Math.random()<w&&_.Y8(new _.fv("urlForEndpoint used on client endpoint",q)),null;var y=_.Fc("polymer_report_missing_web_navigation_endpoint_rate");if(q.liveChatEndpoint||q.liveChatReplayEndpoint)y=0;if(!q.commandMetadata&&!q.clickTrackingParams&&Math.random()<y){var e={},t;for(t in q)e[t]="1";_.Y8(new _.fv("Missing navigation data",
e))}e="";if(q.commandMetadata&&q.commandMetadata.webCommandMetadata&&q.commandMetadata.webCommandMetadata.url)e=q.commandMetadata.webCommandMetadata.url;else if(q.searchEndpoint)Math.random()<y&&_.Y8(new _.fv("Should not manually handle search",q)),e="/results?search_query="+encodeURIComponent(q.searchEndpoint.query).replace(/%20/g,"+"),q.searchEndpoint.params&&(e+="&sp="+q.searchEndpoint.params);else if(q.watchEndpoint)Math.random()<y&&_.Y8(new _.fv("Should not manually handle watch",q)),e="/watch?v="+
q.watchEndpoint.videoId,q.watchEndpoint.playlistId&&(e+="&list="+q.watchEndpoint.playlistId),q.watchEndpoint.index&&(e+="&index="+q.watchEndpoint.index),q.watchEndpoint.startTimeSeconds&&(e+="&t="+q.watchEndpoint.startTimeSeconds);else if(q.browseEndpoint)y=q.browseEndpoint.browseId,(t=q.browseEndpoint.canonicalBaseUrl)?e=t:y&&(e=y.substr(0,2),e=e==="FE"?y==="FEwhat_to_watch"?"/":y==="FEmy_videos"?"/my_videos":"/feed/"+y.substr(2):e==="VL"?"/playlist?list="+y.substr(2):"/channel/"+y),e&&q.browseEndpoint.query&&
(e=cm(e+"/search",{query:q.browseEndpoint.query})),e&&q.browseEndpoint.params&&(e=cm(e,{params:q.browseEndpoint.params}));else{if(q.urlEndpoint)return q.urlEndpoint.url;q.signInEndpoint?(e="https://accounts.google.com/ServiceLogin",y={},_.db.extend(y,w||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),w=y):q.uploadEndpoint?e="//www.youtube.com/upload":q.liveChatEndpoint?(e=q.liveChatEndpoint,y=_.db.clone(e),_.er(e.continuation)&&(t=Object.keys(e.continuation)[0],
y.continuation=e.continuation[t].continuation),e=cm("/youtubei/v1/live_chat/get_live_chat",y)):q.liveChatReplayEndpoint?(e=_.db.clone(q.liveChatReplayEndpoint),e.currentPlayerState&&(_.db.extend(e,e.currentPlayerState),delete e.currentPlayerState),e=cm("/youtubei/v1/live_chat/get_live_chat_replay",e)):q.liveChatItemContextMenuEndpoint?e=cm("/youtubei/v1/live_chat/get_item_context_menu",q.liveChatItemContextMenuEndpoint):q.liveChatPurchaseMessageEndpoint?e=cm("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
q.liveChatPurchaseMessageEndpoint):q.openSuperStickerBuyFlowCommand?e=cm("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",q.openSuperStickerBuyFlowCommand):q.videoEditEndpoint?e=cm("/edit",{video_id:q.videoEditEndpoint.videoId}):q.liveDashboardEndpoint?e=q.liveDashboardEndpoint.videoId?cm("/live_dashboard",{v:q.liveDashboardEndpoint.videoId}):"/live_dashboard":q.signalNavigationEndpoint&&q.signalNavigationEndpoint.signal&&q.signalNavigationEndpoint.signal==="WEBCAM"?e="/webcam":q.getPdgBuyFlowCommand&&
(e=cm(q.getPdgBuyFlowCommand.buyflowApiPath,{params:q.getPdgBuyFlowCommand.params}))}return e||u?cm(e,w||{}):(_.Y8(new _.fv("Error: Can't construct url for endpoint","keys:"+Object.keys(q).sort().join(","),q)),null)};
fh4=function(q){if(q){if(q.browseEndpoint)return!!q.browseEndpoint.nofollow;if(q.watchEndpoint)return!!q.watchEndpoint.nofollow;if(q.urlEndpoint)return!!q.urlEndpoint.nofollow}return!1};
_.ABy=function(q,w){var u=w+q,y=m2M.get(u);if(y)return y;q=w+"-"+q.replace(/([A-Z])/g,"-$1").toLowerCase();m2M.set(u,q);return q};
JB7=function(q){var w=_.bo(q,"action")||_.bo(q,"command")||_.bo(q,"endpoint");if(!w)return null;w=_.ABy(w,"yt");_.C(q,_.Sw)&&(w+="-"+_.C(q,_.Sw).signal.toLowerCase().replace(/_/g,"-"));return w};
ZxM=function(q){try{var w=Object.keys(q)}catch(e){return[]}for(var u=0;u<w.length;u++){var y=w[u];if(zHz.test(y)||ahJ.test(y))return D24(q[y])}return[]};
D24=function(q){return q.command?[q.command]:q.onExecutionAction?[q.onExecutionAction]:q.onResponseReceivedCommand?[q.onResponseReceivedCommand]:q.updateFlowCommand?[q.updateFlowCommand]:q.clientActions?q.clientActions:q.action?[q.action]:q.actions||q.commands||q.onResponseReceivedActions||q.onResponseReceivedCommands||q.onResponseReceivedEndpoints||[]};
$2z=function(q,w){w=w===void 0?!1:w;var u=_.tG().resolve(_.kF(hq));u||(u=new p6f,_.tG().addProvider({provide:hq,useValue:u}));return u&&q&&!_.db.isEmpty(q)?u.getUrl(q,w):""};
vBJ=function(q,w,u){u=u===void 0?"":u;if(w){q.data=w;var y=$2z(w);y?(VE(q,y),fh4(w)||!yV(y)?q.rel="nofollow":q.removeAttribute("rel"),_.C(w,_.jw)&&_.C(w,_.jw).target==="TARGET_NEW_WINDOW"?q.target="_blank":u?q.target=u:q.removeAttribute("target")):(q.removeAttribute("href"),q.removeAttribute("rel"),q.removeAttribute("target"))}};
_.Kn=function(q,w){var u=yy;if(JX())bxu(q,function(){var t=_.Cj.apply(0,arguments);bO(u,function(){w.apply(null,_.Cm(t))})});
else{var y=_.lD.getInstance(),e=vl(w);Mwl(function(){e.value=w});
_.p4(function(){var t={},X=_.Ln(y,(t[q]=function(){var G=_.Cj.apply(0,arguments);bO(u,function(){e.value.apply(e,_.Cm(G))})},t));
return function(){var G={};_.M5(y,(G[q]="",G),X)}})}};
_.Bm=function(q){return JX()?YOc(q):gBj(q)};
_.x8=function(q){return JX()?YOc(q):gBj(q)};
gBj=function(q){return $w(function(){return YOc(q)})};
YOc=function(q){var w=hY4(function(u){w.value&&w.value===u||(w.__count=w.__count?w.__count+1:1);w.value=u;var y=function(){var e=nD(null);try{return q==null?void 0:q(u)}finally{nD(e)}}();
return function(){y==null||y();w.value=null}});
return w};
EBo=function(q){var w=yy,u=XZ.enableContextBasedComponentStacks?void 0:mb;return{getFn:function(){return function(y){if(!w.isDisposed){var e=function(){return Qy(function(){return q(y)})};
if(XZ.enableContextBasedComponentStacks)try{var t=e()}catch(X){throw XZ.enableContextBasedComponentStacks&&zZ(X),X;}else t=aR(e,u);t!==!0&&y.stopPropagation()}}}}};
qb=function(q){if(typeof q.children==="function")return q.children(),null;q=_.P(q.children);for(var w=q.next();!w.done;w=q.next())w=w.value,w();return null};
RHz=function(q){var w;return((w=q.prototype)==null?void 0:w.render)===void 0};
cBM=function(q){q=q.items.map(q.children);return q.length>0&&typeof q[0]==="string"?q.join(""):q};
hHu=function(q,w,u){u=u===void 0?!1:u;if(XZ.enableContextBasedComponentStacks)try{SOJ(q,w,u)}catch(y){throw zZ(y),y;}else aR(function(){return SOJ(q,w,u)})};
SOJ=function(q,w,u){u=((u===void 0?0:u)?jgl:lhj)(q,function(){wA(w)});
return u===null?q:u};
wA=function(q){if(q!==void 0&&q!==null)if(q instanceof TS)for(var w=j7;lO()!=null&&Aq6 in lO()&&w.contains(lO());)xC();else if(Array.isArray(q))for(w=_.P(q),q=w.next();!q.done;q=w.next())wA(q.value);else if(q instanceof XE||"function"==typeof _.S9&&q instanceof _.S9)Pl(q.toString());else if(Hl(q)){if(lO()!==q){var u,y;w=(y=(u=mb)==null?void 0:u.name)!=null?y:"unknown";throw Error("ec`"+q.tagName+"`"+w);}xC()}else if(q!=null&&q.contentKind===NZ||q instanceof fj)for(w=Kry(q),w=Array.from(w.childNodes),
w=_.P(w),q=w.next();!q.done;q=w.next())j7.appendChild(q.value),xC();else if(sY(q)&&(q=q.toString()),u=typeof q,u==="boolean"||u==="number"||u==="string")Pl(q);else if(typeof q==="function"){w=j7;var e=lO();e&&(e._isSignalTextNode||e._isSafeOrSanitizedHtmlNode)||rq4(w,e,q);xC()}else if(q.type===cBM)wA(q.type(Object.assign({},q.props,{children:q.children[0]})));else{Ot.beforeVisit(q);if(typeof q.type==="string"){a:{q.__open||J6j(q.type,q.props.idomKey);e=j7;for(w in q.props)if(q.props[w]!==L6f){var t=
q.props[w];u=yQ;u.push(w);u.push(t)}w=XZ.attributes;w=w===void 0?uV:w;t=j7;u=hX(t);vZf(t,u,w);ins(e,q.props,!0);if((q.props.skip||q.props.skipchildren)&&j7.hasChildNodes())w_();else{if(q.type==="style"&&eYM(q.children)===null){w_();w=void 0;break a}wA(q.children)}zuc();q.__open&&(q.__open=!1);SEs(e,q.props);w=e}return w}if(q.type===_.GS)wA(q.children);else if(!MDM(q)){w=q;try{K6l(w)}catch(X){q=X,(t=XZ.handleError)==null||t.call.apply(t,[XZ].concat(_.Cm(YC(q,(e=w.type)==null?void 0:e.TAG_NAME))))}w.__open&&
(zuc(),w.__open=!1)}}};
BL4=function(q,w){var u;RHz(q)?u=new VQ(w,q):u=new q(w);u.JSC$8165___type=q;u.__updateContext={nextState:u.state,isForced:!1};return u};
K6l=function(q){var w=q.type,u=w.TAG_NAME;if(w===qb)q.props.children=q.children,w(q.props);else{q.children.length>0&&(q.props.children=q.children);var y;(y=q.props).idomKey||(y.idomKey=w);if(u){var e=J6j(u,q.props.idomKey);q.__open=!0;var t=e.__instance}t||(t=BL4(w,q.props),t.props=null,e&&(e.__instance=t,t.el=e));var X;u=((X=t.__updateContext)!=null?X:{nextState:t.state,isForced:!1}).nextState;t.__updateContext=void 0;w.getDerivedStateFromProps&&(u=w.getDerivedStateFromProps(q.props,u));t.props=
q.props;t.state=u;X=function(){var G=t;Ot.beforeRender(G);var n=G.render(G.props);Ot.afterRender(G,n);n?(G.props.idomKey&&(n.props.idomKey=G.props.idomKey),G=n):G=void 0;if(n=G)if(n.__open=q.__open,G=wA(n),q.__open=n.__open,!w.TAG_NAME)if(G)w.TAG_NAME=G.tagName.toLowerCase(),G.__instance=t,t.el=G;else{var N;if((N=t.hooks)==null?0:N.length){var Q;(Q=XZ.handleError)==null||Q.call.apply(Q,[XZ].concat(_.Cm(YC(Error("kd")))))}}t.didPatch();Ot.didPatch(t)};
(u=t.functionComponent)?LIo({component:u,debugInstance:t.props.debugInstance,fn:X}):X()}};
MDM=function(q){var w=q.type;if(!RHz(w)||w===qb||w.componentType===AX)return!1;q.props.children=q.children.length>1?q.children:q.children[0];var u,y=(u=q.props.idomKey)!=null?u:q.type,e;if(lO()&&((e=lO()[IX])==null?void 0:e.key)===y){var t=lO(),X=t[IX];if(!X)throw Error("dc`"+t.tagName);var G;(G=X.updateSignalsFromIdomProps)==null||G.call(X,q.props);x2s(X);return!0}if(q34.has(w.name))throw G=w.name,w=(X=(t=mb)==null?void 0:t.name)!=null?X:"unknown",Error("cc`"+G+"`"+w);d5s(q.type,q.props,q.children);
q.props.renderedFromIdom=!0;(G=LIo({component:q.type,debugInstance:q.props.debugInstance,fn:function(){return WgJ(q.type,q.props)}}))&&wRf(G);
return!0};
uKz=function(q){for(var w=0;w<Ut(q).length;w++)xC()};
x2s=function(q){var w=yEJ();if(w)uKz(w);else for(var u=0;u<q.numNodes;u++)(w=yEJ())?uKz(w):xC()};
yEJ=function(){var q;return(q=lO()[IX])==null?void 0:q.sourceDynamicRange};
wRf=function(q){q=jz4(q);q=Array.isArray(q)?q:[q];q=_.P(q);for(var w=q.next();!w.done;w=q.next())j7.insertBefore(w.value,lO()),xC()};
eQM=function(q){var w=Nsy(),u=$w(function(){return{value:typeof q==="function"?q():q}});
return[u.value,function(y){if(oX!==null){var e;(e=XZ.handleError)==null||e.call.apply(e,[XZ].concat(_.Cm(YC(Error("ld")))))}u.value=typeof y==="function"?y(u.value):y;w.__updateContext={nextState:w.state,isForced:!0};y=e7(w.effectContext);e=n4(!1);try{if(w.el){var t,X={},G=(X.props=w.props,X.type=w.JSC$8165___type,X.children=(t=w.props.children)!=null?t:[],X[Fd]=!0,X);try{hHu(w.el,G,!0)}catch(Q){var n,N;(N=XZ.handleError)==null||N.call.apply(N,[XZ].concat(_.Cm(YC(Q,(n=w.JSC$8165___type)==null?void 0:
n.TAG_NAME))))}}}finally{n4(e),e7(y)}}]};
y1=function(q,w){var u=yy,y=function(e){bO(u,function(){w(e)})};
window.addEventListener(q,y,void 0);_.ZG(function(){window.removeEventListener(q,y,void 0)})};
_.k$=function(q,w){var u=yy;_.p4(function(){var y,e=(y=w.observer)!=null?y:_.tG().resolve(el);if(y=q.value){var t=kW6(y),X=[];w.showOption&&X.push(e.observe(y,function(){bO(u,function(){w.visibilityCallback(!0)})},w.showOption));
w.hideOption&&X.push(e.observe(y,function(){bO(u,function(){w.visibilityCallback(!1)})},w.hideOption));
w.prescanOption&&w.prescanCallback&&X.push(e.observe(y,function(){bO(u,function(){w.prescanCallback()})},w.prescanOption));
var G;t.visibilityMonitorKeys=((G=t.visibilityMonitorKeys)!=null?G:[]).concat(X)}})};
kW6=function(q){var w;return(w=q.polymerController)!=null?w:q};
_.t2=function(q){q.componentType=AX};
Fsl=function(q,w){var u=t6o;return _.W(_.GS,null,uO(XZ.enableLazyTsx,function(){return _.W(Pvf,{id:u,value:q,children:w})},function(){var y=XRu(u,q);
tX(y);y=e7(y);try{return w()}finally{e7(y)}}))};
Pvf=function(q){var w=q.children;q=XRu(q.id,q.value);tX(q);q=e7(q);try{return _.W(_.GS,null,C4(w()))}finally{e7(q)}};
XRu=function(q,w){return Object.assign(Object.create(GWy),{id:q,contextValue:w})};
noj=function(q){var w,u=yy;_.v1(function(){var y=e7(u),e=n4(!w);try{if(w)hHu(w,q.children(),!0);else if(w=C4(q.children()),!(w instanceof Element))throw Error("md");}finally{n4(e),e7(y)}});
return w};
HT4=function(q){var w,u=pD(function(){var y=n4(!0);try{w=Ut(q())}finally{n4(y)}},!1);
return[w,u]};
sV4=function(q){q=q.buf.charCodeAt(q.pos++);return Wsu[q]};
P0=function(q){var w=0,u=0;do{var y=sV4(q);w|=(y&31)<<u;u+=5}while(y&32);return w<0?w+4294967296:w};
IKJ=function(q,w,u){Nm7(q,w);q[w][QVl].unshift(u)};
Nm7=function(q,w){if(!q[w]||!q[w][QVl]){var u=q[w],y=u?[u]:[];q[w]=function(){for(var e=_.P(y),t=e.next();!t.done;t=e.next())t.value.apply(this,arguments)};
q[w][QVl]=y}};
iTc=function(q){if(!q)return[];var w=[];q=_.P(q);for(var u=q.next();!u.done;u=q.next())u=u.value,Array.isArray(u)?w.push.apply(w,_.Cm(iTc(u))):w.push(u);return w};
_.FQ=function(q,w){if(q&&rEu.test(q)||q==="//")return q;if(U9u===void 0){U9u=!1;try{var u=new URL("b","http://a");u.pathname="c%20d";U9u=u.href==="http://a/c%20d"}catch(y){}}w||(w=document.baseURI||window.location.href);if(U9u)try{return(new URL(q,w)).href}catch(y){return q}XQ||(XQ=document.implementation.createHTMLDocument("temp"),XQ.base=XQ.createElement("base"),XQ.head.appendChild(XQ.base),XQ.anchor=XQ.createElement("a"),XQ.body.appendChild(XQ.anchor));XQ.base.href=w;XQ.anchor.href=q;return XQ.anchor.href||
q};
Cvc=function(q,w){return q.replace(Tmj,function(u,y,e,t){return y+"'"+_.FQ(e.replace(/["']/g,""),w)+"'"+t})};
d97=function(q){return q.substring(0,q.lastIndexOf("/")+1)};
V6j=function(){OTy=!1;for(var q=Gd.length,w=0;w<q;w++){var u=Gd[w];if(u)try{u()}catch(y){setTimeout(function(){throw y;})}}Gd.splice(0,q);
ooc+=q};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(q){console.log("["+q.is+"]: registered")};
m9c=function(q){fKM.push(q)};
nJ=function(q){return AEM[q]||(AEM[q]=q.indexOf("-")<0?q:q.replace(JEy,function(w){return w[1].toUpperCase()}))};
H0=function(q){return AEM[q]||(AEM[q]=q.replace(zQu,"-$1").toLowerCase())};
aKH=function(q,w){var u=w.parentInfo&&aKH(q,w.parentInfo);if(u)for(q=u.firstChild,u=0;q;q=q.nextSibling){if(w.parentIndex===u++)return q}else return q};
D9s=function(q,w){q=q._methodHost||q;return function(u){if(q[w])q[w](u,u.detail);else console.warn("listener method `"+w+"` not defined")}};
W0=function(q){return q.indexOf(".")>=0};
s4=function(q){var w=q.indexOf(".");return w===-1?q:q.slice(0,w)};
ZTH=function(q,w){return q.indexOf(w+".")===0};
Nb=function(q,w){return w.indexOf(q+".")===0};
Q1=function(q,w,u){return w+u.slice(q.length)};
pR7=function(q,w){return q===w||ZTH(q,w)||Nb(q,w)};
Iv=function(q){if(Array.isArray(q)){for(var w=[],u=0;u<q.length;u++)for(var y=q[u].toString().split("."),e=0;e<y.length;e++)w.push(y[e]);return w.join(".")}return q};
$9M=function(q){return Array.isArray(q)?Iv(q).split("."):q.toString().split(".")};
iV=function(q,w,u){w=$9M(w);for(var y=0;y<w.length;y++){if(!q)return;q=q[w[y]]}u&&(u.path=w.join("."));return q};
voM=function(q,w,u){var y=$9M(w),e=y[y.length-1];if(y.length>1){for(w=0;w<y.length-1;w++)if(q=q[y[w]],!q)return;q[e]=u}else q[w]=u;return y.join(".")};
bTs=function(q,w,u){var y=q[w];if(!y)y=q[w]={};else if(!q.hasOwnProperty(w)&&(y=q[w]=Object.create(q[w]),u))for(var e in y)for(q=y[e],w=y[e]=Array(q.length),u=0;u<q.length;u++)w[u]=q[u];return y};
U4=function(q,w,u,y,e,t){if(w){var X=!1,G=rA++,n;for(n in u){var N=e?s4(n):n;if(N=w[N])for(var Q=0,I=N.length,U=void 0;Q<I&&(U=N[Q]);Q++)U.info&&U.info.lastRun===G||e&&!Y3o(n,U.trigger)||(U.info&&(U.info.lastRun=G),U.fn(q,n,u,y,U.info,e,t),X=!0)}return X}return!1};
Y3o=function(q,w){if(w){var u=w.name;return u==q||!(!w.structured||!ZTH(u,q))||!(!w.wildcard||!Nb(u,q))}return!0};
gol=function(q,w,u,y,e){w=typeof e.method==="string"?q[e.method]:e.method;u=e.property;w?w.call(q,q.__data[u],y[u]):e.dynamicFn||console.warn("observer method `"+e.method+"` not defined")};
EoM=function(q,w,u,y){u={value:u,queueProperty:!0};y&&(u.path=y);(0,_.Td)(q).dispatchEvent(new CustomEvent(w,{detail:u}))};
RQH=function(q,w,u,y,e,t){t=(y=(t?s4(w):w)!=w?w:null)?iV(q,y):q.__data[w];y&&t===void 0&&(t=u[w]);EoM(q,e.eventName,t,y)};
cEj=function(q,w,u,y,e){u=q.__data[w];CJ&&(u=CJ(u,e.attrName,"attribute",q));q._propertyToAttribute(w,e.attrName,u)};
hQc=function(q){var w=q.constructor.__orderedComputedDeps;if(!w){w=new Map;for(var u=q.__computeEffects,y=S36(q),e=y.counts,t=y.ready,X=y.total;y=t.shift();)w.set(y,w.size),(y=u[y])&&y.forEach(function(G){G=G.info.methodInfo;--X;--e[G]===0&&t.push(G)});
X!==0&&console.warn("Computed graph for "+q.localName+" incomplete; circular?");q.constructor.__orderedComputedDeps=w}return w};
S36=function(q){var w=q.__computeInfo,u={};q=q.__computeEffects;var y=[],e=0,t;for(t in w){var X=w[t];e+=u[t]=X.args.filter(function(n){return!n.literal}).length+(X.dynamicFn?1:0)}for(var G in q)w[G]||y.push(G);
return{counts:u,ready:y,total:e}};
lKj=function(q,w,u,y,e){w=jV6(q,w,u,y,e);if(w===dA)return!1;e=e.methodInfo;if(q.__dataHasAccessor&&q.__dataHasAccessor[e])return q._setPendingProperty(e,w,!0);q[e]=w;return!1};
Ksy=function(q,w,u,y,e,t,X){u.bindings=u.bindings||[];y={kind:y,target:e,parts:t,literal:X,isCompound:t.length!==1};u.bindings.push(y);y.target&&y.kind!="attribute"&&y.kind!="text"&&!y.isCompound&&y.parts[0].mode==="{"&&(u=y.parts[0],t=u.negate,y.listenerEvent=u.event||H0(e)+"-changed",y.listenerNegate=t);e=w.nodeInfoList.length;for(u=0;u<y.parts.length;u++){var G=y.parts[u];G.compoundIndex=u;t=q;X=w;var n=y,N=G,Q=e;if(!N.literal)if(n.kind==="attribute"&&n.target[0]==="-")console.warn("Cannot set attribute "+
n.target+' because "-" is not a valid attribute starting character');else for(G=N.dependencies,n={index:Q,binding:n,part:N,evaluator:t},N=0;N<G.length;N++)Q=G[N],typeof Q=="string"&&(Q=Lsl(Q),Q.wildcard=!0),t._addTemplatePropertyEffect(X,Q.rootProperty,{fn:M6H,info:n,trigger:Q})}};
M6H=function(q,w,u,y,e,t,X){X=X[e.index];var G=e.binding,n=e.part;t&&n.source&&w.length>n.source.length&&G.kind=="property"&&!G.isCompound&&X.__isPropertyEffectsClient&&X.__dataHasAccessor&&X.__dataHasAccessor[G.target]?(u=u[w],w=Q1(n.source,G.target,w),X._setPendingPropertyOrPath(w,u,!1,!0)&&q._enqueueClient(X)):(w=e.evaluator._evaluateBinding(q,n,w,u,y,t),w!==dA&&(G.isCompound&&(u=X.__dataCompoundStorage[G.target],u[n.compoundIndex]=w,w=u.join("")),G.kind==="attribute"||G.target!=="textContent"&&
(G.target!=="value"||X.localName!=="input"&&X.localName!=="textarea")||(w=w==void 0?"":w),n=w,CJ&&(n=CJ(n,G.target,G.kind,X)),G.kind=="attribute"?q._valueToNodeAttribute(X,n,G.target):(G=G.target,X.__isPropertyEffectsClient&&X.__dataHasAccessor&&X.__dataHasAccessor[G]?X.__readOnly&&X.__readOnly[G]||X._setPendingProperty(G,n)&&q._enqueueClient(X):q._setUnmanagedPropertyToNode(X,G,n))))};
BmM=function(q,w,u){if(u.listenerEvent){var y=u.parts[0];q.addEventListener(u.listenerEvent,function(e){var t=u.target,X=y.source,G=y.negate,n=e.detail,N=n&&n.path;N?(X=Q1(t,X,N),e=n&&n.value):e=e.currentTarget[t];w.__readOnly&&w.__readOnly[X]||!w._setPendingPropertyOrPath(X,G?!e:e,!0,!!N)||n&&n.queueProperty||w._invalidateProperties()})}};
x9M=function(q,w,u,y,e,t){t=w.static||t&&(typeof t!=="object"||t[w.methodName]);e={methodName:w.methodName,args:w.args,methodInfo:e,dynamicFn:t};for(var X=0,G=void 0;X<w.args.length&&(G=w.args[X]);X++)G.literal||q._addPropertyEffect(G.rootProperty,u,{fn:y,info:e,trigger:G});t&&q._addPropertyEffect(w.methodName,u,{fn:y,info:e});return e};
jV6=function(q,w,u,y,e){y=q._methodHost||q;var t=y[e.methodName];if(t)return q=q._marshalArgs(e.args,w,u),q===dA?dA:t.apply(y,q);e.dynamicFn||console.warn("method `"+e.methodName+"` not defined")};
qFM=function(q){for(var w="",u=0;u<q.length;u++)w+=q[u].literal||"";return w};
ygs=function(q){if(q=q.match(/([^\s]+?)\(([\s\S]*)\)/)){var w={methodName:q[1],static:!0,args:wCz};return q[2].trim()?uuy(q[2].replace(/\\,/g,"&comma;").split(","),w):w}return null};
uuy=function(q,w){w.args=q.map(function(u){u=Lsl(u);u.literal||(w.static=!1);return u},this);
return w};
Lsl=function(q){q=q.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var w={name:q,value:"",literal:!1},u=q[0];u==="-"&&(u=q[1]);u>="0"&&u<="9"&&(u="#");switch(u){case "'":case '"':w.value=q.slice(1,-1);w.literal=!0;break;case "#":w.value=Number(q),w.literal=!0}w.literal||(w.rootProperty=s4(q),w.structured=W0(q),w.structured&&(w.wildcard=q.slice(-2)==".*",w.wildcard&&(w.name=q.slice(0,-2))));return w};
ebj=function(q,w,u){q=iV(q,u);q===void 0&&(q=w[u]);return q};
knj=function(q,w,u,y){y={indexSplices:y};O4&&!q._overrideLegacyUndefined&&(w.splices=y);q.notifyPath(u+".splices",y);q.notifyPath(u+".length",w.length);O4&&!q._overrideLegacyUndefined&&(y.indexSplices=[])};
ov=function(q,w,u,y,e,t){knj(q,w,u,[{index:y,addedCount:e,removed:t,object:w,type:"splice"}])};
tgl=function(q){q=Cvc((q.body?q.body:q).textContent,q.baseURI);var w=document.createElement("style");w.textContent=q;return w};
XCu=function(q){q=q.trim().split(/\s+/);for(var w=[],u=0;u<q.length;u++)w.push.apply(w,_.Cm(Pql(q[u])));return w};
Pql=function(q){var w=V1.import(q);if(!w)return console.warn("Could not find style data in module named",q),[];if(w._styles===void 0){q=[];q.push.apply(q,_.Cm(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(w)));var u=w.querySelector("template");u&&q.push.apply(q,_.Cm(FGc(u,w.assetpath)));w._styles=q}return w._styles};
FGc=function(q,w){if(!q._styles){for(var u=[],y=q.content.querySelectorAll("style"),e=0;e<y.length;e++){var t=y[e],X=t.getAttribute("include");X&&u.push.apply(u,_.Cm(XCu(X).filter(function(G,n,N){return N.indexOf(G)===n})));
w&&(t.textContent=Cvc(t.textContent,w));u.push(t)}q._styles=u}return q._styles};
Gns=function(q){return(q=V1.import(q))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(q):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(q){var w=[];q=q.querySelectorAll("link[rel=import][type~=css]");for(var u=0;u<q.length;u++){var y=q[u];if(y.import){var e=y.import;if((y=y.hasAttribute("shady-unscoped"))&&!e._unscopedStyle){var t=tgl(e);t.setAttribute("shady-unscoped","");e._unscopedStyle=t}else e._style||(e._style=tgl(e));w.push(y?e._unscopedStyle:e._style)}}return w};
HrM=function(q){q=q.trim().split(/\s+/);for(var w="",u=0;u<q.length;u++)w+=nHc(q[u]);return w};
nHc=function(q){var w=V1.import(q);if(w&&w._cssText===void 0){var u=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(w),y=w.querySelector("template");y&&(u+=WGz(y,w.assetpath));w._cssText=u||null}w||console.warn("Could not find style data in module named",q);return w&&w._cssText||""};
WGz=function(q,w){var u="";q=FGc(q,w);for(w=0;w<q.length;w++){var y=q[w];y.parentNode&&y.parentNode.removeChild(y);u+=y.textContent}return u};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(q){var w="";q=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(q);for(var u=0;u<q.length;u++)w+=q[u].textContent;return w};
fJ=function(q,w){return{index:q,removed:[],addedCount:w}};
QHl=function(q,w,u,y){var e=0,t=0,X=0,G=0,n=Math.min(w-e,y-t);if(e==0&&t==0)a:{for(X=0;X<n;X++)if(q[X]!==u[X])break a;X=n}if(w==q.length&&y==u.length){G=q.length;for(var N=u.length,Q=0;Q<n-X&&NEj(q[--G],u[--N]);)Q++;G=Q}e+=X;t+=X;w-=G;y-=G;if(w-e==0&&y-t==0)return[];if(e==w){for(w=fJ(e,0);t<y;)w.removed.push(u[t++]);return[w]}if(t==y)return[fJ(e,w-e)];n=e;X=t;y=y-X+1;G=w-n+1;w=Array(y);for(N=0;N<y;N++)w[N]=Array(G),w[N][0]=N;for(N=0;N<G;N++)w[0][N]=N;for(N=1;N<y;N++)for(Q=1;Q<G;Q++)if(q[n+Q-1]===
u[X+N-1])w[N][Q]=w[N-1][Q-1];else{var I=w[N-1][Q]+1,U=w[N][Q-1]+1;w[N][Q]=I<U?I:U}n=w.length-1;X=w[0].length-1;y=w[n][X];for(q=[];n>0||X>0;)n==0?(q.push(2),X--):X==0?(q.push(3),n--):(G=w[n-1][X-1],N=w[n-1][X],Q=w[n][X-1],I=N<Q?N<G?N:G:Q<G?Q:G,I==G?(G==y?q.push(0):(q.push(1),y=G),n--,X--):I==N?(q.push(3),n--,y=N):(q.push(2),X--,y=Q));q.reverse();w=void 0;n=[];for(X=0;X<q.length;X++)switch(q[X]){case 0:w&&(n.push(w),w=void 0);e++;t++;break;case 1:w||(w=fJ(e,0));w.addedCount++;e++;w.removed.push(u[t]);
t++;break;case 2:w||(w=fJ(e,0));w.addedCount++;e++;break;case 3:w||(w=fJ(e,0)),w.removed.push(u[t]),t++}w&&n.push(w);return n};
Isj=function(q,w){return QHl(q,q.length,w,w.length)};
NEj=function(q,w){return q===w};
rgH=function(q){if(q instanceof irH)return q.value;throw Error("Dd`"+q);};
UI4=function(q,w){for(var u in w)u===null?q.style.removeProperty(u):q.style.setProperty(u,w[u])};
TEJ=function(q,w){return(q=window.getComputedStyle(q).getPropertyValue(w))?q.trim():""};
oH4=function(q){requestAnimationFrame(function(){Cql?Cql(q):(dIc||(dIc=new Promise(function(w){Orc=w}),document.readyState==="complete"?Orc():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Orc()})),dIc.then(function(){q&&q()}))})};
mIy=function(q){VgM=q&&q.shimcssproperties?!1:fss||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
DI6=function(q){if(!(Ago.indexOf(q)>-1)&&q!=="touchend"&&Jgs&&zbj&&as4)return{passive:!0}};
vHy=function(q){for(var w=Zru?["click"]:Ago,u=0,y;u<w.length;u++)y=w[u],q?(pCy.length=0,document.addEventListener(y,$If,!0)):document.removeEventListener(y,$If,!0)};
mM=function(q){var w=q.type;return Ago.indexOf(w)>-1?w==="mousemove"?(w=q.buttons===void 0?1:q.buttons,q instanceof window.MouseEvent&&!brf&&(w=YFH[q.which]||0),!!(w&1)):(q.button===void 0?0:q.button)===0:!1};
gH7=function(q){if(q.type==="click"){if(q.detail===0)return!0;var w=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q);if(!w.nodeType||w.nodeType!==Node.ELEMENT_NODE)return!0;w=w.getBoundingClientRect();var u=q.pageX;q=q.pageY;return!(u>=w.left&&u<=w.right&&q>=w.top&&q<=w.bottom)}return!1};
EHl=function(q,w,u){q.movefn=w;q.upfn=u;document.addEventListener("mousemove",w);document.addEventListener("mouseup",u)};
A2=function(q){document.removeEventListener("mousemove",q.movefn);document.removeEventListener("mouseup",q.upfn);q.movefn=null;q.upfn=null};
Rbc=function(q,w){for(var u=document.elementFromPoint(q,w),y=u;y&&y.shadowRoot&&!window.ShadyDOM;){var e=y;y=y.shadowRoot.elementFromPoint(q,w);if(e===y)break;y&&(u=y)}return u};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q){var w=cgl(q);return w.length>0?w[0]:q.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q){var w=q.type,u=q.currentTarget.__polymerGestures;if(u&&(u=u[w])){if(!q.__polymerGesturesHandled&&(q.__polymerGesturesHandled={},w.slice(0,5)==="touch")){var y=q.changedTouches[0];w==="touchstart"&&q.touches.length===1&&(SF6=y.identifier);if(SF6!==y.identifier)return;Jgs||(w==="touchstart"||w==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q)}y=
q.__polymerGesturesHandled;if(!y.skip){for(var e=0,t;e<J2.length;e++)t=J2[e],u[t.name]&&!y[t.name]&&t.flow&&t.flow.start.indexOf(q.type)>-1&&t.reset&&t.reset();for(e=0;e<J2.length;e++)t=J2[e],u[t.name]&&!y[t.name]&&(y[t.name]=!0,t[w](q))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q){var w=q.changedTouches[0],u=q.type;if(u==="touchstart")hbM=w.clientX,jHz=w.clientY,ls7=!1;else if(u==="touchmove"&&!ls7){ls7=!0;u="auto";for(var y=cgl(q),e=0,t;e<y.length;e++)if(t=y[e],t.__polymerGesturesTouchAction){u=t.__polymerGesturesTouchAction;break}y=!1;e=Math.abs(hbM-w.clientX);w=Math.abs(jHz-w.clientY);q.cancelable&&(u==="none"?y=!0:u==="pan-x"?y=w>e:u==="pan-y"&&(y=e>w));y?q.preventDefault():
zd("track")}};
DO=function(q,w,u){return av[w]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q,w,u),!0):!1};
ZO=function(q,w,u){return av[w]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q,w,u),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q,w,u){var y=av[w],e=y.deps,t=y.name,X=q.__polymerGestures;X||(q.__polymerGestures=X={});for(var G=0,n,N;G<e.length;G++)n=e[G],Zru&&Ago.indexOf(n)>-1&&n!=="click"||((N=X[n])||(X[n]=N={_count:0}),N._count===0&&q.addEventListener(n,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,DI6(n)),N[t]=(N[t]||0)+1,N._count=(N._count||0)+1);q.addEventListener(w,u);y.touchAction&&_.pJ(q,y.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q,w,u){var y=av[w],e=y.deps;y=y.name;var t=q.__polymerGestures;if(t)for(var X=0,G,n;X<e.length;X++)G=e[X],(n=t[G])&&n[y]&&(n[y]=(n[y]||1)-1,n._count=(n._count||1)-1,n._count===0&&q.removeEventListener(G,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,DI6(G)));q.removeEventListener(w,u)};
LG6=function(q){J2.push(q);for(var w=0;w<q.emits.length;w++)av[q.emits[w]]=q};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q){for(var w=0,u;w<J2.length;w++){u=J2[w];for(var y=0,e;y<u.emits.length;y++)if(e=u.emits[y],e===q)return u}return null};
_.pJ=function(q,w){Jgs&&q instanceof HTMLElement&&$$.run(function(){q.style.touchAction=w});
q.__polymerGesturesTouchAction=w};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(q,w,u){w=new Event(w,{bubbles:!0,cancelable:!0,composed:!0});w.detail=u;(0,_.Td)(q).dispatchEvent(w);w.defaultPrevented&&(q=u.preventer||u.sourceEvent)&&q.preventDefault&&q.preventDefault()};
zd=function(q){q=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q);q.info&&(q.info.prevent=!0)};
v0=function(q,w,u,y){w&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(w,q,{x:u.clientX,y:u.clientY,sourceEvent:u,preventer:y,prevent:function(e){return zd(e)}})};
Mgf=function(q,w,u){if(q.prevent)return!1;if(q.started)return!0;u=Math.abs(q.y-u);return Math.abs(q.x-w)>=5||u>=5};
KG7=function(q,w,u){if(w){var y=q.moves[q.moves.length-2],e=q.moves[q.moves.length-1],t=e.x-q.x,X=e.y-q.y,G=0;if(y){var n=e.x-y.x;G=e.y-y.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(w,"track",{state:q.state,x:u.clientX,y:u.clientY,dx:t,dy:X,ddx:n,ddy:G,sourceEvent:u,hover:function(){return Rbc(u.clientX,u.clientY)}})}};
xI4=function(q,w,u){var y=Math.abs(w.clientX-q.x),e=Math.abs(w.clientY-q.y),t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(u||w);!t||BEy[t.localName]&&t.hasAttribute("disabled")||!(isNaN(y)||isNaN(e)||y<=25&&e<=25||gH7(w))||q.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t,"tap",{x:w.clientX,y:w.clientY,sourceEvent:w,preventer:u})};
qKs=function(q,w,u,y,e){var t;e&&(t=typeof u==="object"&&u!==null)&&(y=q.__dataTemp[w]);y=y!==u&&(y===y||u===u);t&&y&&(q.__dataTemp[w]=u);return y};
uDc=function(){if(bV&&!Y$){if(!wyl){wyl=!0;var q=document.createElement("style");q.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(q)}return!0}return!1};
eOj=function(){return yKo};
k3j=function(q,w){yKo=q;Object.setPrototypeOf(q,w.prototype);new w;yKo=null};
tsf=function(q,w){for(var u=0;u<w.length;u++){var y=w[u];if(!!q!=!!y.__hideTemplateChildren__)if(y.nodeType===Node.TEXT_NODE)q?(y.__polymerTextContent__=y.textContent,y.textContent=""):y.textContent=y.__polymerTextContent__;else if(y.localName==="slot")if(q)y.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.Td)((0,_.Td)(y).parentNode).replaceChild(y.__polymerReplaced__,y);else{var e=y.__polymerReplaced__;e&&(0,_.Td)((0,_.Td)(e).parentNode).replaceChild(y,e)}else y.style&&(q?(y.__polymerDisplay__=
y.style.display,y.style.display="none"):y.style.display=y.__polymerDisplay__);y.__hideTemplateChildren__=q;y._showHideChildren&&y._showHideChildren(q)}};
Prz=function(q){return(q=q.__dataHost)&&q._methodHost||q};
G3o=function(q,w,u){var y=u.mutableData?XyH:gA;E4.mixin&&(y=E4.mixin(y));var e=function(){return y.apply(this,arguments)||this};
_.O(e,y);e.prototype.__templatizeOptions=u;e.prototype._bindTemplate(q);F0f(e,q,w,u);return e};
NIM=function(q,w,u,y){var e=u.forwardHostProp;if(e&&w.hasHostProps){var t=q.localName=="template",X=w.templatizeTemplateClass;if(!X){if(t){var G=u.mutableData?nDM:HVc;X=function(){return G.apply(this,arguments)||this};
_.O(X,G);X=w.templatizeTemplateClass=X}else{var n=q.constructor;X=function(){return n.apply(this,arguments)||this};
_.O(X,n);X=w.templatizeTemplateClass=X}var N=w.hostProps,Q;for(Q in N)X.prototype._addPropertyEffect("_host_"+Q,X.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:W06(e)}),X.prototype._createNotifyingProperty("_host_"+Q);Rv&&y&&sSs(w,u,y)}q.__dataProto&&Object.assign(q.__data,q.__dataProto);if(t)k3j(q,X),q.__dataTemp={},q.__dataPending=null,q.__dataOld=null,q._enableProperties();else{Object.setPrototypeOf(q,X.prototype);w=w.hostProps;for(var I in w)I="_host_"+I,I in q&&(w=q[I],delete q[I],q.__data[I]=
w)}}};
W06=function(q){return function(w,u,y){q.call(w.__templatizeOwner,u.substring(6),y[u])}};
F0f=function(q,w,u,y){var e=u.hostProps||{},t;for(t in y.instanceProps){delete e[t];var X=y.notifyInstanceProp;X&&q.prototype._addPropertyEffect(t,q.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:QSc(X)})}if(y.forwardHostProp&&w.__dataHost)for(var G in e)u.hasHostProps||(u.hasHostProps=!0),q.prototype._addPropertyEffect(G,q.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:I24()})};
QSc=function(q){return function(w,u,y){q.call(w.__templatizeOwner,w,u,y[u])}};
I24=function(){return function(q,w,u){q.__dataHost._setPendingPropertyOrPath("_host_"+w,u[w],!0,!0)}};
E4=function(q,w,u){if(c0&&!Prz(q))throw Error("Jd");u=u||{};if(q.__templatizeOwner)throw Error("Kd");q.__templatizeOwner=w;var y=(w?w.constructor:gA)._parseTemplate(q),e=y.templatizeInstanceClass;e||(e=G3o(q,y,u),y.templatizeInstanceClass=e);var t=Prz(q);NIM(q,y,u,t);u=function(){return e.apply(this,arguments)||this};
_.O(u,e);u.prototype._methodHost=t;u.prototype.__dataHost=q;u.prototype.__templatizeOwner=w;u.prototype.__hostProps=y.hostProps;return u};
sSs=function(q,w,u){u=u.constructor._properties;q=q.propertyEffects;w=w.instanceProps;for(var y in q)if(!(u[y]||w&&w[y]))for(var e=q[y],t=0;t<e.length;t++){var X=e[t].info.part;if(!X.signature||!X.signature.static){console.warn("Property '"+y+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
iVJ=function(q,w){for(var u;w;)if(u=w.__dataHost?w:w.__templatizeInstance)if(u.__dataHost!=q)w=u.__dataHost;else return u;else w=(0,_.Td)(w).parentNode;return null};
Sl=function(q){return q.localName==="slot"};
rKj=function(){for(var q=h2.prototype,w="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),u={},y=0;y<w.length;u={method$jscomp$30:void 0},y++)u.method$jscomp$30=w[y],q[u.method$jscomp$30]=function(e){return function(){return this.node[e.method$jscomp$30].apply(this.node,arguments)}}(u)};
UDJ=function(q,w){for(var u={},y=0;y<w.length;u={name$jscomp$378:void 0},y++)u.name$jscomp$378=w[y],Object.defineProperty(q,u.name$jscomp$378,{get:function(e){return function(){return this.node[e.name$jscomp$378]}}(u),
configurable:!0})};
TIl=function(){for(var q=h2.prototype,w=["textContent","innerHTML","className"],u={},y=0;y<w.length;u={name$jscomp$379:void 0},y++)u.name$jscomp$379=w[y],Object.defineProperty(q,u.name$jscomp$379,{get:function(e){return function(){return this.node[e.name$jscomp$379]}}(u),
set:function(e){return function(t){this.node[e.name$jscomp$379]=t}}(u),
configurable:!0})};
Cry=function(){jl=document.documentElement.getAttribute("dir");jl=document.documentElement.getAttribute("dir");for(var q=0;q<lV.length;q++){var w=lV[q];w.__autoDirOptOut||w.setAttribute("dir",jl)}};
Vso=function(){LJ=!0;requestAnimationFrame(function(){LJ=!1;dDy(OVc);setTimeout(function(){for(var q=0,w=Mb.length;q<w;q++)oDy(Mb.shift())})})};
dDy=function(q){for(;q.length;)oDy(q.shift())};
oDy=function(q){var w=q[0],u=q[1];q=q[2];try{u.apply(w,q)}catch(y){setTimeout(function(){throw y;})}};
_.f2M=function(q,w,u){LJ||Vso();OVc.push([q,w,u])};
_.KJ=function(q,w,u){LJ||Vso();Mb.push([q,w,u])};
JKM=function(q,w){w=w===void 0?!1:w;if(!mDl||!AKj||!mDl.handlesDynamicScoping)return null;var u=AKj.ScopingShim;if(!u)return null;var y=u.scopeForNode(q),e=(0,_.Td)(q).getRootNode(),t=function(X){if((0,_.Td)(X).getRootNode()===e){var G=Array.from(mDl.nativeMethods.querySelectorAll.call(X,"*"));G.push(X);for(X=0;X<G.length;X++){var n=G[X];if((0,_.Td)(n).getRootNode()===e){var N=u.currentScopeForNode(n);N!==y&&(N!==""&&u.unscopeNode(n,N),u.scopeNode(n,y))}}}};
t(q);return w?(w=new MutationObserver(function(X){for(var G=0;G<X.length;G++)for(var n=X[G],N=0;N<n.addedNodes.length;N++){var Q=n.addedNodes[N];Q.nodeType===Node.ELEMENT_NODE&&t(Q)}}),w.observe(q,{childList:!0,
subtree:!0}),w):null};
zOs=function(){document.body.removeAttribute("unresolved")};
$D6=function(q){var w=q=q.replace(a2J,"").replace(DD4,""),u=new ZVz;u.start=0;u.end=w.length;for(var y=u,e=0,t=w.length;e<t;e++)if(w[e]==="{"){y.rules||(y.rules=[]);var X=y,G=X.rules[X.rules.length-1]||null;y=new ZVz;y.start=e+1;y.parent=X;y.previous=G;X.rules.push(y)}else w[e]==="}"&&(y.end=e+1,y=y.parent||u);return py7(u,q)};
py7=function(q,w){var u=w.substring(q.start,q.end-1);q.parsedCssText=q.cssText=u.trim();q.parent&&(u=w.substring(q.previous?q.previous.end:q.parent.start,q.start-1),u=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(u),u=u.replace(vD6," "),u=u.substring(u.lastIndexOf(";")+1),u=q.parsedSelector=q.selector=u.trim(),q.atRule=u.indexOf("@")===0,q.atRule?u.indexOf("@media")===0?q.type=4:u.match(bVM)&&(q.type=7,q.keyframesName=q.selector.split(vD6).pop()):u.indexOf("--")===
0?q.type=1E3:q.type=1);if(u=q.rules)for(var y=0,e=u.length,t=void 0;y<e&&(t=u[y]);y++)py7(t,w);return q};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(q){return q.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var w=arguments[1],u=6-w.length;u--;)w="0"+w;return"\\"+w})};
YKM=function(q,w,u){u=u===void 0?"":u;var y="";if(q.cssText||q.rules){var e=q.rules;if(e&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(e))for(var t=0,X=e.length,G=void 0;t<X&&(G=e[t]);t++)y=YKM(G,w,y);else w?w=q.cssText:(w=q.cssText,w=w.replace(gDc,"").replace(EDM,""),w=w.replace(RO6,"").replace(cKf,"")),(y=w.trim())&&(y="  "+y+"\n")}y&&(q.selector&&(u+=q.selector+" {\n"),u+=y,q.selector&&(u+="}\n\n"));return u};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(q){q=q[0];return!!q&&!!q.selector&&q.selector.indexOf("--")===0};
hO7=function(q){if(q=SKo[q])q._applyShimCurrentVersion=q._applyShimCurrentVersion||0,q._applyShimValidatingVersion=q._applyShimValidatingVersion||0,q._applyShimNextVersion=(q._applyShimNextVersion||0)+1};
jS4=function(q){return q._applyShimCurrentVersion===q._applyShimNextVersion};
L0z=function(q){q._applyShimValidatingVersion=q._applyShimNextVersion;q._validating||(q._validating=!0,l2M.then(function(){q._applyShimCurrentVersion=q._applyShimNextVersion;q._validating=!1}))};
K0j=function(q){if(!q)return"";typeof q==="string"&&(q=$D6(q));return YKM(q,Mso)};
BIM=function(q){!q.__cssRules&&q.textContent&&(q.__cssRules=$D6(q.textContent));return q.__cssRules||null};
qIs=function(q,w,u,y){if(q){var e=!1,t=q.type;if(y&&t===4){var X=q.selector.match(xD4);X&&(window.matchMedia(X[1]).matches||(e=!0))}t===1?w(q):u&&t===7?u(q):t===1E3&&(e=!0);if((q=q.rules)&&!e)for(e=0,t=q.length,X=void 0;e<t&&(X=q[e]);e++)qIs(X,w,u,y)}};
wru=function(q,w){var u=q.indexOf("var(");if(u===-1)return w(q,"","","");a:{var y=0;var e=u+3;for(var t=q.length;e<t;e++)if(q[e]==="(")y++;else if(q[e]===")"&&--y===0)break a;e=-1}y=q.substring(u+4,e);u=q.substring(0,u);q=wru(q.substring(e+1),w);t=y.indexOf(",");if(t===-1)return w(u,y.trim(),"",q);e=y.substring(0,t).trim();y=y.substring(t+1).trim();return w(u,e,y,q)};
uNy=function(q){if(B0!==void 0)return B0;if(q.__cssBuild===void 0){var w=q.getAttribute("css-build");if(w)q.__cssBuild=w;else{a:{w=q.localName==="template"?q.content.firstChild:q.firstChild;if(w instanceof Comment&&(w=w.textContent.trim().split(":"),w[0]==="css-build")){w=w[1];break a}w=""}if(w!==""){var u=q.localName==="template"?q.content.firstChild:q.firstChild;u.parentNode.removeChild(u)}q.__cssBuild=w}}return q.__cssBuild||""};
eGc=function(q,w,u,y){for(var e=w._noAccessors,t=Object.getOwnPropertyNames(w),X=0;X<t.length;X++){var G=t[X];if(!(G in y))if(e)q[G]=w[G];else{var n=Object.getOwnPropertyDescriptor(w,G);n&&(n.configurable=!0,Object.defineProperty(q,G,n))}}for(var N in yIj)w[N]&&(u[N]=u[N]||[],u[N].push(w[N]))};
kTy=function(q,w,u){w=w||[];for(var y=q.length-1;y>=0;y--){var e=q[y];e?Array.isArray(e)?kTy(e,w):w.indexOf(e)<0&&(!u||u.indexOf(e)<0)&&w.unshift(e):console.warn("behavior is null, check for missing or 404 import")}return w};
tcz=function(q,w){for(var u in w){var y=q[u],e=w[u];q[u]=!("value"in e)&&y&&"value"in y?Object.assign({value:y.value},e):e}};
Fpl=function(q,w,u){var y={},e=function(){return w.apply(this,arguments)||this};
_.O(e,w);e._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(X)for(var n=0,N;n<X.length;n++)N=X[n],N.properties&&this.createProperties(N.properties),N.observers&&this.createObservers(N.observers,N.properties);q.properties&&this.createProperties(q.properties);q.observers&&this.createObservers(q.observers,q.properties);this._prepareTemplate()}else w._finalizeClass.call(this)};
e.prototype.created=function(){w.prototype.created.call(this);var n=y.created;if(n)for(var N=0;N<n.length;N++)n[N].call(this)};
e.prototype._registered=function(){var n=e.prototype;if(!n.hasOwnProperty("__hasRegisterFinished")){n.__hasRegisterFinished=!0;w.prototype._registered.call(this);bV&&G(n);n=Object.getPrototypeOf(this);var N=y.beforeRegister;if(N)for(var Q=0;Q<N.length;Q++)N[Q].call(n);if(N=y.registered)for(Q=0;Q<N.length;Q++)N[Q].call(n)}};
e.prototype._applyListeners=function(){w.prototype._applyListeners.call(this);var n=y.listeners;if(n)for(var N=0;N<n.length;N++){var Q=n[N];if(Q)for(var I in Q)this._addMethodEventListenerToNode(this,I,Q[I])}};
e.prototype._ensureAttributes=function(){var n=y.hostAttributes;if(n)for(var N=n.length-1;N>=0;N--){var Q=n[N],I;for(I in Q)this._ensureAttribute(I,Q[I])}w.prototype._ensureAttributes.call(this)};
e.prototype.ready=function(){w.prototype.ready.call(this);var n=y.ready;if(n)for(var N=0;N<n.length;N++)n[N].call(this)};
e.prototype.attached=function(){w.prototype.attached.call(this);var n=y.attached;if(n)for(var N=0;N<n.length;N++)n[N].call(this)};
e.prototype.detached=function(){w.prototype.detached.call(this);var n=y.detached;if(n)for(var N=0;N<n.length;N++)n[N].call(this)};
e.prototype.attributeChanged=function(n,N,Q){w.prototype.attributeChanged.call(this);var I=y.attributeChanged;if(I)for(var U=0;U<I.length;U++)I[U].call(this,n,N,Q)};
_.x$.Object.defineProperties(e,{properties:{configurable:!0,enumerable:!0,get:function(){var n={};if(X)for(var N=0;N<X.length;N++)tcz(n,X[N].properties);tcz(n,q.properties);return n}},
observers:{configurable:!0,enumerable:!0,get:function(){var n=[];if(X)for(var N=0,Q;N<X.length;N++)Q=X[N],Q.observers&&(n=n.concat(Q.observers));q.observers&&(n=n.concat(q.observers));return n}}});
if(u){Array.isArray(u)||(u=[u]);var t=w.prototype.behaviors;var X=kTy(u,null,t);e.prototype.behaviors=t?t.concat(u):X}var G=function(n){if(X)for(var N=X,Q=0;Q<N.length;Q++)eGc(n,N[Q],y,PUz);eGc(n,q,y,Xro)};
bV||G(e.prototype);e.generatedFrom=q;return e};
Wpc=function(q){var w=typeof q!=="string"?q:{is:q,notifyObserversOnUndefined:!0};w.fastInit===void 0&&(w.fastInit=!0);return function(u){if(!w.disableInheritanceCheck&&Object.getPrototypeOf(u.prototype).constructor!==_.q4)throw Error("Od");var y=u.prototype;y.is=w.is;IKJ(y,"created",function(){this.hostElement=this;this.polymerController=this});
GTu(y,u,w.fastInit);w.notifyObserversOnUndefined&&(y._overrideLegacyUndefined=!0);if(nXo)for(var e=_.P(Object.getOwnPropertyNames(y)),t=e.next();!t.done;t=e.next()){t=t.value;var X=Object.getOwnPropertyDescriptor(y,t);X.enumerable===!1&&(X.enumerable=!0,Object.defineProperty(y,t,X))}if("template"in u)var G=function(){return u.template};
else w.template!==void 0&&(G=w.template);if(G!==void 0){var n;Object.defineProperty(y,"_template",{get:function(){n===void 0&&(n=G());return n},
set:function(N){n=N},
configurable:!0,enumerable:!0})}Polymer(y);u[HCJ]=y}};
s5H=function(q){q=q===void 0?{}:q;q.fastInit===void 0&&(q.fastInit=!0);return function(w){if(!q.disableInheritanceCheck&&Object.getPrototypeOf(w.prototype).constructor!==w1)throw Error("Pd");GTu(w.prototype,w,q.fastInit)}};
GTu=function(q,w,u){u=u===void 0?!1:u;NZz(w);u?IKJ(q,"created",function(){this.disableEnforceFastDefaultValuesCheck||Q5j(w,this)}):IKJ(q,"ready",function(){for(var y={},e=_.P(iTc(this.behaviors)),t=e.next();!t.done;t=e.next())t=t.value,t.properties&&Object.assign(y,Izy(this,t.properties));
Object.assign(y,Izy(this,this.properties));Q5j(w,this);e=_.P(Object.keys(y));for(t=e.next();!t.done;t=e.next())t=t.value,this[t]=y[t]})};
Q5j=function(q,w){if(nXo){q=new q;for(var u=_.P(Object.getOwnPropertyNames(q)),y=u.next();!y.done;y=u.next())y=y.value,w[y]=q[y];for(u=w;u&&u!==Object.prototype;u=Object.getPrototypeOf(u)){y=_.P(Object.getOwnPropertyNames(u));for(var e=y.next();!e.done;e=y.next())e=e.value,q.hasOwnProperty(e)||Object.defineProperty(q,e,iCj(w,e))}}else q.apply(w)};
iCj=function(q,w){return{get:function(){var u=q[w];return u instanceof Function?u.bind(q):u},
set:function(u){q[w]=u}}};
Izy=function(q,w){if(!w)return{};for(var u={},y=_.P(Object.keys(w)),e=y.next();!e.done;e=y.next())if(e=e.value,!w[e].readOnly){var t=q[e];t!==void 0&&(u[e]=t)}return u};
NZz=function(q){var w=new q;q=q.prototype.properties||{};for(var u=_.P(Object.keys(q)),y=u.next();!y.done;y=u.next())if(y=y.value,w.hasOwnProperty(y)){var e=q[y];typeof e==="function"&&(q[y]=e={type:e});w[y]!=null&&e.type===Object&&(e.type=rI6(w[y].constructor))}};
rI6=function(q){for(var w=_.P(ULJ),u=w.next();!u.done;u=w.next())if(u=u.value,q===u)return u;return Object};
TZM=function(q){return function(w,u){w.behaviors=w.behaviors||[];w.behaviors.push(q||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",w,u).prototype:void 0));Object.defineProperty(w,u,{get:function(){return this},
enumerable:!0,configurable:!0})}};
CUJ=function(q){q=q===void 0?{}:q;return function(w,u){w.properties=w.properties||{};q.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?q.type=rI6(Reflect.getMetadata("design:type",w,u)):q.type=String);var y=q,e=w.properties[u];w.properties[u]=e?Object.assign({},e,y):y}};
dLz=function(q){return function(w,u){w.listeners=w.listeners||{};w.listeners[q]=u}};
OCf=function(){var q=_.Cj.apply(0,arguments);if(q.length===0)throw Error("Qd");return function(w,u){w.observers=w.observers||[];w.observers.push(u+"("+q.join(",")+")")}};
oXl=function(){var q=_.Cj.apply(0,arguments);return function(w,u,y){var e=Object.getOwnPropertyDescriptor(w,u).get,t="__compute__"+u;Object.defineProperty(w,t,{value:e,enumerable:!0});w.properties=w.properties||{};e=w.properties[u];e||(e={},w.properties[u]=e);e.computed=t+"("+q.join(",")+")";y.get=void 0}};
_.u9=function(q,w,u){_.VG.call(this);this.JSC$9117_id_=null;this.usingListeners_=!1;this.JSC$9117_listener_=q;this.handler_=u;this.JSC$9117_win_=w||window;this.callback_=(0,_.fY)(this.JSC$9119_doAction_,this)};
yv=function(q){this.range_=q};
ep=function(q){this.range_=q};
Pf=function(q,w,u){_.VG.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=q;this.scrollTimer_=new _.kG(50);this.JSC$9196_eventHandler_=new _.tp(this);this.scrollDelta_=new _.Vx;this.containerIsActuallyContent_=q.tagName==="BODY"||q.tagName==="HTML";this.containerBounds_=Vc6(q);this.containerIsActuallyContent_&&(q=_.Gc(),this.containerBounds_.height=q.height,this.containerBounds_.width=q.width);this.margin_=w||0;if(w){if(w=this.containerBounds_.clone(),q=this.margin_){var y=
Math.min(q,w.height*.25);w.top+=y;w.height-=2*y;q=Math.min(q,w.width*.25);w.left+=q;w.width-=2*q}}else w=this.containerBounds_;this.scrollBounds_=w;u||this.JSC$9196_eventHandler_.listen(_.mN(this.containerNode_),"mousemove",this.JSC$9198_onMouseMove);this.JSC$9196_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9198_onTick_)};
_.Xb=function(q){this.mechanism=q};
Fb=function(q,w){this.JSC$9294_key_=q;this.JSC$9294_value_=w};
mLJ=function(q){if(q>=55296&&q<=57343||q>1114111)return"\ufffd";q in fzo&&(q=fzo[q]);var w="";q>65535&&(q-=65536,w+=String.fromCharCode(q>>>10&1023|55296),q=56320|q&1023);return w+=String.fromCharCode(q)};
AIf=function(q,w){return q<w?1:-1};
zG4=function(){return function(q){return q.charAt(1)==="#"?q.charAt(2)==="X"||q.charAt(2)==="x"?mLJ(parseInt(q.substr(3),16)):mLJ(parseInt(q.substr(2),10)):JIy[q.slice(1,-1)]}};
ZCs=function(q){return q.slice(1,q.length-1).trim().replace(azo,function(w){return DLy[w]||" "})};
G6=function(q){return q===32||q===9};
nN=function(q,w){return w<q.length?q.charCodeAt(w):-1};
prH=function(q){for(;q;){if(q._lastLineBlank)return!0;var w=q.type;if(w==="list"||w==="item")q=q._lastChild;else break}return!1};
Hf=function(q){if($Lo.test(q)){var w=1,u=0,y=0;for(q[u]=="|"&&u++;u<q.length;){switch(q[u]){case "|":y=1;break;case " ":break;case "\t":break;default:y&&(y=0,w++)}u++}return vXM.test(q)?-w:w}return 0};
bCM=function(q){return q=="table"||q=="row"||q=="cell"};
YI6=function(){return new Wf("document",[[1,1],[0,0]])};
gXH=function(){};
sM=function(){var q={safe:!1};q=q||{};q.softbreak=q.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=q};
hGs=function(q,w){var u="";if(q)if(q=q.toLowerCase(),q===" "||EXl.test(q))u="space";else if(RGH.test(q))u="esc";else if(q.length==1){if(!w||cIM.test(q))u=q}else u=SI4.test(q)?q.replace("arrow",""):q=="multiply"?"*":q;return u};
Mco=function(q,w){var u=q.hasModifiers;if(w.key)u=hGs(w.key,u);else if(w.detail&&w.detail.key)u=hGs(w.detail.key,u);else{u=w.keyIdentifier;var y="";u&&(u in j5M?y=j5M[u]:lzy.test(u)?(u=parseInt(u.replace("U+","0x"),16),y=String.fromCharCode(u).toLowerCase()):y=u.toLowerCase());(u=y)||(u=w.keyCode,y="",Number(u)&&(u>=65&&u<=90?y=String.fromCharCode(32+u):u>=112&&u<=123?y="f"+(u-112+1):u>=48&&u<=57?y=String(u-48):u>=96&&u<=105?y=String(u-96):y=LpM[u]),u=y);u=u||""}return u===q.key&&(!q.hasModifiers||
!!w.shiftKey===!!q.shiftKey&&!!w.ctrlKey===!!q.ctrlKey&&!!w.altKey===!!q.altKey&&!!w.metaKey===!!q.metaKey)};
BZl=function(q){return q.length===1?{combo:q,key:q,event:"keydown"}:q.split("+").reduce(function(w,u){var y=u.split(":");u=y[0];y=y[1];u in Kpz?(w[Kpz[u]]=!0,w.hasModifiers=!0):(w.key=u,w.event=y||"keydown");return w},{combo:q.split(":").shift()})};
xL7=function(q){return q.trim().split(" ").map(function(w){return BZl(w)})};
qLs=function(q,w){if(q&&q.fn){var u=q.fn;q.fn=function(){try{u.apply(this,arguments)}catch(y){if(y instanceof N4)console.warn("Argument '"+y.arg+"'"+(w?" for method '"+w+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw y;}}}return q};
wSH=function(){var q=_.Cj.apply(0,arguments);return q.length===0?function(w){return w}:q.length===1?q[0]:q.reduce(function(w,u){return function(){return w(u.apply(null,_.Cm(_.Cj.apply(0,arguments))))}})};
u1j=function(){var q=_.Cj.apply(0,arguments);return function(w){return function(u,y){u=w(u,y);var e=function(){throw Error("Ae");},t={getState:u.getState,
dispatch:function(X){return e.apply(null,[X].concat(_.Cm(_.Cj.apply(1,arguments))))}};
y=q.map(function(X){return X(t)});
e=wSH.apply(null,_.Cm(y))(u.dispatch);return Object.assign({},u,{dispatch:e})}}};
ksM=function(q){Object.keys(q).forEach(function(w){var u=q[w];if(typeof u(void 0,{type:yvu})==="undefined")throw Error("Be`"+w);if(typeof u(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+eDy()})==="undefined")throw Error("Ce`"+w+"`"+yvu);})};
Qv=function(q){for(var w=Object.keys(q),u={},y=0;y<w.length;y++){var e=w[y];typeof q[e]==="function"&&(u[e]=q[e])}var t=Object.keys(u);try{ksM(u)}catch(G){var X=G}return function(G,n){G=G===void 0?{}:G;if(X)throw X;for(var N=!1,Q={},I=0;I<t.length;I++){var U=t[I],d=G[U],V=(0,u[U])(d,n);if(typeof V==="undefined")throw G=n&&n.type,Error("De`"+(G?'"'+String(G)+'"':"(unknown type)")+"`"+U);Q[U]=V;N=N||V!==d}return(N=N||t.length!==Object.keys(G).length)?Q:G}};
tVf=function(q,w,u){function y(){if(Q)throw Error("Ee");return G}
function e(d){if(typeof d!=="function")throw Error("Fe`"+typeof d);if(Q)throw Error("Ge");var V=!0;N===n&&(N=n.slice());N.push(d);return function(){if(V){if(Q)throw Error("He");V=!1;N===n&&(N=n.slice());var J=N.indexOf(d);N.splice(J,1);n=null}}}
function t(d){if(typeof d!=="object"||d===null)var V=!1;else{for(V=d;Object.getPrototypeOf(V)!==null;)V=Object.getPrototypeOf(V);V=Object.getPrototypeOf(d)===V}if(!V)throw Error("Ie`"+typeof d);if(typeof d.type==="undefined")throw Error("Je");if(Q)throw Error("Ke");try{Q=!0,G=X(G,d)}finally{Q=!1}V=n=N;for(var J=0;J<V.length;J++)(0,V[J])();return d}
if(typeof w==="function"&&typeof u==="function"||typeof u==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof w==="function"&&typeof u==="undefined"&&(u=w,w=void 0);if(typeof u!=="undefined"){if(typeof u!=="function")throw Error("Me`"+typeof u);return u(tVf)(q,w)}if(typeof q!=="function")throw Error("Ne`"+typeof q);var X=q,G=w,n=[],N=n,Q=!1;t({type:yvu});var I={},U=(I.dispatch=t,I.subscribe=e,I.getState=y,I.replaceReducer=function(d){if(typeof d!=="function")throw Error("Oe`"+
typeof d);X=d;t({type:P8s});return U},I[XSl]=function(){var d={};
return d.subscribe=function(V){function J(){V.next&&V.next(y())}
if(typeof V!=="object"||V===null)throw new TypeError("Pe`"+typeof V);J();return{unsubscribe:e(J)}},d[XSl]=function(){return this},d},I);
return U};
FwH=function(q){function w(){e&&(e=!1,q());t&&y()}
function u(){requestAnimationFrame(w)}
function y(){var G=Date.now();if(e){if(G-X<2)return;t=!0}else e=!0,t=!1,setTimeout(u,20);X=G}
var e=!1,t=!1,X=0;return y};
Ix=function(q){return typeof q==="number"?q:parseFloat(q)||0};
GsH=function(q){return _.Cj.apply(1,arguments).reduce(function(w,u){return w+Ix(q["border-"+u+"-width"])},0)};
_.f=function(q,w){w=Aa(mx(w));q.innerHTML=w};
Ww6=function(q){var w=nfc;w||(w=HyH(),w=nfc=_.db.transpose(w));w=w[q];return typeof w==="string"?w:_.i9(q)};
sGz=function(q){q=String(q).toLowerCase();var w=HyH()[q];return typeof w==="string"?w:_.r1(q)};
N9o=function(q){q=q.toLowerCase();q=HyH()[q];return typeof q==="string"?q:null};
HyH=function(){if(!QG4){for(var q=Object.assign({},ISJ),w=_.P(iyM),u=w.next();!u.done;u=w.next())u=u.value,q[u.toLowerCase()]=u;QG4=q}return QG4};
T9s=function(q,w){var u=window.customElements;return u&&u.get(q)||rvl[q]===!0?2:w.name==="HTMLUnknownElement"?1:w.name==="HTMLElement"&&UGo.test(q)?3:0};
Oy4=function(q,w){switch(w){case "innerHTML":return C8y(q)===1?2:null;case "textContent":return q=C8y(q),q===1||q===6?1:null;default:var u,y;return(y=(u=dG7[q.localName])==null?void 0:u[w])!=null?y:null}};
C8y=function(q){var w=q.localName,u=T9s(w,q.constructor);switch(u){case 0:case 1:return ofu(w,q);case 3:case 2:return 1;default:_.Xm(u,"got an unknown element classification")}};
ofu=function(q,w){var u=Object.hasOwnProperty.call(VVl,q)?VVl[q]:null;return u!==null?u:Object.hasOwnProperty.call(fS6,q)&&w instanceof SVGElement?fS6[q]:null};
mG4=function(q,w){return w};
Jv4=function(q){return(q=q.split(AvM,2))?{url:q[0],metadata:q[1]}:null};
aSf=function(q){var w=String(q.url).replace(zD4,encodeURIComponent);if(q=q.metadata){zD4.lastIndex=0;if(zD4.test(q))return null;w+=" "+q}return w};
$G6=function(q){function w(N){var Q=N.localName;if(!N.getAttribute("is")&&T9s(Q,N.constructor)===2){var I;return(I=n)!=null?I:n=document.createElement("polyresinuncustomized")}(N=G[Q])||(N=G[Q]=document.createElement(Q));return N}
var u=q.reportHandler||void 0,y=q.safeTypesBridge||DGu,e=/^$/;if(q=q.allowedIdentifierPrefixes){q=_.P(q);for(var t=q.next();!t.done;t=q.next())e=new RegExp(e.source+"|^"+_.Zyu(t.value))}u&&u(!1,"initResin",null);var X=pSu(e,y,u),G={},n=null;return function(N,Q,I){var U=N.nodeType;if(U!==Node.ELEMENT_NODE){if(U===Node.TEXT_NODE){Q=N.parentElement;I=!Q;if(Q&&Q.nodeType===Node.ELEMENT_NODE){U=Q.localName;var d=T9s(U,Q.constructor);switch(d){case 0:case 1:Q=ofu(U,Q);I=Q===1||Q===6;break;case 3:case 2:I=
!0;break;default:_.Xm(d,"got an unknown element classification")}}if(I)return function(b){return""+y(b,"STRING",b)}}return function(b){if(!b&&b!==document.all)return b;
u&&u(!0,"Failed to sanitize "+(N.parentElement&&N.parentElement.nodeName)+" #text node to value "+b,N.parentElement);return T6}}var V=N.localName;
U=w(N);var J=null;switch(I){case "attribute":if(sGz(Q)in U)break;return function(b){return b};
case "property":if(Q in U){J=Oy4(U,Q);break}if((d=N9o(Q))&&d in U)break;return function(b){return b};
default:_.Xm(I,"got an unknown resin type, expected either 'property' or 'attribute'")}var a=I==="attribute"?Q.toLowerCase():Ww6(Q);J||(J=PYH(V,a,function(b){var g=N.getAttribute(b);return!g||/[\[\{]/.test(b)?null:g}));
return function(b){var g=CN,l=null;if(!b&&b!==document.all)return b;if(J!=null){var S=X[J],eH=S.safeType;l=S.safeReplacement;eH&&(g=y(b,eH,CN));g===CN&&(S.filterString?(g=String(y(b,"STRING",b)),g=S.filterString(V,a,g)):S.filterRaw&&(g=S.filterRaw(V,a,b,N)),g===l&&(g=CN))}g===CN&&(g=l||T6,u&&u(!0,"Failed to sanitize attribute of <"+V+">: <"+V+" "+a+'="'+b+'">',N));return g}}};
pSu=function(q,w,u){return[,{filterRaw:function(y,e,t){return t},
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:vf7,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:vf7,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:T6,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:by4,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(y,e,t){t=
String(t).toLowerCase();return GPf(y,e,t)?t:T6},
safeReplacement:T6,safeType:void 0},,{filterRaw:void 0,filterString:function(y,e,t){return q.test(t)?t:T6},
safeReplacement:T6,safeType:"CONSTANT"},{filterRaw:function(y,e,t,X){if(typeof t==="string")var G=(G=t.match(YLM))?G.map(Jv4).filter(Boolean):[];else if(Array.isArray(t))G=t;else return vf7;var n=G;G=[];var N=[],Q={};if(Array.isArray(n))for(var I=0,U=n.length;I<U;++I){var d=n[I],V=d&&d.url;if(V){var J=w(V,"URL",Q);if(J){var a=J!==Q;(a?G:N).push({url:a?J:V,metadata:d.metadata})}}}else N.push(n);n=N.length?JSON.stringify(N):null;N=CN;if(G.length){if(!Array.isArray(G))throw Error();N=G.map(aSf).filter(Boolean).join(" , ")||
CN}n&&u&&u(!0,"Failed to sanitize attribute value of <"+y+">: <"+y+" "+e+'="'+t+'">: '+n,X);return N===CN?vf7:N},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
gf4=function(q){var w=$G6(q);return function(u,y,e,t){return t||t===document.all?w(u,y,e)(t):t}};
d1=function(q,w){function u(){function e(G,n,N){for(n=Reflect.getMetadata("parameters",G)||[];n.length<=N;)n.push(null);n[N]=n[N]||[];n[N].push(X);Reflect.defineMetadata(n,G);return G}
var t=_.Cj.apply(0,arguments);if(this instanceof u)return y.apply(this,t),this;var X=new (Function.prototype.bind.apply(u,[null].concat(_.Cm(t))));e.annotation=X;return e}
var y=Efs(w);u.prototype.toString=function(){return"@"+q};
return u.annotationCls=u};
Efs=function(q){return function(){var w=_.Cj.apply(0,arguments),u=this;q.forEach(function(y,e){e=w[e];if(Array.isArray(y))u[y[0]]=e&&e!==void 0?e:y[1];else for(var t in y)u[t]=e&&e[t]!==void 0?e[t]:y[t]})}};
RDM=function(q){return q!==void 0&&q!==null};
OM=function(q){if(typeof q==="string")return q;if(q===void 0||q===null)return""+q;if(q.overriddenName)return q.overriddenName;if(q.name)return q.name;q=q.toString();var w=q.indexOf("\n");return w===-1?q:q.substring(0,w)};
cvl=function(q){q.__forward_ref__=cvl;q.toString=function(){return OM(this())};
return q};
ox=function(q){return typeof q==="function"&&q.hasOwnProperty("__forward_ref__")&&q.__forward_ref__===cvl?q():q};
SLM=function(q){return q?q.map(function(w){return new (Function.prototype.bind.apply(w.type.annotationCls,[null].concat(_.Cm(w.args?w.args:[]))))}):[]};
hD6=function(q){for(var w=[],u=0;u<q.length;++u){if(w.indexOf(q[u])>-1){w.push(q[u]);break}w.push(q[u])}return w};
jG4=function(q){return q.length>1?" ("+hD6(q.slice().reverse()).map(function(w){return OM(w.token)}).join(" -> ")+")":""};
Lw4=function(q,w,u,y){if(y){var e=Error("We``"+(y instanceof Error?y.message:y));e.ngOriginalError=y}else e=Error();e.addKey=lSz;e.keys=[w];e.injectors=[q];e.constructResolvingMessage=u;e.message=e.constructResolvingMessage();e.ngOriginalError=y;return e};
lSz=function(q,w){this.injectors.push(q);this.keys.push(w);this.message=this.constructResolvingMessage()};
MVl=function(q,w){return Lw4(q,w,function(){return"No provider for "+OM(this.keys[0].token)+"!"+jG4(this.keys)})};
Kws=function(q,w){return Lw4(q,w,function(){return"Cannot instantiate cyclic dependency!"+jG4(this.keys)})};
B9y=function(q,w,u){return Lw4(q,u,function(){var y=OM(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+y+"!"+jG4(this.keys)+"."},w)};
xGM=function(q,w){for(var u=[],y=0,e=w.length;y<e;y++){var t=w[y];t&&t.length!=0?u.push(t.map(OM).join(" ")):u.push("?")}return Error("$e`"+OM(q)+"`"+u.join(", ")+"`"+OM(q))};
tKf=function(q){var w=void 0,u=void 0;if(q&&q.useClass!==void 0){w=q.useClass;var y=ox(q.useClass);var e=qbo.factory(y);y=wUf(y)}else q&&q.useExisting!==void 0?(e=function(t){return t},y=[uVj(Vv.get(ox(q.useExisting)))]):q&&q.useFactory!==void 0?(e=q.useFactory,y=ytl(q.useFactory,q.deps)):(u=q.useValue,e=function(){return q.useValue},y=e2c);
return new kks(e,y,w,u)};
XUu=function(q){return new P6u(Vv.get(ox(q.provide)),[tKf(q)],q.multi)};
GkM=function(q){q=F_H(q,[]).map(XUu);for(var w=new Map,u=0;u<q.length;u++){var y=q[u],e=w.get(y.key.id);if(e){if(y.multiProvider!==e.multiProvider)throw Error("bf`"+e+"`"+y);if(y.multiProvider)for(var t=0;t<y.resolvedFactories.length;t++)e.resolvedFactories.push(y.resolvedFactories[t]);else w.set(y.key.id,y)}else e=void 0,y.multiProvider?e=new P6u(y.key,y.resolvedFactories.slice(),y.multiProvider):e=y,w.set(y.key.id,e)}return Array.from(w.values())};
F_H=function(q,w){q.forEach(function(u){if(u instanceof nkj)w.push({provide:u,useClass:u});else if(u&&typeof u=="object"&&u.provide!==void 0)w.push(u);else if(u instanceof Array)F_H(u,w);else throw Error("Ze`"+u);});
return w};
ytl=function(q,w){if(w){var u=w.map(function(y){return[y]});
return w.map(function(y){return HOj(q,y,u)})}return wUf(q)};
wUf=function(q){var w=qbo.parameters(q);if(!w)return[];if(w.some(function(u){return u==null}))throw xGM(q,w);
return w.map(function(u){return HOj(q,u,w)})};
HOj=function(q,w,u){var y=null,e=!1;if(!Array.isArray(w))return w instanceof W_o?sJl(w.token,e,null):sJl(w,e,null);for(var t=null,X=0;X<w.length;++X){var G=w[X];if(G instanceof nkj)y=G;else if(G instanceof W_o)y=G.token;else if(G instanceof NPJ)e=!0;else if(G instanceof QJs||G instanceof IlM)t=G}y=ox(y);if(y!=null)return sJl(y,e,t);throw xGM(q,u);};
sJl=function(q,w,u){return new iO6(Vv.get(ox(q)),w,u)};
rtH=function(q,w){for(var u=Array(q.providers.length),y=0;y<q.providers.length;++y){var e=y;if(y<0||y>=q.providers.length)throw Error("af`"+y);u[e]=w(q.providers[y])}return u};
UBy=function(q){return typeof q==="function"&&qbo.parameters(q).every(function(w){return!!w})};
dBl=function(q){var w=TPH;C6H.get(q)||C6H.set(q,new w);return C6H.get(q)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(q)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(q)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q,w){var u,y;if(q.contains(w))return!0;q=_.fN(q).querySelectorAll("content,slot");for(u=0;u<q.length;++u){var e=_.fN(q[u]).getDistributedNodes();for(y=0;y<e.length;++y)if(e[y].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(e[y],w))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q){q.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(q)&&q.preventDefault();q.targetTouches&&(q=q.targetTouches[0],OO7=q.pageX,okJ=q.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 q=0,w=mH.length;q<w;q++)document.addEventListener(mH[q],_._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 q=0,w=mH.length;q<w;q++)document.removeEventListener(mH[q],_._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(q){var w=_.fN(q).rootTarget;q.type!=="touchmove"&&VKj!==w&&(VKj=w,flM=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.fN(q).path));if(!flM.length)return!0;if(q.type==="touchstart")return!1;q=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(q);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(flM,q.deltaX,q.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q){for(var w=[],u=q.indexOf(mBy),y=0;y<=u;y++)if(q[y].nodeType===Node.ELEMENT_NODE){var e=q[y],t=e.style;t.overflow!=="scroll"&&t.overflow!=="auto"&&(t=window.getComputedStyle(e));t.overflow!=="scroll"&&t.overflow!=="auto"||w.push(e)}return w};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q,w,u){if(w||u)for(var y=Math.abs(u)>=Math.abs(w),e=0;e<q.length;e++){var t=q[e];if(y?u<0?t.scrollTop>0:t.scrollTop<t.scrollHeight-t.clientHeight:w<0?t.scrollLeft>0:t.scrollLeft<t.scrollWidth-t.clientWidth)return t}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(q){var w={deltaX:q.deltaX,deltaY:q.deltaY};"deltaX"in q||("wheelDeltaX"in q&&"wheelDeltaY"in q?(w.deltaX=-q.wheelDeltaX,w.deltaY=-q.wheelDeltaY):"wheelDelta"in q?(w.deltaX=0,w.deltaY=-q.wheelDelta):"axis"in q?(w.deltaX=q.axis===1?q.detail:0,w.deltaY=q.axis===2?q.detail:0):q.targetTouches&&(q=q.targetTouches[0],w.deltaX=OO7-q.pageX,w.deltaY=okJ-q.pageY));return w};
Atf=function(q){this.element=q;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
z2f=function(q){this.element=q;this.color=window.getComputedStyle(q).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");_.fN(this.waveContainer).appendChild(this.wave);JtM(this)};
Ap=function(q,w){for(var u in q)if(u.toLowerCase()===w.toLowerCase())return q[u]};
alc=function(q,w){for(var u in q)if(u.toLowerCase()===w.toLowerCase()){delete q[u];break}};
ZO6=function(q){q=_.db.clone(q);for(var w=0;w<DBM.length;++w){var u=DBM[w],y=Ap(q,u);y&&(q["X-Goog-Upload-Header-"+u]=y,alc(q,u))}return q};
pUM=function(q){q=_.db.clone(q);alc(q,"X-Goog-Upload-Status")};
vks=function(q){return $Bz.some(function(w){return w.test(q)})};
Ek7=function(q,w){var u;var y=(u=q.formContent)==null?void 0:u.locale;u=y==null?void 0:y.split("-")[0];y=y&&bOo.includes(y)?y:u&&bOo.includes(u)?u:void 0;y=(y!=null?y:"en").replaceAll("-","_").toLowerCase();var e;q=((e=q.initializationData)==null?0:e.useNightlyRelease)?"nightly":"live";var t;return(w==null?0:(t=w.getEnableAlohaBinarySplit)==null?0:t.call(w))?_.qK(YbJ,q):_.qK(gkf,q,y)};
ct4=function(q,w,u,y){if(R2s)return R2s;var e=Ek7(q,y);return R2s=w.feedbackV2GlobalObject?Promise.resolve(w.feedbackV2GlobalObject):new Promise(function(t,X){var G=_.rg("SCRIPT");_.bZ(G,e);G.onload=function(){w.feedbackV2GlobalObject?t(w.feedbackV2GlobalObject):X(Error("ef"))};
G.onerror=function(){X(Error("ff`"+e.toString()))};
u.body.appendChild(G)})};
h2u=function(q,w,u,y){if(Sb6)return Sb6;var e=Ek7(q,y);return Sb6=w.feedbackV2GlobalObject?Promise.resolve(w.feedbackV2GlobalObject):new Promise(function(t,X){var G=_.rg("SCRIPT");_.bZ(G,e);G.onload=function(){w.feedbackV2GlobalObject?t(w.feedbackV2GlobalObject):X(Error("ef"))};
G.onerror=function(){X(Error("ff`"+e.toString()))};
u.body.appendChild(G)})};
jJ4=function(q,w,u,y,e){e=e===void 0?!0:e;var t,X,G,n,N;return _.F(function(Q){switch(Q.nextAddress){case 1:return t=Date.now(),_.H(Q,ct4(q,u,y,w),2);case 2:X=Q.yieldResult;if(!(e||((n=q.initializationData)==null?0:n.useNightlyRelease)||((N=q.initializationData)==null?0:N.isLocalServer))){G=X.initializeFeedbackClient(q,t,w);Q.jumpTo(3);break}return _.H(Q,X.initializeFeedbackClientAsync(q,t,w),4);case 4:G=Q.yieldResult;case 3:return G.initiateAloha(),Q.return(G)}})};
llj=function(q,w,u,y){var e,t,X;return _.F(function(G){if(G.nextAddress==1)return e=Date.now(),_.H(G,h2u(q,u,y.document,w),2);if(G.nextAddress!=3)return t=G.yieldResult,_.H(G,t.initializeFeedbackClientAsync(q,e,w,y),3);X=G.yieldResult;X.initiateAloha();return G.return(X)})};
L_M=function(q,w,u){var y=!0;y=y===void 0?!0:y;var e,t,X,G,n,N,Q,I,U,d;return _.F(function(V){e=u||_.uc;if((t=w)==null?0:(G=(X=t).getEnableAlohaBinarySplit)==null?0:G.call(X)){n=e;if(n.isFormOpened)throw N=Error("gf"),N.name="DuplicateFormError",N;n.isFormOpened=!0;q.callbacks=q.callbacks||{};Q=q.callbacks.onClose||function(){};
q.callbacks.onClose=function(J){n.isFormOpened=!1;Q(J)};
try{return V.return(llj(q,w,n,e))}catch(J){throw n.isFormOpened=!1,J;}}else{I=e;if(I.isFormOpened)throw U=Error("gf"),U.name="DuplicateFormError",U;I.isFormOpened=!0;q.callbacks=q.callbacks||{};d=q.callbacks.onClose||function(){};
q.callbacks.onClose=function(J){I.isFormOpened=!1;d(J)};
try{return V.return(jJ4(q,w,I,e.document,y))}catch(J){throw I.isFormOpened=!1,J;}}_.HI(V)})};
qjl=function(q,w){return _.F(function(u){return u.return(new Promise(function(y){var e=MKM(w!=null?w:"")+"/aloha_form_properties?productId="+q;K_J(e,function(t){t=t.target;var X=null;try{var G=JSON,n=G.stringify;if(t.JSC$7699_xhr_){var N=t.JSC$7699_xhr_.responseText;N.indexOf(")]}'\n")==0&&(N=N.substring(5));var Q=(0,_.Jp)(N)}else Q=void 0;X=yhz(BPu,n.call(G,Q))}catch(I){n=new BPu,Q=xBl(),Q=_.z6(Q,13,!1),Q=_.z6(Q,14,!0),Q=_.z6(Q,15,!0),Q=_.z6(Q,20,!1),X=_.e9(n,1,Q)}y(X)},"GET","",{},2E3,!0)}))})};
MKM=function(q){return vks(q)?q:"https://www.google.com/tools/feedback"};
ezs=function(q){q=q.match(new RegExp(wJc,"gi"))||[];q=_.P(q);for(var w=q.next();!w.done;w=q.next()){w=w.value;a:{var u=_.P(usu);for(var y=u.next();!y.done;y=u.next())if(y.value.test(w)){u=!1;break a}u=!0}if(!u)a:{u=_.P(y57);for(y=u.next();!y.done;y=u.next())if(y.value.test(w)){u=!0;break a}u=!1}if(u)return!0}return!1};
kxl=function(q){switch(q){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"}};
PhM=function(q){if(window.crypto&&window.crypto.getRandomValues)try{var w=Array(q),u=new Uint8Array(q);window.crypto.getRandomValues(u);for(var y=0;y<w.length;y++)w[y]=u[y];return w}catch(t){}w=Array(q);for(u=0;u<q;u++){y=Date.now();for(var e=0;e<y%23;e++)w[u]=Math.random();w[u]=Math.floor(Math.random()*256)}if(tnj)for(u=1,y=0;y<tnj.length;y++)w[u%q]^=w[(u-1)%q]/4^tnj.charCodeAt(y),u++;return w};
ax=function(q){q=PhM(q);for(var w=[],u=0;u<q.length;u++)w.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(q[u]&63));return w.join("")};
Foc=function(q){q&&_.pn("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:XJz,clientScreenNonce:q})};
Gx7=function(q){return _.Et("client-screen-nonce-store",{})[q===void 0?0:q]};
nro=function(q,w){w=w===void 0?0:w;var u=_.Et("client-screen-nonce-store");u||(u={},_.g_("client-screen-nonce-store",u));u[w]=q};
HM7=function(q){q=q===void 0?0:q;return q===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+q};
Wol=function(q){return _.Et(HM7(q===void 0?0:q))};
_.ZB=function(q){return(q=Wol(q===void 0?0:q))?new _.DB({veType:q,youtubeData:void 0,jspbYoutubeData:void 0}):null};
sfJ=function(){var q=_.Et("csn-to-ctt-auth-info");q||(q={},_.g_("csn-to-ctt-auth-info",q));return q};
NDu=function(){return Object.values(_.Et("client-screen-nonce-store",{})).filter(function(q){return q!==void 0})};
_.pN=function(q){q=Gx7(q===void 0?0:q);if(!q&&!_.RX("USE_CSN_FALLBACK",!0))return null;q||(q="UNDEFINED_CSN");return q?q:null};
I9J=function(q){for(var w=_.P(Object.values(Qf6)),u=w.next();!u.done;u=w.next())if(_.pN(u.value)===q)return!0;return!1};
iMc=function(q,w,u){var y=sfJ();(u=_.pN(u))&&delete y[u];w&&(y[q]=w)};
$G=function(q){return sfJ()[q]};
_.vf=function(q,w,u,y){u=u===void 0?0:u;if(q!==Gx7(u)||w!==_.Et(HM7(u)))if(iMc(q,y,u),nro(q,u),_.g_(HM7(u),w),w=function(){setTimeout(function(){Foc(q)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(w)}catch(e){w()}else w()};
r5c=function(q,w){w=w===void 0?"":w;var u=[],y;for(y in q)if(q.hasOwnProperty(y)){var e=w!==""?w+"."+y:y;typeof q[y]==="object"?u.push.apply(u,_.Cm(r5c(q[y],e))):u.push([e,q[y]])}u.sort();return u};
_.TD6=function(q){var w=_.Cj.apply(1,arguments);if(!b9(q)||w.some(function(y){return!b9(y)}))throw Error("hf");
w=_.P(w);for(var u=w.next();!u.done;u=w.next())UFl(q,u.value)};
UFl=function(q,w){for(var u in w)if(b9(w[u])){if(u in q&&!b9(q[u]))throw Error("jf");u in q||(q[u]={});UFl(q[u],w[u])}else if(Ch6(w[u])){if(u in q&&!Ch6(q[u]))throw Error("kf");u in q||(q[u]=[]);dFM(q[u],w[u])}else q[u]=w[u];return q};
dFM=function(q,w){w=_.P(w);for(var u=w.next();!u.done;u=w.next())u=u.value,b9(u)?q.push(UFl({},u)):Ch6(u)?q.push(dFM([],u)):q.push(u);return q};
b9=function(q){return typeof q==="object"&&!Array.isArray(q)};
Ch6=function(q){return typeof q==="object"&&Array.isArray(q)};
orj=function(q){for(var w=_.P(Object.entries(OMM)),u=w.next();!u.done;u=w.next())if(u=_.P(u.value),u.next(),u=u.next().value,u==="SLI_STATUS_"+q)return u;return"SLI_STATUS_UNKNOWN"};
_.YG=function(q,w,u,y){return VnM(q,w,function(){return new _.f9z(q,w,u,y)})};
_.mFj=function(){return _.YG("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
A5c=function(){return _.YG("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
g1=function(){return _.YG("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
J5y=function(){return _.YG("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
zzz=function(){return _.YG("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
a9j=function(){return _.YG("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
pJy=function(q){q&&(q.dataset?q.dataset[DFc()]="true":_.gB([_.BI(ZMM)],q,"data-loaded","true".toString()))};
$FJ=function(q){return q?q.dataset?q.dataset[DFc()]:q.getAttribute("data-loaded"):null};
DFc=function(){return vru.loaded||(vru.loaded="loaded".replace(/\-([a-z])/g,function(q,w){return w.toUpperCase()}))};
_.EM=function(q,w,u){bMj(q,w,u===void 0?null:u)};
_.gro=function(q,w){q&&w&&(q=""+_.kT(w),(q=Yj4[q])&&_.SPf(q))};
bMj=function(q,w,u){u=u===void 0?null:u;var y=_.Erz(q),e=document.getElementById(y),t=e&&$FJ(e),X=e&&!t;t?w&&w():(w&&(t=_.nn(y,w),w=""+_.kT(w),Yj4[w]=t),X||(e=Rzs(q,y,function(){$FJ(e)||(pJy(e),_.hMM(y),_.WG(function(){_.lu6(y)},0))},u)))};
Rzs=function(q,w,u,y){y=y===void 0?null:y;var e=_.rg("SCRIPT");e.id=w;e.onload=function(){u&&setTimeout(u,0)};
e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}};
y&&e.setAttribute("nonce",y);_.bZ(e,_.A1(q));q=document.getElementsByTagName("head")[0]||document.body;q.insertBefore(e,q.firstChild);return e};
_.Erz=function(q){var w=document.createElement("a");VE(w,q);return"js-"+Rx(w.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
c54=function(q){var w=_.Et("INNERTUBE_HOST_OVERRIDE");w&&(q=String(w)+String(_.cf(q)));return q};
SjH=function(q){var w={};_.T("json_condensed_response")&&(w.prettyPrint="false");return q=NAJ(q,w)};
_.Sp=function(q){return yV(q)?"same-origin":"include"};
_.hp=function(q){return yV(q)?"same-origin":"cors"};
jp=function(q,w,u){u=u===void 0?{}:u;q={method:w===void 0?"POST":w,mode:_.hp(q),credentials:_.Sp(q)};w={};for(var y=_.P(Object.keys(u)),e=y.next();!e.done;e=y.next())e=e.value,u[e]&&(w[e]=u[e]);Object.keys(w).length>0&&(q.headers=w);return q};
_.l9=function(q,w){w=w===void 0?{}:w;return"service:"+q+"/"+Object.keys(w).sort().map(function(u){return u+":"+w[u]}).join("/")};
hzM=function(q){var w,u,y,e;q=(w=_.C(q,_.LN))==null?void 0:(u=w.watchEndpointSupportedOnesieConfig)==null?void 0:(y=u.html5PlaybackOnesieConfig)==null?void 0:(e=y.commonConfig)==null?void 0:e.url;if(!q)return[];w=new _.M4(q);return w.JSC$7931_domain_?["https://"+w.JSC$7931_domain_+"/generate_204"]:[]};
_.Lou=function(){return jfs()||rp7()||l9M&&b4("version/")?!0:_.Et("EOM_VISITOR_DATA")?!1:!0};
Mnl=function(q){var w=q.docid||q.video_id||q.videoId||q.id;if(w)return w;w=q.raw_player_response;w||(q=q.player_response)&&(w=JSON.parse(q));return w&&w.videoDetails&&w.videoDetails.videoId||null};
KoH=function(q){return q.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
KN=function(q){return!isNaN(Number(q))&&!_.Gy(q)};
_.xG=function(q,w,u,y){y=y===void 0?!0:y;var e=_.Et("VALID_SESSION_TEMPDATA_DOMAINS",[]),t=_.w$(window.location.href);t&&e.push(t);t=_.w$(q);if(_.SH(e,t)||!t&&_.tz(q,"/"))if(e=document.createElement("a"),VE(e,q),q=e.href)if(q=_.cf(q),q=_.Bf(q))y&&!w.csn&&(w.itct||w.ved)&&(w=Object.assign({csn:_.pN()},w)),u?(u=parseInt(u,10),isFinite(u)&&u>0&&BDM(q,w,u)):BDM(q,w)};
qcH=function(q){var w=_.Et("VALID_SESSION_TEMPDATA_DOMAINS",[]),u=_.w$(window.location.href);u&&w.push(u);u=_.w$(q);if(!(_.SH(w,u)||!u&&_.tz(q,"/")))return null;q=_.cf(q);(q=_.Bf(q))?(q=xFc(q),q=(q=_.TQ.get(q,void 0)||null)?_.MZ(q):{}):q=null;return q};
BDM=function(q,w,u){q=xFc(q);w=w?_.i4(w):"";u=u||5;_.Lou()&&_.Cv(q,w,u)};
xFc=function(q){for(var w=_.P(wzj),u=w.next();!u.done;u=w.next())q=_.qU(q,u.value);return"ST-"+Rx(q).toString(36)};
uCu=function(q,w){q.commandMetadata&&_.C(q.commandMetadata,_.wk)&&_.C(q.commandMetadata,_.wk).url&&(q=_.K4(_.C(q.commandMetadata,_.wk).url).adurl)&&_.IOs(q)&&_.xG(_.cf(q),{encoded_ad_playback_context:w})};
_.yY6=function(q){if(q.requestFullscreen)q=q.requestFullscreen(void 0);else if(q.webkitRequestFullscreen)q=q.webkitRequestFullscreen();else if(q.mozRequestFullScreen)q=q.mozRequestFullScreen();else if(q.msRequestFullscreen)q=q.msRequestFullscreen();else if(q.webkitEnterFullscreen)q=q.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return q instanceof Promise?q:Promise.resolve()};
_.yY=function(q){var w;_.auH(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.uy()==q&&(w=document):w=q;if(w&&(q=_.auH(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],w))){q.call(w)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.uy=function(){var q=q===void 0?!1:q;var w=_.auH(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(q)for(;w&&w.shadowRoot;)w=w.shadowRoot.fullscreenElement;return w?w:null};
_.eB=function(q,w){w=w===void 0?!0:w;q.addEventListener("wheel",eJl);q.overscrollConfig={cooldown:w}};
_.k1=function(q){q.overscrollConfig=void 0;q.removeEventListener("wheel",eJl)};
eJl=function(q){var w=q.deltaY,u=q.target,y=null;if(window.Polymer&&window.Polymer.Element){if(u=q.path||q.composedPath&&q.composedPath()){u=_.P(u);for(var e=u.next();!e.done&&(e=e.value,!kI7(e,w));e=u.next())if(e.overscrollConfig){y=e;break}}}else for(;u&&!kI7(u,w);){if(u.overscrollConfig){y=u;break}u=u.parentElement}y&&(w=y.overscrollConfig,w.cooldown?(y=q.deltaY,u=w.lastDeltaY||0,w.lastDeltaY=y,e=w.lastStopped||0,u&&e&&u>0==y>0?Math.abs(u)>=Math.abs(y)?(y=e+1200,u=!1):(y=e+600,u=!0):(y=Date.now()+
600,u=!0),y>Date.now()&&(q.preventDefault(),u&&(w.lastStopped=Date.now()))):q.preventDefault())};
kI7=function(q,w){return w<0&&q.scrollTop>0||w>0&&q.scrollTop<q.scrollHeight-q.clientHeight-1?(q=getComputedStyle(q).overflowY,q=="auto"||q=="scroll"):!1};
_.t7=function(q,w,u,y){y||(y={bubbles:!0,cancelable:!1,composed:!0});u!==null&&u!==void 0&&(y.detail=u);var e=new CustomEvent(w,y);_.T("untrack_fire_custom_event_killswitch")?q.dispatchEvent(e):Qy(function(){return void q.dispatchEvent(e)});
return e};
_.Pw=function(q,w,u,y){w=new t4f(w,!(y===void 0||!y),u);_.t7(q,"yt-action",w);return w.returnValue};
_.X4=function(q,w,u){return _.Pw(q,w,u,!0)};
_.F4=function(q,w,u){return _.Pw(q,w,u)[0]};
_.nq=function(q,w,u,y){w&&w.length&&w.forEach(function(e){var t=JB7(e);t&&(_.T("handle_service_request_actions")&&e.commandMetadata&&e.commandMetadata.webCommandMetadata&&e.commandMetadata.webCommandMetadata.sendPost?_.GM(u?u:q,[e]):_.X4(q,t,[e,u,y]))})};
_.GM=function(q,w){var u=[q];w&&u.push.apply(u,w);w=_.Pw(q,"yt-service-request",u);return w.length>0&&(w=w[0],_.t7(q,"yt-service-request-sent",w),w&&w.ajaxPromise)?(w.ajaxPromise.then(function(y){_.t7(q,"yt-service-request-completed",y)},function(y){_.t7(q,"yt-service-request-error",{error:y,
params:u})},q),w.ajaxPromise):_.Hw()};
_.sC=function(q,w){if(_.T("handle_service_request_actions"))_.nq(w,q,w);else{q=_.P(q);for(var u=q.next();!u.done;u=q.next()){u=u.value;var y=void 0;((y=_.C(u,_.Ww))==null?0:y.commands)?_.sC(_.C(u,_.Ww).commands,w):(y=void 0,((y=_.C(u,_.NU))==null?0:y.actions)?_.sC(_.C(u,_.NU).actions,w):(y=void 0,((y=_.C(u.commandMetadata,_.wk))==null?0:y.sendPost)?_.GM(w,[u]):_.nq(w,[u],w)))}}};
_.Xzl=function(q,w,u){w=w===void 0?{}:w;typeof w==="function"&&(w={callback:w});u||w._c&&w._c.jsl&&w._c.jsl.h||_.db.extend(w,{_c:{jsl:{h:_.Et("GAPI_HINT_PARAMS")}}});(w.gapiHintOverride||_.Et("GAPI_HINT_OVERRIDE"))&&(u=_.K4(document.location.href).gapi_jsh)&&_.db.extend(w,{_c:{jsl:{h:u}}});P5c(q,w)};
_.ID=function(q,w,u){w=w===void 0?{}:w;q=(q=q in QY?QY[q]:u)||"";u={};for(var y in w){u={key$jscomp$788:u.key$jscomp$788};u.key$jscomp$788=y;var e=function(t){return function(){return String(w[t.key$jscomp$788])}}(u);
q=q.replace(new RegExp("\\$\\{"+u.key$jscomp$788+"\\}","gi"),e);q=q.replace(new RegExp("\\$"+u.key$jscomp$788,"gi"),e)}return q};
_.iy=function(q,w){return Fvc(q in QY?QY[q]:{},w)};
Fvc=function(q,w){var u=_.Et("I18N_PLURAL_RULES");u||(u=function(y){return y==1?"one":"other"});
return(q=q["case"+w]||q[u(w)])?q.replace("#",w.toString()):w+""};
Hdc=function(q){var w=GIo(q),u=document.getElementById(w),y=u&&$FJ(u);y||u&&!y||(u=nQs(q,w,function(){if(!$FJ(u)){pJy(u);_.hMM(w);var e=_.rk(_.lu6,w);_.WG(e,0)}}))};
nQs=function(q,w,u){var y=document.createElement("link");y.id=w;y.onload=function(){u&&setTimeout(u,0)};
q=_.A1(q);_.Rw(y,q,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(y);return y};
GIo=function(q){var w=_.rg("A");VE(w,Ws(q));return"css-"+Rx(w.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.sqH=function(q){var w=Wvj();q!==w&&(w=_.UC(),!_.T("web_autonav_allow_off_by_default")&&q||_.TM(0,141,!0),_.TM(0,140,!q),w.save())};
Wvj=function(){var q=_.UC();return _.T("web_autonav_allow_off_by_default")&&!q.getFlag(141)&&_.Et("AUTONAV_OFF_BY_DEFAULT")?!1:!q.getFlag(140)};
Nay=function(q,w){var u,y;q=((u=q.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(y=u.videoAuthorizationToken)==null?void 0:y.credentialTransferTokens)||[];for(u=0;u<q.length;++u)if(q[u].scope===w)return q[u].token||void 0};
Qqf=function(q){for(var w=0,u=0;u<q.length;u++)w=w*31+q.charCodeAt(u),u<q.length-1&&(w%=0x800000000000);return w%1E5};
_.OC=function(q){return _.hP("ytcsi."+(q||"")+"data_")||IQ6(q)};
_.id7=function(q){q=_.OC(q);q.metadata||(q.metadata={});return q.metadata};
_.rYj=function(q){q=_.OC(q);q.tick||(q.tick={});return q.tick};
_.UHf=function(q){q=_.OC(q);if(q.gel){var w=q.gel;w.gelInfos||(w.gelInfos={});w.gelTicks||(w.gelTicks={})}else q.gel={gelTicks:{},gelInfos:{}};return q.gel};
_.Tac=function(q){q=_.UHf(q);q.gelInfos||(q.gelInfos={});return q.gelInfos};
C5j=function(q){var w=_.OC(q).nonce;w||(w=ax(16),_.OC(q).nonce=w);return w};
IQ6=function(q){var w={tick:{},info:{}};_.wr("ytcsi."+(q||"")+"data_",w);return w};
dHM=function(){var q=_.hP("ytcsi.debug");q||(q=[],_.wr("ytcsi.debug",q),_.wr("ytcsi.reference",{}));return q};
_.oQJ=function(q){q=q||"";var w=Od6();if(w[q])return w[q];var u=dHM(),y={timerName:q,info:{},tick:{},span:{},jspbInfo:[]};u.push(y);return w[q]=y};
V4M=function(q){q=q||"";var w=Od6();w[q]&&delete w[q];var u=dHM(),y={timerName:q,info:{},tick:{},span:{},jspbInfo:[]};u.push(y);w[q]=y};
Od6=function(){var q=_.hP("ytcsi.reference");if(q)return q;dHM();return _.hP("ytcsi.reference")};
_.mH6=function(q){return fQl[q]||"LATENCY_ACTION_UNKNOWN"};
aQu=function(q,w,u){u=u===void 0?{}:u;var y=!1;_.RX("ytLoggingEventsDefaultDisabled",!1)&&(y=!0);y=y?null:Zn;u=u===void 0?{}:u;var e=Math.round(u.timestamp||(0,_.eW)());_.VR(w,1,e<Number.MAX_SAFE_INTEGER?e:0);e=new AYc;if(u.lact)_.VR(e,1,isFinite(u.lact)?u.lact:-1);else if(u.timestamp)_.VR(e,1,-1);else{var t=_.Pm();_.VR(e,1,isFinite(t)?t:-1)}if(u.sequenceGroup&&!_.T("web_gel_sequence_info_killswitch")){t=u.sequenceGroup;var X=eHl(t),G=new JYy;_.VR(G,2,X);_.sf(G,1,t);_.e9(e,3,G);u.endOfSequence&&delete zJy[u.sequenceGroup]}_.e9(w,
33,e);(u.sendIsolatedPayload?GmM:ndf)(q,{endpoint:"log_event",payload:w,cttAuthInfo:u.cttAuthInfo,dangerousLogToVisitorSession:u.dangerousLogToVisitorSession},y)};
_.VY=function(){return(_.T("csi_use_time_origin")||_.T("csi_use_time_origin_tvhtml5"))&&_.oD.timeOrigin?Math.floor(_.oD.timeOrigin):_.oD.timing.navigationStart};
_.DH7=function(q,w){_.fq("_start",q,w)};
_.mR=function(q,w){if(!_.T("web_csi_action_sampling_enabled")||!_.OC(w).actionDisabled){var u=_.oQJ(w||"");_.TD6(u.info,q);q.loadType&&(u=q.loadType,_.id7(w).loadType=u);_.TD6(_.Tac(w),q);u=C5j(w);w=_.OC(w).cttAuthInfo;Zdj().info(q,u,w)}};
pzl=function(){var q,w,u,y;return((y=_.tG().resolve(_.kF(zC))==null?void 0:(q=yBM())==null?void 0:(w=q.loggingHotConfig)==null?void 0:(u=w.csiConfig)==null?void 0:u.debugTicks)!=null?y:[]).map(function(e){return Object.values(e)[0]})};
_.fq=function(q,w,u){if(!_.T("web_csi_action_sampling_enabled")||!_.OC(u).actionDisabled){var y=C5j(u),e;if(e=_.T("web_csi_debug_sample_enabled")&&y){(_.tG().resolve(_.kF(zC))==null?0:yBM())&&!$H7&&($H7=!0,_.fq("gcfl",(0,_.eW)(),u));var t,X,G;e=(_.tG().resolve(_.kF(zC))==null?void 0:(t=yBM())==null?void 0:(X=t.loggingHotConfig)==null?void 0:(G=X.csiConfig)==null?void 0:G.debugSampleWeight)||0;if(t=e!==0)b:{t=pzl();if(t.length>0)for(X=0;X<t.length;X++)if(q===t[X]){t=!0;break b}t=!1}t?(e=Qqf(y)%e!==
0,_.OC(u).debugTicksExcludedLogged||(t={},t.debugTicksExcluded=e,_.mR(t,u)),_.OC(u).debugTicksExcludedLogged=!0):e=!1}if(!e){q[0]!=="_"&&vQo(q,u,w);e=_.oQJ(u||"");e.tick[q]=w||(0,_.eW)();if(e.callback&&e.callback[q])for(e=_.P(e.callback[q]),t=e.next();!t.done;t=e.next())t=t.value,t();e=_.UHf(u);e.gelTicks&&(e.gelTicks[q]=!0);t=_.rYj(u);e=w||(0,_.eW)();_.T("log_repeated_ytcsi_ticks")?q in t||(t[q]=e):t[q]=e;t=_.OC(u).cttAuthInfo;q==="_start"?Zdj().baseline(y,w,t):Zdj().tick(q,y,w,t);_.bdM(u);return e}}};
vQo=function(q,w,u){if(_.oD.mark)if(q.startsWith("mark_")||(q="mark_"+q),w&&(q+=" ("+w+")"),u===void 0||_.T("web_csi_disable_alt_time_performance_mark"))_.oD.mark(q);else{u=_.T("csi_use_performance_navigation_timing")?u-_.oD.timeOrigin:u-(_.oD.timeOrigin||_.oD.timing.navigationStart);try{_.oD.mark(q,{startTime:u})}catch(y){}}};
Yc6=function(){var q,w=(q=_.oD.getEntriesByType)==null?void 0:q.call(_.oD,"mark");w&&w.forEach(function(u){if(u.name.startsWith("mark_")){var y;(y=_.oD.clearMarks)==null||y.call(_.oD,u.name)}})};
_.gQs=function(){switch(zMJ()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.EQf=function(q){var w={},u=function(t,X,G){X=X.match("_rid")?X.split("_rid")[0]:X;typeof G==="number"&&(G=JSON.stringify(G));t.requestIds?t.requestIds.push({endpoint:X,id:G}):t.requestIds=[{endpoint:X,id:G}]};
q=_.P(Object.entries(q));for(var y=q.next();!y.done;y=q.next()){var e=_.P(y.value);y=e.next().value;e=e.next().value;switch(y){case "GetBrowse_rid":u(w,y,e);break;case "GetGuide_rid":u(w,y,e);break;case "GetHome_rid":u(w,y,e);break;case "GetPlayer_rid":u(w,y,e);break;case "GetSearch_rid":u(w,y,e);break;case "GetSettings_rid":u(w,y,e);break;case "GetTrending_rid":u(w,y,e);break;case "GetWatchNext_rid":u(w,y,e);break;case "yt_red":w.isRedSubscriber=!!e;break;case "yt_ad":w.isMonetized=!!e}}return w};
_.RJo=function(q){var w=_.A7("aft",q);if(w)return w;w=_.Et((q||"")+"TIMING_AFT_KEYS",["ol"]);for(var u=w.length,y=0;y<u;y++){var e=_.A7(w[y],q);if(e)return e}return NaN};
_.cYM=function(q,w){_.wr("ytglobal.timing"+(w||"")+"ready_",q)};
_.A7=function(q,w){if(q=_.rYj(w)[q])return typeof q==="number"?q:q[q.length-1]};
_.bdM=function(q){var w=_.A7("_start",q),u=_.RJo(q),y=!Sc7;w&&u&&y&&(kaz(hJ7,new jq4(Math.round(u-w),q)),Sc7=!0)};
Lvf=function(q){IQ6(q);lQl();Yc6();q||(_.Et("TIMING_ACTION")&&_.g_("PREVIOUS_ACTION",_.Et("TIMING_ACTION")),_.g_("TIMING_ACTION",""))};
_.M4u=function(q){q=q===void 0?{}:q;_.SZ(function(){J7();V4M();Lvf();_.cYM(!1);q.cttAuthInfo&&(_.OC().cttAuthInfo=q.cttAuthInfo);_.g_("TIMING_AFT_KEYS",[]);q.isHot?_.zM({loadType:"hot"}):_.zM({loadType:"warm"});_.g_("TIMING_ACTION","");delete _.Et("TIMING_INFO",{}).yt_lt;_.SZ(_.DH7)(q.startTime,void 0)})()};
_.aD=function(q,w,u,y){w=w===void 0?{}:w;_.SZ(function(){var e=u?u:q;Kvc(e);var t=w.sampleRate;if(!_.T("web_csi_action_sampling_enabled")||t===void 0||t<=1)t=!1;else{var X=C5j(e);t=Qqf(X)%t!==0}t&&(_.OC(e).actionDisabled=!0);_.oQJ(e||"").info.actionType=q;w.cttAuthInfo&&(_.OC(e).cttAuthInfo=w.cttAuthInfo);_.g_(e+"TIMING_ACTION",q);_.SZ(_.DH7)(w.startTime,e);t={actionType:y||_.mH6(q)};w.logPreviousAction&&(t.previousAction=_.mH6(_.Et("TIMING_ACTION")));(X=_.pN())&&X!=="UNDEFINED_CSN"&&(t.clientScreenNonce=
X);_.zM(t,e);_.cYM(!0,e)})()};
Kvc=function(q){_.SZ(function(){J7(q);V4M(q);Lvf(q)})()};
BaM=function(){_.SZ(function(){var q=[],w;for(w in _.hP("ytcsi.".slice(0,-1)))w.endsWith("data_")&&q.push(w.slice(0,-5));q=_.P(q);for(w=q.next();!w.done;w=q.next())Kvc(w.value);J7()})()};
_.qGH=function(q){return _.SZ(function(){return _.xHf("_start",q)})()};
_.zM=function(q,w,u){_.SZ(_.mR)(q,w,u===void 0?!1:u)};
_.D_=function(q,w,u){return _.SZ(_.fq)(q,w,u)};
_.xHf=function(q,w){return _.SZ(function(){var u=_.rYj(w);return q in u})()};
u77=function(q){if(!_.T("universal_csi_network_ticks"))return"";q=_.QV(q)||"";for(var w=Object.keys(w_f),u=0;u<w.length;u++){var y=w[u];if(q.includes(y))return y}return""};
e_s=function(q){if(!_.T("universal_csi_network_ticks"))return function(){};
var w=w_f[q];return w?(_.Z_(w),function(){var u=_.T("universal_csi_network_ticks")?(u=yL6[q])?_.Z_(u):!1:!1;return u}):function(){}};
_.Z_=function(q,w,u){return _.SZ(function(){if(_.xHf(q,u))return!1;_.D_(q,w,u);return!0})()};
_.pq=function(q,w,u){_.SZ(function(){if(!_.qGH(u)||_.xHf(q,u))return!1;_.D_(q,w,u);return!0})()};
_.$1=function(q){return _.SZ(_.A7)(q,void 0)};
J7=function(q){_.qGH(q)&&_.D_("aa",void 0,q)};
_.Fn4=function(q,w,u,y,e,t,X,G,n){var N=kX4();G=new _.DB({veType:w,youtubeData:t,jspbYoutubeData:G});t=vw({},N);e&&(t.cttAuthInfo=e);e={csn:N,pageVe:G.getAsJson()};_.T("expectation_logging")&&n&&n.screenCreatedLoggingExpectations&&(e.screenCreatedLoggingExpectations=n.screenCreatedLoggingExpectations);u&&u.visualElement?(e.implicitGesture={parentCsn:u.clientScreenNonce,gesturedVe:u.visualElement.getAsJson()},X&&(e.implicitGesture.gestureType=X)):u&&_.Y8(new _.fv("newScreen() parent element does not have a VE - rootVe",
w));y&&(e.cloneCsn=y);q?Dn("screenCreated",e,q,t):_.pn("screenCreated",e,t);kaz(Hac,new tFc(N));by.clear();PRy.clear();X_u.clear();return N};
Y1=function(q,w,u,y,e){GXH(q,w,u,[y],e===void 0?!1:e)};
GXH=function(q,w,u,y,e){e=e===void 0?!1:e;for(var t=vw({cttAuthInfo:$G(w)||void 0},w),X=_.P(y),G=X.next();!G.done;G=X.next()){G=G.value;var n=G.getAsJson();(_.db.isEmpty(n)||!n.trackingParams&&!n.veType)&&_.Y8(Error("uf"));if(_.T("no_client_ve_attach_unless_shown")){var N=n2s(G,w);if(n.veType&&!PRy.has(N)&&!X_u.has(N)&&!e){if(!_.T("il_attach_cache_limit")||by.size<1E3){by.set(N,[q,w,u,G]);return}_.T("il_attach_cache_limit")&&by.size>1E3&&_.Y8(new _.fv("IL Attach cache exceeded limit"))}G=n2s(u,w);
by.has(G)?H9o(u,w):X_u.set(G,!0)}}y=y.filter(function(Q){Q.csn!==w?(Q.csn=w,Q=!0):Q=!1;return Q});
u={csn:w,parentVe:u.getAsJson(),childVes:_.or(y,function(Q){return Q.getAsJson()})};
w==="UNDEFINED_CSN"?gk("visualElementAttached",t,u):q?Dn("visualElementAttached",u,q,t):_.pn("visualElementAttached",u,t)};
syj=function(q,w,u,y,e){Wns(q,w,u,e)};
Wns=function(q,w,u,y){NMH(u,w);var e=vw({cttAuthInfo:$G(w)||void 0},w);u={csn:w,ve:u.getAsJson(),eventType:1};y&&(u.clientData=y);w==="UNDEFINED_CSN"?gk("visualElementShown",e,u):q?Dn("visualElementShown",u,q,e):_.pn("visualElementShown",u,e)};
QyH=function(q,w,u,y){NMH(u,w);var e=vw({cttAuthInfo:$G(w)||void 0},w);u={csn:w,ve:u.getAsJson(),eventType:4};y&&(u.clientData=y);w==="UNDEFINED_CSN"?gk("visualElementShown",e,u):q?Dn("visualElementShown",u,q,e):_.pn("visualElementShown",u,e)};
Iry=function(q,w,u,y,e){var t=(y=y===void 0?!1:y)?16:8;y=vw({cttAuthInfo:$G(w)||void 0,endOfSequence:y},w);u={csn:w,ve:u.getAsJson(),eventType:t};e&&(u.clientData=e);w==="UNDEFINED_CSN"?gk("visualElementHidden",y,u):q?Dn("visualElementHidden",u,q,y):_.pn("visualElementHidden",u,y)};
rLs=function(q,w,u,y,e){i9c(q,w,u,void 0,y,e)};
i9c=function(q,w,u,y,e){NMH(u,w);y=y||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var t=vw({cttAuthInfo:$G(w)||void 0},w);u={csn:w,ve:u.getAsJson(),gestureType:y};e&&(u.clientData=e);w==="UNDEFINED_CSN"?gk("visualElementGestured",t,u):q?Dn("visualElementGestured",u,q,t):_.pn("visualElementGestured",u,t)};
Udo=function(q,w,u,y){var e=vw({cttAuthInfo:$G(w)||void 0},w);u={csn:w,ve:u.getAsJson(),clientData:y};w==="UNDEFINED_CSN"?gk("visualElementStateChanged",e,u):q?Dn("visualElementStateChanged",u,q,e):_.pn("visualElementStateChanged",u,e)};
TMo=function(){var q=PhM(16);for(var w=[],u=0;u<q.length;u++)w.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(q[u]&63));return w.join("")};
gk=function(q,w,u){CRz.push({payloadName:q,payload:u,jspbPayload:void 0,options:w});ddu||(ddu=sOf())};
nNJ=function(q){if(CRz){for(var w=_.P(CRz),u=w.next();!u.done;u=w.next())u=u.value,u.payload&&(u.payload.csn=q.csn,_.pn(u.payloadName,u.payload,u.options));CRz.length=0}ddu=0};
n2s=function(q,w){return""+q.getAsJson().veType+q.getAsJson().veCounter+w};
NMH=function(q,w){if(_.T("no_client_ve_attach_unless_shown")){var u=n2s(q,w);PRy.set(u,!0);H9o(q,w)}};
H9o=function(q,w){q=n2s(q,w);by.has(q)&&(w=by.get(q)||[],Y1(w[0],w[1],w[2],w[3],!0),by.delete(q))};
vw=function(q,w){_.T("log_sequence_info_on_gel_web")&&(q.sequenceGroup=w);return q};
_.EC=function(q,w,u){_.SZ(Y1)(void 0,q,w,u)};
_.RD=function(q,w,u){_.SZ(GXH)(void 0,q,w,u)};
_.cw=function(q,w){_.SZ(syj)(void 0,q,w,void 0,void 0,void 0)};
_.SB=function(q,w,u){_.SZ(function(){_.L4(w,function(y){QyH(void 0,q,y,u)})})()};
_.h7=function(q,w,u,y){_.SZ(function(){_.L4(w,function(e){Iry(void 0,q,e,u,y)})})()};
_.jB=function(q,w,u){_.SZ(rLs)(void 0,q,w,u,void 0)};
_.ly=function(q,w,u,y){_.SZ(i9c)(void 0,q,w,u,y,void 0)};
_.Lq=function(q,w,u){_.SZ(Udo)(void 0,q,w,u,void 0)};
Kq=function(q){return MU.get(q)};
O9M=function(q,w){MU.set(q,w)};
o2M=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(q){return(+q^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+q/4).toString(16)})};
ALo=function(q,w){w=w===void 0?{}:w;if(Bw&&Bw.sample(q,w)){var u=VFu++,y,e;q=new fro(q,w,performance.now(),u,mds,(e=(y=x1)==null?void 0:y.traceId)!=null?e:u);if(x1){var t;(t=x1).children||(t.children=[]);x1.children.push(q)}u=_.P(Bw.spanProcessors);for(y=u.next();!y.done;y=u.next())t=e=void 0,(t=(e=y.value).onSpanStart)==null||t.call(e,q);return x1=q}};
JLs=function(q){var w;return(w=Bw)==null?void 0:w.sample(q,void 0)};
z_7=function(q){mds=o2M();Bw=q};
arc=function(q,w,u){if(!q)return w(u);var y=void 0;try{return w(u)}catch(e){throw y="error",e;}finally{q==null||q.close(y)}};
Ddu=function(q,w){var u=Object.keys(q);q=new _.fv("[Command Handler] "+w,{filteredCommandNames:u,originalCommand:q});_.vm(q)};
Z9u=function(q,w){Ddu(q,w+" was called but not set")};
p_j=function(q){return function(){return new q}};
qt=function(q){return function(){return _.tG().resolve(q)}};
$dJ=function(q,w){var u=_.C(q,_.Sw);if(u&&(u=w[u.signal]))return u();q=_.P(Object.keys(q));for(u=q.next();!u.done;u=q.next())if(u=u.value,w[u]&&(u=w[u]))return u()};
wG=function(q,w,u,y){return{browseEndpoint:{browseId:q},commandMetadata:{webCommandMetadata:{url:w,rootVe:u,webPageType:y===void 0?"WEB_PAGE_TYPE_BROWSE":y}}}};
v2o=function(q,w,u){var y=w=w===void 0?0:w;u=u===void 0?0:u;var e=u-y;return _.uA(q,"PPSV",void 0,void 0,(e>600?0:e<60||u<=0||y/u>.9)?0:w)};
_.uA=function(q,w,u,y,e){var t="/watch?v="+q;q={videoId:q};w&&(q.playlistId=w,t+="&list="+w);y&&(t+="&pp="+y);e&&(q.startTimeSeconds=e,t+="&t="+e+"s");w={watchEndpoint:q,commandMetadata:{webCommandMetadata:{url:t,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};u&&(w.clickTrackingParams=u);y&&(_.C(w,_.LN).playerParams=y);return w};
b9J=function(q){return{browseEndpoint:{browseId:"VL"+q},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+q,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
YGJ=function(q){if(q){var w;if(q){var u=(w=_.C(q.commandMetadata,_.wk))==null?void 0:w.url;w=!(!u||u==="/service_ajax")}else w=!1;if(w)return q;var y;if(q=(y=_.C(q,_.Ww))==null?void 0:y.commands)for(y=_.P(q),q=y.next();!q.done;q=y.next())if(q=YGJ(q.value))return q}};
_.yU=function(q){return{runs:[{text:q}]}};
g2M=function(q,w){return q&&w?{runs:[{text:q,navigationEndpoint:w}]}:void 0};
eN=function(q){return q?_.yU(q):void 0};
_.kN=function(q){return q?{simpleText:q}:void 0};
_.tr=function(q){var w=q.type;q=q.payload;w={type:w};q!==void 0&&(w.payload=q);return w};
E2H=function(q,w,u){for(var y=Object.assign({},q),e=_.P(Object.keys(w)),t=e.next();!t.done;t=e.next()){t=t.value;var X=q[t],G=w[t];if(G===void 0)delete y[t];else if(X===void 0)y[t]=G;else if(Array.isArray(G)&&Array.isArray(X))y[t]=u?[].concat(_.Cm(X),_.Cm(G)):G;else if(!Array.isArray(G)&&_.er(G)&&!Array.isArray(X)&&_.er(X))y[t]=E2H(X,G,u);else if(typeof G===typeof X)y[t]=G;else return w=new _.fv("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:t,originalValue:X,updateValue:G}),
_.vm(w),q}return y};
SG6=function(q){if(!q.length)return"";try{if(R_f)return R_f.decode(q);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(q)}catch(X){}for(var w=0,u=[],y=q.length;w<y;){for(var e=0;e<1024&&w<y;){var t=q[w++];if(t<128)cLM[e++]=t;else{if(t<224)t=(t&31)<<6|q[w++]&63;else if(t<240)t=(t&15)<<12|(q[w++]&63)<<6|q[w++]&63;else{if(e+1===1024){--w;break}t=(t&7)<<18|(q[w++]&63)<<12|(q[w++]&63)<<6|q[w++]&63;t-=65536;cLM[e++]=55296|t>>10;t=56320|t&1023}cLM[e++]=t}}t=String.fromCharCode.apply(String,
cLM);e<1024&&(t=t.substring(0,e));u.push(t)}return u.join("")};
jyy=function(q,w){var u;if((u=h_c)==null?0:u.encodeInto)return w=h_c.encodeInto(q,w),w.read<q.length?q.length*4:w.written;for(var y=u=0;y<q.length;y++){var e=q.charCodeAt(y);e<128?w[u++]=e:(e<2048?w[u++]=e>>6|192:((e&64512)===55296&&y+1<q.length&&(q.charCodeAt(y+1)&64512)===56320?(e=65536+((e&1023)<<10)+(q.charCodeAt(++y)&1023),w[u++]=e>>18|240,w[u++]=e>>12&63|128):w[u++]=e>>12|224,w[u++]=e>>6&63|128),w[u++]=e&63|128)}return u};
lrJ=function(q,w){q=new Uint8Array(q);w&&q.set(w);return q};
_.XX=function(q){q=new LnM(new MFc([_.sX(decodeURIComponent(q))]));if(Kn7(q,2)){var w=PQ(q);var u=q.pos;var y=q.arrayView;u=u===void 0?0:u;var e=w===void 0?-1:w;u=u===void 0?0:u;e=e===void 0?-1:e;if(y.totalLength&&e){e<0&&(e=y.totalLength-u);y.focus(u);if(!(u-y.arrayPos+e<=y.arrays[y.arrayIdx].length)){var t=y.arrayIdx,X=y.arrayPos;y.focus(u+e-1);X=new Uint8Array(y.arrayPos+y.arrays[y.arrayIdx].length-X);for(var G=0,n=t;n<=y.arrayIdx;n++)X.set(y.arrays[n],G),G+=y.arrays[n].length;y.arrays.splice(t,
y.arrayIdx-t+1,X);y.arrayIdx=0;y.arrayPos=0;y.focus(u)}t=y.arrays[y.arrayIdx];y=new DataView(t.buffer,t.byteOffset+u-y.arrayPos,e)}else y=new DataView(new ArrayBuffer(0));y=new Uint8Array(y.buffer,y.byteOffset,y.byteLength);q.pos+=w;w=y}else w=void 0;w=w?SG6(w):void 0;q=Kn7(q,4)?PQ(q):void 0;y=BM4[q];if(typeof y==="undefined")throw q=new _.fv("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:q}),_.vm(q),q;return{entityTypeFieldNumber:q,entityType:y,entityId:w}};
_.na=function(q,w,u){u=u===void 0?0:u;var y=new xdl;if(h_c)q=h_c.encode(q);else{var e=new Uint8Array(Math.ceil(q.length*1.2)),t=jyy(q,e);e.length<t&&(e=new Uint8Array(t),t=jyy(q,e));e.length>t&&(e=e.subarray(0,t));q=e}q!==void 0&&(FX(y,18),e=q.length,FX(y,e),Ga(y,e),y.buf.set(q,y.pos),y.pos+=e);q=qzl[w];if(typeof q==="undefined")throw u=new _.fv("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:w}),_.vm(u),u;q!==void 0&&(FX(y,32),FX(y,q));FX(y,40);FX(y,1);w=new Uint8Array(y.buf.buffer,
y.buf.byteOffset,y.pos);return encodeURIComponent(_.wV(w,u))};
wuc=function(q){q=q.key||q.id;if(!q)throw Error("yf");return q};
y3j=function(q,w){q=q===void 0?{}:q;return uJj(q,w)};
e0o=function(q,w,u,y){if(y===void 0)return y=Object.assign({},q[w]||{}),u=(delete y[u],y),y={},Object.assign({},q,(y[w]=u,y));var e={},t={};return Object.assign({},q,(t[w]=Object.assign({},q[w],(e[u]=y,e)),t))};
khu=function(q,w,u,y,e){var t=q[w];if(t==null||!t[u])return q;y=E2H(t[u],y,e==="REPEATED_FIELDS_MERGE_OPTION_APPEND");e={};t={};return Object.assign({},q,(t[w]=Object.assign({},q[w],(e[u]=y,e)),t))};
_.HQ=function(q,w,u){return q[w]?q[w][u]||null:null};
PMM=function(){if(tMl)return tMl();var q={};tMl=y_("PersistentEntityStoreDb",{objectStores:(q.EntityStore={addedAtVersion:1},q.EntityAssociationStore={addedAtVersion:2},q),shared:!1,upgrade:function(w,u){u(1)&&cT(Rz(w,"EntityStore",{keyPath:"key"}),"entityType","entityType");u(2)&&(w=Rz(w,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),cT(w,"byParentEntityKey","parentEntityKey"),cT(w,"byChildEntityKey","childEntityKey"))},
version:3});return tMl()};
XuM=function(q){return _.Lv(PMM(),q)};
WQ=function(q){return window.Int32Array?new Int32Array(q):Array(q)};
GhM=function(q){return _.Lv(Fmu(),q)};
neu=function(q){return new s1("WRONG_DATA_TYPE",{encoderVersion:q})};
H1o=function(q){return q instanceof Error?new s1("UNKNOWN_ENCODE_ERROR",{originalMessage:q.message}):new s1("UNKNOWN_ENCODE_ERROR")};
Wmu=function(q){return q instanceof Error?new s1("UNKNOWN_DECODE_ERROR",{originalMessage:q.message}):new s1("UNKNOWN_DECODE_ERROR")};
s8j=function(q,w){q=q instanceof s1?q:w(q);_.vm(q);throw q;};
NQz=function(q){q=(new TextEncoder).encode(q).subarray(0,16);var w=new Uint8Array(16);w.set(q);return w};
INu=function(q){var w=Q8c[q];if(w)return w;_.Y8(new _.fv("Entity model not found.",{entityType:q}))};
_.Nt=function(){i1z||(i1z=r34());return i1z};
r34=function(){var q,w,u;return _.F(function(y){if(y.nextAddress==1)return _.tD(y,2),_.H(y,_.uY(),4);if(y.nextAddress!=2){q=y.yieldResult;if(!q||!_.VV()||typeof _.uc.BroadcastChannel==="undefined")return y.return();w=new UAl;return y.return(new QU(q,w))}u=_.nm(y);u instanceof Error&&_.vm(u);return y.return()})};
_.IO=function(q,w){var u;return _.F(function(y){if(y.nextAddress==1){u=q.mutations;if(!u||u.length<=0)return y.return();w&&w.dispatch(_.tr({type:"ENTITY_LOADED",payload:u}));return _.H(y,TQf(u),2)}u.length=0;_.HI(y)})};
TQf=function(q){var w;return _.F(function(u){return u.nextAddress==1?_.H(u,_.Nt(),2):(w=u.yieldResult)?_.H(u,_.iA(w,"readwrite",function(y){for(var e={},t=_.P(q),X=t.next(),G={};!X.done;G={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},X=t.next())G.mutation$jscomp$4=X.value,G.mutation$jscomp$4.entityKey&&CMc(G.mutation$jscomp$4)&&(G.mutationEntityType$jscomp$3=(0,_.db.getAnyKey)(G.mutation$jscomp$4.payload),X=void 0,G.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(X=function(n){return function(){return _.dAl(y,
n.mutation$jscomp$4.payload[n.mutationEntityType$jscomp$3],n.mutationEntityType$jscomp$3)}}(G)),G.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(X=function(n){return function(){return O1z(y,n.mutation$jscomp$4.entityKey)}}(G)),G.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(X=function(n){return function(){return oe7(y,n.mutation$jscomp$4.entityKey,n.mutation$jscomp$4.payload[n.mutationEntityType$jscomp$3],n.mutationEntityType$jscomp$3)}}(G)),X&&(e[G.mutation$jscomp$4.entityKey]=
e[G.mutation$jscomp$4.entityKey]?e[G.mutation$jscomp$4.entityKey].then(X):X()));
return R2.all(Object.values(e))}),0):u.return()})};
CMc=function(q){var w;q=(w=q.options)==null?void 0:w.persistenceOption;return q==="ENTITY_PERSISTENCE_OPTION_PERSIST"||q==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
mAu=function(q,w){var u,y;_.F(function(e){if(e.nextAddress==1)return _.H(e,_.Nt(),2);if(e.nextAddress!=3)return(u=e.yieldResult)?_.H(e,_.iA(u,"readonly",function(t){var X={},G=Object.keys(w).map(function(n){var N=w[n]?[].concat(_.Cm(w[n])):[];return VMc(t,n,N,X)});
return R2.all(G).then(function(){return X})}),3):e.return();
y=e.yieldResult;Object.keys(y).length>0&&q.dispatch(fNJ(y));_.HI(e)})};
VMc=function(q,w,u,y){return rG(q,w,u).then(function(e){y[w]=A3M(u,e)})};
A3M=function(q,w){if(w.length!==q.length)throw Error("Bf");return w.reduce(function(u,y,e){u[q[e]]=y;return u},{})};
FFM=function(q){var w=q.filter(function(e){var t;return(e==null?void 0:(t=e.transferEntity)==null?void 0:t.transferState)==="TRANSFER_STATE_COMPLETE"}).length,u=q.filter(function(e){var t;
return(e==null?void 0:(t=e.transferEntity)==null?void 0:t.transferState)==="TRANSFER_STATE_FAILED"}).length,y=q.filter(function(e){var t;
return(e==null?void 0:(t=e.transferEntity)==null?void 0:t.transferState)&&PGc.includes(e.transferEntity.transferState)});
if(!(w||y!=null&&y.length))return 0;w=_.X8J(y)+w;q=q.length-u;return q===0?0:Math.round(w*100/q)/100};
_.X8J=function(q){var w=[];w=w.concat.apply(w,_.Cm(q.filter(function(t){return t.streamEntity}).map(function(t){var X=Object.assign({},t.streamEntity),G,n=(G=t.transferEntity)==null?void 0:G.transferState;
X.streamsProgress=X.streamsProgress||[];X.streamsProgress=X.streamsProgress.map(function(N){var Q=Object.assign({},N);Q.numBytesDownloaded=n==="TRANSFER_STATE_COMPLETE"?N.numTotalBytes:N.numBytesDownloaded;return Q});
return X}).map(function(t){return t.streamsProgress})));
var u=q=0;w=_.P(w);for(var y=w.next();!y.done;y=w.next()){var e=y.value;y=Number(e.numBytesDownloaded);e=Number(e.numTotalBytes);u+=isNaN(y)?0:y;q+=isNaN(e)?0:e}return q===0?0:Math.round(u*100/q)/100};
GwH=function(q){if(!q||!q.expirationTimestamp||!q.action)return!1;var w=(0,_.eW)()/1E3;return Number(q.expirationTimestamp)>=w};
U1=function(q){return q&&q.expirationTimestamp&&q.action?GwH(q)&&q.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.Ta=function(q){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(q||"TRANSFER_STATE_UNKNOWN")};
n9s=function(q){var w=new xdl;if(q!==void 0){var u=Math.ceil(Math.log2(q.length*4+2)/7);u=u===void 0?2:u;FX(w,10);w.submessagePosStack.push(w.pos);w.submessagePosStack.push(u);w.pos+=u;Ga(w,q.length*1.2);u=jyy(q,w.buf.subarray(w.pos));w.pos+u>w.buf.length&&(Ga(w,u),u=jyy(q,w.buf.subarray(w.pos)));w.pos+=u;q=w.submessagePosStack.pop();u=w.submessagePosStack.pop();for(var y=w.pos-u-q;q--;){var e=q?128:0;w.view.setUint8(u++,y&127|e);y>>=7}}w=new Uint8Array(w.buf.buffer,w.buf.byteOffset,w.pos);return(new TextDecoder("utf-8")).decode(w)};
_.Ca=function(q){var w=0;q=_.P(q);for(var u=q.next(),y={};!u.done;y={transferState$jscomp$3:void 0},u=q.next()){var e=u.value,t=void 0;u=(t=e.streamEntity)!=null?t:{};t=void 0;y.transferState$jscomp$3=(t=e.transferEntity)==null?void 0:t.transferState;t=e=void 0;((e=u)==null?0:(t=e.streamsProgress)==null?0:t.length)&&u.streamsProgress.forEach(function(X){return function(G){G=Number(X.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?G.numTotalBytes:G.numBytesDownloaded);isFinite(G)&&(w+=G)}}(y))}return w};
HHy=function(q){return q.some(function(w){var u;if(!(w==null?0:(u=w.transferEntity)==null?0:u.transferState)){var y;return!(w==null?0:(y=w.policyEntity)==null?0:y.action)||w.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return PGc.includes(w.transferEntity.transferState)})};
WFu=function(q,w){if(!w)return!1;if(_.T("of_pb_en_po_ks"))return!0;var u;q=(u=_.HQ(q,"offlineVideoPolicy",_.na(w,"offlineVideoPolicy")))!=null?u:void 0;return!!q&&U1(q)};
_.Noo=function(q){var w=["TRANSFER_STATE_COMPLETE"];w=w===void 0?sZc:w;return q.filter(function(u){var y,e;return w.includes((e=(y=u.transferEntity)==null?void 0:y.transferState)!=null?e:"TRANSFER_STATE_UNKNOWN")})};
QZl=function(q,w){if(w){var u,y=(u=_.HQ(q,"playbackData",_.na(w,"playbackData")))!=null?u:null,e;u=(e=_.HQ(q,"transfer",_.na(w,"transfer")))!=null?e:null;var t;e=(t=_.HQ(q,"offlineVideoStreams",_.na(w,"offlineVideoStreams")))!=null?t:null;var X;q=(X=_.HQ(q,"offlineVideoPolicy",_.na(w,"offlineVideoPolicy")))!=null?X:null;if(y||u||e||q)return{playbackDataEntity:y,transferEntity:u,streamEntity:e,policyEntity:q}}};
_.dG=function(q){var w=q.playbackData;if(!w)return[];var u=[];w=_.P(Object.keys(w));for(var y=w.next();!y.done;y=w.next()){var e=y.value;if(!ItM(q,_.XX(e).entityId)&&(y=QZl(q,_.XX(e).entityId))){var t=void 0,X=void 0;e=(X=Number((t=_.HQ(q,"playbackData",e))==null?void 0:t.streamDownloadTimestampSeconds))!=null?X:(0,_.eW)();u.push({entity:y,streamDownloadTimestamp:e})}}return u.sort(function(G,n){var N=G.streamDownloadTimestamp,Q=n.streamDownloadTimestamp;return Q===N?G.entity.streamEntity&&!n.entity.streamEntity?
1:-1:Q-N}).map(function(G){return G.entity})};
iHz=function(q){return _.Noo(_.dG(q))};
_.rUc=function(q){return _.dG(q).filter(function(w){var u;if(((u=w.policyEntity)==null?0:u.action)&&w.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var y;if((y=w.transferEntity)==null?0:y.transferState){var e;return PGc.includes((e=w.transferEntity)==null?void 0:e.transferState)}return!0})};
ItM=function(q,w){var u;return((u=_.HQ(q,"downloadStatusEntity",_.na(w,"downloadStatusEntity")))==null?void 0:u.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
Usu=function(q){var w;if(q==null?0:(w=q.playbackDataEntity)==null?0:w.key)return _.XX(q.playbackDataEntity.key).entityId;var u;if(q==null?0:(u=q.transferEntity)==null?0:u.key)return _.XX(q.transferEntity.key).entityId;var y;if(q==null?0:(y=q.streamEntity)==null?0:y.key)return _.XX(q.streamEntity.key).entityId;var e;if(q==null?0:(e=q.policyEntity)==null?0:e.key)return _.XX(q.policyEntity.key).entityId};
CGy=function(q){var w=new Set,u;q=(u=q.mainDownloadsListEntity)==null?void 0:u[Toz];var y;if(!(q==null?0:(y=q.downloads)==null?0:y.length))return w;var e;q==null||(e=q.downloads)==null||e.forEach(function(t){(t==null?0:t.videoItem)&&w.add(t.videoItem)});
return w};
O1=function(q,w){if(w){var u=_.HQ(q,"mainVideoEntity",_.na(w,"mainVideoEntity")),y=_.HQ(q,"downloadStatusEntity",_.na(w,"downloadStatusEntity")),e=_.HQ(q,"ytMainChannelEntity",_.na(w,"ytMainChannelEntity")),t={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};q=QZl(q,w);y=(y==null?void 0:y.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.T("woffle_render_failed_download_state_ks")&&(y==null?void 0:y.downloadState)==="DOWNLOAD_STATE_FAILED";!q&&y&&(q=t);if(q&&u&&
e)return Object.assign({},{videoEntity:u,channelEntity:e},q)}};
OHs=function(q,w){return dsM(q,w)==="TRANSFER_STATE_COMPLETE"&&WFu(q,w)};
o9M=function(q,w){if(!w)return!1;var u;q=(u=_.HQ(q,"playbackData",_.na(w,"playbackData")))!=null?u:void 0;return!!q&&!!q.playerResponseJson};
dsM=function(q,w){if(!w)return"TRANSFER_STATE_UNKNOWN";var u=_.HQ(q,"transfer",_.na(w,"transfer"));if(u){var y;return(y=u.transferState)!=null?y:"TRANSFER_STATE_UNKNOWN"}u=_.HQ(q,"offlineOrchestrationActionWrapperEntity",_.na(w,"offlineOrchestrationActionWrapperEntity"));q=_.HQ(q,"mainVideoEntity",_.na(w,"mainVideoEntity"));return u||q?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
VhH=function(q,w){if(!w)return"TRANSFER_STATE_UNKNOWN";if(q=_.HQ(q,"transfer",_.na(w,"transfer"))){var u;return(u=q.transferState)!=null?u:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
ft4=function(q,w){return w&&(q=_.HQ(q,"videoPlaybackPositionEntity",_.na(w,"videoPlaybackPositionEntity")),q==null?0:q.lastPlaybackPositionSeconds)?Number(q.lastPlaybackPositionSeconds):0};
AUJ=function(q,w){return ms4(q).some(function(u){var y;return(u==null?void 0:(y=u.mainPlaylistEntity)==null?void 0:y.playlistId)===w})};
zSJ=function(q,w,u){var y=JUf(q,w);if(!y.length)return[];w=[];y=_.P(y);for(var e=y.next();!e.done;e=y.next()){e=e.value;var t=O1(q,e);u&&dsM(q,e)!=="TRANSFER_STATE_COMPLETE"||t&&w.push(t)}return w};
JUf=function(q,w){if(!w)return[];var u=_.na(w,"mainPlaylistEntity"),y;w=(y=q.mainPlaylistEntity)==null?void 0:y[u];y=[];if(w==null||!w.videos)return y;w=_.P(w.videos);for(u=w.next();!u.done;u=w.next()){u=u.value;var e=void 0,t=void 0,X=void 0,G=(e=q)==null?void 0:(t=e.mainPlaylistVideoEntity)==null?void 0:(X=t[u])==null?void 0:X.video;G&&(u=_.XX(G).entityId)&&y.push(u)}return y};
at7=function(q,w){if(w){var u=_.HQ(q,"mainPlaylistEntity",_.na(w,"mainPlaylistEntity")),y=_.HQ(q,"mainPlaylistDownloadStateEntity",_.na(w,"mainPlaylistDownloadStateEntity"));q=_.HQ(q,"ytMainChannelEntity",_.na(w,"ytMainChannelEntity"));if(y&&u)return Object.assign({},{mainPlaylistEntity:u,mainPlaylistDownloadStateEntity:y},!!q&&{channelEntity:q})}};
ms4=function(q){return DsM(q).sort(function(w,u){return u.addedTimestampMillis-w.addedTimestampMillis}).map(function(w){return w.downloadedPlaylistEntities})};
DsM=function(q){var w=q.mainPlaylistDownloadStateEntity,u=[];if(!w)return u;for(var y=_.P(Object.keys(w)),e=y.next();!e.done;e=y.next()){var t=e.value;e=at7(q,_.XX(t).entityId);var X=void 0;t=Number((X=w[t])==null?void 0:X.addedTimestampMillis);X=isNaN(t)?(0,_.eW)():t;e!==void 0&&u.push({downloadedPlaylistEntities:e,addedTimestampMillis:X})}return u};
ZHy=function(q){var w,u=(w=q.mainPlaylistVideoEntity)!=null?w:{};return new Set(ms4(q).reduce(function(y,e){y=y===void 0?[]:y;var t,X;e==null||(t=e.mainPlaylistEntity)==null||(X=t.videos)==null||X.forEach(function(G){var n;(G=(n=u[G])==null?void 0:n.video)&&y.push(G)});
return y},[]))};
p8s=function(q){return"downloadedMusicPlaylistEntities"in q};
$so=function(q){return"mainPlaylistEntity"in q&&"mainPlaylistDownloadStateEntity"in q};
v9J=function(q){return"videoEntity"in q&&"channelEntity"in q};
bHz=function(q){var w=q.musicPlaylistDownloadMetadataEntity,u=[];if(!w)return u;for(var y=_.P(Object.keys(w)),e=y.next();!e.done;e=y.next()){e=e.value;a:{var t=q,X=_.XX(e).entityId;if(X){var G=_.HQ(t,"musicPlaylist",_.na(X,"musicPlaylist"));t=_.HQ(t,"musicPlaylistDownloadMetadataEntity",_.na(X,"musicPlaylistDownloadMetadataEntity"));if(G&&t){G={musicPlaylistEntity:G,musicPlaylistDownloadStateEntity:t};break a}}G=void 0}t=void 0;e=Number((t=w[e])==null?void 0:t.addedTimestampMillis);e=isNaN(e)?(0,_.eW)():
e;G!==void 0&&u.push({downloadedMusicPlaylistEntities:G,addedTimestampMillis:e})}return u};
Yls=function(q){var w=new Set;q=_.P(q);for(var u=q.next();!u.done;u=q.next())if(u=u.value,"musicPlaylistEntity"in u&&"musicPlaylistDownloadStateEntity"in u){u=_.P(u.musicPlaylistEntity.tracks);for(var y=u.next();!y.done;y=u.next())w.add(y.value)}return w};
g9z=function(q,w){if(w){var u=_.HQ(q,"musicTrack",_.na(w,"musicTrack")),y=_.HQ(q,"musicArtist",_.na(w,"musicArtist"))||{};if((q=QZl(q,w))&&u&&y)return Object.assign({},{musicTrackEntity:u,musicArtistEntity:y},q)}};
E9y=function(q){var w=q.musicTrackDownloadMetadataEntity,u=[];if(!w)return[];w=_.P(Object.keys(w));for(var y=w.next();!y.done;y=w.next()){var e=y.value;y=g9z(q,_.XX(e).entityId);var t=void 0;e=Number((t=_.HQ(q,"musicTrackDownloadMetadataEntity",e))==null?void 0:t.addedTimestampMillis);t=isNaN(e)?(0,_.eW)():e;y!==void 0&&u.push({downloadedMusicEntities:y,addedTimestampMillis:t})}return u};
Slf=function(q,w){if(!w)return[];if(Object.values(RSo).includes(w))return cUy(q,w);w=_.na(w,"musicPlaylist");var u;q=(u=q.musicPlaylist)==null?void 0:u[w];u=[];if(q==null||!q.tracks)return u;q=_.P(q.tracks);for(w=q.next();!w.done;w=q.next())(w=_.XX(w.value).entityId)&&u.push(w);return u};
cUy=function(q,w){var u=new Set,y=bHz(q).map(function(t){return t.downloadedMusicPlaylistEntities});
y=Yls(y);y=_.P(y);for(var e=y.next();!e.done;e=y.next())(e=_.XX(e.value).entityId)&&u.add(e);return hS6(q).downloadedMusicEntities.filter(function(t){var X;if((X=t.musicTrackEntity)!=null&&X.videoId){t=t.musicTrackEntity;if(X=w==="PPOM"?!0:!u.has(t.videoId))b:switch(t=t.musicVideoType,w){case "PPSE":X=t==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:X=t!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}t=X}else t=!1;return t}).map(function(t){var X;
return(X=t.musicTrackEntity)==null?void 0:X.videoId})};
hS6=function(q){var w=E9y(q).sort(function(u,y){return y.addedTimestampMillis-u.addedTimestampMillis}).map(function(u){return"downloadedMusicEntities"in u?u.downloadedMusicEntities:p8s(u)?u.downloadedMusicPlaylistEntities:{}});
q=bHz(q).sort(function(u,y){return y.addedTimestampMillis-u.addedTimestampMillis}).map(function(u){return"downloadedMusicEntities"in u?u.downloadedMusicEntities:p8s(u)?u.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:w,downloadedMusicPlaylistEntities:q}};
lty=function(q,w){w=_.Et("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?Slf(q,w):JUf(q,w);if(!w.length)return"TRANSFER_STATE_UNKNOWN";w=w.map(function(u){return VhH(q,u)});
return jZM(w)};
jZM=function(q){var w=new Set(q);if(w.has("TRANSFER_STATE_FAILED")&&w.size===1)return"TRANSFER_STATE_FAILED";w.delete("TRANSFER_STATE_FAILED");if(w.has("TRANSFER_STATE_UNKNOWN")&&w.size===1)return"TRANSFER_STATE_PRE_TRANSFER";w.delete("TRANSFER_STATE_UNKNOWN");if(w.has("TRANSFER_STATE_PRE_TRANSFER")&&w.size===1||w.size===0)return"TRANSFER_STATE_PRE_TRANSFER";q=w.has("TRANSFER_STATE_TRANSFERRING");w=w.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return q||w?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
oO=function(q){var w=q.mainVideoDownloadStateEntity,u=[];if(!w)return[];w=_.P(Object.keys(w));for(var y=w.next();!y.done;y=w.next()){var e=y.value;if(!ItM(q,_.XX(e).entityId)){y=O1(q,_.XX(e).entityId);var t=void 0,X=void 0;e=(X=Number((t=_.HQ(q,"mainVideoDownloadStateEntity",e))==null?void 0:t.addedTimestampMillis))!=null?X:(0,_.eW)();y!==void 0&&u.push({downloadedVideoEntities:y,addedTimestampMillis:e})}}return u};
LFM=function(q){return oO(q).sort(function(w,u){return u.addedTimestampMillis-w.addedTimestampMillis}).map(function(w){return w.downloadedVideoEntities})};
_.KFj=function(q){var w=ZHy(q),u=_.VU(q),y=CGy(q),e=oO(q).filter(function(X){var G,n;if((X==null?void 0:(G=X.downloadedVideoEntities)==null?void 0:(n=G.transferEntity)==null?void 0:n.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var N,Q;X=X==null?void 0:(N=X.downloadedVideoEntities)==null?void 0:(Q=N.videoEntity)==null?void 0:Q.key;return _.T("kevlar_use_library_entity")?X&&(y.has(X)||u[X]):X&&!w.has(X)}),t=DsM(q).filter(function(X){return lty(q,X.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.Cm(e),_.Cm(t)).sort(function(X,G){return G.addedTimestampMillis-X.addedTimestampMillis}).map(function(X){return Mho(X)})};
Bo7=function(q,w){if(w&&WFu(q,w)){var u,y,e=(y=(u=_.HQ(q,"playbackData",_.na(w,"playbackData")))!=null?u:void 0)==null?void 0:y.playerResponseJson;if(e){try{var t=JSON.parse(e);var X=_.HQ(q,"transfer",_.na(w,"transfer")),G=ft4(q,w);G&&(t=Object.assign({},t,{playerConfig:Object.assign({},t.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+G*1E3}}})}));t.cotn=X==null?void 0:X.cotn}catch(n){}return t}}};
_.wiJ=function(q){var w,u,y;q=(y=(u=((w=q.downloadsPageViewConfigurationEntity)!=null?w:{})[xsl])==null?void 0:u.smartDownloadsOptInBannerVisibility)!=null?y:{};var e;return(e=_.C(q,quM))!=null?e:{}};
_.VU=function(q){var w,u,y;q=(y=(u=((w=q.mainDownloadsListEntity)!=null?w:{})[_.uhl])==null?void 0:u.downloads)!=null?y:[];w={};u=_.P(q);for(y=u.next();!y.done;y=u.next())q=void 0,w[(q=y.value.videoItem)!=null?q:""]=!0;return w};
yO4=function(q){var w=_.VU(q);if(Object.keys(w).length===0)return!1;var u=q.mainVideoEntity;if(!u)return!0;u=_.P(Object.keys(u));for(var y=u.next();!y.done;y=u.next()){y=y.value;var e=_.XX(y).entityId;if(w[y]&&!ItM(q,e))return!1}return!0};
_.fa=function(q){var w=_.VU(q);return oO(q).sort(function(u,y){return u.addedTimestampMillis-y.addedTimestampMillis}).map(function(u){return u.downloadedVideoEntities}).filter(function(u){var y;
return(u=u==null?void 0:(y=u.videoEntity)==null?void 0:y.key)&&!!w[u]})};
Mho=function(q){return"downloadedVideoEntities"in q?q.downloadedVideoEntities:"downloadedPlaylistEntities"in q?q.downloadedPlaylistEntities:{}};
eI7=function(q){var w=_.VU(q),u=ZHy(q),y=oO(q).filter(function(e){var t,X;return(e=e==null?void 0:(t=e.downloadedVideoEntities)==null?void 0:(X=t.videoEntity)==null?void 0:X.key)&&!w[e]&&!u.has(e)});
q=DsM(q);return[].concat(_.Cm(y),_.Cm(q)).sort(function(e,t){return t.addedTimestampMillis-e.addedTimestampMillis}).map(function(e){return Mho(e)})};
_.mO=function(q){if(!_.T("kevlar_use_library_entity"))return eI7(q);var w=oO(q).filter(function(y){var e,t;if(e=y=y==null?void 0:(e=y.downloadedVideoEntities)==null?void 0:(t=e.videoEntity)==null?void 0:t.key){var X,G,n;e=((G=(X=q.mainDownloadsListEntity)==null?void 0:X[Toz])==null?0:(n=G.downloads)==null?0:n.length)?CGy(q).has(y):!1}return e}),u=DsM(q);
return[].concat(_.Cm(w),_.Cm(u)).sort(function(y,e){return e.addedTimestampMillis-y.addedTimestampMillis}).map(function(y){return Mho(y)})};
koj=function(q){var w=_.VU(q),u=ZHy(q);return LFM(q).filter(function(y){var e;return(y=y==null?void 0:(e=y.videoEntity)==null?void 0:e.key)&&!w[y]&&!u.has(y)})};
tLc=function(q){if(!_.T("kevlar_use_library_entity"))return koj(q);var w=_.VU(q),u=CGy(q);return LFM(q).filter(function(y){var e;return(y=y==null?void 0:(e=y.videoEntity)==null?void 0:e.key)&&!w[y]&&u.has(y)})};
Pko=function(q,w){w=_.na(w,"settingEntity");var u,y,e;return!!((e=(y=((u=q.settingEntity)!=null?u:{})[w])==null?void 0:y.settingOptionValue)!=null?e:{}).boolValue};
_.Jr=function(q){var w=_.fa(q);if(HHy(w))return 0;var u=[];w=_.P(w);for(var y=w.next();!y.done;y=w.next()){y=y.value;var e=void 0,t=void 0;if((e=y)==null?0:(t=e.videoEntity)==null?0:t.key)e=_.XX(y.videoEntity.key).entityId,y=q,e=_.na(e,"mainVideoDownloadStateEntity"),y=_.HQ(y,"mainVideoDownloadStateEntity",e),(y=Number(y==null?void 0:y.addedTimestampMillis))&&u.push(y)}return Math.max.apply(Math,_.Cm(u))};
_.za=function(q){return q.ui.richGridMiniMode};
_.aO=function(q){return q.ui.richGridItemsPerRow};
_.Xiz=function(q){return q.ui.richGridSlimItemsPerRow};
_.FZ6=function(q){return q.ui.guideIsExpanded};
_.DV=function(q){return q.ui.miniplayerIsActive};
_.Gof=function(q){return q.ui.singleOptionSurveyIsActive};
_.ZV=function(q){return q.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.nPH=function(q){return q.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.HG7=function(q){return q.ui.inlinePreviewIsActive};
_.WZf=function(q){return q.ui.inlinePreviewIsEnabled};
_.sBc=function(q){return q.ui.miniplayerPlaybackState};
Nfz=function(q){return q.ui.isOnline};
_.QBj=function(q){return q.ui.frostedGlassMode};
_.pa=function(q,w){return dsM(q.entities,w)};
_.$N=function(q,w){return lty(q.entities,w)};
IEf=function(q,w){var u;if(w){var y;q=(y=_.HQ(q.entities,"offlineVideoPolicy",_.na(w,"offlineVideoPolicy")))==null?void 0:y.action}else q=void 0;return(u=q)!=null?u:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
iGM=function(q,w){var u;w?(q=_.HQ(q.entities,"offlineVideoPolicy",_.na(w,"offlineVideoPolicy")),q=Number(q==null?void 0:q.expirationTimestamp)):q=void 0;return(u=q)!=null?u:0};
_.rOl=function(q){return _.dG(q.entities).length};
UYl=function(q,w){return O1(q.entities,w)};
Tfo=function(q,w){return at7(q.entities,w)};
vQ=function(q,w){return(q=O1(q.entities,w))?_.X8J([q]):0};
_.Ckc=function(q,w){var u=_.Et("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(u){var y=q.entities;var e=Slf(y,w);if(e.length){var t=[];e=_.P(e);for(var X=e.next();!X.done;X=e.next())(X=g9z(y,X.value))&&t.push(X);y=t}else y=[]}else y=zSJ(q.entities,w);var G;if(u){var n=q.entities;w?(w=_.na(w,"musicPlaylist"),n=(G=n.musicPlaylist)==null?void 0:G[w],G=n!=null&&n.tracks?n.tracks.length:0):G=0}else G=q.entities,w?(w=_.na(w,"mainPlaylistEntity"),G=(n=G.mainPlaylistEntity)==null?void 0:n[w],G=G!=null&&G.videos?
G.videos.length:0):G=0;return y.length!==G?0:y?FFM(y):0};
_.dYf=function(q){return q.download.isLeaderTab};
_.OGc=function(q,w,u){if(!w&&u){var y=q.entities;if(u){var e=n9s(u),t,X;w=(X=(t=_.HQ(y,"offlineabilityEntity",_.na(e,"offlineabilityEntity")))==null?void 0:t.addToOfflineButtonState)!=null?X:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else w="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else t=q.entities,w?(X=n9s(w),w=(e=(y=_.HQ(t,"offlineabilityEntity",_.na(X,"offlineabilityEntity")))==null?void 0:y.addToOfflineButtonState)!=null?e:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):w="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return w};
oPM=function(q,w){q=q.entities;if(w){w=n9s(w);var u,y;w=(y=(u=_.HQ(q,"offlineabilityEntity",_.na(w,"offlineabilityEntity")))==null?void 0:u.addToOfflineButtonState)!=null?y:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else w="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return w};
_.VLf=function(q){var w=q.entities;q=Nfz(q);var u=Pko(w,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.T("kevlar_modern_downloads_page")&&u)var y=!1;else{var e,t;w=(t=(e=((y=w.downloadsPageViewConfigurationEntity)!=null?y:{})[xsl])==null?void 0:e.smartDownloadsOptInBannerVisibility)!=null?t:{};y=q?!!w.visibleWithConnection:!!w.visibleWithoutConnection}return y};
_.fEu=function(q){return Pko(q.entities,"SMART_DOWNLOADS_ENABLED")};
_.mYs=function(q){return yO4(q.entities)};
AOf=function(q){return _.fa(q.entities).every(function(w){var u;return(w==null?void 0:(u=w.transferEntity)==null?void 0:u.transferState)&&!PGc.includes(w.transferEntity.transferState)})};
_.JOs=function(q,w){return ItM(q.entities,w)};
zIM=function(q,w){if(w){var u,y;q=(y=(u=_.HQ(q.entities,"downloadStatusEntity",_.na(w,"downloadStatusEntity")))==null?void 0:u.downloadState)!=null?y:"DOWNLOAD_STATE_UNKNOWN"}else q="DOWNLOAD_STATE_UNKNOWN";return q};
bA=function(q,w){return ft4(q.entities,w)};
pi4=function(q){q=_.aEs(q);var w=q.hours===void 0?0:q.hours,u=q.minutes===void 0?0:q.minutes,y=q.seconds===void 0?0:q.seconds,e=w>0;q=[];e&&(w=_.DYj(w),q.push(w));w=e;w=w===void 0?!1:w;u=(["af","be","lt"].includes(_.YN)||w)&&u<10?ZG4().format(u):(new Intl.NumberFormat("en-u-nu-latn")).format(u);q.push(u);u=ZG4().format(y);q.push(u);u=":";"da fi id si sr sr-Latn".split(" ").includes(_.YN)&&(u=".");return q.join(u)};
_.aEs=function(q){var w=q.hours||0,u=q.minutes||0,y=q.seconds||0;w=y+u*60+w*3600+(q.days||0)*86400+(q.weeks||0)*604800+(q.months||0)*2629800+(q.years||0)*31557600;if(w<=0)return{hours:0,minutes:0,seconds:0};q=w;w=Math.floor(q/3600);q%=3600;u=Math.floor(q/60);y=Math.floor(q%60);return{hours:w,minutes:u,seconds:y}};
_.DYj=function(q){q=(new Intl.NumberFormat("en-u-nu-latn")).format(q);var w=["fr"],u="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(_.YN)?q.replace(",","\u00a0"):w.includes(_.YN)?q.replace(",","\u202f"):u.includes(_.YN)?q.replace(",","."):q};
ZG4=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
$YM=function(q){try{return(new _.gG(5)).format(q)}catch(w){}};
E1=function(q){return{thumbnailOverlayDownloadingRenderer:{state:q}}};
vPM=function(q){if(q=$YM(q))return{thumbnailOverlaySidePanelRenderer:{text:_.yU(q),icon:{iconType:"PLAYLISTS"}}}};
bGo=function(){var q=_.ID("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.yU(q),icon:{iconType:"PLAY_ALL"}}}};
Yul=function(q){q=_.RO(q,2);return _.YN!=="ru"&&_.YN!=="es_419"&&_.YN!=="es-419"&&_.YN!=="es"&&_.YN!=="es_US"&&_.YN!=="es-US"&&_.YN!=="fr"&&_.YN!=="pl"&&_.YN!=="it"&&_.YN!=="nl"&&_.YN!=="uk"&&_.YN!=="fr_CA"&&_.YN!=="fr-CA"||q===""?q:q[0].toLocaleUpperCase()+q.substring(1)};
EPo=function(q){return function(w){var u=q(),y=_.RO(w,u.dateFormat);w=_.RO(w,u.timeFormat);var e=gPc.DATETIMEFORMATS[u.joinerStyle];e=e.replace(/'(?!')/g,"");e=e.replace("{0}",w);e=e.replace("{1}",y);return u.capitalize(e)}};
RIf=function(q){return q?typeof q.seconds==="string"&&(q.nanos===void 0||typeof q.nanos==="number"):!1};
cOs=function(q){return new Date(Number(q.seconds)*1E3+(q.nanos||0)*1E-6)};
_.RO=function(q,w){if(typeof q.getTime==="function")q={date:q};else if(RIf(q))q={date:cOs(q)};else if(typeof RIf(q.timestamp)&&typeof q.i18nInternalSecondsEastOfUtc==="number")q={date:cOs(q.timestamp),timeZone:cQ(-q.i18nInternalSecondsEastOfUtc/60)};else throw Error("Cf`"+JSON.stringify(q));var u=q;q=u.date;u=u.timeZone;w=Suc(w).format(q,u);_.YN==="zh-TW"&&(q=u?Number(Suc("H").format(q,u)):q.getHours(),w=q<5?w.replace("\u4e0a\u5348","\u51cc\u6668"):q<8?w.replace("\u4e0a\u5348","\u65e9\u4e0a"):q<12?
w.replace("\u4e0a\u5348","\u4e0a\u5348"):q<13?w.replace("\u4e0b\u5348","\u4e2d\u5348"):q<19?w.replace("\u4e0b\u5348","\u4e0b\u5348"):w.replace("\u4e0b\u5348","\u665a\u4e0a"));return w};
Suc=function(q){if(hIc.has(q))return hIc.get(q);var w=jBz(q);w=lEy(w);LZy!==!0&&(LZy=!0);MLy=!0;MLy=!1;w=new SN(w,gPc);hIc.set(q,w);return w};
jBz=function(q){return(new SN(q,gPc)).patternParts_.map(function(w){return w.type===0?"'"+w.text+"'":w.text}).join("")};
lEy=function(q){return _.YN==="en"||_.YN==="es_US"||_.YN==="es-US"?q:q.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(w,u,y){return"H".repeat(u.length)+y})};
e5o=function(q,w){KZs||(_.hr=_.BfJ,KZs=new xYy);var u=KZs;a:if(q=qeM(q),w=qeM(w||new Date),q>w)u=q.getTime()-w.getTime()>6048E5?_.RO(q,1):whH(q);else{for(var y=0;uff(q,12*(y+1))<w;)++y;if(y>0)u=u.format(-y,0);else{for(y=0;uff(q,y+1)<w;)++y;if(y>0)u=u.format(-y,2);else{q=w.getTime()-q.getTime();w=_.P(ybs);for(y=w.next();!y.done;y=w.next()){y=y.value;var e=y.unit,t=Math.floor(q/y.unitDuration);if(t>=(y.threshold===void 0?1:y.threshold)){u=u.format(-t,e);break a}}u=u.format(-0,7)}}}return u};
qeM=function(q){if(typeof q.getTime==="function")return q;if(RIf(q))return cOs(q);throw Error("Df`"+JSON.stringify(q));};
uff=function(q,w){for(var u=0,y;;++u)if(y=new Date(q.getFullYear(),q.getMonth()+w,q.getDate()-u,q.getHours(),q.getMinutes(),q.getSeconds()),y.getMonth()===(q.getMonth()+w)%12)return y};
_.jN=function(q){return{runs:[{text:q}]}};
_.lA=function(q){if(q&&q.simpleText)return q.simpleText;var w="";if(q&&q.runs)for(var u=0;u<q.runs.length;u++)q.runs[u].text&&(w+=q.runs[u].text);return w};
t$y=function(q,w,u,y){return q.videoEntity&&!q.policyEntity&&u!=="DOWNLOAD_STATE_FAILED"?[E1("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:U1(q.policyEntity)&&w!=="TRANSFER_STATE_FAILED"&&w!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?w==="TRANSFER_STATE_PAUSED_BY_USER"?[E1("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.Ta(w)?[E1("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:q.videoEntity.lengthSeconds?k54(q.videoEntity.lengthSeconds,y):[]:
[E1("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
k54=function(q,w){var u=[{thumbnailOverlayTimeStatusRenderer:{text:_.yU(pi4({seconds:q})),style:"DEFAULT"}}];w&&(q=w<=0||q<=0?0:w>=q?100:Math.ceil(w*100/q),q>0&&u.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:q}}));return u};
Psf=function(q,w,u,y,e){if(w==="TRANSFER_STATE_UNKNOWN"||!q)return{};if(_.Ta(w)||w==="TRANSFER_STATE_PRE_TRANSFER")var t=[E1("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var X,G;if(w==="TRANSFER_STATE_COMPLETE"&&((X=q.mainPlaylistEntity)==null?0:(G=X.videos)==null?0:G.length)){if(_.T("web_modern_collections_v2")){var n;var N=(t=q.mainPlaylistEntity)==null?void 0:(n=t.videos)==null?void 0:n.length;t=(t=$YM(N))?{thumbnailOverlayBottomPanelRenderer:{text:_.yU(t),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var Q;t=vPM((N=q.mainPlaylistEntity)==null?void 0:(Q=N.videos)==null?void 0:Q.length)}var I;t=[bGo(),Object.assign({},(I=t)!=null?I:{})]}else t=[]}I=t;a:if(w==="TRANSFER_STATE_PRE_TRANSFER")u=eN(_.ID("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(w==="TRANSFER_STATE_TRANSFER_IN_QUEUE")u=eN(_.ID("WAITING_TO_DOWNLOAD"));else if(_.Ta(w))u=Math.floor(u*100).toString(),u=eN(_.ID("DOWNLOADING_PERCENT",{percent:u},"Downloading... "+u+"%"));else{if(y&&(_.T("playlist_is_offline_selector_killswitch")&&
(e=_.tG().resolve(_.MQ).isNetworkAvailable()),e)){u=g2M(_.ID("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),b9J(y));break a}u=void 0}w=w==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.ID("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},I.length?{thumbnailOverlays:I}:{},u?{viewPlaylistText:u}:{viewPlaylistText:_.jN("")},w.length?{badges:w}:{})};
Xhu=function(q,w,u,y,e,t){if(w==="TRANSFER_STATE_UNKNOWN"||!q)return{};if(y==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var X=t$y(q,w,y);if(q.videoEntity&&!q.policyEntity&&y!=="DOWNLOAD_STATE_FAILED"){var G=_.ID("WAITING_TO_DOWNLOAD");if(G)return{shortViewCountText:_.jN(G),publishedTimeText:void 0,thumbnailOverlays:X}}if(!U1(q.policyEntity)){t=q.policyEntity&&!GwH(q.policyEntity)?_.ID("DOWNLOAD_EXPIRED",{},"Download expired"):
_.ID("TRANSFER_FAILED",{},"Download failed");var n;if((n=q.policyEntity)==null?0:n.shortMessageForDisabledAction)t=q.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:eN(t),publishedTimeText:void 0,thumbnailOverlays:X}}if(w==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.jN(_.ID("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:X};if(w==="TRANSFER_STATE_FAILED"||w==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.jN(_.ID("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:X};if(w==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(n=_.ID("WAITING_TO_DOWNLOAD"),y==="DOWNLOAD_STATE_PAUSED"&&(n=_.ID("DOWNLOAD_PAUSED",{},"Download paused")),n))return{shortViewCountText:_.jN(n),publishedTimeText:void 0,thumbnailOverlays:X};if(_.Ta(w))return q=Math.floor(u*100).toString(),{shortViewCountText:_.jN(_.ID("DOWNLOADING_PERCENT",{percent:q},"Downloading... "+q+"%")),publishedTimeText:void 0,thumbnailOverlays:X};w=void 0;q.videoEntity.publishedTimestampMillis&&
(w=new Date,e&&(w=new Date(e)),w=eN(e5o(new Date(Number(q.videoEntity.publishedTimestampMillis)),w)));e=[];_.T("kevlar_woffle_badge_killswitch")||(e=[{metadataBadgeRenderer:{label:_.ID("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var N;q=eN((N=q.videoEntity.localizedStrings)==null?void 0:N.viewCount);return Object.assign({},t?{shortViewCountText:void 0}:{shortViewCountText:q},t?{}:{publishedTimeText:w},{badges:e,thumbnailOverlays:X})};
G5l=function(q,w){q=q===void 0?FE4:q;switch(w.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:w.payload.playlistId,inviteLinkURL:w.payload.inviteLinkUrl};default:return q}};
HF4=function(q,w){q=q===void 0?nu6:q;switch(w.type){case "SET_CURRENT_FORM_ID":return w=w.payload.formId,q.currentFormId===w?q:{currentFormId:w,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var u=w.payload;w=u.groupId;u=u.command;if(q.currentFormId){var y=Object.assign({},q.commandsMap);y[w]=u;q=Object.assign({},q,{commandsMap:y})}return q;case "RESET_COMMAND_MAP":return Object.assign({},q,{commandsMap:{}});default:return q}};
s47=function(q,w){q=q===void 0?WEM:q;switch(w.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},q,{guideIsExpanded:w.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},q,{scrollAtTop:w.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},q,{guideIsVisibleButNotPersistent:w.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},q,{miniplayerIsActive:w.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},q,{singleOptionSurveyIsActive:w.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},q,{slimlineSurveyRatingSelectedIndex:w.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},q,{richGridMiniMode:w.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},q,{richGridItemsPerRow:w.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},q,{richGridSlimItemsPerRow:w.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},q,{richGridContainerWidth:w.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},q,{richGridStyle:w.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},q,{currentPageType:w.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},q,{inlinePreviewIsActive:w.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},q,{inlinePreviewIsEnabled:w.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},q,{darkModeIsEnabled:w.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
q,{miniplayerPlaybackState:w.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},q,{tabGesturesIsActive:w.payload});case "SET_ONLINE_STATUS":return Object.assign({},q,{isOnline:w.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},q,{chipBarIsSticky:w.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},q,{frostedGlassMode:w.payload});default:return q}};
Q4j=function(q,w){q=q===void 0?N6s:q;switch(w.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},q,{transcription:w.payload});case "SET_OVERLAY_STATE":return Object.assign({},q,{overlay:w.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return q}};
V$M=function(){return Qv(Object.assign({},{continuation:IUs,entities:y3j,download:iFH,reportChannelAbuse:rbM,share:Ukj,talkToRecs:T66,ui:s47,voiceSearch:Q4j,watch:Cso,ypc:dk7,shorts:OFo,radioButtonGroup:HF4,collabInviteLink:G5l},ouJ))};
Abu=function(){return _.T("web_player_entities_middleware")?new La(V$M(),[fUy,mkl]):new La(V$M(),[fUy])};
_.Mt=function(){Jbc||(Jbc=Abu());return Jbc};
z5J=function(q,w,u){if(q.length)return{titleText:_.yU(w!=null?w:_.ID("DOWNLOADS",void 0,"Downloads")),contents:q.map(function(y){var e=y.videoEntity;y={videoId:e.videoId,title:eN(e.title),shortBylineText:eN(y.channelEntity.title),thumbnail:e.thumbnail};var t=e.videoId?bA(_.Mt().getState(),e.videoId):0;e.videoId&&u?y.navigationEndpoint=_.uA(e.videoId,u,void 0,void 0,t):e.videoId&&(y.navigationEndpoint=v2o(e.videoId,t,e.lengthSeconds));e.lengthSeconds&&(y.thumbnailOverlays=k54(e.lengthSeconds,t));return{playlistPanelVideoRenderer:y}}),
totalVideos:q.length}};
aUf=function(q){return(q=(0,_.db.getValueByKeys)(q,"playlistId"))?{playlistId:q}:null};
Dk4=function(){return{}};
ZF7=function(q,w){return new _.IA(function(u,y){q.then(function(e){if(e){if(e=w(e))return u(e);y()}},y)})};
ph7=function(q){var w,u,y,e=(w=q.contents)==null?void 0:(u=w.twoColumnWatchNextResults)==null?void 0:(y=u.autoplay)==null?void 0:y.autoplay,t,X,G;w=(t=q.contents)==null?void 0:(X=t.twoColumnWatchNextResults)==null?void 0:(G=X.playlist)==null?void 0:G.playlist;return e&&w&&w.playlistId?{rawResponse:q,autoplayRenderer:e,playlistPanelRenderer:w,playlistId:w.playlistId}:null};
vuf=function(q){var w=w===void 0?"UNKNOWN_INTERFACE":w;if(q.length===1)return q[0];var u=$ky[w];if(u){u=new RegExp(u);for(var y=_.P(q),e=y.next();!e.done;e=y.next())if(e=e.value,u.exec(e))return e}var t=[];Object.entries($ky).forEach(function(X){var G=_.P(X);X=G.next().value;G=G.next().value;w!==X&&t.push(G)});
u=new RegExp(t.join("|"));q.sort(function(X,G){return X.length-G.length});
y=_.P(q);for(e=y.next();!e.done;e=y.next())if(e=e.value,!u.exec(e))return e;return q[0]};
_.Ka=function(q){return"/youtubei/v1/"+vuf(q)};
_.BQ=function(q){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:q}}}}};
_.xN=function(q){return _.BQ(_.jN(q))};
bFM=function(q,w){var u={mode:"NORMAL"};q&&(u.autoplayVideo=q.navigationEndpoint,u.nextButtonVideo=q.navigationEndpoint);w&&(u.previousButtonVideo=w.navigationEndpoint);return u};
Eu7=function(q,w,u){if(!u||!u.sets)return{sets:[bFM(q,w)]};var y=u.sets.find(function(X){return X.mode==="NORMAL"}),e=(0,_.db.unsafeClone)(u);
if(!y)return e.sets.push(bFM(q,w)),e;if(!q)return u;y=_.db.getValueByKeys.apply(null,[y].concat(_.Cm(Yez)));var t=_.db.getValueByKeys.apply(null,[q].concat(_.Cm(guo)));if(y===t)return u;e.sets=e.sets.filter(function(X){return X.mode!=="NORMAL"});
e.sets.push(bFM(q,w));return e};
R5M=function(q){return!!q.playlistPanelVideoRenderer&&!q.playlistPanelVideoRenderer.unplayableText};
cb4=function(q){return!!q.playlistPanelVideoRenderer&&!!q.playlistPanelVideoRenderer.title};
Se6=function(q,w){if(w.contents&&!(q>=w.contents.length)&&(q=w.contents.slice(q).find(R5M)))return q.playlistPanelVideoRenderer};
h5M=function(q,w){if(w.contents)return(w=w.contents.find(function(u){return!!u.playlistPanelVideoRenderer&&u.playlistPanelVideoRenderer.videoId===q}))?w.playlistPanelVideoRenderer:void 0};
j44=function(q,w){return w.contents?w.contents.findIndex(function(u){return!!u.playlistPanelVideoRenderer&&u.playlistPanelVideoRenderer.videoId===q}):-1};
lUj=function(q,w){return w.contents?w.contents.findIndex(function(u){return!!u.playlistPanelVideoRenderer&&u.playlistPanelVideoRenderer.playlistSetVideoId===q}):-1};
LEj=function(q,w){q.contents&&w!==-1&&q.contents.splice(w,1).length===1&&q.totalVideos!==void 0&&(--q.totalVideos,delete q.videoCountText)};
_.M$4=function(q){var w=[];if(!q||!q.contents)return w;q=_.P(q.contents);for(var u=q.next();!u.done;u=q.next())u=u.value,u.playlistPanelVideoRenderer&&u.playlistPanelVideoRenderer.videoId&&w.push(u.playlistPanelVideoRenderer.videoId);return w};
_.KEl=function(q){if(q&&q.contents)return(q=q.contents.find(function(w){return!!w.playlistPanelVideoRenderer&&!!w.playlistPanelVideoRenderer.selected})||q.contents[q.currentIndex])?q.playlistPanelVideoRenderer:void 0};
B6l=function(q,w,u,y,e,t,X){e=e===void 0?!1:e;t=t===void 0?!1:t;X=X===void 0?!1:X;if(q.contents&&q.contents.length!==0){y&&(q.contents=q.contents.filter(y));y=q.contents.length;for(var G=0;G<y;G++){var n=q.contents[G].playlistPanelVideoRenderer;n&&(G===w?(t&&delete n.menu,n.indexText=_.jN("\u25b6")):e||q.isInfinite||n.indexText===void 0?delete n.indexText:n.indexText=_.jN((G+1+u).toString()))}q.currentIndex=w+u;X&&(delete q.videoCountText,q.totalVideos=y)}};
_.q_=function(q){q=xk7(q);if(q){var w=q.length;var u=-83%w;u<0&&(u=w+u);q=q.slice(w-u)+q.slice(0,w-u)}else q="";u="";for(w=0;w<q.length&&q[w]!==q7y;w++)u+=q[w];return u};
_.wd6=function(q,w){var u=document.body;w=w===void 0?function(G){return G}:w;
var y,e=null;q=_.P(q);for(y=q.next();!y.done;y=q.next()){var t=y.value;y=document.createElement("div");e||(e=y);var X=t[0];t=t[1];X&&(y.id=w(X));if(t)for(X=_.P(t),t=X.next();!t.done;t=X.next())y.classList.add(w(t.value));u.appendChild(y);u=y}return[e,u]};
uS7=function(q,w){for(var u="",y=0;y<w;y++)u+=q.charAt(Math.floor(Math.random()*q.length));return u};
wC=function(q){return uS7("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",q)};
up=function(q){return uS7("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",q)};
yI=function(q){return uS7("0123456789",q)};
eQ=function(){var q=performance.now(),w=new Date;var u="2."+w.getFullYear()+String(w.getMonth()+1).padStart(2,"0")+String(w.getDate()).padStart(2,"0");for(var y,e=Math.floor(Math.random()*11)+15,t=[],X=0;X<e;X++)t.push(Math.floor(Math.random()*26476865)+24547720);y=t.join(",");var G=wC(10),n=wC(100),N=wC(102),Q=wC(106),I=wC(108),U=wC(11),d=wC(1140),V=wC(123),J=wC(14),a=wC(16),b=wC(1900),g=wC(23),l=wC(26),S=wC(34),eH=wC(397),x=wC(44),P4=wC(5),C7=wC(72),mu=wC(74),Os=wC(75),YJ=wC(88),ao=wC(91),bc="rr4---sn-q4fl6nss rr3---sn-q4fl6nsk rr1---sn-q4fzen7s rr2---sn-q4fl6ndl rr1---sn-q4fl6nds rr5---sn-t0a7ln7d rr4---sn-q4fl6nd6 rr1---sn-5hne6nsd rr5---sn-q4flrn7k rr4---sn-q4fl6n6y rr1---sn-4g5e6nze rr2---sn-aigl6nzs rr1---sn-q4fl6n6d rr4---sn-ntq7yns7 rr2---sn-5hne6nz6 rr4---sn-q4flrnsk rr4---sn-4g5lznes rr5---sn-q4fl6n66 rr3---sn-q4fzene7 rr5---sn-ntq7yney".split(" ");
var Ro=bc[Math.floor(Math.random()*bc.length)];var K7=(new Date("2010-01-01")).getTime();var gx=(new Date(K7+Math.random()*((new Date).getTime()-K7))).toISOString().split("T")[0];for(var dx,tc=[],Fa=0;Fa<4;Fa++)tc.push(Math.floor(Math.random()*100));dx=tc.join(".");var eq=Number(yI(5)),Hk=Number(yI(6)),W3=Number(yI(7)),gV=Number(yI(9)),Fl=yI(1),C$=yI(10),ZZ=yI(16),EA=yI(19),mj=yI(2),hc=yI(20),jR=yI(21),QF=yI(3),lc=yI(4),TG=yI(5),G4=yI(6),OX=yI(7),ij=yI(8),nA=yI(9);var WT=uS7("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var RK=[up(5),up(5),up(5)].join("%2C"),Uq=[yI(3),yI(5),yI(5)].join("%2C"),TC=up(0),R6=up(1),mT=up(10),qz=up(108),M6=up(11),IR=up(12),W2=up(13),iO=up(14),EZ=up(15),xm=up(16),o2=up(17),Us=up(18),p7=up(19),Es=up(2),NT=up(20),k6=up(22),ma=up(23),nh=up(24),rx=up(266),I6=up(3),HV=up(30),dV=up(34),Pk=up(35),rB=up(36),RR=up(4),pA=up(40),LY=up(43),vX=up(47),oS=up(5),ba=up(6),B4=up(7),N6=up(75),OA=up(8),z_=up(80),EY=up(9),th="https://www."+up(12)+".com",c1={},i8={},pT={},g6H={},rT={},cp={},Sx={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:y}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:u},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+up(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:u},{key:"client.name",value:"WEB"},{key:"client.fexp",value:y}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:jR+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+up(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:pA,ypcGetOfflineUpsellEndpoint:{params:z_}},trackingParams:Pk+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+Uq+"&mn="+RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=video%2Fmp4&ns="+nh+"&cnr="+mj+"&ratebypass=yes&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&c=WEB&txp="+OX+"&n="+a+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:Hk,width:640,height:360,lastModified:ZZ,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:OX,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+Uq+"&mn="+
RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=video%2Fmp4&ns="+nh+"&cnr="+mj+"&ratebypass=yes&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&c=WEB&txp="+OX+"&n="+a+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+qz+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:Hk,width:1280,
height:720,lastModified:ZZ,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:OX,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&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="+Uq+"&mn="+RK+"&ms="+
RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=video%2Fmp4&ns="+nh+"&gir="+I6+"&clen="+nA+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:W3,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:nA,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:W3,approxDurationMs:OX},{itag:248,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&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="+Uq+"&mn="+RK+"&ms="+RK+"&mv="+
R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=video%2Fwebm&ns="+nh+"&gir="+I6+"&clen="+nA+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/webm; codecs="vp9"',bitrate:W3,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:nA,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:W3,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:OX},{itag:399,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&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="+
Uq+"&mn="+RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=video%2Fmp4&ns="+nh+"&gir="+I6+"&clen="+nA+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:W3,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:nA,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:W3,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:OX},{itag:136,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&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="+
Uq+"&mn="+RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=video%2Fmp4&ns="+nh+"&gir="+I6+"&clen="+nA+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:W3,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:nA,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Hk,approxDurationMs:OX},{itag:247,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&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="+Uq+"&mn="+
RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=video%2Fwebm&ns="+nh+"&gir="+I6+"&clen="+nA+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/webm; codecs="vp9"',bitrate:W3,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:nA,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Hk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:OX},{itag:398,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&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="+
Uq+"&mn="+RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=video%2Fmp4&ns="+nh+"&gir="+I6+"&clen="+nA+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:W3,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:nA,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Hk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:OX},{itag:135,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&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="+
Uq+"&mn="+RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=video%2Fmp4&ns="+nh+"&gir="+I6+"&clen="+ij+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Hk,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:ij,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Hk,approxDurationMs:OX},{itag:244,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&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="+Uq+"&mn="+
RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=video%2Fwebm&ns="+nh+"&gir="+I6+"&clen="+ij+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+qz+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/webm; codecs="vp9"',bitrate:Hk,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:ij,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Hk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:OX},{itag:397,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&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="+
Uq+"&mn="+RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=video%2Fmp4&ns="+nh+"&gir="+I6+"&clen="+ij+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:Hk,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:ij,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Hk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:OX},{itag:134,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&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="+
Uq+"&mn="+RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=video%2Fmp4&ns="+nh+"&gir="+I6+"&clen="+ij+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:Hk,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:ij,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Hk,highReplication:!0,approxDurationMs:OX},{itag:243,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&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="+
Uq+"&mn="+RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=video%2Fwebm&ns="+nh+"&gir="+I6+"&clen="+ij+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/webm; codecs="vp9"',bitrate:Hk,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:ij,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Hk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:OX},{itag:396,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&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="+
Uq+"&mn="+RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=video%2Fmp4&ns="+nh+"&gir="+I6+"&clen="+ij+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:Hk,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:ij,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Hk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:OX},{itag:133,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&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="+
Uq+"&mn="+RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=video%2Fmp4&ns="+nh+"&gir="+I6+"&clen="+ij+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:Hk,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:ij,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Hk,approxDurationMs:OX},{itag:242,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&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="+Uq+"&mn="+
RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=video%2Fwebm&ns="+nh+"&gir="+I6+"&clen="+ij+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/webm; codecs="vp9"',bitrate:Hk,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:ij,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Hk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:OX},{itag:395,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&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="+
Uq+"&mn="+RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=video%2Fmp4&ns="+nh+"&gir="+I6+"&clen="+ij+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Hk,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:ij,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Hk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:OX},{itag:160,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&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="+
Uq+"&mn="+RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=video%2Fmp4&ns="+nh+"&gir="+I6+"&clen="+ij+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:Hk,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:ij,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:eq,approxDurationMs:OX},{itag:278,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&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="+Uq+"&mn="+
RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=video%2Fwebm&ns="+nh+"&gir="+I6+"&clen="+ij+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/webm; codecs="vp9"',bitrate:Hk,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:ij,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:eq,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:OX},{itag:394,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&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="+
Uq+"&mn="+RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=video%2Fmp4&ns="+nh+"&gir="+I6+"&clen="+ij+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:eq,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:ij,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:eq,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:OX},{itag:140,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
Uq+"&mn="+RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=audio%2Fmp4&ns="+nh+"&gir="+I6+"&clen="+ij+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:Hk,
initRange:{start:"0",end:"631"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:ij,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Hk,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:OX,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+Uq+"&mn="+RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+
mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=audio%2Fwebm&ns="+nh+"&gir="+I6+"&clen="+OX+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'audio/webm; codecs="opus"',bitrate:eq,initRange:{start:"0",end:"265"},indexRange:{start:QF,
end:lc},lastModified:ZZ,contentLength:OX,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:eq,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:OX,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+Uq+"&mn="+RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=audio%2Fwebm&ns="+
nh+"&gir="+I6+"&clen="+OX+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'audio/webm; codecs="opus"',bitrate:eq,initRange:{start:"0",end:"265"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:OX,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:eq,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:OX,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Ro+".googlevideo.com/videoplayback?expire="+C$+"&ei="+g+"&ip="+dx+"&id=o-AF"+LY+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+Uq+"&mn="+RK+"&ms="+RK+"&mv="+R6+"&mvi="+Fl+"&pl="+mj+"&initcwndbps="+OX+"&siu="+Fl+"&spc="+x+"&vprv="+Fl+"&svpuc="+Fl+"&mime=audio%2Fwebm&ns="+nh+"&gir="+I6+"&clen="+ij+"&dur="+ij+"&lmt="+ZZ+"&mt="+C$+"&fvip=3&keepalive="+I6+"&c=WEB&txp="+
OX+"&n="+xm+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+I,mimeType:'audio/webm; codecs="opus"',bitrate:Hk,initRange:{start:"0",end:"265"},indexRange:{start:QF,end:lc},lastModified:ZZ,contentLength:ij,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Hk,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:OX,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="+nA+"&docid="+U+"&ei="+g+"&feature="+G+"&fexp="+TC+"&ns="+Es+"&plid="+a+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+R6+"&el="+mT+"&len="+lc+"&of="+k6+
"&uga="+mj+"&vm="+rx},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+nA+"&docid="+U+"&ei="+g+"&feature="+G+"&fexp="+TC+"&ns="+Es+"&plid="+a+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+R6+"&el="+mT+"&len="+lc+"&of="+k6+"&uga="+mj+"&vm="+rx},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+nA+"&docid="+U+"&ei="+g+"&feature="+G+"&fexp="+TC+"&ns="+Es+"&plid="+a+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
R6+"&el="+mT+"&len="+lc+"&of="+k6+"&uga="+mj+"&vm="+rx},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+g+"&m="+YJ+"&oid="+k6+"&plid="+a+"&pltype="+B4+"&ptchn="+k6+"&ptk="+J+"&video_id="+U},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+nA+"&docid="+U+"&ei="+g+"&event="+iO+"&feature="+G+"&fexp="+TC+"&ns="+Es+"&plid="+a+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+R6},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+U+"&ei="+g+"&feature="+
G+"&len="+lc+"&ns="+Es+"&plid="+a+"&ver="+Fl,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+U+"&caps="+I6+"&opi="+nA+"&xoaf="+Fl+"&hl="+Es+"&ip="+dx+"&ipbits="+Fl+"&expire="+C$+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+dx+"&key="+I6+"&lang="+P4,name:{simpleText:oS},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+U+"&caps="+I6+"&opi="+nA+"&xoaf="+Fl+"&hl="+Es+"&ip="+dx+"&ipbits="+Fl+"&expire="+C$+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+dx+"&key="+I6+"&kind="+I6+"&lang="+Es,name:{simpleText:p7},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:M6,title:NT,lengthSeconds:"1155",keywords:[RR,RR,xm,ba],
channelId:nh,isOwnerViewing:!1,shortDescription:RR,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+U+"/hqdefault.jpg?sqp=-oaymwE"+rB+"G&rs="+dV,width:168,height:94},{url:"https://i.ytimg.com/vi/"+U+"/hqdefault.jpg?sqp=-oaymwE"+rB+"G&rs="+dV,width:196,height:110},{url:"https://i.ytimg.com/vi/"+U+"/hqdefault.jpg?sqp=-oaymwE"+rB+"G&rs="+S,width:246,height:138},{url:"https://i.ytimg.com/vi/"+U+"/hqdefault.jpg?sqp=-oaymwE"+rB+"G&rs="+S,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
U+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:OX,author:W2,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:OX,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+k6+"/featured_channel.jpg?v="+OA,width:40,height:40}]},trackingParams:Pk+"=",navigationEndpoint:{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{url:"/channel/"+nh,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:nh}},channelName:W2,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Us}]},subscribed:!1,enabled:!0,type:"FREE",channelId:nh,showPreferences:!1,subscribedButtonText:{runs:[{text:Us}]},unsubscribedButtonText:{runs:[{text:IR}]},trackingParams:Pk+"=",unsubscribeButtonText:{runs:[{text:IR}]},serviceEndpoints:[{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[nh],params:OA}},{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:pA,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Pk+"=",dialogMessages:[{runs:[{text:OA},{text:EZ},{text:iO}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:EZ}]},serviceEndpoint:{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[nh],params:OA}},accessibility:{label:IR},trackingParams:Pk+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:oS}]},accessibility:{label:IR},trackingParams:Pk+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:B4}},unsubscribeAccessibility:{accessibilityData:{label:oS}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:ij},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[nh],params:OA}},unsubscribeCommand:{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[nh],params:OA}},addToWatchLaterCommand:{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:M6,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:M6}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+U+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+rB+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
U+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+M6,width:1280,height:720},title:{simpleText:o2},description:{simpleText:mT},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+EZ,externalChannelId:nh,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:OX,category:"Travel & Events",publishDate:gx,ownerChannelName:W2,uploadDate:gx}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:iO},trackingParams:Pk+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:pA,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:Pk+"="}}],headerText:{simpleText:M6},icon:{infoCardIconRenderer:{trackingParams:Pk+"="}},closeButton:{infoCardIconRenderer:{trackingParams:Pk+"="}},trackingParams:Pk+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:Pk+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+M6+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:WT,interpreterSafeUrl:(c1.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+HV+".js",c1),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:EZ},{text:OA,bold:!0}]},endpoint:{clickTrackingParams:pA,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:Pk+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:ba}]},actionButton:{buttonRenderer:{text:{runs:[{text:IR}]},navigationEndpoint:{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+U,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
U,target:"TARGET_NEW_WINDOW"}},trackingParams:Pk+"="}},trackingParams:Pk+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+C7+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+C7+"=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:OX,endMs:OX,title:{accessibility:{accessibilityData:{label:M6}},simpleText:RR},metadata:{simpleText:OA},callToAction:{simpleText:xm},dismiss:{simpleText:o2},endpoint:{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{url:"/channel/"+nh,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:nh}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:o2}]},subscribed:!1,enabled:!0,type:"FREE",channelId:nh,showPreferences:!1,
subscribedButtonText:{runs:[{text:M6}]},unsubscribedButtonText:{runs:[{text:mT}]},trackingParams:Pk+"=",unsubscribeButtonText:{runs:[{text:mT}]},serviceEndpoints:[{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[nh],params:OA}},{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:pA,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Pk+
"=",dialogMessages:[{runs:[{text:mT},{text:o2},{text:EZ}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:EY}]},serviceEndpoint:{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[nh],params:OA}},accessibility:{label:B4},trackingParams:Pk+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:OA}]},
accessibility:{label:NT},trackingParams:Pk+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:OA}},unsubscribeAccessibility:{accessibilityData:{label:NT}}}},trackingParams:Pk+"=",isSubscribe:!0,id:hc}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+U+"/hqdefault.jpg?sqp=-oaymwE"+rB+"G&rs="+S,width:168,height:94},{url:"https://i.ytimg.com/vi/"+U+"/hqdefault.jpg?sqp=-oaymwE"+rB+"G&rs="+dV,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+U+"/hqdefault.jpg?sqp=-oaymwE"+rB+"G&rs="+S,width:246,height:138},{url:"https://i.ytimg.com/vi/"+U+"/hqdefault.jpg?sqp=-oaymwE"+rB+"G&rs="+S,width:336,height:188},{url:"https://i.ytimg.com/vi/"+U+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:OX,endMs:OX,title:{accessibility:{accessibilityData:{label:M6}},simpleText:B4},metadata:{simpleText:IR},endpoint:{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
M6,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:M6,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Ro+".googlevideo.com/videoplayback?source=youtube&oeis="+Fl+"&c=WEB&oad="+lc+"&ovd="+lc+"&oaad="+TG+"&oavd="+TG+"&ocs="+QF+"&oewis="+Fl+"&oputc="+Fl+"&ofpcc="+Fl+"&siu="+Fl+"&msp="+Fl+"&odepv="+Fl+
"&id=o-AF"+LY+"&ip="+dx+"&initcwndbps="+OX+"&mt="+C$+"&oweuc="+TC}}}}},trackingParams:Pk+"=",id:hc,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:iO}},simpleText:p7},style:"DEFAULT"}}]}}],startMs:OX,trackingParams:Pk+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:Fl,offsetEndMilliseconds:TG},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nA+";dc_trk_cid="+nA+";dc_dbm_token="+I+";ord="+C$+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Fl+";dc_rui="+Fl+";dc_exteid="+hc+";dc_av="+QF+";dc_sk="+Fl+";dc_ctype="+mj+";dc_ref=http://www.youtube.com/video/"+M6+";dc_pubid="+Fl+";dc_btype=23?gclid="+ao+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
d+"____________"+V+"AxAA&sigh="+M6+"&cid="+l+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Fl+"&ns="+Fl+"&event="+Fl+"&device="+Fl+"&content_v="+U+"&el="+mT+"&ei="+g+"&devicever="+u+"&bti="+OX+"&format="+G4+"&break_type="+Fl+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Fl+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+dx+"&slot_pos="+Fl+"&slot_len="+Fl+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+Uq+"&ad_len="+TG+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
M6+"&aqi="+g+"&ad_rmp="+Fl+"&sli="+Fl}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+U+"&cid="+l+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+U+"&cid="+l+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+
";etm1="+Fl+";eid1="+mj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+U+"&cid="+l+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+G4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
d+"____________"+V+"AxAA&sigh="+U+"&cid="+l+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+mj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+U+"&cid="+l+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+U+"&cid="+l+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+mj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+U+"&cid="+l+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+OX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+U+"&cid="+l+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
d+"____________"+V+"AxAA&sigh="+U+"&cid="+l+"&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"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&ctype="+QF+"&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"+
d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_engaged_view&ctype="+QF+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+G4+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
nA+";dc_trk_cid="+nA+";dc_dbm_token="+I+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Fl+";ord="+nA+";dc_rui="+Fl+";dc_exteid="+EA+";dc_av="+Fl+";dc_sk="+Fl+";dc_ctype="+mj+";dc_pubid="+Fl+";dc_btype=3?gclid="+ao+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+U+"&cid="+l+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+mj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+N+"&sig="+ma+"&ad_cpn=[AD_CPN]&id="+ba+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ba+"&dc_pubid="+Fl+"&dc_exteid="+hc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+U+"&cid="+l+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+N+"&sig="+ma+"&ad_cpn=[AD_CPN]&id="+ba+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Fl},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ba+"&avm="+Fl+"&dc_pubid="+Fl+"&dc_exteid="+
hc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+U+"&cid="+l+"&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="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+mj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
N+"&sig="+ma+"&ad_cpn=[AD_CPN]&id="+ba+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Fl},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ba+"&dc_pubid="+Fl+"&dc_exteid="+hc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+mj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+G4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+mj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+G4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+U+"&cid="+l+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+mj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:pA,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+
QF+"&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/"+U+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Pk+"="},trackingParams:Pk+
"=",templatedCountdown:{templatedAdText:{text:o2,isTemplated:!0,trackingParams:Pk+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:o2,isTemplated:!1,trackingParams:Pk+"="},trackingParams:Pk+"="}},trackingParams:Pk+"=",skipOffsetMilliseconds:5E3}},trackingParams:Pk+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Us},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Pk+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:RR,isTemplated:!1,trackingParams:Pk+"="},trackingParams:Pk+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:o2,isTemplated:!0,trackingParams:Pk+"="}},trackingParams:Pk+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:pA,openPopupAction:{popup:{aboutThisAdRenderer:{url:(i8.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+b+"&hl="+Es+"&origin=www.youtube.com&ata_theme="+RR,i8),trackingParams:Pk+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:Pk+"="}},hoverText:{runs:[{text:RR}]},trackingParams:Pk+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+vX+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Pk+"="},headline:{text:iO,isTemplated:!1,trackingParams:Pk+"="},description:{text:ba,
trackingParams:Pk+"="},actionButton:{buttonRenderer:{text:{simpleText:EY},navigationEndpoint:{clickTrackingParams:pA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nA+";dc_trk_cid="+nA+";dc_dbm_token="+I+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Fl+";ord="+nA+";dc_rui="+Fl+";dc_exteid="+hc+";dc_av="+Fl+";dc_sk="+Fl+";dc_ctype="+mj+";dc_pubid="+Fl+";dc_btype=3?gclid="+ao+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Pk+"="}},startMs:Fl,trackingParams:Pk+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:EZ},elementId:OA}},elementId:xm,trackingParams:Pk+"=",legacyInfoCardVastExtension:iO,sodarExtensionData:{siub:mT,bgub:EY,scs:o2,bgp:oS},externalVideoId:M6,adLayoutLoggingData:{serializedAdServingDataEntry:M6},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+vX+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Pk+"="},
headline:{text:o2,isTemplated:!1,trackingParams:Pk+"="},description:{text:M6,isTemplated:!1,trackingParams:Pk+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:iO},navigationEndpoint:{clickTrackingParams:pA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nA+";dc_trk_cid="+nA+";dc_dbm_token="+I+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Fl+";ord="+nA+";dc_rui="+Fl+";dc_exteid="+
hc+";dc_av="+Fl+";dc_sk="+Fl+";dc_ctype="+mj+";dc_pubid="+Fl+";dc_btype=3?gclid="+ao+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+
Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Pk+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Pk+"="}},navigationEndpoint:{clickTrackingParams:pA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nA+";dc_trk_cid="+
nA+";dc_dbm_token="+I+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Fl+";ord="+nA+";dc_rui="+Fl+";dc_exteid="+hc+";dc_av="+Fl+";dc_sk="+Fl+";dc_ctype="+mj+";dc_pubid="+Fl+";dc_btype=3?gclid="+ao+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+U+"&cid="+l+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+
V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Pk+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Pk+"="},abandonCommands:{commands:[{clickTrackingParams:pA,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+U+"&cid="+l+"&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="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+
Fl+"="+Fl+";etm1="+Fl+";eid1="+mj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:pA,commandExecutorCommand:{commands:[{clickTrackingParams:pA,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+U+"&cid="+l+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:IR,isTemplated:!1,trackingParams:Pk+
"="},trackingParams:Pk+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:M6},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+U+"&cid="+l+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+OX+";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="+nA+";dc_trk_cid="+nA+";ord="+C$+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Fl+";dc_rui="+Fl+";dc_exteid="+hc+";dc_av="+QF+";dc_sk="+Fl+";dc_ctype="+mj+";dc_ref=http://www.youtube.com/video/"+M6+";dc_pubid="+Fl+";dc_btype=23?gclid="+ao+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+d+"____________"+V+"AxAA&sigh="+M6+"&cid="+l+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Fl+"&ns="+Fl+"&event="+Fl+"&device="+Fl+"&content_v="+U+"&el="+mT+"&ei="+g+"&devicever="+u+"&bti="+OX+"&format="+G4+"&break_type="+Fl+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Fl+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+dx+"&slot_pos="+Fl+"&slot_len="+Fl+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
Uq+"&ad_len="+TG+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+M6+"&aqi="+g+"&ad_rmp="+Fl+"&sli="+Fl}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+M6+"&cid="+l+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+M6+"&cid="+l+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+mj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+M6+"&cid="+l+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+G4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+M6+"&cid="+l+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+mj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+M6+"&cid="+
l+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+M6+"&cid="+l+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+mj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
d+"____________"+V+"AxAA&sigh="+M6+"&cid="+l+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+OX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+M6+"&cid="+l+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+M6+"&cid="+l+"&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"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&ctype="+QF+"&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"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_engaged_view&ctype="+QF+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+G4+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+M6+"&cid="+l+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+mj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+N+"&sig="+ma+"&ad_cpn=[AD_CPN]&id="+
ba+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ba+"&dc_pubid="+Fl+"&dc_exteid="+hc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+M6+"&cid="+l+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+N+
"&sig="+ma+"&ad_cpn=[AD_CPN]&id="+ba+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Fl},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ba+"&avm="+Fl+"&dc_pubid="+Fl+"&dc_exteid="+hc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+M6+"&cid="+l+"&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="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+mj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+N+"&sig="+ma+"&ad_cpn=[AD_CPN]&id="+ba+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Fl},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ba+"&dc_pubid="+Fl+"&dc_exteid="+hc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+mj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+G4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+mj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+G4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+M6+"&cid="+l+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+mj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+
QF+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&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/"+U+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Pk+"="},trackingParams:Pk+"=",templatedCountdown:{templatedAdText:{text:NT,isTemplated:!0,trackingParams:Pk+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:iO,isTemplated:!1,trackingParams:Pk+"="},trackingParams:Pk+"="}},
trackingParams:Pk+"=",skipOffsetMilliseconds:5E3}},trackingParams:Pk+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:NT},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Pk+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:o2,isTemplated:!1,trackingParams:Pk+"="},trackingParams:Pk+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:xm,
isTemplated:!0,trackingParams:Pk+"="}},trackingParams:Pk+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:pA,openPopupAction:{popup:{aboutThisAdRenderer:{url:(pT.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+b+"&hl="+Es+"&origin=www.youtube.com&ata_theme="+RR,pT),trackingParams:Pk+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:Pk+"="}},hoverText:{runs:[{text:M6}]},trackingParams:Pk+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+mu+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Pk+"="},headline:{text:EY,isTemplated:!1,trackingParams:Pk+"="},description:{text:EZ,trackingParams:Pk+"="},actionButton:{buttonRenderer:{text:{simpleText:NT},navigationEndpoint:{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Pk+"="}},startMs:Fl,trackingParams:Pk+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:xm},elementId:EZ}},elementId:ba,trackingParams:Pk+"=",legacyInfoCardVastExtension:EZ,sodarExtensionData:{siub:iO,bgub:EY,scs:xm,bgp:EY},externalVideoId:M6,adLayoutLoggingData:{serializedAdServingDataEntry:EY},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+mu+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Pk+"="},headline:{text:mT,
isTemplated:!1,trackingParams:Pk+"="},description:{text:ba,isTemplated:!1,trackingParams:Pk+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:xm},navigationEndpoint:{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Pk+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Pk+"="}},navigationEndpoint:{clickTrackingParams:pA,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
d+"____________"+V+"AxAA&sigh="+M6+"&cid="+l+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+
Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Pk+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Pk+"="},abandonCommands:{commands:[{clickTrackingParams:pA,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+M6+"&cid="+l+"&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="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+mj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:pA,commandExecutorCommand:{commands:[{clickTrackingParams:pA,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+M6+"&cid="+l+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:M6,isTemplated:!1,trackingParams:Pk+"="},trackingParams:Pk+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ba},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+M6+"&cid="+l+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Fl+";dc_exteid="+hc+";met="+Fl+";ecn"+Fl+"="+Fl+";etm1="+Fl+";eid1="+
OX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Us}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:OA}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:TG,offsetEndMilliseconds:G4},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+g+"&m_pos="+mj+"&token=ALHj"+eH+"&index="+Fl+"&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="+u+"&m_pos_ms="+TG}},adSlotLoggingData:{serializedSlotAdServingDataEntry:NT}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:G4,offsetEndMilliseconds:G4},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+g+"&m_pos="+QF+"&token=ALHj"+eH+"&index="+Fl+"&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="+
u+"&m_pos_ms="+G4}},adSlotLoggingData:{serializedSlotAdServingDataEntry:IR}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:G4,offsetEndMilliseconds:G4},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+g+"&m_pos="+QF+"&token=ALHj"+eH+"&index="+Fl+"&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="+
u+"&m_pos_ms="+G4}},adSlotLoggingData:{serializedSlotAdServingDataEntry:B4}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:G4,offsetEndMilliseconds:G4},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+g+"&m_pos="+QF+"&token=ALHj"+eH+"&index="+Fl+"&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="+
u+"&m_pos_ms="+G4}},adSlotLoggingData:{serializedSlotAdServingDataEntry:o2}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:G4,offsetEndMilliseconds:mj},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+g+"&m_pos="+QF+"&token=ALHj"+eH+"&index="+Fl+"&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="+
u+"&m_pos_ms="+G4}},adSlotLoggingData:{serializedSlotAdServingDataEntry:IR}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:mj,offsetEndMilliseconds:mj},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+g+"&m_pos="+mj+"&token=ALHj"+eH+"&index="+Fl+"&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="+
u+"&m_pos_ms="+mj}},adSlotLoggingData:{serializedSlotAdServingDataEntry:oS}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:oS,isTemplated:!1,trackingParams:Pk+"="},description:{text:ba,isTemplated:!1,trackingParams:Pk+"="},actionButton:{buttonRenderer:{text:{simpleText:o2},navigationEndpoint:{clickTrackingParams:pA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
nA+";dc_trk_cid="+nA+";dc_dbm_token="+I+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Fl+";ord="+nA+";dc_rui="+Fl+";dc_exteid="+hc+";dc_av="+Fl+";dc_sk="+Fl+";dc_ctype="+mj+";dc_pubid="+Fl+";dc_btype=3?gclid="+ao+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Pk+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+vX+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:Pk+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Os+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Pk+"="},navigationEndpoint:{clickTrackingParams:pA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nA+";dc_trk_cid="+nA+";dc_dbm_token="+I+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Fl+";ord="+nA+
";dc_rui="+Fl+";dc_exteid="+hc+";dc_av="+Fl+";dc_sk="+Fl+";dc_ctype="+mj+";dc_pubid="+Fl+";dc_btype=3?gclid="+ao+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Pk+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:pA,openPopupAction:{popup:{aboutThisAdRenderer:{url:(g6H.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+b+"&hl="+Es+"&origin=www.youtube.com&ata_theme="+RR,g6H),trackingParams:Pk+"="}},popupType:"DIALOG"}},trackingParams:Pk+"="}},hoverText:{runs:[{text:EY}]},trackingParams:Pk+"="}},adVideoId:M6,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+U+"&cid="+l+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:M6},associatedCompositePlayerBytesLayoutId:xm}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:Us}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:B4,isTemplated:!1,trackingParams:Pk+"="},description:{text:M6,isTemplated:!1,trackingParams:Pk+"="},actionButton:{buttonRenderer:{text:{simpleText:iO},navigationEndpoint:{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+
V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Pk+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+mu+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Pk+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+N6+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Pk+"="},navigationEndpoint:{clickTrackingParams:pA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+
Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Pk+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:pA,openPopupAction:{popup:{aboutThisAdRenderer:{url:(rT.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+b+"&hl="+Es+"&origin=www.youtube.com&ata_theme="+RR,rT),trackingParams:Pk+"="}},popupType:"DIALOG"}},trackingParams:Pk+"="}},
hoverText:{runs:[{text:OA}]},trackingParams:Pk+"="}},adVideoId:M6,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+M6+"&cid="+l+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:p7},associatedCompositePlayerBytesLayoutId:xm}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ba}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:iO,
isTemplated:!1,trackingParams:Pk+"="},description:{text:mT,isTemplated:!1,trackingParams:Pk+"="},actionButton:{buttonRenderer:{text:{simpleText:ba},navigationEndpoint:{clickTrackingParams:pA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nA+";dc_trk_cid="+nA+";dc_dbm_token="+I+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Fl+";ord="+nA+";dc_rui="+Fl+";dc_exteid="+hc+";dc_av="+Fl+";dc_sk="+Fl+";dc_ctype="+
mj+";dc_pubid="+Fl+";dc_btype=3?gclid="+ao+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+
S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Pk+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+vX+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Pk+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Os+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Pk+
"="},navigationEndpoint:{clickTrackingParams:pA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nA+";dc_trk_cid="+nA+";dc_dbm_token="+I+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Fl+";ord="+nA+";dc_rui="+Fl+";dc_exteid="+hc+";dc_av="+Fl+";dc_sk="+Fl+";dc_ctype="+mj+";dc_pubid="+Fl+";dc_btype=3?gclid="+ao+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+V+"AxAA&ase=2&num="+Fl+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+th+"&label=video_click_to_advertiser_site&ctype="+QF+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Pk+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:pA,openPopupAction:{popup:{aboutThisAdRenderer:{url:(cp.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+b+"&hl="+Es+"&origin=www.youtube.com&ata_theme="+RR,cp),trackingParams:Pk+"="}},popupType:"DIALOG"}},trackingParams:Pk+
"="}},hoverText:{runs:[{text:NT}]},trackingParams:Pk+"="}},adVideoId:M6,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+V+"AxAA&sigh="+U+"&cid="+l+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:iO},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:xm}},adSlotLoggingData:{serializedSlotAdServingDataEntry:p7}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:HV,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:HV,command:{innertubeCommand:{clickTrackingParams:pA,ypcGetOfflineUpsellEndpoint:{params:z_}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:Pk+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:C$,nanos:gV}}}},sHl=JSON.stringify(Sx),hS=performance.now()-q;return{objectRepresentation:Sx,jsonRepresentation:sHl,generationTime:hS}};
ymM=function(q,w){if(q===w)return!0;if(!q||!w||typeof q!==typeof w)return!1;if(q instanceof Array&&w instanceof Array){if(q.length!==w.length)return!1;for(var u=0;u<q.length;u++)if(!ymM(q[u],w[u]))return!1;return!0}if(typeof q==="object"&&typeof w==="object"&&q&&w){for(u in q)if(!(u in w&&ymM(q[u],w[u])))return!1;for(var y in w)if(!(y in q))return!1;return!0}return!1};
_.te=function(){if(!kM){kM=new N1(new exc);var q=_.Fc("client_streamz_web_flush_count",-1);q!==-1&&(kM.invocationLimit=q)}return kM};
PM=function(q,w,u,y){if(q===w)return!0;if(Array.isArray(q)&&Array.isArray(w)){if(q.length!==w.length)return!1;for(var e=0;e<q.length;e++)if(!PM(q[e],w[e],u,y))return!1;return!0}if(q instanceof Set||w instanceof Set){if(q instanceof Set&&w instanceof Set){if(q.size!==w.size)return!1;y=_.P(q.values());for(e=y.next();!e.done;e=y.next())if(!w.has(e.value))return!1;return!0}return!1}if(q instanceof Function){if(y)return!0;q.name===""&&_.vm(Error("Hf"),"ERROR");return!1}if(q instanceof Date&&w instanceof
Date)return q.getTime()===w.getTime();if(q instanceof Object&&w instanceof Object){if(kVl(q)&&kVl(w))try{return q.equals(w)}catch(X){_.vm(Error("If`"+X),"ERROR")}e=Object.getOwnPropertyNames(q).filter(function(X){return u?q[X]!==void 0:!0});
var t=Object.getOwnPropertyNames(w).filter(function(X){return u?w[X]!==void 0:!0});
if(e.length!==t.length)return!1;e=_.P(e);for(t=e.next();!t.done;t=e.next())if(t=t.value,!PM(q[t],w[t],u,y))return!1;return!0}return!1};
kVl=function(q){q=Object.getPrototypeOf(q).equals;return q instanceof Function&&q.length===1};
_.XdJ=function(){return _.F(function(q){if(q.nextAddress==1)return t0u!==2?q.jumpTo(2):_.H(q,P1c(),3);q.nextAddress!=2&&(t0u=q.yieldResult);return q.return(t0u)})};
_.nYo=function(){return _.F(function(q){if(q.nextAddress==1)return _.T("ab_pl_man")?FkM!==2?q.jumpTo(2):_.H(q,GVM(),3):q.return(1);q.nextAddress!=2&&(FkM=q.yieldResult);return q.return(FkM)})};
sN4=function(){return _.F(function(q){if(q.nextAddress==1)return _.T("ab_fk_sk_cl")?HKz!==2?q.jumpTo(2):_.H(q,Wk7(),3):q.return(1);q.nextAddress!=2&&(HKz=q.yieldResult);return q.return(HKz)})};
_.Iiy=function(){return _.F(function(q){if(q.nextAddress==1)return _.T("ab_det_apb_b")?Ndu!==2?q.jumpTo(2):_.H(q,QNo(),3):q.return(1);q.nextAddress!=2&&(Ndu=q.yieldResult);return q.return(Ndu)})};
Uqz=function(){var q;return _.F(function(w){if(w.nextAddress==1)return _.H(w,Promise.all([_.XdJ(),_.Iiy(),_.nYo(),sN4()]),2);if(w.nextAddress!=3)return iKH()?w.return(!0):_.H(w,_.rmf(),3);q=w.yieldResult;return w.return(q===0)})};
iKH=function(){var q=!1,w=function(u,y){TdM.increment(y,u);u===0&&(q=!0)};
w(_.C14(),"j.s_");w(t0u,"f.i_");w(Ndu,"a.b_");w(FkM,"p.m_");w(HKz,"i.f_");dq7===2&&(dq7=OK7());w(dq7,"e.h_");_.T("ks_det_gpbl")||w(_.oYf(),"p.i_");_.T("ks_get_o_pp")||w(_.V0H(),"g.o_");_.T("ab_deg_unex_thr")||w(_.fic(),"a.o_");w(mqJ,"s.t_");_.T("ab_det_sc_inj_enf")&&w(_.Am7(),"s.i_");w(Jmc,"d.p_");w(_.zxu(_.XT),"o.p_");w(_.aif()===0?0:_.Dqo(),"o.a_");return _.T("debug_sk_em_precheck")?!0:q};
pds=function(){var q=[].concat(_.Cm(ZK4));try{var w=eQ();q.push({jsonRepresentation:w.jsonRepresentation,objectRepresentation:w.objectRepresentation})}catch(u){q=[].concat(_.Cm(ZK4))}return q};
$qH=function(){var q=["adPlacements","adSlots"];try{return q.filter(function(){return!0}).length!==q.length?0:1}catch(w){return 0}};
_.V0H=function(){if($qH()===0)return 0;var q=eQ(),w=q.objectRepresentation,u=(0,_.db.unsafeClone)(w),y=[];if(w&&typeof w==="object")for(var e in w)y.push(e);else return 4;q=q.objectRepresentation.adPlacements;if(!(q&&q.length>0))return 4;try{if(!ymM(y,Object.getOwnPropertyNames(w)))return 0}catch(t){return 0}return ymM(u,w)?1:0};
_.zxu=function(q){var w=Object.getOwnPropertyNames(Object.prototype);q=_.P(q);for(var u=q.next();!u.done;u=q.next()){u=_.q_(u.value);for(var y=_.P(w),e=y.next();!e.done;e=y.next())if(u===e.value)return 0}return 1};
vYM=function(q){var w=_.q_(q[1]);if(q[0]===null)return w;q=q[0];for(var u={},y=0;y<q.length;y++){var e=_.q_(q[y]);if(y===0)u[e]=w;else{var t={};t[e]=u;u=t}}return u};
_.aif=function(){for(var q=_.FT,w=0;w<q.length;w++){var u=vYM(q[w]),y=[];y.push(u);if(y.length===0)return 0}return 1};
_.Dqo=function(){for(var q=_.FT,w={},u=0;u<q.length;w={vSi:void 0},u++){var y=[vYM(q[u])];w.vSi=[];y.forEach(function(e){return function(t){e.vSi[e.vSi.length]=t}}(w));
if(w.vSi.length===0)return 0}return 1};
_.C14=function(){for(var q=_.P(pds()),w=q.next();!w.done;w=q.next()){var u=w.value;w=u.jsonRepresentation;u=u.objectRepresentation;try{var y=JSON.parse(w);if(!PM(y,u,!1,!1))return 0}catch(e){return 0}}return 1};
_.Am7=function(){try{var q=_.nv("ab_det_sc_inj_val");q.length===1&&q[0]===""&&(q=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var w=document.querySelectorAll("script"),u=_.P(w),y=u.next();!y.done;y=u.next())for(var e=y.value,t=_.P(q),X=t.next();!X.done;X=t.next()){var G=X.value;w=void 0;if((w=e.textContent)==null?0:w.includes(G))return 0}}catch(n){return 4}return 1};
_.rmf=function(){var q,w,u,y,e,t,X;return _.F(function(G){switch(G.nextAddress){case 1:_.tD(G,2),q=_.P(ZK4),w=q.next();case 4:if(w.done)return G.return(1);y=u=w.value;e=y.jsonRepresentation;t=y.objectRepresentation;return _.H(G,(new Response(e,{status:200})).json(),7);case 7:X=G.yieldResult;if(!PM(X,t,!1,!1))return G.return(0);w=q.next();G.jumpTo(4);break;case 2:return _.nm(G),G.return(4)}})};
_.fic=function(){try{btoa("abc")}catch(q){return 0}return 1};
P1c=function(){var q,w,u,y,e,t,X,G,n,N,Q;return _.F(function(I){switch(I.nextAddress){case 1:_.tD(I,2),q=_.P(pds()),w=q.next();case 4:if(w.done)return I.return(1);y=u=w.value;e=y.jsonRepresentation;t=y.objectRepresentation;X=btoa(e);G="data:application/json;base64,"+X;n=new Request(G);Object.defineProperty(n,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(n,"method",{get:function(){return"POST"}});
Object.defineProperty(n,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(n,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(n,"body",{get:function(){return new ReadableStream}});
return _.H(I,fetch(n),7);case 7:return N=I.yieldResult,_.H(I,N.json(),8);case 8:Q=I.yieldResult;if(!PM(Q,t,!1,!1))return I.return(0);w=q.next();I.jumpTo(4);break;case 2:return _.nm(I),I.return(4)}})};
OK7=function(){for(var q=function(e){return _.q_(e)},w=[bK4,
Y7M],u=2,y=0;y<w.length&&(u=_.gY4(_.wd6(w[y],q)),u!==0);y++);return u};
_.gY4=function(q){var w=_.P(q);q=w.next().value;w=w.next().value;try{var u=document.createElement("div");document.body.appendChild(u);var y=getComputedStyle(u).display;document.body.removeChild(u);if(y==="none")return 4;var e=getComputedStyle(w).display==="none"?0:1;document.body.removeChild(q);return e}catch(t){return 4}};
Wk7=function(){var q,w,u;return _.F(function(y){q=new _.Gt;w=document.createElement("button");w.classList.add("ytp-ad-skip-button");w.style.opacity="0";w.style.height="0px";w.style.width="0px";w.style.padding="0px";w.style.border="none";u=function(){w.parentElement&&w.parentElement.removeChild(w)};
w.onclick=function(){q.resolve(0);u()};
document.body.appendChild(w);setTimeout(function(){u();q.resolve(1)},50);
return y.return(q.promise)})};
GVM=function(){var q,w,u,y,e,t,X;return _.F(function(G){q=new _.Gt;w=document.createElement("ytd-player");try{document.body.prepend(w)}catch(n){return G.return(4)}u=function(){w.parentElement&&w.parentElement.removeChild(w)};
w.getElementsByTagName("div").length>0?y=w.getElementsByTagName("div")[0]:(y=document.createElement("div"),w.appendChild(y));e=document.createElement("div");y.appendChild(e);t=document.createElement("video");X=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"});t.src=_.NC(_.T2(X));t.ontimeupdate=function(){u();q.resolve(0)};
e.appendChild(t);t.classList.add("html5-main-video");setTimeout(function(){e.classList.add("ad-interrupting")},200);
setTimeout(function(){u();q.resolve(1)},5E3);
return G.return(q.promise)})};
EY6=function(q,w){var u,y;return _.F(function(e){switch(e.nextAddress){case 1:u=[],y=0;case 2:if(!(y<3)){e.jumpTo(4);break}return _.H(e,fetch(q,{cache:"no-store",method:w}).then(function(t){u.push(t.status)}).catch(function(){u.push(-1)}),3);
case 3:y++;e.jumpTo(2);break;case 4:return e.return(u)}})};
RxM=function(q){return q.domainLookupStart===0&&q.domainLookupEnd===0&&q.connectStart===0&&q.connectEnd===0};
cmy=function(q,w,u){u=u===void 0?"GET":u;var y,e,t,X,G,n,N,Q,I,U;return _.F(function(d){if(d.nextAddress==1)return _.H(d,Promise.all([EY6(q,u),EY6(w,u)]),2);y=d.yieldResult;e=_.P(y);t=e.next().value;X=e.next().value;G=t;n=X;if(Math.min.apply(Math,_.Cm(n))!==Math.max.apply(Math,_.Cm(n))||Math.min.apply(Math,_.Cm(G))!==Math.max.apply(Math,_.Cm(G)))return d.return(2);if(Math.min.apply(Math,_.Cm(n))===Math.min.apply(Math,_.Cm(G)))return d.return(1);Q=(N=performance.getEntriesByName(q))==null?void 0:N[0];
U=(I=performance.getEntriesByName(w))==null?void 0:I[0];return Q&&U?RxM(U)?d.return(1):RxM(Q)?d.return(0):d.return(1):d.return(2)})};
QNo=function(){var q;return _.F(function(w){var u=[];var y;var e,t,X;(e=y=(e=eQ().objectRepresentation.streamingData)==null?void 0:(t=e.formats)==null?void 0:(X=t[0])==null?void 0:X.url)&&e&&!y.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(e=e.replace("initcwndbps","ctier=L&initcwndbps"),e=e.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),y={testUrl:e,baseUrl:y,method:"GET"}):y=void 0;y&&u.push(y);_.T("ab_net_tp_e")&&u.push({testUrl:_.uc.location.origin+"/ad_companion",baseUrl:_.uc.location.origin+
"/generate_204",method:"OPTIONS"});if(_.T("ad_net_pb_ab")){var G;b:{y=/api\/stats\/ads/;var n,N,Q,I;e=(G=eQ().objectRepresentation.adPlacements)==null?void 0:(n=G[0])==null?void 0:(N=n.adPlacementRenderer)==null?void 0:(Q=N.renderer)==null?void 0:(I=Q.linearAdSequenceRenderer)==null?void 0:I.linearAds;if(e!=null&&e.length&&(G=_.C(e[0],S7M))&&(G=G.pings,G!=null&&G.impressionPings))for(n=[].concat(_.Cm(G.impressionPings)),G.progressPings&&(n=[].concat(_.Cm(n),_.Cm(G.progressPings))),G=_.P(n),n=G.next();!n.done;n=
G.next())if(n=n.value,n.baseUrl&&y.test(n.baseUrl)){G=n.baseUrl.replace("https://www.youtube.com","");break b}G=void 0}G&&u.push({testUrl:_.uc.location.origin+G,baseUrl:_.uc.location.origin+"/feed/download",method:"GET"})}if(_.T("ad_net_pb_pbp")){var U;b:{G=/api\/stats\/qoe/;if(n=eQ().objectRepresentation.playbackTracking){N=[];N.push(n==null?void 0:(U=n.videostatsPlaybackUrl)==null?void 0:U.baseUrl);var d;N.push(n==null?void 0:(d=n.videostatsDelayplayUrl)==null?void 0:d.baseUrl);var V;N.push(n==
null?void 0:(V=n.videostatsWatchtimeUrl)==null?void 0:V.baseUrl);var J;N.push(n==null?void 0:(J=n.ptrackingUrl)==null?void 0:J.baseUrl);var a;N.push(n==null?void 0:(a=n.qoeUrl)==null?void 0:a.baseUrl);var b;N.push(n==null?void 0:(b=n.atrUrl)==null?void 0:b.baseUrl);U=_.P(N);for(d=U.next();!d.done;d=U.next())if((d=d.value)&&G.test(d)){U=d.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}U=void 0}U&&u.push({testUrl:_.uc.location.origin+U,baseUrl:_.uc.location.origin+
"/feed/download",method:"GET"})}u=u.length!==0?u[Math.floor(Math.random()*u.length)]:void 0;return(q=u)?w.return(cmy(q.testUrl,q.baseUrl,q.method)):w.return(4)})};
_.oYf=function(){if(_.uc.ki6===void 0||_.uc.ki6===null||typeof _.uc.ki6!=="function")return 2;try{return _.uc.ki6()===!0?0:1}catch(q){return 0}};
hxs=function(q){switch(q){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Xm(q,"unknown result type")}};
_.jNM=function(q,w){var u=Number(_.Et("CATSTAT",0));if(w.gtV===void 0)return u;w=w.gtV;q=hxs(q);return u&~(3<<w)|q<<w};
li4=function(q){var w,u;if((q=(w=q.auxiliaryUi)==null?void 0:(u=w.messageRenderers)==null?void 0:u.bkaEnforcementMessageViewModel)&&q.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return q};
M06=function(){for(var q=_.P(Object.values(_.Lko)),w=q.next();!w.done;w=q.next())w=w.value,w.isAsync&&w.gtV&&_.g_("CATSTAT",_.jNM(2,w))};
_.sP=function(q,w){q=_.np("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",q);(w===void 0?0:w)?_.Kkz(q,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.HM(_.WM(),q,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
xqz=function(){if(!Bd7){if(Polymer.Base){var q=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{q.apply(this,arguments)}catch(I){_.cl(I)}};
var w=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{w.apply(this,arguments)}catch(I){_.cl(I)}};
var u=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{u.apply(this,arguments)}catch(I){_.cl(I)}};
var y=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{y.apply(this,arguments)}catch(I){_.cl(I)}};
var e=Polymer.Base._listen,t=new WeakMap;Polymer.Base._listen=function(I,U,d){var V=function(){try{d.apply(this,arguments)}catch(J){_.cl(J)}};
t.set(d,V);e.call(this,I,U,V)};
var X=Polymer.Base._unlisten;Polymer.Base._unlisten=function(I,U,d){X.call(this,I,U,t.get(d))}}if(Polymer.Async){var G=Polymer.Async,n=G._atEndOfMicrotask;
G._atEndOfMicrotask=function(){try{n.apply(G,arguments)}catch(I){_.cl(I)}}}if(Polymer.RenderStatus){var N=Polymer.RenderStatus,Q=N.afterNextRender;
N.afterNextRender=function(I,U,d){Q.call(N,I,function(){try{U.apply(this,arguments)}catch(V){_.cl(V)}},d)}}Bd7=!0}};
_.N_=function(q){var w=q?_.QV(q):"";if(w){if(w.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(w.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(w.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(w.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(w.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(w.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";w=w.toLowerCase();if(w==="/")return"home";if(w===
"/channel_memberships")return"channel-memberships-shopfront";if(w.indexOf("/feed/trending")===0)return"trending";if(w.indexOf("/feed/explore")===0)return"explore";if(w.indexOf("/live")===0)return"live";if(w.indexOf("/results")===0)return"search";if(w.indexOf("/sports")===0)return"sports";if(w.indexOf("/fashion")===0||w.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(w))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(w))return"learning";
if(w.indexOf("/channel/")===0||w.indexOf("/user/")===0||w.indexOf("/gaming")===0||w.indexOf("/post/")===0)return"channel";if(qhu(q))return"show";if(w==="/playlist"||w.indexOf("/playlist/")===0||w==="/view_play_list"||w.indexOf("/view_play_list/")===0||w.indexOf("/show/")===0)return"playlist";if(w==="/feed/history"||w.indexOf("/feed/history/")===0)return"history";if(w==="/new")return"labs";if(w==="/feed/subscriptions")return"subscriptions";if(w.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(w==="/history_controls")return"standalone";if(w.indexOf("/account")===0||w==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(w.indexOf("/paid_memberships")===0||w.indexOf("/refund")===0||w.indexOf("/purchases")===0||w.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(w.indexOf("/product")===0)return"yts-products";if(w.indexOf("/premium")===0||w.indexOf("/musicpremium")===0)return w.indexOf("/premium/offers")===0||w.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(w===
"/cart/checkout"||w==="/cart")return"ypc-checkout";if(w.indexOf("/feed/downloads")===0||w.indexOf("/redeem")===0||w.indexOf("/reporthistory")===0)return"browse";if(w.indexOf("/hashtag")===0)return"hashtag-landing-page";if(w.indexOf("/handle")===0)return"handle";if(w.indexOf("/source")===0)return"audio-pivot";if(w.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(w.indexOf("/playables")===0)return"playables";if(w.indexOf("/create/live/join")===0)return"open-in-app";if(w.indexOf("/shorts")===
0)return"shorts";if(w.indexOf("/feed/channels")===0)return"subscriptions-channels";(w=q?_.QV(q):"")&&w.indexOf("/watch")===0&&_.T("web_watch_enable_learning_journey")?(q=_.K4(q),q=!!q.list&&q.list.indexOf("LJPP")===0):q=!1;if(q)return"learning_journey_watch"}};
_.QI=function(q){var w,u;(q=(u=_.C(q==null?void 0:q.commandMetadata,_.wk))==null?void 0:u.url)&&(w=_.N_(q));return w};
qhu=function(q){var w=q?_.QV(q):"";if(!w)return!1;w=w.toLowerCase();return w.indexOf("/show/")===0||w.indexOf("/playlist")===0&&(q=_.K4(q),q.list&&q.list.indexOf("EL")===0)?!0:!1};
rC=function(q){var w="unknown",u;var y=((u=_.C(q==null?void 0:q.commandMetadata,_.wk))==null?void 0:u.webPageType)||"";y?(u=y.toLowerCase(),u.startsWith("web_page_type_")&&(u=u.slice(14))):u=y;u&&wY4[u.toUpperCase()]?w=wY4[u.toUpperCase()]:_.C(q,_.Ii)||_.C(q,u57)?w="browse":_.C(q,_.ip)?w="search":_.C(q,_.LN)&&(w="watch");w==="watch"&&_.QI(q||null)==="learning_journey_watch"&&(w="learning_journey_watch");w==="unknown"&&_.Y8(Error("Kf`"+JSON.stringify({clickTrackingParams:q==null?void 0:q.clickTrackingParams,
commandMetadata:q==null?void 0:q.commandMetadata,allEndpointKeys:Object.keys(q||[])})));return w};
_.UP=function(q){if(!_.yV7||q)_.yV7=_.Gc();return _.yV7};
_.eFH=function(q){return!!_.C(q,_.LN)||!!_.C(q,_.Tt)&&_.T("kevlar_enable_shorts_prefetch")};
_.kDM=function(q,w){q=_.C(q,_.LN)||_.C(q,_.Tt);return"v"+q.videoId+(q.playlistId?"-pl"+q.playlistId:"")+(w?"-an1":"")+(q.params?"-pr"+q.params:"")};
Pxu=function(q){var w=_.Fc("web_pbj_log_warning_rate",0);w=w>0&&Math.random()<w;if(!_.C(q,_.Tt))return w&&_.Y8(Error("Nf")),!1;var u;return _.T("shorts_controller_retrieve_seedless_sequence_v2")&&((u=_.C(q,_.Tt))==null?void 0:u.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:tXH(q)?!0:(w&&_.Y8(Error("Of")),!1)};
tXH=function(q){var w=(_.C(q,_.LN)||_.C(q,_.Tt)).videoId;if(!w||!XYl.test(w))return!1;var u;return(q=(u=_.C(q.commandMetadata,_.wk))==null?void 0:u.url)&&(q.includes(w)||q.startsWith("/clip"))?!0:!1};
_.GDy=function(){var q=_.UC();return q.getFlag(192)?q.getFlag(190):!(_.T("web_watch_cinematics_disabled_by_default")||_.T("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&FDy())};
_.Cp=function(q,w,u){var y={};y.currentUrl=w;y.vis=q.vis!==void 0?q.vis:0;y.splay=!1;w=_.UC();y.autoCaptionsDefaultOn=w.getFlag(66);w.getFlag(141)?w.getFlag(140)?y.autonavState="STATE_OFF":y.autonavState="STATE_ON":y.autonavState="STATE_NONE";y.html5Preference="HTML5_PREF_WANTS";isNaN(_.Et("STS"))||(y.signatureTimestamp=_.Et("STS"));q.autonav&&(y.autoplay=!0,y.autonav=!0);q.mutedAutoplay&&(y.autoplay=!0,y.mutedAutoplay=!0);q.inlinePlayback&&(y.autoplay=!0,y.autonav=!1,y.isInlineUnmutedPlayback=!!q.inlineUnmuted);
y.referer=u;y.lactMilliseconds=q.lact!==void 0?q.lact.toString():"-1";_.T("enable_unknown_lact_fix_on_html5")&&y.lactMilliseconds==="-1"&&_.Y8(new _.fv("Unknown LACT is set in playbackContext.",{"lact in tempData":q.lact||"undefined",autonav:q.autonav||"undefined"}));q={};w.getFlag(194)&&(q.hasShownAmbientMode=!0);w.getFlag(192)&&(q.hasToggledOffAmbientMode=!0);_.GDy()&&(q.watchAmbientModeEnabled=!0);y.watchAmbientModeContext=q;return y};
nEs=function(q){var w={},u=q.pbis||0;u&&(w.playbackBeginsInSeconds=u);q.prefetch_reason&&q.prefetch_reason==="hc_pbis"&&(w.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return w};
_.Hou=function(q){var w=new dC(_.Et("ONE_PICK_URL",""));w.urlParamMap_.set("hostId",q);(q=_.Et("GAPI_LOCALE"))&&w.urlParamMap_.set("hl",q);(q=_.Et("SESSION_INDEX"))&&w.urlParamMap_.set("authuser",q);(q=_.Et("DELEGATED_SESSION_ID"))&&w.urlParamMap_.set("groupId",q);return w};
saz=function(){var q=_.tG(),w=q.resolve(_.OP);q=q.resolve(_.oi);return new WDo(w,q)};
Qac=function(q){if(window.IntersectionObserver)return new NSf(q,400);throw new TypeError("Vf");};
iof=function(){var q=Hammer.TouchAction,w=q.prototype.preventDefaults;q.prototype.preventDefaults=function(u){var y=this.actions.indexOf("pan-down")>-1;if(!y)return w.call(this,u);if(!I1z){var e=u.srcEvent;u=u.direction;var t;if((t=this.manager)==null?0:t.session.prevented)e.preventDefault();else if(y&&u&Hammer.DIRECTION_DOWN)return this.preventSrc(e)}}};
rVs=function(q){if(!q||q.size===0)return Hammer.DIRECTION_ALL;if(q.size===2){if(q.has("up")&&q.has("down"))return Hammer.DIRECTION_VERTICAL;if(q.has("right")&&q.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(q.size===1){if(q.has("up"))return Hammer.DIRECTION_UP;if(q.has("down"))return Hammer.DIRECTION_DOWN;if(q.has("right"))return Hammer.DIRECTION_RIGHT;if(q.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.TSs=function(){return Ucz?Promise.resolve(Ucz):new Promise(function(q,w){var u=self.indexedDB.open("swpushnotificationsdb");u.onerror=w;u.onsuccess=function(){var y=u.result;if(y.objectStoreNames.contains("swpushnotificationsstore"))Ucz=y,q(Ucz);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.TSs()};
u.onupgradeneeded=Cxf})};
Cxf=function(q){q=q.target.result;q.objectStoreNames.contains("swpushnotificationsstore")&&q.deleteObjectStore("swpushnotificationsstore");q.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
Ooo=function(q){var w=dc7(),u;return _.F(function(y){switch(y.nextAddress){case 1:return _.tD(y,2),_.H(y,q.match(w,{cacheName:"yt-appshell-assets"}),4);case 4:u=y.yieldResult;_.jv(y,3);break;case 2:_.nm(y);case 3:return y.return(u)}})};
dc7=function(){var q=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?oEz.registration.scope:VXJ;q.endsWith("/")&&(q=q.slice(0,-1));return q+"/app_shell_home"};
f1u=function(q){q.map(function(w){return w.source}).join("|")};
_.mcj=function(q){return _.F(function(w){return w.return(Ooo(q))})};
AVy=function(){var q=window.caches,w;return _.F(function(u){if(u.nextAddress==1)return _.H(u,_.mcj(q),2);w=u.yieldResult;return u.return(!!w)})};
$cc=function(){_.F(function(q){if(q.nextAddress==1){if(JVs)return q.jumpTo(0);JVs=!0;if(_.T("enable_system_health_primes_monitoring"))return _.s8(zFz,3E4),a1H(),q.return();if(!(Math.random()<_.Fc("web_system_health_fraction")))return q.jumpTo(0);Dc6={heightPixels:screen.height,widthPixels:screen.width};VI&&!isNaN(VI.jsHeapSizeLimit)&&(Dc6.memoryTotalKbytes=String(Math.round(VI.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(Dc6.devicePixelRatio=window.devicePixelRatio);return _.H(q,Zol(),4)}_.s8(zFz,
3E4);return _.H(q,pY4(),0)})};
Zol=function(){return _.F(function(q){if(q.nextAddress==1)return fp.intersectionObserverPresent="IntersectionObserver"in window,fp.serviceWorkerPresent="serviceWorker"in navigator,fp.webSharePresent="share"in navigator,fp.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,fp.cacheStoragePresent="caches"in window,fp.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,fp.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
fp.webkitTemporaryStoragePresent="webkitTemporaryStorage"in m4&&m4.webkitTemporaryStorage&&"queryUsageAndQuota"in m4.webkitTemporaryStorage,fp.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.H(q,YMc(),2);fp.indexedDbPresent=q.yieldResult;fp.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;fp.broadcastChannelPresent="BroadcastChannel"in window;fp.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(fp.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,fp.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.HI(q)})};
zFz=function(){var q=9E4+Math.random()*2E3;_.Pm()>q||(_.T("enable_system_health_primes_monitoring")?a1H():pY4())};
pY4=function(){var q;return _.F(function(w){if(w.nextAddress==1)return _.H(w,vEl(),2);q=w.yieldResult;_.pn("systemHealthCaptured",q);_.HI(w)})};
a1H=function(){var q={metric:{}},w=bol();w.networkEvents.length&&(q.metric.networkEvents=YhM(w));_.pn("systemHealthCaptured",q)};
vEl=function(){var q,w,u,y,e,t,X,G,n,N;return _.F(function(Q){switch(Q.nextAddress){case 1:q={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)};w=window.screen;_.T("enable_is_extended_monitoring")&&w&&"isExtended"in w&&(q.isExtended=!!w.isExtended);u={metric:{staticContext:Dc6,dynamicContext:q,webMetric:gEs,webApiSupport:fp}};
if(y=_.pN())u.csn=y;VI&&(u.metric.webMetric.currentHeapKbytes=Math.round(VI.usedJSHeapSize/1E3));window.matchMedia&&(u.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,u.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,u.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in m4&&typeof m4.getBattery==="function")){Q.jumpTo(2);break}return _.H(Q,m4.getBattery(),3);case 3:if(e=
Q.yieldResult)u.metric.dynamicContext.chargingStatus=e.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(u.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(fp.storageEstimatePresent)return _.H(Q,navigator.storage.estimate(),8);if(!fp.webkitTemporaryStoragePresent){Q.jumpTo(5);break}return _.H(Q,EE4(),7);case 7:t=Q.yieldResult;Q.jumpTo(5);break;case 8:t=Q.yieldResult;case 5:return u.metric.dynamicContext.deviceStorageQuotaMbytes=((X=t)==null?0:X.quota)?String(Math.round(t.quota/
1048576/10)*10):"-1",u.metric.dynamicContext.deviceStorageUsageMbytes=((G=t)==null?0:G.usage)?String(Math.round(t.usage/1048576/10)*10):"-1",n=u.metric.dynamicContext,_.H(Q,AVy(),9);case 9:return n.hasAppShell=Q.yieldResult,N=bol(),N.networkEvents.length&&(u.metric.networkEvents=YhM(N)),Q.return(u)}})};
EE4=function(){return new Promise(function(q){var w;fp.webkitTemporaryStoragePresent&&(w=m4.webkitTemporaryStorage)!=null&&w.queryUsageAndQuota?m4.webkitTemporaryStorage.queryUsageAndQuota(function(u,y){q({usage:u,quota:y})}):q(void 0)})};
_.Ae=function(q){q&=16777215;q=[(q&16711680)>>16,(q&65280)>>8,q&255];return RFf(q[0],q[1],q[2])};
_.Je=function(q){q=[(q&16711680)>>>16,(q&65280)>>>8,q&255,(q&4278190080)>>>24];var w=_.cVj(q,function(u){return u==(u&255)});
q[3]=(q[3]/255).toFixed(3);if(!w)throw Error("Wf`"+q.join(","));return"rgba("+q.join(",")+")"};
_.ShH=function(q){return[(q&16711680)>>>16,(q&65280)>>>8,q&255]};
_.hFM=function(q){q=q.map(function(w){w/=255;return w<=.03928?w/12.92:Math.pow((w+.05)/1.05,2.4)});
return q[0]*.2126+q[1]*.7152+q[2]*.0722};
zt=function(q,w){q=_.ShH(q);return"rgba("+q[0]+", "+q[1]+", "+q[2]+", "+w+")"};
_.ja6=function(){try{return!!self.localStorage}catch(q){return!1}};
KD6=function(){if(l1J())_.Y8(Error("Xf"));else{var q=document.createElement("iframe");q.style.display="none";var w=w===void 0?window.location.href:w;var u=_.$Z(_.Et("PERSIST_IDENTITY_IFRAME_URL"));w=u?u:(new URL(w)).host.indexOf("studio")===0?_.qK(LD4,"persist_identity"):_.qK(MXu,"persist_identity");_.rhf(q,1,w);q.id="persist_identity";var y;(y=document.body)==null||y.appendChild(q)}};
l1J=function(){var q=BS6;q||(q=document.querySelector("#persist_identity"));return q};
xcy=function(){var q=!1;try{q=!!window.sessionStorage.getItem("session_logininfo")}catch(w){q=!0}return(_.Et("INNERTUBE_CLIENT_NAME")==="WEB"||_.Et("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&q};
qrs=function(q,w){if(!xcy())return!1;w||(w=_.Et("LOGIN_INFO"));return w?(q.session_logininfo=w,!0):!1};
upJ=function(q,w){q=q===void 0?!1:q;if((w===void 0||!w)&&wvl!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.RX("LOG_STICKINESS",!1)){w=_.pN();var u=_.ZB(),y={identityStickinessData:{initialState:wvl}};w&&u&&_.Lq(w,u,y)}if(w=l1J())if(u=w.src?(new URL(w.src)).origin:"*",q){var e;(e=w.contentWindow)==null||e.postMessage({action:"clear"},u)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(q=window.sessionStorage.getItem("session_logininfo"))){var t;(t=w.contentWindow)==null||t.postMessage({loginInfo:q},u)}};
_.ai=function(q){q=q===void 0?!0:q;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.g_("LOGIN_INFO",""),q&&window.sessionStorage.setItem("from_switch_account","1"),upJ(!0,q)}catch(w){}};
yo7=function(q){q&&(q.startsWith("https://accounts.google.com/AddSession")?_.ai():q.startsWith("https://accounts.google.com/ServiceLogin")?_.ai():q.startsWith("https://myaccount.google.com")&&_.h1(q).getPath().endsWith("/youtubeoptions")&&_.ai())};
Du=function(q,w){yo7(q);if(_.RX("LOGGED_IN",!0)&&xcy()){var u=qcH(q);u==null&&(u={});qrs(u,w)&&_.xG(q,u)}};
eN7=function(){function q(w){for(w=w.target;w&&w.nodeName!=="A";)if(w=w.parentNode,!(w&&w instanceof HTMLElement))return;if(w&&!w.hasAttribute("download")&&w.getAttribute("rel")!=="external"&&w.href)return w.href}
document.addEventListener("mousedown",function(w){w.button!==0&&(w=q(w))&&Du(w)});
document.addEventListener("click",function(w){(w=q(w))&&Du(w)})};
P7s=function(){var q=new kr4;try{if(_.RX("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(G){q.increment(5,!1);return}if(_.Et("LOGIN_INFO")){var w=t8l?t8l:window.location;_.Et("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&KD6();var u=qcH(w.href);u==null&&(u={});var y=u.session_logininfo,e=Number(window.sessionStorage.getItem("stickiness_reload")),t=y===_.Et("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
e>=2||t)e>=2?q.increment(2,t):t?q.increment(7,t):window.sessionStorage.getItem("session_logininfo")||(q.increment(3,t),wvl="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Et("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Et("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))q.increment(4,t),window.sessionStorage.removeItem("stickiness_reload");
else if(e<2){window.sessionStorage.setItem("stickiness_reload",String(e+1));var X=w.href;X=_.qU(X,"sttick");Du(X,window.sessionStorage.getItem("session_logininfo"));X=_.Bl(X,{sttick:e});q.increment(e,t);_.ha(w,X)}}else q.increment(6,!1)}else _.ai(!1)}catch(G){}};
_.Zu=function(q,w,u,y,e){w=w===void 0?{}:w;u=u===void 0?"":u;y=y===void 0?window:y;q=_.xw(q,w);Du(q);u=_.UY(q+u,e);_.ha(y.location,u)};
Xvf=function(q){if(q.urlEndpoint){if(q=_.K4(q.urlEndpoint.url),q.adurl)return ev(q.adurl)}else if(q.watchEndpoint)return"//www.youtube.com/watch?v="+q.watchEndpoint.videoId;return null};
FJs=function(q){if(!q||!q.reportingPings)return null;var w={};q.reportingPings.forEach(function(u){u.pingType in w?w[u.pingType].push(u.url):w[u.pingType]=[u.url]});
return{adpings:WM4(w)}};
_.$M=function(q){q=q===void 0?!1:q;var w=_.UC(),u="USER_INTERFACE_THEME_LIGHT";w.getFlag(165)?u="USER_INTERFACE_THEME_DARK":w.getFlag(174)?u="USER_INTERFACE_THEME_LIGHT":_.pp()&&(u="USER_INTERFACE_THEME_DARK");return q?u:Gr6()||u};
_.npJ=function(){return!_.T("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.pp=function(){return _.npJ()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.vM=function(){var q=_.UC();return _.npJ()&&!q.getFlag(165)&&!q.getFlag(174)};
Gr6=function(){var q=q===void 0?window.location.href:q;if(_.T("kevlar_disable_theme_param"))return null;var w=_.QV(q);if(_.HUz(w))return"USER_INTERFACE_THEME_DARK";try{var u=_.K4(q).theme;return WJu.get(u)||null}catch(y){}return null};
_.HUz=function(q){return _.T("enable_dark_theme_only_on_shorts")?!(q==null||!q.startsWith("/shorts/")):!1};
_.QTl=function(q,w,u,y,e){w=w===void 0?!1:w;u=u===void 0?!1:u;var t=_.Et("INNERTUBE_CONTEXT");if(!t)return _.vm(Error("ag")),{};t=(0,_.db.unsafeClone)(t);_.T("web_no_tracking_params_in_shell_killswitch")||delete t.clickTracking;t.client||(t.client={});var X=t.client;X.clientName==="MWEB"&&X.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(X.clientFormFactor=_.Et("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");X.screenWidthPoints=window.innerWidth;X.screenHeightPoints=window.innerHeight;X.screenPixelDensity=
Math.round(window.devicePixelRatio||1);X.screenDensityFloat=window.devicePixelRatio||1;X.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());X.userInterfaceTheme=_.$M();if(!w){var G=_.P9H();G&&(X.connectionType=G);_.T("web_log_effective_connection_type")&&(G=FHs())&&(t.client.effectiveConnectionType=G)}var n;if(_.T("web_log_memory_total_kbytes")&&((n=_.uc.navigator)==null?0:n.deviceMemory)){var N;n=(N=_.uc.navigator)==null?void 0:N.deviceMemory;t.client.memoryTotalKbytes=""+n*1E6}w&&y&&!_.T("web_it_context_set_original_url_ks")&&
(X.originalUrl=sTy(_.uc.location.href,y).toString());_.T("web_gcf_hashes_innertube")&&(G=UUy())&&(N=G.coldConfigData,n=G.coldHashData,G=G.hotHashData,t.client.configInfo=t.client.configInfo||{},N&&(t.client.configInfo.coldConfigData=N),n&&(t.client.configInfo.coldHashData=n),G&&(t.client.configInfo.hotHashData=G));N=_.K4(_.uc.location.href);!_.T("web_populate_internal_geo_killswitch")&&N.internalcountrycode&&(X.internalGeo=N.internalcountrycode);!_.T("web_populate_client_screen_killswitch")&&e&&(X.clientScreen=
e);X.clientName==="MWEB"||X.clientName==="WEB"?(X.mainAppWebInfo={graftUrl:y||_.uc.location.href},_.T("kevlar_woffle")&&_.bp.instance&&(y=_.bp.instance,X.mainAppWebInfo.pwaInstallabilityStatus=!y.appInstalledEventFired&&y.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),X.mainAppWebInfo.webDisplayMode=Hql(),X.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):X.clientName==="TVHTML5"&&(!_.T("web_lr_app_quality_killswitch")&&
(y=_.Et("LIVING_ROOM_APP_QUALITY"))&&(X.tvAppInfo=Object.assign(X.tvAppInfo||{},{appQuality:y})),y=_.Et("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(X.tvAppInfo=Object.assign(X.tvAppInfo||{},{certificationScope:y}));!_.T("web_populate_time_zone_itc_killswitch")&&(y=k6s())&&(X.timeZone=y);(y=o$H())?X.experimentsToken=y:delete X.experimentsToken;X=VlH();y=_.Ntf();y=(0,_.db.getValues)(y.tokenJars);t.request=Object.assign({},t.request,{internalExperimentFlags:X,consistencyTokenJars:y});!_.T("web_prequest_context_killswitch")&&
(X=_.Et("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(t.request.externalPrequestContext=X);y=_.UC();X=y.getFlag(58);y=y.get("gsml","");t.user=Object.assign({},t.user);X&&(t.user.enableSafetyMode=X);y&&(t.user.lockedSafetyMode=!0);_.T("warm_op_csn_cleanup")?u&&(w=_.pN())&&(t.clientScreenNonce=w):!w&&(w=_.pN())&&(t.clientScreenNonce=w);q&&(t.clickTracking={clickTrackingParams:q});if(q=_.hP("yt.mdx.remote.remoteClient_"))t.remoteClient=q;_.YM.getInstance().setLocationOnInnerTubeContext(t);try{var Q=$b4(),
I=Q.bid;delete Q.bid;t.adSignalsInfo={params:[],bid:I};for(var U=_.P(Object.entries(Q)),d=U.next();!d.done;d=U.next()){var V=_.P(d.value),J=V.next().value,a=V.next().value;Q=J;I=a;q=void 0;(q=t.adSignalsInfo.params)==null||q.push({key:Q,value:""+I})}var b,g;if(((b=t.client)==null?void 0:b.clientName)==="TVHTML5"||((g=t.client)==null?void 0:g.clientName)==="TVHTML5_UNPLUGGED"){var l=_.Et("INNERTUBE_CONTEXT");l.adSignalsInfo&&(t.adSignalsInfo.advertisingId=l.adSignalsInfo.advertisingId,t.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",t.adSignalsInfo.limitAdTracking=l.adSignalsInfo.limitAdTracking)}}catch(S){_.vm(S)}return t};
_.gC=function(){return{isShellLoad:_.RX("IS_SHELL_LOAD",!1)}};
iU7=function(){navigator.serviceWorker.getRegistrations().then(function(q){q.forEach(I$s)})};
I$s=function(q){q&&_.roj(UR4,q.scope)};
_.roj=function(q,w){w={scope:w||_.GQ("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.G2(q),w)};
EP=function(q,w,u,y){if(w&&w.serializedYpcCujLoggingParams){if(u){var e={};e.transactionErrorType=u;y&&(e.errorMessage=y);w.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:e}}}u={};u.ypcCujContext=w;q=_.np("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",q,u);_.HM(_.WM(),q,"FLOW_TYPE_YPC_ACQUISITION")}};
_.Ttz=function(q,w,u,y){var e={};e.serializedTransactionFlowLoggingParams=w;u&&(e.errorType=u);y&&(e.errorMessage=y);_.pn(q,e);_.$8()};
_.C7f=function(q){q&&_.Ttz("transactionFlowStarted",q)};
_.dRM=function(q){q&&_.Ttz("transactionFlowCancelled",q)};
_.Ri=function(q,w,u){w&&_.Ttz("transactionFlowFailed",w,q,u)};
_.cM=function(){this.megabloxUrl_=null};
_.SQ=function(q){try{var w=OUl==null?void 0:OUl.composedPath(q)}catch(u){w=q.composedPath?q.composedPath():[]}return w&&w.length>0?w:q.composedPath?q.composedPath():[]};
_.he=function(q){return _.SQ(q)[0]};
_.jQ=function(q){if(!(q instanceof Element))return null;q=q.classList?Array.from(q.classList):void 0;if(!q)return null;var w=q.indexOf("style-scope");return w>-1&&w+1<q.length?q[w+1]:null};
lp=function(q){if(!(q instanceof HTMLElement))return null;var w=q&&(q.$$||q.polymerController)?q.tagName.toLowerCase():null;return w?w:_.jQ(q)};
opH=function(q,w){return q.replace(/[^a-z]*[^\s]+/g,function(u){return u+".style-scope."+w})};
V8u=function(q,w){return w?q.split(",").map(function(u){return opH(u.trim(),w)}).join(", "):q};
_.Lp=function(q){var w,u,y,e;return(e=(y=(u=(w=q.root)!=null?w:q.shadowRoot)!=null?u:q.__shady_native_shadowRoot)!=null?y:q.__shady_shadowRoot)!=null?e:q};
BM=function(q){return q instanceof ShadowRoot?ShadowRoot:q instanceof DocumentFragment?DocumentFragment:q instanceof Document?Document:HTMLElement};
f$j=function(q){var w,u,y;return(y=(u=(w=q.parentElement)!=null?w:q.__shady_native_parentElement)!=null?u:q.__shady_parentElement)!=null?y:null};
mRj=function(q){var w,u,y;return(y=(u=(w=q.parentNode)!=null?w:q.__shady_native_parentNode)!=null?u:q.__shady_parentNode)!=null?y:null};
Ao7=function(q){var w,u,y;return(y=(u=(w=q.__shady_parentNode)!=null?w:q.__shady_native_parentNode)!=null?u:q.parentNode)!=null?y:null};
Jo6=function(q){var w,u;return(u=(w=mRj(q))!=null?w:q.host)!=null?u:null};
zNy=function(q){var w,u,y;return(y=(u=(w=q.nextSibling)!=null?w:q.__shady_native_nextSibling)!=null?u:q.__shady_nextSibling)!=null?y:null};
a$M=function(q){var w,u,y;return(y=(u=(w=q.previousSibling)!=null?w:q.__shady_native_previousSibling)!=null?u:q.__shady_previousSibling)!=null?y:null};
DR4=function(q){var w,u,y;return(y=(u=(w=q.nextElementSibling)!=null?w:q.__shady_native_nextElementSibling)!=null?u:q.__shady_nextElementSibling)!=null?y:null};
ZUj=function(q){var w,u,y;return(y=(u=(w=q.previousElementSibling)!=null?w:q.__shady_native_previousElementSibling)!=null?u:q.__shady_previousElementSibling)!=null?y:null};
pvM=function(q){var w,u,y;return new Set([].concat(_.Cm((w=q.children)!=null?w:[]),_.Cm((u=q.__shady_native_children)!=null?u:[]),_.Cm((y=q.__shady_children)!=null?y:[])))};
$Rz=function(q){var w,u,y;return new Set([].concat(_.Cm((w=q.childNodes)!=null?w:[]),_.Cm((u=q.__shady_native_childNodes)!=null?u:[]),_.Cm((y=q.__shady_childNodes)!=null?y:[])))};
vpM=function(q){if(!q)return null;var w=_.jQ(q);if(!w){var u;return(u=Node.prototype.getRootNode)==null?void 0:u.call(q)}w=w.toUpperCase();for(q=f$j(q);q&&q.tagName!==w;)q=f$j(q);return q?_.Lp(q):null};
bUH=function(q){for(;q&&!(q instanceof HTMLElement);)q=Jo6(q);return q};
Yrj=function(q){var w=bUH(q);return q===w?_.jQ(q):w?lp(w):null};
gps=function(q){return(q=bUH(q))?lp(q):null};
Epf=function(q){if(q instanceof Comment)return!1;if(q instanceof Text){var w,u;if(((u=(w=q.textContent)==null?void 0:w.trim())!=null?u:"")==="")return!1}return!0};
xM=function(q,w,u){var y=w(q);for(u=u===void 0?gps(q):u;y&&(Yrj(y)!==u||!Epf(y));)q=y,y=w(q);return y};
RNy=function(q,w,u){if(!w)return null;q=gps(q);return Yrj(w)===q&&Epf(w)?w:xM(w,u,q)};
co4=function(q){return xM(q,Ao7,_.jQ(q))};
Sru=function(q){return xM(q,DR4)};
hN7=function(q){return xM(q,zNy)};
jTu=function(q){return xM(q,ZUj)};
l$H=function(q){return xM(q,a$M)};
LJf=function(q){return RNy(q,q.firstChild||q.__shady_native_firstChild||q.__shady_firstChild||null,zNy)};
M8s=function(q){var w,u,y;var e=(y=(u=(w=q.firstElementChild)!=null?w:q.__shady_native_firstElementChild)!=null?u:q.__shady_firstElementChild)!=null?y:null;return RNy(q,e,DR4)};
KJc=function(q){var w,u,y;var e=(y=(u=(w=q.lastChild)!=null?w:q.__shady_native_lastChild)!=null?u:q.__shady_lastChild)!=null?y:null;return RNy(q,e,a$M)};
BtM=function(q){var w,u,y;var e=(y=(u=(w=q.lastElementChild)!=null?w:q.__shady_native_lastElementChild)!=null?u:q.__shady_lastElementChild)!=null?y:null;return RNy(q,e,ZUj)};
xRu=function(q){var w=gps(q);return Array.from($Rz(q)).filter(function(u){return Yrj(u)===w})};
qic=function(q){var w=lp(q);return Array.from(pvM(q)).filter(function(u){return _.jQ(u)===w})};
_.qa=function(q,w,u){if(q instanceof HTMLElement&&_.jQ(q)===u){var y=Array.from(q.classList).indexOf("style-scope");if(y===-1)q.classList.add("style-scope"),q.classList.add(w);else if(!(y+1>=q.classList.length)){y=q.classList[y+1];var e,t;q==null||(e=q.classList)==null||(t=e.replace)==null||t.call(e,y,w)}}if(q instanceof HTMLElement||q instanceof DocumentFragment)for(e=_.P(pvM(q)),t=e.next();!t.done;t=e.next())_.qa(t.value,w,u);return q};
wN=function(q,w){if(q instanceof HTMLElement&&_.jQ(q)===w){var u=Array.from(q.classList).indexOf("style-scope");u===-1||u+1>=q.classList.length||q.classList.remove("style-scope",q.classList[u+1])}if(q instanceof HTMLElement||q instanceof DocumentFragment){u=_.P(q.children);for(var y=u.next();!y.done;y=u.next())wN(y.value,w)}return q};
_.wAM=function(q,w){return BM(q).prototype.appendChild.call(q,w)};
u8y=function(q,w){if(q===w)return!0;q=$Rz(q);return Array.from(q).some(function(u){return u8y(u,w)})};
_.A=function(q,w){if(q instanceof uf)return q;(w==null?0:w.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(q,"ownerDocument")&&Object.defineProperty(q,"ownerDocument",{get:function(){return window.document}});
return new uf(q)};
eZ7=function(){var q=uf.prototype,w=[].concat(_.Cm(yHj?[]:["getRootNode"]),["setAttribute","removeAttribute"]);w=_.P(w);for(var u=w.next(),y={};!u.done;y={method$jscomp$48:void 0},u=w.next())y.method$jscomp$48=u.value,q[y.method$jscomp$48]=function(e){return function(){return this.host[e.method$jscomp$48].apply(this.host,arguments)}}(y)};
tUl=function(){var q=uf.prototype,w=[].concat(_.Cm(yHj?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.Cm(kKc?[]:["querySelector","querySelectorAll"]));w=_.P(w);for(var u=w.next(),y={};!u.done;y={method$jscomp$49:void 0},u=w.next())y.method$jscomp$49=u.value,q[y.method$jscomp$49]=function(e){return function(){return this.root[e.method$jscomp$49].apply(this.root,arguments)}}(y)};
Flc=function(){var q=uf.prototype,w=[].concat(_.Cm(PbH?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.Cm(XAf?[]:["parentNode"]));w=_.P(w);for(var u=w.next(),y={};!u.done;y={prop$jscomp$62:void 0},u=w.next())y.prop$jscomp$62=u.value,Object.defineProperty(q,y.prop$jscomp$62,{get:function(e){return function(){return this.host[e.prop$jscomp$62]}}(y),
configurable:!0})};
HQs=function(){var q=uf.prototype,w=["activeElement"].concat(_.Cm(PbH?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.Cm(GK7?[]:["children"]),_.Cm(nzy?[]:["lastChild"]));w=_.P(w);for(var u=w.next(),y={};!u.done;y={prop$jscomp$63:void 0},u=w.next())y.prop$jscomp$63=u.value,Object.defineProperty(q,y.prop$jscomp$63,{get:function(e){return function(){return this.root[e.prop$jscomp$63]}}(y),
configurable:!0})};
Wl7=function(){for(var q=uf.prototype,w=_.P(["innerHTML","textContent"]),u=w.next(),y={};!u.done;y={prop$jscomp$64:void 0},u=w.next())y.prop$jscomp$64=u.value,Object.defineProperty(q,y.prop$jscomp$64,{get:function(e){return function(){return this.root[e.prop$jscomp$64]}}(y),
set:function(e){return function(t){this.root[e.prop$jscomp$64]=t}}(y),
configurable:!0})};
spH=function(q){var w=uf.prototype;q=_.P(Object.entries(q));for(var u=q.next(),y={};!u.done;y={fn$jscomp$361:void 0},u=q.next()){var e=_.P(u.value);u=e.next().value;e=e.next().value;y.fn$jscomp$361=e;w[u]=function(t){return function(){return t.fn$jscomp$361.apply(null,[this.host.node||this.host].concat(_.Cm(arguments)))}}(y)}};
QpH=function(){for(var q=uf.prototype,w=_.P(Object.entries(Nuo)),u=w.next(),y={};!u.done;y={fn$jscomp$362:void 0},u=w.next()){var e=_.P(u.value);u=e.next().value;e=e.next().value;y.fn$jscomp$362=e;Object.defineProperty(q,u,{get:function(t){return function(){return t.fn$jscomp$362.apply(null,[this.host.node||this.host].concat(_.Cm(arguments)))}}(y),
configurable:!0})}};
_.y6=function(q){return q instanceof IW6||q instanceof Document?q:new IW6(q)};
iQJ=function(){for(var q=IW6.prototype,w=_.P("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),u=w.next(),y={};!u.done;y={method$jscomp$50:void 0},u=w.next())y.method$jscomp$50=u.value,q[y.method$jscomp$50]=function(e){return function(){return HTMLElement.prototype[e.method$jscomp$50].call.apply(HTMLElement.prototype[e.method$jscomp$50],[this.node].concat(_.Cm(arguments)))}}(y)};
rHz=function(){for(var q=IW6.prototype,w=_.P("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),u=w.next(),y={};!u.done;y={prop$jscomp$65:void 0},u=w.next())y.prop$jscomp$65=u.value,Object.defineProperty(q,y.prop$jscomp$65,{get:function(e){return function(){var t;return(t=this.node["__shady_native_"+e.prop$jscomp$65])!=null?t:this.node[e.prop$jscomp$65]}}(y),
configurable:!0})};
_.ef=function(q,w,u){u===void 0&&(u=!q.classList.contains(w));u?q.classList.add(w):q.classList.remove(w)};
_.kd=function(q,w,u){u===void 0&&(u=!q.hasAttribute(w));if(w==="class")throw Error("eg");u?_.y6(q).setAttribute(w,""):_.y6(q).removeAttribute(w)};
UEs=function(q){return(q.localName!=="slot"?[]:(0,_.tM)(q).assignedNodes({flatten:!0})).filter(function(w){return w.nodeType===Node.ELEMENT_NODE})};
_.Tu6=function(q){return(q=_.A(q).querySelector("slot"))&&q.localName==="slot"?UEs(q):[]};
_.Pj=function(q,w){window.ShadyCSS&&window.ShadyCSS.styleSubtree(q,w)};
Xj=function(q,w){var u=w.bind(q);return function(y){u(y,y.detail)}};
_.Fj=function(q,w){var u=Cb7.get(q);u||(u=new WeakMap,Cb7.set(q,u));if(u.has(w))return u.get(w);if(_.T("web_fi_listen_disable_bound_fn_helper")){var y=w.bind(q);q=function(e){y(e,e==null?void 0:e.detail)}}else q=Xj(q,w);
u.set(w,q);return q};
ozf=function(q,w){dEJ(q);q.created[OQo].push(w)};
dEJ=function(q){if(!q.created||!q.created[OQo]){var w=q.created,u=w?[w]:[];q.created=function(){for(var y=_.P(u),e=y.next();!e.done;e=y.next())e.value.apply(this)};
q.created[OQo]=u}};
VUu=function(q){return function(){var w=_.Cj.apply(0,arguments);return function(u,y,e){q.apply(null,_.Cm(w))(u,y,e)}}};
fWf=function(){return function(){var q=_.Cj.apply(0,arguments);return function(w,u,y){TZM.apply(null,_.Cm(q))(w,u,y)}}};
_.D=function(q){return fWf()(q)};
_.Z=function(){return VUu(oXl).apply(null,_.Cm(_.Cj.apply(0,arguments)))};
_.Gm=function(q){return _.T("pbcm_fi_listen_decorators")?mEs(q):VUu(dLz)(q)};
mEs=function(q){return function(w,u){ozf(w,function(){var y=this[u],e=_.T("web_fi_listen_disable_bound_fn_helper")?function(t){y(t,t.detail)}.bind(this):Xj(this,y);
AHu.has(q)?DO(this.hostElement,q,e):this.hostElement.addEventListener(q,e)})}};
_.nL=function(){return VUu(OCf).apply(null,_.Cm(_.Cj.apply(0,arguments)))};
_.v=function(q){q=q===void 0?{}:q;return VUu(CUJ)(q)};
_.Hj=function(q){if(q.hostElement&&q!==q.hostElement){var w=_.fN(q.hostElement);w=q.renderIdom?w:w.shadowRoot}w||(q=q.root,w=q instanceof Node?_.fN(q):null);return w};
_.Wj=function(q){return JHj?zZM(q):function(w,u){Object.defineProperty(w,u,{get:function(){var y;return(y=_.Hj(this))==null?void 0:y.querySelector(q)},
enumerable:!0,configurable:!0})}};
zZM=function(q){return function(w,u){Object.defineProperty(w,u,{get:function(){var y,e=(y=_.A(this.hostElement))==null?void 0:y.querySelector(q);if(e)return e;var t;return(t=_.Hj(this))==null?void 0:t.querySelector(q)},
enumerable:!0,configurable:!0})}};
_.s6=function(q){return JHj?aWj(q):function(w,u){Object.defineProperty(w,u,{get:function(){var y;return(y=_.Hj(this))==null?void 0:y.querySelectorAll(q)},
enumerable:!0,configurable:!0})}};
aWj=function(q){return function(w,u){Object.defineProperty(w,u,{get:function(){var y,e=(y=_.A(this.hostElement))==null?void 0:y.querySelectorAll(q);if(e==null?0:e.length)return e;var t;return(t=_.Hj(this))==null?void 0:t.querySelectorAll(q)},
enumerable:!0,configurable:!0})}};
DEc=function(q){return function(w){if(![_.q4,_.Y].includes(Object.getPrototypeOf(w.prototype).constructor))throw Error("fg");Wpc(Object.assign({},typeof q!=="string"?q:{is:q,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(w)}};
_.Q6=function(){var q=q===void 0?{}:q;return function(w){if(![w1,_.Na].includes(Object.getPrototypeOf(w.prototype).constructor))throw Error("gg");s5H(Object.assign({},q,{disableInheritanceCheck:!0}))(w)}};
pA7=function(q,w){ZQ7[q]!=null||(ZQ7[q]=new Set);ZQ7[q].add(w)};
_.I9=function(){var q=_.nL.apply(null,_.Cm(_.Cj.apply(0,arguments)));return function(w,u){pA7(w.is,u);q(w,u)}};
Tm=function(q,w,u){if(rN(q)&&!$E7.has(w)){w=w.replace(/^JSC\$[\d]+_/,"");w=w.replace(/\.\d+(\.|$)/g,function(t,X){return".#"+X});
U6[q]!=null||(U6[q]={});var y,e;(y=U6[q])[e=w]!=null||(y[e]=new Set);U6[q][w].has(u)||(U6[q][w].add(u),_.pn("polymerPropertyAccessEvent",{componentName:q,propertyName:w,accessType:u}))}};
vzc=function(){return _.T("polymer_property_access_logging_debug")||_.T("polymer_enable_property_access_logging")};
rN=function(q){if(_.T("polymer_property_access_logging_debug"))return!0;if(!_.T("polymer_enable_property_access_logging"))return!1;bQM||(bQM=Date.now());return(Rx(q)+bQM)%100<_.Fc("polymer_property_access_logging_percent")};
YiM=function(q,w){return rN(w)&&q.hostElement.loggingStatus?new Proxy(q,{get:function(u,y,e){if(u.hostElement.loggingStatus.bypassProxyController)return u[y];u.hostElement.loggingStatus.isExternalGet=!0;var t=u[y];u.hostElement.loggingStatus.isExternalGet=!1;if(t instanceof Function)return function(){var X=_.Cj.apply(0,arguments);try{return u.hostElement.loggingStatus.currentExternalCall=y,Tm(w,y,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),t.apply(this===e?u:this,X)}finally{u.hostElement.loggingStatus.currentExternalCall=
void 0}};
Tm(w,y,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return t},
set:function(u,y,e){if(u.hostElement.loggingStatus.bypassProxyController)return u[y]=e,!0;u.hostElement.loggingStatus.isRendererStamper?Tm(w,y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):u.hostElement.loggingStatus.isDeclarativeExternal||Tm(w,y,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{u.hostElement.loggingStatus.currentExternalSet=y,u[y]=e}finally{u.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):q};
gzf=function(q,w){q&&q.loggingStatus&&!q.loggingStatus.isDeclarativeExternal&&!q.loggingStatus.isExternalGet&&q.loggingStatus.currentExternalSet!==w&&Tm(q.tagName.toLowerCase(),w,"PROPERTY_ACCESS_GET_INTERNAL")};
CL=function(q,w,u){q&&(u||q.loggingStatus&&!q.loggingStatus.isInitializing&&!q.loggingStatus.isDefiningPropertyAccessor&&q.loggingStatus.currentExternalSet!==w)&&Tm(q.tagName.toLowerCase(),w,"PROPERTY_ACCESS_SET_INTERNAL")};
Ezz=function(){return{_definePropertyAccessor:function(q,w){var u=this,y=u.hostElement.loggingStatus;y&&(y.isDefiningPropertyAccessor=!0);var e=u[q];e!==void 0&&(u.__data?u._setPendingProperty(q,e):(u.__dataProto!=null||(u.__dataProto={}),u.__dataProto[q]=e));y&&(y.isDefiningPropertyAccessor=!1);Object.defineProperty(this,q,{get:function(){gzf(u.hostElement,q);return this.__data[q]},
set:function(t){w||this._setPendingProperty(q,t,!0)&&this._invalidateProperties()}})},
created:function(){var q=this._setPendingProperty.bind(this);this._setPendingProperty=function(w,u,y){CL(this.hostElement,w);return q.apply(this,[w,u,y])}}}};
RZl=function(q){vzc()&&_.D(dN.prototype)(q.prototype,"__templateBindingLoggingBehavior")};
cHM=function(q,w){if(w.resolvedFactories.length!==q.resolvedFactories.length)return!0;w=_.P(w.resolvedFactories.entries());for(var u=w.next();!u.done;u=w.next()){var y=_.P(u.value);u=y.next().value;y=y.next().value;if(y.providerClass){if(y.providerClass!==q.resolvedFactories[u].providerClass)return!0}else if(y.providerValue){if(y.providerValue!==q.resolvedFactories[u].providerValue)return!0}else if(y.factory!==q.resolvedFactories[u].factory)return!0}return!1};
Sil=function(q,w){q=_.P(q);for(var u=q.next();!u.done;u=q.next())if(u=u.value,u.constructor===Array)Sil(u,w);else{var y=w;y.has(u)||(u.inject&&y.add(u),u.behaviors&&Sil(u.behaviors,y))}};
O6=function(q,w){var u=q[w];q[w]=function(){var y=_.Cj.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(u)return u.apply(this,y)}};
LlJ=function(){_.o9.Class=function(u,y){u=hZj(u,y);O6(u.prototype,"created");return u};
O6(V6.prototype,"_initializeProperties");O6(_.fL.prototype,"_initializeProperties");if(jpz)O6(lW7,"created");else{var q=function(){O6(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))q();else{var w=customElements.define;customElements.define=function(u,y,e){w.call(customElements,u,y,e);u==="tp-yt-iron-list"&&(q(),customElements.define=w)}}}};
Klz=function(q,w){q.prototype.behaviors=q.prototype.behaviors||[];q.prototype.behaviors.unshift(MUM.InjectBehavior);q.prototype.provide=w};
_.JM=function(q){return function(w){if(!q.disableElementRegistration){q.noInjection||Klz(w,q.providers);var u=w.prototype;u.__templateHelpers||TZM(mP.prototype)(u,"__templateHelpers");u=q.is;BuM||(BuM=Date.now());(Rx(u)+BuM)%100<_.Fc("polymer_log_prop_change_observer_percent")&&TZM(AM.prototype)(w.prototype,"__propertyObserverObserver");w.prototype.behaviors=w.prototype.behaviors||[];w.prototype.behaviors.unshift(_.xEs.YtHostElementBehavior);RZl(w);DEc({is:q.is,notifyObserversOnUndefined:q.notifyObserversOnUndefined!==
!1,fastInit:q.fastInit,template:q.template,disableEnforceFastDefaultValuesCheck:!0})(w)}}};
_.E=function(q){return _.JM({is:q.is,template:q.template,disableElementRegistration:q.disableElementRegistration,cssBuildOptOut:q.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
urM=function(q,w){if(qJJ){q=new q;for(var u=_.P(Object.getOwnPropertyNames(q)),y=u.next();!y.done;y=u.next())y=y.value,w[y]=q[y];for(u=w;u&&u!==Object.prototype;u=Object.getPrototypeOf(u)){y=_.P(Object.getOwnPropertyNames(u));for(var e=y.next();!e.done;e=y.next())e=e.value,q.hasOwnProperty(e)||Object.defineProperty(q,e,wty(w,e))}}else q.apply(w)};
wty=function(q,w){return{get:function(){var u=q[w];return u instanceof Function?u.bind(q):u},
set:function(u){q[w]=u}}};
esM=function(q,w){for(var u=q._noAccessors,y=_.P(Object.getOwnPropertyNames(q)),e=y.next();!e.done;e=y.next())if(e=e.value,!yi7.has(e))if(u)w[e]=q[e];else{var t=Object.getOwnPropertyDescriptor(q,e);t&&(t.configurable=!0,Object.defineProperty(w,e,t))}};
kLo=function(q,w,u){return function(y){if(u){var e=u();y.model=e}if(q[w])q[w](y,y.detail)}};
zm=function(q){var w=[];if(typeof q==="string")q.length>0&&w.push.apply(w,_.Cm(q.split(".")));else{q=_.P(q);for(var u=q.next();!u.done;u=q.next())u=u.value,typeof u==="string"?w.push.apply(w,_.Cm(u.split("."))):w.push(u)}return w};
tjH=function(q,w){if(w[w.length-1]!=="*"&&w[w.length-1]!=="splices"){for(var u=0;u<w.length;u++){if(!q)return;q=q[w[u]]}return q}};
Ply=function(q,w){if(q.length>w.length)return!1;for(var u=0;u<q.length;u++)if(q[u]!==w[u])return!1;return!0};
FUM=function(q,w,u){if(w.type==="compute"){var y=w.getter.bind(u);var e=w.args}else y=function(){return u[w.method.methodName].apply(u,_.Cm(_.Cj.apply(0,arguments)))},e=w.method.args;
XtH(q,w.propertyKey,y,e,w.value)};
nLz=function(q,w){if(w.readOnly){var u=Object.getOwnPropertyDescriptor(q.model,w.propertyKey);Object.defineProperty(q.model,w.propertyKey,{get:u.get,set:function(){}});
q.model[GL7(w.propertyKey)]=u.set}};
Hzz=function(q,w,u){if(u){var y=w.propertyKey,e=w.selector;w=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.Cm(w.selectorArgs.map(function(t){return{type:"path",path:t}})));
XtH(q,y,function(t){var X=_.Cj.apply(1,arguments);return e.apply(null,[u.getState()].concat(_.Cm(X)))},w)}};
s1j=function(q,w,u){var y=_.i9(w.propertyKey)+"-changed";WU4(q,function(e){var t={value:e.value,queueProperty:!0};e.path.split(".").length>1&&(t.path=e.path);u.dispatchEvent(new CustomEvent(y,{detail:t}))},[{type:"wildcard",
path:w.propertyKey}])};
Ny6=function(q,w,u){WU4(q,function(){u[w.method.methodName].apply(u,_.Cm(_.Cj.apply(0,arguments)))},w.method.args)};
GL7=function(q){return"_set"+(q.charAt(0).toUpperCase()+q.slice(1))};
Q1s=function(){var q,w=pD(function(u){q=u},!1);
return[q,w]};
Tys=function(q){q=q.trim().replace(I8M,",").replace(izu,"$1");var w=q[0];w==="-"&&(w=q[1]);if(w>="0"&&w<="9")return{type:"literal",value:Number(q)};if(w==="'"||w==='"')return{type:"literal",value:q.slice(1,-1)};if(w=q.match(riy)){w=w[1];var u=Uwy[w];if(u)return{type:u,path:q.slice(0,-(w.length+1))}}return{type:"path",path:q}};
oLo=function(q){var w=q.match(Cl6);if(w)return q={methodName:w[1],args:dw7},w[2].trim()&&(w=w[2].replace(Ozz,"&comma;").split(","),q.args=w.map(Tys)),q};
Vj7=function(q,w,u,y){y=y===void 0?!1:y;w=_.i9(w);var e=CJ;e&&(u=e(u,w,"attribute",q));a9(q,u,w,y)};
a9=function(q,w,u,y){w=f8o(w,y===void 0?!1:y);w===void 0?q.removeAttribute(u):q.setAttribute(u,w)};
f8o=function(q,w){switch(typeof q){case "object":case "function":if(q instanceof Date)return q.toString();if(q){if((w===void 0?0:w)&&!_.T("polymer_reflect_objects_as_boolean_killswitch"))return q?"":void 0;w=window.trustedTypes?window.trustedTypes.isHTML(q)||window.trustedTypes.isScript(q)||window.trustedTypes.isScriptURL(q):void 0;if(w)return q;try{return JSON.stringify(q)}catch(u){_.Y8(Error("Cg`"+q))}}break;case "boolean":return q?"":void 0;default:return q!==null&&q!==void 0?q.toString():void 0}};
mwj=function(q){if(q===void 0)throw Error("Dg");return q};
DwH=function(q,w,u,y){var e=Aij(y);if(e.length){y=u;var t="property";Ji4.test(u)?t="attribute":u[u.length-1]==="$"&&(u=u.slice(0,-1),t="attribute");var X=zs6(e);X&&t==="attribute"&&(u==="class"&&q.hasAttribute("class")&&(X+=" "+q.getAttribute(u)),a9(q,X,u));t==="attribute"&&y==="disable-upgrade$"&&q.setAttribute("disable-upgrade","");q.localName==="input"&&y==="value"&&q.setAttribute("value","");q.removeAttribute(y);t==="property"&&(u=_.r1(u));w=mwj(w);a8J(w,t,u,e);return!0}return u.slice(0,3)===
"on-"?(q.removeAttribute(u),(t=w).events!=null||(t.events=[]),w.events.push({name:u.slice(3),value:y}),!0):u==="id"?(w.id=y,!0):!1};
Aij=function(q){for(var w=[],u=0,y;(y=ZzM.exec(q))!==null;){y.index>u&&w.push({type:"literal",value:q.slice(u,y.index)});var e=y[1][0];u=!!y[2];y=y[3].trim();if(e==="{")throw Error("Eg");(e=oLo(y))?w.push({type:"method",negate:u,signature:e}):w.push({type:"path",negate:u,path:y});u=ZzM.lastIndex}u&&u<q.length&&(q=q.substring(u))&&w.push({type:"literal",value:q});return w};
zs6=function(q){for(var w="",u=0;u<q.length;u++){var y=q[u];y.type==="literal"&&(w+=y.value)}return w};
a8J=function(q,w,u,y){q.bindings!=null||(q.bindings=[]);q.bindings.push({kind:w,target:u,parts:y})};
YJy=function(q,w,u){var y=!1;if(q.localName==="template"){y=u;var e=w.stripWhitespace;e=ptJ(q,e===void 0?!1:e);var t=q.content.ownerDocument.createDocumentFragment();e.content=t;t.appendChild(q.content);y&&(y.templateInfo=e);y=!0}else q.localName==="slot"&&(w.hasInsertionPoint=!0);if(q.firstChild&&(e=u,q.localName!=="script"&&q.localName!=="style")){t=0;for(var X=q.firstChild;X;){var G=X;if(G.localName==="template"){var n=G.getAttribute("is");if((X=n==="dom-if")||n==="dom-repeat"){G.removeAttribute("is");
n=G.ownerDocument.createElement("ps-"+n);G.parentNode.replaceChild(n,G);n.appendChild(G);var N=Array.from(G.attributes);N=_.P(N);for(var Q=N.next();!Q.done;Q=N.next())Q=Q.value,X?$wM.has(Q.name)&&a9(n,Q.value,Q.name):vLu.has(Q.name)?a9(n,Q.value,Q.name):bz7.has(Q.name),G.removeAttribute(Q.name);X=n}else X=G}if(X.nodeType===Node.TEXT_NODE){G=void 0;n=q;for(N=X;((G=N.nextSibling)==null?void 0:G.nodeType)===Node.TEXT_NODE;)Q=void 0,(Q=N).textContent!=null||(Q.textContent=""),N.nextSibling.textContent&&
(N.textContent+=N.nextSibling.textContent),n.removeChild(N.nextSibling);if(w.stripWhitespace&&X.textContent&&!X.textContent.trim()){q.removeChild(X);X=X.nextSibling;continue}}YJy(X,w,{parentIndex:t,parentInfo:e});X.parentNode&&t++;X=X.nextSibling}}var I;if((I=q.hasAttributes)==null?0:I.call(q)){I=u=mwj(u);e=!1;t=Array.from(q.attributes);t=_.P(t);for(G=t.next();!G.done;G=t.next())G=G.value,e=DwH(q,I,G.name,G.value)||e;y=e||y}q.nodeType===Node.TEXT_NODE&&(I=Aij(q.textContent),I.length&&(q.textContent=
zs6(I)||" ",u=mwj(u),a8J(u,"text","textContent",I),y=!0));u&&y&&(u.infoIndex=w.nodeInfoList.push(u)-1)};
ptJ=function(q,w){w={nodeInfoList:[],stripWhitespace:(w===void 0?!1:w)||q.hasAttribute("strip-whitespace")};YJy(q.content,w);return w};
gL4=function(q){Object.assign(q,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
Rsc=function(q,w,u){w.signalCache!=null||(w.signalCache={});var y=w.signalCache[u];if(!y){var e=u.split("."),t,X;y=_.T("web_polysi_immutable_root_fix_killswitch")?!((t=q.options)==null?0:(X=t.immutableProps)==null?0:X.has(e[0])):!ELl(q,e[0]);if(e.length>1&&y){var G=q.getPathMutationSignal(e);y=function(){var n=bO(q.owner,function(){return q.getWithPath([e[0]])}),N,Q=(N=G())==null?void 0:N.value;
return{rootWasDefined:n!==void 0,value:Q}}}else y=function(){var n=q.getWithPath(e);
return{rootWasDefined:n!==void 0,value:n}};
w.signalCache[u]=y}return y()};
SJ4=function(q,w,u,y,e){w=w.parts.map(function(X,G){if(X.type==="literal"){u.partWasDefined!=null||(u.partWasDefined=[]);var n;(n=u.partWasDefined)[G]||(n[G]=X.value!==void 0);return X.value}var N;if(X.type==="method"){var Q,I=(Q=(N=u.partWasDefined)==null?void 0:N[G])!=null?Q:!1;I||(I=X.signature.args.every(function(V){return V.type==="literal"}));
var U=!1,d=!0;N=X.signature.args.map(function(V){if(V.type==="literal")return V.value;if(V.type!=="path")throw Error("Fg`"+V.type);var J=Rsc(q,u,V.path);V=J.value;J=J.rootWasDefined;U||(U=J);d&&(d=J);return V});
I||(I=e===1?d:U);u.partWasDefined!=null||(u.partWasDefined={});u.partWasDefined[G]=I;if(!I)return;N=(G=Rsc(q,u,X.signature.methodName).value)&&typeof G==="function"?G.apply(y,N):void 0}else Q=Rsc(q,u,X.path),N=Q.value,u.partWasDefined!=null||(u.partWasDefined={}),(I=u.partWasDefined)[G]||(I[G]=N!==void 0||Q.rootWasDefined);X.negate&&(N=!N);return N});
if(w.length===1){var t;return((t=u.partWasDefined)==null?0:t[0])?w[0]:ciH}return w.join("")};
hss=function(q){return typeof q==="object"&&!!q&&"notifyPath"in q&&"canNotifyPath"in q};
j1z=function(q){return typeof q==="object"&&!!q&&"notifyPath"in q};
l87=function(q){return"polymerController"in q};
LUj=function(q,w){w=""+zm(w)[0];if(hss(q))return q.canNotifyPath(w);if(l87(q)&&hss(q.polymerController))return q.polymerController.canNotifyPath(w);if(j1z(q)){var u;return!((u=q.properties)==null||!u[w])}if(l87(q)&&j1z(q.polymerController)){var y;return!((y=q.polymerController.properties)==null||!y[w])}return!1};
Mj4=function(q,w,u){hss(q)||j1z(q)?q.notifyPath(w,u):l87(q)&&(hss(q.polymerController)||j1z(q.polymerController))&&q.polymerController.notifyPath(w,u)};
Byz=function(q,w,u){if(u!==ciH){q.kind==="attribute"||q.target!=="textContent"&&(q.target!=="value"||w.localName!=="input"&&w.localName!=="textarea")||(u=u===void 0?"":u);var y,e=(y=KUo.Polymer)==null?void 0:y.sanitizeDOMValue;e&&(u=e(u,q.target,q.kind,w));if(q.kind==="attribute"){q=q.target;if(q==="class"||q==="name"||q==="slot")w=(0,_.tM)(w);a9(w,u,q)}else if(q=q.target,u!==w[q]||typeof u==="object")w.loggingStatus&&(w.loggingStatus.isDeclarativeExternal=!0,Tm(w.localName,q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
w[q]=u,w.loggingStatus&&(w.loggingStatus.isDeclarativeExternal=!1)}};
xwJ=function(q,w,u,y){var e=w.parts[0];if(w.parts.length!==1||e.type!=="path"||!LUj(u,w.target))return!1;var t=_.P(e.path.split(".")),X=t.next().value,G=B2(t);if(!_.T("web_polysi_immutable_root_fix_killswitch")&&ELl(q,X))return!1;y.signalCache!=null||(y.signalCache={});t=y.signalCache[e.path];var n;t=(n=t)==null?void 0:n().value;if((t==null?void 0:t.path)!==void 0){y=zm(t.path);var N=zm(e.path);y=[w.target].concat(_.Cm(y.slice(N.length-1)));Mj4(u,y,e.negate?!t.value:t.value);return!0}var Q=DM(q,X);
var I=Q.getChangeRecordSignal(G),U=!1;t=function(){if(!U){var V=bO(q.owner,function(){return Q.getWithPath([])});
U||(U=V!==void 0)}return{value:I(),rootWasDefined:U}};
y.signalCache[e.path]=t;y.partWasDefined!=null||(y.partWasDefined={});t=t();(N=y.partWasDefined)[0]||(N[0]=t.rootWasDefined);var d=bO(q.owner,function(){return Q.getWithPath(G)});
y.partWasDefined[0]&&bO(q.owner,function(){return void Byz(w,u,e.negate?!d:d)});
return!0};
qpo=function(q,w,u,y,e,t){if(!xwJ(q,w,u,y)){var X=SJ4(q,w,y,e,t);bO(q.owner,function(){return void Byz(w,u,X)})}};
wF4=function(q,w,u,y,e,t){u=_.P(u);for(var X=u.next(),G={};!X.done;G={infoIndex:void 0},X=u.next()){X=X.value;var n=X.bindings;G.infoIndex=X.infoIndex;X=X.parentInfo;if(n){n=_.P(n);for(var N=n.next(),Q={};!N.done;Q={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},N=n.next()){Q.b$jscomp$254=N.value;if(G.infoIndex===void 0)throw Error("Gg");Q.bindingCtx$jscomp$4={};q.effect(function(I,U){return function(){e&&!e()||qpo(q,I.b$jscomp$254,w[U.infoIndex],I.bindingCtx$jscomp$4,y,t)}}(Q,G))}}X&&wF4(q,w,[X],
y,e,t)}};
uM4=function(q,w){q=(w.parentInfo?uM4(q,w.parentInfo):q).firstChild;for(var u=0;q;q=q.nextSibling)if(w.parentIndex===u++)return q;throw Error("Hg");};
enz=function(q,w,u,y){q=document.importNode(q.content,!0);q.__noInsertionPoint=!(y==null?0:y.hasInsertionPoint);for(var e=Array(w.length),t={},X=0;X<w.length;X++){var G=w[X],n=uM4(q,G);e[X]=n;G.id&&(t[G.id]=n);if(G.templateInfo){var N=n.parentElement;N&&(N.templateInfo=G.templateInfo,N.parentSignalProxy=u,N.eventListenerHost=y.eventListenerHost,N.stampingEnabled=y.enabledSignal)}N=void 0;if((N=G.events)==null?0:N.length)for(N=0;N<G.events.length;N++){var Q=G.events[N];yR6(y.eventListenerHost,n,Q.name,
Q.value,y.getModel)}}wF4(u,e,w,y.thisCtx,y.enabledSignal,y.methodInvocationRequirement);return{root:q,nodes:e,nodesById:t}};
tmf=function(q,w){q=q();var u;(u=kEz.ShadyCSS)==null||u.prepareTemplate(q,w);w=ptJ(q);return{template:q,nodeInfoList:w.nodeInfoList,hasInsertionPoint:w.hasInsertionPoint}};
FYo=function(){Pef=!1;for(var q=ZM.length,w=0;w<q;w++){var u=ZM[w];if(u)try{u()}catch(y){Promise.resolve().then(function(){throw y;})}}ZM.splice(0,q);
XF7+=q};
WYl=function(q){Pef||(Pef=!0,GEJ.textContent=(nVj++).toString());ZM.push(q);return H0z++};
_.vj=function(q,w,u){pL++;q=w?new sE4(pL,q,w,u):new NT7(pL,q);$d.set(pL,q);return pL};
QEs=function(q){(q=$d.get(q))&&q.cancel()};
i0y=function(q,w){q=ImM.get(q);return q?(w=q.get(w))?w:null:null};
_.bf=function(q,w,u,y){var e=i0y(q,w);if(!e){e=new rRz;var t=ImM.get(q);t||(t=new Map,ImM.set(q,t));t.set(w,e)}q=u.bind(q);e.run(q,y,void 0)};
_.UP4=function(q,w){var u;(u=i0y(q,w))==null||u.cancel()};
TTj=function(q){var w;(w=i0y(q,"doRender"))==null||w.flush()};
Yd=function(q){var w;return(w=q.hostElement)!=null?w:q};
CeH=function(q){var w=q.indexOf(".");return w===-1?q:q.slice(0,w)};
dPc=function(q,w,u,y,e,t){t=(e=(y=t?CeH(w):w)?w:null)?q.get(e):q.__data[w];e&&t===void 0&&(t=u[w]);_.t7(q.hostElement,KoH(y)+"-changed",{value:t,queueProperty:!0,path:e!=null?e:void 0},{bubbles:!1,composed:!1})};
O0z=function(q,w){q.__isReflecting=!0;Vj7(q.hostElement,w,q.__data[w]);q.__isReflecting=!1};
oVJ=function(q){if(q._onIronRequestResizeNotifications){var w=q._onIronRequestResizeNotifications.bind(q);q._onIronRequestResizeNotifications=function(u){_.he(u)!==q.hostElement&&w(u)}}q._ariaActiveAttributeChanged&&(q._ariaActiveAttributeChanged=q._ariaActiveAttributeChanged.bind(q.hostElement));
q._activeChanged&&(q._activeChanged=function(u){q.toggles?a9(q.hostElement,u?"true":"false",q.ariaActiveAttribute):q.hostElement.removeAttribute(q.ariaActiveAttribute);q._changedButtonState()});
q._asyncClick&&(q._asyncClick=function(){_.vj(function(){q.hostElement.click()},1)});
!q.keyEventTarget||q.keyEventTarget instanceof EventTarget||(q.keyEventTarget=Yd(q.keyEventTarget));q._disabledChanged&&(q._disabledChanged=q._disabledChanged.bind(q.hostElement));q._observeItems&&(q._observeItems=function(u){var y=Yd(u);return _.fN(y).observeNodes(function(e){q._updateItems();q._updateSelected();_.t7(y,"iron-items-changed",e,{bubbles:!1,cancelable:!1})})});
q._updateItems&&q._updateItems===_.gN._updateItems&&(q._updateItems=function(){var u=_.fN(q.hostElement).queryDistributedElements(q.selectable||"*");u=Array.prototype.filter.call(u,q._bindFilterItem);q._setItems(u)});
q._computeKeyboardClass&&(q._computeKeyboardClass=function(u){_.ef(q.hostElement,"keyboard-focus",u)});
q.ensureRipple&&(q.ensureRipple=function(u){if(q.hasRipple&&!q.hasRipple()){if(!q._createRipple)return;q._ripple=q._createRipple();q._ripple.noink=q.noink;var y=q._rippleContainer||q.hostElement;y&&_.A(y).appendChild(q._ripple)}var e;if(u&&((e=q._ripple)==null?0:e.uiDownAction)){y=_.A(q._rippleContainer||q.hostElement);var t;e=(t=u.composedPath())==null?void 0:t[0];y.contains(e)&&q._ripple.uiDownAction(u)}});
q._updateMultiselectable&&(q._updateMultiselectable=function(u){u?q.hostElement.setAttribute("aria-multiselectable","true"):q.hostElement.removeAttribute("aria-multiselectable")})};
Vm7=function(q,w,u){u=_.P(u);for(var y=u.next();!y.done;y=u.next())urM(y.value.constructor,q);urM(w.constructor,q)};
mPJ=function(q,w){q=_.P(q);for(var u=q.next();!u.done;u=q.next())if(u=u.value,u.type==="signal"){var y=u.propertyKey;if(w.hasOwnProperty(y)&&w[y]!=null&&u.attributeType===Object){a:{y=w[y].constructor;for(var e=_.P(fmc),t=e.next();!t.done;t=e.next())if(t=t.value,y===t){y=t;break a}y=Object}u.attributeType=y}}};
ARf=function(){};
JR6=function(q){var w;return(w=q.hostElement)!=null?w:q};
zn7=function(){throw Error("Lg");};
amj=function(q,w){q.constructor.prototype.useSignals=!0;var u=new q.constructor;Vm7(u,q,w.behaviors);mPJ(w.reactiveSchemas,u);u={};for(var y=_.P(w.reactiveSchemas),e=y.next();!e.done;e=y.next())e=e.value,e.type==="signal"&&(u[e.propertyKey]=e.attributeType);var t={copyPropertiesToProto:zn7,didRegister:!1,typesForSignals:u},X=["disable-upgrade"].concat(_.Cm(w.observedAttributes)),G=function(n){E6.call(this,q,w,t,n)};
_.O(G,E6);_.x$.Object.defineProperties(G,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return X}}});
t.copyPropertiesToProto=function(){for(var n=0;n<w.behaviors.length;n++)esM(w.behaviors[n],G.prototype);esM(q,G.prototype)};
w.legacyOptimizations||t.copyPropertiesToProto();G.prototype.is=q.is;return G};
DP6=function(q,w){if(Object.getPrototypeOf(w.prototype).constructor!==_.Y)throw Error("Mg");w.prototype.is=q.is;return amj(w.prototype,q)};
Z0s=function(q){return q.type==="compute"||q.type==="computeWithMethod"};
pFz=function(q){for(var w=q.reactiveSchemas.filter(Z0s),u=new Map,y=new Map,e=new Map,t=_.P(w),X=t.next();!X.done;X=t.next())X=X.value,u.set(X.propertyKey,X),y.set(X.propertyKey,[]),e.set(X.propertyKey,0);t=0;w=_.P(w);for(X=w.next();!X.done;X=w.next()){X=X.value;for(var G=_.P(X.type==="computeWithMethod"?X.method.args:X.args),n=G.next();!n.done;n=G.next())n=n.value,n.type!=="literal"&&(n=n.path.split(".")[0],y.has(n)&&(y.get(n).push(X.propertyKey),e.set(X.propertyKey,e.get(X.propertyKey)+1),t++))}X=
[].concat(_.Cm(y.keys())).filter(function(N){return e.get(N)===0});
for(w=[];X.length;)for(G=X.shift(),w.push(u.get(G)),G=_.P(y.get(G)),n=G.next();!n.done;n=G.next())n=n.value,e.set(n,e.get(n)-1),t--,e.get(n)===0&&X.push(n);u=q.reactiveSchemas.filter(function(N){return!Z0s(N)});
q.reactiveSchemas=[].concat(_.Cm(u),_.Cm(w))};
$Pj=function(q,w){if(w.properties)for(var u=_.P(Object.entries(w.properties)),y=u.next();!y.done;y=u.next()){var e=_.P(y.value);y=e.next().value;e=e.next().value;q.properties[y]=typeof e==="function"?{type:e}:e}w.observers&&q.observers.push.apply(q.observers,_.Cm(w.observers));w.disabledPolySiReactions&&q.disabledPolySiReactions.push.apply(q.disabledPolySiReactions,_.Cm(w.disabledPolySiReactions))};
vVJ=function(q,w){for(var u=w.length-1;u>=0;u--){var y=w[u];Array.isArray(y)?vVJ(q,y):q.indexOf(y)<0&&q.unshift(y)}};
b0c=function(q,w){q.reactiveSchemas=q.reactiveSchemas.filter(function(u){return u.type==="observe"&&w.includes(u.method.methodName)||Z0s(u)&&w.includes(u.propertyKey)?!1:!0})};
gVl=function(q,w){var u=w.prototype,y,e,t={is:q.is,reactiveSchemas:[],observedAttributes:[],behaviors:[MUM.InjectBehavior,mP.prototype],disableElementRegistration:q.disableElementRegistration,provide:(y=q.providers)!=null?y:[],reactivityMode:q.reactivityMode,signalProperties:(e=u.signalProperties)!=null?e:[]};"template"in w?t.templateGetter=function(){return w.template}:q.getTemplate&&(t.templateGetter=q.getTemplate);
u.behaviors&&vVJ(t.behaviors,u.behaviors);Yps(t,w);return t};
Yps=function(q,w){for(var u=w.prototype,y={properties:{},observers:[],disabledPolySiReactions:[]},e=_.P(q.behaviors),t=e.next();!t.done;t=e.next())$Pj(y,t.value);$Pj(y,u);if(q.signalProperties)for(u=_.P(q.signalProperties),e=u.next();!e.done;e=u.next())delete y.properties[e.value];u=_.P(Object.entries(y.properties));for(e=u.next();!e.done;e=u.next()){t=_.P(e.value);e=t.next().value;t=t.next().value;var X=void 0;if((X=q.signalProperties)==null||!X.includes(e)){X=void 0;var G=q,n=t.type;if(!n)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{n=Reflect.getMetadata("design:type",w,e);for(var N=_.P(EVy),Q=N.next();!Q.done;Q=N.next())if(Q=Q.value,n===Q){n=Q;break a}n=Object}else n=String;t.computed||t.selector||(G.reactiveSchemas.push({type:"signal",propertyKey:e,value:t.value,attributeType:n,readOnly:t.readOnly}),G.observedAttributes.push(_.i9(e)));t.reflectToAttribute&&G.reactiveSchemas.push({type:"reflect",propertyKey:e});if(t.computed){n=oLo(t.computed);if(!n)throw Error("Ng");G.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:e,method:n,value:t.value})}t.observer&&G.reactiveSchemas.push({type:"observe",method:{methodName:t.observer,args:[{type:"path",path:e}]}});t.notify&&G.reactiveSchemas.push({type:"notify",propertyKey:e});t.selector&&G.reactiveSchemas.push({type:"redux",propertyKey:e,selector:t.selector,selectorArgs:(X=t.selectorArgs)!=null?X:[]})}}Rnz&&pFz(q);w=_.P(y.observers);for(e=w.next();!e.done;e=w.next())u=q,e=e.value,(t=oLo(e))?u.reactiveSchemas.push({type:"observe",method:t}):console.log('Warning: unable to parse observe declaration: "'+
e+'"');b0c(q,y.disabledPolySiReactions)};
cRy=function(q,w){for(var u=0;u<w.length;u++){var y=w[u],e=void 0;(e=y).showHideApi!=null||(e.showHideApi={});e=void 0;!!q!==!((e=y.showHideApi)==null||!e.hideTemplateChildren)&&(y.nodeType===Node.TEXT_NODE?q?(y.showHideApi.polymerTextContent=y.textContent,y.textContent=""):(e=void 0,y.textContent=(e=y.showHideApi.polymerTextContent)!=null?e:null):y instanceof Element&&y.localName==="slot"?q?(y.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.tM)((0,_.tM)(y).parentNode).replaceChild(y.showHideApi.polymerReplaced,
y)):(e=y.showHideApi.polymerReplaced)&&(0,_.tM)((0,_.tM)(e).parentNode).replaceChild(y,e):y instanceof HTMLElement&&y.style&&(q?(y.showHideApi.polymerDisplay=y.style.display,y.style.display="none"):y.style.display=y.showHideApi.polymerDisplay));y.showHideApi.hideTemplateChildren=q;y.showHideChildren&&y.showHideChildren(q)}};
hnH=function(){if(!SpM){var q=document.createElement("style");q.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(q);SpM=!0}};
R9=function(){return _.T("disable_hidden_dom_if_using_stamper")||_.T("creator_disable_hidden_dom_if_using_stamper")};
jE7=function(q,w){var u=_.cj().getState();return w?q.apply(null,[u].concat(_.Cm(w))):q(u)};
Mmo=function(){if(lmH)return lmH;var q=_.P(_.r4(0,void 0,"Nl6eIe")),w=q.next().value;q.next();var u=q.next().value;_.cj().subscribe(function(){LYJ(u)});
return lmH=w};
LYJ=function(q){_.T("delay_redux_signal_update_killswitch")?q(function(w){return w+1}):KYc||(KYc=!0,Promise.resolve().then(function(){q(function(w){return w+1});
KYc=!1}))};
_.cj=function(){return BT7.getAppStore()};
Sf=function(q,w){return BT7.getSelectFn()(q,w)};
_.hM=function(q){BT7.getDispatchFn()(q)};
xPJ=function(q,w){var u={},y;for(y in q)u[y]=w(q[y],y);return u};
_.jf=function(q,w){return function(){var u;return(u=_.$C(q))!=null?u:w}};
_.lf=function(q,w){var u=Object.assign({},q),y;for(y in w)w.hasOwnProperty(y)&&(u[y]=_.jf(q[y],w[y]));return u};
qWH=function(q,w,u){q instanceof Element&&(u.debugName||(u.debugName="<"+q.tagName.toLowerCase()+(q.tagName.includes("-")?">":"."+q.className+">")),_.T("ytwiz_enable_debug_component_props")&&(q.debugProps||(q.debugProps=xPJ(w,function(y){return function(){return y()}}))))};
_.LL=function(q,w){var u=function(y){var e={stack:[],error:void 0,hasError:!1};try{var t=wau={};var X=ukl(e,ALo("component()")),G;if(((G=u)==null?0:G.idomCompat)&&y.renderedFromIdom){X==null||X.attr("idomCompat",!0);var n,N=typeof u.idomCompat==="object"?(n=u)==null?void 0:n.idomCompat.callbacks:{},Q=_.P(yWf(y,N,u.debugName)),I=Q.next().value;Q.next();var U=Q.next().value,d=e7y(q,I);t.privateValue=d;wau=void 0;qWH(d,I,u);X==null||X.attr("debugName",u.debugName);var V=jz4(d),J=Array.isArray(V)?V[0]:
V;J[IX]||(J[IX]={});J[IX].updateSignalsFromIdomProps=U;return d}var a=xPJ(y,kHj);var b=e7y(q,a);t.privateValue=b;wau=void 0;qWH(b,a,u);X==null||X.attr("debugName",u.debugName);return b}catch(g){e.error=g,e.hasError=!0}finally{to4(e)}};
u.debugName=w===void 0?"":w;return u};
e7y=function(q,w){q=q(w);return C4(q)};
P_z=function(q,w){q[w]||(q=new _.fv("IDOM interop setter undefined. Key:",w),_.vm(q))};
kHj=function(q,w){return w==="children"||w==="ref"||typeof q==="function"||q===void 0?q:function(){return _.$C(q)}};
yWf=function(q,w,u){var y={},e={},t={},X={},G;for(G in q){X={key$jscomp$886:X.key$jscomp$886};X.key$jscomp$886=G;var n=q[X.key$jscomp$886];if(X.key$jscomp$886==="children"||X.key$jscomp$886==="ref")y[X.key$jscomp$886]=n;else if(typeof n==="function")X.key$jscomp$886 in w||n.length>0?(t[X.key$jscomp$886]=n,y[X.key$jscomp$886]=function(Q){return function(){return t[Q.key$jscomp$886].apply(t,_.Cm(_.Cj.apply(0,arguments)))}}(X)):y[X.key$jscomp$886]=n;
else if(!(q[X.key$jscomp$886]===void 0&&X.key$jscomp$886 in w)){var N=_.P(_.r4(q[X.key$jscomp$886],{debugName:"__cwis:"+u+":"+X.key$jscomp$886},"cEBU8c"));n=N.next().value;N=N.next().value;y[X.key$jscomp$886]=n;e[X.key$jscomp$886]=N}}return[y,e,function(Q){var I={},U;for(U in Q)I={key$jscomp$887:I.key$jscomp$887,val$jscomp$117:void 0},I.key$jscomp$887=U,I.val$jscomp$117=Q[I.key$jscomp$887],I.key$jscomp$887!=="children"&&I.key$jscomp$887!=="ref"&&(typeof I.val$jscomp$117==="function"?I.key$jscomp$887 in
w?t[I.key$jscomp$887]=I.val$jscomp$117:I.val$jscomp$117.length>0&&(t[I.key$jscomp$887]=I.val$jscomp$117,_.Y8(new _.fv("Callback detected that was not set in the idomCompat callbacks map. Key:",I.key$jscomp$887))):I.key$jscomp$887 in w&&I.val$jscomp$117===void 0||(P_z(e,I.key$jscomp$887),Vy(function(d){return function(){e[d.key$jscomp$887](d.val$jscomp$117)}}(I))))}]};
GH7=function(q,w,u){var y=Fpl(q.prototype,Xau,q.prototype.behaviors);y.prototype.is=w;y.prototype.localName=w;u&&F3y(y,u);return function(e){e&&(y.prototype.hostElement=e);var t=new y;t.root=t;t.hostElement=e;return t}};
F3y=function(q,w){var u;Object.defineProperty(q.prototype,"_template",{get:function(){u===void 0&&(u=w());return u},
set:function(y){u=y},
configurable:!0,enumerable:!0})};
NHo=function(q,w,u,y){function e(){if(!d){for(var V=new Set,J=_.P(Q),a=J.next();!a.done;a=J.next()){a=a.value;for(var b=_.P(Object.getOwnPropertyNames(a)),g=b.next();!g.done;g=b.next()){g=g.value;var l=void 0,S=(l=Object.getOwnPropertyDescriptor(a,g))==null?void 0:l.value;S&&S instanceof Function&&!Ma(g)&&(!G[g]||_.T("polymer_forward_method_killswitch"))&&V.add(g)}}J=_.P(Object.entries(Object.getOwnPropertyDescriptors(q.prototype)));for(a=J.next();!a.done;a=J.next())b=_.P(a.value),a=b.next().value,
b=b.next().value,b.value instanceof Function&&!Ma(a)&&V.add(a);d=V}return d}
ncM(q,w,y==null?void 0:y.providers);GTu(q.prototype,q,!0);var t=GH7(q,w,u),X,G=(X=q.prototype.properties)!=null?X:{},n,N,Q=(N=(n=q.prototype.behaviors)==null?void 0:n.flat(Infinity))!=null?N:[];u=_.P(Q);for(X=u.next();!X.done;X=u.next())G=Object.assign({},X.value.properties,G);var I=[].concat(_.Cm(Hfc),_.Cm(Object.keys(G).map(function(V){return _.i9(V)}))),U=!1,d;
return{ctor:function(V,J){var a=t(V),b,g;V=[].concat(_.Cm((b=y==null?void 0:y.allowedProps)!=null?b:[]),_.Cm((g=y==null?void 0:y.allowedPropsFromBehaviors)!=null?g:[]));a.allowedProps=V.length>0?V:void 0;b={};g=_.P(I);for(V=g.next();!V.done;V=g.next())V=V.value,b[V]=_.r1(V);a.__dataAttributes=b;var l=a.ready.bind(a);a.ready=function(){J.beforeReady();l();if(rN(w)&&!U){var S=a.__templateInfo;if(S==null?0:S.hostProps){S=_.P(Object.keys(S.hostProps));for(var eH=S.next();!eH.done;eH=S.next())Tm(w,eH.value,
"PROPERTY_ACCESS_GET_INTERNAL")}U=!0}};
a._overrideLegacyUndefined=!0;return a},
props:G,observedAttributes:I,getInitialMethods:e,getPropsToForwardBeforeRegister:function(){for(var V=[],J=new Set,a=_.P(Object.keys(G)),b=a.next();!b.done;b=a.next())b=b.value,V.push([b,G[b].readOnly]),J.add(b);a=e();b=_.P(Object.keys(Object.getOwnPropertyDescriptors(q.prototype)));for(var g=b.next();!g.done;g=b.next())g=g.value,!W34(g)||a.has(g)||J.has(g)||(V.push([g,!1]),J.add(g));J=_.P(sPJ);for(a=J.next();!a.done;a=J.next())V.push([a.value,!0]);return V},
getPropsToForwardBeforeReady:function(V){for(var J=[],a=_.P(Object.entries(V)),b=a.next();!b.done;b=a.next()){var g=_.P(b.value);b=g.next().value;g=g.next().value;if(W34(b)&&!(g instanceof Function)&&(J.push([b,!1]),rN(w))){var l=g=void 0;(l=(g=V)._createPropertyAccessor)==null||l.call(g,b)}}return J},
shouldForwardProp:W34,shouldLog:rN}};
ncM=function(q,w,u){Klz(q,u);q.prototype.behaviors.unshift(QPu);if(vzc()){if(rN(w)){var y;(y=q.prototype).behaviors!=null||(y.behaviors=[]);q.prototype.behaviors.unshift(Ezz())}RZl(q)}_.D(mP.prototype)(q.prototype,"__templateHelpers")};
Ma=function(q){return Icz.has(q)||q.startsWith("__compute__")};
W34=function(q){return!Ma(q)&&!q.startsWith("_")&&!q.endsWith("_")};
C_6=function(q,w){function u(){var U=n();U=_.P(U);for(var d=U.next();!d.done;d=U.next()){var V=_.P(d.value);d=V.next().value;V=V.next().value;ifo(I.prototype,d,V)}y=!0}
var y=!1,e=q.ctor,t=q.getInitialMethods,X=q.observedAttributes,G=q.getPropsToForwardBeforeReady,n=q.getPropsToForwardBeforeRegister,N=q.shouldForwardProp,Q=q.shouldLog,I=function(){var U=HTMLElement.call(this)||this;U.didForwardDynamicProps=!1;U.loggingStatus={};y||u();U.inst=e(U,{beforeReady:function(){U.didForwardDynamicProps||(U.forwardDynamicProps(),U.didForwardDynamicProps=!0)}});
U.controllerProxy=YiM(U.inst,w);U.forwardMethods();return U};
_.O(I,HTMLElement);I.prototype.forwardMethods=function(){for(var U=this,d=_.P(this.inst.getExtraMethodsToForward()),V=d.next(),J={};!V.done;J={method$jscomp$60:void 0},V=d.next()){var a=_.P(V.value);V=a.next().value;a=a.next().value;J.method$jscomp$60=a;this[V]=function(b){return function(){return b.method$jscomp$60.call.apply(b.method$jscomp$60,[U.inst].concat(_.Cm(_.Cj.apply(0,arguments))))}}(J)}d=_.P(t());
for(J=d.next();!J.done;J=d.next())J=J.value,N(J)&&rWu(this,J),Q(w)&&!Ma(J)&&UOz(this.inst,J)};
I.prototype.forwardDynamicProps=function(){var U=G(this.inst);U=_.P(U);for(var d=U.next();!d.done;d=U.next()){var V=_.P(d.value);d=V.next().value;V=V.next().value;ifo(this,d,V);Q(w)&&!Ma(d)&&TH6(this.inst,d)}};
I.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
I.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
I.prototype.attributeChangedCallback=function(U,d,V){this.inst.attributeChangedCallbackWrapper(U,d,V)};
_.x$.Object.defineProperties(I.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return w}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.x$.Object.defineProperties(I,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return X}}});
customElements.define(w,I)};
ifo=function(q,w,u){q.hasOwnProperty(w)||Object.defineProperty(q,w,{get:function(){var y,e=((y=q.is)!=null?y:q.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||Tm(e,w,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,y=this.polymerController[w],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,y},
set:function(y){if(!u){var e,t=((e=q.is)!=null?e:q.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||Tm(t,w,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=w,this.loggingStatus.bypassProxyController=!0,this.polymerController[w]!==y&&(e={},this.polymerController.setProperties((e[w]=y,e)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
rWu=function(q,w,u){var y=q.polymerController;q[w]=function(){var e=_.Cj.apply(0,arguments);q.loggingStatus.currentExternalCall=w;q.loggingStatus.bypassProxyController=!0;var t,X=((t=q.is)!=null?t:q.tagName).toLowerCase();Tm(X,w,"PROPERTY_ACCESS_CALL_EXTERNAL");var G;t=(G=u!=null?u:y[w])==null?void 0:G.call.apply(G,[y].concat(_.Cm(e)));q.loggingStatus.currentExternalCall=void 0;q.loggingStatus.bypassProxyController=!1;return t}};
UOz=function(q,w){var u=q.hostElement,y=q[w];q[w]=function(){var e=_.Cj.apply(0,arguments);if(u.loggingStatus.currentExternalCall!==w){var t,X=((t=u.is)!=null?t:u.tagName).toLowerCase();Tm(X,w,"PROPERTY_ACCESS_CALL_INTERNAL")}return y==null?void 0:y.apply(q,e)}};
TH6=function(q,w){var u=Object.getOwnPropertyDescriptor(q,w);u&&!u.get&&Object.defineProperty(q,w,{get:function(){gzf(q.hostElement,w);return u.value},
set:function(y){CL(q.hostElement,w);u.value=y}})};
dOM=function(q){return _.T("poly_si_dom_repeat_detached_fix_killswitch")||q.tagName!=="PS-DOM-REPEAT"?q.tagName==="DOM-REPEAT":!0};
ocH=function(q,w){var u=Of7(q);q instanceof Element&&u.unshift(q);q=_.P(u.filter(dOM));for(var y=q.next();!y.done;y=q.next()){var e=void 0;y=_.P((e=y.value.__instances)!=null?e:[]);for(e=y.next();!e.done;e=y.next())if(e=e.value,e.root){e=Array.from(e.root.children);e=_.P(e);for(var t=e.next();!t.done;t=e.next())u.push.apply(u,_.Cm(ocH(t.value,w)))}}return u.filter(function(X){return X.usePatchedLifecycles&&X.lifecycleIsConnected===w})};
Of7=function(q){var w=null;q instanceof Element?w=Element.prototype.querySelectorAll:q instanceof DocumentFragment&&(w=DocumentFragment.prototype.querySelectorAll);return w?Array.from(w.call(q,"*")):[]};
KL=function(q){Qy(function(){for(var w=_.P(ocH(q,!1)),u=w.next();!u.done;u=w.next()){u=u.value;u.lifecycleIsConnected=!0;try{var y=void 0,e=void 0,t=void 0,X=void 0;(y=(X=u.polymerController)!=null?X:u)==null||(t=(e=y).connectedCallback)==null||t.call(e)}catch(G){_.vm(G)}}})};
Bj=function(q){Qy(function(){for(var w=_.P(ocH(q,!0)),u=w.next();!u.done;u=w.next()){u=u.value;u.lifecycleIsConnected=!1;try{var y=void 0,e=void 0,t=void 0,X=void 0;(y=(X=u.polymerController)!=null?X:u)==null||(t=(e=y).disconnectedCallback)==null||t.call(e)}catch(G){_.vm(G)}}})};
aco=function(){if(!Vou){Vou=!0;var q=[Node];xd&&q.push(xd.Wrapper);var w=Node.prototype.insertBefore,u=Node.prototype.removeChild;q=_.P(q);for(var y=q.next(),e={};!y.done;e={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},y=q.next())y=y.value,e.nativeInsertBefore=y.prototype.insertBefore,y.prototype.insertBefore=function(X){return function(G,n){if(G instanceof DocumentFragment){var N=Array.from(G.children);G=X.nativeInsertBefore.call(this,G,n);
if(this.isConnected&&X.nativeInsertBefore===w)for(n=_.P(N),N=n.next();!N.done;N=n.next())KL(N.value);return G}N=G instanceof Element&&G.isConnected;n=X.nativeInsertBefore.call(this,G,n);N&&Bj(G);this.isConnected&&KL(G);return n}}(e),e.nativeAppendChild=y.prototype.appendChild,y.prototype.appendChild=function(X){return function(G){if(G instanceof DocumentFragment){var n=Array.from(G.children);
G=X.nativeAppendChild.call(this,G);if(this.isConnected){n=_.P(n);for(var N=n.next();!N.done;N=n.next())KL(N.value)}return G}n=G instanceof Element&&G.isConnected;N=X.nativeAppendChild.call(this,G);n&&Bj(G);this.isConnected&&KL(G);return N}}(e),e.nativeRemoveChild=y.prototype.removeChild,y.prototype.removeChild=function(X){return function(G){var n=G instanceof Element&&G.isConnected,N=X.nativeRemoveChild.call(this,G);
n&&u===X.nativeRemoveChild&&Bj(G);return N}}(e),e.nativeReplaceChild=y.prototype.replaceChild,y.prototype.replaceChild=function(X){return function(G,n){if(G instanceof DocumentFragment){var N=Array.from(G.children);
G=X.nativeReplaceChild.call(this,G,n);if(this.isConnected)for(Bj(n),n=_.P(N),N=n.next();!N.done;N=n.next())KL(N.value);return G}N=G instanceof Element&&G.isConnected;var Q=this.isConnected,I=X.nativeReplaceChild.call(this,G,n);Q&&Bj(n);N&&Bj(G);Q&&KL(G);return I}}(e);
q=[Element];xd&&q.push(xd.Wrapper);q=_.P(q);y=q.next();for(e={};!y.done;e={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},y=q.next())y=y.value,y.prototype.before=fc7(y.prototype.before),y.prototype.after=fc7(y.prototype.after),e.nativeReplaceWith=y.prototype.replaceWith,y.prototype.replaceWith=function(X){return function(){var G=_.Cj.apply(0,arguments),n=_.P(mO7(G)),N=n.next().value,
Q=n.next().value;n=this.isConnected;X.nativeReplaceWith.apply(this,G);G=_.P(Q);for(Q=G.next();!Q.done;Q=G.next())Bj(Q.value);if(n)for(Bj(this),N=_.P(N),n=N.next();!n.done;n=N.next())n=n.value,n instanceof Element&&KL(n)}}(e),e.nativeRemove=y.prototype.remove,y.prototype.remove=function(X){return function(){var G=this.isConnected;
X.nativeRemove.call(this);G&&Bj(this)}}(e),e.nativeInsertAdjacentElement=y.prototype.insertAdjacentElement,y.prototype.insertAdjacentElement=function(X){return function(G,n){var N=n.isConnected;
G=X.nativeInsertAdjacentElement.call(this,G,n);N&&Bj(n);G.isConnected&&KL(G);return G}}(e),e.nativeSetAttribute=y.prototype.setAttribute,y.prototype.setAttribute=function(X){return function(G,n){var N=AWl(this);
if(!N.usePatchedLifecycles)return X.nativeSetAttribute.call(this,G,n);var Q=this.getAttribute(G);X.nativeSetAttribute.call(this,G,n);n=this.getAttribute(G);JWM(N,G,Q,n)}}(e),e.nativeRemoveAttribute=y.prototype.removeAttribute,y.prototype.removeAttribute=function(X){return function(G){var n=AWl(this);
if(!n.usePatchedLifecycles)return X.nativeRemoveAttribute.call(this,G);var N=this.getAttribute(G);X.nativeRemoveAttribute.call(this,G);N!==null&&JWM(n,G,N,null)}}(e),e.nativeToggleAttribute=y.prototype.toggleAttribute,y.prototype.toggleAttribute=function(X){return function(G,n){var N=AWl(this);
if(!this.usePatchedLifecycles)return X.nativeToggleAttribute.call(this,G,n);var Q=this.getAttribute(G),I=Q!==null;n=X.nativeToggleAttribute.call(this,G,n);n!==I&&JWM(N,G,Q,n?"":null);return n}}(e);
q=[Document,DocumentFragment,Element,ShadowRoot];xd&&q.push(xd.Wrapper);q=_.P(q);for(e=q.next();!e.done;e=q.next())e=e.value,e.prototype.prepend=fc7(e.prototype.prepend),e.prototype.append=fc7(e.prototype.append);(xd==null?void 0:xd.noPatch)===!0&&z7H();document.readyState==="complete"?KL(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&KL(document.body)});
var t=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");t&&t.get&&t.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:t.enumerable,configurable:!0,get:t.get,set:function(X){X||Bj(this);t.set.call(this,X);return X}})}};
fc7=function(q){return function(){var w=_.Cj.apply(0,arguments),u=_.P(mO7(w)),y=u.next().value;u=u.next().value;q.apply(this,w);w=_.P(u);for(u=w.next();!u.done;u=w.next())Bj(u.value);if(this.isConnected)for(y=_.P(y),w=y.next();!w.done;w=y.next())w=w.value,w instanceof Element&&KL(w)}};
z7H=function(){for(var q=_.P(DOM),w=q.next();!w.done;w=q.next()){w=w.value.prototype;for(var u=_.P(Zfs),y=u.next();!y.done;y=u.next()){y=y.value;var e=Object.getOwnPropertyDescriptor(w,y);e&&Object.defineProperty(w,"__shady_native_"+y,e)}}};
JWM=function(q,w,u,y){var e,t;if((e=q.polymerController)==null?0:(t=e.observedAttributes)==null?0:t.includes(w))if(q=q.polymerController,q.attributeChangedCallbackWrapper)q.attributeChangedCallbackWrapper.call(q,w,u,y);else{var X;(X=q.attributeChangedCallback)==null||X.call(q,w,u,y)}};
mO7=function(q){var w=[],u=[];q=_.P(q);for(var y=q.next();!y.done;y=q.next())y=y.value,y instanceof Element&&y.isConnected&&u.push(y),y instanceof DocumentFragment?w.push.apply(w,_.Cm(Array.from(y.children))):w.push(y);return[w,u]};
AWl=function(q){return!(q instanceof Element)&&q.node instanceof Element?q.node:q};
paf=function(q,w){var u=w?["children"].concat(_.Cm(w)):["children"];w=[];u=_.P(u);for(var y=u.next();!y.done;y=u.next()){var e=y.value;if(q.hasOwnProperty(e)){y=q[e];y=typeof y==="function"?y():y;y=C4(Array.isArray(y)?y:[y]).flat();if(e!=="children"){e=KoH(e);for(var t=_.P(y),X=t.next();!X.done;X=t.next())X=X.value,X instanceof Element&&X.setAttribute("slot",e)}w.push(y)}}w.length===0?q=[]:(q=C4(_.W("div",null,w)),q=Array.from(q.childNodes));return q};
vcu=function(q,w,u){var y={};_.v1(function(){var e={},t;for(t in w)if(w.hasOwnProperty(t)){var X=void 0,G=void 0;if(!(((X=u.slotProps)==null?0:X.includes(t))||t==="children"||((G=u.callbackProps)==null?0:G.includes(t))||t==="ref")&&(X=_.$C(w[t]),y[t]!==X)){y[t]=X;G=void 0;var n=(G=q.hostElement)!=null?G:q;$O4.has(t)&&(n[t]=X);e[t]=X}}Vy(function(){if(q.setProperties)q.setProperties(e);else for(var N=_.P(Object.entries(e)),Q=N.next();!Q.done;Q=N.next()){var I=_.P(Q.value);Q=I.next().value;I=I.next().value;
q[Q]=I}})})};
YWo=function(q,w,u,y){var e=paf(u,y.slotProps),t=_.T("web_wcw_disable_slot_host_shady_dom_wrap")?q:(0,_.tM)(q);e=_.P(e);for(var X=e.next();!X.done;X=e.next())t.appendChild(X.value);vcu(w,u,y);y=_.P(y.callbackProps||[]);e=y.next();for(t={};!e.done;t={kebabEventName:void 0,eventListener:void 0},e=y.next())X=e=e.value,String(e).substring(0,2)==="on"&&u[X]?(t.kebabEventName=KoH(String(e).substring(2)),t.eventListener=u[X],q.addEventListener(t.kebabEventName,t.eventListener),_.ZG(function(Q){return function(){q.removeEventListener(Q.kebabEventName,
Q.eventListener)}}(t))):w[X]=u[X];
if(u.ref){u=_.P(bfc(u.ref));var G=u.next().value,n=u.next().value,N=w.attached.bind(w);w.attached=function(){G(q);N()};
_.ZG(function(){n()})}};
bfc=function(q){if(typeof q==="function"){var w;return[function(u){w=q(u)},
function(){var u;(u=w)==null||u()}]}if(!q.onRender||!q.onUnmount)throw Error("Rg");
return[q.onRender,q.onUnmount]};
cWM=function(q,w,u,y,e){y=y===void 0?{}:y;var t=gc7,X=!1;t?(X=!0,gc7=void 0):(Ecf=w,t=document.createElement(w),Ecf=void 0);var G=t;G.usePatchedLifecycles=!0;G.lifecycleIsConnected=!1;t.loggingStatus={};var n=R7H(q,w,t,y,e);_.ZG(function(){G.lifecycleIsConnected&&(G.lifecycleIsConnected=!1,n.disconnectedCallback())});
X||YWo(t,n,u,y);return t};
R7H=function(q,w,u,y,e){e=e===void 0?NHo:e;SWl[w]!=null||(SWl[w]=e(q,w,y==null?void 0:y.getTemplate,y));var t=SWl[w],X=t.ctor;e=t.getInitialMethods;var G=t.getPropsToForwardBeforeReady;q=t.getPropsToForwardBeforeRegister;y=t.shouldForwardProp;var n=t.observedAttributes,N=t.shouldLog,Q=X(u,{beforeReady:function(){var I=Q;I._takeAttributes?I._takeAttributes():I.setPropertiesFromInitialAttributeValues&&I.setPropertiesFromInitialAttributeValues();I=_.P(G(u.polymerController));for(var U=I.next();!U.done;U=
I.next()){var d=_.P(U.value);U=d.next().value;d=d.next().value;ifo(u,U,d);N(w)&&!Ma(U)&&TH6(u.polymerController,U)}u.polymerController=YiM(Q,w)}});
u.polymerController=Q;u.polymerController.observedAttributes=n;t=_.P(Q.getExtraMethodsToForward());for(X=t.next();!X.done;X=t.next())n=_.P(X.value),X=n.next().value,n=n.next().value,rWu(u,X,n);e=_.P(e());for(t=e.next();!t.done;t=e.next())t=t.value,y(t)&&rWu(u,t),N(w)&&!Ma(t)&&UOz(Q,t);q=_.P(q());for(y=q.next();!y.done;y=q.next())e=_.P(y.value),y=e.next().value,e=e.next().value,ifo(u,y,e);return Q};
jPo=function(q,w){return q2===w?(q.isInert=!0,q2="",!0):h7J===w?(q.isInert=!0,h7J="",!0):!1};
lcj=function(q){var w=wL;wL=q;return w};
Mof=function(q){if(un.has(q))h7J=q;else if(yz.has(q)&&wL&&L3c(wL)===q){var w;(w=wL)._numRenders!=null||(w._numRenders=0);wL._numRenders++;if(wL._numRenders>1)throw Error("Sg");return wL}};
K3H=function(q){un.has(L3c(q))?h7J=L3c(q):yz.has(L3c(q))&&wL!==q&&(q._isInert=!0)};
L3c=function(q){var w;return(w=q==null?void 0:q.tagName.toLowerCase())!=null?w:""};
BHl=function(q,w){if(q.componentType===AX)throw Error("Tg");yz.add(w);var u=function(){var y=HTMLElement.call(this)||this;y.is=w;if(Ecf===w)return y.isInert=!0,y;y.createElement();return y};
_.O(u,HTMLElement);u.prototype.createElement=function(){if(!this.isInert){gc7=this;var y=_.P(HT4(function(){return _.W(q,null)})).next().value;
gc7=void 0;gL4(this);return y}};
customElements.define(w,u)};
qSs=function(q,w,u,y,e){q.prototype.is=w;(y==null?0:y.useSink)?xOz(q,w,u,y,e):(u=NHo(q,w,u,y),C_6(u,w));return q};
xOz=function(q,w,u,y,e){aco();var t=_.LL(function(X){return cWM(q,w,X,Object.assign({},y,{getTemplate:u}),e)},"a");
BHl(t,w);return t};
uWj=function(q){return!wHo.has(q)};
kfs=function(q,w,u,y){function e(){if(!I){for(var U=new Set(yA6),d=_.P(t.behaviors),V=d.next();!V.done;V=d.next()){V=V.value;for(var J=_.P(Object.getOwnPropertyNames(V)),a=J.next();!a.done;a=J.next()){a=a.value;var b=void 0,g=(b=Object.getOwnPropertyDescriptor(V,a))==null?void 0:b.value;g&&g instanceof Function&&(!N[a]||_.T("polymer_forward_method_killswitch"))&&U.add(a)}}d=_.P(Object.entries(Object.getOwnPropertyDescriptors(q.prototype)));for(V=d.next();!V.done;V=d.next())J=_.P(V.value),V=J.next().value,
J=J.next().value,J.value instanceof Function&&U.add(V);I=U}return I}
var t=gVl({is:w,disableElementRegistration:!1,getTemplate:u,providers:y==null?void 0:y.providers,reactivityMode:y==null?void 0:y.reactivityMode},q);if((y==null?0:y.allowedProps)||(y==null?0:y.allowedPropsFromBehaviors)){var X,G;t.allowedProps=[].concat(_.Cm((X=y.allowedProps)!=null?X:[]),_.Cm((G=y.allowedPropsFromBehaviors)!=null?G:[]))}var n=DP6(t,q);w=n.observedAttributes;var N={};u=_.P(t.reactiveSchemas);for(y=u.next();!y.done;y=u.next())if(y=y.value,y.type==="signal")N[y.propertyKey]={readOnly:y.readOnly},
y.readOnly&&(N[GL7(y.propertyKey)]={readOnly:!0});else if(y.type==="compute"||y.type==="computeWithMethod"||y.type==="redux")N[y.propertyKey]={readOnly:!0};var Q=t.reactiveSchemas.length,I;return{ctor:function(U,d){U=new n(U);U.beforeReady=d.beforeReady;return U},
props:N,observedAttributes:w,getInitialMethods:e,getPropsToForwardBeforeRegister:function(){for(var U=[],d=new Set,V=_.P(eA4),J=V.next();!J.done;J=V.next())J=J.value,U.push([J,J!=="observers"&&J!=="properties"]),d.add(J);V=_.P(Object.keys(N));for(J=V.next();!J.done;J=V.next())J=J.value,U.push([J,N[J].readOnly]),d.add(J);V=e();J=_.P(Object.keys(Object.getOwnPropertyDescriptors(q.prototype)));for(var a=J.next();!a.done;a=J.next())a=a.value,!uWj(a)||V.has(a)||d.has(a)||(U.push([a,!1]),d.add(a));U.push(["allowedProps",
!0]);return U},
getPropsToForwardBeforeReady:function(U){var d=[];U=_.P(Object.keys(U));for(var V=U.next();!V.done;V=U.next()){V=V.value;var J=e();uWj(V)&&!J.has(V)&&d.push([V,!1])}U=_.P(t.reactiveSchemas.slice(Q));for(V=U.next();!V.done;V=U.next())V=V.value,V.type!=="compute"&&V.type!=="computeWithMethod"&&V.type!=="redux"&&V.type!=="signal"||d.push([V.propertyKey,V.type==="signal"?V.readOnly:!0]);return d},
shouldForwardProp:uWj,shouldLog:rN}};
_.R=function(q,w,u,y){var e,t,X=(t=(e=y)==null?void 0:e.mode)!=null?t:0;y!=null||(y={});var G;(G=y).reactivityMode!=null||(G.reactivityMode=0);X===1&&_.nv("creator_poly_si_disable_list").includes(w)&&(X=2);return X===1?qSs(q,w,u,Object.assign({},y,{useSink:!0}),kfs):qSs(q,w,u,Object.assign({},y,{useSink:X===2}))};
_.eD=function(){return function(q,w,u,y){var e,t,X=(t=(e=y)==null?void 0:e.mode)!=null?t:2;y!=null||(y={});var G;(G=y).reactivityMode!=null||(G.reactivityMode=0);if(X===0)throw Error("Ug`"+X);return xOz(q,w,u,y,X===1?kfs:void 0)}};
_.kB=function(q){return _.T("creator_poly_si_killswitch")?!1:_.T("force_all_poly_si_batches")&&(q==="poly_si_all_on_test_check"||q==="creator_poly_si_batch_050"?0:q)||document.documentElement.hasAttribute("use-signals")?!0:!q||_.T(q+"_holdback_enabled")&&_.T("kevlar_polysi_holdback")?!1:_.T(q)};
tB=function(q){return q?q.icon?q.icon.iconType.toLowerCase():q.customThumbnail?"member":"":""};
tts=function(q){if(!q)return"";q=_.P(q);for(var w=q.next();!w.done;w=q.next())if((w=w.value)&&w.liveChatAuthorBadgeRenderer&&(w=tB(w.liveChatAuthorBadgeRenderer))&&w!=="verified")return w;return""};
PQj=function(q,w){if(!q)return null;var u;return((u=q.find(function(y){return y&&y.liveChatAuthorBadgeRenderer?tB(y.liveChatAuthorBadgeRenderer)===w:!1}))==null?void 0:u.liveChatAuthorBadgeRenderer)||null};
_.W56=function(q){var w=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;q=XHs(q);w=XHs(w);var u=F5z(q.hex);w=F5z(w.hex);var y=w[0]/255;var e=w[1]/255,t=w[2]/255,X=Math.max(y,e,t),G=Math.min(y,e,t),n=0,N=0,Q=.5*(X+G);X!=G&&(X==y?n=60*(e-t)/(X-G):X==e?n=60*(t-y)/(X-G)+120:X==t&&(n=60*(y-e)/(X-G)+240),N=0<Q&&Q<=.5?(X-G)/(2*Q):(X-G)/(2-2*Q));y=[Math.round(n+360)%360,N,Q];u=GfH(u,w);for(q=naM(q.hex);u<4.5;){q=y[2]>=.5?q.darker((4.5-u)/2):q.brighter((4.5-u)/2);u=q.toString();
e=HSo(u);if(!e.length)throw Error("Sd`"+u);u=e;u=GfH(u,w)}return q.hex()};
GfH=function(q,w){q=_.hFM(q);w=_.hFM(w);return(Math.max(q,w)+.05)/(Math.min(q,w)+.05)};
_.P6=function(q){return"#"+("000000"+(q&16777215).toString(16)).slice(-6)};
_.slJ=function(q){for(var w=0,u=0;u<q.length;u++)w=q.charCodeAt(u)+((w<<5)-w);q="#";for(u=0;u<3;u++)q+=("00"+(w>>u*8&255).toString(16)).slice(-2);return q};
NOJ=function(q){q=(q||"").split(":");q.length===1&&q.unshift("yt-icons");q[1]=q[1].toLowerCase();return q};
TOs=function(q,w){var u=(w=w===void 0?!1:w)?Qls:IfH,y=w?iSz:rAy;q.getIconNames().forEach(function(e){e=w?e:e.substring(e.indexOf(":")+1);q.name==="yt-icons"?USl.add(e):e.includes("-filled")?u.add(e):y.add(e)})};
Xy=function(q,w,u,y){u=u===void 0?!1:u;y=y===void 0?!1:y;var e,t,X;return _.F(function(G){if(G.nextAddress==1)return _.H(G,CQo,2);if(y)return G.return(USl.has(q));e=u?Qls:IfH;t=u?iSz:rAy;return w?(X=q.includes("-filled")?q:q.concat("-filled"),G.return(e.has(X))):G.return(t.has(q))})};
_.oa7=function(q){if(dS7(q))return q;var w=q=q.toLowerCase();(q=OSs.get(q))&&(w=q);return w};
_.Fy=function(q){if(dS7(q))return q.toString();var w=VtM.get(q);if(w)return w;w=q.toLowerCase();var u="yt-icons",y=w.replace(/_/g,"-");switch(q){case "MY_CHANNEL":w="account_circle";break;case "ADD_TO_LIBRARY":w="add";break;case "ALERT_WARN_RED":w="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":w="person_music";break;case "BLOCK_USER":w="block";break;case "CAPTIONS":w="closed_caption";break;case "CLOSED_CAPTION":u="av";w="closed-caption";break;case "COLLECTION":u="maps";w="layers";break;case "CONTACT":u=
"icons";w="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":u="ytcp-icons";w=y.split("creator-studio-")[1];break;case "DISMISSAL":w="close";break;case "DO_NOT_DISTURB":w="block";break;case "DOGFOOD":u="icons";w="pets";break;case "DRAFT":w="paper_corner_folded";break;
case "EMPTY_LIKE":w="like_outline";break;case "EXIT_APP":w="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":w=y;break;case "GAMES":u="ytg";w="my-games";break;case "GO_TO_PAGE":w="arrow-forward";break;case "GROUP":u="social";break;case "HIDE":w="not_interested";break;case "INPUT_COMPONENT":u="icons";w="settings-input-component";break;case "KIDS_BLOCK":w="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":u="ytg";w="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":u=
"ytg";w="membership-post-purchase";break;case "MULTIVIEW":w="screen_multi_view";break;case "MY_LOCATION":u="maps";w=y;break;case "NOTIFICATIONS_INBOX":w="NOTIFICATIONS";break;case "NEXT":w="chevron_right";break;case "OFFLINE":w="power-settings-new";break;case "PAUSE":u="miniplayer";break;case "PAYMENT":u="icons";break;case "PHONE_DOWNLOAD":w="phone_download";break;case "PREMIUM_STANDALONE":u="yt-logos";w="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":u="yt-logos";w="premium_standalone_cairo";
break;case "QUESTION_ANSWER":w="question_answer";break;case "REDEEM":u="icons";w="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":w="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":w="library_add";break;case "SCHOOL":u="yt-sys-icons";w="creator_academy";break;case "SETTINGS_LIGHT":w="settings_applications";break;case "SETTINGS_MATERIAL":w="settings";break;case "SEARCH_HISTORY":w="watch_history";break;case "SHOPPING_BAG":w="bag";break;case "SOCIAL":case "PEOPLE":u=
"yt-icons";w="people";break;case "STAFF_PICK":u="ytg";w="spotlight";break;case "START_DVR":w="add";break;case "STOP_DVR":u="av";w="stop";break;case "TAB_LIKED":w="like";break;case "TAB_INBOX":w="mail";break;case "TERMS_OF_SERVICE":u="icons";w="description";break;case "TRENDING":w="fire";break;case "UNBLOCK_USER":w="remove";break;case "UNPLUGGED_DARK_THEME":u="image";w="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":w="live";break;case "UNPLUGGED_SPORTS":u="ytu";w="visibility-off";break;
case "VIDEOS":u="av";w="play-circle-filled";break;case "YOUTUBE":u="yt-logos";w="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":u="yt-logos-ext";w="yt-logo-red-updated";break;case "YOUTUBE_LOGO":u="yt-logos-ext";w="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":u="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":u="shorts";w=y;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":u="yt-sys-icons";w="youtube_improve_tv";break;case "OUTLINE_BAG":u=
"yt-sys-icons";w="bag";break;case "QUEUE_PLAY_LAST":u="yt-sys-icons";w="list_queue_last";break;case "SLASH_CIRCLE_LEFT":w="slash_circle_left";break;case "SPEED_1_POINT_2X":w="1_point_2x";break;case "SPEED_1_POINT_5X":w="1_point_5x";break;case "SPEED_1_POINT_8X":w="1_point_8x";break;case "SPEED_POINT_2X":w="point_2x";break;case "SPEED_POINT_5X":w="point_5x";break;case "SPEED_POINT_8X":w="point_8x";break;case "SPEED_1X":w="1x";break;case "SPEED_2X":w="2x";break;case "OUTLINE_CLOCK_HALF_CIRCLE":u="yt-sys-icons";
w="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":u="yt-sys-icons";w="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":u="yt-sys-icons",w="tic_tac_toe"}w=u+":"+w;VtM.set(q,w);return w};
dS7=function(q){var w;_.T("kevlar_use_wil_icons")?w=!!_.tG().resolve(_.Gj).resolveIcon({iconName:q.toString()}):w=!1;return w};
_.H6=function(q,w,u,y){u=u===void 0?{}:u;y=y===void 0?!1:y;u===null&&(u={});var e=_.nv("kevlar_command_handler_command_banlist");e=_.P(e);for(var t=e.next();!t.done;t=e.next())if(t=q?q.hasOwnProperty(t.value):void 0,t)return!1;e=_.C(q.commandMetadata,_.wk);return y&&e!=null&&e.url?!1:!w.disableCommandHandlerOverride&&_.nx.instance?(y=_.nx.instance,u.form||(u.form={element:w}),u.form.element||(u.form.element=w),!u.clickedVisualElement&&w.visualElement&&(u.clickedVisualElement=w.visualElement),y.resolveCommand(q,
u),!0):!1};
ffH=function(q,w){q=W6(q);for(var u=_.P(q.visibilityMonitorKeys||[]),y=u.next();!y.done;y=u.next())w.unobserveByKey(y.value);q.visibilityMonitorKeys=void 0};
zAJ=function(q,w){if(_.pN()){if(_.T("kevlar_vimio_use_shared_monitor"))mSM(q,w.data);else if(!mSM(q,w.data))return;var u=w.data,y=AAu(u);if(_.T("enable_client_ve_spec_logging"))ffH(q,w.observer);else{var e=W6(q);e.trackedParams&&e.trackedParams!==y&&ffH(q,w.observer)}e=W6(q);!u||e.data&&e.data===u||(e.data=u);JAs(q,w);e.trackedParams=y}};
JAs=function(q,w){var u=w.observer;if(!u&&_.T("web_skip_missing_vimio_observer")){var y,e;_.Y8(new _.fv("VisibilityObserver is not defined.",q.tagName,q.trackedParams,(y=w.data)==null?void 0:y.trackingParams,(e=w.data)==null?void 0:e.loggingDirectives))}else{var t=w.layer,X=w.visibilityCallback||function(){},G=w.prescanCallback,n=W6(q);
y=[];w.showOption&&y.push(u.observe(q,function(){w.skipLogging&&w.skipLogging()||_.sO().reportShown(n,void 0,t);X(!0)},w.showOption));
w.hideOption&&y.push(u.observe(q,function(){_.sO().reportHidden(n,void 0,t);X(!1)},w.hideOption));
w.prescanOption&&G&&y.push(u.observe(q,function(){G()},w.prescanOption));
n.visibilityMonitorKeys=y}};
mSM=function(q,w){q=W6(q);if(q.visualElement&&!w)return!0;if(!w)return!1;var u=!1;if(_.T("enable_client_ve_spec_logging")){var y,e;u=!!((y=w.loggingDirectives)==null?0:(e=y.clientVeSpec)==null?0:e.uiType)}y=AAu(w);if(!y&&!u)return!1;_.T("mweb_component_visibility_logging")&&(q.veContainer||(q.veContainer={}),q.veContainer.trackingParams=y);if(q.trackedParams&&q.trackedParams===y)return!1;var t;if(_.T("enable_client_ve_spec_logging")&&((t=q.visualElement)==null?0:t.isClientVe())){var X;t=(X=q.visualElement)==
null?void 0:X.getAsJspb();var G,n,N,Q;if(_.yG(t,2)===((G=w.loggingDirectives)==null?void 0:(n=G.clientVeSpec)==null?void 0:n.uiType)&&_.yG(t,3,-1)===((N=w.loggingDirectives)==null?void 0:(Q=N.clientVeSpec)==null?void 0:Q.elementIndex))return!1}if(_.T("enable_client_ve_spec_logging")){var I,U;!q.visualElement&&((I=w.loggingDirectives)==null?0:(U=I.clientVeSpec)==null?0:U.uiType)&&(G=w.loggingDirectives.clientVeSpec,w=G.uiType,X=G.elementIndex,G=G.clientYoutubeData,q.visualElement=_.N2(_.Qz(),{veType:w,
elementIndex:X,clientYouTubeData:G}))}return!0};
AAu=function(q){if(q==null?0:q.rendererContext){var w=_.C(q.rendererContext,_.af7);if(w==null?0:w.loggingDirectives)return w.loggingDirectives.trackingParams}return(q==null?0:q.loggingDirectives)?q.loggingDirectives.trackingParams:q==null?void 0:q.trackingParams};
W6=function(q){var w;return(w=q.polymerController)!=null?w:q};
$So=function(q){_.sO();if(_.SZ(Ig().JSC$10367_elementShouldLogGesture).bind(Ig())(q,4)){DSM(q);var w=ZSy(q);pHj.set(q,w)}};
DSM=function(q){pHj.has(q)&&(pHj.get(q).cancel("untrack hover element"),pHj.delete(q))};
ZSy=function(q){var w,u=[],y=!1,e=new _.IA(function(t,X){rL(q,"mouseenter",_.SZ(function(){var G,n,N;return _.F(function(Q){if(Q.nextAddress==1)return w=(0,_.eW)(),G=vaJ(q),u.push(G),n=bSu(q,function(){y=!0;X(Error("Vg"))}),_.H(Q,G,2);
if(Q.nextAddress!=3)return n&&UO(n),N=YSy(q),u.push(N),_.H(Q,N,3);t();_.HI(Q)})}))});
e.then(function(){var t=(0,_.eW)()-w;t=Math.round(t);if(!(500>t||6E5<=t)){var X=q.getScreenLayer?q.getScreenLayer():void 0;X=_.pN(X)||"";var G=gaJ(_.sO(),q);_.ly(X,q.visualElement?q.visualElement:_.Tj(G),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:t}})}$So(q)},function(){Cx&&(Cx(),Cx=null);
y&&(DSM(q),$So(q))});
return e};
vaJ=function(q){var w;return(new _.IA(function(u,y){Cx=function(){y(Error("Wg"))};
w=_.pi.debounce(_.SZ(function(){UO(e);u()}),1,100);
var e=_.dL(q,"mousemove",w)})).thenCatch(function(){var u=_.pi.cancelDebouncedJobMap.get(w);
u&&_.pi.cancelJob(u)})};
YSy=function(q){var w;return(new _.IA(function(u,y){Cx=function(){y(Error("Xg"))};
w=rL(q,"mouseleave",_.SZ(function(){u()}))})).thenCatch(function(){UO(w)})};
bSu=function(q,w){return rL(q,"mouseleave",_.SZ(w))};
RAu=function(q){Ea7&&_.OO.cancel(Ea7);Ea7=_.OO.run(function(){_.t7(q,"yt-visibility-refresh");Ea7=0})};
cAH=function(q){q=Number(q);return"rgba("+[q>>16&255,q>>8&255,q&255,(q>>24&255)/255].join()+")"};
hAM=function(q){if(!q)return!1;if(_.C(q,_.SSl))return!0;var w;if(q=(w=_.C(q,_.Ww))==null?void 0:w.commands)for(w=_.P(q),q=w.next();!q.done;q=w.next())if(_.C(q.value,_.SSl))return!0;return!1};
jl7=function(q){var w=!0;w=w===void 0?!0:w;if(!q.useSignals&&!q.experimentalPropertiesChanged||_.T("experimental_templating_behavior_nopatch_killswitch")){var u=q._propertiesChanged;q._propertiesChanged=function(y,e,t){w?q.debounceRender():q.doRender();u&&u.call(q,y,e,t)}}};
lfJ=function(q,w){if(q.useSignals||q.experimentalPropertiesChanged)if(_.T("experimental_templating_behavior_nopatch_killswitch"))q.experimentalPropertiesChanged=function(){};
else return;var u=new Set,y=[q].concat(_.Cm(q.behaviors));y=_.P(y);for(var e=y.next();!e.done;e=y.next()){e=e.value;for(var t in e.properties)u.has(t)||(q._addPropertyEffect(t,"function",w),u.add(t))}};
L5u=function(){var q=Polymer.Element,w=q._prepareTemplate;q._prepareTemplate=function(){w.call(this);var u=this.prototype;if(u.experimentalTemplatingInUse&&u.experimentalTemplatingInUse()&&u.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.vm(Error("Yg"));else{u=this.template.content.childNodes;for(var y=u.length-1;y>=0;y--){var e=u[y];e.nodeName!=="STYLE"&&e.nodeName!=="LINK"&&e.nodeName!=="SCRIPT"&&e.nodeName!=="#comment"&&e.remove()}}}};
Mt6=function(q){var w=!0;w=w===void 0?!0:w;L5u();var u=q.ready;q.ready=function(){this._template=null;u.call(this)};
lfJ(q,w?q.debounceRender:q.doRender)};
BOj=function(q,w,u){if(u===null||u===void 0)return u;var y=PYH(q.tagName.toLowerCase(),w,function(){throw Error("Qb");});
if(y===null)return u;y=K5H[y];var e;if((e=y.isUnwrappable)==null?0:e.call(y,u)){if(y.unwrap)return y.unwrap(u);throw Error("ah");}return y.filterString?y.filterString(q.tagName,w,String(u)):u};
xSH=function(q,w,u){var y=w[w.length-1]!=="$",e=BOj(q,w,u);if(y)if(typeof e==="function"&&w.startsWith("reactiveon")&&w===w.toLowerCase()){var t=yy;IT7(q,w.slice(8),function(X){bO(t,function(){e(X)})})}else q[w]=e;
else u=e==null?null:String(e),Qz6(q,w.slice(0,-1),u)};
Vz=function(q){qdo.length===0&&requestAnimationFrame(function(){setTimeout(function(){var w=qdo.slice();qdo.length=0;w=_.P(w);for(var u=w.next();!u.done;u=w.next()){u=u.value;try{u()}catch(y){_.og(y)}}})});
qdo.push(q)};
wbu=function(q){if(q){var w=q.component;if(w){var u;w==null||(u=w.events)==null||u.publish("DISCONNECTED");var y;w==null||(y=w.onDisconnected)==null||y.call(w)}var e,t;(e=q.__spec)==null||(t=e.didUnmount)==null||t.call(e);for(w=0;w<q.childNodes.length;w++)wbu(q.childNodes[w])}};
m6=function(q,w,u){var y=w&&w.key,e=uo;e[0]=q;e[1]=y;e[2]=void 0;for(var t in w)w.hasOwnProperty(t)&&(q=w[t],y=yQ,y.push(t),y.push(q));w=uo;a:{if(t=uo[2])for(q=0;q<t.length;q+=2)if(t[q]==="nonce"){t=t[q+1];break a}t=""}t=J6j(w[0],w[1],t);q=hX(t);y=w[2];if(!q.staticsApplied&&(q.staticsApplied=!0,y&&y.length))if((e=q._attrsArr)&&e.length){for(e=0;e<y.length;e+=2)fx[y[e]]=e+1;e=q._attrsArr||(q._attrsArr=Nrl(0));for(var X=0,G=0;G<e.length;G+=2){var n=e[G],N=e[G+1],Q=fx[n];Q?y[Q]===N&&delete fx[n]:(e[X]=
n,e[X+1]=N,X+=2)}g4(e,X);for(var I in fx)CYz(t,I,y[fx[I]],uV),delete fx[I]}else for(I=0;I<y.length;I+=2)CYz(t,y[I],y[I+1],uV);vZf(t,q,uV);g4(w,0);u&&u(j7);zuc()};
uIl=function(q){var w=q.toString().toLowerCase();return function(u,y){m6(w,u,y)}};
_.AB=function(q,w,u){u===void 0?delete q[w.name]:q[w.name]=u};
_.JB=function(q){var w={androidIncludeFontPadding:!1},u=0,y=[],e=[],t=[];if(q.simpleText)return w.content=q.simpleText,w;if(q.runs===void 0)return w.content="",w;q=_.P(q.runs);for(var X=q.next();!X.done;X=q.next()){X=X.value;var G=X.text,n=void 0,N=(n=G)==null?void 0:n.length;if(G&&N){y.push(G);if(X.bold||X.italics||X.strikethrough||X.underline||X.textColor!=null&&X.textColor!==0||X.deemphasize){G=e;n=G.push;var Q={startIndex:u,length:N};X.bold&&(Q.weightLabel="FONT_WEIGHT_MEDIUM");X.italics&&(Q.italic=
!0);X.strikethrough&&(Q.strikethrough="LINE_STYLE_SINGLE");X.underline&&(Q.underline="LINE_STYLE_SINGLE");X.textColor!=null&&X.textColor!==0?document.documentElement.hasAttribute("dark")?Q.fontColor=X.darkModeTextColor||X.textColor:Q.fontColor=X.textColor:X.deemphasize&&(document.documentElement.hasAttribute("dark")?Q.fontColor=parseInt("ff"+y0l("#aaa").substring(1),16):Q.fontColor=parseInt("ff"+y0l("#606060").substring(1),16));n.call(G,Q)}X.navigationEndpoint&&(G=t,n=G.push,Q={startIndex:u,length:N,
onTap:{innertubeCommand:X.navigationEndpoint}},X.loggingDirectives&&_.AB(Q,ei7,X.loggingDirectives),n.call(G,Q));u+=N}}w.content=y.join("");w.styleRuns=e.length?e:void 0;w.commandRuns=t.length?t:void 0;return w};
t1H=function(q){if(q==null||!q.runs)return!0;q=_.P(q.runs);for(var w=q.next();!w.done;w=q.next())if(w=w.value,w.bracket||w.errorUnderline||w.deemphasize||_.C(w,zj)||_.C(w,kNM))return!1;return!0};
PXs=function(q,w){return function(u){var y=w.unit;if(y!==u)throw Error("dh`"+q+"`"+y+"`"+u);return w}};
ag=function(q){if(!((q==null?0:q.value)&&(q==null?0:q.unit)))return"";switch(q.unit){case "DIMENSION_UNIT_FRACTION":var w="%";break;default:w="px"}q=q.value;w==="%"&&(q*=100);return""+q+w};
Xbl=function(q){try{return q()}catch(w){_.Y8(w)}};
_.Zh=function(q){var w=_.C(q,_.Dh);if(w)return w;if((w=_.C(q,F8H))&&w.commands)return GNl(w.commands);if((w=_.C(q,n0c))&&w.commands)return GNl(w.commands);if((q=_.C(q,HXJ))&&q.identifier&&q.command&&(W8j||(W8j=[]),!W8j.includes(q.identifier)))return W8j.push(q.identifier),_.C(q.command,_.Dh)};
GNl=function(q){if(q.length!==0){var w=[];q=_.P(q);for(var u=q.next();!u.done;u=q.next())(u=_.Zh(u.value))&&w.push(u);return{commandExecutorCommand:{commands:w}}}};
_.$B=function(q){var w=q.defaultTarget,u=q.elementConfig,y=q.elementsCommand,e=q.skipOnClick,t=q.forceNewState,X=q.additionalCommandArgs,G=q.innertubeCommand||_.Zh(y);if(G){q={};var n=se6(G);y=n.navigatingCommand;n=n.href;y&&n?(q.href$=n,NpM(q,y,n,w),_.T("web_atagconfig_pointerdown")&&QeM(q,y),t&&(q["force-new-state$"]=!0)):(q.role$="button",q.href$="javascript:void(0);");_.C(G,IX6)&&(q["aria-haspopup$"]=!0);e||(q.onclick=function(N){if(iXu(N)){var Q=Object.assign({},{form:{element:N.target,event:N}},
X);N.preventDefault();_.px(G,Q)}});
return Object.assign({},u,q)}};
r0J=function(q){if(q.length){if(q.length===1)return q[0];var w={};_.AB(w,_.Ww,{commands:q});return w}};
v6=function(q){return q&&q.href$!=="javascript:void(0);"};
se6=function(q){var w,u=((w=_.C(q,_.Ww))==null?void 0:w.commands)||[q];q=_.P(u);for(w=q.next();!w.done;w=q.next()){w=w.value;var y=void 0,e=void 0;u=(e=_.C((y=w)==null?void 0:y.commandMetadata,_.wk))==null?void 0:e.url;_.T("web_remove_web_navigation_endpoint_data")||(y=void 0,u=u||((y=_.C(w,U84))==null?void 0:y.url));if(u&&u!=="/service_ajax"){if(y=Iw(u,Tpy))return q=_.NC(y),{navigatingCommand:w,href:q};_.Y8(new _.fv("AttributedString URL could not be sanitized",u))}}return{}};
iXu=function(q){return q.button!==void 0?q.button===0&&!(q.shiftKey||q.altKey||q.metaKey||q.ctrlKey):!(q.shiftKey||q.altKey||q.metaKey||q.ctrlKey)};
NpM=function(q,w,u,y){u=!yV(u);var e,t,X;if((e=_.C(w,_.Ii))!=null&&e.nofollow||(t=_.C(w,_.LN))!=null&&t.nofollow||(X=_.C(w,_.jw))!=null&&X.nofollow||u)q.rel$="nofollow";var G;w=((G=_.C(w,_.jw))==null?void 0:G.target)==="TARGET_NEW_WINDOW"?"_blank":y===void 0?"":y;q.target$=w};
QeM=function(q,w){w.clickTrackingParams&&(q.params={itct:w.clickTrackingParams});q.onpointerdown=function(u){CXl(u)};
q._data=w};
d8z=function(q){(q.loggingUrls||[]).forEach(function(w){Li(w.baseUrl,w.attributionSrcMode)})};
OXJ=function(q){q.currentTarget._data&&d8z(q.currentTarget._data)};
CXl=function(q){var w=q.currentTarget;q=Xbl(function(){return w.href});
var u=w.params;q&&_.xG(q,u||{},8,!0)};
o0z=function(q,w){if(w=_.C(w,_.jw))(w==null?void 0:w.target)==="TARGET_NEW_WINDOW"&&(q.target="_blank"),w.nofollow&&(q.rel="nofollow")};
V1H=function(q){q=_.C(q==null?void 0:q.commandMetadata,_.wk);return(q==null?0:q.url)?q.url:null};
_.bn=function(q,w){(q=_.Zh(q))&&_.px(q,w)};
_.px=function(q,w){dbu(function(u){w?u.resolveCommand(q,w):u.resolveCommand(q)})};
J0o=function(q,w){var u=["yt-core-attributed-string__link"];w!=null&&w.noLinkColor||((w==null?0:w.isOverlay)?u.push("yt-core-attributed-string__link--overlay-call-to-action-color"):u.push("yt-core-attributed-string__link--call-to-action-color"),(w==null?0:w.linkInheritColor)&&u.push("yt-core-attributed-string--link-inherit-color"));u={className:u.join(" "),tabindex$:"0"};var y=q.onTap||q.onLongPress;if(!y)return u;var e=fXJ(q);e&&(u["aria-label$"]=e);w=_.$B({elementsCommand:y,elementConfig:u,skipOnClick:!(w==
null||!w.skipOnClick),forceNewState:!0});q.onLongPress&&(y=new m87(function(){var t=_.Zh(q.onLongPress);t&&_.tG().resolve(_.PG).resolveCommand(t)}),w&&A0M(y,w));
return w||u};
fXJ=function(q){var w,u;return(w=q.onTapOptions)==null?void 0:(u=w.accessibilityInfo)==null?void 0:u.accessibilityLabel};
zio=function(q){var w=q;q<=16777215&&(w+=parseInt("ff000000",16));return _.Je(w)};
aXo=function(q){var w=q.isDarkTheme;var u=q.extension;q=q.runColor;var y=void 0;if(u=u==null?void 0:u.colorMap){w=w?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";u=_.P(u);for(var e=u.next();!e.done;e=u.next())if(e=e.value,w===e.key){y=e.value;break}}y==null&&q&&(y=q);if(y)return zio(y)};
YB=function(q){var w=q.config;var u=q.image;var y=q.imageConfig;var e=q.imageWrapperConfig;var t=q.run;var X=q.tag;var G=q.textLength;var n=q.startIndex===void 0?0:q.startIndex;q=q.length;n===void 0&&(n=0);t={run:t,startIndex:n,endIndex:q!==void 0?n+q:G,tag:X};u&&(t.image=u);y&&(t.imageConfig=y);e&&(t.imageWrapperConfig=e);w&&(t.config=w);return t};
ZXl=function(q,w){var u=[];u.push("yt-core-attributed-string");(w==null?0:w.className)&&u.push(w==null?void 0:w.className);(w==null?0:w.ellipsisTruncate)?u.push("yt-core-attributed-string--ellipsis-truncate"):(w==null?0:w.noWrap)?u.push("yt-core-attributed-string--white-space-no-wrap"):(w==null?0:w.noPreWrap)||u.push("yt-core-attributed-string--white-space-pre-wrap");(w==null?0:w.linkInheritColor)&&u.push("yt-core-attributed-string--link-inherit-color");q.alignment&&u.push(D8J(q.alignment));q.lineBreakMode&&
u.push("yt-core-attributed-string--word-wrapping");return u.join(" ")};
pbf=function(q){if(q.weight)return q.weight;switch(q.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}};
$8c=function(q){switch(q){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"}};
D8J=function(q){switch(q){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"}};
bX7=function(q,w,u){var y=w;q.content&&u&&(u=q.content.indexOf("\n"),u!==-1&&(y=Math.min(w,u)));if(!q.content||q.content.length<=y)w=q;else if(q.attachmentRuns||q.commandRuns||q.decorationRuns||q.styleRuns||q.paragraphStyleRuns){w=gL(q.content,y);u=y;var e=q.attachmentRuns;if(e){var t=[];e=_.P(e);for(var X=e.next();!X.done;X=e.next())X=Object.assign({},X.value),X.startIndex===void 0||X.startIndex>=u||(X.length||(X.length=0),X.length+X.startIndex>u&&(X.length=u-X.startIndex),t.push(X));u=t}else u=
void 0;t=v06(y,q.commandRuns);e=y;var G=q.decorationRuns;if(G){X=[];G=_.P(G);for(var n=G.next();!n.done;n=G.next()){n=n.value;var N=_.C(n.textDecorator,EO);if(N&&N.startIndex!==void 0&&!(N.startIndex>=e)){n=Object.assign({},n,{textDecorator:{highlightTextDecorator:Object.assign({},N)}});N=_.C(n.textDecorator,EO);if(!N.length||N.length+N.startIndex>e)N.length=e-N.startIndex;X.push(n)}}e=X}else e=void 0;X=v06(y,q.styleRuns);if(G=q.paragraphStyleRuns)for(q=[],G=_.P(G),n=G.next();!n.done;n=G.next()){var Q=
n.value;n=Object.assign({},Q);if(!(n.startIndex===void 0||n.startIndex>=y)){if(!n.length||n.length+n.startIndex>y)n.length=y-n.startIndex;N=[];var I=void 0,U=void 0;if((I=Q)==null?0:(U=I.listGroup)==null?0:U.listItems)for(Q=_.P(Q.listGroup.listItems),I=Q.next();!I.done;I=Q.next())if(I=Object.assign({},I.value),!(I.startIndex===void 0||I.startIndex>=y)){if(!I.length||I.length+I.startIndex>y)I.length=y-I.startIndex;N.push(I)}N.length>0&&(n.listGroup||(n.listGroup={}),n.listGroup=Object.assign({},n.listGroup,
{listItems:N}));q.push(n)}}else q=void 0;w={content:w,attachmentRuns:u,commandRuns:t,decorationRuns:e,styleRuns:X,paragraphStyleRuns:q}}else w=Object.assign({},q,{content:gL(q.content,y)});return w};
v06=function(q,w){if(w){var u=[];w=_.P(w);for(var y=w.next();!y.done;y=w.next())if(y=Object.assign({},y.value),!(y.startIndex===void 0||y.startIndex>=q)){if(!y.length||y.length+y.startIndex>q)y.length=q-y.startIndex;u.push(y)}return u}};
gL=function(q,w){var u=w,y;if(y=u>0)y=q.charCodeAt(u-1),y=y>=55296&&y<=56319;y&&(u=q.charCodeAt(u),y=u>=56320&&u<=57343);y&&--w;return q.substring(0,w)};
RiH=function(q,w,u){u=u===void 0?Yds:u;if(q){var y=_.tG().resolve(el);y||_.T("mweb_no_observer_killswitch")?zAJ(q,{data:w,observer:y,visibilityCallback:u,hideOption:g0l,showOption:E0l,layer:q.layer}):_.Y8(new _.fv("Warning: monitorVisibility called with null observer",q.tagName,w==null?void 0:w.loggingDirectives,w==null?void 0:w.trackingParams))}else _.Y8(new _.fv("Warning: monitorVisibility called with null element",w==null?void 0:w.loggingDirectives,w==null?void 0:w.trackingParams,w==null?void 0:
w.rendererContext))};
M1y=function(q,w){var u=[],y=q.content.length,e,t=(e=_.tG().resolve(_.kF(_.Rg)))==null?void 0:e();if(q.paragraphStyleRuns){e=_.P(q.paragraphStyleRuns);for(var X=e.next();!X.done;X=e.next()){var G=u.push,n=G.apply;var N=void 0;X=X.value;if((N=X.listGroup)!=null&&N.listItems){N=[];b:switch(X.listGroup.listType){case "LIST_TYPE_BULLET":var Q="ul";break b;default:Q="span"}N.push(YB({run:X,textLength:y,tag:Q,config:{className:"yt-core-attributed-string__list-group"},startIndex:X.startIndex,length:X.length}));
Q=_.P(X.listGroup.listItems);for(var I=Q.next();!I.done;I=Q.next()){I=I.value;b:switch(X.listGroup.listType){case "LIST_TYPE_BULLET":var U="li";break b;default:U="span"}N.push(YB({run:X,textLength:y,tag:U,startIndex:I.startIndex,length:I.length}))}X=N}else X=[];n.call(G,u,_.Cm(X))}}if(q.styleRuns&&(w==null||!w.noStyleRuns))for(e=_.P(q.styleRuns),G=e.next();!G.done;G=e.next()){G=G.value;n=aXo({extension:_.C(G.styleRunExtensions,c0y),isDarkTheme:t===void 0?!1:t,runColor:G.fontColor});N=[];n&&N.push("yt-core-attributed-string--link-inherit-color");
G.italic&&N.push("yt-core-attributed-string--italicized");G.underline&&G.strikethrough?N.push("yt-core-attributed-string--underline-strikethrough",$8c(G.underline)):G.underline?N.push("yt-core-attributed-string--underlined",$8c(G.underline)):G.strikethrough&&N.push("yt-core-attributed-string--strikethrough",$8c(G.strikethrough));if(G.baselineOffset){a:switch(G.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":X="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":X=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:X="yt-core-attributed-string--baseline-offset-unknown"}N.push(X)}X=N.join(" ");N=G;Q={};if(N.weight||N.weightLabel)Q.fontWeight=pbf(N).toString();n&&(Q.color=n);u.push(YB({run:G,textLength:y,tag:"span",config:{className:X,style:Q},startIndex:G.startIndex,length:G.length}))}if(q.decorationRuns)for(e=_.P(q.decorationRuns),G=e.next();!G.done;G=e.next())G=G.value,n={},G.textDecorator&&(Q=G.textDecorator,X=t===void 0?!1:t,I=[],N=
_.C(Q,EO),Q=_.C(Q,Sdj),N?(Q=I,I=Q.concat,U=[],(X=aXo({extension:_.C(N.highlightTextDecoratorExtensions,hij),isDarkTheme:X,runColor:N.backgroundColor}))&&U.push("background-color: "+X+";"),N.backgroundCornerRadius!==void 0&&U.push("border-radius: "+N.backgroundCornerRadius+"px;"),N.leftPadding!==void 0&&U.push("padding-left: "+N.leftPadding+"px;"),N.rightPadding!==void 0&&U.push("padding-right: "+N.rightPadding+"px;"),N.topPadding!==void 0&&U.push("padding-top: "+N.topPadding+"px;"),N.bottomPadding!==
void 0&&U.push("padding-bottom: "+N.bottomPadding+"px;"),I=I.call(Q,U)):Q&&(N=I,I=N.concat,X=X?"#2ba640":"#107516",X=Q.color?zio(Q.color):X,X=["padding: 2px;","border-top: solid "+X+" 2px;","border-bottom: solid "+X+" 2px;","background: linear-gradient(135deg, "+X+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+X+" 3px, rgba(0, 0, 0, 0) 3px);"],I=I.call(N,X)),X=I.join(" "),n.style$=X,X=G.textDecorator,N=[],Q=_.C(X,Sdj),_.C(X,EO)?N.push("yt-core-attributed-string--highlight-text-decorator"):
Q&&N.push("yt-core-attributed-string--bracket-text-decorator"),X=N.join(" "),n.className=X,n.dir="auto"),X=_.C(G.textDecorator,EO),N=_.C(G.textDecorator,Sdj),Q=_.C(G.textDecorator,EO),I=_.C(G.textDecorator,Sdj),u.push(YB({run:G,textLength:y,tag:"span",config:n,startIndex:(X==null?void 0:X.startIndex)||(N==null?void 0:N.startIndex)||0,length:(Q==null?void 0:Q.length)||(I==null?void 0:I.length)||0}));if(q.commandRuns&&(w==null||!w.noEndpoints))for(t=_.P(q.commandRuns),e=t.next();!e.done;e=t.next())e=
e.value,G=J0o(e,w),u.push(YB({run:e,textLength:y,tag:"a",config:G,startIndex:e.startIndex,length:e.length}));if(q.attachmentRuns)for(q=_.P(q.attachmentRuns),t=q.next();!t.done;t=q.next()){t=t.value;n=G=void 0;e={className:"yt-core-attributed-string--inline-block-mod"};if((n=t.element)==null?0:n.properties){n=(G=t.element)==null?void 0:G.properties;G=[];n=_.C(n,jec);if(n==null?0:n.margin)n=n.margin,n.left&&G.push("margin-left: "+ag(n.left)+";"),n.right&&G.push("margin-right: "+ag(n.right)+";"),n.top&&
G.push("margin-top: "+ag(n.top)+";"),n.bottom&&G.push("margin-bottom: "+ag(n.bottom)+";");G=G.length!==0?G.join(" "):void 0;e.style$=G}X=void 0;G={alt:"",preserveHeight:!0,preserveWidth:!0};n=["yt-core-attributed-string__image-element"];if(t.alignment){a:switch(t.alignment){case "ALIGNMENT_BASELINE":N="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":N="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:N=
"yt-core-attributed-string__image-element--image-alignment-bottom"}n.push(N)}if((X=t.element)==null?0:X.properties)X=[],N=_.C(t.element.properties,jec),(N==null?0:N.height)&&X.push("height: "+ag(N.height)+";"),(N==null?0:N.width)&&X.push("width: "+ag(N.width)+";"),X=X.length!==0?X.join(" "):void 0,G.style$=X,N=void 0,X=((N=_.C(t.element.properties,lXj))==null?void 0:N.label)||"",G.alt=X;G.className=n.join(" ");n=void 0;Q=N=void 0;X=((Q=t.element)==null?0:Q.type)?(N=_.C(t.element.type,L8J))==null?
void 0:N.image:void 0;u.push(YB({run:t,textLength:y,tag:"img",image:X,imageConfig:G,imageWrapperConfig:e,startIndex:t.startIndex,length:(n=t.length)!=null?n:0}))}if(w==null?0:w.headerRuns)for(w=_.P(w.headerRuns),q=w.next();!q.done;q=w.next())if(q=q.value,q.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(q.headerMapping)){a:{switch(q.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":t=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":t="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":t="yt-core-attributed-string--heading-3";break a}t=void 0}u.push(YB({run:q,textLength:y,tag:"span",config:t?{className:t}:void 0,startIndex:q.startIndex,length:q.length}))}return u};
_.c6=function(q){return(q==null?void 0:q.content)!==void 0};
K8s=function(q){return _.c6(q)?q:_.JB(q)};
Bp7=function(q){return q.image!==void 0&&q.imageConfig!==void 0};
x8M=function(q,w){if(w==null?0:w.userInput)for(q=_.P(q),w=q.next();!w.done;w=q.next())if(w=w.value,w.tag!=="a"&&w.tag!=="li"){var u=void 0;(u=w).config||(u.config={});w.config.dir=w.tag==="ul"?_.tG().resolve(_.SD):"auto"}};
q$J=function(q){return function(w){var u=q.run;(u.onTap!==void 0||u.onLongPress!==void 0)&&_.C(u,ei7)&&RiH(w,{loggingDirectives:_.C(u,ei7)})}};
w9M=function(q){return function(w){for(var u in q)(uV[u]||uV[S7["default"]])(w,u,q[u])}};
kvf=function(q,w){uiM(w);var u={data:null,start:0,end:q.length,parts:[]};w=_.P(w);for(var y=w.next();!y.done;y=w.next())y=y.value,y_j(u,y.startIndex,y.endIndex,y);e97(q,u);return u};
y_j=function(q,w,u,y){for(var e=_.P(q.parts),t=e.next();!t.done;t=e.next()){t=t.value;if(typeof t==="string")throw Error("fh");if(t.start<=w&&u<=t.end){y_j(t,w,u,y);return}}q.parts.push({data:y,parts:[],start:w,end:u})};
e97=function(q,w){for(var u=w.parts.length;u>=0;u--){var y=w.parts[u],e=w.parts[u-1],t=u===w.parts.length?w.end:y.start;e=u===0?w.start:e.end;t!==e&&w.parts.splice(u,0,q.slice(e,t));y&&e97(q,y)}};
uiM=function(q){q.sort(function(w,u){if(w.startIndex<u.startIndex)return-1;if(u.startIndex<w.startIndex)return 1;w=w.endIndex-w.startIndex;u=u.endIndex-u.startIndex;return w>u?-1:u>w?1:0})};
_.tCl=function(q){var w=q.thumbnails;if(w){q={sources:[]};w=_.P(w);for(var u=w.next();!u.done;u=w.next()){u=u.value;var y={};y.url=u.url;y.width=u.width;y.height=u.height;q.sources.push(y)}return q}};
PKJ=function(q,w,u,y){if(!w)return q.length>=1?q[q.length-1]:null;if(y)for(var e=_.P(q),t=e.next();!t.done;t=e.next()){t=t.value;var X=void 0,G=(X=t.url)==null?void 0:X.indexOf(y);if(G!==void 0&&G>=0)return t}y=_.P(q);for(e=y.next();!e.done;e=y.next())if(e=e.value,e.width&&e.height&&(u&&e.width>=w||!u&&e.height>=w))return e;for(w=q.length-1;w>=0;w--)if(u&&q[w].width||!u&&q[w].height)return q[w];return q[0]};
_.X9H=function(q){var w;return(q=(w=q.sources)==null?void 0:w[0])?q.width/q.height:0};
_.Ftl=function(q){if(q.sources){q=_.P(q.sources);for(var w=q.next();!w.done;w=q.next()){w=w.value;var u=void 0;if((u=w.clientResource)==null?0:u.imageName)return w}}};
GvH=function(q){var w;if((w=q.clientResource)!=null&&w.imageColor)return _.Je(q.clientResource.imageColor)};
_.H67=function(q,w,u,y,e,t,X){if(!w||w.length===0||w[0].clientResource)return null;if(u&&w[0].url)return w[0].url;y===void 0&&(y=!0);if(y){var G;q=ntJ*(e||(q==null?void 0:(G=q.getBoundingClientRect())==null?void 0:G.width)||0)}else{var n;q=ntJ*(t||(q==null?void 0:(n=q.getBoundingClientRect())==null?void 0:n.height)||0)}w=PKJ(w,q,y,X);return(w==null?0:w.url)?w.url:(w==null?0:w.imageData)?w.imageData:null};
Wtj=function(q,w,u){u=u?[u]:[];q.opacity&&u.push("opacity: "+q.opacity+";");w&&q.placeholderColor?(q=_.Je(q.placeholderColor),u.push("background-color: "+q+";")):u.push("background-color: transparent;");return u.join(" ")};
suo=function(q,w,u,y,e){var t=["yt-core-image"];w&&t.push(w);u||t.push("yt-core-image--fill-parent-height");y||t.push("yt-core-image--fill-parent-width");switch(q.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":t.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":t.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":t.push("yt-core-image--content-mode-center");break;default:t.push("yt-core-image--content-mode-scale-to-fill")}q.flipForRtlLayout&&
t.push("yt-core-image--flip-rtl");switch(e){case "TOP_START":var X;t.push(((X=document.body)==null?void 0:X.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return t.join(" ")};
QuM=function(q){var w;if(q==null?0:(w=q.clientResource)==null?0:w.imageName){var u;q=(u=q.clientResource)==null?void 0:u.imageName;a:{switch(q){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":u="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":u="yt-logos-ext:yt-logo-updated";break a}u=void 0}return u||N2u.get(q)||q}};
hB=function(q){return _.T("mweb_wiz_skip_render")?IPJ(q):i6l(q)};
IPJ=function(q){return function(w){var u=J6j("wink-root");w_();zuc();hHu(u,_.W(q,w))}};
i6l=function(q){var w=w===void 0?!1:w;return function(u){if(!w||!_.T("mweb_skip_keto_to_c3_if_no_data")||u.data!==void 0){var y=n4(!1);try{var e=u.children;_.T("mweb_render_outside_patch_killswitch")||j7?e?wA(_.W(q,u,e)):wA(_.W(q,u)):_.Y8(new _.fv("ketoToC3 called outside of a patch",{tagName:q.TAG_NAME}))}finally{n4(y)}}}};
r_M=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
T2j=function(q,w){q.onViewportEntered=w;Uis.observe(q)};
CKH=function(){var q={rootMargin:"10%",threshold:.01};_.T("mweb_enable_set_io_root_to_null_safari")?q.root=null:_.T("mweb_enable_set_io_root_to_body_safari")&&(q.root=document.body);return new IntersectionObserver(function(w,u){w.filter(function(y){return y.intersectionRect.height>0}).forEach(function(y){y=y.target;
if(!_.T("mweb_enable_only_update_image_when_connected")||y.isConnected!==!1){var e;(e=y.onViewportEntered)==null||e.call(y);u.unobserve(y)}})},q)};
diH=function(q,w,u,y,e){function t(){if(y){var G=y.loadedClass,n=y.notifyOnUnloaded;G&&_.jD(q,G);n&&q.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function X(){var G=u(w,q);G&&q.getAttribute("src")!==G&&(_.T("mweb_enable_only_update_image_when_connected")&&q.isConnected===!1||G===q.src||(q.src=G),t())}
e=e===void 0?!0:e;q.removeAttribute("src");t();w&&(e?T2j(q,X):X())};
O6c=function(q,w,u){if(!w)return!1;w=u(w,q);u=q.getAttribute("src");return w&&w===u&&q.complete};
ot7=function(q,w){for(var u in w)u==="className"?q.className=w[u]:(uV[u]||uV[S7.default])(q,u,w[u])};
VCJ=function(q,w,u,y){hB(_.ln)({contentMode:w.contentMode,loadedClass:w.loadedClass,isPreloaded:w.isPreloaded,notifyOnLoaded:w.notifyOnLoaded,notifyOnUnloaded:w.notifyOnUnloaded,preferredThumbnail:w.preferredThumbnail,preserveHeight:w.preserveHeight,preserveWidth:w.preserveWidth,objectPosition:w.objectPosition,targetWidth:w.targetWidth,targetHeight:w.targetHeight,shouldShowPlaceholder:w.shouldShowPlaceholder,useWidth:w.useWidth,alt:w.alt,className:w.className,onerror:w.onerror,onload:w.onload,style$:w.style$,
color:w.color,width:w.width,height:w.height,"aria-hidden$":w["aria-hidden$"],draggable:w.draggable,"data-disabled$":w["data-disabled$"],data:q,callback:u,renderLazy:y===void 0?!0:y,hideOn404:!1})};
mi6=function(q,w,u){u=u===void 0?!1:u;var y=q.sources!==void 0?q:_.tCl(q);if(y){var e=w.onload;w.onload=function(n){var N=n.target;u&&N.naturalWidth===120||_.Lx(N,"yt-core-image--loaded");w.notifyOnLoaded&&N.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));e==null||e(n)};
w.targetWidth&&w.preserveWidth&&(w.width=w.targetWidth);w.targetHeight&&w.preserveHeight&&(w.height=w.targetHeight);var t=_.Ftl(y),X=t&&QuM(t);if(X)return(q=GvH(t))&&(w.color=q),{type:"icon",iconName:X,config:Object.assign({},w,w.alt?{}:{"aria-hidden$":"true"},{"aria-label$":w.alt,role:"img"})};if(q.sources===void 0){w.alt=q.accessibility&&q.accessibility.accessibilityData&&q.accessibility.accessibilityData.label||w.alt;w.style$=Wtj(q,w.shouldShowPlaceholder,w.style$);var G;w.isPreloaded=!((G=_.C(q,
fPf))==null||!G.isPreloaded)}w.contentMode&&!y.contentMode&&(y.contentMode=w.contentMode);w.className=suo(y,w.className,w.preserveHeight,w.preserveWidth,w.objectPosition);w.loadedClass="yt-core-image--loaded";return{type:"image",image:y,config:w}}};
_.M2=function(){var q=_.Cj.apply(0,arguments);return _.x8(function(w){var u=q.map(function(y){return y(w)});
return function(){return void u.forEach(function(y){return void(y==null?void 0:y())})}})};
Kx=function(q,w){var u=w==null?void 0:w.initial;return _.oR(function(){_.$C(!0);return u=q(u)},{equals:w==null?void 0:w.isEqual},"rSlKsc")};
A_j=function(q,w){if(q===w)return!0;if(q===void 0||w===void 0)return!1;var u,y,e,t,X,G,n,N;return q.content===w.content&&((u=q.styleRuns)==null?void 0:u.length)===((y=w.styleRuns)==null?void 0:y.length)&&((e=q.commandRuns)==null?void 0:e.length)===((t=w.commandRuns)==null?void 0:t.length)&&((X=q.attachmentRuns)==null?void 0:X.length)===((G=w.attachmentRuns)==null?void 0:G.length)&&((n=q.decorationRuns)==null?void 0:n.length)===((N=w.decorationRuns)==null?void 0:N.length)};
aPz=function(q,w){if(q){var u=K8s(q);if(u!=null&&u.content)if(_.T("attr_string_reactive"))hB(J_J)({text:q,config:w});else{var y=!(w==null||!w.ariaLabel)||!(u.commandRuns&&u.commandRuns.length!==0||u.paragraphStyleRuns&&u.paragraphStyleRuns.length!==0);q=y?w==null?void 0:w.ariaLabel:null;y=y?"text":null;m6("span",{className:ZXl(u,w),dir$:(w==null?0:w.userInput)?"auto":void 0,"aria-label$":q,role$:y},function(){if(u.styleRuns||u.commandRuns||u.attachmentRuns||u.decorationRuns){var e=M1y(u,w);x8M(e,
w);e=kvf(u.content,e);e=_.P(e.parts);for(var t=e.next();!t.done;t=e.next())z9l(t.value)}else Pl(u.content)})}}};
z9l=function(q){typeof q==="string"?Pl(q):Bp7(q.data)?m6("span",q.data.imageWrapperConfig,function(){VCJ(q.data.image,q.data.imageConfig)}):m6(q.data.tag,q.data.config,function(w){q$J(q.data)(w);
w=_.P(q.parts);for(var u=w.next();!u.done;u=w.next())z9l(u.value)})};
Z6M=function(q){return q.parts.map(Dic)};
Dic=function(q){if(typeof q==="string")return q;q=Bp7(q.data)?_.W("span",{el:_.M2(w9M(q.data.imageWrapperConfig))},_.W(_.ln,Object.assign({},{data:q.data.image},q.data.imageConfig))):_.W(q.data.tag,{el:_.M2(q$J(q.data),w9M(q.data.config))},q.parts.map(Dic));return C4(q)};
p9c=function(q,w){return q===w?!0:q===void 0||w===void 0?!1:q.noStyleRuns===w.noStyleRuns&&q.noLinkColor===w.noLinkColor&&q.noEndpoints===w.noEndpoints&&q.headerRuns===w.headerRuns&&q.isOverlay===w.isOverlay&&q.linkInheritColor===w.linkInheritColor&&q.userInput===w.userInput};
$ic=function(q){return function(){var w,u,y,e,t,X,G,n,N,Q,I,U,d,V;return{ariaLabel:(w=q.ariaLabel)==null?void 0:w.call(q),className:(u=q.className)==null?void 0:u.call(q),ellipsisTruncate:(y=q.ellipsisTruncate)==null?void 0:y.call(q),isOverlay:(e=q.isOverlay)==null?void 0:e.call(q),linkInheritColor:(t=q.linkInheritColor)==null?void 0:t.call(q),noEndpoints:(X=q.noEndpoints)==null?void 0:X.call(q),noStyleRuns:(G=q.noStyleRuns)==null?void 0:G.call(q),noLinkColor:(n=q.noLinkColor)==null?void 0:n.call(q),
noPreWrap:(N=q.noPreWrap)==null?void 0:N.call(q),noWrap:(Q=q.noWrap)==null?void 0:Q.call(q),skipOnClick:(I=q.skipOnClick)==null?void 0:I.call(q),stopPropagation:(U=q.stopPropagation)==null?void 0:U.call(q),userInput:(d=q.userInput)==null?void 0:d.call(q),headerRuns:(V=q.headerRuns)==null?void 0:V.call(q)}}};
vto=function(q){return q.value===""||q.value==="true"?!0:q.value==="false"?!1:isNaN(Number(q.value))?q.value:Number(q.value)};
B6=function(q,w){q=new b64(q,w);_.vm(q);throw q;};
Y$o=function(q,w,u){var y=lcj(q);q._numRenders=0;try{var e=HT4(function(){return _.W(w,Object.assign({},u))})}catch(X){var t=function(G){G.args||(G.args=[]);
G.args.push("Error in web component wrapper");G.args.push(q.tagName.toLowerCase());return G};
_.bD(X instanceof Error?t(X):new b64("Wiz rendering error",q.tagName.toLowerCase()));throw X;}finally{lcj(y)}return e};
_.q9=function(q,w,u){function y(Q){var I={};Q=_.P(Q);for(var U=Q.next();!U.done;U=Q.next()){U=U.value;var d=void 0,V=void 0,J=void 0,a=_.r1((J=(V=(d=U).getAttribute)==null?void 0:V.call(d,"slot"))!=null?J:"children");if(d=I[a])d.push(U);else if(a in t||a==="children")I[a]=[U]}Q=_.P(Object.keys(I));a=Q.next();for(U={};!a.done;U={content$jscomp$55:void 0},a=Q.next())a=a.value,a!=="children"&&(U.content$jscomp$55=I[a],I[a]=function(b){return function(){return b.content$jscomp$55}}(U));
return I}
u=u===void 0?{}:u;q.componentType!==AX||B6("Components must be marked reactive to be used from web component wrapper.",w);un.has(w)&&B6("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",w);var e,t=(e=u.props)!=null?e:{};yz.add(w);var X=gtM();e=function(){var Q=X.apply(this,arguments)||this;Q.rawProps={};Q.queuingRender=!1;Q.dispose=function(){};
Q.isWebComponentWrapper=!0;Q.isReparenting=!1;Q.hasRendered=!1;return Q};
_.O(e,X);e.prototype.render=function(){this.hasRendered=!0;for(var Q=_.P([].concat(_.Cm(this.attributes))),I=Q.next();!I.done;I=Q.next())I=I.value,I.name!=="slot"&&this.removeAttribute(I.name);Q=Object.assign({},this.componentProps,this.slotProps);I=_.P(Y$o(this,q,Q));Q=I.next().value;I=I.next().value;!(Q[0]instanceof Element)||Q.length>1?B6("Wrapped Wiz components must return a single root element.",w):(Q=Q[0].tagName.toLowerCase(),Q!==w&&B6("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(Q+" !== '"+w),w),this.dispose=I)};
e.prototype.setUpProps=function(){for(var Q=this.rawProps,I=this.attributes,U=_.P(Object.keys(t)),d=U.next();!d.done;d=U.next()){d=d.value;var V=void 0;((V=this)==null?0:V[d])&&this[d]!==EtM&&Q[d]===void 0&&(Q[d]=this[d],(V=Object.getOwnPropertyDescriptor(this.constructor.prototype,d))&&Object.defineProperty(this,d,V))}U=_.P(I);for(d=U.next();!d.done;d=U.next()){V=d.value;d=_.r1(V.name);var J=d==="class"&&!I.getNamedItem("class-name");if(d in t||J)V=vto(V),d!=="class"||Q.className?Q[d]=V:Q.className=
V}I={};for(var a in t)t[a]!==_.xB&&t[a]!==R97&&(Q[a]instanceof Function&&B6("Function props must be configured as STATIC, not SIGNAL.",w),d=_.P(_.r4(Q[a],void 0,"Ri8MSe")),U=d.next().value,d=d.next().value,I[a]=d,Q[a]=U);Q=_.P([Q,I]);this.componentProps=Q.next().value;this.setters=Q.next().value;this.slotProps=y(this.childNodes)};
e.prototype.connectedCallback=function(){q2===w&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in t&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
e.prototype.disconnectedCallback=function(){if(!this._isInert){var Q;a:{if(_.c_4)for(Q=this;Q;){if(_.S$l.has(Q)){Q=!0;break a}Q=Q.parentElement}Q=!1}if(Q)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){Q=_.P([].concat(_.Cm(this.attributes)));for(var I=Q.next();!I.done;I=Q.next())I=I.value,I.name!=="slot"&&this.removeAttribute(I.name)}this.innerText="";gL4(this)}}};
e.prototype._setPendingPropertyOrPath=function(){};
e.prototype.notifyPath=function(){};
_.x$.Object.defineProperties(e.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var G=_.P(Object.keys(t)),n=G.next(),N={};!n.done;N={prop$jscomp$103:void 0},n=G.next())N.prop$jscomp$103=n.value,n=void 0,((n=u.legacyPolymer)==null?0:n.forwardHostProps)&&$O4.has(N.prop$jscomp$103)||Object.defineProperty(e.prototype,N.prop$jscomp$103,{set:function(Q){return function(I){var U=this;this._isInert||(this.setters?Vy(function(){var d,V;return void((V=(d=U.setters)[Q.prop$jscomp$103])==null?void 0:V.call(d,I))}):(this.rawProps[Q.prop$jscomp$103]=I,this.queuingRender&&Q.prop$jscomp$103===
"data"&&I!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(N),
get:h9J.has(N.prop$jscomp$103)?void 0:function(){return EtM}});
customElements.define(w,e)};
_.juu=function(q,w){return(q=_.wm(q,w))?_.NC(_.UY(q)):null};
_.uv=function(q){if(q=_.wm(q,Number.MAX_VALUE,void 0,"width"))return _.UY(q)};
_.wm=function(q,w,u,y){y=y===void 0?"width":y;if(!q||!q.length)return null;if(_.T("kevlar_tuner_should_always_use_device_pixel_ratio")){var e=window.devicePixelRatio;_.T("kevlar_tuner_should_clamp_device_pixel_ratio")?e=Math.min(e,_.Fc("kevlar_tuner_clamp_device_pixel_ratio")):_.T("kevlar_tuner_should_use_thumbnail_factor")&&(e=_.Fc("kevlar_tuner_thumbnail_factor"));lPo=e}else lPo||(lPo=window.devicePixelRatio);e=lPo;_.T("kevlar_tuner_should_always_use_device_pixel_ratio")?w*=e:e>1&&(w*=e);if(_.T("kevlar_tuner_min_thumbnail_quality"))return q[0].url||
null;e=q.length;if(_.T("kevlar_tuner_max_thumbnail_quality"))return q[e-1].url||null;if(u)for(var t=0;t<e;t++)if(q[t].url.indexOf(u)>=0)return q[t].url||null;for(u=0;u<e;u++)if(q[u][y]>=w)return q[u].url||null;for(w=e-1;w>0;w--)if(q[w][y])return q[w].url||null;return q[0].url||null};
Ktc=function(){yS.size?setTimeout(function(){e6(Lts)},0):MCy=0};
Lts=function(){var q=(0,_.eW)(),w=null,u=!1;yS.forEach(function(e){e.loaded=!0;e.loadTime=q;e.pendingPaint=!1;var t=B2M.get(e);t&&t.resolve(q);w=e;u||!e.ftlEligible&&e.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(u=!0)});
var y;((y=w)==null?0:y.markDirty)&&w.markDirty();yS.clear();MCy=0;u&&xif(q)};
q0y=function(q){yS.add(q);q.pendingPaint=!0;MCy||(MCy=_.ko(_.pi,Ktc))};
wx4=function(q){q.loaded=!1;q.loadTime=Infinity;var w=B2M.get(q);w&&(w.reject(Error("lh")),B2M.delete(q));q.pendingPaint&&(yS.delete(q),q.pendingPaint=!1)};
_.u9H=function(q){var w=q.indexOf(":");return w===-1?{originalName:q}:{originalName:q.substring(0,w),datasyncId:q.substring(w+1)}};
_.ek7=function(){return _.F(function(q){if(y97!==void 0)return q.return(y97);y97=new Promise(function(w){var u;return _.F(function(y){switch(y.nextAddress){case 1:return _.tD(y,2),_.H(y,_.tE.open("test-only"),4);case 4:return _.H(y,_.tE.delete("test-only"),5);case 5:_.jv(y,3);break;case 2:if(u=_.nm(y),u instanceof Error&&u.name==="SecurityError")return w(!1),y.return();case 3:w("caches"in window),_.HI(y)}})});
return q.return(y97)})};
PmH=function(){return _.F(function(q){if(q.nextAddress==1)return _.H(q,_.ek7(),2);if(!q.yieldResult)return q.return(void 0);kis||(kis=new t2l);return q.return(kis)})};
Xx7=function(q){var w,u,y,e;return _.F(function(t){switch(t.nextAddress){case 1:return _.H(t,PmH(),2);case 2:w=t.yieldResult;if(!w)throw Error("nh");return _.H(t,w.open("yt-player-local-img"),3);case 3:return u=t.yieldResult,_.H(t,u.match(q),4);case 4:y=t.yieldResult;if(!y)throw Error("oh");return _.H(t,y.blob(),5);case 5:return e=t.yieldResult,t.return(e)}})};
FhM=function(q,w){for(var u in q)if(q.hasOwnProperty(u)&&w[u])return u;return null};
Gif=function(q){return"stamp"+q.replace("-","_")+"_"};
nxM=function(q){var w=q.match(/\[\[([\w\.]+)\]\]/);if(w&&w.length>1)return w[1];_.vm(Error("qh`"+q));return null};
Hc7=function(q){return q===void 0?_.RX("REUSE_COMPONENTS",!1):q||!1};
N3o=function(q,w,u){u&&(w.is?(Wh4.has(w)&&(q=Wh4.get(w),u=q.listener,delete w[q.property],u.type==="element"&&w.removeEventListener(u.eventName,u.handler),Wh4.delete(w)),sMJ(w)):w.__proto__==HTMLElement.prototype&&(w=new _.fv("Rendererstamper removed a non custom element","Stamper: "+q+" element: "+(w&&w.nodeName)),_.Y8(w)))};
QMH=function(q,w,u,y){var e=w.node?w.node:w;_.A(u).parentNode===e&&(w.removeChild(u),N3o(q,u,y));if(q=PR.get(u))PR.delete(u),_.pi.cancelJob(q);u.hidden=!1};
IFs=function(q,w,u,y){if(w&&w.children&&(u=w.children[u]))if(_.RX("DEFERRED_DETACH"))for(;u&&!PR.has(u);){var e=q,t=w,X=u,G=y;X.hidden=!0;e=_.mg(_.pi,QMH.bind(null,e,t,X,G),0);PR.set(X,e);u=u.nextElementSibling}else for(;(X=w.lastElementChild)&&(w.removeChild(X),N3o(q,X,y),X!=u););};
icj=function(q){var w=_.Bm();_.p4(function(){for(var u=_.P(q.slotContent),y=u.next();!y.done;y=u.next())w.value.appendChild(y.value)});
return _.W("__slot-el",{el:w,skip:!0})};
_.XK=function(q,w,u){u=u===void 0?r9u:u;un.add(w);var y;(y=u).propNames!=null||(y.propNames=[]);var e=new Set(u.propNames),t=gtM();y=function(){var N=t.call(this)||this;N.props={};N.isUpdating=!1;N.hasAttached=!1;N.isInert=!1;N.updateQueued=!1;N.initialClasses=[];jPo(N,w);return N};
_.O(y,t);y.prototype.forwardKebabCaseProp=function(N,Q){N=_.r1(N);if(e.has(N)||N==="children")this.props[N]=Q};
y.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var N=_.P(this.initialClasses),Q=N.next();!Q.done;Q=N.next())(Q=Q.value)&&this.classList.add(Q);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
y.prototype.handleSlottedContent=function(){for(var N=new Map,Q=_.P(this.children),I=Q.next();!I.done;I=Q.next()){I=I.value;var U=void 0,d=(U=I.getAttribute("slot"))!=null?U:"children";(U=N.get(d))?U.push(I):N.set(d,[I]);if(!I.getAttribute("key")){var V=void 0,J=void 0;I.setAttribute("key",d+"_"+((J=(V=U)==null?void 0:V.length)!=null?J:0))}}N=_.P(N);for(Q=N.next();!Q.done;Q=N.next())I=_.P(Q.value),Q=I.next().value,I=I.next().value,this.forwardKebabCaseProp(Q,_.W(icj,{slotContent:I}))};
y.prototype.connectedCallback=function(){var N=this;if(!jPo(this,w)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var Q=_.P(this.attributes),I=Q.next();!I.done;I=Q.next())I=I.value,this.forwardKebabCaseProp(I.name,vto(I));this.handleSlottedContent();u.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){N.afterFirstPatch()});
this.hasAttached=!0}};
y.prototype.attributeChangedCallback=function(N,Q,I){this.isInert||this.isUpdating||this.isConnected||N!=="class"||this.initialClasses.push.apply(this.initialClasses,_.Cm(I.split(" ")))};
y.prototype.disconnectedCallback=function(){Jq4(this)};
y.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var N,Q;hHu(this,_.W(q,Object.assign({},this.props,{idomKey:(Q=(N=this.__incrementalDOMData)==null?void 0:N.key)!=null?Q:w})),!0)}catch(U){var I=U instanceof Error?U:new _.fv("Wiz rendering error");I.args||(I.args=[]);I.args.push("Error in deprecated web component wrapper");I.args.push(w.toLowerCase());_.vm(I);throw U;}finally{this.updateQueued=this.isUpdating=!1}}};
y.prototype.enqueueUpdate=function(){var N=this;return _.F(function(Q){if(u.synchronous)return N.update(),Q.return();if(N.updateQueued)return Q.return();N.updateQueued=!0;return Q.return(Promise.resolve().then(function(){N.update()}))})};
y.prototype.notifyPath=function(){u.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.x$.Object.defineProperties(y,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var X=_.P(u.propNames),G=X.next(),n={};!G.done;n={prop$jscomp$105:void 0},G=X.next())n.prop$jscomp$105=G.value,Object.defineProperty(y.prototype,n.prop$jscomp$105,{set:function(N){return function(Q){this.isInert||Q===this.props[N.prop$jscomp$105]||(this.props[N.prop$jscomp$105]=Q,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(n)});
customElements.define(w,y)};
_.UVo=function(q,w){return _.HQ(q.entities,"markersEngagementPanelSyncEntity",w)};
T3l=function(q,w){return _.HQ(q.entities,"fantasyWinProbabilityEntity",w)};
CmM=function(q,w){return _.HQ(q.entities,"fantasyTeamEntity",w)};
dVu=function(q,w){return _.HQ(q.entities,"fantasyPlayerEntity",w)};
Ocy=function(q,w){return _.HQ(q.entities,"booleanEntity",w)};
oxl=function(q,w){return _.HQ(q.entities,"qrCodeEntity",w)};
V2c=function(q){return _.HQ(q.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
fFM=function(){if(FK)return FK;if(window.lottie)return FK=Promise.resolve(window.lottie);var q=_.$Z(_.Et("LOTTIE_URL"));return q?FK=new Promise(function(w,u){var y=document.createElement("script");y.addEventListener("load",function(){w(lottie)});
y.addEventListener("error",function(e){var t="Lottie library failed to load.";e?e.message&&(t+=" Original description: "+e.message,_.gs(e,t)):e=Error(t);_.Y8(e);u(e)});
y.setAttribute("async","");_.bZ(y,q);document.head.appendChild(y)}):Promise.reject(Error("rh"))};
mVu=function(){return FK?FK:fFM()};
A9u=function(q){if(q)switch(q){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.T("kevlar_use_wil_icons"))return q=(q=V2c(_.Mt().getState()))&&q.animationLightUrl&&q.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:q.animationLightUrl,pathDarkTheme:q.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:60,lazyLoad:!0}:void 0,q?q:GW.get("LIKE")}};
J9y=function(q){var w=A9u(q);if(w)return w;switch(q){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return GW.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return GW.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return GW.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return GW.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return GW.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return GW.get("NOTIFICATION_BELL")}};
aFy=function(q,w){if(!q||zkH)w=!1;else{if(q.closest){var u=!!A9u(w);u=_.Et("ID_TOKEN")&&u?!!q.closest("segmented-like-dislike-button-view-model"):!1}else u=!1;if(!u)if(q.closest)if(u=!_.Et("ID_TOKEN"),q=q.closest("ytd-subscription-notification-toggle-button-renderer-next"),u||!q)u=!1;else{var y;u=((y=q.data)==null?void 0:y.targetId)==="notification-bell"&&w!=="EXPAND_MORE"}else u=!1;w=u}return w};
DVM=function(q){var w,u;return _.F(function(y){switch(y.nextAddress){case 1:return _.tD(y,2),_.H(y,fetch(q),4);case 4:return w=y.yieldResult,_.H(y,w.json(),5);case 5:return y.return(y.yieldResult);case 2:u=_.nm(y),_.Y8(u),_.HI(y)}})};
Zcj=function(q,w){var u,y,e;return _.F(function(t){if(t.nextAddress==1)return(u=w?q.pathDarkTheme:q.path)?_.H(t,Promise.all([DVM(u),fFM()]),2):t.return();y=t.yieldResult;e=y[0];nT.set(u,e);_.HI(t)})};
_.HR=function(){var q=_.Cj.apply(0,arguments);return function(){for(var w="",u=_.P(q),y=u.next();!y.done;y=u.next())if(y=y.value,typeof y==="function"&&(y=y()),y)if(typeof y==="string")w+=" "+y;else for(var e in y)if(y.hasOwnProperty(e)){var t=y[e];typeof t==="function"&&(t=t());t&&(w+=" "+e)}w=w.trim()||void 0;return _.$C(w)}};
_.WR=function(q){var w;var u=q.data;var y=q.className;var e=q.animationName;var t=q.animationRef;var X=(w=q.elRefForInterop)||_.Bm(),G;_.ZG(function(){var Q;return void((Q=G)==null?void 0:Q.destroy())});
var n;_.DG(function(){var Q=_.$C(e);if(Q!==n){n=Q;var I=Object.assign({},{animationName:Q,animationRef:_.$C(t)},_.$C(u));try{_.tG().resolve(pxM)().then(function(V){var J;(J=G)==null||J.destroy();J=I.animationRef;var a=I.listeners;V=V.loadAnimation(Object.assign({},{container:X.value},I.animationConfig));J&&(J.lottieEl=V);if(a)for(J=_.P(Object.entries(a)),a=J.next();!a.done;a=J.next()){var b=_.P(a.value);a=b.next().value;(b=b.next().value)&&V.addEventListener(a,b)}G=V})}catch(V){Q=V;
var U="LottieComponent error.";Q.message&&(U+=" Original description: "+Q.message);_.gs(Q,U);_.Y8(Q);var d;((d=I.listeners)==null?0:d.error)&&I.listeners.error(Q)}}});
var N=_.HR("ytLottieComponentHost",y);return _.W($5j,{cond:function(){return!w},
then:function(){return _.W("lottie-component",{class:N,el:X})}})};
vxc=function(q,w,u,y){function e(X,G){if(w.value===G&&q!=null&&q.value){for(;q.value.firstChild;)q.value.removeChild(q.value.firstChild);q.value.classList.add("yt-spec-icon-shape");X(q.value,y)}}
u=_.$Vf(_.tG().resolve(_.Gj),u);if(typeof u==="function")w.value=null,e(u,null);else{var t=new _.IA(u.then,u);w.value=t;t.then(function(X){e(X,t)})}};
Y0H=function(q,w){var u=document.createElement("div"),y=_.aX(u,function(){return _.W(_.r,{cond:q,then:function(e){return _.W(bcu,{data:e,options:w})}})});
return[u,y]};
_.s3=function(){for(var q=[],w=_.P(_.Cj.apply(0,arguments)),u=w.next();!u.done;u=w.next())if(u=u.value)if(typeof u==="string")q.push(u);else{u=_.P(Object.entries(u));for(var y=u.next();!y.done;y=u.next()){var e=_.P(y.value);y=e.next().value;(e=e.next().value)&&q.push(y)}}return q.join(" ")};
c9f=function(q){var w=_.Bm(),u=vl(),y=KN(q.character)||KN(q.previousCharacter);Mwl(function(){if(q.marginMultiplier){var e;(e=u.value)==null||e.cancel();y?(e=q.previousCharacter?Number(q.previousCharacter)+10:q.rollUp?0:30,q.shouldAnimate||(e-=gx7(q,e))):(e=q.rollUp?0:2,q.shouldAnimate||(e-=q.rollUp?-1:1));w.value.style.marginTop="-"+e*q.marginMultiplier+"px";q.shouldAnimate?u.value=Exz(w.value,q,e,y):w.value.style.display=q.character?"":"none"}});
return _.W("animated-rolling-character",{el:w,class:"animated-rolling-character-wiz"},uO(y,function(){for(var e=[],t=1;t<30;t++)e.push(_.W("div",null,t%10));return _.W(_.GS,null,_.W("div",null,"\u00a0"),e,_.W("div",null,"\u00a0"))},function(){return Rk4(q.character)}))};
Rk4=function(q){return _.W(_.GS,null,_.W("div",null,"\u00a0"),_.W(_.GS,null,uO(!q||_.Gy(q),function(){return _.W("div",null,"\u00a0")},function(){return _.W("div",null,q)})),_.W("div",null,"\u00a0"))};
Exz=function(q,w,u,y){u=new Animation(new KeyframeEffect(q,[{transform:"translateY(0px)"},{transform:"translateY("+(y?gx7(w,u):w.rollUp?-1:1)*w.marginMultiplier+"px)"}],S0s),document.timeline);w.character?(q.style.display="",u.onfinish=null):u.onfinish=function(){q.style.display="none"};
u.play();return u};
gx7=function(q,w){var u=Number(q.character)+10;if(q.previousCharacter)if(q.character){var y=Number(q.character),e=Number(q.previousCharacter);q=q.rollUp?e<y?u:u+10:e<y?u-10:u}else q=q.rollUp?30:0;else q=q.character==="0"?u:q.rollUp?u-10:u+10;return w-q};
_.N9=function(q,w){return function(u){var y={},e;for(e in u){var t=void 0,X=void 0;((t=w)==null?0:(X=t.callbacks)==null?0:X[e])||(y[e]=u[e])}return _.W(noj,null,function(){for(var G in y)u[G]=_.$C(y[G]);u.disableReactiveLogging=!0;return _.W(q,Object.assign({},u))})}};
_.hkJ=function(q){var w=vl(),u=vl();ZR(function(){w.value=q.numberText;u.value=q.numberValue},[q.numberText]);
var y=q.fontSizeMultiplier?q.heightPx*q.fontSizeMultiplier:q.heightPx,e=kdH(function(){if(q.numberText){var X=q.numberText;var G=q.forceRollUp||!u.value||!q.numberValue||u.value<q.numberValue;var n=!!q.shouldAnimate,N=w.value,Q=[],I=0,U=0,d=(N?N.replace(/\D/g,"").length:0)-(X?X.replace(/\D/g,"").length:0);N=N?N.split(/(\d)/).filter(Boolean):[];for(X=X.split(/(\d)/).filter(Boolean);d<0;){var V=X[U];Q.push({character:V,rollUp:G,marginMultiplier:y,shouldAnimate:n});U++;KN(V)&&d++}for(;I<d;)V=N[I],Q.push({previousCharacter:V,
rollUp:G,marginMultiplier:y,shouldAnimate:n}),I++,KN(V)||d++;for(;U<X.length;)d=X[U],V=N[I],KN(d)===KN(V)?(U++,I++):KN(d)?(I++,d=void 0):KN(V)&&(U++,V=void 0),Q.push({character:d,previousCharacter:V,rollUp:G,marginMultiplier:y,shouldAnimate:n});G=Q}else G=[];return G},[q.numberText]),t=q.numberText?["height: "+y+"px;",
"line-height: "+q.heightPx+"px;"].join(" "):"";return _.W("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:t,dir:"ltr","aria-hidden":"true"},e.map(function(X){return _.W(c9f,Object.assign({},X))}))};
jMl=function(q){var w=q.nodeName;if(q.id)return w+="#"+q.id;if(q.classList)for(var u=_.P(q.classList),y=u.next();!y.done;y=u.next())w+="."+y.value;q.parentElement&&(w=jMl(q.parentElement)+" > "+w);return w};
lFM=function(q){return function(w){var u=ALo("event",{type:w.type});u&&w.target&&u.attr("nodepath",jMl(w.target));return arc(u,q,w)}};
_.QS=function(q){q&&JLs("event")&&(q=lFM(q));return EBo(function(w){var u,y=(u=q)==null?void 0:u(w);return typeof y==="boolean"?y:!0})};
IV=function(q){return function(){return q()?q():void 0}};
Lh7=function(q){return new KeyframeEffect(q,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
M2u=function(q){return new KeyframeEffect(q,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
KhJ=function(q){var w=_.P(_.r4(q,void 0,"Clci1e")),u=w.next().value,y=w.next().value;u.current=q;return[u,function(e){return void y(u.current=e)}]};
_.iv=function(q){var w=Kx(function(){return KhJ(q())},{isEqual:function(u,y){return u[0].current===y[0].current}});
return[function(){return w()[0]()},
function(u){return void w()[1](u)}]};
_.rm=function(q){return function(){var w="",u;for(u in q){for(var y=q[u];typeof y==="function";)y=y();y!==void 0&&y!==null&&(w+="; "+u+": "+y)}return w.length>0?_.$C(w.slice(2)):_.$C()}};
B3c=function(q){switch(q){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"}};
uA7=function(q,w,u,y,e,t){var X=xVz(q),G=X.disabled,n=X.iconPosition,N=X.style,Q=X.focused,I=function(){return!!V()&&n()==="icon-only"},U=function(){return!!V()&&n()==="icon-only-40"},d=function(){return!!V()&&n()==="icon-with-label"},V=function(){return!!w||!(y==null||!y())};
return{type:function(){return N()==="call-to-action-inverse"?"text":N()==="overlay-dark"&&q().type!=="filled"&&q().type!=="tonal"?"tonal":q().type},
shouldFocus:function(){return(Q()||(t==null?void 0:t()))&&!G()},
hasIconLeading:function(){return!!V()&&n()==="leading"},
hasIconTrailing:function(){return!!V()&&n()==="trailing"},
hasIconLeadingTrailing:function(){return!!V()&&!!(u||e!=null&&e())&&n()==="leading-trailing"},
hasIconOnly:I,hasIconOnly40:U,hasIconWithLabel:d,iconButton:function(){return I()||U()||d()},
visiblyDisabled:function(){return(G()?"disabled":q().state)==="disabled"||G()},
overrideSmallSizeIcon:function(){return qoJ(q(),V())},
iconToRender:w?w:function(){return _.W(_.U3,{icon:y,size:function(){return TW(q(),!0)},
active:function(){return q().toggled},
iconFilter:function(){return w5u(q())}})},
secondaryIconToRender:u?u:function(){return _.W(_.U3,{icon:e,size:function(){return TW(q(),!0)},
active:function(){return q().toggled},
iconFilter:function(){return w5u(q())}})}}};
xVz=function(q){return{size:function(){return q().size},
style:function(){return q().style},
focused:function(){return q().focused},
disabled:function(){return q().disabled},
onTap:function(w){var u,y;return(y=(u=q()).onTap)==null?void 0:y.call(u,w)},
alignByText:function(){return q().alignByText},
aTagConfig:function(){return q().aTagConfig},
customColors:function(){return q().customColors},
segmentedPosition:function(){return q().segmentedPosition},
toggled:function(){return q().toggled},
toggleable:function(){return q().toggleable},
accessibilityLabel:function(){return q().accessibilityLabel},
onToggle:function(w){var u,y;return(y=(u=q()).onToggle)==null?void 0:y.call(u,w)},
iconPosition:function(){return q().iconPosition},
oneOffCustomTextWrap:function(){return q().oneOffCustomTextWrap},
disableTextEllipsis:function(){return q().disableTextEllipsis},
disableBackdropFilter:function(){return q().disableBackdropFilter},
tooltipText:function(){return q().tooltipText},
ariaHidden:function(){return q().ariaHidden},
tabIndex:function(){return q().tabIndex},
buttonText:function(){return q().buttonText},
formattedButtonText:function(){return q().formattedButtonText},
animatedTextProps:function(){return q().animatedTextProps}}};
y8s=function(q){return q.style==="overlay-dark"?4:q.style==="overlay"?q.type==="filled"?4:3:q.type==="filled"||q.style==="call-to-action-inverse"||q.style==="mono-inverse"?2:1};
qoJ=function(q,w){w=(q.iconPosition==="icon-only"||q.iconPosition==="icon-only-40"||q.iconPosition==="icon-with-label")&&w;return!q.segmentedPosition&&w&&q.size==="S"};
eg6=function(){return!_.T("web_disable_backdrop_filter")};
TW=function(q,w){switch(q.size){case "XS":return 16;case "S":return qoJ(q,w)?24:16;default:return 24}};
kgy=function(q){switch(q){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"}};
tb4=function(q){switch(q){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"}};
PHM=function(q){switch(q){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"}};
w5u=function(q){if(q.style==="overlay-dark"&&q.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
X5l=function(q){if(!q)return{};var w=q.color,u=q.backgroundColor;q=q.borderColor;var y="";w&&(y+="color: "+w+";");u&&(y+="background-color: "+u+";");q&&(y+="border-color: "+q+";");return{style:y}};
HtH=function(q,w,u){var y=q.buttonText,e=q.formattedButtonText,t=q.formattedButtonTextLegacy,X=q.animatedTextProps,G=q.style,n=q.size,N=q.focused,Q=q.disabled,I=q.onTap,U=q.alignByText,d=q.aTagConfig,V=q.customColors,J=q.segmentedPosition,a=q.toggled,b=q.toggleable,g=q.accessibilityLabel,l=q.onToggle,S=q.iconPosition,eH=q.oneOffCustomTextWrap,x=q.disableTextEllipsis,P4=q.disableBackdropFilter,C7=q.tooltipText,mu=q.ariaHidden,Os=q.tabIndex,YJ=q.state,ao=q.type;G==="call-to-action-inverse"&&(ao="text");
G==="overlay-dark"&&ao!=="filled"&&ao!=="tonal"&&(ao="tonal");var bc=!!w&&S==="leading",Ro=!!w&&S==="trailing",K7=!!w&&!!u&&S==="leading-trailing",gx=!!w&&S==="icon-only",dx=!!w&&S==="icon-only-40",tc=!!w&&S==="icon-with-label",Fa=gx||dx||tc;Q&&(YJ="disabled");var eq=YJ==="disabled"||Q;YJ=qoJ(q,!!w);var Hk={},W3=(Hk["yt-spec-button-shape-next"]=!0,Hk[kgy(ao)]=!0,Hk[tb4(G)]=!eq,Hk["yt-spec-button-shape-next--disabled"]=!!eq,Hk[PHM(n)]=!0,Hk["yt-spec-button-shape-next--focused"]=!!N&&!Q,Hk["yt-spec-button-shape-next--icon-trailing"]=
Ro,Hk["yt-spec-button-shape-next--icon-leading"]=bc,Hk["yt-spec-button-shape-next--icon-leading-trailing"]=K7,Hk["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=K7&&!(y||e),Hk["yt-spec-button-shape-next--icon-button"]=gx||tc,Hk["yt-spec-button-shape-next--icon-only-default"]=dx,Hk["yt-spec-button-shape-next--align-by-text"]=!!U,Hk["yt-spec-button-shape-next--segmented-start"]=J==="start",Hk["yt-spec-button-shape-next--segmented-end"]=J==="end",Hk["yt-spec-button-shape-next--override-small-size-icon"]=
YJ,Hk["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!eH,Hk["yt-spec-button-shape-next--disable-text-ellipsis"]=!!x,Hk["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!P4&&eg6(),Hk),gV=function(){if(X)hB(_.hkJ)(X);else if(t)t(S==="icon-with-label"||eH?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(e){var hc=S==="icon-with-label"||eH;aPz(Object.assign({},e,hc?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:
{}),{noLinkColor:!0,noWrap:!hc})}else y&&Pl(y)},Fl=function(hc){I==null||I(hc);
b&&(l==null||l(hc))},C$=d?FW4:Ggf,ZZ=d?"aria-current$":"aria-pressed$",EA=function(){w&&(bc||K7||Fa)&&function(){CT({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){w()})}();
(y||e||t||X)&&!Fa&&function(){CT({className:"yt-spec-button-shape-next__button-text-content"},function(){gV()})}();
Ro&&function(){CT({className:"yt-spec-button-shape-next__icon"},function(){w()})}();
K7&&function(){CT({className:"yt-spec-button-shape-next__secondary-icon"},function(){u()})}();
Q||hB(_.dm)({model:{color:y8s(q)}})},mj=function(){var hc={};
C$(Object.assign({},(hc.className=_.s3(W3),hc.onclick=d?void 0:Fl,hc.disabled=Q,hc["aria-disabled$"]=eq,hc.style=Q&&d?"pointer-events:none":void 0,hc[ZZ]=b?!!a:void 0,hc["aria-label$"]=g,hc.title$=C7!=null?C7:"",hc["aria-hidden$"]=mu,hc.tabindex$=Os,hc),d,X5l(V)),function(){EA()})};
tc?(n={},G=(n["yt-spec-button-shape-with-label"]=!0,n["yt-spec-button-shape-with-label--is-overlay"]=G==="overlay"||G==="overlay-dark",n),nAc({className:_.s3(G)},function(){mj();CT({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},gV)})):mj()};
WWj=function(q,w){if(!yy){var u;euJ(function(){return u=Fsl(q,w)});
return u}return Fsl(q,w)};
sdz=function(){var q=O4o(yy||void 0,t6o);return q===dZ6||(q==null?void 0:q.name)==="\u0275NotFound"?void 0:q};
O3=function(q,w){_.px(q,Object.assign({},w,{forceClickLogging:!0}))};
Nh6=function(q,w,u,y){var e=void 0;return function(t){var X=_.Zh(u?q==null?void 0:q.onDisabledTap:q==null?void 0:q.onTap);if(X){var G;e=(G=e)!=null?G:w==null?void 0:w.value;if(X)if(_.T("web_button_vm_click_client_ve_killswitch"))O3(X,Object.assign({},{form:{element:e,event:t}},void 0));else{var n;G=X==null?void 0:X.clickTrackingParams;var N,Q=q==null?void 0:(n=q.loggingDirectives)==null?void 0:(N=n.clientVeSpec)==null?void 0:N.uiType;n=Q&&!G?_.oV(Q):void 0;O3(X,Object.assign({},{form:{element:e,event:t}},
{clickedVisualElement:n}))}}y&&y(t)}};
Qdu=function(q){switch(q){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"}};
Ivl=function(q){switch(q){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"}};
itc=function(q){switch(q){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"}};
r87=function(q){switch(q){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"}};
UJM=function(q,w){return _.HQ(q.entities,"engagementToolbarStateEntityPayload",w)};
CHl=function(q){(q=_.Tj(q))&&_.Thz(q)};
_.Thz=function(q){var w=_.pN();w&&_.cw(w,q)};
dJH=function(q,w,u){_.Pw(q,"yt-open-popup-action",[w,u||q])};
OtM=function(q,w){var u=_.bo(q,"endpoint"),y=_.bo(q,"action");return(u=y?y:u)&&w&&(u=w.navigationEndpointPopupMap[u])&&(q=_.hP(u,q),(u=_.bo(q,"renderer"))&&w.supportedPopups.hasOwnProperty(u))?{openPopupAction:{popupType:w.popupTypeMap[u],popup:q}}:null};
oA7=function(q,w,u,y){if(y){var e;u=u==null?void 0:(e=u.data)==null?void 0:e.contents;(e=u instanceof Array&&u.length?u[0]:u)&&(u=_.bo(e,"renderer"))&&y.supportedPopups.hasOwnProperty(u)&&(w.stopPropagation(),dJH(q,{openPopupAction:{popupType:y.popupTypeMap[u],popup:e}}))}};
mJy=function(q,w,u,y){y=y===void 0?!1:y;var e=Vbl(w);if(e){e.href&&Du(e.href);var t=w.button;t=t!==void 0?t===0&&!VS(w):!VS(w);e.data&&t&&fvz(q,e,w,u,y)}};
fvz=function(q,w,u,y,e){e=e===void 0?!1:e;var t=_.Fc("pbj_navigate_limit",-1)===0;A8H(w);_.tG().resolve(_.kF(hq));var X=w.data;if(Object.keys(X).length!==0)if(!_.T("unplugged_web_disable_actions_for_cec_endpoint")&&_.C(X,_.Ww))_.T("endpoint_behavior_command_executor_fix_killswitch")||(u.preventDefault(),u.stopPropagation()),_.nq(q,[X],q);else if(y=OtM(X,y))X.loggingUrls&&X.loggingUrls.forEach(function(n){n.baseUrl&&_.h6(n.baseUrl)}),u.preventDefault(),u.stopPropagation(),dJH(q,y,w);
else{var G=J8M(0,w.data,u);if(q=w.getForm)q=q(),G.tempData=G.tempData||{},G.tempData=Object.assign({},G.tempData,q);q=_.SQ(u);if(y=q.find(function(n){return!!n.visualElement}))G.createScreenConfig=G.createScreenConfig||{},G.createScreenConfig.clickedVisualElement=y.visualElement;
if(!t)if(u.preventDefault(),u.stopPropagation(),_.C(X,_.zgJ)&&!e&&_.nx.instance)_.nx.instance.resolveCommand(X,G);else if(_.T("kevlar_command_handler_formatted_string")&&!e&&_.nx.instance&&av4(X))e=q.find(function(n){return!!n.is})||u.target,u={form:Object.assign({},G,{event:u,
element:e,originatingNode:w})},_.nx.instance.resolveCommand(X,u);else{X=_.SQ(u);u=[];for(e=0;e<X.length;e++)(t=X[e].is)&&u.push(t);oBj({parents:u.join(","),text:w.innerText},function(){_.t7(w,"yt-navigate",G)})}}};
DJs=function(q){if(q=Vbl(q))A8H(q),yo7(q.href)};
Vbl=function(q){q=_.SQ(q);for(var w,u=0;u<q.length;u++)if(w=q[u],w.tagName==="A"&&w.classList.contains("yt-simple-endpoint")){if(!w.data)break;return w}return null};
VS=function(q){return q.shiftKey||q.altKey||q.metaKey||q.ctrlKey};
Zt4=function(q,w){var u={itct:w.clickTrackingParams};_.T("kevlar_client_side_screens")&&(!_.C(w,_.Tt)||_.T("kevlar_exclude_endpoint_killswitch"))&&(u.endpoint=JSON.stringify(w));_.T("enable_unknown_lact_fix_on_html5")&&_.tG().resolve(_.kF(_.fT))&&(u.lact=_.Pm());qrs(u);_.xG(q,u)};
A8H=function(q){q.href&&Object.keys(q.data).length!==0&&Zt4(q.href,q.data)};
av4=function(q){for(var w=_.P(p5s),u=w.next();!u.done;u=w.next())if(q[u.value])return!1;return!0};
_.ms=function(q,w){if(w){var u={};$Jz.forEach(function(y){y=vAM(w,y,"--yt-lightsource-");Object.assign(u,y)});
btu.forEach(function(y){y=vAM(w,y,"--yt-basic-");Object.assign(u,y)});
_.Pj(q,u)}};
vAM=function(q,w,u){var y={};y[u+_.i9(w)]=q&&q[w]?_.Je(q[w]):"";return y};
_.JE=function(q,w,u){AE[q]||(AE[q]={});AE[q][w]=u};
_.zW=function(q){AE[q]||(AE[q]={});return AE[q]};
Yoo=function(q){if(!q)return{};var w=q.foregroundTitleColor,u=q.backgroundColor;q=q.borderColor;var y="text";q?y="outline":u&&(y="filled");return{type:y,customColors:{color:w?_.Je(w):void 0,backgroundColor:u?_.Je(u):void 0,borderColor:q?_.Je(q):void 0}}};
Sou=function(q){var w=q.renderer;var u=q.element;var y=q.commandController;var e=q.onTapCallback;var t=q.skipCommandHandling;var X=q.overrides;var G=q.forceIcon;var n=q.forceModernIconButton;var N=q.forceDisabled;var Q=q.isSubscribe===void 0?!1:q.isSubscribe;var I=q.isPressed===void 0?!1:q.isPressed;var U=q.useButtonSize===void 0?!1:q.useButtonSize;q=gAM(w);Q&&(q.style="mono",q.type="filled");G=!w.icon||!G&&w.text?w.icon?w.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:n?"icon-only":"icon-only-40";G==="icon-only-40"&&(q.type="text");var d;n=Object;Q=n.assign;U=EAo(w,U);I=!!w.isSelected||!_.T("web_propagate_is_pressed_killswitch")&&!!I;var V=w.isSelected!==void 0;N=N===void 0?w.isDisabled:N;var J=w.text?_.JB(w.text):void 0;var a,b,g,l=((a=w.accessibilityData)==null?void 0:(b=a.accessibilityData)==null?void 0:b.label)||((g=w.accessibility)==null?void 0:g.label);a=l?l:_.lA(w.text);u=RgH(w,u,y,e,t);y=c8u(w);y!=null&&y.length?(y=_.$B({innertubeCommand:r0J(y),
forceNewState:!0}),y=v6(y)?y:void 0):y=void 0;return Q.call(n,{},q,U,{iconPosition:G},X,{focused:!1,toggled:I,toggleable:V,disabled:N,formattedButtonText:J,accessibilityLabel:a,onTap:u,aTagConfig:y},Yoo((d=w.colorData)==null?void 0:d.basicColorPaletteData),{oneOffCustomTextWrap:w.oneOffCustomTextWrap})};
RgH=function(q,w,u,y,e){return function(t){var X=c8u(q);y(X,t);if(!e){X=_.P(X);for(var G=X.next();!G.done;G=X.next())O3(G.value,{form:{element:w,event:t},commandController:u})}}};
c8u=function(q){var w=[];q.command&&w.push(q.command);q.serviceEndpoint&&w.push(q.serviceEndpoint);q.navigationEndpoint&&w.push(q.navigationEndpoint);return w};
EAo=function(q,w){if(w)switch(q.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(q.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
gAM=function(q){switch(q.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"}}};
_.aV=function(q){return _.oR(function(){Mmo()();return Sf(q)},void 0,"Icv7j")};
DK=function(q,w){return _.HQ(q.entities,"likeStatusEntity",w)};
hgu=function(q,w){return _.HQ(q.entities,"likeCountEntity",w)};
_.jdc=function(q,w){return _.HQ(q.entities,"stringEntity",w)};
lvs=function(q,w){if(!q)return!1;var u,y=(u=_.C(q,_.NU))==null?void 0:u.signal;if(y&&w.signalEndpointMap)return!!w.signalEndpointMap[y];var e;if((u=(e=_.C(q,_.ZK))==null?void 0:e.request)&&w.continuationEndpointMap)return!!w.continuationEndpointMap[u];for(var t in q)if(w.commandEndpointMap[t])return!0;return!1};
LWJ=function(q,w){if(w.streamingEndpointMap)for(var u in q)if(w.streamingEndpointMap[u]&&(q=w.streamingEndpointMap[u]))return q()};
MbH=function(q,w){var u,y=(u=_.C(q,_.NU))==null?void 0:u.signal;if(y&&w.signalEndpointMap&&(u=w.signalEndpointMap[y]))return u();var e;if((u=(e=_.C(q,_.ZK))==null?void 0:e.request)&&w.continuationEndpointMap&&(e=w.continuationEndpointMap[u]))return e();for(var t in q)if(w.commandEndpointMap[t]&&(q=w.commandEndpointMap[t]))return q()};
KWH=function(q){var w={"Content-Type":"application/json"};_.Et("EOM_VISITOR_DATA")?w["X-Goog-EOM-Visitor-Id"]=_.Et("EOM_VISITOR_DATA"):_.Et("VISITOR_DATA")&&(w["X-Goog-Visitor-Id"]=_.Et("VISITOR_DATA"));w["X-Youtube-Bootstrap-Logged-In"]=_.Et("LOGGED_IN",!1);_.Et("DEBUG_SETTINGS_METADATA")&&(w["X-Debug-Settings-Metadata"]=_.Et("DEBUG_SETTINGS_METADATA"));q!=="cors"&&((q=_.Et("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(w["X-Youtube-Client-Name"]=q),(q=_.Et("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(w["X-Youtube-Client-Version"]=
q),(q=_.Et("CHROME_CONNECTED_HEADER"))&&(w["X-Youtube-Chrome-Connected"]=q),(q=_.Et("DOMAIN_ADMIN_STATE"))&&(w["X-Youtube-Domain-Admin-State"]=q),_.RX("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(q=_.Et("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(w["X-YouTube-Lava-Device-Context"]=q));return w};
Bhl=function(q,w){w.watchNextResponse||w.reelItemWatchResponse?w.watchNextResponse?q.content=w.watchNextResponse:q.content=w.reelItemWatchResponse:w.playerResponse?q.player=w.playerResponse:w.reelWatchSequenceResponse&&(q.reelSequence=w.reelWatchSequenceResponse)};
$o=function(q){return function(){return new q}};
vR=function(q){var w=_.tG();return function(){return w.resolve(q)}};
_.bv=function(q){if(!q)return null;for(var w=[],u=0;u<q.textSegments.length;u++){var y=q.textSegments[u];y.text?w.push(y):y.emojiId&&w.push({emoji_id:y.emojiId})}return{text_segments:w}};
yZl=function(q,w,u,y,e,t,X){t=t===void 0?[]:t;var G=new _.Yo;G.endpoint=u;if(!u)return _.bD(new _.fv("handle undefined endpoint",w.tagName)),G;var n=ZxM(u);n.length&&(_.nq(q,n,w,y),G.actions=n);u.loggingUrls&&u.loggingUrls.forEach(function(Q){Q.baseUrl&&Li(Q.baseUrl,Q.attributionSrcMode)});
n=!_.T("web_skip_impression_click_killswitch")&&y&&y.impression;if(u.clickTrackingParams&&!xJy(u)&&!qw7(w)&&!n&&(n=_.Qz(),!_.gm(n,w))){var N=w.getScreenLayer&&w.getScreenLayer();N?n.clickCommand(u,null,N):n.clickCommand(u,null)}n=!1;for(N=0;N<t.length;N++)if((0,t[N])(w,u,y)){n=!0;break}!n&&wO4(u)&&(G.ajaxPromise=u24(q,w,u,y,e,X));return G};
qw7=function(q){var w;return(q=(w=q.data)==null?void 0:w.navigationEndpoint)&&!!q.clickTrackingParams};
xJy=function(q){var w=_.C(q,_.NU);if(w&&(w=w.signal)&&elM.indexOf(w)>=0)return!0;for(var u in q)if(kUz.indexOf(u)>=0)return!0;return!1};
wO4=function(q){var w;if(((w=_.C(q,_.NU))==null?void 0:w.signal)==="CLIENT_SIGNAL")return!1;for(var u in q)if(tz7.indexOf(u)>=0)return!1;q=Object.keys(q);return q.length===1&&q[0]==="loggingUrls"?!1:!0};
s0j=function(q,w,u,y,e,t,X){var G=_.E3.instance;if(G&&_.RV(G,y))var n=_.cR(G,y,e).then(function(Q){return(Q==null?0:Q.data)?Q:{data:Q}});
else n=q.requestDataForServiceEndpoint(y,e),_.C(y,Pwc)||_.C(y,XOy)||_.C(y,_.FKo)||_.C(y,GU6)||_.Y8(new _.fv("No RequestBuilder for endpoint",y));var N=_.S6();N.promise.thenCatch(function(){var Q=_.bo(y,"action")||_.bo(y,"command")||_.bo(y,"endpoint");Q&&(Q=y[Q],Q.hasOwnProperty("onFailureAction")?_.nq(w,[Q.onFailureAction],u):Q.hasOwnProperty("onFailureCommand")&&_.nq(w,Q.onFailureCommand,u));n.cancel("Resolver promise rejected")});
n.then(function(Q){if(Q){var I=Q.error;if(I){if(t&&t.onServerError)t.onServerError(y,Q);N.reject(new _.fv("Response error",y,I))}else if(Q=Q.data)if(I=Q.error){if(t&&t.onServerError)t.onServerError(y,Q);N.reject(new _.fv("Returned error",y,I))}else{nUs(w,u,Q,y);HPy(Q);if(I=D24(Q))for(var U=_.P(I),d=U.next();!d.done;d=U.next()){d=d.value;var V=_.tG().resolve(_.kF(WKs))||hE;if(!_.E3.instance||!V.some(function(a){return!!_.C(y,a)})||_.T("kevlar_response_processor_allowlist_killswitch")){var J=V=void 0;
((J=_.C((V=d)==null?void 0:V.commandMetadata,_.wk))==null?0:J.sendPost)?_.GM(w,[d]):_.nq(w,[d],u)}}(U=_.C(Q==null?void 0:Q.frameworkUpdates,j6))&&X&&X(U);if(t&&t.onSuccess)t.onSuccess(y,Q);N.resolve(new _.lv(Q,I))}}else N.reject(new _.fv("Invalid service endpoint provided",y))},function(Q){N.reject(Q)});
return N.promise};
HPy=function(q){var w;(q=(w=_.C(q==null?void 0:q.onResponseReceivedCommand,_.Nv6))==null?void 0:w.continuationItems)&&(q==null?void 0:q.length)===1&&_.C(q[0],Q0u)&&_.D_("so_r",void 0,"search_overview_answer")};
u24=function(q,w,u,y,e,t){var X;return(X=w.getNetworkManager&&w.getNetworkManager()?w.getNetworkManager():_.tG().resolve(_.kF(_.OP)))?s0j(X,q,w,u,y,e,t):_.og("No network manager.")};
nUs=function(q,w,u,y){if(u=u.trackingParams||u.loggingDirectives&&u.loggingDirectives.trackingParams){var e;(_.C(y,Ib7)||_.C(y,iPu)||_.C(y,rZl))&&y.clickTrackingParams?e=_.Tj(y.clickTrackingParams):_.T("web_graft_to_parent_command")&&y.clickTrackingParams&&(e=_.Tj(y.clickTrackingParams));var t;y=(t=w.getScreenLayer)==null?void 0:t.call(w);w=_.Qz().graftServerVe(u,e,y);_.X4(q,"yt-store-grafted-ve-action",[w])}};
_.Unl=function(q){var w=new Image;return new _.IA(function(u,y){w.addEventListener("load",function(){u()});
w.addEventListener("error",function(){y()});
w.src=q})};
Tvc=function(q){return!!q};
CwH=function(q){return!!q};
dnu=function(q,w,u){var y=q.rowIndex;y!==void 0&&_.X4(q.hostElement,"yt-section-reactive-dismissal",[y,w,u])};
_.LT=function(q,w,u){q=_.P(q);for(var y=q.next();!y.done;y=q.next()){y=y.value;if(y===w)break;for(var e=_.P(u),t=e.next();!t.done;t=e.next())if(t=t.value,y.tagName===t||!_.T("web_event_button_role_check_killswitch")&&y.role==="button"&&t==="BUTTON")return!0}return!1};
_.M9=function(q,w,u){q=_.P(q);for(var y=q.next();!y.done;y=q.next()){y=y.value;if(y===w)break;for(var e=_.P(u),t=e.next();!t.done;t=e.next())if(y.id===t.value)return!0}return!1};
OPJ=function(q,w){if(!q&&!w)return"medium";q=Math.max(q||0,w||0);return q>=256?"large":q>=96?"medium":"small"};
oUM=function(q){switch(q){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.xo=function(){var q=_.tG().resolve(_.kF(_.KT));return q?(q=q.getCurrentPage())?_.BR(q):null:null};
_.qI=function(){var q=_.xo();if(!q){var w=_.tG().resolve(_.kF(_.KT)),u=w?typeof w:"no page manager";w=w?w.getCurrentPage():null;u=new _.fv("Player is missing when requested.",u,w?w.tagName:"no page");_.vm(u)}return q};
_.BR=function(q){return q&&q.getPlayer?q.getPlayer():null};
Vzu=function(q,w){q={args:{raw_player_response:q}};w&&(q.args=Object.assign({},q.args,w));return q};
fbs=function(q){if(q.args){if(q.args.raw_player_response)return q.args.raw_player_response;if(q.args.player_response)return JSON.parse(q.args.player_response)}};
_.mnl=function(q,w){var u={url:"/watch?v="+q.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};q.playlistId&&(u.url+="&list="+q.playlistId);q.playerParams&&(u.url+="&pp="+q.playerParams);q={watchEndpoint:q,commandMetadata:{webCommandMetadata:u}};w&&(q.clickTrackingParams=w);return q};
JZj=function(){return AZ4||!!_.hP("yt.player.Application")};
abu=function(){return zlj||!!document.querySelector("link#player-css")};
ZPM=function(){function q(){AZ4=!0;Dnf.resolve()}
var w,u;return _.F(function(y){Dnf||(Dnf=new _.Gt,JZj()?q():(w=document.createElement("script"),w.addEventListener("load",q),u=_.A1(_.Et("PLAYER_JS_URL")),_.bZ(w,u),document.head.appendChild(w)));return y.return(Dnf.promise)})};
$ny=function(){function q(){zlj=!0;pOM.resolve()}
if(!pOM)if(pOM=new _.Gt,abu())q();else{var w=document.createElement("link");w.id="player-css";w.addEventListener("load",q);var u=_.A1(_.Et("PLAYER_CSS_URL"));_.Rw(w,u,"stylesheet");document.head.appendChild(w)}return pOM.promise};
vU6=function(){return JZj()&&abu()?Promise.resolve([]):Promise.all([ZPM(),$ny()])};
bPu=function(q,w,u){var y={args:{}};q&&(y.args.raw_player_response=q);w&&(y.args.raw_watch_next_response=w);u&&(y.args=Object.assign({},y.args,u));return y};
Rlz=function(q,w,u){var y=!1;y=y===void 0?!0:y;q=typeof q==="string"?_.wE(document,q):q;var e=YwM+"_"+_.kT(q),t=gUj[e];if(t&&y)return EUu(w,u)?t.api.loadVideoByPlayerVars(w.args||null):t.loadNewVideoConfig(w),t.api;t=new uq(q,e,w,u,void 0);gUj[e]=t;t.addOnDisposeCallback(function(){delete gUj[t.getId()]});
return t.api};
EUu=function(q,w){return w&&w.serializedExperimentFlags?w.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):q&&q.args&&q.args.fflags?q.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
cZu=function(){var q=new _.Gt;q.resolved=!1;var w=q.resolve;q.resolve=function(u){q.resolved=!0;w(u)};
return q};
hlz=function(q){var w={};Swl().install((w.document_disposed={callback:q},w))};
yo=function(q,w){if(!q&&Math.random()<=_.Fc("kevlar_unified_player_logging_threshold")){q=Error("th`"+(w?w:"Unspecified error"));if(_.T("kevlar_unified_player_throw_errors"))throw q;_.Y8(q)}};
_.j0c=function(){var q=_.hP("ytDebugData.callbacks");q||(q={},_.wr("ytDebugData.callbacks",q));return q};
LKH=function(q,w){var u=_.j0c();if(_.T("web_dd_iu")||lbu.includes(q))u[q]=w};
Mzz=function(){return _.F(function(q){return q.return({isLeader:_.dYf(_.Mt().getState()),c:_.Et("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Et("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
KK7=function(){var q;_.F(function(w){if(w.nextAddress==1)return LKH("APP_STATE",Mzz),_.H(w,_.tG().resolve(_.kH),2);q=w.yieldResult;LKH("PI",function(){return _.F(function(u){return u.return(q.getVideoStats())})});
_.HI(w)})};
Bv7=function(q){var w=_.Bf(_.cf(_.uc.location.href));q=_.Bf(_.cf(q));return _.T("kevlar_clear_non_displayable_url_params")?w==tg(q):tg(w)==tg(q)};
tg=function(q){var w=_.xnM(q);q=q.slice(0);var u=["frags"];_.T("kevlar_hide_pp_url_param")&&u.push("pp");_.T("kevlar_hide_time_continue_url_param")&&u.push("time_continue");u=_.P(u);for(var y=u.next();!y.done;y=u.next())y=y.value,q=_.qU(_.Bf(q),y);return _.Bf(q)+(w?"#"+w:"")};
PC=function(q,w){w=Number(w)*1E3;var u=Math.round((0,_.eW)()),y=u.toString();q={innertubeResponse:q,serverDateTimestampMs:y,lastModifiedTimestampMs:y,expireTimestampMs:(u+w).toString()};if(w=_.Et("INNERTUBE_CONTEXT_CLIENT_NAME"))q.clientName=w;return q};
wKM=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++qvo};
_.u6u=function(){var q=_.ZB(),w=_.pN();w&&q&&_.h7(w,[q],!0)};
e4s=function(q){return q&&ylz.some(function(w){return q.includes(w)})};
GFo=function(q){var w=_.C(q,_.jw);if(!w)return!1;var u=w.url,y=w.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!u)return _.vm(Error("yh")),!1;if(w.target==="TARGET_NEW_WINDOW"){var e={};_.T("resolve_url_parent_tracking_params")&&(!_.w$(u)||u4(window.location.href,u))&&(e={endpoint:q,itct:q.clickTrackingParams});qrs(e);q=null;try{if(y){a:{var t=u,X=e;y=y===void 0?!1:y;X&&_.xG(t,X);var G=_.UY(t),n=_.NC(G);t!=n&&_.jZ(Error("Yf`"+t));t=n;try{if(y){n=t;n=NC7(n);Du(n);q=_.aw(window,n,"_blank",
"attributionsrc");break a}}catch(U){_.cl(U)}Du(t);q=_.aw(window,G,"_blank")}kFs(_.tG().resolve(t_l),q,u);return!0}}catch(U){_.vm(U)}_.xG(u,e);e={target:"_blank",noopener:_.T("set_window_noopener_ks")&&!w.allowOpener};w=window;G=sY(u)?u:_.UY(typeof u.href!="undefined"?u.href:String(u));q=self.crossOriginIsolated!==void 0;t="strict-origin-when-cross-origin";window.Request&&(t=(new Request("/")).referrerPolicy);n=e.noreferrer;if(q&&n&&t==="unsafe-url")throw Error("qe");t=n&&!q;n=e.target||u.target;y=
[];X=[];var N=!1;for(I in e){var Q=e[I];switch(I){case "width":case "height":case "top":case "left":y.push(I+"="+Q);break;case "target":break;case "noopener":case "noreferrer":Q?X.push(I):(N=!0,X.push(I+"=false"));break;case "attributionsrc":y.push(I+(Q?"="+Q:""));break;default:y.push(I+"="+(Q?1:0))}}var I=n!==void 0&&!["_blank","_self","_top","_parent",""].includes(n);I=Az()&&I;P36&&q&&y.length===0&&X.length>0&&!I&&!N?(X.length===2&&(X=["noreferrer"]),_.aw(w,G,n,X[0]),q=XKJ()):(I=y.join(","),_.Z6()&&
w.navigator&&w.navigator.standalone&&n&&n!="_self"?(I=_.rg("A"),VE(I,G),I.target=n,t&&(I.rel="noreferrer"),((e=e.attributionsrc)||e==="")&&I.setAttribute("attributionsrc",e),e=document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,w,1),I.dispatchEvent(e),I=XKJ()):t?(I=_.aw(w,"",n,I),w=_.NC(G),I&&(I.opener=null,w===""&&(w="javascript:''"),w='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Xu(w)+'">',w=mx(w),(e=I.document)&&e.write&&(e.write(Aa(w)),
e.close()))):((I=_.aw(w,G,n,I))&&e.noopener&&(I.opener=null),I&&e.noreferrer&&(I.opener=null)),q=I);kFs(_.tG().resolve(t_l),q,u);return!0}I=_.QV(u);I=e4s(I)||u==="https://studio.youtube.com/";w=!(!_.w$(u)||u4(window.location.href,u));e=u.indexOf("disable_polymer=1")>=0;if(w||e||I)Du(u),J7(),_.Zu(u,void 0,void 0,window.top,F7M);else return _.Y8(new _.fv("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",q)),!1;return!0};
_.W7H=function(q,w){w=w===void 0?0:w;if(!(_.C(q,nIH)||_.C(q,HRj)||_.C(q,_.jw)&&_.C(q,_.jw).url))return!1;var u,y=(u=_.C(q,_.jw))==null?void 0:u.url;u=y?{externalLinkData:{url:y}}:null;return _.Qz().clickCommand(q,u,w)};
sks=function(q,w){return _.HQ(q.entities,"subscriptionStateEntity",w)};
NXl=function(q,w){return _.HQ(q.entities,"subscriptionNotificationStateEntity",w)};
Qky=function(q,w){return _.HQ(q.entities,"upcomingEventReminderStateEntity",w)};
IJH=function(q,w){return _.HQ(q.entities,"engagementToolbarSurfaceEntityPayload",w)};
iR4=function(q,w){return _.HQ(q.entities,"triStateButtonStateEntityPayload",w)};
rlJ=function(q,w){return _.HQ(q.entities,"commerceCartCheckoutButtonEntity",w)};
_.UeM=function(q,w){return _.HQ(q.entities,"playlistLoopStateEntity",w)};
TXf=function(q,w){return _.HQ(q.entities,"commandEntity",w)};
dec=function(q,w,u,y,e){e=e===void 0?{}:e;return function(t){var X,G;var n=((X=q.loggingDirectives)==null?0:(G=X.clientVeSpec)==null?0:G.uiType)?_.oV(q.loggingDirectives.clientVeSpec.uiType):void 0;e.clickedVisualElement||(e.clickedVisualElement=n);n=C3j(q,w);u(n,t);n=_.P(n);for(X=n.next();!X.done;X=n.next()){X=X.value;G=y;var N=t,Q=e;Q.form?Q.form.event=N:Q.form={element:G,event:N};O3(X,Q)}}};
C3j=function(q,w){var u=[];w?(q.toggledCommand&&u.push(q.toggledCommand),q.toggledServiceEndpoint&&u.push(q.toggledServiceEndpoint)):(q.defaultCommand&&u.push(q.defaultCommand),q.defaultServiceEndpoint&&u.push(q.defaultServiceEndpoint),q.defaultNavigationEndpoint&&u.push(q.defaultNavigationEndpoint));return u};
ORH=function(q,w){var u=q.toggledStyle||q.style,y;switch((y=w?u:q.style)==null?void 0:y.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"}}};
_.Fu=function(){return _.F(function(q){return q.nextAddress==1?_.H(q,_.tG().resolve(_.kH),2):q.return(_.tG().resolve(oIc)())})};
_.Gn=function(){return _.tG().resolve(oIc)()};
_.nr=function(){return $w(function(){return{lottieEl:void 0}})};
V_J=function(q,w){return q.startsWith(w.uniqueId)};
fJH=function(q){var w,u;_.F(function(y){if(y.nextAddress==1)return _.H(y,_.Fu(),2);w=y.yieldResult;if((u=w)==null||!u.addEventListener)return HC(),y.return();w.addEventListener("onCueRangeEnter",q);_.HI(y)})};
meH=function(q){var w,u;_.F(function(y){if(y.nextAddress==1)return _.H(y,_.Fu(),2);w=y.yieldResult;if((u=w)==null||!u.removeEventListener)return HC(),y.return();w.removeEventListener("onCueRangeEnter",q);_.HI(y)})};
Al4=function(q){var w,u,y,e,t;_.F(function(X){if(X.nextAddress==1)return _.H(X,_.Fu(),2);w=X.yieldResult;if((u=w)==null||!u.addCueRange)return HC(),X.return();y=_.P(q.timings);for(e=y.next();!e.done;e=y.next())t=e.value,w.addCueRange(q.uniqueId+"-"+t,t/1E3,(t+100)/1E3);_.HI(X)})};
Jlo=function(q){var w,u,y,e,t;_.F(function(X){if(X.nextAddress==1)return _.H(X,_.Fu(),2);w=X.yieldResult;if((u=w)==null||!u.removeCueRange)return HC(),X.return();y=_.P(q.timings);for(e=y.next();!e.done;e=y.next())t=e.value,w.removeCueRange(q.uniqueId+"-"+t);_.HI(X)})};
z4s=function(){var q,w,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,_.Fu(),2);q=y.yieldResult;if((w=q)==null||!w.getPlayerState)return HC(),y.return();u=q.getPlayerState();return y.return(u===2)})};
HC=function(){_.Y8(new _.fv("Smartimation player does not exist or is corrupted"))};
aJs=function(){try{var q;return(q=window.CSS)!=null&&q.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(w){return _.Y8(new _.fv("Smartimation CSS.supports threw an error")),!1}};
Yv7=function(q,w,u,y,e){var t=q.playlistId?Dey:ZRc;w=w();u=u();e=!!q.videoId&&e()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.Ta(w))return pKj({data:q,actionType:t,disabled:e},u);if(q.videoId&&y())return $eH({data:q,actionType:t,disabled:e});switch(w){case "TRANSFER_STATE_UNKNOWN":return $eH({data:q,actionType:t,disabled:e});case "TRANSFER_STATE_FAILED":return q.videoId?vIy({data:q,actionType:t,disabled:e}):bRs({data:q,actionType:t,disabled:e});case "TRANSFER_STATE_COMPLETE":return bRs({data:q,
actionType:t,disabled:e});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return pKj({data:q,actionType:t,disabled:e},u);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return q.videoId?vIy({data:q,actionType:t,disabled:e}):$eH({data:q,actionType:t,disabled:e});default:return $eH({data:q,actionType:t,disabled:e})}};
gIJ=function(q,w){var u=q.onTapCommand,y=_.Zh(u);if(q.videoId&&_.C(y,_.WC))return _.C(y,_.WC).action=w,u;q.playlistId&&_.C(y,_.sF)&&(_.C(y,_.sF).action=w);return u};
$eH=function(q){var w=q.data;var u=q.actionType;q=q.disabled;return{text:EIs,iconType:"OFFLINE_DOWNLOAD",onTap:gIJ(w,u.ACTION_ADD),disabled:q}};
pKj=function(q,w){var u=q.data;var y=q.actionType;q=q.disabled;var e="OFFLINE_DOWNLOAD";w>=0&&w<=.1?e="OFFLINE_DOWNLOADING_ZERO":w>.1&&w<=.3?e="OFFLINE_DOWNLOADING_TWENTY":w>.3&&w<=.5?e="OFFLINE_DOWNLOADING_FORTY":w>.5&&w<=.7?e="OFFLINE_DOWNLOADING_SIXTY":w>.7&&w<1?e="OFFLINE_DOWNLOADING_EIGHTY":w===1&&(e="OFFLINE_PIN");return{text:R4M,iconType:e,onTap:gIJ(u,y.ACTION_REMOVE_WITH_PROMPT),disabled:q}};
bRs=function(q){var w=q.data;var u=q.actionType;q=q.disabled;return{text:clM,iconType:"OFFLINE_PIN",onTap:gIJ(w,u.ACTION_REMOVE_WITH_PROMPT),disabled:q}};
vIy=function(q){var w=q.data;var u=q.actionType;q=q.disabled;return{text:Sv4,iconType:"OFFLINE_DOWNLOAD",onTap:gIJ(w,u.ACTION_RETRY),disabled:q}};
L7z=function(q){var w=h4M;jkl.push(q);lJJ||(w(function(){for(var u=_.P(jkl),y=u.next();!y.done;y=u.next())y=y.value,y();jkl.length=0;lJJ=!1}),lJJ=!0)};
h4M=function(q){Promise.resolve().then(q)};
NI=function(q){q=_.P(eQM(q));var w=q.next().value,u=q.next().value,y=!1;_.p4(function(){return function(){y=!0}});
return[w,function(e){L7z(function(){y&&!_.T("cow_prevent_state_setter_after_cleanup_killswitch")||u(e)})}]};
M_s=function(){var q=_.P(NI(!1)),w=q.next().value,u=q.next().value;return function(){u(!w)}};
K7M=function(q){return $w(function(){return{value:q}})};
BX7=function(q,w){var u=K7M(q),y=K7M(w);ZR(function(){u.value=q},[q]);
ZR(function(){y.value=w},w&&w.length>=1?w:[void 0]);
var e=$w(function(){return{value:void 0}});
if(q!==u.value||y.value!==w||e.value===void 0)e.value=Sf(q,w);var t=M_s();_.p4(function(){function X(){var n=Sf(u.value,w);n!==e.value&&(e.value=n,t())}
var G=_.cj().subscribe(X);X();return G});
return e.value};
_.Qo=function(q,w){var u=Mmo();return _.oR(function(){u();return Sf(q,[_.$C(w)||""])},void 0,"HaeHEc")};
xej=function(q){var w=_.Qo(_.pa,function(){return q().videoId}),u=_.Qo(_.$N,function(){return q().playlistId});
return function(){return q().videoId?w:q().playlistId?u:_.P(_.r4("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
q2o=function(q){var w=_.Qo(vQ,function(){return q().videoId}),u=_.Qo(_.Ckc,function(){return q().playlistId});
return function(){return q().videoId?w:q().playlistId?u:_.P(_.r4(0,void 0,"K4tgOc")).next().value}};
w$y=function(q){var w=_.Qo(_.JOs,function(){return q().videoId});
return function(){return q().videoId?w:_.P(_.r4(!1,void 0,"Oaxwcf")).next().value}};
uRj=function(q){var w=_.Qo(oPM,function(){return q().videoId});
return function(){return q().videoId?w:_.P(_.r4("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
ydy=function(){return{}};
e8s=function(){var q,w;return(w=(q=_.tG().resolve(_.kF(_.Rg)))==null?void 0:q())!=null?w:!1};
tYz=function(q,w){q=q===void 0?kRu:q;switch(w.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},q,{isOpen:w.payload});default:return q}};
X$J=function(q,w){q=q===void 0?P$o:q;switch(w.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},q,{isAllowed:w.payload});default:return q}};
GRo=function(q,w){q=q===void 0?Fec:q;switch(w.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},q,{errorMessage:w.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},q,{title:w.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},q,{privacy:w.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},q,{isDisabled:w.payload});default:return q}};
H3o=function(q,w){q=q===void 0?nWJ:q;switch(w.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},q,{isOpen:w.payload});default:return q}};
sCl=function(q,w){q=q===void 0?We6:q;switch(w.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},q,{isFullscreen:w.payload});case "SET_NAVIGATION_BUTTON":var u=w.payload.targetId,y=Object.assign({},q.navigationButtons);y[u]=w.payload.button;return Object.assign({},q,{navigationButtons:y});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},q,{topPanelId:w.payload});case "SET_SECONDARY_HEADER":return u=w.payload.panelId,y=Object.assign({},q.secondaryHeader),y[u]=w.payload.secondaryHeader,
Object.assign({},q,{secondaryHeader:y});default:return q}};
i34=function(){return Qv(Object.assign({},{entities:y3j,voiceSearch:Q4j,engagementPanel:sCl,bottomSheet:tYz,cinematicSetting:X$J,shorts:OFo,drawerLayout:H3o,createPlaylist:GRo,locationCollection:Nqo,reportChannel:QCM,reportForm:Iwc},ouJ))};
rdj=function(q,w){_.pi.addLowPriorityJob(function(){var u,y,e;return _.F(function(t){switch(t.nextAddress){case 1:return _.tD(t,2),_.H(t,fFM(),4);case 4:return _.H(t,fetch(q),5);case 5:return u=t.yieldResult,_.H(t,u.json(),6);case 6:y=t.yieldResult;nT.set(q,y);requestAnimationFrame(function(){w(y)});
_.jv(t,0);break;case 2:e=_.nm(t),_.Y8(e),_.HI(t)}})})};
Ulo=function(q){var w={animationConfig:{},listeners:{}},u=function(){q(!0)};
w.listeners.data_failed=u;w.listeners.error=u;w.listeners.data_ready=function(){q(!1)};
return w};
dl4=function(q){var w=q.model;var u=q.subscribed;var y=q.isOverlay;var e=q.element;var t=q.commandController;var X=q.notificationState;if(u){var G,n;var N=(w==null?void 0:(G=w.buttonStyle)==null?void 0:G.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:w==null?void 0:(n=w.unsubscribeButtonContent)==null?void 0:n.buttonText}else{var Q;N=w==null?void 0:(Q=w.subscribeButtonContent)==null?void 0:Q.buttonText}a:{var I;switch(w==null?void 0:(I=w.buttonStyle)==
null?void 0:I.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":G="S";break a;default:G="M"}}a:if(y)y="overlay";else switch(w.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":y="overlay";break a;default:y="mono"}a:if(u)var U="tonal";else switch((U=w.buttonStyle)==
null?void 0:U.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":U="tonal";break a;default:U="filled"}return{style:y,type:U,state:w.disableSubscribeButton?"disabled":"active",size:G,focused:q.focused,toggled:u,accessibilityLabel:Tq4(w,u,X),buttonText:N,iconPosition:w.disableNotificationBell?"none":"leading-trailing",onTap:C$s(w,u,e,t),disableTextEllipsis:!!q.disableTextEllipsis}};
C$s=function(q,w,u,y){return function(e){if(w){var t;var X=q.disableNotificationBell?_.Zh(q==null?void 0:(t=q.unsubscribeButtonContent)==null?void 0:t.onTapCommand):_.Zh(q==null?void 0:q.onShowSubscriptionOptions)}else{var G;X=_.Zh(q==null?void 0:(G=q.subscribeButtonContent)==null?void 0:G.onTapCommand)}X&&O3(X,{form:{element:u},commandController:y});e.stopPropagation()}};
Tq4=function(q,w,u){if(w){if(q==null?0:q.disableNotificationBell){var y;return q==null?void 0:(y=q.unsubscribeButtonContent)==null?void 0:y.accessibilityText}switch(u){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var e;return q==null?void 0:(e=q.bellAccessibilityData)==null?void 0:e.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var t;return q==null?void 0:(t=q.bellAccessibilityData)==null?void 0:t.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var X;return q==null?void 0:(X=
q.bellAccessibilityData)==null?void 0:X.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var G;return q==null?void 0:(G=q.bellAccessibilityData)==null?void 0:G.disabledLabel;default:var n;return q==null?void 0:(n=q.unsubscribeButtonContent)==null?void 0:n.accessibilityText}}else{var N;return q==null?void 0:(N=q.subscribeButtonContent)==null?void 0:N.accessibilityText}};
O3f=function(q){if(q){switch(q){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":q="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":q="NOTIFICATIONS_OFF";break;default:q="NOTIFICATIONS_NONE"}return q}};
oWJ=function(q,w,u){u.subscribed!==w&&((u=u.key)&&_.hM(_.IH("subscriptionStateEntity",u,{key:u,subscribed:w})),q.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:w})),w||_.Pw(q,"yt-unsubscribe-action"))};
mlM=function(q){q=_.C(_.Zh(q),_.VYc);var w,u,y,e;return(e=_.C(q==null?void 0:(w=q.panelLoadingStrategy)==null?void 0:(u=w.inlineContent)==null?void 0:(y=u.sheetViewModel)==null?void 0:y.content,fwM))==null?void 0:e.listItems};
Jdy=function(q,w){if(q.onShowSubscriptionOptions&&w&&(q=mlM(q.onShowSubscriptionOptions),q!=null&&q.length)){var u=O3f(w);q.forEach(function(y){y=_.C(y,_.AdH);var e,t,X,G,n=y==null?void 0:(e=y.leadingImage)==null?void 0:(t=e.sources)==null?void 0:(X=t[0])==null?void 0:(G=X.clientResource)==null?void 0:G.imageName;y&&n&&(y.isSelected=n===u)})}};
z8J=function(q,w,u,y){w&&u?q.style.width=u+"px":!w&&y&&(q.style.width=y+"px")};
awu=function(q,w,u){var y;(y=q.lottieEl)==null||y.goToAndPlay(0);var e;(e=w.lottieEl)==null||e.goToAndPlay(0);_.iq(_.pi,function(){var t;(t=u.lottieEl)==null||t.goToAndPlay(0)},300)};
rE=function(){return _.tG().resolve(_.kF(DlH))||{}};
Z3z=function(q){return typeof q==="function"};
_.UF=function(q){Object.keys(q);var w=function(u,y){var e=w.mapping||q;if(!u)return _.W(_.GS,null);if(Array.isArray(u)&&(u=p$H(e,w,u),Array.isArray(u))){if(!u.length)return _.W(_.GS,null);if(u.length>1){for(var t=!1,X=!1,G=[],n={},N=0;N<u.length;n={data$jscomp$1828:void 0},N++)if(n.data$jscomp$1828=u[N],n.data$jscomp$1828){var Q=$lM(n.data$jscomp$1828,e),I=Q.mappingEntry;Q=Q.rendererName;I&&Q&&(I&&(!Z3z(I)&&vW6(I)&&(X=!0),!Z3z(I)&&I.asyncId||(t=!0)),G.push(b3f(n.data$jscomp$1828,I,Q,w,y)))}return X&&
!t?_.W(_.GS,null,Y2u()):_.W(_.GS,null,G)}u=u[0]}if(!u)return _.W(_.GS,null);u=p$H(e,w,[u])[0];if(!u)return _.W(_.GS,null);t=$lM(u,e);e=t.mappingEntry;t=t.rendererName;return e&&t?_.W(_.GS,null,b3f(u,e,t,w,y)):_.W(_.GS,null)};
w.mapping=q;return w};
_.gW7=function(q){var w=void 0,u;for(u in q)if(q.hasOwnProperty(u)){w=u;break}return w};
p$H=function(q,w,u){var y,e=(y=rE().preProcessOptions)==null?void 0:y.idomOptions;if(!e)return u;rE();return e.preProcessPropsIdom(q,u,w.triggerRerender)};
$lM=function(q,w){return(q=_.gW7(q))?{mappingEntry:w[q],rendererName:q}:{mappingEntry:void 0,rendererName:void 0}};
b3f=function(q,w,u,y,e){if(!w)return _.W(_.GS,null);var t={};e&&e[u]&&(t=Object.assign({},e[u]));q[u]!==void 0&&(t.data=q[u]);if(Z3z(w))return w.debugName||(w.debugName=u),_.W(w,t);w.asyncId&&(y.pendingIdsMap=y.pendingIdsMap||{},y.pendingIdsMap[u]=w.asyncId);return w.templateFn?w.templateFn(t):vW6(w)?Y2u():_.W(_.GS,null)};
vW6=function(q){var w;return(w=q.showPlaceholder)!=null?w:rE().defaultShowPlaceholder};
Y2u=function(){var q=rE().placeholder;return q()};
EW4=function(q,w){w=w===void 0?{shouldPersist:!0}:w;return{useUpdatableData:function(u,y){var e=[],t=_.P(_.iv(function(){var N=u();if(y!=null&&y.length&&e){var Q=e.length>0;for(var I=!1,U=0;U<y.length;U++){var d=y[U]();Q&&d!==e[U]&&(I=!0);e[U]=d}Q=I}else Q=!1;if(Q)_.Tn.remove(n());else if(Q=_.Tn.get(n()))return Q;return N})),X=t.next().value,G=t.next().value,n=_.oR(function(){return q(u())},void 0,"VFraLb");
_.DG(function(){if(n()!=null){Cr.set(n(),[X,G,!1]);var N=n();_.ZG(function(){Cr.delete(N)})}});
return[X,function(N){G(N);w.shouldPersist&&_.Tn.set(n(),N)}]},
getData:function(u){var y;return(y=Cr.get(q(u)))==null?void 0:y[0]()},
updateData:function(u,y){u=q(u);var e=Cr.get(u);if(!e)return!1;var t=_.P(e);e=t.next().value;t=t.next().value;y=y(e());t(y);w.shouldPersist&&_.Tn.set(u,y);return!0},
useUpdatableDataIdom:function(u,y){var e=q(u),t=_.Tn.get(e),X=_.P(NI(t!=null?t:u)),G=X.next().value,n=X.next().value,N=vl(t!=null?t:u);ZR(function(){if(e!=null)return Cr.set(e,[function(){return N.value},
function(Q){n(Q);N.value=Q},
Cr.has(e)]),_.pi.addJob(function(){_.dE(_.pi,function(){var Q=Cr.get(e);Q&&(Q[2]=!1)},0)},8),function(){var Q;
((Q=Cr.get(e))==null?0:Q[2])||Cr.delete(e)}},[e]);
ZR(function(){G!==u&&(n(u),N.value=u)},y?[].concat(_.Cm(y),[e]):[e]);
return[G,n]}}};
R8o=function(q){var w=_.P(_.r4(!0,void 0,"bKtO6d")),u=w.next().value;w.next();return function(){var y=C4(q.children());return _.W(_.r,{cond:u,then:function(){return y},
else:q.fallback})}()};
_.OF=function(q){var w=cdc(q),u=w.data,y=w.mapping,e=w.wrapper;w=w.pendingFallback;var t=function(){return S2y(_.$C(u))},X=function(){var G=t(),n=[];
G=_.P(G);for(var N=G.next();!N.done;N=G.next()){var Q=void 0;N=N.value;var I=void 0;for(Q in N)if(!(!N).hasOwnProperty(Q)){I=Q;break}(Q=I)&&n.push(Q)}return n};
return q.data?_.W(R8o,{fallback:w},function(){return _.W(_.mL,{each:X},function(G,n){var N=e?function(I){return e(function(){return y[G](I,n)},Q,n)}:function(I){return y[G](I,n)};
N.debugName||(N.debugName=String(G));if(!y[String(G)])return document.createComment("");var Q=h8f(t,G,n);return _.W(N,{data:Q})})}):_.W(_.GS,null)};
cdc=function(q){var w=q.targetId||jCl(q.children);if(!q.data||!w||_.T("mweb_new_replaceables_killswitch"))return Object.assign({},q,{mapping:q.children,wrapper:void 0});var u="stamper-"+lw4++,y=function(){var G;return(G=_.$C(q.targetId))!=null?G:u};
w=_.P(LeH(function(){var G=S2y(q.data());G.targetId=y;return G})).next().value;
var e=Object.assign({},rE().replaceableMapping,q.children);if(q.replacementWrapper){var t=e.notificationTextRenderer,X=e.notificationMultiActionRenderer;t&&(e.notificationTextRenderer=function(G,n){return q.replacementWrapper(t({data:G.data},n))});
X&&(e.notificationMultiActionRenderer=function(G,n){return q.replacementWrapper(X({data:G.data},n))})}return Object.assign({},q,{data:w,
mapping:e,wrapper:function(G,n,N){return WWj({targetId:y,stamperIndex:N},G)}})};
h8f=function(q,w,u){var y;return _.oR(function(){var e=q()[u()];if(e)y=e[w];else return _.Y8(new _.fv("Stamper failed to find "+String(w)+" at index "+u()+" of data array of length "+(q().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),y;return e[w]},void 0,"DHuMIe")};
jCl=function(q){q=_.P(Object.keys(q));for(var w=q.next();!w.done;w=q.next())if(w=w.value,MYf.includes(w)||Keo.includes(w)||Bqj.includes(w))return!0;return!1};
S2y=function(q){return q?Array.isArray(q)?q:[q]:[]};
xlf=function(q){q=_.C(q,_.oH);return(q==null?void 0:q.iconName)&&!(q==null?0:q.title)};
uHf=function(q,w,u){var y;return _.W(_.GS,null,q==null?void 0:(y=q.actions)==null?void 0:y.map(function(e){return _.W("div",{class:function(){var t={"yt-flexible-actions-view-model-wiz__action":!0};t["yt-flexible-actions-view-model-wiz__action--row-action"]=w;t["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(xlf(e))var X=!0;else if(X=_.C(e,_.Vo),(X==null?0:X.isToggled)&&xlf(X==null?void 0:X.toggledButtonViewModel)||(X==null||!X.isToggled)&&xlf(X==null?void 0:X.defaultButtonViewModel))X=
!0;else{var G;X=((G=_.C(e,qyM))==null?0:G.playlistId)?!0:!1}t=(t["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=X,t["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=u,t);return _.s3(t)}},wDM([e],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!w}}))}))};
yQ6=function(q){var w=q.layout===1,u,y=((u=q.data)==null?void 0:u.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";u={};y=(u["yt-flexible-actions-view-model-wiz"]=!0,u["yt-flexible-actions-view-model-wiz--inline"]=!w,u["yt-flexible-actions-view-model-wiz--scrollable"]=y,u);var e,t;return _.W("yt-flexible-actions-view-model",{class:_.s3(q.className,y)},(e=q.data)==null?void 0:(t=e.actionsRows)==null?void 0:t.map(function(X){if(w){var G;return _.W("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
uHf(X,w,!((G=q.data)==null||!G.respectActionIntrinsicWidth)))}return uHf(X,w,!1)}))};
eo6=function(q){return!(q==null||!q.iconName||(q==null?0:q.title))};
k$y=function(q){var w=_.C(q.data.toggleButtonViewModel,_.Vo),u,y=(u=q.data.dislikeEntityKey)!=null?u:"",e=BX7(DK,[y]);w=Object.assign({},w,{isToggled:e?e.likeStatus==="DISLIKE":w.isToggled});return _.W("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.W(_.fr,{data:w,buttonShapeOverrides:q.buttonShapeOverrideables,onToggle:function(t){e&&t!==(e.likeStatus==="DISLIKE")&&e.key&&_.hM(_.mG("likeStatusEntity",e.key,{likeStatus:t?"DISLIKE":"INDIFFERENT",hadUserInteraction:t}))}}))};
Pd4=function(q){var w=_.T("web_supports_animations_api"),u=_.C(q.data.toggleButtonViewModel,_.Vo),y,e,t,X,G=_.P(NI({numberText:(X=(y=q.likeCountEntity)==null?void 0:(e=y.likeCountIfIndifferent)==null?void 0:e.content)!=null?X:"",numberValue:Number((t=q.likeCountEntity)==null?void 0:t.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),n=G.next().value,N=G.next().value,Q,I,U,d;y=_.P(NI({numberText:(d=(Q=q.likeCountEntity)==null?void 0:(I=Q.likeCountIfLiked)==null?void 0:I.content)!=null?
d:"",numberValue:Number((U=q.likeCountEntity)==null?void 0:U.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));Q=y.next().value;var V=y.next().value;I=_.P(NI());var J=I.next().value,a=I.next().value,b;I=(b=q.data.likeStatusEntityKey)!=null?b:"";var g,l;b=(l=(g=q.likeCountEntity)==null?void 0:g.key)!=null?l:"";var S=BX7(DK,[I]),eH=BX7(hgu,[b]);g=kdH(function(){return(S==null?void 0:S.likeStatus)==="LIKE"},[S]);
ZR(function(){var x,P4=eH&&((x=eH.likeCountIfIndifferent)==null?void 0:x.content)!==n.numberText;if(!J&&P4){var C7,mu;N({numberText:(mu=eH==null?void 0:(C7=eH.likeCountIfIndifferent)==null?void 0:C7.content)!=null?mu:"",numberValue:Number(eH==null?void 0:eH.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var Os,YJ;V({numberText:(YJ=eH==null?void 0:(Os=eH.likeCountIfLiked)==null?void 0:Os.content)!=null?YJ:"",numberValue:Number(eH==null?void 0:eH.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[eH]);
u=Object.assign({},u,{isToggled:g});w=w&&q.likeCountEntity;return _.W("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.W(_.fr,{data:u,buttonShapeOverrides:q.buttonShapeOverrideables,animatedTextPropsDefault:w?n:void 0,animatedTextPropsToggled:w?Q:void 0,onToggle:function(x){tTs(x,S,J,a)},
style:function(){return q.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
tTs=function(q,w,u,y){u&&_.pi.cancelJob(u);u=_.pi.addLowPriorityJob(function(){y(void 0)},5E3);
y(u);w&&q!==(w.likeStatus==="LIKE")&&w.key&&_.hM(_.IH("likeStatusEntity",w.key,{key:w.key,likeStatus:q?"LIKE":"INDIFFERENT",hadUserInteraction:q}))};
XDM=function(q,w,u,y){u&&_.pi.cancelJob(u);u=_.pi.addLowPriorityJob(function(){y(void 0)},5E3);
y(u);w&&q!==(w.likeStatus==="LIKE")&&w.key&&_.hM(_.IH("likeStatusEntity",w.key,{key:w.key,likeStatus:q?"LIKE":"INDIFFERENT",hadUserInteraction:q}))};
n5M=function(q){var w,u=_.C((w=q.data)==null?void 0:w.likeButtonViewModel,_.Ag),y;w=_.C((y=q.data)==null?void 0:y.dislikeButtonViewModel,_.Jg);var e,t=(e=BX7(DK,[(u==null?void 0:u.likeStatusEntityKey)||""]))!=null?e:u==null?void 0:u.likeStatusEntity;y=kdH(function(){var X=q.data,G;X=(X==null?void 0:(G=X.timedAnimationData)==null?void 0:G.animationTiming)||[];return{uniqueId:"like-dislike",timings:X,enabled:(t==null?void 0:t.likeStatus)==="INDIFFERENT"&&X.length>0,experimentEnabled:X.length>0}},[q.data,
t]);return _.W("segmented-like-dislike-button-view-model",{class:_.s3(q.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.W(zn,{settings:y},_.W("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},u?_.W(FVH,{data:u,likeCountEntity:q.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,w?_.W(G$M,{data:w,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
Hlo=function(q,w){var u=Kq(q)||{layerNode:w};u.layerNode=w;O9M(q,u);q.getScreenLayer=function(){return aH(u.layerNode)}};
WVj=function(q){var w;q=q.parentNode;for(var u;q&&((w=Kq(q))==null||!w.isRenderer)&&!((u=q.polymerController)!=null?u:q).isRenderer_;)q=q.parentNode||q.host;if(w=q)return Kq(w)};
sno=function(q){if(q){MU.delete(q);var w=_.tG().resolve(el);ffH(q,w)}};
Qnl=function(q,w,u){if(u===void 0?0:u){if(u=q.getAttribute("client-ve-type"),w.data&&!w.disableReactiveLogging||u)_.v1(function(){NeJ(q,_.$C(w.data))}),_.ZG(function(){return void sno(q)})}else typeof w.data!=="function"&&NeJ(q,w.data)};
NeJ=function(q,w){Iys++;ilz(q,w)&&_.pi.addJob(function(){_.dE(_.pi,function(){if(ilz(q,w)&&q.ownerDocument.documentElement===document.documentElement&&q){var u;if(q.getAttribute("layer")){var y=u=Number(q.getAttribute("layer")),e=Kq(q);e?e.layerNode.layer=y:Hlo(q,new rQH(y));(y=WVj(q))&&(e=Kq(q))!=null&&(e.layerNode.parent=y.layerNode)}else if(u=Kq(q))u=aH(u.layerNode);else{u=aH;y=new rQH;if(e=WVj(q))y.parent=e.layerNode;Hlo(q,y);u=u(y)}u!=null||(u=0);y=q.getAttribute("client-ve-type");e=Number(y);
var t=!1;y=!1;var X=Kq(q),G;if((G=X)&&!(G=X[Ds]!==w)&&(G=e)){var n;G=((n=MU.get(q))==null?void 0:n.clientVeType)===void 0}G&&(X[Ds]=w,t=y=X.isRenderer=!0);MU.has(q)&&(MU.get(q).clientVeType=e);q.visualElement&&(y=!0);(n=w==null?void 0:w.loggingDirectives)&&n.clientVeSpec&&(X=Ujs(_.sO(),q),n=_.Tey(_.Qz(),n,X||void 0,u))&&(q.visualElement=n);!q.visualElement&&e&&t&&(q.veType=e,n=void 0,_.T("wiz_next_client_ve_parent_fix")&&(n=Ujs(_.sO(),q)),n=_.N2(_.Qz(),q,n,u),q.visualElement=n);y&&(n=_.tG().resolve(el),
zAJ(q,{data:w,observer:n,layer:u,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
ilz=function(q,w){return(w==null?0:w.trackingParams)||(w==null?0:w.loggingDirectives)||_.C(w==null?void 0:w.rendererContext,_.af7)||q.getAttribute("client-ve-type")?!0:!1};
djj=function(q){return _.T("cow_logging_in_component_wrapper")?function(w){Qnl(w,q,!0)}:CdM};
CdM=function(){};
_.Olf=function(q,w){return _.HQ(q.entities,"accountLinkStatusEntity",w)};
o5s=function(q,w){return _.HQ(q.entities,"hatsSurveyEntity",w)};
VTo=function(q,w){return _.HQ(q.entities,"hatsSurveyStateEntity",w)};
fyH=function(q,w){return _.HQ(q.entities,"quantityIncrementerEntity",w)};
ay4=function(q){var w=q.data;var u=q.className===void 0?"":q.className;var y=q.setMinWidth;q=q.forceIconOnly;var e=_.Bm(djj({data:w}));y=y?"ytwAccountLinkButtonViewModelHostMinWidth":"";var t=_.Qo(_.Olf,function(){var I;return(I=_.$C(w).accountLinkStatusEntityKey)!=null?I:""}),X=_.Qo(_.Olf,function(){var I;
return(I=_.$C(w).accountLinkStatusSecondaryEntityKey)!=null?I:""}),G=function(){if(!_.T("web_account_link_secondary_killswitch")){var I,U;
return((I=t())==null?void 0:I.linked)||((U=X())==null?void 0:U.linked)}var d;return(d=t())==null?void 0:d.linked};
_.DG(function(){var I=t();if(I){var U=mj7(new AQz,JQ6(new zoH,!!I.linked));_.Fu().then(function(d){d&&(d.setAccountLinkState(_.wV(U.JSC$9971_serializeBinary(),4)),d.updateAccountLinkingConfig(!!I.linked))})}});
var n=function(){return _.C(_.$C(w).toggleButtonViewModel,_.Vo)};
_.Kn("yt-signal-action-show-account-link-dialog",function(){if(n()){var I=G()?n().toggledButtonViewModel:n().defaultButtonViewModel;I=_.C(I,_.oH);var U;if((U=t())==null?0:U.isWarning){U=_.C(_.$C(w).warningButtonViewModel,_.oH);if(!U){_.jZ(Error("zh"));return}I=U}var d;(U=_.Zh((d=I)==null?void 0:d.onTap))&&_.sC([U],e.value)}else _.jZ(Error("Ah"))});
var N=function(){var I=n();return Object.assign({},I,{isToggled:G()})},Q=q?{iconPosition:"icon-only"}:{};
return _.W("account-link-button-view-model",{class:_.HR("ytwAccountLinkButtonViewModelHost",function(){return _.$C(u)},y),
el:e,"button-renderer":!0},_.W("div",null,_.W(_.r,{cond:function(){var I;if((I=t())==null?0:I.isWarning)return(I=_.C(_.$C(w).warningButtonViewModel,_.oH))||_.jZ(Error("zh")),I},
then:function(I){return _.W(_.Zs,{data:I,buttonOverrides:Q})},
else:function(){return _.W(_.fr,{data:N,buttonShapeOverrides:Q})}})))};
DjJ=function(q){switch(q){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
Zlz=function(q){switch(q){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}};
pDM=function(q){switch(q){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--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.v5M=function(q){var w=_.Fc("web_generic_client_event_wait_period ",0);w||(w=3E5);var u=$j4.get(q);!_.T("enable_web_client_experiment_event_timeout_killswitch")&&u&&(0,_.eW)()-u<w||($j4.set(q,(0,_.eW)()),_.pn("genericClientExperimentEvent",{eventType:q}))};
bl4=function(q){switch(q){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""}};
YyM=function(q){if(!q)return"";var w,u=(w=_.tG().resolve(_.kF(_.Rg)))==null?void 0:w(),y;if(!u&&((y=q.vibrantColorPalette)==null?0:y.iconInactiveColor))return zt(q.vibrantColorPalette.iconInactiveColor,"1");var e;return u&&((e=q.darkColorPalette)==null?0:e.iconInactiveColor)?zt(q.darkColorPalette.iconInactiveColor,"1"):q.color?zt(q.color,"1"):q.sampledThumbnailColor?(q=q.sampledThumbnailColor,"rgba("+q.red+","+q.green+","+q.blue+");"):""};
_.pr=function(q,w){if(!q.includes("DATE_PLACEHOLDER"))return q;var u=new Date(0);u.setUTCSeconds(w);return q.replace("DATE_PLACEHOLDER",g5l(u))};
_.$H=function(q){q=_.E5H(q);return _.T("web_watch_enable_single_column_grid_view")?q:!1};
_.E5H=function(q){return q.watch.isWatchNarrowWidth};
Rou=function(q,w,u){return function(y){var e=q.command;e&&(O3(e,{form:{element:u}}),w([e],y))}};
Syj=function(q,w,u,y,e){return function(t){var X=cQl(q,u);X&&O3(X,{form:{element:y},commandController:e});w&&w.stopPropagation&&t.stopPropagation()}};
cQl=function(q,w){if(q.signInEndpoint&&!_.T("web_subscribe_sign_in_endpoint_killswitch"))return q.signInEndpoint;if(w){if(q.serviceEndpoints)return q.serviceEndpoints[1];if(q.onUnsubscribeEndpoints)return q.onUnsubscribeEndpoints[0]}else{if(q.serviceEndpoints)return q.serviceEndpoints[0];if(q.onSubscribeEndpoints)return q.onSubscribeEndpoints[0]}};
hoy=function(q,w){var u,y,e,t;w=w&&((u=q.unsubscribeAccessibility)==null?void 0:(y=u.accessibilityData)==null?void 0:y.label)||((e=q.subscribeAccessibility)==null?void 0:(t=e.accessibilityData)==null?void 0:t.label);return q.longSubscriberCountText?[w,_.lA(q.longSubscriberCountText)].filter(function(X){return X}).join(" "):w};
vC=function(q,w){return w||(q==null?0:q.isChannelDelegate)?"disabled":"active"};
jnj=function(q,w){var u;switch((u=q.style)==null?void 0:u.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:vC(q)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:vC(q)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:vC(q,!0)};case "OVERLAY":return w?{style:"overlay",type:"tonal",state:vC(q)}:{style:"overlay",type:"filled",state:vC(q)};default:return w?{style:"mono",type:"tonal",state:vC(q)}:{style:"mono",type:"filled",state:vC(q)}}};
lyJ=function(q,w){var u=q.map(function(y){return y.toString()});
return _.QS(function(y){if(u.includes(y.key)){w&&y.preventDefault();var e;(e=y.currentTarget)==null||e.click()}})};
_.LVl=function(){return lyJ(["Enter"])};
_.MTc=function(){return lyJ(["Enter"," "],!0)};
_.bq=function(q){if(q.composedPath)return q.composedPath();if(!q.__composedPath){for(var w=[],u=q.target;u;)w.push(u),u=u.parentNode;w.push(window);q.__composedPath=w}return q.__composedPath};
_.KVM=function(q,w,u){q=_.P(q);for(var y=q.next();!y.done;y=q.next()){y=y.value;if(y===w)break;for(var e=_.P(u),t=e.next();!t.done;t=e.next())if(t=t.value,y.tagName===t||y.role==="button"&&t==="BUTTON")return!0}return!1};
xjM=function(q,w){var u,y=(u=w.observer)!=null?u:_.tG().resolve(el);if(q){u=Beu(q);var e=[];w.showOption&&e.push(y.observe(q,function(){w.visibilityCallback(!0)},w.showOption));
w.hideOption&&e.push(y.observe(q,function(){w.visibilityCallback(!1)},w.hideOption));
w.prescanOption&&w.prescanCallback&&e.push(y.observe(q,function(){w.prescanCallback()},w.prescanOption));
var t;u.visibilityMonitorKeys=((t=u.visibilityMonitorKeys)!=null?t:[]).concat(e)}};
Beu=function(q){var w;return(w=q.polymerController)!=null?w:q};
_.gE=function(q){return!!_.YH(q)};
_.ueo=function(q,w){var u=sdz();ZR(function(){var y=q.value;if(y)return qQM(y,w),weH(y,w,void 0,void 0,void 0,u)},[w])};
_.EF=function(q,w,u,y,e,t){var X=sdz();_.DG(function(){var G=q.value;G&&(qQM(G,w(),t),G=weH(G,w(),u,y,e,X),_.ZG(G))})};
qQM=function(q,w,u){var y=ysc(w),e=er6(w);w=y&&kb7;var t=e&&tAo;(y||e)&&xjM(q,{visibilityCallback:function(X){var G=_.tG().resolve(_.PG);X&&y?G.resolveCommand(y,{form:{element:u?q:void 0},disableClickTracking:!0}):!X&&e&&G.resolveCommand(e,{form:{element:u?q:void 0},disableClickTracking:!0})},
showOption:w,hideOption:t})};
weH=function(q,w,u,y,e,t){var X=new Map;if(w=_.YH(w)){var G;q=(y==null?void 0:(G=y.onTap)==null?void 0:G.value)||q;u=P27(w,q,u==null?void 0:u.onTap,e,t);q.addEventListener("click",u);X.set("click",u)}return function(){for(var n=_.P(X),N=n.next();!N.done;N=n.next()){var Q=_.P(N.value);N=Q.next().value;Q=Q.next().value;q.removeEventListener(N,Q)}}};
_.YH=function(q){var w;return(q=(w=_.C(q,XeM))==null?void 0:w.onTap)&&_.Zh(q)};
ysc=function(q){var w;return(q=(w=_.C(q,XeM))==null?void 0:w.onVisible)&&_.Zh(q)};
er6=function(q){var w;return(q=(w=_.C(q,XeM))==null?void 0:w.onHidden)&&_.Zh(q)};
P27=function(q,w,u,y,e){var t=function(G){_.tG().resolve(_.PG).resolveCommand(q,G)},X=function(G){y&&_.KVM(_.bq(G),w,y)||t(G.target?{form:{element:G.target,
sourceData:q,mutationContext:e}}:void 0)};
u&&(X=function(G){u(G,t)});
return X};
FXJ=function(q){switch(q){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}};
Gbz=function(q){var w=q.numAvatarsInCluster;switch(q.clusterSize){case "small":return w===2?22:18;case "40":return w===2?24:22;default:return w===2?24:20}};
ni7=function(q,w){return function(u){var y=Object.keys(w);_.DG(function(){if(q()){for(var e=_.P(y),t=e.next();!t.done;t=e.next())t=t.value,u.addEventListener(t,w[t]);_.ZG(function(){for(var X=_.P(y),G=X.next();!G.done;G=X.next())G=G.value,u.removeEventListener(G,w[G])})}})}};
H2j=function(q){switch(Gbz(q)){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""}};
WXl=function(q){switch(q){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""}};
sYH=function(q){switch(Gbz(q)){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""}};
N5o=function(q){switch(q){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""}};
QYf=function(q){switch(q){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}};
IYz=function(q){return q==="medium"||q==="48"||q==="large"||q==="extra-large"||q==="extra-extra-large"||q==="giant"};
i2l=function(q){return!!((q==null?0:q.includes(3))||(q==null?0:q.includes(5)))};
UhM=function(q){return{size:rss(q.data.avatarImageSize),onTap:q.onTap,decorations:q.decorations||[],badgeText:q.badgeText,accessibilityText:q.accessibilityText,avatarButtonCustomClassName:q.avatarButtonCustomClassName,clusterLayoutConfig:q.clusterLayoutConfig}};
rss=function(q){switch(q){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"}};
T5M=function(q){switch(q){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}};
C26=function(q){switch(q){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""}};
dh4=function(q){var w=q.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",u,y=q.avatars&&q.avatars.length>0?(u=_.C(q.avatars[0],_.RH))==null?void 0:u.avatarImageSize:"AVATAR_SIZE_UNKNOWN";u=T5M(y)||0;if(w){var e,t=(e=q.avatarClusterSize)!=null?e:"AVATAR_SIZE_M";w=T5M(t);var X,G,n=Math.min((G=(X=q.avatars)==null?void 0:X.length)!=null?G:0,4),N;return{avatars:((N=q.avatars)==null?void 0:N.slice(0,4))||[],avatarSizeInPx:u,avatarStackStyle:{width:w+"px",height:w+"px",position:"relative"},avatarStyle:function(I){var U=
Gbz({clusterSize:rss(t),numAvatarsInCluster:n,avatarIndex:I});var d=T5M(t);n===3&&I===2?(d=(d-U)/2,d=(_.Et("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*d):d=void 0;return{position:"absolute",top:n===2&&I===1||n===3&&I===2||n===4&&I>=2?"0":void 0,bottom:n===2&&I===0||n>2&&I<2?"0":void 0,left:n===2&&I===1||n>2&&(I===1||I===3)?"0":void 0,right:n<=3&&I===0||n===4&&(I===0||I===2)?"0":void 0,transform:d?"translateX("+d+"px)":void 0,width:U+"px",height:U+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(I){return{clusterSize:rss(q.avatarClusterSize),numAvatarsInCluster:n,avatarIndex:I}},
avatarButtonCustomClassName:void 0}}var Q;return{avatars:((Q=q.avatars)==null?void 0:Q.slice())||[],avatarSizeInPx:u,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:C26(y),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
O27=function(q,w,u){return function(){O3(q,{form:{element:w},commandController:u})}};
oic=function(q){switch(q){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
VAu=function(q){switch(q){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"}};
fYl=function(q){var w=q.data;q=q.hidden===void 0?!1:q.hidden;var u={};q={class:_.s3("yt-page-indicator-view-model",(u["yt-page-indicator-view-model__indicator--hidden"]=!w.indicatorCount,u)),hidden:q};if(w.indicatorCount){u=[];for(var y=0;y<w.indicatorCount;y++){var e={};e=_.s3("yt-page-indicator-view-model__indicator",(e["yt-page-indicator-view-model__indicator--selected"]=w.selectedIndex===y,e));u.push(_.W("div",{class:e}))}w=_.W(_.GS,null,u)}else w=_.W(_.GS,null);return _.W("yt-page-indicator-view-model",
q,w)};
AsH=function(q){q&&(mhs(q)?delete q.inlinePlayerData:"inlinePlaybackEndpoint"in q&&delete q.inlinePlaybackEndpoint)};
JsM=function(q){if("accessibilityText"in q)return q.accessibilityText||"";if("title"in q){var w,u,y;return((w=q.title)==null?void 0:(u=w.accessibility)==null?void 0:(y=u.accessibilityData)==null?void 0:y.label)||""}if("accessibility"in q){var e,t;return((e=q.accessibility)==null?void 0:(t=e.accessibilityData)==null?void 0:t.label)||""}return""};
mhs=function(q){return"inlinePlayerData"in q};
cC=function(q){return new zrl(q)};
_.aYc=function(q,w,u,y,e,t){var X=function(N){N.preventDefault()},G=function(){var N=q.value;
if(N)return(N._data=w)?(N.addEventListener("touchstart",CXl,{passive:!0}),N.addEventListener("click",OXJ),w.clickTrackingParams&&(N.params={itct:w.clickTrackingParams}),o0z(N,w),VE(N,V1H(w)||"")):N.addEventListener("click",X),function(){w?(N.removeEventListener("touchstart",CXl,{passive:!0}),N.removeEventListener("click",OXJ)):N.removeEventListener("click",X)}},n=function(){var N=q.value;
if(N){var Q=_.$B({innertubeCommand:w,elementsCommand:u,forceNewState:y,stopPropagation:t});if(Q)return N._data=Q._data,Q["aria-haspopup$"]&&N.setAttribute("aria-haspopup",Q["aria-haspopup$"].toString()),Q["force-new-state$"]&&N.setAttribute("force-new-state",Q["force-new-state$"].toString()),Q.href$&&VE(N,Q.href$),Q.rel$&&(N.rel=Q.rel$),Q.role$&&N.setAttribute("role",Q.role$),Q.target$&&(N.target=Q.target$),N.params=Q.params,Q.onclick&&N.addEventListener("click",Q.onclick),Q.onpointerdown&&N.addEventListener("onpointerdown",
Q.onpointerdown),function(){Q.onclick&&N.removeEventListener("click",Q.onclick);Q.onpointerdown&&N.removeEventListener("onpointerdown",Q.onpointerdown)}}};
ZR(e?n:G,[w,u])};
Dhc=function(q){var w=q.children;var u=q.className;var y=q.dir;var e=q.style;var t=q.role;var X=q.ariaSelected;var G=q.ariaLabel;var n=q.ariaHidden;var N=q.ariaLabelledby;var Q=q.ariaDescribedby;var I=q.command;var U=q.elementsCommand;var d=q.forceNewState;var V=q.isPlaceholder;var J=q.tabIdentifier;var a=q.target;var b=q.tabIndex;var g=q.useATagConfig;var l=q.stopPropagation;q=_.Bm();_.aYc(q,I,U,d,g,l);U=_.QS(function(){return l===!1});
return _.W("a",{el:q,"on:click":U,class:u,style:e,dir:y,role:t?t:I?void 0:"group","aria-hidden":n?!0:void 0,"aria-label":G,"aria-labelledby":N,"aria-describedby":Q,"aria-selected":X,tabindex:b!==void 0?b:void 0,target:a,"tab-identifier":J,"force-new-state":d?!0:void 0,"is-placeholder":V?!0:void 0},w)};
Z2s=function(q){var w=q.data;q=_.QS(function(){var e=_.C(w.onTap,_.Dh);e&&_.tG().resolve(_.PG).resolveCommand(e);return!1});
var u={sources:[{url:w.thumbnailUrl,width:120,height:90}]},y=w.rating&&w.ratingA11yLabel&&w.reviewsCount&&w.reviewsCountA11yLabel;return _.W("place-data-view-model",null,w.placeName&&w.placeCategory?_.W("div",{class:"yt-spec-place-data-view-model-shape","on:click":q},_.W(_.ln,{data:u,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.W(Dhc,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.C(w.onTap,_.Dh),forceNewState:!0,useATagConfig:!0},
_.W("h3",{class:"yt-spec-place-data-view-model-shape__name",title:w.placeName},w.placeName)),_.W("div",{class:"yt-spec-place-data-view-model-shape__metadata"},y?_.W("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.W("span",{class:"score",title:w.ratingA11yLabel},w.rating),_.W("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.W(_.U3,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.W("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:w.reviewsCountA11yLabel},w.reviewsCount)):_.W("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.W("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.W("span",{class:"category",title:w.placeCategory},w.placeCategory)))):null)};
peH=function(q){return function(w){q&&(q.thumbnailElRef=w.thumbnailElRef,q.thumbnail=w.thumbnail,q.thumbnailOverlays=w.thumbnailOverlays,q.thumbnailSize=w.thumbnailSize)}};
$hl=function(q){var w;return(w=q.sharedUi)==null?void 0:w.animatedThumbnailEnabled};
vij=function(q){var w;return(w=q.sharedUi)==null?void 0:w.inlinePreviewEnabled};
_.b2z=function(q){var w;return(w=q.sharedUi)==null?void 0:w.currentPageSubType};
YQM=function(q){switch(q){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"}};
Ei4=function(q){var w=_.P(_.r4(!1,void 0,"RIOonf")),u=w.next().value,y=w.next().value;_.p4(function(){var e=q==null?void 0:q();if(e){var t=_.tG().resolve(_.kF(gi7));if(t){var X={triggeringElement:e,onDwellTriggeredFn:function(){y(!0)},
onDwellEndFn:function(){y(!1)}};
t.registerElement(X);_.ZG(function(){t.unregisterElement(X)})}}});
return u};
Rrz=function(q,w,u){u?u(w):_.bn(w,q.target?{form:{element:q.target}}:void 0)};
_.Sg=function(q,w,u,y){_.DG(function(){var e=q.value;if(e){var t=new Map,X,G=(X=w())==null?void 0:X.onTap;G&&(X=function(n){a:{var N=n.composedPath();N=_.P(N);for(var Q=N.next();!Q.done;Q=N.next()){Q=Q.value;if(Q===e)break;if(Q.className.indexOf("HostIsClickableAdComponent")>=0||Q.tagName==="A".toString()||Q.tagName==="BUTTON".toString()){N=!0;break a}}N=!1}N||(_.T("enable_square_image_components_ui_web_with_float_button")?_.t7(q.value,"yt-navigate",{endpoint:_.Zh(G)}):Rrz(n,G,u))},(y==null?0:y())||
_.T("enable_web_home_top_landscape_image_layout_level_click")?(e.addEventListener("tap",X),t.set("tap",X)):(e.addEventListener("click",X),t.set("click",X)));
_.ZG(function(){for(var n=_.P(t),N=n.next();!N.done;N=n.next()){var Q=_.P(N.value);N=Q.next().value;Q=Q.next().value;e.removeEventListener(N,Q)}})}})};
csj=function(q,w){var u,y=(u=q.interaction)==null?void 0:u.onTap;if(q=_.$B({elementsCommand:y,forceNewState:!0,skipOnClick:!0}))return q.onclick=function(e){iXu(e)&&(e.preventDefault(),y&&Rrz(e,y,w))},v6(q)?q:void 0};
SQf=function(q){switch(q){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
hrJ=function(q){switch(q){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"}};
jY6=function(q){switch(q){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"}};
_.lYl=function(q){return _.T("rich_grid_enable_dynamic_offset")&&q?Math.max(Math.round((q-_.Fc("rich_grid_dynamic_offset_anchor_width",1300))/100*_.Fc("rich_grid_dynamic_offset_offset_per_100",10)),_.Fc("rich_grid_dynamic_offset_lower_bound",-60)):0};
LXj=function(q,w){switch(w){case 4:return 16;case 1:return q<528?16:q<1024?32:48;case 2:return(q>=528?16:8)/2;case 3:return(q<528?16:q<1024?32:48)+(q>=528?16:8)/2;default:return 0}};
MAf=function(q){var w=q.originalContainerWidth;var u=q.sizing;var y=q.standardUnit;if(q.isCompactList&&w<528)return 1;switch(u){case "STANDARD":return y;case "COMPACT":return y+1;case "EXTRA_COMPACT":return _.T("web_responsive_extra_compact_2x")?y*2:_.T("web_responsive_current")?y===1?2:y%2===0?y/2*3:y+2:y<4?y*2:Math.ceil(y*3/2);case "MINI":return y>1?y*2:3;default:return y}};
B5u=function(q){var w=q.containerWidth;var u=q.peek;var y=q.gutter;var e=q.numItems;q=q.ignoreMaxWidthLimit;w=u?Math.max((w-u-y*e)/e,0):Math.max((w-y*(e-1))/e,0);return q?w:Math.min(w,KX4)};
_.hg=function(q){var w=q.containerWidth;var u=q.hasPeek;var y=q.sizing;var e=q.marginSettings;var t=q.isCompactList;var X=q.enableFullBleedForSingleCol;var G=q.standardUnitMinWidth;y=y||"STANDARD";u=!!u;q=w>=528?16:8;var n=u?w>=528?48:24:0;e=LXj(w,e);var N=Math.max(w-e*2,0);G=_.T("kevlar_disable_min_width_override")?void 0:G;G=Math.min(Math.max(Math.floor((N-n+q)/((G!=null?G:xhy)+_.lYl(w)+q)),1),6);var Q=(X=!!X&&G===1)||G===1&&y!=="STANDARD";u=u||Q?N:Math.min(N,(KX4+q)*G-q);y=MAf({originalContainerWidth:w,
sizing:y,standardUnit:G,isCompactList:t});return{itemWidth:B5u({containerWidth:u,peek:n,gutter:q,numItems:y,ignoreMaxWidthLimit:Q}),gutter:q,maxContainerWidth:u,numItems:y,margin:X?0:e,contentMargin:LXj(w,1),typographyBump:B5u({containerWidth:u,peek:n,gutter:q,numItems:G,ignoreMaxWidthLimit:Q})>400&&!(t&&w<528),standardUnit:G}};
qH6=function(q){switch(q){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.wP6=function(q){if(q){var w;if((w=q.responsiveContainerConfiguration)==null?0:w.responsiveSize)return qH6(q.responsiveContainerConfiguration.responsiveSize);if(q.layoutSizing)switch(q.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"}}};
uwf=function(q){if(q.fullbleed)return 1;switch(q.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
tI7=function(q,w,u,y,e,t,X,G){a:switch(q){case 4:t=!!(t&&t<100);break a;default:t=!1}a:switch(q){case 3:case 4:var n=y==="LOCKUP_CONTENT_TYPE_CHANNEL"||y==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:n=!1}a:switch(q){case 5:var N=!0;break a;case 4:N=!1;break a;default:N=!1}a:if(q===4&&y==="LOCKUP_CONTENT_TYPE_SOURCE")var Q=1;else switch(q){case 3:Q=1;break a;default:Q=0}return{isOverlay:N,isCard:yuz(y,X),sizing:w!=null?w:"STANDARD",typographyBump:u!=null?u:!1,isTiny:t,isCentered:n,isCollection:eEM(y),
arrangement:Q,addMarginForFullbleed:q===1&&y!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:q===1&&y==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:kec(y,e,G),disableRounding:q===5||yuz(y,X)||q===1&&y==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:eEM(y)?2:0,useLegacyTypography:!(G==null||!G.useLegacyTypography),useRichGridLegacyTypography:!(G==null||!G.useRichGridLegacyTypography)&&!_.T("web_enable_typography_bump")}};
eEM=function(q){switch(q){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}};
yuz=function(q,w){if(w&&q==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(q){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
kec=function(q,w,u){if(w&&(u==null||!u.alwaysRespectPodcastShowAspectRatio||q!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(q){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}};
PTc=function(q){switch(q){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"}};
GeJ=function(q,w,u){a:switch(q.badgeStyle){case "BADGE_OVERLAY":var y=!0;break a;default:y=!1}return{type:w?16:XPz(q.badgeStyle),brNzRatingBadgeType:FQy(q.badgeStyle),text:q.badgeText,icon:q.iconName,isOverlay:y,modern:u||_.T("web_modern_badge_view_model")}};
XPz=function(q){switch(q){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
FQy=function(q){switch(q){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}};
H_H=function(q){var w=q.data?GeJ(q.data,!!q.workaroundShortsIsThumbnailBadge,q.modern):void 0;return _.W("yt-badge-view-model",{class:_.s3("yt-badge-view-model-wiz",q.class)},uO(w==null?void 0:w.brNzRatingBadgeType,function(){return _.W(nbc,{data:w})}),uO(w&&!w.brNzRatingBadgeType,function(){return _.W(_.jg,{data:w})}))};
_.lq=function(q){if(q){var w;return((w=_.tG().resolve(_.kF(_.Rg)))==null?0:w())?q.darkThemeImage:q.image}};
NWl=function(q,w,u,y,e,t){if(!u)return e&&t&&w==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?{width:e,height:t}:{};e=u.size;u=u.allowFullWidth;if(w==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&u)return{fullWidth:!0};if(e===void 0)return{};switch(q){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:e,height:e};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:e,height:1/WQ6*e};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:e*
sWy,height:e};default:return(y==null?0:y.height)&&(y==null?0:y.width)?y.width/y.height>1?{maxWidth:e*sWy}:{maxWidth:e}:{maxWidth:e}}};
QWf=function(q){var w;return q&&((w=_.lq(q.themedImage))!=null?w:q.image)};
IqM=function(q){var w;return q==null?void 0:(w=q.sources)==null?void 0:w[0]};
ruM=function(q,w){var u,y;return!!((q==null?0:(u=q.byline)==null?0:u.hideAvatar)&&((y=_.C(w,i_y))==null?void 0:y.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
Up4=function(q,w){var u,y;return!!((q==null?0:(u=q.byline)==null?0:u.addPadding)&&((y=_.C(w,i_y))==null?void 0:y.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
TWJ=function(q,w,u,y){var e={},t=(e["yt-content-metadata-view-model-wiz__delimiter"]=!0,e["yt-content-metadata-view-model-wiz__delimiter--standalone"]=y,e);return uO(w-1>u,function(){return _.W("span",{class:_.s3(t),"aria-hidden":!0},q)})};
dpM=function(q,w){return _.W(_.Lr,{text:q.text,linkInheritColor:!0,className:CTs(w),userInput:!0})};
obc=function(q){var w=q.metadataPart;var u=q.isOverlay;var y=q.useMediumText;var e=q.hideAvatar;var t=1;w.maxLines!==void 0&&(t=w.maxLines);return _.W(_.GS,null,uO(w.avatarStack,function(){return O_j(w.avatarStack,{avatarStackViewModel:{isOverlay:u,useMediumText:y,hideAvatar:e}})}),uO(w.text,function(){var X=t;
return _.W(_.GS,null,w.tooltip?_.W("span",{title:w.tooltip,role:"tooltip"},dpM(w,X)):dpM(w,X))}))};
CTs=function(q){switch(q){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"}};
VIM=function(q){var w=q.metadataRow;var u=q.isInline;var y=q.delimiter;var e=q.isOverlay;var t=q.useMediumText;var X=q.extensions;var G=ruM(X==null?void 0:X.lockupMetadata,w);q=Up4(X==null?void 0:X.lockupMetadata,w);X=!!((X==null?0:X.lockupMetadata)&&w.badges);var n={};q=(n["yt-content-metadata-view-model-wiz__metadata-row"]=!0,n["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=u,n["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=q,n["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
X,n);var N,Q;return _.W("div",{class:_.s3(q)},(N=w.badges)==null?void 0:N.map(function(I){return _.W("div",{class:"yt-content-metadata-view-model-wiz__badge"},O_j(I))}),(Q=w.metadataParts)==null?void 0:Q.map(function(I,U){return _.W(_.GS,null,obc({metadataPart:I,
isOverlay:e,useMediumText:t,hideAvatar:G}),TWJ(y,w.metadataParts.length,U,!1))}),uO(w.isSpacerRow&&!u,function(){return _.W("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
fqs=function(q){var w=q.className;var u=q.data;var y=q.layout===void 0?0:q.layout;var e=q.isOverlay===void 0?!1:q.isOverlay;var t=q.useMediumText;var X=q.extensions;q=_.Bm();var G=y===0;y={};y=(y["yt-content-metadata-view-model-wiz"]=!0,y["yt-content-metadata-view-model-wiz--inline"]=G,y["yt-content-metadata-view-model-wiz--tappable"]=_.gE(u.rendererContext),y["yt-content-metadata-view-model-wiz--medium-text"]=t,y);_.ueo(q,u.rendererContext);return _.W("yt-content-metadata-view-model",{class:_.s3(w,
y),el:q},uO(u.metadataRows,function(){return u.metadataRows.map(function(n,N){return _.W(_.GS,null,VIM({metadataRow:n,isInline:G,delimiter:u.delimiter,isOverlay:e,useMediumText:t,extensions:X}),uO(G&&!n.isSpacerRow,function(){return TWJ(u.delimiter,u.metadataRows.length,N,!0)}))})}))};
mpM=function(q){switch(q){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"}};
Auu=function(q){switch(q.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"}}};
Juc=function(q){var w=_.b2z(_.cj().getState())||"";return q?q+w:""};
zEy=function(q){switch(q){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
Dpy=function(q){var w=_.P(_.r4(void 0,void 0,"BIquNb")),u=w.next().value,y=w.next().value,e=_.P(_.r4(void 0,void 0,"eR0GH"));w=e.next().value;var t=e.next().value,X=_.P(_.r4(void 0,void 0,"UmkP0"));e=X.next().value;var G=X.next().value;X=_.QS(function(Q){if(aqJ(_.bq(Q)))return!1;y(Q);t(void 0);G(void 0);return!0});
var n=_.QS(function(Q){q==null||q(Q);if(aqJ(_.bq(Q)))return!1;t(Q);y(void 0);G(void 0);return!0}),N=_.QS(function(Q){aqJ(_.bq(Q))||(G(Q),t(void 0),y(void 0))});
return{touchFeedbackEvents:{pointerUpEvent:u,pointerDownEvent:w,pointerLeaveEvent:e},touchFeedbackOnPointerUp:X,touchFeedbackOnPointerDown:n,touchFeedbackOnPointerLeave:N}};
aqJ=function(q){var w=["BUTTON".toString()];q=_.P(q);for(var u=q.next();!u.done;u=q.next()){u=u.value;for(var y=_.P(w),e=y.next();!e.done;e=y.next())if(u.tagName===e.value)return!0}return!1};
Z_o=function(q){switch(q){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"}};
pPM=function(q,w){var u;return bX7(q,((u=q.content)==null?void 0:u.length)||0,!w)};
$pc=function(q,w){w=pPM(q,w);var u,y;return(((u=q.content)==null?void 0:u.length)||0)>(((y=w.content)==null?void 0:y.length)||0)};
vbz=function(q){var w=q.isTruncated;var u=q.isAbsoluteButton;var y=q.lineHeight;var e=q.contentRef.value,t=q.placeholderTruncationTextRef.value,X=q.truncationTextRef.value;q=q.appDirection==="rtl";if(e&&t){var G=t.offsetLeft;q&&(G=e.offsetWidth-t.offsetWidth-t.offsetLeft);if(w){w=t.offsetWidth;t=e.offsetWidth;var n=u?t-w-70:G-70;y="linear-gradient(\n      to top, transparent 0%,\n      transparent "+y+"px,\n      #000 "+y+"px,\n      #000 100%), linear-gradient(\n      to "+((q?"left":"right")+",\n      #000 0px,\n      #000 "+
n+"px,\n      transparent "+(u?t-w:n+70)+"px)");e.style.setProperty("-webkit-mask-image",y);e.style.setProperty("mask-image",y)}else e.style.setProperty("-webkit-mask-image",""),e.style.setProperty("mask-image","");u?q?(X.style.setProperty("left","0"),X.style.setProperty("right","unset")):(X.style.setProperty("left",""),X.style.setProperty("right","0")):q?(X.style.setProperty("left","unset"),X.style.setProperty("right",G+"px")):(X.style.setProperty("left",G+"px"),X.style.setProperty("right","unset"))}};
b_o=function(q,w,u,y,e,t,X){var G=_.Bm(),n=_.Bm(),N=_.Bm(),Q=pPM(q,e),I=_.tG().resolve(_.SD),U=_.P(NI($pc(q,e))),d=U.next().value,V=U.next().value,J=vl(null);ZR(function(){function a(){if(G.value&&n.value&&N.value){var l=G.value;l.scrollHeight-l.offsetHeight>1?(V(!0),y||vbz({isTruncated:!0,isAbsoluteButton:!0,lineHeight:u,contentRef:G,placeholderTruncationTextRef:n,truncationTextRef:N,appDirection:I})):(l=$pc(q,e),V(l),y||vbz({isTruncated:l,isAbsoluteButton:!1,lineHeight:u,contentRef:G,placeholderTruncationTextRef:n,
truncationTextRef:N,appDirection:I}))}}
var b,g;(b=J.value)==null||(g=b.stop)==null||g.call(b);b=new _.MI(a,17);a();J.value=b},[q.content,
w,u,I,y,t,X,e]);_.p4(function(){var a=function(){var g,l;(g=J.value)==null||(l=g.fire)==null||l.call(g)};
if(window.ResizeObserver){var b=new ResizeObserver(a);b.observe(G.value);return function(){var g,l;(g=J.value)==null||(l=g.stop)==null||l.call(g);b.disconnect()}}window.addEventListener("resize",a);
return function(){var g,l;(g=J.value)==null||(l=g.stop)==null||l.call(g);window.removeEventListener("resize",a)}});
return{isTruncated:d,displayText:Q,contentRef:G,placeholderTruncationTextRef:n,truncationTextRef:N}};
YHM=function(q){return _.W("button",{"aria-disabled":!0,disabled:!0,class:q.className,el:q.elRef,style:"line-height: "+q.lineHeight+"px;"},_.W(_.Lr,{text:q.text}))};
gbH=function(q){var w=q.text;var u=q.alwaysShowTruncationText;var y=q.truncationText;var e=q.onExpandClick;var t=q.lineHeight===void 0?16:q.lineHeight;var X=q.maxLines===void 0?2:q.maxLines;var G=q.disableTextMask===void 0?!1:q.disableTextMask;var n=q.textStyle===void 0?"default":q.textStyle;var N=q.accessibilityLabel===void 0?"":q.accessibilityLabel;var Q=q.textSize===void 0?"small":q.textSize;var I=q.alwaysTruncateAtMaxLines===void 0?!1:q.alwaysTruncateAtMaxLines;q=_.QS(function(){return void(e==
null?void 0:e())});
var U=b_o(w,X,t,G,I,Q,n),d=U.isTruncated;w=U.displayText;I=U.contentRef;var V=U.placeholderTruncationTextRef;U=U.truncationTextRef;var J={};u=_.s3((J["truncated-text-wiz__absolute-button"]=!G,J["truncated-text-wiz__bottom-button"]=G,J["truncated-text-wiz--hidden"]=!(u||d),J));G={};n=_.s3((G["truncated-text-wiz"]=!0,G["truncated-text-wiz--overlay"]=n==="overlay",G["truncated-text-wiz--medium-text"]=Q==="medium",G["truncated-text-wiz--large-text"]=Q==="large",G["truncated-text-wiz--primary-text"]=n===
"primary-text",G));return _.W("truncated-text",{class:n,"on:click":q,style:"line-height: "+t+"px;"},_.W("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",el:I,style:"max-height: "+X*t+"px;"},_.W(_.Lr,{text:w}),_.W(YHM,{text:y,lineHeight:t,elRef:V,className:"truncated-text-wiz__inline-button"})),_.W("button",{"aria-label":N,class:u,el:U,style:"line-height: "+t+"px;"},_.W(_.Lr,{text:y})))};
EbJ=function(q){return{content:q!=null?q:""}};
SHM=function(q){var w=q.data;var u;q={class:q.className};a:switch(w.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var y="yt-video-attribute-view-model--vertical";break a;default:y="yt-video-attribute-view-model--horizontal"}a:switch(w.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var e="yt-video-attribute-view-model--image-small";break a;default:e="yt-video-attribute-view-model--image-large"}a:switch(w.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var t="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":t="yt-video-attribute-view-model--image-avatar";break a;default:t=""}a:switch(w.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var X="yt-video-attribute-view-model--metadata-header";break a;default:X=""}a:switch(w.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var G="yt-video-attribute-view-model--container-card";break a;default:G=""}var n=_.Zh(w.onTap)||_.YH(w.rendererContext)?"yt-video-attribute-view-model--clickable":"";
y=["yt-video-attribute-view-model",y,e,t,X,G,n].join(" ");if(w.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var N="";else e=w.lightColorPalette,t=w.darkColorPalette,X=((N=_.tG().resolve(_.kF(_.Rg)))==null?0:N())&&t?t:e,N=(N=X==null?void 0:X.section2Color)?_.Je(N):"";return _.W("yt-video-attribute-view-model",q,_.W("div",{class:y,style:_.rm({"background-color":N})},_.W(Dhc,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(u=_.Zh(w.onTap))!=
null?u:_.YH(w.rendererContext),role:"group",ariaLabel:w.title,forceNewState:!0},w.heroText||w.image?_.W(REz,{data:w}):null,_.W(cuc,{data:w,sizeSmall:w.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
hEu=function(q){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:q.overflowMenuA11yLabel,onTap:function(w){w.preventDefault();w.stopPropagation();if(q.overflowMenuOnTap){var u=_.$B({elementsCommand:q.overflowMenuOnTap,forceNewState:!0});if(u==null?0:u.onclick)u.onclick(w)}}}};
REz=function(q){q=q.data;var w,u=((w=_.tG().resolve(_.kF(_.Rg)))==null?0:w())&&q.darkThemeImage?q.darkThemeImage:q.image;w=hEu(q);return _.W("div",{class:"yt-video-attribute-view-model__hero-section"},u?_.W(_.ln,{data:u,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):q.heroText?_.W("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.W("span",{class:"yt-video-attribute-view-model__hero-text"},q.heroText)):null,q.overflowMenuOnTap?
_.W("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.W(Kr,{data:w,iconName:"MORE_VERT"})):null)};
cuc=function(q){var w=q.data;q=q.sizeSmall;var u=w.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",y=_.Zh(w.onTap)||_.YH(w.rendererContext);y=_.$B({innertubeCommand:y});y=v6(y);var e={};q={class:_.s3("yt-video-attribute-view-model__metadata",(e["yt-video-attribute-view-model--small-font"]=q,e)),role:y?"link":"group"};y=_.W("h1",{class:"yt-video-attribute-view-model__title"},w.title);u=w.subtitle?_.W("h4",{class:"yt-video-attribute-view-model__subtitle"},u?_.W(gbH,{text:EbJ(w.subtitle),truncationText:EbJ(w.subtitleTruncationText),
maxLines:2}):_.W("span",null,w.subtitle)):null;if(w.secondarySubtitle){e=w.secondarySubtitle;if(e!=null&&e.attachmentRuns){for(var t=[],X=_.P(e.attachmentRuns),G=X.next();!G.done;G=X.next())G=G.value,G.element&&t.push(Object.assign({},G,{element:Object.assign({},G.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));e=Object.assign({},e,{attachmentRuns:t})}e=_.W("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.W(_.Lr,{text:e}))}else e=null;return _.W("div",q,y,u,e,w.buttonViewModel?jWu(w.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
_.BC=function(q,w,u,y,e){y=y===void 0?{}:y;if(!e||Math.random()<5E-4){w=w||null;u=u||null;q=q instanceof Error?q:new _.fv(q);if(q.args)for(var t=_.P(q.args),X=t.next();!X.done;X=t.next())X=X.value,X instanceof Object&&(y=Object.assign({},X,y));y.category="H5 Ads Control Flow";w&&(y.slot=w?"slot:  "+w.slotType:"");u&&(y.layout=u?"layout:  "+u.layoutType:"",y.layoutId=u.layoutId);e&&(y.known_error_aggressively_sampled=!0);q.args=[y];_.Y8(q)}};
_.lq7=function(q,w){_.Pw(q,"yt-open-popup-action",[_.BQ(w),q])};
_.xH=function(q,w){_.lq7(q,_.jN(w))};
MIc=function(q){if(!q)return"";if(LQJ[q])return LQJ[q];qD||(qD=_.rg("A"));qD.href!==q&&VE(qD,q);var w=qD.pathname;LQJ[q]=w.startsWith("/")?w:"/"+w;return LQJ[q]};
KQJ=function(){var q=MIc(window.location.href);if(q==="/")return"home";if(q.startsWith("/results"))return"search";if(q.startsWith("/watch"))return"watch";if(q.startsWith("/shorts"))return"shorts";if(q.startsWith("/hashtag"))return"hashtag";if(q.startsWith("/create_channel"))return"create_channel";if(q.startsWith("/@")||q.startsWith("/user/")||q.startsWith("/channel/"))return"channel";if(q.startsWith("/experiments"))return"experiments";if(q.startsWith("/sponsor_channel"))return"sponsorship";if(q.startsWith("/select_site"))return"settings";
if(q.startsWith("/locate"))return"locate";if(q.startsWith("/redeem"))return"redeem";if(q.startsWith("/musicpremium")||q.startsWith("/premium")||q.startsWith("/red"))return"premium";if(q.startsWith("/paid_memberships"))return"paid_memberships";if(q.startsWith("/oops"))return"oops";if(q.startsWith("/clip"))return"clip";var w;return(wI==null?void 0:(w=wI.response)==null?void 0:w.page)==="404"?"404":q.startsWith("/feed/history")?"history":q.startsWith("/feed/library")?"library":q.startsWith("/feed/subscriptions")?
"subscriptions":q.startsWith("/feed/trending")?"trending":q.startsWith("/feed/news_destination")?"news":q.startsWith("/playlist")?"playlist":q.startsWith("/minor_moment")?"minor_moment":q.startsWith("/playable/")||q.match("^/playables/(?!saved).")?"mini_app":q.startsWith("/playables")?"playables":q.startsWith("/create/live/join")?"open_in_app":q.startsWith("/feed/explore")?"explore":"browse"};
_.wgf=function(){var q=wI==null?void 0:wI.response,w=q==null?void 0:q.endpoint;if(!w)return(q==null?void 0:q.page)==="watch"?"watch":KQJ();var u;q=(u=_.C(w==null?void 0:w.commandMetadata,_.wk))==null?void 0:u.webPageType;u=!1;if(q&&!BWM.includes(q))switch(q){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 y;return((y=_.C(w==null?void 0:w.commandMetadata,_.wk))==null?0:y.url)&&MIc(_.C(w.commandMetadata,_.wk).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var e;return(w=(e=_.C(w,_.Ii))==null?void 0:e.browseId)?xps[w]||"browse":"browse";default:u=!0}if(_.C(w,_.ur)||_.C(w,qRj))return"sponsorship";e=MIc(window.location.href);if(e.startsWith("/experiments"))return"experiments";if(e.startsWith("/create_channel"))return"create_channel";
if(_.C(w,_.jw)&&e.startsWith("/shorts"))return"shorts";if(_.C(w,_.jw)&&e.startsWith("/watch"))return"watch";u&&(w=new _.fv("Unsupported mWeb page type",{pathname:e,webPageType:q}),_.vm(w));return"browse"};
Xgl=function(q){var w=q.data;var u=q.inlineMetadata;var y=q.aspectRatio;var e=q.scrimStyle;var t=q.useDefaultStyle;var X=q.className;var G=vl(new uq7);q=_.T("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";q=t?q==="SHORTS_LOCKUP_STYLE_SLIM":w.style==="SHORTS_LOCKUP_STYLE_SLIM";u=u||q||!1;e=e!==void 0?e:1;var n=_.Bm(function(a){G.value&&(G.value.hostElement=a,J())});
_.k$(n,{visibilityCallback:function(a){a&&w.onFirstVisible&&_.bn(w.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});X=_.s3("shortsLockupViewModelHost",X);var N=_.$B({elementsCommand:w.onTap}),Q=_.Bm();_.aYc(Q,_.Zh(w.onTap));var I=_.QS(function(a){if(N==null?0:N.onclick)N.onclick(a);return!1}),U=_.Bm(),d=[];
d.push("shortsLockupViewModelHostThumbnailContainer");y===1?d.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):y===2&&d.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");q||d.push("shortsLockupViewModelHostThumbnailContainerRounded");_.T("web_shorts_2_by_3_lockups_study")||_.T("desktop_search_enable_two_by_three_shorts_aspect_ratio")||d.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var V,J=function(){if(G.value){var a;(a=V)==null||
yb(a);a=G.value;var b;a.hostElement&&((b=a.data)==null?0:b.inlinePlayerData)&&(V=cC({mediaRenderer:a,lockupElement:a.hostElement,thumbnailElement:U.value,videoPreviewOpts:yNH}))}};
ZR(function(){G.value&&(G.value.data=w,J())},[w]);
return _.W("ytm-shorts-lockup-view-model",{el:n,class:X},_.W("a",{el:Q,"on:click":I,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint ","aria-hidden":!u,tabindex:u?0:-1},_.W("div",{el:U,class:d.join(" ")},uO(w.thumbnail,function(){return _.W(_.GS,null,_.W(_.ln,{data:w.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),u?_.W(etJ,{data:w,
scrimStyle:e,useDefaultStyle:t}):null,kqf(w.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),u&&w.menuOnTap?_.W(tJu,{data:w,inlineMetadata:u}):null,u?null:_.W(PJf,{useDefaultStyle:t,data:w}))};
etJ=function(q){var w=q.data;var u=q.scrimStyle;var y=q.useDefaultStyle;var e=_.T("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";q=y&&_.T("web_hide_primary_text_for_pivot_panel");var t={};y=_.s3("shortsLockupViewModelHostInlineMetadata",(t.shortsLockupViewModelHostMetadataRounded=!(y?e==="SHORTS_LOCKUP_STYLE_SLIM":w.style==="SHORTS_LOCKUP_STYLE_SLIM"),t.shortsLockupViewModelHostInlineMetadataShortScrim=u===3&&!_.T("enable_shorts_lockup_new_scrim"),
t.shortsLockupViewModelHostInlineMetadataShortScrimNew=u===3&&_.T("enable_shorts_lockup_new_scrim"),t.shortsLockupViewModelHostInlineMetadataMediumScrim=u===2||u===4,t.shortsLockupViewModelHostShowOverPlayer=!0,t));var X,G;e={};return _.W("div",{class:y+" image-overlay-text"},_.W("h3",{class:_.HR("shortsLockupViewModelHostMetadataTitle",(e.shortsLockupViewModelHostMetadataTitleTextShadow=u===4,e)),"aria-label":w.accessibilityText},uO(((X=w.overlayMetadata)==null?void 0:X.primaryText)&&!q,function(){return _.W(_.Lr,
{text:w.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((G=w.overlayMetadata)==null?0:G.secondaryText)?_.W(F9H,{data:w,
scrimStyle:u}):null)};
PJf=function(q){var w=q.data;var u=_.T("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";q=(q.useDefaultStyle?u==="SHORTS_LOCKUP_STYLE_SLIM":w.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var y=_.$B({elementsCommand:w.onTap});u=_.Bm();_.aYc(u,_.Zh(w.onTap));var e=_.QS(function(I){if(y==null?0:y.onclick)y.onclick(I);return!1}),t,X,
G,n,N,Q={};
return _.W("div",{class:q+" image-overlay-text","on:click":e},_.W("h3",{class:_.HR("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(Q.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((t=w.overlayMetadata)==null?0:(X=t.primaryText)==null?0:X.content),Q)),"aria-label":w.accessibilityText},_.W("a",{el:u,"on:click":e,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(G=w.overlayMetadata)==null?void 0:(n=G.primaryText)==
null?void 0:n.content},uO(w.overlayMetadata,function(){return _.W(_.Lr,{text:w.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((N=w.overlayMetadata)==null?0:N.secondaryText)?_.W(F9H,{data:w,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,w.menuOnTap?_.W(tJu,{data:w,inlineMetadata:!1}):null)};
F9H=function(q){var w=q.data;var u=q.scrimStyle;q=q.className;var y,e={};return _.W("div",{class:_.HR((e.shortsLockupViewModelHostMetadataSubhead=u!==4,e.shortsLockupViewModelHostMetadataSubheadNew=_.T("enable_shorts_lockup_new_scrim"),e.shortsLockupViewModelHostMetadataSubheadTextShadow=u===4,e),q),"aria-hidden":"true"},_.W(_.Lr,{text:(y=w.overlayMetadata)==null?void 0:y.secondaryText,noStyleRuns:!0}))};
tJu=function(q){var w={};w=_.s3((w.shortsLockupViewModelHostInlineMetadataMenu=q.inlineMetadata,w.shortsLockupViewModelHostOutsideMetadataMenu=!q.inlineMetadata,w.shortsLockupViewModelHostShowOverPlayer=!0,w));return _.W("div",{class:w},_.W(Kr,{data:{style:q.inlineMetadata?"overlay":"mono",accessibilityLabel:q.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(u){u.preventDefault();u.stopPropagation();var y=_.$B({elementsCommand:q.data.menuOnTap,forceNewState:!0});
if(y==null?0:y.onclick)y.onclick(u)}},
iconName:"MORE_VERT"}))};
es=function(q,w,u,y){return q&&w?q!==u||w!==y?(_.BC(Error("Gh"),void 0,void 0,{"stored-slot":q,"stored-layout":w,"latest-slot":u,"latest-layout":y}),!1):!0:!1};
Gqf=function(q,w,u){return q({targetId:w},function(y){return u.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},y,{header:u.continuationItems?u.continuationItems[0]:void 0}):Object.assign({},y,{contents:u.continuationItems?u.continuationItems:[]})})};
ngl=function(q,w,u,y){if(w=w.trackingParams){var e,t=(e=u.getScreenLayer)==null?void 0:e.call(u);u=_.pN(t);e=_.ZB(t);if(u&&e){var X=_.Tj(w);_.T("combine_ve_grafts")?q.graftServerVe(w,e,t):_.EC(u,e,X);y==null||y(X)}}};
W94=function(q){var w;return((w=HW7.get(q))==null?void 0:w.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
Q$J=function(q,w){var u={type:w.slotType,controlFlowManagerLayer:s$J.get(w.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};w.slotEntryTrigger&&(u.entryTriggerType=w.slotEntryTrigger.triggerType);w.slotPhysicalPosition!==1&&(u.slotPhysicalPosition=w.slotPhysicalPosition);if(q){u.debugData={slotId:w.slotId};if(q=w.slotEntryTrigger)u.debugData.slotEntryTriggerData=Niu(q);q=w.slotFulfillmentTriggers;u.debugData.fulfillmentTriggerData=[];q=_.P(q);for(var y=q.next();!y.done;y=q.next())u.debugData.fulfillmentTriggerData.push(Niu(y.value));
w=w.slotExpirationTriggers;u.debugData.expirationTriggerData=[];w=_.P(w);for(q=w.next();!q.done;q=w.next())u.debugData.expirationTriggerData.push(Niu(q.value))}return u};
Niu=function(q,w){var u={type:q.triggerType};w!=null&&(u.category=w);q.triggeringSlotId!=null&&(u.triggerSourceData||(u.triggerSourceData={}),u.triggerSourceData.associatedSlotId=q.triggeringSlotId);q.triggeringLayoutId!=null&&(u.triggerSourceData||(u.triggerSourceData={}),u.triggerSourceData.associatedLayoutId=q.triggeringLayoutId);return u};
IxJ=function(q,w,u,y){w={opportunityType:w};q&&(y||u)&&(y=_.or(y||[],function(e){return Q$J(q,e)}),w.debugData=Object.assign({},u&&u.length>0?{associatedSlotId:u}:{},y.length>0?{slots:y}:{}));
return w};
iWu=function(q){return kD(q.opportunityAdapterMap).concat(kD(q.triggerAdapterMap)).concat(kD(q.fulfillmentAdapterFactoryMap)).concat(kD(q.slotAdapterFactoryMap)).concat(kD(q.layoutRenderingAdapterFactoryMap))};
kD=function(q){var w=[];q=_.P(q.values());for(var u=q.next();!u.done;u=q.next())u=u.value,u.isAdsControlFlowEventListener&&w.push(u);return w};
Py=function(q){var w=q.slotId,u=q.slotType,y=q.slotPhysicalPosition;return w===void 0?new tK("Cannot construct a slot due to the missing id.",{adSlotMetadata:q}):u===void 0?new tK("Cannot construct a slot due to the missing type.",{adSlotMetadata:q}):y===void 0?new tK("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:q}):{slotId:w,slotType:u,slotPhysicalPosition:y,managerLayer:"external",adSlotLoggingData:q.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new rNc}};
U7u=function(q){var w=q.layoutId,u=q.layoutType;return w===void 0?new XD("Cannot construct a layout due to the missing id.",{adLayoutMetadata:q}):u===void 0?new XD("Cannot construct a layout due to the missing type.",{adLayoutMetadata:q}):{layoutId:w,layoutType:u,managerLayer:"external",adLayoutLoggingData:q.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new rNc,interactionLoggingAdsClientData:{}}};
TiJ=function(q){if((q=q.value)&&q.querySelector("img")){var w=q.querySelector("img");w.addEventListener("error",function(){Xx7(w.src).then(function(u){(u=_.T2(u).toString())?w.src=u:w.removeAttribute("src")}).catch(function(){w.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
G3=function(q,w){if(w&&(CJz(w.viewableCommand)||CJz(w.endOfSessionCommand))){q=q.value;var u=d7c(w==null?void 0:w.viewableCommand);w=d7c(w==null?void 0:w.endOfSessionCommand);if(!FD){var y=_.Fc("active_view_tos_timeout_ms");FD=y>0?new OW7(ogJ(),y):new OW7(ogJ())}VJM(FD,q);fxl(FD,q,u,w)}};
nV=function(q){FD&&VJM(FD,q.value)};
ogJ=function(){var q=_.Et("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(q==null?void 0:q.length)===2?q[1]:null};
CJz=function(q){q=_.Zh(q);return!(q==null||!q.loggingUrls)&&q.loggingUrls.length>0};
d7c=function(q){if(!q)return[];var w=[],u,y;((y=(u=_.Zh(q))==null?void 0:u.loggingUrls)!=null?y:[]).forEach(function(e){e.baseUrl&&w.push(e.baseUrl)});
return w};
m7o=function(q){return q.shorts.isDesktopSmallWidth};
_.ANo=function(q){return q.shorts.isWatchWhileMode};
_.Hy=function(q){return q.shorts.isFullscreen};
_.Wy=function(q){return q.shorts.isShortsPipActive};
ztc=function(q){var w,u;if(q=(w=_.C(q.reelsAdCardButtoned,JNc))==null?void 0:(u=w.animatedRenderingConfig)==null?void 0:u.easeOutSeconds)return q+"s"};
D7M=function(q,w,u){return _.F(function(y){return y.return(new Promise(function(e){var t=new Image;t.onload=function(){e(new axM(q,w,u,t.naturalWidth,t.naturalHeight))};
t.src=u.toString()}))})};
ZWu=function(q,w){return Math.round(q/1E-5)===Math.round(w/1E-5)};
pgo=function(q,w){return Math.round(q/1E-5)===Math.round(w/1E-5)};
$7M=function(q,w){return q.year===w.year&&q.month===w.month&&q.day===w.day};
vgs=function(q,w){return q.year!==w.year?q.year<w.year:q.month!==w.month?q.month<w.month:q.day<w.day};
YRs=function(q){return q.day===bW4(q.year,q.month)?q.month===11?{year:q.year+1,month:0,day:1}:{year:q.year,month:q.month+1,day:1}:{year:q.year,month:q.month,day:q.day+1}};
gg6=function(){var q=new Date,w={year:q.getFullYear(),month:q.getMonth(),day:q.getDate()};return{start:w,end:{year:q.getFullYear()+2,month:q.getMonth(),day:q.getDate()},selectedDate:YRs(w)}};
Egy=function(q){return(new SN(2)).format(new Date(q.year,q.month,q.day))};
Rtl=function(q){return{year:q.getFullYear(),month:q.getMonth(),day:q.getDate()}};
cNy=function(q,w){q=(q+(Number(w.utcOffsetSec)+(new Date(q*1E3)).getTimezoneOffset()*60))*1E3;w=Rtl(new Date(q));return{date:w,secondsSinceMidnight:Math.floor((q-(new Date(w.year,w.month,w.day)).getTime())/1E3)}};
SR7=function(q,w){w=w.months.findIndex(function(u){return u.year===q.year&&u.month===q.month});
return w>=0?w:void 0};
htz=function(q){if(!q)return!1;try{if(q.host&&q.host.tagName==="YT-FORMATTED-STRING"&&q.host.id==="contenteditable-textarea"||q.nodeType===Node.ELEMENT_NODE&&q.tagName==="YTD-COMMENTBOX")return!0}catch(w){return!1}return htz(q.parentNode)};
sK=function(q){return q?!(q.tagName!=="A"||!q.href||!q.classList.contains("yt-simple-endpoint")):!1};
j$c=function(q){return q?q.tagName==="IMG"&&q.classList.contains("emoji"):!1};
lxM=function(q,w,u){if(!q)return null;var y=sK(q);if(y&&u)return w=q.pathname.substring(q.pathname.indexOf("/channel/")+9),document.createTextNode("@"+w);if(y&&!u)return document.createTextNode("");if(j$c(q))return u=q.alt,q=q.dataset.emojiId,!q&&w&&(w=_.ND(w,u))&&w.isCustomEmoji&&(q=w.emojiId),q?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+q+">"):document.createTextNode(u);y=q.cloneNode(!1);for(var e=0;e<q.childNodes.length;++e){var t=lxM(q.childNodes[e],w,u);t&&y.appendChild(t)}return y};
Qb=function(q){return q?sK(q)?q:Qb(q.lastChild):null};
L9c=function(q){return q?sK(q)?q:L9c(q.firstChild):null};
MJM=function(q){if(!q)return null;for(var w=q.previousSibling;w;)if(w.nodeType===Node.ELEMENT_NODE&&w.nodeName==="BR")w=w.previousSibling;else if(w.nodeType===Node.TEXT_NODE&&/\s+/.test(w.textContent))w=w.previousSibling;else break;(w=Qb(w))?q=w:q=(q=q.parentNode)?Qb(q.previousElementSibling):null;return q};
K9j=function(q){if(!q)return null;for(var w=q.nextSibling;w;)if(w.nodeType===Node.ELEMENT_NODE&&w.nodeName==="BR")w=w.nextSibling;else if(w.nodeType===Node.TEXT_NODE&&/\s+/.test(w.textContent))w=w.nextSibling;else break;return(w=L9c(w))?w:K9j(q.parentNode)};
Bij=function(q){var w=_.IS(),u=w.JSC$9150_getStartNode();if(!htz(u.parentNode))return null;w=w.JSC$9150_getStartOffset();if(u.nodeType===Node.TEXT_NODE){var y=_.ar(u,sK);if(y){if(q&&w===0||!q&&w===u.length)return y}else{if(q&&w===u.length)return!u||u.nodeName==="BR"||u.nextElementSibling&&_.ir(u.nextElementSibling,"display")==="block"?null:L9c(u.nextElementSibling);if(!q&&w===0)return u?Qb(u.previousElementSibling):null}}if(u.nodeType===Node.ELEMENT_NODE)if(q){if(0<=w&&w<u.childNodes.length)return L9c(u.childNodes[w])}else if(0<
w&&w<=u.childNodes.length)return Qb(u.childNodes[w-1]);return null};
x77=function(q,w,u){if(!q)return null;if(q.nodeType===Node.TEXT_NODE)if(u){var y=MJM(q);if(y&&!/^\s+\S/.test(q.wholeText.substr(0,w)))return y}else if((y=K9j(q))&&!/\S\s+/.test(q.wholeText.substr(w,q.wholeText.length)))return y;return q.nodeType===Node.ELEMENT_NODE?u?MJM(q.childNodes[w]):K9j(q.childNodes[w]):x77(q.parentNode,w,u)};
qxl=function(q){if(q.hasChildNodes())switch(q.tagName){case "DIV":case "A":case "SPAN":var w="";for(q=q.firstChild;q;q=q.nextSibling)w+=qxl(q);return w;default:return""}else switch(q.nodeType){case 3:return q.textContent;default:return""}};
rI=function(q,w){return q.year===w.year&&q.month===w.month&&q.day===w.day};
UK=function(q,w){return q.year!==w.year?q.year<w.year:q.month!==w.month?q.month<w.month:q.day<w.day};
wNJ=function(q){return{year:q.getFullYear(),month:q.getMonth(),day:q.getDate()}};
uBz=function(q){var w=Yul;w=w===void 0?Yul:w;w(new Date(q.year,q.month,q.day))};
T3=function(q){return wNJ(new Date(Number(q.seconds)*1E3))};
yTJ=function(q){return q.year!==void 0&&q.month!==void 0&&q.day!==void 0};
eR4=function(q){return q.start!==void 0&&q.end!==void 0};
kpM=function(q){return eR4(q)?q.start:q};
tO4=function(q){return eR4(q)?q.end:void 0};
XNz=function(q,w){for(var u=[],y=new Date(q.start.year,q.start.month);y.getFullYear()<q.end.year||y.getFullYear()===q.end.year&&y.getMonth()<=q.end.month;){var e=u,t=e.push,X=y.getFullYear(),G=y.getMonth(),n=q,N=w,Q=void 0,I=[],U=Object.freeze({extraCssClass:"invisible"}),d=new Date(X,G),V=wNJ(d);d=d.getDay();for(var J=wNJ(new Date);V.month===G;){d!==Pgc&&Q||(Q=Array.from({length:7}).fill(U),I.push(Q));var a={date:{year:X,month:G,day:V.day},extraCssClass:"",debugClass:""};a.extraCssClass=N(a.date,
V,J,n).trim();Q[(d-Pgc+7)%7]=a;V=V.day===bW4(V.year,V.month)?V.month===11?{year:V.year+1,month:0,day:1}:{year:V.year,month:V.month+1,day:1}:{year:V.year,month:V.month,day:V.day+1};d=(d+1)%7}t.call(e,{weeks:I,monthLabel:CV.SHORTMONTHS[G]+" "+X,year:X,month:G,monthLabelExtraCssClass:I[0][2]===U?"shift-down-label":""});y.setMonth(y.getMonth()+1)}return u};
Fzj=function(q,w){w=w.months.findIndex(function(u){return u.year===q.year&&u.month===q.month});
return w>=0?w:void 0};
nl6=function(q,w){a:{var u=u===void 0?[2,3]:u;u=_.P(u);for(var y=u.next();!y.done;y=u.next()){var e=new Date;if((new Gpy(y.value)).parse(w,e,{validate:!0})){e.setHours(0,0,0,0);w=e;break a}}w=null}if(!w)return{isValid:!1,value:void 0};w=wNJ(w);u=q.end;return UK(w,q.start)||UK(u,w)?{isValid:!1,value:void 0}:{isValid:!0,value:w}};
QFs=function(q){var w=H5c;w=w===void 0?Wzy:w;var u=q.columnsToShow||[],y=sFf(q.columnDimensions,q.columnsToShow,q.leftFloatingColumns,w);return u.map(function(e,t){var X=q.columns[e];if(X===void 0)throw Error("Mh");var G=y?y[t]:"";var n=q.getCustomTooltip?q.getCustomTooltip(e,X.headerTooltipParagraphs):X.headerTooltipParagraphs;var N=N84(q,e);return{type:e,index:t,style:G,classes:N,headerName:X.headerName||"",headerIcon:X.headerIcon,headerTooltipParagraphs:n||[],headerTooltipHelpContext:X.headerTooltipHelpContext,
sortOrders:X.sortOrders||[],selectionState:X.isSelectionCheckbox?q.selectionState:void 0}})};
N84=function(q,w){var u=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],y=q.columns[w];if(y===void 0)return"";var e=u.includes("DEFAULTS")&&y.cssClass?[y.cssClass]:[];if(u.includes("SORTING")){y.sortOrders&&y.sortOrders.length&&e.push("sortable");if(q.sorting&&q.sorting.columnType===w)a:switch(q.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var t="column-sorted";break a;default:t=""}else t="";t&&e.push(t)}u.includes("FLOATING")&&(w=q.columnsToShow.indexOf(w),q.leftFloatingColumns&&w<q.leftFloatingColumns&&
e.push("floating-column"),q.leftFloatingColumns&&w===q.leftFloatingColumns-1&&e.push("last-floating-column"));u.includes("RIGHT_ALIGN")&&y.rightAlignHeader&&e.push("right-align");return e.filter(function(X){return X}).join(" ")};
sFf=function(q,w,u,y){u=u===void 0?0:u;y=y===void 0?Wzy:y;if(q){var e=[],t=0;Ijz(q,w,y).forEach(function(X,G){var n="min-width:"+X.minWidth+"px;padding-left:"+X.paddingLeft+"px;padding-right:"+X.paddingRight+"px;flex:"+X.flexGrow+" 0 "+X.minWidth+"px;";X.maxWidth!==Infinity&&(n=[n,"max-width:"+X.maxWidth+"px;"].join(""));t>0&&G<u&&(n=[n,"left:"+t+"px;"].join(""));e.push(n);t+=X.minWidth+X.paddingLeft+X.paddingRight});
return e}};
Ijz=function(q,w,u){u=u===void 0?Wzy:u;return w.map(function(y,e){y=q&&q[y]||{};var t=e===0?u.paddingLeftFirstColumn:u.padding;y.paddingLeft!==void 0&&(t=y.paddingLeft);e=e===w.length-1?u.paddingRightLastColumn:u.padding;y.paddingRight!==void 0&&(e=y.paddingRight);return{paddingLeft:t,paddingRight:e,minWidth:y.minWidth!==void 0?y.minWidth:u.minWidth,maxWidth:y.maxWidth!==void 0?y.maxWidth:u.maxWidth,flexGrow:y.flexGrow!==void 0?y.flexGrow:u.flexGrow}})};
i5l=function(q){var w=q.reduce(function(y,e){var t=e.columnId,X={};e.headerText&&(X.headerName=_.lA(e.headerText));e.rightAlignHeader&&(X.rightAlignHeader=e.rightAlignHeader);var G;if((G=e.headerIcon)==null?0:G.iconType)X.headerIcon=_.Fy(e.headerIcon.iconType);y[t]=X;return y},{}),u=q.filter(function(y){return!y.hideColumn}).map(function(y){return y.columnId});
q=q.filter(function(y){return!!y.dimensions}).reduce(function(y,e){y[e.columnId]=e.dimensions;
return y},{});
return{columns:w,columnsToShow:u,columnDimensions:q}};
_.rTM=function(q){return q?q.simpleText?q.simpleText:q.runs?q.runs.map(function(w){return w.text}).join(""):"":""};
O57=function(q){var w=q.data;var u=q.onTap;var y=q.isSelected;var e=q.onFocusIn;if(!w)return{};q=UWl(w);y===void 0&&(y=w==null?void 0:w.isSelected);var t;return{text:T8l(w,q),startIcon:(t=w.icon)==null?void 0:t.iconType,state:y?0:2,type:0,onTap:Cg7(w,u),accessibilityLabel:dWf(w,q),onFocusIn:function(){return e==null?void 0:e()}}};
T8l=function(q,w){if(!w)return q.text?_.rTM(q.text):void 0};
Cg7=function(q,w){return function(u){w==null||w(u,q)}};
UWl=function(q){q=q.style&&q.style.styleType;return!ols&&q==="STYLE_EXPLORE_LAUNCHER_CHIP"};
dWf=function(q,w){if(w){var u,y,e;return(e=(u=q.accessibilityData)==null?void 0:(y=u.accessibilityData)==null?void 0:y.label)!=null?e:T8l(q,!1)}};
dI=function(q){return{signalAction:{signal:q}}};
mWM=function(){return _.Et("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?VOj:_.fjl};
AT4=function(q,w){q=q===void 0?"SOFT_RELOAD_PAGE":q;w=w===void 0?49504:w;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.yU(_.ID("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:w}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:q}}]}}}};
JTc=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.yU(_.ID("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:mWM()}};
zRJ=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.yU(_.ID("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:mWM()}};
ajf=function(q,w){var u=_.yU(_.ID("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),y=_.yU(_.ID("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),e={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.yU(_.ID("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};e.serviceEndpoint=q?q:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[dI("SOFT_RELOAD_PAGE")]}};return{title:u,bodyText:y,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:e},
style:{value:w!=null?w:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
Z5o=function(q){q=q===void 0?{}:q;return{title:_.yU(q.localizedZeroStateTitleText===void 0?"":q.localizedZeroStateTitleText),bodyText:_.yU(q.localizedZeroStateMessage===void 0?"":q.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.yU(q.localizedZeroStateButtonText===void 0?"":q.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[DWy]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.vlj=function(q,w,u,y,e,t,X,G){y=y===void 0?!1:y;e=e===void 0?!1:e;t=t===void 0?0:t;X=X===void 0?-Infinity:X;G=G===void 0?!1:G;var n=[],N=_.yU(_.ID("SMART_DOWNLOADS",void 0,"Smart downloads"));X=_.yU(pN7(t,X,q.length));t=void 0;y?t=q.length>0?$W6(q,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.T("kevlar_manual_downloads_above"),N,X):G?{alertBannerViewModel:{heading:{content:u.localizedOptInBannerTitleText===void 0?"":u.localizedOptInBannerTitleText},body:{content:u.localizedPromptMessage===
void 0?"":u.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.ID("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.ID("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:_.uhl}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:{backgroundPromoRenderer:{bodyText:_.yU(_.ID("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"}}}:e&&(t={alertBannerViewModel:{heading:{content:u.localizedOptInBannerTitleText===void 0?"":u.localizedOptInBannerTitleText},body:{content:u.localizedOptInMessage===
void 0?"":u.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.ID("TURN_ON",void 0,"Turn on"),accessibilityText:_.ID("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}}}}}});u=_.yU(_.ID("YOUR_DOWNLOADS",void 0,"Your downloads"));e=void 0;w.length>0?(e=void 0,_.T("kevlar_display_downloads_numbers")&&(e=_.yU(_.iy("VIDEO_COUNT",w.length))),e=$W6(w,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,u,e)):y||q.length||(e={backgroundPromoRenderer:{bodyText:_.yU(_.ID("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}}}});t&&!_.T("kevlar_manual_downloads_above")&&n.push({richSectionRenderer:{content:t,loggingDirectives:{clientVeSpec:{uiType:139572}}}});e&&n.push({richSectionRenderer:{content:e,loggingDirectives:{clientVeSpec:{uiType:51721}}}});t&&_.T("kevlar_manual_downloads_above")&&n.push({richSectionRenderer:{content:t,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(w.length>0||y&&q.length>0)&&n.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.yU(_.ID("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:n}};
_.Yxj=function(q){return b57(q,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.gll=function(q){return b57(q,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
b57=function(q,w){var u=[];q=$W6(q,w,!0);u.push({richSectionRenderer:{content:q}});return{contents:u}};
$W6=function(q,w,u,y,e){u=u===void 0?!1:u;q={isExpanded:u,contents:OK(q),entitySelectorType:w};y&&(q.title=y);e&&(q.subtitle=e);u||(_.T("kevlar_smart_downloads_show_more_button")?(q.showMoreButton={buttonRenderer:{accessibility:{label:_.ID("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.yU(_.ID("SHOW_MORE",void 0,"Show more"))}},q.showLessButton={buttonRenderer:{accessibility:{label:_.ID("SHOW_LESS",
void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.yU(_.ID("SHOW_LESS",void 0,"Show less"))}}):(q.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.ID("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}}}},q.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",
accessibilityText:_.ID("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}}}},q.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.ID("VIEW_ALL",void 0,"View all"),accessibilityText:_.ID("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:wG("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:q}};
OK=function(q){var w=[];q=_.P(q);for(var u=q.next();!u.done;u=q.next())if(u=u.value,v9J(u)){var y=w,e=y.push;var t=void 0;if(u==null?0:(t=u.videoEntity)==null?0:t.videoId){t=bA(_.Mt().getState(),u.videoEntity.videoId);var X=_.Mt().getState();var G=_.na(u.videoEntity.videoId,"mainVideoEntity");X=!!_.VU(X.entities)[G];X={videoId:u.videoEntity.videoId,title:eN(u.videoEntity.title),shortBylineText:eN(u.channelEntity.title),thumbnail:u.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:X&&_.T("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:v2o(u.videoEntity.videoId,t,u.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.ID("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};u.videoEntity.lengthSeconds&&(X.thumbnailOverlays=k54(u.videoEntity.lengthSeconds,t));X.isWatched=t>0;_.T("kevlar_modern_downloads_page")&&(X.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:u.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.ID("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},X.badges=void 0);u=X}else u={};e.call(y,{richItemRenderer:{content:{videoRenderer:u},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if($so(u)){y=w;e=y.push;var n=G=t=void 0,N=void 0,Q=void 0,I=void 0,U=void 0,d=void 0,V=void 0,J=void 0,a=void 0,b=void 0;X=u.mainPlaylistEntity.playlistId;var g=u==null?void 0:(b=u.mainPlaylistEntity)==null?void 0:(a=b.thumbnailStyleData)==null?void 0:(J=a[0])==null?void 0:(V=J.value)==null?void 0:(d=V.collageThumbnail)==
null?void 0:d.coverThumbnail;if(X&&g){d=b9J(X);!_.T("enable_offline_playlist_page")&&(u==null?0:(U=u.mainPlaylistEntity)==null?0:U.videos)&&(U=u==null?void 0:(I=u.mainPlaylistEntity)==null?void 0:(Q=I.videos)==null?void 0:Q[0],Q=_.XX(U).entityId,Q=JSON.parse(Q).videoId,Q!==void 0&&(I=bA(_.Mt().getState(),Q),d=_.uA(Q,X,void 0,void 0,I)));Q=[];if(u==null?0:(N=u.mainPlaylistEntity)==null?0:(n=N.videos)==null?0:n.length)Q=[bGo(),Object.assign({},(G=vPM(u==null?void 0:u.mainPlaylistEntity.videos.length))!=
null?G:{})];u={playlistId:X,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:g}},navigationEndpoint:d,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:Q,title:eN(u.mainPlaylistEntity.title),shortBylineText:eN(u==null?void 0:(t=u.channelEntity)==null?void 0:t.title),badges:[{metadataBadgeRenderer:{label:_.ID("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.T("kevlar_modern_downloads_page")&&(u.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:Elz,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:X,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.ID("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},u.badges=void 0)}else u=void 0;e.call(y,{richItemRenderer:{content:{playlistRenderer:u},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return w};
pN7=function(q,w,u){q=q?RRj(q):"";w!==void 0&&isFinite(w)?w===0?w=_.ID("UPDATING",void 0,"Updating..."):(w=e5o(new Date(w),new Date),w=_.ID("UPDATED_TIME",{relative_time:w},"Updated "+w)):w="";var y="";q&&w&&(y=" \u2022 ");if(u&&_.T("kevlar_display_downloads_numbers")){u=_.iy("VIDEO_COUNT",u);if(q||w)y=" \u2022 ";return u+y+q+y+w}return q+y+w};
cTJ=function(q){return ms4(q.entities).length};
_.SxM=function(q,w){var u=qH6(q.responsiveSize),y;q=!((y=q.responsiveMap)==null||!y.some(function(e){return e.containerSize==="CONTAINER_SIZE_NARROW"&&e.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:w,sizing:u,enableFullBleedForSingleCol:!1,isCompactList:u==="COMPACT"&&q}};
hRM=function(q,w){return _.HQ(q.entities,"votingEntity",w)};
jFf=function(q){if(q){var w;return((w=_.tG().resolve(_.kF(_.Rg)))==null?0:w())?q.darkTheme:q.lightTheme}};
ljl=function(q,w,u){return _.W(_.GS,null,UZo(u,[[0,function(){return _.W("h2",{class:w},q)}],
[1,function(){return _.W("h3",{class:w},q)}],
[2,function(){return _.W("h4",{class:w},q)}]],function(){return _.W("h2",{class:w},q)}))};
LzM=function(q){var w=["shelf-header-layout-wiz"];q.disableHorizontalPadding&&w.push("shelf-header-layout-wiz--disable-horizontal-padding");q.disableVerticalPadding&&w.push("shelf-header-layout-wiz--disable-vertical-padding");q.useResponsiveLayout&&(w.push("shelf-header-layout-wiz--responsive"),q.forceSmallLayout&&w.push("shelf-header-layout-wiz--narrow"));q.isOverlay&&w.push("shelf-header-layout-wiz--is-overlay");q.onClick&&w.push("shelf-header-layout-wiz--tappable");var u=["shelf-header-layout-wiz__title"];
q.forceSmallLayout&&u.push("shelf-header-layout-wiz__title--small-title");var y=["shelf-header-layout-wiz__leading-image"];q.circularImage&&y.push("shelf-header-layout-wiz__leading-image--circular-image");var e=_.QS(function(N){var Q;(Q=q.onClick)==null||Q.call(q,N)}),t,X,G,n;
return _.W("yt-shelf-header-layout",{class:w.join(" "),"on:click":e,tabindex:q.onClick?0:void 0},q.leadingIcon?_.W("div",{class:"shelf-header-layout-wiz__leading-icon"},_.W(_.U3,{icon:q.leadingIcon})):q.hasLeadingImage?_.W("div",{class:y.join(" ")},(t=q.leadingImage)==null?void 0:t.call(q)):_.W(_.GS,null),_.W("div",{class:"shelf-header-layout-wiz__label-container"},q.hasSuperlabel?_.W("div",{class:"shelf-header-layout-wiz__superlabel"},(X=q.superlabel)==null?void 0:X.call(q)):_.W(_.GS,null),_.W("div",
{class:"shelf-header-layout-wiz__title-row"},ljl(q.title(),u.join(" "),q.tagLevel),uO(q.hasDetail,function(){var N;return _.W("div",{class:"shelf-header-layout-wiz__detail"},(N=q.detail)==null?void 0:N.call(q))})),q.hasSublabel?_.W("div",{class:"shelf-header-layout-wiz__sublabel"},(G=q.sublabel)==null?void 0:G.call(q)):_.W(_.GS,null)),q.hasTrailingActions?_.W("div",{class:"shelf-header-layout-wiz__trailing-actions"},(n=q.trailingActions)==null?void 0:n.call(q)):_.W(_.GS,null))};
MOM=function(q){var w=_.C(q==null?void 0:q.avatar,_.RH),u,y=(u=q==null?void 0:q.image)!=null?u:_.lq(q==null?void 0:q.themedImage);return _.W(_.GS,null,uO(y,function(){return _.W(_.ln,{data:y,alt:"",preserveWidth:!0,preserveHeight:!0})}),uO(w,function(){return _.W(_.Vb,{data:w})}))};
xWM=function(q){var w=_.C(q.bottomBadge,Kzo),u=w&&q.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.W(_.GS,null,uO(w,function(){return w&&_.W(B8M,{data:w,class:u})}),uO(q.sublabel,function(){return _.W(_.Lr,{text:q.sublabel})}))};
qBz=function(q){var w=_.C(q.topBadge,Kzo),u=w&&q.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.W(_.GS,null,uO(w,function(){return w&&_.W(B8M,{data:w,class:u})}),uO(q.superlabel,function(){return _.W(_.Lr,{text:q.superlabel})}))};
ySl=function(q){var w=q.data;var u=q.disableHorizontalPadding;var y=q.disableVerticalPadding;var e=q.forceSmallLayout;var t=q.useResponsiveLayout;q=q.isOverlay;var X=w.sublabel||w.bottomBadge,G=w.superlabel||w.topBadge,n=_.gE(w.rendererContext);u={hasDetail:!1,title:function(){return _.W(_.Lr,{text:w.headline})},
hasTitle:!0,sublabel:X&&function(){return xWM(w)},
hasSublabel:!!X,superlabel:G&&function(){return qBz(w)},
hasSuperlabel:!!G,leadingImage:w.leadingAccessory&&function(){return MOM(w.leadingAccessory)},
hasLeadingImage:!!w.leadingAccessory,trailingActions:w.trailingActions&&function(){return _.W(_.GS,null,wp6(w.trailingActions))},
hasTrailingActions:!!w.trailingActions,disableHorizontalPadding:u,disableVerticalPadding:y,forceSmallLayout:e,useResponsiveLayout:t,isOverlay:q,onClick:n?function(N){var Q=_.YH(w.rendererContext);Q&&_.px(Q,{form:{element:N.target,event:N}})}:void 0};
y=(y=jFf(w==null?void 0:w.backgroundColor))?"background-color: "+_.Je(y)+";":void 0;return _.W("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:y},_.W(u_7,Object.assign({},u)))};
edu=function(q,w){if(q.simpleText)return Object.assign({},q,{simpleText:gL(q.simpleText,w)});if(!q.runs)return q;for(var u=Object.assign({},q,{runs:[]}),y=0,e=_.P(q.runs),t=e.next();!t.done;t=e.next())if(t=t.value,t.text)if(y+t.text.length<=w)u.runs.push(t),y+=t.text.length;else return u.runs.push(Object.assign({},t,{text:gL(t.text,w-y)})),u;return q};
k8M=function(q,w){return _.HQ(q.entities,"chipBarStateEntity",w)};
txM=function(q,w){return _.HQ(q.entities,"chipEntity",w)};
Xpl=function(q,w,u,y){return function(){var e=PNH.has(q.displayType)&&q.selected,t=e&&q.deselectCommand?q.deselectCommand:q.tapCommand;!t||e&&y||_.bn(t,{form:{element:w==null?void 0:w.value}});u==null||u()}};
Fd4=function(q){switch(q){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""}};
G8l=function(q,w){return{triggeringElement:q,onDwellTriggeredFn:function(){var u={triggeringElement:q,loadVideoPreviewEventData:w},y=document.querySelector(".video-preview");y&&y.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:u}))},
onDwellEndFn:function(){var u=document.querySelector(".video-preview");u&&u.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
n47=function(q,w){var u=_.tG().resolve(_.kF(gi7)),y=function(){var e=w();return u&&e?G8l(q.value,e):null};
_.DG(function(){var e=y();u&&e&&Promise.resolve().then(function(){u.registerElement(e)});
_.ZG(function(){u&&e&&Promise.resolve().then(function(){u.unregisterElement(e)})})})};
Wdz=function(q){var w=q.dataset.resizeObserverId;if(w)return w;w=""+HEM++;return q.dataset.resizeObserverId=w};
sbj=function(q,w){var u=Wdz(q);fV.has(u)||fV.set(u,new Set);fV.get(u).add(w);m0.has(u)&&w(Object.assign({},{target:q},m0.get(u)))};
Nll=function(q){q=_.P(q);for(var w=q.next();!w.done;w=q.next()){w=w.value;var u=Wdz(w.target),y=Object.assign({},{target:w.target},m0.get(u));if(y!=null&&y.contentRect?y.contentRect.width!==w.contentRect.width||y.contentRect.height!==w.contentRect.height:1)for(m0.set(u,{borderBoxSize:w.borderBoxSize,contentBoxSize:w.contentBoxSize,contentRect:w.contentRect,devicePixelContentBoxSize:w.devicePixelContentBoxSize}),u=_.P(fV.get(u)||[]),y=u.next();!y.done;y=u.next())y=y.value,y(w)}};
IdJ=function(){return AK?AK:AK=new Qbs(Nll)};
iEo=function(q,w){var u=Wdz(q);fV.has(u)&&(fV.get(u).delete(w),fV.get(u).size===0&&(fV.delete(u),m0.delete(u),AK.unobserve(q),delete q.dataset.resizeObserverId));fV.size===0&&AK&&(AK.disconnect(),AK=void 0)};
Umc=function(q,w){var u=_.tG().resolve(el);return rSl.map(function(y){return u.observe(q,w,y)})};
Tlz=function(q){var w=_.tG().resolve(el);q.forEach(function(u){w.unobserveByKey(u)})};
_.OEj=function(q,w){var u=Object.assign({},CNc,w);w=_.P(muo());var y=w.next().value,e=w.next().value,t=function(X){var G=X.contentRect.height;if((X=X.contentRect.width)||G||u.canHaveZeroSize)y.width()===X&&y.height()===G||e(y,{height:G,width:X})};
_.p4(function(){var X=q instanceof HTMLElement?q:q.value,G=dml(t,u.throttleMs),n=[];u.useVisibilityObserver&&(n=Umc(X,function(N,Q){requestAnimationFrame(function(){Q==="visible"?(sbj(X,G),IdJ().observe(X)):iEo(X,G)})}));
n.length||(sbj(X,G),IdJ().observe(X));_.ZG(function(){n.length&&(Tlz(n),n.length=0);iEo(X,G)})});
return y};
Vxy=function(q){var w=q.data;var u=q.callback;var y=q.enableSingleChipSelection;var e=q.disableChipsScrollAnimation;var t=_.Bm(),X=vl(!1),G=vl(0);q={};q=_.P(NI(w.autoselectedChipIndex!=null?(q[w.autoselectedChipIndex]=!0,q):{}));var n=q.next().value,N=q.next().value,Q=function(){var C7=t.value;return C7==null||C7.scrollLeft-1<=0},I=function(){var C7=t.value;
return C7==null?!1:C7.scrollLeft+1>=(C7==null?NaN:C7.scrollWidth)-(C7==null?NaN:C7.clientWidth)};
q=_.P(NI(Q()));var U=q.next().value,d=q.next().value;q=_.P(NI(I()));var V=q.next().value,J=q.next().value;q=w.isHorizontallyScrollable;var a=function(C7){t.value!=null&&(_.Et("HTML_DIR")==="rtl"&&(C7=-C7),t.value.scrollBy({left:C7,behavior:e?"instant":"smooth"}))},b=function(){a(-320)},g=function(){a(320)},l=_.QS(function(C7){X.value=!0;
G.value=C7.clientX}),S=_.QS(function(C7){if(X.value){C7=C7.clientX;
var mu=C7-G.value;G.value=C7;t.value.scrollBy({left:-mu})}}),eH=_.QS(function(){var C7=Q(),mu=I();
C7!==U&&d(C7);mu!==V&&J(mu)});
y1("pointerup",function(){X.value&&(X.value=!1)});
var x={},P4={};return _.W("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},uO(w.title,function(){return _.W("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.W("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},w.title),o4u(w.overflowButton))}),_.W("div",{class:"ytChipsShelfViewModelChipsShelfContent"},uO(w.previousButton!=null,function(){var C7={};
return _.W("div",{class:_.s3("ytChipsShelfViewModelLeftArrowContainer",(C7.ytChipsShelfViewModelLeftArrowContainerIsHidden=U,C7))},o4u(w.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:b}}))}),_.W("div",{el:t,
"on:pointerdown":l,"on:pointermove":S,"on:scroll":eH,class:_.s3("ytChipsShelfViewModelChipsScrollContainer",(x.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!q,x))},_.W("div",{class:_.s3("ytChipsShelfViewModelChipsContainer",(P4.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!q,P4.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!q&&!1,P4))},(w.contents||[]).map(function(C7,mu){return _.W("div",{class:"ytChipsShelfViewModelChipWrapper"},o4u(C7,
{chipViewModel:{callback:function(Os,YJ){if(y){var ao={};N((ao[mu]=YJ,ao))}else ao={},N(Object.assign({},n,(ao[mu]=YJ,ao)));u==null||u(Os,YJ,mu)},
disableDeselection:y,selected:!!n[mu]}}))}))),uO(w.nextButton!=null,function(){var C7={};
return _.W("div",{class:_.s3("ytChipsShelfViewModelRightArrowContainer",(C7.ytChipsShelfViewModelRightArrowContainerIsHidden=V,C7))},o4u(w.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:g}}))})))};
mmH=function(q,w,u,y,e){q=w?q.switchOffCommand:q.switchOnCommand;if(y&&e)fdy(q,u,e);else{var t,X;(t=_.$B({elementsCommand:q}))==null||(X=t.onclick)==null||X.call(t,u)}};
fdy=function(q,w,u){q=_.$B({elementsCommand:q,additionalCommandArgs:{commandController:{onSuccess:function(){u(!1)},
onServerError:function(){u(!1)}}}});
if(q==null?0:q.onclick)q.onclick(w),u(!0)};
JSj=function(q){if(q)return _.C(q,ASc)};
ppu=function(q,w,u){if(w)return[zdH];switch(q){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[JK];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return u?[JK]:[ad6,JK];case "TRANSFER_STATE_PAUSED_BY_USER":return[Dmo,JK];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[ZE6,JK];default:return[zdH]}};
$m6=function(q,w,u,y){return ppu(q,w,y).map(function(e){var t=e.text,X=e.iconType,G=e.videoAction;e=e.playlistAction;t=t?{content:t}:void 0;X=X&&{sources:[{clientResource:{imageName:X}}]};var n=(0,_.db.unsafeClone)(u);if(n){var N=_.C(n,_.WC),Q=_.C(n,_.sF);N&&G?N.action=G:Q&&e&&(Q.action=e)}return{title:t,leadingImage:X,rendererContext:n&&{commandContext:{onTap:{innertubeCommand:n}}}}})};
v4c=function(q){q=_.YH(q.rendererContext);var w;return(w=_.C(q,_.sF))==null?void 0:w.playlistId};
bE6=function(q){var w;return(w=q.listItems)==null?void 0:w.some(function(u){var y;return _.gE((y=_.C(u,_.AdH))==null?void 0:y.rendererContext)})};
z3=function(q){var w=_.tG().resolve(_.kF(_.Rg));return w!=null&&w()?q.darkThemeColorPalette:q.lightThemeColorPalette};
D2=function(q){return{primaryTextColor:aS(q,0),secondaryTextColor:aS(q,1),optionColor:aS(q,2),backgroundColor:aS(q,3),videoBackgroundColor:aS(q,4)}};
aS=function(q,w){if(q){switch(w){case 0:q=q.primaryTitleColor;break;case 1:q=q.secondaryTitleColor;break;case 2:q=q.surgeColor;break;case 3:q=q.section2Color;break;case 4:q=q.section3Color;break;default:return}if(q)return _.Ae(q)}};
YBM=function(q){return q?_.Je(q):""};
g4M=function(q){return(q==null?void 0:q.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
E4y=function(q,w){var u;return"linear-gradient(to bottom, "+((u=w==null?void 0:w.map(function(y){var e=q?y.darkThemeColor:y.lightThemeColor;return e?_.Je(e)+" "+((y==null?void 0:y.startLocation)||0)*100+"%":"transparent"}))==null?void 0:u.join(", "))+")"};
Rdy=function(q,w,u,y,e){if(!((y==null?0:y.height)&&(y==null?0:y.width)))return{size:0};var t=y.width;y=y.height;if(e)return w==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||w==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&t>y?{size:312/sWy}:w==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(u!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||q!==1&&q!==2||w!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&w!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&w!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(w==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||w==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||y===t)switch(q){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(w==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||y>t)switch(q){case 1:case 3:return{size:240*WQ6};default:return{size:360*WQ6}}switch(q){case 1:case 2:return{size:1/sWy*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.cSJ=function(q){if(!("matchMedia"in window))return _.jZ(Error("Nh")),function(){return!1};
var w=window.matchMedia(q);q=_.P(_.r4(w.matches,void 0,"jLJc8e"));var u=q.next().value,y=q.next().value,e=function(t){y(t.matches)};
w.addEventListener?(w.addEventListener("change",e),_.ZG(function(){w.removeEventListener("change",e)})):w.addListener&&(w.addListener(e),_.ZG(function(){w.removeListener(e)}));
return u};
SBJ=function(q){return q==="IMAGE_BANNER_STYLE_INSET"||q==="IMAGE_BANNER_STYLE_UNKNOWN"};
hd6=function(){if(!("matchMedia"in window))return _.jZ(Error("Nh")),function(){return 0};
var q=$w(function(){return window.matchMedia("(max-width: 527.9px)")}),w=$w(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),u=$w(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),y=$w(function(){return window.matchMedia("(min-width: 1024px)")}),e=_.P(_.r4(q.matches,void 0,"og9kEc")),t=e.next().value,X=e.next().value;
e=_.P(_.r4(w.matches,void 0,"ybDWCb"));var G=e.next().value,n=e.next().value;e=_.P(_.r4(u.matches,void 0,"o0Gfh"));var N=e.next().value,Q=e.next().value;e=_.P(_.r4(y.matches,void 0,"yqUUgd"));var I=e.next().value,U=e.next().value,d=$w(function(){return function(b){X(b.matches)}}),V=$w(function(){return function(b){n(b.matches)}}),J=$w(function(){return function(b){Q(b.matches)}}),a=$w(function(){return function(b){U(b.matches)}});
_.p4(function(){q.addEventListener?(q.addEventListener("change",d),w.addEventListener("change",V),u.addEventListener("change",J),y.addEventListener("change",a)):q.addListener&&(q.addListener(d),w.addListener(V),u.addListener(J),y.addListener(a));_.ZG(function(){q.removeEventListener?(q.removeEventListener("change",d),w.removeEventListener("change",V),u.removeEventListener("change",J),y.removeEventListener("change",a)):q.removeListener&&(q.removeListener(d),w.removeListener(V),u.removeListener(J),
y.removeListener(a))})});
return function(){return t()?1:G()?2:N()?3:I()?4:0}};
jbJ=function(q){var w=0;q=_.P([q.title,q.metadata,q.actions,q.description,q.attribution]);for(var u=q.next();!u.done;u=q.next())u.value&&w++;return w};
ldy=function(q){return q===1||q===2?1:0};
Mxu=function(q){var w,u=((w=_.tG().resolve(_.kF(_.Rg)))==null?0:w())&&q.data.darkThemeImage?q.data.darkThemeImage:q.data.image;w=_.W("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.W("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},u?_.W(_.ln,{data:u,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),Ldc(q.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));u=_.W(_.Lr,{text:q.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var y=q.data;if(y.bodyText){var e=[];y=_.P(y.bodyText);for(var t=y.next();!t.done;t=y.next())e.push(_.W(_.Lr,{text:t.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else e=_.W(_.GS,null);return _.W("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},w,u,e,Ldc(q.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.W(_.Lr,{text:q.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.W(_.Lr,{text:q.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
Bl6=function(q){q=(new KdJ).parse(q);return(new sM).render(q).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(w){var u=w.split(":").map(Number),y=0,e=0;if(u.length===3)u=_.P(u),y=u.next().value,e=u.next().value,u=u.next().value;else if(u.length===2)u=_.P(u),e=u.next().value,u=u.next().value;else if(u.length===1)u=_.P(u).next().value;else throw Error("Oh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(y*3600+e*60+u)+'" role="button">'+w+"</span>"})};
xmJ=function(q){q=_.P(q.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var w=q.next(),u={};!w.done;u={clickHandler$jscomp$4:void 0},w=q.next()){w=w.value;u.clickHandler$jscomp$4=function(e){e=Number(e.target.getAttribute("data-time"));if(isNaN(e))throw Error("Ph");var t=document.querySelector("video");t&&(t.currentTime=e)};
var y=function(e){return function(t){t.key!=="Enter"&&t.key!=="Space"||(0,e.clickHandler$jscomp$4)(t)}}(u);
w.setAttribute("tabindex","0");w.removeEventListener("click",u.clickHandler$jscomp$4);w.removeEventListener("keydown",y);w.addEventListener("click",u.clickHandler$jscomp$4);w.addEventListener("keydown",y)}};
qDu=function(){return _.W("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.W(Z2,{percentWidth:100}),_.W(Z2,{animationDelay:200}),_.W(Z2,{animationDelay:400}),_.W(Z2,{animationDelay:600}),_.W(Z2,{animationDelay:800,percentWidth:60}),_.W("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.W(Z2,{percentWidth:100}),_.W(Z2,{animationDelay:200}),_.W(Z2,{animationDelay:400}),_.W(Z2,{animationDelay:600,percentWidth:50}))};
Z2=function(q){return _.W("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(q.percentWidth===void 0?100:q.percentWidth)+"%"},_.W("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(q.animationDelay===void 0?0:q.animationDelay)+"ms"}))};
wZo=function(){var q=_.P(_.r4(function(){return""},void 0,"v2wS5e")),w=q.next().value;
return[function(){return w()()},
q.next().value]};
yCl=function(q){q=q===void 0?{}:q;return{title:_.yU(q.localizedOptInBannerTitleText===void 0?"":q.localizedOptInBannerTitleText),titleLength:19,subtitle:_.yU(q.localizedOptInMessage===void 0?"":q.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.yU(_.ID("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:_.yU(_.ID("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:[uLJ]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
eTl=function(q,w){q=q?RRj(q):"";w!==void 0&&isFinite(w)?w===0?w=_.ID("UPDATING",void 0,"Updating..."):(w=e5o(new Date(w),new Date),w=_.ID("UPDATED_TIME",{relative_time:w},"Updated "+w)):w="";var u="";q&&w&&(u=" \u2022 ");return _.yU(q+u+w)};
PFl=function(q,w,u,y,e,t){w=w===void 0?0:w;var X=kOM[w],G=X.title,n=X.iconType,N=X.topButtonRenderer,Q=X.sectionClientVE;X=X.videoClientVE;var I;if(w!==1||q.length){u=[];q=_.P(q);for(y=q.next();!y.done;y=q.next()){var U=y.value;if(v9J(U))u.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:U.videoEntity.videoId,title:eN(U.videoEntity.title),shortBylineText:eN(U.channelEntity.title),thumbnail:U.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:U.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.ID("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:X}}}}}});else if($so(U)){y=u;var d=y.push;var V=void 0,J=void 0,a=void 0,b=void 0,g=void 0,l=void 0,S=void 0,eH=void 0,x=U.mainPlaylistEntity.playlistId,P4=U==null?void 0:(eH=U.mainPlaylistEntity)==null?void 0:(S=eH.thumbnailStyleData)==null?void 0:(l=S[0])==null?void 0:(g=l.value)==null?void 0:(b=g.collageThumbnail)==null?void 0:b.coverThumbnail;b=b9J(x);if(!_.T("enable_offline_playlist_page")&&
(U==null?0:(a=U.mainPlaylistEntity)==null?0:a.videos)){b:{a=U==null?void 0:(J=U.mainPlaylistEntity)==null?void 0:J.videos;J=_.Mt().getState().entities;if(a!=null&&a.length&&J)for(a=_.P(a),g=a.next();!g.done;g=a.next())if(g=_.XX(g.value).entityId,(g=JSON.parse(g).videoId)&&VhH(J,g)==="TRANSFER_STATE_COMPLETE"){J=g;break b}J=""}J!==void 0&&(b=bA(_.Mt().getState(),J),b=_.uA(J,x,void 0,void 0,b))}J=g2M(_.ID("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),b9J(x));U=x&&P4&&J?{playlistId:x,navigationEndpoint:b,
viewPlaylistText:J,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:P4}},title:eN(U.mainPlaylistEntity.title),shortBylineText:eN(U==null?void 0:(V=U.channelEntity)==null?void 0:V.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:tyJ,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:x,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.ID("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:X}}}:
void 0;d.call(y,{gridPlaylistRenderer:U})}}X={gridRenderer:{items:u}};w===1&&(I=eTl(e,t))}else if(y){var C7=_.yU((d=u==null?void 0:u.localizedPromptMessage)!=null?d:"");X={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.yU(_.ID("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.uhl}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.yU(_.ID("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};I=eTl(e,t)}else C7=_.yU(_.ID("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
X={};return{contents:[{shelfRenderer:{title:G,titleAnnotation:I,icon:{iconType:n},subtitle:C7,content:X,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:N}]}}}}],loggingDirectives:{clientVeSpec:{uiType:Q}}}};
XZc=function(q,w,u,y,e,t,X,G){u=u===void 0?{}:u;y=y===void 0?!1:y;e=e===void 0?!1:e;t=t===void 0?!1:t;X=X===void 0?0:X;G=G===void 0?-Infinity:G;if(!w.length&&!q.length&&!y)return e?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:Z5o(u)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.yU(_.ID("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 n=[];q.length&&n.push(PFl(q,0));y?n.push(PFl(w,1,u,t,X,G)):e&&n.push({contents:[{statementBannerRenderer:yCl(u)}]});(y&&w.length||q.length)&&n.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.yU(_.ID("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 n.map(function(N){return{itemSectionRenderer:N}})};
pV=function(q,w){if(typeof q!=="object")return null;q=_.P(Object.entries(q));for(var u=q.next();!u.done;u=q.next()){var y=_.P(u.value);u=y.next().value;y=y.next().value;if(u===w)return u;if(y=pV(y,w))return u+"."+y}return null};
$D=function(q){var w=q.content;return(q=q.styleRuns)&&w?{runs:q.map(function(u){var y={text:w.slice(u.startIndex,u.startIndex+u.length)};u.fontColor&&(y.textColor=u.fontColor);return y})}:{simpleText:w}};
n_M=function(q,w,u,y){var e=Fyl;y&&(q.quantity=y);if(!q.quantity||!q.maxQuantity)return{};y=q.minusButton;var t=q.plusButton,X,G,n,N;return{value:q.quantity,maxValue:q.maxQuantity,onChangeCallback:function(Q){e(q,Q)},
minusLabel:(X=_.C(y,GOy))==null?void 0:X.label,minimumReachedLabel:(G=_.C(y,GOy))==null?void 0:G.limitReachedLabel,plusLabel:(n=_.C(t,GOy))==null?void 0:n.label,maximumReachedLabel:(N=_.C(t,GOy))==null?void 0:N.limitReachedLabel,disabled:w,onRemoveCommand:u}};
Fyl=function(q,w){var u=q.quantityIncrementerEntityKey;if(u){var y={};y.quantity=w;_.hM(_.mG("quantityIncrementerEntity",u,y));q.onChangeCommand&&_.bn(q.onChangeCommand)}};
HBs=function(q){return _.T("kevlar_comments_clone_data_killswitch")?q:_.db.unsafeClone(q)};
NFH=function(q,w){(q=WyM(q))&&(w?sIf.push({command:q,sourceData:{},commandContext:void 0}):_.tG().resolve(_.PG).resolveCommand(q))};
WyM=function(q){return _.C(q,_.Dh)};
QIu=function(){var q=window.performance.timeOrigin+window.performance.now(),w=(new _.vy).setSeconds(q/1E9);return _.Va(w,2,_.dc(q%1E9),0)};
br=function(q,w){var u=_.C(_.C(q,_.Dh),I5J);u&&(w&&(u.serializedAdditionalMetadata=_.wV(w)),NFH(q,!0))};
iBu=function(q){switch(q){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"}};
rCu=function(){return!!_.Et("ID_TOKEN")};
CF4=function(q){return q instanceof Error&&q.cause instanceof UX4&&q.cause.rpcErrorCode!==void 0?!TFj.includes(q.cause.rpcErrorCode):!0};
OBf=function(){return _.xw(dXf,{authuser:""+(_.Et("SESSION_INDEX")||0)})};
YD=function(q,w,u,y){u=u===void 0?"MINI_APP_SDK_API_UNSPECIFIED":u;y=y===void 0?"":y;var e=new _.fv;u={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:y,sdkApi:u};q instanceof Error&&(e.message=q.message,e.name=q.name,q.cause instanceof UX4&&q.cause.rpcErrorCode!==void 0&&(u.rpcErrorCode=q.cause.rpcErrorCode));var t;(t=w.onError)==null||t.call(w,{loggingError:e,metadata:u})};
VyH=function(q,w,u,y){switch(q){case "MINI_APP_SOURCE_GAMESNACKS":return new cy(w,u,y);default:return new o_l(w,u,y)}};
f5c=function(q){switch(q){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"}};
mXy=function(q){switch(q){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"}};
ACH=function(q){switch(q){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"}};
JCl=function(){return Math.floor(Math.random()*4)+1};
zTM=function(q,w,u,y){q=_.P(Object.entries(q));for(var e=q.next(),t={};!e.done;t={message$jscomp$957:void 0},e=q.next()){var X=_.P(e.value);e=X.next().value;X=X.next().value;t.message$jscomp$957=X;w.push(setTimeout(function(G){return function(){y(!1);u(G.message$jscomp$957.text)}}(t),t.message$jscomp$957.delayMs));
Number(e)>0&&w.push(setTimeout(function(){y(!0)},t.message$jscomp$957.delayMs-400))}};
a5j=function(q,w){var u=u===void 0?Yds:u;_.T("mweb_fix_monitor_visibility_after_render")?q&&Vz(function(){RiH(q,w,u)}):Vz(function(){RiH(q,w,u)})};
ZBM=function(q){var w=q.data;var u=q.uniqueId;q=q.overrides;var y,e=((y=w.timedAnimationData)==null?void 0:y.animationTiming)||[];return _.W("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.W(zn,{settings:{uniqueId:u,timings:e,experimentEnabled:e.length>0,enabled:e.length>0}},DXJ(w.buttonRenderer,{buttonRenderer:{buttonOverrides:q}})))};
bBc=function(q){pZs||(pZs=$X6(new _.gG(1,void 0,void 0,v_6),0));var w=pZs.format(Math.floor(q));w=_.YN==="be"||_.YN==="bg"||_.YN==="es"||_.YN==="et"||_.YN==="hu"||_.YN==="ka"||_.YN==="lv"||_.YN==="pl"||_.YN==="pt-PT"||_.YN==="sq"?w.replace(new RegExp("^(\\d)"+v_6.GROUP_SEP.replace(".","\\.")+"(\\d+("+v_6.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):w;return q>=1E3&&q<=9999&&w[1]==="."&&(_.YN==="sl"||_.YN==="it")?w.replace(".",""):w};
YD4=function(q,w){m6("ytd-button-renderer",{data:q,className:w?w.className:"",overrides:w==null?void 0:w.buttonOverrides},w_)};
RTl=function(q,w,u,y){if(q)return y=y||q.likeStatus,w?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:y==="LIKE",isDisabled:!q.likesAllowed,defaultIcon:{iconType:u},defaultText:y==="LIKE"?q.likeCountWithUnlikeText:q.likeCountText,toggledText:y==="LIKE"?q.likeCountText:q.likeCountWithLikeText,defaultNavigationEndpoint:g_l(q,"LIKE"),defaultServiceEndpoint:E_H(q,"LIKE"),toggledServiceEndpoint:E_H(q,"INDIFFERENT"),defaultTooltip:_.lA(q.likeCountTooltipText),toggledTooltip:_.lA(q.likeCountTooltipText),
targetId:q.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:y==="DISLIKE",isDisabled:!q.likesAllowed,defaultIcon:{iconType:u},defaultText:y==="DISLIKE"?q.dislikeCountWithUndislikeText:q.dislikeCountText,toggledText:y==="DISLIKE"?q.dislikeCountText:q.dislikeCountWithDislikeText,defaultNavigationEndpoint:g_l(q,"DISLIKE"),defaultServiceEndpoint:E_H(q,"DISLIKE"),toggledServiceEndpoint:E_H(q,"INDIFFERENT"),defaultTooltip:_.lA(q.dislikeCountTooltipText),
toggledTooltip:_.lA(q.dislikeCountTooltipText)}};
g_l=function(q,w){if(w==="LIKE")return q.likeCommand;if(w==="DISLIKE")return q.dislikeNavigationEndpoint};
E_H=function(q,w){var u;return(u=q.serviceEndpoints)==null?void 0:u.find(function(y){var e;return((e=_.C(y,_.Ss))==null?void 0:e.status)===w})};
cCu=function(q,w){w=w===void 0?{}:w;if(q){var u=!!w.activeState,y=w.iconSize,e=w.className,t=w["aria-hidden$"],X=w["aria-label$"],G=w.role;w=w.style$+";width: "+((w.width||y)+"px;height: ")+((w.height||y)+"px;color: ")+(w.color+";");q={icon:q};u!==void 0&&(q.active=u);y!==void 0&&(q.size=y);w!==void 0&&(q.style=w);e!==void 0&&(q.className=e);t!==void 0&&(q.ariaHidden=t);X!==void 0&&(q.ariaLabel=X);G!==void 0&&(q.role=G);m6("yt-icon",q,w_)}};
_.jIM=function(q,w,u){return window.spf&&!_.T("web_disable_spfjs_client")?SDu(q,w,u):hTu(q,w)};
SDu=function(q,w,u){var y=null,e=(new _.IA(function(t,X){var G={};if(w){G.method=w.method;var n=w.postParams||{};Y4o(q,w)&&(n[_.Et("XSRF_FIELD_NAME")]=_.Et("XSRF_TOKEN"));G.postData=_.i4(n);w.type&&(G.type=w.type);n=w.headers}G.headers=DbM(q,n);_.T("debug_forward_web_query_parameters")&&(q=_.v$l(q,window.location.search));G.experimental_headers=G.headers;G.onError=function(N){N.err&&N.xhr&&(N.err.params={url:N.xhr.responseURL,response:N.xhr.responseText.substr(0,64)});X(N.err)};
G.onPartDone=function(N){u&&u.call(null,N.part)};
G.onDone=function(N){var Q=l5H(N.response,"xsrf_token");u4(window.location.href,q)&&Q&&_.g_("XSRF_TOKEN",Q);if(Q=l5H(N.response,"service_worker_killswitch"))_.g_("SERVICE_WORKER_KILLSWITCH",Q),iU7();t(N.response)};
y=spf.request(q,G)})).then(Lyz);
e.thenCatch(function(t){var X=t instanceof _.hK,G=t&&t.hasOwnProperty("params")&&t.params.response?t.params.response:"";t instanceof Error&&(G?X?Oxy(t):G===')]}\'\n{"reload":"now"}'?Oxy(t):(Myc(t,q,G),Kyj(t,G)?_.Y8(t):_.vm(t)):Oxy(t));y&&y.abort()});
return e};
Lyz=function(q){if(q.type==="multipart"){var w=q.timing;q=q.parts.reduce(function(u,y){Object.assign(u,y);return u},{});
q.timing=q.timing||{};Object.assign(q.timing,w);q.type="reduced"}return q};
hTu=function(q,w){w=w===void 0?{}:w;var u=null,y=new _.IA(function(e,t){w.onFinish=function(X){if(X.readyState===XMLHttpRequest.DONE)if(X.status===200){if(X.responseType!=="json"){var G=X.response;G.substring(0,5)===")]}'\n"&&(G=G.substring(5));try{var n=JSON.parse(G)}catch(N){n=N}}else n=X.response;n instanceof Error?t(n):(G=l5H(n,"xsrf_token"),u4(window.location.href,q)&&G&&_.g_("XSRF_TOKEN",G),X=X.responseURL,window.performance&&window.performance.getEntriesByName?(G=window.performance.getEntriesByName(X).pop())?
X={responseStart:(0,_.eW)()-(G.responseEnd-G.responseStart)}:(Math.random()<.01&&(G=Error("ai"),G.params=X,_.Y8(G)),X={responseStart:-1}):X={responseStart:0},n.timing=n.timing||{},Object.assign(n.timing,X),e(n))}else t(Error("$h`"+X.status))};
(u=_.I2(q,w))||t(Error("$h`"+u.status))});
y.thenCatch(function(e){e instanceof Error&&(Myc(e,q),Kyj(e)&&(e.level="WARNING"))});
_.T("cancel_pending_navs")&&y.thenCatch(function(){u.abort()});
return y};
l5H=function(q,w){var u=q[w],y=q.parts;q.type==="multipart"&&y&&(u=(q=y.find(function(e){return w in e}))&&q[w]);
return u};
Myc=function(q,w,u){var y=q.message||"";w={original:y,url:w};if(u)if(y=y.match(/position:?\s*(\d+)/)){y=y&&Number(y[1])?Number(y[1]):0;var e=Math.max(y-25,0);w.position=y;w.response=u.substring(e,y+25)}else w.response=u.substring(0,50);_.gs(q,w);try{q.message="JSON parse error"}catch(t){}};
Kyj=function(q,w){q=q.message||"";q=!!(q.indexOf("<")>=0||q.indexOf("end of ")>=0||q.indexOf("Unterminated string")>=0||q.indexOf("Unexpected EOF"));if(!q&&w)for(var u=w.length,y=!1,e=0;e<u;e++)if(y&&w[e]==="\\")e++;else if(w[e]==='"')y=!y;else if(w[e]==="<"&&!y){q=!0;break}return q};
BF7=function(){return document.documentElement.hasAttribute("dark")};
_.xXo=function(q,w){if(q!=="GFEEDBACK"&&q!=="GUIDED_HELP")_.cl(Error("bi`"+q));else{var u=_.tG().resolve(_.kF(_.KT));if(u&&(u=u.getCurrentPage())&&u.getServiceTrackingParams&&(u=u.getServiceTrackingParams()))for(var y=0,e;e=u[y++];)if(e.service===q){if(q=e.params)for(u=0;y=q[u++];)w[y.key]=y.value;break}}};
_.q56=function(q){var w=_.xo();w&&(w=w.getPlayer())&&(w.pauseVideo(),q.playback_id=w.getVideoData().cpn,q.eid=w.getVideoData().eventId,Object.assign(q,w.getFeedbackProductData()))};
wEf=function(){var q={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Et("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(q.enableAnonymousFeedback=!0);_.Et("SESSION_INDEX")&&(q.authuser=String(_.Et("SESSION_INDEX")));_.T("enable_pageid_for_feedback")&&_.Et("DELEGATED_SESSION_ID")&&(q.pageId=String(_.Et("DELEGATED_SESSION_ID")));return q};
_.js=function(q){_.T("enable_ypc_spinners")&&_.Pw(q,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},q])};
_.lr=function(q){_.T("enable_ypc_spinners")&&_.Pw(q,"yt-close-popup-action",["yt-loading-renderer"])};
uPj=function(q){return new Promise(function(w,u){_.px({verifyCommand:{recaptchaToken:q.recaptchaResponse}},{commandController:{onSuccess:function(y,e){e||u("ChallengeService did not return a response.");var t;w({challengeCompleted:(t=e.verified)!=null?t:!1})},
onServerError:function(y,e){u(e)}}})})};
yjM=function(q,w,u,y){w({recaptchaResponse:y}).then(function(e){e.challengeCompleted?_.d$()?(u(3),_.tG().resolve(_.PG).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:q}})):u(2):u(4)},function(){u(4)})};
eLl=function(q,w,u){_.EM("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.Et("HL"),function(){var y;(y=window.grecaptcha)==null||y.ready(function(){var e=window.grecaptcha;e?(u(e.render(q,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:yjM.bind(null,q,uPj,w)})),w(1)):w(4)})})};
kly=function(q,w){return function(){switch(w()){case 0:return q().captchaLoadingMessage;case 1:return q().challengeReason;case 3:return q().captchaSuccessfulMessage;case 2:return q().captchaCookieSetFailureMessage;case 4:return q().captchaFailedMessage;default:return q().challengeReason}}()};
_.LV=function(){if(!tdM){var q=document.querySelector("#player.skeleton");q&&(_.UN(q),tdM=!0)}};
_.XEy=function(){return Puo=iKH()};
nhH=function(){return _.F(function(q){return FBH!==void 0?q.return():_.H(q,Gl7(),0)})};
Gl7=function(){return _.F(function(q){if(q.nextAddress==1)return _.H(q,Uqz(),2);Puo=q.yieldResult;FBH=_.pi.addLowPriorityJob(Gl7,5E3);_.HI(q)})};
Ioy=function(q){var w=w===void 0?HZl:w;var u,y,e=(u=q.responseContext)==null?void 0:(y=u.mainAppWebResponseContext)==null?void 0:y.trackingParam;if(!e){w.increment("MISSING");var t,X,G,n,N,Q;_.Y8(new _.fv("282054944_a",{eBy:!!((t=q.responseContext)==null?0:(X=t.mainAppWebResponseContext)==null?0:X.loggedOut),cZ8:((G=q.responseContext)==null?void 0:G.mainAppWebResponseContext)===void 0,t86:q.responseContext===void 0,f66:(n=q.playabilityStatus)==null?void 0:n.contextParams,uBx:(((N=q.streamingData)==
null?void 0:N.formats)||[]).length>0,sZG:(((Q=q.streamingData)==null?void 0:Q.adaptiveFormats)||[]).length>0,os:!!q.offlineState,cotn:q.cotn}));return 2}u="";try{u=WBM(e)}catch(d){return w.increment("C_ERROR"),_.vm(d),2}try{var I=_.stc(u);var U=NwM(I)}catch(d){return w.increment("P_ERROR"),_.vm(d),2}U=_.wg(U,Qty,1,_.uI());e=[];U=_.P(U);for(I=U.next();!I.done;I=U.next())y=I.value,I=y.getPath(),u=(0,_.db.getValueByKeys)(q,I.split(".")),u=String(u===void 0||u===null?"":u),y=y.getValue()||"",t=/[+\-\/_]/g,
u.replace(t,"")!==y.replace(t,"")&&(w.increment("MISMATCH"),_.T("ab_mis_log_err")&&(u=new _.fv("282054944_p",{n5H:I,g:String(u),e:String(y)}),_.vm(u)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(I)||(I.match(/enforcementMessageViewModel/i)?e.push(3):e.push(2)));if(e.length>0)return Math.max.apply(Math,_.Cm(e));w.increment("SUCCESS");return 1};
U37=function(q){var w=new MD;if(q.interpreterJavascript){var u=_.QOc(q.interpreterJavascript);u=$m(u).toString();var y=new iZc;_.sf(y,6,u);_.e9(w,1,y,Sr)}else q.interpreterUrl&&(u=_.$Z(q.interpreterUrl),u=_.G2(u).toString(),y=new _.rjM,_.sf(y,4,u),_.e9(w,2,y,Sr));q.interpreterHash&&_.KV(w,3,q.interpreterHash,Sr);q.program&&_.KV(w,4,q.program,Sr);q.globalName&&_.KV(w,5,q.globalName,Sr);q.clientExperimentsStateBlob&&_.KV(w,7,q.clientExperimentsStateBlob,Sr);return w};
By=function(q){var w={};q=_.P(q.split("&"));for(var u=q.next();!u.done;u=q.next())u=u.value.split("="),u.length===2&&(w[u[0]]=u[1]);return w};
TwM=function(q){return Number(q.t)||7200};
m1H=function(){if(_.T("bg_st_hr"))return"havuokmhhs-0";var q,w=((q=performance)==null?void 0:q.timeOrigin)||0;return"havuokmhhs-"+Math.floor(w)};
Cus=function(){return new Promise(function(q){var w=window.top;w.ntpevasrs!==void 0?q(new xD(w.ntpevasrs)):(w.ntpqfbel===void 0&&(w.ntpqfbel=[]),w.ntpqfbel.push(function(u){q(new xD(u))}))})};
d3M=function(q){var w=q.nWc.bind(q);_.wr("yt.aba.att",w);q=q.hpL.bind(q);_.wr("yt.aba.att2",q)};
ohy=function(q){switch(_.QV(q.input)){case _.Ka(OZM):var w={};return w.encryptedVideoId=q.innerTubeRequest.externalVideoId,w}return{}};
foz=function(q){switch(_.QV(q.input)){case _.Ka(OZM):if(_.T("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Ka(qL):if(_.T("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&q.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Ka(Vd7):var w,u;if(_.T("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((u=_.C((w=q.config)==null?void 0:w.command,
Ib7))==null?0:u.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.Ajf=function(q){var w;if(q.playlistVideoRenderer&&((w=q.playlistVideoRenderer)==null?0:w.engagementBar))return m3s(q.playlistVideoRenderer.engagementBar);if(_.C(q,wZ)){var u;if(q=(u=_.C(q,wZ))==null?void 0:u.engagementBar)return m3s(q)}return""};
m3s=function(q){if(!q)return"";q=_.C(q,_.JjJ);if(q==null||!q.actions)return"";q=_.P(q.actions);for(q=q.next();!q.done;q=q.next()){q=_.C(q.value,_.zL4);var w=void 0;if((w=q)==null||!w.itemId)break;return q.itemId}return""};
_.aoH=function(q){var w;if(q.playlistVideoRenderer&&((w=q.playlistVideoRenderer)==null?0:w.videoId))return q.playlistVideoRenderer.videoId;if(_.C(q,wZ)){var u,y;if(q=(u=_.C(q,wZ))==null?void 0:(y=u.playlistItemData)==null?void 0:y.videoId)return q}return""};
_.D36=function(q){var w;if(q.playlistVideoRenderer&&((w=q.playlistVideoRenderer)==null?0:w.voteCount))return q.playlistVideoRenderer.voteCount;if(_.C(q,wZ)){var u,y;if(q=(u=_.C(q,wZ))==null?void 0:(y=u.playlistItemData)==null?void 0:y.voteCount)return q}return 0};
_.uU=function(q,w){return _.HQ(q.entities,"flowStateEntity",w)};
pEo=function(q,w,u,y){var e=void 0;q=_.P(q[w.iconName]||[]);for(var t=q.next();!t.done;t=q.next()){t=t.value;var X=w.iconSize;var G=w.iconStyle;X=!X||X===t[2];var n=ZZj[t[0]];y&&y!==t[1]||!X||G&&G!==n?G=!1:e?(G=ZZj[t[0]],G=!!w.iconStyle||G==="youtube_outline",X=e.version<=t[1],G=(!!w.iconSize||t[2]===24)&&G&&X):G=!0;G&&(e={name:w.iconName,style:ZZj[t[0]],size:t[2],version:t[1],allowMirroring:!!t[3],url:u(w.iconName,t)})}return e};
$3c=function(q,w,u,y){return q+(""+ZZj[u[0]]+((y===void 0?0:y)?"_experimental":"")+"/"+w+"/v"+u[1]+"/")+(u[2]+"px.svg")};
yk=function(q){return _.T("web_bookmark_playlist_save_icon")?"bookmark":q};
vhy=function(q,w){return $3c("https://fonts.gstatic.com/s/i/",q,w)};
bZs=function(q,w){return $3c("https://fonts.gstatic.com/s/i/",q,w,!0)};
Y54=function(q,w){return $3c("https://www.gstatic.com/youtube/img/icons/web/",q,w)};
gh4=function(q){var w=q.enabled;var u=q.itemPlaybackModel;var y=q.thumbnailElRef;var e=q.containerElRef;var t=q.options;var X;_.DG(function(){var G=e==null?void 0:e.value;var n,N=(n=y())==null?void 0:n.value;n=u();var Q=t();if(w&&n&&G&&N&&(Q==null?0:Q.thumbnail)){var I,U;G={mediaRenderer:{data:n,hostElement:G},lockupElement:G,thumbnailElement:N,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.Zh((I=n.inlinePlayerData)==null?void 0:I.onVisible),navigationEndpoint:_.Zh((U=n.inlinePlayerData)==
null?void 0:U.onSelect),thumbnail:Q.thumbnail,thumbnailOverlays:Q.thumbnailOverlays||[],accessibilityText:Q.accessibilityText||""},thumbnailSize:Q.thumbnailSize,enableRounding:Q.enableRounding}}}else G=void 0;if(I=G){var d;(d=X)==null||yb(d);X=cC(I)}});
_.ZG(function(){var G;(G=X)==null||yb(G)})};
Ehf=function(q){q=atob(q);for(var w=[],u=0;u<q.length;u++)w.push(q.charCodeAt(u));return new Blob([new Uint8Array(w)],{type:"image/png"})};
cjc=function(q,w,u,y){y=y===void 0?"INSERTION_POSITION_UNSPECIFIED":y;return q({targetId:w},function(e){var t,X=(t=e.contents)!=null?t:[];t=u!=null?u:[];var G=RL7(X);switch(y){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},e,{contents:[].concat(_.Cm(X.slice(0,G)),_.Cm(t),_.Cm(X.slice(G+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},e,{contents:[].concat(_.Cm(t),_.Cm(X))});case "INSERTION_POSITION_LAST":return Object.assign({},e,{contents:[].concat(_.Cm(X),_.Cm(t))});
default:return e}})};
hL4=function(q,w,u,y,e){e=e===void 0?"RELATIVE_INSERTION_POSITION_AFTER":e;return q({targetId:w},function(t){var X,G=(X=t.contents)!=null?X:[];X=S5J(G,u);if(X<0)return t;X=e==="RELATIVE_INSERTION_POSITION_BEFORE"?X:X+1;return Object.assign({},t,{contents:[].concat(_.Cm(G.slice(0,X)),_.Cm(y),_.Cm(G.slice(X)))})})};
RL7=function(q){var w=q.findIndex(function(u){return _.C(u,_.ec)});
return w>=0?w:q.length};
S5J=function(q,w){return q.findIndex(function(u){a:{u=_.P(Object.values(u));for(var y=u.next();!y.done;y=u.next())if((y=y.value)&&y.targetId){u=y.targetId;break a}u=""}return u===w})};
loM=function(q,w,u){return q({targetId:w},function(y){var e,t=(e=y.contents)!=null?e:[];return Object.assign({},y,{contents:jtM(t,u)})})};
jtM=function(q,w){return q.filter(function(u){var y=w.includes;a:{u=_.P(Object.values(u));for(var e=u.next();!e.done;e=u.next())if((e=e.value)&&e.targetId){u=e.targetId;break a}u=""}return!y.call(w,u||"")})};
_.LBH=function(q,w){return{engagementPanelSectionListRenderer:{panelIdentifier:q,identifier:w,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
MdM=function(q){return q.getOption("captions","tracklist",{includeAsr:!0})};
KBf=function(q){var w=MdM(q);if(w==null?0:w.length)return w;q.loadModule("captions");return MdM(q)};
Bwo=function(q,w,u){if(q.getVideoData){var y,e=(y=KBf(q))==null?void 0:y.find(function(t){return t.languageCode===u});
y=_.na("/youtube/app/player_caption_language_entity_key","stringEntity",2);w.dispatch(_.IH("stringEntity",y,{key:y,value:(e==null?void 0:e.displayName)||""}));e?q.setOption("captions","track",e):(q.setOption("captions","stickyLoading",{}),q.setOption("captions","track",{}))}};
x3y=function(q){return q.getOption("captions","tracklist",{includeAsr:!0})};
qV4=function(q){return q.getOption("captions","tracklist",{includeAsr:!0})};
wnJ=function(q){var w=qV4(q);if(w==null?0:w.length)return w;q.loadModule("captions");return qV4(q)};
u07=function(q){var w=q.getOption("captions","track");if(w)return w;q.loadModule("captions");return q.getOption("captions","track")};
yJu=function(q){var w=wnJ(q);if(w!=null&&w.length){var u=u07(q);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.ID("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(u==null?0:u.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.Cm(w.map(function(y){return{listItemViewModel:{title:{content:y.displayName},
isSelected:y.languageCode===(u==null?void 0:u.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:y.languageCode}}]}}}}}}}})))}}}}}}}}};
PW6=function(q){return new Promise(function(w,u){if(q===void 0)_.vm(Error("Ci"),"ERROR"),u(Error("Ci"));else{u=new _.eeo;var y=_.kzz();u=u.init();var e=_.tk6(_.Et("YPC_MB_URL"),!0);Promise.all([u,e]).then(function(){var t=payments.business.integration.ClientTokenFactory.createClientToken(q,y);w(t)})}})};
Gzl=function(q,w,u,y,e,t,X){var G=_.S6();u=u.replace(/-/g,"+").replace(/_/g,"/");var n=_.UC().get("hl"),N=_.kX(_.cM),Q=w==null?void 0:w.element;Q&&_.js(Q);Xno(w,!0);_.Ffo(N,u,G.resolve,function(){Q&&_.lr(Q)},function(I){Q&&_.lr(Q);
G.reject(I)},n,y?function(I){y&&_.cR(q,y,{backend_analytics:I})}:void 0,G.resolve,e,t,X);
return G.promise};
Xno=function(q,w){!(q=q==null?void 0:q.element)||q.tagName!=="YT-BUTTON-RENDERER"&&q.tagName!=="YTD-BUTTON-RENDERER"||(q.disabled=w)};
nOf=function(){var q=_.ID("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.yU(q),actionButton:{buttonRenderer:zRJ()}}},popupType:"TOAST"}};
Hwy=function(){var q=_.ID("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.yU(q),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
Wfu=function(q){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:q}]}}};
tI=function(q,w,u,y){var e;return _.F(function(t){if(t.nextAddress==1)return _.tD(t,2),_.H(t,q,4);if(t.nextAddress!=2)return(e=_.dG(w.getState().entities).length>0)?t.return({title:_.yU(_.ID("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.yU(_.ID("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:JTc()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
t.return(ajf(u,y));_.nm(t);return t.return(ajf(u,y))})};
scM=function(q,w){return w?w==="PPSV"||AUJ(q,w):!1};
NJz=function(q){q.responseContext||(q.responseContext={});q.responseContext.maxAgeSeconds=0;return q};
XN=function(q){var w;return _.F(function(u){return u.nextAddress==1?_.H(u,Qcy(q,"service:topbar:fallback"),2):(w=u.yieldResult)&&_.Pr(w)?u.return(NJz(_.Pr(w))):u.return()})};
Ig6=function(q){var w;return _.F(function(u){return u.nextAddress==1?_.H(u,Qcy(q,"service:downloads_settings:fallback"),2):(w=u.yieldResult)&&_.Pr(w)?u.return(w):u.return()})};
Qcy=function(q,w){var u;return _.F(function(y){if(y.nextAddress==1)return q?_.H(y,q.get(w),2):y.return();u=y.yieldResult;return!u||!_.Pr(u)||!isNaN(Number(u.data.expireTimestampMs))&&u.isExpired()?y.return():y.return(u)})};
iwu=function(q){var w=_.tG().resolve(FN).getState().entities;return q.playlistId?scM(w,q.playlistId):!1};
rJy=function(q,w){var u;if(w==null?0:(u=w.requestTemplate)==null?0:u.panelId)q.panelId=w.requestTemplate.panelId;var y;if(w==null?0:(y=w.requestTemplate)==null?0:y.params)q.params=w.requestTemplate.params};
TJy=function(){if(UxM)return UxM();var q=!_.T("idb_response_store_auth_killswitch"),w={};UxM=y_("yt-it-response-store",{objectStores:(w.ResponseStore={addedAtVersion:1},w),shared:!q,upgrade:function(u,y){y(1)&&(u=Rz(u,"ResponseStore",{keyPath:["key","clientName"]}),cT(u,"byExpiration","expireTimestampMs"),cT(u,"byInterface","clientName"))},
version:1});return UxM()};
CWz=function(q){return _.Lv(TJy(),q)};
Owj=function(q,w){var u;return _.F(function(y){return y.nextAddress==1?_.H(y,_.uY(),2):(u=y.yieldResult)?y.return(new dxM(q,w,u)):y.return()})};
oOc=function(q){var w=Object.keys(q)[0];if(w)return q.screenExit&&(w=w+";"+q.screenExit.screen),w};
Vks=function(q){var w=new Map;q=_.P(q);for(var u=q.next();!u.done;u=q.next())u=u.value,u!=null&&(w.has(u.taskType)||w.set(u.taskType,[]),w.get(u.taskType).push(u));return w};
fg4=function(q){return!isNaN(q)&&q>0};
mxM=function(q){q=[].concat(_.Cm(q)).sort(function(u,y){return u-y});
var w=Math.floor(q.length/2);return q.length%2?q[w]:(q[w-1]+q[w])/2};
zec=function(q,w){q=q===void 0?F6l:q;w=w===void 0?{}:w;_.wr("yt.logging.errors.log",_.vm);Pn6();AJz(sgs(),w);window.onerror=q;JJ6=X6f;window.addEventListener("unhandledrejection",function(u){if(u.reason instanceof Error){var y=u.reason;_.gs(y,{source:"unhandledrejection"});y.name==="AbortError"&&(y.level="WARNING")}X6f(u.reason);u.preventDefault()})};
_.agJ=function(q){return q.a11y.ephemeralAction||null};
_.Dxu=function(q){var w,u,y,e,t,X,G,n,N,Q,I,U,d,V,J,a,b,g,l,S,eH,x,P4,C7,mu,Os,YJ,ao,bc,Ro,K7,gx,dx,tc,Fa,eq,Hk,W3,gV,Fl;return _.F(function(C$){if(C$.nextAddress==1)return _.H(C$,_.iA(q,{mode:"readonly",enableRetries:!0},function(ZZ){return rG(ZZ,"playbackData").then(function(EA){var mj=EA.map(function(lc){return lc.transfer}).filter(function(lc){return!!lc}),hc=EA.map(function(lc){return lc.offlineVideoPolicy}).filter(function(lc){return!!lc}),jR=EA.filter(function(lc){return!!lc.key}).map(function(lc){return _.na(_.XX(lc.key).entityId,
"downloadStatusEntity")});
mj=rG(ZZ,"transfer",mj);hc=rG(ZZ,"offlineVideoPolicy",hc);jR=rG(ZZ,"downloadStatusEntity",jR);var QF=mj.then(function(lc){lc=lc.reduce(function(TG,G4){(G4==null?0:G4.offlineVideoStreams)&&TG.push.apply(TG,_.Cm(G4.offlineVideoStreams));return TG},[]).filter(function(TG){return!!TG});
return rG(ZZ,"offlineVideoStreams",lc)});
return R2.all([mj,hc,QF,jR]).then(function(lc){var TG=_.P(lc);lc=TG.next().value;var G4=TG.next().value;var OX=TG.next().value;TG=TG.next().value;return[EA,lc,G4,OX,TG]})})}),2);
if(C$.nextAddress!=3)return w=C$.yieldResult,_.H(C$,_.iA(q,{mode:"readonly",enableRetries:!0},function(ZZ){return rG(ZZ,"mainDownloadsListEntity").then(function(EA){var mj,hc;return(hc=(mj=EA[0])==null?void 0:mj.downloads)!=null?hc:[]})}),3);
u=C$.yieldResult;y=_.P(w);e=y.next().value;t=y.next().value;X=y.next().value;G=y.next().value;n=y.next().value;N=e;Q=t;I=X;U=G;d=n;V={};J={};a={};b={};g={};l=[];S=_.P(Q);for(eH=S.next();!eH.done;eH=S.next())(x=eH.value)&&(V[x.key]=x);P4=_.P(I);for(C7=P4.next();!C7.done;C7=P4.next())(mu=C7.value)&&(J[mu.key]=mu);Os=_.P(d);for(YJ=Os.next();!YJ.done;YJ=Os.next())(ao=YJ.value)&&(a[ao.key]=ao);bc=_.P(U);for(Ro=bc.next();!Ro.done;Ro=bc.next())(K7=Ro.value)&&(b[K7.key]=K7);gx=_.P(u);for(dx=gx.next();!dx.done;dx=
gx.next())tc=dx.value,Fa=void 0,g[(Fa=tc.videoItem)!=null?Fa:""]=!0,tc.videoItem&&(Hk=eq=void 0,W3=(Hk=(eq=_.XX(tc.videoItem))==null?void 0:eq.entityId)!=null?Hk:"",l.push({externalVideoId:W3}));gV=N.filter(function(ZZ){if(!ZZ||!ZZ.key||!ZZ.offlineVideoPolicy)return!1;ZZ=_.XX(ZZ.key).entityId;ZZ=_.na(ZZ,"downloadStatusEntity");var EA;return!(ZZ&&((EA=a[ZZ])==null?void 0:EA.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
Fl=gV.map(function(ZZ){var EA=V[ZZ.transfer],mj=[];if(EA==null?0:EA.offlineVideoStreams)for(var hc=_.P(EA.offlineVideoStreams),jR=hc.next();!jR.done;jR=hc.next())(jR=b[jR.value])&&mj.push(jR);hc=J[ZZ.offlineVideoPolicy];jR=g;var QF=ZZ==null?void 0:ZZ.playerResponseTimestamp,lc=_.XX(hc.key).entityId;ZZ=_.na(lc,"mainVideoEntity");if(hc.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var TG="OFFLINE_VIDEO_STATE_DISABLED";hc.expirationTimestamp&&Number(hc.expirationTimestamp)<Date.now()/1E3&&(TG="OFFLINE_VIDEO_STATE_EXPIRED")}else if(hc.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")TG="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(EA==null?void 0:EA.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":TG="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":TG="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":TG="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":TG="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":TG="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":TG="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:TG="OFFLINE_VIDEO_STATE_UNKNOWN"}if(TG==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(EA==null?void 0:EA.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":TG="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":TG="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":TG=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}lc={id:lc,videoState:TG};if(EA==null?0:EA.cotn)lc.cotn=EA.cotn;if(EA==null?0:EA.maximumDownloadQuality)lc.selectedVideoQuality=EA==null?void 0:EA.maximumDownloadQuality;if(EA==null?0:EA.lastProgressTimeMs)lc.lastProgressTimeMs=EA.lastProgressTimeMs;QF&&(lc.playerResponseSavedTimeMs=String(Number(QF)*1E3));EA=String;QF=0;mj=_.P(mj);for(TG=mj.next();!TG.done;TG=mj.next())if(TG=TG.value,TG.streamsProgress){TG=_.P(TG.streamsProgress);for(var G4=TG.next();!G4.done;G4=
TG.next()){var OX=void 0;QF+=Number((OX=G4.value.numBytesDownloaded)!=null?OX:0)}}lc.downloadedBytes=EA(QF);lc.selectedOfflineMode=jR[ZZ]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";hc.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(lc.offlinePlaybackDisabledReason=hc.offlinePlaybackDisabledReason);return lc});
return C$.return({offlineVideos:Fl,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:l}}})})};
Zwy=function(){var q;return _.F(function(w){return w.nextAddress==1?_.H(w,_.Nt(),2):(q=w.yieldResult)?w.return(_.Dxu(q)):w.return({state:"PES Unavailable"})})};
vOJ=function(){var q,w,u,y;return _.F(function(e){if(e.nextAddress==1)return _.H(e,_.Nt(),2);if(e.nextAddress!=3)return(q=e.yieldResult)?_.H(e,pnc(q),3):e.return({state:"PES Unavailable"});w=e.yieldResult;u={};y=w.reduce(function(t,X){t[X.key]=X;return t},u);
return e.return($xl(y))})};
$xl=function(q){for(var w={},u=[],y=_.P(Object.keys(q)),e=y.next();!e.done;e=y.next()){var t=e.value;e=q[t];var X=void 0;if(((X=e)==null?void 0:X.entityType)==="mainVideoEntity"){delete q[t];var G=e.data;e={};if(G){var n=void 0;X=(n=G.videoId)!=null?n:"vid-"+t;t=q;e.video=G;delete e.video.formattedDescription;delete e.video.thumbnail;G.owner&&(n=t[G.owner],n==null?0:n.data)&&(delete t[n.key],e.video.owner=n.data,delete e.video.owner.avatar);if(G=G.downloadState)if(n=t[G],n==null?0:n.data)if(delete t[G],
G=n.data.playbackData)if(n=t[G],n!=null&&n.data){delete t[G];G=n.data;delete G.playerResponseJson;e.playbackData=G;if(G.transfer&&(n=t[G.transfer],n==null?0:n.data)){delete t[n.key];var N=n.data;e.transfer=N;n=[];N=_.P(N.offlineVideoStreams||[]);for(var Q=N.next();!Q.done;Q=N.next())if(Q=t[Q.value])delete t[Q.key],n.push(Q.data);n&&(e.streams=n)}(G=G.offlineVideoPolicy)&&(G=t[G])&&G.data&&(delete t[G.key],e.offlineVideoPolicy=G.data)}w[X]=e}}else e&&e.entityType==="offlineOrchestrationActionWrapperEntity"&&
e.data&&(delete q[e.key],X=e.data,t=void 0,u.push({id:X.rootActionId,type:((t=X.actionProto)==null?void 0:t.actionType)||"",entity:e}))}w.wrapperEntities=u;Object.keys(q).length>0&&(w.unknownKeys=q);return w};
bwo=function(){var q,w,u,y,e,t,X,G,n;return _.F(function(N){if(N.nextAddress==1)return q=!!(new _.gr("")).expiringStorage_,y=!!((w=_.uc.crypto)==null?0:(u=w.subtle)==null?0:u.importKey),e=!!_.uc.BroadcastChannel,t=!!_.uc.navigator.locks,_.H(N,YMc(),2);X=N.yieldResult;G=q&&y&&e&&t&&X;n={isSupported:G};if(G)return N.return(n);n.missingBrowserFeatures=[];X||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");q||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
y||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");e||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");t||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return N.return(n)})};
YVu=function(){var q;return!((q=GT?GT:null)==null||!q.window)};
_.EOl=function(q){if(_.Jz()&&_.nJz("Chromium")>=120){var w=_.gOo().mediaSession;try{w.setActionHandler("enterpictureinpicture",function(){q()})}catch(u){}}};
Rel=function(q){for(var w=[],u=_.P(document.styleSheets),y=u.next(),e={};!y.done;e={node$jscomp$724:void 0},y=u.next())e.node$jscomp$724=y.value.ownerNode,e.node$jscomp$724&&(e.node$jscomp$724 instanceof HTMLStyleElement||e.node$jscomp$724 instanceof HTMLLinkElement)&&w.push(new Promise(function(t){return function(X){var G=t.node$jscomp$724.cloneNode(!0);G.onload=function(){X()};
G.onerror=function(){_.Y8(Error("ej"));X()};
q.document.head.appendChild(G)}}(e)));
return Promise.all(w)};
xxM=function(q){var w=[_.BI(cJ4),_.BI(SV6),_.BI(heo)];jcz(window.document.documentElement,q.document.documentElement,[_.BI(lgy),_.BI(Lfc),_.BI(Mkf),_.BI(Kff),_.BI(BJ7)]);jcz(window.document.body,q.document.body,w)};
jcz=function(q,w,u){q=_.P(q.attributes);for(var y=q.next();!y.done;y=q.next())if(y=y.value)try{_.gB(u,w,y.name,y.value)}catch(e){}};
wBc=function(q,w){q=new _.nC(q.document.documentElement);q.start(q_J,w);return q};
utJ=function(q){var w=q.document.documentElement;w.addEventListener("click",function(u){mJy(w,u)});
w.addEventListener("touchstart",function(u){DJs(u)});
w.addEventListener("mousedown",function(u){DJs(u)})};
ecM=function(q,w,u,y){y=y===void 0?!1:y;w=new ynj(w||q,u||q);return{x:q.x+((y===void 0?0:y)?w.lengthX*-1:w.lengthX)*.2,y:q.y+((y===void 0?0:y)?w.lengthY*-1:w.lengthY)*.2}};
kYM=function(q){if(!q)return!1;var w=q.status==="OK"||q.status==="LIVE_STREAM_OFFLINE",u,y,e,t=(e=(u=q.errorScreen)==null?void 0:u.playerLegacyDesktopYpcTrailerRenderer)!=null?e:(y=q.errorScreen)==null?void 0:y.ypcTrailerRenderer;return!!w||!!t};
_.tu6=function(q,w){if(!q)return!1;var u,y=(u=q.errorScreen)==null?void 0:u.playerLegacyDesktopYpcOfferRenderer,e;w=!!(w==null?0:(e=w.playerOverlayRenderer)==null?0:e.gatedActionsOverlayRenderer);return!!kYM(q)||!!y||!!w};
FAs=function(q){return PLj(q,0,"gclid",q.search(XBs))>=0||PLj(q,0,"gad_source",q.search(XBs))>=0};
H8j=function(q){var w=[],u=0;return{push:function(y){w[u]=y;u=(u+1)%q},
iterate:function(){return function e(){var t,X,G,n;return _.GY6(e,function(N){switch(N.nextAddress){case 1:_.Fg(N,2),t=w.length,X=0;case 4:if(!(X<t)){N.jumpTo(2);break}G=u+X;n=_.n7u;return _.H(N,w[G%t],7);case 7:n(N.yieldResult);X++;N.jumpTo(4);break;case 2:_.Xg(N),_.G7(N,0)}})}()}}};
sju=function(){var q=_.Fc("web_max_tracing_events",0);_.T("web_enable_tracing")&&q>0&&WAy(q)};
WAy=function(q){var w=H8j(q);z_7({sample:function(u,y){return u==="event"?!NKc.has(y==null?void 0:y.type):!1},
spanProcessors:[{onSpanStart:function(u){w.push(u)}}]});
rBj.subscribe("handleError",function(u){try{Object.assign(u.params,{breadcrumbs:JSON.stringify(Array.from(w.iterate()))})}catch(y){_.vm(y,"ERROR")}})};
Qj4=function(q){return new Promise(function(w){window.setTimeout(w,q)})};
IAl=function(q){var w={bicf:function(t){q.wT6=t},
blc:function(){return q.getLatestChallengeResponse()},
bcr:function(t){q.cPC.push(t)}},u=window.top;
u.ntpevasrs=w;if(u.ntpqfbel!==void 0)for(var y=_.P(u.ntpqfbel),e=y.next();!e.done;e=y.next())e=e.value,e(w);u.ntpqfbel=void 0};
i8H=function(q){return _.F(function(w){if(w.nextAddress==1)return _.tD(w,2),_.H(w,q.rRB(),4);if(w.nextAddress!=2)return _.jv(w,0);_.nm(w);_.HI(w)})};
rns=function(q){var w,u;(w=q.ytcsi)==null||(u=w.tick)==null||u.call(w,"pot_ist")};
Uyy=function(q){if(q instanceof Error){var w=_.hP("yt.logging.errors.log");w&&w(q,"WARNING")}};
TKs=function(q){try{var w=JSON.parse(q);if(w.bgChallenge)return w}catch(u){}};
dyM=function(){var q=window,w={networkStatusManagerPromise:_.tG().resolve(new CV4(_.MQ)),initialChallengeSli:_.T("wpo_att_sli")?new _.f9z("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};q=q===void 0?window:q;var u=q.ytAtR,y;w==null||(y=w.initialChallengeSli)==null||_.Hr(y);if(u){if(u=TKs(u)){var e;w==null||(e=w.initialChallengeSli)==null||_.Wr(e,"SUCCESS");CLM(u,w)}q.ytAtR=void 0}else q.ytAtRC=function(t){if(t=TKs(t)){var X;w==null||(X=w.initialChallengeSli)==null||
_.Wr(X,"SUCCESS");CLM(t,w);q.ytAtRC=void 0}}};
Vuy=function(){if(O8f)return O8f;try{var q=_.rg("IFRAME");_.Ja(q,_.qK(o7l));q.sandbox.add("allow-same-origin");q.style.display="none";document.body.appendChild(q);return O8f=q}catch(w){q=new _.fv("Failed to create sandbox iframe"),_.vm(q)}};
fA7=function(q){var w,u;return(u=q==null?void 0:(w=q.contentWindow)==null?void 0:w.fetch)!=null?u:window.fetch};
myf=function(q){var w,u;return(u=q==null?void 0:(w=q.contentWindow)==null?void 0:w.JSON.parse)!=null?u:JSON.parse};
AnM=function(q){var w,u;return(u=q==null?void 0:(w=q.contentWindow)==null?void 0:w.Request)!=null?u:window.Request};
aAs=function(){if(zMJ()==="hidden")var q="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else zMJ()==="visible"&&(q="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",Jnu=null);q&&zcf(q)};
zcf=function(q){if(q==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||q==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(Dyz===q)return;Dyz=q}var w=9E4+Math.random()*2E3;if(q!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Pm()>w)&&zMJ()==="visible"){w=-1;Jnu&&(w=Math.round((0,_.eW)()-Jnu));var u=String;var y=_.hP("_fact",window);y=y==null||y==-1?-1:Math.max(Date.now()-y,0);_.pn("foregroundHeartbeat",{firstActivityMs:u(y),clientDocumentNonce:XJz,index:String(Z86),lastEventDeltaMs:String(w),trigger:q});
_.wr("_fact",-1,window);Z86++;Jnu=(0,_.eW)()}};
_.pBc=function(){try{return!!self.sessionStorage}catch(q){return!1}};
$yu=function(){var q=navigator;return new Promise(function(w,u){var y;(y=q.webkitTemporaryStorage)!=null&&y.queryUsageAndQuota?q.webkitTemporaryStorage.queryUsageAndQuota(function(e,t){w({usage:e,quota:t})},function(e){u(e)}):u(Error("nj"))})};
v7H=function(q,w){var u={errorSeverity:w.errorSeverity.toString(),wizFeatureFlags:Object.entries(w.featureFlags).join("\n")};tDf(w,u);w=w.errorSeverity;w===3?_.vm(q,"ERROR",void 0,void 0,void 0,u):w===2&&_.vm(q,"WARNING",void 0,void 0,void 0,u);_.T("cow_if_errors_in_popup")&&w===3&&q.message.indexOf("<If>")!==-1&&window.alert(q.message)};
b8y=function(q,w,u){q.componentType!==AX&&u instanceof HTMLElement&&w&&!_.T("cow_logging_in_component_wrapper")&&Qnl(u,w,!0)};
Y_j=function(q,w,u){w=w===void 0?{}:w;var y,e=(y=_.C(q.commandMetadata,_.wk))==null?void 0:y.url;y=w.form||{};!u||y.element||y.skipDefaultElement||(w.form=w.form||{},w.form.element=u);if(e&&e!=="/service_ajax")return{type:0,command:q,form:w.form};if(_.T("kevlar_service_command_check")){if(_.RV(_.tG().resolve(_.oi),q))return Object.assign({},{type:1,command:q},w)}else{var t;if((t=_.C(q.commandMetadata,_.wk))==null?0:t.apiUrl)return Object.assign({},{type:1,command:q},w)}return{type:2,command:q,form:w.form}};
g7c=function(q){if(q.form){var w=q.form,u=Object.assign({},w);w=w.element;u=(delete u.element,u);if(w)return[_.GM(w,[q.command,u,q.commandController])]}return[]};
E7o=function(q){if(q.form){var w=q.form,u=Object.assign({},w);w=w.element;u=(delete u.element,u);w&&_.nq(w,[q.command],w,u)}};
cnJ=function(q,w,u){var y=new Rcz(q,w),e=new sI(q,w,u);q={"/youtubei/v1/browse":new NL(q,w,u),"/youtubei/v1/player":y,"/youtubei/v1/navigation/resolve_url":new Qk,"/youtubei/v1/next":e,"/youtubei/v1/guide":new I5(u),"/youtubei/v1/search":new iU(q,w,u),"/youtubei/v1/reel/reel_item_watch":new rZ(q,w,u),"/youtubei/v1/get_watch":new UI(y,e)};q["/youtubei/v1/account/account_menu"]=new TT;q["/youtubei/v1/notification/get_notification_menu"]=new CC;return q};
OI=function(){var q=_.tG().resolve(dZ);return Promise.resolve(S_4(q,_.uc.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
hcy=function(q){return q&&(q=_.o5(_.xnM(q)))?(new URLSearchParams(q)).get("service"):null};
mp=function(q,w){_.ko(_.Vk(),function(){_.D_("adl")});
_.tG().resolve(jjc)(w);q=q.root;q.loadData&&q.loadData(w);(w==null?0:w.response)?_.Wr(J5y(),"SUCCESS"):_.Y8(new _.fv("Lifecycle: No response in data",_.RX("IS_SHELL_LOAD"),w?w.page:"NO_PAGE",w?w.endpoint:"NO_ENDPOINT"));q.polymerController.$["page-manager"].lazyPrepareCriticalPages((w==null?void 0:w.page)||"",w.endpoint);var u,y;((y=_.C(w==null?void 0:(u=w.endpoint)==null?void 0:u.commandMetadata,_.wk))==null?0:y.webPageType)&&_.Mt().dispatch(_.fC(_.C(w.endpoint.commandMetadata,_.wk).webPageType))};
lA7=function(){var q,w;return _.F(function(u){switch(u.nextAddress){case 1:q=window;if(!q.getDataPromise){u.jumpTo(2);break}_.tD(u,3);return _.H(u,q.getDataPromise(),5);case 5:return u.return(u.yieldResult);case 3:return _.nm(u),_.H(u,OI(),6);case 6:return u.return(u.yieldResult);case 2:if(q.getInitialData)return w=q.getInitialData(),q.getInitialData=void 0,u.return(w);throw Error("pj`"+_.uc.location.href);}})};
Muo=function(){_.g_("CSI_SERVICE_NAME","youtube");_.zM({loadType:"cold"});_.T("kevlar_log_lcp")&&LA4(function(q){_.D_("lcp",q.value)})};
KAM=function(){var q=_.c2(document.location.href,"enable");q&&q.indexOf("scraper")>-1&&_.g_("ADD_SCRAPER_ATTRIBUTES",!0)};
uxo=function(q){var w=q.root;q=[BKo,xyo,_.AI];_.T("web_feedback_endpoint_autolog_allowlist_killswitch")&&q.push(_.JI,qmM);wco(function(u,y){return Y_j(u,y,w)},function(u){if(!u.command)return[];
var y;((y=u.form)==null?0:y.element)?u.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},u.form,{endpoint:u.command})})):w.handleNavigate(u);return[]},q);
_.tG().addProvider({provide:_.PG,useValue:_.nx.instance})};
emu=function(){var q={},w={},u;for(u in ykj){var y=_.P(_.r4(ykj[u],void 0,"NBH2te"));q[u]=y.next().value;w[u]=y.next().value}return[q,function(e){for(var t in e){var X=void 0;(X=w[t])==null||X(e[t])}}]};
_.PSJ=function(q,w){var u=_.db.getValueByKeys(q,"contents","twoColumnWatchNextResults","results","results","contents"),y=_.db.getValueByKeys(q,"contents","twoColumnWatchNextResults","playlist","playlist")||null,e=null,t=null;if(y)e=_.db.getValueByKeys(y,"titleText"),t=_.db.unsafeClone(_.db.getValueByKeys(y,"longBylineText")),u="",t&&(u=_.lA(t)),t=_.jN(u);else if(u){u=_.P(u);for(var X=u.next();!X.done;X=u.next())X=X.value,X.videoPrimaryInfoRenderer&&(e=_.db.getValueByKeys.apply(_.db,[X].concat(_.Cm(k0M)))),
X.videoSecondaryInfoRenderer&&(t=_.db.getValueByKeys.apply(_.db,[X].concat(_.Cm(tPH))))}else _.jZ(Error("uj"));var G;q.currentVideoEndpoint?G=q.currentVideoEndpoint:_.jZ(Error("vj"));var n;w&&(n=_.db.getValueByKeys(w,"playabilityStatus","miniplayer","miniplayerRenderer"));q={miniplayerTitle:e,miniplayerSubtitle:t,watchEndpoint:G,playlistData:y};n&&(q.miniplayerRenderer=n);return q};
Xcf=function(q){if(q)return _.JB(q)};
_.FCM=function(){return{isFullscreen:function(){throw Error("wj");},
toggleFullscreen:function(){throw Error("xj");},
exitFullscreen:function(){throw Error("yj");},
isAutonavEnabled:function(){throw Error("zj");},
setAutonavEnabled:function(){throw Error("Aj");},
isAutoplaySetExplicitly:function(){throw Error("Bj");}}};
G0M=function(q){return q.videoDuration?q.numTaps>1&&q.tapDirection!==0?_.zT(q.draggedTime/q.videoDuration,0,1):_.zT((q.playedTime||0)/q.videoDuration,0,1):0};
nqf=function(q){return q.videoDuration?q.isDragging||q.numTaps>1&&q.tapDirection!==0?_.zT(q.draggedTime/q.videoDuration,0,1):_.zT((q.playedTime||0)/q.videoDuration,0,1):0};
WC6=function(q){var w,u,y;return _.C(q==null?void 0:(w=q.markersMap)==null?void 0:(u=w.find(function(e){return e.key==="HEATSEEKER"}))==null?void 0:(y=u.value)==null?void 0:y.heatmap,Hko)};
sUu=function(q){var w,u;return(u=(w=WC6(q))==null?void 0:w.heatMarkersDecorations)!=null?u:[]};
N0u=function(q){if(_.T("mweb_supported_chapters_killswitch"))return!0;var w;return!!(q==null?0:(w=q.markersMap)==null?0:w.find(function(u){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(u.key)}))};
_.QU4=function(q){var w=Object,u=w.assign,y;q={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(y=q==null?void 0:q.getPlayerState())!=null?y:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return u.call(w,{},{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},q,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
I0H=function(q){return function(w){var u=q(),y,e=(y=u.playerApi)==null?void 0:y.getPlayerState();w&&w!==u.playerState&&(w===1||w===2)&&u.setState({playerState:e})}};
rkM=function(q){return function(w){var u=q(),y=u.playerApi;y&&(w==null?void 0:w.type)==="newdata"&&(ik4&&(clearTimeout(ik4),ik4=void 0),_.T("web_shorts_use_progress_state_for_gapless")?(w=y==null?void 0:y.getProgressState(w==null?void 0:w.playertype),w=w.seekableEnd-w.seekableStart):w=y==null?void 0:y.getDuration(w==null?void 0:w.playertype),u.setState({playedTime:0,videoDuration:w}))}};
UNl=function(q){return function(w){var u=q(),y=u.playerApi;if(y){var e=y.getPresentingPlayerType();_.T("web_shorts_use_progress_state_for_gapless")?(y=y.getProgressState(e),y=y.seekableEnd-y.seekableStart):y=y.getDuration(e);u.setState({playedTime:w,videoDuration:y})}}};
dNl=function(q){var w=q.element;var u=q.veType;var y=q.storedVisualElement===void 0?null:q.storedVisualElement;var e=q.elementIndex===void 0?0:q.elementIndex;q=q.clientYouTubeData;var t=_.pN();t!==T0H&&(CSM.clear(),T0H=t);if(w.visualElement&&CSM.has(w.visualElement))return null;if(y&&CSM.has(y))return w.visualElement=y,null;u=_.N2(_.Qz(),{veType:u,elementIndex:e,clientYouTubeData:q});if(!u)return null;w.visualElement=u;CSM.add(u);return u};
_.a5=function(q,w,u,y){u=u===void 0?null:u;y=y===void 0?Yds:y;var e=e===void 0?null:e;Vz(function(){if(w){u instanceof Function&&(u=u());var t=dNl({element:w,veType:q,storedVisualElement:u,clientYouTubeData:void 0});t&&(RiH(w,e),y(t))}})};
oq6=function(q){_.a5(112394,q,function(){return OkH},function(w){OkH=w})};
mNj=function(q,w){if(!q)return[];var u,y,e;q=((u=q.markersMap)==null?void 0:(y=u.find(function(t){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(t.key)}))==null?void 0:(e=y.value)==null?void 0:e.chapters)||[];
!VPH(q)||(w==null?0:w.ignoreStub)||(q=[f0f()].concat(_.Cm(q)));return q};
f0f=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
VPH=function(q){if(q.length===0)return!1;var w;return((w=_.C(q[0],Dz))==null?void 0:w.timeRangeStartMillis)!==0};
Zz=function(q){return q?q.timeRangeStartMillis||0:0};
Jko=function(q,w){if(q.isDragging&&w)return q=Akf(q,w),q===-1?f0f():mNj(w)[q]};
Akf=function(q,w){return q.isDragging&&w?mNj(w,{ignoreStub:!0}).findIndex(function(u,y,e){u=zmj(q);return a0s(u,e,y).scrubberHovering}):-1};
zmj=function(q){return Object.assign({},q,{videoDuration:q.videoDuration*1E3,playedTime:q.playedTime*1E3,draggedTime:q.draggedTime*1E3})};
a0s=function(q,w,u){var y=Zz(_.C(w[u],Dz));w=Zz(_.C(w[u+1],Dz))||q.videoDuration;u=q.isDragging;var e;if(e=q.isDragging)e=q.draggedTime,e=e!==null&&e>=y&&e<w;var t=q.playedTime;return t!==null&&t>=y&&t<w?{videoPosition:"active",isScrubbing:u,scrubberHovering:e}:q.playedTime<y?{videoPosition:"pending",isScrubbing:u,scrubberHovering:e}:{videoPosition:"seen",isScrubbing:u,scrubberHovering:e}};
DN6=function(q,w){return q.videoPosition==="seen"||(w===void 0?0:w)>0};
Zky=function(q,w,u){w=q/w.storyboardInterval;var y=mNj(u);if(!y.length)return-w*72;u=0;y=_.P(y);for(var e=y.next();!e.done;e=y.next())if(Zz(_.C(e.value,Dz))/1E3<q)u++;else break;return-(w*72)-u*56};
pcj=function(q){return q?q.width/q.columns:0};
$NM=function(q){return q.isHovering?q.hoveredTime:q.draggedTime};
vq7=function(q,w){q=q.draggedTime*1E3;return q>=w.visibleTimeRangeStartMillis&&q<=w.visibleTimeRangeEndMillis};
_.bkz=function(q){if(q===void 0||Number.isNaN(q))return"--:--";var w=Math.abs(Math.floor(q)),u=Math.floor(w/86400),y=Math.floor(w%86400/3600),e=Math.floor(w%3600/60);w=Math.floor(w%60);var t="";u>0&&(t+=u+":",y<10&&(t+="0"));if(u>0||y>0)t+=y+":",e<10&&(t+="0");t+=e+":";w<10&&(t+="0");t+=w;return q>=0?t:"-"+t};
Ymo=function(q,w){return function(){var u=$NM(q());var y=w();var e=q().playerApi;if(e&&e.getNumberOfStoryboardLevels()!==0){var t=e.getStoryboardFrameIndex(u,1);t!==-1?y=e.getStoryboardFrame(t,1):(u=e.getStoryboardFrameIndex(u,0),e=e.getStoryboardFrame(u,0),y&&e&&(e.height*=3,e.width*=3),y=e)}else y=null;if(!y)return null;w()&&(y.width=90*y.columns,y.height=160*y.rows);return y}};
_.pC=function(q){if(!q||q.getVideoData)return q};
gq4=function(){var q;return{playerApi:(q=_.Gn())!=null?q:void 0}};
_.hmu=function(q){function w(x){x!==0||I?x>50&&(I||!d)?(U(!1),V(!0)):x<=50&&(I||d)&&(U(!1),V(!1)):U(!0)}
function u(){var x;return _.F(function(P4){if(P4.nextAddress==1)return _.H(P4,_.Fu(),2);(x=P4.yieldResult)&&(x.isMuted()?U(!0):U(!1));_.HI(P4)})}
var y=q.noSlider;var e=q.orientation;q=_.Bm();var t=_.Bm(),X=_.x8(),G=_.P(NI(!1)),n=G.next().value,N=G.next().value,Q=_.P(NI(!1));G=Q.next().value;Q=Q.next().value;var I=G,U=Q;Q=_.P(NI(!0));G=Q.next().value;Q=Q.next().value;var d=G,V=Q;G=e==="vertical_down";_.p4(function(){function x(){N(!0)}
function P4(){N(!1)}
y?(u(),w(I?0:100)):X&&X.value&&(X.value.addEventListener("focus",x),X.value.addEventListener("focusout",P4),Eql(X.value).then(function(){w(Number(RmM(X.value)))}));
t&&t.value&&(t.value.addEventListener("focus",x),t.value.addEventListener("focusout",P4));return function(){var C7;X==null||(C7=X.value)==null||C7.removeEventListener("focus",x);var mu;X==null||(mu=X.value)==null||mu.removeEventListener("focusout",P4);t.value.removeEventListener("focus",x);t.value.removeEventListener("focusout",P4)}});
var J=_.QS(function(){if(X&&X.value){var x=Number(RmM(X.value));ckM(x);X.value.style.setProperty("--gradient-percent",x+"%");w(x)}return!1});
Q={};Q=(Q.ytdDesktopShortsVolumeControlsHost=!0,Q.ytdDesktopShortsVolumeControlsHostVertical=G,Q.ytdDesktopShortsVolumeControlsHostExpanded=n,Q);var a={},b=(a.ytdDesktopShortsVolumeControlsSliderContainer=!0,a.ytdDesktopShortsVolumeControlsSliderContainerExpanded=n,a.ytdDesktopShortsVolumeControlsSliderContainerVertical=G,a.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=e==="vertical_down",a.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=n&&G,a);e={};var g=(e.ytdDesktopShortsVolumeControlsBackgroundScrim=
!0,e.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=y?!1:n,e);n={};n=(n.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=G,n);e=_.QS(function(){N(!0)});
a=_.QS(function(){N(!1)});
var l=_.QS(function(){if(X&&X.value||y)Smf(X.value,I,y),U(!I);return!1}),S=_.T("web_shorts_keyboard_enable_mute_shortcut")?I?_.ID("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.ID("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):I?_.ID("UNMUTE_VOLUME",void 0,"Unmute"):_.ID("MUTE_VOLUME",void 0,"Mute"),eH={sources:[{clientResource:{imageName:I?_.T("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":d?_.T("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.T("web_shorts_modern_controls")?
"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]};
return _.W("desktop-shorts-volume-controls",{"on:pointerleave":a,class:_.s3(Q),el:q},uO(!G,function(){return _.W("div",{class:_.s3(g)})}),_.W("div",{class:_.s3(n)},_.W("button",{"aria-label":S,
title:S,el:t,"on:click":l,"on:pointerenter":e,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},eH?_.W(_.ln,{data:eH,alt:S,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),uO(!y,function(){return _.W("div",{class:_.s3(b)},_.W("input",{"aria-label":_.ID("VOLUME"),title:_.ID("VOLUME"),el:X,"on:input":J,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
Eql=function(q){var w,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,_.Fu(),2);w=y.yieldResult;u=50;w&&(u=w.getVolume(),w.isMuted()?jUH(q,0):jUH(q,u));_.HI(y)})};
ckM=function(q){var w;_.F(function(u){if(u.nextAddress==1)return _.H(u,_.Fu(),2);if(w=u.yieldResult)w.unMute(!0),w.setVolume(q,!0);_.HI(u)})};
jUH=function(q,w){q&&(q.value=""+w,q.style.setProperty("--gradient-percent",w+"%"))};
RmM=function(q){var w;return(w=q==null?void 0:q.value)!=null?w:0};
Smf=function(q,w,u){var y;_.F(function(e){if(e.nextAddress==1)return _.H(e,_.Fu(),2);y=e.yieldResult;w&&y?(y.unMute(!0),!u&&q&&jUH(q,y.getVolume())):y&&(y.mute(!0),!u&&q&&jUH(q,0));_.HI(e)})};
l0l=function(){var q;_.F(function(w){if(w.nextAddress==1)return _.H(w,_.Fu(),2);q=w.yieldResult;if(!q)return w.return();q.isMuted()?q.unMute(!0):q.mute(!0);_.HI(w)})};
LCs=function(q){var w=_.tG().resolve(_.$X).getPlayerElement();w&&q&&(q===1?w.pause():w.play())};
MPs=function(q){_.X4(q,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
KC6=function(q){_.X4(q,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
xN7=function(q){return _.aX(q.document.body,function(){return _.W(B0M,null)})};
qnz=function(){var q=window.performance.getEntriesByType("navigation");return q?q.map(function(w){return w.type}).includes("reload"):!1};
XqJ=function(){vr(vr(vr(vr(vr(vr(vr(_.tG().resolve(_.bU),_.wqc),_.uYc),_.y4J),_.eyM),_.kAj),_.tSJ),_.P07)};
Fqf=function(q,w){w=w===void 0?!1:w;var u,y,e,t;return _.F(function(X){if(X.nextAddress==1)return w||!_.T("kevlar_shorts_seedless_retry_initial_load")||(u=window,y=!(!u.getDataPromise&&!u.getInitialData),y)?_.H(X,lA7(),2):(setTimeout(Fqf.bind(window,q,!0),1E3),X.return());if(X.nextAddress!=3)return e=X.yieldResult,_.H(X,GAu(e),3);t=X.yieldResult;mp(q,t);_.HI(X)})};
GAu=function(q){var w;if((w=q.response)==null||!w.replacementEndpoint)return _.Hw(q);w=_.tG().resolve(dZ);q=q.response;_.C(q.replacementEndpoint,_.Tt)&&q.sequenceContinuation&&(_.C(q.replacementEndpoint,_.Tt).sequenceParams=q.sequenceContinuation);return YX(w,q.replacementEndpoint,{},_.uc.location.href,"shorts",function(){},function(){return!1})};
n3J=function(q){var w=_.Mt(),u,y=_.C((u=q.response)==null?void 0:u.frameworkUpdates,j6),e;u=_.C((e=q.playerResponse)==null?void 0:e.frameworkUpdates,j6);var t;q=_.C((t=q.reelWatchSequenceResponse)==null?void 0:t.frameworkUpdates,j6);y&&_.IO(y,w);u&&_.IO(u,w);q&&_.IO(q,w)};
HeH=function(q){var w;_.T("enable_redirect_linking_for_desktop_web_client")&&((w=window.location.hash)==null?0:w.includes("redirect_state"))&&q.url&&(q.url=q.url.toString()+window.location.hash)};
NUH=function(q){var w=_.tG(),u=w.resolve(dZ);w=w.resolve(_.Wqc);q.endpoint&&(u=sLy(u,q.endpoint),u.content&&q.response&&_.gZ(w,q.response,u.content),u.player&&q.playerResponse&&_.gZ(w,q.playerResponse,u.player),u.reelSequence&&q.reelWatchSequenceResponse&&_.gZ(w,q.reelWatchSequenceResponse,u.reelSequence))};
EI=function(q,w){n3J(w);var u;(w==null?0:w.url)&&((u=window.location.hash)==null?0:u.includes("redirect_state"))&&(HeH(w),(u=hcy(w.url))&&_.Pw(q.root,"yt-initialize-third-party",[u,w]));NUH(w);u=_.tG();var y=u.resolve(QLz);w.playerResponse&&u.resolve(I4u).handleResponse(w.playerResponse);if(w.playerResponse){u=void 0;if(_.T("ab_v_vid_sig")&&w.endpoint){var e,t=(e=_.C(w.endpoint,_.LN))!=null?e:_.C(w.endpoint,_.Tt);t&&(u=t.videoId)}ieM(y,w.playerResponse,u)}w.playerResponse&&li4(w.playerResponse)&&
_.T("web_enable_ab_rsp_cl")?nhH().then(function(){r4J(y,w.playerResponse);mp(q,w)}):mp(q,w)};
TUH=function(q){if(q=q.root.data){var w=_.tG().resolve(Uf4);q.endpoint&&(q.response&&w.handleResponse(q.response,void 0,document.querySelector("ytd-app")),q.playerResponse&&w.handleResponse(q.playerResponse),q.reelWatchSequenceResponse&&w.handleResponse(q.reelWatchSequenceResponse))}};
C0c=function(q){var w,u,y,e,t,X;return _.F(function(G){switch(G.nextAddress){case 1:w=window;if(!w.getDataPromise){G.jumpTo(2);break}_.tD(G,3);return _.H(G,w.getDataPromise(),5);case 5:u=G.yieldResult;EI(q,u);_.jv(G,4);break;case 3:return _.nm(G),_.H(G,OI(),6);case 6:y=G.yieldResult,mp(q,y);case 4:return G.return();case 2:if(!_.T("sw_nav_preload_pbj")){G.jumpTo(7);break}w.fetchInitialData=function(){var n;return _.F(function(N){if(N.nextAddress==1)return _.H(N,OI(),2);n=N.yieldResult;mp(q,n);_.HI(N)})};
if(w.getInitialData){w.loadInitialData=function(n){EI(q,n)};
e=w.getInitialData();w.getInitialData=void 0;EI(q,e);G.jumpTo(8);break}w.fetchInitialData=void 0;return _.H(G,OI(),9);case 9:t=G.yieldResult,mp(q,t);case 8:return G.return();case 7:w.getInitialData?(X=w.getInitialData(),w.getInitialData=void 0,EI(q,X)):w.loadInitialData=function(n){EI(q,n)},_.HI(G)}})};
dfJ=function(q){var w=0;return function(){return w<q.length?{done:!1,value:q[w++]}:{done:!0}}};
OeM=typeof Object.defineProperties=="function"?Object.defineProperty:function(q,w,u){if(q==Array.prototype||q==Object.prototype)return q;q[w]=u.value;return q};
o3y=function(q){q=["object"==typeof globalThis&&globalThis,q,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var w=0;w<q.length;++w){var u=q[w];if(u&&u.Math==Math)return u}throw Error("a");};
_.x$=o3y(this);R5=function(q,w){if(w)a:{var u=_.x$;q=q.split(".");for(var y=0;y<q.length-1;y++){var e=q[y];if(!(e in u))break a;u=u[e]}q=q[q.length-1];y=u[q];w=w(y);w!=y&&w!=null&&OeM(u,q,{configurable:!0,writable:!0,value:w})}};
R5("Symbol",function(q){if(q)return q;var w=function(t,X){this.$jscomp$symbol$id_=t;OeM(this,"description",{configurable:!0,writable:!0,value:X})};
w.prototype.toString=function(){return this.$jscomp$symbol$id_};
var u="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",y=0,e=function(t){if(this instanceof e)throw new TypeError("b");return new w(u+(t||"")+"_"+y++,t)};
return e});
R5("Symbol.iterator",function(q){if(q)return q;q=Symbol("c");for(var w="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),u=0;u<w.length;u++){var y=_.x$[w[u]];typeof y==="function"&&typeof y.prototype[q]!="function"&&OeM(y.prototype,q,{configurable:!0,writable:!0,value:function(){return VSl(dfJ(this))}})}return q});
R5("Symbol.asyncIterator",function(q){return q?q:Symbol("d")});
var VSl=function(q){q={next:q};q[Symbol.iterator]=function(){return this};
return q},f4J=typeof Object.create=="function"?Object.create:function(q){var w=function(){};
w.prototype=q;return new w},mfu=function(){function q(){function u(){}
new u;Reflect.construct(u,[],function(){});
return new u instanceof u}
if(typeof Reflect!="undefined"&&Reflect.construct){if(q())return Reflect.construct;var w=Reflect.construct;return function(u,y,e){u=w(u,y);e&&Reflect.setPrototypeOf(u,e.prototype);return u}}return function(u,y,e){e===void 0&&(e=u);
e=f4J(e.prototype||Object.prototype);return Function.prototype.apply.call(u,e,y)||e}}(),A4c;
if(typeof Object.setPrototypeOf=="function")A4c=Object.setPrototypeOf;else{var J4j;a:{var zy6={a:!0},a4M={};try{a4M.__proto__=zy6;J4j=a4M.a;break a}catch(q){}J4j=!1}A4c=J4j?function(q,w){q.__proto__=w;if(q.__proto__!==w)throw new TypeError("e`"+q);return q}:null}cr=A4c;
_.O=function(q,w){q.prototype=f4J(w.prototype);q.prototype.constructor=q;if(cr)cr(q,w);else for(var u in w)if(u!="prototype")if(Object.defineProperties){var y=Object.getOwnPropertyDescriptor(w,u);y&&Object.defineProperty(q,u,y)}else q[u]=w[u];q.superClass_=w.prototype};
_.P=function(q){var w=typeof Symbol!="undefined"&&Symbol.iterator&&q[Symbol.iterator];if(w)return w.call(q);if(typeof q.length=="number")return{next:dfJ(q)};throw Error("f`"+String(q));};
B2=function(q){for(var w,u=[];!(w=q.next()).done;)u.push(w.value);return u};
_.Cm=function(q){return q instanceof Array?q:B2(_.P(q))};
_.Sc=function(q){return Dfu(q,q)};
Dfu=function(q,w){q.raw=w;Object.freeze&&(Object.freeze(q),Object.freeze(w));return q};
hI=function(q,w){return Object.prototype.hasOwnProperty.call(q,w)};
Zes=typeof Object.assign=="function"?Object.assign:function(q,w){for(var u=1;u<arguments.length;u++){var y=arguments[u];if(y)for(var e in y)hI(y,e)&&(q[e]=y[e])}return q};
R5("Object.assign",function(q){return q||Zes});
var pq7=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},$fz=function(q){if(q.isRunning_)throw new TypeError("h");
q.isRunning_=!0};
pq7.prototype.JSC$6634_next_=function(q){this.yieldResult=q};
var v3z=function(q,w){q.abruptCompletion_={exception:w,isException:!0};q.nextAddress=q.catchAddress_||q.finallyAddress_};
pq7.prototype.return=function(q){this.abruptCompletion_={return:q};this.nextAddress=this.finallyAddress_};
_.H=function(q,w,u){q.nextAddress=u;return{value:w}};
pq7.prototype.jumpTo=function(q){this.nextAddress=q};
_.HI=function(q){q.nextAddress=0};
_.tD=function(q,w,u){q.catchAddress_=w;u!=void 0&&(q.finallyAddress_=u)};
_.Fg=function(q,w){q.catchAddress_=0;q.finallyAddress_=w||0};
_.jv=function(q,w,u){q.nextAddress=w;q.catchAddress_=u||0};
_.nm=function(q,w){q.catchAddress_=w||0;w=q.abruptCompletion_.exception;q.abruptCompletion_=null;return w};
_.Xg=function(q,w,u,y){y?q.finallyContexts_[y]=q.abruptCompletion_:q.finallyContexts_=[q.abruptCompletion_];q.catchAddress_=w||0;q.finallyAddress_=u||0};
_.G7=function(q,w,u){u=q.finallyContexts_.splice(u||0)[0];(u=q.abruptCompletion_=q.abruptCompletion_||u)?u.isException?q.nextAddress=q.catchAddress_||q.finallyAddress_:u.jumpTo!=void 0&&q.finallyAddress_<u.jumpTo?(q.nextAddress=u.jumpTo,q.abruptCompletion_=null):q.nextAddress=q.finallyAddress_:q.nextAddress=w};
bej=function(q){this.JSC$6639_context_=new pq7;this.program_=q};
g3H=function(q,w){$fz(q.JSC$6639_context_);var u=q.JSC$6639_context_.yieldAllIterator_;if(u)return Ynf(q,"return"in u?u["return"]:function(y){return{value:y,done:!0}},w,q.JSC$6639_context_.return);
q.JSC$6639_context_.return(w);return jc(q)};
Ynf=function(q,w,u,y){try{var e=w.call(q.JSC$6639_context_.yieldAllIterator_,u);if(!(e instanceof Object))throw new TypeError("g`"+e);if(!e.done)return q.JSC$6639_context_.isRunning_=!1,e;var t=e.value}catch(X){return q.JSC$6639_context_.yieldAllIterator_=null,v3z(q.JSC$6639_context_,X),jc(q)}q.JSC$6639_context_.yieldAllIterator_=null;y.call(q.JSC$6639_context_,t);return jc(q)};
jc=function(q){for(;q.JSC$6639_context_.nextAddress;)try{var w=q.program_(q.JSC$6639_context_);if(w)return q.JSC$6639_context_.isRunning_=!1,{value:w.value,done:!1}}catch(u){q.JSC$6639_context_.yieldResult=void 0,v3z(q.JSC$6639_context_,u)}q.JSC$6639_context_.isRunning_=!1;if(q.JSC$6639_context_.abruptCompletion_){w=q.JSC$6639_context_.abruptCompletion_;q.JSC$6639_context_.abruptCompletion_=null;if(w.isException)throw w.exception;return{value:w.return,done:!0}}return{value:void 0,done:!0}};
E37=function(q){this.next=function(w){$fz(q.JSC$6639_context_);q.JSC$6639_context_.yieldAllIterator_?w=Ynf(q,q.JSC$6639_context_.yieldAllIterator_.next,w,q.JSC$6639_context_.JSC$6634_next_):(q.JSC$6639_context_.JSC$6634_next_(w),w=jc(q));return w};
this.throw=function(w){$fz(q.JSC$6639_context_);q.JSC$6639_context_.yieldAllIterator_?w=Ynf(q,q.JSC$6639_context_.yieldAllIterator_["throw"],w,q.JSC$6639_context_.JSC$6634_next_):(v3z(q.JSC$6639_context_,w),w=jc(q));return w};
this.return=function(w){return g3H(q,w)};
this[Symbol.iterator]=function(){return this}};
_.GY6=function(q,w){w=new E37(new bej(w));cr&&q.prototype&&cr(w,q.prototype);return w};
Ryz=function(q){function w(y){return q.next(y)}
function u(y){return q.throw(y)}
return new Promise(function(y,e){function t(X){X.done?y(X.value):Promise.resolve(X.value).then(w,u).then(t,e)}
t(q.next())})};
_.F=function(q){return Ryz(new E37(new bej(q)))};
SgJ=function(q){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return q};
this.next=function(w){return Promise.resolve(q.next(w))};
this["throw"]=function(w){return new Promise(function(u,y){var e=q["throw"];e!==void 0?u(e.call(q,w)):(u=q["return"],u!==void 0&&u.call(q),y(new TypeError("i")))})};
q["return"]!==void 0&&(this["return"]=function(w){return Promise.resolve(q["return"](w))})};
_.Cj=function(){for(var q=Number(this),w=[],u=q;u<arguments.length;u++)w[u-q]=arguments[u];return w};
_.n7u=function(q){return q};
R5("globalThis",function(q){return q||_.x$});
R5("Reflect",function(q){return q?q:{}});
R5("Reflect.construct",function(){return mfu});
R5("Reflect.setPrototypeOf",function(q){return q?q:cr?function(w,u){try{return cr(w,u),!0}catch(y){return!1}}:null});
R5("Promise",function(q){function w(){this.batch_=null}
function u(X){return X instanceof e?X:new e(function(G){G(X)})}
if(q&&(typeof _.x$.PromiseRejectionEvent!=="undefined"||!_.x$.Promise||_.x$.Promise.toString().indexOf("[native code]")===-1))return q;w.prototype.asyncExecute=function(X){if(this.batch_==null){this.batch_=[];var G=this;this.asyncExecuteFunction(function(){G.executeBatch_()})}this.batch_.push(X)};
var y=_.x$.setTimeout;w.prototype.asyncExecuteFunction=function(X){y(X,0)};
w.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var X=this.batch_;this.batch_=[];for(var G=0;G<X.length;++G){var n=X[G];X[G]=null;try{n()}catch(N){this.asyncThrow_(N)}}}this.batch_=null};
w.prototype.asyncThrow_=function(X){this.asyncExecuteFunction(function(){throw X;})};
var e=function(X){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var G=this.createResolveAndReject_();try{X(G.resolve,G.reject)}catch(n){G.reject(n)}};
e.prototype.createResolveAndReject_=function(){function X(N){return function(Q){n||(n=!0,N.call(G,Q))}}
var G=this,n=!1;return{resolve:X(this.resolveTo_),reject:X(this.JSC$6655_reject_)}};
e.prototype.resolveTo_=function(X){if(X===this)this.JSC$6655_reject_(new TypeError("j"));else if(X instanceof e)this.settleSameAsPromise_(X);else{a:switch(typeof X){case "object":var G=X!=null;break a;case "function":G=!0;break a;default:G=!1}G?this.resolveToNonPromiseObj_(X):this.fulfill_(X)}};
e.prototype.resolveToNonPromiseObj_=function(X){var G=void 0;try{G=X.then}catch(n){this.JSC$6655_reject_(n);return}typeof G=="function"?this.settleSameAsThenable_(G,X):this.fulfill_(X)};
e.prototype.JSC$6655_reject_=function(X){this.settle_(2,X)};
e.prototype.fulfill_=function(X){this.settle_(1,X)};
e.prototype.settle_=function(X,G){if(this.state_!=0)throw Error("k`"+X+"`"+G+"`"+this.state_);this.state_=X;this.result_=G;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
e.prototype.scheduleUnhandledRejectionCheck_=function(){var X=this;y(function(){if(X.notifyUnhandledRejection_()){var G=_.x$.console;typeof G!=="undefined"&&G.error(X.result_)}},1)};
e.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var X=_.x$.CustomEvent,G=_.x$.Event,n=_.x$.dispatchEvent;if(typeof n==="undefined")return!0;typeof X==="function"?X=new X("unhandledrejection",{cancelable:!0}):typeof G==="function"?X=new G("unhandledrejection",{cancelable:!0}):(X=_.x$.document.createEvent("CustomEvent"),X.initCustomEvent("unhandledrejection",!1,!0,X));X.promise=this;X.reason=this.result_;return n(X)};
e.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var X=0;X<this.onSettledCallbacks_.length;++X)t.asyncExecute(this.onSettledCallbacks_[X]);this.onSettledCallbacks_=null}};
var t=new w;e.prototype.settleSameAsPromise_=function(X){var G=this.createResolveAndReject_();X.callWhenSettled_(G.resolve,G.reject)};
e.prototype.settleSameAsThenable_=function(X,G){var n=this.createResolveAndReject_();try{X.call(G,n.resolve,n.reject)}catch(N){n.reject(N)}};
e.prototype.then=function(X,G){function n(U,d){return typeof U=="function"?function(V){try{N(U(V))}catch(J){Q(J)}}:d}
var N,Q,I=new e(function(U,d){N=U;Q=d});
this.callWhenSettled_(n(X,N),n(G,Q));return I};
e.prototype.catch=function(X){return this.then(void 0,X)};
e.prototype.callWhenSettled_=function(X,G){function n(){switch(N.state_){case 1:X(N.result_);break;case 2:G(N.result_);break;default:throw Error("l`"+N.state_);}}
var N=this;this.onSettledCallbacks_==null?t.asyncExecute(n):this.onSettledCallbacks_.push(n);this.isRejectionHandled_=!0};
e.resolve=u;e.reject=function(X){return new e(function(G,n){n(X)})};
e.race=function(X){return new e(function(G,n){for(var N=_.P(X),Q=N.next();!Q.done;Q=N.next())u(Q.value).callWhenSettled_(G,n)})};
e.all=function(X){var G=_.P(X),n=G.next();return n.done?u([]):new e(function(N,Q){function I(V){return function(J){U[V]=J;d--;d==0&&N(U)}}
var U=[],d=0;do U.push(void 0),d++,u(n.value).callWhenSettled_(I(U.length-1),Q),n=G.next();while(!n.done)})};
return e});
var lU=function(q,w,u){if(q==null)throw new TypeError("m`"+u);if(w instanceof RegExp)throw new TypeError("n`"+u);return q+""};
R5("String.prototype.startsWith",function(q){return q?q:function(w,u){var y=lU(this,w,"startsWith"),e=y.length,t=w.length;u=Math.max(0,Math.min(u|0,y.length));for(var X=0;X<t&&u<e;)if(y[u++]!=w[X++])return!1;return X>=t}});
R5("Object.setPrototypeOf",function(q){return q||cr});
R5("Symbol.dispose",function(q){return q?q:Symbol("o")});
R5("SuppressedError",function(q){function w(u,y,e){if(!(this instanceof w))return new w(u,y,e);e=Error(e);"stack"in e&&(this.stack=e.stack);this.message=e.message;this.error=u;this.suppressed=y}
if(q)return q;_.O(w,Error);w.prototype.name="SuppressedError";return w});
var c4H=function(q,w,u){q instanceof String&&(q=String(q));for(var y=q.length,e=0;e<y;e++){var t=q[e];if(w.call(u,t,e,q))return{i:e,v:t}}return{i:-1,v:void 0}};
R5("Array.prototype.find",function(q){return q?q:function(w,u){return c4H(this,w,u).v}});
R5("WeakMap",function(q){function w(){}
function u(n){var N=typeof n;return N==="object"&&n!==null||N==="function"}
function y(n){if(!hI(n,t)){var N=new w;OeM(n,t,{value:N})}}
function e(n){var N=Object[n];N&&(Object[n]=function(Q){if(Q instanceof w)return Q;Object.isExtensible(Q)&&y(Q);return N(Q)})}
if(function(){if(!q||!Object.seal)return!1;try{var n=Object.seal({}),N=Object.seal({}),Q=new q([[n,2],[N,3]]);if(Q.get(n)!=2||Q.get(N)!=3)return!1;Q.delete(n);Q.set(N,4);return!Q.has(n)&&Q.get(N)==4}catch(I){return!1}}())return q;
var t="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var X=0,G=function(n){this.JSC$6662_id_=(X+=Math.random()+1).toString();if(n){n=_.P(n);for(var N;!(N=n.next()).done;)N=N.value,this.set(N[0],N[1])}};
G.prototype.set=function(n,N){if(!u(n))throw Error("p");y(n);if(!hI(n,t))throw Error("q`"+n);n[t][this.JSC$6662_id_]=N;return this};
G.prototype.get=function(n){return u(n)&&hI(n,t)?n[t][this.JSC$6662_id_]:void 0};
G.prototype.has=function(n){return u(n)&&hI(n,t)&&hI(n[t],this.JSC$6662_id_)};
G.prototype.delete=function(n){return u(n)&&hI(n,t)&&hI(n[t],this.JSC$6662_id_)?delete n[t][this.JSC$6662_id_]:!1};
return G});
R5("Map",function(q){if(function(){if(!q||typeof q!="function"||!q.prototype.entries||typeof Object.seal!="function")return!1;try{var G=Object.seal({x:4}),n=new q(_.P([[G,"s"]]));if(n.get(G)!="s"||n.size!=1||n.get({x:4})||n.set({x:4},"t")!=n||n.size!=2)return!1;var N=n.entries(),Q=N.next();if(Q.done||Q.value[0]!=G||Q.value[1]!="s")return!1;Q=N.next();return Q.done||Q.value[0].x!=4||Q.value[1]!="t"||!N.next().done?!1:!0}catch(I){return!1}}())return q;
var w=new WeakMap,u=function(G){this[0]={};this[1]=t();this.size=0;if(G){G=_.P(G);for(var n;!(n=G.next()).done;)n=n.value,this.set(n[0],n[1])}};
u.prototype.set=function(G,n){G=G===0?0:G;var N=y(this,G);N.list||(N.list=this[0][N.id]=[]);N.entry?N.entry.value=n:(N.entry={next:this[1],previous:this[1].previous,head:this[1],key:G,value:n},N.list.push(N.entry),this[1].previous.next=N.entry,this[1].previous=N.entry,this.size++);return this};
u.prototype.delete=function(G){G=y(this,G);return G.entry&&G.list?(G.list.splice(G.index,1),G.list.length||delete this[0][G.id],G.entry.previous.next=G.entry.next,G.entry.next.previous=G.entry.previous,G.entry.head=null,this.size--,!0):!1};
u.prototype.clear=function(){this[0]={};this[1]=this[1].previous=t();this.size=0};
u.prototype.has=function(G){return!!y(this,G).entry};
u.prototype.get=function(G){return(G=y(this,G).entry)&&G.value};
u.prototype.entries=function(){return e(this,function(G){return[G.key,G.value]})};
u.prototype.keys=function(){return e(this,function(G){return G.key})};
u.prototype.values=function(){return e(this,function(G){return G.value})};
u.prototype.forEach=function(G,n){for(var N=this.entries(),Q;!(Q=N.next()).done;)Q=Q.value,G.call(n,Q[1],Q[0],this)};
u.prototype[Symbol.iterator]=u.prototype.entries;var y=function(G,n){var N=n&&typeof n;N=="object"||N=="function"?w.has(n)?N=w.get(n):(N=""+ ++X,w.set(n,N)):N="p_"+n;var Q=G[0][N];if(Q&&hI(G[0],N))for(G=0;G<Q.length;G++){var I=Q[G];if(n!==n&&I.key!==I.key||n===I.key)return{id:N,list:Q,index:G,entry:I}}return{id:N,list:Q,index:-1,entry:void 0}},e=function(G,n){var N=G[1];
return VSl(function(){if(N){for(;N.head!=G[1];)N=N.previous;for(;N.next!=N.head;)return N=N.next,{done:!1,value:n(N)};N=null}return{done:!0,value:void 0}})},t=function(){var G={};
return G.previous=G.next=G.head=G},X=0;
return u});
R5("Set",function(q){if(function(){if(!q||typeof q!="function"||!q.prototype.entries||typeof Object.seal!="function")return!1;try{var u=Object.seal({x:4}),y=new q(_.P([u]));if(!y.has(u)||y.size!=1||y.add(u)!=y||y.size!=1||y.add({x:4})!=y||y.size!=2)return!1;var e=y.entries(),t=e.next();if(t.done||t.value[0]!=u||t.value[1]!=u)return!1;t=e.next();return t.done||t.value[0]==u||t.value[0].x!=4||t.value[1]!=t.value[0]?!1:e.next().done}catch(X){return!1}}())return q;
var w=function(u){this.JSC$6676_map_=new Map;if(u){u=_.P(u);for(var y;!(y=u.next()).done;)this.add(y.value)}this.size=this.JSC$6676_map_.size};
w.prototype.add=function(u){u=u===0?0:u;this.JSC$6676_map_.set(u,u);this.size=this.JSC$6676_map_.size;return this};
w.prototype.delete=function(u){u=this.JSC$6676_map_.delete(u);this.size=this.JSC$6676_map_.size;return u};
w.prototype.clear=function(){this.JSC$6676_map_.clear();this.size=0};
w.prototype.has=function(u){return this.JSC$6676_map_.has(u)};
w.prototype.entries=function(){return this.JSC$6676_map_.entries()};
w.prototype.values=function(){return this.JSC$6676_map_.values()};
w.prototype.keys=w.prototype.values;w.prototype[Symbol.iterator]=w.prototype.values;w.prototype.forEach=function(u,y){var e=this;this.JSC$6676_map_.forEach(function(t){return u.call(y,t,t,e)})};
return w});
R5("Math.log2",function(q){return q?q:function(w){return Math.log(w)/Math.LN2}});
R5("Object.values",function(q){return q?q:function(w){var u=[],y;for(y in w)hI(w,y)&&u.push(w[y]);return u}});
R5("Object.is",function(q){return q?q:function(w,u){return w===u?w!==0||1/w===1/u:w!==w&&u!==u}});
R5("Array.prototype.includes",function(q){return q?q:function(w,u){var y=this;y instanceof String&&(y=String(y));var e=y.length;u=u||0;for(u<0&&(u=Math.max(u+e,0));u<e;u++){var t=y[u];if(t===w||Object.is(t,w))return!0}return!1}});
R5("String.prototype.includes",function(q){return q?q:function(w,u){return lU(this,w,"includes").indexOf(w,u||0)!==-1}});
R5("Array.from",function(q){return q?q:function(w,u,y){u=u!=null?u:function(G){return G};
var e=[],t=typeof Symbol!="undefined"&&Symbol.iterator&&w[Symbol.iterator];if(typeof t=="function"){w=t.call(w);for(var X=0;!(t=w.next()).done;)e.push(u.call(y,t.value,X++))}else for(t=w.length,X=0;X<t;X++)e.push(u.call(y,w[X],X));return e}});
R5("Object.entries",function(q){return q?q:function(w){var u=[],y;for(y in w)hI(w,y)&&u.push([y,w[y]]);return u}});
R5("Number.isFinite",function(q){return q?q:function(w){return typeof w!=="number"?!1:!isNaN(w)&&w!==Infinity&&w!==-Infinity}});
R5("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
R5("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
R5("Number.isInteger",function(q){return q?q:function(w){return Number.isFinite(w)?w===Math.floor(w):!1}});
R5("Number.isSafeInteger",function(q){return q?q:function(w){return Number.isInteger(w)&&Math.abs(w)<=Number.MAX_SAFE_INTEGER}});
R5("String.prototype.endsWith",function(q){return q?q:function(w,u){var y=lU(this,w,"endsWith");u===void 0&&(u=y.length);u=Math.max(0,Math.min(u|0,y.length));for(var e=w.length;e>0&&u>0;)if(y[--u]!=w[--e])return!1;return e<=0}});
var SnM=function(q,w){q instanceof String&&(q+="");var u=0,y=!1,e={next:function(){if(!y&&u<q.length){var t=u++;return{value:w(t,q[t]),done:!1}}y=!0;return{done:!0,value:void 0}}};
e[Symbol.iterator]=function(){return e};
return e};
R5("Array.prototype.entries",function(q){return q?q:function(){return SnM(this,function(w,u){return[w,u]})}});
R5("Math.imul",function(q){return q?q:function(w,u){w=Number(w);u=Number(u);var y=w&65535,e=u&65535;return y*e+((w>>>16&65535)*e+y*(u>>>16&65535)<<16>>>0)|0}});
R5("Math.trunc",function(q){return q?q:function(w){w=Number(w);if(isNaN(w)||w===Infinity||w===-Infinity||w===0)return w;var u=Math.floor(Math.abs(w));return w<0?-u:u}});
R5("Number.isNaN",function(q){return q?q:function(w){return typeof w==="number"&&isNaN(w)}});
R5("Array.prototype.keys",function(q){return q?q:function(){return SnM(this,function(w){return w})}});
R5("Array.prototype.values",function(q){return q?q:function(){return SnM(this,function(w,u){return u})}});
R5("Array.prototype.fill",function(q){return q?q:function(w,u,y){var e=this.length||0;u<0&&(u=Math.max(0,e+u));if(y==null||y>e)y=e;y=Number(y);y<0&&(y=Math.max(0,e+y));for(u=Number(u||0);u<y;u++)this[u]=w;return this}});
var LC=function(q){return q?q:Array.prototype.fill};
R5("Int8Array.prototype.fill",LC);R5("Uint8Array.prototype.fill",LC);R5("Uint8ClampedArray.prototype.fill",LC);R5("Int16Array.prototype.fill",LC);R5("Uint16Array.prototype.fill",LC);R5("Int32Array.prototype.fill",LC);R5("Uint32Array.prototype.fill",LC);R5("Float32Array.prototype.fill",LC);R5("Float64Array.prototype.fill",LC);
R5("Object.fromEntries",function(q){return q?q:function(w){var u={};if(!(Symbol.iterator in w))throw new TypeError("r`"+w);w=w[Symbol.iterator].call(w);for(var y=w.next();!y.done;y=w.next()){y=y.value;if(Object(y)!==y)throw new TypeError("s");u[y[0]]=y[1]}return u}});
R5("String.prototype.replaceAll",function(q){return q?q:function(w,u){if(w instanceof RegExp&&!w.global)throw new TypeError("t");return w instanceof RegExp?this.replace(w,u):this.replace(new RegExp(String(w).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),u)}});
R5("Object.getOwnPropertySymbols",function(q){return q?q:function(){return[]}});
R5("String.prototype.repeat",function(q){return q?q:function(w){var u=lU(this,null,"repeat");if(w<0||w>1342177279)throw new RangeError("u");w|=0;for(var y="";w;)if(w&1&&(y+=u),w>>>=1)u+=u;return y}});
R5("Array.prototype.findIndex",function(q){return q?q:function(w,u){return c4H(this,w,u).i}});
R5("Array.prototype.flatMap",function(q){return q?q:function(w,u){var y=[];Array.prototype.forEach.call(this,function(e,t){e=w.call(u,e,t,this);Array.isArray(e)?y.push.apply(y,e):y.push(e)});
return y}});
R5("String.prototype.codePointAt",function(q){return q?q:function(w){var u=lU(this,null,"codePointAt"),y=u.length;w=Number(w)||0;if(w>=0&&w<y){w|=0;var e=u.charCodeAt(w);if(e<55296||e>56319||w+1===y)return e;w=u.charCodeAt(w+1);return w<56320||w>57343?e:(e-55296)*1024+w+9216}}});
R5("String.fromCodePoint",function(q){return q?q:function(w){for(var u="",y=0;y<arguments.length;y++){var e=Number(arguments[y]);if(e<0||e>1114111||e!==Math.floor(e))throw new RangeError("v`"+e);e<=65535?u+=String.fromCharCode(e):(e-=65536,u+=String.fromCharCode(e>>>10&1023|55296),u+=String.fromCharCode(e&1023|56320))}return u}});
R5("String.prototype.padStart",function(q){return q?q:function(w,u){var y=lU(this,null,"padStart");w-=y.length;u=u!==void 0?String(u):" ";return(w>0&&u?u.repeat(Math.ceil(w/u.length)).substring(0,w):"")+y}});
R5("Promise.prototype.finally",function(q){return q?q:function(w){return this.then(function(u){return Promise.resolve(w()).then(function(){return u})},function(u){return Promise.resolve(w()).then(function(){throw u;
})})}});
R5("Object.hasOwn",function(q){return q?q:function(w,u){return Object.prototype.hasOwnProperty.call(w,u)}});
R5("Math.sign",function(q){return q?q:function(w){w=Number(w);return w===0||isNaN(w)?w:w>0?1:-1}});
R5("Array.prototype.flat",function(q){return q?q:function(w){w=w===void 0?1:w;var u=[];Array.prototype.forEach.call(this,function(y){Array.isArray(y)&&w>0?(y=Array.prototype.flat.call(y,w-1),u.push.apply(u,y)):u.push(y)});
return u}});
R5("String.raw",function(q){return q?q:function(w,u){if(w==null)throw new TypeError("w");for(var y=w.raw,e=y.length,t="",X=0;X<e;++X)t+=y[X],X+1<e&&X+1<arguments.length&&(t+=String(arguments[X+1]));return t}});
R5("Reflect.ownKeys",function(q){return q?q:function(w){var u=[],y=Object.getOwnPropertyNames(w);w=Object.getOwnPropertySymbols(w);for(var e=0;e<y.length;e++)(y[e].substring(0,14)=="jscomp_symbol_"?w:u).push(y[e]);return u.concat(w)}});
R5("Object.getOwnPropertyDescriptors",function(q){return q?q:function(w){for(var u={},y=Reflect.ownKeys(w),e=0;e<y.length;e++)u[y[e]]=Object.getOwnPropertyDescriptor(w,y[e]);return u}});
R5("WeakSet",function(q){if(function(){if(!q||!Object.seal)return!1;try{var u=Object.seal({}),y=Object.seal({}),e=new q([u]);if(!e.has(u)||e.has(y))return!1;e.delete(u);e.add(y);return!e.has(u)&&e.has(y)}catch(t){return!1}}())return q;
var w=function(u){this.JSC$6683_map_=new WeakMap;if(u){u=_.P(u);for(var y;!(y=u.next()).done;)this.add(y.value)}};
w.prototype.add=function(u){this.JSC$6683_map_.set(u,!0);return this};
w.prototype.has=function(u){return this.JSC$6683_map_.has(u)};
w.prototype.delete=function(u){return this.JSC$6683_map_.delete(u)};
return w});
R5("Promise.allSettled",function(q){function w(y){return{status:"fulfilled",value:y}}
function u(y){return{status:"rejected",reason:y}}
return q?q:function(y){var e=this;y=Array.from(y,function(t){return e.resolve(t).then(w,u)});
return e.all(y)}});
R5("Number.parseInt",function(q){return q||parseInt});
_._DumpException=window._DumpException||function(q){throw q;};
window._DumpException=_._DumpException;var hyz,ML,KC,Br,jLM,l4M,Lqo,MSf,lj,Kqj;hyz=hyz||{};_.uc=this||self;_.wr=function(q,w,u){q=q.split(".");u=u||_.uc;for(var y;q.length&&(y=q.shift());)q.length||w===void 0?u[y]&&u[y]!==Object.prototype[y]?u=u[y]:u=u[y]={}:u[y]=w};
ML=function(q){var w=_.hP("WIZ_global_data.oxN3nb");q=w&&w[q];return q!=null?q:!1};
KC=_.uc._F_toggles||[];Br=function(){};
Br.get=function(){return null};
_.hP=function(q,w){q=q.split(".");w=w||_.uc;for(var u=0;u<q.length;u++)if(w=w[q[u]],w==null)return null;return w};
_.xX=function(q){q.instance_=void 0;q.getInstance=function(){return q.instance_?q.instance_:q.instance_=new q}};
_.IK=function(q){var w=typeof q;return w!="object"?w:q?Array.isArray(q)?"array":w:"null"};
_.uP=function(q){var w=_.IK(q);return w=="array"||w=="object"&&typeof q.length=="number"};
_.er=function(q){var w=typeof q;return w=="object"&&q!=null||w=="function"};
_.kT=function(q){return Object.prototype.hasOwnProperty.call(q,jLM)&&q[jLM]||(q[jLM]=++l4M)};
jLM="closure_uid_"+(Math.random()*1E9>>>0);l4M=0;Lqo=function(q,w,u){return q.call.apply(q.bind,arguments)};
MSf=function(q,w,u){if(!q)throw Error();if(arguments.length>2){var y=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,y);return q.apply(w,e)}}return function(){return q.apply(w,arguments)}};
_.fY=function(q,w,u){_.fY=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Lqo:MSf;return _.fY.apply(null,arguments)};
_.rk=function(q,w){var u=Array.prototype.slice.call(arguments,1);return function(){var y=u.slice();y.push.apply(y,arguments);return q.apply(this,y)}};
_.qG=function(){return Date.now()};
lj=function(q){return q};
_.w9=function(q,w){function u(){}
u.prototype=w.prototype;q.superClass_=w.prototype;q.prototype=new u;q.prototype.constructor=q;q.base=function(y,e,t){for(var X=Array(arguments.length-2),G=2;G<arguments.length;G++)X[G-2]=arguments[G];return w.prototype[e].apply(y,X)}};
Kqj=function(q){return q};var ukl,to4;_.c=function(q,w,u,y){var e=arguments.length,t=e<3?w:y===null?y=Object.getOwnPropertyDescriptor(w,u):y,X;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")t=Reflect.decorate(q,w,u,y);else for(var G=q.length-1;G>=0;G--)if(X=q[G])t=(e<3?X(t):e>3?X(w,u,t):X(w,u))||t;return e>3&&t&&Object.defineProperty(w,u,t),t};
_.h=function(q,w){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(q,w)};
ukl=function(q,w){if(w!==null&&w!==void 0){if(typeof w!=="object"&&typeof w!=="function")throw new TypeError("x");if(u===void 0){if(!Symbol.dispose)throw new TypeError("z");var u=w[Symbol.dispose]}if(typeof u!=="function")throw new TypeError("A");q.stack.push({value:w,dispose:u,async:!1})}return w};
to4=function(q){function w(t){q.error=q.hasError?new SuppressedError(t,q.error,"An error was suppressed during disposal."):t;q.hasError=!0}
function u(){for(;y=q.stack.pop();)try{if(!y.async&&e===1)return e=0,q.stack.push(y),Promise.resolve().then(u);if(y.dispose){var t=y.dispose.call(y.value);if(y.async)return e|=2,Promise.resolve(t).then(u,function(X){w(X);return u()})}else e|=1}catch(X){w(X)}if(e===1)return q.hasError?Promise.reject(q.error):Promise.resolve();
if(q.hasError)throw q.error;}
var y,e=0;u()};_.w9(_.qM,Error);_.qM.prototype.name="CustomError";var BUj;var xfu=void 0,qaH,w7j=typeof TextDecoder!=="undefined",yzy,ulo=typeof String.prototype.isWellFormed==="function",w4j=typeof TextEncoder!=="undefined";var uGy;_.ON=function(q){for(var w=[],u=0,y=0;y<q.length;y++){var e=q.charCodeAt(y);e<128?w[u++]=e:(e<2048?w[u++]=e>>6|192:((e&64512)==55296&&y+1<q.length&&(q.charCodeAt(y+1)&64512)==56320?(e=65536+((e&1023)<<10)+(q.charCodeAt(++y)&1023),w[u++]=e>>18|240,w[u++]=e>>12&63|128):w[u++]=e>>12|224,w[u++]=e>>6&63|128),w[u++]=e&63|128)}return w};
uGy=function(q){for(var w=[],u=0,y=0;u<q.length;){var e=q[u++];if(e<128)w[y++]=String.fromCharCode(e);else if(e>191&&e<224){var t=q[u++];w[y++]=String.fromCharCode((e&31)<<6|t&63)}else if(e>239&&e<365){t=q[u++];var X=q[u++],G=q[u++];e=((e&7)<<18|(t&63)<<12|(X&63)<<6|G&63)-65536;w[y++]=String.fromCharCode(55296+(e>>10));w[y++]=String.fromCharCode(56320+(e&1023))}else t=q[u++],X=q[u++],w[y++]=String.fromCharCode((e&15)<<12|(t&63)<<6|X&63)}return w.join("")};var ss=String.prototype.trim?function(q){return q.trim()}:function(q){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(q)[1]},yF4=/&/g,ev7=/</g,kBl=/>/g,tG7=/"/g,Pzu=/'/g,X7u=/\x00/g,FiM=/[\x00&<>"']/;var u8=!!(KC[0]>>15&1),GBy=!!(KC[0]>>16&1),nR7=!!(KC[0]&2),Hsl=!!(KC[0]&4),Wi4=!!(KC[0]&32),s_J=!!(KC[0]&512);var ic=u8?GBy:ML(610401301),Nzj=u8?nR7:ML(513659523),Q_6=u8?Hsl:ML(568333945),P36=u8?Wi4:ML(1331761403),Ipo=u8?s_J:ML(103340015);var rj,is4=_.uc.navigator;rj=is4?is4.userAgentData||null:null;var BT;_.c4=function(q,w){return Array.prototype.indexOf.call(q,w,void 0)};
_.L4=function(q,w,u){Array.prototype.forEach.call(q,w,u)};
_.yN=function(q,w,u){return Array.prototype.filter.call(q,w,u)};
_.or=function(q,w,u){return Array.prototype.map.call(q,w,u)};
BT=function(q,w,u){return Array.prototype.some.call(q,w,u)};
_.cVj=function(q,w,u){return Array.prototype.every.call(q,w,u)};var eV=function(q){eV[" "](q);return q};
eV[" "]=function(){};
var Aw=function(q,w){try{return eV(q[w]),!0}catch(u){}return!1},i4H=function(q,w,u,y){y=y?y(w):w;
return Object.prototype.hasOwnProperty.call(q,y)?q[y]:q[y]=u(w)};var rF7,xF,UgJ,Tzj,dgs,Osz,l9M,oR7,VGl,fpz,ols,AF4,JF4,Zsj,p7J,$go;_.gOo=function(){return _.uc.navigator||null};
rF7=f7();_.kf=tHl();xF=dj("Edge");UgJ=xF||_.kf;_.tv=dj("Gecko")&&!(_.W4(_.QM(),"WebKit")&&!dj("Edge"))&&!(dj("Trident")||dj("MSIE"))&&!dj("Edge");_.PS=_.W4(_.QM(),"WebKit")&&!dj("Edge");Tzj=_.PS&&dj("Mobile");_.Cz4=_.soy();dgs=_.Nj7();Osz=(D6()?rj.platform==="Linux":dj("Linux"))||_.Qof();l9M=_.H7M();oR7=Wu4();VGl=dj("iPad");fpz=dj("iPod");_.mgl=_.Z6();ols=_.W4(_.QM(),"KaiOS");AF4=function(){var q=_.uc.document;return q?q.documentMode:void 0};
a:{var zvJ="",apc=function(){var q=_.QM();if(_.tv)return/rv:([^\);]+)(\)|;)/.exec(q);if(xF)return/Edge\/([\d\.]+)/.exec(q);if(_.kf)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(q);if(_.PS)return/WebKit\/(\S+)/.exec(q);if(rF7)return/(?:Version)[ \/]?(\S+)/.exec(q)}();
apc&&(zvJ=apc?apc[1]:"");if(_.kf){var Dgo=AF4();if(Dgo!=null&&Dgo>parseFloat(zvJ)){JF4=String(Dgo);break a}}JF4=zvJ}Zsj=JF4;p7J={};_.X1=function(q){return i4H(p7J,q,function(){return _.NM(Zsj,q)>=0})};
if(_.uc.document&&_.kf){var vRs=AF4();$go=vRs?vRs:parseInt(Zsj,10)||void 0}else $go=void 0;_.bs7=$go;var IBM,iNc,YaH;_.F1=Az();IBM=Wu4()||dj("iPod");iNc=dj("iPad");YaH=_.X44();_.Gs=_.Jz();_.g$=_.zy()&&!_.Z6();var gRy,ny,lDc,xk7,Rv4,ERu;gRy={};ny=null;lDc=_.tv||_.PS||typeof _.uc.btoa=="function";_.wV=function(q,w){w===void 0&&(w=0);ERu();w=gRy[w];for(var u=Array(Math.floor(q.length/3)),y=w[64]||"",e=0,t=0;e<q.length-2;e+=3){var X=q[e],G=q[e+1],n=q[e+2],N=w[X>>2];X=w[(X&3)<<4|G>>4];G=w[(G&15)<<2|n>>6];n=w[n&63];u[t++]=N+X+G+n}N=0;n=y;switch(q.length-e){case 2:N=q[e+1],n=w[(N&15)<<2]||y;case 1:q=q[e],u[t]=w[q>>2]+w[(q&3)<<4|N>>4]+n+y}return u.join("")};
xk7=function(q){var w="";Rv4(q,function(u){w+=String.fromCharCode(u)});
return w};
_.stc=function(q){var w=[];Rv4(q,function(u){w.push(u)});
return w};
_.sX=function(q){var w=q.length,u=w*3/4;u%3?u=Math.floor(u):_.H4("=.",q[w-1])&&(u=_.H4("=.",q[w-2])?u-2:u-1);var y=new Uint8Array(u),e=0;Rv4(q,function(t){y[e++]=t});
return e!==u?y.subarray(0,e):y};
Rv4=function(q,w){function u(n){for(;y<q.length;){var N=q.charAt(y++),Q=ny[N];if(Q!=null)return Q;if(!_.Gy(N))throw Error("E`"+N);}return n}
ERu();for(var y=0;;){var e=u(-1),t=u(0),X=u(64),G=u(64);if(G===64&&e===-1)break;w(e<<2|t>>4);X!=64&&(w(t<<4&240|X>>2),G!=64&&w(X<<6&192|G))}};
ERu=function(){if(!ny){ny={};for(var q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),w=["+/=","+/","-_=","-_.","-_"],u=0;u<5;u++){var y=q.concat(w[u].split(""));gRy[u]=y;for(var e=0;e<y.length;e++){var t=y[e];ny[t]===void 0&&(ny[t]=e)}}}};var p4z=typeof Uint8Array!=="undefined",VHc=!_.kf&&typeof btoa==="function",f6l=/[-_.]/g,O76={"-":"+",_:"/",".":"="},vk={};var $T,Saf;$T=function(q,w){if(w!==vk)throw Error("G");this.JSC$6714_value_=q;if(q!=null&&q.length===0)throw Error("F");};
_.bP=function(){return cF4||(cF4=new $T(null,vk))};
Saf=function(q){return new Uint8Array(DI(q)||0)};
$T.prototype.isEmpty=function(){return this.JSC$6714_value_==null};
$T.prototype.sizeBytes=function(){var q=DI(this);return q?q.length:0};
var DI=function(q){if(vk!==vk)throw Error("G");var w=q.JSC$6714_value_;w=w==null||p4z&&w!=null&&w instanceof Uint8Array?w:typeof w==="string"?mMz(w):null;return w==null?w:q.JSC$6714_value_=w},cF4;var Jzo=void 0;var VF=typeof Symbol==="function"&&typeof Symbol()==="symbol",hvj=o6("jas",void 0,!0),hx=o6(void 0,"0di"),Ah=o6(void 0,"1oa"),Lh=o6(void 0,Symbol()),Jcy=o6(void 0,"0ub"),aZc=o6(void 0,"0ubs"),pVf=o6(void 0,"0ubsb"),j6c=o6(void 0,"0actk"),cV=o6("m_m","messagePrototypeMarker",!0),gTo=o6(void 0,"vps"),fZy=o6();var a6s,zfz,rV,j_H;a6s={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};zfz=Object.defineProperties;_.f$=VF?hvj:"internalArrayState";j_H=[];Jc(j_H,7);rV=Object.freeze(j_H);var Sq={},DZ={},lpJ=function(q,w,u){this.iterable=q;this.mapper=w;this.thisArg=u};
lpJ.prototype.next=function(){var q=this.iterable.next();q.done||(q.value=this.mapper.call(this.thisArg,q.value));return q};
lpJ.prototype[Symbol.iterator]=function(){return this};
var LiH=Object.freeze({}),Sr={};_.MGu=L$(function(q){return q!==null&&q!==void 0});var gJ6=L$(function(q){return typeof q==="number"}),Ysf=L$(function(q){return typeof q==="string"}),EJf=L$(function(q){return typeof q==="boolean"}),KiM=L$(function(q){return q!=null&&typeof q==="object"&&typeof q.then==="function"}),Lbs=L$(function(q){return typeof q==="function"}),FZ=L$(function(q){return!!q&&(typeof q==="object"||typeof q==="function")});var MT=typeof _.uc.BigInt==="function"&&typeof _.uc.BigInt(0)==="bigint";var $6=L$(function(q){return MT?q>=Bzz&&q<=xg4:q[0]==="-"?Rfo(q,qTu):Rfo(q,wWM)}),qTu=Number.MIN_SAFE_INTEGER.toString(),Bzz=MT?BigInt(Number.MIN_SAFE_INTEGER):void 0,wWM=Number.MAX_SAFE_INTEGER.toString(),xg4=MT?BigInt(Number.MAX_SAFE_INTEGER):void 0;var unH=typeof Uint8Array.prototype.slice==="function",Bk=0,xT=0,KA;var Jx,Da,rc,Za,MH4;Jx=typeof BigInt==="function"?BigInt.asIntN:void 0;_.ph=typeof BigInt==="function"?BigInt.asUintN:void 0;Da=Number.isSafeInteger;rc=Number.isFinite;Za=Math.trunc;MH4=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var ETM={};var oTM={},y$M=function(){try{var q=function(){return mfu(Map,[],this.constructor)};
_.O(q,Map);eV(new q);return!1}catch(w){return!0}}(),HS=function(){this.JSC$6742_map_=new Map};
_.k=HS.prototype;_.k.get=function(q){return this.JSC$6742_map_.get(q)};
_.k.set=function(q,w){this.JSC$6742_map_.set(q,w);this.size=this.JSC$6742_map_.size;return this};
_.k.delete=function(q){q=this.JSC$6742_map_.delete(q);this.size=this.JSC$6742_map_.size;return q};
_.k.clear=function(){this.JSC$6742_map_.clear();this.size=this.JSC$6742_map_.size};
_.k.has=function(q){return this.JSC$6742_map_.has(q)};
_.k.entries=function(){return this.JSC$6742_map_.entries()};
_.k.keys=function(){return this.JSC$6742_map_.keys()};
_.k.values=function(){return this.JSC$6742_map_.values()};
_.k.forEach=function(q,w){return this.JSC$6742_map_.forEach(q,w)};
HS.prototype[Symbol.iterator]=function(){return this.entries()};
var uE=function(){if(y$M)return Object.setPrototypeOf(HS.prototype,Map.prototype),Object.defineProperties(HS.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),HS;var q=function(){return mfu(Map,[],this.constructor)};
_.O(q,Map);return q}(),jq=function(q,w,u,y){u=u===void 0?UTs:u;
y=y===void 0?UTs:y;var e=uE.call(this)||this;e.arrayState=q[_.f$]|0;e.valueCtor=w;e.keyToApi=u;e.valueToApi=e.valueCtor?CPs:y;for(var t=0;t<q.length;t++){var X=q[t],G=u(X[0],!1,!0),n=X[1];w?n===void 0&&(n=null):n=y(X[1],!1,!0,void 0,void 0,e.arrayState);uE.prototype.set.call(e,G,n)}return e};
_.O(jq,uE);var eaH=function(q){if(q.arrayState&2)throw Error("K");};
_.k=jq.prototype;_.k.clear=function(){eaH(this);uE.prototype.clear.call(this)};
_.k.delete=function(q){eaH(this);return uE.prototype.delete.call(this,this.keyToApi(q,!0,!1))};
_.k.entries=function(){if(this.valueCtor){var q=uE.prototype.keys.call(this);q=new lpJ(q,dTc,this)}else q=uE.prototype.entries.call(this);return q};
_.k.values=function(){if(this.valueCtor){var q=uE.prototype.keys.call(this);q=new lpJ(q,jq.prototype.get,this)}else q=uE.prototype.values.call(this);return q};
_.k.forEach=function(q,w){this.valueCtor?uE.prototype.forEach.call(this,function(u,y,e){q.call(w,e.get(y),y,e)}):uE.prototype.forEach.call(this,q,w)};
_.k.set=function(q,w){eaH(this);q=this.keyToApi(q,!0,!1);return q==null?this:w==null?(uE.prototype.delete.call(this,q),this):uE.prototype.set.call(this,q,this.valueToApi(w,!0,!0,this.valueCtor,!1,this.arrayState))};
_.k.has=function(q){return uE.prototype.has.call(this,this.keyToApi(q,!1,!1))};
_.k.get=function(q){q=this.keyToApi(q,!1,!1);var w=uE.prototype.get.call(this,q);if(w!==void 0){var u=this.valueCtor;return u?(u=this.valueToApi(w,!1,!0,u,this.callToMutableOnAccess,this.arrayState),u!==w&&uE.prototype.set.call(this,q,u),u):w}};
jq.prototype[Symbol.iterator]=function(){return this.entries()};
jq.prototype.toJSON=void 0;var O$M;var pkl=function(){},BV=function(q,w){for(var u in q)!isNaN(u)&&w(q,+u,q[u])},$Ty=function(q){var w=new pkl;
BV(q,function(u,y,e){w[y]=PV(e)});
w.reviveUnknownFields=q.reviveUnknownFields;return w},mTo={reviveIntoImmutable:!0};var Z$z;var R3y,cc4;var kuc,Og,iD,Ok,tEc,Ts,Cn,Ptu,XWM,oG,F1s,VN,Av,Jv;kuc=_.K$(0);_.WS={};_.sL=function(q,w,u,y,e){w=Og(q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w,u,e);if(w!==null||y&&q.noLegacyNull!==DZ)return w};
Og=function(q,w,u,y){if(w===-1)return null;var e=w+(u?0:-1),t=q.length-1;if(!(t<1+(u?0:-1))){if(e>=t){var X=q[t];if(X!=null&&typeof X==="object"&&X.constructor===Object){u=X[w];var G=!0}else if(e===t)u=X;else return}else u=q[e];if(y&&u!=null){y=y(u);if(y==null)return y;if(!Object.is(y,u))return G?X[w]=y:q[e]=y,y}return u}};
_.Fo=function(q,w,u,y){Nz(q);var e=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;iE(e,e[_.f$]|0,w,u,y);return q};
_.NG=function(q,w,u){q=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Jh(q,q[_.f$]|0,w,u)!==void 0};
_.QN=function(q,w,u,y){var e=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Jh(e,e[_.f$]|0,w,Ok(q,y,u))!==void 0};
_.uI=function(q){return q===LiH?2:4};
_.IG=function(q,w){q=_.sL(q,w,void 0,void 0,qA7);return q==null?_.bP():q};
iD=function(q,w,u,y){Nz(q);var e=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=e[_.f$]|0;if(y==null){var X=um7(e);if(yxl(X,e,t,u)===w)X.set(u,0);else return q}else t=eB7(e,t,u,w);iE(e,t,w,y);return q};
_.r9=function(q,w,u,y){var e=q[_.f$]|0,t=jr(e);e=eB7(q,e,u,w,t);iE(q,e,w,y,t)};
Ok=function(q,w,u){return _.UL(q,w)===u?u:-1};
_.UL=function(q,w){q=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return yxl(um7(q),q,void 0,w,void 0)};
tEc=function(q,w,u){var y=q[_.f$]|0,e=jr(y),t=Og(q,u,e);if(t!=null&&t[cV]===Sq){if(!p$(t))return sg(t),t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var X=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(t)&&(X=t);if(X){var G=X[_.f$]|0;G&2&&(X=XF(X,G))}X=P3(X,w,!0);X!==t&&iE(q,y,u,X,e);return X};
_.PT=function(q,w,u,y){var e=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=e[_.f$]|0;w=Jh(e,t,w,u,y);if(w==null)return w;t=e[_.f$]|0;if(!p$(q,t)){var X=Tx7(w);X!==w&&(sg(q)&&(e=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=e[_.f$]|0),w=X,t=iE(e,t,u,w,y),Im(e,t))}return w};
_.wg=function(q,w,u,y){var e=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return k4J(q,e,e[_.f$]|0,w,u,y,!1,!0)};
_.e9=function(q,w,u,y){u=tq7(u);_.Fo(q,w,u,y);u&&!p$(u)&&Im(q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return q};
_.km=function(q,w,u,y){y=tq7(y);iD(q,w,u,y);y&&!p$(y)&&Im(q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return q};
Ts=function(q,w,u){Nz(q);var y=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=y[_.f$]|0;if(u==null)return iE(y,e,w),q;for(var t=u===rV?7:u[_.f$]|0,X=t,G=CA(t),n=G||Object.isFrozen(u),N=!0,Q=!0,I=0;I<u.length;I++){var U=u[I];G||(U=p$(U),N&&(N=!U),Q&&(Q=U))}G||(t=N?13:5,t=Q?t&-4097:t|4096);n&&t===X||(u=PV(u),X=0,t=Ug(t,e));t!==X&&Jc(u,t);e=iE(y,e,w,u);2&t||!(4096&t||16&t)||Im(y,e);return q};
Cn=function(q,w,u,y){XV6(q,w,u,y);return q};
Ptu=function(q,w,u){XV6(q,w,Cy,void 0,u,1,!0);return q};
_.d9=function(q,w,u){q=_.sL(q,w,void 0,u);w=typeof q;q=q==null?q:w==="bigint"?_.K$((0,_.ph)(64,q)):_.UA(q)?w==="string"?_.nTs(q):_.FjM(q):void 0;return q};
_.OL=function(q,w){var u=u===void 0?!1:u;var y;return(y=_.Lu6(_.sL(q,w)))!=null?y:u};
_.yG=function(q,w,u){u=u===void 0?0:u;var y;return(y=_.oK(_.sL(q,w)))!=null?y:u};
XWM=function(q,w){var u=u===void 0?0:u;q=_.VH(_.sL(q,w));return q!=null?q:u};
oG=function(q,w,u){u=u===void 0?kuc:u;var y;return(y=_.s6J(_.sL(q,w)))!=null?y:u};
F1s=function(q){var w=w===void 0?kuc:w;var u;return(u=_.d9(q,23))!=null?u:w};
VN=function(q,w){var u=u===void 0?0:u;var y;return(y=_.sL(q,w,void 0,void 0,_.sA))!=null?y:u};
_.fy=function(q,w,u,y){u=u===void 0?"":u;var e;return(e=_.Y6(_.sL(q,w,y)))!=null?e:u};
_.mw=function(q,w){var u=u===void 0?0:u;var y;return(y=_.Ch(_.sL(q,w)))!=null?y:u};
Av=function(q,w){var u=u===void 0?"0":u;q=Wj4(_.sL(q,w),!0);return q!=null?q:u};
Jv=function(q,w,u){return _.fy(q,Ok(q,u,w))};
_.zs=function(q,w,u,y){return _.PT(q,w,Ok(q,y,u),void 0)};
_.iI=function(q,w){return _.Y6(_.sL(q,w,void 0,_.WS))};
_.P2=function(q,w,u){return _.Fo(q,w,l6o(u))};
_.z6=function(q,w,u){return _.Va(q,w,l6o(u),!1)};
_.aG=function(q,w,u){return _.Fo(q,w,_.dc(u))};
_.VR=function(q,w,u){return _.Fo(q,w,aK(u))};
_.sf=function(q,w,u){return _.Fo(q,w,bj(u))};
_.KV=function(q,w,u,y){return _.Va(q,w,bj(u),"",y)};
_.Xo=function(q,w,u){return _.Fo(q,w,u==null?u:_.T4(u))};
_.DS=function(q,w,u){return _.Va(q,w,u==null?u:_.T4(u),0)};var am=function(q,w,u){this.buffer=q;if(u&&!w)throw Error();this.JSC$6754_isImmutable=w};var Gu4=function(q,w,u,y){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6757_start_=0;this.init(q,w,u,y)},ZS,Hbu,W1z,Nnz,faz,nys;
_.k=Gu4.prototype;_.k.init=function(q,w,u,y){var e=y===void 0?{}:y;y=e.aliasBytesFields===void 0?!1:e.aliasBytesFields;e=e.treatNewDataAsImmutable===void 0?!1:e.treatNewDataAsImmutable;this.aliasBytesFields=y;this.treatNewDataAsImmutable=e;q&&(q=FT7(q,this.treatNewDataAsImmutable),this.bytes_=q.buffer,this.bytesAreImmutable_=q.JSC$6754_isImmutable,this.JSC$6757_start_=w||0,this.end_=u!==void 0?this.JSC$6757_start_+u:this.bytes_.length,this.cursor_=this.JSC$6757_start_)};
_.k.free=function(){this.clear();nys.length<100&&nys.push(this)};
_.k.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6757_start_=0;this.aliasBytesFields=!1};
_.k.reset=function(){this.cursor_=this.JSC$6757_start_};
_.k.atEnd=function(){return this.cursor_==this.end_};
_.py=function(q,w){var u=0,y=0,e=0,t=q.bytes_,X=q.cursor_;do{var G=t[X++];u|=(G&127)<<e;e+=7}while(e<32&&G&128);e>32&&(y|=(G&127)>>4);for(e=3;e<32&&G&128;e+=7)G=t[X++],y|=(G&127)<<e;ZS(q,X);if(G<128)return w(u>>>0,y>>>0);throw Error("X");};
ZS=function(q,w){q.cursor_=w;if(w>q.end_)throw Error("Y`"+w+"`"+q.end_);};
_.$f=function(q){var w=q.bytes_,u=q.cursor_,y=w[u++],e=y&127;if(y&128&&(y=w[u++],e|=(y&127)<<7,y&128&&(y=w[u++],e|=(y&127)<<14,y&128&&(y=w[u++],e|=(y&127)<<21,y&128&&(y=w[u++],e|=y<<28,y&128&&w[u++]&128&&w[u++]&128&&w[u++]&128&&w[u++]&128&&w[u++]&128)))))throw Error("X");ZS(q,u);return e};
_.b8=function(q){var w=q.bytes_,u=q.cursor_,y=w[u],e=w[u+1],t=w[u+2];w=w[u+3];ZS(q,q.cursor_+4);return(y<<0|e<<8|t<<16|w<<24)>>>0};
Hbu=function(q){var w=_.b8(q);q=_.b8(q);return hfo(w,q)};
W1z=function(q){var w=_.b8(q),u=_.b8(q);q=(u>>31)*2+1;var y=u>>>20&2047;w=4294967296*(u&1048575)+w;return y==2047?w?NaN:q*Infinity:y==0?q*4.9E-324*w:q*Math.pow(2,y-1075)*(w+4503599627370496)};
_.sso=function(q){for(var w=0,u=q.cursor_,y=u+10,e=q.bytes_;u<y;){var t=e[u++];w|=t;if((t&128)===0)return ZS(q,u),!!(w&127)}throw Error("X");};
Nnz=function(q,w){if(w<0)throw Error("Z`"+w);var u=q.cursor_,y=u+w;if(y>q.end_)throw Error("Y`"+(q.end_-u)+"`"+w);q.cursor_=y;return u};
faz=function(q,w){if(w==0)return _.bP();var u=Nnz(q,w);q.aliasBytesFields&&q.bytesAreImmutable_?u=q.bytes_.subarray(u,u+w):(q=q.bytes_,w=u+w,u=u===w?new Uint8Array(0):unH?q.slice(u,w):new Uint8Array(q.subarray(u,w)));return u.length==0?_.bP():new $T(u,vk)};
nys=[];var IkJ=function(q,w,u,y){if(nys.length){var e=nys.pop();e.init(q,w,u,y);q=e}else q=new Gu4(q,w,u,y);this.decoder_=q;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;Qsu(this,y)},Qsu=function(q,w){w=w===void 0?{}:w;
q.discardUnknownFields=w.discardUnknownFields===void 0?!1:w.discardUnknownFields},Jxy=function(q,w,u,y){if(ibH.length){var e=ibH.pop();
Qsu(e,y);e.decoder_.init(q,w,u,y);return e}return new IkJ(q,w,u,y)},o6s,Eg,r$c,ibH;
IkJ.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;ibH.length<100&&ibH.push(this)};
IkJ.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
o6s=function(q){if(q.decoder_.atEnd())return!1;q.fieldCursor_=q.decoder_.cursor_;var w=_.$f(q.decoder_)>>>0,u=w>>>3;w&=7;if(!(w>=0&&w<=5))throw Error("T`"+w+"`"+q.fieldCursor_);if(u<1)throw Error("U`"+u+"`"+q.fieldCursor_);q.nextField_=u;q.nextWireType_=w;return!0};
Eg=function(q){switch(q.nextWireType_){case 0:q.nextWireType_!=0?Eg(q):_.sso(q.decoder_);break;case 1:q=q.decoder_;ZS(q,q.cursor_+8);break;case 2:if(q.nextWireType_!=2)Eg(q);else{var w=_.$f(q.decoder_)>>>0;q=q.decoder_;ZS(q,q.cursor_+w)}break;case 5:q=q.decoder_;ZS(q,q.cursor_+4);break;case 3:w=q.nextField_;do{if(!o6s(q))throw Error("V");if(q.nextWireType_==4){if(q.nextField_!=w)throw Error("W");break}Eg(q)}while(1);break;default:throw Error("T`"+q.nextWireType_+"`"+q.fieldCursor_);}};
r$c=function(q,w,u){var y=q.decoder_.end_,e=_.$f(q.decoder_)>>>0,t=q.decoder_.cursor_+e,X=t-y;X<=0&&(q.decoder_.end_=t,u(w,q,void 0,void 0,void 0),X=t-q.decoder_.cursor_);if(X)throw Error("S`"+e+"`"+(e-X));q.decoder_.cursor_=t;q.decoder_.end_=y};
_.UoM=function(q){var w=_.$f(q.decoder_)>>>0;q=q.decoder_;var u=Nnz(q,w);q=q.bytes_;if(w7j){var y=q,e;(e=qaH)||(e=qaH=new TextDecoder("utf-8",{fatal:!0}));w=u+w;y=u===0&&w===y.length?y:y.subarray(u,w);try{var t=e.decode(y)}catch(N){if(xfu===void 0){try{e.decode(new Uint8Array([128]))}catch(Q){}try{e.decode(new Uint8Array([97])),xfu=!0}catch(Q){xfu=!1}}!xfu&&(qaH=void 0);throw N;}}else{t=u;w=t+w;u=[];for(var X=null,G,n;t<w;)G=q[t++],G<128?u.push(G):G<224?t>=w?wj():(n=q[t++],G<194||(n&192)!==128?(t--,
wj()):u.push((G&31)<<6|n&63)):G<240?t>=w-1?wj():(n=q[t++],(n&192)!==128||G===224&&n<160||G===237&&n>=160||((e=q[t++])&192)!==128?(t--,wj()):u.push((G&15)<<12|(n&63)<<6|e&63)):G<=244?t>=w-2?wj():(n=q[t++],(n&192)!==128||(G<<28)+(n-144)>>30!==0||((e=q[t++])&192)!==128||((y=q[t++])&192)!==128?(t--,wj()):(G=(G&7)<<18|(n&63)<<12|(e&63)<<6|y&63,G-=65536,u.push((G>>10&1023)+55296,(G&1023)+56320))):wj(),u.length>=8192&&(X=qsH(X,u),u.length=0);t=qsH(X,u)}return t};
_.TnM=function(q){var w=_.$f(q.decoder_)>>>0;return faz(q.decoder_,w)};
_.CtM=function(q,w,u){var y=_.$f(q.decoder_)>>>0;for(y=q.decoder_.cursor_+y;q.decoder_.cursor_<y;)u.push(w(q.decoder_))};
ibH=[];var doy=function(q,w){this.JSC$6764_lo=q>>>0;this.JSC$6764_hi=w>>>0},oyl=function(q){if(!q)return Ob6||(Ob6=new doy(0,0));
if(!/^\d+$/.test(q))return null;tx(q);return new doy(Bk,xT)},Ob6,RBy=function(q,w){this.JSC$6766_lo=q>>>0;
this.JSC$6766_hi=w>>>0},YA6=function(q){if(!q)return VEJ||(VEJ=new RBy(0,0));
if(!/^-?\d+$/.test(q))return null;tx(q);return new RBy(Bk,xT)},VEJ;var fks=function(){this.JSC$6768_buffer_=[]},E6z,moo;
fks.prototype.length=function(){return this.JSC$6768_buffer_.length};
fks.prototype.end=function(){var q=this.JSC$6768_buffer_;this.JSC$6768_buffer_=[];return q};
E6z=function(q,w,u){for(;u>0||w>127;)q.JSC$6768_buffer_.push(w&127|128),w=(w>>>7|u<<25)>>>0,u>>>=7;q.JSC$6768_buffer_.push(w)};
moo=function(q,w){for(;w>127;)q.JSC$6768_buffer_.push(w&127|128),w>>>=7;q.JSC$6768_buffer_.push(w)};
_.cxf=function(q,w){if(w>=0)moo(q,w);else{for(var u=0;u<9;u++)q.JSC$6768_buffer_.push(w&127|128),w>>=7;q.JSC$6768_buffer_.push(1)}};
_.B3=function(q,w){q.JSC$6768_buffer_.push(w>>>0&255);q.JSC$6768_buffer_.push(w>>>8&255);q.JSC$6768_buffer_.push(w>>>16&255);q.JSC$6768_buffer_.push(w>>>24&255)};var A$M,hh,hBu,LTy;A$M=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new fks};
hh=function(q,w){w.length!==0&&(q.blocks_.push(w),q.totalLength_+=w.length)};
_.WTl=function(q,w){_.Mz(q,w,2);w=q.encoder_.end();hh(q,w);w.push(q.totalLength_);return w};
_.sKz=function(q,w){var u=w.pop();for(u=q.totalLength_+q.encoder_.length()-u;u>127;)w.push(u&127|128),u>>>=7,q.totalLength_++;w.push(u);q.totalLength_++};
_.Mz=function(q,w,u){moo(q.encoder_,w*8+u)};
hBu=function(q,w,u){if(u!=null){switch(typeof u){case "string":oyl(u)}_.Mz(q,w,1);switch(typeof u){case "number":q=q.encoder_;czc(u);_.B3(q,Bk);_.B3(q,xT);break;case "bigint":u=BigInt.asUintN(64,u);u=new doy(Number(u&BigInt(4294967295)),Number(u>>BigInt(32)));q=q.encoder_;w=u.JSC$6764_hi;_.B3(q,u.JSC$6764_lo);_.B3(q,w);break;default:u=oyl(u),q=q.encoder_,w=u.JSC$6764_hi,_.B3(q,u.JSC$6764_lo),_.B3(q,w)}}};
LTy=function(q,w,u){_.Mz(q,w,2);moo(q.encoder_,u.length);hh(q,q.encoder_.end());hh(q,u)};var G4u,akj,DoJ,$o7,vyf;G4u=ZI();_.J$H=ZI();_.zaz=ZI();akj=ZI();DoJ=ZI();_.Zbl=ZI();_.Yf=ZI();_.pWf=ZI();$o7=ZI();vyf=ZI();_.bb4=ZI();_.YTH=ZI();_.bE=function(q,w,u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q,w,u)};
_.bE.prototype.toJSON=function(){return ea(this)};
_.bE.prototype.serialize=function(q){return JSON.stringify(ea(this,q))};
var yhz=function(q,w){if(w==null||w=="")return new q;w=JSON.parse(w);if(!Array.isArray(w))throw Error("$");return new q(Z7H(w))};
_.bE.prototype.getExtension=function(q){z37(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q.fieldIndex);Ac4(this,q.fieldIndex);return q.ctor?q.isRepeated?q.getExtensionFn(this,q.ctor,q.fieldIndex,_.uI(),q.JSC$6779_hasMessageId):q.getExtensionFn(this,q.ctor,q.fieldIndex,q.JSC$6779_hasMessageId):q.isRepeated?q.getExtensionFn(this,q.fieldIndex,_.uI(),q.JSC$6779_hasMessageId):q.getExtensionFn(this,q.fieldIndex,q.defaultValue,q.JSC$6779_hasMessageId)};
_.bE.prototype.clone=function(){var q=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=q[_.f$]|0;return G_(this,q,w)?FF(this,q,!0):new this.constructor(XF(q,w,!1))};
_.bE.prototype[cV]=Sq;_.bE.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var $K=function(q,w,u){this.$$binaryReaderFn=q;this.$$binaryWriterFn=w;q=lj(G4u);this.$$isMsg=!!q&&u===q||!1},iho=n6l(function(q,w,u,y,e){if(q.nextWireType_!==2)return!1;
r$c(q,tEc(w,y,u),e);return!0},Ncf),rxJ=n6l(function(q,w,u,y,e){if(q.nextWireType_!==2)return!1;
r$c(q,tEc(w,y,u),e);return!0},Ncf),c3=Symbol(),YK=Symbol(),Ohj=Symbol(),aac=Symbol(),m6s=Symbol(),QKc,IaJ;var qgs,gy6,EyJ,Rau,c$7,STj,has,js4,lkJ,L1y,MEs,BnJ,xou,woj,uvf;qgs=function(q,w){var u=new A$M;D6c(q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u,v3(c3,Rm,Sa,w));hh(u,u.encoder_.end());q=new Uint8Array(u.totalLength_);w=u.blocks_;for(var y=w.length,e=0,t=0;t<y;t++){var X=w[t];q.set(X,e);e+=X.length}u.blocks_=[q];return q};
gy6=_.ja(function(q,w,u){if(q.nextWireType_!==1)return!1;_.LA(w,u,W1z(q.decoder_));return!0},bh6,vyf);
EyJ=_.ja(function(q,w,u,y){if(q.nextWireType_!==1)return!1;_.r9(w,u,y,W1z(q.decoder_));return!0},bh6,vyf);
Rau=_.ja(function(q,w,u,y){if(q.nextWireType_!==5)return!1;var e=_.b8(q.decoder_);q=(e>>31)*2+1;var t=e>>>23&255;e&=8388607;_.r9(w,u,y,t==255?e?NaN:q*Infinity:t==0?q*1.401298464324817E-45*e:q*Math.pow(2,t-150)*(e+8388608));return!0},function(q,w,u){w=_.sA(w);
w!=null&&(_.Mz(q,u,5),q=q.encoder_,u=KA||(KA=new DataView(new ArrayBuffer(8))),u.setFloat32(0,+w,!0),xT=0,Bk=u.getUint32(0,!0),_.B3(q,Bk))},$o7);
_.g9=_.ja(function(q,w,u){if(q.nextWireType_!==0)return!1;_.LA(w,u,_.py(q.decoder_,uj));return!0},_.xK,_.Yf);
c$7=_.ja(function(q,w,u){if(q.nextWireType_!==0)return!1;q=_.py(q.decoder_,uj);_.LA(w,u,q===0?void 0:q);return!0},_.xK,_.Yf);
STj=_.ja(function(q,w,u,y){if(q.nextWireType_!==0)return!1;_.r9(w,u,y,_.py(q.decoder_,uj));return!0},_.xK,_.Yf);
_.EL=_.ja(function(q,w,u){if(q.nextWireType_!==0)return!1;_.LA(w,u,_.$f(q.decoder_));return!0},SA6,akj);
has=_.ja(function(q,w,u){if(q.nextWireType_!==0)return!1;q=_.$f(q.decoder_);_.LA(w,u,q===0?void 0:q);return!0},SA6,akj);
js4=_.ja(function(q,w,u,y){if(q.nextWireType_!==0)return!1;_.r9(w,u,y,_.$f(q.decoder_));return!0},SA6,akj);
lkJ=_.ja(function(q,w,u){if(q.nextWireType_!==1)return!1;_.LA(w,u,Hbu(q.decoder_));return!0},_.jK6,_.pWf);
L1y=_.v6u(function(q,w,u){if(q.nextWireType_!==1&&q.nextWireType_!==2)return!1;w=_.fA(w,w[_.f$]|0,u);q.nextWireType_==2?_.CtM(q,Hbu,w):w.push(Hbu(q.decoder_));return!0},function(q,w,u){w=_.$6l(Q6u,w,!1);
if(w!=null)for(var y=0;y<w.length;y++)hBu(q,u,w[y])},_.pWf);
_.RG=_.ja(function(q,w,u){if(q.nextWireType_!==0)return!1;_.LA(w,u,_.sso(q.decoder_));return!0},_.lau,_.J$H);
MEs=_.ja(function(q,w,u,y){if(q.nextWireType_!==0)return!1;_.r9(w,u,y,_.sso(q.decoder_));return!0},_.lau,_.J$H);
_.cS=_.ja(function(q,w,u){if(q.nextWireType_!==2)return!1;_.LA(w,u,_.UoM(q));return!0},_.Mqf,_.zaz);
_.K1H=_.ja(function(q,w,u,y){if(q.nextWireType_!==2)return!1;_.r9(w,u,y,_.UoM(q));return!0},_.Mqf,_.zaz);
BnJ=_.v6u(function(q,w,u){if(q.nextWireType_!==2)return!1;q=_.UoM(q);_.fA(w,w[_.f$]|0,u).push(q);return!0},function(q,w,u){w=_.$6l(_.Y6,w,!0);
if(w!=null)for(var y=0;y<w.length;y++){var e=q,t=u,X=w[y];X!=null&&LTy(e,t,efz(X))}},_.zaz);
xou=void 0;xou=xou===void 0?G4u:xou;_.SV=new $K(function(q,w,u,y,e){if(q.nextWireType_!==2)return!1;y=P3(void 0,y,!0);_.fA(w,w[_.f$]|0,u).push(y);r$c(q,y,e);return!0},function(q,w,u,y,e){if(Array.isArray(w))for(var t=0;t<w.length;t++)KTM(q,w[t],u,y,e)},xou);
_.hv=n6l(function(q,w,u,y,e,t){if(q.nextWireType_!==2)return!1;var X=w[_.f$]|0;eB7(w,X,t,u,jr(X));w=tEc(w,y,u);r$c(q,w,e);return!0},KTM);
_.qUc=_.ja(function(q,w,u){if(q.nextWireType_!==2)return!1;_.LA(w,u,_.TnM(q));return!0},_.Bc6,_.bb4);
woj=_.ja(function(q,w,u,y){if(q.nextWireType_!==2)return!1;_.r9(w,u,y,_.TnM(q));return!0},_.Bc6,_.bb4);
uvf=_.ja(function(q,w,u,y){if(q.nextWireType_!==0)return!1;_.r9(w,u,y,_.$f(q.decoder_)>>>0);return!0},function(q,w,u){w=_.VH(w);
w!=null&&w!=null&&(_.Mz(q,u,0),moo(q.encoder_,w))},DoJ);
_.jV=_.ja(function(q,w,u){if(q.nextWireType_!==0)return!1;_.LA(w,u,_.$f(q.decoder_));return!0},_.x6s,_.YTH);var k1z=function(){var q=yyc,w=ep4;this.fieldIndex=175237375;this.ctor=w;this.isRepeated=0;this.getExtensionFn=_.PT;this.defaultValue=void 0;this.JSC$6779_hasMessageId=q.messageId!=null?Sr:void 0};
k1z.prototype.register=function(){eV(this)};var t5M=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(t5M,_.bE);var Pi6=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Pi6,_.bE);var tao=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(tao,_.bE);var Xoy=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Xoy,_.bE);var FSJ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(FSJ,_.bE);var G1u=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(G1u,_.bE);var nn6=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(nn6,_.bE);nn6.prototype.getData=function(){return _.IG(this,2)};var HIu=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(HIu,_.bE);var WSo=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(WSo,_.bE);WSo.prototype.getStyle=function(){return _.PT(this,t5M,1)};var yE=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(yE,_.bE);yE.prototype.getPayloadCase=function(){return _.UL(this,ta)};
yE.prototype.getStyle=function(){return _.zs(this,WSo,6,ta)};
var sh4=function(){var q=new yE,w=new FSJ;return _.km(q,7,ta,w)},N7u=function(){var q=new yE,w=new G1u;
return _.km(q,8,ta,w)},ta=[1,
2,3,4,5,6,7,8];var Qhs=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Qhs,_.bE);var Ies=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Ies,_.bE);var iI7=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(iI7,_.bE);var ryo=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(ryo,_.bE);var U04=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(U04,_.bE);var T7y=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(T7y,_.bE);var Ciy=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Ciy,_.bE);var d0y=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(d0y,_.bE);d0y.prototype.getData=function(){return _.IG(this,2)};var OIM=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(OIM,_.bE);var k_z=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(k_z,_.bE);k_z.prototype.getPayloadCase=function(){return _.UL(this,l8)};
var l8=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Ly=function(q,w){q=Error.call(this,q);this.message=q.message;"stack"in q&&(this.stack=q.stack);this.code=w===void 0?2:w};
_.O(Ly,Error);var onj=Promise;var V5l=function(q){this.channelPromise=q};
V5l.prototype.send=function(q,w,u){this.channelPromise.then(function(y){y.send(q,w,u)})};var fey=function(q,w){this.data=q;this.channel=w};
fey.prototype.reply=function(q,w,u){this.channel.send(q,w,u)};var m0f=function(q){this.JSC$6845_port_=q};
m0f.prototype.send=function(q,w,u){u=u===void 0?[]:u;var y=new MessageChannel;Ay4(y.port1,w);this.JSC$6845_port_.postMessage(q,[y.port2].concat(u))};
var JyM=function(q,w){Ay4(q,w);return new m0f(q)},Ay4=function(q,w){w&&(q.onmessage=function(u){w(new fey(u.data,JyM(u.ports[0])))})};var zpz=function(q){this.verifier_=q},ael=function(q){var w=Object.create(null);
(typeof q==="string"?[q]:q).forEach(function(u){if(u==="null")throw Error("ba");w[u]=!0});
return function(u){return w[u]===!0}};_.D0j=function(){if(!_.uc.addEventListener||!Object.defineProperty)return!1;var q=!1,w=Object.defineProperty({},"passive",{get:function(){q=!0}});
try{var u=function(){};
_.uc.addEventListener("test",u,w);_.uc.removeEventListener("test",u,w)}catch(y){}return q}();var ZI4;_.MG=function(q){var w=q.destination;var u=q.iframe;var y=q.origin;var e=q.channelName===void 0?"ZNWN1d":q.channelName;var t=q.onMessage===void 0?void 0:q.onMessage;q=q.onEstablished===void 0?void 0:q.onEstablished;return ZI4({destination:w,getSource:function(){return u.contentWindow},
originVerifier:y instanceof zpz?y:typeof y==="function"?new zpz(y):new zpz(ael(y)),channelName:e,onMessage:t,onEstablished:q})};
ZI4=function(q){var w=q.destination;var u=q.getSource;var y=q.originVerifier;var e=q.token===void 0?void 0:q.token;var t=q.channelName;var X=q.onMessage===void 0?void 0:q.onMessage;var G=q.onEstablished===void 0?void 0:q.onEstablished;return new V5l(new onj(function(n,N){var Q=function(I){I.source&&I.source===u()&&y.verifier_(I.origin)&&(I.data.n||I.data)===t&&(w.removeEventListener("message",Q,!1),e&&I.data.t!==e?N(Error("ca`"+t+"`"+e+"`"+I.data.t)):(n(JyM(I.ports[0],X)),G&&G(I)))};
w.addEventListener("message",Q,!1)}))};var poM=function(q){try{q()}catch(w){yM(w)}};var vnf=function(q){var w=this;var u=q.getMessageType;var y=q.onUnregisteredMessage===void 0?function(){}:q.onUnregisteredMessage;
var e=q.onBeforeRegisteredMessage===void 0?function(){}:q.onBeforeRegisteredMessage;
q=q.onAfterRegisteredMessage===void 0?function(){}:q.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=u;this.onUnregisteredMessage_=y;this.onBeforeRegisteredMessage_=e;this.onAfterRegisteredMessage_=q;this.onMessage=function(t){return $0y(w,t)}};
vnf.prototype.register=function(q,w){this.registry_.set(q,w);return this};
var $0y=function(q,w){var u=q.getMessageType_(w.data),y=q.registry_.get(u);y?(poM(function(){return q.onBeforeRegisteredMessage_(w,u)}),poM(function(){return y(w)}),poM(function(){return q.onAfterRegisteredMessage_(w,u)})):poM(function(){return q.onUnregisteredMessage_(w,u)})};var bIH=function(q){this.JSC$6862_channel_=q},gn4,EnJ;
bIH.prototype.send=function(q,w,u){this.JSC$6862_channel_.send(ea(q),w,u)};
_.YUM=function(q,w){return function(u){var y=new q(u.data);return w(new fey(y,u.channel))}};
gn4=function(q){return function(w){return q(new fey(w.data,new bIH(w.channel)))}};
EnJ=function(q,w){return gn4(_.YUM(q,w))};var RpH=function(q,w,u,y){this.registry=q;this.delegate=w;this.receiveMessageConstructor=u;this.createInitMessage=y;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},eX4=function(q){var w=new vnf({getMessageType:q.getPayloadCase});
return new RpH(w,new bIH(_.MG({iframe:q.child,destination:window,origin:q.origin,channelName:q.channelName,onMessage:EnJ(q.receiveMessageConstructor,w.onMessage)})),q.receiveMessageConstructor,q.createInitMessage)},cy4=function(q,w){q.createInitMessage=w};
RpH.prototype.send=function(q){if(!this.initialised)throw new Ly("Attempted to send a message before initialisation.");this.delegate.send(q)};
var SUo=function(q,w){return _.F(function(u){if(!q.initialised)throw new Ly("Attempted to send a message before initialisation.");return u.return(new Promise(function(y){q.delegate.send(w,EnJ(q.receiveMessageConstructor,y))}))})};
RpH.prototype.init=function(){var q=this;return _.F(function(w){if(q.initialised)throw new Ly("Attempted to initialise twice. The SDK can only be initialised once.");if(q.createInitMessage!==void 0){var u=q.delegate,y=u.send,e=q.createInitMessage;var t=new Pi6;var X=[].concat(_.Cm(q.features));t=_.om(t,1,X,_.T4);y.call(u,e.call(q,t))}q.initialised=!0;_.HI(w)})};
var Ky=function(q,w){if(q.initialised)throw new Ly('Attempted to set up API "'+w+'" after initialisation. All APIs must be set up before initialising the SDK.');q.features.add(w);return q.registry};
_.x$.Object.defineProperties(RpH.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var hpu=function(q){this.channel=q;this.registered=!1};
hpu.prototype.update=function(q){if(this.channel.isInitialised){if(!this.registered)throw new Ly("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var w=new yE;var u=new Xoy;u=_.P2(u,1,q);w=_.km(w,2,ta,u);this.channel.send(w)}else this.register();this.JSC$6876_audioEnabled=q};
hpu.prototype.register=function(){Ky(this.channel,1);this.registered=!0};
hpu.prototype.isAudioEnabled=function(){return this.JSC$6876_audioEnabled};var jhf=function(q){this.channel=q};
_.k=jhf.prototype;_.k.onFirstFrameReady=function(q){Ky(this.channel,2).register(11,function(w){w=_.zs(w.data,Qhs,11,l8);if(!w)throw new Ly("Unexpectedly nonexistent GameFirstFrameReadyEvent");q(_.fy(w,1))})};
_.k.onReady=function(q){Ky(this.channel,2).register(4,function(w){w=_.zs(w.data,iI7,4,l8);if(!w)throw new Ly("Unexpectedly nonexistent GameReadyEvent");q(_.fy(w,1))})};
_.k.onLevelComplete=function(q){Ky(this.channel,2).register(5,function(w){w=_.zs(w.data,ryo,5,l8);if(!w)throw new Ly("Unexpectedly nonexistent LevelCompleteEvent");q(_.fy(w,1),_.yG(w,2))})};
_.k.onGameOver=function(q){Ky(this.channel,2).register(6,function(w){w=_.zs(w.data,Ies,6,l8);if(!w)throw new Ly("Unexpectedly nonexistent GameOverEvent");q(_.fy(w,1))})};
_.k.pause=function(){var q=this;if(!this.channel.isInitialised)return Ky(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Ly("Using unregistered Game Feature: pause.");var w=sh4();return new Promise(function(u){return _.F(function(y){if(y.nextAddress==1)return _.H(y,SUo(q.channel,w),2);u();_.HI(y)})})};
_.k.resume=function(){var q=this;if(!this.channel.isInitialised)return Ky(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Ly("Using unregistered Game Feature: resume.");var w=N7u();return new Promise(function(u){return _.F(function(y){if(y.nextAddress==1)return _.H(y,SUo(q.channel,w),2);u();_.HI(y)})})};var leu=function(q){this.channel=q};
leu.prototype.onReady=function(q){Ky(this.channel,5).register(8,function(w){if(!_.zs(w.data,U04,8,l8))throw new Ly("Unexpectedly nonexistent PageReadyEvent");q()})};var LS6=function(q){this.channel=q};
LS6.prototype.onChange=function(q){Ky(this.channel,3).register(7,function(w){w=_.zs(w.data,T7y,7,l8);if(!w)throw new Ly("Unexpectedly nonexistent ScoreEvent");q(_.fy(w,1),_.yG(w,2))})};var M5M={load:function(){throw new Ly("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new Ly("Storage used, but storage.onSave() listener not set!");}},KS6=function(q){this.channel=q;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},B7y=function(q){Ky(q.channel,4).register(2,M5M.load).register(3,M5M.save);
q.initialSetupDone=!0};
KS6.prototype.onLoad=function(q){this.initialSetupDone||B7y(this);this.loadRegistered||(this.loadRegistered=!0,Ky(this.channel,4).register(2,function(w){var u,y,e;return _.F(function(t){if(t.nextAddress==1){u=_.zs(w.data,Ciy,2,l8);if(!u)throw new Ly("Unexpectedly nonexistent StorageLoad");y=_.fy(u,1);return _.H(t,q(y),2)}e=t.yieldResult;var X=w.reply,G=new yE;var n=new nn6;n=_.sf(n,1,y);n=_.Fo(n,2,_.EX(e,!1));G=_.km(G,3,ta,n);X.call(w,G);_.HI(t)})}))};
KS6.prototype.onSave=function(q){this.initialSetupDone||B7y(this);this.saveRegistered||(this.saveRegistered=!0,Ky(this.channel,4).register(3,function(w){var u,y,e;return _.F(function(t){if(t.nextAddress==1){u=_.zs(w.data,d0y,3,l8);if(!u)throw new Ly("Unexpectedly nonexistent StorageSave");y=_.fy(u,1);e=Saf(u.getData());return _.H(t,q(y,e),2)}var X=w.reply,G=new yE;var n=new HIu;n=_.sf(n,1,y);G=_.km(G,4,ta,n);X.call(w,G);_.HI(t)})}))};var x0o=function(q){this.channel=q};
x0o.prototype.update=function(q){if(!this.channel.features.has(6))throw new Ly("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var w=new yE,u=new WSo;q=_.e9(u,1,q);w=_.km(w,6,ta,q);this.channel.send(w)};
x0o.prototype.register=function(){Ky(this.channel,6)};var q96=function(q){this.channel=q;this.userActivityLoggingIntervalMs=0};
q96.prototype.onUserActivity=function(q,w){this.userActivityLoggingIntervalMs=w;Ky(this.channel,7).register(9,function(u){if(!_.zs(u.data,OIM,9,l8))throw new Ly("Unexpectedly nonexistent ClickEvent");q()})};var wLH=function(q){var w=this;this.channel=q;this.init=this.channel.init.bind(this.channel);this.page=new leu(this.channel);this.game=new jhf(this.channel);this.audio=new hpu(this.channel);this.score=new LS6(this.channel);this.storage=new KS6(this.channel);this.style=new x0o(this.channel);this.userActivity=new q96(this.channel);cy4(this.channel,function(u){var y=new tao;u=_.e9(y,1,u);u=_.aG(u,3,w.userActivity.userActivityLoggingIntervalMs);y=w.audio.isAudioEnabled();y!==void 0&&_.P2(u,2,y);y=new yE;
return _.km(y,5,ta,u)})};var uzc=function(){this.timedFunctionContext=0};
uzc.prototype.timeExecution=function(q,w){var u=this;return function(){var y=_.Cj.apply(0,arguments);u.timedFunctionContext=q;return w.apply(null,_.Cm(y))}};var yf7=function(){var q={};this.priorityTasks=(q[3]=[],q[2]=[],q[1]=[],q);this.isFlushing=!1},tw=function(q,w,u){var y=e6M(q,u);
q.priorityTasks[u].push(w);y&&q.priorityTasks[u].length===1&&q.flush()},e6M=function(q,w){return Object.keys(q.priorityTasks).map(function(u){return Number(u)}).filter(function(u){return!isNaN(u)&&u>w}).every(function(u){return q.priorityTasks[u].length===0})};
yf7.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(q){return q.length>0});)kJM(this,3),kJM(this,2),kJM(this,1)}catch(q){throw Object.values(this.priorityTasks).forEach(function(w){return void w.splice(0,w.length)}),q;
}finally{this.isFlushing=!1}}};
var kJM=function(q,w){for(;e6M(q,w)&&q.priorityTasks[w].length>0;)q.priorityTasks[w][0](),q.priorityTasks[w].shift()};
_.x$.Object.defineProperties(yf7.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(q){return q.length>0})}}});var HA7={};var te4=globalThis.trustedTypes,X3u=te4,G_j;var XE=function(q){this.privateDoNotAccessOrElseWrappedResourceUrl=q};
XE.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var PCJ=_.Sc([""]),XLu=Dfu(["\x00"],["\\0"]),Fcy=Dfu(["\n"],["\\n"]),GJM=Dfu(["\x00"],["\\u0000"]);nj(function(q){return q(PCJ)})||nj(function(q){return q(XLu)})||nj(function(q){return q(Fcy)})||nj(function(q){return q(GJM)});var iZ;_.Hs=function(q,w){this.privateDoNotAccessOrElseWrappedUrl=w};
_.Hs.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.nvJ=Ws("about:blank");iZ=Ws("about:invalid#zClosurez");var Was=function(q){this.isValid=q},Huy=new Was(function(q){return/^[^:]*([/?#]|$)/.test(q)}),Wcj=QE("data"),s7j=QE("http"),NR6=QE("https"),Q7J=QE("ftp"),I3j=QE("mailto"),iuy=QE("intent"),rfc=QE("vnd.youtube"),smc=[Wcj,
s7j,NR6,I3j,Q7J,Huy],NV6=Ps(function(){return typeof URL==="function"}),UvJ=["data:",
"http:","https:","mailto:","ftp:"],IIy=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var fj=function(q){this.privateDoNotAccessOrElseWrappedHtml=q};
fj.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var N_l=Ps(function(){return new fj(te4?te4.emptyHTML:"")});var TR7={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"},z2=function(q,w){var u=Error.call(this,q+" cannot be used with intent "+TR7[w]);this.message=u.message;"stack"in u&&(this.stack=u.stack);this.type=q;this.intent=w;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.O(z2,Error);_.ZD=function(q){this.privateDoNotAccessOrElseWrappedScript=q};
_.ZD.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var TVl=function(q){this.privateDoNotAccessOrElseWrappedAttributePrefix=q};
TVl.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var CEf="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var W67=function(q){var w=_.hP("window.location.href");q==null&&(q='Unknown Error of type "null/undefined"');if(typeof q==="string")return{message:q,name:"Unknown error",lineNumber:"Not available",fileName:w,stack:"Not available"};var u=!1;try{var y=q.lineNumber||q.line||"Not available"}catch(X){y="Not available",u=!0}try{var e=q.fileName||q.filename||q.sourceURL||_.uc.$googDebugFname||w}catch(X){e="Not available",u=!0}w=CCf(q);if(!(!u&&q.lineNumber&&q.fileName&&q.stack&&q.message&&q.name)){u=q.message;
if(u==null){if(q.constructor&&q.constructor instanceof Function){if(q.constructor.name)u=q.constructor.name;else if(u=q.constructor,BS[u])u=BS[u];else{u=String(u);if(!BS[u]){var t=/function\s+([^\(]+)/m.exec(u);BS[u]=t?t[1]:"[Anonymous]"}u=BS[u]}u='Unknown Error of type "'+u+'"'}else u="Unknown Error of unknown type";typeof q.toString==="function"&&Object.prototype.toString!==q.toString&&(u+=": "+q.toString())}return{message:u,name:q.name||"UnknownError",lineNumber:y,fileName:e,stack:w||"Not available"}}return{message:q.message,
name:q.name,lineNumber:q.lineNumber,fileName:q.fileName,stack:w}},CCf=function(q,w){w||(w={});
w[dvM(q)]=!0;var u=q.stack||"",y=q.cause;y&&!w[dvM(y)]&&(u+="\nCaused by: ",y.stack&&y.stack.indexOf(y.toString())==0||(u+=typeof y==="string"?y:y.message+"\n"),u+=CCf(y,w));q=q.errors;if(Array.isArray(q)){y=1;var e;for(e=0;e<q.length&&!(y>4);e++)w[dvM(q[e])]||(u+="\nInner error "+y++ +": ",q[e].stack&&q[e].stack.indexOf(q[e].toString())==0||(u+=typeof q[e]==="string"?q[e]:q[e].message+"\n"),u+=CCf(q[e],w));e<q.length&&(u+="\n... "+(q.length-e)+" more inner errors")}return u},dvM=function(q){var w=
"";
typeof q.toString==="function"&&(w=""+q);return w+q.stack},BS={};var Ouj,ev,Xu,Ves,f3s,ov7,Si,Rx,Afu;Ouj=function(q,w){for(var u=q.split("%s"),y="",e=Array.prototype.slice.call(arguments,1);e.length&&u.length>1;)y+=u.shift()+e.shift();return y+u.join("%s")};
_.lo=function(q){return encodeURIComponent(String(q))};
ev=function(q){return decodeURIComponent(q.replace(/\+/g," "))};
Xu=function(q){FiM.test(q)&&(q.indexOf("&")!=-1&&(q=q.replace(yF4,"&amp;")),q.indexOf("<")!=-1&&(q=q.replace(ev7,"&lt;")),q.indexOf(">")!=-1&&(q=q.replace(kBl,"&gt;")),q.indexOf('"')!=-1&&(q=q.replace(tG7,"&quot;")),q.indexOf("'")!=-1&&(q=q.replace(Pzu,"&#39;")),q.indexOf("\x00")!=-1&&(q=q.replace(X7u,"&#0;")));return q};
Ves=function(q){var w={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var u=_.uc.document.createElement("div");return q.replace(ov7,function(y,e){var t=w[y];if(t)return t;e.charAt(0)=="#"&&(e=Number("0"+e.slice(1)),isNaN(e)||(t=String.fromCharCode(e)));t||(_.Ym(u,mx(y+" ")),t=u.firstChild.nodeValue.slice(0,-1));return w[y]=t})};
f3s=function(q){return q.replace(/&([^;]+);/g,function(w,u){switch(u){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return u.charAt(0)!="#"||(u=Number("0"+u.slice(1)),isNaN(u))?w:String.fromCharCode(u)}})};
ov7=/&([^;\s<&]+);?/g;_.Zyu=function(q){return String(q).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.mvM=String.prototype.repeat?function(q,w){return q.repeat(w)}:function(q,w){return Array(w+1).join(q)};
_.xf=function(q,w){if(!Number.isFinite(q))return String(q);q=String(q);var u=q.indexOf(".");u===-1&&(u=q.length);var y=q[0]==="-"?"-":"";y&&(q=q.substring(1));return y+(0,_.mvM)("0",Math.max(0,w-u))+q};
Si=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.qG()).toString(36)};
Rx=function(q){for(var w=0,u=0;u<q.length;++u)w=31*w+q.charCodeAt(u)>>>0;return w};
_.r1=function(q){return String(q).replace(/\-([a-z])/g,function(w,u){return u.toUpperCase()})};
_.i9=function(q){return String(q).replace(/([A-Z])/g,"-$1").toLowerCase()};
Afu=function(q){return q.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(w,u,y){return u+y.toUpperCase()})};var Jfy=function(){this.names=new Map};
Jfy.prototype.getName=function(q){var w=this.names.get(q);if(w)return w;var u;w=(u=q.description)!=null?u:Si();this.names.set(q,w);return w};var z6s=function(q){var w=Error.call(this,q?q.length+" errors occurred during unsubscription:\n"+q.map(function(u,y){return y+1+") "+u.toString()}).join("\n  "):"");
this.message=w.message;"stack"in w&&(this.stack=w.stack);this.errors=q;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.O(z6s,Error);var Lj=function(q){this.initialTeardown=q;this.closed=!1;this._teardowns=this._parentage=null};
_.k=Lj.prototype;
_.k.unsubscribe=function(){if(!this.closed){this.closed=!0;var q=this._parentage;if(Array.isArray(q))for(var w=_.P(q),u=w.next();!u.done;u=w.next())u.value.remove(this);else q==null||q.remove(this);w=this.initialTeardown;if(lZ(w))try{w()}catch(t){var y=t instanceof z6s?t.errors:[t]}var e=this._teardowns;if(e)for(this._teardowns=null,w=_.P(e),u=w.next();!u.done;u=w.next()){u=u.value;try{lZ(u)?u():u.unsubscribe()}catch(t){u=void 0,y=(u=y)!=null?u:[],t instanceof z6s?y=[].concat(_.Cm(y),_.Cm(t.errors)):
y.push(t)}}if(y)throw new z6s(y);}};
_.k.add=function(q){if(q&&q!==this)if(this.closed)lZ(q)?q():q.unsubscribe();else{if(q instanceof Lj){if(q.closed||q._hasParent(this))return;q._addParent(this)}var w;(this._teardowns=(w=this._teardowns)!=null?w:[]).push(q)}};
_.k._hasParent=function(q){var w=this._parentage;return w===q||Array.isArray(w)&&w.includes(q)};
_.k._addParent=function(q){var w=this._parentage;this._parentage=Array.isArray(w)?(w.push(q),w):w?[w,q]:q};
_.k._removeParent=function(q){var w=this._parentage;w===q?this._parentage=null:Array.isArray(w)&&j9(w,q)};
_.k.remove=function(q){var w=this._teardowns;w&&j9(w,q);q instanceof Lj&&q._removeParent(this)};
var a3s=new Lj;a3s.closed=!0;Lj.JSC$6972_EMPTY=a3s;var Vac=function(){setTimeout.apply(null,_.Cm(_.Cj.apply(0,arguments)))};var qB=function(q){Lj.call(this);this.JSC$6977_isStopped=!1;this.destination=q instanceof qB?q:new wP(!q||lZ(q)?{next:q!=null?q:void 0}:q);oKM(q)&&q.add(this)};
_.O(qB,Lj);qB.JSC$6972_EMPTY=Lj.JSC$6972_EMPTY;qB.create=function(q,w,u){return new u6(q,w,u)};
_.k=qB.prototype;_.k.next=function(q){this.JSC$6977_isStopped||this._next(q)};
_.k.error=function(q){this.JSC$6977_isStopped||(this.JSC$6977_isStopped=!0,this._error(q))};
_.k.complete=function(){this.JSC$6977_isStopped||(this.JSC$6977_isStopped=!0,this._complete())};
_.k.unsubscribe=function(){this.closed||(this.JSC$6977_isStopped=!0,Lj.prototype.unsubscribe.call(this))};
_.k._next=function(q){this.destination.next(q)};
_.k._error=function(q){this.destination.error(q);this.unsubscribe()};
_.k._complete=function(){this.destination.complete();this.unsubscribe()};
var wP=function(q){this.partialObserver=q};
wP.prototype.next=function(q){var w=this.partialObserver;if(w.next)try{w.next(q)}catch(u){Kj(u)}};
wP.prototype.error=function(q){var w=this.partialObserver;if(w.error)try{w.error(q)}catch(u){Kj(u)}else Kj(q)};
wP.prototype.complete=function(){var q=this.partialObserver;if(q.complete)try{q.complete()}catch(w){Kj(w)}};
var u6=function(q,w,u){qB.call(this);var y;lZ(q)||!q?y={next:q!=null?q:void 0,error:w!=null?w:void 0,complete:u!=null?u:void 0}:y=q;this.destination=new wP(y)};
_.O(u6,qB);u6.JSC$6972_EMPTY=qB.JSC$6972_EMPTY;u6.create=qB.create;var ym=typeof Symbol==="function"&&Symbol.observable||"@@observable";var wY=function(q){q&&(this._subscribe=q)};
_.k=wY.prototype;_.k.lift=function(q){var w=new wY;w.source=this;w.operator=q;return w};
_.k.subscribe=function(q,w,u){q=q&&q instanceof qB||q&&lZ(q.next)&&lZ(q.error)&&lZ(q.complete)&&oKM(q)?q:new u6(q,w,u);w=this.operator;u=this.source;q.add(w?w.call(q,u):u?this._subscribe(q):this._trySubscribe(q));return q};
_.k._trySubscribe=function(q){try{return this._subscribe(q)}catch(w){q.error(w)}};
_.k.forEach=function(q,w){var u=this;w=mzy(w);return new w(function(y,e){var t=u.subscribe(function(X){try{q(X)}catch(G){e(G),t==null||t.unsubscribe()}},e,y)})};
_.k._subscribe=function(q){var w;return(w=this.source)==null?void 0:w.subscribe(q)};
wY.prototype[ym]=function(){return this};
wY.prototype.pipe=function(){var q=_.Cj.apply(0,arguments);return q.length?fI7(q)(this):this};
wY.create=function(q){return new wY(q)};var Dvz=function(){var q=Error.call(this,"object unsubscribed");this.message=q.message;"stack"in q&&(this.stack=q.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.O(Dvz,Error);var yx=function(){this.observers=[];this.hasError=this.JSC$6993_isStopped=this.closed=!1;this.thrownError=null};
_.O(yx,wY);_.k=yx.prototype;_.k.lift=function(q){var w=new ys(this,this);w.operator=q;return w};
_.k._throwIfClosed=function(){if(this.closed)throw new Dvz;};
_.k.next=function(q){this._throwIfClosed();if(!this.JSC$6993_isStopped){var w=this.observers.slice();w=_.P(w);for(var u=w.next();!u.done;u=w.next())u.value.next(q)}};
_.k.error=function(q){this._throwIfClosed();if(!this.JSC$6993_isStopped){this.hasError=this.JSC$6993_isStopped=!0;this.thrownError=q;for(var w=this.observers;w.length;)w.shift().error(q)}};
_.k.complete=function(){this._throwIfClosed();if(!this.JSC$6993_isStopped){this.JSC$6993_isStopped=!0;for(var q=this.observers;q.length;)q.shift().complete()}};
_.k.unsubscribe=function(){this.JSC$6993_isStopped=this.closed=!0;this.observers=null};
_.k._trySubscribe=function(q){this._throwIfClosed();return wY.prototype._trySubscribe.call(this,q)};
_.k._subscribe=function(q){this._throwIfClosed();this._checkFinalizedStatuses(q);return this._innerSubscribe(q)};
_.k._innerSubscribe=function(q){var w=this,u=this.JSC$6993_isStopped,y=this.observers;return this.hasError||u?Lj.JSC$6972_EMPTY:(y.push(q),new Lj(function(){return j9(w.observers,q)}))};
_.k._checkFinalizedStatuses=function(q){var w=this.thrownError,u=this.JSC$6993_isStopped;this.hasError?q.error(w):u&&q.complete()};
yx.create=function(q,w){return new ys(q,w)};
var ys=function(q,w){yx.call(this);this.destination=q;this.source=w};
_.O(ys,yx);ys.create=yx.create;ys.prototype.next=function(q){var w,u;(w=this.destination)==null||(u=w.next)==null||u.call(w,q)};
ys.prototype.error=function(q){var w,u;(w=this.destination)==null||(u=w.error)==null||u.call(w,q)};
ys.prototype.complete=function(){var q,w;(q=this.destination)==null||(w=q.complete)==null||w.call(q)};
ys.prototype._subscribe=function(q){var w,u;return(u=(w=this.source)==null?void 0:w.subscribe(q))!=null?u:Lj.JSC$6972_EMPTY};var $S=function(q){yx.call(this);this._value=q};
_.O($S,yx);$S.create=yx.create;$S.prototype._subscribe=function(q){var w=yx.prototype._subscribe.call(this,q);!w.closed&&q.next(this._value);return w};
$S.prototype.getValue=function(){var q=this.thrownError,w=this._value;if(this.hasError)throw q;this._throwIfClosed();return w};
$S.prototype.next=function(q){yx.prototype.next.call(this,this._value=q)};
_.x$.Object.defineProperties($S.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var m$=new wY(function(q){return q.complete()});var uB=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var $zJ=function(q){return q&&typeof q.length==="number"&&typeof q!=="function"};var Zu7={now:function(){return(Zu7.delegate||Date).now()},
delegate:void 0};var cI=function(q,w,u){q=q===void 0?Infinity:q;w=w===void 0?Infinity:w;u=u===void 0?Zu7:u;yx.call(this);this.JSC$7015_bufferSize=q;this.windowTime=w;this.timestampProvider=u;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=w===Infinity;this.JSC$7015_bufferSize=Math.max(1,q);this.windowTime=Math.max(1,w)};
_.O(cI,yx);cI.create=yx.create;cI.prototype.next=function(q){var w=this.buffer,u=this.infiniteTimeWindow,y=this.timestampProvider,e=this.windowTime;this.JSC$6993_isStopped||(w.push(q),!u&&w.push(y.now()+e));pLM(this);yx.prototype.next.call(this,q)};
cI.prototype._subscribe=function(q){this._throwIfClosed();pLM(this);for(var w=this._innerSubscribe(q),u=this.infiniteTimeWindow,y=this.buffer.slice(),e=0;e<y.length&&!q.closed;e+=u?1:2)q.next(y[e]);this._checkFinalizedStatuses(q);return w};
var pLM=function(q){var w=q.JSC$7015_bufferSize,u=q.timestampProvider,y=q.buffer;q=q.infiniteTimeWindow;var e=(q?1:2)*w;w<Infinity&&e<y.length&&y.splice(0,y.length-e);if(!q){w=u.now();u=0;for(q=1;q<y.length&&y[q]<=w;q+=2)u=q;u&&y.splice(0,u+1)}};var vvz=function(q,w){w=w===void 0?$v6:w;this.schedulerActionCtor=q;this.now=w};
vvz.prototype.schedule=function(q,w,u){w=w===void 0?0:w;return(new this.schedulerActionCtor(this,q)).schedule(u,w)};
var $v6=Zu7.now;var fDs=function(){var q=Error.call(this,"no elements in sequence");this.message=q.message;"stack"in q&&(this.stack=q.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.O(fDs,Error);var iB=function(q,w,u,y,e){qB.call(this,q);this.onUnsubscribe=e;w&&(this._next=function(t){try{w(t)}catch(X){this.destination.error(X)}});
u&&(this._error=function(t){try{u(t)}catch(X){this.destination.error(X)}this.unsubscribe()});
y&&(this._complete=function(){try{y()}catch(t){this.destination.error(t)}this.unsubscribe()})};
_.O(iB,qB);iB.JSC$6972_EMPTY=qB.JSC$6972_EMPTY;iB.create=qB.create;iB.prototype.unsubscribe=function(){var q;this.closed||(q=this.onUnsubscribe)!=null&&q.call(this);qB.prototype.unsubscribe.call(this)};var Eq=function(q,w){this.source=q;this.subjectFactory=w;this._subject=null;this._refCount=0;this._connection=null};
_.O(Eq,wY);Eq.create=wY.create;Eq.prototype._subscribe=function(q){return buM(this).subscribe(q)};
var buM=function(q){var w=q._subject;if(!w||w.JSC$6993_isStopped)q._subject=q.subjectFactory();return q._subject};
Eq.prototype._teardown=function(){this._refCount=0;var q=this._connection;this._subject=this._connection=null;q==null||q.unsubscribe()};
Eq.prototype.connect=function(){var q=this,w=this._connection;if(!w){w=this._connection=new Lj;var u=buM(this);w.add(this.source.subscribe(new iB(u,void 0,function(y){q._teardown();u.error(y)},function(){q._teardown();
u.complete()},function(){return q._teardown()})));
w.closed&&(this._connection=null,w=Lj.JSC$6972_EMPTY)}return w};var Lac=Array.isArray;var KaJ=Array.isArray,Y9u=Object,BVH=Y9u.getPrototypeOf,xzj=Y9u.prototype,qYu=Y9u.keys;var Oq=function(q,w,u){qB.call(this,q);this._next=w;this.shouldComplete=u};
_.O(Oq,qB);Oq.JSC$6972_EMPTY=qB.JSC$6972_EMPTY;Oq.create=qB.create;Oq.prototype._complete=function(){this.shouldComplete()?qB.prototype._complete.call(this):this.unsubscribe()};var XsM=["addListener","removeListener"],PZl=["addEventListener","removeEventListener"],G26=["on","off"];var eK=function(){Lj.call(this)};
_.O(eK,Lj);eK.JSC$6972_EMPTY=Lj.JSC$6972_EMPTY;eK.prototype.schedule=function(){return this};var gvs=function(q,w){return setInterval.apply(null,[q,w].concat(_.Cm(_.Cj.apply(2,arguments))))};var kk=function(q,w){Lj.call(this);this.scheduler=q;this.work=w;this.pending=!1};
_.O(kk,eK);kk.JSC$6972_EMPTY=eK.JSC$6972_EMPTY;kk.prototype.schedule=function(q,w){w=w===void 0?0:w;if(this.closed)return this;this.state=q;q=this.id;var u=this.scheduler;q!=null&&(this.id=Evo(this,q,w));this.pending=!0;this.delay=w;this.id=this.id||this.requestAsyncId(u,this.id,w);return this};
kk.prototype.requestAsyncId=function(q,w,u){u=u===void 0?0:u;return gvs(q.flush.bind(q,this),u)};
var Evo=function(q,w,u){u=u===void 0?0:u;if(u!=null&&q.delay===u&&q.pending===!1)return w;clearInterval(w)};
kk.prototype.execute=function(q,w){if(this.closed)return Error("la");this.pending=!1;if(q=this._execute(q,w))return q;this.pending===!1&&this.id!=null&&(this.id=Evo(this,this.id,null))};
kk.prototype._execute=function(q){var w=!1;try{this.work(q)}catch(y){w=!0;var u=!!y&&y||Error(y)}if(w)return this.unsubscribe(),u};
kk.prototype.unsubscribe=function(){if(!this.closed){var q=this.id,w=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;j9(w,this);q!=null&&(this.id=Evo(this,q,null));this.delay=null;eK.prototype.unsubscribe.call(this)}};var R6c=function(q,w){w=w===void 0?$v6:w;vvz.call(this,q,w);this.actions=[];this.active=!1;this.scheduled=void 0};
_.O(R6c,vvz);R6c.prototype.flush=function(q){var w=this.actions;if(this.active)w.push(q);else{var u;this.active=!0;do if(u=q.execute(q.state,q.delay))break;while(q=w.shift());this.active=!1;if(u){for(;q=w.shift();)q.unsubscribe();throw u;}}};var Uf=new wY(MC);var nml=Array.isArray;var tt=function(q,w){kk.call(this,q,w);this.scheduler=q;this.work=w};
_.O(tt,kk);tt.JSC$6972_EMPTY=kk.JSC$6972_EMPTY;tt.prototype.schedule=function(q,w){w=w===void 0?0:w;if(w>0)return kk.prototype.schedule.call(this,q,w);this.delay=w;this.state=q;this.scheduler.flush(this);return this};
tt.prototype.execute=function(q,w){return w>0||this.closed?kk.prototype.execute.call(this,q,w):this._execute(q,w)};
tt.prototype.requestAsyncId=function(q,w,u){u=u===void 0?0:u;return u!=null&&u>0||u==null&&this.delay>0?kk.prototype.requestAsyncId.call(this,q,w,u):q.flush(this)};var cfo=function(){R6c.apply(this,arguments)};
_.O(cfo,R6c);var jml=new cfo(tt);var S9y=function(){this.performanceMonitor=new uzc;this.queue=new yf7;this.internalSymbol=Symbol();this.debugNames=new Jfy};
S9y.prototype.getOnBackgrounded=function(){return Uf};
_.x$.Object.defineProperties(S9y.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var PU=function(q,w){w=Error.call(this,w?q+": "+w:String(q));this.message=w.message;"stack"in w&&(this.stack=w.stack);this.code=q;this.__proto__=PU.prototype;this.name=String(q)};
_.O(PU,Error);var Tc=function(q){PU.call(this,1E3,'sfr:"'+q+'"');this.measurementStrategyFailureReason=q;this.__proto__=Tc.prototype};
_.O(Tc,PU);var Cg=function(){PU.call(this,1003);this.__proto__=Cg.prototype};
_.O(Cg,PU);var XV=function(){PU.call(this,1009);this.__proto__=XV.prototype};
_.O(XV,PU);var h6c=function(){PU.call(this,1011);this.__proto__=h6c.prototype};
_.O(h6c,PU);var j7M=function(){PU.call(this,1007);this.__proto__=Cg.prototype};
_.O(j7M,PU);var NK=function(q){PU.call(this,1004,String(q));this.inputObservableIndex=q;this.__proto__=NK.prototype};
_.O(NK,PU);var bml=function(q){PU.call(this,1010,q);this.__proto__=Qx.prototype};
_.O(bml,PU);var Qx=function(q){PU.call(this,1005,q);this.__proto__=Qx.prototype};
_.O(Qx,PU);var l3J=function(q){var w=_.Cj.apply(1,arguments),u=this;this.orderedFactories=[];this.orderedFactories.push(q);w.forEach(function(y){u.orderedFactories.push(y)})};
l3J.prototype.isSupported=function(q){return this.orderedFactories.some(function(w){return w.isSupported(q)})};
l3J.prototype.makeBeacon=function(q,w){for(var u=0;u<this.orderedFactories.length;u++)if(this.orderedFactories[u].isSupported(w))return this.orderedFactories[u].makeBeacon(q,w);throw new XV;};var dKy=Symbol("ma"),Lc7=Symbol("na"),aQ=function(q,w){this.value=q;this.timeline=w},z7=function(q,w){if(w.timeline!==q.timeline)throw new j7M;
return q.value-w.value};
_.k=aQ.prototype;_.k.equals=function(q){return z7(this,q)===0};
_.k.maximum=function(q){if(q.timeline!==this.timeline)throw new j7M;return this.value>=q.value?this:q};
_.k.round=function(){return new aQ(Math.round(this.value),this.timeline)};
_.k.add=function(q){return new aQ(this.value+q,this.timeline)};
_.k.toString=function(){return String(this.value)};var FV=function(q,w){this.context=q;this.JSC$7099_pinger=w};
FV.prototype.isSupported=function(q){return this.JSC$7099_pinger.isSupported(q)};
FV.prototype.makeBeacon=function(q,w){if(!this.isSupported(w))throw new XV;return new Gk(this.context,this.JSC$7099_pinger,w!=null?w:void 0,q)};
var Gk=function(q,w,u,y){var e=this;this.JSC$7105_pinger=w;this.properties=u;this.url=y;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var t;this.method=(t=u==null?void 0:u.beaconMethod)!=null?t:"GET";this.backgroundedSubscription=q.getOnBackgrounded().subscribe(function(){e.sendNow()})};
Gk.prototype.deactivate=function(){this.internalIsPending=!1};
Gk.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7105_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var q,w;this.JSC$7105_pinger.pingWithHeadersAndBody((q=this.properties)!=null?q:{},this.customHeaders,(w=this.body)!=null?w:"",this.url)}else this.JSC$7105_pinger.ping(this.url);this.internalIsPending=!1}catch(u){}else this.internalIsPending=!1};
Gk.prototype.setHeader=function(q){this.customHeaders.set(q,void 0)};
_.x$.Object.defineProperties(Gk.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var Kcl=function(){for(var q=_.P(_.Cj.apply(0,arguments)),w=q.next();!w.done;w=q.next())if(w=w.value,w.available()){this.timeProvider=w;return}this.timeProvider=new MeH};
_.k=Kcl.prototype;_.k.available=function(){return this.timeProvider.available()};
_.k.now=function(){return this.timeProvider.now()};
_.k.setTimeout=function(q,w){return this.timeProvider.setTimeout(q,w)};
_.k.clearTimeout=function(q){this.timeProvider.clearTimeout(q)};
_.k.interval=function(q,w){var u=this.intervalObservable(q).subscribe(w);return function(){return void u.unsubscribe()}};
_.k.intervalObservable=function(q){return this.timeProvider.intervalObservable(q)};
_.x$.Object.defineProperties(Kcl.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var MeH=function(){this.timeline=Symbol()};
_.k=MeH.prototype;_.k.available=function(){return!1};
_.k.now=function(){return new aQ(0,this.timeline)};
_.k.setTimeout=function(){return 0};
_.k.clearTimeout=function(){};
_.k.interval=function(){return function(){}};
_.k.intervalObservable=function(){return Uf};var nO=function(q,w){this.intrinsicFunctionNamespace=q;this.performanceMonitor=w};
_.k=nO.prototype;_.k.setTimeout=function(q,w){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,q),w)};
_.k.clearTimeout=function(q){this.intrinsicFunctionNamespace.clearTimeout(q)};
_.k.interval=function(q,w){var u=this.intervalObservable(q).subscribe(w);return function(){return void u.unsubscribe()}};
_.k.intervalObservable=function(q){var w=this;return new wY(function(u){var y=0,e=w.intrinsicFunctionNamespace.setInterval(function(){u.next(y++)},q);
return function(){w.intrinsicFunctionNamespace.clearInterval(e)}})};
_.k.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var BRM=function(q,w){nO.call(this,q,w);this.timeline=Lc7};
_.O(BRM,nO);BRM.prototype.now=function(){return new aQ(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
BRM.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&nO.prototype.available.call(this)};var xvH=function(q,w){nO.call(this,q,w);this.timeline=dKy};
_.O(xvH,nO);xvH.prototype.now=function(){return new aQ(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
xvH.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&nO.prototype.available.call(this)};var w4x=function(q){this.context=q;if(qsr===void 0)a:{var w,u,y=(w=q.global)==null?void 0:(u=w.document)==null?void 0:u.createElement("meta");if(y)try{y.httpEquiv="origin-trial";y.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";q.global.document.head.append(y);qsr=y;break a}catch(e){}qsr=void 0}},
qsr;
w4x.prototype.isSupported=function(q){return TBc(this.context)!==void 0&&!(q==null||!q.endOfSession)&&!HU(this.context)&&!(q==null?0:q.attributionEnabled)&&!(q==null?0:q.customHeaders)&&!(q==null?0:q.customBody)};
w4x.prototype.makeBeacon=function(q,w){if(!this.isSupported(w))throw new XV;return new WU(this.context,q,w)};
var WU=function(q,w,u){this.context=q;this.properties=u;this.JSC$7132_urlWithoutToken=w;var y;this.beaconMethod=(y=u==null?void 0:u.beaconMethod)!=null?y:"GET";q=TBc(this.context);if(q===void 0)throw Error();this.fetchLater=q;ul6(this,yzG(this))},ul6=function(q,w){q.beaconResult&&q.beaconResult.activated||(q.beaconAbort=new AbortController,q.beaconResult=q.fetchLater(w,{method:q.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:q.beaconAbort.signal,activateAfter:96E4}))},yzG=function(q){q=q.JSC$7132_urlWithoutToken;
return(q.slice(-1)[0]==="&"?q:q+"&")+"flapi=1"};
WU.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
WU.prototype.sendNow=function(){};
WU.prototype.setHeader=function(){};
_.x$.Object.defineProperties(WU.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7132_urlWithoutToken},
set:function(q){this.JSC$7132_urlWithoutToken=q;q=yzG(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);ul6(this,q)}},
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 efc=function(q){this.context=q};
efc.prototype.isSupported=function(){return!HU(this.context)&&!!this.context.global.fetch};
efc.prototype.ping=function(){var q=this;return AD.apply(null,_.Cm(_.Cj.apply(0,arguments).map(function(w){return kj(q.context.global.fetch(w,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(T7(function(u){return u.status===200}))}))).pipe(mCM(function(w){return w}),Jaz())};
efc.prototype.pingWithHeadersAndBody=function(q,w,u){for(var y=_.Cj.apply(3,arguments),e=this,t=new Headers,X=_.P(w.entries()),G=X.next();!G.done;G=X.next()){var n=_.P(G.value);G=n.next().value;n=n.next().value;t.set(G,n)}var N,Q=(N=q.keepAlive)!=null?N:!1;AD.apply(null,_.Cm(y.map(function(I){return kj(e.context.global.fetch(I,Object.assign({},{method:String(q.beaconMethod),cache:"no-cache"},Q?{keepalive:!0}:{},{mode:"no-cors",headers:t,body:u}))).pipe(T7(function(U){return U.status===200}))}))).pipe(mCM(function(I){return I}),
Jaz())};var kyr,dml;_.sb=function(){};
_.gj=function(q){return q};
kyr=function(q){var w=w||0;return function(){return q.apply(this,Array.prototype.slice.call(arguments,0,w))}};
_.NB=function(q){var w=!1,u;return function(){w||(u=q(),w=!0);return u}};
_.Qs=function(q,w){var u=0;return function(y){_.uc.clearTimeout(u);var e=arguments;u=_.uc.setTimeout(function(){q.apply(void 0,e)},w)}};
dml=function(q,w){var u=0,y=!1,e=[],t=function(){u=0;y&&(y=!1,X())},X=function(){u=_.uc.setTimeout(t,w);
var G=e;e=[];q.apply(void 0,G)};
return function(G){e=arguments;u?y=!0:X()}};var Pcx=function(){return ic&&rj?rj.mobile:!tHa()&&(dj("iPod")||dj("iPhone")||dj("Android")||dj("IEMobile"))},tHa=function(){return ic&&rj?!rj.mobile&&(dj("iPad")||dj("Android")||dj("Silk")):dj("iPad")||dj("Android")&&!dj("Mobile")||dj("Silk")};var X4k;_.db={};X4k="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.db.add=function(q,w,u){if(q!==null&&w in q)throw Error("pa`"+w);q[w]=u};
_.db.clear=function(q){for(var w in q)delete q[w]};
_.db.clone=function(q){var w={},u;for(u in q)w[u]=q[u];return w};
_.db.contains=function(q,w){return DCl(q,w)};
_.db.containsKey=function(q,w){return q!==null&&w in q};
_.db.containsValue=DCl;_.db.create=$Cz;_.db.createImmutableView=function(q){var w=q;Object.isFrozen&&!Object.isFrozen(q)&&(w=Object.create(q),Object.freeze(w));return w};
_.db.createSet=vmz;_.db.equals=function(q,w){for(var u in q)if(!(u in w)||q[u]!==w[u])return!1;for(var y in w)if(!(y in q))return!1;return!0};
_.db.every=function(q,w,u){for(var y in q)if(!w.call(u,q[y],y,q))return!1;return!0};
_.db.extend=function(q,w){for(var u,y,e=1;e<arguments.length;e++){y=arguments[e];for(u in y)q[u]=y[u];for(var t=0;t<X4k.length;t++)u=X4k[t],Object.prototype.hasOwnProperty.call(y,u)&&(q[u]=y[u])}};
_.db.filter=function(q,w,u){var y={},e;for(e in q)w.call(u,q[e],e,q)&&(y[e]=q[e]);return y};
_.db.findKey=Zjl;_.db.findValue=function(q,w,u){return(w=Zjl(q,w,u))&&q[w]};
_.db.forEach=function(q,w,u){for(var y in q)w.call(u,q[y],y,q)};
_.db.get=function(q,w,u){return q!==null&&w in q?q[w]:u};
_.db.getAllPropertyNames=function(q,w,u){if(!q)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return aDH(q);for(var y={};q&&(q!==Object.prototype||w)&&(q!==Function.prototype||u);){for(var e=Object.getOwnPropertyNames(q),t=0;t<e.length;t++)y[e[t]]=!0;q=Object.getPrototypeOf(q)}return aDH(y)};
_.db.getAnyKey=function(q){for(var w in q)return w};
_.db.getAnyValue=function(q){for(var w in q)return q[w]};
_.db.getCount=function(q){var w=0,u;for(u in q)w++;return w};
_.db.getKeys=aDH;_.db.getSuperClass=function(q){return(q=Object.getPrototypeOf(q.prototype))&&q.constructor};
_.db.getValueByKeys=function(q,w){var u=_.uP(w),y=u?w:arguments;for(u=u?0:1;u<y.length;u++){if(q==null)return;q=q[y[u]]}return q};
_.db.getValues=function(q){var w=[],u=0,y;for(y in q)w[u++]=q[y];return w};
_.db.isEmpty=function(q){for(var w in q)return!1;return!0};
_.db.isImmutableView=function(q){return!!Object.isFrozen&&Object.isFrozen(q)};
_.db.map=function(q,w,u){var y={},e;for(e in q)y[e]=w.call(u,q[e],e,q);return y};
_.db.remove=function(q,w){var u;(u=w in q)&&delete q[w];return u};
_.db.set=function(q,w,u){q[w]=u};
_.db.setIfUndefined=function(q,w,u){return w in q?q[w]:q[w]=u};
_.db.setWithReturnValueIfNotSet=function(q,w,u){if(w in q)return q[w];u=u();return q[w]=u};
_.db.some=function(q,w,u){for(var y in q)if(w.call(u,q[y],y,q))return!0;return!1};
_.db.transpose=function(q){var w={},u;for(u in q)w[q[u]]=u;return w};
_.db.unsafeClone=psj;var IJ=function(q,w,u,y,e){this.allowedElements=q;this.elementPolicies=w;this.allowedGlobalAttributes=u;this.globalAttributePolicies=y;this.globallyAllowedAttributePrefixes=e},Fu3=function(q,w,u){u=q.elementPolicies.get(u);
return(u==null?0:u.has(w))?u.get(w):q.allowedGlobalAttributes.has(w)?{policyAction:1}:(u=q.globalAttributePolicies.get(w))?u:q.globallyAllowedAttributePrefixes&&[].concat(_.Cm(q.globallyAllowedAttributePrefixes)).some(function(y){return w.indexOf(y)===0})?{policyAction:1}:{policyAction:0}};var Gy$="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(" "),
nJc=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["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}]])]],H7F="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 crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden 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 valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
Wuk=[["dir",{policyAction:3,conditions:Ps(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:Ps(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:Ps(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:Ps(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],soG=new IJ(new Set(Gy$),new Map(nJc),new Set(H7F),new Map(Wuk)),Nj$=new IJ(new Set(Gy$.concat(["BUTTON",
"INPUT"])),new Map(nJc),new Set(Ps(function(){return H7F.concat(["class","id","name"])})),new Map(Ps(function(){return Wuk.concat([["style",
{policyAction:1}]])})));var Qo3,I6k,rzX;Qo3=function(q,w,u,y){this.JSC$7192_sanitizerTable=q;this.styleElementSanitizer=w;this.styleAttributeSanitizer=u;this.JSC$7192_resourceUrlPolicy=y;this.changes=[]};
_.i76=function(q,w){var u=document.implementation.createHTMLDocument("");q=I6k(q,w,u);u=u.body;u.appendChild(q);u=(new XMLSerializer).serializeToString(u);u=u.slice(u.indexOf(">")+1,u.lastIndexOf("</"));return mx(u)};
I6k=function(q,w,u){w=YYj(w,u);w=document.createTreeWalker(w,5,function(G){if(G.nodeType===3)G=1;else if(Emc(G))if(G=gmJ(G),G===null)G=2;else{var n=q.JSC$7192_sanitizerTable;G=G!=="FORM"&&(n.allowedElements.has(G)||n.elementPolicies.has(G))?1:2}else G=2;return G});
for(var y=w.nextNode(),e=u.createDocumentFragment(),t=e;y!==null;){var X=void 0;if(y.nodeType===3)q.styleElementSanitizer&&t.nodeName==="STYLE"?(y=q.styleElementSanitizer(y.data),X=q.createTextNode(y)):X=q.createTextNode(y.data);else if(Emc(y))X=rzX(q,y,u);else throw Error("da");t.appendChild(X);if(y=w.firstChild())t=X;else for(;!(y=w.nextSibling())&&(y=w.parentNode());)t=t.parentNode}return e};
Qo3.prototype.createTextNode=function(q){return document.createTextNode(q)};
rzX=function(q,w,u){var y,e=gmJ(w);u=u.createElement(e);w=w.attributes;for(var t=_.P(w),X=t.next();!X.done;X=t.next()){var G=X.value;X=G.name;G=G.value;var n=Fu3(q.JSC$7192_sanitizerTable,X,e);a:{if(y=n.conditions){y=_.P(y);for(var N=y.next();!N.done;N=y.next()){var Q=_.P(N.value);N=Q.next().value;Q=Q.next().value;var I=void 0;if((N=(I=w.getNamedItem(N))==null?void 0:I.value)&&!Q.has(N)){y=!1;break a}}}y=!0}if(y)switch(n.policyAction){case 1:xj(u,X,G);break;case 2:n=_.Qmf(G);G=n!==void 0&&UvJ.indexOf(n.toLowerCase())!==
-1?G:"about:invalid#zClosurez";xj(u,X,G);break;case 3:xj(u,X,G.toLowerCase());break;case 4:q.styleAttributeSanitizer?(G=q.styleAttributeSanitizer(G),xj(u,X,G)):xj(u,X,G);break;case 5:q.JSC$7192_resourceUrlPolicy?(n={type:2,attributeName:X,elementName:e},G=bjj(G),(G=q.JSC$7192_resourceUrlPolicy(G,n))&&xj(u,X,G.toString())):xj(u,X,G);break;case 6:if(q.JSC$7192_resourceUrlPolicy){n={type:2,attributeName:X,elementName:e};y=[];G=_.P(G.split(","));for(N=G.next();!N.done;N=G.next())Q=_.P(N.value.trim().split(/\s+/,
2)),N=Q.next().value,Q=Q.next().value,y.push({url:N,descriptor:Q});G={parts:[]};y=_.P(y);for(N=y.next();!N.done;N=y.next())N=N.value,Q=bjj(N.url),(Q=q.JSC$7192_resourceUrlPolicy(Q,n))&&G.parts.push({url:Q.toString(),descriptor:N.descriptor});xj(u,X,Rhf(G))}else xj(u,X,G)}}return u};
_.UMX=Ps(function(){return new Qo3(soG)});
_.Tj6=Ps(function(){return new Qo3(Nj$)});var Cca=function(){this.calledBuild=!1;this.JSC$7204_sanitizerTable=soG},dM$=function(){Cca.apply(this,arguments)};
_.O(dM$,Cca);dM$.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new Qo3(this.JSC$7204_sanitizerTable,void 0,void 0,this.JSC$7204_resourceUrlPolicy)};var O7Z=/[^#]*/;var la=function(q){try{return!!q&&q.location.href!=null&&Aw(q,"foo")}catch(w){return!1}},VHP=function(q){var w=oJr;
if(w)for(var u in w)Object.prototype.hasOwnProperty.call(w,u)&&q(w[u],u,w)},f6a=function(){var q=[];
VHP(function(w){q.push(w)});
return q},oJr={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"},mMc=_.NB(function(){return f6a()}),Jz6=function(){var q=Azj("IFRAME"),
w={};
_.L4(mMc(),function(u){q.sandbox&&q.sandbox.supports&&q.sandbox.supports(u)&&(w[u]=!0)});
return w},Azj=function(q,w){w=w===void 0?document:w;
return w.createElement(String(q).toLowerCase())};var i6;_.zT=function(q,w,u){return Math.min(Math.max(q,w),u)};
i6=function(q,w,u){return q+u*(w-q)};_.Vx=function(q,w){this.x=q!==void 0?q:0;this.y=w!==void 0?w:0};
_.k=_.Vx.prototype;_.k.clone=function(){return new _.Vx(this.x,this.y)};
_.k.equals=function(q){return q instanceof _.Vx&&(this==q?!0:this&&q?this.x==q.x&&this.y==q.y:!1)};
_.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.k.translate=function(q,w){q instanceof _.Vx?(this.x+=q.x,this.y+=q.y):(this.x+=Number(q),typeof w==="number"&&(this.y+=w));return this};
_.k.scale=function(q,w){this.x*=q;this.y*=typeof w==="number"?w:q;return this};_.FO=function(q,w){this.width=q;this.height=w};
_.k=_.FO.prototype;_.k.clone=function(){return new _.FO(this.width,this.height)};
_.k.area=function(){return this.width*this.height};
_.k.aspectRatio=function(){return this.width/this.height};
_.k.isEmpty=function(){return!this.area()};
_.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.k.scale=function(q,w){this.width*=q;this.height*=typeof w==="number"?w:q;return this};var Ek=function(q,w){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=q===QgM&&w||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=zfc};
Ek.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var a6X=function(q){return q instanceof Ek&&q.constructor===Ek&&q.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===zfc?q.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},zfc={},QgM={};
new Ek(QgM,"");var WX,T9,Ub,DMx,$MG,p4c,fg,b7T,gJZ,Ys3,Ob,EJ3,LuZ,l66,joc,MHk,KuF,Bjr,xMr,Zp7,qXj,uar,ycT,wk$,rP;WX=function(q){return q?new rP(_.mN(q)):BUj||(BUj=new rP)};
_.wE=function(q,w){return typeof w==="string"?q.getElementById(w):w};
T9=function(q,w){return(w||document).getElementsByTagName(String(q))};
_.Z7r=function(q){return DMx("yt-formatted-string","paper-input-input",q)};
Ub=function(q,w,u,y){q=y||q;return(w=w&&w!="*"?String(w).toUpperCase():"")||u?q.querySelectorAll(w+(u?"."+u:"")):q.getElementsByTagName("*")};
DMx=function(q,w,u){var y=document,e=q&&q!="*"?String(q).toUpperCase():"";return e||w?(u||y).querySelector(e+(w?"."+w:"")):Ub(y,q,w,u)[0]||null};
$MG=function(q,w){_.db.forEach(w,function(u,y){y=="style"?q.style.cssText=u:y=="class"?q.className=u:y=="for"?q.htmlFor=u:p4c.hasOwnProperty(y)?q.setAttribute(p4c[y],u):_.tz(y,"aria-")||_.tz(y,"data-")?q.setAttribute(y,u):q[y]=u})};
p4c={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"};_.Gc=function(q){q=(q||window).document;q=q.compatMode=="CSS1Compat"?q.documentElement:q.body;return new _.FO(q.clientWidth,q.clientHeight)};
_.vJ6=function(q){var w=_.Tk(q);q=q.defaultView;return new _.Vx(q.pageXOffset||w.scrollLeft,q.pageYOffset||w.scrollTop)};
_.Tk=function(q){return q.scrollingElement?q.scrollingElement:_.PS||q.compatMode!="CSS1Compat"?q.body||q.documentElement:q.documentElement};
fg=function(q){return q?q.defaultView:window};
_.CO=function(q,w,u){return b7T(document,arguments)};
b7T=function(q,w){var u=w[1],y=Ys3(q,String(w[0]));u&&(typeof u==="string"?y.className=u:Array.isArray(u)?y.className=u.join(" "):$MG(y,u));w.length>2&&gJZ(q,y,w,2);return y};
gJZ=function(q,w,u,y){function e(G){G&&w.appendChild(typeof G==="string"?q.createTextNode(G):G)}
for(;y<u.length;y++){var t=u[y];if(!_.uP(t)||_.er(t)&&t.nodeType>0)e(t);else{a:{if(t&&typeof t.length=="number"){if(_.er(t)){var X=typeof t.item=="function"||typeof t.item=="string";break a}if(typeof t==="function"){X=typeof t.item=="function";break a}}X=!1}_.L4(X?_.qT(t):t,e)}}};
_.rg=function(q){return Ys3(document,q)};
Ys3=function(q,w){w=String(w);q.contentType==="application/xhtml+xml"&&(w=w.toLowerCase());return q.createElement(w)};
_.dP=function(){return document.createTextNode("\n")};
Ob=function(q){if(q.nodeType!=1)return!1;switch(q.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};
EJ3=function(q,w){gJZ(_.mN(q),q,arguments,1)};
_.oJ=function(q){for(var w;w=q.firstChild;)q.removeChild(w)};
_.Vs=function(q,w){w.parentNode&&w.parentNode.insertBefore(q,w)};
_.fO=function(q,w){w.parentNode&&w.parentNode.insertBefore(q,w.nextSibling)};
_.UN=function(q){return q&&q.parentNode?q.parentNode.removeChild(q):null};
_.Rf6=function(q,w){var u=w.parentNode;u&&u.replaceChild(q,w)};
_.czP=function(q){var w,u=q.parentNode;if(u&&u.nodeType!=11)if(q.removeNode)q.removeNode(!1);else{for(;w=q.firstChild;)u.insertBefore(w,q);_.UN(q)}};
_.m_=function(q){return q.children!=void 0?q.children:Array.prototype.filter.call(q.childNodes,function(w){return w.nodeType==1})};
_.hf6=function(q){return q.nextElementSibling!==void 0?q.nextElementSibling:_.Ssk(q.nextSibling,!0)};
_.Ssk=function(q,w){for(;q&&q.nodeType!=1;)q=w?q.nextSibling:q.previousSibling;return q};
_.ws=function(q){return _.er(q)&&q.nodeType==1};
_.R3=function(q,w){if(!q||!w)return!1;if(q.contains&&w.nodeType==1)return q==w||q.contains(w);if(typeof q.compareDocumentPosition!="undefined")return q==w||!!(q.compareDocumentPosition(w)&16);for(;w&&q!=w;)w=w.parentNode;return w==q};
LuZ=function(q,w){if(q==w)return 0;if(q.compareDocumentPosition)return q.compareDocumentPosition(w)&2?1:-1;if("sourceIndex"in q||q.parentNode&&"sourceIndex"in q.parentNode){var u=q.nodeType==1,y=w.nodeType==1;if(u&&y)return q.sourceIndex-w.sourceIndex;var e=q.parentNode,t=w.parentNode;return e==t?joc(q,w):!u&&_.R3(e,w)?-1*l66(q,w):!y&&_.R3(t,q)?l66(w,q):(u?q.sourceIndex:e.sourceIndex)-(y?w.sourceIndex:t.sourceIndex)}y=_.mN(q);u=y.createRange();u.selectNode(q);u.collapse(!0);q=y.createRange();q.selectNode(w);
q.collapse(!0);return u.compareBoundaryPoints(_.uc.Range.START_TO_END,q)};
l66=function(q,w){var u=q.parentNode;if(u==w)return-1;for(;w.parentNode!=u;)w=w.parentNode;return joc(w,q)};
joc=function(q,w){for(;w=w.previousSibling;)if(w==q)return-1;return 1};
MHk=function(q){var w,u=arguments.length;if(!u)return null;if(u==1)return arguments[0];var y=[],e=Infinity;for(w=0;w<u;w++){for(var t=[],X=arguments[w];X;)t.unshift(X),X=X.parentNode;y.push(t);e=Math.min(e,t.length)}t=null;for(w=0;w<e;w++){X=y[0][w];for(var G=1;G<u;G++)if(X!=y[G][w])return t;t=X}return t};
_.mN=function(q){return q.nodeType==9?q:q.ownerDocument||q.document};
KuF=function(q){return q.contentDocument||q.contentWindow.document};
_.At=function(q,w){if("textContent"in q)q.textContent=w;else if(q.nodeType==3)q.data=String(w);else if(q.firstChild&&q.firstChild.nodeType==3){for(;q.lastChild!=q.firstChild;)q.removeChild(q.lastChild);q.firstChild.data=String(w)}else _.oJ(q),q.appendChild(_.mN(q).createTextNode(String(w)))};
Bjr={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};xMr={IMG:" ",BR:"\n"};Zp7=function(q){var w;q.tagName=="A"&&q.hasAttribute("href")||q.tagName=="INPUT"||q.tagName=="TEXTAREA"||q.tagName=="SELECT"||q.tagName=="BUTTON"?w=!q.disabled&&(!q.hasAttribute("tabindex")||qXj(q)):w=q.hasAttribute("tabindex")&&qXj(q);return w};
qXj=function(q){q=q.tabIndex;return typeof q==="number"&&q>=0&&q<32768};
uar=function(q){var w=[];wk$(q,w,!0);q=w.join("");q=q.replace(/ \xAD /g," ").replace(/\xAD/g,"");q=q.replace(/\u200B/g,"");q=q.replace(/ +/g," ");q!=" "&&(q=q.replace(/^\s*/,""));return q};
ycT=function(q){var w=[];wk$(q,w,!1);return w.join("")};
wk$=function(q,w,u){if(!(q.nodeName in Bjr))if(q.nodeType==3)u?w.push(String(q.nodeValue).replace(/(\r\n|\r|\n)/g,"")):w.push(q.nodeValue);else if(q.nodeName in xMr)w.push(xMr[q.nodeName]);else for(q=q.firstChild;q;)wk$(q,w,u),q=q.nextSibling};
_.e3x=function(q,w,u){if(!w&&!u)return null;var y=w?String(w).toUpperCase():null;return _.ar(q,function(e){return(!y||e.nodeName==y)&&(!u||typeof e.className==="string"&&_.SH(e.className.split(/\s+/),u))},!0)};
_.ar=function(q,w,u){q&&!u&&(q=q.parentNode);for(u=0;q;){if(w(q))return q;q=q.parentNode;u++}return null};
rP=function(q){this.JSC$7229_document_=q||_.uc.document||document};
_.k=rP.prototype;_.k.getElement=function(q){return _.wE(this.JSC$7229_document_,q)};
_.k.$=rP.prototype.getElement;_.k.getElementsByTagName=function(q,w){return(w||this.JSC$7229_document_).getElementsByTagName(String(q))};
_.k.getElementsByTagNameAndClass=function(q,w,u){return Ub(this.JSC$7229_document_,q,w,u)};
_.k.$$=rP.prototype.getElementsByTagNameAndClass;_.k.setProperties=$MG;_.k.JSC$7231_createDom=function(q,w,u){return b7T(this.JSC$7229_document_,arguments)};
_.k.createElement=function(q){return Ys3(this.JSC$7229_document_,q)};
_.k.createTextNode=function(q){return this.JSC$7229_document_.createTextNode(String(q))};
_.k.getWindow=function(){return this.JSC$7229_document_.defaultView};
var HX=function(q){return _.vJ6(q.JSC$7229_document_)};
_.k=rP.prototype;_.k.appendChild=function(q,w){q.appendChild(w)};
_.k.append=EJ3;_.k.canHaveChildren=Ob;_.k.removeNode=_.UN;_.k.getChildren=_.m_;_.k.contains=_.R3;_.k=ua.prototype;_.k.getWidth=function(){return this.right-this.left};
_.k.getHeight=function(){return this.bottom-this.top};
_.k.clone=function(){return new ua(this.top,this.right,this.bottom,this.left)};
_.k.contains=function(q){return this&&q?q instanceof ua?q.left>=this.left&&q.right<=this.right&&q.top>=this.top&&q.bottom<=this.bottom:q.x>=this.left&&q.x<=this.right&&q.y>=this.top&&q.y<=this.bottom:!1};
_.k.expand=function(q,w,u,y){_.er(q)?(this.top-=q.top,this.right+=q.right,this.bottom+=q.bottom,this.left-=q.left):(this.top-=q,this.right+=Number(w),this.bottom+=Number(u),this.left-=Number(y));return this};
_.k.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};
_.k.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};
_.k.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};
_.k.translate=function(q,w){q instanceof _.Vx?(this.left+=q.x,this.right+=q.x,this.top+=q.y,this.bottom+=q.y):(this.left+=q,this.right+=q,typeof w==="number"&&(this.top+=w,this.bottom+=w));return this};
_.k.scale=function(q,w){w=typeof w==="number"?w:q;this.left*=q;this.right*=q;this.top*=w;this.bottom*=w;return this};var Jt=function(q,w,u,y){this.left=q;this.top=w;this.width=u;this.height=y};
_.k=Jt.prototype;_.k.clone=function(){return new Jt(this.left,this.top,this.width,this.height)};
_.k.boundingRect=function(q){var w=Math.max(this.left+this.width,q.left+q.width),u=Math.max(this.top+this.height,q.top+q.height);this.left=Math.min(this.left,q.left);this.top=Math.min(this.top,q.top);this.width=w-this.left;this.height=u-this.top};
_.k.contains=function(q){return q instanceof _.Vx?q.x>=this.left&&q.x<=this.left+this.width&&q.y>=this.top&&q.y<=this.top+this.height:this.left<=q.left&&this.left+this.width>=q.left+q.width&&this.top<=q.top&&this.top+this.height>=q.top+q.height};
_.k.distance=function(q){var w=q.x<this.left?this.left-q.x:Math.max(q.x-(this.left+this.width),0);q=q.y<this.top?this.top-q.y:Math.max(q.y-(this.top+this.height),0);return Math.sqrt(w*w+q*q)};
_.k.getSize=function(){return new _.FO(this.width,this.height)};
_.k.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};
_.k.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};
_.k.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};
_.k.translate=function(q,w){q instanceof _.Vx?(this.left+=q.x,this.top+=q.y):(this.left+=q,typeof w==="number"&&(this.top+=w));return this};
_.k.scale=function(q,w){w=typeof w==="number"?w:q;this.left*=q;this.width*=q;this.top*=w;this.height*=w;return this};var tr6,Dl,Hg4,aJ,GGP,FjF,nTX,Vc6,H$a,s6T;_.zk=function(q,w,u){if(typeof w==="string")(w=_.kGa(q,w))&&(q.style[w]=u);else for(var y in w){u=q;var e=w[y],t=_.kGa(u,y);t&&(u.style[t]=e)}};
tr6={};_.kGa=function(q,w){var u=tr6[w];if(!u){var y=_.r1(w);u=y;q.style[y]===void 0&&(y=(_.PS?"Webkit":_.tv?"Moz":null)+Afu(y),q.style[y]!==void 0&&(u=y));tr6[w]=u}return u};
_.ir=function(q,w){var u=_.mN(q);return u.defaultView&&u.defaultView.getComputedStyle&&(q=u.defaultView.getComputedStyle(q,null))?q[w]||q.getPropertyValue(w)||"":""};
_.EN=function(q,w){return _.ir(q,w)||(q.currentStyle?q.currentStyle[w]:null)||q.style&&q.style[w]};
_.PPZ=function(q){return _.EN(q,"position")};
Dl=function(q,w,u){if(w instanceof _.Vx){var y=w.x;w=w.y}else y=w,w=u;q.style.left=aJ(y,!1);q.style.top=aJ(w,!1)};
Hg4=function(q){try{return q.getBoundingClientRect()}catch(w){return{left:0,top:0,right:0,bottom:0}}};
_.Jw=function(q){var w=_.mN(q),u=new _.Vx(0,0);if(q==(w?_.mN(w):document).documentElement)return u;q=Hg4(q);w=HX(WX(w));u.x=q.left+w.x;u.y=q.top+w.y;return u};
_.XkG=function(q,w,u){if(w instanceof _.FO)u=w.height,w=w.width;else if(u==void 0)throw Error("sa");q.style.width=aJ(w,!0);q.style.height=aJ(u,!0)};
aJ=function(q,w){typeof q=="number"&&(q=(w?Math.round(q):q)+"px");return q};
GGP=function(q){return FjF(q)};
FjF=function(q){var w=nTX;if(_.EN(q,"display")!="none")return w(q);var u=q.style,y=u.display,e=u.visibility,t=u.position;u.visibility="hidden";u.position="absolute";u.display="inline";q=w(q);u.display=y;u.position=t;u.visibility=e;return q};
nTX=function(q){var w=q.offsetWidth,u=q.offsetHeight,y=_.PS&&!w&&!u;return(w===void 0||y)&&q.getBoundingClientRect?(q=Hg4(q),new _.FO(q.right-q.left,q.bottom-q.top)):new _.FO(w,u)};
Vc6=function(q){var w=_.Jw(q);q=FjF(q);return new Jt(w.x,w.y,q.width,q.height)};
H$a=function(q,w){q=q.style;"opacity"in q?q.opacity=w:"MozOpacity"in q?q.MozOpacity=w:"filter"in q&&(q.filter=w===""?"":"alpha(opacity="+Number(w)*100+")")};
_.M1=function(q,w){q.style.display=w?"":"none"};
_.Wjk=function(q){return"rtl"==_.EN(q,"direction")};
s6T=function(q){var w=_.ir(q,"marginLeft"),u=_.ir(q,"marginRight"),y=_.ir(q,"marginTop");q=_.ir(q,"marginBottom");return new ua(parseFloat(y),parseFloat(u),parseFloat(q),parseFloat(w))};
_.NxP=function(q){var w=_.ir(q,"borderLeftWidth"),u=_.ir(q,"borderRightWidth"),y=_.ir(q,"borderTopWidth");q=_.ir(q,"borderBottomWidth");return new ua(parseFloat(y),parseFloat(u),parseFloat(q),parseFloat(w))};var Zl=function(q){this.context=q};
Zl.prototype.isSupported=function(q){return(q==null?0:q.attributionEnabled)||(q==null?void 0:q.beaconMethod)==="POST"||(q==null?0:q.customHeaders)||(q==null?0:q.customBody)||(q==null?0:q.keepAlive)?!1:!HU(this.context)};
Zl.prototype.ping=function(){var q=this;return Nr(_.Cj.apply(0,arguments).map(function(w){try{var u=q.context.global,y=!1;y=y===void 0?!1:y;u.google_image_requests||(u.google_image_requests=[]);var e=Azj("IMG",u.document);y&&(e.attributionSrc="");e.src=w;u.google_image_requests.push(e);return!0}catch(t){return!1}}).every(function(w){return w}))};
Zl.prototype.pingWithHeadersAndBody=function(q,w,u){this.ping.apply(this,_.Cm(_.Cj.apply(3,arguments)))};var Q6j=function(q){this.context=q};
Q6j.prototype.isSupported=function(q){return IZG&&!HU(this.context)&&SYs(this.context)!==void 0&&!(q==null?0:q.attributionEnabled)&&(q==null?void 0:q.beaconMethod)!=="POST"&&!(q==null?0:q.customHeaders)&&!(q==null?0:q.customBody)};
Q6j.prototype.makeBeacon=function(q,w){if(!this.isSupported(w))throw new XV;return new pO(this.context,q)};
var IZG=!1,pO=function(q,w){this.context=q;this.JSC$7250_urlWithoutToken=w;q=SYs(this.context);if(q===void 0)throw Error();this.wrappedBeacon=new q(i$j(this),{})},i$j=function(q){q=q.JSC$7250_urlWithoutToken;
return(q.slice(-1)[0]==="&"?q:q+"&")+"pbapi=1"};
pO.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
pO.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
pO.prototype.setHeader=function(){};
_.x$.Object.defineProperties(pO.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7250_urlWithoutToken},
set:function(q){this.JSC$7250_urlWithoutToken=q;this.wrappedBeacon.setURL(i$j(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(q){if(q!=="GET")throw new XV;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var rcT=function(q){this.context=q};
rcT.prototype.isSupported=function(q){if((q==null?0:q.attributionEnabled)||(q==null?void 0:q.beaconMethod)==="GET"||(q==null?0:q.customHeaders)||(q==null?0:q.customBody)||(q==null?0:q.keepAlive))return!1;var w;return!HU(this.context)&&((w=this.context.global.navigator)==null?void 0:w.sendBeacon)!==void 0};
rcT.prototype.ping=function(){var q=this;return Nr(_.Cj.apply(0,arguments).map(function(w){var u;return(u=q.context.global.navigator)==null?void 0:u.sendBeacon(w)}).every(function(w){return w}))};
rcT.prototype.pingWithHeadersAndBody=function(q,w,u){this.ping.apply(this,_.Cm(_.Cj.apply(3,arguments)))};var PX=function(q){this.value=q},S3=function(q,w){return Nr(q.value).pipe(kS(w))},MK=new PX(!1),Tgz=new PX(!0);var DL=function(q){this.value=q;this.releasedSubject=new yx};
DL.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.x$.Object.defineProperties(DL.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7263_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var e1o=["FRAME","IMG","IFRAME"],BB7=/^[01](px)?$/,yD7=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},ugf=function(){var q=new yD7;
q.crossDomainLoadedDefault=!0;q.pendingImagesBlockLoad=!0;return q};var UTX=function(q,w){var u=nj6(q);if(u)if(u.onCreativeLoad)u.onCreativeLoad(w);else{var y=w?[w]:[],e=function(t){for(var X=0;X<y.length;++X)try{y[X](1,t)}catch(G){}y={push:function(G){G(1,t)}}};
u.onCreativeLoad=function(t){y.push(t)};
u.setAttribute("data-creative-load-listener","");u.addEventListener("creativeLoad",function(t){e(t.detail)});
_.uc.addEventListener("message",function(t){G7H(u,e,t)})}};var $k=function(q,w){var u=this;this.global=q;this.parentContext=w;this.JSC$7274_onVisibilityChange=this.document?AD(Nr(!0),fm(this.document,"visibilitychange")).pipe(DC(this.parentContext.performanceMonitor,748),T7(function(){return u.getVisibilityState()}),Yj()):Nr("visible");
this.document?fm(this.document,"DOMContentLoaded").pipe(DC(this.parentContext.performanceMonitor,739),bB(1)):Nr(M9y("DOMContentLoaded"))},U1M=function(q){return q.document!==null&&q.document.visibilityState!==void 0};
$k.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
$k.prototype.querySelector=function(q){return this.document?this.document.querySelector(q):null};
$k.prototype.querySelectorAll=function(q){return this.document?_.qT(this.document.querySelectorAll(q)):[]};
$k.prototype.elementFromPoint=function(q,w){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;q=this.document.elementFromPoint(q,w);return q===null?null:new DL(q)};
var F24=function(q,w,u){u=u===void 0?!1:u;if(w.ref===void 0||!q.document)return Nr(w).pipe(DC(q.parentContext.performanceMonitor,749));var y=new cI(1),e=function(){y.next(w)};
u||UTX(w.ref,e);k7j(w.ref,e);return y.pipe(DC(q.parentContext.performanceMonitor,749),bB(1))};
_.x$.Object.defineProperties($k.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return Aw(this.global,"document")?this.global.document||null:null}}});var Hmu=_.Sc(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),W$M=_.Sc(["./reach_worklet.js"]),sQf=_.Sc(["./reach_worklet.js"]),Tx$=_.Sc(["./reach_worklet.html"]),CPX=_.Sc(["./reach_worklet.js"]),dTP=_.Sc(["./reach_worklet.js"]);_.qK(Tx$);_.qK(CPX);_.qK(dTP);var YS={left:0,top:0,width:0,height:0};var O$T,oTF,Vrj,fZG,u4,Ack,JcG,z3$,PLj,XBs,Z$c,pka;O$T=function(q,w,u,y,e,t,X){var G="";q&&(G+=q+":");u&&(G+="//",w&&(G+=w+"@"),G+=u,y&&(G+=":"+y));e&&(G+=e);t&&(G+="?"+t);X&&(G+="#"+X);return G};
oTF=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.qu=function(q){return q.match(oTF)};
_.o5=function(q,w){return q?w?decodeURI(q):decodeURIComponent(q):q};
Vrj=function(q){q=_.qu(q)[1]||null;!q&&_.uc.self&&_.uc.self.location&&(q=_.uc.self.location.protocol.slice(0,-1));return q?q.toLowerCase():""};
_.w$=function(q){return _.o5(_.qu(q)[3]||null,!0)};
_.QV=function(q){return _.o5(_.qu(q)[5]||null,!0)};
_.xnM=function(q){var w=q.indexOf("#");return w<0?null:q.slice(w+1)};
fZG=function(q){q=_.qu(q);return O$T(q[1],q[2],q[3],q[4])};
_.mT6=function(q){q=_.qu(q);return O$T(q[1],null,q[3],q[4])};
_.cf=function(q){q=_.qu(q);return O$T(null,null,null,null,q[5],q[6],q[7])};
_.Bf=function(q){var w=q.indexOf("#");return w<0?q:q.slice(0,w)};
u4=function(q,w){q=_.qu(q);w=_.qu(w);return q[3]==w[3]&&q[1]==w[1]&&q[4]==w[4]};
Ack=function(q,w){if(q){q=q.split("&");for(var u=0;u<q.length;u++){var y=q[u].indexOf("="),e=null;if(y>=0){var t=q[u].substring(0,y);e=q[u].substring(y+1)}else t=q[u];w(t,e?ev(e):"")}}};
JcG=function(q){var w=q.indexOf("#");w<0&&(w=q.length);var u=q.indexOf("?");if(u<0||u>w){u=w;var y=""}else y=q.substring(u+1,w);return[q.slice(0,u),y,q.slice(w)]};
z3$=function(q,w){return w?q?q+"&"+w:w:q};
_.aZP=function(q,w){if(!w)return q;q=JcG(q);q[1]=z3$(q[1],w);return q[0]+(q[1]?"?"+q[1]:"")+q[2]};
_.DTT=function(q,w,u){if(Array.isArray(w))for(var y=0;y<w.length;y++)_.DTT(q,String(w[y]),u);else w!=null&&u.push(q+(w===""?"":"="+_.lo(w)))};
_.i4=function(q){var w=[],u;for(u in q)_.DTT(u,q[u],w);return w.join("&")};
_.xw=function(q,w){w=_.i4(w);return _.aZP(q,w)};
_.vU=function(q,w,u){u=u!=null?"="+_.lo(u):"";return _.aZP(q,w+u)};
PLj=function(q,w,u,y){for(var e=u.length;(w=q.indexOf(u,w))>=0&&w<y;){var t=q.charCodeAt(w-1);if(t==38||t==63)if(t=q.charCodeAt(w+e),!t||t==61||t==38||t==35)return w;w+=e+1}return-1};
XBs=/#|$/;_.c2=function(q,w){var u=q.search(XBs),y=PLj(q,0,w,u);if(y<0)return null;var e=q.indexOf("&",y);if(e<0||e>u)e=u;y+=w.length+1;return ev(q.slice(y,e!==-1?e:0))};
Z$c=/[?&]($|#)/;_.qU=function(q,w){for(var u=q.search(XBs),y=0,e,t=[];(e=PLj(q,y,w,u))>=0;)t.push(q.substring(y,e)),y=Math.min(q.indexOf("&",e)+1||u,u);t.push(q.slice(y));return t.join("").replace(Z$c,"$1")};
_.RA=function(q,w,u){return _.vU(_.qU(q,w),w,u)};
pka=function(q){var w=JcG(window.location.href),u=w[1],y=[];u&&u.split("&").forEach(function(e){var t=e.indexOf("=");t=t>=0?e.slice(0,t):e;q.hasOwnProperty(t)||y.push(e)});
w[1]=z3$(y.join("&"),_.i4(q));return w[0]+(w[1]?"?"+w[1]:"")+w[2]};var Zml=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Zml,_.bE);Zml.prototype.getVersion=function(){return _.fy(this,2)};var Dr4=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Dr4,_.bE);var fCs=function(q,w){return _.sf(q,2,w)},aCM=function(q,w){return _.sf(q,3,w)};
Dr4.prototype.getModel=function(){return _.fy(this,4)};
var ADo=function(q,w){return _.sf(q,4,w)},VRM=function(q,w){return _.sf(q,5,w)},z17=function(q,w){return _.sf(q,9,w)},ojs=function(q,w){return Ts(q,10,w)},OmJ=function(q,w){return _.P2(q,11,w)},mrM=function(q,w){return _.sf(q,1,w)},JDH=function(q,w){return _.P2(q,7,w)};var CBu="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var Lg=function(q,w,u,y){q=q===void 0?window:q;w=w===void 0?null:w;u=u===void 0?new uzc:u;y=y===void 0?NYJ():y;S9y.call(this);var e=this;this.global=q;this.debugChannel=w;this.performanceMonitor=u;this.onPageHide=Vm(function(){return fm(e.global,"pagehide")}).pipe(DC(this.performanceMonitor,941));
this.onLoad=Vm(function(){return fm(e.global,"load")}).pipe(DC(this.performanceMonitor,738),bB(1));
this.onResize=Vm(function(){return fm(e.global,"resize")}).pipe(DC(this.performanceMonitor,741));
this.onMessage=Vm(function(){return fm(e.global,"message")}).pipe(DC(this.performanceMonitor,740));
this.document=new $k(this.global,this);this.timeProvider=new Kcl(new xvH(this.intrinsicFunctionNamespace,this.performanceMonitor),new BRM(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new l3J(new w4x(this),new Q6j(this),new FV(this,new efc(this)),new FV(this,new rcT(this)),new FV(this,new Zl(this)))};
_.O(Lg,S9y);var HU=function(q){var w=q.global;return!!q.global.HTMLFencedFrameElement&&!!w.fence&&typeof w.fence.reportEvent==="function"};
_.k=Lg.prototype;_.k.reportFencedFrameEvent=function(q){HU(this)&&this.global.fence.reportEvent(q)};
_.k.getOnBackgrounded=function(){return this.onPageHide.pipe(DC(this.performanceMonitor,942),kS(this.queue),T7(function(){}))};
_.k.postMessage=function(q,w,u){u=u===void 0?[]:u;this.global.postMessage(q,w,u)};
_.k.getWidth=function(){return la(this.global)?this.global.width:0};
_.k.getHeight=function(){return la(this.global)?this.global.height:0};
_.k.isMobile=function(){return tHa()||Pcx()};
var ZL=function(q,w){try{var u=rD4(w,q.global,q.isMobile());return{left:u.left,top:u.top,width:u.getWidth(),height:u.getHeight()}}catch(y){return YS}};
Lg.prototype.validate=function(){var q=this.beaconFactory.isSupported()||HU(this);return this.global&&this.timeProvider.available()&&q};
var jwM=function(q){return(q=$rf(q.global))?kj(q):null};
_.x$.Object.defineProperties(Lg.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(q){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!la(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}}});_.$TG=!_.kf&&!_.zy();var CI4=function(q){return q};var OYM=function(q){return q.pipe(JD(function(w){var u=w.endOfSessionReason;var y;return((y=w.viewable)==null?void 0:y.extrapolateToNow().value)||u!=void 0}),bB(1),pm())};var R14=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},cDs=function(q){var w=q.sequenceNumber.toString(10).padStart(2,"0");
w=""+q.startTime+w;q.sequenceNumber<99&&q.sequenceNumber++;return w};var r1j=qr(Mr(function(q){return q.endOfSessionReason===void 0}),T7(function(q){return Object.assign({},q,{timestamps:ia(q)})}),JD(function(q){var w=q.viewable;
q=q.timestamps;var u;return(u=w==null?void 0:w.extrapolateUsingTimestampMap(q).value)!=null?u:!1}),T7(function(q){var w=q.beaconFactory;
var u=q.timestampedExposureHistory;var y=q.timeOnScreen;var e=q.binaryContext;q=q.timestamps;if(w===void 0||u===void 0||y===void 0||e===void 0)return!1;if(y.extrapolateUsingTimestampMap(q).value.every(function(t){return t>=0}))return!0;
u=u.map(function(t){return t.timestamp+":"+t.value}).join(",");
y=rb({bin:e,tos:y},q);w.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+y+("&eh="+u)).sendNow();return!0}),Mr(function(q){return!q}),pm());var h1c=function(q){return{id:q.pingId,mcvt:q.maxConsecutiveViewTime,p:q.creativePosition,asp:q.adSpeedPosition,tm:q.totalMeasurementTime,tu:q.totalUnviewedTime,mtos:q.maxTimeOnScreen,tos:q.timeOnScreen,v:q.binaryVersion,bin:q.binaryContext,avms:q.measurementStrategy,bs:q.browserSize,mc:q.maximumExposure,"if":q.crossDomainIframeState,vu:q.delayedImpressionJsState,app:q.inApp,mse:q.mraidError,mtop:q.mraidSituation,itpl:q.injectedTemplateId,adk:q.adKey,exk:q.awbidKey,rs:q.requestSource,la:q.isLargeAd,
cr:q.isContentRecommendationAd,uach:q.userAgentClientHints,vs:q.viewState,r:q.reasonCode,pay:q.hasCpmavUrl,co:q.clientPingOrderCounter,rst:q.adRenderStartTime,rpt:q.adRenderPeriodTime,isd:q.initialScrollDepth,lsd:q.loadedScrollDepth,context:q.errorContext,msg:q.errorMessage,stack:q.errorStack,name:q.errorName,ec:q.hasElementChanged,sfr:q.strategyFailureReasons,met:q.creativeSearchResult,wmsd:q.webMeasurementStartDiagnostic,pv:q.pageVisible,epv:q.eosPageVisible,pbe:q.inStatefulBeaconExperiment,fle:q.inFetchLaterBeaconExperiment,
vae:q.inViewableAttributionExperiment,spb:q.supportsPendingBeacon,sfl:q.supportsFetchLater,ffslot:q.isFencedFrameSlotTurtlex,reach:q.sharedStorageReachMode,io2:q.v2VisibilityBitVector,rxdbg:q.rxDebugger,omida:q.omidAppId,omidp:q.omidPartner,omidpv:q.omidPartnerVersion,omidor:q.omidOcclusionReasons,omidv:q.omidVersion,omids:q.omidSessionType,omidam:q.omidAccessMode,omidct:q.omidCreativeType,omidia:q.omidInApp,omiddc:q.omidDeviceCategory,omidlat:q.omidLastActivity,omiddit:q.omidDeviceIdleTime,qid:q.errorEscapedQueryId}};var d1J=function(q){var w=[];return q.pipe(T7(function(u){var y=u.beaconFactory,e=u.fetchBeaconFactory,t=u.timeOnScreen,X=u.timeOnScreenUrlPrefixes,G=u.payloadMapper,n=u.timeOnScreenPingId,N=u.timeOnScreenReason,Q=u.urlSerializer,I=u.viewable,U=u.hasImpressionFired,d=u.inStatefulBeaconExperiment,V=u.supportsPendingBeacon,J=u.supportsFetchLater,a=u.turtlexReportEventData;if(!u.geometryMeasurable||!U||u.maxTimeOnScreen===void 0||t===void 0||X===void 0||G===void 0||n===void 0||Q===void 0||y===void 0)return!1;
if(u.isTurtlex){if(N===void 0)return!1;X=u.reportFencedFrameEvent;if(!X)return!1;X({eventType:"active-view-time-on-screen",eventData:a!=null?a:"",destination:["buyer"]});return!0}if(!(d||J||N))return!1;a=ia(u);var b;I=(b=I==null?void 0:I.extrapolateUsingTimestampMap(a).value)!=null?b:!1;b=Q(Object.assign({},u,{pingId:n,viewState:I?4:3,reasonCode:N!=null?N:"u",payloadMapper:G,urlPrefixes:X}),a);if(d){for(;w.length>X.length;)u=void 0,(u=w.shift())==null||u.deactivate();b.forEach(function(l,S){S>=w.length?
w.push(y.makeBeacon(l)):w[S].url=l});
return V&&e&&N!==void 0?(b.forEach(function(l){e.makeBeacon(l).sendNow()}),!0):N!==void 0}if(V&&e&&N!==void 0)return b.forEach(function(l){e.makeBeacon(l).sendNow()}),!0;
if(J&&e){for(;w.length>X.length;)V=void 0,(V=w.shift())==null||V.deactivate();var g=Q(Object.assign({},u,{pingId:n,viewState:I?4:3,reasonCode:N!=null?N:"u",payloadMapper:G,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),a)[0];b.forEach(function(l,S){S>=w.length?w.push(y.makeBeacon(g,{endOfSession:!0})):w[S].url=g});
return N!==void 0?(b.forEach(function(l){e.makeBeacon(l).sendNow()}),!0):N!==void 0}return N!==void 0?(b.forEach(function(l){y.makeBeacon(l).sendNow()}),!0):!1}),Mr(function(u){return!u}),pm())};var osz=qr(JD(function(q){return q.immediateUrlPrefixes!==void 0&&q.payloadMapper!==void 0&&q.urlSerializer!==void 0&&q.inferredPingId!==void 0&&q.beaconFactory!==void 0}),JD(function(q){return qfu(q)!==null}),BYM(function(q){return q.activeViewUnmeasurableEvent},function(q){return q.emit}),T7(function(q){if(q.isTurtlex){var w=q.reportFencedFrameEvent;
if(w){var u;w({eventType:"active-view-unmeasurable",eventData:(u=q.turtlexReportEventData)!=null?u:"",destination:["buyer"]})}}else{u=void 0;var y=qfu(q);if(y==="x"){var e,t=(e=q.geometricMeasurementErrors)!=null?e:q.contextValidationErrors;t&&(w=t.stack,u=t.message)}q.urlSerializer(Object.assign({},q,{urlPrefixes:q.immediateUrlPrefixes,payloadMapper:q.payloadMapper,pingId:q.inferredPingId,viewState:2,reasonCode:y,errorMessage:u,errorStack:w}),ia(q)).forEach(function(X){q.beaconFactory.makeBeacon(X).sendNow()})}}),
bB(1),pm());var wXf=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var iY4=qr(JD(function(q){return q.payloadMapper!==void 0&&q.immediateUrlPrefixes!==void 0&&q.urlSerializer!==void 0&&q.inferredPingId!==void 0&&q.beaconFactory!==void 0}),T7(function(q){return Object.assign({},q,{timestamps:ia(q)})}),JD(function(q){var w=q.viewable;
var u=q.hasImpressionFired;q=q.timestamps;var y;return!!u&&((y=w==null?void 0:w.extrapolateUsingTimestampMap(q).value)!=null?y:!1)}),BYM(function(q){return q.activeViewViewableEvent},function(q){return q.emit}),T7(function(q){var w=q.beaconFactory,u=q.turtlexReportEventData;
if(q.isTurtlex){var y=q.reportFencedFrameEvent;if(!y)return!1;y({eventType:"active-view-viewable",eventData:u!=null?u:"",destination:["buyer"]});return!0}u=q.urlSerializer(Object.assign({},q,{urlPrefixes:q.immediateUrlPrefixes,payloadMapper:q.payloadMapper,pingId:q.inferredPingId,viewState:4,reasonCode:"v"}),q.timestamps);(y=q.cpmavUrls)&&y.length>0&&q.viewUrlSerializer&&q.viewUrlSerializer(y,q).forEach(function(e){w.makeBeacon(e).sendNow()});
(y=q.viewableRelayUrls)&&y.length>0&&q.viewUrlSerializer&&q.viewUrlSerializer(y,q).forEach(function(e){w.makeBeacon(e).sendNow()});
u.forEach(function(e){w.makeBeacon(e,{attributionEnabled:q.isViewableAttributionEnabled}).sendNow()});
return!0}),Mr(function(q){return!q}),pm());var cw4=T7(function(q){return[q.value.topWindowViewportExternalGeometry.width,q.value.topWindowViewportExternalGeometry.height]});var pg=function(q,w){this.callback=q;this.options=w;this.intersectionObserverV2=this.intersectionObserverV1=null},oSl=function(q,w){w?q.intersectionObserverV2||(w=Object.assign({},q.options,{delay:100,
trackVisibility:!0}),q.intersectionObserverV2=new IntersectionObserver(q.callback,w)):q.intersectionObserverV1||(q.intersectionObserverV1=new IntersectionObserver(q.callback,q.options))},vTk=function(q,w){q=w?q.intersectionObserverV2:q.intersectionObserverV1;
if(!q)throw new h6c;return q};
pg.prototype.observe=function(q,w){vTk(this,q).observe(w)};
pg.prototype.unobserve=function(q,w){vTk(this,q).unobserve(w)};
pg.prototype.disconnect=function(q){vTk(this,q).disconnect()};
pg.prototype.takeRecords=function(q){return vTk(this,q).takeRecords()};var zc={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:YS,topWindowViewportExternalGeometry:YS,measurementRequests:new yx,elementGeometrySourceName:"ns",elementGeometry:YS,intersectionGeometry:YS,viewportLocalAppOffset:{x:0,y:0}};var aLu=gb(qr(T7(function(q){var w;return(w=q.exposureOverride)!=null?w:fLf(q)}),T7(function(q){return isFinite(q)?q:0}))),Yfz=gb(qr(T7(function(q){var w;
return(w=q.exposureOverride)!=null?w:fLf(q)}),T7(function(q){return isFinite(q)?q:-1})));var b6=function(q,w){this.a=q;this.b=w;if(q.clock.timeline!==w.clock.timeline)throw Error();};
b6.prototype.equivalentTo=function(q){return q instanceof b6?this.a.equivalentTo(q.a)&&this.b.equivalentTo(q.b):!1};
b6.prototype.extrapolateToTime=function(q){var w=this.a.extrapolateToTime(q).value,u=this.b.extrapolateToTime(q).value;return{timestamp:q,value:[w,u]}};
_.x$.Object.defineProperties(b6.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 q=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),w=this.a.lastMeasurement.timestamp.equals(q)?this.a.lastMeasurement.value:this.a.extrapolateToTime(q).value,u=this.b.lastMeasurement.timestamp.equals(q)?this.b.lastMeasurement.value:this.b.extrapolateToTime(q).value;return{timestamp:q,value:[w,u]}}}});var Yk=function(q,w){this.input=q;this.mapFunction=w;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
Yk.prototype.equivalentTo=function(q){return q instanceof Yk?this.input.equivalentTo(q.input)&&this.mapFunction===q.mapFunction:!1};
Yk.prototype.extrapolateToTime=function(q){q=this.input.extrapolateToTime(q);return{timestamp:q.timestamp,value:this.mapFunction(q.value)}};
_.x$.Object.defineProperties(Yk.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var gP=function(){};
gP.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
gP.prototype.extrapolateUsingTimestampMap=function(q){var w=this.clock.timeline,u,y=(u=q.get(w))!=null?u:this.clock.now();q.set(w,y);return this.extrapolateToTime(y)};
gP.prototype.map=function(q){return new b$6(this,q)};
gP.prototype.joinWith=function(q){return new YX3(this,q)};
var YX3=function(){b6.apply(this,arguments);this.map=gP.prototype.map;this.joinWith=gP.prototype.joinWith;this.extrapolateToNow=gP.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=gP.prototype.extrapolateUsingTimestampMap};
_.O(YX3,b6);var b$6=function(){Yk.apply(this,arguments);this.map=gP.prototype.map;this.joinWith=gP.prototype.joinWith;this.extrapolateToNow=gP.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=gP.prototype.extrapolateUsingTimestampMap};
_.O(b$6,Yk);var Rr=function(q,w){this.lastMeasurement=w;this.extrapolateToNow=gP.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=gP.prototype.extrapolateUsingTimestampMap;this.map=gP.prototype.map;this.joinWith=gP.prototype.joinWith;this.clock=q};
Rr.prototype.equivalentTo=function(q){return q.active};
Rr.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.x$.Object.defineProperties(Rr.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var RqJ=T7(function(q){if(q.value.viewportGeometrySourceName==="omid"){if(q.value.elementGeometrySourceName==="nio")return"omio";if(q.value.elementGeometrySourceName==="geo")return"omgeo"}return q.value.elementGeometrySourceName==="geo"||q.value.elementGeometrySourceName==="nio"?q.value.viewportGeometrySourceName:q.value.elementGeometrySourceName});var AwH=qr(JD(function(q){return!isNaN(q)}),hD(function(q,w){return isNaN(q)?w:Math.min(q,w)},NaN),Yj());var DKM=gb(qr(T7(function(q){return q.intersectionGeometry.width*q.intersectionGeometry.height/(q.exposedViewportLocalGeometry.width*q.exposedViewportLocalGeometry.height)}),T7(function(q){return isFinite(q)?Math.min(1,q):0})));var ESM=qr(gb(T7(function(q){q=q.exposureOverride?q.elementGeometry.width*q.elementGeometry.height*q.exposureOverride/(q.topWindowViewportExternalGeometry.width*q.topWindowViewportExternalGeometry.height):q.intersectionGeometry.width*q.intersectionGeometry.height/(q.topWindowViewportExternalGeometry.width*q.topWindowViewportExternalGeometry.height);return isFinite(q)?q:0})));var hql=function(q,w){var u=this;this.timeProvider=q;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=w.pipe(Yj()).subscribe(function(y){j3(u);u.measurementRequestObserver=y})},lLl=function(q,w){j3(q);
q.lastMeasurementRequest=q.timeProvider.setTimeout(function(){var u;return void((u=q.measurementRequestObserver)==null?void 0:u.next())},w)},j3=function(q){q.lastMeasurementRequest!==null&&q.timeProvider.clearTimeout(q.lastMeasurementRequest);
q.lastMeasurementRequest=null};
hql.prototype.dispose=function(){j3(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var gT6=function(){};var Ngs=function(q,w){this.context=q;this.strategies=w};
_.O(Ngs,gT6);Ngs.prototype.buildGeometrySource=function(q,w){var u=this.strategies.map(function(t){return t.buildGeometrySource(q,w)}),y=xK6(u.map(function(t){return t.geometrySource})),e=y.capturedErrors.pipe(ETF());
return{geometrySource:y.chain.pipe(kS(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:e,strategyErrors:y.capturedErrors}].concat(_.Cm(u.map(function(t){return t.additionalOutputs}))))}};
var ETF=function(){return hD(function(q,w){w instanceof Tc?q.push(w.measurementStrategyFailureReason):q.push(-1);return q},[])};var IHz=function(q,w){this.context=q;this.poller=w};
_.O(IHz,gT6);IHz.prototype.buildGeometrySource=function(q,w){var u=qN4(u3c(this.context,this.poller),srJ(this.context,w.requestSource));return{geometrySource:Bbl(q.measurableCreative.pipe(u),w.inApp),additionalOutputs:{}}};var Q36=function(q,w,u){u=u===void 0?UKc(q,w):u;this.context=q;this.intersectionObserverStrategy=u};
_.O(Q36,gT6);Q36.prototype.buildGeometrySource=function(q,w){var u=this.intersectionObserverStrategy(w.useV2);return{geometrySource:Bbl(q.measurableCreative.pipe(u,TbM(this.context)),w.inApp),additionalOutputs:{}}};var R3G=function(q,w,u){var y=y===void 0?Symbol():y;this.element=q;this.immediateUrls=w;this.timeOnScreenUrls=u;this.symbol=y};var hw=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),PIo=Object.freeze([1,.75,hw.exposureThreshold,hw.largeAdExposureThreshold,0]);var OW7=function(q,w){w=w===void 0?36E5:w;var u=u===void 0?!0:u;this.creatives=new yx;this.elementsToUnregister=new yx;this.elementMap=new Map;var y=new Lg(window,null);y.beaconFactory=new FV(y,new Zl(y));s37(y,this.creatives,this.elementsToUnregister,q,w,u).subscribe()},fxl=function(q,w,u,y){if(!q.elementMap.has(w)){var e=new DL(w);
q.elementMap.set(w,e);q.creatives.next(new R3G(e,u,y))}},VJM=function(q,w){q.elementsToUnregister.next(w);
var u=q.elementMap.get(w);u!==void 0&&(u.release(),q.elementMap.delete(w))};var GtM=function(q){var w=q.url;q=q.uaDataValues;this.JSC$7379_url_=w;this.uaDataValues_=q;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var u=/[?&]([^&=]+)=([^&]*)/g;q=u.exec(w);)this.urlParamValues_[q[1]]=q[2]},nMs=function(q){q=q.uaDataValues_;
if(!q)return"";var w=Kg("uap",q.platform)+Kg("uapv",q.platformVersion)+Kg("uafv",q.uaFullVersion)+Kg("uaa",q.architecture)+Kg("uam",q.model)+Kg("uab",q.bitness);q.fullVersionList&&(w+="&uafvl="+encodeURIComponent(q.fullVersionList.map(function(u){return encodeURIComponent(u.brand)+";"+encodeURIComponent(u.version)}).join("|")));
q.wow64!=null&&(w+="&uaw="+Number(q.wow64));return w.slice(1)};var Eb=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Eb,_.bE);Eb.prototype.getId=function(){return _.fy(this,1)};
Eb.prototype.setId=function(q){return _.KV(this,1,q)};var RJ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(RJ,_.bE);RJ.prototype.getSeconds=function(){return oG(this,1)};
RJ.prototype.setSeconds=function(q){return _.Va(this,1,aK(q),"0")};_.vy=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(_.vy,_.bE);_.vy.prototype.getSeconds=function(){return oG(this,1)};
_.vy.prototype.setSeconds=function(q){return _.Va(this,1,aK(q),"0")};
_.cck=function(q){var w=Number(Av(q,1));q=_.yG(q,2);return new Date(w*1E3+q/1E6)};var cU=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(cU,_.bE);cU.prototype.getUrl=function(){return _.fy(this,1)};
cU.prototype.setUrl=function(q){return _.KV(this,1,q)};
cU.prototype.getHeight=function(){return _.yG(this,2)};
cU.prototype.getWidth=function(){return _.yG(this,3)};var SK=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(SK,_.bE);SK.prototype.getAspectRatio=function(){return VN(this,1)};
SK.prototype.setAspectRatio=function(q){return _.Va(this,1,_.Fm(q),0)};
SK.prototype.getDuration=function(){return _.PT(this,RJ,2)};var SXX=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(SXX,_.bE);var h3F=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(h3F,_.bE);var j6P=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(j6P,_.bE);var lZc=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(lZc,_.bE);var Ljr=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Ljr,_.bE);var MrT=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(MrT,_.bE);var KjT=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(KjT,_.bE);var Bxr=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Bxr,_.bE);var xTx=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(xTx,_.bE);var ht=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(ht,_.bE);var jK=[2,4,5,6,7];var qA$=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(qA$,_.bE);var Cy=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Cy,_.bE);_.k=Cy.prototype;_.k.getId=function(){return _.PT(this,Eb,1)};
_.k.setId=function(q){return _.e9(this,1,q)};
_.k.getName=function(){return _.fy(this,2)};
_.k.setDescription=function(q){return _.KV(this,3,q)};
_.k.getUrl=function(){return _.fy(this,8)};
_.k.setUrl=function(q){return _.KV(this,8,q)};
var l6=function(q){return _.wg(q,cU,10,_.uI())};
Cy.prototype.getOwner=function(q){var w=_.T_(this,40,_.Y6,3,!0);ck(w,q);return w[q]};
Cy.prototype.getVersion=function(){return oG(this,45)};
var LO=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(LO,_.bE);_.wVk=[0,c$7,has];_.um$=[0,c$7,has];var yxa=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(yxa,_.bE);var MB=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(MB,_.bE);MB.prototype.getStatus=function(){return _.mw(this,1)};
MB.prototype.removeItem=function(q){return Ptu(this,2,q)};var eB$=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(eB$,_.bE);eB$.prototype.getName=function(){return _.fy(this,8)};var KO=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(KO,_.bE);KO.prototype.getCommand=function(){return _.mw(this,1)};
KO.prototype.getSource=function(){return _.PT(this,eB$,2)};
KO.prototype.setVisible=function(q){return _.z6(this,5,q)};
KO.prototype.removeItem=function(q){return Ptu(this,7,q)};var k4T=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(k4T,_.bE);k4T.prototype.getCommand=function(){return _.mw(this,1)};
k4T.prototype.removeItem=function(q){return Ptu(this,4,q)};
var tq$=_.uZ(k4T);var BU=function(q,w,u){u=u===void 0?Error():u;var y=Error.call(this);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.code=q;w+=":";u instanceof Error?(this.message=w+u.message,this.stack=u.stack||""):(this.message=w+String(u),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(BU,Error);_.VG=function(){this.JSC$7437_disposed_=this.JSC$7437_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.VG.prototype.JSC$7437_disposed_=!1;_.VG.prototype.isDisposed=function(){return this.JSC$7437_disposed_};
_.VG.prototype.dispose=function(){this.JSC$7437_disposed_||(this.JSC$7437_disposed_=!0,this.disposeInternal())};
_.VG.prototype[Symbol.dispose]=function(){this.dispose()};
_.sN=function(q,w){q.addOnDisposeCallback(_.rk(_.BX,w))};
_.VG.prototype.addOnDisposeCallback=function(q,w){this.JSC$7437_disposed_?w!==void 0?q.call(w):q():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),w&&(q=q.bind(w)),this.onDisposeCallbacks_.push(q))};
_.VG.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var xk=function(q){_.VG.call(this);this.wpc=q};
_.O(xk,_.VG);xk.prototype.rRB=function(){return this.wpc.f()};
xk.prototype.dC1=function(q){return this.wpc.c(q)};
xk.prototype.l8=function(q){return this.wpc.m(J14(q))};
xk.prototype.v6=function(q){return this.wpc.mws(J14(q))};
var q1=function(q){_.VG.call(this);var w=this;this.d3=q;this.oAb="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.akD=void 0;this.mTS=this.d3.p;this.dY6=this.mea.bind(this);this.addOnDisposeCallback(function(){return void Pjr(w)})};
_.O(q1,_.VG);var XVZ=function(q){var w;return _.F(function(u){if(u.nextAddress==1){if(!q.d3.wpc)throw new BU(30,"NWA");return q.frS?u.return(q.frS):_.H(u,q.d3.wpc(),2)}w=u.yieldResult;q.frS=new xk(w);return u.return(q.frS)})};
q1.prototype.snapshot=function(q){return this.d3.s(Object.assign({},q.kG&&{c:q.kG},q.quV&&{s:q.quV},q.bw1!==void 0&&{p:q.bw1}))};
q1.prototype.mea=function(q){this.d3.e(q)};
q1.prototype.qca=function(q,w){return this.d3.c(q,w,!1)};
var Pjr=function(q){q.akD!==void 0&&(q.oAb.forEach(function(w){var u;(u=q.akD)==null||u.removeEventListener(w,q.dY6)}),q.akD=void 0)};
q1.prototype.hDn=function(){return this.d3.l()};var FT$,qF=function(){_.VG.apply(this,arguments);this.bWa=1;this[FT$]=this.dispose};
_.O(qF,_.VG);qF.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.bWa++;return this};
qF.prototype.dispose=function(){--this.bWa||_.VG.prototype.dispose.call(this)};
FT$=Symbol.dispose;var K2H=function(q){this.ikT=q;q.addNewEventMetric("/client_streamz/bg/frs",_.t1("mk"))};
K2H.prototype.record=function(q,w){this.ikT.record("/client_streamz/bg/frs",q,w)};
var w1u=function(q){this.qQs=q;q.addNewEventMetric("/client_streamz/bg/wrl",_.t1("mn"),ks("ac"),ks("sc"),_.t1("rk"),_.t1("mk"))};
w1u.prototype.record=function(q,w,u,y,e,t){this.qQs.record("/client_streamz/bg/wrl",q,w,u,y,e,t)};
var x1H=function(q){this.zVZ=q;q.addNewCounter("/client_streamz/bg/ec",_.t1("en"),_.t1("mk"))};
x1H.prototype.increment=function(q,w){this.zVZ.JSC$7690_incrementCounter("/client_streamz/bg/ec",q,w)};
var qZ7=function(q){this.nUf=q;q.addNewEventMetric("/client_streamz/bg/el",_.t1("en"),_.t1("mk"))};
qZ7.prototype.record=function(q,w,u){this.nUf.record("/client_streamz/bg/el",q,w,u)};
var Bgj=function(q){this.rg2=q;q.addNewCounter("/client_streamz/bg/cec",ks("ec"),_.t1("mk"))};
Bgj.prototype.increment=function(q,w){this.rg2.JSC$7690_incrementCounter("/client_streamz/bg/cec",q,w)};
var uZy=function(q){this.wFT=q;q.addNewCounter("/client_streamz/bg/po/csc",ks("cs"),_.t1("mk"))};
uZy.prototype.increment=function(q,w){this.wFT.JSC$7690_incrementCounter("/client_streamz/bg/po/csc",q,w)};
var yXf=function(q){this.aCs=q;q.addNewCounter("/client_streamz/bg/po/ctav",_.t1("av"),_.t1("mk"))};
yXf.prototype.increment=function(q,w){this.aCs.JSC$7690_incrementCounter("/client_streamz/bg/po/ctav",q,w)};
var ePM=function(q){this.mWs=q;q.addNewCounter("/client_streamz/bg/po/cwsc",_.t1("su"),_.t1("mk"))};
ePM.prototype.increment=function(q,w){this.mWs.JSC$7690_incrementCounter("/client_streamz/bg/po/cwsc",q,w)};var AXc=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(AXc,_.bE);var nCs=function(q,w){return _.om(q,3,w,KuM)};var G4j=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(G4j,_.bE);var n6a=[1,2,3];var HhX=[0,n6a,_.K1H,js4,MEs];var WTa=[0,_.SV,[0,gy6,_.g9]];var sKc=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(sKc,_.bE);var Nc3=[1,2,3];var QKP=[0,Nc3,STj,EyJ,_.hv,WTa];var IaT=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(IaT,_.bE);var ih6=[0,_.SV,HhX,QKP];var rxT=[0,_.cS];var U66=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(U66,_.bE);var Tcc=[0,_.cS,-1,_.RG];var CjT=[0,_.cS,-1,_.EL,_.RG];var d6x=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(d6x,_.bE);var Ohx=[1,2,3];var o6X=[0,Ohx,_.hv,Tcc,_.hv,CjT,_.hv,rxT];var Vq3=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Vq3,_.bE);Vq3.prototype.JSC$7510_serializeBinary=w3M([0,_.cS,o6X,BnJ,_.SV,ih6,lkJ,L1y]);var fac=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(fac,_.bE);var JxG=function(q){var w=new Vq3;w=_.sf(w,1,q.JSC$7626_metricName);var u=m6X(q);w=_.om(w,3,u,_.vV);u=[];for(var y=[],e=_.P(q.cellMap.keys()),t=e.next();!t.done;t=e.next())y.push(t.value.split(","));for(e=0;e<y.length;e++){t=y[e];for(var X=q.cellType,G=q.getCells(t)||[],n=[],N=0;N<G.length;N++){var Q=G[N],I=Q&&Q.cellValue;Q=new sKc;switch(X){case 3:I=Number(I);Number.isFinite(I)&&iD(Q,1,Nc3,aK(I));break;case 2:iD(Q,2,Nc3,_.Fm(Number(I)))}n.push(Q)}X=n;for(G=0;G<X.length;G++){n=X[G];N=new IaT;n=_.e9(N,
2,n);N=[];Q=Axr(q);for(I=0;I<Q.length;I++){var U=Q[I],d=t[I],V=new G4j;switch(U){case 3:iD(V,1,n6a,bj(String(d)));break;case 2:U=Number(d);Number.isFinite(U)&&iD(V,2,n6a,_.dc(U));break;case 1:iD(V,3,n6a,l6o(d==="true"))}N.push(V)}Ts(n,1,N);u.push(n)}}Ts(w,4,u);return w};var zB$=function(q){if(!q)return"";if(/^about:(?:blank|srcdoc)$/.test(q))return window.origin||"";q.indexOf("blob:")===0&&(q=q.substring(5));q=q.split("#")[0].split("?")[0];q=q.toLowerCase();q.indexOf("//")==0&&(q=window.location.protocol+q);/^[\w\-]*:\/\//.test(q)||(q=window.location.href);var w=q.substring(q.indexOf("://")+3),u=w.indexOf("/");u!=-1&&(w=w.substring(0,u));u=q.substring(0,q.indexOf("://"));if(!u)throw Error("ua`"+q);if(u!=="http"&&u!=="https"&&u!=="chrome-extension"&&u!=="moz-extension"&&
u!=="file"&&u!=="android-app"&&u!=="chrome-search"&&u!=="chrome-untrusted"&&u!=="chrome"&&u!=="app"&&u!=="devtools")throw Error("va`"+u);q="";var y=w.indexOf(":");if(y!=-1){var e=w.substring(y+1);w=w.substring(0,y);if(u==="http"&&e!=="80"||u==="https"&&e!=="443")q=":"+e}return u+"://"+w+q};var D6P=function(q,w,u){var y=String(_.uc.location.href);return y&&q&&w?[w,aaP(zB$(y),q,u||null)].join(" "):null},aaP=function(q,w,u){var y=[],e=[];
if((Array.isArray(u)?2:1)==1)return e=[w,q],_.L4(y,function(G){e.push(G)}),Zh$(e.join(" "));
var t=[],X=[];_.L4(u,function(G){X.push(G.key);t.push(G.value)});
u=Math.floor((new Date).getTime()/1E3);e=t.length==0?[u,w,q]:[t.join(":"),u,w,q];_.L4(y,function(G){e.push(G)});
q=Zh$(e.join(" "));q=[u,q];X.length==0||q.push(X.join(""));return q.join("_")},Zh$=function(q){var w=bYj();
w.update(q);return w.digestString().toLowerCase()};var wD=function(q){this.JSC$7521_document_=q||{cookie:""}},pV3;
_.k=wD.prototype;_.k.isEnabled=function(){if(!_.uc.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};
_.k.set=function(q,w,u){var y=!1;if(typeof u==="object"){var e=u.sameSite;y=u.secure||!1;var t=u.domain||void 0;var X=u.path||void 0;var G=u.maxAge}if(/[;=\s]/.test(q))throw Error("wa`"+q);if(/[;\r\n]/.test(w))throw Error("xa`"+w);G===void 0&&(G=-1);u=t?";domain="+t:"";X=X?";path="+X:"";y=y?";secure":"";G=G<0?"":G==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+G*1E3)).toUTCString();this.JSC$7521_document_.cookie=q+"="+w+u+X+G+y+(e!=null?";samesite="+e:"")};
_.k.get=function(q,w){for(var u=q+"=",y=(this.JSC$7521_document_.cookie||"").split(";"),e=0,t;e<y.length;e++){t=ss(y[e]);if(t.lastIndexOf(u,0)==0)return t.slice(u.length);if(t==q)return""}return w};
_.k.remove=function(q,w,u){var y=this.containsKey(q);this.set(q,"",{maxAge:0,path:w,domain:u});return y};
_.k.getKeys=function(){return pV3(this).keys};
_.k.getValues=function(){return pV3(this).values};
_.k.isEmpty=function(){return!this.JSC$7521_document_.cookie};
_.k.getCount=function(){return this.JSC$7521_document_.cookie?(this.JSC$7521_document_.cookie||"").split(";").length:0};
_.k.containsKey=function(q){return this.get(q)!==void 0};
_.k.containsValue=function(q){for(var w=pV3(this).values,u=0;u<w.length;u++)if(w[u]==q)return!0;return!1};
_.k.clear=function(){for(var q=pV3(this).keys,w=q.length-1;w>=0;w--)this.remove(q[w])};
pV3=function(q){q=(q.JSC$7521_document_.cookie||"").split(";");for(var w=[],u=[],y,e,t=0;t<q.length;t++)e=ss(q[t]),y=e.indexOf("="),y==-1?(w.push(""),u.push(e)):(w.push(e.substring(0,y)),u.push(e.substring(y+1)));return{keys:w,values:u}};
_.TQ=new wD(typeof document=="undefined"?null:document);var jfs=function(){var q=_.uc.__SAPISID||_.uc.__APISID||_.uc.__3PSAPISID||_.uc.__1PSAPISID||_.uc.__OVERRIDE_SID;if(q)return!0;typeof document!=="undefined"&&(q=new wD(document),q=q.get("SAPISID")||q.get("APISID")||q.get("__Secure-3PAPISID")||q.get("__Secure-1PAPISID"));return!!q},$6a=function(q,w,u,y){(q=_.uc[q])||typeof document==="undefined"||(q=(new wD(document)).get(w));
return q?D6P(q,u,y):null},Y1H=function(q){var w=zB$(_.uc==null?void 0:_.uc.location.href),u=[];
if(jfs()){w=w.indexOf("https:")==0||w.indexOf("chrome-extension:")==0||w.indexOf("chrome-untrusted://new-tab-page")==0||w.indexOf("moz-extension:")==0;var y=w?_.uc.__SAPISID:_.uc.__APISID;y||typeof document==="undefined"||(y=new wD(document),y=y.get(w?"SAPISID":"APISID")||y.get("__Secure-3PAPISID"));(y=y?D6P(y,w?"SAPISIDHASH":"APISIDHASH",q):null)&&u.push(y);w&&((w=$6a("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",q))&&u.push(w),(q=$6a("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",q))&&u.push(q))}return u.length==
0?null:u.join(" ")};var v6j=function(){this.minSize=1024};
v6j.prototype.compress=function(q){var w,u,y,e;return _.F(function(t){switch(t.nextAddress){case 1:return w=new CompressionStream("gzip"),u=(new Response(w.readable)).arrayBuffer(),y=w.writable.getWriter(),_.H(t,y.write((new TextEncoder).encode(q)),2);case 2:return _.H(t,y.close(),3);case 3:return e=Uint8Array,_.H(t,u,4);case 4:return t.return(new e(t.yieldResult))}})};
v6j.prototype.isSupported=function(q){return q<this.minSize?!1:typeof CompressionStream!=="undefined"};var bhZ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(bhZ,_.bE);var uh=function(q,w){this.intervalMs=q;this.callback=w;this.enabled=!1;this.nowFn=function(){return _.qG()};
this.lastTimeMs=this.nowFn()};
uh.prototype.setInterval=function(q){this.intervalMs=q;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
uh.prototype.start=function(){var q=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){q.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
uh.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
uh.prototype.tick=function(){var q=this;if(this.enabled){var w=Math.max(this.nowFn()-this.lastTimeMs,0);w<this.intervalMs*.8?this.timer=setTimeout(function(){q.tick()},this.intervalMs-w):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var YAZ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(YAZ,_.bE);var g6r=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(g6r,_.bE);var E6c=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(E6c,_.bE);E6c.prototype.getTransmissionType=function(){return _.mw(this,1)};var RVu=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(RVu,_.bE);RVu.prototype.getVersion=function(){return _.fy(this,2)};var y4=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(y4,_.bE);var Es4=function(q){Ts(X3,1,q)};
y4.prototype.getModel=function(){return _.fy(this,6)};
var RBG=_.uZ(y4);var cx3=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(cx3,_.bE);var YN4=["platform","platformVersion","architecture","model","uaFullVersion"],X3=new y4,gsu=null;var SAZ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(SAZ,_.bE);var hBj=function(q){return _.Xo(q,1,1)};var jKZ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q,4)};
_.O(jKZ,_.bE);_.en=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q,36)};
_.O(_.en,_.bE);_.en.prototype.getExperimentIds=function(){return _.PT(this,bhZ,16)};var laj=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q,19)};
_.O(laj,_.bE);laj.prototype.setLogSource=function(q){return _.Xo(this,2,q)};
laj.prototype.setScheduler=function(q){return _.Xo(this,10,q)};var Mq3=function(q,w){this.isServiceWorkerScope=w=w===void 0?!1:w;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new laj;Number.isInteger(q)&&this.logRequest.setLogSource(q);w||(this.locale=document.documentElement.getAttribute("lang"));LTG(this,new SAZ)};
Mq3.prototype.setLogSource=function(q){this.logRequest.setLogSource(q);return this};
var LTG=function(q,w){_.e9(q.logRequest,1,w);_.mw(w,1)||hBj(w);q.isServiceWorkerScope||(w=kr(q),_.fy(w,5)||_.sf(w,5,q.locale));q.uach&&(w=kr(q),_.PT(w,y4,9)||_.e9(w,9,q.uach))},KTT=function(q,w){q.transmissionType=w},BcZ=function(q){var w=w===void 0?YN4:w;
var u=q.isServiceWorkerScope?void 0:fg();u?c1o(u,w).then(function(y){q.uach=RBG(y!=null?y:"[]");y=kr(q);_.e9(y,9,q.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},kr=function(q){q=_.PT(q.logRequest,SAZ,1);
var w=_.PT(q,cx3,11);w||(w=new cx3,_.e9(q,11,w));return w};
Mq3.prototype.build=function(q,w,u,y,e,t){w=w===void 0?0:w;u=u===void 0?0:u;y=y===void 0?null:y;e=e===void 0?0:e;t=t===void 0?0:t;if(!this.isServiceWorkerScope){var X=kr(this);var G=new E6c;G=_.Xo(G,1,this.transmissionType);G=_.P2(G,2,this.isFinal);u=_.aG(G,3,u>0?u:void 0);u=_.aG(u,4,e>0?e:void 0);u=_.aG(u,5,t>0?t:void 0);e=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;t=e[_.f$]|0;u=p$(u,t)?u:G_(u,e,t)?FF(u,e):new u.constructor(XF(e,t,!0));_.e9(X,10,u)}X=this.logRequest.clone();u=Date.now().toString();
X=_.Fo(X,4,aK(u));q=q.slice();q=Ts(X,3,q);y&&(X=new YAZ,y=_.aG(X,13,y),X=new g6r,y=_.e9(X,2,y),X=new jKZ,y=_.e9(X,1,y),y=_.Xo(y,2,9),_.e9(q,18,y));w&&_.VR(q,14,w);return q};F3.prototype.currBackoffCount_=0;F3.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
F3.prototype.getValue=function(){return this.currValue_};
var x6X=function(q){q.currBaseValue_=Math.min(q.maxValue_,q.currBaseValue_*q.backoffFactor_);q.currValue_=Math.min(q.maxValue_,q.currBaseValue_+(q.randomFactor_?Math.round(q.randomFactor_*(Math.random()-.5)*2*q.currBaseValue_):0));q.currBackoffCount_++};var yyc=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q,8)};
_.O(yyc,_.bE);var qgX=_.uZ(yyc);var ep4=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(ep4,_.bE);var t5;t5=new k1z;var PJ=function(q){_.VG.call(this);var w=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7599_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$7599_sendBeaconApiEnabled=!1;this.logSource=q.logSource;this.getAuthHeaderValue=
q.getAuthHeaderValue||function(){};
this.logRequestBuilder=new Mq3(q.logSource,q.isServiceWorkerScope);this.network=q.network||null;this.productID=q.productID||null;this.clearcutUrl=q.urlOverride||null;this.sessionIndex=q.sessionIndex||null;this.disableAutomaticFlush=q.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!q.disableWithCredentials;this.isServiceWorkerScope=q.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!fg()&&!!fg().navigator&&fg().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(w3T())).searchParams&&!!(new URL(w3T())).searchParams.set;var u=hBj(new SAZ);LTG(this.logRequestBuilder,u);this.flushBackoff=new F3(1E4,3E5,.1);q=uFT(this,q.backgroundJobDeferrer);this.JSC$7599_flushTimer=new uh(this.flushBackoff.getValue(),q);this.backupTimer=new uh(6E5,q);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){yhc(w);
var y;(y=w.metalogService)==null||y.flush()}}),document.addEventListener("pagehide",function(){yhc(w);
var y;(y=w.metalogService)==null||y.flush()}))};
_.O(PJ,_.VG);var uFT=function(q,w){return q.isBrowserSupported?w?function(){w().then(function(){q.flush()})}:function(){q.flush()}:function(){}};
PJ.prototype.disposeInternal=function(){yhc(this);this.JSC$7599_flushTimer.stop();this.backupTimer.stop();_.VG.prototype.disposeInternal.call(this)};
var eXk=function(q){q.clearcutUrl||(q.clearcutUrl=w3T());try{return(new URL(q.clearcutUrl)).toString()}catch(w){return(new URL(q.clearcutUrl,fg().location.origin)).toString()}};
PJ.prototype.dispatch=function(q){if(q instanceof _.en)this.log(q);else try{var w=new _.en,u=q.serialize();var y=_.sf(w,8,u);this.log(y)}catch(e){Xs(this,4,1)}};
var Xs=function(q,w,u){q.metalogService&&q.metalogService.increment(w,u)};
PJ.prototype.log=function(q){Xs(this,2,1);if(this.isBrowserSupported){q=q.clone();var w=this.sequencePosition++;q=_.VR(q,21,w);this.componentId&&_.sf(q,26,this.componentId);w=q;if(Wj4(_.sL(w,1))==null){var u=Date.now();u=Number.isFinite(u)?u.toString():"0";_.Fo(w,1,aK(u))}_.H$l(_.sL(w,15))!=null||_.VR(w,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(u=this.experimentIds.clone(),_.e9(w,16,u));Xs(this,1,1);w=this.pendingEvents.length-1E3+1;w>0&&(this.pendingEvents.splice(0,w),this.numLogsDroppedSinceLastFlush+=
w,Xs(this,3,w));this.pendingEvents.push(q);this.disableAutomaticFlush||this.JSC$7599_flushTimer.enabled||this.JSC$7599_flushTimer.start()}};
PJ.prototype.flush=function(q,w){var u=this;if(this.pendingEvents.length===0)q&&q();else if(this.JSC$7599_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,k_c(this);else{var y=Date.now();if(this.noFlushUntilMs>y&&this.startWaitingMs<y)w&&w("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?KTT(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var e=this.pendingEvents.length,
t=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),X=this.getAuthHeaderValue();if(X&&this.lastFailedAuth===X)w&&w("stale-auth-token");else{this.pendingEvents=[];this.JSC$7599_flushTimer.enabled&&this.JSC$7599_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;y=t.serialize();var G;this.JSC$7599_compressor&&this.JSC$7599_compressor.isSupported(y.length)&&
(G=this.JSC$7599_compressor.compress(y));var n=ta6(this,y,X),N=function(U){u.flushBackoff.reset();u.JSC$7599_flushTimer.setInterval(u.flushBackoff.getValue());if(U){var d=null;try{var V=JSON.stringify(JSON.parse(U.replace(")]}'\n","")));d=qgX(V)}catch(J){}d&&(U=Number(oG(d,1,_.K$("-1"))),U>0&&(u.startWaitingMs=Date.now(),u.noFlushUntilMs=u.startWaitingMs+U),z37(d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t5.fieldIndex),Ac4(d,t5.fieldIndex),d=t5.ctor?t5.getExtensionFn(d,t5.ctor,t5.fieldIndex,
t5.JSC$6779_hasMessageId):t5.getExtensionFn(d,t5.fieldIndex,null,t5.JSC$6779_hasMessageId),d=d===null?void 0:d)&&(d=_.yG(d,1,-1),d!==-1&&(u.flushBackoff=new F3(d<1?1:d,3E5,.1),u.JSC$7599_flushTimer.setInterval(u.flushBackoff.getValue())))}q&&q();u.numRetriesSinceLastSuccessfulFlush=0},Q=function(U,d){var V=_.wg(t,_.en,3,_.uI());
var J=Number(oG(t,14));x6X(u.flushBackoff);u.JSC$7599_flushTimer.setInterval(u.flushBackoff.getValue());U===401&&X&&(u.lastFailedAuth=X);J&&(u.numLogsDroppedSinceLastFlush+=J);d===void 0&&(d=u.isRetryable(U));d&&(u.pendingEvents=V.concat(u.pendingEvents),u.disableAutomaticFlush||u.JSC$7599_flushTimer.enabled||u.JSC$7599_flushTimer.start());Xs(u,7,1);w&&w("net-send-failed",U);++u.numRetriesSinceLastSuccessfulFlush},I=function(){u.network&&u.network.send(n,N,Q)};
G?G.then(function(U){Xs(u,5,e);n.requestHeaders["Content-Encoding"]="gzip";n.requestHeaders["Content-Type"]="application/binary";n.body=U;n.bodyType=2;I()},function(){Xs(u,6,e);
I()}):I()}}}};
var ta6=function(q,w,u){u=u===void 0?null:u;var y=y===void 0?q.withCredentials:y;var e={},t=new URL(eXk(q));u&&(e.Authorization=u);q.sessionIndex&&(e["X-Goog-AuthUser"]=q.sessionIndex,t.searchParams.set("authuser",q.sessionIndex));q.pageId&&(Object.defineProperty(e,"X-Goog-PageId",{value:q.pageId}),t.searchParams.set("pageId",q.pageId));return{url:t.toString(),body:w,bodyType:1,requestHeaders:e,requestType:"POST",withCredentials:y,timeoutMillis:q.timeoutMillis}},yhc=function(q){q.logRequestBuilder.isFinal=
!0;
q.flush();q.logRequestBuilder.isFinal=!1},k_c=function(q){PE$(q,function(w,u){w=new URL(w);
w.searchParams.set("format","json");var y=!1;try{y=fg().navigator.sendBeacon(w.toString(),u.serialize())}catch(e){}y||(q.isSendBeaconSupported=!1);return y})},PE$=function(q,w){if(q.pendingEvents.length!==0){var u=new URL(eXk(q));
u.searchParams.delete("format");var y=q.getAuthHeaderValue();y&&u.searchParams.set("auth",y);u.searchParams.set("authuser",q.sessionIndex||"0");for(y=0;y<10&&q.pendingEvents.length;++y){var e=q.pendingEvents.slice(0,32),t=q.logRequestBuilder.build(e,q.numLogsDroppedSinceLastFlush,q.numRetriesSinceLastSuccessfulFlush,q.productID,q.persistedLogRecoveredCount,q.persistedLogExpiredCount);if(!w(u.toString(),t)){++q.numRetriesSinceLastSuccessfulFlush;break}q.numLogsDroppedSinceLastFlush=0;q.numRetriesSinceLastSuccessfulFlush=
0;q.persistedLogRecoveredCount=0;q.persistedLogExpiredCount=0;q.pendingEvents=q.pendingEvents.slice(e.length)}q.JSC$7599_flushTimer.enabled&&q.JSC$7599_flushTimer.stop()}};
PJ.prototype.isRetryable=function(q){return 500<=q&&q<600||q===401||q===0};
var w3T=function(){return"https://play.google.com/log?format=json&hasfast=true"};var X3j=function(){this.abortSupported=typeof AbortController!=="undefined"};
X3j.prototype.send=function(q,w,u){var y=this,e,t,X,G,n,N,Q,I,U,d;return _.F(function(V){switch(V.nextAddress){case 1:return t=(e=y.abortSupported?new AbortController:void 0)?setTimeout(function(){e.abort()},q.timeoutMillis):void 0,_.tD(V,2,3),X=Object.assign({},{method:q.requestType,
headers:Object.assign({},q.requestHeaders)},q.body&&{body:q.body},q.withCredentials&&{credentials:"include"},{signal:q.timeoutMillis&&e?e.signal:null}),_.H(V,fetch(q.url,X),5);case 5:G=V.yieldResult;if(G.status!==200){(n=u)==null||n(G.status);V.jumpTo(3);break}if((N=w)==null){V.jumpTo(7);break}return _.H(V,G.text(),8);case 8:N(V.yieldResult);case 7:case 3:_.Xg(V);clearTimeout(t);_.G7(V,0);break;case 2:Q=_.nm(V);switch((I=Q)==null?void 0:I.name){case "AbortError":(U=u)==null||U(408);break;default:(d=
u)==null||d(400)}V.jumpTo(3)}})};
X3j.prototype.getTransmissionType=function(){return 4};_.H2=function(q,w){w=w===void 0?"0":w;_.VG.call(this);this.logSource=q;this.sessionIndex=w;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7617_clearExperimentIds=this.productID=null;this.JSC$7617_sendBeaconApiEnabled=!1;this.pageId=null};
_.O(_.H2,_.VG);var X1M=function(q,w){q.buildLabel=w;return q},PO7=function(q,w){q.network=w;
return q},GZc=function(q,w){q.JSC$7617_clearExperimentIds=w},t7u=function(q){q.JSC$7617_sendBeaconApiEnabled=!0;
return q};
_.H2.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.H2.prototype.build=function(){this.network||(this.network=new X3j);var q=new PJ({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:Y1H,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.sN(this,q);if(this.buildLabel){var w=this.buildLabel,u=kr(q.logRequestBuilder);
_.sf(u,7,w)}q.JSC$7599_compressor=new v6j;this.componentId&&(q.componentId=this.componentId);this.productID&&(q.productID=this.productID);this.pageId&&(q.pageId=this.pageId);this.JSC$7617_clearExperimentIds&&((u=this.JSC$7617_clearExperimentIds)?(q.experimentIds||(q.experimentIds=new bhZ),w=q.experimentIds,u=u.serialize(),_.sf(w,4,u)):q.experimentIds&&_.Fo(q.experimentIds,4));this.JSC$7617_sendBeaconApiEnabled&&(q.JSC$7599_sendBeaconApiEnabled=q.isSendBeaconSupported);BcZ(q.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(q);return q};var JXu=function(q,w,u,y,e,t,X){q=q===void 0?-1:q;w=w===void 0?"":w;u=u===void 0?"":u;y=y===void 0?!1:y;e=e===void 0?"":e;_.VG.call(this);this.logSource=q;this.componentId=w;t?w=t:(q=new _.H2(q,"0"),q.componentId=w,_.sN(this,q),u!==""&&(q.destinationUrl=u),y&&(q.serviceWorkerScopeEnabled=!0),e&&X1M(q,e),X&&PO7(q,X),w=q.build());this.JSC$7621_transport=w};
_.O(JXu,_.VG);JXu.prototype.flush=function(q){q=q||[];if(q.length){for(var w=new fac,u=[],y=0;y<q.length;y++){var e=q[y],t=JxG(e);u.push(t);e.clear()}Ts(w,1,u);this.JSC$7621_transport.dispatch(w);this.JSC$7621_transport.flush()}};var Fa3=function(q){this.cellValue=q};var Fs=function(q,w,u){this.JSC$7626_metricName=q;this.cellType=w;this.fields=u||[];this.cellMap=new Map},Axr=function(q){return q.fields.map(function(w){return w.fieldType})},m6X=function(q){return q.fields.map(function(w){return w.fieldName})};
_.k=Fs.prototype;_.k.addCell=function(q){var w=_.Cj.apply(1,arguments),u=this.getCells(w);u?u.push(new Fa3(q)):this.JSC$7626_setCell(q,w)};
_.k.JSC$7626_setCell=function(q){var w=this.JSC$7626_getKey(_.Cj.apply(1,arguments));this.cellMap.set(w,[new Fa3(q)])};
_.k.getCells=function(){var q=this.JSC$7626_getKey(_.Cj.apply(0,arguments));return this.cellMap.has(q)?this.cellMap.get(q):void 0};
_.k.getCell=function(){var q=this.getCells(_.Cj.apply(0,arguments));return q&&q.length?q[0]:void 0};
_.k.clear=function(){this.cellMap.clear()};
_.k.JSC$7626_getKey=function(){var q=_.Cj.apply(0,arguments);return q?q.join(","):"key"};var G_x=function(q,w){Fs.call(this,q,3,w)};
_.O(G_x,Fs);G_x.prototype.JSC$7629_incrementCounterBy=function(q){var w=_.Cj.apply(1,arguments),u=0,y=this.getCell(w);y&&(u=y.cellValue);this.JSC$7626_setCell(u+q,w)};var nKT=function(q,w){Fs.call(this,q,2,w)};
_.O(nKT,Fs);nKT.prototype.record=function(q){this.addCell(q,_.Cj.apply(1,arguments))};_.Gx=function(q){this.id=q};
_.Gx.prototype.toString=function(){return this.id};_.nM=function(q,w){this.type=q instanceof _.Gx?String(q):q;this.currentTarget=this.target=w;this.defaultPrevented=this.propagationStopped_=!1};
_.nM.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.nM.prototype.preventDefault=function(){this.defaultPrevented=!0};_.HJ=function(q,w){_.nM.call(this,q?q.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;q&&this.init(q,w)};
_.w9(_.HJ,_.nM);
_.HJ.prototype.init=function(q,w){var u=this.type=q.type,y=q.changedTouches&&q.changedTouches.length?q.changedTouches[0]:null;this.target=q.target||q.srcElement;this.currentTarget=w;w=q.relatedTarget;w||(u=="mouseover"?w=q.fromElement:u=="mouseout"&&(w=q.toElement));this.relatedTarget=w;y?(this.clientX=y.clientX!==void 0?y.clientX:y.pageX,this.clientY=y.clientY!==void 0?y.clientY:y.pageY,this.screenX=y.screenX||0,this.screenY=y.screenY||0):(this.offsetX=_.PS||q.offsetX!==void 0?q.offsetX:q.layerX,
this.offsetY=_.PS||q.offsetY!==void 0?q.offsetY:q.layerY,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.button=q.button;this.keyCode=q.keyCode||0;this.key=q.key||"";this.charCode=q.charCode||(u=="keypress"?q.keyCode:0);this.ctrlKey=q.ctrlKey;this.altKey=q.altKey;this.shiftKey=q.shiftKey;this.metaKey=q.metaKey;this.pointerId=q.pointerId||0;this.pointerType=q.pointerType;this.state=q.state;
this.timeStamp=q.timeStamp;this.event_=q;q.defaultPrevented&&_.HJ.superClass_.preventDefault.call(this)};
_.HJ.prototype.stopPropagation=function(){_.HJ.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.HJ.prototype.preventDefault=function(){_.HJ.superClass_.preventDefault.call(this);var q=this.event_;q.preventDefault?q.preventDefault():q.returnValue=!1};var HA$="closure_listenable_"+(Math.random()*1E6|0),WJ=function(q){return!(!q||!q[HA$])};var WaX=0;var smP=function(q,w,u,y,e){this.listener=q;this.proxy=null;this.src=w;this.type=u;this.capture=!!y;this.handler=e;this.key=++WaX;this.removed=this.callOnce=!1},NVZ=function(q){q.removed=!0;
q.listener=null;q.proxy=null;q.src=null;q.handler=null};G9.prototype.add=function(q,w,u,y,e){var t=q.toString();q=this.listeners[t];q||(q=this.listeners[t]=[],this.typeCount_++);var X=Qm3(q,w,y,e);X>-1?(w=q[X],u||(w.callOnce=!1)):(w=new smP(w,this.src,t,!!y,e),w.callOnce=u,q.push(w));return w};
G9.prototype.remove=function(q,w,u,y){q=q.toString();if(!(q in this.listeners))return!1;var e=this.listeners[q];w=Qm3(e,w,u,y);return w>-1?(NVZ(e[w]),_.jH(e,w),e.length==0&&(delete this.listeners[q],this.typeCount_--),!0):!1};
var IIG=function(q,w){var u=w.type;if(!(u in q.listeners))return!1;var y=_.MM(q.listeners[u],w);y&&(NVZ(w),q.listeners[u].length==0&&(delete q.listeners[u],q.typeCount_--));return y};
G9.prototype.removeAll=function(q){q=q&&q.toString();var w=0,u;for(u in this.listeners)if(!q||u==q){for(var y=this.listeners[u],e=0;e<y.length;e++)++w,NVZ(y[e]);delete this.listeners[u];this.typeCount_--}return w};
G9.prototype.getListener=function(q,w,u,y){q=this.listeners[q.toString()];var e=-1;q&&(e=Qm3(q,w,u,y));return e>-1?q[e]:null};
G9.prototype.hasListener=function(q,w){var u=q!==void 0,y=u?q.toString():"",e=w!==void 0;return _.db.some(this.listeners,function(t){for(var X=0;X<t.length;++X)if(!(u&&t[X].type!=y||e&&t[X].capture!=w))return!0;return!1})};
var Qm3=function(q,w,u,y){for(var e=0;e<q.length;++e){var t=q[e];if(!t.removed&&t.listener==w&&t.capture==!!u&&t.handler==y)return e}return-1};var iAX,rh3,UzP,CE3,dzc,rL,UO,VaP,OAF,oKT,sj,fI$,TVa;iAX="closure_lm_"+(Math.random()*1E6|0);rh3={};UzP=0;_.dL=function(q,w,u,y,e){if(y&&y.once)return rL(q,w,u,y,e);if(Array.isArray(w)){for(var t=0;t<w.length;t++)_.dL(q,w[t],u,y,e);return null}u=TVa(u);return WJ(q)?q.listen(w,u,_.er(y)?!!y.capture:!!y,e):CE3(q,w,u,!1,y,e)};
CE3=function(q,w,u,y,e,t){if(!w)throw Error("za");var X=_.er(e)?!!e.capture:!!e,G=sj(q);G||(q[iAX]=G=new G9(q));u=G.add(w,u,y,X,t);if(u.proxy)return u;y=dzc();u.proxy=y;y.src=q;y.listener=u;if(q.addEventListener)_.D0j||(e=X),e===void 0&&(e=!1),q.addEventListener(w.toString(),y,e);else if(q.attachEvent)q.attachEvent(OAF(w.toString()),y);else if(q.addListener&&q.removeListener)q.addListener(y);else throw Error("Aa");UzP++;return u};
dzc=function(){var q=oKT,w=function(u){return q.call(w.src,w.listener,u)};
return w};
rL=function(q,w,u,y,e){if(Array.isArray(w)){for(var t=0;t<w.length;t++)rL(q,w[t],u,y,e);return null}u=TVa(u);return WJ(q)?q.listenOnce(w,u,_.er(y)?!!y.capture:!!y,e):CE3(q,w,u,!0,y,e)};
_.NF=function(q,w,u,y,e){if(Array.isArray(w))for(var t=0;t<w.length;t++)_.NF(q,w[t],u,y,e);else y=_.er(y)?!!y.capture:!!y,u=TVa(u),WJ(q)?q.unlisten(w,u,y,e):q&&(q=sj(q))&&(w=q.getListener(w,u,y,e))&&UO(w)};
UO=function(q){if(typeof q==="number"||!q||q.removed)return!1;var w=q.src;if(WJ(w))return IIG(w.eventTargetListeners_,q);var u=q.type,y=q.proxy;w.removeEventListener?w.removeEventListener(u,y,q.capture):w.detachEvent?w.detachEvent(OAF(u),y):w.addListener&&w.removeListener&&w.removeListener(y);UzP--;(u=sj(w))?(IIG(u,q),u.typeCount_==0&&(u.src=null,w[iAX]=null)):NVZ(q);return!0};
VaP=function(q,w,u,y,e){u=TVa(u);y=!!y;return WJ(q)?q.getListener(w,u,y,e):q?(q=sj(q))?q.getListener(w,u,y,e):null:null};
OAF=function(q){return q in rh3?rh3[q]:rh3[q]="on"+q};
oKT=function(q,w){if(q.removed)q=!0;else{w=new _.HJ(w,this);var u=q.listener,y=q.handler||q.src;q.callOnce&&UO(q);q=u.call(y,w)}return q};
sj=function(q){q=q[iAX];return q instanceof G9?q:null};
fI$="__closure_events_fn_"+(Math.random()*1E9>>>0);TVa=function(q){if(typeof q==="function")return q;q[fI$]||(q[fI$]=function(w){return q.handleEvent(w)});
return q[fI$]};_.Q4=function(){_.VG.call(this);this.eventTargetListeners_=new G9(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.w9(_.Q4,_.VG);_.Q4.prototype[HA$]=!0;_.k=_.Q4.prototype;_.k.setParentEventTarget=function(q){this.parentEventTarget_=q};
_.k.addEventListener=function(q,w,u,y){_.dL(this,q,w,u,y)};
_.k.removeEventListener=function(q,w,u,y){_.NF(this,q,w,u,y)};
_.k.dispatchEvent=function(q){var w,u=this.parentEventTarget_;if(u)for(w=[];u;u=u.parentEventTarget_)w.push(u);u=this.actualEventTarget_;var y=q.type||q;if(typeof q==="string")q=new _.nM(q,u);else if(q instanceof _.nM)q.target=q.target||u;else{var e=q;q=new _.nM(y,u);_.db.extend(q,e)}e=!0;var t;if(w)for(t=w.length-1;!q.propagationStopped_&&t>=0;t--){var X=q.currentTarget=w[t];e=mzG(X,y,!0,q)&&e}q.propagationStopped_||(X=q.currentTarget=u,e=mzG(X,y,!0,q)&&e,q.propagationStopped_||(e=mzG(X,y,!1,q)&&
e));if(w)for(t=0;!q.propagationStopped_&&t<w.length;t++)X=q.currentTarget=w[t],e=mzG(X,y,!1,q)&&e;return e};
_.k.disposeInternal=function(){_.Q4.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.k.listen=function(q,w,u,y){return this.eventTargetListeners_.add(String(q),w,!1,u,y)};
_.k.listenOnce=function(q,w,u,y){return this.eventTargetListeners_.add(String(q),w,!0,u,y)};
_.k.unlisten=function(q,w,u,y){return this.eventTargetListeners_.remove(String(q),w,u,y)};
_.k.removeAllListeners=function(q){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(q):0};
var mzG=function(q,w,u,y){w=q.eventTargetListeners_.listeners[String(w)];if(!w)return!0;w=w.concat();for(var e=!0,t=0;t<w.length;++t){var X=w[t];if(X&&!X.removed&&X.capture==u){var G=X.listener,n=X.handler||X.src;X.callOnce&&IIG(q.eventTargetListeners_,X);e=G.call(n,y)!==!1&&e}}return e&&!y.defaultPrevented};
_.Q4.prototype.getListener=function(q,w,u,y){return this.eventTargetListeners_.getListener(String(q),w,u,y)};
_.Q4.prototype.hasListener=function(q,w){return this.eventTargetListeners_.hasListener(q!==void 0?String(q):void 0,w)};var If=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(q){return q&&AsyncContext.Snapshot.wrap(q)}:function(q){return q};var AhF=function(q,w){this.create_=q;this.reset_=w;this.occupants_=0;this.JSC$7661_head_=null};
AhF.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var q=this.JSC$7661_head_;this.JSC$7661_head_=q.next;q.next=null}else q=this.create_();return q};
AhF.prototype.put=function(q){this.reset_(q);this.occupants_<100&&(this.occupants_++,q.next=this.JSC$7661_head_,this.JSC$7661_head_=q)};var Jhx=function(){this.workTail_=this.workHead_=null};
Jhx.prototype.add=function(q,w){var u=hVo.get();u.set(q,w);this.workTail_?this.workTail_.next=u:this.workHead_=u;this.workTail_=u};
Jhx.prototype.remove=function(){var q=null;this.workHead_&&(q=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),q.next=null);return q};
var hVo=new AhF(function(){return new zXa},function(q){return q.reset()}),zXa=function(){this.next=this.scope=this.fn=null};
zXa.prototype.set=function(q,w){this.fn=q;this.scope=w;this.next=null};
zXa.prototype.reset=function(){this.next=this.scope=this.fn=null};var aIk,j3j,SNc,DzZ;j3j=!1;SNc=new Jhx;_.ih=function(q,w){aIk||DzZ();j3j||(aIk(),j3j=!0);SNc.add(q,w)};
DzZ=function(){var q=Promise.resolve(void 0);aIk=function(){q.then(lHl)}};var ZAa=function(q){q.prototype.$goog_Thenable=!0},p33=function(q){if(!q)return!1;
try{return!!q.$goog_Thenable}catch(w){return!1}};var $zT,vKG,bA6,gK$,EK6,RXx,jma,MaX,qYj,BVr,JJ6;_.IA=function(q,w){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(q!=_.sb)try{var u=this;q.call(w,function(y){u.resolve_(2,y)},function(y){u.resolve_(3,y)})}catch(y){this.resolve_(3,y)}};
$zT=function(){this.next=this.context=this.JSC$7672_onRejected=this.JSC$7672_onFulfilled=this.child=null;this.always=!1};
$zT.prototype.reset=function(){this.context=this.JSC$7672_onRejected=this.JSC$7672_onFulfilled=this.child=null;this.always=!1};
vKG=new AhF(function(){return new $zT},function(q){q.reset()});
bA6=function(q,w,u){var y=vKG.get();y.JSC$7672_onFulfilled=q;y.JSC$7672_onRejected=w;y.context=u;return y};
_.Hw=function(q){if(q instanceof _.IA)return q;var w=new _.IA(_.sb);w.resolve_(2,q);return w};
_.og=function(q){return new _.IA(function(w,u){u(q)})};
gK$=function(q,w,u){YgF(q,w,u,null)||_.ih(_.rk(w,q))};
_.rD=function(q){return new _.IA(function(w,u){var y=q.length,e=[];if(y)for(var t=function(N,Q){y--;e[N]=Q;y==0&&w(e)},X=function(N){u(N)},G,n=0;n<q.length;n++)G=q[n],gK$(G,_.rk(t,n),X);
else w(e)})};
EK6=function(q){return new _.IA(function(w){var u=q.length,y=[];if(u)for(var e=function(G,n,N){u--;y[G]=n?{fulfilled:!0,value:N}:{fulfilled:!1,reason:N};u==0&&w(y)},t,X=0;X<q.length;X++)t=q[X],gK$(t,_.rk(e,X,!0),_.rk(e,X,!1));
else w(y)})};
RXx=function(q){return new _.IA(function(w,u){var y=q.length,e=[];if(y)for(var t=function(N){w(N)},X=function(N,Q){y--;
e[N]=Q;y==0&&u(e)},G,n=0;n<q.length;n++)G=q[n],gK$(G,t,_.rk(X,n));
else w(void 0)})};
_.S6=function(){var q,w,u=new _.IA(function(y,e){q=y;w=e});
return new chc(u,q,w)};
_.IA.prototype.then=function(q,w,u){return SgT(this,If(typeof q==="function"?q:null),If(typeof w==="function"?w:null),u)};
ZAa(_.IA);jma=function(q,w,u,y){hXX(q,bA6(w||_.sb,u||null,y))};
_.Uj=function(q,w){w=If(w);w=bA6(w,w);w.always=!0;hXX(q,w);return q};
_.IA.prototype.finally=function(q){var w=this;q=If(q);return new Promise(function(u,y){jma(w,function(e){q();u(e)},function(e){q();
y(e)})})};
_.IA.prototype.thenCatch=function(q,w){return SgT(this,null,If(q),w)};
_.IA.prototype.catch=_.IA.prototype.thenCatch;_.IA.prototype.cancel=function(q){if(this.state_==0){var w=new _.hK(q);_.ih(function(){lIG(this,w)},this)}};
var lIG=function(q,w){if(q.state_==0)if(q.parent_){var u=q.parent_;if(u.callbackEntries_){for(var y=0,e=null,t=null,X=u.callbackEntries_;X&&(X.always||(y++,X.child==q&&(e=X),!(e&&y>1)));X=X.next)e||(t=X);e&&(u.state_==0&&y==1?lIG(u,w):(t?(y=t,y.next==u.callbackEntriesTail_&&(u.callbackEntriesTail_=y),y.next=y.next.next):LaP(u),MaX(u,e,3,w)))}q.parent_=null}else q.resolve_(3,w)},hXX=function(q,w){q.callbackEntries_||q.state_!=2&&q.state_!=3||KaT(q);
q.callbackEntriesTail_?q.callbackEntriesTail_.next=w:q.callbackEntries_=w;q.callbackEntriesTail_=w},SgT=function(q,w,u,y){var e=bA6(null,null,null);
e.child=new _.IA(function(t,X){e.JSC$7672_onFulfilled=w?function(G){try{var n=w.call(y,G);t(n)}catch(N){X(N)}}:t;
e.JSC$7672_onRejected=u?function(G){try{var n=u.call(y,G);n===void 0&&G instanceof _.hK?X(G):t(n)}catch(N){X(N)}}:X});
e.child.parent_=q;hXX(q,e);return e.child};
_.IA.prototype.unblockAndFulfill_=function(q){this.state_=0;this.resolve_(2,q)};
_.IA.prototype.unblockAndReject_=function(q){this.state_=0;this.resolve_(3,q)};
_.IA.prototype.resolve_=function(q,w){this.state_==0&&(this===w&&(q=3,w=new TypeError("Ba")),this.state_=1,YgF(w,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=w,this.state_=q,this.parent_=null,KaT(this),q!=3||w instanceof _.hK||BVr(this,w)))};
var YgF=function(q,w,u,y){if(q instanceof _.IA)return jma(q,w,u,y),!0;if(p33(q))return q.then(w,u,y),!0;if(_.er(q))try{var e=q.then;if(typeof e==="function")return xzx(q,e,w,u,y),!0}catch(t){return u.call(y,t),!0}return!1},xzx=function(q,w,u,y,e){var t=!1,X=function(n){t||(t=!0,u.call(e,n))},G=function(n){t||(t=!0,y.call(e,n))};
try{w.call(q,X,G)}catch(n){G(n)}},KaT=function(q){q.executing_||(q.executing_=!0,_.ih(q.executeCallbacks_,q))},LaP=function(q){var w=null;
q.callbackEntries_&&(w=q.callbackEntries_,q.callbackEntries_=w.next,w.next=null);q.callbackEntries_||(q.callbackEntriesTail_=null);return w};
_.IA.prototype.executeCallbacks_=function(){for(var q;q=LaP(this);)MaX(this,q,this.state_,this.result_);this.executing_=!1};
MaX=function(q,w,u,y){if(u==3&&w.JSC$7672_onRejected&&!w.always)for(;q&&q.hadUnhandledRejection_;q=q.parent_)q.hadUnhandledRejection_=!1;if(w.child)w.child.parent_=null,qYj(w,u,y);else try{w.always?w.JSC$7672_onFulfilled.call(w.context):qYj(w,u,y)}catch(e){JJ6.call(null,e)}vKG.put(w)};
qYj=function(q,w,u){w==2?q.JSC$7672_onFulfilled.call(q.context,u):q.JSC$7672_onRejected&&q.JSC$7672_onRejected.call(q.context,u)};
BVr=function(q,w){q.hadUnhandledRejection_=!0;_.ih(function(){q.hadUnhandledRejection_&&JJ6.call(null,w)})};
JJ6=yM;_.hK=function(q){_.qM.call(this,q)};
_.w9(_.hK,_.qM);_.hK.prototype.name="cancel";var chc=function(q,w,u){this.promise=q;this.resolve=w;this.reject=u};var Tx;_.kG=function(q,w){_.Q4.call(this);this.JSC$7684_interval_=q||1;this.timerObject_=w||_.uc;this.boundTick_=(0,_.fY)(this.tick_,this);this.last_=_.qG()};
_.w9(_.kG,_.Q4);_.k=_.kG.prototype;_.k.enabled=!1;_.k.JSC$7686_timer_=null;_.k.setInterval=function(q){this.JSC$7684_interval_=q;this.JSC$7686_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7686_timer_&&this.stop()};
_.k.tick_=function(){if(this.enabled){var q=_.qG()-this.last_;q>0&&q<this.JSC$7684_interval_*.8?this.JSC$7686_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7684_interval_-q):(this.JSC$7686_timer_&&(this.timerObject_.clearTimeout(this.JSC$7686_timer_),this.JSC$7686_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.k.start=function(){this.enabled=!0;this.JSC$7686_timer_||(this.JSC$7686_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7684_interval_),this.last_=_.qG())};
_.k.stop=function(){this.enabled=!1;this.JSC$7686_timer_&&(this.timerObject_.clearTimeout(this.JSC$7686_timer_),this.JSC$7686_timer_=null)};
_.k.disposeInternal=function(){_.kG.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Tx=function(q,w,u){if(typeof q==="function")u&&(q=(0,_.fY)(q,u));else if(q&&typeof q.handleEvent=="function")q=(0,_.fY)(q.handleEvent,q);else throw Error("Ca");return Number(w)>2147483647?-1:_.uc.setTimeout(q,w||0)};
_.wsc=function(q){var w=null;return(new _.IA(function(u,y){w=Tx(function(){u(void 0)},q);
w==-1&&y(Error("Da"))})).thenCatch(function(u){_.uc.clearTimeout(w);
throw u;})};var N1=function(q){_.VG.call(this);this.streamzLogger=q;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7690_flushTimer=new _.kG(this.flushInterval);this.JSC$7690_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.sN(this,this.JSC$7690_flushTimer)};
_.O(N1,_.VG);N1.prototype.sendIsolatedPayload=function(q){this.shouldSendIsolatedPayload=q;this.invocationLimit=1};
var uEX=function(q){q.JSC$7690_flushTimer.enabled||q.JSC$7690_flushTimer.start();q.invocationCount++;q.invocationCount>=q.invocationLimit&&q.snapshotAndFlush()};
N1.prototype.snapshotAndFlush=function(){var q=this.metricMap.values();q=[].concat(_.Cm(q)).filter(function(w){return w.cellMap.size});
q.length&&this.streamzLogger.flush(q,this.shouldSendIsolatedPayload);yaF(q);this.invocationCount=0;this.JSC$7690_flushTimer.enabled&&this.JSC$7690_flushTimer.stop()};
N1.prototype.addNewCounter=function(q){var w=_.Cj.apply(1,arguments);this.metricMap.has(q)||this.metricMap.set(q,new G_x(q,w))};
N1.prototype.addNewEventMetric=function(q){var w=_.Cj.apply(1,arguments);this.metricMap.has(q)||this.metricMap.set(q,new nKT(q,w))};
var ehT=function(q,w){return q.disabledMetrics.has(w)?void 0:q.metricMap.get(w)};
N1.prototype.JSC$7690_incrementCounter=function(q){this.JSC$7690_incrementCounterBy(q,1,_.Cj.apply(1,arguments))};
N1.prototype.JSC$7690_incrementCounterBy=function(q,w){var u=_.Cj.apply(2,arguments),y=ehT(this,q);y&&y instanceof G_x&&(y.JSC$7629_incrementCounterBy(w,u),uEX(this))};
N1.prototype.record=function(q,w){var u=_.Cj.apply(2,arguments),y=ehT(this,q);y&&y instanceof nKT&&(y.record(w,u),uEX(this))};
var yaF=function(q){for(var w=0;w<q.length;w++)q[w].clear()};_.CM=function(q,w,u){u=u===void 0?{}:u;w=Error.call(this,w);this.message=w.message;"stack"in w&&(this.stack=w.stack);this.code=q;this.metadata=u;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(_.CM,Error);_.CM.prototype.toString=function(){var q="RpcError("+(L2f(this.code)||String(this.code))+")";this.message&&(q+=": "+this.message);return q};_.k2X=_.uc.JSON.parse;_.dD=_.uc.JSON.stringify;_.Jp=_.uc.JSON.parse;_.t9a=function(q){switch(q){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 PZa=function(q){switch(q){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var XsT,FxZ=function(){};
_.w9(FxZ,_.MiM);FxZ.prototype.createInstance=function(){return new XMLHttpRequest};
XsT=new FxZ;_.Oj=function(q){_.Q4.call(this);this.headers=new Map;this.JSC$7699_xmlHttpFactory_=q||null;this.JSC$7699_active_=!1;this.JSC$7699_xhr_=null;this.JSC$7699_lastUri_="";this.JSC$7699_lastErrorCode_=0;this.JSC$7699_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7699_timeoutId_=null;this.responseType_="";this.JSC$7699_withCredentials_=!1};
_.w9(_.Oj,_.Q4);var G2Z=/^https?$/i,nma=["POST","PUT"],Hjc=[],K_J=function(q,w,u,y,e,t,X){var G=new _.Oj;Hjc.push(G);w&&G.listen("complete",w);G.listenOnce("ready",G.cleanupSend_);t&&(G.timeoutInterval_=Math.max(0,t));X&&(G.JSC$7699_withCredentials_=X);G.send(q,u,y,e)};
_.Oj.prototype.cleanupSend_=function(){this.dispose();_.MM(Hjc,this)};
_.Oj.prototype.send=function(q,w,u,y){if(this.JSC$7699_xhr_)throw Error("Ea`"+this.JSC$7699_lastUri_+"`"+q);w=w?w.toUpperCase():"GET";this.JSC$7699_lastUri_=q;this.JSC$7699_lastError_="";this.JSC$7699_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7699_active_=!0;this.JSC$7699_xhr_=this.createXhr();this.JSC$7699_xhr_.onreadystatechange=If((0,_.fY)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7699_xhr_.open(w,String(q),!0),this.inOpen_=!1}catch(X){Wxa(this,X);return}q=u||"";u=new Map(this.headers);
if(y)if(Object.getPrototypeOf(y)===Object.prototype)for(var e in y)u.set(e,y[e]);else if(typeof y.keys==="function"&&typeof y.get==="function"){e=_.P(y.keys());for(var t=e.next();!t.done;t=e.next())t=t.value,u.set(t,y.get(t))}else throw Error("Fa`"+String(y));y=Array.from(u.keys()).find(function(X){return"content-type"==X.toLowerCase()});
e=_.uc.FormData&&q instanceof _.uc.FormData;!_.SH(nma,w)||y||e||u.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");w=_.P(u);for(y=w.next();!y.done;y=w.next())u=_.P(y.value),y=u.next().value,u=u.next().value,this.JSC$7699_xhr_.setRequestHeader(y,u);this.responseType_&&(this.JSC$7699_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7699_xhr_&&this.JSC$7699_xhr_.withCredentials!==this.JSC$7699_withCredentials_&&(this.JSC$7699_xhr_.withCredentials=this.JSC$7699_withCredentials_);
try{this.JSC$7699_timeoutId_&&(clearTimeout(this.JSC$7699_timeoutId_),this.JSC$7699_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7699_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7699_xhr_.send(q),this.inSend_=!1}catch(X){Wxa(this,X)}};
_.Oj.prototype.createXhr=function(){return this.JSC$7699_xmlHttpFactory_?this.JSC$7699_xmlHttpFactory_.createInstance():XsT.createInstance()};
_.Oj.prototype.timeout_=function(){typeof hyz!="undefined"&&this.JSC$7699_xhr_&&(this.JSC$7699_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7699_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var Wxa=function(q,w){q.JSC$7699_active_=!1;q.JSC$7699_xhr_&&(q.inAbort_=!0,q.JSC$7699_xhr_.abort(),q.inAbort_=!1);q.JSC$7699_lastError_=w;q.JSC$7699_lastErrorCode_=5;swT(q);NBa(q)},swT=function(q){q.errorDispatched_||(q.errorDispatched_=!0,q.dispatchEvent("complete"),q.dispatchEvent("error"))};
_.Oj.prototype.abort=function(q){this.JSC$7699_xhr_&&this.JSC$7699_active_&&(this.JSC$7699_active_=!1,this.inAbort_=!0,this.JSC$7699_xhr_.abort(),this.inAbort_=!1,this.JSC$7699_lastErrorCode_=q||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),NBa(this))};
_.Oj.prototype.disposeInternal=function(){this.JSC$7699_xhr_&&(this.JSC$7699_active_&&(this.JSC$7699_active_=!1,this.inAbort_=!0,this.JSC$7699_xhr_.abort(),this.inAbort_=!1),NBa(this,!0));_.Oj.superClass_.disposeInternal.call(this)};
_.Oj.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)QwT(this);else this.onReadyStateChangeEntryPoint_()};
_.Oj.prototype.onReadyStateChangeEntryPoint_=function(){QwT(this)};
var QwT=function(q){if(q.JSC$7699_active_&&typeof hyz!="undefined")if(q.inSend_&&_.of(q)==4)setTimeout(q.onReadyStateChange_.bind(q),0);else if(q.dispatchEvent("readystatechange"),q.isComplete()){q.JSC$7699_active_=!1;try{if(q.isSuccess())q.dispatchEvent("complete"),q.dispatchEvent("success");else{q.JSC$7699_lastErrorCode_=6;try{var w=_.of(q)>2?q.JSC$7699_xhr_.statusText:""}catch(u){w=""}q.JSC$7699_lastError_=w+" ["+q.getStatus()+"]";swT(q)}}finally{NBa(q)}}},NBa=function(q,w){if(q.JSC$7699_xhr_){q.JSC$7699_timeoutId_&&
(clearTimeout(q.JSC$7699_timeoutId_),q.JSC$7699_timeoutId_=null);
var u=q.JSC$7699_xhr_;q.JSC$7699_xhr_=null;w||q.dispatchEvent("ready");try{u.onreadystatechange=null}catch(y){}}};
_.Oj.prototype.isActive=function(){return!!this.JSC$7699_xhr_};
_.Oj.prototype.isComplete=function(){return _.of(this)==4};
_.Oj.prototype.isSuccess=function(){var q=this.getStatus(),w;if(!(w=PZa(q))){if(q=q===0)q=Vrj(String(this.JSC$7699_lastUri_)),q=!G2Z.test(q);w=q}return w};
_.of=function(q){return q.JSC$7699_xhr_?q.JSC$7699_xhr_.readyState:0};
_.k=_.Oj.prototype;_.k.getStatus=function(){try{return _.of(this)>2?this.JSC$7699_xhr_.status:-1}catch(q){return-1}};
_.k.getResponseText=function(){try{return this.JSC$7699_xhr_?this.JSC$7699_xhr_.responseText:""}catch(q){return""}};
_.k.getResponse=function(){try{if(!this.JSC$7699_xhr_)return null;if("response"in this.JSC$7699_xhr_)return this.JSC$7699_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7699_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7699_xhr_)return this.JSC$7699_xhr_.mozResponseArrayBuffer}return null}catch(q){return null}};
_.k.getAllResponseHeaders=function(){return this.JSC$7699_xhr_&&_.of(this)>=2?this.JSC$7699_xhr_.getAllResponseHeaders()||"":""};
_.k.getLastError=function(){return typeof this.JSC$7699_lastError_==="string"?this.JSC$7699_lastError_:String(this.JSC$7699_lastError_)};var Fby=function(){};
Fby.prototype.send=function(q,w,u){w=w===void 0?function(){}:w;
u=u===void 0?function(){}:u;
K_J(q.url,function(y){y=y.target;y.isSuccess()?w(y.getResponseText()):u(y.getStatus())},q.requestType,q.body,q.requestHeaders,q.timeoutMillis,q.withCredentials)};
Fby.prototype.getTransmissionType=function(){return 1};var IDa=function(q,w){this.logger=q;this.event=w;this.startTime=QG()};
IDa.prototype.done=function(){this.logger.zl(this.event,QG()-this.startTime)};
var V4=function(){qF.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.O(V4,qF);var fM=function(q,w,u){var y=QG();w=w();q.zl(u,QG()-y);return w},aG6=function(){V4.apply(this,arguments)};
_.O(aG6,V4);_.k=aG6.prototype;_.k.e1S=function(){};
_.k.iT=function(){};
_.k.zl=function(){};
_.k.logError=function(){};
_.k.qU=function(){};
_.k.xki=function(){};
_.k.b4i=function(){};
_.k.cTc=function(){};
_.k.owV=function(){};
var ij6=function(q){V4.call(this);var w=this;this.logger=q;this.TEST_ONLY={pfN:function(){return w.logger},
getExperimentIds:function(){return w.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void w.logger.dispose()})};
_.O(ij6,V4);_.k=ij6.prototype;_.k.update=function(q){this.logger.dispose();this.logger=q};
_.k.iT=function(q){this.logger.iT(q)};
_.k.zl=function(q,w){this.logger.zl(q,w)};
_.k.logError=function(q){this.logger.logError(q)};
_.k.qU=function(){this.logger.qU()};
_.k.xki=function(q){this.logger.xki(q)};
_.k.b4i=function(q){this.logger.b4i(q)};
_.k.cTc=function(q){this.logger.cTc(q)};
_.k.owV=function(q){this.logger.owV(q)};
_.k.e1S=function(q){this.logger.e1S(q)};
var rar=function(q,w){_.VG.call(this);var u=this;this.callback=q;this.arS=w;this.h9z=-w;this.addOnDisposeCallback(function(){return void clearTimeout(u.timer)})};
_.O(rar,_.VG);var UC$=function(q){if(q.timer===void 0){var w=Math.max(0,q.h9z+q.arS-QG());q.timer=setTimeout(function(){try{q.callback()}finally{q.h9z=QG(),q.timer=void 0}},w)}},TBP=function(q,w){V4.call(this);
this.metrics=q;this.i3=w};
_.O(TBP,V4);_.k=TBP.prototype;_.k.e1S=function(q){this.metrics.ak8.record(q,this.i3)};
_.k.iT=function(q){this.metrics.eventCount.increment(q,this.i3)};
_.k.zl=function(q,w){this.metrics.mkq.record(w,q,this.i3)};
_.k.logError=function(q){this.metrics.errorCount.increment(q,this.i3)};
_.k.xki=function(q){this.metrics.cXN.increment(q,this.i3)};
_.k.b4i=function(q){this.metrics.xYp.increment(q,this.i3)};
_.k.cTc=function(q){this.metrics.v0a.increment(q,this.i3)};
var I3=function(q,w){w=w===void 0?[]:w;var u={i3:q.i3||"_",m8i:q.m8i||[],vi7:q.vi7|0,destinationUrl:q.destinationUrl,ju2:q.ju2||function(){},
bb:q.bb||function(t,X){return zPH(t,X,u.ju2,u.destinationUrl)}},y=u.bb("49",u.m8i.concat(w));
TBP.call(this,kZM(y),u.i3);var e=this;this.TEST_ONLY={getExperimentIds:function(){return e.options.m8i.concat(e.kxH).sort(function(t,X){return t-X})}};
this.options=u;this.service=y;this.nKT=!q.bb;this.flushDebouncer=new rar(function(){return void e.service.snapshotAndFlush()},u.vi7);
this.addOnDisposeCallback(function(){e.flushDebouncer.dispose();e.nKT&&e.service.dispose()});
(this.kxH=w.slice()).sort(_.GG)};
_.O(I3,TBP);I3.prototype.owV=function(q){var w=this;q=q.slice();q.sort(_.GG);_.Wk(q,this.kxH)||(this.flushDebouncer.dispose(),this.nKT&&this.service.dispose(),this.service=this.options.bb("49",this.options.m8i.concat(q)),this.flushDebouncer=new rar(function(){return void w.service.snapshotAndFlush()},this.options.vi7),this.metrics=kZM(this.service),this.kxH=q)};
I3.prototype.qU=function(){UC$(this.flushDebouncer)};var iZc=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(iZc,_.bE);_.rjM=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(_.rjM,_.bE);var MD=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q,0,MD.messageId)};
_.O(MD,_.bE);var CZa=_.uFJ(MD);MD.messageId="bfkj";var ZYo=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(ZYo,_.bE);var dC6=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(dC6,_.bE);var Ojc=_.uZ(dC6);_.Gt=function(){var q=this;this.promise=new Promise(function(w,u){q.resolve=w;q.reject=u})};_.mo=function(q){_.VG.call(this);var w=this;this.goR=Math.floor(Math.random()*200);this.a97=new dC6;if("challenge"in q&&CZa(q.challenge)){var u=_.fy(q.challenge,4,void 0,Sr);var y=_.fy(q.challenge,5,void 0,Sr);_.fy(q.challenge,7,void 0,Sr)&&(this.a97=Ojc(_.fy(q.challenge,7,void 0,Sr)))}else u=q.program,y=q.globalName;this.addOnDisposeCallback(function(){var V,J,a;return _.F(function(b){if(b.nextAddress==1)return _.H(b,w.bqa,2);V=b.yieldResult;J=V.tYx;(a=J)==null||a();_.HI(b)})});
this.logger=D$j(q.bR||{},this.a97,q.vbx);_.sN(this,this.logger);var e=new _.Gt;this.bqa=e.promise;this.logger.iT("t");var t=this.logger.share(),X=new IDa(t,"t"),G=function(V,J,a,b){if(!w.logger.isDisposed()){var g="k";J?g="h":a&&(g="u");g!=="k"?b!==0&&(w.logger.iT(g),w.logger.zl(g,V)):w.goR<=0?(w.logger.iT(g),w.logger.zl(g,V),w.goR=Math.floor(Math.random()*200)):w.goR--}},n=function(V,J,a,b){Promise.resolve().then(function(){X.done();
t.qU();t.dispose();e.resolve({tMq:V,tYx:J,c73:a,l4s:b})})};
if(!_.uc[y])throw this.logger.logError(25),Error("Ga");if(!_.uc[y].a)throw this.logger.logError(26),Error("Ha");try{var N=_.uc[y].a;y=[];for(var Q=[],I=p2M(this.a97),U=0;U<I.length;U++)y.push(I[U]),Q.push(1);var d=$1o(this.a97);for(I=0;I<d.length;I++)y.push(d[I]),Q.push(2);this.gFa=_.P(N(u,n,!0,q.v6L,G,[y,Q],_.fy(this.a97,5))).next().value;this.mTS=e.promise.then(function(){})}catch(V){throw this.logger.logError(28),V;
}};
_.O(_.mo,_.VG);_.mo.prototype.snapshot=function(q){if(this.isDisposed())throw Error("Ia");this.logger.iT("n");var w=this.logger.share();return this.bqa.then(function(u){var y=u.tMq;return new Promise(function(e){var t=new IDa(w,"n");y(function(X){t.done();w.e1S(X.length);w.qU();w.dispose();e(X)},[q.kG,
q.quV,q.sF6,q.bw1])})})};
_.om3=function(q,w){if(q.isDisposed())throw Error("Ia");q.logger.iT("n");var u=fM(q.logger,function(){return q.gFa([w.kG,w.quV,w.sF6,w.bw1])},"n");
q.logger.e1S(u.length);q.logger.qU();return u};
_.mo.prototype.mea=function(q){this.bqa.then(function(w){var u;(u=w.c73)==null||u(q)})};
_.mo.prototype.qca=function(q,w){return this.bqa.then(function(u){var y;return(y=u.l4s)==null?void 0:y(q,w,!1)})};
_.mo.prototype.hDn=function(){return this.logger.share()};var V9c=function(){this.zTa={};this.yhy=null},fDX=function(){V9c.instance||(V9c.instance=new V9c);
return V9c.instance},AaT=function(q,w){return mCT(q,_.PT(w,iZc,1,Sr),_.PT(w,_.rjM,2,Sr),_.fy(w,3,void 0,Sr))},mCT=function(q,w,u,y){if(!w&&!u)return Promise.resolve();
if(!y)return vCu(w,u);var e;(e=q.zTa)[y]||(e[y]=new Promise(function(t,X){vCu(w,u).then(function(){q.yhy=y;t()},function(G){delete q.zTa[y];
X(G)})}));
return q.zTa[y]};var Jac=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Jac,_.bE);var zhc=function(q,w){return _.KV(q,1,w)},aDr=function(q,w){return _.KV(q,2,w)};var A5=function(q){_.VG.call(this);var w=this;this.options=q;this.pnk=new _.Gt;this.mTS=this.pnk.promise;this.gIc=new _.Gt;this.dfz=1;this.dek=new _.Gt;this.qQV=[];this.aDa=q.aDa||function(){};
this.logger=new ij6(D$j(q.bR||{}));DCa(this,q.lO,q.vw6,q.mc8,q.qx6,Object.assign({},Zja,q.qY2||{}));this.addOnDisposeCallback(function(){return void psx(w)})};
_.O(A5,_.VG);A5.prototype.snapshot=function(q){var w=this;return _.F(function(u){switch(u.nextAddress){case 1:if(w.isDisposed())throw Error("Ia");if(w.ha||w.lpz){u.jumpTo(2);break}return _.H(u,w.gIc.promise,2);case 2:if(!w.ha){u.jumpTo(4);break}return _.H(u,w.ha.snapshot(q),5);case 5:return u.return(u.yieldResult);case 4:throw w.lpz;}})};
var $Cc=function(q){var w;return _.F(function(u){if(q.isDisposed())throw Error("Ia");(w=q.lb)!=null&&(w.endTimeMs=0,w.resolver(1));return _.H(u,q.dek.promise,0)})},psx=function(q){q.lpz=Error("Ka");
q.gIc.resolve();vsM(q.pnk.promise);q.pnk.reject(Error("Ka"));q.logger.dispose();Promise.all(q.qQV).then(function(){var u;return _.F(function(y){(u=q.ha)==null||u.dispose();q.ha=void 0;_.HI(y)})});
q.qQV=[];var w;(w=q.lb)!=null&&(w.endTimeMs=0,w.resolver(1));vsM(q.dek.promise);q.dek.reject(Error("Ka"))};
A5.prototype.mea=function(q){var w,u;(w=this.ha)==null||(u=w.mea)==null||u.call(w,q)};
A5.prototype.qca=function(q,w){var u,y,e;return(e=(u=this.ha)==null?void 0:(y=u.qca)==null?void 0:y.call(u,q,w))!=null?e:Promise.resolve()};
var vmc=function(q,w){var u=q.aDa;q.aDa=function(){u();w()}},bjx=function(q,w){q.isDisposed()||(q.ha=w,q.logger.update(w.hDn()),q.gIc.resolve(),q.pnk.resolve(void 0),q.aDa())};
A5.prototype.handleError=function(q){if(!this.isDisposed()){this.lpz=q;this.gIc.resolve();var w,u;(u=(w=this.options).p5f)==null||u.call(w,q)}};
var YYx=function(q,w){w&&(Promise.all(q.qQV).then(function(){return void w.dispose()}),q.qQV=[])},J5=function(q,w){q.dfz=w;
var u,y;(y=(u=q.options).qqJ)==null||y.call(u,w)},gmT=function(q){q.isDisposed()||(q.dek.resolve(),q.dek=new _.Gt)},DCa=function(q,w,u,y,e,t){y=y===void 0?fDX():y;
e=e===void 0?Promise.resolve(void 0):e;var X,G,n,N,Q,I,U,d,V,J,a,b;_.F(function(g){switch(g.nextAddress){case 1:return _.H(g,0,3);case 3:G=null;if(!X){g.jumpTo(6);break}J5(q,7);_.tD(g,7);return _.H(g,CY(X.snapshot({}),t.nri,function(){return Promise.resolve("E:CTO")}),9);
case 9:G=g.yieldResult;_.jv(g,6);break;case 7:_.nm(g),G="E:UCE";case 6:n=void 0,N=X?t.i42:t.qKf,Q=new F3(N,t.zaA,t.nib,t.jn3),I=1;case 10:if(!(I<=t.maxAttempts)){g.jumpTo(12);break}if(I===1){g.jumpTo(13);break}J5(q,0);q.lb=new EmP(Q.getValue(),t.pIn,t.jh6);return _.H(g,q.lb.promise,14);case 14:U=g.yieldResult,q.lb=void 0,U===1?(I=1,Q.reset()):x6X(Q);case 13:_.tD(g,15);d=void 0;if(u){d=u;g.jumpTo(17);break}J5(q,5);V=y.yhy;return _.H(g,CY(Rh3(w,V,G),t.zxL,function(){return Promise.reject(Error("La"))}),
18);
case 18:d=g.yieldResult;case 17:return J5(q,3),_.H(g,CY(AaT(y,d),t.ir2,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return J5(q,8),_.H(g,e,20);case 20:return J=new _.mo({challenge:d,bR:q.options.bR,v6L:q.options.v6L}),_.H(g,CY(J.mTS,t.cx7,function(){return Promise.reject(Error("Na"))}),21);
case 21:n=J;g.jumpTo(12);break;case 15:a=_.nm(g),q.handleError(a),gmT(q);case 11:I++;g.jumpTo(10);break;case 12:if(q.isDisposed()){g.jumpTo(5);break}n&&(u=void 0,YYx(q,X),X=n,bjx(q,n),gmT(q));J5(q,2);q.lb=new EmP(t.vQ1,t.pIn,t.jh6);return _.H(g,q.lb.promise,22);case 22:q.lb=void 0;if(q.isDisposed()){g.jumpTo(5);break}g.jumpTo(3);break;case 5:(b=X)==null||b.dispose(),_.HI(g)}})};
A5.prototype.hDn=function(){return this.logger.share()};
var Zja={vQ1:432E5,pIn:3E5,jh6:10,nri:1E4,zxL:3E4,ir2:3E4,cx7:6E4,qKf:1E3,i42:6E4,zaA:6E5,nib:.25,jn3:2,maxAttempts:10},EmP=function(q,w,u){var y=this;this.endTimeMs=Date.now()+q;this.promise=new Promise(function(t){y.resolver=t});
var e=function(){var t=y.endTimeMs-Date.now();t<=u?y.resolver(0):setTimeout(e,Math.min(t,w))};
e()};var ca$,gCz=(ca$=Math.imul)!=null?ca$:function(q,w){return q*w|0},dg=[196,
200,224,18],zx=function(q,w,u){u=u===void 0?[]:u;this.maxItems=q;this.ih=w===void 0?0:w;this.o2=u},SYX=function(q){var w=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!w)return new zx(q);var u=w.split(",");if(u.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new zx(q);w=u.slice(1);w.length===1&&w[0]===""&&(w=[]);u=Number(u[0]);return isNaN(u)||u<0||u>w.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new zx(q)):new zx(q,u,w)};
zx.prototype.serialize=function(){return String(this.ih)+","+this.o2.join()};
zx.prototype.insert=function(q,w){var u=void 0;if(this.o2[this.ih]!==q){var y=this.o2.indexOf(q);y!==-1?(this.o2.splice(y,1),y<this.ih&&this.ih--,this.o2.splice(this.ih,0,q)):(u=this.o2[this.ih],this.o2[this.ih]=q)}this.ih=(this.ih+1)%this.maxItems;q=bDo("iU5q-!O9@$",this.serialize());u&&q&&w(u);return q};
var hhG=function(q,w){this.logger=w;try{var u=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(y){u=!1}u&&(this.index=SYX(q))},jwF=function(q,w,u,y,e){var t=q.index?fM(q.logger,function(){return SZs(q.index,RPz(w),u,y,e)},"W"):"u";
q.logger.cTc(t)},lDP=function(q,w,u){var y=_.P(q.index?fM(q.logger,function(){return hPM(RPz(w),u)},"R"):["u"]),e=y.next().value;
y=y.next().value;q.logger.b4i(e);return y};var LxT={toString:function(q){var w=[],u=0;q-=-2147483648;w[u++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(q%52);for(q=Math.floor(q/52);q>0;)w[u++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(q%62),q=Math.floor(q/62);return w.join("")}};var BB$=function(q){q=M9G(q);for(var w=2654435769,u=2654435769,y=314159265,e=q.length,t=e,X=0,G=function(){w-=u;w-=y;w^=y>>>13;u-=y;u-=w;u^=w<<8;y-=w;y-=u;y^=u>>>13;w-=u;w-=y;w^=y>>>12;u-=y;u-=w;u^=w<<16;y-=w;y-=u;y^=u>>>5;w-=u;w-=y;w^=y>>>3;u-=y;u-=w;u^=w<<10;y-=w;y-=u;y^=u>>>15};t>=12;t-=12,X+=12)w+=Kxr(q,X),u+=Kxr(q,X+4),y+=Kxr(q,X+8),G();
y+=e;switch(t){case 11:y+=q[X+10]<<24;case 10:y+=q[X+9]<<16;case 9:y+=q[X+8]<<8;case 8:u+=q[X+7]<<24;case 7:u+=q[X+6]<<16;case 6:u+=q[X+5]<<8;case 5:u+=q[X+4];case 4:w+=q[X+3]<<24;case 3:w+=q[X+2]<<16;case 2:w+=q[X+1]<<8;case 1:w+=q[X]}G();return LxT.toString(y)},M9G=function(q){for(var w=[],u=0;u<q.length;u++)w.push(q.charCodeAt(u));
return w},Kxr=function(q,w){return q[w]+(q[w+1]<<8)+(q[w+2]<<16)+(q[w+3]<<24)};var xCP,af=function(q){_.VG.call(this);this.logger=q;this.r1D=new _.Gt;this[xCP]=this.dispose};
_.O(af,_.VG);var qqk=function(q,w){var u=setTimeout(function(){q.r1D.resolve()},w);
q.addOnDisposeCallback(function(){return void clearTimeout(u)})};
af.prototype.v6=function(q,w){var u=this.l8(q);w==null||w(u);return fM(this.logger,function(){return _.wV(u,2)},this.hXy)};
var wIZ=function(q,w,u,y){return fM(q.logger,function(){return u?q.v6(w,y):q.l8(w,y)},q.c6)};
xCP=Symbol.dispose;var ug3=function(q,w,u,y){af.call(this,q);this.kbb=w;this.udT=u;this.c6="m";this.hXy="x";this.sdA=0;qqk(this,y)};
_.O(ug3,af);ug3.prototype.l8=function(q,w){var u=this;this.logger.iT(this.c6);++this.sdA>=this.udT&&this.r1D.resolve();var y=q();q=fM(this.logger,function(){return u.kbb(y)},"C");
if(q===void 0)throw new BU(17,"YNJ:Undefined");if(!(q instanceof Uint8Array))throw new BU(18,"ODM:Invalid");w==null||w(q);return q};
var yD$=function(q,w,u){af.call(this,q);this.jbn=w;this.c6="f";this.hXy="z";qqk(this,u)};
_.O(yD$,af);yD$.prototype.l8=function(){return this.jbn};
var e16=function(q,w,u){af.call(this,q);this.uoT=w;this.c6="w";this.hXy="z";qqk(this,u)};
_.O(e16,af);e16.prototype.l8=function(){var q=this;return fM(this.logger,function(){return _.sX(q.uoT)},"d")};
e16.prototype.v6=function(){return this.uoT};
var k7x=function(q,w){af.call(this,q);this.error=w;this.c6="e";this.hXy="y"};
_.O(k7x,af);var tRG=function(q,w){var u=(w(q.error.message)+":"+w(q.error.stack)).substring(0,2048);w=u.length+1;u=jR4(u);var y=new Uint8Array(4+u.length);y.set([42,w&127|128,w>>7,q.error.code]);y.set(u,4);return y};
k7x.prototype.l8=function(){if(this.qzH)return this.qzH;this.qzH=tRG(this,function(q){return"_"+BB$(q)});
return tRG(this,function(q){return q})};
var PBj=function(q,w,u){af.call(this,q);this.h3s=w;this.clientState=u;this.c6="S";this.hXy="q"};
_.O(PBj,af);PBj.prototype.l8=function(){var q=Math.floor(Date.now()/1E3),w=[Math.random()*255,Math.random()*255],u=w.concat([this.h3s&255,this.clientState],[q>>24&255,q>>16&255,q>>8&255,q&255]);q=new Uint8Array(2+u.length);q[0]=34;q[1]=u.length;q.set(u,2);u=q.subarray(2);for(var y=w=w.length;y<u.length;++y)u[y]^=u[y%w];this.logger.xki(this.clientState);return q};var XIk={rJp:3E4,mQ8:2E4},D9=function(q){_.VG.call(this);var w=this;this.gzY=new _.Gt;this.ePw=0;this.yM=void 0;this.state=2;this.d3=q.d3;this.lO=q.lO;this.qY2=Object.assign({},XIk,q.qY2||{});this.logger=q.d3.hDn();var u;this.onError=(u=q.onError)!=null?u:function(){};
this.m4a=q.m4a||!1;if(F$P(q)){var y=this.d3;this.oxH=function(){return $Cc(y).catch(function(X){X=w.reportError(new BU(w.yZ?20:32,"TRG:Disposed",X));w.yM=X;var G;(G=w.yZ)==null||G.dispose();w.yZ=void 0;w.gzY.reject(X)})};
vmc(y,function(){return void G7r(w)});
y.dfz===2&&G7r(this)}else this.oxH=q.ogZ,G7r(this);var e=this.logger.share();e.iT("o");var t=new IDa(e,"o");this.gzY.promise.then(function(){t.done();e.qU();e.dispose()},function(){return void e.dispose()});
this.addOnDisposeCallback(function(){w.yZ?(w.yZ.dispose(),w.yZ=void 0):w.yM?w.logger.qU():(w.yM=w.reportError(new BU(32,"TNP:Disposed")),w.logger.qU(),w.gzY.reject(w.yM))});
_.sN(this,this.logger)};
_.O(D9,_.VG);D9.prototype.rRB=function(){return this.gzY.promise};
var njZ=function(q,w){if(!(w instanceof BU))if(w instanceof _.CM){var u=Error(w.toString());u.stack=w.stack;w=new BU(11,"EBH:Error",u)}else w=new BU(12,"BSO:Unknown",w);return q.reportError(w)},G7r=function(q){var w,u,y,e,t,X,G,n,N,Q,I,U,d,V,J;
return _.F(function(a){switch(a.nextAddress){case 1:w=void 0;q.ePw++;u=new _.Gt;q.d3 instanceof A5&&q.d3.qQV.push(u.promise);if(!q.m4a){a.jumpTo(2);break}y=new _.Gt;setTimeout(function(){return void y.resolve()});
return _.H(a,y.promise,2);case 2:return e=q.logger.share(),_.tD(a,4,5),q.state=5,t={},X=[],_.H(a,CY(q.d3.snapshot({kG:t,sF6:X}),q.qY2.mQ8,function(){return Promise.reject(new BU(15,"MDA:Timeout"))}),7);
case 7:G=a.yieldResult;if(q.isDisposed())throw new BU(q.yZ?20:32,"MDA:Disposed");n=X[0];q.state=6;return _.H(a,CY(Hmj(q.lO,G),q.qY2.rJp,function(){return Promise.reject(new BU(10,"BWB:Timeout"))}),8);
case 8:N=a.yieldResult;if(q.isDisposed())throw new BU(q.yZ?20:32,"BWB:Disposed");q.state=7;w=fM(e,function(){var g=W$F(q,N,u,n);g.r1D.promise.then(function(){return void q.oxH()});
return g},"i");
case 5:_.Xg(a);e.dispose();_.G7(a,6);break;case 4:Q=_.nm(a);(I=w)==null||I.dispose();if(!q.yM){U=njZ(q,Q);u.resolve();var b;if(b=q.d3 instanceof A5&&q.ePw<2)a:if(Q instanceof BU)b=Q.code!==32&&Q.code!==20&&Q.code!==10;else{if(Q instanceof _.CM)switch(Q.code){case 2:case 13:case 14:case 4:break;default:b=!1;break a}b=!0}if(b)return d=(1+Math.random()*.25)*(q.yZ?6E4:1E3),V=setTimeout(function(){return void q.oxH()},d),q.addOnDisposeCallback(function(){return void clearTimeout(V)}),a.return();
q.yM=U}e.logError(q.yZ?13:14);q.gzY.reject(q.yM);return a.return();case 6:q.state=8,q.ePw=0,(J=q.yZ)==null||J.dispose(),q.yZ=w,q.gzY.resolve(),_.HI(a)}})},W$F=function(q,w,u,y){var e=XWM(w,2)*1E3;
if(e<=0)throw new BU(31,"TTM:Invalid");if(_.fy(w,4))return new e16(q.logger,_.fy(w,4),e);if(!XWM(w,3))return new yD$(q.logger,Saf(_.IG(w,1)),e);if(!y)throw new BU(4,"PMD:Undefined");y=y(Saf(_.IG(w,1)));if(!(y instanceof Function))throw new BU(16,"APF:Failed");q.s73=Math.floor((Date.now()+e)/1E3);q=new ug3(q.logger,y,XWM(w,3),e);q.addOnDisposeCallback(function(){return void u.resolve()});
return q};
D9.prototype.l8=function(q){return sQ3(this,Object.assign({},q),!1)};
D9.prototype.v6=function(q){return sQ3(this,Object.assign({},q),!0)};
D9.prototype.dC1=function(q){if(q>150)return!1;try{return this.cache=new hhG(q,this.logger),!0}catch(w){return this.reportError(new BU(22,"GBJ:init",w)),!1}};
D9.prototype.reportError=function(q){this.logger.logError(q.code);this.onError(q);return q};
var NYT=function(q,w){w=w instanceof BU?w:new BU(5,"TVD:error",w);return q.reportError(w)},sQ3=function(q,w,u){try{if(q.isDisposed())throw new BU(21,"BNT:disposed");
if(!q.yZ&&q.yM)throw q.yM;var y,e;return(e=(y=QQc(q,w,u))!=null?y:ICa(q,w,u))!=null?e:imx(q,w,u)}catch(t){if(!w.bIl)throw NYT(q,t);return rDk(q,u,t)}},QQc=function(q,w,u){var y;
return(y=q.yZ)==null?void 0:wIZ(y,function(){return UrX(q,w)},u,function(e){var t;
if(q.yZ instanceof ug3&&((t=w.dA)==null?0:t.sR2))try{var X;(X=q.cache)==null||jwF(X,UrX(q,w),e,w.dA.qoc,q.s73-120)}catch(G){q.reportError(new BU(24,"ELX:write",G))}})},ICa=function(q,w,u){var y;
if((y=w.dA)!=null&&y.x3C)try{var e,t=(e=q.cache)==null?void 0:lDP(e,UrX(q,w),w.dA.qoc);return t?u?fM(q.logger,function(){return _.wV(t,2)},"a"):t:void 0}catch(X){q.reportError(new BU(23,"RXO:read",X))}},imx=function(q,w,u){var y={stack:[],
error:void 0,hasError:!1};try{if(!w.fz1)throw new BU(29,"SDF:notready");return wIZ(ukl(y,new PBj(q.logger,0,q.state)),function(){return UrX(q,w)},u)}catch(e){y.error=e,y.hasError=!0}finally{to4(y)}},rDk=function(q,w,u){var y={stack:[],
error:void 0,hasError:!1};try{var e=NYT(q,u);return wIZ(ukl(y,new k7x(q.logger,e)),function(){return[]},w)}catch(t){y.error=t,y.hasError=!0}finally{to4(y)}},UrX=function(q,w){return w.jyX?w.jyX:w.kG?fM(q.logger,function(){return w.jyX=jR4(w.kG)},"c"):[]},F$P=function(q){return L$(function(w){if(!FZ(w))return!1;
for(var u=_.P(Object.entries(q)),y=u.next();!y.done;y=u.next()){var e=_.P(y.value);y=e.next().value;e=e.next().value;if(!(y in w)){if(e.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!e(w[y]))return!1}return!0})}({d3:function(q){return L$(function(w){return w instanceof q})}(A5)},"");var TYc=function(){var q=_.te();this.JSC$7814_streamzService=q;q.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",ei("cookie_enabled"),ei("cookie_3p_enabled"),_.t1("browser"))};
TYc.prototype.increment=function(q,w,u){this.JSC$7814_streamzService.JSC$7690_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",q,w,u)};
var kr4=function(){var q=_.te();this.JSC$7838_streamzService=q;q.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",ks("tick"),ei("from_st_cookie"))};
kr4.prototype.increment=function(q,w){this.JSC$7838_streamzService.JSC$7690_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",q,w)};
var CBj=function(){var q=_.te();this.JSC$7844_streamzService=q;q.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.t1("status"))};
CBj.prototype.increment=function(q){this.JSC$7844_streamzService.JSC$7690_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",q)};
var dr3=function(){var q=_.te();this.JSC$7847_streamzService=q;q.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.t1("stage"),ei("is_using_ytd_player"),ei("has_expandable_tiles"))};
dr3.prototype.increment=function(q,w,u){this.JSC$7847_streamzService.JSC$7690_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",q,w,u)};
var OmT=function(){var q=_.te();this.JSC$7850_streamzService=q;q.addNewCounter("/client_streamz/youtube/web/response_signature",_.t1("check_status"))};
OmT.prototype.increment=function(q){this.JSC$7850_streamzService.JSC$7690_incrementCounter("/client_streamz/youtube/web/response_signature",q)};
var ojX=function(){var q=_.te();this.JSC$7853_streamzService=q;q.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.t1("sig"),ks("de"))};
ojX.prototype.increment=function(q,w){this.JSC$7853_streamzService.JSC$7690_incrementCounter("/client_streamz/youtube/web/e_sig_log",q,w)};
var VRF=function(){var q=_.te();this.JSC$7856_streamzService=q;q.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.t1("sig"),ks("de"))};
VRF.prototype.increment=function(q,w){this.JSC$7856_streamzService.JSC$7690_incrementCounter("/client_streamz/youtube/web/e_sig_en",q,w)};
_.fCX=function(){var q=_.te();this.JSC$7859_streamzService=q;q.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.t1("action"))};
_.fCX.prototype.increment=function(q){this.JSC$7859_streamzService.JSC$7690_incrementCounter("/client_streamz/youtube/web/enforcement_intent",q)};var Z9=window;var mrF=(new Date).getTime();var AD6=function(q){this.servicePromise_=q;q.then((0,_.fY)(function(){},this),function(){},this)},JDr=function(q,w,u){q.servicePromise_.then(function(y){var e=y[w];
if(!e)throw Error("Oa`"+w);return e.apply(y,u)})},Drk=function(q,w,u){for(var y=Array(arguments.length-2),e=2;e<arguments.length;e++)y[e-2]=arguments[e];
e=z1$(q,w).then(function(t){return t.apply(null,y)},function(t){t=Error("Pa`"+w+"`"+q,{cause:t});
delete aCF[w];return _.og(t)});
return new AD6(e)},aCF={},z1$=function(q,w){var u=aCF[w];
if(u)return u;u=(u=_.hP(w))?_.Hw(u):(new _.IA(function(y,e){var t=(new rP(document)).createElement("SCRIPT");t.async=!0;_.bZ(t,_.FE(a6X(q)));t.onload=t.onreadystatechange=function(){t.readyState&&t.readyState!="loaded"&&t.readyState!="complete"||y()};
t.onerror=function(X){e(Error("Qa`"+w+"`"+q,{cause:X}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(t)})).then(function(){var y=_.hP(w);
if(!y)throw Error("Ra`"+w+"`"+q);return y});
return aCF[w]=u};var Zma={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},$r3=function(){var q=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=lGs(function(){return _.F(function(w){if(w.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?w.return(Promise.resolve()):_.H(w,pIT(q),2);q.rsaForList.length>
0&&document.addEventListener("click",q.requestAccessForHelpPanel);_.HI(w)})});
this.requestAccessForHelpPanel=function(){if(!(q.rsaForPromises.length>0)){for(var w=_.P(q.rsaForList),u=w.next();!u.done;u=w.next()){u=u.value;try{q.rsaForPromises.push(document.requestStorageAccessFor(u))}catch(y){}}Promise.all(q.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){q.reset()})}}};
$r3.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var pIT=function(q){var w,u,y,e;return _.F(function(t){switch(t.nextAddress){case 1:w=_.P(Object.values(Zma)),u=w.next();case 2:if(u.done){t.jumpTo(0);break}y=u.value;_.tD(t,5);return _.H(t,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:y}),7);case 7:e=t.yieldResult;e.state!=="granted"&&q.rsaForList.push(y);_.jv(t,3);break;case 5:_.nm(t);t.jumpTo(0);break;case 3:u=w.next(),t.jumpTo(2)}})};(new $r3).initialize();var vjX=function(q){this.JSC$7873_loader_=q};
vjX.prototype.startHelp=function(q){JDr(this.JSC$7873_loader_,"startHelp",arguments)};
vjX.prototype.JSC$7875_loadChatSupport=function(q){JDr(this.JSC$7873_loader_,"loadChatSupport",arguments)};
var YqF=function(q,w){w=w||{};q=Drk(bma,"help.service.Lazy.create",q,{apiKey:w.apiKey||w.apiKey,asxUiUri:w.asxUiUri||w.asxUiUri,environment:w.environment||w.environment,flow:w.flow||w.flow,frdProductData:w.frdProductData||w.frdProductData,frdProductDataSerializedJspb:w.frdProductDataSerializedJspb||w.frdProductDataSerializedJspb,helpCenterPath:w.helpCenterPath||w.helpCenterPath,locale:w.locale||w.locale||"en-US".replace(/-/g,"_"),nonce:w.nonce||w.nonce,productData:w.productData||w.productData,receiverUri:w.receiverUri||
w.receiverUri,renderApiUri:w.renderApiUri||w.renderApiUri,theme:w.theme||w.theme,window:w.window||w.window});return new vjX(q)},bma=new Ek(QgM,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var gjZ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(gjZ,_.bE);var Ejk=_.uZ(gjZ);_.R1k=new function(q,w,u,y){this.configType=q;this.flagName=u;this.defaultValue=y;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 Sq3=function(){this.retriever=_.tG().resolve(cDX)};o3(Node);o3(Element);var h1P=o3(HTMLElement);o3(SVGElement);var jQG,lCr,vJ,L$T;jQG=function(q){return typeof q.className=="string"?q.className:q.getAttribute&&q.getAttribute("class")||""};
lCr=function(q){return q.classList?q.classList:jQG(q).match(/\S+/g)||[]};
_.pM=function(q,w){typeof q.className=="string"?q.className=w:q.setAttribute&&q.setAttribute("class",w)};
_.$r=function(q,w){return q.classList?q.classList.contains(w):_.SH(lCr(q),w)};
_.Lx=function(q,w){if(q.classList)q.classList.add(w);else if(!_.$r(q,w)){var u=jQG(q);_.pM(q,u+(u.length>0?" "+w:w))}};
vJ=function(q,w){if(q.classList)Array.prototype.forEach.call(w,function(e){_.Lx(q,e)});
else{var u={};Array.prototype.forEach.call(lCr(q),function(e){u[e]=!0});
Array.prototype.forEach.call(w,function(e){u[e]=!0});
w="";for(var y in u)w+=w.length>0?" "+y:y;_.pM(q,w)}};
_.jD=function(q,w){q.classList?q.classList.remove(w):_.$r(q,w)&&_.pM(q,Array.prototype.filter.call(lCr(q),function(u){return u!=w}).join(" "))};
L$T=function(q,w){q.classList?Array.prototype.forEach.call(w,function(u){_.jD(q,u)}):_.pM(q,Array.prototype.filter.call(lCr(q),function(u){return!_.SH(w,u)}).join(" "))};var MR$=function(q){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=q.document},xr$=function(q,w){K$F(q);
var u=document.createElement("div"),y;(y=w.parentNode)==null||y.insertBefore(u,w);u.tabIndex=0;u.id="fc-focus-trap-pre-div";u=document.createElement("div");var e;(e=w.parentNode)==null||e.insertBefore(u,w.nextSibling);u.tabIndex=0;u.id="fc-focus-trap-post-div";var t=BYT(q,w),X=BYT(q,w,!0);t&&X&&(q.focusChangeHandler=function(){var G=q.document.activeElement;if(G)if(_.R3(w,G))q.previouslyFocusedElement=G;else if(G===q.document.activeElement)switch(q.previouslyFocusedElement){case t:X.focus();q.previouslyFocusedElement=
X;break;default:t.focus(),q.previouslyFocusedElement=t}},q.document.addEventListener("focus",q.focusChangeHandler,!0),q.document.addEventListener("focusin",q.focusChangeHandler))},K$F=function(q){q.focusChangeHandler&&(document.removeEventListener("focus",q.focusChangeHandler,!0),document.removeEventListener("focusin",q.focusChangeHandler),q.focusChangeHandler=null);
var w;(w=document.getElementById("fc-focus-trap-pre-div"))==null||w.remove();var u;(u=document.getElementById("fc-focus-trap-post-div"))==null||u.remove()},qfj=function(q,w,u,y,e){u=u===void 0?!0:u;
var t;e=(t=e===void 0?null:e)!=null?t:BYT(q,w,y===void 0?!1:y);e!==null&&(e.focus(),u&&xr$(q,w))};
MR$.prototype.disableButton=function(q,w){w=w===void 0?null:w;q.disabled=!0;w&&_.Lx(q,w)};
var BYT=function(q,w,u){u=u===void 0?!1:u;if(Zp7(w)&&!u)return w;var y=u?[].slice.call(w.children,0).reverse():w.children;y=_.P(y);for(var e=y.next();!e.done;e=y.next())if(e=e.value,h1P(e)&&(e=BYT(q,e,u)))return e;return Zp7(w)&&u?w:null};var wX3=function(q){this.originalBodyOverflow="";this.JSC$7899_domHelper=WX(q)};_.w9(_.m2,_.VG);_.k=_.m2.prototype;_.k.JSC$7902_id_=0;_.k.disposeInternal=function(){_.m2.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$7900_listener_;delete this.handler_};
_.k.start=function(q){this.stop();this.JSC$7902_id_=Tx(this.callback_,q!==void 0?q:this.JSC$7900_interval_)};
_.k.stop=function(){this.isActive()&&_.uc.clearTimeout(this.JSC$7902_id_);this.JSC$7902_id_=0};
_.k.fire=function(){this.stop();this.JSC$7902_doAction_()};
_.k.isActive=function(){return this.JSC$7902_id_!=0};
_.k.JSC$7902_doAction_=function(){this.JSC$7902_id_=0;this.JSC$7900_listener_&&this.JSC$7900_listener_.call(this.handler_)};_.tp=function(q){_.VG.call(this);this.handler_=q;this.JSC$7903_keys_={}};
_.w9(_.tp,_.VG);var uOT=[];_.tp.prototype.listen=function(q,w,u,y){Array.isArray(w)||(w&&(uOT[0]=w.toString()),w=uOT);for(var e=0;e<w.length;e++){var t=_.dL(q,w[e],u||this.handleEvent,y||!1,this.handler_||this);if(!t)break;this.JSC$7903_keys_[t.key]=t}return this};
_.tp.prototype.listenOnce=function(q,w,u,y){return ywj(this,q,w,u,y)};
var ywj=function(q,w,u,y,e,t){if(Array.isArray(u))for(var X=0;X<u.length;X++)ywj(q,w,u[X],y,e,t);else{w=rL(w,u,y||q.handleEvent,e,t||q.handler_||q);if(!w)return q;q.JSC$7903_keys_[w.key]=w}return q};
_.tp.prototype.unlisten=function(q,w,u,y,e){if(Array.isArray(w))for(var t=0;t<w.length;t++)this.unlisten(q,w[t],u,y,e);else if(q=VaP(q,w,u||this.handleEvent,_.er(y)?!!y.capture:!!y,e||this.handler_||this))UO(q),delete this.JSC$7903_keys_[q.key];return this};
_.tp.prototype.removeAll=function(){_.db.forEach(this.JSC$7903_keys_,function(q,w){this.JSC$7903_keys_.hasOwnProperty(w)&&UO(q)},this);
this.JSC$7903_keys_={}};
_.tp.prototype.disposeInternal=function(){_.tp.superClass_.disposeInternal.call(this);this.removeAll()};
_.tp.prototype.handleEvent=function(){throw Error("Sa");};var bh=function(){_.VG.call(this);this.services_={}};
_.w9(bh,_.VG);_.k=bh.prototype;_.k.logger=null;_.k.connect=function(q){q&&q()};
_.k.isConnected=function(){return!0};
_.k.registerService=function(q,w,u){this.services_[q]={callback:w,objectPayload:!!u}};
_.k.getService=function(q,w){var u=this.services_[q];return u?u:this.defaultService_?{callback:_.rk(this.defaultService_,q),objectPayload:_.er(w)}:null};
var eqZ=function(q,w){if(w&&typeof q==="string")try{return JSON.parse(q)}catch(u){return null}else if(!w&&typeof q!=="string")return(0,_.dD)(q);return q};
bh.prototype.disposeInternal=function(){bh.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 Yr=function(q,w){this.sequence_=[];this.onCancelFunction_=q;this.defaultScope_=w||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};
Yr.prototype.cancel=function(q){if(this.fired_)this.result_ instanceof Yr&&this.result_.cancel();else{if(this.parent_){var w=this.parent_;delete this.parent_;q?w.cancel(q):(w.branches_--,w.branches_<=0&&w.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new gD(this))}};
Yr.prototype.continue_=function(q,w){this.blocked_=!1;kca(this,q,w)};
var kca=function(q,w,u){q.fired_=!0;q.result_=u;q.hadError_=!w;t36(q)},XXa=function(q){if(q.fired_){if(!q.silentlyCanceled_)throw new PaP(q);
q.silentlyCanceled_=!1}};
Yr.prototype.callback=function(q){XXa(this);kca(this,!0,q)};
Yr.prototype.errback=function(q){XXa(this);kca(this,!1,q)};
var FNP=function(q,w,u){Ej(q,w,null,u)};
Yr.prototype.finally=function(q){var w=this;return new Promise(function(u,y){Ej(w,function(e){q();u(e)},function(e){q();
y(e)})})};
var Ej=function(q,w,u,y){var e=q.fired_;e||(w===u?w=u=If(w):(w=If(w),u=If(u)));q.sequence_.push([w,u,y]);e&&t36(q)};
Yr.prototype.then=function(q,w,u){var y,e,t=new _.IA(function(X,G){e=X;y=G});
Ej(this,e,function(X){X instanceof gD?t.cancel():y(X);return Gc6},this);
return t.then(q,w,u)};
ZAa(Yr);var nSx=function(q,w){w instanceof Yr?FNP(q,(0,_.fY)(w.branch,w)):FNP(q,function(){return w})};
Yr.prototype.branch=function(q){var w=new Yr;Ej(this,w.callback,w.errback,w);q&&(w.parent_=this,this.branches_++);return w};
Yr.prototype.isError=function(q){return q instanceof Error};
var Hgk=function(q){return BT(q.sequence_,function(w){return typeof w[1]==="function"})},Gc6={},t36=function(q){if(q.unhandledErrorId_&&q.fired_&&Hgk(q)){var w=q.unhandledErrorId_,u=WNr[w];
u&&(_.uc.clearTimeout(u.JSC$7920_id_),delete WNr[w]);q.unhandledErrorId_=0}q.parent_&&(q.parent_.branches_--,delete q.parent_);w=q.result_;for(var y=u=!1;q.sequence_.length&&!q.blocked_;){var e=q.sequence_.shift(),t=e[0],X=e[1];e=e[2];if(t=q.hadError_?X:t)try{var G=t.call(e||q.defaultScope_,w);G===Gc6&&(G=void 0);G!==void 0&&(q.hadError_=q.hadError_&&(G==w||q.isError(G)),q.result_=w=G);if(p33(w)||typeof _.uc.Promise==="function"&&w instanceof _.uc.Promise)y=!0,q.blocked_=!0}catch(n){w=n,q.hadError_=
!0,Hgk(q)||(u=!0)}}q.result_=w;y&&(G=(0,_.fY)(q.continue_,q,!0),y=(0,_.fY)(q.continue_,q,!1),w instanceof Yr?(Ej(w,G,y),w.blocking_=!0):w.then(G,y));u&&(w=new srT(w),WNr[w.JSC$7920_id_]=w,q.unhandledErrorId_=w.JSC$7920_id_)},PaP=function(){_.qM.call(this)};
_.w9(PaP,_.qM);PaP.prototype.message="Deferred has already fired";PaP.prototype.name="AlreadyCalledError";var gD=function(){_.qM.call(this)};
_.w9(gD,_.qM);gD.prototype.message="Deferred was canceled";gD.prototype.name="CanceledError";var srT=function(q){this.JSC$7920_id_=_.uc.setTimeout((0,_.fY)(this.throwError,this),0);this.JSC$7920_error_=q};
srT.prototype.throwError=function(){delete WNr[this.JSC$7920_id_];throw this.JSC$7920_error_;};
var WNr={};var NbG={1:"NativeMessagingTransport"},Qra=["pu","lru","pru","lpu","ppu"],ig$=function(){for(var q=10,w=ILT,u=w.length,y="";q-- >0;)y+=w.charAt(Math.floor(Math.random()*u));return y},ILT="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var Rf=function(q){_.VG.call(this);this.JSC$7923_domHelper_=q||WX()};
_.w9(Rf,_.VG);Rf.prototype.transportType=0;Rf.prototype.getWindow=function(){return this.JSC$7923_domHelper_.getWindow()};
Rf.prototype.getName=function(){return NbG[String(this.transportType)]||""};var cJ=function(q,w,u,y,e){Rf.call(this,u);this.JSC$7926_channel_=q;this.protocolVersion_=e||2;this.peerHostname_=w||"*";this.JSC$7926_eventHandler_=new _.tp(this);this.maybeAttemptToConnectTimer_=new _.kG(100,this.getWindow());this.oneSidedHandshake_=!!y;this.setupAckReceived_=new Yr;this.setupAckSent_=new Yr;this.JSC$7926_connected_=new Yr;this.endpointId_=ig$();this.peerEndpointId_=null;this.oneSidedHandshake_?rw6(this.JSC$7926_channel_)==1?nSx(this.JSC$7926_connected_,this.setupAckReceived_):
nSx(this.JSC$7926_connected_,this.setupAckSent_):(nSx(this.JSC$7926_connected_,this.setupAckReceived_),this.protocolVersion_==2&&nSx(this.JSC$7926_connected_,this.setupAckSent_));FNP(this.JSC$7926_connected_,this.notifyConnected_,this);this.JSC$7926_connected_.callback(!0);this.JSC$7926_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.w9(cJ,Rf);cJ.prototype.peerProtocolVersion_=null;cJ.prototype.initialized_=!1;cJ.prototype.transportType=1;var UKP={};cJ.prototype.sendTimerId_=0;
var dKG=function(q){var w=q.event_.data;if(typeof w!=="string")return!1;var u=w.indexOf("|"),y=w.indexOf(":");if(u==-1||y==-1)return!1;var e=w.substring(0,u);u=w.substring(u+1,y);w=w.substring(y+1);if(y=Sn[e])return y.xpcDeliver(u,w,q.event_.origin),!0;y=TbT(w)[0];for(var t in Sn){var X=Sn[t];if(rw6(X)==1&&!X.isConnected()&&u=="tp"&&(y=="SETUP"||y=="SETUP_NTPV2")&&Car(X,q.event_.origin))return delete Sn[X.name],X.name=e,Sn[e]=X,X.xpcDeliver(u,w),!0}return!1},OgT=function(q){q.protocolVersion_!=2||
q.peerProtocolVersion_!=null&&q.peerProtocolVersion_!=2||q.send("tp","SETUP_NTPV2,"+q.endpointId_);
q.peerProtocolVersion_!=null&&q.peerProtocolVersion_!=1||q.send("tp","SETUP")},oSa=function(q,w){if(q.protocolVersion_!=2||q.peerProtocolVersion_!=null&&q.peerProtocolVersion_!=2||w!=2){if(q.peerProtocolVersion_!=null&&q.peerProtocolVersion_!=1||w!=1)return;
q.send("tp","SETUP_ACK")}else q.send("tp","SETUP_ACK_NTPV2");q.setupAckSent_.fired_||q.setupAckSent_.callback(!0)},V3F=function(q,w){w>q.peerProtocolVersion_&&(q.peerProtocolVersion_=w);
q.peerProtocolVersion_==1&&(q.setupAckSent_.fired_||q.oneSidedHandshake_||q.setupAckSent_.callback(!0),q.peerEndpointId_=null)};
_.k=cJ.prototype;_.k.connect=function(){var q=this.getWindow(),w=_.kT(q),u=UKP[w];typeof u!=="number"&&(u=0);u==0&&_.dL(q.postMessage?q:q.document,"message",dKG,!1,cJ);UKP[w]=u+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.k.maybeAttemptToConnect_=function(){var q=rw6(this.JSC$7926_channel_)==0;this.oneSidedHandshake_&&q||this.JSC$7926_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),OgT(this))};
_.k.send=function(q,w){var u=this.JSC$7926_channel_.peerWindowObject_;u&&(this.send=function(y,e){var t=this,X=this.JSC$7926_channel_.name;this.sendTimerId_=Tx(function(){t.sendTimerId_=0;try{var G=u.postMessage?u:u.document;G.postMessage&&G.postMessage(X+"|"+y+":"+e,t.peerHostname_)}catch(n){}},0)},this.send(q,w))};
_.k.notifyConnected_=function(){var q=this.JSC$7926_channel_,w=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;q.isConnected()||q.connectionDelay_&&q.connectionDelay_.isActive()||(q.state_=2,_.BX(q.connectionDelay_),w!==void 0?(q.connectionDelay_=new _.m2(q.connectCb_,w),q.connectionDelay_.start()):(q.connectionDelay_=null,q.connectCb_()))};
_.k.disposeInternal=function(){if(this.initialized_){var q=this.getWindow(),w=_.kT(q),u=UKP[w];UKP[w]=u-1;u==1&&_.NF(q.postMessage?q:q.document,"message",dKG,!1,cJ)}this.sendTimerId_&&(_.uc.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.BX(this.JSC$7926_eventHandler_);delete this.JSC$7926_eventHandler_;_.BX(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$7926_connected_.cancel();delete this.JSC$7926_connected_;delete this.send;cJ.superClass_.disposeInternal.call(this)};
var TbT=function(q){q=q.split(",");q[1]=q[1]||null;return q};_.h5=function(q){if(q.getValues&&typeof q.getValues=="function")return q.getValues();if(typeof Map!=="undefined"&&q instanceof Map||typeof Set!=="undefined"&&q instanceof Set)return Array.from(q.values());if(typeof q==="string")return q.split("");if(_.uP(q)){for(var w=[],u=q.length,y=0;y<u;y++)w.push(q[y]);return w}return _.db.getValues(q)};
_.fL3=function(q){if(q.getKeys&&typeof q.getKeys=="function")return q.getKeys();if(!q.getValues||typeof q.getValues!="function"){if(typeof Map!=="undefined"&&q instanceof Map)return Array.from(q.keys());if(!(typeof Set!=="undefined"&&q instanceof Set)){if(_.uP(q)||typeof q==="string"){var w=[];q=q.length;for(var u=0;u<q;u++)w.push(u);return w}return _.db.getKeys(q)}}};
_.mK3=function(q,w,u){if(q.forEach&&typeof q.forEach=="function")q.forEach(w,u);else if(_.uP(q)||typeof q==="string")Array.prototype.forEach.call(q,w,u);else for(var y=_.fL3(q),e=_.h5(q),t=e.length,X=0;X<t;X++)w.call(u,e[X],y&&y[X],q)};var sTy,xr,wa,pXx,Awr,zqX,JwT,Zg3,aLj;
_.M4=function(q,w){this.JSC$7931_domain_=this.userInfo_=this.scheme_="";this.JSC$7931_port_=null;this.fragment_=this.JSC$7931_path_="";this.JSC$7931_ignoreCase_=!1;var u;q instanceof _.M4?(this.JSC$7931_ignoreCase_=w!==void 0?w:q.JSC$7931_ignoreCase_,_.jn(this,q.scheme_),this.userInfo_=q.userInfo_,_.lh(this,q.JSC$7931_domain_),_.LM(this,q.JSC$7931_port_),_.MF(this,q.getPath()),_.KM(this,q.JSC$7931_queryData_.clone()),_.BJ(this,q.fragment_)):q&&(u=_.qu(String(q)))?(this.JSC$7931_ignoreCase_=!!w,_.jn(this,
u[1]||"",!0),this.userInfo_=xr(u[2]||""),_.lh(this,u[3]||"",!0),_.LM(this,u[4]),_.MF(this,u[5]||"",!0),_.KM(this,u[6]||"",!0),_.BJ(this,u[7]||"",!0)):(this.JSC$7931_ignoreCase_=!!w,this.JSC$7931_queryData_=new _.qH(null,this.JSC$7931_ignoreCase_))};
_.M4.prototype.toString=function(){var q=[],w=this.scheme_;w&&q.push(wa(w,Awr,!0),":");var u=this.JSC$7931_domain_;if(u||w=="file")q.push("//"),(w=this.userInfo_)&&q.push(wa(w,Awr,!0),"@"),q.push(_.lo(u).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),u=this.JSC$7931_port_,u!=null&&q.push(":",String(u));if(u=this.getPath())this.JSC$7931_domain_&&u.charAt(0)!="/"&&q.push("/"),q.push(wa(u,u.charAt(0)=="/"?JwT:zqX,!0));(u=this.JSC$7931_queryData_.toString())&&q.push("?",u);(u=this.fragment_)&&q.push("#",wa(u,
aLj));return q.join("")};
_.M4.prototype.resolve=function(q){var w=this.clone(),u=!!q.scheme_;u?_.jn(w,q.scheme_):u=!!q.userInfo_;u?w.userInfo_=q.userInfo_:u=!!q.JSC$7931_domain_;u?_.lh(w,q.JSC$7931_domain_):u=q.JSC$7931_port_!=null;var y=q.getPath();if(u)_.LM(w,q.JSC$7931_port_);else if(u=!!q.JSC$7931_path_){if(y.charAt(0)!="/")if(this.JSC$7931_domain_&&!this.JSC$7931_path_)y="/"+y;else{var e=w.getPath().lastIndexOf("/");e!=-1&&(y=w.getPath().slice(0,e+1)+y)}e=y;if(e==".."||e==".")y="";else if(_.H4(e,"./")||_.H4(e,"/.")){y=
_.tz(e,"/");e=e.split("/");for(var t=[],X=0;X<e.length;){var G=e[X++];G=="."?y&&X==e.length&&t.push(""):G==".."?((t.length>1||t.length==1&&t[0]!="")&&t.pop(),y&&X==e.length&&t.push("")):(t.push(G),y=!0)}y=t.join("/")}else y=e}u?_.MF(w,y):u=q.JSC$7931_queryData_.toString()!=="";u?_.KM(w,q.JSC$7931_queryData_.clone()):u=!!q.fragment_;u&&_.BJ(w,q.fragment_);return w};
_.M4.prototype.clone=function(){return new _.M4(this)};
_.jn=function(q,w,u){q.scheme_=u?xr(w,!0):w;q.scheme_&&(q.scheme_=q.scheme_.replace(/:$/,""));return q};
_.lh=function(q,w,u){q.JSC$7931_domain_=u?xr(w,!0):w;return q};
_.LM=function(q,w){if(w){w=Number(w);if(isNaN(w)||w<0)throw Error("Ta`"+w);q.JSC$7931_port_=w}else q.JSC$7931_port_=null;return q};
_.M4.prototype.getPath=function(){return this.JSC$7931_path_};
_.MF=function(q,w,u){q.JSC$7931_path_=u?xr(w,!0):w;return q};
_.KM=function(q,w,u){w instanceof _.qH?(q.JSC$7931_queryData_=w,DKF(q.JSC$7931_queryData_,q.JSC$7931_ignoreCase_)):(u||(w=wa(w,Zg3)),q.JSC$7931_queryData_=new _.qH(w,q.JSC$7931_ignoreCase_));return q};
_.lI=function(q,w,u){q.JSC$7931_queryData_.set(w,u);return q};
_.ji=function(q,w){return q.JSC$7931_queryData_.get(w)};
_.BJ=function(q,w,u){q.fragment_=u?xr(w):w;return q};
_.u5=function(q){_.lI(q,"zx",Si());return q};
_.h1=function(q,w){return q instanceof _.M4?q.clone():new _.M4(q,w)};
sTy=function(q,w){q instanceof _.M4||(q=_.h1(q));w instanceof _.M4||(w=_.h1(w));return q.resolve(w)};
xr=function(q,w){return q?w?decodeURI(q.replace(/%25/g,"%2525")):decodeURIComponent(q):""};
wa=function(q,w,u){return typeof q==="string"?(q=encodeURI(q).replace(w,pXx),u&&(q=q.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),q):null};
pXx=function(q){q=q.charCodeAt(0);return"%"+(q>>4&15).toString(16)+(q&15).toString(16)};
Awr=/[#\/\?@]/g;zqX=/[#\?:]/g;JwT=/[#\?]/g;Zg3=/[#\?@]/g;aLj=/#/g;_.qH=function(q,w){this.count_=this.keyMap_=null;this.encodedQuery_=q||null;this.JSC$7932_ignoreCase_=!!w};
_.yr=function(q){q.keyMap_||(q.keyMap_=new Map,q.count_=0,q.encodedQuery_&&Ack(q.encodedQuery_,function(w,u){q.add(ev(w),u)}))};
_.k=_.qH.prototype;_.k.getCount=function(){_.yr(this);return this.count_};
_.k.add=function(q,w){_.yr(this);this.encodedQuery_=null;q=e4(this,q);var u=this.keyMap_.get(q);u||this.keyMap_.set(q,u=[]);u.push(w);this.count_+=1;return this};
_.k.remove=function(q){_.yr(this);q=e4(this,q);return this.keyMap_.has(q)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(q).length,this.keyMap_.delete(q)):!1};
_.k.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.k.isEmpty=function(){_.yr(this);return this.count_==0};
_.k.containsKey=function(q){_.yr(this);q=e4(this,q);return this.keyMap_.has(q)};
_.k.containsValue=function(q){var w=this.getValues();return _.SH(w,q)};
_.k.forEach=function(q,w){_.yr(this);this.keyMap_.forEach(function(u,y){u.forEach(function(e){q.call(w,e,y,this)},this)},this)};
_.k.getKeys=function(){_.yr(this);for(var q=Array.from(this.keyMap_.values()),w=Array.from(this.keyMap_.keys()),u=[],y=0;y<w.length;y++)for(var e=q[y],t=0;t<e.length;t++)u.push(w[y]);return u};
_.k.getValues=function(q){_.yr(this);var w=[];if(typeof q==="string")this.containsKey(q)&&(w=w.concat(this.keyMap_.get(e4(this,q))));else{q=Array.from(this.keyMap_.values());for(var u=0;u<q.length;u++)w=w.concat(q[u])}return w};
_.k.set=function(q,w){_.yr(this);this.encodedQuery_=null;q=e4(this,q);this.containsKey(q)&&(this.count_-=this.keyMap_.get(q).length);this.keyMap_.set(q,[w]);this.count_+=1;return this};
_.k.get=function(q,w){if(!q)return w;q=this.getValues(q);return q.length>0?String(q[0]):w};
_.$KT=function(q,w,u){q.remove(w);u.length>0&&(q.encodedQuery_=null,q.keyMap_.set(e4(q,w),_.qT(u)),q.count_+=u.length)};
_.qH.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var q=[],w=Array.from(this.keyMap_.keys()),u=0;u<w.length;u++){var y=w[u],e=_.lo(y);y=this.getValues(y);for(var t=0;t<y.length;t++){var X=e;y[t]!==""&&(X+="="+_.lo(y[t]));q.push(X)}}return this.encodedQuery_=q.join("&")};
_.qH.prototype.clone=function(){var q=new _.qH;q.encodedQuery_=this.encodedQuery_;this.keyMap_&&(q.keyMap_=new Map(this.keyMap_),q.count_=this.count_);return q};
var e4=function(q,w){w=String(w);q.JSC$7932_ignoreCase_&&(w=w.toLowerCase());return w},DKF=function(q,w){w&&!q.JSC$7932_ignoreCase_&&(_.yr(q),q.encodedQuery_=null,q.keyMap_.forEach(function(u,y){var e=y.toLowerCase();
y!=e&&(this.remove(y),_.$KT(this,e,u))},q));
q.JSC$7932_ignoreCase_=w};
_.qH.prototype.extend=function(q){for(var w=0;w<arguments.length;w++)_.mK3(arguments[w],function(u,y){this.add(y,u)},this)};var kQ=function(q,w){bh.call(this);for(var u=0,y;y=Qra[u];u++)if(y in q&&!/^https?:\/\//.test(q[y]))throw Error("Va`"+q[y]+"`"+y);this.cfg_=q;this.name=this.cfg_.cn||ig$();this.JSC$7927_domHelper_=w||WX();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.tp(this);q.lpu=q.lpu||fZG(this.JSC$7927_domHelper_.getWindow().location.href)+"/robots.txt";q.ppu=q.ppu||fZG(q.pu||"")+"/robots.txt";Sn[this.name]=this;VaP(window,"unload",vS$)||rL(window,"unload",vS$)};
_.w9(kQ,bh);var bgT=RegExp("^%*tp$"),Yfc=RegExp("^%+tp$");_.k=kQ.prototype;_.k.connectionDelay_=null;_.k.peerWindowDeferred_=null;_.k.transport_=null;_.k.state_=1;_.k.isConnected=function(){return this.state_==2};
_.k.peerWindowObject_=null;_.k.iframeElement_=null;_.k.connect=function(q){this.connectCb_=q||_.sb;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?FNP(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.k.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$7927_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var q=this.iframeElement_.contentWindow;q||(q=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=q}if(!this.peerWindowObject_){if(window==window.top)throw Error("Xa");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$7927_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new cJ(this,this.cfg_.ph,this.JSC$7927_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.k.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.BX(this.transport_);this.connectCb_=this.transport_=null;_.BX(this.connectionDelay_);this.connectionDelay_=null};
_.k.send=function(q,w){if(this.isConnected()){try{var u=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(e){u=!1}if(u){_.er(w)&&(w=(0,_.dD)(w));u=this.transport_;var y=u.send;bgT.test(q)&&(q="%"+q);q=q.replace(/[%:|]/g,encodeURIComponent);y.call(u,q,w)}else this.close()}};
_.k.xpcDeliver=function(q,w,u){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.fY)(this.xpcDeliver,this,q,w,u));else if(Car(this,u)&&!this.isDisposed()&&this.state_!=3)if(q&&q!="tp")this.isConnected()&&(q=q.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),q=Yfc.test(q)?q.substring(1):q,q=this.getService(q,w))&&(w=eqZ(w,q.objectPayload),w!=null&&q.callback(w));else switch(q=this.transport_,u=TbT(w),w=u[1],u[0]){case "SETUP_ACK":V3F(q,1);q.setupAckReceived_.fired_||q.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":q.protocolVersion_==2&&(V3F(q,2),q.setupAckReceived_.fired_||q.setupAckReceived_.callback(!0));break;case "SETUP":V3F(q,1);oSa(q,1);break;case "SETUP_NTPV2":q.protocolVersion_==2&&(u=q.peerProtocolVersion_,V3F(q,2),oSa(q,2),u!=1&&q.peerEndpointId_==null||q.peerEndpointId_==w||OgT(q),q.peerEndpointId_=w)}};
var rw6=function(q){var w=q.cfg_.role;return typeof w==="number"?w:window.parent==q.peerWindowObject_?1:0},Car=function(q,w){var u=q.cfg_.ph;
return _.Gy(w==null?"":String(w))||_.Gy(u==null?"":String(u))||w==q.cfg_.ph};
kQ.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete Sn[this.name];_.BX(this.peerLoadHandler_);delete this.peerLoadHandler_;kQ.superClass_.disposeInternal.call(this)};
var vS$=function(){for(var q in Sn)_.BX(Sn[q])},Sn={};var ESF=function(q,w){this.JSC$7941_win=q;this.allowAdsHttpEndpoint=w;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$7941_domHelper=WX(q);this.scrollManager=new wX3(q);this.accessibilityManager=new MR$(q);gSX(this)},gSX=function(q){var w=function(){q.allowAdsPopup&&q.allowAdsPopup.style.setProperty("display","none","important");
q.wallElement.style.setProperty("display","","important");K$F(q.accessibilityManager);qfj(q.accessibilityManager,q.wallElement.querySelector(".fc-dialog-container"),!1,!1,q.wallElement.querySelector(".fc-button-whitelist"));var e=q.scrollManager;e.JSC$7899_domHelper.JSC$7229_document_.body.style.overflow=e.originalBodyOverflow};
q.allowAdsPopup=q.JSC$7941_domHelper.JSC$7231_createDom("DIV",{"class":"fc-whitelist-root"});q.allowAdsPopup.style.setProperty("display","none","important");q.JSC$7941_domHelper.appendChild(q.JSC$7941_domHelper.JSC$7229_document_.body,q.allowAdsPopup);var u=q.JSC$7941_domHelper.JSC$7231_createDom("DIV",{"class":"fc-dialog-overlay"});q.JSC$7941_domHelper.appendChild(q.allowAdsPopup,u);var y=q.JSC$7941_domHelper.JSC$7231_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:w});q.JSC$7941_domHelper.appendChild(q.allowAdsPopup,
y);u=q.JSC$7941_domHelper.JSC$7231_createDom("IFRAME");u.className="fc-whitelist-dialog";u.frameBorder="0";u.id="fc-whitelist-iframe";u.tabIndex="0";_.Ja(u,q.allowAdsHttpEndpoint);q.JSC$7941_domHelper.appendChild(y,u);y={};y.pu=_.G2(q.allowAdsHttpEndpoint).toString();y.tp=1;y.cn="fc-whitelist-channel";y.ifrid=u.id;y.osh=!0;q.allowAdsCrossPageChannel=new kQ(y);q.allowAdsCrossPageChannel.registerService("close",w);q.allowAdsCrossPageChannel.registerService("refresh",function(){q.JSC$7941_win.location.reload()});
q.allowAdsCrossPageChannel.registerService("resize",function(e){if(e){var t=q.allowAdsPopup.querySelector(".fc-whitelist-dialog");e.width&&t.style.setProperty("width",e.width,"important");e.height&&t.style.setProperty("height",e.height,"important")}},!0);
q.allowAdsCrossPageChannel.connect()};
ESF.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$7941_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var Pz=window,XC=document,RqT=Pz.location,cwk=function(){},SfF=/\[native code\]/,FC=function(q,w,u){return q[w]=q[w]||u},hqa=function(q){q=q.sort();
for(var w=[],u=void 0,y=0;y<q.length;y++){var e=q[y];e!=u&&w.push(e);u=e}return w},GI=function(){var q;
if((q=Object.create)&&SfF.test(q))q=q(null);else{q={};for(var w in q)q[w]=void 0}return q},nd=FC(Pz,"gapi",{});var Hz={};Hz=FC(Pz,"___jsl",GI());FC(Hz,"I",0);FC(Hz,"hel",10);var jrT=function(){var q=RqT.href;if(Hz.dpo)var w=Hz.h;else{w=Hz.h;var u=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),y=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(q=q&&(u.exec(q)||y.exec(q)))try{w=decodeURIComponent(q[2])}catch(e){}}return w},lLa=function(q){var w=FC(Hz,"PQ",[]);
Hz.PQ=[];var u=w.length;if(u===0)q();else for(var y=0,e=function(){++y===u&&q()},t=0;t<u;t++)w[t](e)},LN6=function(q){return FC(FC(Hz,"H",GI()),q,GI())};var Wz=function(q){this.JSC$7943_obj_=q};
Wz.prototype.value=function(){return this.JSC$7943_obj_};
Wz.prototype.getWidth=function(){return this.JSC$7943_obj_.width};
Wz.prototype.getHeight=function(){return this.JSC$7943_obj_.height};
Wz.prototype.getStyle=function(){return this.JSC$7943_obj_.style};var M3P=function(q){this.JSC$7946_obj_=q||{}};
_.k=M3P.prototype;_.k.value=function(){return this.JSC$7946_obj_};
_.k.setUrl=function(q){this.JSC$7946_obj_.url=q;return this};
_.k.getUrl=function(){return this.JSC$7946_obj_.url};
_.k.getStyle=function(){return this.JSC$7946_obj_.style};
_.k.setId=function(q){this.JSC$7946_obj_.id=q;return this};
_.k.getId=function(){return this.JSC$7946_obj_.id};
_.k.getContext=function(){return this.JSC$7946_obj_.context};
var KN$=function(q){q.JSC$7946_obj_.attributes=q.JSC$7946_obj_.attributes||{};return new Wz(q.JSC$7946_obj_.attributes)};var Bba=function(){M3P.apply(this,arguments)};
_.O(Bba,M3P);var xKZ=FC(Hz,"perf",GI());FC(xKZ,"g",GI());var qNk=FC(xKZ,"i",GI());FC(xKZ,"r",[]);GI();GI();var u3P=function(q,w,u){w&&w.length>0&&(w=w2T(w),u&&u.length>0&&(w+="___"+w2T(u)),w.length>28&&(w=w.substr(0,28)+(w.length-28)),u=w,w=FC(qNk,"_p",GI()),FC(w,u,GI())[q]=(new Date).getTime(),w=xKZ.r,typeof w==="function"?w(q,"_p",u):w.push([q,"_p",u]))},w2T=function(q){return q.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var y1a=GI(),eVr=[],sc=function(q){throw Error("Ya`"+q);};
eVr.push(["jsl",function(q){for(var w in q)if(Object.prototype.hasOwnProperty.call(q,w)){var u=q[w];typeof u=="object"?Hz[w]=FC(Hz,w,[]).concat(u):FC(Hz,w,u)}if(w=q.u)q=FC(Hz,"us",[]),q.push(w),(w=/^https:(.*)$/.exec(w))&&q.push("http:"+w[1])}]);
var k9c=/^(\/[a-zA-Z0-9_\-]+)+$/,tij=[/\/amp\//,/\/amp$/,/^\/amp$/],PI6=/^[a-zA-Z0-9\-_\.,!]+$/,X2x=/^gapi\.loaded_[0-9]+$/,F2k=/^[a-zA-Z0-9,._-]+$/,W2X=function(q,w,u,y,e){var t=q.split(";"),X=t.shift(),G=y1a[X],n=null;G?n=G(t,w,u,y):sc("no hint processor for: "+X);n||sc("failed to generate load url");w=n;u=w.match(G9X);(y=w.match(nsG))&&y.length===1&&HYP.test(w)&&u&&u.length===1||sc("failed sanity: "+q);try{q="?";if(e&&e.length>0){Xa(e);var N=e.join(",");n=n+"?le="+N;q="&"}if(Hz.rol){var Q=Hz.ol;
Q&&Q.length&&(n=""+n+q+"ol="+Q.length)}}catch(I){}return n},Q3Z=function(q,w,u,y){q=s3$(q);
X2x.test(u)||sc("invalid_callback");w=NgX(w);y=y&&y.length?NgX(y):null;var e=function(t){return encodeURIComponent(t).replace(/%2C/g,",")};
return[encodeURIComponent(q.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",e(q.version),"/m=",e(w),y?"/exm="+e(y):"","/rt=j/sv=1/d=1/ed=1",q.activeMods?"/am="+e(q.activeMods):"",q.resourceSig?"/rs="+e(q.resourceSig):"",q.zcms?"/t="+e(q.zcms):"","/cb=",e(u)].join("")},s3$=function(q){q.charAt(0)!=="/"&&sc("relative path");
for(var w=q.substring(1).split("/"),u=[];w.length;){q=w.shift();if(!q.length||q.indexOf(".")==0)sc("empty/relative directory");else if(q.indexOf("=")>0){w.unshift(q);break}u.push(q)}q={};for(var y=0,e=w.length;y<e;++y){var t=w[y].split("="),X=decodeURIComponent(t[0]),G=decodeURIComponent(t[1]);t.length==2&&X&&G&&(q[X]=q[X]||G)}w="/"+u.join("/");k9c.test(w)||sc("invalid_prefix");u=0;for(y=tij.length;u<y;++u)tij[u].test(w)&&sc("invalid_prefix");u=IHc(q,"k",!0);y=IHc(q,"am");e=IHc(q,"rs");q=IHc(q,"t");
return{pathPrefix:w,version:u,activeMods:y,resourceSig:e,zcms:q}},NgX=function(q){for(var w=[],u=0,y=q.length;u<y;++u){var e=q[u].replace(/\./g,"_").replace(/-/g,"_");
F2k.test(e)&&w.push(e)}return w.join(",")},IHc=function(q,w,u){q=q[w];
!q&&u&&sc("missing: "+w);if(q){if(PI6.test(q))return q;sc("invalid: "+w)}return null},HYP=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,nsG=/\/cb=/g,G9X=/\/\//g;
y1a.m=function(q,w,u,y){(q=q[0])||sc("missing_hint");return"https://apis.google.com"+Q3Z(q,w,u,y)};
var iYk=decodeURI("%73cript"),r1x=/^[-+_0-9\/A-Za-z]+={0,2}$/,U1T=function(q,w){for(var u=[],y=0;y<q.length;++y){var e=q[y],t;if(t=e){a:{for(t=0;t<w.length;t++)if(w[t]===e)break a;t=-1}t=t<0}t&&u.push(e)}return u},Tgc=function(){var q=Hz.nonce;
return q!==void 0?q&&q===String(q)&&q.match(r1x)?q:Hz.nonce=null:XC.querySelector?(q=XC.querySelector("script[nonce]"))?(q=q.nonce||q.getAttribute("nonce")||"",q&&q===String(q)&&q.match(r1x)?Hz.nonce=q:Hz.nonce=null):null:null},OYF=function(q){if(XC.readyState!="loading")CIk(q);
else{var w=Tgc(),u="";w!==null&&(u=' nonce="'+w+'"');q="<"+iYk+' src="'+encodeURI(q)+'"'+u+"></"+iYk+">";XC.write(d1T?d1T.createHTML(q):q)}},CIk=function(q){var w=XC.createElement(iYk);
w.setAttribute("src",d1T?d1T.createScriptURL(q):q);q=Tgc();q!==null&&w.setAttribute("nonce",q);w.async="true";(q=XC.getElementsByTagName(iYk)[0])?q.parentNode.insertBefore(w,q):(XC.head||XC.body||XC.documentElement).appendChild(w)},ViG=function(q,w,u){osc(function(){var y=w===jrT()?FC(nd,"_",GI()):GI();
y=FC(LN6(w),"_",y);q(y)},u)},P5c=function(q,w){var u=w||{};
typeof w=="function"&&(u={},u.callback=w);var y=(w=u)&&w._c;if(y)for(var e=0;e<eVr.length;e++){var t=eVr[e][0],X=eVr[e][1];X&&Object.prototype.hasOwnProperty.call(y,t)&&X(y[t],q,w)}w=[];q?w=q.split(":"):u.features&&(w=u.features);if(!(q=u.h)&&(q=jrT(),!q))throw Error("Za");fHG(w||[],u,q)},fHG=function(q,w,u){q=hqa(q)||[];
var y=w.callback,e=w.config,t=w.timeout,X=w.ontimeout,G=w.onerror,n=void 0;typeof G=="function"&&(n=G);var N=null,Q=!1;if(t&&!X||!t&&X)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";G=FC(LN6(u),"r",[]).sort();var I=FC(LN6(u),"L",[]).sort(),U=Hz.le||[],d=[].concat(G),V=function(l,S){if(Q)return 0;Pz.clearTimeout(N);I.push.apply(I,J);var eH=((nd||{}).config||{}).update;eH?eH(e):e&&FC(Hz,"cu",[]).push(e);if(S){u3P("me0",l,d);try{ViG(S,u,n)}finally{u3P("me1",l,d)}}return 1};
t>0&&(N=Pz.setTimeout(function(){Q=!0;X()},t));
var J=U1T(q,I);if(J.length){J=U1T(q,G);var a=FC(Hz,"CP",[]),b=a.length;a[b]=function(l){if(!l)return 0;u3P("ml1",J,d);var S=function(x){a[b]=null;V(J,l)&&lLa(function(){y&&y();x()})},eH=function(){var x=a[b+1];
x&&x()};
b>0&&a[b-1]?a[b]=function(){S(eH)}:S(eH)};
if(J.length){var g="loaded_"+Hz.I++;nd[g]=function(l){a[b](l);nd[g]=null};
q=W2X(u,J,"gapi."+g,G,U);G.push.apply(G,J);u3P("ml0",J,d);w.sync||Pz.___gapisync?OYF(q):CIk(q)}else a[b](cwk)}else V(J)&&y&&y()},m1r;
var A1Z=null,J1k=_.uc.trustedTypes;if(J1k&&J1k.createPolicy){try{A1Z=J1k.createPolicy("goog#gapi",{createHTML:Kqj,createScript:Kqj,createScriptURL:Kqj})}catch(q){_.uc.console&&_.uc.console.error(q.message)}m1r=A1Z}else m1r=A1Z;var d1T=m1r,osc=function(q,w){if(Hz.hee&&Hz.hel>0)try{return q()}catch(u){w&&w(u),Hz.hel--,P5c("debug_error",function(){try{window.___jsl.hefn(u)}catch(y){throw u;}})}else try{return q()}catch(u){throw w&&w(u),u;
}},zVT=nd.load;
zVT&&FC(Hz,"ol",[]).push(zVT);nd.load=function(q,w){return osc(function(){return P5c(q,w)})};var z9;var aHr=function(q,w){this.serviceId_=q;this.moduleId_=w||null};
aHr.prototype.toString=function(){return this.serviceId_};
aHr.prototype.getModuleId=function(){return this.moduleId_};var Kgc=new aHr("MpJwZc","MpJwZc");var x5j=new _.Gx("a"),Bs7=function(q,w,u){_.nM.call(this,q,w);this.node=w;this.kind=u};
_.O(Bs7,_.nM);var D1$=function(){this.JSC$7959_keys_={};this.urlPrefix_="";this.JSC$7959_queryData_={}};
D1$.prototype.toString=function(){var q=this.urlPrefix_+ZY6(this),w=_.i4(this.JSC$7959_queryData_),u="";w!=""&&(u="?"+w);return q+u};
var p2F=function(q){q=NH(q,"md");return!!q&&q!=="0"},ZY6=function(q){var w=[],u=(0,_.fY)(function(y){this.JSC$7959_keys_[y]!==void 0&&w.push(y+"="+this.JSC$7959_keys_[y])},q);
p2F(q)?(u("md"),u("k"),u("ck"),u("am"),u("rs"),u("gssmodulesetproto"),u("slk"),u("dti")):(u("sdch"),u("k"),u("ck"),u("am"),u("rt"),"d"in q.JSC$7959_keys_||Qr(q,"d","0"),u("d"),u("exm"),u("excm"),(q.JSC$7959_keys_.excm||q.JSC$7959_keys_.exm)&&w.push("ed=1"),u("im"),u("dg"),u("sm"),NH(q,"br")!="1"&&NH(q,"br")!="0"||u("br"),u("br-d"),NH(q,"rb")=="1"&&u("rb"),NH(q,"zs")!=="0"&&u("zs"),$16(q)!==""&&u("wt"),u("gssmodulesetproto"),u("ujg"),u("sp"),u("rs"),u("cb"),u("ee"),u("slk"),u("dti"),u("m"));return w.join("/")},
NH=function(q,w){return q.JSC$7959_keys_[w]?q.JSC$7959_keys_[w]:null},Qr=function(q,w,u){u?q.JSC$7959_keys_[w]=u:delete q.JSC$7959_keys_[w]},vsF=function(q,w){q.urlPrefix_=w},bYx=function(q,w){w&&w.length>0?(w.sort(),Qr(q,"exm",w.join(","))):Qr(q,"exm",null)},YNk=function(q,w){w&&w.length>0?(w.sort(),Qr(q,"excm",w.join(","))):Qr(q,"excm",null)},gsj=function(q){return(q=NH(q,"m"))?q.split(","):[]},$16=function(q){switch(NH(q,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},Esk=function(q,w){var u=Object.keys(w).filter(function(y){return!!Object.keys(w[y]).length}).map(function(y){var e=Object.keys(w[y]);
e.length>1&&e.sort();return y+":"+e.join(",")});
u.sort();Qr(q,"ee",u.join(";"))},RCH=function(q){var w=NH(q,"ee");
if(!w)return{};q={};w=_.P(w.split(";"));for(var u=w.next();!u.done;u=w.next()){var y=_.P(u.value.split(":"));u=y.next().value;y=y.next().value;q[u]={};y=_.P(y.split(","));for(var e=y.next();!e.done;e=y.next())q[u][e.value]=!0}return q},RVj=function(q){delete q.JSC$7959_keys_.m;
delete q.JSC$7959_keys_.exm;delete q.JSC$7959_keys_.ed};
D1$.prototype.clone=function(){if(Ipo){var q=new D1$;q.JSC$7959_keys_=Object.assign({},this.JSC$7959_keys_);q.urlPrefix_=this.urlPrefix_;q.JSC$7959_queryData_=Object.assign({},this.JSC$7959_queryData_);return q}return P1(this.toString())};
var P1=function(q,w){w=w===void 0?!0:w;var u=c16(q),y=new D1$,e=_.qu(u)[5];_.db.forEach(SNP,function(X){var G=e.match("/"+X+"=([^/]+)");G&&Qr(y,X,G[1])});
var t="";t=q.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";vsF(y,q.substr(0,q.indexOf(t)+t.length));if(!w)return y;(q=_.qu(u)[6]||null)&&Ack(q,function(X,G){y.JSC$7959_queryData_[X]=G});
return y},Ytj=function(q){q=_.QV(c16(q));
return q===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(q)?/\/k=/.test(q):!1},c16=function(q){return q.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?q.substr(65):q},SNP={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"},hV6=RegExp("^loaded_(g|h)?[_\\d]+$");_.Iq=function(q){this.JSC$7971_id_=q;this.opts={}};
_.Iq.prototype.JSC$7973_setLabel=function(q){this.label_=q||void 0;return this};
_.Iq.prototype.addUploadMetadata=function(q,w){var u=this.opts.data||{};u[q]=w;this.opts.data=u;return this};
var j3x=function(q){var w=_.db.filter(q.opts,function(u){return u!==null});
w=_.db.isEmpty(w)?null:w;q=[q.JSC$7971_id_,q.label_,w];w=i7o(q);return q=q.slice(0,w+1)};
_.Iq.prototype.toString=function(){var q=j3x(this);return"("+_.or(q,function(w){return JSON.stringify(w)}).join(",")+")"};
_.Iq.prototype.getId=function(){return this.JSC$7971_id_};
_.Iq.prototype.getOptions=function(){return _.db.clone(this.opts)};var i5=function(){_.Iq.call(this,"image-search")};
_.O(i5,_.Iq);i5.prototype.setSize=function(q){this.opts.imgsz=q;return this};
i5.prototype.JSC$7973_setLabel=function(q){_.Iq.prototype.JSC$7973_setLabel.call(this,q);return this};
i5.prototype.addUploadMetadata=function(q,w){_.Iq.prototype.addUploadMetadata.call(this,q,w);return this};var ra=function(){_.Iq.call(this,"maps")};
_.O(ra,_.Iq);ra.prototype.setZoom=function(q){this.opts.zoom=q;return this};
ra.prototype.JSC$7973_setLabel=function(q){_.Iq.prototype.JSC$7973_setLabel.call(this,q);return this};
ra.prototype.addUploadMetadata=function(q,w){_.Iq.prototype.addUploadMetadata.call(this,q,w);return this};_.Uc=function(){_.Iq.call(this,"photos")};
_.O(_.Uc,_.Iq);_.Uc.prototype.JSC$7973_setLabel=function(q){_.Iq.prototype.JSC$7973_setLabel.call(this,q);return this};
_.Uc.prototype.addUploadMetadata=function(q,w){_.Iq.prototype.addUploadMetadata.call(this,q,w);return this};var TI=function(){_.Iq.call(this,"url")};
_.O(TI,_.Iq);var lHa=function(){var q=new TI;q.opts.type="video";q.opts.site="youtube.com";return q};
TI.prototype.JSC$7973_setLabel=function(q){_.Iq.prototype.JSC$7973_setLabel.call(this,q);return this};
TI.prototype.addUploadMetadata=function(q,w){_.Iq.prototype.addUploadMetadata.call(this,q,w);return this};var Cd=function(){_.Iq.call(this,"video-search")};
_.O(Cd,_.Iq);var L23=function(){var q=new Cd;q.opts.site="youtube.com";return q};
Cd.prototype.JSC$7973_setLabel=function(q){_.Iq.prototype.JSC$7973_setLabel.call(this,q);return this};
Cd.prototype.addUploadMetadata=function(q,w){_.Iq.prototype.addUploadMetadata.call(this,q,w);return this};var MiT=function(){_.Iq.call(this,"web")};
_.O(MiT,_.Iq);MiT.prototype.JSC$7973_setLabel=function(q){_.Iq.prototype.JSC$7973_setLabel.call(this,q);return this};
MiT.prototype.addUploadMetadata=function(q,w){_.Iq.prototype.addUploadMetadata.call(this,q,w);return this};var da=function(){this.items_=[];this.opts={}},K2r=function(q){switch(q){case "image-search":return new i5;
case "maps":return new ra;case "photos":return new _.Uc;case "url":return new TI;case "video-search":return new Cd;case "web":return new MiT}return new _.Iq(q)};
da.prototype.addView=function(q){this.items_.push(typeof q==="string"?K2r(q):q);return this};
var Bgx=function(q){return"("+_.or(q.items_,function(w){return w.toString()}).join(",")+")"};
da.prototype.toString=function(){return Bgx(this)};
da.prototype.getViews=function(q,w){w=w===void 0?[]:w;for(var u=this.items_,y=0;y<u.length;y++){var e=u[y];e instanceof da?e.getViews(q,w):e.getId()==q&&w.push(e)}return w};
da.prototype.getOptions=function(){return _.db.clone(this.opts)};var Ys=function(q){this.basePickerUrl_=q||"https://docs.google.com/picker";this.nav_=new da};
Ys.prototype.nav_=null;Ys.prototype.addView=function(q){this.nav_.addView(q);return this};
Ys.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Ys.prototype.getViews=function(q){return this.nav_.getViews(q)};
_.x1r=function(q,w){q.callback_=w;return q};var qZ$=new Map;qZ$.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");qZ$.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");qZ$.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var w1j=new Set;w1j.add("application/vnd.google-apps.kix");w1j.add("application/vnd.google-apps.ritz");w1j.add("application/vnd.google-apps.punch");var Wb3=function(q,w,u){var y=u&&_.fy(u,1);u=uZG(u);var e=q[0].getId();switch(_.mw(e,2)){case 13:return yX3(q,w,y,u);case 3:return ePT(q,w,y,u);case 10:return kZF(q,w,y,u);case 27:return kZF(q,w,y,u);case 12:return t7j(q,w);case 2:return PO$(q,w,y,u);case 5:return X1T(q,w,y,u);case 9:return FbG(q,w,y,u);case 6:return GZP(q,w,y,u);case 25:return nCX(q,w,y,u);case 1:return _.NG(q[0],SXX,26)?HDa(q,w,y,u):kZF(q,w,y,u);default:return{}}},GZP=function(q,w,u,y){q=q.map(function(e){return{id:e.getId().getId(),
serviceId:"youtube",name:e.getName(),description:_.fy(e,3),type:Oc(e),lastEditedUtc:_.cck(_.PT(e,_.vy,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:_.fy(e,13),thumbnails:oq(l6(e))}});
return{action:w,docs:q,viewToken:y,view:u||"youtube",v2Translated:!0}},PO$=function(q,w,u,y){var e=q.map(function(t){var X=t.getId().getId(),G=_.fy(t,7),n=t.getName(),N=Oc(t),Q=_.cck(_.PT(t,_.vy,12)).getTime(),I=t.getUrl(),U=Number(F1s(t)),d=_.fy(t,3),V=_.fy(t,11),J=oq(l6(t));
var a=_.PT(t,LO,21);a=_.OL(a,1);var b=_.PT(t,LO,21);b=_.fy(b,10);var g=_.fy(t,13);var l=_.PT(t,LO,21);l=_.OL(l,9);var S=_.PT(t,LO,21);S=_.fy(S,11);X={id:X,serviceId:"docs",mimeType:G,name:n,type:N,lastEditedUtc:Q,url:I,sizeBytes:U,description:d,iconUrl:V,thumbnails:J,isShared:a,downloadUrl:b,embedUrl:g,copyable:l,resourceKey:S};G=_.PT(t,LO,21);_.OL(G,12)&&(X.uploadState="success",X.isNew=!0);G=_.PT(t,LO,21);_.NG(G,SK,3)&&(t=_.PT(t,LO,21),t=_.PT(t,SK,3),_.NG(t,RJ,2)&&(G=$s(t.getDuration().getSeconds()),
n=t.getDuration(),n=_.yG(n,2),X.duration=G+n/1E9),X.aspectRatio=t.getAspectRatio());return X});
return{action:w,docs:e,viewToken:y,view:u||"all",extraUserInputs:sRr(q),v2Translated:!0}},X1T=function(q,w,u,y){q=q.map(function(e){var t=_.PT(e,qA$,15);
t=_.PT(t,cU,1);Cn(e,10,cU,t);return{id:e.getId().getId(),serviceId:"web",mimeType:_.fy(e,7),name:e.getName(),type:Oc(e),url:e.getUrl(),description:_.fy(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:oq(l6(e))}});
return{action:w,docs:q,viewToken:y,view:u||"image-search",v2Translated:!0}},FbG=function(q,w,u,y){q=q.map(function(e){return{serviceId:"url",
name:l6(e)[0].getUrl().split("/").pop(),type:Oc(e),mimeType:_.fy(e,7),url:e.getUrl(),description:_.fy(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:oq(l6(e))}});
return{action:w,docs:q,viewToken:y,view:u||"url",v2Translated:!0}},HDa=function(q,w,u,y){q=q.map(function(e){return{id:e.getId().getId(),
serviceId:"picasa",name:e.getName(),type:Oc(e),description:_.fy(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:oq(l6(e))}});
return{action:w,docs:q,viewToken:y,view:u||"webcam",v2Translated:!0}},kZF=function(q,w,u,y){return{action:w,
docs:q.map(N4a),viewToken:y,view:QR3(u||"upload",q),extraUserInputs:sRr(q),v2Translated:!0}},QR3=function(q,w){return w.some(function(u){var y;
return((y=_.PT(u,ht,30))==null?void 0:_.mw(y,3))===9})?q+"/gmailphotos":q},ePT=function(q,w,u,y){var e=q.map(function(t){var X={id:t.getId().getId(),
serviceId:"picasa",mimeType:_.fy(t,7),name:t.getName(),type:Oc(t),lastEditedUtc:_.cck(_.PT(t,_.vy,12)).getTime(),url:t.getUrl(),sizeBytes:Number(F1s(t)),description:_.fy(t,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:oq(l6(t)),mediaKey:t.getId().getId(),parentId:_.fy(t,4)},G,n=(G=_.PT(t,lZc,18))==null?void 0:_.PT(G,j6P,3);n&&(X.latitude=VN(n,1),X.longitude=VN(n,2));var N;t=(N=_.PT(t,lZc,18))==null?void 0:oG(N,6);N=t!=null?$s(t):void 0;N&&(X.version=
N);return X});
return{action:w,docs:e,viewToken:y,view:u||"photos",extraUserInputs:sRr(q),v2Translated:!0}},yX3=function(q,w,u,y){q=q.map(function(e){return{id:e.getId().getId(),
serviceId:"et",name:l6(e)[0].getUrl().split("/").pop(),description:_.fy(e,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:oq(l6(e),"etjpg")}});
return{action:w,docs:q,viewToken:y,view:u||"et",v2Translated:!0}},nCX=function(q,w,u,y){q=q.map(function(e){var t=e.getId().getId(),X=y["2"];
return{id:t,serviceId:X.type!=="gmail_themes"&&X.parent==="6226252643674576769"?"picasa":"static_themes",name:e.getName(),mimeType:_.fy(e,7),type:Oc(e),description:_.fy(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:e.getUrl(),thumbnails:oq(l6(e))}});
return{action:w,docs:q,viewToken:y,view:u||"photos",v2Translated:!0}},t7j=function(q,w){q=q.map(function(u){var y=_.PT(u,h3F,27);
y=_.T_(y,1,_.Y6,_.uI())[0];return{id:u.getId().getId(),serviceId:"contacts",mimeType:_.fy(u,7),name:u.getName(),description:_.fy(u,3),url:"mailto:"+y,thumbnail:[{url:_.fy(u,11)}],email:y}});
return{action:w,docs:q,view:"contacts",v2Translated:!0}},uZG=function(q){if(!q)return{};
var w=_.fy(q,3);w=w&&JSON.parse(w)||{};return{0:_.fy(q,1),1:_.fy(q,2),2:w}},oq=function(q,w){w=w===void 0?"":w;
if(!q.length)return null;w=="etjpg"&&(q=q.filter(function(u){return u.getUrl().includes("w1200-h300")}));
return q.map(function(u){return{url:u.getUrl(),height:u.getHeight(),width:u.getWidth(),type:w}})},sRr=function(q){return{isAttachment:q.some(function(w){return _.OL(w,31)})}},N4a=function(q){var w,u={id:(w=q.getId())==null?void 0:w.getId(),
serviceId:IGX(q),mimeType:_.fy(q,7),name:q.getName(),type:Oc(q),sizeBytes:Number(F1s(q)),description:_.fy(q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:oq(l6(q)),isNew:!0};if(w=_.PT(q,ht,30)){u.dataUrl=_.fy(w,1)||null;a:{var y=_.PT(q,ht,30);switch(_.mw(y,3)){case 9:y=_.zs(y,Bxr,2,jK);y={remoteRefs:y&&_.fy(y,1)};break a;case 10:case 15:y=_.zs(y,KjT,4,jK);var e=l6(q);y={photo_id:y&&_.fy(y,1),media_key:q.getId().getId(),media_type:_.mw(q,6)===1?1:2,image_url:e&&
e[0].getUrl(),width:e&&String(e[0].getWidth()),height:e&&String(e[0].getHeight())};break a}y=null}u.uploadMetadata=y;u.uploadId=_.fy(w,9)||null;u.uploadState=iDj(w)||null}(y=w&&_.zs(w,KjT,4,jK))&&(u.id=_.fy(y,1));(y=w&&_.zs(w,xTx,5,jK))&&(u.contentId=_.fy(y,1));(y=w&&_.zs(w,Ljr,7,jK))&&(u.contentId=_.fy(y,1));(y=w&&_.zs(w,MrT,6,jK))&&(u.contentId=_.fy(y,1));(w==null?void 0:_.mw(w,3))===1&&(u.mediaKey=q.getId().getId());return u},IGX=function(q){var w;
switch(((w=_.PT(q,ht,30))==null?void 0:_.mw(w,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},Oc=function(q){switch(_.mw(q,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 _.fy(q,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},iDj=function(q){switch(q==null?void 0:_.mw(q,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 COF,rX6,U$r,T4T;_.Vr=function(q,w){var u=w||{};w=u.document||document;var y=_.G2(q).toString(),e=(new rP(w)).createElement("SCRIPT"),t={script_:e,timeout_:void 0},X=new Yr(rX6,t),G=null,n=u.timeout!=null?u.timeout:5E3;n>0&&(G=window.setTimeout(function(){U$r(e,!0);X.errback(new T4T(1,"Timeout reached for loading script "+y))},n),t.timeout_=G);
e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(U$r(e,u.cleanupWhenDone||!1,G),X.callback(null))};
e.onerror=function(){U$r(e,!0,G);X.errback(new T4T(0,"Error while loading script "+y))};
t=u.attributes||{};_.db.extend(t,{type:"text/javascript",charset:"UTF-8"});$MG(e,t);_.bZ(e,q);COF(w).appendChild(e);return X};
COF=function(q){var w=T9("HEAD",q);return w&&w.length!==0?w[0]:q.documentElement};
rX6=function(){if(this&&this.script_){var q=this.script_;q&&q.tagName=="SCRIPT"&&U$r(q,!0,this.timeout_)}};
U$r=function(q,w,u){u!=null&&_.uc.clearTimeout(u);q.onload=function(){};
q.onerror=function(){};
q.onreadystatechange=function(){};
w&&window.setTimeout(function(){_.UN(q)},0)};
T4T=function(q,w){var u="Jsloader error (code #"+q+")";w&&(u+=": "+w);_.qM.call(this,u);this.code=q};
_.w9(T4T,_.qM);var d$j=_.Sc(["https://apis.google.com/js/api.js"]),ODP=_.qK(d$j),m$j=function(q,w){var u=!1,y=oCT(q,w).then(function(t){u=!0;return t}),e=_.wsc(5E3).then(function(){return u?oCT(q,w):V7j(w).then(function(t){return fGj(t,q)})});
return RXx([y,e])},oCT=function(q,w){return AXP(w).then(function(u){return fGj(u,q)})},fGj=function(q,w){var u=_.tz(w,"gapi.")?w.slice(5):w;
return q[u]?_.Hw(q[u]):new _.IA(function(y,e){var t=Tx(function(){e(Error("bb"))},3E4);
q.load(w,{callback:function(){_.uc.clearTimeout(t);y(q[u])},
onerror:function(X){_.uc.clearTimeout(t);e(X)}})})},AXP=function(q){return q.gapi&&q.gapi.load?_.Hw(q.gapi):V7j(q)},V7j=function(q){return _.Vr(ODP,{document:q.document}).then(function(){return q.gapi})},JXj=function(){};
JXj.prototype.load=function(q,w){w=w===void 0?window:w;var u=Date.now();return m$j(q,w).then(function(y){var e=Date.now();return{library:y,loadStartMs:u,loadEndMs:e}},function(y){throw y instanceof Error?y:Error(String(y));
})};var nwj=function(){_.VG.call(this);this.gapiLoader_=new JXj;this.origin_=null;this.gapiPickerIframeResolver_=_.S6();this.gapiIframesResolver_=_.S6();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.O(nwj,_.VG);var zPr=function(q,w){var u=_.hP("gapi.iframes",w);return u?(q=Date.now(),_.Hw({library:u,loadStartMs:q,loadEndMs:q})):q.gapiLoader_.load("gapi.iframes",w)},aGZ=function(q,w,u,y,e,t){var X=!1;
X=X===void 0?!1:X;zPr(q,fg(w.ownerDocument)).then(function(G){var n=G.library;q.gapiIframesResolver_.resolve(n);G=q.gapiPickerIframeResolver_;var N=G.resolve,Q=X;Q=Q===void 0?!1:Q;var I={};I["host-message-handler"]=u;q.hostMessageHandlerInternal_=I;var U=_.h1(y);U=_.h1(U);U=_.LM(_.lh(_.jn(new _.M4,U.scheme_),U.JSC$7931_domain_),U.JSC$7931_port_).toString();q.origin_=U;U=(new Bba).setUrl(y);U.JSC$7946_obj_.where=w;U.JSC$7946_obj_.allowPost=Q;U.JSC$7946_obj_.messageHandlers=I;Q=_.hP("makeWhiteListIframesFilter",
n)([q.origin_]);U.JSC$7946_obj_.messageHandlersFilter=Q;e!=null&&U.setId(e);t!=null&&(U.JSC$7946_obj_.rpctoken=t);Q=KN$(U);Q.JSC$7943_obj_.style={display:"block","min-width":"100%",width:"1px"};Q.JSC$7943_obj_.height="100%";KN$(U).value().allow="camera 'src' "+q.origin_;n=n.getContext().openChild(U.value());N.call(G,n)},function(G){q.gapiIframesResolver_.reject(G);
q.gapiPickerIframeResolver_.reject(G)});
return q.gapiPickerIframeResolver_.promise},D$x=function(q,w){return _.rD([q.gapiIframesResolver_.promise,
q.gapiPickerIframeResolver_.promise]).then(function(u){var y=_.P(u);u=y.next().value;return(y=y.next().value)?y.send("picker-message-handler",w,void 0,_.hP("makeWhiteListIframesFilter",u)([q.origin_])):_.og(Error("cb"))})};
nwj.prototype.disposeInternal=function(){ZD3(this);_.VG.prototype.disposeInternal.call(this)};
var ZD3=function(q){q.gapiPickerIframeResolver_.promise.then(function(w){w&&(w.unregister("host-message-handler"),delete q.hostMessageHandlerInternal_["host-message-handler"])})};var p1T=function(){this.nextId=0};var vCj=function(q,w){switch(q.action){case "select-contacts":q=$$T(q.contacts);break;case "visibility":q=q.visible;var u=new KO;q=_.DS(u,1,7).setVisible(q);u={};u["iframe-command"]=q.serialize();q=u;break;default:q=null}return q?D$x(w,q):_.Hw()},$$T=function(q){if(!q||q.length==0)return null;
var w=new KO;_.DS(w,1,11);var u=new p1T;q.forEach(function(y){if(y.email){var e=new Cy;e=_.KV(e,2,y.name?y.name:y.email);var t=new h3F;y=_.PjH(t,1,_.vV,y.email,_.Y6);y=_.e9(e,27,y);e=y.setId;t=(new Eb).setId(":"+(u.nextId++).toString(36));t=_.DS(t,2,12);y=e.call(y,t)}else y=null;y&&Cn(w,7,Cy,y)});
q={};q["iframe-command"]=w.serialize();return q};_.bD6=function(){if(dgs){var q=/Windows NT ([0-9.]+)/;return(q=q.exec(_.QM()))?q[1]:"0"}return _.Cz4?(q=/1[0|1][_.][0-9_.]+/,(q=q.exec(_.QM()))?q[0].replace(/_/g,"."):"10"):l9M?(q=/Android\s+([^\);]+)(\)|;)/,(q=q.exec(_.QM()))?q[1]:""):oR7||VGl||fpz?(q=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(q=q.exec(_.QM()))?q[1].replace(/_/g,"."):""):""}();var fd;fd=function(q){return(q=q.exec(_.QM()))?q[1]:""};
_.YZZ=function(){if(_.F1)return fd(/Firefox\/([0-9.]+)/);if(_.kf||xF||rF7)return Zsj;if(_.Gs){if(_.Z6()||_.soy()){var q=fd(/CriOS\/([0-9.]+)/);if(q)return q}return fd(/Chrome\/([0-9.]+)/)}if(_.g$&&!_.Z6())return fd(/Version\/([0-9.]+)/);if(IBM||iNc){if(q=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.QM()))return q[1]+"."+q[2]}else if(YaH)return(q=fd(/Android\s+([0-9.]+)/))?q:fd(/Version\/([0-9.]+)/);return""}();var gCc=function(){};
_.xX(gCc);gCc.prototype.nextId_=0;_.mv=function(q){return":"+(q.nextId_++).toString(36)};var AY=function(q){_.Q4.call(this);this.JSC$8041_dom_=q||WX();this.JSC$8041_id_=null;this.inDocument_=!1;this.JSC$8041_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.w9(AY,_.Q4);AY.prototype.idGenerator_=gCc.getInstance();AY.prototype.getId=function(){return this.JSC$8041_id_||(this.JSC$8041_id_=_.mv(this.idGenerator_))};
AY.prototype.setId=function(q){this.parent_&&this.parent_.childIndex_&&(_.db.remove(this.parent_.childIndex_,this.JSC$8041_id_),_.db.add(this.parent_.childIndex_,q,this));this.JSC$8041_id_=q};
AY.prototype.getElement=function(){return this.JSC$8041_element_};
var JY=function(q){q.googUiComponentHandler_||(q.googUiComponentHandler_=new _.tp(q));return q.googUiComponentHandler_},ECP=function(q,w){if(q==w)throw Error("db");
var u;if(u=w&&q.parent_&&q.JSC$8041_id_){u=q.parent_;var y=q.JSC$8041_id_;u=u.childIndex_&&y?_.db.get(u.childIndex_,y)||null:null}if(u&&q.parent_!=w)throw Error("db");q.parent_=w;AY.superClass_.setParentEventTarget.call(q,w)};
AY.prototype.setParentEventTarget=function(q){if(this.parent_&&this.parent_!=q)throw Error("eb");AY.superClass_.setParentEventTarget.call(this,q)};
AY.prototype.JSC$8043_createDom=function(){this.JSC$8041_element_=this.JSC$8041_dom_.createElement("DIV")};
AY.prototype.render=function(q){RPc(this,q)};
var RPc=function(q,w,u){if(q.inDocument_)throw Error("fb");q.JSC$8041_element_||q.JSC$8043_createDom();w?w.insertBefore(q.JSC$8041_element_,u||null):q.JSC$8041_dom_.JSC$7229_document_.body.appendChild(q.JSC$8041_element_);q.parent_&&!q.parent_.inDocument_||q.enterDocument()};
_.k=AY.prototype;_.k.decorate=function(q){if(this.inDocument_)throw Error("fb");if(q&&this.canDecorate(q)){this.wasDecorated_=!0;var w=_.mN(q);this.JSC$8041_dom_&&this.JSC$8041_dom_.JSC$7229_document_==w||(this.JSC$8041_dom_=WX(q));this.decorateInternal(q);this.enterDocument()}else throw Error("gb");};
_.k.canDecorate=function(){return!0};
_.k.decorateInternal=function(q){this.JSC$8041_element_=q};
_.k.enterDocument=function(){this.inDocument_=!0;cX6(this,function(q){!q.inDocument_&&q.getElement()&&q.enterDocument()})};
_.k.exitDocument=function(){cX6(this,function(q){q.inDocument_&&q.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.k.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);cX6(this,function(q){q.dispose()});
!this.wasDecorated_&&this.JSC$8041_element_&&_.UN(this.JSC$8041_element_);this.parent_=this.model_=this.JSC$8041_element_=this.childIndex_=this.children_=null;AY.superClass_.disposeInternal.call(this)};
_.k.getModel=function(){return this.model_};
_.k.addChild=function(q,w){var u=this.children_?this.children_.length:0;if(q.inDocument_&&(w||!this.inDocument_))throw Error("fb");if(u<0||u>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);q.parent_==this?(_.db.set(this.childIndex_,q.getId(),q),_.MM(this.children_,q)):_.db.add(this.childIndex_,q.getId(),q);ECP(q,this);_.UMs(this.children_,u,0,q);q.inDocument_&&this.inDocument_&&q.parent_==this?(w=this.getContentElement(),
(w.childNodes[u]||null)!=q.getElement()&&(q.getElement().parentElement==w&&w.removeChild(q.getElement()),u=w.childNodes[u]||null,w.insertBefore(q.getElement(),u))):w?(this.JSC$8041_element_||this.JSC$8043_createDom(),u=this.children_?this.children_[u+1]||null:null,RPc(q,this.getContentElement(),u?u.JSC$8041_element_:null)):this.inDocument_&&!q.inDocument_&&q.JSC$8041_element_&&q.JSC$8041_element_.parentNode&&q.JSC$8041_element_.parentNode.nodeType==1&&q.enterDocument()};
_.k.getContentElement=function(){return this.JSC$8041_element_};
var cX6=function(q,w){q.children_&&q.children_.forEach(w,void 0)};
AY.prototype.removeChild=function(q,w){if(q){var u=typeof q==="string"?q:q.getId();q=this.childIndex_&&u?_.db.get(this.childIndex_,u)||null:null;u&&q&&(_.db.remove(this.childIndex_,u),_.MM(this.children_,q),w&&(q.exitDocument(),q.JSC$8041_element_&&_.UN(q.JSC$8041_element_)),ECP(q,null))}if(!q)throw Error("ib");return q};_.w9(ud4,v2);_.w9(yPM,v2);var SZX;var hPF=function(q,w){w?q.setAttribute("role",w):q.removeAttribute("role")},zI=function(q,w,u){Array.isArray(u)&&(u=u.join(" "));
var y="aria-"+w;u===""||u==void 0?(SZX||(u={},SZX=(u.atomic=!1,u.autocomplete="none",u.dropeffect="none",u.haspopup=!1,u.live="off",u.multiline=!1,u.multiselectable=!1,u.orientation="vertical",u.readonly=!1,u.relevant="additions text",u.required=!1,u.sort="none",u.busy=!1,u.disabled=!1,u.hidden=!1,u.invalid="false",u)),u=SZX,w in u?q.setAttribute(y,u[w]):q.removeAttribute(y)):q.setAttribute(y,u)};var jRk;_.aq=function(q,w,u){_.Q4.call(this);this.target=q;this.handle=w||q;this.limits=u||new Jt(NaN,NaN,NaN,NaN);this.JSC$8046_document_=_.mN(q);this.JSC$8046_eventHandler_=new _.tp(this);_.sN(this,this.JSC$8046_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;_.dL(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=jRk};
_.w9(_.aq,_.Q4);jRk=_.uc.document&&_.uc.document.documentElement&&!!_.uc.document.documentElement.setCapture&&!!_.uc.document.releaseCapture;_.lGX=function(q,w){q.hysteresisDistanceSquared_=Math.pow(w,2)};
_.k=_.aq.prototype;_.k.setEnabled=function(q){this.enabled_=q};
_.k.disposeInternal=function(){_.aq.superClass_.disposeInternal.call(this);_.NF(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8046_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8046_document_.releaseCapture();this.handle=this.target=null};
_.k.startDrag=function(q){var w=q.type=="mousedown";if(!this.enabled_||this.dragging_||w&&(q.event_.button!=0||_.Cz4&&q.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new DQ("start",this,q.clientX,q.clientY,q)))this.dragging_=!0,w&&q.preventDefault();else return;else w&&q.preventDefault();w=this.JSC$8046_document_;var u=w.documentElement,y=!this.useSetCapture_;this.JSC$8046_eventHandler_.listen(w,["touchmove","mousemove"],this.handleMove_,
{capture:y,passive:!1});this.JSC$8046_eventHandler_.listen(w,["touchend","mouseup"],this.endDrag,y);this.useSetCapture_?(u.setCapture(!1),this.JSC$8046_eventHandler_.listen(u,"losecapture",this.endDrag)):this.JSC$8046_eventHandler_.listen(fg(w),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8046_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,y);this.clientX=this.startX=q.clientX;this.clientY=this.startY=q.clientY;this.screenX=q.screenX;this.screenY=q.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=HX(WX(this.JSC$8046_document_))}};
_.k.endDrag=function(q,w){this.JSC$8046_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8046_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new DQ("end",this,q.clientX,q.clientY,q,LbX(this,this.deltaX),M7$(this,this.deltaY),w||q.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.k.handleMove_=function(q){if(this.enabled_){var w=q.clientX-this.clientX,u=q.clientY-this.clientY;this.clientX=q.clientX;this.clientY=q.clientY;this.screenX=q.screenX;this.screenY=q.screenY;if(!this.dragging_){var y=this.startX-this.clientX,e=this.startY-this.clientY;if(y*y+e*e>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new DQ("start",this,q.clientX,q.clientY,q)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(q);return}}u=KbX(this,w,u);w=u.x;u=u.y;this.dragging_&&this.dispatchEvent(new DQ("beforedrag",
this,q.clientX,q.clientY,q,w,u))&&(B4r(this,q,w,u),q.preventDefault())}};
var KbX=function(q,w,u){var y=HX(WX(q.JSC$8046_document_));w+=y.x-q.pageScroll.x;u+=y.y-q.pageScroll.y;q.pageScroll=y;q.deltaX+=w;q.deltaY+=u;return new _.Vx(LbX(q,q.deltaX),M7$(q,q.deltaY))};
_.aq.prototype.onScroll_=function(q){var w=KbX(this,0,0);q.clientX=this.clientX;q.clientY=this.clientY;B4r(this,q,w.x,w.y)};
var B4r=function(q,w,u,y){q.target.style.left=u+"px";q.target.style.top=y+"px";q.dispatchEvent(new DQ("drag",q,w.clientX,w.clientY,w,u,y))},LbX=function(q,w){var u=q.limits;
q=isNaN(u.left)?null:u.left;u=isNaN(u.width)?0:u.width;return Math.min(q!=null?q+u:Infinity,Math.max(q!=null?q:-Infinity,w))},M7$=function(q,w){var u=q.limits;
q=isNaN(u.top)?null:u.top;u=isNaN(u.height)?0:u.height;return Math.min(q!=null?q+u:Infinity,Math.max(q!=null?q:-Infinity,w))};
_.aq.prototype.isDragging=function(){return this.dragging_};
var DQ=function(q,w,u,y,e,t,X){_.nM.call(this,q);this.clientX=u;this.clientY=y;this.browserEvent=e;this.left=t!==void 0?t:w.deltaX;this.top=X!==void 0?X:w.deltaY};
_.w9(DQ,_.nM);var ZQ=function(q){this.JSC$8053_map_=new Map;var w=arguments.length;if(w>1){if(w%2)throw Error("oa");for(var u=0;u<w;u+=2)this.set(arguments[u],arguments[u+1])}else q&&this.addAll(q)};
_.k=ZQ.prototype;_.k.getCount=function(){return this.JSC$8053_map_.size};
_.k.getValues=function(){return Array.from(this.JSC$8053_map_.values())};
_.k.getKeys=function(){return Array.from(this.JSC$8053_map_.keys())};
_.k.containsKey=function(q){return this.JSC$8053_map_.has(q)};
_.k.containsValue=function(q){return this.getValues().some(function(w){return w==q})};
_.k.equals=function(q,w){var u=this;w=w===void 0?function(y,e){return y===e}:w;
return this===q?!0:this.JSC$8053_map_.size!=q.getCount()?!1:this.getKeys().every(function(y){return w(u.JSC$8053_map_.get(y),q.get(y))})};
_.k.isEmpty=function(){return this.JSC$8053_map_.size==0};
_.k.clear=function(){this.JSC$8053_map_.clear()};
_.k.remove=function(q){return this.JSC$8053_map_.delete(q)};
_.k.get=function(q,w){return this.JSC$8053_map_.has(q)?this.JSC$8053_map_.get(q):w};
_.k.set=function(q,w){this.JSC$8053_map_.set(q,w);return this};
_.k.addAll=function(q){if(q instanceof ZQ){q=_.P(q.JSC$8053_map_);for(var w=q.next();!w.done;w=q.next()){var u=_.P(w.value);w=u.next().value;u=u.next().value;this.JSC$8053_map_.set(w,u)}}else if(q)for(q=_.P(Object.entries(q)),w=q.next();!w.done;w=q.next())u=_.P(w.value),w=u.next().value,u=u.next().value,this.JSC$8053_map_.set(w,u)};
_.k.forEach=function(q,w){var u=this;w=w===void 0?this:w;this.JSC$8053_map_.forEach(function(y,e){return q.call(w,y,e,u)})};
_.k.clone=function(){return new ZQ(this)};(function(){for(var q=["ms","moz","webkit","o"],w,u=0;w=q[u]&&!_.uc.requestAnimationFrame;++u)_.uc.requestAnimationFrame=_.uc[w+"RequestAnimationFrame"],_.uc.cancelAnimationFrame=_.uc[w+"CancelAnimationFrame"]||_.uc[w+"CancelRequestAnimationFrame"];if(!_.uc.requestAnimationFrame){var y=0;_.uc.requestAnimationFrame=function(e){var t=(new Date).getTime(),X=Math.max(0,16-(t-y));y=t+X;return _.uc.setTimeout(function(){e(t+X)},X)};
_.uc.cancelAnimationFrame||(_.uc.cancelAnimationFrame=function(e){clearTimeout(e)})}})();
var x$k=[[],[]],qtG=0,wl3=!1,udk=0,eCr=function(q,w){var u=udk++,y={measureTask:{id:u,fn:q.measure,context:w},mutateTask:{id:u,fn:q.mutate,context:w},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(y.args||(y.args=[]),y.args.length=0,y.args.push.apply(y.args,arguments),y.args.push(y.state)):y.args&&y.args.length!=0?(y.args[0]=y.state,y.args.length=1):y.args=[y.state];y.isScheduled||(y.isScheduled=!0,x$k[qtG].push(y));wl3||(wl3=!0,window.requestAnimationFrame(yPF))}},yPF=
function(){wl3=!1;
var q=x$k[qtG],w=q.length;qtG=(qtG+1)%2;for(var u,y=0;y<w;++y){u=q[y];var e=u.measureTask;u.isScheduled=!1;e.fn&&e.fn.apply(e.context,u.args)}for(y=0;y<w;++y)u=q[y],e=u.mutateTask,u.isScheduled=!1,e.fn&&e.fn.apply(e.context,u.args),u.state={};q.length=0};var kSF=_.Sc(["about:blank"]),tZ3=_.Sc(["javascript:undefined"]),Poa=_.qK(kSF);_.G2(Poa);var XlX=_.qK(tZ3);_.G2(XlX);var pd=function(q){_.Q4.call(this);this.JSC$8059_element_=q;this.listenKeyIn_=_.dL(this.JSC$8059_element_,"focus",this,!0);this.listenKeyOut_=_.dL(this.JSC$8059_element_,"blur",this,!0)};
_.w9(pd,_.Q4);pd.prototype.handleEvent=function(q){var w=new _.HJ(q.event_);w.type=q.type=="focusin"||q.type=="focus"?"focusin":"focusout";this.dispatchEvent(w)};
pd.prototype.disposeInternal=function(){pd.superClass_.disposeInternal.call(this);UO(this.listenKeyIn_);UO(this.listenKeyOut_);delete this.JSC$8059_element_};var FLr=function(q,w){this.JSC$8062_element_=q;this.JSC$8062_dom_=w};var $Q=function(q,w){AY.call(this,w);this.useIframeMask_=!!q;this.lastFocus_=null;this.resizeBackgroundTask_=eCr({mutate:this.resizeBackground_},this);eCr({mutate:this.updateModalAndBackground_},this)};
_.w9($Q,AY);_.k=$Q.prototype;_.k.focusHandler_=null;_.k.visible_=!1;_.k.bgEl_=null;_.k.bgIframeEl_=null;_.k.tabCatcherElement_=null;_.k.backwardTabWrapInProgress_=!1;_.k.getCssClass=function(){return"goog-modalpopup"};
_.k.getBackgroundElement=function(){return this.bgEl_};
_.k.JSC$8043_createDom=function(){$Q.superClass_.JSC$8043_createDom.call(this);var q=this.getElement(),w=ss(this.getCssClass()).split(" ");vJ(q,w);q.tabIndex=0;_.M1(q,!1);GSX(this);nwx(this)};
var GSX=function(q){if(q.useIframeMask_&&!q.bgIframeEl_){var w=q.JSC$8041_dom_.JSC$7231_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.Ja(w,Poa);q.bgIframeEl_=w;q.bgIframeEl_.className=q.getCssClass()+"-bg";_.M1(q.bgIframeEl_,!1);H$a(q.bgIframeEl_,0)}q.bgEl_||(q.bgEl_=q.JSC$8041_dom_.JSC$7231_createDom("DIV",q.getCssClass()+"-bg"),_.M1(q.bgEl_,!1))},nwx=function(q){q.tabCatcherElement_||(q.tabCatcherElement_=q.JSC$8041_dom_.createElement("SPAN"),_.M1(q.tabCatcherElement_,
!1),q.tabCatcherElement_.tabIndex=0,q.tabCatcherElement_.style.position="absolute")};
_.k=$Q.prototype;_.k.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.k.canDecorate=function(q){return!!q&&q.tagName=="DIV"};
_.k.decorateInternal=function(q){$Q.superClass_.decorateInternal.call(this,q);q=ss(this.getCssClass()).split(" ");vJ(this.getElement(),q);GSX(this);nwx(this);this.getElement().tabIndex=0;_.M1(this.getElement(),!1)};
_.k.enterDocument=function(){this.bgIframeEl_&&_.Vs(this.bgIframeEl_,this.getElement());_.Vs(this.bgEl_,this.getElement());$Q.superClass_.enterDocument.call(this);_.fO(this.tabCatcherElement_,this.getElement());this.focusHandler_=new pd(this.JSC$8041_dom_.JSC$7229_document_);JY(this).listen(this.focusHandler_,"focusin",this.onFocus);H4$(this,!1)};
_.k.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.BX(this.focusHandler_);$Q.superClass_.exitDocument.call(this);_.UN(this.bgIframeEl_);_.UN(this.bgEl_);_.UN(this.tabCatcherElement_)};
_.k.setVisible=function(q){if(q!=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_&&H4$(this,q),q){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8041_dom_.JSC$7229_document_.activeElement}catch(e){}this.updateModalAndBackground_();JY(this).listen(this.JSC$8041_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8041_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);WLx(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)rL(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){JY(this).unlisten(this.JSC$8041_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8041_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)rL(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var w=this.JSC$8041_dom_,u=w.JSC$7229_document_.body,y=w.JSC$7229_document_.activeElement||u;if(!this.lastFocus_||this.lastFocus_==u){this.lastFocus_=null;break a}(y==u||w.contains(this.getElement(),y))&&this.lastFocus_.focus()}catch(e){}this.lastFocus_=
null}}};
var H4$=function(q,w){q.modalAriaVisibilityHelper_||(q.modalAriaVisibilityHelper_=new FLr(q.JSC$8041_element_,q.JSC$8041_dom_));q=q.modalAriaVisibilityHelper_;if(w){q.hiddenElements_||(q.hiddenElements_=[]);w=q.JSC$8062_dom_.getChildren(q.JSC$8062_dom_.JSC$7229_document_.body);for(var u=0;u<w.length;u++){var y=w[u],e;if(e=y!=q.JSC$8062_element_)e=y.getAttribute("aria-hidden"),e=!(e==null||e==void 0?0:String(e));e&&(zI(y,"hidden",!0),q.hiddenElements_.push(y))}}else if(q.hiddenElements_){for(w=0;w<
q.hiddenElements_.length;w++)q.hiddenElements_[w].removeAttribute("aria-hidden");q.hiddenElements_=null}};
$Q.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var WLx=function(q,w){q.bgIframeEl_&&_.M1(q.bgIframeEl_,w);q.bgEl_&&_.M1(q.bgEl_,w);_.M1(q.getElement(),w);_.M1(q.tabCatcherElement_,w)};
_.k=$Q.prototype;_.k.onShow=function(){this.dispatchEvent("show")};
_.k.onHide=function(){WLx(this,!1);this.dispatchEvent("hide")};
_.k.isVisible=function(){return this.visible_};
_.k.focus=function(){this.focusElement_()};
_.k.resizeBackground_=function(){this.bgIframeEl_&&_.M1(this.bgIframeEl_,!1);this.bgEl_&&_.M1(this.bgEl_,!1);var q=this.JSC$8041_dom_.JSC$7229_document_;var w=_.Gc(fg(this.JSC$8041_dom_.JSC$7229_document_)||window);var u=Math.max(w.width,Math.max(q.body.scrollWidth,q.documentElement.scrollWidth));q=Math.max(w.height,Math.max(q.body.scrollHeight,q.documentElement.scrollHeight));this.bgIframeEl_&&(_.M1(this.bgIframeEl_,!0),_.XkG(this.bgIframeEl_,u,q));this.bgEl_&&(_.M1(this.bgEl_,!0),_.XkG(this.bgEl_,
u,q))};
_.k.reposition=function(){var q;if(_.PPZ(this.getElement())=="fixed")var w=q=0;else w=HX(this.JSC$8041_dom_),q=w.x,w=w.y;var u=GGP(this.getElement());var y=_.Gc(fg(this.JSC$8041_dom_.JSC$7229_document_)||window);q=Math.max(q+y.width/2-u.width/2,0);w=Math.max(w+y.height/2-u.height/2,0);Dl(this.getElement(),q,w);Dl(this.tabCatcherElement_,q,w)};
_.k.onFocus=function(q){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():q.target==this.tabCatcherElement_&&Tx(this.focusElement_,0,this)};
_.k.focusElement_=function(){try{this.getElement().focus()}catch(q){}};
_.k.disposeInternal=function(){_.BX(this.popupShowTransition_);this.popupShowTransition_=null;_.BX(this.popupHideTransition_);this.popupHideTransition_=null;_.BX(this.bgShowTransition_);this.bgShowTransition_=null;_.BX(this.bgHideTransition_);this.bgHideTransition_=null;$Q.superClass_.disposeInternal.call(this)};var bI=function(q,w,u){$Q.call(this,w,u);this.JSC$8072_class_=q||"modal-dialog";this.buttons_=(new vz).addButton(sXX,!0).addButton(N_a,!1,!0)};
_.w9(bI,$Q);_.k=bI.prototype;_.k.escapeToCancel_=!0;_.k.hasTitleCloseButton_=!0;_.k.modal_=!0;_.k.draggable_=!0;_.k.backgroundElementOpacity_=.5;_.k.title_="";_.k.JSC$8074_dragger_=null;_.k.JSC$8074_disposeOnHide_=!1;_.k.titleEl_=null;_.k.titleTextEl_=null;_.k.titleTextId_=null;_.k.titleCloseEl_=null;_.k.contentEl_=null;_.k.buttonEl_=null;_.k.getCssClass=function(){return this.JSC$8072_class_};
_.k.setTitle=function(q){this.title_=q;this.titleTextEl_&&_.At(this.titleTextEl_,q)};
_.k.getTitle=function(){return this.title_};
_.k.getContent=function(){return""};
_.k.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var QXj=function(q){q.getElement()||q.render();return q.getElement()};
bI.prototype.getBackgroundElement=function(){this.getElement()||this.render();return bI.superClass_.getBackgroundElement.call(this)};
var IRZ=function(q,w){q.backgroundElementOpacity_=w;q.getElement()&&(w=q.getBackgroundElement())&&H$a(w,q.backgroundElementOpacity_)};
bI.prototype.setDraggable=function(q){this.draggable_=q;i4r(this,q&&this.inDocument_)};
bI.prototype.JSC$8074_handleDrag=function(){};
var i4r=function(q,w){var u=ss(q.JSC$8072_class_+"-title-draggable").split(" ");q.getElement()&&(w?vJ(q.titleEl_,u):L$T(q.titleEl_,u));w&&!q.JSC$8074_dragger_?(w=new _.aq(q.getElement(),q.titleEl_),q.JSC$8074_dragger_=w,vJ(q.titleEl_,u),_.dL(q.JSC$8074_dragger_,"start",q.setDraggerLimits_,!1,q),_.dL(q.JSC$8074_dragger_,"drag",q.JSC$8074_handleDrag,!1,q)):!w&&q.JSC$8074_dragger_&&(q.JSC$8074_dragger_.dispose(),q.JSC$8074_dragger_=null)};
_.k=bI.prototype;
_.k.JSC$8043_createDom=function(){bI.superClass_.JSC$8043_createDom.call(this);var q=this.getElement(),w=this.JSC$8041_dom_;this.titleTextId_=this.getId();var u=this.getId()+".contentEl";this.titleEl_=w.JSC$7231_createDom("DIV",this.JSC$8072_class_+"-title",this.titleTextEl_=w.JSC$7231_createDom("SPAN",{className:this.JSC$8072_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=w.JSC$7231_createDom("SPAN",this.JSC$8072_class_+"-title-close"));EJ3(q,this.titleEl_,this.contentEl_=
w.JSC$7231_createDom("DIV",{className:this.JSC$8072_class_+"-content",id:u}),this.buttonEl_=w.JSC$7231_createDom("DIV",this.JSC$8072_class_+"-buttons"));hPF(this.titleTextEl_,"heading");hPF(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;zI(this.titleCloseEl_,"label","Close");hPF(q,"dialog");zI(q,"labelledby",this.titleTextId_||"");_.M1(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(q=this.buttons_,q.JSC$8075_element_=this.buttonEl_,q.render());_.M1(this.buttonEl_,!!this.buttons_);
IRZ(this,this.backgroundElementOpacity_)};
_.k.decorateInternal=function(q){bI.superClass_.decorateInternal.call(this,q);q=this.getElement();var w=this.JSC$8072_class_+"-content";this.contentEl_=Ub(document,null,w,q)[0];this.contentEl_||(this.contentEl_=this.JSC$8041_dom_.JSC$7231_createDom("DIV",w),q.appendChild(this.contentEl_));w=this.JSC$8072_class_+"-title";var u=this.JSC$8072_class_+"-title-text",y=this.JSC$8072_class_+"-title-close";(this.titleEl_=Ub(document,null,w,q)[0])?(this.titleTextEl_=Ub(document,null,u,this.titleEl_)[0],this.titleCloseEl_=
Ub(document,null,y,this.titleEl_)[0]):(this.titleEl_=this.JSC$8041_dom_.JSC$7231_createDom("DIV",w),q.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=uar(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.CO("SPAN",{className:u,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;zI(q,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8041_dom_.JSC$7231_createDom("SPAN",
y),this.titleEl_.appendChild(this.titleCloseEl_));_.M1(this.titleCloseEl_,this.hasTitleCloseButton_);w=this.JSC$8072_class_+"-buttons";(this.buttonEl_=Ub(document,null,w,q)[0])?(this.buttons_=new vz(this.JSC$8041_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8041_dom_.JSC$7231_createDom("DIV",w),q.appendChild(this.buttonEl_),this.buttons_&&(q=this.buttons_,q.JSC$8075_element_=this.buttonEl_,q.render()),_.M1(this.buttonEl_,!!this.buttons_));IRZ(this,this.backgroundElementOpacity_)};
_.k.enterDocument=function(){bI.superClass_.enterDocument.call(this);JY(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);JY(this).listen(this.buttonEl_,"click",this.onButtonClick_);i4r(this,this.draggable_);JY(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var q=this.getElement();hPF(q,"dialog");this.titleTextEl_.id!==""&&zI(q,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){q=this.JSC$8041_dom_;
var w=this.getBackgroundElement();q.removeNode(this.bgIframeEl_);q.removeNode(w)}this.isVisible()&&H4$(this,!1)}};
_.k.exitDocument=function(){this.isVisible()&&this.setVisible(!1);i4r(this,!1);bI.superClass_.exitDocument.call(this)};
_.k.setVisible=function(q){q!=this.isVisible()&&(this.inDocument_||this.render(),bI.superClass_.setVisible.call(this,q))};
_.k.onShow=function(){bI.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.k.onHide=function(){bI.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8074_disposeOnHide_&&this.dispose()};
_.k.setDraggerLimits_=function(){var q=this.JSC$8041_dom_.JSC$7229_document_,w=_.Gc(fg(q)||window),u=Math.max(q.body.scrollWidth,w.width);q=Math.max(q.body.scrollHeight,w.height);var y=GGP(this.getElement());_.PPZ(this.getElement())=="fixed"?this.JSC$8074_dragger_.limits=new Jt(0,0,Math.max(0,w.width-y.width),Math.max(0,w.height-y.height)):this.JSC$8074_dragger_.limits=new Jt(0,0,u-y.width,q-y.height)};
_.k.onTitleCloseClick_=function(){rPa(this)};
var rPa=function(q){if(q.hasTitleCloseButton_){var w=q.buttons_,u=w&&w.cancelButton_;u?(w=w.get(u),q.dispatchEvent(new b5(u,w))&&q.setVisible(!1)):q.setVisible(!1)}},UZ6=function(q){q.hasTitleCloseButton_=!1;
q.titleCloseEl_&&_.M1(q.titleCloseEl_,q.hasTitleCloseButton_)};
bI.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;bI.superClass_.disposeInternal.call(this)};
bI.prototype.onButtonClick_=function(q){a:{for(q=q.target;q!=null&&q!=this.buttonEl_;){if(q.tagName=="BUTTON")break a;q=q.parentNode}q=null}if(q&&!q.disabled){q=q.name;var w=this.buttons_.get(q);this.dispatchEvent(new b5(q,w))&&this.setVisible(!1)}};
bI.prototype.onKey_=function(q){var w=!1,u=!1,y=this.buttons_,e=q.target;if(q.type=="keydown")if(this.escapeToCancel_&&q.keyCode==27){var t=y&&y.cancelButton_;e=e.tagName=="SELECT"&&!e.disabled;t&&!e?(u=!0,w=y.get(t),w=this.dispatchEvent(new b5(t,w))):e||(w=!0)}else{if(q.keyCode==9&&q.shiftKey&&e==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(Q){}Tx(this.resetBackwardTabWrap_,0,this)}}else if(q.keyCode==13){if(e.tagName=="BUTTON"&&!e.disabled)t=e.name;
else if(e==this.titleCloseEl_)rPa(this);else if(y){var X=y.defaultButton_,G;if(G=X)a:{G=T9("BUTTON",y.JSC$8075_element_);for(var n,N=0;n=G[N];N++)if(n.name==X||n.id==X){G=n;break a}G=null}e=(e.tagName=="TEXTAREA"||e.tagName=="SELECT"||e.tagName=="A")&&!e.disabled;!G||G.disabled||e||(t=X)}t&&y&&(u=!0,w=this.dispatchEvent(new b5(t,String(y.get(t)))))}else e!=this.titleCloseEl_||q.keyCode!=32&&q.key!=" "||rPa(this);if(w||u)q.stopPropagation(),q.preventDefault();w&&this.setVisible(!1)};
var b5=function(q,w){this.type="dialogselect";this.key=q;this.caption=w};
_.w9(b5,_.nM);var vz=function(q){ZQ.call(this);q||WX();this.cancelButton_=this.JSC$8075_element_=this.defaultButton_=null};
_.w9(vz,ZQ);_.k=vz.prototype;_.k.clear=function(){ZQ.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.k.set=function(q,w,u,y){ZQ.prototype.set.call(this,q,w);u&&(this.defaultButton_=q);y&&(this.cancelButton_=q);return this};
_.k.addButton=function(q,w,u){return this.set(q.key,q.caption,w,u)};
_.k.render=function(){if(this.JSC$8075_element_){_.Ym(this.JSC$8075_element_,N_l);var q=WX(this.JSC$8075_element_);this.forEach(function(w,u){w=q.JSC$7231_createDom("BUTTON",{name:u},w);u==this.defaultButton_&&(w.className="goog-buttonset-default");this.JSC$8075_element_.appendChild(w)},this)}};
_.k.decorate=function(q){if(q&&q.nodeType==1){this.JSC$8075_element_=q;q=T9("BUTTON",this.JSC$8075_element_);for(var w,u,y,e=0;w=q[e];e++)if(u=w.name||w.id,y=uar(w)||w.value,u){var t=e==0;this.set(u,y,t,w.name=="cancel");t&&_.Lx(w,"goog-buttonset-default")}}};
_.k.getElement=function(){return this.JSC$8075_element_};
var sXX={key:"ok",caption:"OK"},N_a={key:"cancel",caption:"Cancel"},T_6={key:"yes",caption:"Yes"},Coc={key:"no",caption:"No"},dZZ={key:"save",caption:"Save"},O46={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new vz).addButton(sXX,!0,!0),(new vz).addButton(sXX,!0).addButton(N_a,!1,!0),(new vz).addButton(T_6,!0).addButton(Coc,!1,!0),(new vz).addButton(T_6).addButton(Coc,!0).addButton(N_a,!1,!0),(new vz).addButton(O46).addButton(dZZ).addButton(N_a,!0,!0));_.w9(eCH,bI);_.w9(kSM,Ys);var owF=_.Sc(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),VZc=_.Sc(["//apis.google.com/js/rpc.js"]),sXs=_.qK(owF),WLj=_.qK(VZc),Pol=null;var gg=function(q,w){_.Q4.call(this);this.JSC$8084_element_=q;q=_.ws(this.JSC$8084_element_)?this.JSC$8084_element_:this.JSC$8084_element_?this.JSC$8084_element_.body:null;this.isRtl_=!!q&&_.Wjk(q);this.listenKey_=_.dL(this.JSC$8084_element_,_.tv?"DOMMouseScroll":"mousewheel",this,w)};
_.w9(gg,_.Q4);gg.prototype.handleEvent=function(q){var w=0,u=0,y=q.event_;y.type=="mousewheel"?(q=fRT(-y.wheelDelta),y.wheelDeltaX!==void 0?(w=fRT(-y.wheelDeltaX),u=fRT(-y.wheelDeltaY)):u=q):(q=y.detail,q>100?q=3:q<-100&&(q=-3),y.axis!==void 0&&y.axis===y.HORIZONTAL_AXIS?w=q:u=q);typeof this.maxDeltaX_==="number"&&(w=_.zT(w,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(u=_.zT(u,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(w=-w);w=new mZG(q,y,w,u);this.dispatchEvent(w)};
var fRT=function(q){return _.PS&&(_.Cz4||Osz)&&q%40!=0?q:q/40};
gg.prototype.disposeInternal=function(){gg.superClass_.disposeInternal.call(this);UO(this.listenKey_);this.listenKey_=null};
var mZG=function(q,w,u,y){_.HJ.call(this,w);this.type="mousewheel";this.detail=q;this.deltaX=u;this.deltaY=y};
_.w9(mZG,_.HJ);_.kX=function(q){var w="instance_";if(q.instance_&&q.hasOwnProperty(w))return q.instance_;w=new q;return q.instance_=w};var H47;var APT=_.Sc(["https://about:blank"]),JP3=_.Sc(['javascript:""']),zCX=_.Sc(["about:blank"]);_.w9(KY,eCH);_.k=KY.prototype;_.k.JSC$8092_url_="";_.k.JSC$8092_iframe_=null;_.k.iframeLoaded_=!1;_.k.loadedFired_=!1;_.k.callback_=function(){};
_.k.enterDocument=function(){KY.superClass_.enterDocument.call(this);GSs(this.getBackgroundElement(),JY(this))};
_.k.render=function(q){var w=this;KY.superClass_.render.call(this,q);this.useGapi_?zPr(this.iframeManager_,window).then(function(){return aRj(w)}).then(null,function(){w.callback_({action:"error"})}):DZ6(this)};
var aRj=function(q){var w=q.JSC$8041_dom_.JSC$7231_createDom("div",["picker-dialog-content","picker-frame"]);_.M1(w,!1);q.getContentElement().appendChild(w);return aGZ(q.iframeManager_,w,function(u){var y=tq$(u["iframe-command"]);switch(y.getCommand()){case 1:u=q.callback_;y=_.PT(y,MB,2);var e="";switch(y.getStatus()){case 2:e="cancel";break;case 1:e="picked";break;case 3:e="error"}var t=_.wg(y,Cy,2,_.uI(LiH));y=t.length===0?{action:e}:Wb3(t,e,_.PT(y,yxa,7));u.call(q,y);q.setVisible(!1);break;case 4:UZ6(q);
q.callback_({action:"loaded"});break;case 7:case 8:u=q.callback_;a:{e=y.getCommand();t=_.PT(y,MB,2);switch(e){case 7:e="uploadScheduled";break;case 8:e="uploadStateChange";break;default:y={};break a}y=_.wg(t,Cy,2,_.uI(LiH));if(y.length===0)y={action:e};else{var X=_.PT(t,yxa,7);t=X&&_.fy(X,1);X=uZG(X);y=kZF(y,e,t,X)}}u.call(q,y)}},q.JSC$8092_url_,q.targetId_,q.rpcToken_).then(function(u){q.JSC$8092_iframe_=u.getIframeEl();
Z4P(q);_.M1(q.JSC$8092_iframe_.parentElement,!0);_.Lx(q.getElement(),"picker-dialog");plT(q);return u})},DZ6=function(q){q.JSC$8092_iframe_=q.JSC$8041_dom_.JSC$7231_createDom("IFRAME",{id:q.targetId_,
name:q.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.Ja(q.JSC$8092_iframe_,$Z3(q));_.Lx(q.getElement(),"picker-dialog");q.getContentElement().appendChild(q.JSC$8092_iframe_);JY(q).listen(q.JSC$8092_iframe_,"load",function(){return void Z4P(q)});
q.JSC$8092_iframe_.src=q.JSC$8092_url_;plT(q)},b4$=function(q){vw3(q,(0,_.fY)(function(w){w.setAuthToken(this.targetId_,this.rpcToken_)},q))},plT=function(q){var w=_.ji(_.h1(q.JSC$8092_url_),"title");
w&&q.setTitle(w)},$Z3=function(q){return _.nJz("Internet Explorer")>=7&&_.tz(q.JSC$8092_url_,"https")?_.qK(APT):_.kf?_.qK(JP3):_.qK(zCX)},Z4P=function(q){b4$(q);
q.iframeLoaded_=!0;q.JSC$8092_iframe_.tabIndex=0;q.isVisible()&&q.focus()};
KY.prototype.handleKeydown_=function(q){q.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),q.stopPropagation(),q.preventDefault())};
var vw3=function(q,w){var u=q.JSC$8090_gadgetsDomHelper_;Xls(function(){w(u.getWindow().gadgets.rpc)},u)};
KY.prototype.setUrl=function(q){q=_.lI(new _.M4(q),"rpcService",this.targetId_);_.lI(q,"rpctoken",this.rpcToken_);_.BJ(q,"rpctoken="+this.rpcToken_);_.jn(q,"https");this.JSC$8092_url_=q.toString();this.JSC$8092_iframe_&&(this.JSC$8092_iframe_.src=this.JSC$8092_url_)};
var Ytx=function(q,w){q.callback_=w;vw3(q,(0,_.fY)(function(u){u.register(this.targetId_,(0,_.fY)(this.handlePickerAction_,this))},q))};
KY.prototype.handlePickerAction_=function(q){var w=q.action;w=="loaded"&&(this.loadedFired_=!0,gwr(this,new yPM(this.isVisible())),EwG(this),UZ6(this),JY(this).unlisten(this.JSC$8041_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8092_iframe_.tabIndex=0);w!="picked"&&w!="cancel"||this.setVisible(!1);this.callback_(q)};
var EwG=function(q){q.JSC$8092_appId_&&gwr(q,new ud4(q.JSC$8092_appId_,window.location.protocol+"//"+window.location.host))};
KY.prototype.setRelayUrl=function(q){vw3(this,(0,_.fY)(function(w){w.setRelayUrl(this.targetId_,q)},this))};
var gwr=function(q,w){q.useGapi_&&vCj(w,q.iframeManager_).then(null,function(){q.callback_({action:"error"})});
vw3(q,(0,_.fY)(function(u){u.call(this.targetId_,"picker",null,w)},q))};
KY.prototype.resizePicker_=function(){var q=fg(this.JSC$8041_dom_.JSC$7229_document_)||window;if(_.ji(_.h1(this.JSC$8092_url_),"ignoreLimits")=="true")q=new _.FO(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.ji(_.h1(this.JSC$8092_url_),"shadeDialog")=="true"){var w=QXj(this);w=s6T(w);var u=_.Gc(q);q=u.width-80;u=u.height-40;w&&(q-=w.left?w.left:0,q-=w.right?w.right:0,u-=w.top?w.top:0,u-=w.bottom?w.bottom:0);q=new _.FO(q>0?q:0,u>0?u:0)}else(w=this.preferredDialogWidth_)?(w=Math.max(320,
Math.min(1051,w)),(u=this.preferredDialogHeight_)||(u=_.Gc(q).height*.85),u=Math.max(480,Math.min(650,u))):(w=_.Gc(q),u=w.width*.618,u=u<w.height?Math.round(Math.max(480,Math.min(650,u*.85))):Math.round(Math.max(480,Math.min(650,w.height*.85))),w=Math.round(u/.618)),q=_.Gc(q),w=Math.min(w,Math.max(q.width,320)),u=Math.min(u,Math.max(q.height,480)),q=new _.FO(w,u);_.XkG(this.getContentElement(),q);this.reposition()};
KY.prototype.reposition=function(){if(_.ji(_.h1(this.JSC$8092_url_),"shadeDialog")=="true"){var q=GGP(this.getElement()),w=_.Gc(this.JSC$8041_dom_.getWindow());q=Math.floor(w.width/2-q.width/2);w=QXj(this);if(w=s6T(w)){var u=w.left?w.left:0;u+=w.right?w.right:0;q=Math.floor(q-u/2)}q=q>0?q:0;w=HX(this.JSC$8041_dom_).y;Dl(this.getElement(),q,w)}else KY.superClass_.reposition.call(this)};
KY.prototype.setVisible=function(q){if(q!=this.isVisible()&&this.autoSizeDialog_){var w=this.JSC$8041_dom_.getWindow();q?(this.resizePicker_(),JY(this).listen(w,"resize",this.resizePicker_),this.iframeLoaded_||JY(this).listen(w,"keydown",this.handleKeydown_)):(JY(this).unlisten(w,"resize",this.resizePicker_),this.iframeLoaded_||JY(this).unlisten(w,"keydown",this.handleKeydown_))}KY.superClass_.setVisible.call(this,q);gwr(this,new yPM(q))};
KY.prototype.focus=function(){KY.superClass_.focus.call(this);if(this.JSC$8092_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8092_iframe_.focus()}catch(q){}};var dC=function(q,w){w=w===void 0?KY:w;Ys.call(this,q);this.pickerConstructor=w;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(q=window.location.origin)||(q=window.location.protocol+"//"+window.location.host);q&&this.urlParamMap_.set("origin",q);this.postProcessors_=[]};
_.O(dC,kSM);dC.prototype.JSC$8097_disposeOnHide_=!1;
dC.prototype.build=function(){this.JSC$7998_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$7998_appId_);this.getRelayUrl()||this.setRelayUrl(_.MF(_.BJ(_.KM(_.h1(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var q=new this.pickerConstructor(RCr(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);q.JSC$8074_disposeOnHide_=this.JSC$8097_disposeOnHide_;
q.JSC$8092_appId_=this.JSC$7998_appId_;q.loadedFired_&&EwG(q);Ytx(q,this.callback_);return q};
var cPG=function(q){q.urlParamMap_.set("multiselectEnabled","true");return q};
dC.prototype.getHeight=function(){return this.dialogHeight_};
dC.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
dC.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
dC.prototype.getWidth=function(){return this.dialogWidth_};
var St3=function(q){q.JSC$8097_disposeOnHide_=void 0;return q};
dC.prototype.setRelayUrl=function(q){this.urlParamMap_.set("parent",q);return this};
var hCP=function(q,w){q.urlParamMap_.set("selectButtonLabel",w);return q};
dC.prototype.setSize=function(q,w){this.dialogWidth_=q;this.dialogHeight_=w;return this};
dC.prototype.setTitle=function(q){this.urlParamMap_.set("title",q);return this};
var RCr=function(q){q.postProcessors_.length&&q.urlParamMap_.set("pp",JSON.stringify(q.postProcessors_));q.urlParamMap_.set("nav",Bgx(q.nav_));var w=new _.M4(q.getBaseUrl());q.urlParamMap_.forEach(function(u,y){_.lI(w,y,u)});
return w};var LLT=function(q,w){q.name!==void 0?(this.name=q.name,this.code=jX6[q.name]):(this.code=q=q.code,this.name=lR6(q));_.qM.call(this,Ouj("%s %s",this.name,w))};
_.w9(LLT,_.qM);var lR6=function(q){var w=_.db.findKey(jX6,function(u){return q==u});
if(w===void 0)throw Error("lb`"+q);return w},YQ={},jX6=(YQ.AbortError=3,YQ.EncodingError=5,YQ.InvalidModificationError=9,YQ.InvalidStateError=7,YQ.NotFoundError=1,YQ.NotReadableError=4,YQ.NoModificationAllowedError=6,YQ.PathExistsError=12,YQ.QuotaExceededError=10,YQ.SecurityError=2,YQ.SyntaxError=8,YQ.TypeMismatchError=11,YQ);var MZZ=function(q,w){_.nM.call(this,q.type,w);this.event_=q};
_.w9(MZZ,_.nM);var KLk=function(q,w,u){u===void 0&&(u=q.size);return q.slice?q.slice(w,u):null};var IR6=new WeakMap,QXu=function(q,w){q=[q];for(var u=w.length-1;u>=0;--u)q.push(typeof w[u],w[u]);return q.join("\v")};_.rPl(function(){if(!_.uc.Blob)return!1;var q=new Uint8Array(100);try{var w=new Blob([q])}catch(u){return!1}return w.size!=100?!1:!0});
var B_6=_.rPl(function(){if(!_.uc.Blob)return!1;var q=new Uint8Array(100);try{var w=new Blob([q])}catch(u){return!1}return KLk(w,0,1)===null?!1:!0});_.uc.U3bHHf!=null||(_.uc.U3bHHf=0);_.uc.U3bHHf++;var T_o={};var yy=void 0;var dZ6=Symbol("tb");var plM=kC("WizInjectionContext_Dispatcher");var JPf=kC("WizInjectionContext_RootElement");var aRu=kC("WizInjectionContext_AppContext"),zCs=kC("WizInjectionContext_ModelRootElement"),DZo=kC("WizInjectionContext_RendererData"),Z4c=kC("WizInjectionContext_InjectingConstructor"),APJ=kC("WizInjectionContext_AsyncDeps"),$Zf={};var Ewy=!1;var xZF=Symbol("xb"),Dul=Symbol("yb"),vFf=Symbol("zb"),pG6=Symbol("Ab"),S8M=L$(function(q){return FZ(q)&&xZF in q});var hCc={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:Nzj,enableLazyTsx:Q_6,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var XZ=Object.assign({},{attributes:{},handleError:function(q){throw q;}},hCc);var B_o=Symbol("Bb"),Ec={},MZ6=(Ec[B_o]=!0,Ec.debugName="[component]",Ec.getComponentStack=function(){for(var q=[],w=this;w;)xZM(w)&&q.push(w.debugName),w=w.parent;return q},Ec.registerSignal=function(){},Ec.registerEffect=function(){},Ec);var GZ=null,H1=!1,kQs=1,N$=Symbol("Cb"),OZ={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var Rq=Symbol("Db"),cz=Symbol("Eb"),sZ=Symbol("Fb"),WIf=Object.assign({},OZ,{value:Rq,dirty:!0,error:null,equal:q8o,kind:"computed",producerMustRecompute:function(q){return q.value===Rq||q.value===cz},
producerRecomputeValue:function(q){if(q.value===cz)throw Error("da");var w=q.value;q.value=cz;var u=GQy(q),y=!1;try{var e=q.computation();nD(null);y=w!==Rq&&w!==sZ&&e!==sZ&&q.equal(w,e)}catch(t){e=sZ,q.error=t}finally{nFu(q,u)}y?q.value=w:(q.value=e,q.version++)}});var I7J=function(){throw Error();};var rGJ=null,N$s=Object.assign({},OZ,{equal:q8o,value:void 0,kind:"signal"});Object.assign({},OZ,{value:Rq,dirty:!0,error:null,equal:q8o,kind:"linkedSignal",producerMustRecompute:function(q){return q.value===Rq||q.value===cz},
producerRecomputeValue:function(q){if(q.value===cz)throw Error("da");var w=q.value;q.value=cz;var u=GQy(q);try{var y=q.source();var e=q.computation(y,w===Rq||w===sZ?void 0:{source:q.sourceValue,value:w});q.sourceValue=y}catch(t){e=sZ,q.error=t}finally{nFu(q,u)}w!==Rq&&e!==sZ&&q.equal(w,e)?q.value=w:(q.value=e,q.version++)}});Object.assign({},OZ,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(q){q.schedule!==null&&q.schedule(q.ref)},
hasRun:!1,cleanupFn:function(){}});var T$y=Symbol("Gb"),UZ=Symbol("Hb");var TZ=Array.isArray;var JGc;var q86={},a77=AGl(Object.assign({},{consumerAllowSignalWrites:!0},q86)),d_=AGl(Object.assign({},{consumerAllowSignalWrites:!0},q86));var fD=0,S4=function(){this.queue=new Set};
S4.prototype.remove=function(q){this.queue.delete(q)};
S4.prototype.clear=function(){this.queue.clear()};
var wGZ=function(){S4.apply(this,arguments)};
_.O(wGZ,S4);wGZ.prototype.schedule=function(q){this.queue.add(q)};
wGZ.prototype.flush=function(){if(this.queue.size)for(var q=_.P(this.queue),w=q.next();!w.done;w=q.next()){w=w.value;this.queue.delete(w);try{w.run()}catch(u){uc6(u)}}};
var yG6=new wGZ,hY=function(){S4.apply(this,arguments)};
_.O(hY,S4);var eWX=function(){hY.apply(this,arguments)};
_.O(eWX,hY);eWX.prototype.schedule=function(q){q.hasRun?this.queue.add(q):q.run()};
eWX.prototype.flush=function(){if(this.queue.size){var q=this.queue;this.queue=new Set;hWy(q)}};
var Zvl=new eWX,kQX=function(){hY.apply(this,arguments)};
_.O(kQX,hY);kQX.prototype.schedule=function(q){var w=this;return _.F(function(u){if(u.nextAddress==1)return q.hasRun?u.jumpTo(2):_.H(u,Promise.resolve(),3);if(u.nextAddress!=2)return q.run(),u.return();w.queue.add(q);_.HI(u)})};
kQX.prototype.flush=function(){var q=this;return _.F(function(w){if(w.nextAddress==1)return q.queue.size?_.H(w,Promise.resolve(),2):w.return();hWy(q.queue);_.HI(w)})};
var bvM=new kQX,tvc=function(){hY.apply(this,arguments)};
_.O(tvc,hY);tvc.prototype.schedule=function(q){this.queue.add(q)};
tvc.prototype.flush=function(){this.queue.size&&hWy(this.queue)};
var $ul=new tvc,RWj=[Zvl,yG6,$ul,bvM],P43=[Zvl,$ul,bvM],gF6=[];rGJ=function(){cGf();for(var q=_.P(gF6),w=q.next();!w.done;w=q.next())w=w.value,w()};
var uc6=yM;var AX=Symbol("Mb");var mb=null,Mvu,KI6=null,B$c;var j4={},XGr=Object.assign({},OZ,(j4[xZF]=!0,j4.effectType=Dul,j4.isResettableContext=!0,j4.producerNode=void 0,j4.hasRun=!1,j4.effectFn=null,j4.consumerIsAlwaysLive=!0,j4.consumerAllowSignalWrites=!0,j4.consumerMarkedDirty=Y8J,j4.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(H1)throw Error("Nb");this.dirty=!1;if(!this.hasRun||tvz(this)){this.hasRun=!0;mZy(this);var q=e7(this),w=GQy(this);lRo("effectRun",this.debugName);try{XZ.enableContextBasedComponentStacks?this.effectFn():aR(this.effectFn,
this.componentStack)}catch(u){throw XZ.enableContextBasedComponentStacks&&zZ(u),u;}finally{LLJ("effectRun",this.debugName),nFu(this,w),e7(q)}}}},j4.componentStack=void 0,j4.debugName="[effect]",j4[Symbol.dispose]=function(){wG6(this);
if(W1(this))for(var q=0;q<this.producerNode.length;q++)uco(this.producerNode[q],this.producerIndexOfThis[q]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);q=_.P(P43);for(var w=q.next();!w.done;w=q.next())w.value.remove(this);fRJ(this)},j4));var wTc=Object.assign({},XGr,{effectType:vFf});var uo4=Symbol("Ob");var y64=Object.assign({},XGr,{effectType:Dul});var biH=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var Fd=Symbol("Pb");var TS=function(){},f4=function(q){this.props=q;
this.__unmounted=!1};
f4.prototype.didPatch=function(){};
f4.prototype.didMount=function(){};
f4.prototype.didUnmount=function(){};
f4.prototype.didUpdate=function(){};var tWs={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,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,
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,valign:1,value:1,width:1,wrap:1},kPj={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}]}},VVl={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},Frf=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],XTJ={"*":{async:1,dir:0,loading:2,target:3}};var FIZ=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,l5={},nZl=(l5[1]=null,l5[2]=function(q,w){return w instanceof fj?Aa(w):iZ.toString()},l5[3]=function(q,w){return sY(w)?_.NC(w):FIZ.test(String(w))?String(w):iZ.toString()},l5[4]=function(q,w){return w instanceof XE?_.G2(w):iZ.toString()},l5[5]=function(q,w){return String(w)},l5[7]=null,l5[8]=null,l5[10]=null,l5);var L6f=Symbol("Sb");var RRj=function(q){var w=GQG,u=q,y="",e="",t=1;q<0&&(q=-q);if(q===Infinity)q=(Infinity*Math.sign(u)).toString();else{for(var X=0;X<nFj.length;X++){var G=nFj[X];t=w[G];if(q>=t||t<=1&&q>.1*t){y=G;break}}y?(y+="B",e=" "):t=1;q=Math.round(u/t*10)/10+e+y}return q},nFj="Y Z E P T G M K  m u n".split(" "),GQG={"":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};_.HvZ=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 NZ={};RegExp.prototype.hasOwnProperty("sticky");var EZM=function(q){q=String(q);for(var w=function(y,e,t){for(var X=Math.min(e.length-t,y.length),G=0;G<X;G++){var n=e[t+G];if(y[G]!==("A"<=n&&n<="Z"?n.toLowerCase():n))return!1}return!0},u=0;(u=q.indexOf("<",u))!=-1;){if(w("\x3c/script",q,u)||w("\x3c!--",q,u))return"zSoyz";
u+=1}return q};var S7={default:"__default"};var iic=Object.prototype.hasOwnProperty;szu.prototype=Object.create(null);var uV=Trs();var eZ=null;var aTJ=function(q){this.created=[];this.deleted=[];this.node=q};var DQf=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var q=this,w=q;q;)w=q,q=q.parentNode;return w};var dQ4=function(q,w){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=q;this.key=w;this.text=void 0};var LD=null,B1=null,j7=null,qZ=null,mQu=[],fT7=oZl,uo=[],yQ=[],lhj=function(q){return Zic(function(w,u,y){j7=B1=w;B1=null;u(y);VWc(null);B1=j7;j7=j7.parentNode;return w},q)}(),jgl=function(q){return Zic(function(w,u,y){var e={nextSibling:w};
B1=e;u(y);j7&&VWc(w.nextSibling);return e===B1?null:B1},q)}();var kw=[],$Qc=0;var tP=new szu;var fx=new szu;var WI3=Trs(),gZj=WI3[S7.default],Ru7=WI3.style,YEM=["focusin","focusout"];var d5s=function(){},Hnj=function(){},m5M=function(){},o8c=function(){};var Xd=Symbol("Zb");var MWs,Lr6=lTM;var IX=Symbol("$b");var PDM={};var fnM=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(" ")),
Vwf=new Set(["a","font","script","style","title"]);var Ot={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var oX=null,VQ=function(q,w){f4.call(this,q);var u=this;this.functionComponent=w;this.hooks=[];this.hookCounter=0;this.disposeEffects=pD(function(y){u.effectContext=y;_.ZG(function(){QAH(u,u.el)})},XZ.alwaysTrackContexts||!!yy)};
_.O(VQ,f4);VQ.prototype.render=function(q){var w=oX;oX=this;this.hookCounter=0;var u=nD(d_),y=e7(this.effectContext);try{return lRo("render",this.componentName),this.functionComponent(q)}finally{LLJ("render",this.componentName),e7(y),nD(u),oX=w}};
_.x$.Object.defineProperties(VQ.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return l7j(this.functionComponent)}}});var Aq6=Symbol("nc"),Ts7=function(q,w,u){this.kind=q;this.props=w;this.children=u};
_.O(Ts7,TS);Ts7.prototype.render=function(){return U54(this.kind,this.props,this.children)};
Ts7.prototype.getChildren=function(){return this.children};var zYz=[];I7J=function(q){throw Error("sb`"+q.debugName);};
(function(){var q=eZ;eZ=function(w){q==null||q(w);anM(w)}})();var s2X=void 0,N$X={},Q2c=new WeakMap,D5H={getComponent:function(q){if(q.hasAttribute("ng-version"))return N$X;if(!q.__wizComponent)return null;q=q.__wizComponent;Q2c.set(q.propsAndState,q);return q.propsAndState},
getDirectiveMetadata:function(q){if(q===N$X)return{framework:"wiz",name:"<Root>",props:{}};q=Q2c.get(q);if(!q)throw Error("oc");return{framework:"wiz",name:q.name,props:Object.fromEntries(Object.keys(q.props).map(function(w){return[w,w]}))}},
"\u0275setProfiler":function(q){var w;(w=s2X)==null||w();s2X=EFy(function(){q(2)})},
isSignal:function(q){return typeof q==="function"&&q[N$]!==void 0}};_.r.debugName="RlDudd";var pml={nonNullableCondIsNull:function(){return Error("sc")}};_.W.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE!=null||(_.W.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE={});_.W.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE.isGoatEnabled=function(){return!1};var E8y=function(){this.map=new Map};
E8y.prototype.push=function(q,w){var u=this.map;u.has(q)&&(this.multi||(this.multi=new Map),this.multi.set(w,u.get(q)));u.set(q,w)};
E8y.prototype.pop=function(q){var w=this.map,u=w.get(q),y;u!==void 0&&((y=this.multi)==null?0:y.has(u))?(w.set(q,this.multi.get(u)),this.multi.delete(u)):w.delete(q);return u};_.mL.debugName="nsTGHd";var jAu={LOG_NULL_EL_REF_VALUE:function(){return Error("tc")},
OUT_OF_ORDER_HOOK_CALL:function(q){return Error("uc`"+q)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("vc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("wc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("xc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(q,w){return Error("yc`"+q+"`"+w)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(q){return Error("zc`"+q)},
USE_ELEMENT_NOT_ASSIGNED:function(q){return Error("Ac`"+String(q))}};MWs=CDj;var w0y=Symbol("Bc");sA6({beforeRender:function(q){var w=e7(q.effectContext);try{var u;((u=q.__syncEffects)==null?0:u.length)&&y2y(q.__syncEffects)}finally{e7(w)}},
didPatch:function(q){var w=e7(q.effectContext);try{var u;((u=q.__syncEffects)==null?0:u.length)&&y2y(q.__syncEffects)}finally{e7(w)}},
didUnmount:function(q){var w;((w=q.hooks)==null?0:w.length)&&q.hooks.forEach(uQl)}});var I7T,ivZ,rGT;I7T=_.uc.window;_.Yw=(I7T==null?void 0:(ivZ=I7T.yt)==null?void 0:ivZ.config_)||(I7T==null?void 0:(rGT=I7T.ytcfg)==null?void 0:rGT.data_)||{};_.wr("yt.config_",_.Yw);var Uua={},PVs=[];_.fv=function(q){var w=_.Cj.apply(1,arguments);var u=Error.call(this,q);this.message=u.message;"stack"in u&&(this.stack=u.stack);this.args=[].concat(_.Cm(w));Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(_.fv,Error);var t4f=function(q,w,u){this.actionName=q;this.optionalAction=w===void 0?!1:w;this.args=u===void 0?null:u;this.returnValue=[]};_.M=function(q){this.name=q};_.Sw=new _.M("signalAction");var iJo=/^[\w.]*$/,HJ4={q:!0,search_query:!0},n$f=String(Gd4);var Ld;Ld=Symbol("Cc");_.MH=function(q){this.name=q};
_.MH.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var r2c=function(q){this.key=q},CV4=function(q){this.deferredKey=q},TA6=function(){var q=this;
this.providers=new Map;this.JSC$8313_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(q.providers)}}};
TA6.prototype.addProvider=function(q){this.providers.set(q.provide,q);var w=this.JSC$8313_deferred.get(q.provide);if(w)try{w.resolver(this.resolve(q.provide))}catch(u){w.rejector(u)}};
TA6.prototype.resolve=function(q){return q instanceof CV4?T$G(this,q):q instanceof r2c?C4X(this,q.key,[],!0):C4X(this,q,[])};
var T$G=function(q,w){w=w.deferredKey;if(q.JSC$8313_deferred.has(w))return q.JSC$8313_deferred.get(w).promise;var u={};u.promise=new Promise(function(y,e){u.resolver=y;u.rejector=e});
q.JSC$8313_deferred.set(w,u);return u.promise},C4X=function(q,w,u,y){y=y===void 0?!1:y;
if(u.indexOf(w)>-1)throw Error("Dc`"+w);if(q.cachedValues.has(w))return q.cachedValues.get(w);if(!q.providers.has(w)){if(y)return;throw Error("Ec`"+w);}y=q.providers.get(w);u.push(w);if(y.useValue!==void 0)var e=y.useValue;else if(y.useFactory)e=y[Ld]?duP(q,y[Ld],u):[],e=y.useFactory.apply(y,_.Cm(e));else if(y.useClass){e=y.useClass;var t=e[Ld]?duP(q,e[Ld],u):[];e=new (Function.prototype.bind.apply(e,[null].concat(_.Cm(t))))}else throw Error("Fc`"+w);u.pop();y.skipCache||q.cachedValues.set(w,e);return e},
duP=function(q,w,u){return w?w.map(function(y){return y instanceof r2c?C4X(q,y.key,u,!0):C4X(q,y,u)}):[]};var Ubu;var hq=new _.MH("ENDPOINT_HANDLER_TOKEN");_.jw=new _.M("urlEndpoint");var OvF=function(){this.data=[];this.cachedPackedInt52=-1};
OvF.prototype.set=function(q,w){w=w===void 0?!0:w;0<=q&&q<52&&Number.isInteger(q)&&this.data[q]!==w&&(this.data[q]=w,this.cachedPackedInt52=-1)};
OvF.prototype.get=function(q){return!!this.data[q]};
var oFk=function(q){q.cachedPackedInt52===-1&&(q.cachedPackedInt52=q.data.reduce(function(w,u,y){return w+(u?Math.pow(2,y):0)},0));
return q.cachedPackedInt52};var $b4=function(q){var w=Vv$;q=q===void 0?_.hP("yt.ads.biscotti.lastId_")||"":q;var u=Object,y=u.assign,e={};e.dt=mrF;e.flash="0";a:{try{var t=w.JSC$8319_win_.top.location.href}catch(C7){t=2;break a}t=t?t===w.doc_.location.href?0:1:2}e=(e.frm=t,e);try{e.u_tz=-(new Date).getTimezoneOffset();var X=X===void 0?Z9:X;try{var G=X.history.length}catch(C7){G=0}e.u_his=G;var n;e.u_h=(n=Z9.screen)==null?void 0:n.height;var N;e.u_w=(N=Z9.screen)==null?void 0:N.width;var Q;e.u_ah=(Q=Z9.screen)==null?void 0:Q.availHeight;
var I;e.u_aw=(I=Z9.screen)==null?void 0:I.availWidth;var U;e.u_cd=(U=Z9.screen)==null?void 0:U.colorDepth}catch(C7){}G=w.JSC$8319_win_;try{var d=G.screenX;var V=G.screenY}catch(C7){}try{var J=G.outerWidth;var a=G.outerHeight}catch(C7){}try{var b=G.innerWidth;var g=G.innerHeight}catch(C7){}try{var l=G.screenLeft;var S=G.screenTop}catch(C7){}try{b=G.innerWidth,g=G.innerHeight}catch(C7){}try{var eH=G.screen.availWidth;var x=G.screen.availTop}catch(C7){}d=[l,S,d,V,eH,x,J,a,b,g];V=imj(!1,w.JSC$8319_win_.top);
J={};var P4=P4===void 0?_.uc:P4;a=new OvF;"SVGElement"in P4&&"createElementNS"in P4.document&&a.set(0);b=Jz6();b["allow-top-navigation-by-user-activation"]&&a.set(1);b["allow-popups-to-escape-sandbox"]&&a.set(2);P4.crypto&&P4.crypto.subtle&&a.set(3);"TextDecoder"in P4&&"TextEncoder"in P4&&a.set(4);P4=oFk(a);w=(J.bc=P4,J.bih=V.height,J.biw=V.width,J.brdim=d.join(),J.vis=y1l(w.doc_),J.wgl=!!Z9.WebGLRenderingContext,J);u=y.call(u,e,w);u.ca_type="image";q&&(u.bid=q);return u},Vv$=new function(){var q=
window.document;
this.JSC$8319_win_=window;this.doc_=q};
_.wr("yt.ads_.signals_.getAdSignalsString",function(q){return WM4($b4(q))});_.qG();navigator.userAgent.indexOf(" (CrKey ");var fOJ="XMLHttpRequest"in _.uc?function(){return new XMLHttpRequest}:null;var f7P="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),mu6=[].concat(_.Cm(f7P),["client_dev_set_cookie"]);var p0y={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"},J2s="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(_.Cm(f7P)),h$u=!1,aO6=_.v$l,R$o=ZJM;var NL7=[{messageFn:function(q){return"Cannot read property '"+q.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(q){return"Cannot call '"+q.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(q){return q.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var AGa={messageWeights:[],callbackWeights:[{callback:Mll,weight:500},{callback:KMs,weight:500}]};var JGP=function(){this.callbackWeights=[];this.messageWeights=[]},zWZ,sgs=function(){if(!zWZ){var q=zWZ=new JGP;
q.messageWeights.length=0;q.callbackWeights.length=0;AJz(q,AGa)}return zWZ},AJz=function(q,w){w.messageWeights&&q.messageWeights.push.apply(q.messageWeights,w.messageWeights);
w.callbackWeights&&q.callbackWeights.push.apply(q.callbackWeights,w.callbackWeights)};_.w9(_.r$,_.VG);_.r$.prototype.subscribe=function(q,w,u){var y=this.topics_[q];y||(y=this.topics_[q]=[]);var e=this.JSC$8343_key_;this.subscriptions_[e]=q;this.subscriptions_[e+1]=w;this.subscriptions_[e+2]=u;this.JSC$8343_key_=e+3;y.push(e);return e};
var a7$=function(q){var w=rBj,u=!1,y=w.subscribe("handleError",function(e){u||(u=!0,this.unsubscribeByKey(y),q.apply(void 0,arguments))},w)};
_.r$.prototype.unsubscribe=function(q,w,u){if(q=this.topics_[q]){var y=this.subscriptions_;if(q=q.find(function(e){return y[e+1]==w&&y[e+2]==u}))return this.unsubscribeByKey(q)}return!1};
_.r$.prototype.unsubscribeByKey=function(q){var w=this.subscriptions_[q];if(w){var u=this.topics_[w];this.publishDepth_!=0?(this.pendingKeys_.push(q),this.subscriptions_[q+1]=function(){}):(u&&_.MM(u,q),delete this.subscriptions_[q],delete this.subscriptions_[q+1],delete this.subscriptions_[q+2])}return!!w};
_.r$.prototype.publish=function(q,w){var u=this.topics_[q];if(u){var y=Array(arguments.length-1),e=arguments.length,t;for(t=1;t<e;t++)y[t-1]=arguments[t];if(this.async_)for(t=0;t<u.length;t++)e=u[t],Dua(this.subscriptions_[e+1],this.subscriptions_[e+2],y);else{this.publishDepth_++;try{for(t=0,e=u.length;t<e&&!this.isDisposed();t++){var X=u[t];this.subscriptions_[X+1].apply(this.subscriptions_[X+2],y)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;u=this.pendingKeys_.pop();)this.unsubscribeByKey(u)}}return t!=
0}return!1};
var Dua=function(q,w,u){_.ih(function(){q.apply(w,u)})};
_.r$.prototype.clear=function(q){if(q){var w=this.topics_[q];w&&(w.forEach(this.unsubscribeByKey,this),delete this.topics_[q])}else this.subscriptions_.length=0,this.topics_={}};
_.r$.prototype.getCount=function(q){if(q){var w=this.topics_[q];return w?w.length:0}q=0;for(w in this.topics_)q+=this.getCount(w);return q};
_.r$.prototype.disposeInternal=function(){_.r$.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var rBj=new _.r$;var GP=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(GP,_.bE);GP.prototype.getColdHashData=function(){return _.fy(this,3)};
GP.prototype.getHotHashData=function(){return _.fy(this,5)};
GP.prototype.setHotHashData=function(q){return _.sf(this,5,q)};var n14=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(n14,_.bE);var bLu=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(bLu,_.bE);_.k=bLu.prototype;_.k.getDeviceId=function(){return _.fy(this,6)};
_.k.getExperimentIds=function(q){var w=_.T_(this,9,_.oK,3,!0);ck(w,q);return w[q]};
_.k.getPlayerType=function(){return _.mw(this,36)};
_.k.setHomeGroupInfo=function(q){return _.e9(this,81,q)};
_.k.clearLocationPlayabilityToken=function(){return _.Fo(this,89)};var Uk=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Uk,_.bE);Uk.prototype.setKey=function(q){return _.sf(this,1,q)};
Uk.prototype.getValue=function(){return Jv(this,2,gd7)};
var gd7=[2,3,4,5,6];var Zva=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Zva,_.bE);Zva.prototype.setTrackingParams=function(q){return _.Fo(this,1,_.EX(q,!1))};var Y6J=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Y6J,_.bE);var sDz=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(sDz,_.bE);sDz.prototype.getExperimentIds=function(q){var w=_.T_(this,5,_.VH,3,!0);ck(w,q);return w[q]};var oA=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(oA,_.bE);oA.prototype.getToken=function(){return _.iI(this,2)};
oA.prototype.setToken=function(q){return _.sf(this,2,q)};var ds=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(ds,_.bE);ds.prototype.setSafetyMode=function(q){return _.Xo(this,5,q)};var rs=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(rs,_.bE);rs.prototype.setClient=function(q){return _.e9(this,1,q)};var WRc={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 Hql;_.bp=function(){var q=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.uc.addEventListener("beforeinstallprompt",function(w){w.preventDefault();q.deferredInstallPrompt=w});
_.uc.addEventListener("appinstalled",function(){q.appInstalledEventFired=!0},{once:!0})};
Hql=function(){if(!_.uc.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.uc.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.uc.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.uc.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.uc.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(q){return"WEB_DISPLAY_MODE_UNKNOWN"}};var I_s=function(){this.syncHeaders=!0},iq7=function(q){var w={},u=[];
"USER_SESSION_ID"in _.Yw&&u.push({key:"u",value:_.Et("USER_SESSION_ID")});if(u=Y1H(u))w.Authorization=u,u=q=q==null?void 0:q.sessionIndex,u===void 0&&(u=Number(_.Et("SESSION_INDEX",0)),u=isNaN(u)?0:u),_.T("voice_search_auth_header_removal")||(w["X-Goog-AuthUser"]=u.toString()),"INNERTUBE_HOST_OVERRIDE"in _.Yw||(w["X-Origin"]=window.location.origin),q===void 0&&"DELEGATED_SESSION_ID"in _.Yw&&(w["X-Goog-PageId"]=_.Et("DELEGATED_SESSION_ID"));return w};var pGZ={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Kd=_.hP("ytglobal.prefsUserPrefsPrefs_")||{},$ua;_.wr("ytglobal.prefsUserPrefsPrefs_",Kd);_.Bz=function(){this.cookieName=_.Et("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Et("ALT_PREF_COOKIE_DOMAIN","youtube.com");var q=_.TQ.get(this.cookieName,void 0);q&&this.parse(q)};
_.UC=function(){$ua||($ua=new _.Bz);return $ua};
_.Bz.prototype.get=function(q,w){vF3(q);bvF(q);q=Kd[q]!==void 0?Kd[q].toString():null;return q!=null?q:w?w:""};
_.Bz.prototype.set=function(q,w){vF3(q);bvF(q);if(w==null)throw Error("Ic");Kd[q]=w.toString()};
_.Bz.prototype.getFlag=function(q){return!!((Y8T("f"+(Math.floor(q/31)+1))||0)&1<<q%31)};
_.TM=function(q,w,u){q="f"+(Math.floor(w/31)+1);w=1<<w%31;var y=Y8T(q)||0;y=u?y|w:y&~w;y===0?delete Kd[q]:(u=y.toString(16),Kd[q]=u.toString())};
_.Bz.prototype.remove=function(q){vF3(q);bvF(q);delete Kd[q]};
_.Bz.prototype.save=function(){var q=!0;_.T("web_secure_pref_cookie_killswitch")&&(q=!1);_.Cv(this.cookieName,this.dump(),63072E3,this.cookieDomain,q)};
_.Bz.prototype.clear=function(){_.db.clear(Kd)};
_.Bz.prototype.dump=function(){var q=[],w;for(w in Kd)Kd.hasOwnProperty(w)&&q.push(w+"="+encodeURIComponent(String(Kd[w])));return q.join("&")};
var bvF=function(q){if(/^f([1-9][0-9]*)$/.test(q))throw Error("Jc`"+q);},vF3=function(q){if(!/^\w+$/.test(q))throw Error("Kc`"+q);
},Y8T=function(q){q=Kd[q]!==void 0?Kd[q].toString():null;
return q!=null&&/^[A-Fa-f0-9]+$/.test(q)?parseInt(q,16):null};
_.Bz.prototype.parse=function(q){q=decodeURIComponent(q).split("&");for(var w=0;w<q.length;w++){var u=q[w].split("="),y=u[0];(u=u[1])&&(Kd[y]=u.toString())}};var tpy={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"},Nku={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},QDu={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},Xfu={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var e6;_.xQ=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.mg=function(q,w,u){return q.addJob(w,0,u)};
_.xQ.prototype.addLowPriorityJob=function(q,w){return this.addJob(q,1,w)};
_.iq=function(q,w,u){return q.addJob(w,2,u)};
_.dE=function(q,w,u){return q.addJob(w,3,u)};
_.ko=function(q,w,u){return q.addJob(w,4,u)};
e6=function(q){var w=_.hP("yt.scheduler.instance.addImmediateJob");w?w(q):q()};
_.xQ.prototype.debounce=function(q,w,u){var y=this,e=0,t=function(){e&&y.cancelJob(e);e=y.addJob(q,w,u);y.cancelDebouncedJobMap.set(t,e)};
return t};
_.xQ.prototype.cancelThrottle=function(q){(q=this.cancelThrottledJobMap.get(q))&&q()};var qd=function(){_.xQ.apply(this,arguments)};
_.O(qd,_.xQ);_.Vk=function(){qd.instance||(qd.instance=new qd);return qd.instance};
qd.prototype.addJob=function(q,w,u){u!==void 0&&Number.isNaN(Number(u))&&(u=void 0);var y=_.hP("yt.scheduler.instance.addJob");return y?y(q,w,u):u===void 0?(q(),NaN):_.WG(q,u||0)};
qd.prototype.cancelJob=function(q){if(q===void 0||!Number.isNaN(Number(q))){var w=_.hP("yt.scheduler.instance.cancelJob");w?w(q):_.Nu(q)}};
qd.prototype.start=function(){var q=_.hP("yt.scheduler.instance.start");q&&q()};
qd.prototype.pause=function(){var q=_.hP("yt.scheduler.instance.pause");q&&q()};
_.pi=_.Vk();_.mI.prototype.set=function(q,w){w===void 0?this.mechanism.remove(q):this.mechanism.set(q,(0,_.dD)(w))};
_.mI.prototype.get=function(q){try{var w=this.mechanism.get(q)}catch(u){return}if(w!==null)try{return JSON.parse(w)}catch(u){throw"Storage: Invalid value was encountered";}};
_.mI.prototype.remove=function(q){this.mechanism.remove(q)};var wM=function(q){this.mechanism=q};
_.w9(wM,_.mI);var gFZ=function(q){this.data=q},EFG=function(q){return q===void 0||q instanceof gFZ?q:new gFZ(q)};
wM.prototype.set=function(q,w){wM.superClass_.set.call(this,q,EFG(w))};
wM.prototype.getWrapper=function(q){q=wM.superClass_.get.call(this,q);if(q===void 0||q instanceof Object)return q;throw"Storage: Invalid value was encountered";};
wM.prototype.get=function(q){if(q=this.getWrapper(q)){if(q=q.data,q===void 0)throw"Storage: Invalid value was encountered";}else q=void 0;return q};_.w9(AG,wM);_.RWx=function(q){var w=q.creation;q=q.expiration;return!!q&&q<_.qG()||!!w&&w>_.qG()};
AG.prototype.set=function(q,w,u){if(w=EFG(w)){if(u){if(u<_.qG()){AG.prototype.remove.call(this,q);return}w.expiration=u}w.creation=_.qG()}AG.superClass_.set.call(this,q,w)};
AG.prototype.getWrapper=function(q,w){var u=AG.superClass_.getWrapper.call(this,q);if(u)if(!w&&_.RWx(u))AG.prototype.remove.call(this,q);else return u};var uR=function(){};
uR.prototype.next=function(){return yB};
var yB={done:!0,value:void 0},eF=function(q){return{value:q,done:!1}};
uR.prototype.__iterator__=function(){return this};
_.cG3=function(q){if(q instanceof uR)return q;if(typeof q.__iterator__=="function")return q.__iterator__(!1);if(_.uP(q)){var w=0,u=new uR;u.next=function(){for(;;){if(w>=q.length)return yB;if(w in q)return eF(q[w++]);w++}};
return u}throw Error("Lc");};var S8T=function(q){if(q instanceof k2||q instanceof tL||q instanceof P_)return q;if(typeof q.next=="function")return new k2(function(){return q});
if(typeof q[Symbol.iterator]=="function")return new k2(function(){return q[Symbol.iterator]()});
if(typeof q.__iterator__=="function")return new k2(function(){return q.__iterator__()});
throw Error("Mc");},k2=function(q){this.func_=q};
k2.prototype.__iterator__=function(){return new tL(this.func_())};
k2.prototype[Symbol.iterator]=function(){return new P_(this.func_())};
k2.prototype.toEs6=function(){return new P_(this.func_())};
var tL=function(q){this.JSC$8427_iter_=q};
_.O(tL,uR);tL.prototype.next=function(){return this.JSC$8427_iter_.next()};
tL.prototype[Symbol.iterator]=function(){return new P_(this.JSC$8427_iter_)};
tL.prototype.toEs6=function(){return new P_(this.JSC$8427_iter_)};
var P_=function(q){k2.call(this,function(){return q});
this.JSC$8430_iter_=q};
_.O(P_,k2);P_.prototype.next=function(){return this.JSC$8430_iter_.next()};var hWG=function(){};var X7=function(){};
_.w9(X7,hWG);X7.prototype.getCount=function(){for(var q=0,w=_.P(this),u=w.next();!u.done;u=w.next())q++;return q};
X7.prototype[Symbol.iterator]=function(){return S8T(this.__iterator__(!0)).toEs6()};
X7.prototype.clear=function(){var q=Array.from(this);q=_.P(q);for(var w=q.next();!w.done;w=q.next())this.remove(w.value)};_.w9(JG,X7);_.k=JG.prototype;_.k.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var q=this.storage_;if(q)try{q.setItem("__sak","1");q.removeItem("__sak");var w=!0}catch(u){w=u instanceof DOMException&&(u.name==="QuotaExceededError"||u.code===22||u.code===1014||u.name==="NS_ERROR_DOM_QUOTA_REACHED")&&q&&q.length!==0}else w=!1;this.cachedIsStorageAvailable_=w}return this.cachedIsStorageAvailable_};
_.k.set=function(q,w){F7(this);try{this.storage_.setItem(q,w)}catch(u){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.k.get=function(q){F7(this);q=this.storage_.getItem(q);if(typeof q!=="string"&&q!==null)throw"Storage mechanism: Invalid value was encountered";return q};
_.k.remove=function(q){F7(this);this.storage_.removeItem(q)};
_.k.getCount=function(){F7(this);return this.storage_.length};
_.k.__iterator__=function(q){F7(this);var w=0,u=this.storage_,y=new uR;y.next=function(){if(w>=u.length)return yB;var e=u.key(w++);if(q)return eF(e);e=u.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return eF(e)};
return y};
_.k.clear=function(){F7(this);this.storage_.clear()};
_.k.key=function(q){F7(this);return this.storage_.key(q)};
var F7=function(q){if(q.storage_==null)throw Error("Nc");q.isAvailable()||yM(Error("Nc"))};_.w9(G6J,JG);_.w9(nGu,JG);_.w9(zQ,X7);zQ.prototype.set=function(q,w){this.mechanism_.set(this.JSC$8445_prefix_+q,w)};
zQ.prototype.get=function(q){return this.mechanism_.get(this.JSC$8445_prefix_+q)};
zQ.prototype.remove=function(q){this.mechanism_.remove(this.JSC$8445_prefix_+q)};
zQ.prototype.__iterator__=function(q){var w=this.mechanism_[Symbol.iterator](),u=this,y=new uR;y.next=function(){var e=w.next();if(e.done)return e;for(e=e.value;e.slice(0,u.JSC$8445_prefix_.length)!=u.JSC$8445_prefix_;){e=w.next();if(e.done)return e;e=e.value}return eF(q?e.slice(u.JSC$8445_prefix_.length):u.mechanism_.get(e))};
return y};_.gr=function(q){this.expiringStorage_=(q=_.HN4(q))?new AG(q):null;this.JSC$8449_domain_=document.domain||window.location.hostname};
_.gr.prototype.set=function(q,w,u,y){u=u||31104E3;this.remove(q);if(this.expiringStorage_)try{this.expiringStorage_.set(q,w,Date.now()+u*1E3);return}catch(t){}var e="";if(y)try{e=escape((0,_.dD)(w))}catch(t){return}else e=escape(w);_.Cv(q,e,u,this.JSC$8449_domain_)};
_.gr.prototype.get=function(q,w){var u=void 0,y=!this.expiringStorage_;if(!y)try{u=this.expiringStorage_.get(q)}catch(e){y=!0}if(y&&(u=_.TQ.get(q,void 0))&&(u=unescape(u),w))try{u=JSON.parse(u)}catch(e){this.remove(q),u=void 0}return u};
_.gr.prototype.remove=function(q){this.expiringStorage_&&this.expiringStorage_.remove(q);_.ypy(q,"/",this.JSC$8449_domain_)};
_.gr.prototype.getCreationTime=function(q){return this.expiringStorage_&&(q=(this.expiringStorage_.getWrapper(q)||{}).creation,typeof q==="number")?q:null};var sxj=function(){var q;return function(){q||(q=new _.gr("ytidb"));return q}}();var Qxf;_.D7=[];Qxf=!1;var pfo=IBM||iNc;var GX={},j2k=(GX.AUTH_INVALID="No user identifier specified.",GX.EXPLICIT_ABORT="Transaction was explicitly aborted.",GX.IDB_NOT_SUPPORTED="IndexedDB is not supported.",GX.MISSING_INDEX="Index not created.",GX.MISSING_OBJECT_STORES="Object stores not created.",GX.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",GX.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",GX.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",GX.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",GX.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",GX.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",GX.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",GX),n9={},l7x=(n9.AUTH_INVALID="ERROR",n9.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",n9.EXPLICIT_ABORT="IGNORED",
n9.IDB_NOT_SUPPORTED="ERROR",n9.MISSING_INDEX="WARNING",n9.MISSING_OBJECT_STORES="ERROR",n9.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",n9.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",n9.QUOTA_EXCEEDED="WARNING",n9.QUOTA_MAYBE_EXCEEDED="WARNING",n9.UNKNOWN_ABORT="WARNING",n9.INCOMPATIBLE_DB_VERSION="WARNING",n9),H_={},LI6=(H_.AUTH_INVALID=!1,H_.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,H_.EXPLICIT_ABORT=!1,H_.IDB_NOT_SUPPORTED=!1,H_.MISSING_INDEX=!1,H_.MISSING_OBJECT_STORES=!1,H_.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,H_.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,H_.QUOTA_EXCEEDED=!1,H_.QUOTA_MAYBE_EXCEEDED=!0,H_.UNKNOWN_ABORT=!0,H_.INCOMPATIBLE_DB_VERSION=!1,H_),YF=function(q,w,u,y,e){w=w===void 0?{}:w;u=u===void 0?j2k[q]:u;y=y===void 0?l7x[q]:y;e=e===void 0?LI6[q]:e;_.fv.call(this,u,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:q},w));this.type=q;this.message=u;this.level=y;this.retryable=e;Object.setPrototypeOf(this,YF.prototype)};
_.O(YF,_.fv);var Mvj=function(q,w){YF.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:w,foundObjectStores:q},j2k.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Mvj.prototype)};
_.O(Mvj,YF);var U4c=function(q,w){var u=Error.call(this);this.message=u.message;"stack"in u&&(this.stack=u.stack);this.index=q;this.objectStore=w;Object.setPrototypeOf(this,U4c.prototype)};
_.O(U4c,Error);var T14=["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 cG=function(q){this.executor=q},R2=function(q){var w=this;
this.state={status:"PENDING"};this.JSC$8477_onFulfilled=[];this.JSC$8477_onRejected=[];q=q.executor;var u=function(e){if(w.state.status==="PENDING"){w.state={status:"FULFILLED",value:e};e=_.P(w.JSC$8477_onFulfilled);for(var t=e.next();!t.done;t=e.next())t=t.value,t()}},y=function(e){if(w.state.status==="PENDING"){w.state={status:"REJECTED",
reason:e};e=_.P(w.JSC$8477_onRejected);for(var t=e.next();!t.done;t=e.next())t=t.value,t()}};
try{q(u,y)}catch(e){y(e)}};
R2.all=function(q){return new R2(new cG(function(w,u){var y=[],e=q.length;e===0&&w(y);for(var t={i$jscomp$504:0};t.i$jscomp$504<q.length;t={i$jscomp$504:t.i$jscomp$504},++t.i$jscomp$504)R2.resolve(q[t.i$jscomp$504]).then(function(X){return function(G){y[X.i$jscomp$504]=G;e--;e===0&&w(y)}}(t)).catch(function(X){u(X)})}))};
R2.resolve=function(q){return new R2(new cG(function(w,u){q instanceof R2?q.then(w,u):w(q)}))};
R2.reject=function(q){return new R2(new cG(function(w,u){u(q)}))};
R2.prototype.then=function(q,w){var u=this,y=q!=null?q:ONH,e=w!=null?w:d4l;return new R2(new cG(function(t,X){u.state.status==="PENDING"?(u.JSC$8477_onFulfilled.push(function(){KIZ(u,u,y,t,X)}),u.JSC$8477_onRejected.push(function(){B$P(u,u,e,t,X)})):u.state.status==="FULFILLED"?KIZ(u,u,y,t,X):u.state.status==="REJECTED"&&B$P(u,u,e,t,X)}))};
R2.prototype.catch=function(q){return this.then(void 0,q)};
var KIZ=function(q,w,u,y,e){try{if(q.state.status!=="FULFILLED")throw Error("Qc");var t=u(q.state.value);t instanceof R2?xuT(q,w,t,y,e):y(t)}catch(X){e(X)}},B$P=function(q,w,u,y,e){try{if(q.state.status!=="REJECTED")throw Error("Rc");
var t=u(q.state.reason);t instanceof R2?xuT(q,w,t,y,e):y(t)}catch(X){e(X)}},xuT=function(q,w,u,y,e){w===u?e(new TypeError("Sc")):u.then(function(t){t instanceof R2?xuT(q,w,t,y,e):y(t)},function(t){e(t)})};var W_;W_=window;_.eW=W_.ytcsi&&W_.ytcsi.now?W_.ytcsi.now:W_.performance&&W_.performance.timing&&W_.performance.now&&W_.performance.timing.navigationStart?function(){return W_.performance.timing.navigationStart+W_.performance.now()}:function(){return(new Date).getTime()};var hG=function(q,w){this.JSC$8489_wrapped=q;this.options=w;this.transactionCount=0;this.startedMs=Math.round((0,_.eW)());this.hasUnknownAbortedTransaction=!1},uok,y6k,QB,tWX;
hG.prototype.add=function(q,w,u){return _.Mu(this,[q],{mode:"readwrite",enableRetries:!0},function(y){return y.objectStore(q).add(w,u)})};
hG.prototype.clear=function(q){return _.Mu(this,[q],{mode:"readwrite",enableRetries:!0},function(w){return w.objectStore(q).clear()})};
hG.prototype.close=function(){this.JSC$8489_wrapped.close();var q;((q=this.options)==null?0:q.closed)&&this.options.closed()};
hG.prototype.count=function(q,w){return _.Mu(this,[q],{mode:"readonly",enableRetries:!0},function(u){return u.objectStore(q).count(w)})};
var Rz=function(q,w,u){q=q.JSC$8489_wrapped.createObjectStore(w,u);return new sG(q)};
hG.prototype.delete=function(q,w){return _.Mu(this,[q],{mode:"readwrite",enableRetries:!0},function(u){return u.objectStore(q).delete(w)})};
var qEP=function(q,w){return _.Mu(q,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(u){return u.objectStore("ResponseStore").index("byInterface").delete(w)})};
hG.prototype.get=function(q,w){return _.Mu(this,[q],{mode:"readonly",enableRetries:!0},function(u){return u.objectStore(q).get(w)})};
hG.prototype.getAll=function(q,w,u){return _.Mu(this,[q],{mode:"readonly",enableRetries:!0},function(y){return y.objectStore(q).getAll(w,u)})};
hG.prototype.put=function(q,w,u){return _.Mu(this,[q],{mode:"readwrite",enableRetries:!0},function(y){return y.objectStore(q).put(w,u)})};
hG.prototype.objectStoreNames=function(){return Array.from(this.JSC$8489_wrapped.objectStoreNames)};
_.Mu=function(q,w,u,y){var e,t,X,G,n,N,Q,I,U,d,V,J;return _.F(function(a){switch(a.nextAddress){case 1:var b={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof u==="string"?b.mode=u:Object.assign(b,u);e=b;q.transactionCount++;t=e.enableRetries?3:1;X=0;case 2:if(G){a.jumpTo(4);break}X++;n=Math.round((0,_.eW)());_.tD(a,5);N=q.JSC$8489_wrapped.transaction(w,e.mode);b=new m44(N);b=wTP(b,y);return _.H(a,b,7);case 7:return Q=a.yieldResult,I=Math.round((0,_.eW)()),uok(q,n,I,X,void 0,
w.join(),e),a.return(Q);case 5:U=_.nm(a);d=Math.round((0,_.eW)());V=C9c(U,q.JSC$8489_wrapped.name,w.join(),q.JSC$8489_wrapped.version);if((J=V instanceof YF&&!V.retryable)||X>=t)uok(q,n,d,X,V,w.join(),e),G=V;a.jumpTo(2);break;case 4:return a.return(Promise.reject(G))}})};
uok=function(q,w,u,y,e,t,X){w=u-w;e?(e instanceof YF&&(e.type==="QUOTA_EXCEEDED"||e.type==="QUOTA_MAYBE_EXCEEDED")&&pv("QUOTA_EXCEEDED",{dbName:vG(q.JSC$8489_wrapped.name),objectStoreNames:t,transactionCount:q.transactionCount,transactionMode:X.mode}),e instanceof YF&&e.type==="UNKNOWN_ABORT"&&(u-=q.startedMs,u<0&&u>=2147483648&&(u=0),pv("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:t,transactionDuration:w,transactionCount:q.transactionCount,dbDuration:u}),q.hasUnknownAbortedTransaction=!0),
y6k(q,!1,y,t,w,X.tag),_.Z7(e)):y6k(q,!0,y,t,w,X.tag)};
y6k=function(q,w,u,y,e,t){pv("TRANSACTION_ENDED",{objectStoreNames:y,connectionHasUnknownAbortedTransaction:q.hasUnknownAbortedTransaction,duration:e,isSuccessful:w,tryCount:u,tag:t===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":t})};
hG.prototype.getVersion=function(){return this.JSC$8489_wrapped.version};
hG.prototype.getName=function(){return this.JSC$8489_wrapped.name};
var sG=function(q){this.JSC$8504_wrapped=q};
sG.prototype.add=function(q,w){return Sv(this.JSC$8504_wrapped.add(q,w))};
sG.prototype.autoIncrement=function(){return this.JSC$8504_wrapped.autoIncrement};
sG.prototype.clear=function(){return Sv(this.JSC$8504_wrapped.clear()).then(function(){})};
var cT=function(q,w,u){q.JSC$8504_wrapped.createIndex(w,u,{unique:!1})};
sG.prototype.count=function(q){return Sv(this.JSC$8504_wrapped.count(q))};
var euT=function(q,w){return BG(q,{query:w},function(u){return u.delete().then(function(){return u.continue()})}).then(function(){})};
sG.prototype.delete=function(q){return q instanceof IDBKeyRange?euT(this,q):Sv(this.JSC$8504_wrapped.delete(q))};
sG.prototype.get=function(q){return Sv(this.JSC$8504_wrapped.get(q))};
sG.prototype.getAll=function(q,w){return"getAll"in IDBObjectStore.prototype?Sv(this.JSC$8504_wrapped.getAll(q,w)):kPx(this,q,w)};
var kPx=function(q,w,u){var y=[];return BG(q,{query:w},function(e){if(!(u!==void 0&&y.length>=u))return y.push(e.getValue()),e.continue()}).then(function(){return y})};
sG.prototype.index=function(q){try{return new Nd(this.JSC$8504_wrapped.index(q))}catch(w){if(w instanceof Error&&w.name==="NotFoundError")throw new U4c(q,this.JSC$8504_wrapped.name);throw w;}};
sG.prototype.getName=function(){return this.JSC$8504_wrapped.name};
sG.prototype.keyPath=function(){return this.JSC$8504_wrapped.keyPath};
sG.prototype.put=function(q,w){return Sv(this.JSC$8504_wrapped.put(q,w))};
var BG=function(q,w,u){q=q.JSC$8504_wrapped.openCursor(w.query,w.direction);return tWX(q).then(function(y){return fBH(y,u)})},m44=function(q){var w=this;
this.JSC$8512_wrapped=q;this.objectStoreCache=new Map;this.JSC$8512_aborted=!1;this.done=new Promise(function(u,y){w.JSC$8512_wrapped.addEventListener("complete",function(){u()});
w.JSC$8512_wrapped.addEventListener("error",function(e){e.currentTarget===e.target&&y(w.JSC$8512_wrapped.error)});
w.JSC$8512_wrapped.addEventListener("abort",function(){var e=w.JSC$8512_wrapped.error;if(e)y(e);else if(!w.JSC$8512_aborted){e=YF;for(var t=w.JSC$8512_wrapped.objectStoreNames,X=[],G=0;G<t.length;G++){var n=t.item(G);if(n===null)throw Error("Tc");X.push(n)}e=new e("UNKNOWN_ABORT",{objectStoreNames:X.join(),dbName:w.JSC$8512_wrapped.db.name,mode:w.JSC$8512_wrapped.mode});y(e)}})})},wTP=function(q,w){var u=new Promise(function(y,e){try{w(q).then(function(t){y(t)}).catch(e)}catch(t){e(t),q.abort()}});
return Promise.all([u,q.done]).then(function(y){return _.P(y).next().value})};
m44.prototype.abort=function(){this.JSC$8512_wrapped.abort();this.JSC$8512_aborted=!0;throw new YF("EXPLICIT_ABORT");};
m44.prototype.objectStore=function(q){q=this.JSC$8512_wrapped.objectStore(q);var w=this.objectStoreCache.get(q);w||(w=new sG(q),this.objectStoreCache.set(q,w));return w};
var Nd=function(q){this.JSC$8514_wrapped=q};
Nd.prototype.count=function(q){return Sv(this.JSC$8514_wrapped.count(q))};
Nd.prototype.delete=function(q){return _.kZ(this,{query:q},function(w){return w.delete().then(function(){return w.continue()})})};
Nd.prototype.get=function(q){return Sv(this.JSC$8514_wrapped.get(q))};
Nd.prototype.getAll=function(q,w){return"getAll"in IDBIndex.prototype?Sv(this.JSC$8514_wrapped.getAll(q,w)):PYr(this,q,w)};
var PYr=function(q,w,u){var y=[];return _.kZ(q,{query:w},function(e){if(!(u!==void 0&&y.length>=u))return y.push(e.getValue()),e.continue()}).then(function(){return y})};
Nd.prototype.keyPath=function(){return this.JSC$8514_wrapped.keyPath};
Nd.prototype.unique=function(){return this.JSC$8514_wrapped.unique};
_.kZ=function(q,w,u){q=q.JSC$8514_wrapped.openCursor(w.query===void 0?null:w.query,w.direction===void 0?"next":w.direction);return tWX(q).then(function(y){return fBH(y,u)})};
QB=function(q,w){this.request=q;this.cursor=w};
tWX=function(q){return Sv(q).then(function(w){return w?new QB(q,w):null})};
QB.prototype.continue=function(q){this.cursor.continue(q);return tWX(this.request)};
QB.prototype.delete=function(){return Sv(this.cursor.delete()).then(function(){})};
QB.prototype.getValue=function(){return this.cursor.value};
QB.prototype.update=function(q){return Sv(this.cursor.update(q))};var Iy=function(q,w){this.name=q;this.options=w;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},XTT;
Iy.prototype.openDb=function(q,w,u){u=u===void 0?{}:u;return JpH(q,w,u)};
Iy.prototype.delete=function(q){q=q===void 0?{}:q;return _.l4(this.name,q)};
XTT=function(q,w){return new YF("INCOMPATIBLE_DB_VERSION",{dbName:q.name,oldVersion:q.options.version,newVersion:w})};
_.Lv=function(q,w){if(!w)throw E8("openWithToken",vG(q.name));return q.open()};
Iy.prototype.open=function(){var q=this;if(!this.isCompatible)throw XTT(this);if(this.connectionPromise)return this.connectionPromise;var w,u=function(){q.connectionPromise===w&&(q.connectionPromise=void 0)},y={blocking:function(t){t.close()},
closed:u,terminated:u,upgrade:this.options.upgrade},e=function(){var t,X,G,n,N,Q,I,U,d,V;return _.F(function(J){switch(J.nextAddress){case 1:return X=(t=Error().stack)!=null?t:"",_.tD(J,2),_.H(J,q.openDb(q.name,q.options.version,y),4);case 4:for(var a=G=J.yieldResult,b=q.options,g=[],l=_.P(Object.keys(b.objectStores)),S=l.next();!S.done;S=l.next()){S=S.value;var eH=b.objectStores[S],x=eH.removedAtVersion===void 0?Number.MAX_VALUE:eH.removedAtVersion;!(a.JSC$8489_wrapped.version>=eH.addedAtVersion)||
a.JSC$8489_wrapped.version>=x||a.JSC$8489_wrapped.objectStoreNames.contains(S)||g.push(S)}n=g;if(n.length===0){J.jumpTo(5);break}N=Object.keys(q.options.objectStores);Q=G.objectStoreNames();if(q.timesReopenedToFixMissingObjectStore<_.Fc("ytidb_reopen_db_retries",0))return q.timesReopenedToFixMissingObjectStore++,G.close(),_.Z7(new YF("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:q.name,expectedObjectStores:N,foundObjectStores:Q})),J.return(e());if(!(q.timesDeletedToFixMissingObjectStore<_.Fc("ytidb_remake_db_retries",
1))){J.jumpTo(6);break}q.timesDeletedToFixMissingObjectStore++;return _.H(J,q.delete(),7);case 7:return _.Z7(new YF("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:q.name,expectedObjectStores:N,foundObjectStores:Q})),J.return(e());case 6:throw new Mvj(Q,N);case 5:return J.return(G);case 2:I=_.nm(J);if(I instanceof DOMException?I.name!=="VersionError":"DOMError"in self&&I instanceof DOMError?I.name!=="VersionError":!(I instanceof Object&&"message"in I)||I.message!=="An attempt was made to open a database using a lower version than the existing version."){J.jumpTo(8);
break}return _.H(J,q.openDb(q.name,void 0,Object.assign({},y,{upgrade:void 0})),9);case 9:U=J.yieldResult;d=U.getVersion();if(q.options.version!==void 0&&d>q.options.version+1)throw U.close(),q.isCompatible=!1,XTT(q,d);return J.return(U);case 8:throw u(),I instanceof Error&&!_.T("ytidb_async_stack_killswitch")&&(I.stack=I.stack+"\n"+X.substring(X.indexOf("\n")+1)),C9c(I,q.name,"",(V=q.options.version)!=null?V:-1);}})};
return this.connectionPromise=w=e()};var zUl=new Iy("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(q,w){w(1)&&Rz(q,"databases",{keyPath:"actualName"})}});var bNH,$4M=new function(){}(new function(){});new _.Gt;var Fr3=function(q,w){Iy.call(this,q,w);this.options=w;$F(q)};
_.O(Fr3,Iy);var LHj=function(q,w){var u;return function(){u||(u=new Fr3(q,w));return u}};
Fr3.prototype.openDb=function(q,w,u){u=u===void 0?{}:u;return(this.options.shared?cp7:RUz)(q,w,Object.assign({},u))};
Fr3.prototype.delete=function(q){q=q===void 0?{}:q;return(this.options.shared?lBj:SMu)(this.name,q)};var GP3={},Mpo=y_("ytGcfConfig",{objectStores:(GP3.coldConfigStore={addedAtVersion:1},GP3.hotConfigStore={addedAtVersion:1},GP3),shared:!1,upgrade:function(q,w){w(1)&&(cT(Rz(q,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),cT(Rz(q,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var nZa=function(){_.VG.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var q=_.hP("yt.gcf.config.hotUpdateCallbacks");q?(this.localHotConfigJobQueue=[].concat(_.Cm(q)),this.sharedHotConfigJobQueue=q):(this.sharedHotConfigJobQueue=[],_.wr("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.O(nZa,_.VG);nZa.prototype.disposeInternal=function(){for(var q=_.P(this.localHotConfigJobQueue),w=q.next();!w.done;w=q.next()){var u=this.sharedHotConfigJobQueue;w=u.indexOf(w.value);w>=0&&u.splice(w,1)}this.localHotConfigJobQueue.length=0;_.VG.prototype.disposeInternal.call(this)};var zC=function(){var q=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new nZa;this.TEST_ONLY={initializeConfigDb:function(){q.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return q.coldGlobalConfigGroup},
setHotConfigGroup:function(w){HiX(q,w)},
setHotHashData:function(w){q.setHotHashData(w)},
setColdConfigGroup:function(w){Wra(q,w)},
getColdHashData:function(){return q.coldHashData},
getHotHashData:function(){return q.hotHashData},
getHotConfigGroup:function(){return q.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return szj()},
getExportedHotConfigGroup:function(){return iR()},
getExportedColdHashData:function(){return _.hP("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.hP("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){Nra(q)},
resetInstance:function(){q.setHotHashData(void 0);QzZ(q);delete zC.instance},
setDebounceTimer:function(w){q.debounceTimer=w},
getDebounceTimer:function(){return q.debounceTimer}}},IT$=function(){if(!zC.instance){var q=new zC;
zC.instance=q}return zC.instance},UQT=function(q){var w;
_.F(function(u){if(u.nextAddress==1)return _.T("start_client_gcf")||_.T("delete_gcf_config_db")?_.T("start_client_gcf")?_.H(u,_.uY(),3):u.jumpTo(2):u.return();u.nextAddress!=2&&((w=u.yieldResult)&&_.VV()&&!_.T("delete_gcf_config_db")?(q.isConfigDbInitialized=!0,Nra(q)):(iiP(q),r6X(q)));return _.T("delete_gcf_config_db")?_.H(u,u4y(),0):u.jumpTo(0)})},yBM=function(){var q;
return(q=iR())!=null?q:_.Et("RAW_HOT_CONFIG_GROUP")},TrX=function(q){var w,u,y,e,t,X;
return _.F(function(G){switch(G.nextAddress){case 1:if(q.hotGlobalConfigGroup)return G.return(iR());if(!q.isConfigDbInitialized)return w=E8("getHotConfig IDB not initialized"),_.jZ(w),G.return(Promise.reject(w));u=qQ();y=_.Et("TIME_CREATED_MS");if(!u){e=E8("getHotConfig token error");_.jZ(e);G.jumpTo(2);break}return _.H(G,wwu(u),3);case 3:if((t=G.yieldResult)&&t.timestamp>y)return HiX(q,t.config),q.setHotHashData(t.hashData),G.return(iR());case 2:r6X(q);if(!(u&&q.hotGlobalConfigGroup&&q.hotHashData)){G.jumpTo(4);
break}return _.H(G,B1J(q.hotGlobalConfigGroup,q.hotHashData,u,y),4);case 4:return q.hotGlobalConfigGroup?G.return(iR()):(X=new _.fv("Config not available in ytConfig"),_.jZ(X),G.return(Promise.reject(X)))}})},dQk=function(q){var w,u,y,e,t,X;
return _.F(function(G){switch(G.nextAddress){case 1:if(q.coldGlobalConfigGroup)return G.return(szj());if(!q.isConfigDbInitialized)return w=E8("getColdConfig IDB not initialized"),_.jZ(w),G.return(Promise.reject(w));u=qQ();y=_.Et("TIME_CREATED_MS");if(!u){e=E8("getColdConfig");_.jZ(e);G.jumpTo(2);break}return _.H(G,qCj(u),3);case 3:if((t=G.yieldResult)&&t.timestamp>y)return Wra(q,t.config),CYc(q,t.configData),QzZ(q,t.hashData),G.return(szj());case 2:iiP(q);if(!(u&&q.coldGlobalConfigGroup&&q.coldHashData&&
q.configData)){G.jumpTo(4);break}return _.H(G,x4M(q.coldGlobalConfigGroup,q.coldHashData,q.configData,u,y),4);case 4:return q.coldGlobalConfigGroup?G.return(szj()):(X=new _.fv("Config not available in ytConfig"),_.jZ(X),G.return(Promise.reject(X)))}})},Nra=function(q){if(!q.hotGlobalConfigGroup||!q.coldGlobalConfigGroup){if(!qQ()){var w=E8("scheduleGetConfigs");
_.jZ(w)}q.initJob||(q.initJob=_.pi.addLowPriorityJob(function(){return _.F(function(u){switch(u.nextAddress){case 1:return _.tD(u,2),_.H(u,TrX(q),4);case 4:_.jv(u,3);break;case 2:_.nm(u);case 3:return _.tD(u,5),_.H(u,dQk(q),7);case 7:_.jv(u,6);break;case 5:_.nm(u);case 6:q.initJob&&(q.initJob=0),_.HI(u)}})},100))}},BNy=function(q,w,u){var y,e,t;
return _.F(function(X){switch(X.nextAddress){case 1:if(!_.T("start_client_gcf")){X.jumpTo(0);break}u&&HiX(q,u);q.setHotHashData(w);y=qQ();if(!y){X.jumpTo(3);break}if(u){X.jumpTo(4);break}return _.H(X,wwu(y),5);case 5:e=X.yieldResult,u=(t=e)==null?void 0:t.config;case 4:return _.H(X,B1J(u,w,y),3);case 3:if(u)for(var G=u,n=_.P(q.configUpdateService.sharedHotConfigJobQueue),N=n.next();!N.done;N=n.next())N=N.value,N(G);_.HI(X)}})},xaz=function(q,w,u){var y,e,t,X;
return _.F(function(G){if(G.nextAddress==1){if(!_.T("start_client_gcf"))return G.jumpTo(0);QzZ(q,w);return(y=qQ())?u?G.jumpTo(4):_.H(G,qCj(y),5):G.jumpTo(0)}G.nextAddress!=4&&(e=G.yieldResult,u=(t=e)==null?void 0:t.config);if(!u)return G.jumpTo(0);X=u.configData;return _.H(G,x4M(u,w,X,y),0)})},UUy=function(){var q=IT$(),w=(0,_.eW)()-q.debounceTimer;
if(!(q.debounceTimer!==0&&w<_.Fc("send_config_hash_timer"))){w=_.hP("yt.gcf.config.coldConfigData");var u=_.hP("yt.gcf.config.hotHashData"),y=_.hP("yt.gcf.config.coldHashData");w&&u&&y&&(q.debounceTimer=(0,_.eW)());return{coldConfigData:w,hotHashData:u,coldHashData:y}}},iiP=function(q){Wra(q,_.Et("RAW_COLD_CONFIG_GROUP"));
QzZ(q,_.Et("SERIALIZED_COLD_HASH_DATA"));var w;CYc(q,(w=q.coldGlobalConfigGroup)==null?void 0:w.configData)},r6X=function(q){HiX(q,_.Et("RAW_HOT_CONFIG_GROUP"));
q.setHotHashData(_.Et("SERIALIZED_HOT_HASH_DATA"))},HiX=function(q,w){q.hotGlobalConfigGroup=w;
_.wr("yt.gcf.config.hotConfigGroup",q.hotGlobalConfigGroup||null)},Wra=function(q,w){q.coldGlobalConfigGroup=w;
_.wr("yt.gcf.config.coldConfigGroup",q.coldGlobalConfigGroup||null)};
zC.prototype.setHotHashData=function(q){this.hotHashData=q;_.wr("yt.gcf.config.hotHashData",this.hotHashData||null)};
var QzZ=function(q,w){q.coldHashData=w;_.wr("yt.gcf.config.coldHashData",q.coldHashData||null)},CYc=function(q,w){q.configData=w;
_.wr("yt.gcf.config.coldConfigData",q.configData||null)},iR=function(){return _.hP("yt.gcf.config.hotConfigGroup")},szj=function(){return _.hP("yt.gcf.config.coldConfigGroup")};var Iz={},OiP=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Iz.assign=function(q){for(var w=Array.prototype.slice.call(arguments,1);w.length;){var u=w.shift();if(u){if(typeof u!=="object")throw new TypeError("Wc`"+u);for(var y in u)Object.prototype.hasOwnProperty.call(u,y)&&(q[y]=u[y])}}return q};
Iz.shrinkBuf=function(q,w){if(q.length===w)return q;if(q.subarray)return q.subarray(0,w);q.length=w;return q};
var oZa={arraySet:function(q,w,u,y,e){if(w.subarray&&q.subarray)q.set(w.subarray(u,u+y),e);else for(var t=0;t<y;t++)q[e+t]=w[u+t]},
flattenChunks:function(q){var w,u;var y=u=0;for(w=q.length;y<w;y++)u+=q[y].length;var e=new Uint8Array(u);y=u=0;for(w=q.length;y<w;y++){var t=q[y];e.set(t,u);u+=t.length}return e}},VWP={arraySet:function(q,w,u,y,e){for(var t=0;t<y;t++)q[e+t]=w[u+t]},
flattenChunks:function(q){return[].concat.apply([],q)}};
Iz.setTyped=function(){OiP?(Iz.Buf8=Uint8Array,Iz.Buf16=Uint16Array,Iz.Buf32=Int32Array,Iz.assign(Iz,oZa)):(Iz.Buf8=Array,Iz.Buf16=Array,Iz.Buf32=Array,Iz.assign(Iz,VWP))};
Iz.setTyped();var fT$=!0;try{new Uint8Array(1)}catch(q){fT$=!1}
var wQj=function(q){var w,u,y=q.length,e=0;for(w=0;w<y;w++){var t=q.charCodeAt(w);if((t&64512)===55296&&w+1<y){var X=q.charCodeAt(w+1);(X&64512)===56320&&(t=65536+(t-55296<<10)+(X-56320),w++)}e+=t<128?1:t<2048?2:t<65536?3:4}var G=new Iz.Buf8(e);for(w=u=0;u<e;w++)t=q.charCodeAt(w),(t&64512)===55296&&w+1<y&&(X=q.charCodeAt(w+1),(X&64512)===56320&&(t=65536+(t-55296<<10)+(X-56320),w++)),t<128?G[u++]=t:(t<2048?G[u++]=192|t>>>6:(t<65536?G[u++]=224|t>>>12:(G[u++]=240|t>>>18,G[u++]=128|t>>>12&63),G[u++]=
128|t>>>6&63),G[u++]=128|t&63);return G};var E1M={};E1M=function(q,w,u,y){var e=q&65535|0;q=q>>>16&65535|0;for(var t;u!==0;){t=u>2E3?2E3:u;u-=t;do e=e+w[y++]|0,q=q+e|0;while(--t);e%=65521;q%=65521}return e|q<<16|0};for(var J6={},rM,mQj=[],A6F=0;A6F<256;A6F++){rM=A6F;for(var J6x=0;J6x<8;J6x++)rM=rM&1?3988292384^rM>>>1:rM>>>1;mQj[A6F]=rM}J6=function(q,w,u,y){u=y+u;for(q^=-1;y<u;y++)q=q>>>8^mQj[(q^w[y])&255];return q^-1};var TP={};TP={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 J7M=[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],a_M=[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],q1H=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],YCs=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],oz=Array(576);ni(oz);var V_=Array(60);ni(V_);var rr=Array(512);ni(rr);var iY=Array(256);ni(iY);var zKy=Array(29);ni(zKy);var DUz=Array(30);ni(DUz);var KRo,Bks,xUM,MBs=!1;var ZT;
ZT=[new DT(0,0,0,0,function(q,w){var u=65535;for(u>q.pending_buf_size-5&&(u=q.pending_buf_size-5);;){if(q.lookahead<=1){zP(q);if(q.lookahead===0&&w===0)return 1;if(q.lookahead===0)break}q.strstart+=q.lookahead;q.lookahead=0;var y=q.block_start+u;if(q.strstart===0||q.strstart>=y)if(q.lookahead=q.strstart-y,q.strstart=y,fi(q,!1),q.strm.avail_out===0)return 1;if(q.strstart-q.block_start>=q.w_size-262&&(fi(q,!1),q.strm.avail_out===0))return 1}q.insert=0;if(w===4)return fi(q,!0),q.strm.avail_out===0?3:
4;q.strstart>q.block_start&&fi(q,!1);return 1}),
new DT(4,4,8,4,RKs),new DT(4,5,16,8,RKs),new DT(4,6,32,32,RKs),new DT(4,4,16,16,az),new DT(8,16,32,32,az),new DT(8,16,128,128,az),new DT(8,32,128,256,az),new DT(32,128,258,1024,az),new DT(32,258,258,4096,az)];var LRJ={};LRJ=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 uXy=Object.prototype.toString;
l_4.prototype.push=function(q,w){var u=this.strm,y=this.options.chunkSize;if(this.ended)return!1;var e=w===~~w?w:w===!0?4:0;typeof q==="string"?u.input=wQj(q):uXy.call(q)==="[object ArrayBuffer]"?u.input=new Uint8Array(q):u.input=q;u.next_in=0;u.avail_in=u.input.length;do{u.avail_out===0&&(u.output=new Iz.Buf8(y),u.next_out=0,u.avail_out=y);q=jDJ(u,e);if(q!==1&&q!==0)return zuP(this,q),this.ended=!0,!1;if(u.avail_out===0||u.avail_in===0&&(e===4||e===2))if(this.options.to==="string"){var t=Iz.shrinkBuf(u.output,
u.next_out);w=t;t=t.length;if(t<65537&&(w.subarray&&fT$||!w.subarray))w=String.fromCharCode.apply(null,Iz.shrinkBuf(w,t));else{for(var X="",G=0;G<t;G++)X+=String.fromCharCode(w[G]);w=X}this.chunks.push(w)}else w=Iz.shrinkBuf(u.output,u.next_out),this.chunks.push(w)}while((u.avail_in>0||u.avail_out===0)&&q!==1);if(e===4)return(u=this.strm)&&u.state?(y=u.state.status,y!==42&&y!==69&&y!==73&&y!==91&&y!==103&&y!==113&&y!==666?q=Ci(u,-2):(u.state=null,q=y===113?Ci(u,-3):0)):q=-2,zuP(this,q),this.ended=
!0,q===0;e===2&&(zuP(this,0),u.avail_out=0);return!0};
var zuP=function(q,w){w===0&&(q.result=q.options.to==="string"?q.chunks.join(""):Iz.flattenChunks(q.chunks));q.chunks=[];q.err=w;q.msg=q.strm.msg};var aTT=typeof TextEncoder!=="undefined"?new TextEncoder:null,zj6=aTT?function(q){return aTT.encode(q)}:function(q){q=_.ON(q);
for(var w=new Uint8Array(q.length),u=0;u<w.length;u++)w[u]=q[u];return w};var w_f={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},yL6={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var UG=function(q,w){this.version=q;this.args=w};
UG.prototype.serialize=function(){return{version:this.version,args:this.args}};var PAf=function(q,w){this.topic=q;this.dataClass=w};
PAf.prototype.toString=function(){return this.topic};var DQ3=_.hP("ytPubsub2Pubsub2Instance")||new _.r$;_.r$.prototype.subscribe=_.r$.prototype.subscribe;_.r$.prototype.unsubscribeByKey=_.r$.prototype.unsubscribeByKey;_.r$.prototype.publish=_.r$.prototype.publish;_.r$.prototype.clear=_.r$.prototype.clear;_.wr("ytPubsub2Pubsub2Instance",DQ3);var tNM=_.hP("ytPubsub2Pubsub2SubscribedKeys")||{};_.wr("ytPubsub2Pubsub2SubscribedKeys",tNM);var FO7=_.hP("ytPubsub2Pubsub2TopicToKeys")||{};_.wr("ytPubsub2Pubsub2TopicToKeys",FO7);
var XQc=_.hP("ytPubsub2Pubsub2IsAsync")||{};_.wr("ytPubsub2Pubsub2IsAsync",XQc);_.wr("ytPubsub2Pubsub2SkipSubKey",null);var rr4=void 0,IVs=void 0;var fVf=_.Fc("max_body_size_to_compress",5E5),mtc=_.Fc("min_body_size_to_compress",500),vT=!0,Zaj=0,bY=0,Dto=_.Fc("compression_performance_threshold_lr",250),pQM=_.Fc("slow_compressions_before_abandon_count",4),CAy=!1,dt6=new Map,Jrs=1,Ary=!0;_.w9(YZ,bau);YZ.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 ZiP=function(q,w,u){u||(u=0);var y=q.W_;if(typeof w==="string")for(var e=0;e<16;e++)y[e]=w.charCodeAt(u)<<24|w.charCodeAt(u+1)<<16|w.charCodeAt(u+2)<<8|w.charCodeAt(u+3),u+=4;else for(e=0;e<16;e++)y[e]=w[u]<<24|w[u+1]<<16|w[u+2]<<8|w[u+3],u+=4;for(w=16;w<80;w++)u=y[w-3]^y[w-8]^y[w-14]^y[w-16],y[w]=(u<<1|u>>>31)&4294967295;w=q.chain_[0];u=q.chain_[1];e=q.chain_[2];for(var t=q.chain_[3],X=q.chain_[4],G,n,N=0;N<80;N++)N<40?N<20?(G=t^u&(e^t),n=1518500249):(G=u^e^t,n=1859775393):N<60?(G=u&e|t&(u|e),
n=2400959708):(G=u^e^t,n=3395469782),G=(w<<5|w>>>27)+G+X+n+y[N]&4294967295,X=t,t=e,e=(u<<30|u>>>2)&4294967295,u=w,w=G;q.chain_[0]=q.chain_[0]+w&4294967295;q.chain_[1]=q.chain_[1]+u&4294967295;q.chain_[2]=q.chain_[2]+e&4294967295;q.chain_[3]=q.chain_[3]+t&4294967295;q.chain_[4]=q.chain_[4]+X&4294967295};
YZ.prototype.update=function(q,w){if(q!=null){w===void 0&&(w=q.length);for(var u=w-this.blockSize,y=0,e=this.buf_,t=this.inbuf_;y<w;){if(t==0)for(;y<=u;)ZiP(this,q,y),y+=this.blockSize;if(typeof q==="string")for(;y<w;){if(e[t]=q.charCodeAt(y),++t,++y,t==this.blockSize){ZiP(this,e);t=0;break}}else for(;y<w;)if(e[t]=q[y],++t,++y,t==this.blockSize){ZiP(this,e);t=0;break}}this.inbuf_=t;this.total_+=w}};
YZ.prototype.digest=function(){var q=[],w=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var u=this.blockSize-1;u>=56;u--)this.buf_[u]=w&255,w/=256;ZiP(this,this.buf_);for(u=w=0;u<5;u++)for(var y=24;y>=0;y-=8)q[w]=this.chain_[u]>>y&255,++w;return q};var ENc;var C9=function(q){var w=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(Q){w.databaseToken=Q},
triggerThrottle:function(){w.throttledSend()},
cancelThrottle:function(){w.cancelThrottledSend()},
immediateSend:function(Q){return _.F(function(I){return _.H(I,w.immediateSend(Q),0)})},
requestWithinAgeLimit:function(Q,I){return w.requestWithinAgeLimit(Q,I)},
retryQueuedRequests:function(){w.retryQueuedRequests()}};
var u;this.throttleTimeout=(u=q.throttleTimeout)!=null?u:100;var y;this.retryMaxAttempts=(y=q.retryMaxAttempts)!=null?y:1;var e;this.requestAgeLimitMs=(e=q.requestAgeLimitMs)!=null?e:2592E6;var t;this.queuedRequestAgeLimitMs=(t=q.queuedRequestAgeLimitMs)!=null?t:12E4;var X;this.retryDelayMs=(X=q.retryDelayMs)!=null?X:5E3;var G;this.databaseToken=(G=q.databaseToken)!=null?G:void 0;this.enableCleaning=!!q.enableCleaning;var n;this.cleaningRate=(n=q.cleaningRate)!=null?n:.1;var N;this.potentialEsfErrorLimit=
(N=q.potentialEsfErrorLimit)!=null?N:10;q.handleError&&(this.handleError=q.handleError);q.handleWarning&&(this.handleWarning=q.handleWarning);q.disableYtIdbTransactions&&(this.disableYtIdbTransactions=q.disableYtIdbTransactions);q.bypassDbTokenDependency&&(this.bypassDbTokenDependency=q.bypassDbTokenDependency);this.getBooleanFlag=q.getBooleanFlag;this.jobManager=q.jobManager;this.logsStore=q.logsStore;this.networkManager=q.networkManager;this.sendFn=q.sendFn;this.onlineEvent=q.onlineEvent;this.offlineEvent=
q.offlineEvent;TX(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&pTa(this)},pTa=function(q){TX(q)&&!q.disableYtIdbTransactions&&(q.initialized=!0,q.enableCleaning&&Math.random()<=q.cleaningRate&&q.logsStore.cleanLogsStore(q.databaseToken),q.retryQueuedRequests(),q.networkManager.isNetworkAvailable()&&q.throttledSend(),q.networkManager.listen(q.onlineEvent,q.throttledSend.bind(q)),q.networkManager.listen(q.offlineEvent,q.cancelThrottledSend.bind(q)))};
_.k=C9.prototype;_.k.writeThenSend=function(q,w){var u=this;w=w===void 0?{}:w;if(TX(this)&&this.initialized){var y={url:q,options:w,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(y,this.databaseToken).then(function(e){y.id=e;u.networkManager.isNetworkAvailable()&&u.immediateSend(y)}).catch(function(e){u.immediateSend(y);
$QP(u,e)})}else this.sendFn(q,w)};
_.k.sendThenWrite=function(q,w,u){var y=this;w=w===void 0?{}:w;if(TX(this)&&this.initialized){var e={url:q,options:w,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(e.skipRetry=u);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var t=w.onError?w.onError:function(){};
w.onError=function(X,G){return _.F(function(n){if(n.nextAddress==1)return _.H(n,y.logsStore.set(e,y.databaseToken).catch(function(N){$QP(y,N)}),2);
t(X,G);_.HI(n)})}}this.sendFn(q,w,e.skipRetry)}else this.logsStore.set(e,this.databaseToken).catch(function(X){y.sendFn(q,w,e.skipRetry);
$QP(y,X)})}else this.sendFn(q,w,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&u)};
_.k.sendAndWrite=function(q,w){var u=this;w=w===void 0?{}:w;if(TX(this)&&this.initialized){var y={url:q,options:w,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,t=w.onSuccess?w.onSuccess:function(){};
y.options.onSuccess=function(X,G){y.id!==void 0?u.logsStore.deleteRequest(y.id,u.databaseToken):e=!0;u.networkManager.networkStatusHint&&u.getBooleanFlag&&u.getBooleanFlag("vss_network_hint")&&u.networkManager.networkStatusHint(!0);t(X,G)};
this.sendFn(y.url,y.options,void 0,!0);this.logsStore.set(y,this.databaseToken).then(function(X){y.id=X;e&&u.logsStore.deleteRequest(y.id,u.databaseToken)}).catch(function(X){$QP(u,X)})}else this.sendFn(q,w,void 0,!0)};
_.k.throttledSend=function(){var q=this;if(!TX(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var w;return _.F(function(u){if(u.nextAddress==1)return _.H(u,q.logsStore.getMostRecentByStatus("NEW",q.databaseToken),2);if(u.nextAddress!=3)return w=u.yieldResult,w?_.H(u,q.immediateSend(w),3):(q.cancelThrottledSend(),u.return());q.intervalJob&&(q.intervalJob=0,q.throttledSend());_.HI(u)})},this.throttleTimeout))};
_.k.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.k.immediateSend=function(q){var w=this,u;return _.F(function(y){switch(y.nextAddress){case 1:if(!TX(w))throw Error("$c");if(q.id===void 0){y.jumpTo(2);break}return _.H(y,w.logsStore.markAsQueued(q.id,w.databaseToken),3);case 3:(u=y.yieldResult)||w.handleWarning(Error("ad"));case 2:if(w.requestWithinAgeLimit(q,w.requestAgeLimitMs)){y.jumpTo(4);break}w.handleWarning(Error("bd"));if(q.id===void 0){y.jumpTo(5);break}return _.H(y,w.logsStore.deleteRequest(q.id,w.databaseToken),5);case 5:return y.return();
case 4:q.skipRetry||(q=vZ3(w,q));if(!q){y.jumpTo(0);break}if(!q.skipRetry||q.id===void 0){y.jumpTo(8);break}return _.H(y,w.logsStore.deleteRequest(q.id,w.databaseToken),8);case 8:w.sendFn(q.url,q.options,!!q.skipRetry),_.HI(y)}})};
var vZ3=function(q,w){if(!TX(q))throw Error("cd");var u=w.options.onError?w.options.onError:function(){};
w.options.onError=function(e,t){var X,G,n,N;return _.F(function(Q){switch(Q.nextAddress){case 1:X=jOz(t);(G=lVs(t))&&q.getBooleanFlag&&q.getBooleanFlag("web_enable_error_204")&&q.handleError(Error("dd"),w.url,t);if(!(q.getBooleanFlag&&q.getBooleanFlag("nwl_consider_error_code")&&X||q.getBooleanFlag&&!q.getBooleanFlag("nwl_consider_error_code")&&q.potentialEsfErrorCounter<=q.potentialEsfErrorLimit)){Q.jumpTo(2);break}if(!q.networkManager.sendNetworkCheckRequest){Q.jumpTo(3);break}return _.H(Q,q.networkManager.sendNetworkCheckRequest(),
3);case 3:if(q.networkManager.isNetworkAvailable()){Q.jumpTo(2);break}u(e,t);if(!q.getBooleanFlag||!q.getBooleanFlag("nwl_consider_error_code")||((n=w)==null?void 0:n.id)===void 0){Q.jumpTo(6);break}return _.H(Q,q.logsStore.resetRequest(w.id,q.databaseToken,!1),6);case 6:return Q.return();case 2:if(q.getBooleanFlag&&q.getBooleanFlag("nwl_consider_error_code")&&!X&&q.potentialEsfErrorCounter>q.potentialEsfErrorLimit)return Q.return();q.potentialEsfErrorCounter++;if(((N=w)==null?void 0:N.id)===void 0){Q.jumpTo(8);
break}return w.sendCount<q.retryMaxAttempts?_.H(Q,q.logsStore.resetRequest(w.id,q.databaseToken,!0,G?!1:void 0),12):_.H(Q,q.logsStore.deleteRequest(w.id,q.databaseToken),8);case 12:q.jobManager.addLowPriorityJob(function(){q.networkManager.isNetworkAvailable()&&q.throttledSend()},q.retryDelayMs);
case 8:u(e,t),_.HI(Q)}})};
var y=w.options.onSuccess?w.options.onSuccess:function(){};
w.options.onSuccess=function(e,t){var X;return _.F(function(G){if(G.nextAddress==1)return((X=w)==null?void 0:X.id)===void 0?G.jumpTo(2):_.H(G,q.logsStore.deleteRequest(w.id,q.databaseToken),2);q.networkManager.networkStatusHint&&q.getBooleanFlag&&q.getBooleanFlag("vss_network_hint")&&q.networkManager.networkStatusHint(!0);y(e,t);_.HI(G)})};
return w};
C9.prototype.requestWithinAgeLimit=function(q,w){q=q.timestamp;return this.now()-q>=w?!1:!0};
C9.prototype.retryQueuedRequests=function(){var q=this;if(!TX(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(w){w&&!q.requestWithinAgeLimit(w,q.queuedRequestAgeLimitMs)?q.jobManager.addLowPriorityJob(function(){return _.F(function(u){if(u.nextAddress==1)return w.id===void 0?u.jumpTo(2):_.H(u,q.logsStore.resetRequest(w.id,q.databaseToken),2);q.retryQueuedRequests();_.HI(u)})}):q.networkManager.isNetworkAvailable()&&q.throttledSend()})};
var $QP=function(q,w){q.writeError&&!q.networkManager.isNetworkAvailable()?q.writeError(w):q.handleError(w)},TX=function(q){return!!q.databaseToken||q.bypassDbTokenDependency};var LOH;var uyM={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,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};var bir={},ktH=y_("ServiceWorkerLogsDatabase",{objectStores:(bir.SWHealthLog={addedAtVersion:1},bir),shared:!0,upgrade:function(q,w){w(1)&&cT(Rz(q,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var W4H={},Hpz=0;var Iuo;var dM=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Ki=function(){if(!dM.instance){var q=_.hP("yt.networkRequestMonitor.instance")||new dM;
_.wr("yt.networkRequestMonitor.instance",q);dM.instance=q}return dM.instance};
dM.prototype.requestComplete=function(q,w){w&&(this.anyRequestHasSucceeded=!0);q=this.removeParams(q);this.requestMap.get(q)||this.requestMap.set(q,w)};
dM.prototype.isEndpointCFR=function(q){q=this.removeParams(q);return(q=this.requestMap.get(q))?!1:q===!1&&this.anyRequestHasSucceeded?!0:null};
dM.prototype.removeParams=function(q){return q.split("?")[0]};
dM.prototype.removeParams=dM.prototype.removeParams;dM.prototype.isEndpointCFR=dM.prototype.isEndpointCFR;dM.prototype.requestComplete=dM.prototype.requestComplete;dM.getInstance=Ki;var OG=function(q){_.Q4.call(this);var w=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=q!=null?q:{addLowPriorityJob:function(e,t){return setTimeout(e,t)},
cancelJob:function(e){clearTimeout(e)}};
var u,y;this.isOnline=(y=(u=window.navigator)==null?void 0:u.onLine)!=null?y:!0;this.onNavigatorChange=function(){return _.F(function(e){return _.H(e,YEF(w),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||gZx(this)};
_.O(OG,_.Q4);OG.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete OG.instance};
OG.prototype.isNetworkAvailable=function(){return this.isOnline};
var gZx=function(q){q.pollingJob=q.jobManager.addLowPriorityJob(function(){var w;return _.F(function(u){if(u.nextAddress==1)return q.isOnline?((w=window.navigator)==null?0:w.onLine)?u.jumpTo(3):_.H(u,YEF(q),3):_.H(u,YEF(q),3);gZx(q);_.HI(u)})},3E4)},YEF=function(q,w){return q.networkRequestPromise?q.networkRequestPromise:q.networkRequestPromise=new Promise(function(u){var y,e,t,X;
return _.F(function(G){switch(G.nextAddress){case 1:return y=window.AbortController?new window.AbortController:void 0,t=(e=y)==null?void 0:e.signal,X=!1,_.tD(G,2,3),y&&(q.abortTimeoutKey=q.jobManager.addLowPriorityJob(function(){y.abort()},w||2E4)),_.H(G,fetch("/generate_204",{method:"HEAD",
signal:t}),5);case 5:X=!0;case 3:_.Xg(G);q.networkRequestPromise=void 0;q.abortTimeoutKey&&(q.jobManager.cancelJob(q.abortTimeoutKey),q.abortTimeoutKey=0);X!==q.isOnline&&(q.isOnline=X,q.isOnline?q.dispatchEvent("networkstatus-online"):q.dispatchEvent("networkstatus-offline"));u(X);_.G7(G,0);break;case 2:_.nm(G),X=!1,G.jumpTo(3)}})})};var oy=function(){_.Q4.call(this);var q=this;this.shouldFlushErrors=!1;OG.instance||(OG.instance=new OG(_.pi));this.sharedNetworkStatusManager=OG.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(q.shouldFlushErrors&&_.T("offline_error_handling")){var w=ipj().get("errors",!0);if(w){for(var u in w)if(w[u]){var y=new _.fv(u,"sent via offline_errors");y.name=w[u].name;y.stack=w[u].stack;y.level=w[u].level;_.cl(y)}ipj().set("errors",{},2592E3,!0)}}})};
_.O(oy,_.Q4);var EZF=function(){if(!oy.instance){var q=_.hP("yt.networkStatusManager.instance")||new oy;_.wr("yt.networkStatusManager.instance",q);oy.instance=q}return oy.instance};
_.k=oy.prototype;_.k.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.k.networkStatusHint=function(q){this.sharedNetworkStatusManager.isOnline=q};
_.k.getWindowStatus=function(){var q=window.navigator.onLine;return q===void 0?!0:q};
_.k.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.k.listen=function(q,w){return this.sharedNetworkStatusManager.listen(q,w)};
_.k.sendNetworkCheckRequest=function(q){q=YEF(this.sharedNetworkStatusManager,q);q.then(function(w){_.T("use_cfr_monitor")&&Ki().requestComplete("generate_204",w)});
return q};
oy.prototype.sendNetworkCheckRequest=oy.prototype.sendNetworkCheckRequest;oy.prototype.listen=oy.prototype.listen;oy.prototype.enableErrorFlushing=oy.prototype.enableErrorFlushing;oy.prototype.getWindowStatus=oy.prototype.getWindowStatus;oy.prototype.networkStatusHint=oy.prototype.networkStatusHint;oy.prototype.isNetworkAvailable=oy.prototype.isNetworkAvailable;oy.getInstance=EZF;_.MQ=function(q){q=q===void 0?{}:q;_.Q4.call(this);var w=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=EZF();var u=_.hP("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);u&&(q.rateLimit?(this.rateLimit=q.rateLimit,u("networkstatus-online",function(){Ru$(w,"publicytnetworkstatus-online")}),u("networkstatus-offline",function(){Ru$(w,"publicytnetworkstatus-offline")})):(u("networkstatus-online",function(){w.dispatchEvent("publicytnetworkstatus-online")}),u("networkstatus-offline",
function(){w.dispatchEvent("publicytnetworkstatus-offline")})))};
_.O(_.MQ,_.Q4);_.MQ.prototype.isNetworkAvailable=function(){var q=_.hP("yt.networkStatusManager.instance.isNetworkAvailable");return q?q.bind(this.nsmInstance)():!0};
_.MQ.prototype.networkStatusHint=function(q){var w=_.hP("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);w&&w(q)};
_.MQ.prototype.sendNetworkCheckRequest=function(q){var w=this,u;return _.F(function(y){u=_.hP("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(w.nsmInstance);return _.T("skip_network_check_if_cfr")&&Ki().isEndpointCFR("generate_204")?y.return(new Promise(function(e){var t;w.networkStatusHint(((t=window.navigator)==null?void 0:t.onLine)||!0);e(w.isNetworkAvailable())})):u?y.return(u(q)):y.return(!0)})};
var Ru$=function(q,w){q.rateLimit?q.lastJobTime?(_.pi.cancelJob(q.schedulerJob),q.schedulerJob=_.pi.addLowPriorityJob(function(){q.lastPublicSignalSent!==w&&(q.dispatchEvent(w),q.lastPublicSignalSent=w,q.lastJobTime=(0,_.eW)())},q.rateLimit-((0,_.eW)()-q.lastJobTime))):(q.dispatchEvent(w),q.lastPublicSignalSent=w,q.lastJobTime=(0,_.eW)()):q.dispatchEvent(w)};var d_f,VB=function(){C9.call(this,{logsStore:{cleanLogsStore:yez,deleteRequest:uTz,getMostRecentByStatus:xtf,markAsQueued:qPM,resetRequest:wMu,set:BGf},networkManager:_.OpM(),handleError:function(q,w,u){var y,e=u==null?void 0:(y=u.error)==null?void 0:y.code;if(e===400||e===415){var t;q=new _.fv(q.message,w,u==null?void 0:(t=u.error)==null?void 0:t.code);_.jZ(q,void 0,void 0,void 0,!0)}else _.cl(q)},
handleWarning:_.jZ,sendFn:TCj,now:_.eW,writeError:reu,jobManager:_.Vk(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.Fc("potential_esf_error_limit",10),getBooleanFlag:_.T,disableYtIdbTransactions:!(_.VV()&&_.oMl())});this.initializationPromise=new _.Gt;_.T("networkless_immediately_drop_all_requests")&&eMj();lBj("LogsDatabaseV2")};
_.O(VB,C9);_.SEX=function(){var q=_.hP("yt.networklessRequestController.instance");q||(q=new VB,_.wr("yt.networklessRequestController.instance",q),_.T("networkless_logging")&&_.uY().then(function(w){q.databaseToken=w;pTa(q);q.initializationPromise.resolve();q.enableCleaning&&Math.random()<=q.cleaningRate&&q.databaseToken&&Pp6(q.databaseToken);_.T("networkless_immediately_drop_sw_health_store")&&c6k(q)}));
return q};
VB.prototype.writeThenSend=function(q,w){w||(w={});w=Cpf(q,w);_.VV()||(this.initialized=!1);C9.prototype.writeThenSend.call(this,q,w)};
VB.prototype.sendThenWrite=function(q,w,u){w||(w={});w=Cpf(q,w);_.VV()||(this.initialized=!1);C9.prototype.sendThenWrite.call(this,q,w,u)};
VB.prototype.sendAndWrite=function(q,w){w||(w={});w=Cpf(q,w);_.VV()||(this.initialized=!1);C9.prototype.sendAndWrite.call(this,q,w)};
VB.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var c6k=function(q){var w;_.F(function(u){if(!q.databaseToken)throw w=E8("clearSWHealthLogsDb"),w;return u.return(XMz(q.databaseToken).catch(function(y){q.handleError(y)}))})};_.fuJ=!1;_.VQ4=_.uc.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.fuJ};_.wr("ytNetworklessLoggingInitializationOptions",_.VQ4);var Zn=function(q){var w=this;this.config_=null;q?this.config_=q:y7z()&&(this.config_=_.t6());_.mg(_.pi,function(){hj7(w)},5E3)};
Zn.prototype.isReady=function(){!this.config_&&y7z()&&(this.config_=_.t6());return!!this.config_};
var S1f=function(q,w,u,y){!_.Et("VISITOR_DATA")&&w!=="visitor_id"&&Math.random()<.01&&_.jZ(new _.fv("Missing VISITOR_DATA when sending innertube request.",w,u,y));if(!q.isReady()){var e=new _.fv("innertube xhrclient not ready",w,u,y);_.cl(e);throw e;}var t={headers:y.headers||{},method:"POST",postParams:u,postBody:y.postBody,postBodyFormat:y.postBodyFormat||"JSON",onTimeout:function(){y.onTimeout()},
onFetchTimeout:y.onTimeout,onSuccess:function(I,U){if(y.onSuccess)y.onSuccess(U)},
onFetchSuccess:function(I){if(y.onSuccess)y.onSuccess(I)},
onError:function(I,U){if(y.onError)y.onError(U)},
onFetchError:function(I){if(y.onError)y.onError(I)},
timeout:y.timeout,withCredentials:!0,compress:y.compress};t.headers["Content-Type"]||(t.headers["Content-Type"]="application/json");var X="";(e=q.config_.innertubeHostOverride)&&(X=e);var G=q.config_.innertubeUseThirdPartyAuth||!1,n=_.r7l(G,X,y);Object.assign(t.headers,n);t.headers.Authorization&&!X&&G&&(t.headers["x-origin"]=window.location.origin);var N=_.Bl(X+("/youtubei/"+q.config_.innertubeApiVersion+"/"+w),{alt:"json"}),Q=function(I){I=I===void 0?!1:I;var U;if(y.retry&&X!="www.youtube-nocookie.com"&&
(I||_.T("skip_ls_gel_retry")||t.headers["Content-Type"]!=="application/json"||(U=RjH(w,u,n,G)),U)){var d=t.onSuccess,V=t.onFetchSuccess;t.onSuccess=function(b,g){crl(U);d(b,g)};
u.onFetchSuccess=function(b,g){crl(U);V(b,g)}}try{if(I&&y.retry&&!y.networklessOptions.bypassNetworkless)t.method="POST",y.networklessOptions.writeThenSend?_.SEX().writeThenSend(N,t):_.SEX().sendAndWrite(N,t);
else if(y.compress){var J=!y.networklessOptions.writeThenSend;if(t.postBody){var a=t.postBody;typeof a!=="string"&&(a=JSON.stringify(t.postBody));aVf(N,a,t,_.I2,J)}else aVf(N,JSON.stringify(t.postParams),t,bJM,J)}else _.T("web_all_payloads_via_jspb")?_.I2(N,t):bJM(N,t)}catch(b){if(b.name==="InvalidAccessError")U&&(crl(U),U=0),_.jZ(Error("fd"));else throw b;}U&&_.mg(_.pi,function(){hj7(q)},5E3)};
_.m_z()?YMc().then(function(I){Q(I)}):Q(!1)};var JYy=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(JYy,_.bE);var huX=0,Je6=_.PS?"webkit":_.tv?"moz":_.kf?"ms":rF7?"o":"";_.wr("ytDomDomGetNextId",_.hP("ytDomDomGetNextId")||function(){return++huX});var jzk={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},yR=function(q){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(q=
q||window.event){this.event=q;for(var w in q)w in jzk||(this[w]=q[w]);this.scale=q.scale;this.rotation=q.rotation;var u=q.target||q.srcElement;u&&u.nodeType==3&&(u=u.parentNode);this.target=u;var y=q.relatedTarget;if(y)try{y=y.nodeName?y:null}catch(e){y=null}else this.type=="mouseover"?y=q.fromElement:this.type=="mouseout"&&(y=q.toElement);this.relatedTarget=y;this.clientX=q.clientX!=void 0?q.clientX:q.pageX;this.clientY=q.clientY!=void 0?q.clientY:q.pageY;this.keyCode=q.keyCode?q.keyCode:q.which;
this.charCode=q.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=q.altKey;this.ctrlKey=q.ctrlKey;this.shiftKey=q.shiftKey;this.metaKey=q.metaKey;this.pageX_=q.pageX;this.pageY_=q.pageY}}catch(e){}},lTF=function(q){if(document.body&&document.documentElement){var w=document.body.scrollTop+document.documentElement.scrollTop;
q.pageX_=q.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);q.pageY_=q.clientY+w}};
yR.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
yR.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
yR.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var uD=_.uc.ytEventsEventsListeners||{};_.wr("ytEventsEventsListeners",uD);var $_f=_.uc.ytEventsEventsCounter||{count:0};_.wr("ytEventsEventsCounter",$_f);var vMu=_.NB(function(){var q=!1;try{var w=Object.defineProperty({},"capture",{get:function(){q=!0}});
window.addEventListener("test",null,w)}catch(u){}return q});_.w9(k8,_.VG);k8.prototype.onMouseMove_=function(q){q.pageX_===void 0&&lTF(q);var w=q.pageX_;q.pageY_===void 0&&lTF(q);this.position_=new _.Vx(w,q.pageY_)};
k8.prototype.checkPosition_=function(){if(this.position_){var q=(0,_.eW)();if(this.previousTime_!=0){var w=this.previousPosition_,u=this.position_,y=w.x-u.x;w=w.y-u.y;y=Math.sqrt(y*y+w*w)/(q-this.previousTime_);this.cycles_[this.index_]=Math.abs((y-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(u=w=0;u<4;u++)w+=this.cycles_[u]||0;w>=3&&this.callback_();this.previousVelocity_=y}this.previousTime_=q;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
k8.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.bpf(this.mouseListenerKey_)};var RMy={};var KPs=new _.M("rawColdConfigGroup");var MfM=new _.M("rawHotConfigGroup");var LrZ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(LrZ,_.bE);var AYc=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(AYc,_.bE);var fn=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q,500)};
_.O(fn,_.bE);fn.prototype.getPayloadCase=function(){return _.UL(this,MWX)};
fn.prototype.getContext=function(){return _.PT(this,AYc,33)};
var MWX=[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];var cM6=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(cM6,_.bE);var rM6=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(rM6,_.bE);rM6.prototype.setVideoId=function(q){return iD(this,1,Ual,bj(q))};
rM6.prototype.getPlaylistId=function(){return _.iI(this,Ok(this,Ual,2))};
var Ual=[1,2];var vdy=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(vdy,_.bE);vdy.prototype.getContext=function(){return _.PT(this,rs,1)};
vdy.prototype.getTier=function(){return _.mw(this,7)};var KrG,F$,GC;KrG=_.uc.ytPubsubPubsubInstance||new _.r$;F$=_.uc.ytPubsubPubsubSubscribedKeys||{};GC=_.uc.ytPubsubPubsubTopicToKeys||{};_.cey=_.uc.ytPubsubPubsubIsSynchronous||{};_.r$.prototype.subscribe=_.r$.prototype.subscribe;_.r$.prototype.unsubscribeByKey=_.r$.prototype.unsubscribeByKey;_.r$.prototype.publish=_.r$.prototype.publish;_.r$.prototype.clear=_.r$.prototype.clear;_.wr("ytPubsubPubsubInstance",KrG);_.wr("ytPubsubPubsubTopicToKeys",GC);_.wr("ytPubsubPubsubIsSynchronous",_.cey);
_.wr("ytPubsubPubsubSubscribedKeys",F$);var Hm=window;var f9=_.T("web_enable_lifecycle_monitoring")&&L44()!==0,Bra=_.T("web_enable_lifecycle_monitoring");var qkx=function(q){var w=this;var u=u===void 0?0:u;var y=y===void 0?_.Vk():y;this.JSC$8711_defaultPriority=u;this.scheduler=y;this.completedResolver=new _.Gt;this.scheduledPayloads=q;for(q={i$jscomp$528:0};q.i$jscomp$528<this.scheduledPayloads.length;q={payload$jscomp$18:void 0,i$jscomp$528:q.i$jscomp$528},q.i$jscomp$528++)q.payload$jscomp$18=this.scheduledPayloads[q.i$jscomp$528],u=function(e){return function(){e.payload$jscomp$18.job();w.scheduledPayloads[e.i$jscomp$528].processed=!0;w.scheduledPayloads.every(function(t){return t.processed===
!0})&&w.completedResolver.resolve()}}(q),y=this.scheduler.addJob(u,xQX(this,q.payload$jscomp$18)),this.scheduledPayloads[q.i$jscomp$528]=Object.assign({},q.payload$jscomp$18,{job:u,
jobId:y})};
qkx.prototype.flushJobs=function(){var q=this,w=Array.from(this.scheduledPayloads.keys()).sort(function(y,e){return xQX(q,q.scheduledPayloads[e])-xQX(q,q.scheduledPayloads[y])});
w=_.P(w);for(var u=w.next();!u.done;u=w.next())u=this.scheduledPayloads[u.value],u.jobId===void 0||u.processed||(this.scheduler.cancelJob(u.jobId),this.scheduler.addJob(u.job,10))};
qkx.prototype.cancel=function(){for(var q=_.P(this.scheduledPayloads),w=q.next();!w.done;w=q.next())w=w.value,w.jobId===void 0||w.processed||this.scheduler.cancelJob(w.jobId),w.processed=!0;this.completedResolver.resolve()};
var xQX=function(q,w){var u;return(u=w.priority)!=null?u:q.JSC$8711_defaultPriority};var mn=function(q){this.state=q;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};f9&&MQs(this.state)};
mn.prototype.install=function(q){this.plugins.push(q);return this};
mn.prototype.uninstall=function(){var q=this;_.Cj.apply(0,arguments).forEach(function(w){w=q.plugins.indexOf(w);w>-1&&q.plugins.splice(w,1)})};
mn.prototype.transition=function(q,w){var u=this;f9&&K4z(this.state);var y=this.transitions.find(function(t){return Array.isArray(t.from)?t.from.find(function(X){return X===u.state&&t.to===q}):t.from===u.state&&t.to===q});
if(y){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);wmx(this,q,w);this.state=q;f9&&MQs(this.state);y=y.action.bind(this);var e=this.plugins.filter(function(t){return t[q]}).map(function(t){return t[q]});
y(u$x(this,e),w)}else throw Error("gd`"+this.state+"`"+q);};
var u$x=function(q,w){var u=w.filter(function(e){return yqZ(q,e)===10}),y=w.filter(function(e){return yqZ(q,e)!==10});
return q.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var e=_.Cj.apply(0,arguments);return _.F(function(t){if(t.nextAddress==1)return _.H(t,q.runImmediateJobsAsync.apply(q,[u].concat(_.Cm(e))),2);q.setJobSetWithScheduledJobs.apply(q,[y].concat(_.Cm(e)));_.HI(t)})}:function(){var e=_.Cj.apply(0,arguments);
q.runImmediateJobsSync.apply(q,[u].concat(_.Cm(e)));q.setJobSetWithScheduledJobs.apply(q,[y].concat(_.Cm(e)))}};
mn.prototype.runImmediateJobsSync=function(q){var w=_.Cj.apply(1,arguments);_.Vk();for(var u=_.P(q),y=u.next(),e={};!y.done;e={lifecycle$jscomp$2:void 0},y=u.next())e.lifecycle$jscomp$2=y.value,e6(function(t){return function(){eYT(t.lifecycle$jscomp$2.name);x_o(function(){return t.lifecycle$jscomp$2.callback.apply(t.lifecycle$jscomp$2,_.Cm(w))});
AL(t.lifecycle$jscomp$2.name)}}(e))};
mn.prototype.runImmediateJobsAsync=function(q){var w=_.Cj.apply(1,arguments),u,y,e,t;return _.F(function(X){X.nextAddress==1&&(_.Vk(),u=_.P(q),y=u.next(),e={});if(X.nextAddress!=3){if(y.done)return X.jumpTo(0);e.lifecycle$jscomp$3=y.value;e.asyncJobCompletion=void 0;t=function(G){return function(){eYT(G.lifecycle$jscomp$3.name);var n=x_o(function(){return G.lifecycle$jscomp$3.callback.apply(G.lifecycle$jscomp$3,_.Cm(w))});
KiM(n)?G.asyncJobCompletion=_.T("web_lifecycle_error_handling_killswitch")?n.then(function(){AL(G.lifecycle$jscomp$3.name)}):n.then(function(){AL(G.lifecycle$jscomp$3.name)},function(N){BC6(N);
AL(G.lifecycle$jscomp$3.name)}):AL(G.lifecycle$jscomp$3.name)}}(e);
e6(t);return e.asyncJobCompletion?_.H(X,e.asyncJobCompletion,3):X.jumpTo(3)}e={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};y=u.next();return X.jumpTo(2)})};
mn.prototype.setJobSetWithScheduledJobs=function(q){var w=_.Cj.apply(1,arguments),u=this,y=q.map(function(e){return{job:function(){eYT(e.name);x_o(function(){return e.callback.apply(e,_.Cm(w))});
AL(e.name)},
priority:yqZ(u,e)}});
y.length&&(this.jobSet=new qkx(y))};
var yqZ=function(q,w){var u,y;return(y=(u=q.overridePriority)!=null?u:w.priority)!=null?y:0},eYT=function(q){f9&&q&&MQs(q)},AL=function(q){f9&&q&&K4z(q)},wmx=function(q,w,u){Bra&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+q.constructor.name+"] '"+q.state+"' to '"+w+"'"),console.log("with message: ",u),console.groupEnd())};
_.x$.Object.defineProperties(mn.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var kCP=function(q){mn.call(this,q===void 0?"none":q);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(){}}]},tw3;
_.O(kCP,mn);kCP.prototype.runApplicationNavigationBegin=function(q,w){var u=this;this.navigationTimer=_.mg(_.pi,function(){u.currentState==="application_navigating"&&u.transition("none")},5E3);
q(w==null?void 0:w.event)};
kCP.prototype.runApplicationNavigationEnd=function(q,w){this.navigationTimer&&(_.pi.cancelJob(this.navigationTimer),this.navigationTimer=null);q(w==null?void 0:w.event)};
_.LP4=function(){tw3||(tw3=new kCP);return tw3};var lMH=[];_.wr("yt.logging.transport.getScrapedGelPayloads",function(){return lMH});var Wm=function(){var q=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return q.totalEntries}}};
Wm.prototype.storePayload=function(q,w){q=q6c(q);this.store[q]?this.store[q].push(w):(this.memoizedKeySequences={},this.store[q]=[w]);this.totalEntries++;_.T("more_accurate_gel_parser")&&(w=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(w));return q};
Wm.prototype.smartExtractMatchingEntries=function(q){if(!q.keys.length)return[];for(var w=PDT(this,q.keys.splice(0,1)[0]),u=[],y=0;y<w.length;y++)this.store[w[y]]&&q.sizeLimit&&(this.store[w[y]].length<=q.sizeLimit?(u.push.apply(u,_.Cm(this.store[w[y]])),delete this.store[w[y]]):u.push.apply(u,_.Cm(this.store[w[y]].splice(0,q.sizeLimit))));this.totalEntries-=u.length;(q==null?0:q.sizeLimit)&&u.length<(q==null?void 0:q.sizeLimit)&&(q.sizeLimit-=u.length,u.push.apply(u,_.Cm(this.smartExtractMatchingEntries(q))));
return u};
Wm.prototype.extractMatchingEntries=function(q){q=PDT(this,q);for(var w=[],u=0;u<q.length;u++)this.store[q[u]]&&(w.push.apply(w,_.Cm(this.store[q[u]])),delete this.store[q[u]]);this.totalEntries-=w.length;return w};
Wm.prototype.getSequenceCount=function(q){q=PDT(this,q);for(var w=0,u=0;u<q.length;u++){var y=void 0;w+=((y=this.store[q[u]])==null?void 0:y.length)||0}return w};
var PDT=function(q,w){var u=q6c(w);if(q.memoizedKeySequences[u])return q.memoizedKeySequences[u];var y=Object.keys(q.store)||[];if(y.length<=1&&q6c(w)===y[0])return y;for(var e=[],t=0;t<y.length;t++){var X=y[t].split("/");if(Xm$(w.auth,X[0])){var G=w.isJspb;Xm$(G===void 0?"undefined":G?"true":"false",X[1])&&Xm$(w.cttAuthInfo,X[2])&&(G=w.tier,G=G===void 0?"undefined":JSON.stringify(G),Xm$(G,X[3])&&e.push(y[t]))}}return q.memoizedKeySequences[u]=e},Xm$=function(q,w){return q===void 0||q==="undefined"?
!0:q===w};
Wm.prototype.getSequenceCount=Wm.prototype.getSequenceCount;Wm.prototype.extractMatchingEntries=Wm.prototype.extractMatchingEntries;Wm.prototype.smartExtractMatchingEntries=Wm.prototype.smartExtractMatchingEntries;Wm.prototype.storePayload=Wm.prototype.storePayload;var AMc,fM6,JMJ,QR,FgG,w67,qOM,Vfz,od4,s9o,maH,hws,Cf6;AMc=_.Fc("initial_gel_batch_timeout",2E3);fM6=_.Fc("gel_queue_timeout_max_ms",6E4);JMJ=_.Fc("gel_min_batch_size",5);QR=void 0;FgG=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
w67=new FgG;qOM=new FgG;Vfz=new FgG;od4=new FgG;maH=!0;hws=1;_.S6H=new Map;Cf6=_.uc.ytLoggingTransportTokensToCttTargetIds_||{};_.wr("ytLoggingTransportTokensToCttTargetIds_",Cf6);var TNo=_.uc.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.wr("ytLoggingTransportTokensToJspbCttTargetIds_",TNo);var N5={};var aA=_.uc.ytLoggingGelSequenceIdObj_||{};_.wr("ytLoggingGelSequenceIdObj_",aA);var kjf=[];var Ihu=new Set,Gj6=0,TLs=0,U2M=0,Hxj=[],nBo=[],CnM=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var p6f=function(){};
p6f.prototype.getUrl=function(q,w){w=w===void 0?!1:w;return q.hasOwnProperty("shareEndpoint")?null:_.VDf(q,null,w)};
var J8M=function(q,w,u){q={endpoint:w,actions:[]};u=(u.path?u.path[0]:u.target).icon||"";w=u.indexOf(":");w>0&&(u=u.substr(w+1));u&&q.actions.push(u);return q};var ahJ=/Command$/,zHz=/Endpoint$/,m2M=new Map;var GCT,n8T;GCT=1;_.lD=function(){this.actionRoutingMap=new Map};
_.lD.prototype.triggerAction=function(q){var w=new t4f(q,!1,_.Cj.apply(1,arguments));this.handleAction(w);return w.returnValue};
_.lD.prototype.triggerOptionalAction=function(q){var w=new t4f(q,!0,_.Cj.apply(1,arguments));this.handleAction(w);return w.returnValue};
_.JL=function(q,w,u){w.forEach(function(y){var e=JB7(y);e&&q.triggerOptionalAction(e,y,u,void 0)})};
_.lD.prototype.handleAction=function(q){var w=this.actionRoutingMap.get(q.actionName);w&&n8T(q,w);q.optionalAction||q.returnValue.length!==0||(q=new _.fv("Unhandled action",q.actionName),_.jZ(q))};
n8T=function(q,w){w.forEach(function(u){var y=null;u?y=u.apply(null,q.args):(u=Error("hd"),u.params=q.actionName,_.cl(u));q.returnValue.push(y)})};
_.Ln=function(q,w,u){u||(u=GCT++);for(var y=_.P(Object.keys(w)),e=y.next();!e.done;e=y.next()){e=e.value;var t=q.actionRoutingMap.get(e);t||(t=new Map,q.actionRoutingMap.set(e,t));q.registerActionHandler(u,e,w[e],t)}return u};
_.lD.prototype.registerActionHandler=function(q,w,u,y){y.set(q,_.SZ(u))};
_.M5=function(q,w,u){w=_.P(Object.keys(w));for(var y=w.next();!y.done;y=w.next())(y=q.actionRoutingMap.get(y.value))&&y.delete(u)};
_.xX(_.lD);var bxu=function(q,w){var u=_.lD.getInstance();_.p4(function(){var y={},e=_.Ln(u,(y[q]=w,y));_.ZG(function(){var t={};_.M5(u,(t[q]="",t),e)})})};MWs=CDj;var q34=new Set(["For","If","Match","Watch"]),Hnx={},WgT=(Hnx[S7.default]=function(){return c64},Hnx.style=function(){return c64},Hnx),sAZ;
for(sAZ in WgT)XZ.attributes[sAZ]=WgT[sAZ](XZ.attributes[sAZ]);var el=new _.MH("VISIBILITY_OBSERVER");var GWy={retrieve:function(q){return this.id.\u0275prov.token===q.\u0275prov.token?this.contextValue:this?O4o(this,this.id):dZ6}};var NsG=function(q,w,u){if(q!==qb)return!1;q=lhj(document.createElement("div"),function(){var y=n4(!1);try{u[0]()}finally{n4(y)}});
q=Array.from(q.childNodes);q.length===1&&(q=q[0]);return q};var QAr=function(q){q=q.clone();RVj(q);Qr(q,"dg",null);Qr(q,"d","0");bYx(q,null);YNk(q,null);return q},In6=!0,inX=function(q,w,u){var y=u===void 0?{}:u;
u=y.cssRowKey===void 0?void 0:y.cssRowKey;var e=y.combinedSignature===void 0?void 0:y.combinedSignature;var t=y.extraEdges===void 0?void 0:y.extraEdges;y=y.callback===void 0?void 0:y.callback;Qr(q,"m",w.join(","));t&&Esk(q,t);u&&(Qr(q,"ck",u),e?Qr(q,"rs",e):In6&&(In6=!1));if(y){if(y!=null&&!hV6.test(y))throw Error("ab`"+y);Qr(q,"cb",y)}q=q.toString();_.tz(q,"/")&&(q=fZG(document.location.href)+q);return _.FE(q)};var U5k=function(q){return rqk(q).then(function(w){return JSON.parse(w.responseText)})},rqk=function(q){var w={},u=w.xmlHttpFactory?w.xmlHttpFactory.createInstance():XsT.createInstance();
return(new _.IA(function(y,e){var t;try{u.open("GET",q,!0)}catch(n){e(new zX("Error opening XHR: "+n.message,q,u))}u.onreadystatechange=function(){if(u.readyState==4){_.uc.clearTimeout(t);var n;!(n=PZa(u.status))&&(n=u.status===0)&&(n=Vrj(q),n=!(n=="http"||n=="https"||n==""));n?y(u):e(new Ts$(u.status,q,u))}};
u.onerror=function(){e(new zX("Network error",q,u))};
if(w.headers)for(var X in w.headers){var G=w.headers[X];G!=null&&u.setRequestHeader(X,G)}w.withCredentials&&(u.withCredentials=w.withCredentials);w.responseType&&(u.responseType=w.responseType);w.mimeType&&u.overrideMimeType(w.mimeType);w.timeoutMs>0&&(t=_.uc.setTimeout(function(){u.onreadystatechange=function(){};
u.abort();e(new CDx(q,u))},w.timeoutMs));
try{u.send(null)}catch(n){u.onreadystatechange=function(){},_.uc.clearTimeout(t),e(new zX("Error sending XHR: "+n.message,q,u))}})).thenCatch(function(y){y instanceof _.hK&&u.abort();
throw y;})},zX=function(q,w,u){_.qM.call(this,q+", url="+w);
this.url=w;this.xhr=u};
_.w9(zX,_.qM);zX.prototype.name="XhrError";var Ts$=function(q,w,u){zX.call(this,"Request Failed, status="+q,w,u);this.status=q};
_.w9(Ts$,zX);Ts$.prototype.name="XhrHttpError";var CDx=function(q,w){zX.call(this,"Request timed out",q,w)};
_.w9(CDx,zX);CDx.prototype.name="XhrTimeoutError";Br=Br||{};var ay=function(){_.VG.call(this)};
_.w9(ay,_.VG);ay.prototype.initialize=function(){};var d5X=function(q,w){this.fn_=q;this.handler_=w};
d5X.prototype.execute=function(q){this.fn_&&(this.fn_.call(this.handler_||null,q),this.fn_=this.handler_=null)};
d5X.prototype.abort=function(){this.handler_=this.fn_=null};var Dr=function(q,w){_.VG.call(this);this.deps_=q;this.JSC$8838_id_=w;this.onloadCallbacks_=[];this.JSC$8838_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.w9(Dr,_.VG);Dr.prototype.moduleConstructor_=ay;Dr.prototype.module_=null;Dr.prototype.getId=function(){return this.JSC$8838_id_};
Dr.prototype.registerCallback=function(q,w){return On$(this.onloadCallbacks_,q,w)};
var o8P=function(q,w){On$(q.JSC$8838_onErrorCallbacks_,w)},On$=function(q,w,u){w=new d5X(w,u);
q.push(w);return w};
Dr.prototype.isLoaded=function(){return!!this.module_};
Dr.prototype.onLoad=function(q){var w=new this.moduleConstructor_;w.initialize(q());this.module_=w;w=(w=Vw3(this.earlyOnloadCallbacks_,q()))||Vw3(this.onloadCallbacks_,q());w||(this.JSC$8838_onErrorCallbacks_.length=0);return w};
Dr.prototype.onError=function(q){(q=Vw3(this.JSC$8838_onErrorCallbacks_,q))&&yM(Error("nd`"+q));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var Vw3=function(q,w){for(var u=[],y=0;y<q.length;y++)try{q[y].execute(w)}catch(e){yM(e),u.push(e)}q.length=0;return u.length?u:null};
Dr.prototype.disposeInternal=function(){Dr.superClass_.disposeInternal.call(this);_.BX(this.module_)};var fnF,D5r,zYc,anT,AqZ,Jqk,bnT,$5x,v8k;
_.p9=function(q,w,u,y,e){y=y===void 0?!1:y;e=e===void 0?!1:e;var t=t===void 0?!0:t;this.scsReferenceUrl_=P1(_.G2(q).toString(),t);this.cssRowKey_=w;this.combinedSignature_=u;this.useNegativeLoading_=y;this.requestedModuleMap_={};this.JSC$8841_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(q=NH(this.scsReferenceUrl_,"excm"))?q.split(","):[];this.shouldScanForCss_=e;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;cPy();this.logger=null;_.Zr(this,gsj(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
fnF=function(q,w){if(w.href||w.getAttribute("data-href"))if(w=w.href||w.getAttribute("data-href"),Ytj(w)&&!P1(w).urlPrefix_.endsWith("_/js/")){w=gsj(P1(w));w=_.P(w);for(var u=w.next();!u.done;u=w.next())u=u.value,q.loadedCssModuleList_.includes(u)||q.loadedCssModuleList_.push(u)}};
_.p9.prototype.JSC$8843_loadModules=function(q,w,u){var y=u===void 0?{}:u;u=y.extraEdges;var e=y.onError;var t=y.onSuccess;y=y.forceReload;this.JSC$8841_moduleInfoMap_=w;if(!q)throw Error("od");if(this.shouldScanForCss_){w=_.P(document.getElementsByTagName("style"));for(var X=w.next();!X.done;X=w.next())fnF(this,X.value);w=_.P(document.getElementsByTagName("link"));for(X=w.next();!X.done;X=w.next())fnF(this,X.value)}m5F(this,AqZ(this,q),u,e,t,y)};
var m5F=function(q,w,u,y,e,t){y=y===void 0?function(){}:y;
e=e===void 0?function(){}:e;
t=t===void 0?!1:t;Jqk(q,w,function(X,G,n){n=n===void 0?G:n;q.enableFallbackFetch&&t?q.loadWithFetch(X,G,y,e,n):q.load(X,G,y,e,n,u)},u)||y(-1)};
_.p9.prototype.loadWithFetch=function(){_.F(function(){throw Error("pd");})};
_.p9.prototype.maybeSetAdditionalFields=function(){};
D5r=function(q,w,u){if(q.useNegativeLoading_){var y=q.scsReferenceUrl_;q={cssRowKey:q.cssRowKey_,combinedSignature:q.combinedSignature_,extraEdges:u,requestedModuleIds:zYc(q),requestedCssModuleIds:anT(q)};var e=q===void 0?{}:q;q=e.requestedModuleIds===void 0?[]:e.requestedModuleIds;u=e.requestedCssModuleIds===void 0?[]:e.requestedCssModuleIds;var t=e.cssRowKey===void 0?void 0:e.cssRowKey;var X=e.combinedSignature===void 0?void 0:e.combinedSignature;var G=e.extraEdges===void 0?void 0:e.extraEdges;
e=e.callback===void 0?void 0:e.callback;y=QAr(y);Qr(y,"d","1");bYx(y,q);YNk(y,u);w=inX(y,w,{cssRowKey:t,combinedSignature:X,extraEdges:G,callback:e})}else y=q.scsReferenceUrl_,q={cssRowKey:q.cssRowKey_,combinedSignature:q.combinedSignature_,requestedModuleIds:zYc(q),requestedCssModuleIds:anT(q)},G=q===void 0?{}:q,q=G.requestedCssModuleIds===void 0?[]:G.requestedCssModuleIds,u=G.cssRowKey===void 0?void 0:G.cssRowKey,t=G.combinedSignature===void 0?void 0:G.combinedSignature,X=G.extraEdges===void 0?
void 0:G.extraEdges,G=G.callback===void 0?void 0:G.callback,y=QAr(y),YNk(y,q),w=inX(y,w,{cssRowKey:u,combinedSignature:t,extraEdges:X,callback:G});return w};
_.Zr=function(q,w){for(var u=!1,y=[],e=0;e<w.length;++e){var t=w[e];q.requestedModuleMap_[t]||(q.requestedModuleMap_[t]=!0,q.requestedModuleList_.push(t),u=!0,y.push(t))}u&&(q.requestedModuleListSorted_=!1)};
_.$2=function(q,w){for(var u=[],y=0;y<w.length;++y){var e=w[y];q.requestedModuleMap_[e]&&(delete q.requestedModuleMap_[e],_.MM(q.requestedModuleList_,e),u.push(e))}};
_.p9.prototype.load=function(q,w,u,y,e){e=e===void 0?w:e;_.G2(q);var t=this.useCors_,X=this.corsMode_,G=this.fetchPriority,n=_.rg("SCRIPT");_.bZ(n,q);t&&(n.crossOrigin=X);n.async=!1;G&&n.setAttribute("fetchpriority",G);_.Zr(this,w);_.ZnT(this,q,n,w,u,y,e)};
_.ZnT=function(q,w,u,y,e,t,X){X=X===void 0?y:X;q.lastScript_=u;q.insertPos.insertBefore(u,q.insertPos.firstChild);_.pma(u,y,function(){u.parentElement.removeChild(u);q.lastScript_==u&&(q.lastScript_=null);var G=new Set;y.map(function(N){return G.add(N)});
for(var n in q.JSC$8841_moduleInfoMap_)q.JSC$8841_moduleInfoMap_[n].isLoaded()&&G.add(n);Array.from(G);t()},function(G){u.parentElement.removeChild(u);
q.lastScript_==u&&(q.lastScript_=null);_.$2(q,G);q.pendingModuleGraphUpdate_?q.pendingModuleGraphUpdate_.then(function(){e(-1,w)}):e(-1,w)},X)};
_.pma=function(q,w,u,y,e){e=e===void 0?w:e;var t=w.length,X=function(){t=0;q.onload=null;q.onerror=null;G=function(){}},G=function(){X();
var N=e.filter(function(Q){return!DH().getModuleInfo(Q).isLoaded()});
N.length!==0?y(N,"Response was successful but was missing module(s) "+N+"."):u()},n=function(){t--;
t==0&&G()};
w.forEach(function(N){N=DH().getModuleInfo(N);N.isLoaded()?n():(On$(N.earlyOnloadCallbacks_,n),o8P(N,n))});
q.onload=function(){return G()};
q.onerror=function(){X();y(w)}};
zYc=function(q){q.requestedModuleListSorted_||(q.requestedModuleListSorted_=!0,q.requestedModuleList_.sort());return q.requestedModuleList_};
anT=function(q){q=q.loadedCssModuleList_;q.sort();return q};
AqZ=function(q,w){return w.filter(function(u){return!q.requestedModuleMap_[u]})};
Jqk=function(q,w,u,y){if(q.pendingModuleGraphUpdate_)return q.pendingModuleGraphUpdate_.then(function(){Jqk(q,w,u,y)}),!0;
if(!q.useNegativeLoading_){var e=[],t=Object.assign({},q.requestedModuleMap_);$5x(q,w,function(Q){e.push(Q.getId())},y,function(Q){return!Q.isLoaded()},t);
w=e}for(t=0;t<w.length;){for(var X=w.length-t,G=t==0?w:w.slice(t,w.length),n=D5r(q,G,y),N=_.G2(n).toString();N.length>q.urlMaxLength;)if(X>1)X-=Math.ceil((N.length-q.urlMaxLength)/6),X=Math.max(X,1),G=w.slice(t,t+X),n=D5r(q,G,y),N=_.G2(n).toString();else return q.useNegativeLoading_?(q.useNegativeLoading_=!1,q.pendingModuleGraphUpdate_=v8k(q).then(function(Q){bnT(q,Q,y)}),Jqk(q,w.slice(t),u,y)):!1;
t+=X;q.useNegativeLoading_?u(n,G):u(n,G,t===w.length?w:[])}return!0};
bnT=function(q,w,u){DH().setAllModuleInfoString((w||{}).moduleGraph);$5x(q,zYc(q),function(y){_.Zr(q,[y.getId()])},u);
q.pendingModuleGraphUpdate_=null};
$5x=function(q,w,u,y,e,t){t=t===void 0?{}:t;var X=DH();w=_.P(w);for(var G=w.next();!G.done;G=w.next()){G=G.value;var n=X.getModuleInfo(G);if(!(t[G]||e&&!e(n))){t[G]=!0;var N=n.deps_||[];if(y){var Q=[];y[G]&&(Q=Object.keys(y[G]));N=N.concat(Q)}$5x(q,N,u,y,e,t);u(n)}}};
v8k=function(q){q=q.scsReferenceUrl_.clone();RVj(q);Qr(q,"dg",null);Qr(q,"md","1");return U5k(q.toString())};var Wsu=new Uint8Array(123);var Ykj=[];var g8r=function(){this.JSC$7953_loader_=null};
_.k=g8r.prototype;_.k.setBatchModeEnabled=function(){};
_.k.setAllModuleInfoString=function(){};
_.k.addExtraEdge=function(){throw Error("qd");};
_.k.removeExtraEdge=function(){throw Error("rd");};
_.k.getModuleContext=function(){return null};
_.k.isActive=function(){return!1};
_.k.isUserActive=function(){return!1};
_.k.registerCallback=function(){};var v_=function(q,w,u,y,e){var t=Error.call(this);this.message=t.message;"stack"in t&&(this.stack=t.stack);this.name="ModuleLoadFailure";this.type=q;this.status=w;this.requestedModuleIds=u;this.url=y;this.cause=e;this.message=this.toString()};
_.O(v_,Error);v_.prototype.toString=function(){return E8G(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var E8G=function(q){switch(q.type){case v_.JSC$8853_Type.UNAUTHORIZED:return"Unauthorized";case v_.JSC$8853_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case v_.JSC$8853_Type.TIMEOUT:return"Timed out";case v_.JSC$8853_Type.OLD_CODE_GONE:return"Out of date module id";case v_.JSC$8853_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+q.type}};
Br.ModuleLoadFailure=v_;Br.ModuleLoadFailure.JSC$8853_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var bR=function(){this.moduleIds_=this.JSC$7953_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8856_extraEdges_={};this.JSC$8856_callbackMap_={};this.JSC$8856_currentlyLoadingModule_=this.baseModuleInfo_=new Dr([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new Yr;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.w9(bR,g8r);var RYX=function(q,w){_.qM.call(this,"Error loading "+q+": "+w)};
_.w9(RYX,_.qM);bR.prototype.setBatchModeEnabled=function(q){this.batchModeEnabled_=q};
bR.prototype.setAllModuleInfoString=function(q,w){if(!(this instanceof bR))this.setAllModuleInfoString(q,w);else if(typeof q==="string"){if(q.startsWith("d$")){q=q.substring(2);for(var u=[],y=0,e=q.indexOf("/"),t=0,X=!1,G=0;;){var n=X?q.substring(t):q.substring(t,e);if(n.length===0)y++,t="sy"+y.toString(36),n=[];else{var N=n.indexOf(":");if(N<0)t=n,n=[];else if(N===n.length-1)t=n.substring(0,N),n=Array(u[G-1]);else{t=n.substring(0,N);n=n.substring(N+1).split(",");N=G;for(var Q=0;Q<n.length;Q++)N-=
n[Q].length===0?1:Number(n[Q]),n[Q]=u[N]}N=0;if(t.length===0)N=1;else if(t.charAt(0)==="+"||t.charAt(0)==="-")N=Number(t);N!==0&&(y+=N,t="sy"+y.toString(36))}u.push(t);cqP(this,t,n);if(X)break;t=e+1;e=q.indexOf("/",t);e===-1&&(X=!0);G++}this.moduleIds_=u}else if(q.startsWith("p$"))Sk$(this,q);else{q=q.split("/");u=[];for(y=0;y<q.length;y++){G=q[y].split(":");e=G[0];X=[];if(G[1])for(X=G[1].split(","),G=0;G<X.length;G++)X[G]=u[parseInt(X[G],36)];u.push(e);cqP(this,e,X)}this.moduleIds_=u}w&&w.length?
(_.yF(this.loadingModuleIds_,w),this.lastInitialModuleId_=_.$J(w)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8856_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8856_currentlyLoadingModule_=null,(w=this.baseModuleInfo_.onLoad((0,_.fY)(this.getModuleContext,this)))&&w.length&&hYk(this,new Br.ModuleLoadFailure(Br.ModuleLoadFailure.JSC$8853_Type.INIT_ERROR,void 0,void 0,void 0,w[0])),Y2(this))}};
var Sk$=function(q,w){var u=w.substring(2);for(w=0;w<64;w++)Wsu["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(w)]=w;var y={buf:u,pos:0};P0(y);var e=P0(y),t=P0(y)+1;w=Array(e);var X=Array(e),G=Array(e);t=Array(t);var n=0,N=0,Q=y.pos,I=y.buf.indexOf("|",y.pos);y.pos=I+1;for(I=0;I<e;I++){var U=P0(y),d=U&2,V=U&1;U>>>=2;V?(n+=U>>>1^-(U&1),U="sy"+n.toString(36)):(V=Q,Q+=U,U=u.substring(V,Q));w[I]=U;d&&(t[N++]=U)}t[N]="";y.pos++;N=e&-2;u=e&1;for(n=0;n<N;n+=2)Q=sV4(y),G[n]=
Q&7,G[n+1]=Q>>>3&7;u&&(u=sV4(y),G[N]=u&7);y.pos++;for(N=0;N<e;N++)G[N]===7&&(G[N]=P0(y));y.pos++;for(u=N=0;u<e;u++){n=G[u];Q=n===0?Ykj:Array(n);X[u]=Q;I=N;for(d=0;d<n;d++)I-=P0(y),Q[d]=t[I];t[N]===w[u]&&N++}for(y=0;y<w.length;y++)cqP(q,w[y],X[y]);q.moduleIds_=w};
_.k=bR.prototype;_.k.getModuleInfo=function(q){return this.moduleInfoMap[q]};
_.k.addExtraEdge=function(q,w){var u=this.getModuleInfo(q);u&&u.isLoaded()?this.load(w):(this.JSC$8856_extraEdges_[q]||(this.JSC$8856_extraEdges_[q]={}),this.JSC$8856_extraEdges_[q][w]=!0)};
_.k.removeExtraEdge=function(q,w){if(this.JSC$8856_extraEdges_[q]){delete this.JSC$8856_extraEdges_[q][w];for(var u in this.JSC$8856_extraEdges_[q])return;delete this.JSC$8856_extraEdges_[q]}};
_.k.isActive=function(){return this.loadingModuleIds_.length>0};
_.k.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var Y2=function(q){var w=q.lastActive_,u=q.isActive();u!=w&&(q.executeCallbacks_(u?"active":"idle"),q.lastActive_=u);w=q.isUserActive();w!=q.userLastActive_&&(q.executeCallbacks_(w?"userActive":"userIdle"),q.userLastActive_=w)},cqP=function(q,w,u){q.moduleInfoMap[w]?(q=q.moduleInfoMap[w].deps_,q!=u&&q.splice.apply(q,[0,
q.length].concat(_.Cm(u)))):q.moduleInfoMap[w]=new Dr(u,w)},ln$=function(q,w,u){var y=[];
Xa(w,y);w=[];for(var e={},t=0;t<y.length;t++){var X=y[t],G=q.getModuleInfo(X);if(!G)throw Error("sd`"+X);var n=new Yr;e[X]=n;G.isLoaded()?n.callback(null):(jAj(q,X,G,!!u,n),q.isModuleLoading(X)||w.push(X))}w.length>0&&(q.loadingModuleIds_.length===0?q.loadModules_(w):(q.requestedModuleIdsQueue_.push(w),Y2(q)));return e},jAj=function(q,w,u,y,e){u.registerCallback(e.callback,e);
o8P(u,function(t){e.errback(new RYX(w,t))});
q.isModuleLoading(w)?y&&(LgX(q,w),Y2(q)):y&&LgX(q,w)};
bR.prototype.loadModules_=function(q,w,u){var y=this;w||(this.consecutiveFailures_=0);var e=Mwa(this,q);this.loadingModuleIds_=e;this.requestedLoadingModuleIds_=this.batchModeEnabled_?q:_.qT(e);Y2(this);if(e.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,e);if(Object.keys(this.JSC$8856_extraEdges_).length>0&&!this.JSC$7953_loader_.supportsExtraEdges)throw Error("td");q=(0,_.fY)(this.JSC$7953_loader_.JSC$8843_loadModules,this.JSC$7953_loader_,_.qT(e),this.moduleInfoMap,{extraEdges:this.JSC$8856_extraEdges_,
forceReload:!!u,onError:function(t,X){var G=y.requestedLoadingModuleIds_;t=t!=null?t:void 0;y.consecutiveFailures_++;var n=_.qT(e);y.requestedLoadingModuleIds_=G;e.forEach(_.rk(_.MM,y.requestedModuleIds_),y);t==401?(hYk(y,new Br.ModuleLoadFailure(Br.ModuleLoadFailure.JSC$8853_Type.UNAUTHORIZED,t)),y.requestedModuleIdsQueue_.length=0):t==410?(KgP(y,new Br.ModuleLoadFailure(Br.ModuleLoadFailure.JSC$8853_Type.OLD_CODE_GONE,t)),Bs$(y)):y.consecutiveFailures_>=3?(KgP(y,new Br.ModuleLoadFailure(Br.ModuleLoadFailure.JSC$8853_Type.CONSECUTIVE_FAILURES,
t,n,X)),Bs$(y)):y.loadModules_(y.requestedLoadingModuleIds_,!0,t==8001||!1)},
onTimeout:(0,_.fY)(this.handleLoadTimeout_,this)});(w=Math.pow(this.consecutiveFailures_,2)*5E3)?_.uc.setTimeout(q,w):q()}};
var Mwa=function(q,w){w=w.filter(function(e){return q.moduleInfoMap[e].isLoaded()?(_.uc.setTimeout(function(){return Error("ud`"+e)},0),!1):!0});
for(var u=[],y=0;y<w.length;y++)u=u.concat(x5x(q,w[y]));Xa(u);return!q.batchModeEnabled_&&u.length>1?(w=u.shift(),q.requestedModuleIdsQueue_=u.map(function(e){return[e]}).concat(q.requestedModuleIdsQueue_),[w]):u},x5x=function(q,w){var u=_.db.createSet(q.requestedModuleIds_),y=[];
u[w]||y.push(w);w=[w];for(var e=0;e<w.length;e++)for(var t=q.getModuleInfo(w[e]).deps_,X=t.length-1;X>=0;X--){var G=t[X];q.getModuleInfo(G).isLoaded()||u[G]||(y.push(G),w.push(G))}y.reverse();Xa(y);return y};
bR.prototype.JSC$8851_setLoaded=function(){if(this.JSC$8856_currentlyLoadingModule_){var q=this.JSC$8856_currentlyLoadingModule_.getId(),w=[];if(this.JSC$8856_extraEdges_[q]){for(var u=_.P(Object.keys(this.JSC$8856_extraEdges_[q])),y=u.next();!y.done;y=u.next()){y=y.value;var e=this.getModuleInfo(y);e&&!e.isLoaded()&&(this.removeExtraEdge(q,y),w.push(y))}this.loadMultiple(w)}this.isDisposed()||((w=this.moduleInfoMap[q].onLoad((0,_.fY)(this.getModuleContext,this)))&&w.length&&hYk(this,new Br.ModuleLoadFailure(Br.ModuleLoadFailure.JSC$8853_Type.INIT_ERROR,
void 0,void 0,void 0,w[0])),_.MM(this.userInitiatedLoadingModuleIds_,q),_.MM(this.loadingModuleIds_,q),this.loadingModuleIds_.length===0&&Bs$(this),this.lastInitialModuleId_&&q==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),Y2(this),this.JSC$8856_currentlyLoadingModule_=null)}};
bR.prototype.isModuleLoading=function(q){if(_.SH(this.loadingModuleIds_,q))return!0;for(var w=0;w<this.requestedModuleIdsQueue_.length;w++)if(_.SH(this.requestedModuleIdsQueue_[w],q))return!0;return!1};
bR.prototype.load=function(q,w){return ln$(this,[q],w)[q]};
bR.prototype.loadMultiple=function(q){return ln$(this,q)};
var LgX=function(q,w){_.SH(q.userInitiatedLoadingModuleIds_,w)||q.userInitiatedLoadingModuleIds_.push(w)};
bR.prototype.beforeLoadModuleCode=function(q){var w=this;this.JSC$8856_currentlyLoadingModule_&&this.JSC$8856_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8851_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[q]&&q4x(this,this.moduleInfoMap[q].deps_||[],function(u){u.module_=new ay;_.MM(w.loadingModuleIds_,u.getId())},function(u){return!u.isLoaded()});
this.JSC$8856_currentlyLoadingModule_=this.getModuleInfo(q)};
bR.prototype.handleLoadTimeout_=function(){KgP(this,new Br.ModuleLoadFailure(Br.ModuleLoadFailure.JSC$8853_Type.TIMEOUT));Bs$(this)};
var KgP=function(q,w){q.requestedLoadingModuleIds_.length>1?q.requestedModuleIdsQueue_=q.requestedLoadingModuleIds_.map(function(u){return[u]}).concat(q.requestedModuleIdsQueue_):hYk(q,w)},hYk=function(q,w){var u=q.requestedLoadingModuleIds_;
q.loadingModuleIds_.length=0;for(var y=[],e=0;e<q.requestedModuleIdsQueue_.length;e++){var t=q.requestedModuleIdsQueue_[e].filter(function(n){var N=x5x(this,n);return BT(u,function(Q){return _.SH(N,Q)})},q);
_.yF(y,t)}for(e=0;e<u.length;e++)_.hz(y,u[e]);for(e=0;e<y.length;e++){for(t=0;t<q.requestedModuleIdsQueue_.length;t++)_.MM(q.requestedModuleIdsQueue_[t],y[e]);_.MM(q.userInitiatedLoadingModuleIds_,y[e])}if(e=q.JSC$8856_callbackMap_.error)for(t=0;t<e.length;t++)for(var X=e[t],G=0;G<y.length;G++)X("error",y[G],w);for(y=0;y<u.length;y++)if(q.moduleInfoMap[u[y]])q.moduleInfoMap[u[y]].onError(w);q.requestedLoadingModuleIds_.length=0;Y2(q)},Bs$=function(q){for(;q.requestedModuleIdsQueue_.length;){var w=
q.requestedModuleIdsQueue_.shift().filter(function(u){return!this.getModuleInfo(u).isLoaded()},q);
if(w.length>0){q.loadModules_(w);return}}Y2(q)};
bR.prototype.registerCallback=function(q,w){Array.isArray(q)||(q=[q]);for(var u=0;u<q.length;u++){var y=q[u],e=w,t=this.JSC$8856_callbackMap_;t[y]||(t[y]=[]);t[y].push(e)}};
bR.prototype.executeCallbacks_=function(q){for(var w=this.JSC$8856_callbackMap_[q],u=0;w&&u<w.length;u++)w[u](q)};
var q4x=function(q,w,u,y,e){y=y===void 0?function(){return!0}:y;
e=e===void 0?{}:e;w=_.P(w);for(var t=w.next();!t.done;t=w.next()){t=t.value;var X=q.getModuleInfo(t);!e[t]&&y(X)&&(e[t]=!0,q4x(q,X.deps_||[],u,y,e),u(X))}};
bR.prototype.dispose=function(){_.xS(_.db.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8856_callbackMap_={};this.isDisposed_=!0};
bR.prototype.isDisposed=function(){return this.isDisposed_};
_.a3=function(){return new bR};var w0G=[5E3,2E4],uQa=function(){this.JSC$7953_loader_=null;this.JSC$8864_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8864_queue_=[];this.JSC$8864_extraEdges_=Object.create(null);this.JSC$8864_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.O(uQa,g8r);_.k=uQa.prototype;_.k.setAllModuleInfoString=function(){this.JSC$8864_currentlyLoadingModule_&&this.JSC$8864_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8851_setLoaded()};
_.k.getModuleInfo=function(q){var w=this.JSC$8864_moduleInfoMap_[q];w||(w=new Dr([],q),this.JSC$8864_moduleInfoMap_[q]=w);return w};
_.k.addExtraEdge=function(q,w){this.getModuleInfo(q).isLoaded()?this.load(w):(this.JSC$8864_extraEdges_[q]||(this.JSC$8864_extraEdges_[q]={}),this.JSC$8864_extraEdges_[q][w]=!0)};
_.k.removeExtraEdge=function(q,w){if(this.JSC$8864_extraEdges_[q]){delete this.JSC$8864_extraEdges_[q][w];for(var u in this.JSC$8864_extraEdges_[q])return;delete this.JSC$8864_extraEdges_[q]}};
_.k.isModuleLoading=function(q){return!!this.loadingModules_[q]};
_.k.load=function(q){y2G(this,[q]);return e$P(this,q)};
_.k.loadMultiple=function(q){var w=this,u=Object.create(null),y=[];q.forEach(function(e){u[e]||(u[e]=e$P(w,e),y.push(e))});
y2G(this,y);return u};
_.k.beforeLoadModuleCode=function(q){var w;((w=this.JSC$8864_currentlyLoadingModule_)==null?void 0:w.getId())==="synthetic_module_overhead"&&this.JSC$8851_setLoaded();var u,y;kdr(this,(y=(u=this.JSC$8864_moduleInfoMap_[q])==null?void 0:u.deps_)!=null?y:[],function(e){e.module_=new ay},function(e){return!e.isLoaded()});
this.JSC$8864_currentlyLoadingModule_=this.getModuleInfo(q)};
_.k.JSC$8851_setLoaded=function(){if(this.JSC$8864_currentlyLoadingModule_){var q=this.JSC$8864_currentlyLoadingModule_.getId(),w=[];if(this.JSC$8864_extraEdges_[q]){for(var u=_.P(Object.keys(this.JSC$8864_extraEdges_[q])),y=u.next();!y.done;y=u.next())y=y.value,this.getModuleInfo(y).isLoaded()||(this.removeExtraEdge(q,y),w.push(y));this.loadMultiple(w)}this.JSC$8864_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8864_currentlyLoadingModule_=null;(!this.isModuleLoading(q)&&/^sy[0-9a-z]{0,4}$/.test(q)||q==="synthetic_module_overhead")&&delete this.JSC$8864_moduleInfoMap_[q];this.unsetModulesAsLoading(q)}};
_.k.setModulesAsLoading=function(){var q=this;_.Cj.apply(0,arguments).forEach(function(w){q.loadingModules_[w]=!0})};
_.k.unsetModulesAsLoading=function(){var q=this;_.Cj.apply(0,arguments).forEach(function(w){delete q.loadingModules_[w]})};
var e$P=function(q,w){return new _.IA(function(u,y){var e=q.getModuleInfo(w);e.isLoaded()?u(null):(e.registerCallback(function(){u(null)}),o8P(e,function(t){var X="Error loading "+w+": "+t;
t instanceof Br.ModuleLoadFailure&&t.url&&(X=X+", requested url: "+t.url.toString());y(Error(X))}))})},y2G=function(q,w){w=w.filter(function(u){return!q.isModuleLoading(u)&&!q.getModuleInfo(u).isLoaded()});
w.length>0&&(q.setModulesAsLoading.apply(q,_.Cm(w)),q.JSC$8864_queue_.push(w),tlZ(q))},tlZ=function(q){for(var w={};q.activeLoads_<Infinity&&q.JSC$8864_queue_.length>0;w={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})w.ids$jscomp$36=q.JSC$8864_queue_.shift().filter(function(u){return!q.getModuleInfo(u).isLoaded()}),w.ids$jscomp$36.length>0&&(q.activeLoads_++,w.finishLoad=function(u){return function(){q.activeLoads_--;
tlZ(q);u.finishLoad=function(){}}}(w),_.rD(w.ids$jscomp$36.map(function(u){return e$P(q,u)})).then(function(u){return function(){(0,u.finishLoad)()}}(w)),w.attempt$jscomp$6=0,w.load$jscomp$1=function(u){return function(){if(Object.keys(q.JSC$8864_extraEdges_).length>0&&!q.JSC$7953_loader_.supportsExtraEdges)throw Error("td");
q.JSC$7953_loader_.JSC$8843_loadModules(u.ids$jscomp$36,q.JSC$8864_moduleInfoMap_,{extraEdges:q.JSC$8864_extraEdges_,onError:function(y,e){var t=w0G[u.attempt$jscomp$6++];t!==void 0?setTimeout(function(){(0,u.load$jscomp$1)()},t):(q.unsetModulesAsLoading.apply(q,_.Cm(u.ids$jscomp$36)),(0,u.finishLoad)(),u.ids$jscomp$36.forEach(function(X){X=q.getModuleInfo(X);
if(!X.isLoaded())X.onError(new Br.ModuleLoadFailure(Br.ModuleLoadFailure.JSC$8853_Type.CONSECUTIVE_FAILURES,y,u.ids$jscomp$36,e))}))}})}}(w),(0,w.load$jscomp$1)())},kdr=function(q,w,u,y,e){y=y===void 0?function(){return!0}:y;
e=e===void 0?{}:e;w=_.P(w);for(var t=w.next();!t.done;t=w.next()){t=t.value;var X=q.getModuleInfo(t);!e[t]&&y(X)&&(e[t]=!0,kdr(q,X.deps_||[],u,y,e),u(X))}};var PVX=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var QVl=Symbol("wd");window.JSCompiler_renameProperty=function(q){return q};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var X0$=!PVX||HTMLElement.es5Shimmed||_.uc.Reflect===void 0||_.uc.customElements===void 0||_.uc.customElements.polyfillWrapFlushCallback||!1,FMX,gtM=function(){var q=HTMLElement;if(X0$)return q;if(FMX!==void 0)return FMX;var w=_.uc.Reflect,u=function(){return w.construct(q,[],this.constructor)};
u.prototype=q.prototype;u.prototype.constructor=u;u.es5Shimmed=!0;Object.setPrototypeOf(u,q);return FMX=u},Gdk=!1;X0$||Gdk||(Gdk=!0,_.uc.HTMLElement=gtM());/*

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 Tmj=/(url\()([^)]*)(\))/g,rEu=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,U9u,XQ;var Y$=!window.ShadyDOM||!window.ShadyDOM.inUse,n$3=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),HJk=!window.customElements.polyfillWrapFlushCallback,WMk;if(WMk=Y$&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var svT=new CSSStyleSheet;svT.replaceSync("");var NAT=document.createElement("div");NAT.attachShadow({mode:"open"});NAT.shadowRoot.adoptedStyleSheets=[svT];WMk=NAT.shadowRoot.adoptedStyleSheets[0]===svT}catch(q){WMk=!1}
var Qvc=WMk,IOX=window.Polymer&&window.Polymer.rootPath||d97(document.baseURI||window.location.href),CJ=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,as4=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,c0=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,iJ6=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,bV=window.Polymer&&window.Polymer.legacyOptimizations||!1,Rv=window.Polymer&&window.Polymer.legacyWarnings||!1,r2P=window.Polymer&&window.Polymer.syncInitialRender||
!1,O4=window.Polymer&&window.Polymer.legacyUndefined||!1,Ubj=window.Polymer&&window.Polymer.orderedComputed||!1,gM=window.Polymer&&window.Polymer.removeNestedTemplates||!1,EG=window.Polymer&&window.Polymer.fastDomIf||!1,Ry=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,TAZ=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,CVk=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var c_={},dbj={},V1=function(){return HTMLElement.apply(this,arguments)||this};
_.O(V1,HTMLElement);V1.import=function(q,w){return q?(q=c_[q]||dbj[q.toLowerCase()])&&w?q.querySelector(w):q:null};
V1.prototype.attributeChangedCallback=function(q,w,u){w!==u&&this.register()};
V1.prototype.register=function(q){if(q=q||this.id){if(c0&&(c_[q]||dbj[q.toLowerCase()])!==void 0)throw c_[q]=dbj[q.toLowerCase()]=null,Error("xd`"+q);this.id=q;c_[q]=dbj[q.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.x$.Object.defineProperties(V1.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var q=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;q=_.FQ(this.getAttribute("assetpath")||"",q.baseURI);this.__assetpath=d97(q)}return this.__assetpath}}});
_.x$.Object.defineProperties(V1,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
V1["import"]=V1.import;V1.prototype.modules=c_;customElements.define("dom-module",V1);var OJT=0,ooc=0,Gd=[],o$r=0,OTy=!1,Vlr=document.createTextNode(""),fOT,$$;(new window.MutationObserver(V6j)).observe(Vlr,{characterData:!0});_.SF={after:function(q){return{run:function(w){return window.setTimeout(w,q)},
cancel:function(w){window.clearTimeout(w)}}},
run:function(q,w){return window.setTimeout(q,w)},
cancel:function(q){window.clearTimeout(q)}};
_.OO={run:function(q){return window.requestAnimationFrame(q)},
cancel:function(q){window.cancelAnimationFrame(q)}};
fOT={run:function(q){return window.requestIdleCallback?window.requestIdleCallback(q):window.setTimeout(q,16)},
cancel:function(q){window.cancelIdleCallback?window.cancelIdleCallback(q):window.clearTimeout(q)}};
$$={run:function(q){OTy||(OTy=!0,Vlr.textContent=o$r++);Gd.push(q);return OJT++},
cancel:function(q){var w=q-ooc;if(w>=0){if(!Gd[w])throw Error("yd`"+q);Gd[w]=null}}};var mb3=0,hL=function(q){var w=q.__mixinApplications;w||(w=new WeakMap,q.__mixinApplications=w);var u=mb3++;return function(y){var e=y.__mixinSet;if(e&&e[u])return y;var t=w,X=t.get(y);X||(X=q(y),t.set(y,X),y=Object.create(X.__mixinSet||e||null),y[u]=!0,X.__mixinSet=y);return X}};_.Td=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(q){return ShadyDOM.patch(q)}:function(q){return q};var A2x=hL(function(q){var w=function(){var u=q.call(this)||this;u.__dataEnabled=!1;u.__dataReady=!1;u.__dataInvalid=!1;u.__data={};u.__dataPending=null;u.__dataOld=null;u.__dataInstanceProps=null;u.__dataCounter=0;u.__serializing=!1;u._initializeProperties();return u};
_.O(w,q);w.createProperties=function(u){var y=this.prototype,e;for(e in u)e in y||y._createPropertyAccessor(e)};
w.attributeNameForProperty=function(u){return u.toLowerCase()};
w.typeForProperty=function(){};
w.prototype._createPropertyAccessor=function(u,y){this._addPropertyToAttributeMap(u);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[u]||(this.__dataHasAccessor[u]=!0,this._definePropertyAccessor(u,y))};
w.prototype._addPropertyToAttributeMap=function(u){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var y=this.__dataAttributes[u];y||(y=this.constructor.attributeNameForProperty(u),this.__dataAttributes[y]=u);return y};
w.prototype._definePropertyAccessor=function(u,y){Object.defineProperty(this,u,{get:function(){return this.__data[u]},
set:y?function(){}:function(e){this._setPendingProperty(u,e,!0)&&this._invalidateProperties()}})};
w.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
w.prototype._initializeProperties=function(){for(var u in this.__dataHasAccessor)this.hasOwnProperty(u)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[u]=this[u],delete this[u])};
w.prototype._initializeInstanceProperties=function(u){Object.assign(this,u)};
w.prototype._setProperty=function(u,y){this._setPendingProperty(u,y)&&this._invalidateProperties()};
w.prototype._getProperty=function(u){return this.__data[u]};
w.prototype._setPendingProperty=function(u,y){var e=this.__data[u],t=this._shouldPropertyChange(u,y,e);t&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||u in this.__dataOld||(this.__dataOld[u]=e),this.__data[u]=y,this.__dataPending[u]=y);return t};
w.prototype._isPropertyPending=function(u){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(u))};
w.prototype._invalidateProperties=function(){var u=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,$$.run(function(){u.__dataInvalid&&(u.__dataInvalid=!1,u._flushProperties())}))};
w.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
w.prototype._flushProperties=function(){this.__dataCounter++;var u=this.__data,y=this.__dataPending,e=this.__dataOld;this._shouldPropertiesChange(u,y,e)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(u,y,e));this.__dataCounter--};
w.prototype._shouldPropertiesChange=function(u,y){return!!y};
w.prototype._propertiesChanged=function(){};
w.prototype._shouldPropertyChange=function(u,y,e){return e!==y&&(e===e||y===y)};
w.prototype.attributeChangedCallback=function(u,y,e,t){y!==e&&this._attributeToProperty(u,e);q.prototype.attributeChangedCallback&&q.prototype.attributeChangedCallback.call(this,u,y,e,t)};
w.prototype._attributeToProperty=function(u,y,e){if(!this.__serializing){var t=this.__dataAttributes;u=t&&t[u]||u;this[u]=this._deserializeValue(y,e||this.constructor.typeForProperty(u))}};
w.prototype._propertyToAttribute=function(u,y,e){this.__serializing=!0;e=arguments.length<3?this[u]:e;this._valueToNodeAttribute(this,e,y||this.constructor.attributeNameForProperty(u));this.__serializing=!1};
w.prototype._valueToNodeAttribute=function(u,y,e){y=this._serializeValue(y);if(e==="class"||e==="name"||e==="slot")u=(0,_.Td)(u);y===void 0?u.removeAttribute(e):u.setAttribute(e,y===""&&window.trustedTypes?window.trustedTypes.emptyScript:y)};
w.prototype._serializeValue=function(u){switch(typeof u){case "boolean":return u?"":void 0;default:return u!=null?u.toString():void 0}};
w.prototype._deserializeValue=function(u,y){switch(y){case Boolean:return u!==null;case Number:return Number(u);default:return u}};
return w});var J2X=0,fKM=[];var z$j=hL(function(q){function w(t){t=Object.getPrototypeOf(t);return t.prototype instanceof e?t:null}
function u(t){if(!t.hasOwnProperty("__ownProperties")){var X=null;if(t.hasOwnProperty("properties")){var G=t.properties;if(G){X={};for(var n in G){var N=G[n];X[n]=typeof N==="function"?{type:N}:N}}}t.__ownProperties=X}return t.__ownProperties}
var y=A2x(q),e=function(){return y.apply(this,arguments)||this};
_.O(e,y);e.finalize=function(){if(!this.hasOwnProperty("__finalized")){var t=w(this);t&&t.finalize();this.__finalized=!0;this._finalizeClass()}};
e._finalizeClass=function(){var t=u(this);t&&this.createProperties(t)};
e.typeForProperty=function(t){return(t=this._properties[t])&&t.type};
e.prototype._initializeProperties=function(){J2X++;this.constructor.finalize();y.prototype._initializeProperties.call(this)};
e.prototype.connectedCallback=function(){y.prototype.connectedCallback&&y.prototype.connectedCallback.call(this);this._enableProperties()};
e.prototype.disconnectedCallback=function(){y.prototype.disconnectedCallback&&y.prototype.disconnectedCallback.call(this)};
_.x$.Object.defineProperties(e,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var t=this;if(!this.hasOwnProperty("__observedAttributes")){m9c(this.prototype);var X=this._properties;this.__observedAttributes=X?Object.keys(X).map(function(G){return t.prototype._addPropertyToAttributeMap(G)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var t=w(this);this.__properties=Object.assign({},t&&t._properties,u(this))}return this.__properties}}});
return e});var AEM={},JEy=/-[a-z]/g,zQu=/([A-Z])/g;for(var aOZ={},DbF=HTMLElement.prototype;DbF;){for(var ZJT=Object.getOwnPropertyNames(DbF),p0G=0;p0G<ZJT.length;p0G++)aOZ[ZJT[p0G]]=!0;DbF=Object.getPrototypeOf(DbF)}var $bk=window.trustedTypes?function(q){return trustedTypes.isHTML(q)||trustedTypes.isScript(q)||trustedTypes.isScriptURL(q)}:function(){return!1},v$a=hL(function(q){var w=A2x(q);
q=function(){return w.apply(this,arguments)||this};
_.O(q,w);q.createPropertiesForAttributes=function(){for(var u=this.observedAttributes,y=0;y<u.length;y++)this.prototype._createPropertyAccessor(nJ(u[y]))};
q.attributeNameForProperty=function(u){return H0(u)};
q.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);w.prototype._initializeProperties.call(this)};
q.prototype._initializeProtoProperties=function(u){for(var y in u)this._setProperty(y,u[y])};
q.prototype._ensureAttribute=function(u,y){this.hasAttribute(u)||this._valueToNodeAttribute(this,y,u)};
q.prototype._serializeValue=function(u){switch(typeof u){case "object":if(u instanceof Date)return u.toString();if(u){if($bk(u))return u;try{return JSON.stringify(u)}catch(y){return""}}default:return w.prototype._serializeValue.call(this,u)}};
q.prototype._deserializeValue=function(u,y){switch(y){case Object:try{var e=JSON.parse(u)}catch(t){e=u}break;case Array:try{e=JSON.parse(u)}catch(t){e=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+u)}break;case Date:e=isNaN(u)?String(u):Number(u);e=new Date(e);break;default:e=w.prototype._deserializeValue.call(this,u,y)}return e};
q.prototype._definePropertyAccessor=function(u,y){if(!aOZ[u]){var e=this[u];e!==void 0&&(this.__data?this._setPendingProperty(u,e):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[u]=e))}w.prototype._definePropertyAccessor.call(this,u,y)};
q.prototype._hasAccessor=function(u){return this.__dataHasAccessor&&this.__dataHasAccessor[u]};
q.prototype._isPropertyPending=function(u){return!!(this.__dataPending&&u in this.__dataPending)};
return q});var bJF={"dom-if":!0,"dom-repeat":!0},Y46=!1,g$j=!1,E$3=function(){var q=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(w){return w}});
return function(w,u,y){u=u.getAttribute(y);q&&y.startsWith("on-")?w.setAttribute(y,q.createScript(u,y)):w.setAttribute(y,u)}}(),R$6=hL(function(q){var w=function(){return q.apply(this,arguments)||this};
_.O(w,q);w._parseTemplate=function(u,y){if(!u._templateInfo){var e=u._templateInfo={};e.nodeInfoList=[];e.nestedTemplate=!!y;e.stripWhiteSpace=y&&y.stripWhiteSpace||u.hasAttribute&&u.hasAttribute("strip-whitespace");this._parseTemplateContent(u,e,{parent:null})}return u._templateInfo};
w._parseTemplateContent=function(u,y,e){return this._parseTemplateNode(u.content,y,e)};
w._parseTemplateNode=function(u,y,e){var t=!1;u.localName!="template"||u.hasAttribute("preserve-content")?u.localName==="slot"&&(y.hasInsertionPoint=!0):t=this._parseTemplateNestedTemplate(u,y,e)||t;if(!Y46){Y46=!0;var X=document.createElement("textarea");X.placeholder="a";g$j=X.placeholder===X.textContent}g$j&&u.localName==="textarea"&&u.placeholder&&u.placeholder===u.textContent&&(u.textContent=null);u.firstChild&&this._parseTemplateChildNodes(u,y,e);u.hasAttributes&&u.hasAttributes()&&(t=this._parseTemplateNodeAttributes(u,
y,e)||t);return t||e.noted};
w._parseTemplateChildNodes=function(u,y,e){if(u.localName!=="script"&&u.localName!=="style")for(var t=u.firstChild,X=0,G;t;t=G){if(t.localName=="template"){var n=t.getAttribute("is");if(n&&bJF[n])for(G=t,G.removeAttribute("is"),t=G.ownerDocument.createElement(n),G.parentNode.replaceChild(t,G),t.appendChild(G);G.attributes.length;)n=G.attributes[0].name,E$3(t,G,n),G.removeAttribute(n)}G=t.nextSibling;if(t.nodeType===Node.TEXT_NODE){for(n=G;n&&n.nodeType===Node.TEXT_NODE;)t.textContent+=n.textContent,
G=n.nextSibling,u.removeChild(n),n=G;if(y.stripWhiteSpace&&!t.textContent.trim()){u.removeChild(t);continue}}n={parentIndex:X,parentInfo:e};this._parseTemplateNode(t,y,n)&&(n.infoIndex=y.nodeInfoList.push(n)-1);t.parentNode&&X++}};
w._parseTemplateNestedTemplate=function(u,y,e){y=this._parseTemplate(u,y);(y.content=u.content.ownerDocument.createDocumentFragment()).appendChild(u.content);e.templateInfo=y;return!0};
w._parseTemplateNodeAttributes=function(u,y,e){for(var t=!1,X=Array.from(u.attributes),G=X.length-1,n;n=X[G];G--)t=this._parseTemplateNodeAttribute(u,y,e,n.name,n.value)||t;return t};
w._parseTemplateNodeAttribute=function(u,y,e,t,X){return t.slice(0,3)==="on-"?(u.removeAttribute(t),e.events=e.events||[],e.events.push({name:t.slice(3),value:X}),!0):t==="id"?(e.id=X,!0):!1};
w._contentForTemplate=function(u){var y=u._templateInfo;return y&&y.content||u.content};
w.prototype._stampTemplate=function(u,y){u&&!u.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(u);y=y||this.constructor._parseTemplate(u);var e=y.nodeInfoList;u=document.importNode(y.content||u.content,!0);u.__noInsertionPoint=!y.hasInsertionPoint;var t=u.nodeList=Array(e.length);u.$={};for(var X=0,G=e.length,n=void 0;X<G&&(n=e[X]);X++){var N=t[X]=aKH(u,n);n.id&&(u.$[n.id]=N);var Q=N,I=n,U=y;I.templateInfo&&(Q._templateInfo=I.templateInfo,Q._parentTemplateInfo=
U);if(n.events&&n.events.length)for(Q=0,I=n.events,U=void 0;Q<I.length&&(U=I[Q]);Q++)this._addMethodEventListenerToNode(N,U.name,U.value,this)}return u};
w.prototype._addMethodEventListenerToNode=function(u,y,e,t){e=D9s(t||u,e);this._addEventListenerToNode(u,y,e);return e};
w.prototype._addEventListenerToNode=function(u,y,e){u.addEventListener(y,e)};
w.prototype._removeEventListenerFromNode=function(u,y,e){u.removeEventListener(y,e)};
return w});var rA=0,dA=[],c2r={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},S46=/[A-Z]/,h$j=function(q,w,u,y,e){var t=e?s4(q):q;if(w=w[t])for(t=0;t<w.length;t++){var X=w[t];if(X.info.lastRun!==rA&&(!e||Y3o(q,X.trigger))){X.info.lastRun=rA;X=X.info;for(var G=u,n=y,N=0,Q=G.length-1,I=-1;N<=Q;){var U=N+Q>>1,d=n.get(G[U].methodInfo)-n.get(X.methodInfo);if(d<0)N=U+1;else if(d>0)Q=U-1;else{I=U;break}}I<
0&&(I=Q+1);G.splice(I,0,X)}}},wCz=[],jv3=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"),lR=hL(function(q){var w=R$6(v$a(q));
q=function(){var u=w.call(this)||this;u.__isPropertyEffectsClient=!0;return u};
_.O(q,w);q.prototype._initializeProperties=function(){w.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};
q.prototype._registerHost=function(){if(jF.length){var u=jF[jF.length-1];u._enqueueClient(this);this.__dataHost=u}};
q.prototype._initializeProtoProperties=function(u){this.__data=Object.create(u);this.__dataPending=Object.create(u);this.__dataOld={}};
q.prototype._initializeInstanceProperties=function(u){var y=this.__readOnly,e;for(e in u)y&&y[e]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[e]=this.__dataPending[e]=u[e])};
q.prototype._addPropertyEffect=function(u,y,e){this._createPropertyAccessor(u,y=="__readOnly");var t=bTs(this,y,!0)[u];t||(t=this[y][u]=[]);t.push(e)};
q.prototype._removePropertyEffect=function(u,y,e){u=bTs(this,y,!0)[u];e=u.indexOf(e);e>=0&&u.splice(e,1)};
q.prototype._hasPropertyEffect=function(u,y){y=this[y];return!(!y||!y[u])};
q.prototype._hasReadOnlyEffect=function(u){return this._hasPropertyEffect(u,"__readOnly")};
q.prototype._hasNotifyEffect=function(u){return this._hasPropertyEffect(u,"__notifyEffects")};
q.prototype._hasReflectEffect=function(u){return this._hasPropertyEffect(u,"__reflectEffects")};
q.prototype._hasComputedEffect=function(u){return this._hasPropertyEffect(u,"__computeEffects")};
q.prototype._setPendingPropertyOrPath=function(u,y,e,t){if(t||s4(Array.isArray(u)?u[0]:u)!==u){if(!t&&(t=iV(this,u),u=voM(this,u,y),!u||!w.prototype._shouldPropertyChange.call(this,u,y,t)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(u,y,e)){if(e=this.__dataLinkedPaths)for(var X in e)t=e[X],Nb(X,u)?(t=Q1(X,t,u),this._setPendingPropertyOrPath(t,y,!0,!0)):Nb(t,u)&&(t=Q1(t,X,u),this._setPendingPropertyOrPath(t,y,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[u])return this._setPendingProperty(u,
y,e);this[u]=y}return!1};
q.prototype._setUnmanagedPropertyToNode=function(u,y,e){if(e!==u[y]||typeof e=="object")y==="className"&&(u=(0,_.Td)(u)),u[y]=e};
q.prototype._setPendingProperty=function(u,y,e){var t=this.__dataHasPaths&&W0(u);if(this._shouldPropertyChange(u,y,(t?this.__dataTemp:this.__data)[u])){this.__dataPending||(this.__dataPending={},this.__dataOld={});u in this.__dataOld||(this.__dataOld[u]=this.__data[u]);t?this.__dataTemp[u]=y:this.__data[u]=y;this.__dataPending[u]=y;if(t||this.__notifyEffects&&this.__notifyEffects[u])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[u]=e;return!0}return!1};
q.prototype._setProperty=function(u,y){this._setPendingProperty(u,y,!0)&&this._invalidateProperties()};
q.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
q.prototype._enqueueClient=function(u){this.__dataPendingClients=this.__dataPendingClients||[];u!==this&&this.__dataPendingClients.push(u)};
q.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
q.prototype.__enableOrFlushClients=function(){var u=this.__dataPendingClients;if(u){this.__dataPendingClients=null;for(var y=0;y<u.length;y++){var e=u[y];e.__dataEnabled?e.__dataPending&&e._flushProperties():e._enableProperties()}}};
q.prototype._readyClients=function(){this.__enableOrFlushClients()};
q.prototype.setProperties=function(u,y){for(var e in u)!y&&this.__readOnly&&this.__readOnly[e]||this._setPendingPropertyOrPath(e,u[e],!0);this._invalidateProperties()};
q.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
q.prototype._propertiesChanged=function(u,y,e){u=this.__dataHasPaths;this.__dataHasPaths=!1;var t;if(t=this.__computeEffects)if(Ubj){rA++;var X=hQc(this),G=[],n;for(n in y)h$j(n,t,G,X,u);for(;n=G.shift();)lKj(this,"",y,e,n)&&h$j(n.methodInfo,t,G,X,u);Object.assign(e,this.__dataOld);Object.assign(y,this.__dataPending);this.__dataPending=null}else for(X=y;U4(this,t,X,e,u);)Object.assign(e,this.__dataOld),Object.assign(y,this.__dataPending),X=this.__dataPending,this.__dataPending=null;t=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(y,e,u);this._flushClients();U4(this,this.__reflectEffects,y,e,u);U4(this,this.__observeEffects,y,e,u);if(t){X=this.__notifyEffects;G=rA++;for(var N in t)if(t[N]){if(n=X){var Q=X;n=G;var I=N,U=y,d=e,V=u,J=!1,a=V?s4(I):I;if(Q=Q[a]){a=0;for(var b=Q.length,g=void 0;a<b&&(g=Q[a]);a++)g.info&&g.info.lastRun===n||V&&!Y3o(I,g.trigger)||(g.info&&(g.info.lastRun=n),g.fn(this,I,U,d,g.info,V,void 0),J=!0)}n=J}if(n)var l=!0;else{if(n=u)n=N,I=y,U=s4(n),U!==
n?(U=H0(U)+"-changed",EoM(this,U,I[n],n),n=!0):n=!1;n&&(l=!0)}}var S;l&&(S=this.__dataHost)&&S._invalidateProperties&&S._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
q.prototype._propagatePropertyChanges=function(u,y,e){this.__propagateEffects&&U4(this,this.__propagateEffects,u,y,e);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,u,y,e)};
q.prototype._runEffectsForTemplate=function(u,y,e,t){var X=this,G=function(n,N){U4(X,u.propertyEffects,n,e,N,u.nodeList);for(var Q=u.firstChild;Q;Q=Q.nextSibling)X._runEffectsForTemplate(Q,n,e,N)};
u.runEffects?u.runEffects(G,y,t):G(y,t)};
q.prototype.linkPaths=function(u,y){u=Iv(u);y=Iv(y);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[u]=y};
q.prototype.unlinkPaths=function(u){u=Iv(u);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[u]};
q.prototype.notifySplices=function(u,y){var e={path:""};u=iV(this,u,e);knj(this,u,e.path,y)};
q.prototype.get=function(u,y){return iV(y||this,u)};
q.prototype.set=function(u,y,e){e?voM(e,u,y):this.__readOnly&&this.__readOnly[u]||this._setPendingPropertyOrPath(u,y,!0)&&this._invalidateProperties()};
q.prototype.push=function(u){var y=_.Cj.apply(1,arguments),e={path:""},t=iV(this,u,e),X=t.length,G=t.push.apply(t,_.Cm(y));y.length&&ov(this,t,e.path,X,y.length,[]);return G};
q.prototype.pop=function(u){var y={path:""};u=iV(this,u,y);var e=!!u.length,t=u.pop();e&&ov(this,u,y.path,u.length,0,[t]);return t};
q.prototype.splice=function(u,y,e){var t=_.Cj.apply(3,arguments),X={path:""},G=iV(this,u,X);y<0?y=G.length-Math.floor(-y):y&&(y=Math.floor(y));var n=arguments.length===2?G.splice(y):G.splice.apply(G,[y,e].concat(_.Cm(t)));(t.length||n.length)&&ov(this,G,X.path,y,t.length,n);return n};
q.prototype.shift=function(u){var y={path:""};u=iV(this,u,y);var e=!!u.length,t=u.shift();e&&ov(this,u,y.path,0,0,[t]);return t};
q.prototype.unshift=function(u){var y=_.Cj.apply(1,arguments),e={path:""},t=iV(this,u,e),X=t.unshift.apply(t,_.Cm(y));y.length&&ov(this,t,e.path,0,y.length,[]);return X};
q.prototype.notifyPath=function(u,y){if(arguments.length==1){var e={path:""};y=iV(this,u,e);e=e.path}else e=Array.isArray(u)?Iv(u):u;this._setPendingPropertyOrPath(e,y,!0,!0)&&this._invalidateProperties()};
q.prototype._createReadOnlyProperty=function(u,y){this._addPropertyEffect(u,"__readOnly");y&&(this["_set"+(u[0].toUpperCase()+u.substring(1))]=function(e){this._setProperty(u,e)})};
q.prototype._createPropertyObserver=function(u,y,e){var t={property:u,method:y,dynamicFn:!!e};this._addPropertyEffect(u,"__observeEffects",{fn:gol,info:t,trigger:{name:u}});e&&this._addPropertyEffect(y,"__observeEffects",{fn:gol,info:t,trigger:{name:y}})};
q.prototype._createMethodObserver=function(u,y){var e=ygs(u);if(!e)throw Error("zd`"+u);x9M(this,e,"__observeEffects",jV6,null,y)};
q.prototype._createNotifyingProperty=function(u){this._addPropertyEffect(u,"__notifyEffects",{fn:RQH,info:{eventName:H0(u)+"-changed",property:u}})};
q.prototype._createReflectedProperty=function(u){var y=this.constructor.attributeNameForProperty(u);y[0]==="-"?console.warn("Property "+u+" cannot be reflected to attribute "+y+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(u,"__reflectEffects",{fn:cEj,info:{attrName:y}})};
q.prototype._createComputedProperty=function(u,y,e){var t=ygs(y);if(!t)throw Error("Ad`"+y);y=x9M(this,t,"__computeEffects",lKj,u,e);bTs(this,"__computeInfo")[u]=y};
q.prototype._marshalArgs=function(u,y,e){for(var t=this.__data,X=[],G=0,n=u.length;G<n;G++){var N=u[G],Q=N.name,I=N.structured,U=N.wildcard,d=N.value;N.literal||(U?(N=Nb(Q,y),I=ebj(t,e,N?y:Q),d={path:N?y:Q,value:I,base:N?iV(t,Q):I}):d=I?ebj(t,e,Q):t[Q]);if(O4&&!this._overrideLegacyUndefined&&d===void 0&&u.length>1)return dA;X[G]=d}return X};
q.addPropertyEffect=function(u,y,e){this.prototype._addPropertyEffect(u,y,e)};
q.createPropertyObserver=function(u,y,e){this.prototype._createPropertyObserver(u,y,e)};
q.createMethodObserver=function(u,y){this.prototype._createMethodObserver(u,y)};
q.createNotifyingProperty=function(u){this.prototype._createNotifyingProperty(u)};
q.createReadOnlyProperty=function(u,y){this.prototype._createReadOnlyProperty(u,y)};
q.createReflectedProperty=function(u){this.prototype._createReflectedProperty(u)};
q.createComputedProperty=function(u,y,e){this.prototype._createComputedProperty(u,y,e)};
q.bindTemplate=function(u){return this.prototype._bindTemplate(u)};
q.prototype._bindTemplate=function(u,y){var e=this.constructor._parseTemplate(u),t=this.__preBoundTemplateInfo==e;if(!t)for(var X in e.propertyEffects)this._createPropertyAccessor(X);y?(e=Object.create(e),e.wasPreBound=t,this.__templateInfo?(u=u._parentTemplateInfo||this.__templateInfo,y=u.lastChild,e.parent=u,u.lastChild=e,(e.previousSibling=y)?y.nextSibling=e:u.firstChild=e):this.__templateInfo=e):this.__preBoundTemplateInfo=e;return e};
q._addTemplatePropertyEffect=function(u,y,e){(u.hostProps=u.hostProps||{})[y]=!0;u=u.propertyEffects=u.propertyEffects||{};(u[y]=u[y]||[]).push(e)};
q.prototype._stampTemplate=function(u,y){y=y||this._bindTemplate(u,!0);jF.push(this);u=w.prototype._stampTemplate.call(this,u,y);jF.pop();y.nodeList=u.nodeList;if(!y.wasPreBound)for(var e=y.childNodes=[],t=u.firstChild;t;t=t.nextSibling)e.push(t);u.templateInfo=y;e=y.nodeList;t=y.nodeInfoList;if(t.length)for(var X=0;X<t.length;X++){var G=e[X],n=t[X].bindings;if(n)for(var N=0;N<n.length;N++){var Q=n[N],I=G,U=Q;if(U.isCompound){for(var d=I.__dataCompoundStorage||(I.__dataCompoundStorage={}),V=U.parts,
J=Array(V.length),a=0;a<V.length;a++)J[a]=V[a].literal;V=U.target;d[V]=J;U.literal&&U.kind=="property"&&(V==="className"&&(I=(0,_.Td)(I)),I[V]=U.literal)}BmM(G,this,Q)}G.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(y,this.__data,null,!1),this._flushClients());return u};
q.prototype._removeBoundDom=function(u){u=u.templateInfo;var y=u.previousSibling,e=u.nextSibling,t=u.parent;y?y.nextSibling=e:t&&(t.firstChild=e);e?e.previousSibling=y:t&&(t.lastChild=y);u.nextSibling=u.previousSibling=null;u=u.childNodes;for(y=0;y<u.length;y++)e=u[y],(0,_.Td)((0,_.Td)(e).parentNode).removeChild(e)};
q._parseTemplateNode=function(u,y,e){var t=w._parseTemplateNode.call(this,u,y,e);if(u.nodeType===Node.TEXT_NODE){var X=this._parseBindings(u.textContent,y);X&&(u.textContent=qFM(X)||" ",Ksy(this,y,e,"text","textContent",X),t=!0)}return t};
q._parseTemplateNodeAttribute=function(u,y,e,t,X){var G=this._parseBindings(X,y);if(G){X=t;var n="property";S46.test(t)?n="attribute":t[t.length-1]=="$"&&(t=t.slice(0,-1),n="attribute");var N=qFM(G);N&&n=="attribute"&&(t=="class"&&u.hasAttribute("class")&&(N+=" "+u.getAttribute(t)),u.setAttribute(t,N));n=="attribute"&&X=="disable-upgrade$"&&u.setAttribute(t,"");u.localName==="input"&&X==="value"&&u.setAttribute(X,"");u.removeAttribute(X);n==="property"&&(t=nJ(t));Ksy(this,y,e,n,t,G,N);return!0}return w._parseTemplateNodeAttribute.call(this,
u,y,e,t,X)};
q._parseTemplateNestedTemplate=function(u,y,e){var t=w._parseTemplateNestedTemplate.call(this,u,y,e),X=u.parentNode,G=e.templateInfo,n=X.localName==="dom-if",N=X.localName==="dom-repeat";gM&&(n||N)&&(X.removeChild(u),e=e.parentInfo,e.templateInfo=G,e.noted=!0,t=!1);u=G.hostProps;if(EG&&n)u&&(y.hostProps=Object.assign(y.hostProps||{},u),gM||(e.parentInfo.noted=!0));else for(var Q in u)Ksy(this,y,e,"property","_host_"+Q,[{mode:"{",source:Q,dependencies:[Q],hostProp:!0}]);return t};
q._parseBindings=function(u,y){for(var e=[],t=0,X;(X=jv3.exec(u))!==null;){X.index>t&&e.push({literal:u.slice(t,X.index)});t=X[1][0];var G=!!X[2];X=X[3].trim();var n=!1,N="",Q=-1;t=="{"&&(Q=X.indexOf("::"))>0&&(N=X.substring(Q+2),X=X.substring(0,Q),n=!0);Q=ygs(X);var I=[];if(Q){var U=Q,d=U.args;U=U.methodName;for(var V=0;V<d.length;V++){var J=d[V];J.literal||I.push(J)}if((d=y.dynamicFns)&&d[U]||Q.static)I.push(U),Q.dynamicFn=!0}else I.push(X);e.push({source:X,mode:t,negate:G,customEvent:n,signature:Q,
dependencies:I,event:N});t=jv3.lastIndex}t&&t<u.length&&(u=u.substring(t))&&e.push({literal:u});return e.length?e:null};
q._evaluateBinding=function(u,y,e,t,X,G){u=y.signature?jV6(u,e,t,X,y.signature):e!=y.source?iV(u,y.source):G&&W0(e)?iV(u,e):u.__data[e];y.negate&&(u=!u);return u};
_.x$.Object.defineProperties(q.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return c2r}}});
return q}),jF=[];var lO3=window.ShadyCSS&&window.ShadyCSS.cssBuild,L9=hL(function(q){function w(y,e,t,X){if(!lO3){for(var G=e.content.querySelectorAll("style"),n=FGc(e),N=Gns(t),Q=e.content.firstElementChild,I=0;I<N.length;I++){var U=N[I];U.textContent=y._processStyleText(U.textContent,X);e.content.insertBefore(U,Q)}for(Q=N=0;Q<n.length;Q++)I=n[Q],U=G[N],U!==I?(I=I.cloneNode(!0),U.parentNode.insertBefore(I,U)):N++,I.textContent=y._processStyleText(I.textContent,X)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,
t);if(CVk&&lO3&&Qvc&&(e=e.content.querySelectorAll("style"))){var d="";Array.from(e).forEach(function(V){d+=V.textContent;V.parentNode.removeChild(V)});
y._styleSheet=new CSSStyleSheet;y._styleSheet.replaceSync(d)}}
var u=z$j(lR(q));q=function(){return u.call(this)||this};
_.O(q,u);q._finalizeClass=function(){u._finalizeClass.call(this);var y;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(y=this.__ownObservers)&&this.createObservers(y,this._properties);this._prepareTemplate()};
q._prepareTemplate=function(){var y=this.template;y&&(typeof y==="string"?(console.error("template getter must return HTMLTemplateElement"),y=null):bV||(y=y.cloneNode(!0)));this.prototype._template=y};
q.createProperties=function(y){for(var e in y){var t=this.prototype,X=e,G=y[e],n=y;G.computed&&(G.readOnly=!0);G.computed&&(t._hasReadOnlyEffect(X)?console.warn("Cannot redefine computed property '"+X+"'."):t._createComputedProperty(X,G.computed,n));G.readOnly&&!t._hasReadOnlyEffect(X)?t._createReadOnlyProperty(X,!G.computed):G.readOnly===!1&&t._hasReadOnlyEffect(X)&&console.warn("Cannot make readOnly property '"+X+"' non-readOnly.");G.reflectToAttribute&&!t._hasReflectEffect(X)?t._createReflectedProperty(X):
G.reflectToAttribute===!1&&t._hasReflectEffect(X)&&console.warn("Cannot make reflected property '"+X+"' non-reflected.");G.notify&&!t._hasNotifyEffect(X)?t._createNotifyingProperty(X):G.notify===!1&&t._hasNotifyEffect(X)&&console.warn("Cannot make notify property '"+X+"' non-notify.");G.observer&&t._createPropertyObserver(X,G.observer,n[G.observer]);t._addPropertyToAttributeMap(X)}};
q.createObservers=function(y,e){for(var t=this.prototype,X=0;X<y.length;X++)t._createMethodObserver(y[X],e)};
q.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);u.prototype._initializeProperties.call(this);this.rootPath=IOX;this.importPath=this.constructor.importPath;var y=this.constructor;if(!y.hasOwnProperty("__propertyDefaults")){y.__propertyDefaults=null;var e=y._properties,t;for(t in e){var X=e[t];"value"in X&&(y.__propertyDefaults=y.__propertyDefaults||{},y.__propertyDefaults[t]=X)}}if(y=y.__propertyDefaults)for(var G in y)e=y[G],
this._canApplyPropertyDefault(G)&&(e=typeof e.value=="function"?e.value.call(this):e.value,this._hasAccessor(G)?this._setPendingProperty(G,e,!0):this[G]=e)};
q.prototype._canApplyPropertyDefault=function(y){return!this.hasOwnProperty(y)};
q._processStyleText=function(y,e){return Cvc(y,e)};
q._finalizeTemplate=function(y){var e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;var t=this.importPath;t=t?_.FQ(t):"";w(this,e,y,t);this.prototype._bindTemplate(e)}};
q.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);u.prototype.connectedCallback.call(this)};
q.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);u.prototype.ready.call(this)};
q.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));u.prototype._readyClients.call(this)};
q.prototype._attachDom=function(y){var e=(0,_.Td)(this);if(e.attachShadow)return y?(e.shadowRoot||(e.attachShadow({mode:"open",shadyUpgradeFragment:y}),e.shadowRoot.appendChild(y),this.constructor._styleSheet&&(e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),r2P&&window.ShadyDOM&&window.ShadyDOM.flushInitial(e.shadowRoot),e.shadowRoot):null;throw Error("Cd");};
q.prototype.updateStyles=function(y){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,y)};
q.prototype.resolveUrl=function(y,e){!e&&this.importPath&&(e=_.FQ(this.importPath));return _.FQ(y,e)};
q._parseTemplateContent=function(y,e,t){e.dynamicFns=e.dynamicFns||this._properties;return u._parseTemplateContent.call(this,y,e,t)};
q._addTemplatePropertyEffect=function(y,e,t){!Rv||e in this._properties||t.info.part.signature&&t.info.part.signature.static||t.info.part.hostProp||y.nestedTemplate||console.warn("Property '"+e+"' used in template but not declared in 'properties'; attribute will not be observed.");return u._addTemplatePropertyEffect.call(this,y,e,t)};
_.x$.Object.defineProperties(q,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var y=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof y==="function"&&(y=y());if(y===void 0){if(y=this.hasOwnProperty("is")){y=this.is;var e=null;if(y&&(!c0||iJ6)&&(e=V1.import(y,"template"),c0&&!e))throw Error("Bd`"+y);y=e}y=y||Object.getPrototypeOf(this.prototype).constructor.template}this._template=y}return this._template},
set:function(y){this._template=y}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var y=this.importMeta;y?this._importPath=d97(y.url):this._importPath=(y=V1.import(this.is))&&y.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return q});var LMX=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(q){return q}}),irH=function(q,w){Mla(q,w);
this.value=w.reduce(function(u,y,e){return u+rgH(y)+q[e+1]},q[0]).toString()},Mla;
irH.prototype.toString=function(){return this.value};
_.KMX=function(q){var w=_.Cj.apply(1,arguments);Mla(q,w);var u=document.createElement("template");w=w.reduce(function(y,e,t){if(e instanceof HTMLTemplateElement)e=e.innerHTML;else if(e instanceof irH)e=rgH(e);else throw Error("Ed`"+e);return y+e+q[t+1]},q[0]);
LMX&&(w=LMX.createHTML(w));u.innerHTML=w;return u};
Mla=function(q,w){if(!Array.isArray(q)||!Array.isArray(q.raw)||w.length!==q.length-1)throw new TypeError("Fd");};var Md=L9(HTMLElement);var BAr=hL(function(q){var w=L9(q);q=function(){var u=w.call(this)||this;u.__lastItems=null;u.__lastMulti=null;u.__selectedMap=null;return u};
_.O(q,w);q.prototype.__updateSelection=function(u,y){var e=y.path;e=="items"?(y=y.base||[],e=this.__lastItems,u!==this.__lastMulti&&this.clearSelection(),e&&(e=Isj(y,e),this.__applySplices(e)),this.__lastItems=y,this.__lastMulti=u):y.path=="items.splices"?this.__applySplices(y.value.indexSplices):(u=e.slice(6),y=parseInt(u,10),u.indexOf(".")<0&&u==y&&this.__deselectChangedIdx(y))};
q.prototype.__applySplices=function(u){for(var y=this,e=this.__selectedMap,t={},X=0;X<u.length;t={s$jscomp$108:void 0},X++){t.s$jscomp$108=u[X];e.forEach(function(Q){return function(I,U){I<Q.s$jscomp$108.index||(I>=Q.s$jscomp$108.index+Q.s$jscomp$108.removed.length?e.set(U,I+Q.s$jscomp$108.addedCount-Q.s$jscomp$108.removed.length):e.set(U,-1))}}(t));
for(var G=0;G<t.s$jscomp$108.addedCount;G++){var n=t.s$jscomp$108.index+G;e.has(this.items[n])&&e.set(this.items[n],n)}}this.__updateLinks();var N=0;e.forEach(function(Q,I){Q<0?(y.multi?y.splice("selected",N,1):y.selected=y.selectedItem=null,e.delete(I)):N++})};
q.prototype.__updateLinks=function(){var u=this;this.__dataLinkedPaths={};if(this.multi){var y=0;this.__selectedMap.forEach(function(e){e>=0&&u.linkPaths("items."+e,"selected."+y++)})}else this.__selectedMap.forEach(function(e){u.linkPaths("selected","items."+e);
u.linkPaths("selectedItem","items."+e)})};
q.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
q.prototype.isSelected=function(u){return this.__selectedMap.has(u)};
q.prototype.isIndexSelected=function(u){return this.isSelected(this.items[u])};
q.prototype.__deselectChangedIdx=function(u){var y=this,e=this.__selectedIndexForItemIndex(u);if(e>=0){var t=0;this.__selectedMap.forEach(function(X,G){e==t++&&y.deselect(G)})}};
q.prototype.__selectedIndexForItemIndex=function(u){if(u=this.__dataLinkedPaths["items."+u])return parseInt(u.slice(9),10)};
q.prototype.deselect=function(u){var y=this.__selectedMap.get(u);if(y>=0){this.__selectedMap.delete(u);var e;this.multi&&(e=this.__selectedIndexForItemIndex(y));this.__updateLinks();this.multi?this.splice("selected",e,1):this.selected=this.selectedItem=null}};
q.prototype.deselectIndex=function(u){this.deselect(this.items[u])};
q.prototype.select=function(u){this.selectIndex(this.items.indexOf(u))};
q.prototype.selectIndex=function(u){var y=this.items[u];this.isSelected(y)?this.toggle&&this.deselectIndex(u):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(y,u),this.__updateLinks(),this.multi?this.push("selected",y):this.selected=this.selectedItem=y)};
_.x$.Object.defineProperties(q,{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 q}),xbF=BAr(Md),K9=function(){return xbF.apply(this,arguments)||this};
_.O(K9,xbF);_.x$.Object.defineProperties(K9,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(K9.is,K9);var qM3=window.Polymer;window.Polymer=function(q){return window.Polymer._polymerFn(q)};
qM3&&Object.assign(Polymer,qM3);Polymer._polymerFn=function(){throw Error("Gd");};/*

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:Cvc,resolveUrl:_.FQ,pathFromUrl:d97};Polymer.DomModule=V1;Polymer.Async={timeOut:_.SF,animationFrame:_.OO,idlePeriod:fOT,microTask:$$};Polymer.dedupingMixin=hL;Polymer.wrap=_.Td;Polymer.PropertiesChanged=A2x;Polymer.telemetry={instanceCount:J2X,incrementInstanceCount:function(){J2X++},
registrations:fKM,register:m9c,dumpRegistrations:function(){fKM.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=z$j;Polymer.CaseMap={dashToCamelCase:nJ,camelToDashCase:H0};Polymer.PropertyAccessors=v$a;Polymer.TemplateStamp=R$6;Polymer.Path={isPath:W0,root:s4,isAncestor:ZTH,isDescendant:Nb,translate:Q1,matches:pR7,normalize:Iv,split:$9M,get:iV,set:voM,isDeep:W0};Polymer.Settings={useShadow:Y$,useNativeCSSProperties:n$3,useNativeCustomElements:HJk,get rootPath(){return IOX},setRootPath:function(q){IOX=q},
get sanitizeDOMValue(){return CJ},setSanitizeDOMValue:function(q){CJ=q},
get passiveTouchGestures(){return as4},setPassiveTouchGestures:function(q){as4=q},
get strictTemplatePolicy(){return c0},setStrictTemplatePolicy:function(q){c0=q},
get allowTemplateFromDomModule(){return iJ6},setAllowTemplateFromDomModule:function(q){iJ6=q},
get legacyOptimizations(){return bV},setLegacyOptimizations:function(q){bV=q},
get syncInitialRender(){return r2P},setSyncInitialRender:function(q){r2P=q},
get legacyUndefined(){return O4},setLegacyUndefined:function(q){O4=q},
get legacyWarnings(){return Rv},setLegacyWarnings:function(q){Rv=q},
get orderedComputed(){return Ubj},setOrderedComputed:function(q){Ubj=q},
get fastDomIf(){return EG},setFastDomIf:function(q){EG=q},
get removeNestedTemplates(){return gM},setRemoveNestedTemplates:function(q){gM=q},
get suppressTemplateNotifications(){return Ry},setSuppressTemplateNotifications:Ry};Polymer.rootPath!==void 0&&(IOX=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(CJ=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(as4=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(c0=Polymer.strictTemplatePolicy);iJ6=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(bV=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(r2P=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(O4=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Rv=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(Ubj=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(EG=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(gM=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Ry=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return CJ},
set:function(q){CJ=q}});Polymer.PropertyEffects=lR;Polymer.StyleGather={stylesFromModules:XCu,stylesFromModule:Pql,stylesFromTemplate:FGc,stylesFromModuleImports:Gns,cssFromModules:HrM,cssFromModule:nHc,cssFromTemplate:WGz,cssFromModuleImports:function(q){return(q=V1.import(q))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(q):""}};Polymer.ElementMixin=L9;Polymer.updateStyles=function(q){window.ShadyCSS&&window.ShadyCSS.styleDocument(q)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:Isj};Polymer.html=_.KMX;Polymer.htmlLiteral=function(q){return new irH(q,_.Cj.apply(1,arguments))};Polymer.Element=Md;Polymer.ArraySelectorMixin=BAr;Polymer.ArraySelector=K9;var wfT=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,ubc=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,xD4=/@media\s(.*)/;var dIc=null,Cql=window.HTMLImports&&window.HTMLImports.whenReady||null,Orc;var ypG=null,B_=null,x2=function(){this.customStyles=[];this.enqueued=!1;oH4(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},eUr=function(q){!q.enqueued&&B_&&(q.enqueued=!0,oH4(B_))};
x2.prototype.addCustomStyle=function(q){q.__seenByShadyCSS||(q.__seenByShadyCSS=!0,this.customStyles.push(q),eUr(this))};
x2.prototype.getStyleForCustomStyle=function(q){if(q.__shadyCSSCachedStyle)return q.__shadyCSSCachedStyle;var w;q.getStyle?w=q.getStyle():w=q;return w};
x2.prototype.processStyles=function(){for(var q=this.customStyles,w=0;w<q.length;w++){var u=q[w];if(!u.__shadyCSSCachedStyle){var y=this.getStyleForCustomStyle(u);y&&(y=y.__appliedElement||y,ypG&&ypG(y),u.__shadyCSSCachedStyle=y)}}return q};
x2.prototype.addCustomStyle=x2.prototype.addCustomStyle;x2.prototype.getStyleForCustomStyle=x2.prototype.getStyleForCustomStyle;x2.prototype.processStyles=x2.prototype.processStyles;Object.defineProperties(x2.prototype,{transformCallback:{get:function(){return ypG},
set:function(q){ypG=q}},
validateCallback:{get:function(){return B_},
set:function(q){var w=!1;B_||(w=!0);B_=q;w&&eUr(this)}}});var fss=!(window.ShadyDOM&&window.ShadyDOM.inUse),VgM,B0;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(B0=window.ShadyCSS.cssBuild);var k6X=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?VgM=window.ShadyCSS.nativeCss:window.ShadyCSS?(mIy(window.ShadyCSS),window.ShadyCSS=void 0):mIy(window.WebComponents&&window.WebComponents.flags);var Mso=VgM;var tpG=new x2;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(q,w){tpG.processStyles();UI4(q,w)},
styleElement:function(){tpG.processStyles()},
styleDocument:function(q){tpG.processStyles();UI4(document.body,q)},
getComputedStyleValue:function(q,w){return TEJ(q,w)},
flushCustomStyles:function(){},
nativeCss:Mso,nativeShadow:fss,cssBuild:B0,disableRuntime:k6X});window.ShadyCSS.CustomStyleInterface=tpG;var P9r=window.ShadyCSS.CustomStyleInterface,qA=function(){var q=HTMLElement.call(this)||this;q._style=null;P9r.addCustomStyle(q);return q};
_.O(qA,HTMLElement);qA.prototype.getStyle=function(){if(this._style)return this._style;var q=this.querySelector("style");if(!q)return null;this._style=q;var w=q.getAttribute("include");w&&(q.removeAttribute("include"),q.textContent=HrM(w)+q.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
qA.prototype.getStyle=qA.prototype.getStyle;window.customElements.define("custom-style",qA);Polymer.CustomStyle=qA;var wQ=function(){this._timer=this._callback=this._asyncModule=null},uM,FHX;
wQ.prototype.setConfig=function(q,w){var u=this;this._asyncModule=q;this._callback=w;this._timer=this._asyncModule.run(function(){u._timer=null;uM.delete(u);u._callback()})};
wQ.prototype.cancel=function(){this.isActive()&&(Xfj(this),uM.delete(this))};
var Xfj=function(q){q.isActive()&&(q._asyncModule.cancel(q._timer),q._timer=null)};
wQ.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
wQ.prototype.isActive=function(){return this._timer!=null};
_.y5=function(q,w,u){q instanceof wQ?Xfj(q):q=new wQ;q.setConfig(w,u);return q};
uM=new Set;_.eM=function(q){uM.add(q)};
FHX=function(){var q=!!uM.size;uM.forEach(function(w){try{w.flush()}catch(u){setTimeout(function(){throw u;})}});
return q};var Jgs=typeof document.head.style.touchAction==="string",Ago=["mousedown","mousemove","mouseup","click"],YFH=[0,1,4,2],G6T;try{G6T=(new MouseEvent("test",{buttons:1})).buttons===1}catch(q){G6T=!1}var brf=G6T,zbj=!1;(function(){try{var q=Object.defineProperty({},"passive",{get:function(){zbj=!0}});
window.addEventListener("test",null,q);window.removeEventListener("test",null,q)}catch(w){}})();
var Zru=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),pCy=[],nGj={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},BEy={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},$If=function(q){var w=q.sourceCapabilities;if(!w||w.firesTouchEvents)if(q.__polymerGesturesHandled={skip:!0},q.type==="click"){w=!1;for(var u=cgl(q),y=0;y<u.length;y++){if(u[y].nodeType===Node.ELEMENT_NODE)if(u[y].localName==="label")pCy.push(u[y]);
else if(nGj[u[y].localName]){var e=u[y];var t=Array.prototype.slice.call(e.labels||[]);if(!t.length){t=[];try{var X=e.getRootNode();if(e.id){var G=X.querySelectorAll("label[for = '"+e.id+"']");for(e=0;e<G.length;e++)t.push(G[e])}}catch(n){}}for(e=0;e<t.length;e++)w=w||pCy.indexOf(t[e])>-1}if(u[y]===HNk)return}w||(q.preventDefault(),q.stopPropagation())}},HNk=null,ke=null,hbM=0,jHz=0,SF6=-1,ls7=!1;
document.addEventListener("touchend",function(q){ke||vHy(!0);HNk=cgl(q)[0];ke=_.y5(ke,_.SF.after(2500),function(){vHy();ke=HNk=null})},zbj?{passive:!0}:!1);
var cgl=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(q){return q.composedPath&&q.composedPath()||[]},av={},J2=[];
LG6({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){A2(this.info)},
mousedown:function(q){if(mM(q)){var w=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q),u=this;EHl(this.info,function(y){mM(y)||(v0("up",w,y),A2(u.info))},function(y){mM(y)&&v0("up",w,y);
A2(u.info)});
v0("down",w,q)}},
touchstart:function(q){v0("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q),q.changedTouches[0],q)},
touchend:function(q){v0("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q),q.changedTouches[0],q)}});
LG6({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(q){this.moves.length>2&&this.moves.shift();this.moves.push(q)},
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;A2(this.info)},
mousedown:function(q){if(mM(q)){var w=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q),u=this,y=function(e){var t=e.clientX,X=e.clientY;Mgf(u.info,t,X)&&(u.info.state=u.info.started?e.type==="mouseup"?"end":"track":"start",u.info.state==="start"&&zd("tap"),u.info.addMove({x:t,y:X}),mM(e)||(u.info.state="end",A2(u.info)),w&&KG7(u.info,w,e),u.info.started=!0)};
EHl(this.info,y,function(e){u.info.started&&y(e);A2(u.info)});
this.info.x=q.clientX;this.info.y=q.clientY}},
touchstart:function(q){q=q.changedTouches[0];this.info.x=q.clientX;this.info.y=q.clientY},
touchmove:function(q){var w=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q);q=q.changedTouches[0];var u=q.clientX,y=q.clientY;Mgf(this.info,u,y)&&(this.info.state==="start"&&zd("tap"),this.info.addMove({x:u,y:y}),KG7(this.info,w,q),this.info.state="track",this.info.started=!0)},
touchend:function(q){var w=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q);q=q.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:q.clientX,y:q.clientY}),KG7(this.info,w,q))}});
LG6({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(q){mM(q)&&(this.info.x=q.clientX,this.info.y=q.clientY)},
click:function(q){mM(q)&&xI4(this.info,q)},
touchstart:function(q){q=q.changedTouches[0];this.info.x=q.clientX;this.info.y=q.clientY},
touchend:function(q){xI4(this.info,q.changedTouches[0],q)}});var WHj=hL(function(q){var w=function(){return q.apply(this,arguments)||this};
_.O(w,q);w.prototype._addEventListenerToNode=function(u,y,e){DO(u,y,e)||q.prototype._addEventListenerToNode.call(this,u,y,e)};
w.prototype._removeEventListenerFromNode=function(u,y,e){ZO(u,y,e)||q.prototype._removeEventListenerFromNode.call(this,u,y,e)};
return w});var t3=hL(function(q){var w=function(){return q.apply(this,arguments)||this};
_.O(w,q);w.prototype._shouldPropertyChange=function(u,y,e){return qKs(this,u,y,e,!0)};
return w}),sxx=hL(function(q){var w=function(){return q.apply(this,arguments)||this};
_.O(w,q);w.prototype._shouldPropertyChange=function(u,y,e){return qKs(this,u,y,e,this.mutableData)};
_.x$.Object.defineProperties(w,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return w});
t3._mutablePropertyChange=qKs;var wyl=!1;var N1G=WHj(sxx(lR(HTMLElement))),Pu=function(){var q=N1G.call(this)||this;if(c0)throw Error("Hd");q.root=null;q.$=null;q.__children=null;return q};
_.O(Pu,N1G);_.k=Pu.prototype;_.k.attributeChangedCallback=function(){this.mutableData=!0};
_.k.connectedCallback=function(){uDc()||(this.style.display="none");this.render()};
_.k.disconnectedCallback=function(){this.__removeChildren()};
_.k.__insertChildren=function(){(0,_.Td)((0,_.Td)(this).parentNode).insertBefore(this.root,this)};
_.k.__removeChildren=function(){if(this.__children)for(var q=0;q<this.__children.length;q++)this.root.appendChild(this.__children[q])};
_.k.render=function(){var q=this;if(!this.__children){var w=w||this.querySelector("template");if(!w){var u=new MutationObserver(function(){if(w=q.querySelector("template"))u.disconnect(),q.render();else throw Error("Id");});
u.observe(this,{childList:!0});return}this.root=this._stampTemplate(w);this.$=this.root.$;this.__children=[];for(var y=this.root.firstChild;y;y=y.nextSibling)this.__children[this.__children.length]=y;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.x$.Object.defineProperties(Pu,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",Pu);Polymer.Debouncer=wQ;Polymer.Gestures={gestures:av,recognizers:J2,deepTargetFind:Rbc,addListener:DO,removeListener:ZO,register:LG6,setTouchAction:_.pJ,prevent:zd,resetMouseCanceller:function(){ke&&ke.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:DO,remove:ZO};Polymer.GestureEventListeners=WHj;Polymer.MutableData=t3;Polymer.OptionalMutableData=sxx;Polymer.DomBind=Pu;_.XJ=function(){do{var q=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var w=FHX()}while(q||w)};var yKo=null;eOj.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:eOj,writable:!0}});var HVc=lR(eOj),nDM=t3(HVc),Qx3=lR(function(){}),gA=function(q){var w=Qx3.call(this)||this;
w._configureProperties(q);w.root=w._stampTemplate(w.__dataHost);var u=[];w.children=u;for(var y=w.root.firstChild;y;y=y.nextSibling)u.push(y),y.__templatizeInstance=w;w.__templatizeOwner&&w.__templatizeOwner.__hideTemplateChildren__&&w._showHideChildren(!0);u=w.__templatizeOptions;(q&&u.instanceProps||!u.instanceProps)&&w._enableProperties();return w};
_.O(gA,Qx3);_.k=gA.prototype;_.k._configureProperties=function(q){if(this.__templatizeOptions.forwardHostProp)for(var w in this.__hostProps)this._setPendingProperty(w,this.__dataHost["_host_"+w]);for(var u in q)this._setPendingProperty(u,q[u])};
_.k.forwardHostProp=function(q,w){this._setPendingPropertyOrPath(q,w,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.k._addEventListenerToNode=function(q,w,u){var y=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(q,w,function(t){t.model=y;u(t)});
else{var e=this.__dataHost.__dataHost;e&&e._addEventListenerToNode(q,w,u)}};
_.k._showHideChildren=function(q){tsf(q,this.children)};
_.k._setUnmanagedPropertyToNode=function(q,w,u){q.__hideTemplateChildren__&&q.nodeType==Node.TEXT_NODE&&w=="textContent"?q.__polymerTextContent__=u:Qx3.prototype._setUnmanagedPropertyToNode.call(this,q,w,u)};
_.k.dispatchEvent=function(){return!0};
_.x$.Object.defineProperties(gA.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var q=this.__parentModel;if(!q){var w;q=this;do q=q.__dataHost.__dataHost;while((w=q.__templatizeOptions)&&!w.parentModel);this.__parentModel=q}return q}}});
var XyH=t3(gA);var FJ=function(){var q=Md.call(this)||this;q.__renderDebouncer=null;q._lastIf=!1;q.__hideTemplateChildren__=!1;return q};
_.O(FJ,Md);_.k=FJ.prototype;_.k.__debounceRender=function(){var q=this;this.__renderDebouncer=_.y5(this.__renderDebouncer,$$,function(){return q.__render()});
_.eM(this.__renderDebouncer)};
_.k.disconnectedCallback=function(){Md.prototype.disconnectedCallback.call(this);var q=(0,_.Td)(this).parentNode;q&&(q.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.Td)(q).host)||this.__teardownInstance()};
_.k.connectedCallback=function(){Md.prototype.connectedCallback.call(this);uDc()||(this.style.display="none");this.if&&this.__debounceRender()};
_.k.__ensureTemplate=function(){var q=this;if(!this.__template){var w=this._templateInfo?this:(0,_.Td)(this).querySelector("template");if(!w){var u=new MutationObserver(function(){if((0,_.Td)(q).querySelector("template"))u.disconnect(),q.__render();else throw Error("Ld");});
u.observe(this,{childList:!0});return!1}this.__template=w}return!0};
_.k.__ensureInstance=function(){var q=(0,_.Td)(this).parentNode;if(this.__hasInstance()){var w=this.__getInstanceNodes();if(w&&w.length&&(0,_.Td)(this).previousSibling!==w[w.length-1])for(var u=0,y=void 0;u<w.length&&(y=w[u]);u++)(0,_.Td)(q).insertBefore(y,this)}else{if(!q||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(q)}return!0};
_.k.render=function(){_.XJ()};
_.k.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Ry&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.k.__hasInstance=function(){};
_.k.__getInstanceNodes=function(){};
_.k.__createAndInsertInstance=function(){};
_.k.__teardownInstance=function(){};
_.k._showHideChildren=function(){};
_.x$.Object.defineProperties(FJ,{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:FJ.prototype.__debounceRender},restamp:{type:Boolean,observer:FJ.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var IBT=function(){var q=FJ.call(this)||this;q.__instance=null;q.__syncInfo=null;return q};
_.O(IBT,FJ);_.k=IBT.prototype;_.k.__hasInstance=function(){return!!this.__instance};
_.k.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.k.__createAndInsertInstance=function(q){var w=this,u=this.__dataHost||this;if(c0&&!this.__dataHost)throw Error("Jd");var y=u._bindTemplate(this.__template,!0);y.runEffects=function(e,t,X){var G=w.__syncInfo;if(w.if)G&&(w.__syncInfo=null,w._showHideChildren(),t=Object.assign(G.changedProps,t)),e(t,X);else if(w.__instance)if(G||(G=w.__syncInfo={runEffects:e,changedProps:{}}),X)for(var n in t)e=s4(n),G.changedProps[e]=w.__dataHost[e];else Object.assign(G.changedProps,t)};
this.__instance=u._stampTemplate(this.__template,y);(0,_.Td)(q).insertBefore(this.__instance,this)};
_.k.__syncHostProperties=function(){var q=this.__syncInfo;q&&(this.__syncInfo=null,q.runEffects(q.changedProps,!1))};
_.k.__teardownInstance=function(){var q=this.__dataHost||this;this.__instance&&(q._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.k._showHideChildren=function(){var q=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==q&&(this.__instance.__hidden=q,tsf(q,this.__instance.templateInfo.childNodes));q||this.__syncHostProperties()};
var iNP=function(){var q=FJ.call(this)||this;q.__ctor=null;q.__instance=null;q.__invalidProps=null;return q};
_.O(iNP,FJ);_.k=iNP.prototype;_.k.__hasInstance=function(){return!!this.__instance};
_.k.__getInstanceNodes=function(){return this.__instance.children};
_.k.__createAndInsertInstance=function(q){this.__ctor||(this.__ctor=E4(this.__template,this,{mutableData:!0,forwardHostProp:function(w,u){this.__instance&&(this.if?this.__instance.forwardHostProp(w,u):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[s4(w)]=!0))}}));
this.__instance=new this.__ctor;(0,_.Td)(q).insertBefore(this.__instance.root,this)};
_.k.__teardownInstance=function(){if(this.__instance){var q=this.__instance.children;if(q&&q.length){var w=(0,_.Td)(q[0]).parentNode;if(w){w=(0,_.Td)(w);for(var u=0,y=void 0;u<q.length&&(y=q[u]);u++)w.removeChild(y)}}this.__instance=this.__invalidProps=null}};
_.k.__syncHostProperties=function(){var q=this.__invalidProps;if(q){this.__invalidProps=null;for(var w in q)this.__instance._setPendingProperty(w,this.__dataHost[w]);this.__instance._flushProperties()}};
_.k._showHideChildren=function(){var q=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==q&&(this.__instance.__hidden=q,this.__instance._showHideChildren(q));q||this.__syncHostProperties()};
_.fL=EG?IBT:iNP;customElements.define(_.fL.is,_.fL);Polymer.enqueueDebouncer=_.eM;Polymer.flush=_.XJ;Polymer.Templatize={templatize:E4,modelForElement:iVJ};Polymer.TemplateInstanceBase=gA;Polymer.DomIf=_.fL;var rp$=sxx(Md),V6=function(){var q=rp$.call(this)||this;q.__instances=[];q.__renderDebouncer=null;q.__itemsIdxToInstIdx={};q.__chunkCount=null;q.__renderStartTime=null;q.__itemsArrayChanged=!1;q.__shouldMeasureChunk=!1;q.__shouldContinueChunking=!1;q.__chunkingId=0;q.__sortFn=null;q.__filterFn=null;q.__observePaths=null;q.__ctor=null;q.__isDetached=!0;q.template=null;return q};
_.O(V6,rp$);_.k=V6.prototype;_.k.disconnectedCallback=function(){rp$.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var q=0;q<this.__instances.length;q++)this.__detachInstance(q);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.k.connectedCallback=function(){rp$.prototype.connectedCallback.call(this);uDc()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var q=(0,_.Td)((0,_.Td)(this).parentNode),w=0;w<this.__instances.length;w++)this.__attachInstance(w,q);this.__chunkingId&&this.__render()}};
_.k.__ensureTemplatized=function(){var q=this;if(!this.__ctor){var w=this.template=this._templateInfo?this:this.querySelector("template");if(!w){var u=new MutationObserver(function(){if(q.querySelector("template"))u.disconnect(),q.__render();else throw Error("Md");});
u.observe(this,{childList:!0});return!1}var y={};y[this.as]=!0;y[this.indexAs]=!0;y[this.itemsIndexAs]=!0;this.__ctor=E4(w,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:y,forwardHostProp:function(e,t){for(var X=this.__instances,G=0,n=void 0;G<X.length&&(n=X[G]);G++)n.forwardHostProp(e,t)},
notifyInstanceProp:function(e,t,X){pR7(this.as,t)&&(e=e[this.itemsIndexAs],t==this.as&&(this.items[e]=X),t=Q1(this.as,"items."+e,t),this.notifyPath(t,X))}})}return!0};
_.k.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.k.__functionFromPropertyValue=function(q){if(typeof q==="string"){var w=this.__getMethodHost();return function(){return w[q].apply(w,arguments)}}return q};
_.k.__sortChanged=function(q){this.__sortFn=this.__functionFromPropertyValue(q);this.items&&this.__debounceRender(this.__render)};
_.k.__filterChanged=function(q){this.__filterFn=this.__functionFromPropertyValue(q);this.items&&this.__debounceRender(this.__render)};
_.k.__computeFrameTime=function(q){return Math.ceil(1E3/q)};
_.k.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.k.__handleObservedPaths=function(q){if(this.__sortFn||this.__filterFn)if(!q)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var w=this.__observePaths,u=0;u<w.length;u++)q.indexOf(w[u])===0&&this.__debounceRender(this.__render,this.delay)};
_.k.__itemsChanged=function(q){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(q.path,q.value)||(q.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.k.__debounceRender=function(q,w){w=w===void 0?0:w;this.__renderDebouncer=_.y5(this.__renderDebouncer,w>0?_.SF.after(w):$$,q.bind(this));_.eM(this.__renderDebouncer)};
_.k.render=function(){this.__debounceRender(this.__render);_.XJ()};
_.k.__render=function(){var q=this;if(this.__ensureTemplatized()){var w=this.items||[],u=this.__sortAndFilterItems(w),y=this.__calculateLimit(u.length);this.__updateInstances(w,y,u);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){q.__chunkingId=null;q.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Ry&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.k.__sortAndFilterItems=function(q){for(var w=this,u=Array(q.length),y=0;y<q.length;y++)u[y]=y;this.__filterFn&&(u=u.filter(function(e,t,X){return w.__filterFn(q[e],t,X)}));
this.__sortFn&&u.sort(function(e,t){return w.__sortFn(q[e],q[t])});
return u};
_.k.__calculateLimit=function(q){var w=q,u=this.__instances.length;if(this.initialCount){var y;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(w=Math.min(q,this.initialCount),this.__chunkCount=(y=Math.max(w-u,0))||1):(y=Math.min(Math.max(q-u,0),this.__chunkCount),w=Math.min(u+y,q));this.__shouldMeasureChunk=y===this.__chunkCount;this.__shouldContinueChunking=w<q;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return w};
_.k.__continueChunking=function(){if(this.__shouldMeasureChunk){var q=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/q*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.k.__updateInstances=function(q,w,u){var y=this.__itemsIdxToInstIdx={},e;for(e=0;e<w;e++){var t=this.__instances[e],X=u[e],G=q[X];y[X]=e;t?(t._setPendingProperty(this.as,G),t._setPendingProperty(this.indexAs,e),t._setPendingProperty(this.itemsIndexAs,X),t._flushProperties()):this.__insertInstance(G,e,X)}for(q=this.__instances.length-1;q>=e;q--)this.__detachAndRemoveInstance(q)};
_.k.__detachInstance=function(q){q=this.__instances[q];for(var w=(0,_.Td)(q.root),u=0;u<q.children.length;u++)w.appendChild(q.children[u]);return q};
_.k.__attachInstance=function(q,w){w.insertBefore(this.__instances[q].root,this)};
_.k.__detachAndRemoveInstance=function(q){this.__detachInstance(q);this.__instances.splice(q,1)};
_.k.__stampInstance=function(q,w,u){var y={};y[this.as]=q;y[this.indexAs]=w;y[this.itemsIndexAs]=u;return new this.__ctor(y)};
_.k.__insertInstance=function(q,w,u){q=this.__stampInstance(q,w,u);u=(u=this.__instances[w+1])?u.children[0]:this;(0,_.Td)((0,_.Td)(this).parentNode).insertBefore(q.root,u);return this.__instances[w]=q};
_.k._showHideChildren=function(q){for(var w=0;w<this.__instances.length;w++)this.__instances[w]._showHideChildren(q)};
_.k.__handleItemPath=function(q,w){var u=q.slice(6),y=u.indexOf(".");q=y<0?u:u.substring(0,y);if(q==parseInt(q,10)){u=y<0?"":u.substring(y+1);this.__handleObservedPaths(u);if(q=this.__instances[this.__itemsIdxToInstIdx[q]])q._setPendingPropertyOrPath(this.as+(u?"."+u:""),w,!1,!0),q._flushProperties();return!0}};
_.k.itemForElement=function(q){return(q=this.modelForElement(q))&&q[this.as]};
_.k.indexForElement=function(q){return(q=this.modelForElement(q))&&q[this.indexAs]};
_.k.modelForElement=function(q){return iVJ(this.template,q)};
_.x$.Object.defineProperties(V6,{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:V6.prototype.__sortChanged},filter:{type:Function,observer:V6.prototype.__filterChanged},observe:{type:String,observer:V6.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Ry,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.*)"]}}});
V6.prototype._setRenderedItemCount=function(){};
customElements.define(V6.is,V6);Polymer.DomRepeat=V6;var U4P=function(q,w){var u=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=q;this.callback=w;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){u._schedule()};
this.connect();this._schedule()},T1k=function(q){var w=(0,_.Td)(q);
if(Sl(q))return w.assignedNodes({flatten:!0});q=[];for(var u=0;u<w.childNodes.length;u++){var y=w.childNodes[u];Sl(y)?q.push.apply(q,_.Cm((0,_.Td)(y).assignedNodes({flatten:!0}))):q.push(y)}return q};
_.k=U4P.prototype;_.k.connect=function(){var q=this;Sl(this._target)?this._listenSlots([this._target]):(0,_.Td)(this._target).children&&(this._listenSlots((0,_.Td)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(w){q._processMutations(w)}):(this._nativeChildrenObserver=new MutationObserver(function(w){q._processMutations(w)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.k.disconnect=function(){Sl(this._target)?this._unlistenSlots([this._target]):(0,_.Td)(this._target).children&&(this._unlistenSlots((0,_.Td)(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};
_.k._schedule=function(){var q=this;this._scheduled||(this._scheduled=!0,$$.run(function(){return q.flush()}))};
_.k._processMutations=function(q){this._processSlotMutations(q);this.flush()};
_.k._processSlotMutations=function(q){if(q)for(var w=0;w<q.length;w++){var u=q[w];u.addedNodes&&this._listenSlots(u.addedNodes);u.removedNodes&&this._unlistenSlots(u.removedNodes)}};
_.k.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 q={target:this._target,addedNodes:[],removedNodes:[]},w=T1k(this._target),u=Isj(w,this._effectiveNodes),y=0,e=void 0;y<u.length&&(e=u[y]);y++)for(var t=0,X=void 0;t<e.removed.length&&(X=e.removed[t]);t++)q.removedNodes.push(X);
y=0;for(e=void 0;y<u.length&&(e=u[y]);y++)for(t=e.index;t<e.index+e.addedCount;t++)q.addedNodes.push(w[t]);this._effectiveNodes=w;w=!1;if(q.addedNodes.length||q.removedNodes.length)w=!0,this.callback.call(this._target,q);return w};
_.k._listenSlots=function(q){for(var w=0;w<q.length;w++){var u=q[w];Sl(u)&&u.addEventListener("slotchange",this._boundSchedule)}};
_.k._unlistenSlots=function(q){for(var w=0;w<q.length;w++){var u=q[w];Sl(u)&&u.removeEventListener("slotchange",this._boundSchedule)}};var Gh=Element.prototype,C9P=Gh.matches||Gh.matchesSelector||Gh.mozMatchesSelector||Gh.msMatchesSelector||Gh.oMatchesSelector||Gh.webkitMatchesSelector,d4a=function(q,w){return C9P.call(q,w)},h2=function(q){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(q);
this.node=q},fBr;
_.k=h2.prototype;_.k.observeNodes=function(q){return new U4P(this.node,q)};
_.k.unobserveNodes=function(q){q.disconnect()};
_.k.notifyObserver=function(){};
_.k.deepContains=function(q){if((0,_.Td)(this.node).contains(q))return!0;var w=q;for(q=q.ownerDocument;w&&w!==q&&w!==this.node;)w=(0,_.Td)(w).parentNode||(0,_.Td)(w).host;return w===this.node};
_.k.getOwnerRoot=function(){return(0,_.Td)(this.node).getRootNode()};
_.k.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.Td)(this.node).assignedNodes({flatten:!0}):[]};
_.k.getDestinationInsertionPoints=function(){for(var q=[],w=(0,_.Td)(this.node).assignedSlot;w;)q.push(w),w=(0,_.Td)(w).assignedSlot;return q};
_.k.importNode=function(q,w){return(0,_.Td)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(q,w)};
_.k.getEffectiveChildNodes=function(){return T1k(this.node)};
_.k.queryDistributedElements=function(q){for(var w=this.getEffectiveChildNodes(),u=[],y=0,e=w.length,t=void 0;y<e&&(t=w[y]);y++)t.nodeType===Node.ELEMENT_NODE&&d4a(t,q)&&u.push(t);return u};
_.x$.Object.defineProperties(h2.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var q=this.node;return q._activeElement!==void 0?q._activeElement:q.activeElement}}});
var n1=function(q){this.event=q};
_.x$.Object.defineProperties(n1.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 ONr=h2;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var oGX=window.ShadyDOM.Wrapper,Vp6=function(){return oGX.apply(this,arguments)||this};
_.O(Vp6,oGX);Object.getOwnPropertyNames(h2.prototype).forEach(function(q){q!="activeElement"&&q!="constructor"&&(Vp6.prototype[q]=h2.prototype[q])});
UDJ(Vp6.prototype,["classList"]);ONr=Vp6;Object.defineProperties(n1.prototype,{localTarget:{get:function(){var q=this.event.currentTarget;q=q&&_.fN(q).getOwnerRoot();for(var w=this.path,u=0;u<w.length;u++){var y=w[u];if(_.fN(y).getOwnerRoot()===q)return y}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else rKj(),UDJ(h2.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),TIl();fBr=ONr;_.fN=function(q){q=q||document;if(q instanceof ONr)return q;if(q instanceof n1)return q;var w=q.__domApi;w||(q instanceof Event?w=new n1(q):w=new ONr(q),q.__domApi=w);return w};var m4k=/:host\(:dir\((ltr|rtl)\)\)/g,ApF=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Jpr=/:dir\((?:ltr|rtl)\)/,zUa=!(!window.ShadyDOM||!window.ShadyDOM.inUse),lV=[],Hu=null,jl="",aBj=hL(function(q){zUa||Hu||(jl=document.documentElement.getAttribute("dir"),Hu=new MutationObserver(Cry),Hu.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var w=v$a(q);q=function(){var u=w.call(this)||this;u.__autoDirOptOut=!1;return u};
_.O(q,w);q._processStyleText=function(u,y){u=w._processStyleText.call(this,u,y);!zUa&&Jpr.test(u)&&(u=this._replaceDirInCssText(u),this.__activateDir=!0);return u};
q._replaceDirInCssText=function(u){u=u.replace(m4k,':host([dir="$1"])');return u=u.replace(ApF,':host([dir="$2"]) $1')};
q.prototype.ready=function(){w.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
q.prototype.connectedCallback=function(){w.prototype.connectedCallback&&w.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(Hu&&Hu.takeRecords().length&&Cry(),lV.push(this),this.__autoDirOptOut||this.setAttribute("dir",jl))};
q.prototype.disconnectedCallback=function(){w.prototype.disconnectedCallback&&w.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var u=lV.indexOf(this);u>-1&&lV.splice(u,1)}};
q.__activateDir=!1;return q});var D4c=function(q){for(;q;){var w=Object.getOwnPropertyDescriptor(q,"observedAttributes");if(w)return w.get;q=Object.getPrototypeOf(q.prototype).constructor}return function(){return[]}};
hL(function(q){var w=L9(q),u=D4c(w);q=function(){return w.call(this)||this};
_.O(q,w);q.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:w.prototype._initializeProperties.call(this)};
q.prototype._enableProperties=function(){this.__isUpgradeDisabled||w.prototype._enableProperties.call(this)};
q.prototype._canApplyPropertyDefault=function(y){return w.prototype._canApplyPropertyDefault.call(this,y)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(y))};
q.prototype.attributeChangedCallback=function(y,e,t,X){y=="disable-upgrade"?this.__isUpgradeDisabled&&t==null&&(w.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.Td)(this).isConnected&&w.prototype.connectedCallback.call(this)):w.prototype.attributeChangedCallback.call(this,y,e,t,X)};
q.prototype.connectedCallback=function(){this.__isUpgradeDisabled||w.prototype.connectedCallback.call(this)};
q.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||w.prototype.disconnectedCallback.call(this)};
_.x$.Object.defineProperties(q,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return u.call(this).concat("disable-upgrade")}}});
return q});var LJ=!1,OVc=[],Mb=[];var mDl=window.ShadyDOM,AKj=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",zOs):document.readyState==="interactive"||document.readyState==="complete"?zOs():window.addEventListener("DOMContentLoaded",zOs);var ZVz=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=""},a2J=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,DD4=/@import[^;]*;/gim,gDc=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,EDM=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,RO6=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,cKf=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,bVM=/^@[^\s]*keyframes/,
vD6=/\s+/g;var SKo={};var l2M=Promise.resolve();var ZNr=new Set;var pf6=/;\s*/m,$4T=/^\s*(initial)|(inherit)\s*$/,vGr=/\s*!important/,bNr=function(){this._map={}};
bNr.prototype.set=function(q,w){q=q.trim();this._map[q]={properties:w,dependants:{}}};
bNr.prototype.get=function(q){q=q.trim();return this._map[q]||null};
var YMP=null,Wu=function(){this._measureElement=this._currentElement=null;this._map=new bNr};
_.k=Wu.prototype;_.k.detectMixin=function(q){q=ubc.test(q)||wfT.test(q);ubc.lastIndex=0;wfT.lastIndex=0;return q};
_.k.transformTemplate=function(q,w){if(q._gatheredStyle===void 0){var u=[];for(var y=q.content.querySelectorAll("style"),e=0;e<y.length;e++){var t=y[e];if(t.hasAttribute("shady-unscoped")){if(!fss){var X=t.textContent;if(!ZNr.has(X)){ZNr.add(X);var G=document.createElement("style");G.setAttribute("shady-unscoped","");G.textContent=X;document.head.appendChild(G)}t.parentNode.removeChild(t)}}else u.push(t.textContent),t.parentNode.removeChild(t)}(u=u.join("").trim())?(y=document.createElement("style"),
y.textContent=u,q.content.insertBefore(y,q.content.firstChild),u=y):u=null;q._gatheredStyle=u}return(q=q._gatheredStyle)?this.JSC$9074_transformStyle(q,w):null};
_.k.JSC$9074_transformStyle=function(q,w){w=w===void 0?"":w;var u=BIM(q);this.transformRules(u,w);q.textContent=K0j(u);return u};
_.k.transformCustomStyle=function(q){var w=this,u=BIM(q);qIs(u,function(y){y.selector===":root"&&(y.selector="html");w.transformRule(y)});
q.textContent=K0j(u);return u};
_.k.transformRules=function(q,w){var u=this;this._currentElement=w;qIs(q,function(y){u.transformRule(y)});
this._currentElement=null};
_.k.transformRule=function(q){q.cssText=gGx(this,q.parsedCssText,q);q.selector===":root"&&(q.selector=":host > *")};
var gGx=function(q,w,u){w=w.replace(wfT,function(y,e,t,X){return q._produceCssProperties(y,e,t,X,u)});
return q._consumeCssProperties(w,u)};
_.k=Wu.prototype;_.k._getInitialValueForProperty=function(q){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(q)};
_.k._fallbacksFromPreviousRules=function(q){for(var w=this,u=q;u.parent;)u=u.parent;var y={},e=!1;qIs(u,function(t){(e=e||t===q)||t.selector===q.selector&&Object.assign(y,w._cssTextToMap(t.parsedCssText))});
return y};
_.k._consumeCssProperties=function(q,w){for(var u;u=ubc.exec(q);){var y=u[0],e=u[1];u=u.index;var t=u+y.indexOf("@apply"),X=u+y.length;y=q.slice(0,t);q=q.slice(X);t=w?this._fallbacksFromPreviousRules(w):{};Object.assign(t,this._cssTextToMap(y));e=this._atApplyToCssProperties(e,t);q=y+e+q;ubc.lastIndex=u+e.length}return q};
_.k._atApplyToCssProperties=function(q,w){q=q.replace(pf6,"");var u=[],y=this._map.get(q);y||(this._map.set(q,{}),y=this._map.get(q));if(y){this._currentElement&&(y.dependants[this._currentElement]=!0);var e,t=y.properties;for(e in t){var X=w&&w[e];y=[e,": var(",q,"_-_",e];X&&y.push(",",X.replace(vGr,""));y.push(")");vGr.test(t[e])&&y.push(" !important");u.push(y.join(""))}}return u.join("; ")};
_.k._replaceInitialOrInherit=function(q,w){var u=$4T.exec(w);u&&(w=u[1]?this._getInitialValueForProperty(q):"apply-shim-inherit");return w};
_.k._cssTextToMap=function(q,w){w=w===void 0?!1:w;q=q.split(";");for(var u,y,e={},t=0;t<q.length;t++)if(u=q[t])y=u.split(":"),y.length>1&&(u=y[0].trim(),y=y.slice(1).join(":"),w&&(y=this._replaceInitialOrInherit(u,y)),e[u]=y);return e};
_.k._invalidateMixinEntry=function(q){if(YMP)for(var w in q.dependants)w!==this._currentElement&&YMP(w)};
_.k._produceCssProperties=function(q,w,u,y,e){var t=this;u&&wru(u,function(V,J){J&&t._map.get(J)&&(y="@apply "+J+";")});
if(!y)return q;var X=this._consumeCssProperties(""+y,e);e=q.slice(0,q.indexOf("--"));var G=X=this._cssTextToMap(X,!0),n=this._map.get(w),N=n&&n.properties;N?G=Object.assign(Object.create(N),X):this._map.set(w,G);var Q=[],I,U=!1;for(I in G){var d=X[I];d===void 0&&(d="initial");!N||I in N||(U=!0);Q.push(w+"_-_"+I+": "+d)}U&&this._invalidateMixinEntry(n);n&&(n.properties=G);u&&(e=q+";"+e);return e+Q.join("; ")+";"};
Wu.prototype.detectMixin=Wu.prototype.detectMixin;Wu.prototype.transformStyle=Wu.prototype.JSC$9074_transformStyle;Wu.prototype.transformCustomStyle=Wu.prototype.transformCustomStyle;Wu.prototype.transformRules=Wu.prototype.transformRules;Wu.prototype.transformRule=Wu.prototype.transformRule;Wu.prototype.transformTemplate=Wu.prototype.transformTemplate;Wu.prototype._separator="_-_";Object.defineProperty(Wu.prototype,"invalidCallback",{get:function(){return YMP},
set:function(q){YMP=q}});var sz=new Wu,EG6=function(){this.customStyleInterface=null;sz.invalidCallback=hO7},NA=function(q){!q.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(q.customStyleInterface=window.ShadyCSS.CustomStyleInterface,q.customStyleInterface.transformCallback=function(w){sz.transformCustomStyle(w)},q.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){q.customStyleInterface.enqueued&&q.flushCustomStyles()})})};
_.k=EG6.prototype;_.k.prepareTemplate=function(q,w){NA(this);uNy(q)===""&&(SKo[w]=q,w=sz.transformTemplate(q,w),q._styleAst=w)};
_.k.flushCustomStyles=function(){NA(this);if(this.customStyleInterface){var q=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var w=0;w<q.length;w++){var u=this.customStyleInterface.getStyleForCustomStyle(q[w]);u&&sz.transformCustomStyle(u)}this.customStyleInterface.enqueued=!1}}};
_.k.styleSubtree=function(q,w){NA(this);w&&UI4(q,w);if(q.shadowRoot)for(this.styleElement(q),q=q.shadowRoot.children||q.shadowRoot.childNodes,w=0;w<q.length;w++)this.styleSubtree(q[w]);else for(q=q.children||q.childNodes,w=0;w<q.length;w++)this.styleSubtree(q[w])};
_.k.styleElement=function(q){NA(this);var w=q.localName,u;w?w.indexOf("-")>-1?u=w:u=q.getAttribute&&q.getAttribute("is")||"":u=q.is;w=SKo[u];if(!(w&&uNy(w)!==""||!w||jS4(w))){if(jS4(w)||w._applyShimValidatingVersion!==w._applyShimNextVersion)this.prepareTemplate(w,u),L0z(w);if(q=q.shadowRoot)if(q=q.querySelector("style"))q.__cssRules=w._styleAst,q.textContent=K0j(w._styleAst)}};
_.k.styleDocument=function(q){NA(this);this.styleSubtree(document.body,q)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var Q5=new EG6,RUc=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(q,w){Q5.flushCustomStyles();Q5.prepareTemplate(q,w)},
prepareTemplateStyles:function(q,w,u){window.ShadyCSS.prepareTemplate(q,w,u)},
prepareTemplateDom:function(){},
styleSubtree:function(q,w){Q5.flushCustomStyles();Q5.styleSubtree(q,w)},
styleElement:function(q){Q5.flushCustomStyles();Q5.styleElement(q)},
styleDocument:function(q){Q5.flushCustomStyles();Q5.styleDocument(q)},
getComputedStyleValue:function(q,w){return TEJ(q,w)},
flushCustomStyles:function(){Q5.flushCustomStyles()},
nativeCss:Mso,nativeShadow:fss,cssBuild:B0,disableRuntime:k6X};RUc&&(window.ShadyCSS.CustomStyleInterface=RUc)}window.ShadyCSS.ApplyShim=sz;var cp$;cp$=window.ShadyCSS;_.I8=hL(function(q){q=WHj(L9(q));var w=lO3?q:aBj(q),u=D4c(w),y={x:"pan-x",y:"pan-y",none:"none",all:"auto"};q=function(){return w.call(this)||this};
_.O(q,w);q.prototype.created=function(){};
q.prototype.__attributeReaction=function(e,t,X){(this.__dataAttributes&&this.__dataAttributes[e]||e==="disable-upgrade")&&this.attributeChangedCallback(e,t,X,null)};
q.prototype.setAttribute=function(e,t){if(TAZ&&!this._legacyForceObservedAttributes){var X=this.getAttribute(e);w.prototype.setAttribute.call(this,e,t);this.__attributeReaction(e,X,String(t))}else w.prototype.setAttribute.call(this,e,t)};
q.prototype.removeAttribute=function(e){if(TAZ&&!this._legacyForceObservedAttributes){var t=this.getAttribute(e);w.prototype.removeAttribute.call(this,e);this.__attributeReaction(e,t,null)}else w.prototype.removeAttribute.call(this,e)};
q.prototype._enableProperties=function(){this.__isUpgradeDisabled||w.prototype._enableProperties.call(this)};
q.prototype._canApplyPropertyDefault=function(e){return w.prototype._canApplyPropertyDefault.call(this,e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))};
q.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(w.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
q.prototype.attached=function(){};
q.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(w.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
q.prototype.detached=function(){};
q.prototype.attributeChangedCallback=function(e,t,X,G){t!==X&&(e=="disable-upgrade"?this.__isUpgradeDisabled&&X==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.Td)(this).isConnected&&this.connectedCallback()):(w.prototype.attributeChangedCallback.call(this,e,t,X,G),this.attributeChanged(e,t,X)))};
q.prototype.attributeChanged=function(){};
q.prototype._initializeProperties=function(){if(bV&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var e=Object.getPrototypeOf(this);e.hasOwnProperty("__hasRegisterFinished")||(this._registered(),e.__hasRegisterFinished=!0);w.prototype._initializeProperties.call(this);this.root=this;this.created();TAZ&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
q.prototype._takeAttributes=function(){for(var e=this.attributes,t=0,X=e.length;t<X;t++){var G=e[t];this.__attributeReaction(G.name,null,G.value)}};
q.prototype._registered=function(){};
q.prototype.ready=function(){this._ensureAttributes();w.prototype.ready.call(this)};
q.prototype._ensureAttributes=function(){};
q.prototype._applyListeners=function(){};
q.prototype.serialize=function(e){return this._serializeValue(e)};
q.prototype.deserialize=function(e,t){return this._deserializeValue(e,t)};
q.prototype.reflectPropertyToAttribute=function(e,t,X){this._propertyToAttribute(e,t,X)};
q.prototype.serializeValueToAttribute=function(e,t,X){this._valueToNodeAttribute(X||this,e,t)};
q.prototype.extend=function(e,t){if(!e||!t)return e||t;for(var X=Object.getOwnPropertyNames(t),G=0,n=void 0;G<X.length&&(n=X[G]);G++){var N=Object.getOwnPropertyDescriptor(t,n);N&&Object.defineProperty(e,n,N)}return e};
q.prototype.mixin=function(e,t){for(var X in t)e[X]=t[X];return e};
q.prototype.chainObject=function(e,t){e&&t&&e!==t&&(e.__proto__=t);return e};
q.prototype.instanceTemplate=function(e){e=this.constructor._contentForTemplate(e);return document.importNode(e,!0)};
q.prototype.fire=function(e,t,X){X=X||{};t=t===null||t===void 0?{}:t;e=new Event(e,{bubbles:X.bubbles===void 0?!0:X.bubbles,cancelable:!!X.cancelable,composed:X.composed===void 0?!0:X.composed});e.detail=t;(0,_.Td)(X.node||this).dispatchEvent(e);return e};
q.prototype.listen=function(e,t,X){e=e||this;var G=this.__boundListeners||(this.__boundListeners=new WeakMap),n=G.get(e);n||(n={},G.set(e,n));G=t+X;n[G]||(n[G]=this._addMethodEventListenerToNode(e,t,X,this))};
q.prototype.unlisten=function(e,t,X){e=e||this;var G=this.__boundListeners&&this.__boundListeners.get(e);X=t+X;var n=G&&G[X];n&&(this._removeEventListenerFromNode(e,t,n),G[X]=null)};
q.prototype.setScrollDirection=function(e,t){_.pJ(t||this,y[e]||"auto")};
q.prototype.$$=function(e){return this.root.querySelector(e)};
q.prototype.distributeContent=function(){var e=_.fN(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()};
q.prototype.getEffectiveChildNodes=function(){return _.fN(this).getEffectiveChildNodes()};
q.prototype.queryDistributedElements=function(e){return _.fN(this).queryDistributedElements(e)};
q.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(e){return e.nodeType===Node.ELEMENT_NODE})};
q.prototype.getEffectiveTextContent=function(){for(var e=this.getEffectiveChildNodes(),t=[],X=0,G;G=e[X];X++)G.nodeType!==Node.COMMENT_NODE&&t.push(G.textContent);return t.join("")};
q.prototype.queryEffectiveChildren=function(e){return(e=this.queryDistributedElements(e))&&e[0]};
q.prototype.queryAllEffectiveChildren=function(e){return this.queryDistributedElements(e)};
q.prototype.getContentChildNodes=function(e){return(e=this.root.querySelector(e||"slot"))?_.fN(e).getDistributedNodes():[]};
q.prototype.getContentChildren=function(e){return this.getContentChildNodes(e).filter(function(t){return t.nodeType===Node.ELEMENT_NODE})};
q.prototype.isLightDescendant=function(e){return this!==e&&(0,_.Td)(this).contains(e)&&(0,_.Td)(this).getRootNode()===(0,_.Td)(e).getRootNode()};
q.prototype.isLocalDescendant=function(e){return this.root===(0,_.Td)(e).getRootNode()};
q.prototype.scopeSubtree=function(e,t){return JKM(e,t===void 0?!1:t)};
q.prototype.getComputedStyleValue=function(e){return cp$.getComputedStyleValue(this,e)};
q.prototype.debounce=function(e,t,X){this._debouncers=this._debouncers||{};return this._debouncers[e]=_.y5(this._debouncers[e],X>0?_.SF.after(X):$$,t.bind(this))};
q.prototype.isDebouncerActive=function(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];return!(!e||!e.isActive())};
q.prototype.flushDebouncer=function(e){this._debouncers=this._debouncers||{};(e=this._debouncers[e])&&e.flush()};
q.prototype.cancelDebouncer=function(e){this._debouncers=this._debouncers||{};(e=this._debouncers[e])&&e.cancel()};
q.prototype.async=function(e,t){return t>0?_.SF.run(e.bind(this),t):~$$.run(e.bind(this))};
q.prototype.cancelAsync=function(e){e<0?$$.cancel(~e):_.SF.cancel(e)};
q.prototype.create=function(e,t){e=document.createElement(e);if(t)if(e.setProperties)e.setProperties(t);else for(var X in t)e[X]=t[X];return e};
q.prototype.elementMatches=function(e,t){return d4a(t||this,e)};
q.prototype.toggleAttribute=function(e,t){var X=this;arguments.length===3&&(X=arguments[2]);arguments.length==1&&(t=!X.hasAttribute(e));if(t)return(0,_.Td)(X).setAttribute(e,""),!0;(0,_.Td)(X).removeAttribute(e);return!1};
q.prototype.toggleClass=function(e,t,X){X=X||this;arguments.length==1&&(t=!X.classList.contains(e));t?X.classList.add(e):X.classList.remove(e)};
q.prototype.transform=function(e,t){t=t||this;t.style.webkitTransform=e;t.style.transform=e};
q.prototype.translate3d=function(e,t,X,G){this.transform("translate3d("+e+","+t+","+X+")",G||this)};
q.prototype.arrayDelete=function(e,t){if(Array.isArray(e)){if(t=e.indexOf(t),t>=0)return e.splice(t,1)}else if(t=iV(this,e).indexOf(t),t>=0)return this.splice(e,t,1);return null};
q.prototype._logger=function(e,t){Array.isArray(t)&&t.length===1&&Array.isArray(t[0])&&(t=t[0]);switch(e){case "log":case "warn":case "error":console[e].apply(console,_.Cm(t))}};
q.prototype._log=function(){this._logger("log",_.Cj.apply(0,arguments))};
q.prototype._warn=function(){this._logger("warn",_.Cj.apply(0,arguments))};
q.prototype._error=function(){this._logger("error",_.Cj.apply(0,arguments))};
q.prototype._logf=function(e){return["[%s::%s]",this.is,e].concat(_.Cm(_.Cj.apply(1,arguments)))};
_.x$.Object.defineProperties(q.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var e=(0,_.Td)(this).getRootNode();return e instanceof DocumentFragment?e.host:e}}});
_.x$.Object.defineProperties(q,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return TAZ&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],m9c(this.prototype)),this.__observedAttributes):u.call(this).concat("disable-upgrade")}}});
q.prototype.is="";return q});Polymer.FlattenedNodesObserver=U4P;Polymer.DomApi=fBr;Polymer.EventApi=n1;Polymer.dom=_.fN;Polymer.dom.matchesSelector=d4a;Polymer.dom.flush=_.XJ;Polymer.dom.addDebouncer=_.eM;Polymer.DirMixin=aBj;Polymer.RenderStatus={beforeNextRender:_.f2M,afterNextRender:_.KJ,flush:function(){for(;OVc.length||Mb.length;)dDy(OVc),dDy(Mb);LJ=!1}};Polymer.LegacyElementMixin=_.I8;var SMj;SMj=t3._mutablePropertyChange;var hUT={properties:{mutableData:Boolean},_shouldPropertyChange:function(q,w,u){return SMj(this,q,w,u,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(q,w,u){return SMj(this,q,w,u,!0)}};
Polymer.OptionalMutableDataBehavior=hUT;var yIj={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Xro={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},PUz=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Xro),jxj=(0,_.I8)(HTMLElement),hZj=function(q,w){q||console.warn("Polymer.Class requires `info` argument");w=w?w(jxj):jxj;w=Fpl(q,w,q.behaviors);w.is=w.prototype.is=
q.is;return w};Polymer.Class=hZj;Polymer.mixinBehaviors=function(q,w){return Fpl({},(0,_.I8)(w),q)};
Polymer.GenerateClassFromInfo=Fpl;_.o9=function(q){var w=typeof q==="function"?q:_.o9.Class(q);q._legacyForceObservedAttributes&&(w.prototype._legacyForceObservedAttributes=q._legacyForceObservedAttributes);customElements.define(w.is,w);return w};
_.o9.Class=hZj;Polymer._polymerFn=_.o9;var lBx=window.onLegacyPolymerFunctionDefinedCallback;lBx&&lBx();var lW7={templatize:function(q,w){this._templatizerTemplate=q;this.ctor=E4(q,this,{mutableData:!!w,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(q){return new this.ctor(q)},
modelForElement:function(q){return iVJ(this._templatizerTemplate,q)}};Polymer.Templatizer=lW7;_.iM=(0,_.I8)(HTMLElement).prototype;Polymer.Base=_.iM;var nXo=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.q4=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.O(_.q4,PolymerFakeBaseClass);var w1=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.O(w1,PolymerFakeBaseClass);var HCJ=Symbol("Nd"),ULJ=[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 LHx=LHx||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},Mp6;(function(q){function w(S,eH,x){var P4=l.get(S);if(!P4){if(!x)return;P4=new b;l.set(S,P4)}S=P4.get(eH);if(!S){if(!x)return;S=new b;P4.set(eH,S)}return S}
function u(S,eH,x){if(y(S,eH,x))return!0;eH=U(eH);return eH!==null?u(S,eH,x):!1}
function y(S,eH,x){eH=w(eH,x,!1);return eH===void 0?!1:!!eH.has(S)}
function e(S,eH,x){if(y(S,eH,x))return t(S,eH,x);eH=U(eH);if(eH!==null)return e(S,eH,x)}
function t(S,eH,x){eH=w(eH,x,!1);if(eH!==void 0)return eH.get(S)}
function X(S,eH){var x=G(S,eH);S=U(S);if(S===null)return x;var P4=X(S,eH);if(P4.length<=0)return x;if(x.length<=0)return P4;eH=new g;S=[];x=_.P(x);for(var C7=x.next();!C7.done;C7=x.next())C7=C7.value,eH.has(C7)||(eH.add(C7),S.push(C7));x=_.P(P4);for(P4=x.next();!P4.done;P4=x.next())P4=P4.value,eH.has(P4)||(eH.add(P4),S.push(P4));return S}
function G(S,eH){S=w(S,eH,!1);var x=[];S&&S.forEach(function(P4,C7){return x.push(C7)});
return x}
function n(S){return S===void 0}
function N(S){return typeof S==="object"?S!==null:typeof S==="function"}
function Q(S){return typeof S==="function"}
function I(S){return typeof S==="symbol"?S:String(S)}
function U(S){var eH=Object.getPrototypeOf(S);if(typeof S!=="function"||S===a||eH!==a)return eH;var x=Object.getPrototypeOf(S.prototype);if(x==null||x===Object.prototype)return eH;x=x.constructor;return typeof x!=="function"||x===S?eH:x}
function d(){function S(){this._keys=[];this._values=[];this._cache=eH}
var eH={};S.prototype={get size(){return this._keys.length},has:function(x){return x===this._cache?!0:this._find(x)>=0?(this._cache=x,!0):!1},
get:function(x){var P4=this._find(x);if(P4>=0)return this._cache=x,this._values[P4]},
set:function(x,P4){this.delete(x);this._keys.push(x);this._values.push(P4);this._cache=x;return this},
delete:function(x){x=this._find(x);return x>=0?(this._keys.splice(x,1),this._values.splice(x,1),this._cache=eH,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=eH},
forEach:function(x){for(var P4=this.size,C7=0;C7<P4;++C7){var mu=this._keys[C7],Os=this._values[C7];this._cache=mu;x.call(this,Os,mu,this)}},
_find:function(x){for(var P4=this._keys,C7=P4.length,mu=0;mu<C7;++mu)if(P4[mu]===x)return mu;return-1}};
return S}
function V(){function S(){this._map=new b}
S.prototype={get size(){return this._map.length},has:function(eH){return this._map.has(eH)},
add:function(eH){this._map.set(eH,eH);return this},
delete:function(eH){return this._map.delete(eH)},
clear:function(){this._map.clear()},
forEach:function(eH,x){this._map.forEach(eH,x)}};
return S}
function J(){function S(){this._key=x()}
function eH(ao,bc){for(var Ro=0;Ro<bc;++Ro)ao[Ro]=Math.random()*255|0}
function x(){do{if(C7)var ao=C7.randomBytes(16);else typeof Uint8Array==="function"?(ao=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(ao):eH(ao,16)):(ao=Array(16),eH(ao,16));ao[6]=ao[6]&79|64;ao[8]=ao[8]&191|128;for(var bc="",Ro=0;Ro<16;++Ro){var K7=ao[Ro];if(Ro===4||Ro===6||Ro===8)bc+="-";K7<16&&(bc+="0");bc+=K7.toString(16).toLowerCase()}ao="@@WeakMap@@"+bc}while(mu.call(Os,ao));Os[ao]=!0;return ao}
function P4(ao,bc){if(!mu.call(ao,YJ)){if(!bc)return;Object.defineProperty(ao,YJ,{value:Object.create(null)})}return ao[YJ]}
var C7=typeof global!=="undefined"&&typeof LHx==="object"&&typeof require==="function"&&require("crypto"),mu=Object.prototype.hasOwnProperty,Os={},YJ=x();S.prototype={has:function(ao){return(ao=P4(ao,!1))?this._key in ao:!1},
get:function(ao){if(ao=P4(ao,!1))return ao[this._key]},
set:function(ao,bc){P4(ao,!0)[this._key]=bc;return this},
delete:function(ao){return(ao=P4(ao,!1))&&this._key in ao?delete ao[this._key]:!1},
clear:function(){this._key=x()}};
return S}
var a=Object.getPrototypeOf(Function),b=typeof Map==="function"?Map:d(),g=typeof Set==="function"?Set:V(),l=new (typeof WeakMap==="function"?WeakMap:J());q.decorate=function(S,eH,x,P4){if(n(P4)){if(n(x)){if(!Array.isArray(S))throw new TypeError;if(!Q(eH))throw new TypeError;for(x=S.length-1;x>=0;--x)if(P4=(0,S[x])(eH),!n(P4)){if(!Q(P4))throw new TypeError;eH=P4}return eH}if(!Array.isArray(S))throw new TypeError;if(!N(eH))throw new TypeError;x=I(x);for(P4=S.length-1;P4>=0;--P4)(0,S[P4])(eH,x)}else{if(Array.isArray(S))if(N(eH)){if(n(x))throw new TypeError;
if(!N(P4))throw new TypeError;}else throw new TypeError;else throw new TypeError;x=I(x);for(var C7=S.length-1;C7>=0;--C7){var mu=(0,S[C7])(eH,x,P4);if(!n(mu)){if(!N(mu))throw new TypeError;P4=mu}}return P4}};
q.metadata=function(S,eH){return function(x,P4){if(n(P4)){if(!Q(x))throw new TypeError;w(x,void 0,!0).set(S,eH)}else{if(!N(x))throw new TypeError;P4=I(P4);w(x,P4,!0).set(S,eH)}}};
q.defineMetadata=function(S,eH){var x;if(N(eH))n(x)||(x=I(x));else throw new TypeError;w(eH,x,!0).set("parameters",S)};
q.hasMetadata=function(S,eH,x){if(N(eH))n(x)||(x=I(x));else throw new TypeError;return u(S,eH,x)};
q.hasOwnMetadata=function(S,eH,x){if(N(eH))n(x)||(x=I(x));else throw new TypeError;return y(S,eH,x)};
q.getMetadata=function(S,eH,x){if(N(eH))n(x)||(x=I(x));else throw new TypeError;return e(S,eH,x)};
q.getOwnMetadata=function(S,eH,x){if(N(eH))n(x)||(x=I(x));else throw new TypeError;return t(S,eH,x)};
q.getMetadataKeys=function(S,eH){if(N(S))n(eH)||(eH=I(eH));else throw new TypeError;return X(S,eH)};
q.getOwnMetadataKeys=function(S,eH){if(N(S))n(eH)||(eH=I(eH));else throw new TypeError;return G(S,eH)};
q.deleteMetadata=function(S,eH,x){if(N(eH))n(x)||(x=I(x));else throw new TypeError;var P4=w(eH,x,!1);if(!n(P4)){if(!P4.delete(S))return!1;if(P4.size>0)return!0;S=l.get(eH);S.delete(x);if(S.size>0)return!0;l.delete(eH);return!0}};
(function(S){if(typeof S.Reflect!=="undefined"){if(S.Reflect!==q)for(var eH in q)S.Reflect[eH]=q[eH]}else S.Reflect=q})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(Mp6||(Mp6={}));var oEz=self;var KHj=[0,_.EL,_.cS,_.EL];var B1T=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(B1T,_.bE);var x4F=_.qC(B1T,[0,_.qUc,_.SV,KHj,_.cS,_.jV]);_.w9(_.u9,_.VG);_.k=_.u9.prototype;_.k.start=function(){this.stop();this.usingListeners_=!1;var q=qCx(this),w=wwj(this);q&&!w&&this.JSC$9117_win_.mozRequestAnimationFrame?(this.JSC$9117_id_=_.dL(this.JSC$9117_win_,"MozBeforePaint",this.callback_),this.JSC$9117_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9117_id_=q&&w?q.call(this.JSC$9117_win_,this.callback_):this.JSC$9117_win_.setTimeout(kyr(this.callback_),20)};
_.k.stop=function(){if(this.isActive()){var q=qCx(this),w=wwj(this);q&&!w&&this.JSC$9117_win_.mozRequestAnimationFrame?UO(this.JSC$9117_id_):q&&w?w.call(this.JSC$9117_win_,this.JSC$9117_id_):this.JSC$9117_win_.clearTimeout(this.JSC$9117_id_)}this.JSC$9117_id_=null};
_.k.fire=function(){this.stop();this.JSC$9119_doAction_()};
_.k.isActive=function(){return this.JSC$9117_id_!=null};
_.k.JSC$9119_doAction_=function(){this.usingListeners_&&this.JSC$9117_id_&&UO(this.JSC$9117_id_);this.JSC$9117_id_=null;this.JSC$9117_listener_.call(this.handler_,_.qG())};
_.k.disposeInternal=function(){this.stop();_.u9.superClass_.disposeInternal.call(this)};
var qCx=function(q){q=q.JSC$9117_win_;return q.requestAnimationFrame||q.webkitRequestAnimationFrame||q.mozRequestAnimationFrame||q.oRequestAnimationFrame||q.msRequestAnimationFrame||null},wwj=function(q){q=q.JSC$9117_win_;
return q.cancelAnimationFrame||q.cancelRequestAnimationFrame||q.webkitCancelRequestAnimationFrame||q.mozCancelRequestAnimationFrame||q.oCancelRequestAnimationFrame||q.msCancelRequestAnimationFrame||null};_.MI=function(q,w,u){_.VG.call(this);this.JSC$9120_listener_=u!=null?q.bind(u):q;this.JSC$9120_interval_=w;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9120_timer_=null};
_.O(_.MI,_.VG);_.k=_.MI.prototype;_.k.fire=function(q){this.args_=arguments;this.JSC$9120_timer_||this.pauseCount_?this.shouldFire_=!0:u4G(this)};
_.k.stop=function(){this.JSC$9120_timer_&&(_.uc.clearTimeout(this.JSC$9120_timer_),this.JSC$9120_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.k.pause=function(){this.pauseCount_++};
_.k.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9120_timer_||(this.shouldFire_=!1,u4G(this))};
_.k.disposeInternal=function(){_.VG.prototype.disposeInternal.call(this);this.stop()};
var u4G=function(q){q.JSC$9120_timer_=Tx(function(){q.JSC$9120_timer_=null;q.shouldFire_&&!q.pauseCount_&&(q.shouldFire_=!1,u4G(q))},q.JSC$9120_interval_);
var w=q.args_;q.args_=null;q.JSC$9120_listener_.apply(null,w)};var y7c=function(q,w){this.childIterator_=q[_.uc.Symbol.iterator]();this.mapFn_=w};
y7c.prototype[Symbol.iterator]=function(){return this};
y7c.prototype.next=function(){var q=this.childIterator_.next();return{value:q.done?void 0:this.mapFn_.call(void 0,q.value),done:q.done}};
var eK3=function(q,w){return new y7c(q,w)};var kM3={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 XHs=function(q){var w=tBx(q);if(!w)throw Error("Rd`"+q);return w},tBx=function(q){var w={};
q=String(q);var u=q.charAt(0)=="#"?q:"#"+q;if(Py6.test(u))return w.hex=y0l(u),w.type="hex",w;u=HSo(q);return u.length?(w.hex=RFf(u[0],u[1],u[2]),w.type="rgb",w):kM3&&(q=kM3[q.toLowerCase()])?(w.hex=q,w.type="named",w):null},Xwr=/#(.)(.)(.)/,y0l=function(q){if(!Py6.test(q))throw Error("Td`"+q);
q.length==4&&(q=q.replace(Xwr,"#$1$1$2$2$3$3"));return q.toLowerCase()},F5z=function(q){q=y0l(q);
q=parseInt(q.slice(1),16);return[q>>16,q>>8&255,q&255]},RFf=function(q,w,u){q=Number(q);
w=Number(w);u=Number(u);if(q!=(q&255)||w!=(w&255)||u!=(u&255))throw Error("Ud`"+q+"`"+w+"`"+u);w=q<<16|w<<8|u;return q<16?"#"+(16777216|w).toString(16).slice(1):"#"+w.toString(16)},Py6=/^#(?:[0-9a-f]{3}){1,2}$/i,FRT=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,HSo=function(q){var w=q.match(FRT);
if(w){q=Number(w[1]);var u=Number(w[2]);w=Number(w[3]);if(q>=0&&q<=255&&u>=0&&u<=255&&w>=0&&w<=255)return[q,u,w]}return[]};var GM$={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},CV=GM$;CV=GM$;var bW4,n1k,Hqa;bW4=function(q,w){switch(w){case 1:return q%4!=0||q%100==0&&q%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
n1k=function(q,w,u,y,e){q=new Date(q,w,u);e=e||0;return q.valueOf()+(((y!==void 0?y:3)-e+7)%7-((q.getDay()+6)%7-e+7)%7)*864E5};
_.rQ=function(q,w,u){typeof q==="number"?(this.date=Hqa(q,w||0,u||1),WRP(this,u||1)):_.er(q)?(this.date=Hqa(q.getFullYear(),q.getMonth(),q.getDate()),WRP(this,q.getDate())):(this.date=new Date(_.qG()),q=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),WRP(this,q))};
Hqa=function(q,w,u){w=new Date(q,w,u);q>=0&&q<100&&w.setFullYear(w.getFullYear()-1900);return w};
_.k=_.rQ.prototype;_.k.firstDayOfWeek_=CV.FIRSTDAYOFWEEK;_.k.firstWeekCutOffDay_=CV.FIRSTWEEKCUTOFFDAY;_.k.clone=function(){var q=new _.rQ(this.date);q.firstDayOfWeek_=this.firstDayOfWeek_;q.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return q};
_.k.getFullYear=function(){return this.date.getFullYear()};
_.k.getYear=function(){return this.getFullYear()};
_.k.getMonth=function(){return this.date.getMonth()};
_.k.getDate=function(){return this.date.getDate()};
_.k.getTime=function(){return this.date.getTime()};
_.k.getDay=function(){return this.date.getDay()};
_.k.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.k.getUTCMonth=function(){return this.date.getUTCMonth()};
_.k.getUTCDate=function(){return this.date.getUTCDate()};
_.k.getUTCDay=function(){return this.date.getDay()};
_.k.getUTCHours=function(){return this.date.getUTCHours()};
_.k.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.k.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.k.set=function(q){this.date=new Date(q.getFullYear(),q.getMonth(),q.getDate())};
_.k.setFullYear=function(q){this.date.setFullYear(q)};
_.k.setYear=function(q){this.setFullYear(q)};
_.k.setMonth=function(q){this.date.setMonth(q)};
_.k.setDate=function(q){this.date.setDate(q)};
_.k.setTime=function(q){this.date.setTime(q)};
_.k.setUTCFullYear=function(q){this.date.setUTCFullYear(q)};
_.k.setUTCMonth=function(q){this.date.setUTCMonth(q)};
_.k.setUTCDate=function(q){this.date.setUTCDate(q)};
_.k.add=function(q){if(q.years||q.months){var w=this.getMonth()+q.months+q.years*12,u=this.getYear()+Math.floor(w/12);w%=12;w<0&&(w+=12);var y=Math.min(bW4(u,w),this.getDate());this.setDate(1);this.setFullYear(u);this.setMonth(w);this.setDate(y)}q.days&&(u=this.getYear(),w=u>=0&&u<=99?-1900:0,q=new Date((new Date(u,this.getMonth(),this.getDate(),12)).getTime()+q.days*864E5),this.setDate(1),this.setFullYear(q.getFullYear()+w),this.setMonth(q.getMonth()),this.setDate(q.getDate()),WRP(this,q.getDate()))};
_.k.JSC$9133_toIsoString=function(q){var w=this.getFullYear(),u=w<0?"-":w>=1E4?"+":"";return[u+_.xf(Math.abs(w),u?6:4),_.xf(this.getMonth()+1,2),_.xf(this.getDate(),2)].join(q?"-":"")};
_.k.equals=function(q){return!(!q||this.getYear()!=q.getYear()||this.getMonth()!=q.getMonth()||this.getDate()!=q.getDate())};
_.k.toString=function(){return this.JSC$9133_toIsoString()};
var WRP=function(q,w){q.getDate()!=w&&q.date.setUTCHours(q.date.getUTCHours()+(q.getDate()<w?1:-1))};
_.rQ.prototype.valueOf=function(){return this.date.valueOf()};var Th=function(q,w,u,y,e){this.reversed=!!w;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!u;q&&Uz(this,q,y);this.depth=e!=void 0?e:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.w9(Th,uR);var Uz=function(q,w,u,y){if(q.node=w)q.tagType=typeof u==="number"?u:q.node.nodeType!=1?0:q.reversed?-1:1;typeof y==="number"&&(q.depth=y)};
_.k=Th.prototype;_.k.JSC$9148_copyFrom=function(q){this.node=q.node;this.tagType=q.tagType;this.depth=q.depth;this.reversed=q.reversed;this.constrained=q.constrained};
_.k.clone=function(){return new Th(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.k.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return yB;var q=this.node;var w=this.reversed?-1:1;if(this.tagType==w){var u=this.reversed?q.lastChild:q.firstChild;u?Uz(this,u):Uz(this,q,w*-1)}else(u=this.reversed?q.previousSibling:q.nextSibling)?Uz(this,u):Uz(this,q.parentNode,w*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(q=this.node)?eF(q):yB};
_.k.equals=function(q){return q.node==this.node&&(!this.node||q.tagType==this.tagType)};
_.k.splice=function(q){var w=this.node,u=this.reversed?1:-1;this.tagType==u&&(this.tagType=u*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;Th.prototype.next.call(this);this.reversed=!this.reversed;u=_.uP(arguments[0])?arguments[0]:arguments;for(var y=u.length-1;y>=0;y--)_.fO(u[y],w);_.UN(w)};var sDc=function(){},C1=function(q){for(var w=[],u=q.getTextRangeCount(),y=0;y<u;y++)w.push(q.getTextRange(y));
return w};
sDc.prototype.isReversed=function(){return!1};
sDc.prototype.getWindow=function(){return fg(_.mN(this.JSC$9150_getStartNode()))};
var Nkj=function(q,w){Th.call(this,q,w,!0)};
_.w9(Nkj,Th);var dQ=function(q,w,u,y,e){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!e;if(q){this.startNode_=q;this.startOffset_=w;this.endNode_=u;this.endOffset_=y;if(q.nodeType==1&&q.tagName!="BR")if(q=q.childNodes,w=q[w])this.startNode_=w,this.startOffset_=0;else{q.length&&(this.startNode_=_.$J(q));var t=!0}u.nodeType==1&&((this.endNode_=u.childNodes[y])?this.endOffset_=0:this.endNode_=u)}Th.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);t&&this.next()};
_.w9(dQ,Nkj);_.k=dQ.prototype;_.k.JSC$9156_getStartNode=function(){return this.startNode_};
_.k.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)};
_.k.next=function(){return this.isLast()?yB:dQ.superClass_.next.call(this)};
_.k.JSC$9148_copyFrom=function(q){this.startNode_=q.startNode_;this.endNode_=q.endNode_;this.startOffset_=q.startOffset_;this.endOffset_=q.endOffset_;this.isReversed_=q.isReversed_;dQ.superClass_.JSC$9148_copyFrom.call(this,q)};
_.k.clone=function(){var q=new dQ(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);q.JSC$9148_copyFrom(this);return q};var QDj=function(){};
QDj.prototype.__iterator__=function(){return new dQ(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Oz=function(q){this.range_=q};
_.w9(Oz,QDj);var I_X=function(q){var w=_.mN(q).createRange();if(q.nodeType==3)w.setStart(q,0),w.setEnd(q,q.length);else if(Ob(q)||q.nodeType==3){for(var u,y=q;(u=y.firstChild)&&(Ob(u)||u.nodeType==3);)y=u;w.setStart(y,0);for(y=q;(u=y.lastChild)&&(Ob(u)||u.nodeType==3);)y=u;w.setEnd(y,y.nodeType==1?y.childNodes.length:y.length)}else u=q.parentNode,q=Array.prototype.indexOf.call(u.childNodes,q),w.setStart(u,q),w.setEnd(u,q+1);return w},iq$=function(q,w,u,y){var e=_.mN(q).createRange();
e.setStart(q,w);e.setEnd(u,y);return e};
_.k=Oz.prototype;_.k.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.k.getContainer=function(){return this.range_.commonAncestorContainer};
_.k.compareBrowserRangeEndpoints=function(q,w,u){return this.range_.compareBoundaryPoints(u==1?w==1?_.uc.Range.START_TO_START:_.uc.Range.START_TO_END:w==1?_.uc.Range.END_TO_START:_.uc.Range.END_TO_END,q)};
_.k.isCollapsed=function(){return this.range_.collapsed};
_.k.select=function(q){this.selectInternal(fg(_.mN(this.range_.startContainer)).getSelection(),q)};
_.k.selectInternal=function(q){q.removeAllRanges();q.addRange(this.range_)};
_.k.insertNode=function(q,w){var u=this.range_.cloneRange();u.collapse(w);u.insertNode(q);u.detach();return q};
_.k.collapse=function(q){this.range_.collapse(q)};_.w9(yv,Oz);yv.prototype.selectInternal=function(q,w){!w||this.isCollapsed()?yv.superClass_.selectInternal.call(this,q,w):(q.collapse(this.range_.endContainer,this.range_.endOffset),q.extend(this.range_.startContainer,this.range_.startOffset))};_.w9(ep,Oz);ep.prototype.compareBrowserRangeEndpoints=function(q,w,u){return ep.superClass_.compareBrowserRangeEndpoints.call(this,q,w,u)};
ep.prototype.selectInternal=function(q,w){w?q.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):q.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var r7a=function(q){return _.PS?new ep(q):_.tv?new yv(q):new Oz(q)};var o8=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},UUG;
_.w9(o8,sDc);UUG=function(q,w){var u=new o8;u.browserRangeWrapper_=q;u.isReversed_=!!w;return u};
_.TkX=function(q){q=_.PS?new ep(I_X(q)):_.tv?new yv(I_X(q)):new Oz(I_X(q));return UUG(q)};
_.V5=function(q,w,u,y){var e=new o8;e.isReversed_=Cyk(q,w,u,y);if(_.ws(q)&&!Ob(q)){var t=q.parentNode;w=Array.prototype.indexOf.call(t.childNodes,q);q=t}_.ws(u)&&!Ob(u)&&(t=u.parentNode,y=Array.prototype.indexOf.call(t.childNodes,u),u=t);e.isReversed_?(e.startNode_=u,e.startOffset_=y,e.endNode_=q,e.endOffset_=w):(e.startNode_=q,e.startOffset_=w,e.endNode_=u,e.endOffset_=y);return e};
_.k=o8.prototype;_.k.clone=function(){var q=new o8;q.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();q.startNode_=this.startNode_;q.startOffset_=this.startOffset_;q.endNode_=this.endNode_;q.endOffset_=this.endOffset_;q.isReversed_=this.isReversed_;return q};
_.k.JSC$9150_getType=function(){return"text"};
_.k.getBrowserRangeObject=function(){return f1(this).range_};
_.k.getTextRangeCount=function(){return 1};
_.k.getTextRange=function(){return this};
var f1=function(q){var w;if(!(w=q.browserRangeWrapper_)){w=q.JSC$9150_getStartNode();var u=q.JSC$9150_getStartOffset(),y=q.JSC$9150_getEndNode(),e=q.JSC$9150_getEndOffset();w=_.PS?new ep(iq$(w,u,y,e)):_.tv?new yv(iq$(w,u,y,e)):new Oz(iq$(w,u,y,e));w=q.browserRangeWrapper_=w}return w};
_.k=o8.prototype;_.k.getContainer=function(){return f1(this).getContainer()};
_.k.JSC$9150_getStartNode=function(){return this.startNode_||(this.startNode_=f1(this).range_.startContainer)};
_.k.JSC$9150_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=f1(this).range_.startOffset};
_.k.JSC$9150_getEndNode=function(){return this.endNode_||(this.endNode_=f1(this).range_.endContainer)};
_.k.JSC$9150_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=f1(this).range_.endOffset};
_.k.isReversed=function(){return this.isReversed_};
_.k.JSC$9150_containsRange=function(q,w){if(q.JSC$9150_getType()=="text"){var u=f1(this);q=f1(q);w=w&&!q.isCollapsed();q=q.range_;u=w?u.compareBrowserRangeEndpoints(q,0,1)>=0&&u.compareBrowserRangeEndpoints(q,1,0)<=0:u.compareBrowserRangeEndpoints(q,0,0)>=0&&u.compareBrowserRangeEndpoints(q,1,1)<=0}else u=!1;return u};
_.k.isCollapsed=function(){return f1(this).isCollapsed()};
_.k.JSC$9150_getText=function(){return f1(this).range_.toString()};
_.k.__iterator__=function(){return new dQ(this.JSC$9150_getStartNode(),this.JSC$9150_getStartOffset(),this.JSC$9150_getEndNode(),this.JSC$9150_getEndOffset())};
_.k.select=function(){f1(this).select(this.isReversed_)};
_.k.JSC$9150_removeContents=function(){var q=f1(this).range_;q.extractContents();if(q.startContainer.hasChildNodes()&&(q=q.startContainer.childNodes[q.startOffset])){var w=q.previousSibling;ycT(q)==""&&_.UN(q);w&&ycT(w)==""&&_.UN(w)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.k.insertNode=function(q,w){q=f1(this).insertNode(q,w);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return q};
_.k.collapse=function(q){q=this.isReversed()?!q:q;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(q);q?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var dUx=function(){};
_.w9(dUx,sDc);dUx.prototype.JSC$9150_containsRange=function(q,w){var u=C1(this);q=C1(q);return(w?BT:_.cVj)(q,function(y){return BT(u,function(e){return e.JSC$9150_containsRange(y,w)})})};
dUx.prototype.insertNode=function(q,w){w?_.Vs(q,this.JSC$9150_getStartNode()):_.fO(q,this.JSC$9150_getEndNode());return q};var OqP,o1F=WX().JSC$7229_document_.documentElement;OqP=o1F.requestFullscreen?"fullscreenchange":o1F.webkitRequestFullscreen?"webkitfullscreenchange":o1F.mozRequestFullScreen?"mozfullscreenchange":o1F.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var VBF=function(){var q=WX().JSC$7229_document_;return!!(q.webkitIsFullScreen||q.mozFullScreen||q.msFullscreenElement||q.fullscreenElement)};var mm=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.w9(mm,dUx);_.k=mm.prototype;_.k.clone=function(){var q=new mm;q.browserRanges_=_.qT(this.browserRanges_);return q};
_.k.JSC$9150_getType=function(){return"mutli"};
_.k.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.k.getTextRangeCount=function(){return this.browserRanges_.length};
_.k.getTextRange=function(q){this.ranges_[q]||(this.ranges_[q]=UUG(r7a(this.browserRanges_[q])));return this.ranges_[q]};
_.k.getContainer=function(){if(!this.container_){for(var q=[],w=this.getTextRangeCount(),u=0;u<w;u++)q.push(this.getTextRange(u).getContainer());this.container_=MHk.apply(null,q)}return this.container_};
var A3=function(q){q.sortedRanges_||(q.sortedRanges_=C1(q),q.sortedRanges_.sort(function(w,u){var y=w.JSC$9150_getStartNode();w=w.JSC$9150_getStartOffset();var e=u.JSC$9150_getStartNode();u=u.JSC$9150_getStartOffset();return y==e&&w==u?0:Cyk(y,w,e,u)?1:-1}));
return q.sortedRanges_};
_.k=mm.prototype;_.k.JSC$9150_getStartNode=function(){return A3(this)[0].JSC$9150_getStartNode()};
_.k.JSC$9150_getStartOffset=function(){return A3(this)[0].JSC$9150_getStartOffset()};
_.k.JSC$9150_getEndNode=function(){return _.$J(A3(this)).JSC$9150_getEndNode()};
_.k.JSC$9150_getEndOffset=function(){return _.$J(A3(this)).JSC$9150_getEndOffset()};
_.k.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.k.JSC$9150_getText=function(){return C1(this).map(function(q){return q.JSC$9150_getText()}).join("")};
_.k.__iterator__=function(){return new J3(this)};
_.k.select=function(){var q=this.getWindow().getSelection();q.removeAllRanges();for(var w=this.getTextRangeCount(),u=0;u<w;u++)q.addRange(this.getTextRange(u).getBrowserRangeObject())};
_.k.JSC$9150_removeContents=function(){C1(this).forEach(function(q){q.JSC$9150_removeContents()})};
_.k.collapse=function(q){if(!this.isCollapsed()){var w=q?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;w.collapse(q);this.ranges_=[w];this.sortedRanges_=[w];this.browserRanges_=[w.getBrowserRangeObject()]}};
var J3=function(q){this.iterators_=null;this.currentIdx_=0;q&&(this.iterators_=A3(q).map(function(w){return _.cG3(w)}));
Th.call(this,q?this.JSC$9156_getStartNode():null,!1,!0)};
_.w9(J3,Nkj);_.k=J3.prototype;_.k.JSC$9156_getStartNode=function(){return this.iterators_[0].JSC$9156_getStartNode()};
_.k.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.k.next=function(){for(;this.currentIdx_<this.iterators_.length;){var q=this.iterators_[this.currentIdx_],w=q.next();if(w.done)this.currentIdx_++;else return Uz(this,q.node,q.tagType,q.depth),w}return yB};
_.k.JSC$9148_copyFrom=function(q){this.iterators_=_.qT(q.iterators_);J3.superClass_.JSC$9148_copyFrom.call(this,q)};
_.k.clone=function(){var q=new J3(null);q.JSC$9148_copyFrom(this);return q};var f_P,Cyk;_.IS=function(){var q=window.getSelection();return q&&f_P(q)};
f_P=function(q){var w=!1;if(q.createRange)try{var u=q.createRange()}catch(e){return null}else if(q.rangeCount){if(q.rangeCount>1){u=new mm;w=q.rangeCount;for(var y=0;y<w;y++)u.browserRanges_.push(q.getRangeAt(y));return u}u=q.getRangeAt(0);w=Cyk(q.anchorNode,q.anchorOffset,q.focusNode,q.focusOffset)}else return null;return UUG(r7a(u),w)};
_.zh=function(q,w){return _.V5(q,w,q,w)};
_.a8=function(q,w,u,y){return _.V5(q,w,u,y)};
Cyk=function(q,w,u,y){if(q==u)return y<w;var e;if(q.nodeType==1&&w)if(e=q.childNodes[w])q=e,w=0;else if(_.R3(q,u))return!0;if(u.nodeType==1&&y)if(e=u.childNodes[y])u=e,y=0;else if(_.R3(u,q))return!1;return(LuZ(q,u)||w-y)>0};var DN=function(){_.Q4.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.fY)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.fY)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.fY)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.fY)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.fY)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.fY)(this.dispatchProgressEvent_,this)};
_.w9(DN,_.Q4);DN.prototype.abort=function(){try{this.reader_.abort()}catch(q){throw new LLT(q,"aborting read");}};
DN.prototype.getError=function(){return this.reader_.error&&new LLT(this.reader_.error,"reading file")};
DN.prototype.dispatchProgressEvent_=function(q){this.dispatchEvent(new MZZ(q,this))};
DN.prototype.disposeInternal=function(){DN.superClass_.disposeInternal.call(this);delete this.reader_};
var A7P=function(q){var w=new DN,u=mUX(w);w.reader_.readAsArrayBuffer(q);return u},J7T=function(q){var w=new DN,u=mUX(w);
w.reader_.readAsDataURL(q);return u},mUX=function(q){var w=new Yr;
q.listen("loadend",_.rk(function(u,y){var e=y.reader_.result,t=y.getError();e==null||t?u.errback(t):u.callback(e);y.dispose()},w,q));
return w};var ZN=function(){_.Q4.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9190_eventHandler_=new _.tp(this);this.JSC$9190_isInitialized_=!1};
_.w9(ZN,_.Q4);var zKG=new _.Gx("d"),a_F=new _.Gx("beforedragstart"),DUc=new _.Gx("dragstart"),Zqj=new _.Gx("beforedragmove"),pw6=new _.Gx("dragmove"),$U3=new _.Gx("beforedragend"),v1j=new _.Gx("dragend"),bqr=new _.Gx("e");ZN.prototype.isDragging=function(){return!!this.JSC$9190_dragger_};
var YCX=function(q,w){w.dlgGrowthDirection_=0;w.dlgDragHoverClass_=void 0;w.dlgDragPermission=0;q.dragLists_.push(w)},g1Z=function(q,w){q.getHandleForDragItem_=w};
ZN.prototype.init=function(){if(!this.JSC$9190_isInitialized_){for(var q=this.dragLists_.length,w=0;w<q;w++)for(var u=_.m_(this.dragLists_[w]),y=u.length,e=0;e<y;++e){var t=u[e],X=this.getHandleForDragItem_(t),G=_.kT(X);this.dragItemForHandle_[G]=t;this.dragItemHoverClasses_&&(this.JSC$9190_eventHandler_.listen(t,"mouseover",this.handleDragItemMouseover_),this.JSC$9190_eventHandler_.listen(t,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9190_eventHandler_.listen(X,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9190_eventHandler_.listen(X,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(t);this.JSC$9190_eventHandler_.listen(X,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9190_isInitialized_=!0}};
ZN.prototype.disposeInternal=function(){this.JSC$9190_eventHandler_.dispose();for(var q=this.dragLists_.length,w=0;w<q;w++){var u=this.dragLists_[w];u.dlgGrowthDirection_=void 0;u.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;E1F(this);ZN.superClass_.disposeInternal.call(this)};
var RKX=function(q,w){for(var u=q.dragLists_.length,y=0;y<u;y++){var e=q.dragLists_[y];e.dlgBounds_=Vc6(e)}u=q.dragItems_.length;for(y=0;y<u;y++)e=q.dragItems_[y],e!=w&&(e.dlgBounds_=Vc6(e))};
_.k=ZN.prototype;
_.k.handlePotentialDragStart_=function(q){var w=_.kT(q.currentTarget);w=this.dragItemForHandle_[w];if(w.parentElement.dlgDragPermission!=2){this.currDragItem_=w;a:{w=this.currDragItem_;for(var u=w.cloneNode(!0),y=T9("TEXTAREA",w),e=T9("TEXTAREA",u),t=0;t<y.length;t++)e[t].value=y[t].value;switch(w.tagName){case "TR":w=_.CO("TABLE",null,_.CO("TBODY",null,u));break a;case "TD":case "TH":w=_.CO("TABLE",null,_.CO("TBODY",null,_.CO("TR",null,u)));break a;case "TEXTAREA":u.value=w.value;default:w=u;break a}w=
void 0}this.draggerEl_=w;this.draggerElClasses_&&vJ(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.mN(this.currDragItem_).body.appendChild(this.draggerEl_);u=_.Jw(this.currDragItem_);w=this.draggerEl_;y=_.Jw(w);if(u instanceof _.Vx){var X=u.y;u=u.x}Dl(w,w.offsetLeft+(u-y.x),w.offsetTop+(Number(X)-y.y));this.JSC$9190_dragger_=new _.aq(this.draggerEl_);_.lGX(this.JSC$9190_dragger_,this.hysteresisDistance_);
_.dL(this.JSC$9190_dragger_,"start",this.handleDragStart_,!1,this);_.dL(this.JSC$9190_dragger_,"end",this.handleDragEnd_,!1,this);_.dL(this.JSC$9190_dragger_,"earlycancel",this.JSC$9192_cleanup_,!1,this);this.dispatchEvent(new p1(zKG,this,q,this.currDragItem_,this.draggerEl_,this.JSC$9190_dragger_));this.JSC$9190_dragger_.startDrag(q)}};
_.k.handleDragStart_=function(q){if(this.dispatchEvent(new p1(a_F,this,q.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.hf6(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?vJ(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var w=FjF(this.draggerEl_);this.draggerEl_.halfWidth=w.width/2;this.draggerEl_.halfHeight=w.height/2;w=this.draggerEl_.getBoundingClientRect();
var u=q.clientY,y=LbX(this.JSC$9190_dragger_,q.clientX);if(y>w.right){var e=this.currDragItem_.getBoundingClientRect();this.JSC$9190_dragger_.deltaX=y-(y-e.left)/e.width*w.width}u=M7$(this.JSC$9190_dragger_,u);u>w.bottom&&(this.JSC$9190_dragger_.deltaY+=u-w.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";RKX(this,this.currDragItem_);this.currDragItem_.style.display="";_.dL(this.JSC$9190_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new p1(DUc,
this,q.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9190_dragger_))}else q.preventDefault(),this.JSC$9192_cleanup_()};
_.k.handleDragMove_=function(q){var w=_.Jw(this.draggerEl_);w=new _.Vx(w.x+this.draggerEl_.halfWidth,w.y+this.draggerEl_.halfHeight);a:{var u=null;if(this.currDragItem_.style.display!="none"){u=this.currDragItem_.parentNode;var y=Vc6(u);if(c7x(w,y))break a}y=this.dragLists_.length;for(var e=0;e<y;e++){var t=this.dragLists_[e];if(t!=u&&c7x(w,t.dlgBounds_)){u=t;break a}}u=null}if(u){if(u==null)throw Error("Vd");y=0;e=!1;t=void 0;switch(u.dlgGrowthDirection_){case 0:y=w.y;var X=SCr;var G=hKx;break;case 4:e=
!0;case 2:y=w.x;X=jDT;G=hKx;break;case 5:e=!0;case 3:y=w.x,X=l_k,G=LRT}for(var n=null,N,Q=_.m_(u),I=Q.length,U=0;U<I;U++){var d=Q[U];if(d!=this.currDragItem_){var V=X(d.dlgBounds_);if(e){var J=MBX(d,w);t===void 0&&(t=J);G(y,V)&&(N==void 0||J<t||J==t&&(G(V,N)||V==N))&&(n=d,N=V);J<t&&(t=J)}else G(y,V)&&(N==void 0||G(V,N))&&(n=d,N=V)}}X=n!==null&&MBX(n,w)>t?null:n}else X=null;if(!this.dispatchEvent(new p1(Zqj,this,q,this.currDragItem_,this.draggerEl_,this.JSC$9190_dragger_,w,u,X)))return!1;if(u&&u.dlgDragPermission!=
1)this.currDragItem_.parentNode==u&&_.hf6(this.currDragItem_)==X||u.insertBefore(this.currDragItem_,X),this.currDragItem_.style.display="",u.dlgDragHoverClass_&&_.Lx(u,u.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",G=this.dragLists_.length,N=0;N<G;N++)y=this.dragLists_[N],y.dlgDragHoverClass_&&_.jD(y,y.dlgDragHoverClass_);u!=this.currHoverList_&&(this.currHoverList_=u,RKX(this,this.currDragItem_));this.dispatchEvent(new p1(pw6,this,q,this.currDragItem_,this.draggerEl_,this.JSC$9190_dragger_,
w,u,X));return!1};
_.k.JSC$9192_cleanup_=function(){E1F(this);this.JSC$9190_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var q=this.dragLists_.length,w=0;w<q;w++)this.dragLists_[w].dlgBounds_=null;q=this.dragItems_.length;for(w=0;w<q;w++)this.dragItems_[w].dlgBounds_=null};
_.k.handleDragEnd_=function(q){if(!this.dispatchEvent(new p1($U3,this,q,this.currDragItem_,this.draggerEl_,this.JSC$9190_dragger_)))return!1;E1F(this);this.dispatchEvent(new p1(v1j,this,q,this.currDragItem_,this.draggerEl_,this.JSC$9190_dragger_));this.JSC$9192_cleanup_();return!0};
var E1F=function(q){_.BX(q.JSC$9190_dragger_);var w=q.draggerEl_&&q.draggerEl_.parentElement;q.draggerEl_&&_.UN(q.draggerEl_);q.currDragItem_&&q.currDragItem_.style.display=="none"&&(q.origList_.insertBefore(q.currDragItem_,q.origNextItem_),q.currDragItem_.style.display="");q.currDragItemClasses_&&q.currDragItem_?L$T(q.currDragItem_,q.currDragItemClasses_||[]):q.currDragItem_&&(q.currDragItem_.style.visibility="");for(var u=q.dragLists_.length,y=0;y<u;y++){var e=q.dragLists_[y];e.dlgDragHoverClass_&&
_.jD(e,e.dlgDragHoverClass_)}w&&q.dispatchEvent(new p1(bqr,q,null,q.currDragItem_,q.draggerEl_,q.JSC$9190_dragger_))};
_.k=ZN.prototype;_.k.getHandleForDragItem_=function(q){return q};
_.k.handleDragItemMouseover_=function(q){vJ(q.currentTarget,this.dragItemHoverClasses_||[])};
_.k.handleDragItemMouseout_=function(q){L$T(q.currentTarget,this.dragItemHoverClasses_||[])};
_.k.handleDragItemHandleMouseover_=function(q){vJ(q.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.k.handleDragItemHandleMouseout_=function(q){L$T(q.currentTarget,this.dragItemHandleHoverClasses_||[])};
var c7x=function(q,w){return q.x>w.left&&q.x<w.left+w.width&&q.y>w.top&&q.y<w.top+w.height},MBX=function(q,w){q=q.dlgBounds_;
return Math.abs(w.y-(q.top+(q.height-1)/2))},SCr=function(q){return q.top+q.height-1},jDT=function(q){return q.left+q.width-1},l_k=function(q){return q.left||0},hKx=function(q,w){return q<w},LRT=function(q,w){return q>w},p1=function(q,w,u,y,e,t){_.nM.call(this,q);
this.event=u;this.currDragItem=y;this.draggerEl=e;this.JSC$9194_dragger=t};
_.w9(p1,_.nM);_.w9(Pf,_.VG);var KR6=new _.Vx(0,0);Pf.prototype.JSC$9198_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
Pf.prototype.JSC$9198_onMouseMove=function(q){var w=this.containerIsActuallyContent_?KR6:HX(WX(this.containerNode_)),u=this.horizontalScrolling_?this.calculateScrollDelta(q.clientX+w.x,this.scrollBounds_.left,this.scrollBounds_.width):0,y=this.calculateScrollDelta(q.clientY+w.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=u;this.scrollDelta_.y=y;!(u=!u&&!y)&&(u=this.constrainScroll_)&&(u=q.clientX+w.x,q=q.clientY+w.y,w=this.containerBounds_,u=!(w.left<=u&&w.left+w.width>=
u&&w.top<=q&&w.top+w.height>=q));u?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
Pf.prototype.calculateScrollDelta=function(q,w,u){var y=0;q<w?y=-8:q>w+u&&(y=8);return y};
Pf.prototype.disposeInternal=function(){Pf.superClass_.disposeInternal.call(this);this.JSC$9196_eventHandler_.dispose();this.scrollTimer_.dispose()};var BkX={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"}}},$e=BkX;$e=BkX;var vu={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 xUF=function(){},cQ=function(q){if(typeof q=="number"){var w=new xUF;
w.standardOffset_=q;var u=q;if(u==0)u="Etc/GMT";else{var y=["Etc/GMT",u<0?"-":"+"];u=Math.abs(u);y.push(Math.floor(u/60)%100);u%=60;u!=0&&y.push(":",_.xf(u,2));u=y.join("")}w.timeZoneId_=u;u=q;u==0?u="UTC":(y=["UTC",u<0?"+":"-"],u=Math.abs(u),y.push(Math.floor(u/60)%100),u%=60,u!=0&&y.push(":",u),u=y.join(""));q=q1r(q);w.tzNames_=[u,u];w.tzNamesExt_={STD_LONG_NAME_GMT:q,STD_GENERIC_LOCATION:q};w.transitions_=[];return w}w=new xUF;w.timeZoneId_=q.id;w.standardOffset_=-q.std_offset;w.tzNames_=q.names;
w.tzNamesExt_=q.names_ext;w.transitions_=q.transitions;return w},q1r=function(q){var w=["GMT"];
w.push(q<=0?"+":"-");q=Math.abs(q);w.push(_.xf(Math.floor(q/60)%100,2),":",_.xf(q%60,2));return w.join("")},wQx=function(q,w){w=Date.UTC(w.getUTCFullYear(),w.getUTCMonth(),w.getUTCDate(),w.getUTCHours(),w.getUTCMinutes())/36E5;
for(var u=0;u<q.transitions_.length&&w>=q.transitions_[u];)u+=2;return u==0?0:q.transitions_[u-1]},uXG=function(q,w){q=q.standardOffset_-wQx(q,w);
return q===-1440?0:q};var SN=function(q,w){this.patternParts_=[];this.JSC$9209_dateTimeSymbols_=w||CV;typeof q=="number"?yra(this,q):ejX(this,q)},kac=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],bM=function(q){return q.getHours?q.getHours():0},ejX=function(q,w){for(MLy&&(w=w.replace(/\u200f/g,""));w;){for(var u=w,y=0;y<kac.length;++y){var e=w.match(kac[y]);
if(e){var t=e[0];w=w.substring(t.length);y==0&&(t=="''"?t="'":(t=t.substring(1,e[1]=="'"?t.length-1:t.length),t=t.replace(/''/g,"'")));q.patternParts_.push({text:t,type:y});break}}if(u===w)throw Error("Wd`"+w);}};
SN.prototype.format=function(q,w){if(!q)throw Error("Xd");var u=w?(q.getTimezoneOffset()-uXG(w,q))*6E4:0,y=u?new Date(q.getTime()+u):q,e=y;w&&y.getTimezoneOffset()!=q.getTimezoneOffset()&&(y=new Date(y.getTime()+(y.getTimezoneOffset()-q.getTimezoneOffset())*6E4),e=new Date(q.getTime()+(u+(u>0?-864E5:864E5))));u=[];for(var t=0;t<this.patternParts_.length;++t){var X=this.patternParts_[t].text;1==this.patternParts_[t].type?u.push(tNF(this,X,q,y,e,w)):u.push(X)}return u.join("")};
var yra=function(q,w){if(w<4)var u=q.JSC$9209_dateTimeSymbols_.DATEFORMATS[w];else if(w<8)u=q.JSC$9209_dateTimeSymbols_.TIMEFORMATS[w-4];else if(w<12)u=q.JSC$9209_dateTimeSymbols_.DATETIMEFORMATS[w-8],u=u.replace("{1}",q.JSC$9209_dateTimeSymbols_.DATEFORMATS[w-8]),u=u.replace("{0}",q.JSC$9209_dateTimeSymbols_.TIMEFORMATS[w-8]);else if(w===12)u=q.JSC$9209_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(w===13)u=q.JSC$9209_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{yra(q,10);return}ejX(q,u)},Ye=function(q,w){w=String(w);
q=q.JSC$9209_dateTimeSymbols_||CV;if(q.ZERODIGIT!==void 0&&!LZy){for(var u=[],y=0;y<w.length;y++){var e=w.charCodeAt(y);u.push(48<=e&&e<=57?String.fromCharCode(q.ZERODIGIT+e-48):w.charAt(y))}w=u.join("")}return w},LZy=!1,MLy=!1,XQP=function(q,w,u,y){u=u.getFullYear();
u<=0&&y&&(u=1-u);return Ye(q,PA3(u,w))},PA3=function(q,w){w==2&&(q%=100);
q<0&&w++;return _.xf(q,w)},gQ=function(q){if(!(q.getHours&&q.getSeconds&&q.getMinutes))throw Error("Yd");
},FO$=function(q,w){gQ(w);
w=bM(w);return q.JSC$9209_dateTimeSymbols_.AMPMS[w>=12&&w<24?1:0]},tNF=function(q,w,u,y,e,t){var X=w.length;
switch(w.charAt(0)){case "G":return u=y.getFullYear()>0?1:0,X>=4?q.JSC$9209_dateTimeSymbols_.ERANAMES[u]:q.JSC$9209_dateTimeSymbols_.ERAS[u];case "y":return XQP(q,X,y,!0);case "Y":return u=(new Date(n1k(y.getFullYear(),y.getMonth(),y.getDate(),q.JSC$9209_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,q.JSC$9209_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),X==2&&(u%=100),Ye(q,PA3(u,X));case "u":return XQP(q,X,y,!1);case "M":a:switch(u=y.getMonth(),X){case 5:X=q.JSC$9209_dateTimeSymbols_.NARROWMONTHS[u];break a;
case 4:X=q.JSC$9209_dateTimeSymbols_.MONTHS[u];break a;case 3:X=q.JSC$9209_dateTimeSymbols_.SHORTMONTHS[u];break a;default:X=Ye(q,_.xf(u+1,X))}return X;case "k":return gQ(e),Ye(q,_.xf(bM(e)||24,X));case "S":return Ye(q,(e.getMilliseconds()/1E3).toFixed(Math.min(3,X)).slice(2)+(X>3?_.xf(0,X-3):""));case "E":return u=y.getDay(),X>=4?q.JSC$9209_dateTimeSymbols_.WEEKDAYS[u]:q.JSC$9209_dateTimeSymbols_.SHORTWEEKDAYS[u];case "a":return FO$(q,e);case "b":return FO$(q,e);case "B":return FO$(q,e);case "h":return gQ(e),
Ye(q,_.xf(bM(e)%12||12,X));case "K":return gQ(e),Ye(q,_.xf(bM(e)%12,X));case "H":return gQ(e),Ye(q,_.xf(bM(e),X));case "c":a:switch(u=y.getDay(),X){case 5:X=q.JSC$9209_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[u];break a;case 4:X=q.JSC$9209_dateTimeSymbols_.STANDALONEWEEKDAYS[u];break a;case 3:X=q.JSC$9209_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[u];break a;default:X=Ye(q,_.xf(u,1))}return X;case "L":a:switch(u=y.getMonth(),X){case 5:X=q.JSC$9209_dateTimeSymbols_.STANDALONENARROWMONTHS[u];break a;
case 4:X=q.JSC$9209_dateTimeSymbols_.STANDALONEMONTHS[u];break a;case 3:X=q.JSC$9209_dateTimeSymbols_.STANDALONESHORTMONTHS[u];break a;default:X=Ye(q,_.xf(u+1,X))}return X;case "Q":return u=Math.floor(y.getMonth()/3),X<4?q.JSC$9209_dateTimeSymbols_.SHORTQUARTERS[u]:q.JSC$9209_dateTimeSymbols_.QUARTERS[u];case "d":return Ye(q,_.xf(y.getDate(),X));case "m":return gQ(e),Ye(q,_.xf(e.getMinutes?e.getMinutes():0,X));case "s":return gQ(e),Ye(q,_.xf(e.getSeconds(),X));case "v":return(t||cQ(u.getTimezoneOffset())).timeZoneId_;
case "V":return q=t||cQ(u.getTimezoneOffset()),X<=2?q.timeZoneId_:wQx(q,u)>0?q.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?q.tzNamesExt_.DST_GENERIC_LOCATION:q.tzNamesExt_.DST_GENERIC_LOCATION:q.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?q.tzNamesExt_.STD_GENERIC_LOCATION:q.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return u=n1k(e.getFullYear(),e.getMonth(),e.getDate(),q.JSC$9209_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,q.JSC$9209_dateTimeSymbols_.FIRSTDAYOFWEEK),Ye(q,_.xf(Math.floor(Math.round((u-(new Date((new Date(u)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,X));case "z":return q=t||cQ(u.getTimezoneOffset()),X<4?q.tzNames_[wQx(q,u)>0?2:0]:q.tzNames_[wQx(q,u)>0?3:1];case "Z":return w=t||cQ(u.getTimezoneOffset()),X<4?(X=-uXG(w,u),q=[X<0?"-":"+"],X=Math.abs(X),q.push(_.xf(Math.floor(X/60)%100,2),_.xf(X%60,2)),X=q.join("")):X=Ye(q,q1r(uXG(w,u))),X;default:return""}};var Gar=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,nNT=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,Gpy=function(q){this.patternParts_=[];this.JSC$9218_dateTimeSymbols_=CV;if(typeof q=="number"){q>11&&(q=10);if(q<4)var w=this.JSC$9218_dateTimeSymbols_.DATEFORMATS[q];else q<8?w=this.JSC$9218_dateTimeSymbols_.TIMEFORMATS[q-4]:(w=this.JSC$9218_dateTimeSymbols_.DATETIMEFORMATS[q-8],w=w.replace("{1}",this.JSC$9218_dateTimeSymbols_.DATEFORMATS[q-8]),w=w.replace("{0}",this.JSC$9218_dateTimeSymbols_.TIMEFORMATS[q-
8]));HaP(this,w)}else HaP(this,q)},HaP=function(q,w){for(var u=!1,y="",e=0;e<w.length;e++){var t=w.charAt(e);
if(Gar.test(t))for(y.length>0&&(q.patternParts_.push({text:y,count:0,abutStart:!1,numeric:!1}),y=""),q.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});e<w.length-1&&w.charAt(e+1)==" ";)e++;else if(u)t=="'"?e+1<w.length&&w.charAt(e+1)=="'"?(y+="'",e++):u=!1:y+=t;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(t)>=0){y.length>0&&(q.patternParts_.push({text:y,count:0,abutStart:!1,numeric:!1}),y="");for(var X=w.charAt(e),G=e+1;G<w.length&&w.charAt(G)==X;)G++;X=G-e;X<=0?G=!1:(G="MydhHmsSDkK".indexOf(t),
G=G>0||G==0&&X<3);q.patternParts_.push({text:t,count:X,abutStart:!1,numeric:G});e+=X-1}else t=="'"?e+1<w.length&&w.charAt(e+1)=="'"?(y+="'",e++):u=!0:y+=t}y.length>0&&q.patternParts_.push({text:y,count:0,abutStart:!1,numeric:!1});w=!1;for(u=0;u<q.patternParts_.length;u++)q.patternParts_[u].numeric?!w&&u+1<q.patternParts_.length&&q.patternParts_[u+1].numeric&&(w=!0,q.patternParts_[u].abutStart=!0):w=!1};
Gpy.prototype.parse=function(q,w,u){var y=!1,e=!1;u&&(y=u.predictive||!1,e=u.validate||!1);if(y)for(u=0;u<this.patternParts_.length;u++){var t=this.patternParts_[u];if(t.count>0&&("abBhHkKm".indexOf(t.text.charAt(0))<0||t.count>2||t.abutStart))throw Error("Zd`"+t.text.charAt(0));}t=new WO3;u=[0];t.dayPeriodIndex=-1;for(var X=0;X<this.patternParts_.length&&!(y&&u[0]>=q.length);X++){if(this.patternParts_[X].count==0){a:{var G=q;var n=u,N=this.patternParts_[X],Q=y;if(N.text.match(Gar)!=null){if(N=n[0],
sO3(G,n),n[0]>N){G=!0;break a}}else{if(G.indexOf(N.text,n[0])==n[0]){n[0]+=N.text.length;G=!0;break a}if(Q&&N.text.indexOf(G.substring(n[0]))==0){n[0]+=G.length-n[0];G=!0;break a}}G=!1}if(G)continue;return 0}if(this.patternParts_[X].abutStart){a:{n=q;N=u;Q=X;var I=N[0],U=0;for(G=Q;G<this.patternParts_.length;G++){var d=this.patternParts_[G],V=d.count;if(V===0)break;if(G==Q&&(V-=U,U++,V==0)){G=0;break a}var J=G>Q&&d.numeric,a=N[0];if(!NGX(this,n,N,d,V,t,!1)||J&&N[0]-a<V)G=Q-1,N[0]=I}G-=Q}if(G<=0)return 0;
X+=G-1}else if(!NGX(this,q,u,this.patternParts_[X],0,t,y))return 0}a:{q=e;if(w==null)throw Error("$d");t.era!=void 0&&t.year!=void 0&&t.era==0&&t.year>0&&(t.year=-(t.year-1));t.year!=void 0&&w.setFullYear(t.year);y=w.getDate();w.setDate(1);t.month!=void 0&&w.setMonth(t.month);t.day!=void 0?w.setDate(t.day):(e=bW4(w.getFullYear(),w.getMonth()),w.setDate(y>e?e:y));typeof w.setHours==="function"&&(t.hours==void 0&&(t.hours=w.getHours()),t.hours<12&&(t.ampm!=void 0&&t.ampm>0?t.hours+=12:t.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(t.dayPeriodName)||["night1","night2"].includes(t.dayPeriodName)&&t.hours>=6)&&(t.hours+=12)),w.setHours(t.hours));typeof w.setMinutes==="function"&&t.minutes!=void 0&&w.setMinutes(t.minutes);typeof w.setSeconds==="function"&&t.seconds!=void 0&&w.setSeconds(t.seconds);typeof w.setMilliseconds==="function"&&t.milliseconds!=void 0&&w.setMilliseconds(t.milliseconds);if(q&&(t.year&&t.year!=w.getFullYear()||t.month&&t.month!=
w.getMonth()||t.day&&t.day!=w.getDate()||t.hours&&t.hours>=24||t.minutes&&t.minutes>=60||t.seconds&&t.seconds>=60||t.milliseconds&&t.milliseconds>=1E3))w=!1;else{t.tzOffset!=void 0&&w.setTime(w.getTime()+(t.tzOffset-w.getTimezoneOffset())*60*1E3);t.ambiguousYear&&(q=new Date,q.setFullYear(q.getFullYear()-80),w.getTime()<q.getTime()&&w.setFullYear(q.getFullYear()+100));if(t.dayOfWeek!=void 0)if(t.day==void 0)t=(7+t.dayOfWeek-w.getDay())%7,t>3&&(t-=7),q=w.getMonth(),w.setDate(w.getDate()+t),w.getMonth()!=
q&&w.setDate(w.getDate()+(t>0?-7:7));else if(t.dayOfWeek!=w.getDay()){w=!1;break a}w=!0}}return w?u[0]:0};
var NGX=function(q,w,u,y,e,t,X){sO3(w,u);if(y.numeric&&e>0&&u[0]+e>w.length)return!1;switch(y.text.charAt(0)){case "G":return Ez(w,u,[q.JSC$9218_dateTimeSymbols_.ERAS],function(G){return t.era=G}),!0;
case "M":case "L":return QOP(q,w,u,e,y,t);case "E":return Ez(w,u,[q.JSC$9218_dateTimeSymbols_.WEEKDAYS,q.JSC$9218_dateTimeSymbols_.SHORTWEEKDAYS],function(G){return t.dayOfWeek=G});
case "B":case "b":return e=[],q=[[].concat(q.JSC$9218_dateTimeSymbols_.AMPMS)],e.push("isAm"),e.push("isPm"),w=Ez(w,u,q,function(G){return t.dayPeriodIndex=G},X),t.dayPeriodName=e[t.dayPeriodIndex],X?w:!0;
case "a":return w=Ez(w,u,[q.JSC$9218_dateTimeSymbols_.AMPMS],function(G){return t.ampm=G},X),X?w:!0;
case "y":return IVX(q,w,u,y,e,t);case "Q":return Ez(w,u,[q.JSC$9218_dateTimeSymbols_.QUARTERS,q.JSC$9218_dateTimeSymbols_.SHORTQUARTERS],function(G){t.month=G*3;t.day=1});
case "d":return R8(q,w,u,y,e,function(G){t.day=G}),!0;
case "S":return iax(q,w,u,e,t);case "h":case "K":case "H":case "k":return w=R8(q,w,u,y,e,function(G){t.hours=y.text.charAt(0)==="h"&&G===12?0:G},X),X?w:!0;
case "m":return w=R8(q,w,u,y,e,function(G){t.minutes=G},X),X?w:!0;
case "s":return R8(q,w,u,y,e,function(G){t.seconds=G}),!0;
case "z":case "Z":case "v":return rrk(q,w,u,t);default:return!1}},IVX=function(q,w,u,y,e,t){var X=u[0];
e=cu(q,w,u,e);e===null&&(e=cu(q,w,u,0,!0));if(e===null)return!1;e>=0&&u[0]-X==2&&y.count==2?(q=e,w=(new Date).getFullYear()-80,u=w%100,t.ambiguousYear=q==u,q+=Math.floor(w/100)*100+(q<u?100:0),t.year=q):t.year=e;return!0},QOP=function(q,w,u,y,e,t){return e.numeric&&R8(q,w,u,e,y,function(X){t.month=X-1})?!0:Ez(w,u,[q.JSC$9218_dateTimeSymbols_.MONTHS,
q.JSC$9218_dateTimeSymbols_.STANDALONEMONTHS,q.JSC$9218_dateTimeSymbols_.SHORTMONTHS,q.JSC$9218_dateTimeSymbols_.STANDALONESHORTMONTHS],function(X){t.month=X})},iax=function(q,w,u,y,e){var t=u[0];
q=cu(q,w,u,y);if(q===null)return!1;u=u[0]-t;e.milliseconds=u<3?q*Math.pow(10,3-u):Math.round(q/Math.pow(10,u-3));return!0},rrk=function(q,w,u,y){w.indexOf("GMT",u[0])==u[0]&&(u[0]+=3);
if(u[0]>=w.length)return y.tzOffset=0,!0;var e=u[0],t=cu(q,w,u,0,!0);if(t===null)return!1;if(u[0]<w.length&&w.charAt(u[0])==":"){var X=t*60;u[0]++;t=cu(q,w,u,0);if(t===null)return!1;X+=t}else X=t,X=X<24&&u[0]-e<=3?X*60:X%100+X/100*60;y.tzOffset=-X;return!0},R8=function(q,w,u,y,e,t,X){X=X||!1;
var G=u[0];q=cu(q,w,u,e);if(q===null)return!1;if(X&&u[0]-G<y.count){if(u[0]<w.length)return!1;q*=Math.pow(10,y.count-(u[0]-G))}t(q);return!0},Ez=function(q,w,u,y,e){e=e||!1;
for(var t,X=0;X<u.length;X++){t=w;for(var G=u[X],n=e,N=0,Q=null,I=q.substring(t[0]).toLowerCase(),U=0;U<G.length;U++){var d=G[U].toLowerCase();if(n&&d.indexOf(I)==0){N=I.length;Q=U;break}G[U].length>N&&I.indexOf(d)==0&&(N=G[U].length,Q=U)}Q!==null&&(t[0]+=N);t=Q;if(t!==null)return y(t),!0}return!1},sO3=function(q,w){(q=q.substring(w[0]).match(nNT))&&(w[0]+=q[0].length)},cu=function(q,w,u,y,e){w=y>0?w.substring(0,u[0]+y):w;
e=e||!1;if(q.JSC$9218_dateTimeSymbols_.ZERODIGIT){y=[];for(var t=u[0];t<w.length;t++){var X=w.charCodeAt(t)-q.JSC$9218_dateTimeSymbols_.ZERODIGIT;y.push(0<=X&&X<=9?String.fromCharCode(X+48):w.charAt(t))}w=y.join("")}else w=w.substring(u[0]);q=w.match(new RegExp("^"+(e?"[+-]?":"")+"\\d+"));if(!q)return null;u[0]+=q[0].length;return parseInt(q[0],10)},WO3=function(){};
WO3.prototype.ambiguousYear=!1;_.Ut3={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 TGa={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"},CAG=TGa,dtZ=TGa;dtZ=CAG=TGa;var oNT,SM,jM,$X6,h3,Oa$;
_.gG=function(q,w,u,y){var e;if(e=w){a:if(w&&w.length===3){for(e=0;e<3;e++){var t=w[e];if(t<"A"||t>"Z"&&t<"a"||t>"z"){e=!1;break a}}e=!0}else e=!1;e=!e}if(e)throw new TypeError("ae");this.intlCurrencyCode_=w?w.toUpperCase():null;this.currencyStyle_=u||0;this.overrideNumberFormatSymbols_=y||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_=SM(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof q==="number")switch(q){case 1:h3(this,SM(this).DECIMAL_PATTERN);break;case 2:h3(this,SM(this).SCIENTIFIC_PATTERN);break;case 3:h3(this,SM(this).PERCENT_PATTERN);break;case 4:q=SM(this).CURRENCY_PATTERN;w=["0"];if(u=
vu[jM(this)]){u=u[0]&7;if(u>0)for(w.push("."),y=0;y<u;y++)w.push("0");q=q.replace(/0.00/g,w.join(""))}h3(this,q);break;case 5:Oa$(this,1);break;case 6:Oa$(this,2);break;default:throw Error("de");}else h3(this,q)};
oNT=!1;SM=function(q){return q.overrideNumberFormatSymbols_||(oNT?dtZ:CAG)};
jM=function(q){return q.intlCurrencyCode_||SM(q).DEF_CURRENCY_CODE};
$X6=function(q,w){if(w>308)throw Error("ce`"+w);q.maximumFractionDigits_=w;return q};
h3=function(q,w){var u=[0];q.positivePrefix_=VNk(q,w,u);for(var y=u[0],e=-1,t=0,X=0,G=0,n=-1,N=w.length,Q=!0;u[0]<N&&Q;u[0]++)switch(w.charAt(u[0])){case "#":X>0?G++:t++;n>=0&&e<0&&n++;break;case "0":if(G>0)throw Error("je`"+w);X++;n>=0&&e<0&&n++;break;case ",":n>0&&q.groupingArray_.push(n);n=0;break;case ".":if(e>=0)throw Error("ke`"+w);e=t+X+G;break;case "E":if(q.useExponentialNotation_)throw Error("le`"+w);q.useExponentialNotation_=!0;q.minExponentDigits_=0;u[0]+1<N&&w.charAt(u[0]+1)=="+"&&(u[0]++,
q.useSignForPositiveExponent_=!0);for(;u[0]+1<N&&w.charAt(u[0]+1)=="0";)u[0]++,q.minExponentDigits_++;if(t+X<1||q.minExponentDigits_<1)throw Error("me`"+w);Q=!1;break;default:u[0]--,Q=!1}X==0&&t>0&&e>=0&&(X=e,X==0&&X++,G=t-X,t=X-1,X=1);if(e<0&&G>0||e>=0&&(e<t||e>t+X)||n==0)throw Error("ne`"+w);G=t+X+G;q.maximumFractionDigits_=e>=0?G-e:0;e>=0&&(q.minimumFractionDigits_=t+X-e,q.minimumFractionDigits_<0&&(q.minimumFractionDigits_=0));q.minimumIntegerDigits_=(e>=0?e:G)-t;q.useExponentialNotation_&&(q.maximumIntegerDigits_=
t+q.minimumIntegerDigits_,q.maximumFractionDigits_==0&&q.minimumIntegerDigits_==0&&(q.minimumIntegerDigits_=1));q.groupingArray_.push(Math.max(0,n));q.decimalSeparatorAlwaysShown_=e==0||e==G;y=u[0]-y;q.positiveSuffix_=VNk(q,w,u);u[0]<w.length&&w.charAt(u[0])==";"?(u[0]++,q.multiplier_!=1&&(q.negativePercentSignExpected_=!0),q.negativePrefix_=VNk(q,w,u),u[0]+=y,q.negativeSuffix_=VNk(q,w,u)):(q.negativePrefix_+=q.positivePrefix_,q.negativeSuffix_+=q.positiveSuffix_)};
Oa$=function(q,w){q.compactStyle_=w;h3(q,SM(q).DECIMAL_PATTERN);q.minimumFractionDigits_=0;$X6(q,2);if(q.minimumFractionDigits_>0)throw Error("be");q.significantDigits_=2};
_.gG.prototype.parse=function(q,w){w=w||[0];if(this.compactStyle_!==0)throw Error("ee");q=q.replace(/ |\u202f/g,"\u00a0");var u=q.indexOf(this.positivePrefix_,w[0])==w[0],y=q.indexOf(this.negativePrefix_,w[0])==w[0];u&&y&&(this.positivePrefix_.length>this.negativePrefix_.length?y=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(u=!1));u?w[0]+=this.positivePrefix_.length:y&&(w[0]+=this.negativePrefix_.length);if(q.indexOf(SM(this).INFINITY,w[0])==w[0]){w[0]+=SM(this).INFINITY.length;var e=
Infinity}else{e=q;var t=!1,X=!1,G=!1,n=-1,N=1,Q=SM(this).DECIMAL_SEP,I=SM(this).GROUP_SEP,U=SM(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");I=I.replace(/\u202f/g,"\u00a0");for(var d="";w[0]<e.length;w[0]++){var V=e.charAt(w[0]),J=fV3(this,V);if(J>=0&&J<=9)d+=J,G=!0;else if(V==Q.charAt(0)){if(t||X)break;d+=".";t=!0}else if(V==I.charAt(0)&&("\u00a0"!=I.charAt(0)||w[0]+1<e.length&&fV3(this,e.charAt(w[0]+1))>=0)){if(t||X)break}else if(V==U.charAt(0)){if(X)break;d+="E";X=!0;n=w[0]}else if(V==
"+"||V=="-"){if(G&&n!=w[0]-1)break;d+=V}else if(this.multiplier_==1&&V==SM(this).PERCENT.charAt(0)){if(N!=1)break;N=100;if(G){w[0]++;break}}else if(this.multiplier_==1&&V==SM(this).PERMILL.charAt(0)){if(N!=1)break;N=1E3;if(G){w[0]++;break}}else break}this.multiplier_!=1&&(N=this.multiplier_);e=parseFloat(d)/N}if(u){if(q.indexOf(this.positiveSuffix_,w[0])!=w[0])return NaN;w[0]+=this.positiveSuffix_.length}else if(y){if(q.indexOf(this.negativeSuffix_,w[0])!=w[0])return NaN;w[0]+=this.negativeSuffix_.length}return y?
-e:e};
_.gG.prototype.format=function(q){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(q))return SM(this).NAN;var w=[];var u=q;if(this.compactStyle_==0)u=lM;else{u=Math.abs(u);var y=mtP(this,u<=1?0:ArG(u)).divisorBase;u=mtP(this,y+ArG(JrX(this,L1(u,-y)).intValue))}q=L1(q,-u.divisorBase);(y=q<0||q==0&&1/q<0)?u.negative_prefix?w.push(u.negative_prefix):(w.push(u.prefix),w.push(this.negativePrefix_)):(w.push(u.prefix),w.push(this.positivePrefix_));if(isFinite(q))if(q*=
y?-1:1,q*=this.multiplier_,this.useExponentialNotation_){var e=q;if(e==0)zjZ(this,e,this.minimumIntegerDigits_,w),aV3(this,0,w);else{var t=Math.floor(Math.log(e)/Math.log(10)+2E-15);e=L1(e,-t);var X=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(X=t%this.maximumIntegerDigits_,X<0&&(X=this.maximumIntegerDigits_+X),e=L1(e,X),t-=X,X=1):this.minimumIntegerDigits_<1?(t++,e=L1(e,-1)):(t-=this.minimumIntegerDigits_-1,e=L1(e,this.minimumIntegerDigits_-
1));zjZ(this,e,X,w);aV3(this,t,w)}}else zjZ(this,q,this.minimumIntegerDigits_,w);else w.push(SM(this).INFINITY);y?u.negative_suffix?w.push(u.negative_suffix):(isFinite(q)&&w.push(u.suffix),w.push(this.negativeSuffix_)):(isFinite(q)&&w.push(u.suffix),w.push(this.positiveSuffix_));return w.join("")};
var JrX=function(q,w){var u=L1(w,q.maximumFractionDigits_);q.significantDigits_>0&&(u=Dt6(u,q.significantDigits_,q.maximumFractionDigits_));u=Math.round(u);if(isFinite(u)){var y=Math.floor(L1(u,-q.maximumFractionDigits_));u=Math.floor(u-L1(y,q.maximumFractionDigits_));if(u<0||u>=L1(1,q.maximumFractionDigits_))y=Math.round(w),u=0}else y=w,u=0;return{intValue:y,fracValue:u}},zjZ=function(q,w,u,y){if(q.minimumFractionDigits_>q.maximumFractionDigits_)throw Error("ge");
y||(y=[]);w=JrX(q,w);var e=w.intValue,t=w.fracValue,X=q.minimumFractionDigits_>0||t>0||!1;w=q.minimumFractionDigits_;X&&(w=q.minimumFractionDigits_);for(var G="",n=e;n>1E20;)G="0"+G,n=Math.round(L1(n,-1));G=n+G;var N=SM(q).DECIMAL_SEP;n=SM(q).ZERO_DIGIT.codePointAt(0);var Q=G.length,I=0;if(e>0||u>0){for(e=Q;e<u;e++)y.push(String.fromCodePoint(n));if(q.groupingArray_.length>=2)for(u=1;u<q.groupingArray_.length;u++)I+=q.groupingArray_[u];u=Q-I;if(u>0){e=q.groupingArray_;I=Q=0;for(var U,d=SM(q).GROUP_SEP,
V=G.length,J=0;J<V;J++)if(y.push(String.fromCodePoint(n+Number(G.charAt(J)))),V-J>1)if(U=e[I],J<u){var a=u-J;(U===1||U>0&&a%U===1)&&y.push(d)}else I<e.length&&(J===u?I+=1:U===J-u-Q+1&&(y.push(d),Q+=U,I+=1))}else{u=G;G=q.groupingArray_;e=SM(q).GROUP_SEP;U=u.length;d=[];for(Q=G.length-1;Q>=0&&U>0;Q--){I=G[Q];for(V=0;V<I&&U-V-1>=0;V++)d.push(String.fromCodePoint(n+Number(u.charAt(U-V-1))));U-=I;U>0&&d.push(e)}y.push.apply(y,d.reverse())}}else X||y.push(String.fromCodePoint(n));(q.decimalSeparatorAlwaysShown_||
X)&&y.push(N);t=String(t);X=t.split("e+");X.length==2&&(t=String(Dt6(parseFloat(X[0]),q.significantDigits_,1)),t=t.replace(".",""),t+=(0,_.mvM)("0",parseInt(X[1],10)-t.length+1));q.maximumFractionDigits_+1>t.length&&(t="1"+(0,_.mvM)("0",q.maximumFractionDigits_-t.length)+t);for(q=t.length;t.charAt(q-1)=="0"&&q>w+1;)q--;for(w=1;w<q;w++)y.push(String.fromCodePoint(n+Number(t.charAt(w))))},aV3=function(q,w,u){u.push(SM(q).EXP_SYMBOL);
w<0?(w=-w,u.push(SM(q).MINUS_SIGN)):q.useSignForPositiveExponent_&&u.push(SM(q).PLUS_SIGN);w=""+w;for(var y=SM(q).ZERO_DIGIT,e=w.length;e<q.minExponentDigits_;e++)u.push(y);q=y.codePointAt(0)-Zax;for(y=0;y<w.length;y++)u.push(String.fromCodePoint(q+w.codePointAt(y)))},fV3=function(q,w){w=w.codePointAt(0);
if(48<=w&&w<58)return w-48;q=SM(q).ZERO_DIGIT.codePointAt(0);return q<=w&&w<q+10?w-q:-1},Zax="0".codePointAt(0),VNk=function(q,w,u){for(var y="",e=!1,t=w.length;u[0]<t;u[0]++){var X=w.charAt(u[0]);
if(X=="'")u[0]+1<t&&w.charAt(u[0]+1)=="'"?(u[0]++,y+="'"):e=!e;else if(e)y+=X;else switch(X){case "#":case "0":case ",":case ".":case ";":return y;case "\u00a4":if(u[0]+1<t&&w.charAt(u[0]+1)=="\u00a4")u[0]++,y+=jM(q);else switch(q.currencyStyle_){case 0:X=jM(q);y+=X in vu?vu[X][1]:X;break;case 2:X=jM(q);var G=vu[X];y+=G?X==G[1]?X:X+" "+G[1]:X;break;case 1:X=jM(q),y+=X in vu?vu[X][2]:X}break;case "%":if(!q.negativePercentSignExpected_&&q.multiplier_!=1)throw Error("he");if(q.negativePercentSignExpected_&&
q.multiplier_!=100)throw Error("ie");q.multiplier_=100;q.negativePercentSignExpected_=!1;y+=SM(q).PERCENT;break;case "\u2030":if(!q.negativePercentSignExpected_&&q.multiplier_!=1)throw Error("he");if(q.negativePercentSignExpected_&&q.multiplier_!=1E3)throw Error("ie");q.multiplier_=1E3;q.negativePercentSignExpected_=!1;y+=SM(q).PERMILL;break;default:y+=X}}return y},lM={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},mtP=function(q,w){q=q.compactStyle_==1?$e.COMPACT_DECIMAL_SHORT_PATTERN:$e.COMPACT_DECIMAL_LONG_PATTERN;q==null&&(q=$e.COMPACT_DECIMAL_SHORT_PATTERN);if(w<3)return lM;w=Math.min(14,w);var u=q[L1(1,w)];for(--w;!u&&w>=3;)u=q[L1(1,w)],w--;if(!u)return lM;u=u.other;var y=q="",e=u.indexOf(";");e>=0&&(u=u.substring(0,e),e=u.substring(e+1))&&(y=/([^0]*)(0+)(.*)/.exec(e),q=y[1],y=y[3]);return u&&u!="0"?(u=/([^0]*)(0+)(.*)/.exec(u))?{divisorBase:w+
1-(u[2].length-1),negative_prefix:q,negative_suffix:y,prefix:u[1],suffix:u[3]}:lM:lM},ArG=function(q){if(!isFinite(q))return q>0?q:0;
for(var w=0;(q/=10)>=1;)w++;return w},L1=function(q,w){if(!q||!isFinite(q)||w==0)return q;
q=String(q).split("e");return parseFloat(q[0]+"e"+(parseInt(q[1]||0,10)+w))},pQF=function(q,w){return q&&isFinite(q)?L1(Math.round(L1(q,w)),-w):q},Dt6=function(q,w,u){if(!q)return q;
w=w-ArG(q)-1;return w<-u?pQF(q,-u):pQF(q,w)};var $t3=function(q){return q%10==1&&q%100!=11?"one":q%10==2&&q%100!=12?"two":q%10==3&&q%100!=13?"few":"other"},vN$=$t3;
vN$=$t3;var baj;baj=function(q,w){var u=q|0;if(void 0===w){w=Math;var y=w.min,e=q+"",t=e.indexOf(".");w=y.call(w,t===-1?0:e.length-t-1,3)}y=Math.pow(10,w);q={v:w,f:(q*y|0)%y};return u==1&&q.v==0?"one":"other"};
_.hr=baj;_.hr=baj;var Y1r,gNx,ENP,cra,S13;_.Rjr=function(q){this.JSC$9261_pattern_=q;this.parsedPattern_=this.literals_=this.initialLiterals_=null;q=CAG;var w=$e;if(Y1r!==q||gNx!==w)Y1r=q,gNx=w,ENP=new _.gG(1);this.numberFormatter_=ENP};
Y1r=null;gNx=null;ENP=null;cra=RegExp("'([{}#].*?)'","g");S13=RegExp("''","g");
_.Rjr.prototype.format=function(q){if(this.JSC$9261_pattern_){this.initialLiterals_=[];var w=hj$(this,this.JSC$9261_pattern_);this.parsedPattern_=jOc(this,w);this.JSC$9261_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.qT(this.initialLiterals_),w=[],lVX(this,this.parsedPattern_,q,!1,w),q=w.join("");this.literals_.length>0;)q=q.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else q="";return q};
var lVX=function(q,w,u,y,e){for(var t=0;t<w.length;t++)switch(w[t].type){case 4:e.push(w[t].value);break;case 3:var X=w[t].value;var G=q,n=e,N=u[X];N===void 0?n.push("Undefined parameter - "+X):(G.literals_.push(N),n.push(G.buildPlaceholder_(G.literals_)));break;case 2:X=w[t].value;G=q;n=u;N=y;var Q=e,I=X.argumentIndex;n[I]===void 0?Q.push("Undefined parameter - "+I):(I=X[n[I]],I===void 0&&(I=X.other),lVX(G,I,n,N,Q));break;case 0:X=w[t].value;LOr(q,X,u,_.hr,y,e);break;case 1:X=w[t].value,LOr(q,X,
u,vN$,y,e)}},LOr=function(q,w,u,y,e,t){var X=w.argumentIndex,G=w.argumentOffset,n=+u[X];
isNaN(n)?t.push("Undefined or invalid parameter - "+X):(G=n-G,X=w[u[X]],X===void 0&&(y=y(Math.abs(G)),X=w[y],X===void 0&&(X=w.other)),w=[],lVX(q,X,u,e,w),u=w.join(""),e?t.push(u):(q=q.numberFormatter_.format(G),t.push(u.replace(/#/g,q))))},hj$=function(q,w){var u=q.initialLiterals_,y=q.buildPlaceholder_.bind(q);
w=w.replace(S13,function(){u.push("'");return y(u)});
return w=w.replace(cra,function(e,t){u.push(t);return y(u)})},MNT=function(q){var w=0,u=[],y=[],e=/[{}]/g;
e.lastIndex=0;for(var t;t=e.exec(q);){var X=t.index;t[0]=="}"?(u.pop(),u.length==0&&(t={type:1},t.value=q.substring(w,X),y.push(t),w=X+1)):(u.length==0&&(w=q.substring(w,X),w!=""&&y.push({type:0,value:w}),w=X+1),u.push("{"))}q=q.substring(w);q!=""&&y.push({type:0,value:q});return y},KOk=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,BG3=/^\s*(\w+)\s*,\s*selectordinal\s*,/,xt3=/^\s*(\w+)\s*,\s*select\s*,/,jOc=function(q,w){var u=[];
w=MNT(w);for(var y=0;y<w.length;y++){var e={};if(0==w[y].type)e.type=4,e.value=w[y].value;else if(1==w[y].type){var t=w[y].value;switch(KOk.test(t)?0:BG3.test(t)?1:xt3.test(t)?2:/^\s*\w+\s*/.test(t)?3:5){case 2:e.type=2;e.value=qPT(q,w[y].value);break;case 0:e.type=0;e.value=wMj(q,w[y].value);break;case 1:e.type=1;e.value=uTc(q,w[y].value);break;case 3:e.type=3,e.value=w[y].value}}u.push(e)}return u},qPT=function(q,w){var u="";
w=w.replace(xt3,function(G,n){u=n;return""});
var y={};y.argumentIndex=u;w=MNT(w);for(var e=0;e<w.length;){var t=w[e].value;e++;var X=void 0;1==w[e].type&&(X=jOc(q,w[e].value));y[t.replace(/\s/g,"")]=X;e++}return y},wMj=function(q,w){var u="",y=0;
w=w.replace(KOk,function(n,N,Q){u=N;Q&&(y=parseInt(Q,10));return""});
var e={};e.argumentIndex=u;e.argumentOffset=y;w=MNT(w);for(var t=0;t<w.length;){var X=w[t].value;t++;var G=void 0;1==w[t].type&&(G=jOc(q,w[t].value));e[X.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=G;t++}return e},uTc=function(q,w){var u="";
w=w.replace(BG3,function(G,n){u=n;return""});
var y={};y.argumentIndex=u;y.argumentOffset=0;w=MNT(w);for(var e=0;e<w.length;){var t=w[e].value;e++;var X=void 0;1==w[e].type&&(X=jOc(q,w[e].value));y[t.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=X;e++}return y};
_.Rjr.prototype.buildPlaceholder_=function(q){return"\ufddf_"+(q.length-1).toString(10)+"_"};var yec;
yec={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 xYy=function(){this.rdtfSymbols_=eMx||yec;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
xYy.prototype.format=function(q,w){a:{w=ktr(this,w);switch(this.style_){case 2:if(w.NARROW!=void 0){w=w.NARROW;break a}case 1:if(w.SHORT!=void 0){w=w.SHORT;break a}default:w=w.LONG;break a}w=void 0}if(!this.alwaysNumeric_&&w&&w.R&&w.R[""+q])q=w.R[""+q];else if(w){var u=Math.abs(q);q=(new _.Rjr("{N,plural,"+(q>0||q==0&&1/q==Infinity?w.F:w.P)+"}")).format({N:u})}else q="";return q};
var ktr=function(q,w){switch(w){default:case 0:return q.rdtfSymbols_.YEAR;case 1:return q.rdtfSymbols_.QUARTER;case 2:return q.rdtfSymbols_.MONTH;case 3:return q.rdtfSymbols_.WEEK;case 4:return q.rdtfSymbols_.DAY;case 5:return q.rdtfSymbols_.HOUR;case 6:return q.rdtfSymbols_.MINUTE;case 7:return q.rdtfSymbols_.SECOND}};var tQc=function(q,w,u,y,e,t,X,G){this.x0=q;this.y0=w;this.x1=u;this.y1=y;this.x2=e;this.y2=t;this.x3=X;this.y3=G};
tQc.prototype.clone=function(){return new tQc(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
tQc.prototype.equals=function(q){return this.x0==q.x0&&this.y0==q.y0&&this.x1==q.x1&&this.y1==q.y1&&this.x2==q.x2&&this.y2==q.y2&&this.x3==q.x3&&this.y3==q.y3};
var PpZ=function(q,w){if(w==0)return q.x0;if(w==1)return q.x3;var u=i6(q.x0,q.x1,w),y=i6(q.x1,q.x2,w);q=i6(q.x2,q.x3,w);u=i6(u,y,w);y=i6(y,q,w);return i6(u,y,w)},XMc=function(q,w){var u=(w-q.x0)/(q.x3-q.x0);
if(u<=0)return 0;if(u>=1)return 1;for(var y=0,e=1,t=0,X=0;X<8;X++){t=PpZ(q,u);var G=(PpZ(q,u+1E-6)-t)/1E-6;if(Math.abs(t-w)<1E-6)return u;if(Math.abs(G)<1E-6)break;else t<w?y=u:e=u,u-=(t-w)/G}for(X=0;Math.abs(t-w)>1E-6&&X<8;X++)t<w?(y=u,u=(u+e)/2):(e=u,u=(u+y)/2),t=PpZ(q,u);return u};var MA=function(){_.Q4.call(this);this.JSC$9282_name_="closure_frame"+F4G++;this.iframesForDisposal_=[];GtT[this.JSC$9282_name_]=this},K1;
_.w9(MA,_.Q4);var GtT={},F4G=0,nMX=function(q,w){var u=WX(q);_.mK3(w,function(y,e){Array.isArray(y)||(y=[y]);_.L4(y,function(t){t=u.JSC$7231_createDom("INPUT",{type:"hidden",name:e,value:t});q.appendChild(t)})})};
_.k=MA.prototype;_.k.JSC$9284_form_=null;_.k.JSC$9284_iframe_=null;_.k.iframeName_=null;_.k.nextIframeId_=0;_.k.JSC$9284_active_=!1;_.k.complete_=!1;_.k.success_=!1;_.k.lastContent_=null;_.k.JSC$9284_lastErrorCode_=0;_.k.iframeDisposalTimer_=null;
_.k.send=function(q,w,u,y){if(this.JSC$9284_active_)throw Error("oe");q=new _.M4(q);w=w?w.toUpperCase():"GET";u&&_.u5(q);K1||(K1=_.CO("FORM"),K1.acceptCharset="utf-8",u=K1.style,u.position="absolute",u.visibility="hidden",u.top=u.left="-10px",u.width=u.height="10px",u.overflow="hidden",document.body.appendChild(K1));this.JSC$9284_form_=K1;w=="GET"&&nMX(this.JSC$9284_form_,q.JSC$7931_queryData_);y&&nMX(this.JSC$9284_form_,y);u=q.toString();u=M77(u);y=this.JSC$9284_form_;u=_.ow(Ws(u));u!==void 0&&(y.action=
u);this.JSC$9284_form_.method=w;Hpc(this);W4r(this)};
_.k.abort=function(q){if(this.JSC$9284_active_){var w=Bu(this);if(w)if(WJ(w))w.removeAllListeners(void 0);else if(w=sj(w)){var u=0,y;for(y in w.listeners)for(var e=w.listeners[y].concat(),t=0;t<e.length;++t)UO(e[t])&&++u}this.success_=this.JSC$9284_active_=this.complete_=!1;this.JSC$9284_lastErrorCode_=q||7;this.dispatchEvent("abort");six(this)}};
_.k.disposeInternal=function(){this.JSC$9284_active_&&this.abort();MA.superClass_.disposeInternal.call(this);this.JSC$9284_iframe_&&NC$(this);W4r(this);this.JSC$9284_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9284_form_=null;this.JSC$9284_lastErrorCode_=0;delete GtT[this.JSC$9282_name_]};
_.k.isComplete=function(){return this.complete_};
_.k.isSuccess=function(){return this.success_};
_.k.isActive=function(){return this.JSC$9284_active_};
_.k.getResponseText=function(){return this.lastContent_};
_.k.getLastError=function(){return _.t9a(this.JSC$9284_lastErrorCode_)};
var Hpc=function(q){q.JSC$9284_active_=!0;q.complete_=!1;q.JSC$9284_lastErrorCode_=0;q.iframeName_=q.JSC$9282_name_+"_"+(q.nextIframeId_++).toString(36);q.JSC$9284_iframe_=WX(q.JSC$9284_form_).JSC$7231_createDom("IFRAME",{name:q.iframeName_,id:q.iframeName_});var w=q.JSC$9284_iframe_.style;w.visibility="hidden";w.width=w.height="10px";w.display="none";_.PS?w.marginTop=w.marginLeft="-10px":(w.position="absolute",w.top=w.left="-10px");WX(q.JSC$9284_form_).JSC$7229_document_.body.appendChild(q.JSC$9284_iframe_);
w=q.iframeName_+"_inner";var u=KuF(q.JSC$9284_iframe_);if(document.baseURI){var y=Xu(w);y='<head><base href="'+Xu(document.baseURI)+'"></head><body><iframe id="'+y+'" name="'+y+'"></iframe>';y=mx(y)}else y=Xu(w),y=mx('<body><iframe id="'+y+'" name="'+y+'"></iframe>');u.write(Aa(y));_.dL(u.getElementById(w),"load",q.onIframeLoaded_,!1,q);y=T9("TEXTAREA",q.JSC$9284_form_);for(var e=0,t=y.length;e<t;e++){var X=y[e].value;ycT(y[e])!=X&&(_.At(y[e],X),y[e].value=X)}y=u.importNode(q.JSC$9284_form_,!0);y.target=
w;y.action=q.JSC$9284_form_.action;u.body.appendChild(y);e=T9("SELECT",q.JSC$9284_form_);t=T9("SELECT",y);X=0;for(var G=e.length;X<G;X++)for(var n=T9("OPTION",e[X]),N=T9("OPTION",t[X]),Q=0,I=n.length;Q<I;Q++)N[Q].selected=n[Q].selected;e=T9("INPUT",q.JSC$9284_form_);t=T9("INPUT",y);X=0;for(G=e.length;X<G;X++)if(e[X].type=="file"&&e[X].value!=t[X].value){q.JSC$9284_form_.target=w;y=q.JSC$9284_form_;break}try{q.errorHandled_=!1,y.submit(),u.close(),_.tv&&setTimeout(q.testForFirefoxSilentError_.bind(q),
250)}catch(U){_.NF(u.getElementById(w),"load",q.onIframeLoaded_,!1,q),u.close(),xe(q,2)}};
MA.prototype.onIframeLoaded_=function(){_.NF(Bu(this),"load",this.onIframeLoaded_,!1,this);try{var q=this.JSC$9284_iframe_?KuF(Bu(this)):null;this.complete_=!0;this.JSC$9284_active_=!1;try{var w=q.body;this.lastContent_=w.textContent||w.innerText}catch(e){var u=1}var y;u||typeof this.errorChecker_!="function"||(y=this.errorChecker_(q))&&(u=4);u?xe(this,u):(this.success_=!0,this.JSC$9284_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),six(this))}catch(e){xe(this,1)}};
var xe=function(q,w){q.errorHandled_||(q.success_=!1,q.JSC$9284_active_=!1,q.complete_=!0,q.JSC$9284_lastErrorCode_=w,q.dispatchEvent("complete"),q.dispatchEvent("error"),six(q),q.errorHandled_=!0)},six=function(q){NC$(q);
W4r(q);q.JSC$9284_form_=null;q.dispatchEvent("ready")},NC$=function(q){var w=q.JSC$9284_iframe_;
w&&(w.onreadystatechange=null,w.onload=null,w.onerror=null,q.iframesForDisposal_.push(w));q.iframeDisposalTimer_&&(clearTimeout(q.iframeDisposalTimer_),q.iframeDisposalTimer_=null);_.tv?q.iframeDisposalTimer_=setTimeout(q.disposeIframes_.bind(q),2E3):q.disposeIframes_();q.JSC$9284_iframe_=null;q.iframeName_=null};
MA.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var q=this.iframesForDisposal_.pop();_.UN(q)}};
var W4r=function(q){q.JSC$9284_form_&&q.JSC$9284_form_==K1&&_.oJ(q.JSC$9284_form_)},Bu=function(q){return q.JSC$9284_iframe_?KuF(q.JSC$9284_iframe_).getElementById(q.iframeName_+"_inner"):null};
MA.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9284_active_){var q=this.JSC$9284_iframe_?KuF(Bu(this)):null;q&&!Aw(q,"documentUri")?(_.NF(Bu(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?xe(this,3):xe(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.qs=function(q){return q=="\r"||q=="\n"||q==" "||q=="\t"};var QiT;_.wo=function(q){this.errorMessage_=null;this.result_=[];this.JSC$9286_buffer_="";this.stack_=[];this.JSC$9286_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!q||!q.deliverMessageAsRawString)};
QiT={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};_.wo.prototype.isInputValid=function(){return this.streamState_!=3};
_.wo.prototype.done=function(){return this.streamState_===2};
var uG=function(q,w,u){q.streamState_=3;q.errorMessage_="The stream is broken @"+q.JSC$9286_pos_+"/"+u+". With input:\n"+w;throw Error(q.errorMessage_);};
_.wo.prototype.acceptsBinaryInput=function(){return!1};
_.wo.prototype.parse=function(q){function w(){for(;U<q.length;)if(_.qs(q[U]))U++,t.JSC$9286_pos_++;else break;return U<N}
function u(){for(var V;;){V=q[U++];if(!V)break;t.JSC$9286_pos_++;switch(t.state_){case n.INIT:V==="{"?t.state_=n.OBJECT_OPEN:V==="["?t.state_=n.ARRAY_OPEN:_.qs(V)||uG(t,q,U);continue;case n.KEY_START:case n.OBJECT_OPEN:if(_.qs(V))continue;if(t.state_===n.KEY_START)X.push(n.KEY_END);else if(V==="}"){e("{}");t.state_=y();continue}else X.push(n.OBJECT_END);V==='"'?t.state_=n.STRING:uG(t,q,U);continue;case n.KEY_END:case n.OBJECT_END:if(_.qs(V))continue;V===":"?(t.state_===n.OBJECT_END&&(X.push(n.OBJECT_END),
t.depth_++),t.state_=n.VALUE):V==="}"?(t.depth_--,e(),t.state_=y()):V===","?(t.state_===n.OBJECT_END&&X.push(n.OBJECT_END),t.state_=n.KEY_START):uG(t,q,U);continue;case n.ARRAY_OPEN:case n.VALUE:if(_.qs(V))continue;if(t.state_===n.ARRAY_OPEN)if(t.depth_++,t.state_=n.VALUE,V==="]"){t.depth_--;if(t.depth_===0){t.state_=n.ARRAY_END;return}e("[]");t.state_=y();continue}else X.push(n.ARRAY_END);V==='"'?t.state_=n.STRING:V==="{"?t.state_=n.OBJECT_OPEN:V==="["?t.state_=n.ARRAY_OPEN:V==="t"?t.state_=n.TRUE1:
V==="f"?t.state_=n.FALSE1:V==="n"?t.state_=n.NULL1:V!=="-"&&("0123456789".indexOf(V)!==-1?t.state_=n.NUM_DIGIT:uG(t,q,U));continue;case n.ARRAY_END:if(V===",")X.push(n.ARRAY_END),t.state_=n.VALUE,t.depth_===1&&(I=U);else if(V==="]"){t.depth_--;if(t.depth_===0)return;e();t.state_=y()}else if(_.qs(V))continue;else uG(t,q,U);continue;case n.STRING:var J=U;a:for(;;){for(;t.unicodeCount_>0;)if(V=q[U++],t.unicodeCount_===4?t.unicodeCount_=0:t.unicodeCount_++,!V)break a;if(V==='"'&&!t.slashed_){t.state_=
y();break}if(V==="\\"&&!t.slashed_&&(t.slashed_=!0,V=q[U++],!V))break;if(t.slashed_)if(t.slashed_=!1,V==="u"&&(t.unicodeCount_=1),V=q[U++])continue;else break;G.lastIndex=U;V=G.exec(q);if(!V){U=q.length+1;break}U=V.index+1;V=q[V.index];if(!V)break}t.JSC$9286_pos_+=U-J;continue;case n.TRUE1:if(!V)continue;V==="r"?t.state_=n.TRUE2:uG(t,q,U);continue;case n.TRUE2:if(!V)continue;V==="u"?t.state_=n.TRUE3:uG(t,q,U);continue;case n.TRUE3:if(!V)continue;V==="e"?t.state_=y():uG(t,q,U);continue;case n.FALSE1:if(!V)continue;
V==="a"?t.state_=n.FALSE2:uG(t,q,U);continue;case n.FALSE2:if(!V)continue;V==="l"?t.state_=n.FALSE3:uG(t,q,U);continue;case n.FALSE3:if(!V)continue;V==="s"?t.state_=n.FALSE4:uG(t,q,U);continue;case n.FALSE4:if(!V)continue;V==="e"?t.state_=y():uG(t,q,U);continue;case n.NULL1:if(!V)continue;V==="u"?t.state_=n.NULL2:uG(t,q,U);continue;case n.NULL2:if(!V)continue;V==="l"?t.state_=n.NULL3:uG(t,q,U);continue;case n.NULL3:if(!V)continue;V==="l"?t.state_=y():uG(t,q,U);continue;case n.NUM_DECIMAL_POINT:V===
"."?t.state_=n.NUM_DIGIT:uG(t,q,U);continue;case n.NUM_DIGIT:if("0123456789.eE+-".indexOf(V)!==-1)continue;else U--,t.JSC$9286_pos_--,t.state_=y();continue;default:uG(t,q,U)}}}
function y(){var V=X.pop();return V!=null?V:n.VALUE}
function e(V){t.depth_>1||(V||(V=I===-1?t.JSC$9286_buffer_+q.substring(Q,U):q.substring(I,U)),t.deliverMessageAsRawString_?t.result_.push(V):t.result_.push(JSON.parse(V)),I=U)}
for(var t=this,X=t.stack_,G=t.stringInputPattern_,n=QiT,N=q.length,Q=0,I=-1,U=0;U<N;)switch(t.streamState_){case 3:return uG(t,q,U),null;case 2:return w()&&uG(t,q,U),null;case 0:if(w()){var d=q[U++];t.JSC$9286_pos_++;if(d==="["){t.streamState_=1;Q=U;t.state_=n.ARRAY_OPEN;continue}else uG(t,q,U)}return null;case 1:return u(),t.depth_===0&&t.state_==n.ARRAY_END?(t.streamState_=2,t.JSC$9286_buffer_=q.substring(U)):t.JSC$9286_buffer_=I===-1?t.JSC$9286_buffer_+q.substring(Q):q.substring(I),t.result_.length>
0?(d=t.result_,t.result_=[],d):null}return null};_.w9(_.Xb,AG);Fb.prototype.getValue=function(){return this.JSC$9294_value_};
Fb.prototype.clone=function(){return new Fb(this.JSC$9294_key_,this.JSC$9294_value_)};var yc=function(q){this.nodes_=[];if(q)a:{if(q instanceof yc){var w=q.getKeys();q=q.getValues();if(this.getCount()<=0){for(var u=this.nodes_,y=0;y<w.length;y++)u.push(new Fb(w[y],q[y]));break a}}else w=_.db.getKeys(q),q=_.db.getValues(q);for(u=0;u<w.length;u++)this.insert(w[u],q[u])}};
_.k=yc.prototype;_.k.insert=function(q,w){var u=this.nodes_;u.push(new Fb(q,w));q=u.length-1;w=this.nodes_;for(u=w[q];q>0;){var y=q-1>>1;if(w[y].JSC$9294_key_>u.JSC$9294_key_)w[q]=w[y],q=y;else break}w[q]=u};
_.k.remove=function(){var q=this.nodes_,w=q.length,u=q[0];if(!(w<=0)){if(w==1)q.length=0;else{q[0]=q.pop();q=0;w=this.nodes_;for(var y=w.length,e=w[q];q<y>>1;){var t=q*2+1,X=q*2+2;t=X<y&&w[X].JSC$9294_key_<w[t].JSC$9294_key_?X:t;if(w[t].JSC$9294_key_>e.JSC$9294_key_)break;w[q]=w[t];q=t}w[q]=e}return u.getValue()}};
_.k.peek=function(){var q=this.nodes_;if(q.length!=0)return q[0].getValue()};
_.k.getValues=function(){for(var q=this.nodes_,w=[],u=q.length,y=0;y<u;y++)w.push(q[y].getValue());return w};
_.k.getKeys=function(){for(var q=this.nodes_,w=[],u=q.length,y=0;y<u;y++)w.push(q[y].JSC$9294_key_);return w};
_.k.containsValue=function(q){return this.nodes_.some(function(w){return w.getValue()==q})};
_.k.containsKey=function(q){return this.nodes_.some(function(w){return w.JSC$9294_key_==q})};
_.k.clone=function(){return new yc(this)};
_.k.getCount=function(){return this.nodes_.length};
_.k.isEmpty=function(){return this.nodes_.length===0};
_.k.clear=function(){this.nodes_.length=0};_.eh=function(q,w){this.JSC$9300_map_={};this.JSC$9300_keys_=[];this.version_=this.size=0;var u=arguments.length;if(u>1){if(u%2)throw Error("oa");for(var y=0;y<u;y+=2)this.set(arguments[y],arguments[y+1])}else q&&this.addAll(q)};
_.k=_.eh.prototype;_.k.getCount=function(){return this.size};
_.k.getValues=function(){k9(this);for(var q=[],w=0;w<this.JSC$9300_keys_.length;w++)q.push(this.JSC$9300_map_[this.JSC$9300_keys_[w]]);return q};
_.k.getKeys=function(){k9(this);return this.JSC$9300_keys_.concat()};
_.k.containsKey=function(q){return this.has(q)};
_.k.has=function(q){return tU(this.JSC$9300_map_,q)};
_.k.containsValue=function(q){for(var w=0;w<this.JSC$9300_keys_.length;w++){var u=this.JSC$9300_keys_[w];if(tU(this.JSC$9300_map_,u)&&this.JSC$9300_map_[u]==q)return!0}return!1};
_.k.equals=function(q,w){if(this===q)return!0;if(this.size!=q.getCount())return!1;w=w||Iu6;k9(this);for(var u,y=0;u=this.JSC$9300_keys_[y];y++)if(!w(this.get(u),q.get(u)))return!1;return!0};
var Iu6=function(q,w){return q===w};
_.eh.prototype.isEmpty=function(){return this.size==0};
_.eh.prototype.clear=function(){this.JSC$9300_map_={};this.version_=this.size=this.JSC$9300_keys_.length=0};
_.eh.prototype.remove=function(q){return this.delete(q)};
_.eh.prototype.delete=function(q){return tU(this.JSC$9300_map_,q)?(delete this.JSC$9300_map_[q],--this.size,this.version_++,this.JSC$9300_keys_.length>2*this.size&&k9(this),!0):!1};
var k9=function(q){if(q.size!=q.JSC$9300_keys_.length){for(var w=0,u=0;w<q.JSC$9300_keys_.length;){var y=q.JSC$9300_keys_[w];tU(q.JSC$9300_map_,y)&&(q.JSC$9300_keys_[u++]=y);w++}q.JSC$9300_keys_.length=u}if(q.size!=q.JSC$9300_keys_.length){w={};for(y=u=0;u<q.JSC$9300_keys_.length;){var e=q.JSC$9300_keys_[u];tU(w,e)||(q.JSC$9300_keys_[y++]=e,w[e]=1);u++}q.JSC$9300_keys_.length=y}};
_.k=_.eh.prototype;_.k.get=function(q,w){return tU(this.JSC$9300_map_,q)?this.JSC$9300_map_[q]:w};
_.k.set=function(q,w){tU(this.JSC$9300_map_,q)||(this.size+=1,this.JSC$9300_keys_.push(q),this.version_++);this.JSC$9300_map_[q]=w};
_.k.addAll=function(q){if(q instanceof _.eh)for(var w=q.getKeys(),u=0;u<w.length;u++)this.set(w[u],q.get(w[u]));else for(w in q)this.set(w,q[w])};
_.k.forEach=function(q,w){for(var u=this.getKeys(),y=0;y<u.length;y++){var e=u[y],t=this.get(e);q.call(w,t,e,this)}};
_.k.clone=function(){return new _.eh(this)};
_.k.transpose=function(){for(var q=new _.eh,w=0;w<this.JSC$9300_keys_.length;w++){var u=this.JSC$9300_keys_[w];q.set(this.JSC$9300_map_[u],u)}return q};
_.k.keys=function(){return S8T(this.__iterator__(!0)).toEs6()};
_.k.values=function(){return S8T(this.__iterator__(!1)).toEs6()};
_.k.entries=function(){var q=this;return eK3(this.keys(),function(w){return[w,q.get(w)]})};
_.k.__iterator__=function(q){k9(this);var w=0,u=this.version_,y=this,e=new uR;e.next=function(){if(u!=y.version_)throw Error("pe");if(w>=y.JSC$9300_keys_.length)return yB;var t=y.JSC$9300_keys_[w++];return eF(q?t:y.JSC$9300_map_[t])};
return e};
var tU=function(q,w){return Object.prototype.hasOwnProperty.call(q,w)};var rej=function(){this.JSC$9303_map_=new _.eh;this.JSC$9303_head_=new ipx("");this.JSC$9303_head_.next=this.JSC$9303_head_.prev=this.JSC$9303_head_},U_P=function(q,w){if(w=q.JSC$9303_map_.get(w))w.remove(),q.insert_(w);
return w};
_.k=rej.prototype;_.k.get=function(q,w){return(q=U_P(this,q))?q.value:w};
_.k.set=function(q,w){var u=U_P(this,q);u?u.value=w:(u=new ipx(q,w),this.JSC$9303_map_.set(q,u),this.insert_(u))};
_.k.peek=function(){return this.JSC$9303_head_.next.value};
_.k.shift=function(){return TCx(this,this.JSC$9303_head_.next)};
_.k.pop=function(){return TCx(this,this.JSC$9303_head_.prev)};
_.k.remove=function(q){return(q=this.JSC$9303_map_.get(q))?(this.removeNode(q),!0):!1};
_.k.removeNode=function(q){q.remove();this.JSC$9303_map_.remove(q.key)};
_.k.getCount=function(){return this.JSC$9303_map_.getCount()};
_.k.isEmpty=function(){return this.JSC$9303_map_.isEmpty()};
_.k.getKeys=function(){return this.map(function(q,w){return w})};
_.k.getValues=function(){return this.map(function(q){return q})};
_.k.contains=function(q){return this.some(function(w){return w==q})};
_.k.containsKey=function(q){return this.JSC$9303_map_.containsKey(q)};
_.k.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9303_head_.prev)};
_.k.forEach=function(q,w){for(var u=this.JSC$9303_head_.next;u!=this.JSC$9303_head_;u=u.next)q.call(w,u.value,u.key,this)};
_.k.map=function(q,w){for(var u=[],y=this.JSC$9303_head_.next;y!=this.JSC$9303_head_;y=y.next)u.push(q.call(w,y.value,y.key,this));return u};
_.k.some=function(q,w){for(var u=this.JSC$9303_head_.next;u!=this.JSC$9303_head_;u=u.next)if(q.call(w,u.value,u.key,this))return!0;return!1};
_.k.every=function(q,w){for(var u=this.JSC$9303_head_.next;u!=this.JSC$9303_head_;u=u.next)if(!q.call(w,u.value,u.key,this))return!1;return!0};
_.k.insert_=function(q){q.next=this.JSC$9303_head_.next;q.prev=this.JSC$9303_head_;this.JSC$9303_head_.next=q;for(q.next.prev=q;this.getCount()>100;)this.removeNode(this.JSC$9303_head_.prev)};
var TCx=function(q,w){q.JSC$9303_head_!=w&&q.removeNode(w);return w.value},ipx=function(q,w){this.key=q;
this.value=w};
ipx.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var Cp3=function(){yc.apply(this,arguments)};
_.O(Cp3,yc);Cp3.prototype.enqueue=function(q,w){this.insert(q,w)};var d_3=function(){var q=Error();q.name="SecurityError";throw q;},XKJ=function(){return{get opener(){return null},
get closed(){return!0},get location(){d_3()},get document(){d_3()},postMessage:function(){},
close:function(){},
focus:function(){}}};var fzo={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 JIy={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 OpT={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(JIy).join("|");var oMa=function(){function q(G){G.substr(-1)!==";"&&(G+=";");return X(G)}
for(var w=Object.keys(OpT).sort(AIf),u=Object.keys(JIy).sort(AIf),y=0,e=0;y<u.length;y++)w[e]===u[y]?(u[y]+=";?",e++):u[y]+=";";var t=new RegExp("&(?:"+u.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),X=zG4();return function(G){return String(G).replace(t,q)}}();/*

 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 VQk={};var fuT=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"),m_c=/[\\&]/,Ae$=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),JeZ=RegExp('[&<>"]',"g"),zMT=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),aur=function(q){return q.charCodeAt(0)===92?q.charAt(1):oMa(q)},D_X=function(q){return m_c.test(q)?q.replace(Ae$,aur):q},Zp$=function(q){try{var w,u="";
if(typeof e!=="string"){var y=e;var e=";/?:@&=+$,-_.!~*'()#"}typeof y==="undefined"&&(y=!0);var t,X=VQk[e];if(X)var G=X;else{X=VQk[e]=[];for(t=0;t<128;t++){var n=String.fromCharCode(t);/^[0-9a-z]$/i.test(n)?X.push(n):X.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2))}for(t=0;t<e.length;t++)X[e.charCodeAt(t)]=e[t];G=X}var N=0;for(w=q.length;N<w;N++){var Q=q.charCodeAt(N);if(y&&Q===37&&N+2<w&&/^[0-9a-f]{2}$/i.test(q.slice(N+1,N+3)))u+=q.slice(N,N+3),N+=2;else if(Q<128)u+=G[Q];else if(Q>=55296&&
Q<=57343){if(Q>=55296&&Q<=56319&&N+1<w){var I=q.charCodeAt(N+1);if(I>=56320&&I<=57343){u+=encodeURIComponent(q[N]+q[N+1]);N++;continue}}u+="%EF%BF%BD"}else u+=encodeURIComponent(q[N])}return u}catch(U){return q}},pMP=function(q){switch(q){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return q}},P8=function(q,w){return JeZ.test(q)?w?q.replace(zMT,pMP):q.replace(JeZ,pMP):q};/*

 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 XU;if(String.fromCodePoint)XU=function(q){try{return String.fromCodePoint(q)}catch(w){if(w instanceof RangeError)return String.fromCharCode(65533);throw w;}};
else{var $_3=String.fromCharCode,vMj=Math.floor;XU=function(){var q=[],w=-1,u=arguments.length;if(!u)return"";for(var y="";++w<u;){var e=Number(arguments[w]);if(!isFinite(e)||e<0||e>1114111||vMj(e)!==e)return String.fromCharCode(65533);if(e<=65535)q.push(e);else{e-=65536;var t=(e>>10)+55296;e=e%1024+56320;q.push(t,e)}if(w+1===u||q.length>16384)y+=$_3.apply(null,q),q.length=0}return y}};var bp3=function(q){this.root=this.current=q;this.entering=!0};
bp3.prototype.next=function(){var q=this.current,w=this.entering;if(q===null)return null;a:switch(q._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 u=!0;break a;default:u=!1}w&&u?q._firstChild?(this.current=q._firstChild,this.entering=!0):this.entering=!1:q===this.root?this.current=null:q._next===null?(this.current=
q._parent,this.entering=!1):(this.current=q._next,this.entering=!0);return{entering:w,node:q}};
var Wf=function(q,w){this._type=q;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=w;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};
Wf.prototype.appendChild=function(q){FU(q);q._parent=this;this._lastChild?(this._lastChild._next=q,q._prev=this._lastChild):this._firstChild=q;this._lastChild=q};
var FU=function(q){q._prev?q._prev._next=q._next:q._parent&&(q._parent._firstChild=q._next);q._next?q._next._prev=q._prev:q._parent&&(q._parent._lastChild=q._prev);q._parent=null;q._next=null;q._prev=null},YP3=function(q,w){FU(w);
w._next=q._next;w._next&&(w._next._prev=w);w._prev=q;q._next=w;w._parent=q._parent;w._next||(w._parent._lastChild=w)};
Wf.prototype.insertBefore=function(q){FU(q);q._prev=this._prev;q._prev&&(q._prev._next=q);q._next=this;this._prev=q;q._parent=this._parent;q._prev||(q._parent._firstChild=q)};
_.x$.Object.defineProperties(Wf.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(q){this._literal=q}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(q){this._destination=q}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(q){this._title=q}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(q){this._info=q}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(q){this._level=q}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(q){this._listData.type=q}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(q){this._listData.tight=q}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(q){this._listData.start=q}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(q){this._onEnter=q}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(q){this._onExit=q}}});var azo=/[ \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,
DLy={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 gMP=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]/),
EM3=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),RMG=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),ceG=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),SP3=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),hMT=/`+/,jir=/^`+/,luZ=/\.\.\./g,L4k=/--+/g,MQX=/^<([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])?)*)>/,
K4c=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,BCZ=/^ *(?:\n *)?/,x_6=/^[ \t\n\x0b\x0c\x0d]/,q6P=/[ \t\n\x0b\x0c\x0d]+/g,wj3=/^\s/,ujP=/ *$/,yMj=/^ */,ew$=/^ *(?:\n|$)/,kmF=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),tfT=/^[^\n`\[\]\\!<&*_'"]+/m,Gw=function(q){var w=new Wf("text");w._literal=q;return w},nH=function(q){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=q||{}};
nH.prototype.match=function(q){q=q.exec(this.subject.slice(this.pos));if(q===null)return null;this.pos+=q.index+q[0].length;return q[0]};
nH.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var H8=function(q){q.match(BCZ);return!0},PfT=function(q,w,u){var y=0;
var e=q.pos;if(w===39||w===34)y++,q.pos++;else for(;q.peek()===w;)y++,q.pos++;if(y===0)y=null;else{var t=e===0?"\n":q.subject.charAt(e-1);var X=q.peek();X=X===-1?"\n":XU(X);var G=wj3.test(X);X=gMP.test(X);var n=wj3.test(t);var N=gMP.test(t);t=!G&&!(X&&!n&&!N);G=!n&&!(N&&!G&&!X);w===95?(n=t&&(!G||N),X=G&&(!t||X)):(n=w===39||w===34?t&&!G:t,X=G);q.pos=e;y={numdelims:y,can_open:n,can_close:X}}if(!y)return!1;e=y.numdelims;X=q.pos;q.pos+=e;X=w===39?"\u2019":w===34?"\u201c":q.subject.slice(X,q.pos);X=Gw(X);
u.appendChild(X);q.delimiters={cc:w,numdelims:e,origdelims:e,node:X,previous:q.delimiters,next:null,can_open:y.can_open,can_close:y.can_close};q.delimiters.previous!==null&&(q.delimiters.previous.next=q.delimiters);return!0},XjP=function(q,w){w.previous!==null&&(w.previous.next=w.next);
w.next===null?q.delimiters=w.previous:w.next.previous=w.previous},FPk=function(q,w){var u,y,e=[],t=!1;
e[95]=w;e[42]=w;e[39]=w;e[34]=w;for(u=q.delimiters;u!==null&&u.previous!==w;)u=u.previous;for(;u!==null;){var X=u.cc;if(u.can_close){var G=u.previous;for(y=!1;G!==null&&G!==w&&G!==e[X];){t=(u.can_open||G.can_close)&&(G.origdelims+u.origdelims)%3===0;if(G.cc===u.cc&&G.can_open&&!t){y=!0;break}G=G.previous}var n=u;if(X===42||X===95)if(y){var N=u.numdelims>=2&&G.numdelims>=2?2:1;var Q=G.node;var I=u.node;G.numdelims-=N;u.numdelims-=N;Q._literal=Q._literal.slice(0,Q._literal.length-N);I._literal=I._literal.slice(0,
I._literal.length-N);var U=new Wf(N===1?"emph":"strong");for(N=Q._next;N&&N!==I;){var d=N._next;FU(N);U.appendChild(N);N=d}YP3(Q,U);N=G;d=u;N.next!==d&&(N.next=d,d.previous=N);G.numdelims===0&&(FU(Q),XjP(q,G));u.numdelims===0&&(FU(I),G=u.next,XjP(q,u),u=G)}else u=u.next;else X===39?(u.node._literal="\u2019",y&&(G.node._literal="\u2018"),u=u.next):X===34&&(u.node._literal="\u201d",y&&(G.node.literal="\u201c"),u=u.next);y||t||(e[X]=n.previous,n.can_open||XjP(q,n))}else u=u.next}for(;q.delimiters!==
null&&q.delimiters!==w;)XjP(q,q.delimiters)},GmF=function(q){q=q.match(EM3);
return q===null?null:D_X(q.substr(1,q.length-2))},nd3=function(q){var w=q.match(RMG);
if(w===null){w=q.pos;for(var u=0,y;(y=q.peek())!==-1;)if(y===92)q.pos+=1,q.peek()!==-1&&(q.pos+=1);else if(y===40)q.pos+=1,u+=1;else if(y===41)if(u<1)break;else q.pos+=1,--u;else if(x_6.exec(XU(y))!==null)break;else q.pos+=1;w=q.subject.substr(w,q.pos-w);return Zp$(D_X(w))}return Zp$(D_X(w.substr(1,w.length-2)))},HLX=function(q){q=q.match(kmF);
return q===null||q.length>1001?0:q.length},WP6=function(q,w,u,y){q.brackets!==null&&(q.brackets.bracketAfter=!0);
q.brackets={node:w,previous:q.brackets,previousDelimiter:q.delimiters,index:u,image:y,active:!0}},s96=function(q,w){var u;
return(u=q.match(tfT))?(q.options.smart?w.appendChild(Gw(u.replace(luZ,"\u2026").replace(L4k,function(y){var e=0,t=0;y.length%3===0?t=y.length/3:y.length%2===0?e=y.length/2:y.length%3===2?(e=1,t=(y.length-2)/3):(e=2,t=(y.length-4)/3);y="";var X;for(X=0;X<t;X++)y+="\u2014";for(X=0;X<e;X++)y+="\u2013";return y}))):w.appendChild(Gw(u)),!0):!1},NNX=function(q,w,u){q.subject=w;
q.pos=0;w=q.pos;var y=HLX(q);if(y===0)return 0;var e=q.subject.substr(0,y);if(q.peek()===58)q.pos++;else return q.pos=w,0;H8(q);y=nd3(q);if(y===null||y.length===0)return q.pos=w,0;var t=q.pos;H8(q);var X=GmF(q);X===null&&(X="",q.pos=t);var G=!0;q.match(ew$)===null&&(X===""?G=!1:(X="",q.pos=t,G=q.match(ew$)!==null));if(!G)return q.pos=w,0;e=ZCs(e);if(e==="")return q.pos=w,0;u[e]||(u[e]={destination:y,title:X});return q.pos-w},Q9G=function(q,w){var u,y=q.peek();
if(y===-1)return!1;switch(y){case 10:q.pos+=1;if((u=w._lastChild)&&u.type==="text"&&u._literal[u._literal.length-1]===" "){var e=u._literal[u._literal.length-2]===" ";u._literal=u._literal.replace(ujP,"");w.appendChild(new Wf(e?"linebreak":"softbreak"))}else w.appendChild(new Wf("softbreak"));q.match(yMj);u=!0;break;case 92:u=q.subject;q.pos+=1;q.peek()===10?(q.pos+=1,u=new Wf("linebreak"),w.appendChild(u)):ceG.test(u.charAt(q.pos))?(w.appendChild(Gw(u.charAt(q.pos))),q.pos+=1):w.appendChild(Gw("\\"));
u=!0;break;case 96:a:if(u=q.match(jir),u===null)u=!1;else{e=q.pos;for(var t;(t=q.match(hMT))!==null;)if(t===u){t=new Wf("code");t._literal=q.subject.slice(e,q.pos-u.length).trim().replace(q6P," ");w.appendChild(t);u=!0;break a}q.pos=e;w.appendChild(Gw(u));u=!0}break;case 42:case 95:u=PfT(q,y,w);break;case 39:case 34:u=q.options.smart&&PfT(q,y,w);break;case 91:u=q.pos;q.pos+=1;e=Gw("[");w.appendChild(e);WP6(q,e,u,!1);u=!0;break;case 33:u=q.pos;q.pos+=1;q.peek()===91?(q.pos+=1,e=Gw("!["),w.appendChild(e),
WP6(q,e,u+1,!0)):w.appendChild(Gw("!"));u=!0;break;case 93:var X,G=!1,n;q.pos+=1;var N=q.pos;e=q.brackets;if(e===null)w.appendChild(Gw("]"));else if(e.active){u=e.image;var Q=q.pos;q.peek()===40&&(q.pos++,H8(q)&&(t=nd3(q))!==null&&H8(q)&&(x_6.test(q.subject.charAt(q.pos-1))&&(X=GmF(q)),1)&&H8(q)&&q.peek()===41?(q.pos+=1,G=!0):q.pos=Q);if(!G){var I=q.pos,U=HLX(q);U>2?n=q.subject.slice(I,I+U):e.bracketAfter||(n=q.subject.slice(e.index,N));U===0&&(q.pos=Q);n&&(n=q.refmap[ZCs(n)])&&(t=n.destination,X=
n.title,G=!0)}if(G){N=new Wf(u?"image":"link");N._destination=t;N._title=X||"";for(t=e.node._next;t;)X=t._next,FU(t),N.appendChild(t),t=X;w.appendChild(N);FPk(q,e.previousDelimiter);q.brackets=q.brackets.previous;FU(e.node);if(!u)for(e=q.brackets;e!==null;)e.image||(e.active=!1),e=e.previous}else q.brackets=q.brackets.previous,q.pos=N,w.appendChild(Gw("]"))}else w.appendChild(Gw("]")),q.brackets=q.brackets.previous;u=!0;break;case 60:(u=q.match(MQX))?(u=u.slice(1,u.length-1),e=new Wf("link"),e._destination=
Zp$("mailto:"+u),e._title="",e.appendChild(Gw(u)),w.appendChild(e),u=!0):(u=q.match(K4c))?(u=u.slice(1,u.length-1),e=new Wf("link"),e._destination=Zp$(u),e._title="",e.appendChild(Gw(u)),w.appendChild(e),u=!0):u=!1;u||(u=q.match(fuT),u===null?u=!1:(e=new Wf("html_inline"),e._literal=u,w.appendChild(e),u=!0));break;case 38:(u=q.match(SP3))?(w.appendChild(Gw(oMa(u))),u=!0):u=!1;break;default:u=s96(q,w)}u||(q.pos+=1,w.appendChild(Gw(XU(y))));return!0};
nH.prototype.parseInlines=function(q){this.subject=q._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;Q9G(this,q););q._string_content=null;FPk(this,null)};
nH.prototype.parse=nH.prototype.parseInlines;var IMT=[/./,/^<(?: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")],iLP=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],rMZ=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,Uaa=/^[#`~*+_=<>0-9-\|]|\|/,TN6=/[^ \t\f\v\r\n]/,CfZ=/^[*+-]/,da$=/^(\d{1,9})([.)])/,OL$=/^#{1,6}(?:[ \t]+|$)/,odk=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,Vfc=/^(?:`{3,}|~{3,})(?= *$)/,fMZ=/^(?:=+|-+)[ \t]*$/,mar=/\r\n|\n|\r/,$Lo=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,vXM=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,AMP={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(q){return q!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(q,w){for(q=w._firstChild;q;){if(prH(q)&&q._next){w._listData.tight=!1;break}for(var u=q._firstChild;u;){if(prH(u)&&(q._next||u._next)){w._listData.tight=!1;break}u=u._next}q=q._next}},
canContain:function(q){return q==="item"},
acceptsLines:!1},block_quote:{continue:function(q){var w=q.currentLine;if(q.indented||nN(w,q.nextNonspace)!==62)return 1;W8(q);sl(q,1,!1);G6(nN(w,q.offset))&&sl(q,1,!0);return 0},
finalize:function(){},
canContain:function(q){return q!=="item"},
acceptsLines:!1},item:{continue:function(q,w){if(q.blank){if(w._firstChild==null)return 1;W8(q)}else if(q.indent>=w._listData.markerOffset+w._listData.padding)sl(q,w._listData.markerOffset+w._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(q){return q!=="item"&&!bCM(q)},
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(q,w){var u=q.currentLine,y=q.indent;if(w._isFenced){if((y=y<=3&&u.charAt(q.nextNonspace)===w._fenceChar&&u.slice(q.nextNonspace).match(Vfc))&&y[0].length>=w._fenceLength)return q.finalize(w,q.lineNumber),2;for(w=w._fenceOffset;w>0&&G6(nN(u,q.offset));)sl(q,1,!0),w--}else if(y>=4)sl(q,4,!0);else if(q.blank)W8(q);else return 1;return 0},
finalize:function(q,w){if(w._isFenced){var u=w._string_content,y=u.indexOf("\n");q=u.slice(0,y);u=u.slice(y+1);w.info=D_X(q.trim());w._literal=u}else w._literal=w._string_content.replace(/(\n *)+$/,"\n");w._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(q,w){return!q.blank||w._htmlBlockType!==6&&w._htmlBlockType!==7?0:1},
finalize:function(q,w){w._literal=w._string_content.replace(/(\n *)+$/,"");w._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(q){return q.blank?1:0},
finalize:function(q,w){for(var u,y=!1;nN(w._string_content,0)===91&&(u=NNX(q.inlineParser,w._string_content,q.refmap));)w._string_content=w._string_content.slice(u),y=!0;y&&!TN6.test(w._string_content)&&FU(w)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(q){return Hf(q.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(q){return q=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(q,w){if(!w._rowIsDelimiter){q=w._isHeader?"th":"td";for(var u=w._parent._tableColumns,y=w._string_content,e=0,t="",X,G=w._sourcepos[0][0];e<y.length;){switch(y[e]){case "|":X&&(X._string_content=t.trim(),t="",X=null,u--,u<=0&&(e=y.length));break;default:if(!X){X=new Wf(q,[[G,e],[G,e]]);var n=w._parent._columnAlignment,N=w._parent._tableColumns-u;n&&N<=n.length&&N>=0&&(X._alignment=n[N]);w.appendChild(X)}t+=y[e];X._sourcepos[1][1]=e}e++}X&&(X._string_content=t.trim());w._string_content=
""}},
canContain:function(q){return q!=="row"},
acceptsLines:!1}},JMT=[function(q){if(q.indented||nN(q.currentLine,q.nextNonspace)!==62)return 0;W8(q);sl(q,1,!1);G6(nN(q.currentLine,q.offset))&&sl(q,1,!0);Ns(q);q.addChild("block_quote",q.nextNonspace);return 1},
function(q){var w;if(!q.indented&&(w=q.currentLine.slice(q.nextNonspace).match(OL$))){W8(q);sl(q,w[0].length,!1);Ns(q);var u=q.addChild("heading",q.nextNonspace);u.level=w[0].trim().length;u._string_content=q.currentLine.slice(q.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");sl(q,q.currentLine.length-q.offset);return 2}return 0},
function(q){var w;if(!q.indented&&(w=q.currentLine.slice(q.nextNonspace).match(odk))){var u=w[0].length;Ns(q);var y=q.addChild("code_block",q.nextNonspace);y._isFenced=!0;y._fenceLength=u;y._fenceChar=w[0][0];y._fenceOffset=q.indent;W8(q);sl(q,u,!1);return 2}return 0},
function(q,w){if(!q.indented&&nN(q.currentLine,q.nextNonspace)===60){var u=q.currentLine.slice(q.nextNonspace),y;for(y=1;y<=7;y++)if(IMT[y].test(u)&&(y<7||w.type!=="paragraph"))return Ns(q),q.addChild("html_block",q.offset)._htmlBlockType=y,2}return 0},
function(q,w){var u;if(!q.indented&&w.type==="paragraph"&&(u=q.currentLine.slice(q.nextNonspace).match(fMZ))){Ns(q);var y=new Wf("heading",w.sourcepos);y.level=u[0][0]==="="?1:2;y._string_content=w._string_content;YP3(w,y);FU(w);q.tip=y;sl(q,q.currentLine.length-q.offset,!1);return 2}return 0},
function(q){return!q.indented&&rMZ.test(q.currentLine.slice(q.nextNonspace))?(Ns(q),q.addChild("thematic_break",q.nextNonspace),sl(q,q.currentLine.length-q.offset,!1),2):0},
function(q,w){var u,y;if(!(y=q.indented&&w.type!=="list")){a:{var e=w,t=q.currentLine.slice(q.nextNonspace);y={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:q.indent};if(u=t.match(CfZ))y.type="bullet",y.bulletChar=u[0][0];else{if(!(u=t.match(da$))||e.type==="paragraph"&&u[1]!=="1"){u=null;break a}y.type="ordered";y.start=parseInt(u[1],10);y.delimiter=u[2]}var X=nN(q.currentLine,q.nextNonspace+u[0].length);if(X!==-1&&X!==9&&X!==32||e.type==="paragraph"&&!q.currentLine.slice(q.nextNonspace+
u[0].length).match(TN6))u=null;else{W8(q);sl(q,u[0].length,!0);e=q.column;t=q.offset;do sl(q,1,!0),X=nN(q.currentLine,q.offset);while(q.column-e<5&&G6(X));X=nN(q.currentLine,q.offset)===-1;var G=q.column-e;G>=5||G<1||X?(y.padding=u[0].length+1,q.column=e,q.offset=t,G6(nN(q.currentLine,q.offset))&&sl(q,1,!0)):y.padding=u[0].length+G;u=y}}y=!u}if(y)return 0;Ns(q);(y=q.tip.type!=="list")||(w=w._listData,y=!(w.type===u.type&&w.delimiter===u.delimiter&&w.bulletChar===u.bulletChar));y&&(w=q.addChild("list",
q.nextNonspace),w._listData=u);w=q.addChild("item",q.nextNonspace);w._listData=u;return 1},
function(q){var w;return((w=q.options.shouldParseIndentAsCodeBlock)!=null?w:1)&&q.indented&&q.tip.type!=="paragraph"&&!q.blank?(sl(q,4,!0),Ns(q),q.addChild("code_block",q.offset),2):0},
function(q,w){var u=Hf(q.currentLine),y=Hf(q.lookahead);if(u!==0&&y<0&&Math.abs(u)==Math.abs(y)&&!bCM(w.type)){Ns(q);w=q.addChild("table",q.nextNonspace);w._tableRows=1;w._tableColumns=Math.abs(u);u=q.lookahead;if(vXM.test(u)){y=[];for(var e=0,t=!1,X=0,G=void 0;e<u.length;){var n=X>=3;switch(u[e]){case "-":X++;break;case "|":t&&(y.push(G),G=void 0,X=0);t=!0;break;case ":":G||n||(G="left"),!G&&n&&(G="right"),G==="left"&&n&&(G="center")}e++}u=y}else u=void 0;w._columnAlignment=u;w=q.addChild("row",
q.nextNonspace);w._isHeader=!0;sl(q,q.currentLine.length-q.offset,!1);w._string_content=q.currentLine;return 1}return 0},
function(q,w){if(w.type=="table"&&Hf(q.currentLine)!==0){Ns(q);var u=w;w=q.addChild("row",q.nextNonspace);Hf(q.currentLine)<0?w._rowIsDelimiter=!0:u._tableRows+=1;sl(q,q.currentLine.length-q.offset,!1);w._string_content=q.currentLine;return 2}return 0}],KdJ=function(){var q={shouldParseIndentAsCodeBlock:!1};
q=q===void 0?{}:q;this.lastMatchedContainer=this.doc=YI6();this.refmap={};this.lastLineLength=0;this.inlineParser=new nH(q);this.options=q;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=AMP;this.blockStarts=JMT},zw3=function(q){q.partiallyConsumedTab&&(q.offset+=1,q.tip._string_content+=" ".repeat(4-q.column%
4));
q.tip._string_content+=q.currentLine.slice(q.offset)+"\n"};
KdJ.prototype.addChild=function(q,w){for(;!this.blocks[this.tip.type].canContain(q);)this.finalize(this.tip,this.lineNumber-1);q=new Wf(q,[[this.lineNumber,w+1],[0,0]]);q._string_content="";this.tip.appendChild(q);return this.tip=q};
var Ns=function(q){if(!q.allClosed){for(;q.oldtip!==q.lastMatchedContainer;){var w=q.oldtip._parent;q.finalize(q.oldtip,q.lineNumber-1);q.oldtip=w}q.allClosed=!0}},sl=function(q,w,u){for(var y=q.currentLine,e,t;w>0&&(t=y[q.offset]);)t==="\t"?(e=4-q.column%4,u?(q.partiallyConsumedTab=e>w,e=e>w?w:e,q.column+=e,q.offset+=q.partiallyConsumedTab?0:1,w-=e):(q.partiallyConsumedTab=!1,q.column+=e,q.offset+=1,--w)):(q.partiallyConsumedTab=!1,q.offset+=1,q.column+=1,--w)},W8=function(q){q.offset=q.nextNonspace;
q.column=q.nextNonspaceColumn;q.partiallyConsumedTab=!1},aMr=function(q){for(var w=q.currentLine,u=q.offset,y=q.column,e;(e=w.charAt(u))!=="";)if(e===" ")u++,y++;
else if(e==="\t")u++,y+=4-y%4;else break;q.blank=e==="\n"||e==="\r"||e==="";q.nextNonspace=u;q.nextNonspaceColumn=y;q.indent=q.nextNonspaceColumn-q.column;q.indented=q.indent>=4};
KdJ.prototype.finalize=function(q,w){var u=q._parent;q._open=!1;q.sourcepos[1]=[w,this.lastLineLength];this.blocks[q.type].finalize(this,q);this.tip=u};
KdJ.prototype.parse=function(q){this.tip=this.doc=YI6();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!q)return this.doc;this.options.time&&console.time("preparing input");var w=q.split(mar),u=w.length;q.charCodeAt(q.length-1)===10&&--u;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(q=0;q<u;q++)a:{var y=void 0,e=w[q],t=w[q+1],X=!0,G=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;e.indexOf("\x00")!==-1&&(e=e.replace(/\0/g,"\ufffd"));this.currentLine=e;for(this.lookahead=t;(y=G._lastChild)&&y._open;){G=y;aMr(this);switch(this.blocks[G.type].continue(this,G)){case 0:break;case 1:X=!1;break;case 2:this.lastLineLength=e.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!X){G=G._parent;break}}this.allClosed=G===this.oldtip;this.lastMatchedContainer=
G;y=G.type!=="paragraph"&&AMP[G.type].acceptsLines;t=this.blockStarts;for(X=t.length;!y;){aMr(this);if(!this.indented&&!Uaa.test(e.slice(this.nextNonspace))){W8(this);break}for(var n=0;n<X;){var N=t[n](this,G);if(N===1){G=this.tip;break}else if(N===2){G=this.tip;y=!0;break}else n++}if(n===X){W8(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){Ns(this);this.blank&&G.lastChild&&(G.lastChild._lastLineBlank=!0);y=G.type;t=this.blank&&!(y==="block_quote"||y==="code_block"&&G._isFenced||
y==="item"&&!G._firstChild&&G.sourcepos[0][0]===this.lineNumber);for(X=G;X;)X._lastLineBlank=t,X=X._parent;this.blocks[y].acceptsLines?(zw3(this),y==="html_block"&&G._htmlBlockType>=1&&G._htmlBlockType<=5&&iLP[G._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(G,this.lineNumber)):this.offset<e.length&&!this.blank&&(this.addChild("paragraph",this.offset),W8(this),zw3(this))}else zw3(this);this.lastLineLength=e.length}for(;this.tip;)this.finalize(this.tip,u);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");e=new bp3(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;u=e.next();)w=u.node,q=w.type,u.entering||q!=="paragraph"&&q!=="heading"&&q!=="th"&&q!="td"||this.inlineParser.parse(w);this.options.time&&console.timeEnd("inline parsing");return this.doc};gXH.prototype.render=function(q){q=new bp3(q);var w;this.buffer="";for(this.lastOut="\n";w=q.next();){var u=w.node.type;if(this[u])this[u](w.node,w.entering)}return this.buffer};
gXH.prototype.out=function(q){Qc(this,q)};
var Qc=function(q,w){q.buffer+=w;q.lastOut=w};
gXH.prototype.cr=function(){this.lastOut!=="\n"&&Qc(this,"\n")};var Dax=/^javascript:|vbscript:|file:|data:/i,ZLx=/^data:image\/(?:png|gif|jpeg|webp)/i,pjk=function(q){return Dax.test(q)&&!ZLx.test(q)};
sM.prototype=Object.create(gXH.prototype);_.k=sM.prototype;_.k.text=function(q){this.out(q.literal)};
_.k.html_inline=function(q){this.options.safe?Qc(this,"\x3c!-- raw HTML omitted --\x3e"):Qc(this,q.literal)};
_.k.html_block=function(q){this.cr();this.options.safe?Qc(this,"\x3c!-- raw HTML omitted --\x3e"):Qc(this,q.literal);this.cr()};
_.k.softbreak=function(){Qc(this,this.options.softbreak)};
_.k.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.k.link=function(q,w){var u=this.attrs(q);w?(this.options.safe&&pjk(q.destination)||u.push(["href",P8(q.destination,!0)]),q.title&&u.push(["title",P8(q.title,!0)]),this.tag("a",u)):this.tag("/a")};
_.k.image=function(q,w){w?(this.disableTags===0&&(this.options.safe&&pjk(q.destination)?Qc(this,'<img src="" alt="'):Qc(this,'<img src="'+P8(q.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(q.title&&Qc(this,'" title="'+P8(q.title,!0)),Qc(this,'" />')))};
_.k.emph=function(q,w){this.tag(w?"em":"/em")};
_.k.strong=function(q,w){this.tag(w?"strong":"/strong")};
_.k.paragraph=function(q,w){var u=q.parent.parent;q=this.attrs(q);u!==null&&u.type==="list"&&u.listTight||(w?(this.cr(),this.tag("p",q)):(this.tag("/p"),this.cr()))};
_.k.heading=function(q,w){var u="h"+q.level;q=this.attrs(q);w?(this.cr(),this.tag(u,q)):(this.tag("/"+u),this.cr())};
_.k.code=function(q){this.tag("code");this.out(q.literal);this.tag("/code")};
_.k.code_block=function(q){var w=q.info?q.info.split(/\s+/):[],u=this.attrs(q);w.length>0&&w[0].length>0&&u.push(["class","language-"+P8(w[0],!0)]);this.cr();this.tag("pre");this.tag("code",u);this.out(q.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.k.thematic_break=function(q){q=this.attrs(q);this.cr();this.tag("hr",q,!0);this.cr()};
_.k.block_quote=function(q,w){q=this.attrs(q);w?(this.cr(),this.tag("blockquote",q)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.k.list=function(q,w){var u=q.listType==="bullet"?"ul":"ol",y=this.attrs(q);w?(q=q.listStart,q!==null&&q!==1&&y.push(["start",q.toString()]),this.cr(),this.tag(u,y)):(this.cr(),this.tag("/"+u));this.cr()};
_.k.item=function(q,w){q=this.attrs(q);w?this.tag("li",q):(this.tag("/li"),this.cr())};
_.k.custom_inline=function(q,w){w&&q.onEnter?Qc(this,q.onEnter):!w&&q.onExit&&Qc(this,q.onExit)};
_.k.custom_block=function(q,w){this.cr();w&&q.onEnter?Qc(this,q.onEnter):!w&&q.onExit&&Qc(this,q.onExit);this.cr()};
_.k.table=function(q,w){q=this.attrs(q);w?(this.cr(),this.tag("table",q)):(this.tag("/table"),this.cr())};
_.k.row=function(q,w){q._rowIsDelimiter||(q=this.attrs(q),w?this.tag("tr",q):this.tag("/tr"))};
_.k.td=function(q,w){var u=this.attrs(q);q._alignment&&u.push(["align",q._alignment]);w?this.tag("td",u):this.tag("/td")};
_.k.th=function(q,w){var u=this.attrs(q);q._alignment&&u.push(["align",q._alignment]);w?this.tag("th",u):this.tag("/th")};
_.k.out=function(q){Qc(this,P8(q,!1))};
_.k.tag=function(q,w,u){if(!(this.disableTags>0)){this.buffer+="<"+q;if(w&&w.length>0){q=0;for(var y;(y=w[q])!==void 0;)this.buffer+=" "+y[0]+'="'+y[1]+'"',q++}u&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.k.attrs=function(q){var w=[];this.options.sourcepos&&(q=q.sourcepos)&&w.push(["data-sourcepos",String(q[0][0])+":"+String(q[0][1])+"-"+String(q[1][0])+":"+String(q[1][1])]);return w};
sM.prototype.text=sM.prototype.text;sM.prototype.html_inline=sM.prototype.html_inline;sM.prototype.html_block=sM.prototype.html_block;sM.prototype.softbreak=sM.prototype.softbreak;sM.prototype.linebreak=sM.prototype.linebreak;sM.prototype.link=sM.prototype.link;sM.prototype.image=sM.prototype.image;sM.prototype.emph=sM.prototype.emph;sM.prototype.strong=sM.prototype.strong;sM.prototype.paragraph=sM.prototype.paragraph;sM.prototype.heading=sM.prototype.heading;sM.prototype.code=sM.prototype.code;
sM.prototype.code_block=sM.prototype.code_block;sM.prototype.thematic_break=sM.prototype.thematic_break;sM.prototype.block_quote=sM.prototype.block_quote;sM.prototype.list=sM.prototype.list;sM.prototype.item=sM.prototype.item;sM.prototype.custom_inline=sM.prototype.custom_inline;sM.prototype.custom_block=sM.prototype.custom_block;sM.prototype.table=sM.prototype.table;sM.prototype.row=sM.prototype.row;sM.prototype.td=sM.prototype.td;sM.prototype.th=sM.prototype.th;sM.prototype.out=sM.prototype.out;
sM.prototype.tag=sM.prototype.tag;sM.prototype.attrs=sM.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 $ax,vdG,naM;(function(){function q(z,m){return z<m?-1:z>m?1:z>=m?0:NaN}
function w(z){return function(m,p){return q(z(m),p)}}
function u(){for(var z=0,m=arguments.length,p={},L;z<m;++z){if(!(L=arguments[z]+"")||L in p)throw Error("re`"+L);p[L]=[]}return new y(p)}
function y(z){this._=z}
function e(z,m){return z.trim().split(/^|\s+/).map(function(p){var L="",kJ=p.indexOf(".");kJ>=0&&(L=p.slice(kJ+1),p=p.slice(0,kJ));if(p&&!m.hasOwnProperty(p))throw Error("se`"+p);return{type:p,name:L}})}
function t(z,m,p){for(var L=0,kJ=z.length;L<kJ;++L)if(z[L].name===m){z[L]=DL4;z=z.slice(0,L).concat(z.slice(L+1));break}p!=null&&z.push({name:m,value:p});return z}
function X(z){var m=z,p=m.indexOf(":");p>=0&&(m=z.slice(0,p))!=="xmlns"&&(z=z.slice(p+1));return gI.hasOwnProperty(m)?{space:gI[m],local:z}:z}
function G(z){return function(){var m=this.ownerDocument,p=this.namespaceURI;return p==="http://www.w3.org/1999/xhtml"&&m.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?m.createElement(z):m.createElementNS(p,z)}}
function n(z){return function(){return this.ownerDocument.createElementNS(z.space,z.local)}}
function N(z){z=X(z);return(z.local?n:G)(z)}
function Q(){}
function I(z){return z==null?Q:function(){return this.querySelector(z)}}
function U(z){return Array(z.length)}
function d(z,m){this.ownerDocument=z.ownerDocument;this.namespaceURI=z.namespaceURI;this._next=null;this._parent=z;this.__data__=m}
function V(z){return function(){return z}}
function J(z,m,p,L,kJ,n7){for(var Io=0,VM,xJ=m.length,L7=n7.length;Io<L7;++Io)(VM=m[Io])?(VM.__data__=n7[Io],L[Io]=VM):p[Io]=new d(z,n7[Io]);for(;Io<xJ;++Io)if(VM=m[Io])kJ[Io]=VM}
function a(z,m,p,L,kJ,n7,Io){var VM,xJ,L7={},wx=m.length,n$=n7.length,lP=Array(wx),WV;for(VM=0;VM<wx;++VM)if(xJ=m[VM])lP[VM]=WV="$"+Io.call(xJ,xJ.__data__,VM,m),WV in L7?kJ[VM]=xJ:L7[WV]=xJ;for(VM=0;VM<n$;++VM)WV="$"+Io.call(z,n7[VM],VM,n7),(xJ=L7[WV])?(L[VM]=xJ,xJ.__data__=n7[VM],L7[WV]=null):p[VM]=new d(z,n7[VM]);for(VM=0;VM<wx;++VM)(xJ=m[VM])&&L7[lP[VM]]===xJ&&(kJ[VM]=xJ)}
function b(z,m){return z<m?-1:z>m?1:z>=m?0:NaN}
function g(z){return function(){this.removeAttribute(z)}}
function l(z){return function(){this.removeAttributeNS(z.space,z.local)}}
function S(z,m){return function(){this.setAttribute(z,m)}}
function eH(z,m){return function(){this.setAttributeNS(z.space,z.local,m)}}
function x(z,m){return function(){var p=m.apply(this,arguments);p==null?this.removeAttribute(z):this.setAttribute(z,p)}}
function P4(z,m){return function(){var p=m.apply(this,arguments);p==null?this.removeAttributeNS(z.space,z.local):this.setAttributeNS(z.space,z.local,p)}}
function C7(z){return function(){this.style.removeProperty(z)}}
function mu(z,m,p){return function(){this.style.setProperty(z,m,p)}}
function Os(z,m,p){return function(){var L=m.apply(this,arguments);L==null?this.style.removeProperty(z):this.style.setProperty(z,L,p)}}
function YJ(z,m){return z.style.getPropertyValue(m)||(z.ownerDocument&&z.ownerDocument.defaultView||z.document&&z||z.defaultView).getComputedStyle(z,null).getPropertyValue(m)}
function ao(z){return function(){delete this[z]}}
function bc(z,m){return function(){this[z]=m}}
function Ro(z,m){return function(){var p=m.apply(this,arguments);p==null?delete this[z]:this[z]=p}}
function K7(){this.textContent=""}
function gx(z){return function(){this.textContent=z}}
function dx(z){return function(){var m=z.apply(this,arguments);this.textContent=m==null?"":m}}
function tc(){this.innerHTML=""}
function Fa(z){return function(){this.innerHTML=z}}
function eq(z){return function(){var m=z.apply(this,arguments);this.innerHTML=m==null?"":m}}
function Hk(){return null}
function W3(){var z=this.parentNode;z&&z.removeChild(this)}
function gV(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function Fl(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function C$(z,m,p){z=ZZ(z,m,p);return function(L){var kJ=L.relatedTarget;kJ&&(kJ===this||kJ.compareDocumentPosition(this)&8)||z.call(this,L)}}
function ZZ(z,m,p){return function(){z.call(this,this.__data__,m,p)}}
function EA(z){return z.trim().split(/^|\s+/).map(function(m){var p="",L=m.indexOf(".");L>=0&&(p=m.slice(L+1),m=m.slice(0,L));return{type:m,name:p}})}
function mj(z){return function(){var m=this.__on;if(m){for(var p=0,L=-1,kJ=m.length,n7;p<kJ;++p)(n7=m[p],z.type&&n7.type!==z.type||n7.name!==z.name)?m[++L]=n7:this.removeEventListener(n7.type,n7.listener,n7.capture);++L?m.length=L:delete this.__on}}}
function hc(z,m,p){var L=BMk.hasOwnProperty(z.type)?C$:ZZ;return function(kJ,n7,Io){kJ=this.__on;var VM;n7=L(m,n7,Io);if(kJ){Io=0;for(var xJ=kJ.length;Io<xJ;++Io)if((VM=kJ[Io]).type===z.type&&VM.name===z.name){this.removeEventListener(VM.type,VM.listener,VM.capture);this.addEventListener(VM.type,VM.listener=n7,VM.capture=p);VM.value=m;return}}this.addEventListener(z.type,n7,p);VM={type:z.type,name:z.name,value:m,listener:n7,capture:p};kJ?kJ.push(VM):this.__on=[VM]}}
function jR(z,m,p){var L=z.ownerDocument&&z.ownerDocument.defaultView||z.document&&z||z.defaultView,kJ=L.CustomEvent;typeof kJ==="function"?kJ=new kJ(m,p):(kJ=L.document.createEvent("Event"),p?(kJ.initEvent(m,p.bubbles,p.cancelable),kJ.detail=p.detail):kJ.initEvent(m,!1,!1));z.dispatchEvent(kJ)}
function QF(z,m){return function(){return jR(this,z,m)}}
function lc(z,m){return function(){return jR(this,z,m.apply(this,arguments))}}
function TG(z,m){this._groups=z;this._parents=m}
function G4(){return new TG([[document.documentElement]],ZCA)}
function OX(){this._="@"+(++prq).toString(36)}
function ij(z,m,p){z.prototype=m.prototype=p;p.constructor=z}
function nA(z,m){z=Object.create(z.prototype);for(var p in m)z[p]=m[p];return z}
function WT(){}
function RK(z){var m;z=(z+"").trim().toLowerCase();return(m=$LK.exec(z))?(m=parseInt(m[1],16),new qz(m>>8&15|m>>4&240,m>>4&15|m&240,(m&15)<<4|m&15,1)):(m=vXH.exec(z))?Uq(parseInt(m[1],16)):(m=bC6.exec(z))?new qz(m[1],m[2],m[3],1):(m=YIa.exec(z))?new qz(m[1]*255/100,m[2]*255/100,m[3]*255/100,1):(m=gXq.exec(z))?TC(m[1],m[2],m[3],m[4]):(m=EXm.exec(z))?TC(m[1]*255/100,m[2]*255/100,m[3]*255/100,m[4]):(m=RGq.exec(z))?IR(m[1],m[2]/100,m[3]/100,1):(m=cIH.exec(z))?IR(m[1],m[2]/100,m[3]/100,m[4]):xda.hasOwnProperty(z)?
Uq(xda[z]):z==="transparent"?new qz(NaN,NaN,NaN,0):null}
function Uq(z){return new qz(z>>16&255,z>>8&255,z&255,1)}
function TC(z,m,p,L){L<=0&&(z=m=p=NaN);return new qz(z,m,p,L)}
function R6(z){z instanceof WT||(z=RK(z));if(!z)return new qz;z=z.rgb();return new qz(z.r,z.g,z.b,z.opacity)}
function mT(z,m,p,L){return arguments.length===1?R6(z):new qz(z,m,p,L==null?1:L)}
function qz(z,m,p,L){this.r=+z;this.g=+m;this.b=+p;this.opacity=+L}
function M6(z){z=Math.max(0,Math.min(255,Math.round(z)||0));return(z<16?"0":"")+z.toString(16)}
function IR(z,m,p,L){L<=0?z=m=p=NaN:p<=0||p>=1?z=m=NaN:m<=0&&(z=NaN);return new EZ(z,m,p,L)}
function W2(z){if(z instanceof EZ)return new EZ(z.h,z.s,z.l,z.opacity);z instanceof WT||(z=RK(z));if(!z)return new EZ;if(z instanceof EZ)return z;z=z.rgb();var m=z.r/255,p=z.g/255,L=z.b/255,kJ=Math.min(m,p,L),n7=Math.max(m,p,L),Io=NaN,VM=n7-kJ,xJ=(n7+kJ)/2;VM?(Io=m===n7?(p-L)/VM+(p<L)*6:p===n7?(L-m)/VM+2:(m-p)/VM+4,VM/=xJ<.5?n7+kJ:2-n7-kJ,Io*=60):VM=xJ>0&&xJ<1?0:Io;return new EZ(Io,VM,xJ,z.opacity)}
function iO(z,m,p,L){return arguments.length===1?W2(z):new EZ(z,m,p,L==null?1:L)}
function EZ(z,m,p,L){this.h=+z;this.s=+m;this.l=+p;this.opacity=+L}
function xm(z,m,p){return(z<60?m+(p-m)*z/60:z<180?p:z<240?m+(p-m)*(240-z)/60:m)*255}
function o2(z){if(z instanceof Us)return new Us(z.l,z.a,z.b,z.opacity);if(z instanceof rx){if(isNaN(z.h))return new Us(z.l,0,0,z.opacity);var m=z.h*qza;return new Us(z.l,Math.cos(m)*z.c,Math.sin(m)*z.c,z.opacity)}z instanceof qz||(z=R6(z));var p=k6(z.r),L=k6(z.g),kJ=k6(z.b);m=p7(.2225045*p+.7168786*L+.0606169*kJ);if(p===L&&L===kJ)var n7=p=m;else n7=p7((.4360747*p+.3850649*L+.1430804*kJ)/.96422),p=p7((.0139322*p+.0971045*L+.7141733*kJ)/.82521);return new Us(116*m-16,500*(n7-m),200*(m-p),z.opacity)}
function Us(z,m,p,L){this.l=+z;this.a=+m;this.b=+p;this.opacity=+L}
function p7(z){return z>SIV?Math.pow(z,1/3):z/wuP+uJx}
function Es(z){return z>e_?z*z*z:wuP*(z-uJx)}
function NT(z){return 255*(z<=.0031308?12.92*z:1.055*Math.pow(z,1/2.4)-.055)}
function k6(z){return(z/=255)<=.04045?z/12.92:Math.pow((z+.055)/1.055,2.4)}
function ma(z){if(z instanceof rx)return new rx(z.h,z.c,z.l,z.opacity);z instanceof Us||(z=o2(z));if(z.a===0&&z.b===0)return new rx(NaN,0,z.l,z.opacity);var m=Math.atan2(z.b,z.a)*y3x;return new rx(m<0?m+360:m,Math.sqrt(z.a*z.a+z.b*z.b),z.l,z.opacity)}
function nh(z,m,p,L){return arguments.length===1?ma(z):new rx(z,m,p,L==null?1:L)}
function rx(z,m,p,L){this.h=+z;this.c=+m;this.l=+p;this.opacity=+L}
function I6(z,m,p,L){if(arguments.length===1){var kJ=z;if(kJ instanceof HV)kJ=new HV(kJ.h,kJ.s,kJ.l,kJ.opacity);else{kJ instanceof qz||(kJ=R6(kJ));var n7=kJ.g/255,Io=kJ.b/255,VM=(e06*Io+kJ.r/255*-1.7884503806-3.5172982438*n7)/(e06+-1.7884503806-3.5172982438);Io-=VM;var xJ=(1.97294*(n7-VM)- -.29227*Io)/-.90649;Io=(n7=Math.sqrt(xJ*xJ+Io*Io)/(1.97294*VM*(1-VM)))?Math.atan2(xJ,Io)*y3x-120:NaN;kJ=new HV(Io<0?Io+360:Io,n7,VM,kJ.opacity)}}else kJ=new HV(z,m,p,L==null?1:L);return kJ}
function HV(z,m,p,L){this.h=+z;this.s=+m;this.l=+p;this.opacity=+L}
function dV(z,m,p,L,kJ){var n7=z*z,Io=n7*z;return((1-3*z+3*n7-Io)*m+(4-6*n7+3*Io)*p+(1+3*z+3*n7-3*Io)*L+Io*kJ)/6}
function Pk(z){return function(){return z}}
function rB(z,m){return function(p){return z+p*m}}
function RR(z,m,p){return z=Math.pow(z,p),m=Math.pow(m,p)-z,p=1/p,function(L){return Math.pow(z+L*m,p)}}
function pA(z,m){var p=m-z;return p?rB(z,p>180||p<-180?p-360*Math.round(p/360):p):Pk(isNaN(z)?m:z)}
function LY(z){return(z=+z)===1?vX:function(m,p){return p-m?RR(m,p,z):Pk(isNaN(m)?p:m)}}
function vX(z,m){var p=m-z;return p?rB(z,p):Pk(isNaN(z)?m:z)}
function oS(z){return function(m){var p=m.length,L=Array(p),kJ=Array(p),n7=Array(p),Io;for(Io=0;Io<p;++Io){var VM=mT(m[Io]);L[Io]=VM.r||0;kJ[Io]=VM.g||0;n7[Io]=VM.b||0}L=z(L);kJ=z(kJ);n7=z(n7);VM.opacity=1;return function(xJ){VM.r=L(xJ);VM.g=kJ(xJ);VM.b=n7(xJ);return VM+""}}}
function ba(z,m){return z=+z,m-=z,function(p){return z+m*p}}
function B4(z){return function(){return z}}
function N6(z){return function(m){return z(m)+""}}
function OA(z,m){var p=J3z.lastIndex=z0M.lastIndex=0,L,kJ,n7,Io=-1,VM=[],xJ=[];z+="";for(m+="";(L=J3z.exec(z))&&(kJ=z0M.exec(m));)(n7=kJ.index)>p&&(n7=m.slice(p,n7),VM[Io]?VM[Io]+=n7:VM[++Io]=n7),(L=L[0])===(kJ=kJ[0])?VM[Io]?VM[Io]+=kJ:VM[++Io]=kJ:(VM[++Io]=null,xJ.push({i:Io,x:ba(L,kJ)})),p=z0M.lastIndex;p<m.length&&(n7=m.slice(p),VM[Io]?VM[Io]+=n7:VM[++Io]=n7);return VM.length<2?xJ[0]?N6(xJ[0].x):B4(m):(m=xJ.length,function(L7){for(var wx=0,n$;wx<m;++wx)VM[(n$=xJ[wx]).i]=n$.x(L7);return VM.join("")})}
function z_(z,m,p,L,kJ,n7){var Io,VM,xJ;if(Io=Math.sqrt(z*z+m*m))z/=Io,m/=Io;if(xJ=z*p+m*L)p-=z*xJ,L-=m*xJ;if(VM=Math.sqrt(p*p+L*L))p/=VM,L/=VM,xJ/=VM;z*L<m*p&&(z=-z,m=-m,xJ=-xJ,Io=-Io);return{translateX:kJ,translateY:n7,rotate:Math.atan2(m,z)*khj,skewX:Math.atan(xJ)*khj,scaleX:Io,scaleY:VM}}
function EY(z,m,p,L){function kJ(L7){return L7.length?L7.pop()+" ":""}
function n7(L7,wx,n$,lP,WV,Qa){L7!==n$||wx!==lP?(WV=WV.push("translate(",null,m,null,p),Qa.push({i:WV-4,x:ba(L7,n$)},{i:WV-2,x:ba(wx,lP)})):(n$||lP)&&WV.push("translate("+n$+m+lP+p)}
function Io(L7,wx,n$,lP){L7!==wx?(L7-wx>180?wx+=360:wx-L7>180&&(L7+=360),lP.push({i:n$.push(kJ(n$)+"rotate(",null,L)-2,x:ba(L7,wx)})):wx&&n$.push(kJ(n$)+"rotate("+wx+L)}
function VM(L7,wx,n$,lP){L7!==wx?lP.push({i:n$.push(kJ(n$)+"skewX(",null,L)-2,x:ba(L7,wx)}):wx&&n$.push(kJ(n$)+"skewX("+wx+L)}
function xJ(L7,wx,n$,lP,WV,Qa){L7!==n$||wx!==lP?(WV=WV.push(kJ(WV)+"scale(",null,",",null,")"),Qa.push({i:WV-4,x:ba(L7,n$)},{i:WV-2,x:ba(wx,lP)})):n$===1&&lP===1||WV.push(kJ(WV)+"scale("+n$+","+lP+")")}
return function(L7,wx){var n$=[],lP=[];L7=z(L7);wx=z(wx);n7(L7.translateX,L7.translateY,wx.translateX,wx.translateY,n$,lP);Io(L7.rotate,wx.rotate,n$,lP);VM(L7.skewX,wx.skewX,n$,lP);xJ(L7.scaleX,L7.scaleY,wx.scaleX,wx.scaleY,n$,lP);L7=wx=null;return function(WV){for(var Qa=-1,cs=lP.length,dB;++Qa<cs;)n$[(dB=lP[Qa]).i]=dB.x(WV);return n$.join("")}}}
function th(z){return function(m,p){var L=z((m=iO(m)).h,(p=iO(p)).h),kJ=vX(m.s,p.s),n7=vX(m.l,p.l),Io=vX(m.opacity,p.opacity);return function(VM){m.h=L(VM);m.s=kJ(VM);m.l=n7(VM);m.opacity=Io(VM);return m+""}}}
function c1(z){return function(m,p){var L=z((m=nh(m)).h,(p=nh(p)).h),kJ=vX(m.c,p.c),n7=vX(m.l,p.l),Io=vX(m.opacity,p.opacity);return function(VM){m.h=L(VM);m.c=kJ(VM);m.l=n7(VM);m.opacity=Io(VM);return m+""}}}
function i8(z){return function L(p){function kJ(n7,Io){var VM=z((n7=I6(n7)).h,(Io=I6(Io)).h),xJ=vX(n7.s,Io.s),L7=vX(n7.l,Io.l),wx=vX(n7.opacity,Io.opacity);return function(n$){n7.h=VM(n$);n7.s=xJ(n$);n7.l=L7(Math.pow(n$,p));n7.opacity=wx(n$);return n7+""}}
p=+p;kJ.gamma=L;return kJ}(1)}
function pT(){return $c||(tMa(g6H),$c=Rc.now()+HDl)}
function g6H(){$c=0}
function rT(){this._call=this._time=this._next=null}
function cp(z,m,p){var L=new rT;L.restart(z,m,p);return L}
function Sx(){$c=(Wbf=Rc.now())+HDl;kI=cn=0;try{pT();++kI;for(var z=sRH,m;z;)(m=$c-z._time)>=0&&z._call.call(null,m),z=z._next;--kI}finally{kI=0;z=sRH;for(var p=Infinity;z;)if(z._call){p>z._time&&(p=z._time);var L=z;z=z._next}else m=z._next,z._next=null,z=L?L._next=m:sRH=m;Sk=L;hS(p);$c=0}}
function sHl(){var z=Rc.now(),m=z-Wbf;m>1E3&&(HDl-=m,Wbf=z)}
function hS(z){kI||(cn&&(cn=clearTimeout(cn)),z-$c>24?(z<Infinity&&(cn=setTimeout(Sx,z-Rc.now()-HDl)),hJ&&(hJ=clearInterval(hJ))):(hJ||(Wbf=Rc.now(),hJ=setInterval(sHl,1E3)),kI=1,tMa(Sx)))}
function PMF(z,m,p){var L=new rT;m=m==null?0:+m;L.restart(function(kJ){L.stop();z(kJ+m)},m,p);
return L}
function aN4(z,m,p,L,kJ,n7){var Io=z.__transition;if(!Io)z.__transition={};else if(p in Io)return;hGA(z,p,{name:m,index:L,group:kJ,on:j56,tween:lz4,time:n7.time,delay:n7.delay,duration:n7.duration,ease:n7.ease,timer:null,state:0})}
function DA6(z,m){z=tY(z,m);if(z.state>0)throw Error("te");return z}
function va(z,m){z=tY(z,m);if(z.state>2)throw Error("ue");return z}
function tY(z,m){z=z.__transition;if(!z||!(z=z[m]))throw Error("ve");return z}
function hGA(z,m,p){function L(xJ){var L7,wx;if(p.state!==1)return n7();for(lP in Io){var n$=Io[lP];if(n$.name===p.name){if(n$.state===3)return PMF(L);n$.state===4?(n$.state=6,n$.timer.stop(),n$.on.call("interrupt",z,z.__data__,n$.index,n$.group),delete Io[lP]):+lP<m&&(n$.state=6,n$.timer.stop(),delete Io[lP])}}PMF(function(){p.state===3&&(p.state=4,p.timer.restart(kJ,p.delay,p.time),kJ(xJ))});
p.state=2;p.on.call("start",z,z.__data__,p.index,p.group);if(p.state===2){p.state=3;VM=Array(wx=p.tween.length);var lP=0;for(L7=-1;lP<wx;++lP)if(n$=p.tween[lP].value.call(z,z.__data__,p.index,p.group))VM[++L7]=n$;VM.length=L7+1}}
function kJ(xJ){xJ=xJ<p.duration?p.ease.call(null,xJ/p.duration):(p.timer.restart(n7),p.state=5,1);for(var L7=-1,wx=VM.length;++L7<wx;)VM[L7].call(null,xJ);p.state===5&&(p.on.call("end",z,z.__data__,p.index,p.group),n7())}
function n7(){p.state=6;p.timer.stop();delete Io[m];for(var xJ in Io)return;delete z.__transition}
var Io=z.__transition,VM;Io[m]=p;p.timer=cp(function(xJ){p.state=1;p.timer.restart(L,p.delay,p.time);p.delay<=xJ&&L(xJ-p.delay)},0,p.time)}
function LpH(z,m){var p,L;return function(){var kJ=va(this,z),n7=kJ.tween;if(n7!==p){L=p=n7;n7=0;for(var Io=L.length;n7<Io;++n7)if(L[n7].name===m){L=L.slice();L.splice(n7,1);break}}kJ.tween=L}}
function McK(z,m,p){var L,kJ;if(typeof p!=="function")throw Error();return function(){var n7=va(this,z),Io=n7.tween;if(Io!==L){kJ=(L=Io).slice();Io={name:m,value:p};for(var VM=0,xJ=kJ.length;VM<xJ;++VM)if(kJ[VM].name===m){kJ[VM]=Io;break}VM===xJ&&kJ.push(Io)}n7.tween=kJ}}
function Z1M(z,m,p){var L=z._id;z.each(function(){var kJ=va(this,L);(kJ.value||(kJ.value={}))[m]=p.apply(this,arguments)});
return function(kJ){return tY(kJ,L).value[m]}}
function XuF(z,m){var p;return(typeof m==="number"?ba:m instanceof RK?Fmj:(p=RK(m))?(m=p,Fmj):OA)(z,m)}
function Kpx(z){return function(){this.removeAttribute(z)}}
function BZm(z){return function(){this.removeAttributeNS(z.space,z.local)}}
function xLh(z,m,p){var L,kJ;return function(){var n7=this.getAttribute(z);return n7===p?null:n7===L?kJ:kJ=m(L=n7,p)}}
function qLA(z,m,p){var L,kJ;return function(){var n7=this.getAttributeNS(z.space,z.local);return n7===p?null:n7===L?kJ:kJ=m(L=n7,p)}}
function wSq(z,m,p){var L,kJ,n7;return function(){var Io=p(this);if(Io==null)return void this.removeAttribute(z);var VM=this.getAttribute(z);return VM===Io?null:VM===L&&Io===kJ?n7:n7=m(L=VM,kJ=Io)}}
function u1c(z,m,p){var L,kJ,n7;return function(){var Io=p(this);if(Io==null)return void this.removeAttributeNS(z.space,z.local);var VM=this.getAttributeNS(z.space,z.local);return VM===Io?null:VM===L&&Io===kJ?n7:n7=m(L=VM,kJ=Io)}}
function yvT(z,m){function p(){var L=this,kJ=m.apply(L,arguments);return kJ&&function(n7){L.setAttributeNS(z.space,z.local,kJ(n7))}}
p._value=m;return p}
function eD4(z,m){function p(){var L=this,kJ=m.apply(L,arguments);return kJ&&function(n7){L.setAttribute(z,kJ(n7))}}
p._value=m;return p}
function ks6(z,m){return function(){DA6(this,z).delay=+m.apply(this,arguments)}}
function tVB(z,m){return m=+m,function(){DA6(this,z).delay=m}}
function P8A(z,m){return function(){va(this,z).duration=+m.apply(this,arguments)}}
function XSm(z,m){return m=+m,function(){va(this,z).duration=m}}
function Fwq(z,m){if(typeof m!=="function")throw Error();return function(){va(this,z).ease=m}}
function Gsq(z){return(z+"").trim().split(/^|\s+/).every(function(m){var p=m.indexOf(".");p>=0&&(m=m.slice(0,p));return!m||m==="start"})}
function nfj(z,m,p){var L,kJ,n7=Gsq(m)?DA6:va;return function(){var Io=n7(this,z),VM=Io.on;if(VM!==L)(kJ=(L=VM).copy()).on(m,p);Io.on=kJ}}
function Hyq(z){return function(){var m=this.parentNode,p;for(p in this.__transition)if(+p!==z)return;m&&m.removeChild(this)}}
function Wwa(z,m){var p,L,kJ;return function(){var n7=YJ(this,z),Io=(this.style.removeProperty(z),YJ(this,z));return n7===Io?null:n7===p&&Io===L?kJ:kJ=m(p=n7,L=Io)}}
function sGx(z){return function(){this.style.removeProperty(z)}}
function N9K(z,m,p){var L,kJ;return function(){var n7=YJ(this,z);return n7===p?null:n7===L?kJ:kJ=m(L=n7,p)}}
function QGV(z,m,p){var L,kJ,n7;return function(){var Io=YJ(this,z),VM=p(this);VM==null&&(VM=(this.style.removeProperty(z),YJ(this,z)));return Io===VM?null:Io===L&&VM===kJ?n7:n7=m(L=Io,kJ=VM)}}
function IS6(z,m,p){function L(){var kJ=this,n7=m.apply(kJ,arguments);return n7&&function(Io){kJ.style.setProperty(z,n7(Io),p)}}
L._value=m;return L}
function iy6(z){return function(){this.textContent=z}}
function rvm(z){return function(){var m=z(this);this.textContent=m==null?"":m}}
function no(z,m,p,L){this._groups=z;this._parents=m;this._name=p;this._id=L}
function puM(z){return{type:z}}
function $A7(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function N4l(){}
function GhT(z,m){var p=new N4l;if(z instanceof N4l)z.each(function(Io,VM){p.set(VM,Io)});
else if(Array.isArray(z)){var L=-1,kJ=z.length,n7;if(m==null)for(;++L<kJ;)p.set(L,z[L]);else for(;++L<kJ;)p.set(m(n7=z[L],L,z),n7)}else if(z)for(L in z)p.set(L,z[L]);return p}
function QRf(){}
function nej(z){return function(m){for(var p={},L=0;L<z.length;L++)p[z[L]]=m[L]||"";return p}}
function UGK(z,m){var p=nej(z);return function(L,kJ){return m(p(L),kJ,z)}}
function T9A(z){var m=Object.create(null),p=[];z.forEach(function(L){for(var kJ in L)kJ in m||p.push(m[kJ]=kJ)});
return p}
function H16(z){function m(Io,VM){function xJ(){if(Qa)return veM;if(cs)return cs=!1,Wmj;var jW,q$=n$,Cq;if(Io.charCodeAt(q$)===34){for(;n$++<wx&&Io.charCodeAt(n$)!==34||Io.charCodeAt(++n$)===34;);(jW=n$)>=wx?Qa=!0:(Cq=Io.charCodeAt(n$++))===10?cs=!0:Cq===13&&(cs=!0,Io.charCodeAt(n$)===10&&++n$);return Io.slice(q$+1,jW-1).replace(/""/g,'"')}for(;n$<wx;){if((Cq=Io.charCodeAt(jW=n$++))===10)cs=!0;else if(Cq===13)cs=!0,Io.charCodeAt(n$)===10&&++n$;else if(Cq!==n7)continue;return Io.slice(q$,jW)}return Qa=
!0,Io.slice(q$,wx)}
var L7=[],wx=Io.length,n$=0,lP=0,WV,Qa=wx<=0,cs=!1;Io.charCodeAt(wx-1)===10&&--wx;for(Io.charCodeAt(wx-1)===13&&--wx;(WV=xJ())!==veM;){for(var dB=[];WV!==Wmj&&WV!==veM;)dB.push(WV),WV=xJ();VM&&(dB=VM(dB,lP++))==null||L7.push(dB)}return L7}
function p(Io){return Io.map(L).join(z)}
function L(Io){return Io==null?"":kJ.test(Io)?'"'+Io.replace(/"/g,'""')+'"':Io}
var kJ=new RegExp('["'+z+"\n\r]"),n7=z.charCodeAt(0);return{parse:function(Io,VM){var xJ,L7;Io=m(Io,function(wx,n$){if(xJ)return xJ(wx,n$-1);L7=wx;xJ=VM?UGK(wx,VM):nej(wx)});
Io.columns=L7||[];return Io},
parseRows:m,format:function(Io,VM){VM==null&&(VM=T9A(Io));return[VM.map(L).join(z)].concat(Io.map(function(xJ){return VM.map(function(L7){return L(xJ[L7])}).join(z)})).join("\n")},
formatRows:function(Io){return Io.map(p).join("\n")}}}
function C84(z){if(!z.ok)throw Error("we`"+z.status+"`"+z.statusText);return z.text()}
function s8x(z){return function(m,p,L){arguments.length===2&&typeof p==="function"&&(L=p,p=void 0);return fetch(m,p).then(C84).then(function(kJ){return z(kJ,L)})}}
function NQc(z,m,p,L){if(isNaN(m)||isNaN(p))return z;var kJ,n7=z._root;L={data:L};var Io=z._x0,VM=z._y0,xJ=z._x1,L7=z._y1,wx,n$,lP,WV,Qa;if(!n7)return z._root=L,z;for(;n7.length;)if((lP=m>=(wx=(Io+xJ)/2))?Io=wx:xJ=wx,(WV=p>=(n$=(VM+L7)/2))?VM=n$:L7=n$,kJ=n7,!(n7=n7[Qa=WV<<1|lP]))return kJ[Qa]=L,z;var cs=+z._x.call(null,n7.data);var dB=+z._y.call(null,n7.data);if(m===cs&&p===dB)return L.next=n7,kJ?kJ[Qa]=L:z._root=L,z;do kJ=kJ?kJ[Qa]=Array(4):z._root=Array(4),(lP=m>=(wx=(Io+xJ)/2))?Io=wx:xJ=wx,(WV=
p>=(n$=(VM+L7)/2))?VM=n$:L7=n$;while((Qa=WV<<1|lP)===(lP=(dB>=n$)<<1|cs>=wx));return kJ[lP]=n7,kJ[Qa]=L,z}
function M_(z,m,p,L,kJ){this.node=z;this.x0=m;this.y0=p;this.x1=L;this.y1=kJ}
function dGh(z){return z[0]}
function OyV(z){return z[1]}
function b1y(z,m,p,L,kJ,n7){this._x=z;this._y=m;this._x0=p;this._y0=L;this._x1=kJ;this._y1=n7;this._root=void 0}
function Q8P(z){for(var m={data:z.data},p=m;z=z.next;)p=p.next={data:z.data};return m}
function IGs(z,m){if((m=(z=m?z.toExponential(m-1):z.toExponential()).indexOf("e"))<0)return null;var p=z.slice(0,m);return[p.length>1?p[0]+p.slice(2):p,+z.slice(m+1)]}
function ofT(z){return z=IGs(Math.abs(z)),z?z[1]:NaN}
function VVm(z,m){return function(p,L){for(var kJ=p.length,n7=[],Io=0,VM=z[0],xJ=0;kJ>0&&VM>0;){xJ+VM+1>L&&(VM=Math.max(1,L-xJ));n7.push(p.substring(kJ-=VM,kJ+VM));if((xJ+=VM+1)>L)break;VM=z[Io=(Io+1)%z.length]}return n7.reverse().join(m)}}
function fSa(z){return function(m){return m.replace(/[0-9]/g,function(p){return z[+p]})}}
function YzM(z){return new gel(z)}
function gel(z){if(!(m=mGV.exec(z)))throw Error("xe`"+z);var m;this.fill=m[1]||" ";this.align=m[2]||">";this.sign=m[3]||"-";this.symbol=m[4]||"";this.zero=!!m[5];this.width=m[6]&&+m[6];this.comma=!!m[7];this.precision=m[8]&&+m[8].slice(1);this.trim=!!m[9];this.type=m[10]||""}
function INj(z,m){m=IGs(z,m);if(!m)return z+"";z=m[0];m=m[1];return m<0?"0."+Array(-m).join("0")+z:z.length>m+1?z.slice(0,m+1)+"."+z.slice(m+1):z+Array(m-z.length+2).join("0")}
function i1c(z){return z}
function AvH(z){function m(VM){function xJ(lE){var NQ=Cq,Ax=eg,H3,ya;if(q$==="c")Ax=w4(lE)+Ax,lE="";else{lE=+lE;var QH=lE<0;lE=w4(Math.abs(lE),dB);if(jW){var M$=lE.length,Aq=1,lY=-1;a:for(;Aq<M$;++Aq)switch(lE[Aq]){case ".":lY=H3=Aq;break;case "0":lY===0&&(lY=Aq);H3=Aq;break;default:if(!+lE[Aq])break a;lY>0&&(lY=0)}lE=lY>0?lE.slice(0,lY)+lE.slice(H3+1):lE}QH&&+lE===0&&(QH=!1);NQ=(QH?n$==="("?n$:"-":n$==="-"||n$==="("?"":n$)+NQ;Ax=(q$==="s"?r3k[8+UAa/3]:"")+Ax+(QH&&n$==="("?")":"");if(Ir)for(QH=-1,
H3=lE.length;++QH<H3;)if(ya=lE.charCodeAt(QH),48>ya||ya>57){Ax=(ya===46?kJ+lE.slice(QH+1):lE.slice(QH))+Ax;lE=lE.slice(0,QH);break}}cs&&!WV&&(lE=p(lE,Infinity));ya=NQ.length+lE.length+Ax.length;QH=ya<Qa?Array(Qa-ya+1).join(L7):"";cs&&WV&&(lE=p(QH+lE,QH.length?Qa-Ax.length:Infinity),QH="");switch(wx){case "<":lE=NQ+lE+Ax+QH;break;case "=":lE=NQ+QH+lE+Ax;break;case "^":lE=QH.slice(0,ya=QH.length>>1)+NQ+lE+Ax+QH.slice(ya);break;default:lE=QH+NQ+lE+Ax}return n7(lE)}
VM=YzM(VM);var L7=VM.fill,wx=VM.align,n$=VM.sign,lP=VM.symbol,WV=VM.zero,Qa=VM.width,cs=VM.comma,dB=VM.precision,jW=VM.trim,q$=VM.type;q$==="n"?(cs=!0,q$="g"):TQ3[q$]||(dB==null&&(dB=12),jW=!0,q$="g");if(WV||L7==="0"&&wx==="=")WV=!0,L7="0",wx="=";var Cq=lP==="$"?L[0]:lP==="#"&&/[boxX]/.test(q$)?"0"+q$.toLowerCase():"",eg=lP==="$"?L[1]:/[%p]/.test(q$)?Io:"",w4=TQ3[q$],Ir=/[defgprs%]/.test(q$);dB=dB==null?6:/[gprs]/.test(q$)?Math.max(1,Math.min(21,dB)):Math.max(0,Math.min(20,dB));xJ.toString=function(){return VM+
""};
return xJ}
var p=z.grouping&&z.thousands?VVm(z.grouping,z.thousands):i1c,L=z.currency,kJ=z.decimal,n7=z.numerals?fSa(z.numerals):i1c,Io=z.percent||"%";return{format:m,formatPrefix:function(VM,xJ){var L7=m((VM=YzM(VM),VM.type="f",VM));VM=Math.max(-8,Math.min(8,Math.floor(ofT(xJ)/3)))*3;var wx=Math.pow(10,-VM),n$=r3k[8+VM/3];return function(lP){return L7(wx*lP)+n$}}}}
function vS(){this.reset()}
function CMP(z,m,p){var L=z.s=m+p,kJ=L-m;z.t=m-(L-kJ)+(p-kJ)}
function iDu(z){return z>1?EK:z<-1?-EK:Math.asin(z)}
function JvV(){}
function dAa(z){var m=z[0];z=z[1];var p=RS(z);return[p*RS(m),p*Ar(m),Ar(z)]}
function O1c(z,m){return[z[1]*m[2]-z[2]*m[1],z[2]*m[0]-z[0]*m[2],z[0]*m[1]-z[1]*m[0]]}
function oe$(z){var m=rXo(z[0]*z[0]+z[1]*z[1]+z[2]*z[2]);z[0]/=m;z[1]/=m;z[2]/=m}
function zDV(){var z=[],m;return{point:function(p,L){m.push([p,L])},
lineStart:function(){z.push(m=[])},
lineEnd:JvV,rejoin:function(){z.length>1&&z.push(z.pop().concat(z.shift()))},
result:function(){var p=z;z=[];m=null;return p}}}
function U$H(z,m,p,L){this.x=z;this.z=m;this.o=p;this.e=L;this.v=!1;this.n=this.p=null}
function aSB(z,m,p,L,kJ){var n7=[],Io=[];z.forEach(function(n$){if(!((lP=n$.length-1)<=0)){var lP,WV=n$[0],Qa=n$[lP],cs=WV;if(HY(cs[0]-Qa[0])<1E-6&&HY(cs[1]-Qa[1])<1E-6){kJ.lineStart();for(VM=0;VM<lP;++VM)kJ.point((WV=n$[VM])[0],WV[1]);kJ.lineEnd()}else n7.push(lP=new U$H(WV,n$,null,!0)),Io.push(lP.o=new U$H(WV,null,lP,!1)),n7.push(lP=new U$H(Qa,n$,null,!1)),Io.push(lP.o=new U$H(Qa,null,lP,!0))}});
if(n7.length){Io.sort(m);VMP(n7);VMP(Io);var VM=0;for(z=Io.length;VM<z;++VM)Io[VM].e=p=!p;p=n7[0];for(var xJ;;){for(var L7=p,wx=!0;L7.v;)if((L7=L7.n)===p)return;m=L7.z;kJ.lineStart();do{L7.v=L7.o.v=!0;if(L7.e){if(wx)for(VM=0,z=m.length;VM<z;++VM)kJ.point((xJ=m[VM])[0],xJ[1]);else L(L7.x,L7.n.x,1,kJ);L7=L7.n}else{if(wx)for(m=L7.p.z,VM=m.length-1;VM>=0;--VM)kJ.point((xJ=m[VM])[0],xJ[1]);else L(L7.x,L7.p.x,-1,kJ);L7=L7.p}L7=L7.o;m=L7.z;wx=!wx}while(!L7.v);kJ.lineEnd()}}}
function VMP(z){if(m=z.length){for(var m,p=0,L=z[0],kJ;++p<m;)L.n=kJ=z[p],kJ.p=L,L=kJ;L.n=kJ=z[0];kJ.p=L}}
function DGT(z){return z.length>1}
function ZyT(z,m){return((z=z.x)[0]<0?z[1]-EK-1E-6:EK-z[1])-((m=m.x)[0]<0?m[1]-EK-1E-6:EK-m[1])}
function Eez(){}
function fNT(z){return function(m,p){var L=RS(m),kJ=RS(p);L=z(L*kJ);return[L*kJ*Ar(m),L*Ar(p)]}}
function jk(z){return function(m,p){var L=rXo(m*m+p*p),kJ=z(L),n7=Ar(kJ);kJ=RS(kJ);return[mAj(m*n7,L*kJ),iDu(L&&p*n7/L)]}}
function pST(z){var m=0,p=z.children,L=p&&p.length;if(L)for(;--L>=0;)m+=p[L].value;else m=1;z.value=m}
function A3F(z,m){var p=new lW(z);z=+z.value&&(p.value=z.value);var L,kJ=[p],n7,Io,VM,xJ;for(m==null&&(m=$Ga);L=kJ.pop();)if(z&&(L.value=+L.data.value),(Io=m(L.data))&&(xJ=Io.length))for(L.children=Array(xJ),VM=xJ-1;VM>=0;--VM)kJ.push(n7=L.children[VM]=new lW(Io[VM])),n7.parent=L,n7.depth=L.depth+1;return p.eachBefore(vfh)}
function $Ga(z){return z.children}
function byV(z){z.data=z.data.data}
function vfh(z){var m=0;do z.height=m;while((z=z.parent)&&z.height<++m)}
function lW(z){this.data=z;this.depth=this.height=0;this.parent=null}
function UM(z,m,p,L){function kJ(n7){return z(n7=new Date(+n7)),n7}
kJ.floor=kJ;kJ.ceil=function(n7){return z(n7=new Date(n7-1)),m(n7,1),z(n7),n7};
kJ.round=function(n7){var Io=kJ(n7),VM=kJ.ceil(n7);return n7-Io<VM-n7?Io:VM};
kJ.offset=function(n7,Io){return m(n7=new Date(+n7),Io==null?1:Math.floor(Io)),n7};
kJ.range=function(n7,Io,VM){var xJ=[],L7;n7=kJ.ceil(n7);VM=VM==null?1:Math.floor(VM);if(!(n7<Io&&VM>0))return xJ;do xJ.push(L7=new Date(+n7)),m(n7,VM),z(n7);while(L7<n7&&n7<Io);return xJ};
kJ.filter=function(n7){return UM(function(Io){if(Io>=Io)for(;z(Io),!n7(Io);)Io.setTime(Io-1)},function(Io,VM){if(Io>=Io)if(VM<0)for(;++VM<=0;)for(;m(Io,-1),!n7(Io););
else for(;--VM>=0;)for(;m(Io,1),!n7(Io););})};
p&&(kJ.count=function(n7,Io){R0M.setTime(+n7);c3l.setTime(+Io);z(R0M);z(c3l);return Math.floor(p(R0M,c3l))},kJ.every=function(n7){n7=Math.floor(n7);
return isFinite(n7)&&n7>0?n7>1?kJ.filter(L?function(Io){return L(Io)%n7===0}:function(Io){return kJ.count(0,Io)%n7===0}):kJ:null});
return kJ}
function b_(z){return UM(function(m){m.setDate(m.getDate()-(m.getDay()+7-z)%7);m.setHours(0,0,0,0)},function(m,p){m.setDate(m.getDate()+p*7)},function(m,p){return(p-m-(p.getTimezoneOffset()-m.getTimezoneOffset())*6E4)/6048E5})}
function Yc(z){return UM(function(m){m.setUTCDate(m.getUTCDate()-(m.getUTCDay()+7-z)%7);m.setUTCHours(0,0,0,0)},function(m,p){m.setUTCDate(m.getUTCDate()+p*7)},function(m,p){return(p-m)/6048E5})}
function YLH(z){if(0<=z.y&&z.y<100){var m=new Date(-1,z.m,z.d,z.H,z.M,z.S,z.L);m.setFullYear(z.y);return m}return new Date(z.y,z.m,z.d,z.H,z.M,z.S,z.L)}
function T4J(z){if(0<=z.y&&z.y<100){var m=new Date(Date.UTC(-1,z.m,z.d,z.H,z.M,z.S,z.L));m.setUTCFullYear(z.y);return m}return new Date(Date.UTC(z.y,z.m,z.d,z.H,z.M,z.S,z.L))}
function Lw(z){return{y:z,m:0,d:1,H:0,M:0,S:0,L:0}}
function gfV(z){function m(Ax,H3){return function(ya){var QH=[],M$=-1,Aq=0,lY=Ax.length,io,fH;for(ya instanceof Date||(ya=new Date(+ya));++M$<lY;)if(Ax.charCodeAt(M$)===37){QH.push(Ax.slice(Aq,M$));(Aq=J3c[io=Ax.charAt(++M$)])!=null?io=Ax.charAt(++M$):Aq=io==="e"?" ":"0";if(fH=H3[io])io=fH(ya,Aq);QH.push(io);Aq=M$+1}QH.push(Ax.slice(Aq,M$));return QH.join("")}}
function p(Ax,H3){return function(ya){var QH=Lw(1900);if(L(QH,Ax,ya,0)!=ya.length)return null;if("Q"in QH)return new Date(QH.Q);"p"in QH&&(QH.H=QH.H%12+QH.p*12);if("V"in QH){if(QH.V<1||QH.V>53)return null;"w"in QH||(QH.w=1);if("Z"in QH){ya=T4J(Lw(QH.y));var M$=ya.getUTCDay();ya=M$>4||M$===0?Szf.ceil(ya):Szf(ya);ya=z0T.offset(ya,(QH.V-1)*7);QH.y=ya.getUTCFullYear();QH.m=ya.getUTCMonth();QH.d=ya.getUTCDate()+(QH.w+6)%7}else ya=H3(Lw(QH.y)),M$=ya.getDay(),ya=M$>4||M$===0?h04.ceil(ya):h04(ya),ya=aNk.offset(ya,
(QH.V-1)*7),QH.y=ya.getFullYear(),QH.m=ya.getMonth(),QH.d=ya.getDate()+(QH.w+6)%7}else if("W"in QH||"U"in QH)"w"in QH||(QH.w="u"in QH?QH.u%7:"W"in QH?1:0),M$="Z"in QH?T4J(Lw(QH.y)).getUTCDay():H3(Lw(QH.y)).getDay(),QH.m=0,QH.d="W"in QH?(QH.w+6)%7+QH.W*7-(M$+5)%7:QH.w+QH.U*7-(M$+6)%7;return"Z"in QH?(QH.H+=QH.Z/100|0,QH.M+=QH.Z%100,T4J(QH)):H3(QH)}}
function L(Ax,H3,ya,QH){for(var M$=0,Aq=H3.length,lY=ya.length,io;M$<Aq;){if(QH>=lY)return-1;io=H3.charCodeAt(M$++);if(io===37){if(io=H3.charAt(M$++),io=NQ[io in J3c?H3.charAt(M$++):io],!io||(QH=io(Ax,ya,QH))<0)return-1}else if(io!=ya.charCodeAt(QH++))return-1}return QH}
var kJ=z.dateTime,n7=z.date,Io=z.time,VM=z.periods,xJ=z.days,L7=z.shortDays,wx=z.months,n$=z.shortMonths,lP=Mx(VM),WV=Kw(VM),Qa=Mx(xJ),cs=Kw(xJ),dB=Mx(L7),jW=Kw(L7),q$=Mx(wx),Cq=Kw(wx),eg=Mx(n$),w4=Kw(n$),Ir={a:function(Ax){return L7[Ax.getDay()]},
A:function(Ax){return xJ[Ax.getDay()]},
b:function(Ax){return n$[Ax.getMonth()]},
B:function(Ax){return wx[Ax.getMonth()]},
c:null,d:DAZ,e:DAZ,f:EfA,H:RDH,I:cvm,j:SLH,L:Z1F,m:hDa,M:jGV,p:function(Ax){return VM[+(Ax.getHours()>=12)]},
Q:puF,s:$A$,S:lSx,u:LwV,U:MVm,V:KwA,w:B94,W:xGH,x:null,X:null,y:qbK,Y:wUB,Z:uVc,"%":veT},lE={a:function(Ax){return L7[Ax.getUTCDay()]},
A:function(Ax){return xJ[Ax.getUTCDay()]},
b:function(Ax){return n$[Ax.getUTCMonth()]},
B:function(Ax){return wx[Ax.getUTCMonth()]},
c:null,d:b1G,e:b1G,f:ytm,H:e2j,I:kkA,j:tKB,L:YzT,m:P6T,M:XUT,p:function(Ax){return VM[+(Ax.getUTCHours()>=12)]},
Q:puF,s:$A$,S:F_q,u:Gk6,U:nkc,V:HOc,w:W_K,W:sJm,x:null,X:null,y:NP6,Y:QJA,Z:IlH,"%":veT},NQ={a:function(Ax,H3,ya){return(H3=dB.exec(H3.slice(ya)))?(Ax.w=jW[H3[0].toLowerCase()],ya+H3[0].length):-1},
A:function(Ax,H3,ya){return(H3=Qa.exec(H3.slice(ya)))?(Ax.w=cs[H3[0].toLowerCase()],ya+H3[0].length):-1},
b:function(Ax,H3,ya){return(H3=eg.exec(H3.slice(ya)))?(Ax.m=w4[H3[0].toLowerCase()],ya+H3[0].length):-1},
B:function(Ax,H3,ya){return(H3=q$.exec(H3.slice(ya)))?(Ax.m=Cq[H3[0].toLowerCase()],ya+H3[0].length):-1},
c:function(Ax,H3,ya){return L(Ax,kJ,H3,ya)},
d:gea,e:gea,f:iOa,H:Eec,I:Eec,j:rtq,L:UB4,m:TPq,M:C6q,p:function(Ax,H3,ya){return(H3=lP.exec(H3.slice(ya)))?(Ax.p=WV[H3[0].toLowerCase()],ya+H3[0].length):-1},
Q:dBm,s:OOh,S:ok6,u:VKc,U:flH,V:mB4,w:AtB,W:JtH,x:function(Ax,H3,ya){return L(Ax,n7,H3,ya)},
X:function(Ax,H3,ya){return L(Ax,Io,H3,ya)},
y:z2B,Y:alj,Z:DB6,"%":ZOa};Ir.x=m(n7,Ir);Ir.X=m(Io,Ir);Ir.c=m(kJ,Ir);lE.x=m(n7,lE);lE.X=m(Io,lE);lE.c=m(kJ,lE);return{format:function(Ax){var H3=m(Ax,Ir);H3.toString=function(){return Ax};
return H3},
parse:function(Ax){var H3=p(Ax,YLH);H3.toString=function(){return Ax};
return H3},
utcFormat:function(Ax){var H3=m(Ax,lE);H3.toString=function(){return Ax};
return H3},
utcParse:function(Ax){var H3=p(Ax,T4J);H3.toString=function(){return Ax};
return H3}}}
function d4(z,m,p){var L=z<0?"-":"";z=(L?-z:z)+"";var kJ=z.length;return L+(kJ<p?Array(p-kJ+1).join(m)+z:z)}
function pUH(z){return z.replace($Bx,"\\$&")}
function Mx(z){return new RegExp("^(?:"+z.map(pUH).join("|")+")","i")}
function Kw(z){for(var m={},p=-1,L=z.length;++p<L;)m[z[p].toLowerCase()]=p;return m}
function AtB(z,m,p){return(m=dk.exec(m.slice(p,p+1)))?(z.w=+m[0],p+m[0].length):-1}
function VKc(z,m,p){return(m=dk.exec(m.slice(p,p+1)))?(z.u=+m[0],p+m[0].length):-1}
function flH(z,m,p){return(m=dk.exec(m.slice(p,p+2)))?(z.U=+m[0],p+m[0].length):-1}
function mB4(z,m,p){return(m=dk.exec(m.slice(p,p+2)))?(z.V=+m[0],p+m[0].length):-1}
function JtH(z,m,p){return(m=dk.exec(m.slice(p,p+2)))?(z.W=+m[0],p+m[0].length):-1}
function alj(z,m,p){return(m=dk.exec(m.slice(p,p+4)))?(z.y=+m[0],p+m[0].length):-1}
function z2B(z,m,p){return(m=dk.exec(m.slice(p,p+2)))?(z.y=+m[0]+(+m[0]>68?1900:2E3),p+m[0].length):-1}
function DB6(z,m,p){return(m=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(m.slice(p,p+6)))?(z.Z=m[1]?0:-(m[2]+(m[3]||"00")),p+m[0].length):-1}
function TPq(z,m,p){return(m=dk.exec(m.slice(p,p+2)))?(z.m=m[0]-1,p+m[0].length):-1}
function gea(z,m,p){return(m=dk.exec(m.slice(p,p+2)))?(z.d=+m[0],p+m[0].length):-1}
function rtq(z,m,p){return(m=dk.exec(m.slice(p,p+3)))?(z.m=0,z.d=+m[0],p+m[0].length):-1}
function Eec(z,m,p){return(m=dk.exec(m.slice(p,p+2)))?(z.H=+m[0],p+m[0].length):-1}
function C6q(z,m,p){return(m=dk.exec(m.slice(p,p+2)))?(z.M=+m[0],p+m[0].length):-1}
function ok6(z,m,p){return(m=dk.exec(m.slice(p,p+2)))?(z.S=+m[0],p+m[0].length):-1}
function UB4(z,m,p){return(m=dk.exec(m.slice(p,p+3)))?(z.L=+m[0],p+m[0].length):-1}
function iOa(z,m,p){return(m=dk.exec(m.slice(p,p+6)))?(z.L=Math.floor(m[0]/1E3),p+m[0].length):-1}
function ZOa(z,m,p){return(z=vkA.exec(m.slice(p,p+1)))?p+z[0].length:-1}
function dBm(z,m,p){return(m=dk.exec(m.slice(p)))?(z.Q=+m[0],p+m[0].length):-1}
function OOh(z,m,p){return(m=dk.exec(m.slice(p)))?(z.Q=+m[0]*1E3,p+m[0].length):-1}
function DAZ(z,m){return d4(z.getDate(),m,2)}
function RDH(z,m){return d4(z.getHours(),m,2)}
function cvm(z,m){return d4(z.getHours()%12||12,m,2)}
function SLH(z,m){return d4(1+aNk.count(tl(z),z),m,3)}
function Z1F(z,m){return d4(z.getMilliseconds(),m,3)}
function EfA(z,m){return Z1F(z,m)+"000"}
function hDa(z,m){return d4(z.getMonth()+1,m,2)}
function jGV(z,m){return d4(z.getMinutes(),m,2)}
function lSx(z,m){return d4(z.getSeconds(),m,2)}
function LwV(z){z=z.getDay();return z===0?7:z}
function MVm(z,m){return d4(bOK.count(tl(z),z),m,2)}
function KwA(z,m){var p=z.getDay();z=p>=4||p===0?j8J(z):j8J.ceil(z);return d4(j8J.count(tl(z),z)+(tl(z).getDay()===4),m,2)}
function B94(z){return z.getDay()}
function xGH(z,m){return d4(h04.count(tl(z),z),m,2)}
function qbK(z,m){return d4(z.getFullYear()%100,m,2)}
function wUB(z,m){return d4(z.getFullYear()%1E4,m,4)}
function uVc(z){z=z.getTimezoneOffset();return(z>0?"-":(z*=-1,"+"))+d4(z/60|0,"0",2)+d4(z%60,"0",2)}
function b1G(z,m){return d4(z.getUTCDate(),m,2)}
function e2j(z,m){return d4(z.getUTCHours(),m,2)}
function kkA(z,m){return d4(z.getUTCHours()%12||12,m,2)}
function tKB(z,m){return d4(1+z0T.count(PK(z),z),m,3)}
function YzT(z,m){return d4(z.getUTCMilliseconds(),m,3)}
function ytm(z,m){return YzT(z,m)+"000"}
function P6T(z,m){return d4(z.getUTCMonth()+1,m,2)}
function XUT(z,m){return d4(z.getUTCMinutes(),m,2)}
function F_q(z,m){return d4(z.getUTCSeconds(),m,2)}
function Gk6(z){z=z.getUTCDay();return z===0?7:z}
function nkc(z,m){return d4(Yb6.count(PK(z),z),m,2)}
function HOc(z,m){var p=z.getUTCDay();z=p>=4||p===0?lNc(z):lNc.ceil(z);return d4(lNc.count(PK(z),z)+(PK(z).getUTCDay()===4),m,2)}
function W_K(z){return z.getUTCDay()}
function sJm(z,m){return d4(Szf.count(PK(z),z),m,2)}
function NP6(z,m){return d4(z.getUTCFullYear()%100,m,2)}
function QJA(z,m){return d4(z.getUTCFullYear()%1E4,m,4)}
function IlH(){return"+0000"}
function veT(){return"%"}
function puF(z){return+z}
function $A$(z){return Math.floor(+z/1E3)}
function PI(z){for(var m=z.length/6|0,p=Array(m),L=0;L<m;)p[L]="#"+z.slice(L*6,++L*6);return p}
function KD(z){return gkB(z[z.length-1])}
function COM(z){var m=z.length;return function(p){return z[Math.max(0,Math.min(m-1,Math.floor(p*m)))]}}
function R0T(z){this._context=z}
function c3a(z){this._curve=z}
function Sz3(z,m,p){var L=z._x1-z._x0;m-=z._x1;var kJ=(z._y1-z._y0)/(L||m<0&&-0);z=(p-z._y1)/(m||L<0&&-0);return((kJ<0?-1:1)+(z<0?-1:1))*Math.min(Math.abs(kJ),Math.abs(z),.5*Math.abs((kJ*m+z*L)/(L+m)))||0}
function h0k(z,m){var p=z._x1-z._x0;return p?(3*(z._y1-z._y0)/p-m)/2:m}
function Lmf(z,m,p){var L=z._x0,kJ=z._x1,n7=z._y1,Io=(kJ-L)/3;z._context.bezierCurveTo(L+Io,z._y0+Io*m,kJ-Io,n7-Io*p,kJ,n7)}
function MMj(z){this._context=z}
function j8T(z){this._context=z}
function Bn(z,m,p){this.k=z;this.x=m;this.y=p}
(function(z){z.length===1&&(z=w(z));return{left:function(m,p,L,kJ){L==null&&(L=0);kJ==null&&(kJ=m.length);for(;L<kJ;){var n7=L+kJ>>>1;z(m[n7],p)<0?L=n7+1:kJ=n7}return L},
right:function(m,p,L,kJ){L==null&&(L=0);kJ==null&&(kJ=m.length);for(;L<kJ;){var n7=L+kJ>>>1;z(m[n7],p)>0?kJ=n7:L=n7+1}return L}}})(q);
var DL4={value:function(){}};
y.prototype=u.prototype={constructor:y,on:function(z,m){var p=this._,L=e(z+"",p),kJ,n7=-1,Io=L.length;if(arguments.length<2)for(;++n7<Io;){var VM;if(VM=kJ=(z=L[n7]).type){a:{VM=p[kJ];for(var xJ=0,L7=VM.length;xJ<L7;++xJ)if((kJ=VM[xJ]).name===z.name){kJ=kJ.value;break a}kJ=void 0}VM=kJ}if(VM)return kJ}else{if(m!=null&&typeof m!=="function")throw Error("ye`"+m);for(;++n7<Io;)if(kJ=(z=L[n7]).type)p[kJ]=t(p[kJ],z.name,m);else if(m==null)for(kJ in p)p[kJ]=t(p[kJ],z.name,null);return this}},
copy:function(){var z={},m=this._,p;for(p in m)z[p]=m[p].slice();return new y(z)},
call:function(z,m){if((kJ=arguments.length-2)>0)for(var p=Array(kJ),L=0,kJ,n7;L<kJ;++L)p[L]=arguments[L+2];if(!this._.hasOwnProperty(z))throw Error("se`"+z);n7=this._[z];L=0;for(kJ=n7.length;L<kJ;++L)n7[L].value.apply(m,p)},
apply:function(z,m,p){if(!this._.hasOwnProperty(z))throw Error("se`"+z);z=this._[z];for(var L=0,kJ=z.length;L<kJ;++L)z[L].value.apply(m,p)}};
var gI={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/"},lNP=function(z){return function(){return this.matches(z)}};
if(typeof document!=="undefined"){var xO=document.documentElement;if(!xO.matches){var Ekh=xO.webkitMatchesSelector||xO.msMatchesSelector||xO.mozMatchesSelector||xO.oMatchesSelector;lNP=function(z){return function(){return Ekh.call(this,z)}}}}var Lm3=lNP;
d.prototype={constructor:d,appendChild:function(z){return this._parent.insertBefore(z,this._next)},
insertBefore:function(z,m){return this._parent.insertBefore(z,m)},
querySelector:function(z){return this._parent.querySelector(z)},
querySelectorAll:function(z){return this._parent.querySelectorAll(z)}};
var BMk={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(BMk={mouseenter:"mouseover",mouseleave:"mouseout"}));var ZCA=[null];TG.prototype=G4.prototype={constructor:TG,select:function(z){typeof z!=="function"&&(z=I(z));for(var m=this._groups,p=m.length,L=Array(p),kJ=0;kJ<p;++kJ)for(var n7=m[kJ],Io=n7.length,VM=L[kJ]=Array(Io),xJ,L7,wx=0;wx<Io;++wx)(xJ=n7[wx])&&(L7=z.call(xJ,xJ.__data__,wx,n7))&&("__data__"in xJ&&(L7.__data__=xJ.__data__),VM[wx]=L7);return new TG(L,this._parents)},
filter:function(z){typeof z!=="function"&&(z=Lm3(z));for(var m=this._groups,p=m.length,L=Array(p),kJ=0;kJ<p;++kJ)for(var n7=m[kJ],Io=n7.length,VM=L[kJ]=[],xJ,L7=0;L7<Io;++L7)(xJ=n7[L7])&&z.call(xJ,xJ.__data__,L7,n7)&&VM.push(xJ);return new TG(L,this._parents)},
data:function(z,m){if(!z)return WV=Array(this.size()),L7=-1,this.each(function(q$){WV[++L7]=q$}),WV;
var p=m?a:J,L=this._parents,kJ=this._groups;typeof z!=="function"&&(z=V(z));for(var n7=kJ.length,Io=Array(n7),VM=Array(n7),xJ=Array(n7),L7=0;L7<n7;++L7){var wx=L[L7],n$=kJ[L7],lP=n$.length,WV=z.call(wx,wx&&wx.__data__,L7,L),Qa=WV.length,cs=VM[L7]=Array(Qa),dB=Io[L7]=Array(Qa);lP=xJ[L7]=Array(lP);p(wx,n$,cs,dB,lP,WV,m);n$=wx=0;for(var jW;wx<Qa;++wx)if(lP=cs[wx]){for(wx>=n$&&(n$=wx+1);!(jW=dB[n$])&&++n$<Qa;);lP._next=jW||null}}Io=new TG(Io,L);Io._enter=VM;Io._exit=xJ;return Io},
exit:function(){return new TG(this._exit||this._groups.map(U),this._parents)},
merge:function(z){var m=this._groups;z=z._groups;for(var p=m.length,L=Math.min(p,z.length),kJ=Array(p),n7=0;n7<L;++n7)for(var Io=m[n7],VM=z[n7],xJ=Io.length,L7=kJ[n7]=Array(xJ),wx,n$=0;n$<xJ;++n$)if(wx=Io[n$]||VM[n$])L7[n$]=wx;for(;n7<p;++n7)kJ[n7]=m[n7];return new TG(kJ,this._parents)},
order:function(){for(var z=this._groups,m=-1,p=z.length;++m<p;)for(var L=z[m],kJ=L.length-1,n7=L[kJ],Io;--kJ>=0;)if(Io=L[kJ])n7&&n7!==Io.nextSibling&&n7.parentNode.insertBefore(Io,n7),n7=Io;return this},
sort:function(z){function m(n$,lP){return n$&&lP?z(n$.__data__,lP.__data__):!n$-!lP}
z||(z=b);for(var p=this._groups,L=p.length,kJ=Array(L),n7=0;n7<L;++n7){for(var Io=p[n7],VM=Io.length,xJ=kJ[n7]=Array(VM),L7,wx=0;wx<VM;++wx)if(L7=Io[wx])xJ[wx]=L7;xJ.sort(m)}return(new TG(kJ,this._parents)).order()},
call:function(){var z=arguments[0];arguments[0]=this;z.apply(null,arguments);return this},
nodes:function(){var z=Array(this.size()),m=-1;this.each(function(){z[++m]=this});
return z},
node:function(){for(var z=this._groups,m=0,p=z.length;m<p;++m)for(var L=z[m],kJ=0,n7=L.length;kJ<n7;++kJ){var Io=L[kJ];if(Io)return Io}return null},
size:function(){var z=0;this.each(function(){++z});
return z},
empty:function(){return!this.node()},
each:function(z){for(var m=this._groups,p=0,L=m.length;p<L;++p)for(var kJ=m[p],n7=0,Io=kJ.length,VM;n7<Io;++n7)(VM=kJ[n7])&&z.call(VM,VM.__data__,n7,kJ);return this},
attr:function(z,m){var p=X(z);if(arguments.length<2){var L=this.node();return p.local?L.getAttributeNS(p.space,p.local):L.getAttribute(p)}return this.each((m==null?p.local?l:g:typeof m==="function"?p.local?P4:x:p.local?eH:S)(p,m))},
style:function(z,m,p){return arguments.length>1?this.each((m==null?C7:typeof m==="function"?Os:mu)(z,m,p==null?"":p)):YJ(this.node(),z)},
property:function(z,m){return arguments.length>1?this.each((m==null?ao:typeof m==="function"?Ro:bc)(z,m)):this.node()[z]},
text:function(z){return arguments.length?this.each(z==null?K7:(typeof z==="function"?dx:gx)(z)):this.node().textContent},
html:function(z){return arguments.length?this.each(z==null?tc:(typeof z==="function"?eq:Fa)(z)):this.node().innerHTML},
append:function(z){var m=typeof z==="function"?z:N(z);return this.select(function(){return this.appendChild(m.apply(this,arguments))})},
insert:function(z,m){var p=typeof z==="function"?z:N(z),L=m==null?Hk:typeof m==="function"?m:I(m);return this.select(function(){return this.insertBefore(p.apply(this,arguments),L.apply(this,arguments)||null)})},
remove:function(){return this.each(W3)},
clone:function(z){return this.select(z?Fl:gV)},
datum:function(z){return arguments.length?this.property("__data__",z):this.node().__data__},
on:function(z,m,p){var L=EA(z+""),kJ=L.length,n7;if(arguments.length<2){var Io=this.node().__on;if(Io)for(var VM=0,xJ=Io.length,L7;VM<xJ;++VM){var wx=0;for(L7=Io[VM];wx<kJ;++wx)if((n7=L[wx]).type===L7.type&&n7.name===L7.name)return L7.value}}else{Io=m?hc:mj;p==null&&(p=!1);for(wx=0;wx<kJ;++wx)this.each(Io(L[wx],m,p));return this}},
dispatch:function(z,m){return this.each((typeof m==="function"?lc:QF)(z,m))}};
var prq=0;OX.prototype=function(){return new OX}.prototype={constructor:OX,
get:function(z){for(var m=this._;!(m in z);)if(!(z=z.parentNode))return;return z[m]},
set:function(z,m){return z[this._]=m},
remove:function(z){return this._ in z&&delete z[this._]},
toString:function(){return this._}};
var X6=1/.7,$LK=/^#([0-9a-f]{3})$/,vXH=/^#([0-9a-f]{6})$/,bC6=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),YIa=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),gXq=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),EXm=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*\\)$"),
RGq=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),cIH=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*\\)$"),xda={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};
ij(WT,RK,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
ij(qz,mT,nA(WT,{brighter:function(z){z=z==null?X6:Math.pow(X6,z);return new qz(this.r*z,this.g*z,this.b*z,this.opacity)},
darker:function(z){z=z==null?.7:Math.pow(.7,z);return new qz(this.r*z,this.g*z,this.b*z,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"#"+M6(this.r)+M6(this.g)+M6(this.b)},
toString:function(){var z=this.opacity;z=isNaN(z)?1:Math.max(0,Math.min(1,z));return(z===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))+(z===1?")":", "+z+")")}}));
ij(EZ,iO,nA(WT,{brighter:function(z){z=z==null?X6:Math.pow(X6,z);return new EZ(this.h,this.s,this.l*z,this.opacity)},
darker:function(z){z=z==null?.7:Math.pow(.7,z);return new EZ(this.h,this.s,this.l*z,this.opacity)},
rgb:function(){var z=this.h%360+(this.h<0)*360,m=this.l,p=m+(m<.5?m:1-m)*(isNaN(z)||isNaN(this.s)?0:this.s);m=2*m-p;return new qz(xm(z>=240?z-240:z+120,m,p),xm(z,m,p),xm(z<120?z+240:z-120,m,p),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 qza=Math.PI/180,y3x=180/Math.PI,uJx=4/29,e_=6/29,wuP=3*e_*e_,SIV=e_*e_*e_;ij(Us,function(z,m,p,L){return arguments.length===1?o2(z):new Us(z,m,p,L==null?1:L)},nA(WT,{brighter:function(z){return new Us(this.l+18*(z==null?1:z),this.a,this.b,this.opacity)},
darker:function(z){return new Us(this.l-18*(z==null?1:z),this.a,this.b,this.opacity)},
rgb:function(){var z=(this.l+16)/116,m=isNaN(this.a)?z:z+this.a/500,p=isNaN(this.b)?z:z-this.b/200;m=.96422*Es(m);z=1*Es(z);p=.82521*Es(p);return new qz(NT(3.1338561*m-1.6168667*z-.4906146*p),NT(-.9787684*m+1.9161415*z+.033454*p),NT(.0719453*m-.2289914*z+1.4052427*p),this.opacity)}}));
ij(rx,nh,nA(WT,{brighter:function(z){return new rx(this.h,this.c,this.l+18*(z==null?1:z),this.opacity)},
darker:function(z){return new rx(this.h,this.c,this.l-18*(z==null?1:z),this.opacity)},
rgb:function(){return o2(this).rgb()}}));
var e06=1.78277*-.29227-.1347134789;ij(HV,I6,nA(WT,{brighter:function(z){z=z==null?X6:Math.pow(X6,z);return new HV(this.h,this.s,this.l*z,this.opacity)},
darker:function(z){z=z==null?.7:Math.pow(.7,z);return new HV(this.h,this.s,this.l*z,this.opacity)},
rgb:function(){var z=isNaN(this.h)?0:(this.h+120)*qza,m=+this.l,p=isNaN(this.s)?0:this.s*m*(1-m),L=Math.cos(z);z=Math.sin(z);return new qz(255*(m+p*(-.14861*L+1.78277*z)),255*(m+p*(-.29227*L+-.90649*z)),255*(m+1.97294*L*p),this.opacity)}}));
var Fmj=function p(m){function L(n7,Io){var VM=kJ((n7=mT(n7)).r,(Io=mT(Io)).r),xJ=kJ(n7.g,Io.g),L7=kJ(n7.b,Io.b),wx=vX(n7.opacity,Io.opacity);return function(n$){n7.r=VM(n$);n7.g=xJ(n$);n7.b=L7(n$);n7.opacity=wx(n$);return n7+""}}
var kJ=LY(m);L.gamma=p;return L}(1),gkB=oS(function(m){var p=m.length-1;
return function(L){var kJ=L<=0?L=0:L>=1?(L=1,p-1):Math.floor(L*p),n7=m[kJ],Io=m[kJ+1];return dV((L-kJ/p)*p,kJ>0?m[kJ-1]:2*n7-Io,n7,Io,kJ<p-1?m[kJ+2]:2*Io-n7)}});
oS(function(m){var p=m.length;return function(L){var kJ=Math.floor(((L%=1)<0?++L:L)*p);return dV((L-kJ/p)*p,m[(kJ+p-1)%p],m[kJ%p],m[(kJ+1)%p],m[(kJ+2)%p])}});
var J3z=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,z0M=new RegExp(J3z.source,"g"),khj=180/Math.PI,Km6={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},qy,BQs,MMx,d$u,R2A=EY(function(m){if(m==="none")return Km6;qy||(qy=document.createElement("DIV"),BQs=document.documentElement,MMx=document.defaultView);qy.style.transform=m;m=MMx.getComputedStyle(BQs.appendChild(qy),null).getPropertyValue("transform");BQs.removeChild(qy);m=m.slice(7,-1).split(",");return z_(+m[0],+m[1],+m[2],+m[3],
+m[4],+m[5])},"px, ","px)","deg)"),ctV=EY(function(m){if(m==null)return Km6;
d$u||(d$u=document.createElementNS("http://www.w3.org/2000/svg","g"));d$u.setAttribute("transform",m);if(!(m=d$u.transform.baseVal.consolidate()))return Km6;m=m.matrix;return z_(m.a,m.b,m.c,m.d,m.e,m.f)},", ",")",")");
th(pA);th(vX);c1(pA);c1(vX);i8(pA);var xAz=i8(vX),kI=0,cn=0,hJ=0,sRH,Sk,Wbf=0,$c=0,HDl=0,Rc=typeof performance==="object"&&performance.now?performance:Date,tMa=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(m){setTimeout(m,17)};
rT.prototype=cp.prototype={constructor:rT,restart:function(m,p,L){if(typeof m!=="function")throw new TypeError("ze");L=(L==null?pT():+L)+(p==null?0:+p);this._next||Sk===this||(Sk?Sk._next=this:sRH=this,Sk=this);this._call=m;this._time=L;hS()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,hS())}};
var j56=u("start","end","interrupt"),lz4=[],Sba=G4.prototype.constructor,KmZ=0,F6=G4.prototype;no.prototype=function(m){return G4().transition(m)}.prototype={constructor:no,
select:function(m){var p=this._name,L=this._id;typeof m!=="function"&&(m=I(m));for(var kJ=this._groups,n7=kJ.length,Io=Array(n7),VM=0;VM<n7;++VM)for(var xJ=kJ[VM],L7=xJ.length,wx=Io[VM]=Array(L7),n$,lP,WV=0;WV<L7;++WV)(n$=xJ[WV])&&(lP=m.call(n$,n$.__data__,WV,xJ))&&("__data__"in n$&&(lP.__data__=n$.__data__),wx[WV]=lP,aN4(wx[WV],p,L,WV,wx,tY(n$,L)));return new no(Io,this._parents,p,L)},
filter:function(m){typeof m!=="function"&&(m=Lm3(m));for(var p=this._groups,L=p.length,kJ=Array(L),n7=0;n7<L;++n7)for(var Io=p[n7],VM=Io.length,xJ=kJ[n7]=[],L7,wx=0;wx<VM;++wx)(L7=Io[wx])&&m.call(L7,L7.__data__,wx,Io)&&xJ.push(L7);return new no(kJ,this._parents,this._name,this._id)},
merge:function(m){if(m._id!==this._id)throw Error();var p=this._groups;m=m._groups;for(var L=p.length,kJ=Math.min(L,m.length),n7=Array(L),Io=0;Io<kJ;++Io)for(var VM=p[Io],xJ=m[Io],L7=VM.length,wx=n7[Io]=Array(L7),n$,lP=0;lP<L7;++lP)if(n$=VM[lP]||xJ[lP])wx[lP]=n$;for(;Io<L;++Io)n7[Io]=p[Io];return new no(n7,this._parents,this._name,this._id)},
selection:function(){return new Sba(this._groups,this._parents)},
transition:function(){for(var m=this._name,p=this._id,L=++KmZ,kJ=this._groups,n7=kJ.length,Io=0;Io<n7;++Io)for(var VM=kJ[Io],xJ=VM.length,L7,wx=0;wx<xJ;++wx)if(L7=VM[wx]){var n$=tY(L7,p);aN4(L7,m,L,wx,VM,{time:n$.time+n$.delay+n$.duration,delay:0,duration:n$.duration,ease:n$.ease})}return new no(kJ,this._parents,m,L)},
call:F6.call,nodes:F6.nodes,node:F6.node,size:F6.size,empty:F6.empty,each:F6.each,on:function(m,p){var L=this._id;return arguments.length<2?tY(this.node(),L).on.on(m):this.each(nfj(L,m,p))},
attr:function(m,p){var L=X(m),kJ=L==="transform"?ctV:XuF;return this.attrTween(m,typeof p==="function"?(L.local?u1c:wSq)(L,kJ,Z1M(this,"attr."+m,p)):p==null?(L.local?BZm:Kpx)(L):(L.local?qLA:xLh)(L,kJ,p+""))},
attrTween:function(m,p){var L="attr."+m;if(arguments.length<2)return(L=this.tween(L))&&L._value;if(p==null)return this.tween(L,null);if(typeof p!=="function")throw Error();var kJ=X(m);return this.tween(L,(kJ.local?yvT:eD4)(kJ,p))},
style:function(m,p,L){var kJ=m==="transform"?R2A:XuF;return p==null?this.styleTween(m,Wwa(m,kJ)).on("end.style."+m,sGx(m)):this.styleTween(m,typeof p==="function"?QGV(m,kJ,Z1M(this,"style."+m,p)):N9K(m,kJ,p+""),L)},
styleTween:function(m,p,L){var kJ="style."+m;if(arguments.length<2)return(kJ=this.tween(kJ))&&kJ._value;if(p==null)return this.tween(kJ,null);if(typeof p!=="function")throw Error();return this.tween(kJ,IS6(m,p,L==null?"":L))},
text:function(m){return this.tween("text",typeof m==="function"?rvm(Z1M(this,"text",m)):iy6(m==null?"":m+""))},
remove:function(){return this.on("end.remove",Hyq(this._id))},
tween:function(m,p){var L=this._id;if(arguments.length<2){L=tY(this.node(),L).tween;for(var kJ=0,n7=L.length,Io;kJ<n7;++kJ)if((Io=L[kJ]).name===m)return Io.value;return null}return this.each((p==null?LpH:McK)(L,m,p))},
delay:function(m){var p=this._id;return arguments.length?this.each((typeof m==="function"?ks6:tVB)(p,m)):tY(this.node(),p).delay},
duration:function(m){var p=this._id;return arguments.length?this.each((typeof m==="function"?P8A:XSm)(p,m)):tY(this.node(),p).duration},
ease:function(m){var p=this._id;return arguments.length?this.each(Fwq(p,m)):tY(this.node(),p).ease}};
var qll={time:null,delay:0,duration:250,ease:function(m){return((m*=2)<=1?m*m*m:(m-=2)*m*m+2)/2}};
G4.prototype.transition=function(m){var p;if(m instanceof no){var L=m._id;m=m._name}else L=++KmZ,(p=qll).time=pT(),m=m==null?null:m+"";for(var kJ=this._groups,n7=kJ.length,Io=0;Io<n7;++Io)for(var VM=kJ[Io],xJ=VM.length,L7,wx=0;wx<xJ;++wx)if(L7=VM[wx]){var n$=L7,lP=m,WV=L,Qa=wx,cs=VM,dB;if(!(dB=p))a:{dB=void 0;for(var jW=L;!(dB=L7.__transition)||!(dB=dB[jW]);)if(!(L7=L7.parentNode)){dB=(qll.time=pT(),qll);break a}}aN4(n$,lP,WV,Qa,cs,dB)}return new no(kJ,this._parents,m,L)};
["e","w"].map(puM);["n","s"].map(puM);"n e s w nw ne se sw".split(" ").map(puM);$A7.prototype=function(){return new $A7}.prototype={constructor:$A7,
moveTo:function(m,p){this._+="M"+(this._x0=this._x1=+m)+","+(this._y0=this._y1=+p)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(m,p){this._+="L"+(this._x1=+m)+","+(this._y1=+p)},
bezierCurveTo:function(m,p,L,kJ,n7,Io){this._+="C"+ +m+","+ +p+","+ +L+","+ +kJ+","+(this._x1=+n7)+","+(this._y1=+Io)},
rect:function(m,p,L,kJ){this._+="M"+(this._x0=this._x1=+m)+","+(this._y0=this._y1=+p)+"h"+ +L+"v"+ +kJ+"h"+-L+"Z"},
toString:function(){return this._}};
N4l.prototype=GhT.prototype={constructor:N4l,has:function(m){return" "+m in this},
get:function(m){return this[" "+m]},
set:function(m,p){this[" "+m]=p;return this},
remove:function(m){m=" "+m;return m in this&&delete this[m]},
clear:function(){for(var m in this)m[0]===" "&&delete this[m]},
keys:function(){var m=[],p;for(p in this)p[0]===" "&&m.push(p.slice(1));return m},
values:function(){var m=[],p;for(p in this)p[0]===" "&&m.push(this[p]);return m},
entries:function(){var m=[],p;for(p in this)p[0]===" "&&m.push({key:p.slice(1),value:this[p]});return m},
size:function(){var m=0,p;for(p in this)p[0]===" "&&++m;return m},
empty:function(){for(var m in this)if(m[0]===" ")return!1;return!0},
each:function(m){for(var p in this)p[0]===" "&&m(this[p],p.slice(1),this)}};
var gH=GhT.prototype;QRf.prototype=function(m,p){var L=new QRf;if(m instanceof QRf)m.each(function(Io){L.add(Io)});
else if(m){var kJ=-1,n7=m.length;if(p==null)for(;++kJ<n7;)L.add(m[kJ]);else for(;++kJ<n7;)L.add(p(m[kJ],kJ,m))}return L}.prototype={constructor:QRf,
has:gH.has,add:function(m){this[" "+m]=m;return this},
remove:gH.remove,clear:gH.clear,values:gH.keys,size:gH.size,empty:gH.empty,each:gH.each};var Wmj={},veM={},h2T=H16(",").parse,jJV=H16("\t").parse;s8x(h2T);s8x(jJV);var Kp=function(m,p,L){p=new b1y(p==null?dGh:p,L==null?OyV:L,NaN,NaN,NaN,NaN);return m==null?p:p.addAll(m)}.prototype=b1y.prototype;
Kp.copy=function(){var m=new b1y(this._x,this._y,this._x0,this._y0,this._x1,this._y1),p=this._root,L,kJ;if(!p)return m;if(!p.length)return m._root=Q8P(p),m;for(L=[{source:p,target:m._root=Array(4)}];p=L.pop();)for(var n7=0;n7<4;++n7)if(kJ=p.source[n7])kJ.length?L.push({source:kJ,target:p.target[n7]=Array(4)}):p.target[n7]=Q8P(kJ);return m};
Kp.add=function(m){var p=+this._x.call(null,m),L=+this._y.call(null,m);return NQc(this.cover(p,L),p,L,m)};
Kp.addAll=function(m){var p,L,kJ=m.length,n7,Io,VM=Array(kJ),xJ=Array(kJ),L7=Infinity,wx=Infinity,n$=-Infinity,lP=-Infinity;for(L=0;L<kJ;++L)isNaN(n7=+this._x.call(null,p=m[L]))||isNaN(Io=+this._y.call(null,p))||(VM[L]=n7,xJ[L]=Io,n7<L7&&(L7=n7),n7>n$&&(n$=n7),Io<wx&&(wx=Io),Io>lP&&(lP=Io));n$<L7&&(L7=this._x0,n$=this._x1);lP<wx&&(wx=this._y0,lP=this._y1);this.cover(L7,wx).cover(n$,lP);for(L=0;L<kJ;++L)NQc(this,VM[L],xJ[L],m[L]);return this};
Kp.cover=function(m,p){if(isNaN(m=+m)||isNaN(p=+p))return this;var L=this._x0,kJ=this._y0,n7=this._x1,Io=this._y1;if(isNaN(L))n7=(L=Math.floor(m))+1,Io=(kJ=Math.floor(p))+1;else if(L>m||m>n7||kJ>p||p>Io){var VM=n7-L,xJ=this._root,L7;switch(L7=(p<(kJ+Io)/2)<<1|m<(L+n7)/2){case 0:do{var wx=Array(4);wx[L7]=xJ;xJ=wx}while(VM*=2,n7=L+VM,Io=kJ+VM,m>n7||p>Io);break;case 1:do wx=Array(4),wx[L7]=xJ,xJ=wx;while(VM*=2,L=n7-VM,Io=kJ+VM,L>m||p>Io);break;case 2:do wx=Array(4),wx[L7]=xJ,xJ=wx;while(VM*=2,n7=L+VM,
kJ=Io-VM,m>n7||kJ>p);break;case 3:do wx=Array(4),wx[L7]=xJ,xJ=wx;while(VM*=2,L=n7-VM,kJ=Io-VM,L>m||kJ>p)}this._root&&this._root.length&&(this._root=xJ)}else return this;this._x0=L;this._y0=kJ;this._x1=n7;this._y1=Io;return this};
Kp.data=function(){var m=[];this.visit(function(p){if(!p.length){do m.push(p.data);while(p=p.next)}});
return m};
Kp.extent=function(m){return arguments.length?this.cover(+m[0][0],+m[0][1]).cover(+m[1][0],+m[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Kp.find=function(m,p,L){var kJ=this._x0,n7=this._y0,Io,VM,xJ,L7,wx=this._x1,n$=this._y1,lP=[],WV=this._root,Qa;WV&&lP.push(new M_(WV,kJ,n7,wx,n$));L==null?L=Infinity:(kJ=m-L,n7=p-L,wx=m+L,n$=p+L,L*=L);for(;Qa=lP.pop();)if(!(!(WV=Qa.node)||(Io=Qa.x0)>wx||(VM=Qa.y0)>n$||(xJ=Qa.x1)<kJ||(L7=Qa.y1)<n7))if(WV.length){Qa=(Io+xJ)/2;var cs=(VM+L7)/2;lP.push(new M_(WV[3],Qa,cs,xJ,L7),new M_(WV[2],Io,cs,Qa,L7),new M_(WV[1],Qa,VM,xJ,cs),new M_(WV[0],Io,VM,Qa,cs));if(WV=(p>=cs)<<1|m>=Qa)Qa=lP[lP.length-1],lP[lP.length-
1]=lP[lP.length-1-WV],lP[lP.length-1-WV]=Qa}else if(Qa=m-+this._x.call(null,WV.data),cs=p-+this._y.call(null,WV.data),Qa=Qa*Qa+cs*cs,Qa<L){var dB=Math.sqrt(L=Qa);kJ=m-dB;n7=p-dB;wx=m+dB;n$=p+dB;dB=WV.data}return dB};
Kp.remove=function(m){if(isNaN(L7=+this._x.call(null,m))||isNaN(wx=+this._y.call(null,m)))return this;var p,L=this._root,kJ,n7=this._x0,Io=this._y0,VM=this._x1,xJ=this._y1,L7,wx,n$,lP,WV,Qa,cs;if(!L)return this;if(L.length)for(;;){(WV=L7>=(n$=(n7+VM)/2))?n7=n$:VM=n$;(Qa=wx>=(lP=(Io+xJ)/2))?Io=lP:xJ=lP;if(!(p=L,L=L[cs=Qa<<1|WV]))return this;if(!L.length)break;if(p[cs+1&3]||p[cs+2&3]||p[cs+3&3]){var dB=p;var jW=cs}}for(;L.data!==m;)if(!(kJ=L,L=L.next))return this;(m=L.next)&&delete L.next;if(kJ)return m?
kJ.next=m:delete kJ.next,this;if(!p)return this._root=m,this;m?p[cs]=m:delete p[cs];(L=p[0]||p[1]||p[2]||p[3])&&L===(p[3]||p[2]||p[1]||p[0])&&!L.length&&(dB?dB[jW]=L:this._root=L);return this};
Kp.removeAll=function(m){for(var p=0,L=m.length;p<L;++p)this.remove(m[p]);return this};
Kp.root=function(){return this._root};
Kp.size=function(){var m=0;this.visit(function(p){if(!p.length){do++m;while(p=p.next)}});
return m};
Kp.visit=function(m){var p=[],L,kJ=this._root,n7,Io,VM,xJ,L7;for(kJ&&p.push(new M_(kJ,this._x0,this._y0,this._x1,this._y1));L=p.pop();)if(!m(kJ=L.node,Io=L.x0,VM=L.y0,xJ=L.x1,L7=L.y1)&&kJ.length){L=(Io+xJ)/2;var wx=(VM+L7)/2;(n7=kJ[3])&&p.push(new M_(n7,L,wx,xJ,L7));(n7=kJ[2])&&p.push(new M_(n7,Io,wx,L,L7));(n7=kJ[1])&&p.push(new M_(n7,L,VM,xJ,wx));(n7=kJ[0])&&p.push(new M_(n7,Io,VM,L,wx))}};
Kp.visitAfter=function(m){var p=[],L=[],kJ;for(this._root&&p.push(new M_(this._root,this._x0,this._y0,this._x1,this._y1));kJ=p.pop();){var n7=kJ.node;if(n7.length){var Io,VM=kJ.x0,xJ=kJ.y0,L7=kJ.x1,wx=kJ.y1,n$=(VM+L7)/2,lP=(xJ+wx)/2;(Io=n7[0])&&p.push(new M_(Io,VM,xJ,n$,lP));(Io=n7[1])&&p.push(new M_(Io,n$,xJ,L7,lP));(Io=n7[2])&&p.push(new M_(Io,VM,lP,n$,wx));(Io=n7[3])&&p.push(new M_(Io,n$,lP,L7,wx))}L.push(kJ)}for(;kJ=L.pop();)m(kJ.node,kJ.x0,kJ.y0,kJ.x1,kJ.y1);return this};
Kp.x=function(m){return arguments.length?(this._x=m,this):this._x};
Kp.y=function(m){return arguments.length?(this._y=m,this):this._y};
var mGV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;YzM.prototype=gel.prototype;gel.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 UAa,TQ3={"%":function(m,p){return(m*100).toFixed(p)},
b:function(m){return Math.round(m).toString(2)},
c:function(m){return m+""},
d:function(m){return Math.round(m).toString(10)},
e:function(m,p){return m.toExponential(p)},
f:function(m,p){return m.toFixed(p)},
g:function(m,p){return m.toPrecision(p)},
o:function(m){return Math.round(m).toString(8)},
p:function(m,p){return INj(m*100,p)},
r:INj,s:function(m,p){var L=IGs(m,p);if(!L)return m+"";var kJ=L[0];L=L[1];L=L-(UAa=Math.max(-8,Math.min(8,Math.floor(L/3)))*3)+1;var n7=kJ.length;return L===n7?kJ:L>n7?kJ+Array(L-n7+1).join("0"):L>0?kJ.slice(0,L)+"."+kJ.slice(L):"0."+Array(1-L).join("0")+IGs(m,Math.max(0,p+L-1))[0]},
X:function(m){return Math.round(m).toString(16).toUpperCase()},
x:function(m){return Math.round(m).toString(16)}},r3k="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),llc;
(function(m){return llc=AvH(m)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});vS.prototype={constructor:vS,reset:function(){this.s=this.t=0},
add:function(m){CMP(ODc,m,this.t);CMP(this,ODc.s,this.s);this.s?this.t+=ODc.t:this.s=ODc.t},
valueOf:function(){return this.s}};
var ODc=new vS,Jq=Math.PI,EK=Jq/2,BQX=Jq/4,L_6=Jq*2,w8o=Jq/180,HY=Math.abs,uUM=Math.atan,mAj=Math.atan2,RS=Math.cos,Ar=Math.sin,rXo=Math.sqrt;new vS;new vS;new vS;var yUy=new vS;(function(m,p,L,kJ){return function(n7){function Io(w4,Ir){m(w4,Ir)&&n7.point(w4,Ir)}
function VM(w4,Ir){WV.point(w4,Ir)}
function xJ(){eg.point=VM;WV.lineStart()}
function L7(){eg.point=Io;WV.lineEnd()}
function wx(w4,Ir){Cq.push([w4,Ir]);cs.point(w4,Ir)}
function n$(){cs.lineStart();Cq=[]}
function lP(){wx(Cq[0][0],Cq[0][1]);cs.lineEnd();var w4=cs.clean(),Ir=Qa.result(),lE=Ir.length,NQ;Cq.pop();jW.push(Cq);Cq=null;if(lE)if(w4&1){if(lE=Ir[0],(Ir=lE.length-1)>0){dB||(n7.polygonStart(),dB=!0);n7.lineStart();for(w4=0;w4<Ir;++w4)n7.point((NQ=lE[w4])[0],NQ[1]);n7.lineEnd()}}else lE>1&&w4&2&&Ir.push(Ir.pop().concat(Ir.shift())),q$.push(Ir.filter(DGT))}
var WV=p(n7),Qa=zDV(),cs=p(Qa),dB=!1,jW,q$,Cq,eg={point:Io,lineStart:xJ,lineEnd:L7,polygonStart:function(){eg.point=wx;eg.lineStart=n$;eg.lineEnd=lP;q$=[];jW=[]},
polygonEnd:function(){eg.point=Io;eg.lineStart=xJ;eg.lineEnd=L7;var w4=q$,Ir=w4.length;var lE=-1;for(var NQ=0,Ax,H3;++lE<Ir;)NQ+=w4[lE].length;for(Ax=Array(NQ);--Ir>=0;)for(H3=w4[Ir],lE=H3.length;--lE>=0;)Ax[--NQ]=H3[lE];q$=Ax;w4=jW;Ir=kJ[0];NQ=kJ[1];var ya=Ar(NQ);lE=[Ar(Ir),-RS(Ir),0];H3=Ax=0;yUy.reset();ya===1?NQ=EK+1E-6:ya===-1&&(NQ=-EK-1E-6);ya=0;for(var QH=w4.length;ya<QH;++ya)if(Aq=(M$=w4[ya]).length){var M$,Aq,lY=M$[Aq-1],io=lY[0],fH=lY[1]/2+BQX,oCJ=Ar(fH),xAc=RS(fH);for(fH=0;fH<Aq;++fH,io=
eSM,oCJ=qla,xAc=wK,lY=V7u){var V7u=M$[fH],eSM=V7u[0];wK=V7u[1]/2+BQX;var qla=Ar(wK),wK=RS(wK),GF=eSM-io,kws=GF>=0?1:-1,thf=kws*GF,fGu=thf>Jq;oCJ*=qla;yUy.add(mAj(oCJ*kws*Ar(thf),xAc*wK+oCJ*RS(thf)));Ax+=fGu?GF+kws*L_6:GF;fGu^io>=Ir^eSM>=Ir&&(lY=O1c(dAa(lY),dAa(V7u)),oe$(lY),io=O1c(lE,lY),oe$(io),io=(fGu^GF>=0?-1:1)*iDu(io[2]),NQ>io||NQ===io&&(lY[0]||lY[1]))&&(H3+=fGu^GF>=0?1:-1)}}w4=(Ax<-1E-6||Ax<1E-6&&yUy<-1E-6)^H3&1;q$.length?(dB||(n7.polygonStart(),dB=!0),aSB(q$,ZyT,w4,L,n7)):w4&&(dB||(n7.polygonStart(),
dB=!0),n7.lineStart(),L(null,null,1,n7),n7.lineEnd());dB&&(n7.polygonEnd(),dB=!1);q$=jW=null},
sphere:function(){n7.polygonStart();n7.lineStart();L(null,null,1,n7);n7.lineEnd();n7.polygonEnd()}};
return eg}})(function(){return!0},function(m){var p=NaN,L=NaN,kJ=NaN,n7;
return{lineStart:function(){m.lineStart();n7=1},
point:function(Io,VM){var xJ=Io>0?Jq:-Jq,L7=HY(Io-p);if(HY(L7-Jq)<1E-6)m.point(p,L=(L+VM)/2>0?EK:-EK),m.point(kJ,L),m.lineEnd(),m.lineStart(),m.point(xJ,L),m.point(Io,L),n7=0;else if(kJ!==xJ&&L7>=Jq){HY(p-kJ)<1E-6&&(p-=kJ*1E-6);HY(Io-xJ)<1E-6&&(Io-=xJ*1E-6);L7=p;var wx=L,n$=Io,lP,WV,Qa=Ar(L7-n$);L=HY(Qa)>1E-6?uUM((Ar(wx)*(WV=RS(VM))*Ar(n$)-Ar(VM)*(lP=RS(wx))*Ar(L7))/(lP*WV*Qa)):(wx+VM)/2;m.point(kJ,L);m.lineEnd();m.lineStart();m.point(xJ,L);n7=0}m.point(p=Io,L=VM);kJ=xJ},
lineEnd:function(){m.lineEnd();p=L=NaN},
clean:function(){return 2-n7}}},function(m,p,L,kJ){m==null?(L*=EK,kJ.point(-Jq,L),kJ.point(0,L),kJ.point(Jq,L),kJ.point(Jq,0),kJ.point(Jq,-L),kJ.point(0,-L),kJ.point(-Jq,-L),kJ.point(-Jq,0),kJ.point(-Jq,L)):HY(m[0]-p[0])>1E-6?(m=m[0]<p[0]?Jq:-Jq,L=L*m/2,kJ.point(-m,L),kJ.point(0,L),kJ.point(m,L)):kJ.point(p[0],p[1])},[-Jq,
-EK]);new vS;new vS;new vS;new vS;Eez.prototype={constructor:Eez,point:function(m,p){this.stream.point(m,p)},
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()}};
RS(30*w8o);(function(m){return function(p){var L=new Eez,kJ;for(kJ in m)L[kJ]=m[kJ];L.stream=p;return L}})({point:function(m,p){this.stream.point(m*w8o,p*w8o)}});
fNT(function(m){return rXo(2/(1+m))}).invert=jk(function(m){return 2*iDu(m/2)});
fNT(function(m){return(m=m>1?0:m<-1?Jq:Math.acos(m))&&m/Ar(m)}).invert=jk(function(m){return m});
rXo(3);jk(uUM);jk(iDu);jk(function(m){return 2*uUM(m)});
lW.prototype=A3F.prototype={constructor:lW,count:function(){return this.eachAfter(pST)},
each:function(m){var p,L=[this],kJ;do{var n7=L.reverse();for(L=[];p=n7.pop();)if(m(p),p=p.children){var Io=0;for(kJ=p.length;Io<kJ;++Io)L.push(p[Io])}}while(L.length);return this},
eachAfter:function(m){for(var p,L=[this],kJ=[],n7,Io;p=L.pop();)if(kJ.push(p),p=p.children)for(n7=0,Io=p.length;n7<Io;++n7)L.push(p[n7]);for(;p=kJ.pop();)m(p);return this},
eachBefore:function(m){for(var p,L=[this],kJ;p=L.pop();)if(m(p),p=p.children)for(kJ=p.length-1;kJ>=0;--kJ)L.push(p[kJ]);return this},
sum:function(m){return this.eachAfter(function(p){for(var L=+m(p.data)||0,kJ=p.children,n7=kJ&&kJ.length;--n7>=0;)L+=kJ[n7].value;p.value=L})},
sort:function(m){return this.eachBefore(function(p){p.children&&p.children.sort(m)})},
path:function(m){var p=this;var L=p;var kJ=m;if(L!==kJ){var n7=L.ancestors(),Io=kJ.ancestors(),VM=null;L=n7.pop();for(kJ=Io.pop();L===kJ;)VM=L,L=n7.pop(),kJ=Io.pop();L=VM}for(kJ=[p];p!==L;)p=p.parent,kJ.push(p);for(p=kJ.length;m!==L;)kJ.splice(p,0,m),m=m.parent;return kJ},
ancestors:function(){for(var m=this,p=[m];m=m.parent;)p.push(m);return p},
links:function(){var m=this,p=[];m.each(function(L){L!==m&&p.push({source:L.parent,target:L})});
return p},
copy:function(){return A3F(this).eachBefore(byV)}};
(function(m,p){this._=m;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=p}).prototype=Object.create(lW.prototype);
var R0M=new Date,c3l=new Date,w86=UM(function(){},function(m,p){m.setTime(+m+p)},function(m,p){return p-m});
w86.every=function(m){m=Math.floor(m);return isFinite(m)&&m>0?m>1?UM(function(p){p.setTime(Math.floor(p/m)*m)},function(p,L){p.setTime(+p+L*m)},function(p,L){return(L-p)/m}):w86:null};
UM(function(m){m.setTime(Math.floor(m/1E3)*1E3)},function(m,p){m.setTime(+m+p*1E3)},function(m,p){return(p-m)/1E3},function(m){return m.getUTCSeconds()});
UM(function(m){m.setTime(Math.floor(m/6E4)*6E4)},function(m,p){m.setTime(+m+p*6E4)},function(m,p){return(p-m)/6E4},function(m){return m.getMinutes()});
UM(function(m){var p=m.getTimezoneOffset()*6E4%36E5;p<0&&(p+=36E5);m.setTime(Math.floor((+m-p)/36E5)*36E5+p)},function(m,p){m.setTime(+m+p*36E5)},function(m,p){return(p-m)/36E5},function(m){return m.getHours()});
var aNk=UM(function(m){m.setHours(0,0,0,0)},function(m,p){m.setDate(m.getDate()+p)},function(m,p){return(p-m-(p.getTimezoneOffset()-m.getTimezoneOffset())*6E4)/864E5},function(m){return m.getDate()-1}),bOK=b_(0),h04=b_(1);
b_(2);b_(3);var j8J=b_(4);b_(5);b_(6);UM(function(m){m.setDate(1);m.setHours(0,0,0,0)},function(m,p){m.setMonth(m.getMonth()+p)},function(m,p){return p.getMonth()-m.getMonth()+(p.getFullYear()-m.getFullYear())*12},function(m){return m.getMonth()});
var tl=UM(function(m){m.setMonth(0,1);m.setHours(0,0,0,0)},function(m,p){m.setFullYear(m.getFullYear()+p)},function(m,p){return p.getFullYear()-m.getFullYear()},function(m){return m.getFullYear()});
tl.every=function(m){return isFinite(m=Math.floor(m))&&m>0?UM(function(p){p.setFullYear(Math.floor(p.getFullYear()/m)*m);p.setMonth(0,1);p.setHours(0,0,0,0)},function(p,L){p.setFullYear(p.getFullYear()+L*m)}):null};
UM(function(m){m.setUTCSeconds(0,0)},function(m,p){m.setTime(+m+p*6E4)},function(m,p){return(p-m)/6E4},function(m){return m.getUTCMinutes()});
UM(function(m){m.setUTCMinutes(0,0,0)},function(m,p){m.setTime(+m+p*36E5)},function(m,p){return(p-m)/36E5},function(m){return m.getUTCHours()});
var z0T=UM(function(m){m.setUTCHours(0,0,0,0)},function(m,p){m.setUTCDate(m.getUTCDate()+p)},function(m,p){return(p-m)/864E5},function(m){return m.getUTCDate()-1}),Yb6=Yc(0),Szf=Yc(1);
Yc(2);Yc(3);var lNc=Yc(4);Yc(5);Yc(6);UM(function(m){m.setUTCDate(1);m.setUTCHours(0,0,0,0)},function(m,p){m.setUTCMonth(m.getUTCMonth()+p)},function(m,p){return p.getUTCMonth()-m.getUTCMonth()+(p.getUTCFullYear()-m.getUTCFullYear())*12},function(m){return m.getUTCMonth()});
var PK=UM(function(m){m.setUTCMonth(0,1);m.setUTCHours(0,0,0,0)},function(m,p){m.setUTCFullYear(m.getUTCFullYear()+p)},function(m,p){return p.getUTCFullYear()-m.getUTCFullYear()},function(m){return m.getUTCFullYear()});
PK.every=function(m){return isFinite(m=Math.floor(m))&&m>0?UM(function(p){p.setUTCFullYear(Math.floor(p.getUTCFullYear()/m)*m);p.setUTCMonth(0,1);p.setUTCHours(0,0,0,0)},function(p,L){p.setUTCFullYear(p.getUTCFullYear()+L*m)}):null};
var J3c={"-":"",_:" ",0:"0"},dk=/^\s*\d+/,vkA=/^%/,$Bx=/[\\^$*+?|[\]().{}]/g,m$u;(function(m){m$u=gfV(m);$ax=m$u.utcFormat;vdG=m$u.utcParse;return m$u})({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||$ax("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||vdG("%Y-%m-%dT%H:%M:%S.%LZ");PI("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
PI("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");PI("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");PI("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");PI("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");PI("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");PI("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
PI("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");PI("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");PI("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");PI("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");PI("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var MKH=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(PI);KD(MKH);var K_6=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(PI);KD(K_6);var BPT=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(PI);KD(BPT);var xBm=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(PI);
KD(xBm);var qjm=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(PI);KD(qjm);var wJj=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(PI);KD(wJj);var usT=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(PI);KD(usT);var y5h=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(PI);KD(y5h);var ezA=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(PI);KD(ezA);var kxm=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(PI);KD(kxm);var tnc=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(PI);KD(tnc);var PhH=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(PI);KD(PhH);var XJx=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(PI);KD(XJx);var Foj=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(PI);KD(Foj);var Gxh=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(PI);KD(Gxh);var nrK=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(PI);KD(nrK);var HMh=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(PI);KD(HMh);var Wom=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(PI);KD(Wom);var sf6=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(PI);KD(sf6);var NDT=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(PI);KD(NDT);var Qfa=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(PI);KD(Qfa);var I96=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(PI);KD(I96);var iMj=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(PI);KD(iMj);var r5j=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(PI);KD(r5j);var UFm=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(PI);KD(UFm);var TDa=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(PI);KD(TDa);var Cha=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(PI);KD(Cha);xAz(I6(300,.5,0),I6(-240,.5,1));xAz(I6(-100,.75,.35),I6(80,1.5,.8));xAz(I6(260,.75,.35),I6(80,1.5,.8));I6();mT();COM(PI("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
COM(PI("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
COM(PI("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
COM(PI("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
R0T.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(m,p){m=+m;p=+p;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(m,p):this._context.moveTo(m,p);break;case 1:this._point=2;default:this._context.lineTo(m,p)}}};
(function(m){function p(L){return new c3a(m(L))}
p._curve=m;return p})(function(m){return new R0T(m)});
c3a.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(m,p){this._curve.point(p*Math.sin(m),p*-Math.cos(m))}};
MMj.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:Lmf(this,this._t0,h0k(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(m,p){var L=NaN;m=+m;p=+p;if(m!==this._x1||p!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(m,p):this._context.moveTo(m,p);break;case 1:this._point=2;break;case 2:this._point=3;Lmf(this,h0k(this,L=Sz3(this,m,p)),L);break;default:Lmf(this,this._t0,L=Sz3(this,m,p))}this._x0=this._x1;this._x1=m;this._y0=this._y1;this._y1=p;this._t0=L}}};
(function(m){this._context=new j8T(m)}.prototype=Object.create(MMj.prototype)).point=function(m,p){MMj.prototype.point.call(this,p,m)};
j8T.prototype={moveTo:function(m,p){this._context.moveTo(p,m)},
closePath:function(){this._context.closePath()},
lineTo:function(m,p){this._context.lineTo(p,m)},
bezierCurveTo:function(m,p,L,kJ,n7,Io){this._context.bezierCurveTo(p,m,kJ,L,Io,n7)}};
Bn.prototype={constructor:Bn,scale:function(m){return m===1?this:new Bn(this.k*m,this.x,this.y)},
translate:function(m,p){return m===0&p===0?this:new Bn(this.k,this.x+this.k*m,this.y+this.k*p)},
apply:function(m){return[m[0]*this.k+this.x,m[1]*this.k+this.y]},
invert:function(m){return[(m[0]-this.x)/this.k,(m[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Bn(1,0,0);naM=RK;gI.svg=gI.svg;gI.xhtml=gI.xhtml;gI.xlink=gI.xlink;gI.xml=gI.xml;gI.xmlns=gI.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 bLj="hammer_"+(Math.random()*1E6|0),Y6T=function(){var q=document||document;if(!q[bLj]){var w=function(){(function(u,y,e,t){function X(Us,p7,Es){return setTimeout(U(Us,Es),p7)}
function G(Us,p7,Es){return Array.isArray(Us)?(n(Us,Es[p7],Es),!0):!1}
function n(Us,p7,Es){var NT;if(Us)if(Us.forEach)Us.forEach(p7,Es);else if(Us.length!==t){var k6=0;for(NT=Us.length;k6<NT;k6++)p7.call(Es,Us[k6],k6,Us)}else for(k6 in Us)Us.hasOwnProperty(k6)&&p7.call(Es,Us[k6],k6,Us)}
function N(Us,p7,Es){for(var NT=Object.keys(p7),k6=0,ma=NT.length;k6<ma;k6++)if(!Es||Es&&Us[NT[k6]]===t)Us[NT[k6]]=p7[NT[k6]];return Us}
function Q(Us,p7){return N(Us,p7,!0)}
function I(Us,p7,Es){p7=p7.prototype;var NT=Us.prototype=Object.create(p7);NT.constructor=Us;NT._super=p7;Es&&N(NT,Es)}
function U(Us,p7){return function(){return Us.apply(p7,arguments)}}
function d(Us,p7){return typeof Us=="function"?Us.apply(p7?p7[0]||t:t,p7):Us}
function V(Us,p7,Es){n(a(p7),function(NT){Us.addEventListener(NT,Es,!1)})}
function J(Us,p7,Es){n(a(p7),function(NT){Us.removeEventListener(NT,Es,!1)})}
function a(Us){return Us.trim().split(/\s+/g)}
function b(Us,p7,Es){if(Us.indexOf&&!Es)return Us.indexOf(p7);for(var NT=0,k6=Us.length;NT<k6;NT++)if(Es&&Us[NT][Es]==p7||!Es&&Us[NT]===p7)return NT;return-1}
function g(Us,p7,Es){for(var NT=[],k6=[],ma=0,nh=Us.length;ma<nh;ma++){var rx=p7?Us[ma][p7]:Us[ma];b(k6,rx)<0&&NT.push(Us[ma]);k6[ma]=rx}Es&&(NT=p7?NT.sort(function(I6,HV){return I6[p7]>HV[p7]}):NT.sort());
return NT}
function l(Us,p7){for(var Es,NT=p7[0].toUpperCase()+p7.slice(1),k6=0,ma=lc.length;k6<ma;k6++)if(Es=(Es=lc[k6])?Es+NT:p7,Es in Us)return Es;return t}
function S(Us,p7){var Es=this;this.manager=Us;this.callback=p7;this.element=Us.element;this.target=Us.options.inputTarget;this.domHandler=function(NT){d(Us.options.enable,[Us])&&Es.handler(NT)};
this.evEl&&V(this.element,this.evEl,this.domHandler);this.evTarget&&V(this.target,this.evTarget,this.domHandler);this.evWin&&V(u,this.evWin,this.domHandler)}
function eH(Us){var p7;Uq?p7=bc:TC?p7=Ro:RK?p7=K7:p7=ao;return new p7(Us,x)}
function x(Us,p7,Es){var NT=Es.pointers.length,k6=Es.changedPointers.length,ma=p7&1&&NT-k6===0;Es.isFirst=!!ma;Es.isFinal=!!(p7&12&&NT-k6===0);ma&&(Us.session={});Es.eventType=p7;p7=Us.session;NT=Es.pointers;k6=NT.length;p7.firstInput||(p7.firstInput=P4(Es));k6>1&&!p7.firstMultiple?p7.firstMultiple=P4(Es):k6===1&&(p7.firstMultiple=!1);ma=p7.firstInput;var nh=(k6=p7.firstMultiple)?k6.center:ma.center,rx=Es.center=C7(NT);Es.timeStamp=ij();Es.deltaTime=Es.timeStamp-ma.timeStamp;Es.angle=YJ(nh,rx);Es.distance=
Os(nh,rx);ma=Es.center;nh=p7.offsetDelta||{};rx=p7.prevDelta||{};var I6=p7.prevInput||{};if(Es.eventType===1||I6.eventType===4)rx=p7.prevDelta={x:I6.deltaX||0,y:I6.deltaY||0},nh=p7.offsetDelta={x:ma.x,y:ma.y};Es.deltaX=rx.x+(ma.x-nh.x);Es.deltaY=rx.y+(ma.y-nh.y);Es.offsetDirection=mu(Es.deltaX,Es.deltaY);k6?(ma=k6.pointers,ma=Os(NT[0],NT[1],mT)/Os(ma[0],ma[1],mT)):ma=1;Es.scale=ma;k6?(k6=k6.pointers,NT=YJ(NT[1],NT[0],mT)-YJ(k6[1],k6[0],mT)):NT=0;Es.rotation=NT;nh=p7.lastInterval||Es;NT=Es.timeStamp-
nh.timeStamp;Es.eventType!=8&&(NT>25||nh.velocity===t)?(ma=nh.deltaX-Es.deltaX,nh=nh.deltaY-Es.deltaY,rx=ma/NT||0,I6=nh/NT||0,NT=rx,k6=I6,rx=OX(rx)>OX(I6)?rx:I6,ma=mu(ma,nh),p7.lastInterval=Es):(rx=nh.velocity,NT=nh.velocityX,k6=nh.velocityY,ma=nh.direction);Es.velocity=rx;Es.velocityX=NT;Es.velocityY=k6;Es.direction=ma;p7=Us.element;a:{for(NT=Es.srcEvent.target;NT;){if(NT==p7){NT=!0;break a}NT=NT.parentNode}NT=!1}NT&&(p7=Es.srcEvent.target);Es.target=p7;Us.emit("hammer.input",Es);Us.recognize(Es);
Us.session.prevInput=Es}
function P4(Us){for(var p7=[],Es=0;Es<Us.pointers.length;Es++)p7[Es]={clientX:G4(Us.pointers[Es].clientX),clientY:G4(Us.pointers[Es].clientY)};return{timeStamp:ij(),pointers:p7,center:C7(p7),deltaX:Us.deltaX,deltaY:Us.deltaY}}
function C7(Us){var p7=Us.length;if(p7===1)return{x:G4(Us[0].clientX),y:G4(Us[0].clientY)};for(var Es=0,NT=0,k6=0;k6<p7;k6++)Es+=Us[k6].clientX,NT+=Us[k6].clientY;return{x:G4(Es/p7),y:G4(NT/p7)}}
function mu(Us,p7){return Us===p7?1:OX(Us)>=OX(p7)?Us>0?2:4:p7>0?8:16}
function Os(Us,p7,Es){Es||(Es=R6);var NT=p7[Es[0]]-Us[Es[0]];Us=p7[Es[1]]-Us[Es[1]];return Math.sqrt(NT*NT+Us*Us)}
function YJ(Us,p7,Es){Es||(Es=R6);return Math.atan2(p7[Es[1]]-Us[Es[1]],p7[Es[0]]-Us[Es[0]])*180/Math.PI}
function ao(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;S.apply(this,arguments)}
function bc(){this.evEl=W2;this.evWin=iO;S.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Ro(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};S.apply(this,arguments)}
function K7(){S.apply(this,arguments);var Us=U(this.handler,this);this.touch=new Ro(this.manager,Us);this.mouse=new ao(this.manager,Us)}
function gx(Us,p7){this.manager=Us;this.set(p7)}
function dx(Us){if(Us.indexOf("none")>-1)return"none";var p7=Us.indexOf("pan-x")>-1,Es=Us.indexOf("pan-y")>-1;return p7&&Es?"pan-x pan-y":p7||Es?p7?"pan-x":"pan-y":Us.indexOf("manipulation")>-1?"manipulation":"auto"}
function tc(Us){this.id=nA++;this.manager=null;this.options=Q(Us||{},this.defaults);Us=this.options.enable;this.options.enable=Us===t?!0:Us;this.state=1;this.simultaneous={};this.requireFail=[]}
function Fa(Us){return Us==16?"down":Us==8?"up":Us==2?"left":Us==4?"right":""}
function eq(Us,p7){return(p7=p7.manager)?p7.get(Us):Us}
function Hk(){tc.apply(this,arguments)}
function W3(){Hk.apply(this,arguments);this.pY=this.pX=null}
function gV(){Hk.apply(this,arguments)}
function Fl(){tc.apply(this,arguments);this._input=this._timer=null}
function C$(){Hk.apply(this,arguments)}
function ZZ(){Hk.apply(this,arguments)}
function EA(){tc.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function mj(Us,p7){p7=p7||{};var Es=p7.recognizers;p7.recognizers=Es===t?mj.defaults.preset:Es;return new hc(Us,p7)}
function hc(Us,p7){p7=p7||{};this.options=Q(p7,mj.defaults);this.options.inputTarget=this.options.inputTarget||Us;this.handlers={};this.session={};this.recognizers=[];this.element=Us;this.input=eH(this);this.touchAction=new gx(this,this.options.touchAction);jR(this,!0);n(p7.recognizers,function(Es){var NT=this.add(new Es[0](Es[1]));Es[2]&&NT.recognizeWith(Es[2]);Es[3]&&NT.requireFailure(Es[2])},this)}
function jR(Us,p7){var Es=Us.element;n(Us.options.cssProps,function(NT,k6){Es.style[l(Es.style,k6)]=p7?NT:""})}
function QF(Us,p7){var Es=y.createEvent("Event");Es.initEvent(Us,!0,!0);Es.gesture=p7;p7.target.dispatchEvent(Es)}
var lc=" webkit moz MS ms o".split(" "),TG=y.createElement("div"),G4=Math.round,OX=Math.abs,ij=Date.now,nA=1,WT=/mobile|tablet|ip(ad|hone|od)|android/i,RK="ontouchstart"in u,Uq=l(u,"PointerEvent")!==t,TC=RK&&WT.test(navigator.userAgent),R6=["x","y"],mT=["clientX","clientY"];S.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(u,this.evWin,this.domHandler)}};
var qz={mousedown:1,mousemove:2,mouseup:4};I(ao,S,{handler:function(Us){var p7=qz[Us.type];p7&1&&Us.button===0&&(this.pressed=!0);p7&2&&Us.which!==1&&(p7=4);this.pressed&&this.allow&&(p7&4&&(this.pressed=!1),this.callback(this.manager,p7,{pointers:[Us],changedPointers:[Us],pointerType:"mouse",srcEvent:Us}))}});
var M6={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},IR={2:"touch",3:"pen",4:"mouse",5:"kinect"},W2="pointerdown",iO="pointermove pointerup pointercancel";u.MSPointerEvent&&(W2="MSPointerDown",iO="MSPointerMove MSPointerUp MSPointerCancel");I(bc,S,{handler:function(Us){var p7=this.store,Es=!1,NT=Us.type.toLowerCase().replace("ms","");NT=M6[NT];var k6=IR[Us.pointerType]||Us.pointerType;NT&1&&(Us.button===0||k6=="touch")?p7.push(Us):NT&12&&(Es=!0);var ma=b(p7,Us.pointerId,"pointerId");
ma<0||(p7[ma]=Us,this.callback(this.manager,NT,{pointers:p7,changedPointers:[Us],pointerType:k6,srcEvent:Us}),Es&&p7.splice(ma,1))}});
var EZ={touchstart:1,touchmove:2,touchend:4,touchcancel:8};I(Ro,S,{handler:function(Us){var p7=EZ[Us.type];var Es=Array.prototype.slice.call(Us.touches,0);var NT=this.targetIds;if(p7&3&&Es.length===1)NT[Es[0].identifier]=!0,NT=[Es,Es];else{var k6,ma=Array.prototype.slice.call(Us.targetTouches,0),nh=Array.prototype.slice.call(Us.changedTouches,0),rx=[];if(p7===1)for(Es=0,k6=ma.length;Es<k6;Es++)NT[ma[Es].identifier]=!0;Es=0;for(k6=nh.length;Es<k6;Es++)NT[nh[Es].identifier]&&rx.push(nh[Es]),p7&12&&
delete NT[nh[Es].identifier];NT=rx.length?[g(ma.concat(rx),"identifier",!0),rx]:void 0}NT&&this.callback(this.manager,p7,{pointers:NT[0],changedPointers:NT[1],pointerType:"touch",srcEvent:Us})}});
I(K7,S,{handler:function(Us,p7,Es){var NT=Es.pointerType=="mouse";if(Es.pointerType=="touch")this.mouse.allow=!1;else if(NT&&!this.mouse.allow)return;p7&12&&(this.mouse.allow=!0);this.callback(Us,p7,Es)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var xm=l(TG.style,"touchAction"),o2=xm!==t;gx.prototype={set:function(Us){Us=="compute"&&(Us=this.compute());o2&&(this.manager.element.style[xm]=Us);this.actions=Us.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var Us=[];n(this.manager.recognizers,function(p7){d(p7.options.enable,[p7])&&(Us=Us.concat(p7.getTouchAction()))});
return dx(Us.join(" "))},
preventDefaults:function(Us){if(!o2){var p7=Us.srcEvent;Us=Us.offsetDirection;if(this.manager.session.prevented)p7.preventDefault();else{var Es=this.actions,NT=Es.indexOf("none")>-1,k6=Es.indexOf("pan-y")>-1;Es=Es.indexOf("pan-x")>-1;if(NT||k6&&Es||k6&&Us&6||Es&&Us&24)return this.preventSrc(p7)}}},
preventSrc:function(Us){this.manager.session.prevented=!0;Us.preventDefault()}};
tc.prototype={defaults:{},set:function(Us){N(this.options,Us);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(Us){if(G(Us,"recognizeWith",this))return this;var p7=this.simultaneous;Us=eq(Us,this);p7[Us.id]||(p7[Us.id]=Us,Us.recognizeWith(this));return this},
dropRecognizeWith:function(Us){if(G(Us,"dropRecognizeWith",this))return this;Us=eq(Us,this);delete this.simultaneous[Us.id];return this},
requireFailure:function(Us){if(G(Us,"requireFailure",this))return this;var p7=this.requireFail;Us=eq(Us,this);b(p7,Us)===-1&&(p7.push(Us),Us.requireFailure(this));return this},
dropRequireFailure:function(Us){if(G(Us,"dropRequireFailure",this))return this;Us=eq(Us,this);Us=b(this.requireFail,Us);Us>-1&&this.requireFail.splice(Us,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(Us){return!!this.simultaneous[Us.id]},
emit:function(Us){function p7(k6){Es.manager.emit(Es.options.event+(k6?NT&16?"cancel":NT&8?"end":NT&4?"move":NT&2?"start":"":""),Us)}
var Es=this,NT=this.state;NT<8&&p7(!0);p7();NT>=8&&p7(!0)},
tryEmit:function(Us){if(this.canEmit())return this.emit(Us);this.state=32},
canEmit:function(){for(var Us=0;Us<this.requireFail.length;Us++)if(!(this.requireFail[Us].state&33))return!1;return!0},
recognize:function(Us){Us=N({},Us);d(this.options.enable,[this,Us])?(this.state&56&&(this.state=1),this.state=this.process(Us),this.state&30&&this.tryEmit(Us)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
I(Hk,tc,{defaults:{pointers:1},attrTest:function(Us){var p7=this.options.pointers;return p7===0||Us.pointers.length===p7},
process:function(Us){var p7=this.state,Es=Us.eventType,NT=p7&6;Us=this.attrTest(Us);return NT&&(Es&8||!Us)?p7|16:NT||Us?Es&4?p7|8:p7&2?p7|4:2:32}});
I(W3,Hk,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var Us=this.options.direction;if(Us===30)return["none"];var p7=[];Us&6&&p7.push("pan-y");Us&24&&p7.push("pan-x");return p7},
directionTest:function(Us){var p7=this.options,Es=!0,NT=Us.distance,k6=Us.direction,ma=Us.deltaX,nh=Us.deltaY;k6&p7.direction||(p7.direction&6?(k6=ma===0?1:ma<0?2:4,Es=ma!=this.pX,NT=Math.abs(Us.deltaX)):(k6=nh===0?1:nh<0?8:16,Es=nh!=this.pY,NT=Math.abs(Us.deltaY)));Us.direction=k6;return Es&&NT>p7.threshold&&k6&p7.direction},
attrTest:function(Us){return Hk.prototype.attrTest.call(this,Us)&&(this.state&2||!(this.state&2)&&this.directionTest(Us))},
emit:function(Us){this.pX=Us.deltaX;this.pY=Us.deltaY;var p7=Fa(Us.direction);p7&&this.manager.emit(this.options.event+p7,Us);this._super.emit.call(this,Us)}});
I(gV,Hk,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Us){return this._super.attrTest.call(this,Us)&&(Math.abs(Us.scale-1)>this.options.threshold||this.state&2)},
emit:function(Us){this._super.emit.call(this,Us);Us.scale!==1&&this.manager.emit(this.options.event+(Us.scale<1?"in":"out"),Us)}});
I(Fl,tc,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(Us){var p7=this.options,Es=Us.pointers.length===p7.pointers,NT=Us.distance<p7.threshold,k6=Us.deltaTime>p7.time;this._input=Us;if(!NT||!Es||Us.eventType&12&&!k6)this.reset();else if(Us.eventType&1)this.reset(),this._timer=X(function(){this.state=8;this.tryEmit()},p7.time,this);
else if(Us.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(Us){this.state===8&&(Us&&Us.eventType&4?this.manager.emit(this.options.event+"up",Us):(this._input.timeStamp=ij(),this.manager.emit(this.options.event,this._input)))}});
I(C$,Hk,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Us){return this._super.attrTest.call(this,Us)&&(Math.abs(Us.rotation)>this.options.threshold||this.state&2)}});
I(ZZ,Hk,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return W3.prototype.getTouchAction.call(this)},
attrTest:function(Us){var p7=this.options.direction;if(p7&30)var Es=Us.velocity;else p7&6?Es=Us.velocityX:p7&24&&(Es=Us.velocityY);return this._super.attrTest.call(this,Us)&&p7&Us.direction&&OX(Es)>this.options.velocity&&Us.eventType&4},
emit:function(Us){var p7=Fa(Us.direction);p7&&this.manager.emit(this.options.event+p7,Us);this.manager.emit(this.options.event,Us)}});
I(EA,tc,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(Us){var p7=this.options,Es=Us.pointers.length===p7.pointers,NT=Us.distance<p7.threshold,k6=Us.deltaTime<p7.time;this.reset();if(Us.eventType&1&&this.count===0)return this.failTimeout();if(NT&&k6&&Es){if(Us.eventType!=4)return this.failTimeout();Es=this.pTime?Us.timeStamp-this.pTime<p7.interval:!0;NT=!this.pCenter||Os(this.pCenter,Us.center)<p7.posThreshold;this.pTime=Us.timeStamp;this.pCenter=Us.center;NT&&Es?this.count+=1:this.count=1;this._input=Us;if(this.count%p7.taps===0)return this.hasRequireFailures()?
(this._timer=X(function(){this.state=8;this.tryEmit()},p7.interval,this),2):8}return 32},
failTimeout:function(){this._timer=X(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))}});
mj.VERSION="2.0.2";mj.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[C$,{enable:!1}],[gV,{enable:!1},["rotate"]],[ZZ,{direction:6}],[W3,{direction:6},["swipe"]],[EA],[EA,{event:"doubletap",taps:2},["tap"]],[Fl]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};hc.prototype={set:function(Us){N(this.options,Us);return this},
stop:function(Us){this.session.stopped=Us?2:1},
recognize:function(Us){var p7=this.session;if(!p7.stopped){this.touchAction.preventDefaults(Us);var Es=this.recognizers,NT=p7.curRecognizer;if(!NT||NT&&NT.state&8)NT=p7.curRecognizer=null;for(var k6=0,ma=Es.length;k6<ma;k6++){var nh=Es[k6];p7.stopped===2||NT&&nh!=NT&&!nh.canRecognizeWith(NT)?nh.reset():nh.recognize(Us);!NT&&nh.state&14&&(NT=p7.curRecognizer=nh)}}},
get:function(Us){if(Us instanceof tc)return Us;for(var p7=this.recognizers,Es=0;Es<p7.length;Es++)if(p7[Es].options.event==Us)return p7[Es];return null},
add:function(Us){if(G(Us,"add",this))return this;var p7=this.get(Us.options.event);p7&&this.remove(p7);this.recognizers.push(Us);Us.manager=this;this.touchAction.update();return Us},
remove:function(Us){if(G(Us,"remove",this))return this;var p7=this.recognizers;Us=this.get(Us);p7.splice(b(p7,Us),1);this.touchAction.update();return this},
on:function(Us,p7){var Es=this.handlers;n(a(Us),function(NT){Es[NT]=Es[NT]||[];Es[NT].push(p7)});
return this},
off:function(Us,p7){var Es=this.handlers;n(a(Us),function(NT){p7?Es[NT].splice(b(Es[NT],p7),1):delete Es[NT]});
return this},
emit:function(Us,p7){this.options.domEvents&&QF(Us,p7);var Es=this.handlers[Us]&&this.handlers[Us].slice();if(Es&&Es.length){p7.type=Us;p7.preventDefault=function(){p7.srcEvent.preventDefault()};
Us=0;for(var NT=Es.length;Us<NT;Us++)Es[Us](p7)}},
destroy:function(){this.element&&jR(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
N(mj,{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:hc,Input:S,TouchAction:gx,Recognizer:tc,AttrRecognizer:Hk,Tap:EA,Pan:W3,Swipe:ZZ,Pinch:gV,Rotate:C$,Press:Fl,on:V,off:J,each:n,merge:Q,extend:N,inherit:I,bindFn:U,prefixed:l});
u[e]=mj})(window,document,"Hammer");
return window.Hammer}.call({});
w.DOCUMENT=q;q[bLj]=w}return q[bLj]};/*

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

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 GjZ;_.F6a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");GjZ=function(){var q=[],w;var u=u||_.F6a.length;for(w=0;w<8;w++)q[w]=_.F6a[0|Math.random()*u];return q.join("")};var eDy=function(){return Math.random().toString(36).substring(7).split("").join(".")},yvu="@@redux/INIT"+eDy(),P8s="@@redux/REPLACE"+eDy();var XSl=typeof Symbol==="function"&&Symbol.observable||"@@observable";var nB6=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var Hxx="top right bottom left width height size weight".split(" "),W6$=typeof MutationObserver!=="undefined",sgX=nB6&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,NL$=function(){this.mutationEventsAdded_=this.JSC$9559_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=FwH(this.refresh.bind(this))},QgT=function(q,
w){var u=q.observers_;
w=u.indexOf(w);~w&&u.splice(w,1);!u.length&&q.JSC$9559_connected_&&nB6&&q.JSC$9559_connected_&&(document.removeEventListener("transitionend",q.onTransitionEnd_),window.removeEventListener("resize",q.refresh),q.mutationsObserver_&&(q.mutationsObserver_.disconnect(),sgX&&(HTMLElement.prototype.attachShadow=sgX)),q.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",q.refresh),q.mutationsObserver_=null,q.mutationEventsAdded_=!1,q.JSC$9559_connected_=!1)};
NL$.prototype.refresh=function(){Ihj(this)&&this.refresh()};
var Ihj=function(q){q=q.observers_.filter(function(w){return ixx(w),w.activeObservations_.length>0});
q.forEach(function(w){return rBx(w)});
return q.length>0},U2T=function(q){if(nB6&&!q.JSC$9559_connected_){document.addEventListener("transitionend",q.onTransitionEnd_);
window.addEventListener("resize",q.refresh);if(W6$){q.mutationsObserver_=new MutationObserver(q.refresh);var w={attributes:!0,childList:!0,characterData:!0,subtree:!0};q.mutationsObserver_.observe(document,w);sgX&&(function e(y){var t=y.shadowRoot;t&&(q.mutationsObserver_.observe(t,w),e(t));for(y=y.firstElementChild;y;)e(y),y=y.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var y=sgX.apply(this,_.Cj.apply(0,arguments));
q.mutationsObserver_.observe(y,w);return y})}else document.addEventListener("DOMSubtreeModified",q.refresh),q.mutationEventsAdded_=!0;
q.JSC$9559_connected_=!0}};
NL$.prototype.onTransitionEnd_=function(q){var w=q.propertyName===void 0?"":q.propertyName;Hxx.some(function(u){return!!~w.indexOf(u)})&&this.refresh()};
var TLX=null;var CnT=function(q,w){for(var u=_.P(Object.keys(w)),y=u.next();!y.done;y=u.next())y=y.value,Object.defineProperty(q,y,{value:w[y],enumerable:!1,writable:!1,configurable:!0})};var zw=function(q){var w;return(q==null?void 0:(w=q.ownerDocument)==null?void 0:w.defaultView)||globalThis};var d2a={x:0,y:0,width:0,height:0},OxG=typeof SVGGraphicsElement!=="undefined"?function(q){return q instanceof zw(q).SVGGraphicsElement}:function(q){return q instanceof zw(q).SVGElement&&typeof q.getBBox==="function"};var oBx=function(q){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=q};
oBx.prototype.isActive=function(){var q=this.target;if(nB6)if(OxG(q)){var w=q.getBBox();w={x:0,y:0,width:w.width,height:w.height}}else{var u=q.clientWidth,y=q.clientHeight;if(u||y){var e=zw(q).getComputedStyle(q);w=Ix(e["padding-top"]);var t=Ix(e["padding-left"]),X=t+Ix(e["padding-right"]),G=w+Ix(e["padding-bottom"]),n=Ix(e.width),N=Ix(e.height);e.boxSizing==="border-box"&&(Math.round(n+X)!==u&&(n-=GsH(e,"left","right")+X),Math.round(N+G)!==y&&(N-=GsH(e,"top","bottom")+G));q!==zw(q).document.documentElement&&
(q=Math.round(n+X)-u,y=Math.round(N+G)-y,Math.abs(q)!==1&&(n-=q),Math.abs(y)!==1&&(N-=y));w={x:t,y:w,width:n,height:N}}else w=d2a}else w=d2a;this.contentRect_=w;return w.width!==this.broadcastWidth||w.height!==this.broadcastHeight};var VD3=function(q,w){var u=w.x;var y=w.y;var e=w.width;w=w.height;var t=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);CnT(t,{x:u,y:y,width:e,height:w,top:y,right:u+e,bottom:w+y,left:u});CnT(this,{target:q,contentRect:t})};var fhk=function(q,w){var u=TLX;this.activeObservations_=[];this.observations_=new Map;if(typeof q!=="function")throw new TypeError("Qe");this.callback_=q;this.controller_=u;this.callbackCtx_=w};
fhk.prototype.observe=function(q){if(q===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(q instanceof zw(q).Element))throw new TypeError("Se");var w=this.observations_;w.has(q)||(w.set(q,new oBx(q)),q=this.controller_,~q.observers_.indexOf(this)||q.observers_.push(this),q.JSC$9559_connected_||U2T(q),this.controller_.refresh())}};
fhk.prototype.unobserve=function(q){if(q===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(q instanceof zw(q).Element))throw new TypeError("Se");var w=this.observations_;w.has(q)&&(w.delete(q),w.size||QgT(this.controller_,this))}};
fhk.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();QgT(this.controller_,this)};
var ixx=function(q){q.activeObservations_.splice(0);q.observations_.forEach(function(w){w.isActive()&&q.activeObservations_.push(w)})},rBx=function(q){if(q.activeObservations_.length>0){var w=q.callbackCtx_,u=q.activeObservations_.map(function(y){var e=y.target,t=y.contentRect_;
y.broadcastWidth=t.width;y.broadcastHeight=t.height;return new VD3(e,t)});
q.callback_.call(w,u,w);q.activeObservations_.splice(0)}};var aZ=function(q){if(!(this instanceof aZ))throw new TypeError("Te");if(!arguments.length)throw new TypeError("Re");TLX||(TLX=new NL$);this.observer_=new fhk(q,this)};
aZ.prototype.observe=function(q){this.observer_.observe(q)};
aZ.prototype.unobserve=function(q){this.observer_.unobserve(q)};
aZ.prototype.disconnect=function(){this.observer_.disconnect()};var Qbs=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:aZ;var iyM="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(" "),ISJ={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},QG4=null,nfc=null;var rvl={},UGo=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 fS6={text:1},dG7={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var m2T=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,ABG={CONSTANT:{isUnwrappable:function(q){return q instanceof Ek},
unwrap:a6X},JAVASCRIPT:{isUnwrappable:function(q){return q instanceof _.ZD},
unwrap:$m},HTML:{isUnwrappable:function(q){return q instanceof fj},
unwrap:function(q){return Aa(q)}},
RESOURCE_URL:{isUnwrappable:function(q){return q instanceof XE},
unwrap:_.G2},STRING:{isUnwrappable:function(q){return q instanceof Object},
unwrap:function(q){return String(q)}},
STYLE:{isUnwrappable:function(q){return typeof q==="string"},
unwrap:function(q){return q}},
URL:{isUnwrappable:function(q){return sY(q)},
unwrap:_.NC}},JB$={CONSTANT:mG4,JAVASCRIPT:mG4,HTML:function(q){q=q instanceof fj?q:mx(String(q).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return Aa(q)},
RESOURCE_URL:mG4,STRING:String,STYLE:mG4,URL:function(q,w){q=m2T.test(q)?q:void 0;return q===void 0?w:q}};var YLM=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,AvM=/[\t\n\f\r ]+/,zD4=/[\t\n\f\r ,]+/g,DGu=function(q,w,u){return u},CN={},zHc=function(){var q=function(){var y={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",y):y}(),w=q.createHTML(""),u=q.createScript("");
q=q.createScriptURL("");return{INNOCUOUS_STRING:w,INNOCUOUS_SCRIPT:u,INNOCUOUS_URL:q}}(),T6=zHc.INNOCUOUS_STRING,by4=zHc.INNOCUOUS_SCRIPT,vf7=zHc.INNOCUOUS_URL;var ahT=function(q){var w=gf4(q);return function(u,y,e,t){return t?w(t,y,e,u):T6}}({reportHandler:function(q,w){if(q)try{throw Error(w);
}catch(u){_.vm(u)}},
safeTypesBridge:function(q,w,u){var y=ABG[w];return y.isUnwrappable(q)&&(y=y.unwrap(q,u),y!==u)?y:(0,JB$[w])(String(q),u)},
allowedIdentifierPrefixes:[""]});if(CJ!==void 0)throw Error("Ue");CJ=ahT;if(CJ!==ahT)throw Error("Ve");d1("Injectable",[]);var W_o=d1("Inject",[["token",void 0]]),NPJ=d1("Optional",[]);d1("Injectable",[]);var QJs=d1("Self",[]),IlM=d1("SkipSelf",[]);d1("Host",[]);var D2k={},ZxF=function(){};
ZxF.prototype.resolve=function(){throw Error("Xe");};
ZxF.prototype.addProvider=function(){throw Error("Xe");};var nkj=Function;var p63=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,$2c=function(){this._reflect=window.Reflect};
_.k=$2c.prototype;_.k.factory=function(q){return function(){return new (Function.prototype.bind.apply(q,[null].concat(_.Cm(_.Cj.apply(0,arguments)))))}};
_.k._zipTypesAndAnnotations=function(q,w){var u=typeof q==="undefined"?Array(w.length):Array(q.length);for(var y=0;y<u.length;y++)u[y]=typeof q==="undefined"?[]:q[y]!=Object?[q[y]]:[],w&&RDM(w[y])&&(u[y]=u[y].concat(w[y]));return u};
_.k._ownParameters=function(q,w){if(p63.exec(q.toString()))return null;if(q.parameters&&q.parameters!==w.parameters)return q.parameters;var u=q.ctorParameters;return u&&u!==w.ctorParameters?(w=typeof u==="function"?u():u,q=w.map(function(y){return y&&y.type}),w=w.map(function(y){return y&&SLM(y.decorators)}),this._zipTypesAndAnnotations(q,w)):RDM(this._reflect)&&RDM(this._reflect.getOwnMetadata)&&(w=this._reflect.getOwnMetadata("parameters",q),(u=this._reflect.getOwnMetadata("design:paramtypes",q))||
w)?this._zipTypesAndAnnotations(u,w):Array(q.length).fill(void 0)};
_.k.parameters=function(q){if(!q.prototype)return[];var w=Object.getPrototypeOf(q.prototype).constructor;(q=this._ownParameters(q,w))||w===Object||(q=this.parameters(w));return q||[]};
_.k._ownAnnotations=function(q,w){if(q.annotations&&q.annotations!==w.annotations)return q=q.annotations,typeof q==="function"&&q.annotations&&(q=q.annotations),q;if(q.decorators&&q.decorators!==w.decorators)return SLM(q.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",q)};
_.k.annotations=function(q){var w=Object.getPrototypeOf(q.prototype).constructor;q=this._ownAnnotations(q,w)||[];return(w!==Object?this.annotations(w):[]).concat(q)};
_.k._ownPropMetadata=function(q,w){if(q.propMetadata&&q.propMetadata!==w.propMetadata)return q=q.propMetadata,typeof q==="function"&&q.propMetadata&&(q=q.propMetadata),q;if(q.propDecorators&&q.propDecorators!==w.propDecorators){var u=q.propDecorators,y={};Object.keys(u).forEach(function(e){y[e]=SLM(u[e])});
return y}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",q)};
_.k.propMetadata=function(q){var w=Object.getPrototypeOf(q.prototype).constructor,u={};if(w!==Object){var y=this.propMetadata(w);Object.keys(y).forEach(function(t){u[t]=y[t]})}var e=this._ownPropMetadata(q,w);
e&&Object.keys(e).forEach(function(t){var X=[];u.hasOwnProperty(t)&&X.push.apply(X,_.Cm(u[t]));X.push.apply(X,_.Cm(e[t]));u[t]=X});
return u};
_.k.getter=function(q){return function(w){return w[q]}};
_.k.method=function(q){return function(w,u){if(!w[q])throw Error("Ye`"+q);return w[q].apply(w,u)}};var vBT=function(){};var bxj=function(q){this.reflectionCapabilities=q};
_.O(bxj,vBT);_.k=bxj.prototype;_.k.factory=function(q){return this.reflectionCapabilities.factory(q)};
_.k.parameters=function(q){return this.reflectionCapabilities.parameters(q)};
_.k.annotations=function(q){return this.reflectionCapabilities.annotations(q)};
_.k.propMetadata=function(q){return this.reflectionCapabilities.propMetadata(q)};
_.k.getter=function(q){return this.reflectionCapabilities.getter(q)};
_.k.method=function(q){return this.reflectionCapabilities.method(q)};var qbo=new bxj(new $2c);var Dt=function(q,w){this.token=q;this.id=w;if(q===void 0||q===null)throw Error("cf");};
_.x$.Object.defineProperties(Dt.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return OM(this.token)}}});
_.x$.Object.defineProperties(Dt,{JSC$9601_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return Vv.JSC$9605_numberOfKeys}}});
var YOP=function(){this._allKeys=new Map};
YOP.prototype.get=function(q){if(q instanceof Dt)return q;if(this._allKeys.has(q))return this._allKeys.get(q);var w=new Dt(q,Dt.JSC$9601_numberOfKeys);this._allKeys.set(q,w);return w};
_.x$.Object.defineProperties(YOP.prototype,{JSC$9605_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var Vv=new YOP;var iO6=function(q,w,u){this.key=q;this.optional=w;this.visibility=u},uVj=function(q){return new iO6(q,!1,null)},e2c=[],P6u=function(q,w,u){this.key=q;
this.resolvedFactories=w;this.multiProvider=u},kks=function(q,w,u,y){this.factory=q;
this.dependencies=w;this.providerClass=u;this.providerValue=y};var Zt={},pH=function(q,w){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=w===void 0?null:w;q=_.P(q);for(w=q.next();!w.done;w=q.next())this.addProvider(w.value)};
_.k=pH.prototype;_.k.addProvider=function(q){this.keyIdToIndex.set(q.key.id,this.keyIds.length);this.providers.push(q);this.keyIds.push(q.key.id);this.objs.push(Zt)};
_.k.resolve=function(q,w){w=w===void 0?D2k:w;return this._getByKey(Vv.get(ox(q)),null,w)};
_.k._new=function(q){if(this.constructedKeyIds[q.key.id])throw Kws(this,q.key);this.constructedKeyIds[q.key.id]=!0;return this._instantiateProvider(q)};
_.k._instantiateProvider=function(q){if(q.multiProvider){for(var w=Array(q.resolvedFactories.length),u=0;u<q.resolvedFactories.length;++u)w[u]=this._instantiate(q,q.resolvedFactories[u]);return w}return this._instantiate(q,q.resolvedFactories[0])};
_.k._instantiate=function(q,w){var u=this,y=w.factory;try{var e=w.dependencies.map(function(X){return u._getByReflectiveDependency(X)})}catch(X){throw X.addKey&&X.addKey(this,q.key),X;
}try{var t=y.apply(null,_.Cm(e))}catch(X){throw B9y(this,X,q.key);}return t};
_.k._getByReflectiveDependency=function(q){return this._getByKey(q.key,q.visibility,q.optional?null:D2k)};
_.k._getByKey=function(q,w,u){return q===gBx?this:w instanceof QJs?this._getByKeySelf(q,u):this._getByKeyDefault(q,u,w)};
_.k._getObjByKeyId=function(q){for(var w=0;w<this.keyIds.length;w++)if(this.keyIds[w]===q)return this.objs[w]===Zt&&(this.objs[w]=this._new(this.providers[w])),this.objs[w];return Zt};
_.k._throwOrNull=function(q,w){if(w!==D2k)return w;throw MVl(this,q);};
_.k._getByKeySelf=function(q,w){var u=this._getObjByKeyId(q.id);return u!==Zt?u:this._throwOrNull(q,w)};
_.k._getByKeyDefault=function(q,w,u){for(var y=u=u instanceof IlM?this.parent:this;u instanceof pH;){var e=u._getObjByKeyId(q.id);if(e!==Zt)return e;u=u.parent}e=void 0;if(u!==null)try{var t=u.resolve(q.token,w);if(t!==Zt)return t}catch(X){e=X}if(!(y instanceof pH&&UBy(q.token))){if(e)throw e;return this._throwOrNull(q,w)}for(t=y;t.parent instanceof pH;)t=t.parent;t.addProvider(XUu({provide:q.token,useClass:q.token}));return t.resolve(q.token,w)};
_.k.toString=function(){return this.displayName};
_.x$.Object.defineProperties(pH.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+rtH(this,function(q){return' "'+q.key.displayName+'" '}).join(", ")+"])"}}});
var gBx=Vv.get(ox(ZxF));(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 EB6=window.XRegExp;var RHc=-1,cBT=function(q){addEventListener("pageshow",function(w){w.persisted&&(RHc=w.timeStamp,q(w))},!0)};var hHj=function(q,w,u){var y=SOT,e,t;return function(X){if(w.value>=0&&(X||u)){var G;if((t=w.value-((G=e)!=null?G:0))||e===void 0)e=w.value,w.delta=t,X=w.value,w.rating=X>y[1]?"poor":X>y[0]?"needs-improvement":"good",q(w)}}};var jga=function(q){requestAnimationFrame(function(){return requestAnimationFrame(function(){return q()})})};var lhx=function(){var q=performance.getEntriesByType("navigation")[0];if(q&&q.responseStart>0&&q.responseStart<performance.now())return q};var L63=function(){var q,w;return(w=(q=lhx())==null?void 0:q.activationStart)!=null?w:0};var MDF=function(){var q=q===void 0?-1:q;var w=lhx(),u="navigate";RHc>=0?u="back-forward-cache":w&&(document.prerendering||L63()>0?u="prerender":document.wasDiscarded?u="restore":w.type&&(u=w.type.replace(/_/g,"-")));return{name:"LCP",value:q,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:u}};var C6H=new WeakMap;var K6a=function(q){var w=w===void 0?{}:w;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var u=new PerformanceObserver(function(y){Promise.resolve().then(function(){q(y.getEntries())})});
u.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},w));return u}}catch(y){}};var BLk=function(q){var w=!1;return function(){w||(q(),w=!0)}};var $9=-1,x2X=function(q){document.visibilityState==="hidden"&&$9>-1&&($9=q.type==="visibilitychange"?q.timeStamp:0,removeEventListener("visibilitychange",x2X,!0),removeEventListener("prerenderingchange",x2X,!0))},q3k=function(){addEventListener("visibilitychange",x2X,!0);
addEventListener("prerenderingchange",x2X,!0)},wR3=function(){if($9<0){var q=L63(),w,u;
$9=(u=document.prerendering?void 0:(w=globalThis.performance.getEntriesByType("visibility-state").filter(function(y){return y.name==="hidden"&&y.startTime>q})[0])==null?void 0:w.startTime)!=null?u:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
q3k();cBT(function(){setTimeout(function(){$9=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;q3k()})})}return{get firstHiddenTime(){return $9}}};var uKc=function(q){document.prerendering?addEventListener("prerenderingchange",function(){return q()},!0):q()};var TPH=function(){};
TPH.prototype._processEntry=function(q){var w;(w=this._onBeforeProcessingEntry)==null||w.call(this,q)};var SOT=[2500,4E3],LA4=function(q){var w=w===void 0?{}:w;uKc(function(){var u=wR3(),y=MDF(),e=dBl(w),t=function(I){w.reportAllChanges||(I=I.slice(-1));I=_.P(I);for(var U=I.next();!U.done;U=I.next())U=U.value,e._processEntry(U),U.startTime<u.firstHiddenTime&&(y.value=Math.max(U.startTime-L63(),0),y.entries=[U],G())},X=K6a(t);
if(X){var G=hHj(q,y,w.reportAllChanges);for(var n=BLk(function(){t(X.takeRecords());X.disconnect();G(!0)}),N=_.P(["keydown",
"click","visibilitychange"]),Q=N.next();!Q.done;Q=N.next())addEventListener(Q.value,function(){var I=n,U=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?I():(I=BLk(I),U(I),document.addEventListener("visibilitychange",I,{once:!0}))},{capture:!0,
once:!0});cBT(function(I){y=MDF();G=hHj(q,y,w.reportAllChanges);jga(function(){y.value=performance.now()-I.timeStamp;G(!0)})})}})};var yET;var eQF;_.K=function(){return eQF!==void 0?eQF:eQF=document.createElement("template")};
document.head.appendChild(_.K().content);var kWZ;_.o9({_template:function(){if(kWZ!==void 0)return kWZ;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);
var w=q.content,u=w.insertBefore;yET===void 0&&(yET=document.createElement("template"));var y=yET;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return kWZ=q},
is:"tp-yt-app-toolbar"});var t66;var Pv3;_.v8=function(){};
_.v8=_.o9({_template:function(){if(Pv3!==void 0)return Pv3;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;t66===void 0&&(t66=document.createElement("template"));var y=t66;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return Pv3=q},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.v8.instance||(_.v8.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(q){this._text===q&&(q+="\u00a0");this._text="";this.async(function(){this._text=q},this.timeout)},
_onIronAnnounce:function(q){q.detail&&q.detail.text&&this.announce(q.detail.text)}});
_.v8.instance=null;_.v8.requestAvailability=function(){_.v8.instance||(_.v8.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.v8.instance):document.addEventListener("load",function(){document.body.appendChild(_.v8.instance)})};var XRj;var Fsa;/*

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

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 bG,QVa,IKT;bG=Element.prototype;QVa=bG.matches||bG.matchesSelector||bG.mozMatchesSelector||bG.msMatchesSelector||bG.oMatchesSelector||bG.webkitMatchesSelector;IKT=function(){};
_.rEj=function(q){var w=iTP,u=[];return w._collectTabbableNodes(q,u)?w._sortByTabIndex(u):u};
_.k=IKT.prototype;_.k._normalizedTabIndex=function(q){return(QVa.call(q,"input, select, textarea, button, object")?QVa.call(q,":not([disabled])"):QVa.call(q,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(q=q.getAttribute("tabindex")||0,Number(q)):-1};
_.k._collectTabbableNodes=function(q,w){if(q.nodeType!==Node.ELEMENT_NODE||!this._isVisible(q))return!1;var u=this._normalizedTabIndex(q),y=u>0;u>=0&&w.push(q);if(q.localName==="content"||q.localName==="slot")u=_.fN(q).getDistributedNodes();else{var e;u=((e=_.fN(q).shadowRoot)!=null?e:_.fN(q.root||q)).children}for(q=0;q<u.length;q++)y=this._collectTabbableNodes(u[q],w)||y;return y};
_.k._isVisible=function(q){var w=q.style;return w.visibility!=="hidden"&&w.display!=="none"?(w=window.getComputedStyle(q),w.visibility!=="hidden"&&w.display!=="none"):!1};
_.k._sortByTabIndex=function(q){var w=q.length;if(w<2)return q;var u=Math.ceil(w/2);w=this._sortByTabIndex(q.slice(0,u));q=this._sortByTabIndex(q.slice(u));return this._mergeSortByTabIndex(w,q)};
_.k._mergeSortByTabIndex=function(q,w){for(var u=[];q.length>0&&w.length>0;)this._hasLowerTabOrder(q[0],w[0])?u.push(w.shift()):u.push(q.shift());return u.concat(q,w)};
_.k._hasLowerTabOrder=function(q,w){q=Math.max(q.tabIndex,0);w=Math.max(w.tabIndex,0);return q===0||w===0?w>q:q>w};
var iTP=new IKT;var U9j;var Tmx;_.o9({_template:function(){if(Tmx!==void 0)return Tmx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;U9j===void 0&&(U9j=document.createElement("template"));var y=U9j;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return Tmx=q},
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&&_.fN(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.fN(this.parentNode).removeChild(this)},
_onTransitionend:function(q){q&&q.target===this&&this.complete()},
_openedChanged:function(q){q?this.prepare():(q=window.getComputedStyle(this),q.transitionDuration!=="0s"&&q.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 Y9=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;DO(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)};
Y9.prototype._bringOverlayAtIndexToFront=function(q){var w=this._overlays[q];if(w){var u=this._overlays.length-1,y=this._overlays[u];y&&this._shouldBeBehindOverlay(w,y)&&u--;if(!(q>=u)){y=Math.max(this._getZ(_.CvP(this)),this._minimumZ);for(this._getZ(w)<=y&&this._applyOverlayZ(w,y);q<u;)this._overlays[q]=this._overlays[q+1],q++;this._overlays[u]=w}}};
Y9.prototype.addOverlay=function(q){var w=this._overlays.indexOf(q);if(w>=0)this._bringOverlayAtIndexToFront(w);else{w=this._overlays.length;var u=this._overlays[w-1],y=Math.max(this._getZ(u),this._minimumZ),e=this._getZ(q);u&&this._shouldBeBehindOverlay(q,u)&&(this._applyOverlayZ(u,y),w--,y=Math.max(this._getZ(this._overlays[w-1]),this._minimumZ));e<=y&&this._applyOverlayZ(q,y);this._overlays.splice(w,0,q)}this.trackBackdrop()};
Y9.prototype.removeOverlay=function(q){q=this._overlays.indexOf(q);q!==-1&&(this._overlays.splice(q,1),this.trackBackdrop())};
_.CvP=function(q){return q._overlays[q._overlays.length-1]};
_.k=Y9.prototype;_.k.trackBackdrop=function(){var q=this._overlayWithBackdrop();if(q||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(q)-1,this.backdropElement.opened=!!q,this.backdropElement.prepare()};
_.k._overlayWithBackdrop=function(){for(var q=this._overlays.length-1;q>=0;q--)if(this._overlays[q].withBackdrop)return this._overlays[q]};
_.k._getZ=function(q){var w=this._minimumZ;if(q){var u,y,e=Number(((u=q.hostElement)!=null?u:q).style.zIndex||window.getComputedStyle((y=q.hostElement)!=null?y:q).zIndex);e===e&&(w=e)}return w};
_.k._setZ=function(q,w){var u;((u=q.hostElement)!=null?u:q).style.zIndex=w};
_.k._applyOverlayZ=function(q,w){this._setZ(q,w+2)};
_.k._overlayInPath=function(q){q=q||[];for(var w=0;w<q.length;w++){var u=void 0;if(((u=q[w].polymerController)!=null?u:q[w])._manager===this)return q[w]}};
_.k._onCaptureClick=function(q){var w=this._overlays.length-1;if(w!==-1)for(var u=_.fN(q).path,y,e;(y=this._overlays[w])&&this._overlayInPath(u)!==((e=y.hostElement)!=null?e:y);)if(y._onCaptureClick(q),y.allowClickThrough)w--;else break};
_.k._onCaptureFocus=function(q){var w=_.CvP(this);w&&w._onCaptureFocus(q)};
_.k._onCaptureKeyDown=function(q){var w=_.CvP(this);w&&(_.IZ.keyboardEventMatchesKeys(q,"esc")?w._onCaptureEsc(q):_.IZ.keyboardEventMatchesKeys(q,"tab")&&w._onCaptureTab(q))};
_.k._shouldBeBehindOverlay=function(q,w){return!q.alwaysOnTop&&w.alwaysOnTop&&!w.contains(q)};
_.x$.Object.defineProperties(Y9.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 q=document.activeElement;q&&q instanceof Element!==!1||(q=document.body);for(;q.root&&_.fN(q.root).activeElement;)q=_.fN(q.root).activeElement;return q}}});
_.go=new Y9;var OO7=0,okJ=0,VKj=null,flM=[],mH=["wheel","mousewheel","DOMMouseScroll"],mBy;_.T("web_no_lock_on_touchstart_killswitch")&&(mH.push("touchstart"),mH.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;_.El={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:_.go},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var q;return this._focusedChild||_.fN((q=this.hostElement)!=null?q:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var q;return _.rEj((q=this.hostElement)!=null?q: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 q;this._observer=_.fN((q=this.hostElement)!=null?q:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var q;_.fN((q=this.hostElement)!=null?q:this).unobserveNodes(this._observer)}this._observer=null;for(var w in this.__rafs)this.__rafs[w]!==null&&cancelAnimationFrame(this.__rafs[w]);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(q){this.fire("iron-overlay-canceled",q,{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 q;((q=this.hostElement)!=null?q:this).style.outline="none";var w;((w=this.hostElement)!=null?w:this).style.display="none"}},
_openedChanged:function(q){if(q){var w;((w=this.hostElement)!=null?w:this).removeAttribute("aria-hidden")}else{var u;((u=this.hostElement)!=null?u: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 q;if(this.withBackdrop&&!((q=this.hostElement)!=null?q:this).hasAttribute("tabindex")){var w;((w=this.hostElement)!=null?w:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var u;((u=this.hostElement)!=null?u: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 q;((q=this.hostElement)!=null?q:this).style.display="none";var w;((w=this.hostElement)!=null?w:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var q,w;((q=this.hostElement)!=null?q:this).style.transition=((w=this.hostElement)!=null?w:this).style.webkitTransition="none";var u,y;((u=this.hostElement)!=null?u:this).style.transform=((y=this.hostElement)!=null?y:this).style.webkitTransform="none";var e;((e=this.hostElement)!=null?e:this).style.display=""},
_finishPositioning:function(){var q;((q=this.hostElement)!=null?q:this).style.display="none";this.scrollTop=this.scrollTop;var w,u;((w=this.hostElement)!=null?w:this).style.transition=((u=this.hostElement)!=null?u:this).style.webkitTransition="";var y,e;((y=this.hostElement)!=null?y:this).style.transform=((e=this.hostElement)!=null?e:this).style.webkitTransform="";var t;((t=this.hostElement)!=null?t:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var q=this._manager.deepActiveElement,w;if(!(w=q===document.body))a:{for(;q;q=q.assignedSlot||q.parentNode||q.host)if(q===this){w=!0;break a}w=!1}w&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(q){this.noCancelOnOutsideClick||this.cancel(q)},
_onCaptureFocus:function(q){if(this.withBackdrop){var w=_.fN(q).path;w.indexOf(this)===-1?(q.stopPropagation(),this._applyFocus()):this._focusedChild=w[0]}},
_onCaptureEsc:function(q){this.noCancelOnEscKey||this.cancel(q)},
_onCaptureTab:function(q){if(this.withBackdrop){this.__ensureFirstLastFocusables();var w=q.shiftKey,u=w?this.__firstFocusableNode:this.__lastFocusableNode;w=w?this.__lastFocusableNode:this.__firstFocusableNode;if(u===w)u=!0;else{var y=this._manager.deepActiveElement;u=y===u||y===this}u&&(q.preventDefault(),this._focusedChild=w,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 q=this._focusableNodes;this.__firstFocusableNode=q[0];this.__lastFocusableNode=q[q.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(q,w){var u=this.__rafs;u[q]!==null&&cancelAnimationFrame(u[q]);u[q]=requestAnimationFrame(function(){u[q]=null;w.call(this)}.bind(this))},
__updateScrollObservers:function(q,w,u){q&&w&&this.__isValidScrollAction(u)?(u==="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),mBy=_._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()):(q=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),q!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(q,1),mBy=_._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(Y$)for(var q=this;q;)q.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&q.host&&this.__rootNodes.push(q),q=q.host||q.assignedSlot||q.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(w){w.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(q){q.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(q){return q==="lock"||q==="refit"||q==="cancel"},
__onCaptureScroll:function(q){if(!(this.__isAnimating||_.fN(q).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(q)}},
__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)}};
_.RZ=[Nm$,_.mF,_.El];_.o9({_template:function(){if(Wsj!==void 0)return Wsj;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;HTk===void 0&&(HTk=document.createElement("template"));var y=HTk;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return Wsj=q},
is:"tp-yt-iron-dropdown",behaviors:[_.iG,_.IZ,_.RZ,eHa],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 q=_.fN(this.$.content).getDistributedNodes(),w=0,u=q.length;w<u;w++)if(q[w].nodeType===Node.ELEMENT_NODE)return q[w]},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(),_.El._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.El._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.El._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var q=this.containedElement,w=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),u=0;u<w.length;u++)w[u].node=q;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(q){this._readied&&(q?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var q=this.focusTarget||this.containedElement;q&&this.opened&&!this.noAutoFocus?q.focus():_.El._applyFocus.apply(this,arguments)}});var d9$;var OTG;/*

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 ooP=new _.CH({type:"iconset"});
_.o9({_template:function(){if(OTG!==void 0)return OTG;var q=document.createElement("template");_.f(q,"\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");q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;d9$===void 0&&(d9$=document.createElement("template"));
var y=d9$;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return OTG=q},
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(q){q=(q||"").split(":");this._iconName=q.pop();this._iconsetName=q.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&&_.fN(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=ooP.byKey(this._iconsetName)){var q=this._iconset.applyIcon(this,this._iconName,this.theme);q&&q.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,_.fN(this.root).appendChild(this._img)}});var V6x;var fKT;_.o9({_template:function(){if(fKT!==void 0)return fKT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);
var w=q.content,u=w.insertBefore;V6x===void 0&&(V6x=document.createElement("template"));var y=V6x;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return fKT=q},
is:"tp-yt-iron-input",behaviors:[_.oZ],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(){_.v8.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.fN(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.fN(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 q=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":q=/[0-9.,e-]/}return q},_bindValueChanged:function(q,w){w&&(q===void 0?w.value=null:q!==w.value&&(this.inputElement.value=q),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:q}))},
_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(q){var w=q.keyCode==19||q.keyCode==20||q.keyCode==45||q.keyCode==46||q.keyCode==144||q.keyCode==145||q.keyCode>32&&q.keyCode<41||q.keyCode>111&&q.keyCode<124;return!(q.keyCode==8||q.keyCode==9||q.keyCode==13||q.keyCode==27)&&!(q.charCode==0&&w)},
_onKeypress:function(q){if(this.allowedPattern||this.inputElement.type==="number"){var w=this._patternRegExp;if(w&&!(q.metaKey||q.ctrlKey||q.altKey)){this._patternAlreadyChecked=!0;var u=String.fromCharCode(q.charCode);this._isPrintable(q)&&!w.test(u)&&(q.preventDefault(),this._announceInvalidCharacter("Invalid character "+u+" not entered."))}}},
_checkPatternValidity:function(){var q=this._patternRegExp;if(!q)return!0;for(var w=0;w<this.inputElement.value.length;w++)if(!q.test(this.inputElement.value[w]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var q=this.inputElement.checkValidity();q&&(this.required&&this.bindValue===""?q=!1:this.hasValidator()&&(q=_.oZ.validate.call(this,this.bindValue)));this.invalid=!q;this.fire("iron-input-validate");return q},
_announceInvalidCharacter:function(q){this.fire("iron-announce",{text:q})},
_computeValue:function(q){return q}});var m9P;var AET;var JEG=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),zQj=JEG&&JEG[1]>=8;
_.o9({_template:function(){if(AET!==void 0)return AET;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;m9P===void 0&&(m9P=document.createElement("template"));var y=m9P;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return AET=q},
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:[lW7,_.mF,_.yBF,hUT],_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 _.fN(_.fN(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var q=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,q-this._physicalCount)},set _virtualStart(q){q=this._clamp(q,0,this._maxVirtualStart);this.grid&&(q-=q%this._itemsPerRow);this._virtualStartVal=q},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(q){q%=this._physicalCount;q<0&&(q=this._physicalCount+q);this.grid&&(q-=q%this._itemsPerRow);this._physicalStartVal=q},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(q){this._physicalCountVal=q},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 q=this._firstVisibleIndexVal;if(q==null){var w=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
q=this._iterateItems(function(u,y){w+=this._getPhysicalSizeIncrement(u);if(w>this._scrollPosition)return this.grid?y-y%this._itemsPerRow:y;if(this.grid&&this._virtualCount-1===y)return y-y%this._itemsPerRow})||0}return q},
get lastVisibleIndex(){var q=this._lastVisibleIndexVal;if(q==null){if(this.grid)q=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var w=this._physicalTop+this._scrollOffset;this._iterateItems(function(u,y){w<this._scrollBottom&&(q=y);w+=this._getPhysicalSizeIncrement(u)})}this._lastVisibleIndexVal=q}return q},
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,_.OO);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(q){this.style.webkitOverflowScrolling=q===this?"touch":"";this.style.overflowY=q===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.OO)},
updateViewportBoundaries:function(){var q=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(q["padding-top"],10);this._isRTL=q.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var q=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),w=q-this._scrollPosition,u=w>=0;this._scrollPosition=q;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(w)>this._physicalSize&&this._physicalSize>0?(w-=this._scrollOffset,u=Math.round(w/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=u,this._physicalStart+=u,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(q=this._getReusables(u),u?(this._physicalTop=q.physicalTop,this._virtualStart+=q.indexes.length,this._physicalStart+=q.indexes.length):(this._virtualStart=this._virtualStart-q.indexes.length,this._physicalStart=this._physicalStart-q.indexes.length),this._update(q.indexes,u?null:q.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),$$))},
_getReusables:function(q){var w=[],u=this._hiddenContentSize*this._ratio,y=this._virtualStart,e=this._virtualEnd,t=this._physicalCount,X=this._physicalTop+this._scrollOffset;var G=this._physicalBottom+this._scrollOffset;var n=this._scrollPosition,N=this._scrollBottom;if(q){var Q=this._physicalStart;G=n-X}else Q=this._physicalEnd,G-=N;for(;;){var I=this._getPhysicalSizeIncrement(Q);G-=I;if(w.length>=t||G<=u)break;if(q){if(e+w.length+1>=this._virtualCount)break;if(X+I>=n-this._scrollOffset)break;w.push(Q);
X+=I;Q=(Q+1)%t}else{if(y-w.length<=0)break;if(X+this._physicalSize-I<=N)break;w.push(Q);X-=I;Q=Q===0?t-1:Q-1}}return{indexes:w,physicalTop:X-this._scrollOffset}},
_update:function(q,w){if(!(q&&q.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(q);this._updateMetrics(q);if(w)for(;w.length;)q=w.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(q);this._positionItems();this._updateScrollerSize()}},
_createPool:function(q){this._ensureTemplatized();var w,u=Array(q);for(w=0;w<q;w++){var y=this.stamp(null);u[w]=y.root.querySelector("*");this._itemsParent.appendChild(y.root)}return u},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(q){q=this._clamp(this._physicalCount+q,3,this._virtualCount-this._virtualStart);q=this._convertIndexToCompleteRow(q);if(this.grid){var w=q%this._itemsPerRow;w&&q-w<=this._physicalCount&&(q+=this._itemsPerRow);q-=w}q-=this._physicalCount;w=Math.round(this._physicalCount*.5);if(!(q<0)){if(q>0){w=window.performance.now();[].push.apply(this._physicalItems,this._createPool(q));for(var u=0;u<q;u++)this._physicalSizes.push(0);this._physicalCount+=q;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=q);this._update();this._templateCost=(window.performance.now()-w)/q;w=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||w===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,w)),fOT):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,w),$$))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var q=this._getReusables(!0);this._physicalTop=q.physicalTop;this._virtualStart+=q.indexes.length;this._physicalStart+=q.indexes.length;this._update(q.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 q={__key__:!0};q[this.as]=!0;q[this.indexAs]=!0;q[this.selectedAs]=!0;q.tabIndex=!0;this._instanceProps=q;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(q,w){typeof w!=="undefined"&&(this.notifyResize(),_.XJ(),q&&this._updateGridMetrics())},
_itemsChanged:function(q){if(q.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,
_.OO);else if(q.path==="items.splices"){this._adjustVirtualIndex(q.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(q.value.indexSplices.some(function(u){return u.addedCount>0||u.removed.length>0})){var w=this._getActiveElement();
this.contains(w)&&w.blur()}q=q.value.indexSplices.some(function(u){return u.index+u.addedCount>=this._virtualStart&&u.index<=this._virtualEnd},this);
this._isClientFull()&&!q||this._debounce("_render",this._render,_.OO)}else q.path!=="items.length"&&this._forwardItemPath(q.path,q.value)},
_forwardItemPath:function(q,w){q=q.slice(6);var u=q.indexOf(".");u===-1&&(u=q.length);var y,e=this.modelForElement(this._offscreenFocusedItem),t=parseInt(q.substring(0,u),10);if(y=this._isIndexRendered(t)){var X=this._getPhysicalIndex(t);var G=this.modelForElement(this._physicalItems[X])}else e&&(G=e);G&&G[this.indexAs]===t&&(q=q.substring(u+1),q=this.as+(q?"."+q:""),G._setPendingPropertyOrPath(q,w,!1,!0),G._flushProperties&&G._flushProperties(),y&&(this._updateMetrics([X]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(q){q.forEach(function(w){w.removed.forEach(this._removeItem,this);w.index<this._virtualStart&&(w=Math.max(w.addedCount-w.removed.length,w.index-this._virtualStart),this._virtualStart+=w,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=w))},this)},
_removeItem:function(q){this.$.selector.deselect(q);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===q&&this._removeFocusedItem()},
_iterateItems:function(q,w){var u,y;if(arguments.length===2&&w)for(y=0;y<w.length;y++){var e=w[y];var t=this._computeVidx(e);if((u=q.call(this,e,t))!=null)return u}else{e=this._physicalStart;for(t=this._virtualStart;e<this._physicalCount;e++,t++)if((u=q.call(this,e,t))!=null)return u;for(e=0;e<this._physicalStart;e++,t++)if((u=q.call(this,e,t))!=null)return u}},
_computeVidx:function(q){return q>=this._physicalStart?this._virtualStart+(q-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+q},
_assignModels:function(q){this._iterateItems(function(w,u){var y=this._physicalItems[w],e=this.items&&this.items[u];if(e!=null){var t=this.modelForElement(y);t.__key__=null;this._forwardProperty(t,this.as,e);this._forwardProperty(t,this.selectedAs,this.$.selector.isSelected(e));this._forwardProperty(t,this.indexAs,u);this._forwardProperty(t,"tabIndex",this._focusedVirtualIndex===u?0:-1);this._physicalIndexForKey[t.__key__]=w;t._flushProperties&&t._flushProperties(!0);y.removeAttribute("hidden")}else y.setAttribute("hidden",
"")},q)},
_updateMetrics:function(q){_.XJ();var w=0,u=0,y=this._physicalAverageCount,e=this._physicalAverage;this._iterateItems(function(t){u+=this._physicalSizes[t];this._physicalSizes[t]=this._physicalItems[t].offsetHeight;w+=this._physicalSizes[t];this._physicalAverageCount+=this._physicalSizes[t]?1:0},q);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(u=this._itemsPerRow===1?u:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+w-u,this._itemsPerRow=1);this._physicalAverageCount!==y&&(this._physicalAverage=Math.round((e*y+w)/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 q=this._physicalTop;if(this.grid){var w=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(u,y){var e=Math.floor(y%this._itemsPerRow*this._itemWidth+w);this._isRTL&&(e*=-1);this.translate3d(e+"px",q+"px",0,this._physicalItems[u]);this._shouldRenderNextRow(y)&&(q+=this._rowHeight)})}else this._iterateItems(function(u){this.translate3d(0,q+"px",0,this._physicalItems[u]);
q+=this._physicalSizes[u]})},
_getPhysicalSizeIncrement:function(q){return this.grid?this._computeVidx(q)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[q]},
_shouldRenderNextRow:function(q){return q%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var q=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(q!==0){this._physicalTop=this._physicalTop-q;var w=this._scrollPosition;!zQj&&w>0&&this._resetScrollPosition(w-q)}},
_resetScrollPosition:function(q){this.scrollTarget&&q>=0&&(this._scrollPosition=this._scrollTop=q)},
_updateScrollerSize:function(q){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((q=(q=(q=q||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(q){return this.scrollToIndex(this.items.indexOf(q))},
scrollToIndex:function(q){if(!(typeof q!=="number"||q<0||q>this.items.length-1)&&(_.XJ(),this._physicalCount!==0)){q=this._clamp(q,0,this._virtualCount-1);if(!this._isIndexRendered(q)||q>=this._maxVirtualStart)this._virtualStart=this.grid?q-this._itemsPerRow*2:q-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var w=this._physicalStart,u=this._virtualStart,y=0,e=this._hiddenContentSize;u<q&&
y<=e;)y+=this._getPhysicalSizeIncrement(w),w=(w+1)%this._physicalCount,u++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+y);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)},_.OO)},
selectItem:function(q){return this.selectIndex(this.items.indexOf(q))},
selectIndex:function(q){if(!(q<0||q>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(q)){var w=this.modelForElement(this._physicalItems[this._getPhysicalIndex(q)]);w&&(w[this.selectedAs]=!0);this.updateSizeForIndex(q)}this.$.selector.selectIndex(q)}},
deselectItem:function(q){return this.deselectIndex(this.items.indexOf(q))},
deselectIndex:function(q){q<0||q>=this._virtualCount||(this._isIndexRendered(q)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(q)])[this.selectedAs]=!1,this.updateSizeForIndex(q)),this.$.selector.deselectIndex(q))},
toggleSelectionForItem:function(q){return this.toggleSelectionForIndex(this.items.indexOf(q))},
toggleSelectionForIndex:function(q){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(q):this.$.selector.isSelected(this.items[q]))?this.deselectIndex(q):this.selectIndex(q)},
clearSelection:function(){this._iterateItems(function(q){this.modelForElement(this._physicalItems[q])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(q){(q?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(q){var w=this.modelForElement(q.target);if(w){var u=_.fN(q).path[0];q=this._getActiveElement();var y=this._physicalItems[this._getPhysicalIndex(w[this.indexAs])];if(u.localName!=="input"&&u.localName!=="button"&&u.localName!=="select"){u=w.tabIndex;w.tabIndex=-100;var e=q?q.tabIndex:-1;w.tabIndex=u;q&&y!==q&&y.contains(q)&&e!==-100||this.toggleSelectionForItem(w[this.as])}}},
_multiSelectionChanged:function(q){this.clearSelection();this.$.selector.multi=q},
updateSizeForItem:function(q){return this.updateSizeForIndex(this.items.indexOf(q))},
updateSizeForIndex:function(q){if(!this._isIndexRendered(q))return null;this._updateMetrics([this._getPhysicalIndex(q)]);this._positionItems();return null},
_manageFocus:function(){var q=this._focusedVirtualIndex;q>=0&&q<this._virtualCount?this._isIndexRendered(q)?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(q){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(q/this._itemsPerRow)*this._itemsPerRow:q},
_isIndexRendered:function(q){return q>=this._virtualStart&&q<=this._virtualEnd},
_isIndexVisible:function(q){return q>=this.firstVisibleIndex&&q<=this.lastVisibleIndex},
_getPhysicalIndex:function(q){return(this._physicalStart+(q-this._virtualStart))%this._physicalCount},
focusItem:function(q){this._focusPhysicalItem(q)},
_focusPhysicalItem:function(q){if(!(q<0||q>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(q)||this.scrollToIndex(q);var w=this._physicalItems[this._getPhysicalIndex(q)],u=this.modelForElement(w),y;u.tabIndex=-100;w.tabIndex===-100&&(y=w);y||(y=_.fN(w).querySelector('[tabindex="-100"]'));u.tabIndex=0;this._focusedVirtualIndex=q;y&&y.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 q=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var w=this.stamp(null);this._focusBackfillItem=w.root.querySelector("*");this._itemsParent.appendChild(w.root)}this._offscreenFocusedItem=this._physicalItems[q];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[q]=this._focusBackfillItem;this._focusedPhysicalIndex=q;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var q=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),w=this._physicalItems[q];if(w){var u=this.modelForElement(w),y=this.modelForElement(this._offscreenFocusedItem);u[this.as]===y[this.as]?(this._focusBackfillItem=w,u.tabIndex=-1,this._physicalItems[q]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(q){q=this.modelForElement(q.target);var w=this.modelForElement(this._focusedItem),u=this._offscreenFocusedItem!==null,y=this._focusedVirtualIndex;q&&(w===q?this._isIndexVisible(y)||this.scrollToIndex(y):(this._restoreFocusedItem(),w&&(w.tabIndex=-1),q.tabIndex=0,this._focusedVirtualIndex=y=q[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(y),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],u&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(q){switch(q.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&q.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&&q.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(q)}},
_clamp:function(q,w,u){return Math.min(u,Math.max(w,q))},
_debounce:function(q,w,u){this._debouncers=this._debouncers||{};this._debouncers[q]=_.y5(this._debouncers[q],u,w.bind(this));_.eM(this._debouncers[q])},
_forwardProperty:function(q,w,u){q._setPendingProperty(w,u)},
_forwardHostPropV2:function(q,w){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(u){u&&this.modelForElement(u).forwardHostProp(q,w)},this)},
_notifyInstancePropV2:function(q,w,u){pR7(this.as,w)&&(q=q[this.indexAs],w==this.as&&(this.items[q]=u),this.notifyPath(Q1(this.as,"items."+q,w),u))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(q,w,u){w.indexOf(this.as+".")===0&&this.notifyPath("items."+q.__key__+"."+w.slice(this.as.length+1),u)},
_forwardParentPath:function(q,w){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(u){u&&this.modelForElement(u).notifyPath(q,w)},this)},
_forwardParentProp:function(q,w){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(u){u&&(this.modelForElement(u)[q]=w)},this)},
_getActiveElement:function(){var q=this._itemsParent.node.domHost;return _.fN(q?q.root:document).activeElement},
_scrollTargetChanged:function(q,w){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(w)if(q==="document")this.scrollTarget=this._doc;else if(typeof q==="string"){var u,y;this.scrollTarget=(w=(y=(u=this.domHost)==null?void 0:u.polymerController)!=null?y:this.domHost)&&w.$?w.$[q]:_.fN(this.ownerDocument).querySelector("#"+q)}else this._isValidScrollTarget()&&(this._oldScrollTarget=q,this._toggleScrollListener(this._shouldHaveListener,q))}});var aKr;var D9X;var ZTr=function(q,w,u,y){q-=u;w-=y;return Math.sqrt(q*q+w*w)},pR$=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
Atf.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var JtM=function(q){q.maxRadius=0;q.mouseDownStart=0;q.mouseUpStart=0;q.xStart=0;q.yStart=0;q.xEnd=0;q.yEnd=0;q.containerMetrics=new Atf(q.element)};
z2f.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var q=pR$()-this.mouseDownStart;this.mouseUpStart&&(q-=this.mouseUpElapsed);return q},get mouseUpElapsed(){return this.mouseUpStart?pR$()-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 q=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(q*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-q/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 q=this.radius/(this.containerMetrics.size/2);var w=this.xNow-this.containerMetrics.width/2;var u=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+w+"px, "+u+"px)";this.waveContainer.style.transform="translate3d("+w+"px, "+u+"px, 0)";this.wave.style.webkitTransform="scale("+q+","+q+")";this.wave.style.transform="scale3d("+q+","+q+",1)"},
downAction:function(q){var w=this.containerMetrics.width/2,u=this.containerMetrics.height/2;JtM(this);this.mouseDownStart=pR$();this.center?(this.xStart=w,this.yStart=u):(this.xStart=q?q.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=q?q.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=w,this.yEnd=u);q=this.containerMetrics;w=this.xStart;u=this.yStart;this.maxRadius=Math.max(ZTr(w,u,0,0),ZTr(w,u,
q.width,0),ZTr(w,u,0,q.height),ZTr(w,u,q.width,q.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=pR$())},
remove:function(){_.fN(_.fN(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.o9({_template:function(){if(D9X!==void 0)return D9X;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;aKr===void 0&&(aKr=document.createElement("template"));var y=aKr;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return D9X=q},
is:"tp-yt-paper-ripple",behaviors:[_.IZ],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(){_.fN(this).parentNode.nodeType==11?this.keyEventTarget=_.fN(this).getOwnerRoot().host:this.keyEventTarget=_.fN(this).parentNode;var q=this.keyEventTarget;this.listen(q,"up","uiUpAction");this.listen(q,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(q){q.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var q=0;q<this.ripples.length;++q)if(!this.ripples[q].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(q){this.noink||this.downAction(q)},
downAction:function(q){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(q),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(q){this.noink||this.upAction(q)},
upAction:function(q){this.holdDown||(this.ripples.forEach(function(w){w.upAction(q)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var q=0;q<this.ripples.length;++q){var w=this.ripples[q];w.isOpacityFullyDecayed&&!w.isRestingAtMaxRadius&&this.removeRipple(w)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var q=new z2f(this);_.fN(this.$.waves).appendChild(q.waveContainer);this.$.background.style.backgroundColor=q.color;this.ripples.push(q);this._setAnimating(!0);return q},
removeRipple:function(q){var w=this.ripples.indexOf(q);w<0||(this.ripples.splice(w,1),q.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var q;for(q=0;q<this.ripples.length;++q){var w=this.ripples[q];w.draw();this.$.background.style.opacity=w.outerOpacity;w.isOpacityFullyDecayed&&!w.isRestingAtMaxRadius&&this.removeRipple(w)}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(q,w){w!==void 0&&(q?this.downAction():this.upAction())}});var c8={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(q){ro._downHandler.call(this,q);this.pressed&&this.ensureRipple(q)},
ensureRipple:function(q){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var w=this._rippleContainer||this.root;w&&_.fN(w).appendChild(this._ripple);if(q){w=_.fN(this._rippleContainer||this);var u=_.fN(q).rootTarget;w.deepContains(u)&&this._ripple.uiDownAction(q)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(q){this.hasRipple()&&(this._ripple.noink=q)}};var $9F={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 q=1;this.disabled?q=0:this.active||this.pressed?q=4:this.receivedFocusFromKeyboard&&(q=3);this._setElevation(q)},
_computeKeyboardClass:function(q){this.toggleClass("keyboard-focus",q)},
_spaceKeyDownHandler:function(q){ro._spaceKeyDownHandler.call(this,q);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(q){ro._spaceKeyUpHandler.call(this,q);this.hasRipple()&&this._ripple.uiUpAction()}},voF=[hwX,
_.iG,c8,$9F];_.bTX={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(q){q&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=q)},
_createRipple:function(){var q=c8._createRipple();q.id="ink";q.setAttribute("center","");q.classList.add("circle");return q}};
_.Y36=[hwX,_.iG,c8,_.bTX];_.goa=[_.Y36,LPk,{_checkedChanged:function(){lMr._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){c8._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var EoT;var RQr;var cEx=function(){};
_.k=cEx.prototype;_.k.registered=function(){};
_.k.addOwnKeyBinding=function(){};
_.k.removeOwnKeyBindings=function(){};
_.k.keyboardEventMatchesKeys=function(){};
_.k._collectKeyBindings=function(){};
_.k._prepKeyBindings=function(){};
_.k._addKeyBinding=function(){};
_.k._resetKeyEventListeners=function(){};
_.k._listenKeyEventListeners=function(){};
_.k._unlistenKeyEventListeners=function(){};
_.k._onKeyBindingEvent=function(){};
_.k._triggerKeyHandler=function(){};
_.k._tapHandler=function(){};
_.k._focusChanged=function(){};
_.k._detectKeyboardFocus=function(){};
_.k._userActivate=function(){};
_.k._upHandler=function(){};
_.k._asyncClick=function(){};
_.k._pressedChanged=function(){};
_.k._ariaActiveAttributeChanged=function(){};
_.k._activeChanged=function(){};
_.k._controlStateChanged=function(){};
_.k._changedButtonState=function(){};
_.k._focusBlurHandler=function(){};
_.k._disabledChanged=function(){};
_.k._changedControlState=function(){};
_.k._buttonStateChanged=function(){};
_.k._downHandler=function(){};
_.k.ensureRipple=function(){};
_.k.getRipple=function(){};
_.k.hasRipple=function(){};
_.k._createRipple=function(){};
_.k._noinkChanged=function(){};
_.k._computeKeyboardClass=function(){};
_.k._spaceKeyDownHandler=function(){};
_.k._spaceKeyUpHandler=function(){};
_.k._setPressed=function(){};
_.k._setPointerDown=function(){};
_.k._setReceivedFocusFromKeyboard=function(){};
_.k._setFocused=function(){};
_.k._setElevation=function(){};
cEx=_.o9({_template:function(){if(RQr!==void 0)return RQr;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);
var w=q.content,u=w.insertBefore;EoT===void 0&&(EoT=document.createElement("template"));var y=EoT;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return RQr=q},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[voF],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?$9F._calculateElevation.apply(this):this._setElevation(0)}});var S3Z;var hQP;var jVZ={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(q){_.T("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(q)},
_onDialogClickWrapped:function(q){_.T("dialog_behavior_no_tap_killswitch")||this._onDialogClick(q)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(q,w){w&&(q?(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))},
_updateClosingReasonConfirmed:function(q){this.closingReason=this.closingReason||{};this.closingReason.confirmed=q},
_onDialogClick:function(q){for(var w=_.fN(q).path,u=0,y,e=w.indexOf((y=this.hostElement)!=null?y:this);u<e;u++)if(y=w[u],y.hasAttribute&&(y.hasAttribute("dialog-dismiss")||y.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(y.hasAttribute("dialog-confirm"));this.close();q.stopPropagation();break}}},lKx=[_.RZ,
jVZ];var Lsa=document.createElement("template");_.f(Lsa,'<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(Lsa.content);var M6r=document.createElement("template");_.f(M6r,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(M6r.content);_.o9({_template:function(){if(hQP!==void 0)return hQP;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);
var w=q.content,u=w.insertBefore;S3Z===void 0&&(S3Z=document.createElement("template"));var y=S3Z;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return hQP=q},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[lKx,eHa],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 KsG;var BmF;_.o9({_template:function(){if(BmF!==void 0)return BmF;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;KsG===void 0&&(KsG=document.createElement("template"));var y=KsG;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return BmF=q},
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 q,w,u;if(((q=window.ShadyDOM)==null?void 0:q.noPatch)!==!0&&((w=window.ShadyDOM)==null?void 0:w.noPatch)!=="on-demand"||((u=this.__shady_parentNode)==null?void 0:u.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(jVZ)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var x9F=_.Sc(['<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>']),qFT=_.KMX(x9F);qFT.setAttribute("style","display: none;");document.head.appendChild(qFT.content);var wCc;var uuG;var ygX;var ebx;_.o9({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[AU],configure:function(q){var w=q.node,u=w.getBoundingClientRect().height;return this._effect=new KeyframeEffect(w,[{height:u/2+"px"},{height:u+"px"}],this.timingFromConfig(q))}});
_.o9({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[AU],configure:function(q){var w=q.node,u=w.getBoundingClientRect().width;return this._effect=new KeyframeEffect(w,[{width:u/2+"px"},{width:u+"px"}],this.timingFromConfig(q))}});
_.o9({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[AU],configure:function(q){var w=q.node,u=w.getBoundingClientRect().width;return this._effect=new KeyframeEffect(w,[{width:u+"px"},{width:u-u/20+"px"}],this.timingFromConfig(q))}});
_.o9({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[AU],configure:function(q){var w=q.node,u=w.getBoundingClientRect().height;this.setPrefixedProperty(w,"transformOrigin","0 0");return this._effect=new KeyframeEffect(w,[{height:u+"px",transform:"translateY(0)"},{height:u/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(q))}});var Sh={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},knx=function(){};
_.k=knx.prototype;_.k.registered=function(){};
_.k.addOwnKeyBinding=function(){};
_.k.removeOwnKeyBindings=function(){};
_.k.keyboardEventMatchesKeys=function(){};
_.k._collectKeyBindings=function(){};
_.k._prepKeyBindings=function(){};
_.k._addKeyBinding=function(){};
_.k._resetKeyEventListeners=function(){};
_.k._listenKeyEventListeners=function(){};
_.k._unlistenKeyEventListeners=function(){};
_.k._onKeyBindingEvent=function(){};
_.k._triggerKeyHandler=function(){};
_.k._focusBlurHandler=function(){};
_.k._changedControlState=function(){};
_.k._setFocused=function(){};
knx=_.o9({_template:function(){if(ebx!==void 0)return ebx;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;ygX===void 0&&(ygX=document.createElement("template"));var y=ygX;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return ebx=q},
is:"tp-yt-paper-menu-button",behaviors:[_.IZ,_.iG],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:Sh.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:Sh.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:Sh.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 q=_.fN(this.$.content).getDistributedNodes(),w=0,u=q.length;w<u;w++)if(q[w].nodeType===Node.ELEMENT_NODE)return q[w]},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(q,w){q?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):w!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(q){_.iG._disabledChanged.apply(this,arguments);q&&this.opened&&this.close()},
__onIronOverlayCanceled:function(q){var w=this.$.trigger;_.fN(q.detail).path.indexOf(w)>-1&&q.preventDefault()}});
Object.keys(Sh).forEach(function(q){knx[q]=Sh[q]});var tga=_.Ul.IronButtonState,Pqa=(0,_.I8)(HTMLElement);
_.o9({_template:function(){if(uuG!==void 0)return uuG;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;wCc===void 0&&(wCc=document.createElement("template"));var y=wCc;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return uuG=q},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[tga,_.iG,c8,_.Tw,_.oZ],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(q){var w=(0,_.Td)(this);w.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:q});w.shadowRoot.appendChild(q);return Pqa.prototype._attachDom.call(this,q)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var q=this.contentElement;q&&q.selectedItem&&this._setSelectedItem(q.selectedItem)},
get contentElement(){for(var q=_.fN(this.$.content).getDistributedNodes(),w=0,u=q.length;w<u;w++)if(q[w].nodeType===Node.ELEMENT_NODE)return q[w]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(q){this._setSelectedItem(q.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(q){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q)===this&&this.open()},
_selectedItemChanged:function(q){var w="";q?w=q.label||q.getAttribute("label")||q.textContent.trim():w="";this.value=w;this._setSelectedItemLabel(w)},
_computeMenuVerticalOffset:function(q,w){return w?w:q?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var q=this.opened?"true":"false",w=this.contentElement;w&&w.setAttribute("aria-expanded",q)},
_computeLabelClass:function(q,w,u){var y="label";if(q)u&&(y+=" label-is-hidden");else if(u||w)y+=" label-is-floating";return y},
_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 XCj;var FGP;_.o9({is:"tp-yt-paper-icon-button",_template:function(){if(FGP!==void 0)return FGP;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;XCj===void 0&&(XCj=document.createElement("template"));var y=XCj;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return FGP=q},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.Y36],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(q,w){var u=this.getAttribute("aria-label");u&&w!=u||this.setAttribute("aria-label",q)}});var GnX;var nHP;_.hU=[hwX,_.iG,{hostAttributes:{role:"option",tabindex:"0"}}];_.o9({_template:function(){if(nHP!==void 0)return nHP;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;GnX===void 0&&(GnX=document.createElement("template"));var y=GnX;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return nHP=q},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.hU]});var HrF;var WGc;var sHa={attached:function(){this.fire("addon-attached")},
update:function(){}};var NEx=1,QHa=1,Isx=1,irr=[_.iG,_.IZ,{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();!Md&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(q,w){q?q=q+" "+w:q=w;return q},
_onAddonAttached:function(q){q=_.fN(q).rootTarget;if(q.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,q.id);else{var w="paper-input-add-on-"+QHa++;q.id=w;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,w)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(q){_.iG._focusBlurHandler.call(this,q);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var q=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",q);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(q){try{var w=this.inputElement.selectionStart;this.value=q;this.inputElement.selectionStart=w;this.inputElement.selectionEnd=w}catch(u){this.value=q}},
_computeAlwaysFloatLabel:function(q,w){return w||q},
_updateAriaLabelledBy:function(){var q=_.fN(this.root).querySelector("label");if(q){if(q.id)var w=q.id;else w="paper-input-label-"+NEx++,q.id=w;this._ariaLabelledBy=w}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+Isx++)},
_onChange:function(q){this.shadowRoot&&this.fire(q.type,{sourceEvent:q},{node:this,bubbles:q.bubbles,cancelable:q.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var q=document.activeElement;q instanceof HTMLElement&&q!==document.body&&q!==document.documentElement||this._focusableElement.focus()}}}];var rgr;var UIk;_.o9({_template:function(){if(UIk!==void 0)return UIk;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;rgr===void 0&&(rgr=document.createElement("template"));var y=rgr;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return UIk=q},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[sHa],properties:{_charCounterStr:{type:String,value:"0"}},update:function(q){if(q.inputElement){q.value=q.value||"";var w=q.value.toString().length.toString();q.inputElement.hasAttribute("maxlength")&&(w+="/"+q.inputElement.getAttribute("maxlength"));this._charCounterStr=w}}});var TET;var Cqa;_.o9({_template:function(){if(Cqa!==void 0)return Cqa;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;TET===void 0&&(TET=document.createElement("template"));var y=TET;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return Cqa=q},
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 nJ(this.attrForValue)},get _inputElement(){return _.fN(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(q){this._addons||(this._addons=[]);q=q.target;this._addons.indexOf(q)===-1&&(this._addons.push(q),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(q){this._handleValueAndAutoValidate(q.target)},
_onValueChanged:function(q){var w=q.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,w.value===void 0||w.value===""))return;this._handleValueAndAutoValidate(q.target)},
_handleValue:function(q){var w=this._inputElementValue;w||w===0||q.type==="number"&&!q.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:q,value:w,invalid:this.invalid})},
_handleValueAndAutoValidate:function(q){this.autoValidate&&q&&(this.invalid=!(q.validate?q.validate(this._inputElementValue):q.checkValidity()));this._handleValue(q)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(q){if(this._addons)for(var w,u=0;w=this._addons[u];u++)w.update(q)},
_computeInputContentClass:function(q,w,u,y,e){var t="input-content";q?(e&&(t+=" label-is-hidden"),y&&!this.noUnfloatedLabelError&&(t+=" is-invalid")):(q=this.querySelector("label"),w||e?(t+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",y?t+=" is-invalid":u&&(t+=" label-is-highlighted")):(q&&(this.$.labelAndInputContainer.style.position="relative"),y&&!this.noUnfloatedLabelError&&(t+=" is-invalid")));u&&(t+=" focused");return t},
_computeUnderlineClass:function(q,w){var u="underline";w?u+=" is-invalid":q&&(u+=" is-highlighted");return u},
_computeAddOnContentClass:function(q,w){var u="add-on-content";w?u+=" is-invalid":q&&(u+=" is-highlighted");return u}});var dIP;var OrP;_.o9({_template:function(){if(OrP!==void 0)return OrP;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;dIP===void 0&&(dIP=document.createElement("template"));var y=dIP;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return OrP=q},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[sHa],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(q){this._setInvalid(q.invalid)}});_.o9({is:"tp-yt-paper-input",_template:function(){if(WGc!==void 0)return WGc;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;HrF===void 0&&(HrF=document.createElement("template"));var y=HrF;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return WGc=q},
behaviors:[irr,_.Tw],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 oHk;var VgT;_.o9({_template:function(){if(VgT!==void 0)return VgT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=
q.content,u=w.insertBefore;oHk===void 0&&(oHk=document.createElement("template"));var y=oHk;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return VgT=q},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.hU]});var fsX;var mIG;_.o9({_template:function(){if(mIG!==void 0)return mIG;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);
var w=q.content,u=w.insertBefore;fsX===void 0&&(fsX=document.createElement("template"));var y=fsX;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return mIG=q},
is:"tp-yt-paper-item-body"});var Ag6;var JgX;var zbx=function(){};
_.k=zbx.prototype;_.k.indexOf=function(){};
_.k.selectPrevious=function(){};
_.k.selectNext=function(){};
_.k.selectIndex=function(){};
_.k.forceSynchronousItemUpdate=function(){};
_.k._checkFallback=function(){};
_.k._addListener=function(){};
_.k._removeListener=function(){};
_.k._activateEventChanged=function(){};
_.k._updateItems=function(){};
_.k._selectSelected=function(){};
_.k._filterItem=function(){};
_.k._valueToItem=function(){};
_.k._valueToIndex=function(){};
_.k._indexToValue=function(){};
_.k._valueForItem=function(){};
_.k._observeItems=function(){};
_.k._itemActivate=function(){};
_.k.multiChanged=function(){};
_.k._updateAttrForSelected=function(){};
_.k._updateSelected=function(){};
_.k._selectMulti=function(){};
_.k._selectionChange=function(){};
_.k._toggleSelected=function(){};
_.k._valuesToItems=function(){};
_.k.registered=function(){};
_.k.addOwnKeyBinding=function(){};
_.k.removeOwnKeyBindings=function(){};
_.k.keyboardEventMatchesKeys=function(){};
_.k._collectKeyBindings=function(){};
_.k._prepKeyBindings=function(){};
_.k._addKeyBinding=function(){};
_.k._resetKeyEventListeners=function(){};
_.k._listenKeyEventListeners=function(){};
_.k._unlistenKeyEventListeners=function(){};
_.k._onKeyBindingEvent=function(){};
_.k._triggerKeyHandler=function(){};
_.k.select=function(){};
_.k._resetTabindices=function(){};
_.k._updateMultiselectable=function(){};
_.k._focusWithKeyboardEvent=function(){};
_.k._clearSearchText=function(){};
_.k._focusPrevious=function(){};
_.k._focusNext=function(){};
_.k._applySelection=function(){};
_.k._focusedItemChanged=function(){};
_.k._onIronItemsChanged=function(){};
_.k._onShiftTabDown=function(){};
_.k._onFocus=function(){};
_.k._onUpKey=function(){};
_.k._onDownKey=function(){};
_.k._onEscKey=function(){};
_.k._onKeydown=function(){};
_.k._activateHandler=function(){};
_.k._disabledChanged=function(){};
_.k._setSelectedItem=function(){};
_.k._setItems=function(){};
_.k._setSelectedItems=function(){};
_.k._setFocusedItem=function(){};
zbx=_.o9({_template:function(){if(JgX!==void 0)return JgX;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);
var w=q.content,u=w.insertBefore;Ag6===void 0&&(Ag6=document.createElement("template"));var y=Ag6;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return JgX=q},
is:"tp-yt-paper-listbox",behaviors:[xac],hostAttributes:{role:"listbox"}});var ask;var DIZ;var Zrj={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(q,w){return[q||w?"active":"",w?"cooldown":""].join(" ")},
__activeChanged:function(q,w){this.__setAriaHidden(!q);this.__coolingDown=!q&&w},
__altChanged:function(q){this.setAttribute("aria-label",q||"loading")},
__setAriaHidden:function(q){q?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.o9({_template:function(){if(DIZ!==void 0)return DIZ;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;ask===void 0&&(ask=document.createElement("template"));var y=ask;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return DIZ=q},
is:"tp-yt-paper-spinner",behaviors:[Zrj]});var pCG;var $I3;_.o9({_template:function(){if($I3!==void 0)return $I3;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;pCG===void 0&&(pCG=document.createElement("template"));var y=pCG;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return $I3=q},
is:"tp-yt-paper-spinner-lite",behaviors:[Zrj]});var vHG;var br3;_.o9({_template:function(){if(br3!==void 0)return br3;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;vHG===void 0&&(vHG=document.createElement("template"));var y=vHG;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return br3=q},
is:"tp-yt-paper-tab",behaviors:[_.iG,_.Ul.IronButtonState,c8],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 q=_.fN(this).parentNode;return!!q&&!!q.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(q){if(this.link){var w=this.queryEffectiveChildren("a");w&&q.target!==w&&w.click()}}});var YFr;var gH$;var EHa=_.Sc(['<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>']),RbP=_.KMX(EHa);document.head.appendChild(RbP.content);_.o9({_template:function(){if(gH$!==void 0)return gH$;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;YFr===void 0&&(YFr=document.createElement("template"));var y=YFr;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return gH$=q},
is:"tp-yt-paper-tabs",behaviors:[_.mF,_.w6$],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(q){_.fN(this).querySelectorAll("tp-yt-paper-tab").forEach(q?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(q){q.setAttribute("noink","")},
_removeNoinkAttribute:function(q){q.removeAttribute("noink")},
_computeScrollButtonClass:function(q,w,u,y){return!w||u?"hidden":q?y?"hidden":"not-visible":""},
_computeTabsContentClass:function(q,w){var u="tabs-content";q&&(u+=" scrollable");if(!q||w)u+=" fit-container";return u},
_computeSelectionBarClass:function(q,w){var u="selection-bar";q?u+=" hidden":w&&(u+=" align-bottom");return u},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(q){return""+q},
_onIronSelect:function(q){this._tabChanged(q.detail.item,this._previousTab);this._previousTab=q.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();_.Vc._activateHandler.apply(this,arguments)},
_scheduleActivation:function(q,w){this._pendingActivationItem=q;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,w)},
_delayedActivationHandler:function(){var q=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;q.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(q){q.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(q,w){this.scrollable&&this._affectScroll(w&&-w.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(q){this.$.tabsContainer.scrollLeft+=q;q=this.$.tabsContainer.scrollLeft;this._leftHidden=q===0||this.hideScrollButtons;this._rightHidden=q===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(q,w){if(q){var u=this.$.tabsContent.getBoundingClientRect(),y=u.width,e=q.getBoundingClientRect();u=e.left-u.left;this._pos={width:this._calcPercent(e.width,y),left:this._calcPercent(u,y)};if(this.noSlide||w==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var t=w.getBoundingClientRect();w=this.items.indexOf(w);q=this.items.indexOf(q);this.$.selectionBar.classList.add("expand");
q=w<q;this._isRTL&&(q=!q);q?this._positionBar(this._calcPercent(e.left+e.width-t.left,y)-5,this._left):this._positionBar(this._calcPercent(t.left+t.width-e.left,y)-5,this._calcPercent(u,y)+5);this.scrollable&&this._scrollToSelectedIfNeeded(e.width,u)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(q,w){w-=this.$.tabsContainer.scrollLeft;w<0?this.$.tabsContainer.scrollLeft+=w:(w+=q-this.$.tabsContainer.offsetWidth,w>0&&(this.$.tabsContainer.scrollLeft+=w))},
_calcPercent:function(q,w){return 100*q/w},
_positionBar:function(q,w){q=q||0;w=w||0;this._width=q;this._left=w;this.transform("translateX("+w+"%) scaleX("+q/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var q=this.$.selectionBar.classList;q.contains("expand")?(q.remove("expand"),q.add("contract"),this._positionBar(this._pos.width,this._pos.left)):q.contains("contract")&&q.remove("contract")}});var cga;var SFZ;_.o9({_template:function(){if(SFZ!==void 0)return SFZ;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;cga===void 0&&(cga=document.createElement("template"));var y=cga;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return SFZ=q},
is:"tp-yt-paper-textarea",behaviors:[irr,_.Tw],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(q){this.$.input.textarea.selectionStart=q},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(q){this.$.input.textarea.selectionEnd=q},_ariaLabelledByChanged:function(q){this._focusableElement.setAttribute("aria-labelledby",q)},
_ariaDescribedByChanged:function(q){this._focusableElement.setAttribute("aria-describedby",q)},
get _focusableElement(){return this.inputElement.textarea}});var hbF;var jHc;/*

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 ls$=function(){};
_.k=ls$.prototype;_.k.addOwnKeyBinding=function(){};
_.k.removeOwnKeyBindings=function(){};
_.k.keyboardEventMatchesKeys=function(){};
_.k._collectKeyBindings=function(){};
_.k._prepKeyBindings=function(){};
_.k._addKeyBinding=function(){};
_.k._resetKeyEventListeners=function(){};
_.k._listenKeyEventListeners=function(){};
_.k._unlistenKeyEventListeners=function(){};
_.k._onKeyBindingEvent=function(){};
_.k._triggerKeyHandler=function(){};
_.k._tapHandler=function(){};
_.k._focusChanged=function(){};
_.k._detectKeyboardFocus=function(){};
_.k._userActivate=function(){};
_.k._upHandler=function(){};
_.k._spaceKeyDownHandler=function(){};
_.k._spaceKeyUpHandler=function(){};
_.k._asyncClick=function(){};
_.k._pressedChanged=function(){};
_.k._ariaActiveAttributeChanged=function(){};
_.k._activeChanged=function(){};
_.k._controlStateChanged=function(){};
_.k._changedButtonState=function(){};
_.k._focusBlurHandler=function(){};
_.k._disabledChanged=function(){};
_.k._changedControlState=function(){};
_.k._downHandler=function(){};
_.k.ensureRipple=function(){};
_.k.getRipple=function(){};
_.k.hasRipple=function(){};
_.k._noinkChanged=function(){};
_.k._focusedChanged=function(){};
_.k.registered=function(){};
_.k._invalidChanged=function(){};
_.k.hasValidator=function(){};
_.k.validate=function(){};
_.k._getValidity=function(){};
_.k._requiredChanged=function(){};
_.k._valueChanged=function(){};
_.k._checkedChanged=function(){};
_.k._buttonStateChanged=function(){};
_.k._setPressed=function(){};
_.k._setPointerDown=function(){};
_.k._setReceivedFocusFromKeyboard=function(){};
_.k._setFocused=function(){};
ls$=_.o9({is:"tp-yt-paper-toggle-button",_template:function(){if(jHc!==void 0)return jHc;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;hbF===void 0&&(hbF=document.createElement("template"));var y=hbF;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return jHc=q},
behaviors:[_.goa],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");_.KJ(this,function(){_.pJ(this,"pan-y")})},
_ontrack:function(q){q=q.detail;q.state==="start"?this._trackStart(q):q.state==="track"?this._trackMove(q):q.state==="end"&&this._trackEnd(q)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(q){q=q.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+q:q)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+q:q));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 q=c8._createRipple();q.id="ink";q.setAttribute("recenters","");q.classList.add("circle","toggle-ink");return q}});var LGZ;var Mg3;_.o9({_template:function(){if(Mg3!==void 0)return Mg3;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;LGZ===void 0&&(LGZ=document.createElement("template"));var y=LGZ;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return Mg3=q},
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 q=_.fN(this).parentNode,w=_.fN(this).getOwnerRoot(),u;this.for?u=_.fN(w).querySelector("#"+this.for):u=q.nodeType==Node.DOCUMENT_FRAGMENT_NODE?w.host:q;return u},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(q){q==="entry"?this.show():q==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.fN(this).textContent.trim()===""){for(var q=!0,w=_.fN(this).getEffectiveChildNodes(),u=0;u<w.length;u++)if(w[u].textContent.trim()!==""){q=!1;break}if(q)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 q=this.offset;this.marginTop!=14&&this.offset==14&&(q=this.marginTop);var w=this.offsetParent.getBoundingClientRect(),u=this._target.getBoundingClientRect(),y=this.getBoundingClientRect(),e=(u.width-y.width)/2,t=(u.height-y.height)/2,X=u.left-w.left,G=u.top-w.top;switch(this.position){case "top":var n=X+e;var N=G-y.height-q;break;case "bottom":n=X+e;N=G+u.height+q;break;case "left":n=X-y.width-q;N=G+t;break;case "right":n=X+u.width+
q,N=G+t}this.fitToVisibleBounds?(w.left+n+y.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,n)+"px",this.style.right="auto"),w.top+N+y.height>window.innerHeight?(this.style.bottom=w.height+"px",this.style.top="auto"):(this.style.top=Math.max(-w.top,N)+"px",this.style.bottom="auto")):(this.style.left=n+"px",this.style.top=N+"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(q){q!==500&&this.updateStyles({"--paper-tooltip-delay-in":q+"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(q){if(q==="entry"&&this.animationEntry!=="")return this.animationEntry;if(q==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[q]&&typeof this.animationConfig[q][0].name==="string"){if(this.animationConfig[q][0].timing&&this.animationConfig[q][0].timing.delay&&this.animationConfig[q][0].timing.delay!==0){var w=this.animationConfig[q][0].timing.delay;q==="entry"?this.updateStyles({"--paper-tooltip-delay-in":w+"ms"}):q==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":w+
"ms"})}return this.animationConfig[q][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 KG$=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(KG$,_.bE);var BEG=_.qC(KG$,[0,_.jV]);var jh=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(jh,_.bE);var xIk=[3,4],qKX=[5,6];var wya=[0,xIk,qKX,_.wVk,-1,_.hv,_.um$,-1,woj,uvf];var uDP=_.qC(jh,wya),yK6=_.wB(wya);var eOx=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(eOx,_.bE);var k3x=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(k3x,_.bE);var ts3=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(ts3,_.bE);var Prc=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Prc,_.bE);var Xyr=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Xyr,_.bE);var lG=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(lG,_.bE);lG.prototype.getSource=function(){return _.mw(this,1)};
lG.prototype.getMessage=function(){return _.fy(this,4)};
lG.prototype.getData=function(){return _.PT(this,Xyr,8)};var F03=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(F03,_.bE);var LH=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(LH,_.bE);var Ms=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Ms,_.bE);var KH=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(KH,_.bE);KH.prototype.getUrl=function(){return _.fy(this,1)};
KH.prototype.setUrl=function(q){return _.sf(this,1,q)};
KH.prototype.hasUrl=function(){return _.Y6(_.sL(this,1))!=null};var G36=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(G36,_.bE);var nDF=[3];var HVP=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(HVP,_.bE);var B8=function(q){var w=new HVP;return _.Xo(w,2,q)};
HVP.prototype.getLanguage=function(){return Jv(this,4,x9)};
var W0Z=function(q){var w=B8(1);return _.km(w,6,x9,q)},x9=[3,
4,5,6];var sSX=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(sSX,_.bE);var qY=function(q){var w=new sSX;return _.Xo(w,1,q)},wf=function(q,w){return _.km(q,2,NIF,w)},NIF=[2,
3,4,5];var QSP=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(QSP,_.bE);var uk=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(uk,_.bE);var I2k=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(I2k,_.bE);var iVT=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(iVT,_.bE);var rKx=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(rKx,_.bE);var UDT=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(UDT,_.bE);var TIa=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(TIa,_.bE);var y0=function(q){return _.PT(q,Ms,5)};var CrG=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(CrG,_.bE);CrG.prototype.getValue=function(){return oG(this,1)};var dDG=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(dDG,_.bE);var eL=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(eL,_.bE);eL.prototype.getMetadata=function(){return _.zs(this,rKx,7,kP)};
eL.prototype.hasMetadata=function(){return _.QN(this,rKx,7,kP)};
var OVP=_.uFJ(eL),kP=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var tO=function(q){this.JSC$9826_name_=q;this.files_=[];this.directories_=[];this.directoryMap_={}};
tO.prototype.getName=function(){return this.JSC$9826_name_};var Xh=function(q,w){this.callback_=w;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new tO("");oDG(this,q,this.rootDirectory_);Pi(this)},oDG=function(q,w,u){for(var y=0;y<w.length;y++){var e=w[y];
e.isFile?(q.fileOps_++,e.file((0,_.fY)(q.handleFileSuccess_,q,u),(0,_.fY)(q.handleFileError_,q))):q.unscannedDirectories_.push(new Vs6(e,u))}},Pi=function(q){if(q.unscannedDirectories_.length>0&&q.directoryOps_<5&&!q.hasError_){q.directoryOps_++;
var w=q.unscannedDirectories_.shift(),u=w.entry,y=new tO(u.name);w=w.parent;w.directoryMap_[y.getName()]=y;w.directories_.push(y);u=u.createReader();u.readEntries((0,_.fY)(q.handleDirectorySuccess_,q,u,y),(0,_.fY)(q.handleDirectoryError_,q))}q.directoryOps_!=0||q.fileOps_!=0||q.unscannedDirectories_.length!=0&&!q.hasError_||q.callback_(q.rootDirectory_.files_,q.rootDirectory_.directories_,q.hasError_)};
Xh.prototype.handleDirectorySuccess_=function(q,w,u){oDG(this,u,w);u.length==0?(this.directoryOps_--,Pi(this)):q.readEntries((0,_.fY)(this.handleDirectorySuccess_,this,q,w),(0,_.fY)(this.handleDirectoryError_,this))};
Xh.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;Pi(this)};
Xh.prototype.handleFileSuccess_=function(q,w){q.files_.push(w);this.fileOps_--;Pi(this)};
Xh.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;Pi(this)};
var Vs6=function(q,w){this.entry=q;this.parent=w};var Fh=function(q){_.Q4.call(this);_.dL(q,"drop",this.onObjectsDropped_,!1,this);_.dL(q,"dragenter",this.onFilesDragged_,!1,this);_.dL(q,"dragover",this.onFilesDragged_,!1,this);_.dL(q,"dragleave",this.onDragLeave_,!1,this);_.dL(q,"dragend",this.onDragLeave_,!1,this)};
_.w9(Fh,_.Q4);var f2F=function(q,w){_.nM.call(this,"f");this.files=q;this.directories=w};
_.w9(f2F,_.nM);var mDa=function(){_.nM.call(this,"h")};
_.w9(mDa,_.nM);var AKx=function(){_.nM.call(this,"i")};
_.w9(AKx,_.nM);var JKF=function(){_.nM.call(this,"g")};
_.w9(JKF,_.nM);Fh.prototype.onObjectsDropped_=function(q){var w=this;q.preventDefault();var u=q.event_.dataTransfer;if((q=u&&u.items)&&q.length>0&&q[0].webkitGetAsEntry){u=[];for(var y=[],e=0;e<q.length;e++){var t=q[e].webkitGetAsEntry();t?u.push(t):y.push(q[e])}new Xh(u,function(X,G,n){n?w.dispatchEvent(new JKF("Error occurred while reading from the file system.")):w.dispatchEvent(new f2F(X,G,y))})}else(q=u&&u.files)&&this.dispatchEvent(new f2F(Array.from(q),[]))};
Fh.prototype.onFilesDragged_=function(q){q.type==="dragenter"&&this.dispatchEvent(new mDa);q.preventDefault()};
Fh.prototype.onDragLeave_=function(){this.dispatchEvent(new AKx)};var zOX=function(q,w){this.JSC$9849_name_=q;this.inputElement_=w};
zOX.prototype.getName=function(){return this.JSC$9849_name_};
zOX.prototype.getInputElement=function(){return this.inputElement_};var Go=function(q,w,u){w=w===void 0?"single_file":w;u=u===void 0?[]:u;_.Q4.call(this);this.overlayTarget_=q;this.parentOverlay_=q!=null?q.parentNode:_.rg("scotty-overlay-parent");this.selectorType_=w;this.acceptTypes_=u;this.overlay_=a2T(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.O(Go,_.Q4);
var a2T=function(q,w,u,y){var e=document.createElement("input");e.setAttribute("type","file");e.setAttribute("name","Filedata");_.dL(e,"change",q.onFilesSelected_,!1,q);u==="multiple_file"&&(e.multiple="true");u==="single_directory"&&(e.webkitdirectory="true");y.length>0&&e.setAttribute("accept",y.join(","));e.style.position="absolute";e.style.overflow="hidden";e.style.height="0px";e.style.width="0px";e.style.opacity="0";e.setAttribute("aria-hidden","true");e.setAttribute("tabIndex",-1);if(q.overlayTarget_!=
null)return e.style.height=w.offsetHeight+"px",e.style.width=w.offsetWidth+"px",q.parentOverlay_&&(q.parentOverlay_.style.position="relative"),_.fO(e,w),Dl(e,new _.Vx(w.offsetLeft,w.offsetTop)),e;q.parentOverlay_.appendChild(e);return e};
Go.prototype.click=function(){this.overlay_.click()};
Go.prototype.onFilesSelected_=function(q){a:{try{var w=(new XMLHttpRequest).upload!==void 0;break a}catch(N){}w=!1}if(w){var u;q=Array.from((u=q.target.files)!=null?u:[]);u=[];if(this.selectorType_==="single_directory"&&(_.PS||xF||_.tv)){u=new tO("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(w=0;w<q.length;w++)for(var y=q[w],e=y.webkitRelativePath.split("/"),t=u,X=0;X<e.length;X++){var G=e[X];if(X==e.length-1){G!="."&&t.files_.push(y);break}var n=t.directoryMap_[G];n==void 0&&(G=
n=new tO(G),t.directoryMap_[G.getName()]=G,t.directories_.push(G));t=n}u=u.directories_}this.dispatchEvent(new DDk(q,u,null))}else q=q.target.value,q.match(/^c:\\fakepath\\/i)&&(q=q.substring(12)),this.dispatchEvent(new DDk([],[],new zOX(q,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=a2T(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var DDk=function(q,w){_.nM.call(this,"j");this.files=q;this.directories=w};
_.O(DDk,_.nM);var ZVc=function(q){this.uploadUrl_=q};var py$=function(){_.Q4.call(this)};
_.w9(py$,_.Q4);var nG=function(q){_.nM.call(this,q)};
_.w9(nG,_.nM);var Hi=function(q){_.nM.call(this,q)};
_.w9(Hi,_.nM);var $DZ=function(q,w,u,y,e){_.Q4.call(this);u=document.createElement("form");u.setAttribute("method",w);u.setAttribute("enctype","multipart/form-data");u.setAttribute("encoding","multipart/form-data");w=document.createElement("input");w.setAttribute("type","hidden");w.setAttribute("name","metadata");w.setAttribute("value",e);u.appendChild(w);u.appendChild(y);this.JSC$9866_form_=u;q=new _.M4(q);_.lI(q,"upload_protocol","multipart");this.JSC$9866_url_=q.toString();this.JSC$9866_request_=new MA;this.state_=
"Ready";this.JSC$9866_errorDescription_=null;this.JSC$9866_eventHandler_=new _.tp(this);_.sN(this,this.JSC$9866_eventHandler_);this.JSC$9866_eventHandler_.listen(this.JSC$9866_request_,"success",this.onTransferSuccess_);this.JSC$9866_eventHandler_.listen(this.JSC$9866_request_,"error",this.onTransferError_)};
_.O($DZ,py$);_.k=$DZ.prototype;_.k.run=function(){this.state_="Transferring";var q=this.JSC$9866_request_,w=this.JSC$9866_form_;if(q.JSC$9284_active_)throw Error("oe");var u=new _.M4(this.JSC$9866_url_||w.action);q.JSC$9284_form_=w;w=q.JSC$9284_form_;u=_.ow(u.toString());u!==void 0&&(w.action=u);Hpc(q)};
_.k.getResponseCode=function(){return null};
_.k.getResponseText=function(){return this.JSC$9866_request_&&this.JSC$9866_request_.getResponseText()||null};
_.k.JSC$25690_getErrorDescription=function(){return this.JSC$9866_errorDescription_};
_.k.cancel=function(){this.JSC$9866_request_&&this.JSC$9866_request_.abort();this.state_="Cancelled";this.dispatchEvent(new nG("o"))};
_.k.pause=function(){};
_.k.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new nG("l"))};
_.k.onTransferError_=function(){this.JSC$9866_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new nG("n"))};var Wi=function(){_.Oj.call(this)};
_.O(Wi,_.Oj);Wi.prototype.createXhr=function(){var q=_.Oj.prototype.createXhr.call(this);q.upload&&(q.upload.onprogress=(0,_.fY)(this.onProgress_,this));return q};
Wi.prototype.onProgress_=function(q){this.dispatchEvent(q)};var vDZ=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},YKF=function(q,w){var u=q.attempt_+1;
if(q.maxAttempts_>0&&u>q.maxAttempts_)return!1;u==0?w():q.delayCallId_=Tx(function(){q.delayCallId_=null;w()},bVT(q),q);
q.attempt_=u;return!0};
vDZ.prototype.reset=function(){this.delayCallId_&&_.uc.clearTimeout(this.delayCallId_);this.attempt_=-1};
var bVT=function(q){var w=250*Math.pow(2,q.attempt_);q.maxDelayMs_>=0&&(w=Math.min(w,q.maxDelayMs_));return w};var DBM=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var su=function(){_.Q4.call(this);this.JSC$9876_request_=this.state_=null;this.JSC$9876_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9876_bytesTransferred_=0;this.retryIterator_=new vDZ;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9876_errorDescription_=null;this.JSC$9876_eventHandler_=new _.tp(this);_.sN(this,this.JSC$9876_eventHandler_);this.JSC$9876_url_=this.blob_=null;this.JSC$9876_method_=void 0;this.chunkSize_=this.JSC$9876_metadata_=
this.JSC$9876_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9876_responseText_=this.JSC$9876_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.w9(su,py$);_.k=su.prototype;_.k.run=function(){NY(this)};
_.k.getResponseCode=function(){return this.JSC$9876_responseCode_};
_.k.getResponseText=function(){return this.JSC$9876_responseText_};
_.k.JSC$25690_getErrorDescription=function(){return this.JSC$9876_errorDescription_};
_.k.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9876_eventHandler_.removeAll();this.JSC$9876_request_&&this.JSC$9876_request_.abort();this.retryIterator_.reset();var q=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(q==="Upload"||q==="Query")q=new Wi,q.JSC$7699_withCredentials_=this.JSC$9876_withCredentials_,q.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9876_bytesTransferred_=
0;this.dispatchEvent(new nG("o"))}};
_.k.pause=function(){this.pauseRequested_=!0};
var NY=function(q){var w=q.state_;q.pauseRequested_?(q.pauseRequested_=!1,q.stateAfterUnpausing_=w,q.state_="Paused"):YKF(q.retryIterator_,function(){switch(q.state_){case "Start":q.JSC$9876_request_=new Wi;var u=_.db.clone(q.JSC$9876_headers_);q.blob_.size!=null&&(u["Content-Length"]=q.blob_.size);u=ZO6(u);u["X-Goog-Upload-Protocol"]="resumable";u["X-Goog-Upload-Command"]="start";q.JSC$9876_eventHandler_.removeAll();q.JSC$9876_eventHandler_.listen(q.JSC$9876_request_,"complete",q.onStartComplete_);
q.JSC$9876_request_.JSC$7699_withCredentials_=q.JSC$9876_withCredentials_;q.JSC$9876_request_.send(q.JSC$9876_url_,q.JSC$9876_method_,q.JSC$9876_metadata_,u);q.lastCommandResponseCode_=null;q.dispatchEvent(new Hi("q"));break;case "Upload":u=q.transferHandle_.uploadUrl_;var y=q.blob_.size;if(B_6()){var e=q.chunkSize_;var t=q.offset_+e>=y;y=KLk(q.blob_,q.offset_,t?y:q.offset_+e)}else q.offset_=0,y=q.blob_,t=!0;q.JSC$9876_request_=new Wi;q.JSC$9876_request_.JSC$7699_withCredentials_=q.JSC$9876_withCredentials_;
q.JSC$9876_eventHandler_.removeAll();q.JSC$9876_eventHandler_.listen(q.JSC$9876_request_,"progress",q.onUploadProgress_);e=(0,_.fY)(q.JSC$9878_onUploadComplete_,q,q.offset_+y.size,t);q.JSC$9876_eventHandler_.listen(q.JSC$9876_request_,"complete",e);q.lastCommandResponseCode_=null;q.dispatchEvent(new Hi("q"));t=Object.assign({},q.JSC$9876_headers_||{},{"X-Goog-Upload-Command":"upload"+(t?", finalize":""),"X-Goog-Upload-Offset":q.offset_});q.JSC$9876_request_.send(u,"POST",y,t);break;case "Query":q.JSC$9876_request_=
new Wi;q.JSC$9876_eventHandler_.removeAll();q.JSC$9876_eventHandler_.listen(q.JSC$9876_request_,"complete",q.onQueryComplete_);u=Object.assign({},q.JSC$9876_headers_||{},{"X-Goog-Upload-Command":"query"});q.JSC$9876_request_.send(q.transferHandle_.uploadUrl_,"POST","",u);q.lastCommandResponseCode_=null;q.dispatchEvent(new Hi("q"));break;default:throw Error("df");}})||Q0(q,"Transfer encountered too many consecutive failures.")},Q0=function(q,w){q.state_="Error";
q.JSC$9876_errorDescription_=w;q.dispatchEvent(new nG("n"))};
su.prototype.onStartComplete_=function(q){var w=q.target;this.lastCommandResponseCode_=w.getStatus();this.dispatchEvent(new Hi("r"));if(gDP(w))EDF(this,w);else if(ROZ(w)){q=xs(q.target.getAllResponseHeaders());for(var u in q)_.tz(u.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new nG("m"));u=Ap(q,"X-Goog-Upload-URL");q=(q=Ap(q,"X-Goog-Upload-Chunk-Granularity"))?parseInt(q,10):1;u===void 0||isNaN(q)||q<=0?Q0(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
q)*q,this.transferHandle_=new ZVc(u),this.dispatchEvent(new nG("p")),this.state_="Upload",this.retryIterator_.reset(),NY(this))}else NY(this)};
su.prototype.onUploadProgress_=function(q){this.JSC$9876_bytesTransferred_=this.offset_+q.loaded;this.dispatchEvent(new nG("k"))};
su.prototype.JSC$9878_onUploadComplete_=function(q,w,u){var y=this,e,t;return _.F(function(X){switch(X.nextAddress){case 1:e=u.target;y.lastCommandResponseCode_=e.getStatus();y.dispatchEvent(new Hi("r"));if(cK3(e)||e.getStatus()==404)return y.JSC$9876_bytesTransferred_=q,EDF(y,e),X.return();if(ROZ(e)){X.jumpTo(2);break}if(!(t=y.detectCorruptedBlobEnabled_)){X.jumpTo(3);break}return _.H(X,SK6(y),4);case 4:t=X.yieldResult;case 3:if(t)return Q0(y,"Blob has been modified or corrupted."),X.return();y.requireUploadRequestModification_=
e.getStatus()==400;y.state_="Query";NY(y);return X.return();case 2:if(w)return Q0(y,"Got a non-final success response after issuing a finalize command."),X.return();y.JSC$9876_bytesTransferred_=q;y.offset_=q;y.retryIterator_.reset();NY(y);return X.return()}})};
su.prototype.onQueryComplete_=function(q){var w=q.target;this.lastCommandResponseCode_=w.getStatus();this.dispatchEvent(new Hi("r"));gDP(w)?(w.getStatus()===200&&(this.JSC$9876_bytesTransferred_=this.blob_.size),EDF(this,w)):ROZ(w)?(q=xs(q.target.getAllResponseHeaders()),q=parseInt(Ap(q,"X-Goog-Upload-Size-Received"),10),isNaN(q)?Q0(this,"Server did not respond with current offset."):q<this.offset_?Q0(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
q+"."):this.requireUploadRequestModification_&&this.offset_===q?Q0(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<q&&this.retryIterator_.reset(),this.offset_=this.JSC$9876_bytesTransferred_=q,this.state_="Upload",NY(this))):NY(this)};
var EDF=function(q,w){q.JSC$9876_responseCode_=w.getStatus();var u=xs(w.getAllResponseHeaders());pUM(u);q.JSC$9876_responseText_=w.getResponseText();q.state_="Response received";q.dispatchEvent(new nG("l"))},ROZ=function(q){var w=q.getStatus();
q=xs(q.getAllResponseHeaders());q=Ap(q,"X-Goog-Upload-Status");return w===200&&q==="active"},cK3=function(q){q=xs(q.getAllResponseHeaders());
return Ap(q,"X-Goog-Upload-Status")==="final"},gDP=function(q){if(cK3(q))return!0;
q=q.getStatus();return q>=400&&q<500},SK6=function(q){var w;
return _.F(function(u){if(u.nextAddress==1){if(!q.blob_||q.originalBlobSize_<=0)return u.return(!1);if(q.blob_.size!==q.originalBlobSize_)return u.return(!0);_.tD(u,2);if(w=KLk(q.blob_,0,1)){var y=new DN,e=mUX(y);y.reader_.readAsBinaryString(w);u=_.H(u,e,4)}else u=u.return(!0);return u}if(u.nextAddress!=2)return u.return(q.blob_.size!==q.originalBlobSize_);_.nm(u);return u.return(!0)})};var hO$=function(q,w,u,y,e,t){_.Q4.call(this);this.payload_=y;this.JSC$9879_url_=q;this.JSC$9879_method_=w;this.JSC$9879_headers_=u;this.JSC$9879_metadata_=e;this.encoding_=t||"binary";q=new _.rQ;this.boundary_="uploader-"+Si()+"-"+q.JSC$9133_toIsoString();this.JSC$9879_responseText_=this.JSC$9879_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9879_errorDescription_=null;this.JSC$9879_eventHandler_=new _.tp(this);_.sN(this,this.JSC$9879_eventHandler_)};
_.O(hO$,py$);_.k=hO$.prototype;
_.k.run=function(){var q=_.db.clone(this.JSC$9879_headers_);this.payload_.length!=null&&(q["Content-Length"]=this.payload_.length);q=ZO6(q);q["X-Goog-Upload-Protocol"]="multipart";q["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new Wi;this.JSC$9879_eventHandler_.removeAll();this.JSC$9879_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9879_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9879_url_,this.JSC$9879_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9879_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",q)};
_.k.getResponseCode=function(){return this.JSC$9879_responseCode_};
_.k.getResponseText=function(){return this.JSC$9879_responseText_};
_.k.JSC$25690_getErrorDescription=function(){return this.JSC$9879_errorDescription_};
_.k.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9879_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new nG("o")))};
_.k.pause=function(){};
_.k.onTransferProgress_=function(){this.dispatchEvent(new nG("k"))};
_.k.onTransferComplete_=function(q){var w=q.target.getStatus();w===void 0||w===-1?(this.JSC$9879_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new nG("n"))):(this.JSC$9879_responseCode_=w,q=q.target,w=xs(q.getAllResponseHeaders()),pUM(w),this.JSC$9879_responseText_=q.getResponseText(),this.state_="Complete",this.dispatchEvent(new nG("l")))};_.jSk=function(q,w,u,y){y=y===void 0?!1:y;if(u instanceof zOX)return new $DZ(q,"POST",w,u.getInputElement(),"");if(typeof u==="string"||u instanceof String)return new hO$(q,"POST",w,u,"");var e=new su(void 0);e.JSC$9876_url_=q;e.JSC$9876_method_="POST";e.JSC$9876_headers_=w;e.blob_=u;e.originalBlobSize_=u.size;e.JSC$9876_metadata_="";y&&(e.JSC$9876_withCredentials_=y);e.state_="Start";return e};var IB=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(IB,_.bE);_.k=IB.prototype;_.k.getEnableSsEngine=function(){return _.OL(this,2)};
_.k.getEnableAwr=function(){return _.OL(this,3)};
_.k.getAlohaAutoGaRollout=function(){return _.OL(this,5)};
_.k.getEnableConfigurator=function(){return _.OL(this,6)};
_.k.getEnableMweb=function(){return _.OL(this,7)};
var L0c=function(){var q=l2F();return _.z6(q,7,!0)};
IB.prototype.getEnableCtlConsentCheckbox=function(){return _.OL(this,8)};
IB.prototype.getEnableIframe=function(){return _.OL(this,9)};
var l2F=function(){var q=new IB;q=_.z6(q,5,!0);q=_.z6(q,2,!0);q=_.z6(q,4,!1);q=_.z6(q,8,!0);return _.z6(q,9,!0)};
IB.prototype.getEnableScreenshotNudge=function(){return _.OL(this,10)};
var Ms6=function(){var q=L0c();return _.z6(q,10,!0)};
IB.prototype.getEnableWebStartupConfigEndpoint=function(){return _.OL(this,11)};
IB.prototype.getEnableJunkNudge=function(){return _.OL(this,12)};
var xBl=function(){var q=Ms6();return _.z6(q,12,!0)};
_.k=IB.prototype;_.k.getEnableConfiguratorLocale=function(){return _.OL(this,13)};
_.k.getEnableTinyNoPointer=function(){return _.OL(this,14)};
_.k.getEnableSupportSessionLogging=function(){return _.OL(this,15)};
_.k.getEnableFileUploadForScreenshot=function(){return _.OL(this,16)};
_.k.getEnableDirectDeflectionForSingleCategory=function(){return _.OL(this,17)};
_.k.getEnableImageSanitization=function(){return _.OL(this,18)};
_.k.getEnableAlohaBinarySplit=function(){return _.OL(this,19)};
_.k.getEnableDbFeedbackIntents=function(){return _.OL(this,20)};
_.k.getEnableMarkMandatoryFieldsWithRequired=function(){return _.OL(this,21)};
_.k.getEnableFeedbackCategoryCustomUi=function(){return _.OL(this,22)};
_.k.getEnableRealtimeCtl=function(){return _.OL(this,23)};var BPu=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(BPu,_.bE);var $Bz=[/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 bOo="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 YbJ=_.Sc(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),gkf=_.Sc(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var R2s,Sb6;var K0x,BIF;
K0x=function(q,w,u){q.timeOfStartCall=(new Date).getTime();var y=u||_.uc,e=y.document,t=q.nonce||_.DD(y.document);t&&!q.nonce&&(q.nonce=t);if(q.flow=="help"){var X=_.hP("document.location.href",y);!q.helpCenterContext&&X&&(q.helpCenterContext=X.substring(0,1200));X=!0;if(w&&JSON&&JSON.stringify){var G=JSON.stringify(w);(X=G.length<=1200)&&(q.psdJson=G)}X||(w={invalidPsd:!0})}w=[q,w,u];y.GOOGLE_FEEDBACK_START_ARGUMENTS=w;u=q.feedbackServerUri||"//www.google.com/tools/feedback";if(X=y.GOOGLE_FEEDBACK_START)X.apply(y,w);
else{y=u+"/load.js?";for(var n in q)w=q[n],w==null||_.er(w)||(y+=encodeURIComponent(n)+"="+encodeURIComponent(w)+"&");q=WX(e).createElement("SCRIPT");t&&q.setAttribute("nonce",t);_.bZ(q,_.FE(y));e.body.appendChild(q)}};
BIF=function(q,w,u,y){var e,t;_.F(function(X){e=u||_.uc;var G=q.serverEnvironment==="DEV",n=u||_.uc;n=q.nonce||_.DD(n.document);G={integrationKeys:{productId:q.productId,feedbackBucket:q.bucket,triggerId:q.triggerId},callbacks:{onClose:q.callback,onLoad:q.onLoadCallback},formContent:{locale:q.locale,disableScreenshot:q.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:q.abuseLink,additionalDataConsent:q.additionalDataConsent},initializationData:{isLocalServer:G,nonce:n,useNightlyRelease:G,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:q.feedbackServerUri,colorScheme:q.colorScheme},extraData:{productVersion:q.productVersion,authUser:q.authuser,configuratorId:q.configuratorId,customZIndex:q.customZIndex,tinyNoPointer:q.tinyNoPointer,
allowNonLoggedInFeedback:q.allowNonLoggedInFeedback,enableAnonymousFeedback:q.enableAnonymousFeedback}};w&&(n=new Map(Object.entries(w)),G.extraData.productSpecificData=n);t=G;return _.H(X,L_M(t,y,e),0)})};
_.xDk=function(q,w,u){try{if(q.flow==="help"){var y=q.helpCenterPath.replace(/^\//,"");_.aw(u||window,"https://support.google.com/"+y)}else q.flow==="submit"?K0x(q,w,u):qjl(q.productId,q.feedbackServerUri).then(function(e){e=_.PT(e,IB,1);var t=!Tzj||(e==null?void 0:e.getEnableMweb()),X=!q.tinyNoPointer||(e==null?void 0:e.getEnableTinyNoPointer());!e||e.getAlohaAutoGaRollout()&&t&&X?BIF(q,w,u,e):K0x(q,w,u)},function(e){e&&e.name!=="DuplicateFormError"&&K0x(q,w,u)})}catch(e){BIF(q,w,u,null)}};
_.wr("userfeedback.api.startFeedback",_.xDk);var wJc=/https?:\/\/\S+\.\S+/,usu=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],y57=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var WBM=function(q){var w=q.split(""),u=[-263237435,15,w,function(y,e,t){var X=e.length;t.forEach(function(G,n,N){this.push(N[n]=e[(e.indexOf(G)-e.indexOf(this[n])+n+X--)%e.length])},y.split(""))},
function(y,e){y=(y%e.length+e.length)%e.length;e.splice(-y).reverse().forEach(function(t){e.unshift(t)})},
"response",function(){for(var y=64,e=[];++y-e.length-32;){switch(y){case 58:y-=14;case 91:case 92:case 93:continue;case 123:y=47;case 94:case 95:case 96:continue;case 46:y=95}e.push(String.fromCharCode(y))}return e},
null,12,1540023973,65941107,null,w,function(y,e){for(y=(y%e.length+e.length)%e.length;y--;)e.unshift(e.pop())},
695603893,function(y){for(var e=y.length;e;)y.push(y.splice(--e,1)[0])},
"'[;'[(",function(y,e){y.push(e)},
null,function(y,e,t,X,G){return e(t,X,G)},
"continuation",w,function(y,e){if(y.length!=0){e=(e%y.length+y.length)%y.length;var t=y[0];y[0]=y[e];y[e]=t}},
function(){for(var y=64,e=[];++y-e.length-32;){switch(y){case 91:y=44;continue;case 123:y=65;break;case 65:y-=18;continue;case 58:y=96;continue;case 46:y=95}e.push(String.fromCharCode(y))}return e},
'"),/]];'];u[7]=u;u[11]=u;u[18]=u;try{(((0,u[15])(u[21]),u[22])(u[11],u[9]),u[22])(u[new Date("1970-01-01T04:30:12.000+04:30")/1E3],u[1]),((0,u[22])(u[11],u[23]),u[4])(u[10],u[18]),(0,u[20])(u[21],u[14])<<(0,u[17])(u[18],u[1]),(0,u[4])(u[8],u[21]),(0,u[19])((0,u[19])((0,u[17])(u[7],u[9]),u[3],u[20],(0,u[6])(),u[2]),u[3],u[5],(0,u[15])(),u[2])}catch(y){return"aTlOUOubTO4AP____8P_"+q}return w.join("")};_.qIX=new _.M("runAttestationCommand");var wrj=new _.M("verifyCommand");_.ik=new _.M("accessibilityContext");var uNG=new _.M("accessibilityData");var yIx=new _.M("profileCardCommand");var HRj=new _.M("signInEndpoint");var nIH=new _.M("signOutEndpoint");var kTG;_.eGP=new _.M("accountItemSectionRenderer");kTG=new _.M("accountItemRenderer");_.tcc=new _.M("saveCommandToSessionStorageAction");var PUc=new _.M("crossAccountChannelTransferEndpoint");var XOy=new _.M("getAccountMenuEndpoint");_.FKo=new _.M("getAccountSwitcherEndpoint");var Pwc=new _.M("getAccountsListEndpoint");var Xr6=new _.M("getAccountsListInnertubeEndpoint");_.Fpa=new _.M("addToToastAction");var GTj=new _.M("hideEnclosingAction");_.rf=new _.M("replaceEnclosingAction");var nX6=new _.M("buttonRefreshAction");var HCT=new _.M("adsControlFlowOpportunityReceivedCommand");var WpP=new _.M("openAdAllowlistInstructionCommand");var s5r=new _.M("videoMastheadAdPrimaryVideoRenderer");var NZc=new _.M("displayAdRenderer");var S7M=new _.M("instreamVideoAdRenderer");_.Q5x=new _.M("inFeedAdLayoutRenderer");var IzG=new _.M("sequenceItemInPlayerAdLayoutRenderer");_.iCx=new _.M("adSlotRenderer");var rIZ=new _.M("adAvatarViewModel");var ULT=new _.M("adBadgeViewModel");var TZF=new _.M("adButtonViewModel");var Uu=new _.M("adImageViewModel");var JNc=new _.M("reelsAdCardButtonedViewModel");var CUT=new _.M("reelsPlayerOverlayLayoutViewModel");var dLc=new _.M("showSchedulingPanelCommand");var OC3=new _.M("backstageCommentsRenderer");var oXa=new _.M("backstageImageRenderer");var VcZ=new _.M("backstagePostRenderer");var fz6=new _.M("postRenderer");var mLT=new _.M("sharedPostRenderer");var AI3=new _.M("createBackstagePostEndpoint");var JIG=new _.M("getPostVideoPreviewEndpoint");var zGk=new _.M("updateBackstagePostEndpoint");var az6=new _.M("filterChipTransformCommand");var DLG=new _.M("insertRichSectionCommand");var xyo=new _.M("talkToRecsDeselectCommand");var ZCX=new _.M("talkToRecsNextCommand");var BKo=new _.M("talkToRecsSelectCommand");var prr=new _.M("talkToRecsUpdateTextCommand");_.Ii=new _.M("browseEndpoint");_.$L6=new _.M("confirmDialogEndpoint");var vXF=new _.M("expandOnHoverCardRenderer");var bCT=new _.M("lumiereShelfDetailsRenderer");var YIZ=new _.M("revealBusinessEmailCommand");var gXr=new _.M("validateChannelHandleCommand");var EXa=new _.M("channelCreationFormEndpoint");var RGr=new _.M("aboutChannelViewModel");var cIF=new _.M("channelThumbnailWithLinkRenderer");var SIk=new _.M("channelCreationServiceEndpoint");var hGX=new _.M("updateChannelPageSettingsEndpoint");var To=function(q){this.delegate=q},CG=function(){To.apply(this,arguments)};
_.O(CG,To);_.x$.Object.defineProperties(CG.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(q){this.delegate.entityMetadata=q}}});var j5T=function(){CG.apply(this,arguments)};
_.O(j5T,CG);j5T.prototype.getAssociations=function(){return[]};var fPf=new _.M("webThumbnailDetailsExtensionData");var XeM=new _.M("commandContext");var lzG=new _.M("addVideoLinkAction");var LpF=new _.M("createPollAction");var Mc6=new _.M("hideIdentityChipAction");var Kpc=new _.M("openUpdateCommentDialogAction");var df=new _.M("updateBackstagePollAction");var BZa=new _.M("updateCommentVoteAction");var xL$=new _.M("commentThreadRenderer");var qLX=function(){CG.apply(this,arguments)};
_.O(qLX,CG);qLX.prototype.getAssociations=function(){return[]};_.wSr=new _.M("commentDialogRenderer");var u1x=new _.M("updateCommentsSettingsEndpoint");var yvj=new _.M("commentViewModel");var eDG=new _.M("triStateButtonViewModel");var ksT=new _.M("voiceReplyContainerViewModel");_.Ww=new _.M("commandExecutorCommand");var zj=new _.M("emoji");var tV3=new _.M("updateCreatorChannelInnertubeCommand");_.P8X=new _.M("appendContinuationItemsAction");_.XSa=new _.M("changeEngagementPanelVisibilityAction");_.ZK=new _.M("continuationCommand");var Fwr=new _.M("listMutationCommand");_.Ou=new _.M("openPopupAction");var Gsr=new _.M("persistSubscriptionsDisplayPreferencesCommand");var iyT;_.nfP=new _.M("playlistRemoveVideosAction");_.Hyr=new _.M("updatePlaylistAction");_.WwZ=new _.M("addToPlaylistCommand");_.sGc=new _.M("endPlaylistCommand");_.N96=new _.M("recoverPlaylistCommand");_.QGk=new _.M("refreshPlaylistCommand");_.IST=new _.M("refreshFormCommand");iyT=new _.M("openOnePickAddVideoModalCommand");_.Nv6=new _.M("reloadContinuationItemsCommand");_.rva=new _.M("scrollToEngagementPanelCommand");var UG6=new _.M("selectCountryCommand");var T9X=new _.M("showReloadUiCommand");var C8G=new _.M("undoFeedbackAction");var dG$=new _.M("updateButtonAction");var Oyk=new _.M("updateSubscribeButtonAction");var ofj=new _.M("updateToggleAction");var VVa=new _.M("webNativeShareCommand");_.wk=new _.M("webCommandMetadata");_.oB=new _.M("webHandleServiceEndpointExtension");var U84=new _.M("webNavigationEndpointData");var fSZ=new _.M("copyLinkCommand");var mGk=new _.M("playlistVotingRefreshPopupCommand");var AvF=new _.M("selectChipCommand");var Jvk=new _.M("setCookieCommand");var zDk=new _.M("setLocalStorageCommand");var aS3=new _.M("setPrefStorageEntryCommand");var $GZ;_.DGj=new _.M("settingsUpdateCheckboxCommand");_.Zyj=new _.M("settingsUpdateTextCommand");_.pSj=new _.M("settingsUpdateOptionsCommand");$GZ=new _.M("settingsUpdateSwitchCommand");_.vf$=new _.M("settingsUpdateConnectedAppRendererCommand");var byk=new _.M("updateTextInputFormFieldRendererCommand");var YLF=new _.M("updateToggleButtonStateCommand");var gfk=new _.M("updateUrlParamCommand");var EfX=new _.M("webSubmitFormCommand");var RDF=new _.M("channelSwitcherPageRenderer"),cva=new _.M("updateChannelSwitcherPageAction");_.ec=new _.M("continuationItemRenderer");_.V0=new _.M("richItemRenderer");var SLF=new _.M("richSectionRenderer");_.hDZ=new _.M("richShelfRenderer");_.jGk=new _.M("metadataBadgeRenderer");_.lSc=new _.M("multiPageMenuNotificationSectionRenderer");_.Lwk=new _.M("playlistLoopButtonStateRenderer");var MVa=new _.M("claimLegacyYoutubeChannelEndpoint");var KwX=new _.M("getNotificationMenuEndpoint");var B9G=new _.M("getSearchInVideoCommand");_.xGF=new _.M("getTranscriptEndpoint");_.NU=new _.M("signalServiceEndpoint");var qb6=new _.M("verifyAgeEndpoint");var Qty=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Qty,_.bE);Qty.prototype.getPath=function(){return _.fy(this,1)};
Qty.prototype.getValue=function(){return _.fy(this,2)};var wU3=[0,_.cS,-1];var uVx=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(uVx,_.bE);var NwM=_.qC(uVx,[0,_.SV,wU3]);var yta=new _.M("dismissalEndpoint");var e2P=new _.M("elementsCommand");_.Dh=new _.M("innertubeCommand");var kkX=new _.M("multipleInlinePlaybackCommand");var ei7=new _.M("loggingDirectives");var tK3=new _.M("acknowledgeChannelTouStrikeCommand");var P6j=function(){CG.apply(this,arguments)};
_.O(P6j,CG);P6j.prototype.getAssociations=function(){return[]};var XUj=function(){CG.apply(this,arguments)};
_.O(XUj,CG);XUj.prototype.getAssociations=function(){return[]};var j6=new _.M("entityBatchUpdate");_.F_r=new _.M("entityUpdateCommand");var GkT=function(){CG.apply(this,arguments)};
_.O(GkT,CG);GkT.prototype.getAssociations=function(){var q=[];this.delegate.alternateChannel&&q.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&q.push.apply(q,_.Cm(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&q.push(this.delegate.oneofChannelEntity);return[].concat(_.Cm(new Set(q)))};var nkx=function(){CG.apply(this,arguments)};
_.O(nkx,CG);nkx.prototype.getAssociations=function(){var q=[];this.delegate.entryCollection&&q.push(this.delegate.entryCollection);return[].concat(_.Cm(new Set(q)))};
var HOx=function(){CG.apply(this,arguments)};
_.O(HOx,CG);HOx.prototype.getAssociations=function(){var q=[];this.delegate.parentPlaylist&&q.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var w=_.P(this.delegate.entries),u=w.next();!u.done;u=w.next())q.push.apply(q,_.Cm((new W_6(u.value)).getAssociations()));return[].concat(_.Cm(new Set(q)))};
var W_6=function(){To.apply(this,arguments)};
_.O(W_6,To);W_6.prototype.getAssociations=function(){var q=[];this.delegate.video&&q.push(this.delegate.video);return[].concat(_.Cm(new Set(q)))};var sJa=function(){CG.apply(this,arguments)};
_.O(sJa,CG);sJa.prototype.getAssociations=function(){var q=[];this.delegate.descriptionEntity&&q.push(this.delegate.descriptionEntity);this.delegate.creators&&q.push.apply(q,_.Cm(this.delegate.creators));this.delegate.theBiggestFan&&q.push(this.delegate.theBiggestFan);return[].concat(_.Cm(new Set(q)))};
var NPT=function(){CG.apply(this,arguments)};
_.O(NPT,CG);NPT.prototype.getAssociations=function(){return[]};var QJX=new _.M("fantasyRosterViewModel");var IlF=new _.M("addFollowUpSurveyCommand");var iOZ=new _.M("getSurveyCommand");var rtr=new _.M("ratingSurveyOptionRenderer");_.JI=new _.M("feedbackEndpoint");var UBG=new _.M("reportHistoryTableCellRenderer"),TPr=new _.M("reportHistoryTableTextCellRenderer"),C6r=new _.M("reportHistoryTableReasonCellRenderer");_.dBa=new _.M("flagEndpoint");var OO$=new _.M("getFlowCommand");var okT=new _.M("submitFormWithValidationFlowCommand");var VKx=function(){CG.apply(this,arguments)};
_.O(VKx,CG);VKx.prototype.getAssociations=function(){return[]};var flF=new _.M("flowFormState");var mBG=new _.M("gameCardRenderer");var At3=new _.M("accountLinkingStateChangedCommand");var JtF=function(){CG.apply(this,arguments)};
_.O(JtF,CG);JtF.prototype.getAssociations=function(){return[]};var z23=new _.M("changeMiniAppPlayStateCommand");var alP=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(alP,_.bE);var fG=[1,2,3];var DBT=[0,fG,MEs,_.K1H,Rau];var ZOZ=_.qC(alP,DBT),pUF=_.wB(DBT);var $Bc=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O($Bc,_.bE);var vkX=[0,_.g9,_.cS];var bO6=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(bO6,_.bE);var YbT=[0,_.cS,_.g9,-1];var gk3=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(gk3,_.bE);var Ek$=function(q,w){return _.Xo(q,3,w)};var R2X=_.wB([0,1,vkX,_.jV,YbT]);var ctk=new _.M("miniAppScoreChallengeViewModel");var SbZ=new _.M("miniGameCardViewModel");var h2j=new _.M("teaserCardViewModel");var jJk=function(){CG.apply(this,arguments)};
_.O(jJk,CG);jJk.prototype.getAssociations=function(){return[]};_.llx=new _.M("feedbackItemRenderer");var L_T=function(){CG.apply(this,arguments)};
_.O(L_T,CG);L_T.prototype.getAssociations=function(){return[]};_.MKF=new _.M("playerInterstitialRenderer");var K_T=new _.M("getKidsBlocklistPickerCommand");_.BPj=new _.M("updateKidsBlacklistEndpoint");_.Ss=new _.M("likeEndpoint");var xBa,qja,wJP;xBa=new _.M("addChatItemAction");qja=new _.M("removeChatItemAction");wJP=new _.M("markChatItemAsDeletedAction");_.usj=new _.M("setLiveChatCollapsedStateAction");var y5$=function(){CG.apply(this,arguments)};
_.O(y5$,CG);y5$.prototype.getAssociations=function(){return[]};var ezX=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(ezX,_.bE);var kxa=_.qC(ezX,[0,1,_.g9]);var tnx=new _.M("liveChatEndpoint");var PhF=new _.M("liveChatItemContextMenuEndpoint");var XJc=new _.M("liveChatReplayEndpoint");_.FoP=new _.M("emojiPickerRenderer");var Gx$=new _.M("liveChatAuthorBadgeViewModel");var nr6=new _.M("deleteLiveChatMessageCommand");var HM$=new _.M("liveChatActionEndpoint");var Woa=new _.M("createLiveChatPollEndpoint");var sfT=new _.M("manageLiveChatUserEndpoint");var NDj=new _.M("moderateLiveChatEndpoint");_.QfZ=new _.M("sendLiveChatMessageEndpoint");var I9T=new _.M("sendLiveChatVoteEndpoint");var iMP=new _.M("clearLocationCommand");var r5P=new _.M("resolveLocationCommand");var UFa=new _.M("interactionLoggingCommandMetadata");var zoH=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(zoH,_.bE);var JQ6=function(q,w){return _.P2(q,1,w)};var TDZ=[0,_.RG];var AQz=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(AQz,_.bE);var mj7=function(q,w){return Cn(q,1,zoH,w)};AQz.prototype.JSC$9971_serializeBinary=w3M([0,_.SV,TDZ]);var OMM={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 ChZ={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"},
dFF={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 vJo={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"};_.SSl=new _.M("logFlowLoggingEventCommand");_.af7=new _.M("loggingContext");var OMF=new _.M("captionLanguageSelectActionCommand");var orx=new _.M("showCaptionLanguageSelectActionCommand");var VnT=new _.M("dismissDialogEndpoint");var f9c=new _.M("hideItemSectionVideosByIdCommand");var mFx=new _.M("showMiniplayerCommand");var A5P=function(){CG.apply(this,arguments)};
_.O(A5P,CG);A5P.prototype.getAssociations=function(){return[]};var J5G=function(){CG.apply(this,arguments)};
_.O(J5G,CG);J5G.prototype.getAssociations=function(){return[]};var zzc=function(){CG.apply(this,arguments)};
_.O(zzc,CG);zzc.prototype.getAssociations=function(){return[]};var a9x=function(){CG.apply(this,arguments)};
_.O(a9x,CG);a9x.prototype.getAssociations=function(){var q=[];this.delegate.downloadsList&&q.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&q.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&q.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&q.push(this.delegate.refresh);return[].concat(_.Cm(new Set(q)))};var DFP=function(){CG.apply(this,arguments)};
_.O(DFP,CG);DFP.prototype.getAssociations=function(){var q=[];this.delegate.refresh&&q.push(this.delegate.refresh);if(this.delegate.downloads)for(var w=_.P(this.delegate.downloads),u=w.next();!u.done;u=w.next())q.push.apply(q,_.Cm((new ZMF(u.value)).getAssociations()));return[].concat(_.Cm(new Set(q)))};
var ZMF=function(){To.apply(this,arguments)};
_.O(ZMF,To);ZMF.prototype.getAssociations=function(){var q=[];this.delegate.video&&q.push(this.delegate.video);this.delegate.playlist&&q.push(this.delegate.playlist);this.delegate.videoItem&&q.push(this.delegate.videoItem);this.delegate.playlistItem&&q.push(this.delegate.playlistItem);return[].concat(_.Cm(new Set(q)))};var pJG=function(){CG.apply(this,arguments)};
_.O(pJG,CG);pJG.prototype.getAssociations=function(){var q=[];this.delegate.localImageEntities&&q.push.apply(q,_.Cm(this.delegate.localImageEntities));return[].concat(_.Cm(new Set(q)))};var $FT=function(){CG.apply(this,arguments)};
_.O($FT,CG);$FT.prototype.getAssociations=function(){var q=[];this.delegate.playbackData&&q.push(this.delegate.playbackData);this.delegate.localImageEntities&&q.push.apply(q,_.Cm(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&q.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Cm(new Set(q)))};var vrj=function(){CG.apply(this,arguments)};
_.O(vrj,CG);vrj.prototype.getAssociations=function(){return[]};var bMx=function(){CG.apply(this,arguments)};
_.O(bMx,CG);bMx.prototype.getAssociations=function(){var q=[];this.delegate.fakeChildren&&q.push.apply(q,_.Cm(this.delegate.fakeChildren));return[].concat(_.Cm(new Set(q)))};var Yjk=function(){CG.apply(this,arguments)};
_.O(Yjk,CG);Yjk.prototype.getAssociations=function(){var q=[];this.delegate.video&&q.push(this.delegate.video);this.delegate.playbackData&&q.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&q.push(this.delegate.offlineVideoPolicy);return[].concat(_.Cm(new Set(q)))};var gr6=function(){CG.apply(this,arguments)};
_.O(gr6,CG);gr6.prototype.getAssociations=function(){return[]};var Erc=function(){CG.apply(this,arguments)};
_.O(Erc,CG);Erc.prototype.getAssociations=function(){var q=[];this.delegate.channelOwner&&q.push(this.delegate.channelOwner);this.delegate.videos&&q.push.apply(q,_.Cm(this.delegate.videos));this.delegate.collaboratorChannels&&q.push.apply(q,_.Cm(this.delegate.collaboratorChannels));this.delegate.downloadState&&q.push(this.delegate.downloadState);this.delegate.refresh&&q.push(this.delegate.refresh);return[].concat(_.Cm(new Set(q)))};var RzX=function(){CG.apply(this,arguments)};
_.O(RzX,CG);RzX.prototype.getAssociations=function(){var q=[];this.delegate.video&&q.push(this.delegate.video);this.delegate.channelContributor&&q.push(this.delegate.channelContributor);return[].concat(_.Cm(new Set(q)))};var c5k=function(){To.apply(this,arguments)};
_.O(c5k,To);c5k.prototype.getAssociations=function(){var q=[];this.delegate.recommendedVideoMetadata&&q.push.apply(q,_.Cm((new Sjr(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.Cm(new Set(q)))};
var Sjr=function(){To.apply(this,arguments)};
_.O(Sjr,To);Sjr.prototype.getAssociations=function(){var q=[];this.delegate.localImageEntities&&q.push.apply(q,_.Cm(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&q.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Cm(new Set(q)))};var hzF=function(){To.apply(this,arguments)};
_.O(hzF,To);hzF.prototype.getAssociations=function(){var q=[];this.delegate.playbackPosition&&q.push(this.delegate.playbackPosition);return[].concat(_.Cm(new Set(q)))};var jfX=function(){CG.apply(this,arguments)};
_.O(jfX,CG);jfX.prototype.getAssociations=function(){var q=[];this.delegate.owner&&q.push(this.delegate.owner);this.delegate.downloadState&&q.push(this.delegate.downloadState);this.delegate.userState&&q.push.apply(q,_.Cm((new hzF(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&q.push.apply(q,_.Cm((new c5k(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.Cm(new Set(q)))};var l9T=function(){CG.apply(this,arguments)};
_.O(l9T,CG);l9T.prototype.getAssociations=function(){var q=[];this.delegate.userChannelDetails&&q.push(this.delegate.userChannelDetails);return[].concat(_.Cm(new Set(q)))};var Loj=function(){CG.apply(this,arguments)};
_.O(Loj,CG);Loj.prototype.getAssociations=function(){var q=[];this.delegate.channelOwner&&q.push(this.delegate.channelOwner);this.delegate.playbackPosition&&q.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&q.push.apply(q,_.Cm(this.delegate.localImageEntities));this.delegate.downloadStatus&&q.push(this.delegate.downloadStatus);return[].concat(_.Cm(new Set(q)))};var quM=new _.M("downloadsPageSmartDownloadsOptInBannerParams");var Mna=function(){CG.apply(this,arguments)};
_.O(Mna,CG);Mna.prototype.getAssociations=function(){return[]};var Kor=function(){CG.apply(this,arguments)};
_.O(Kor,CG);Kor.prototype.getAssociations=function(){return[]};var BDF=function(){CG.apply(this,arguments)};
_.O(BDF,CG);BDF.prototype.getAssociations=function(){return[]};var xFP=function(){CG.apply(this,arguments)};
_.O(xFP,CG);xFP.prototype.getAssociations=function(){return[]};var qcr=function(){CG.apply(this,arguments)};
_.O(qcr,CG);qcr.prototype.getAssociations=function(){return[]};var wzx=function(){CG.apply(this,arguments)};
_.O(wzx,CG);wzx.prototype.getAssociations=function(){return[]};var uCj=function(){CG.apply(this,arguments)};
_.O(uCj,CG);uCj.prototype.getAssociations=function(){return[]};var yYZ=function(){CG.apply(this,arguments)};
_.O(yYZ,CG);yYZ.prototype.getAssociations=function(){return[]};var eJa=function(){CG.apply(this,arguments)};
_.O(eJa,CG);eJa.prototype.getAssociations=function(){return[]};_.Jg=new _.M("dislikeButtonViewModel");_.Ag=new _.M("likeButtonViewModel");var kI$=new _.M("videoSummaryContentViewModel");var t43=new _.M("videoSummaryParagraphViewModel");var P5P=new _.M("changeTimelyActionVisibilityCommand");var Xza=new _.M("hideEngagementPanelEndpoint");var FvP=new _.M("refreshPanelEndpoint");var GI6=new _.M("scrollToSectionEndpoint");var nQX=new _.M("seekToVideoTimestampCommand");_.AI=new _.M("showEngagementPanelEndpoint");var HdP=new _.M("showTransientPlayerScrimOverlayCommand");var Wvx=new _.M("toggleEngagementPanelCommand");_.sqr=new _.M("createBroadcastCommand");var NaG=new _.M("metadataUpdateCommand");var Qq3=function(){CG.apply(this,arguments)};
_.O(Qq3,CG);Qq3.prototype.getAssociations=function(){return[]};var IQZ=function(){CG.apply(this,arguments)};
_.O(IQZ,CG);IQZ.prototype.getAssociations=function(){return[]};var id$=function(){CG.apply(this,arguments)};
_.O(id$,CG);id$.prototype.getAssociations=function(){return[]};_.rYx=new _.M("merchandiseShelfRenderer");var UH3=new _.M("gridMovieRenderer");_.TaP=new _.M("movieRenderer");var C5x=function(){CG.apply(this,arguments)};
_.O(C5x,CG);C5x.prototype.getAssociations=function(){var q=[];this.delegate.trackDownloadMetadatas&&q.push.apply(q,_.Cm(this.delegate.trackDownloadMetadatas));return[].concat(_.Cm(new Set(q)))};var dHF=function(){CG.apply(this,arguments)};
_.O(dHF,CG);
dHF.prototype.getAssociations=function(){var q=[];this.delegate.downloadedTracks&&q.push.apply(q,_.Cm(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&q.push.apply(q,_.Cm(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&q.push.apply(q,_.Cm(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&q.push.apply(q,_.Cm(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&q.push.apply(q,_.Cm(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
q.push.apply(q,_.Cm(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&q.push.apply(q,_.Cm(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&q.push.apply(q,_.Cm(this.delegate.metadataOnlyTracks));return[].concat(_.Cm(new Set(q)))};var OdZ=function(){CG.apply(this,arguments)};
_.O(OdZ,CG);OdZ.prototype.getAssociations=function(){var q=[];this.delegate.trackDownloadMetadatas&&q.push.apply(q,_.Cm(this.delegate.trackDownloadMetadatas));return[].concat(_.Cm(new Set(q)))};var oQT=function(){CG.apply(this,arguments)};
_.O(oQT,CG);oQT.prototype.getAssociations=function(){var q=[];this.delegate.playbackData&&q.push(this.delegate.playbackData);this.delegate.localImageEntities&&q.push.apply(q,_.Cm(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&q.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Cm(new Set(q)))};var V4T=function(){CG.apply(this,arguments)};
_.O(V4T,CG);
V4T.prototype.getAssociations=function(){var q=[];this.delegate.musicLibraryStatusEntity&&q.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&q.push.apply(q,_.Cm(this.delegate.primaryArtists));this.delegate.details&&q.push(this.delegate.details);this.delegate.userDetails&&q.push(this.delegate.userDetails);this.delegate.tracks&&q.push.apply(q,_.Cm(this.delegate.tracks));this.delegate.share&&q.push(this.delegate.share);this.delegate.downloadMetadata&&q.push(this.delegate.downloadMetadata);this.delegate.refresh&&
q.push(this.delegate.refresh);return[].concat(_.Cm(new Set(q)))};
var fQa=function(){CG.apply(this,arguments)};
_.O(fQa,CG);fQa.prototype.getAssociations=function(){var q=[];this.delegate.albumRelease&&q.push(this.delegate.albumRelease);this.delegate.tracks&&q.push.apply(q,_.Cm(this.delegate.tracks));return[].concat(_.Cm(new Set(q)))};
var mHZ=function(){CG.apply(this,arguments)};
_.O(mHZ,CG);mHZ.prototype.getAssociations=function(){var q=[];this.delegate.albumRelease&&q.push(this.delegate.albumRelease);return[].concat(_.Cm(new Set(q)))};var AYP=function(){CG.apply(this,arguments)};
_.O(AYP,CG);AYP.prototype.getAssociations=function(){var q=[];this.delegate.details&&q.push(this.delegate.details);this.delegate.userDetails&&q.push(this.delegate.userDetails);return[].concat(_.Cm(new Set(q)))};
var JYG=function(){CG.apply(this,arguments)};
_.O(JYG,CG);JYG.prototype.getAssociations=function(){var q=[];this.delegate.parentArtist&&q.push(this.delegate.parentArtist);return[].concat(_.Cm(new Set(q)))};
var zJG=function(){CG.apply(this,arguments)};
_.O(zJG,CG);zJG.prototype.getAssociations=function(){var q=[];this.delegate.parentArtist&&q.push(this.delegate.parentArtist);return[].concat(_.Cm(new Set(q)))};var aQj=function(){CG.apply(this,arguments)};
_.O(aQj,CG);aQj.prototype.getAssociations=function(){return[]};var DH$=function(){CG.apply(this,arguments)};
_.O(DH$,CG);DH$.prototype.getAssociations=function(){return[]};var Zdx=function(){CG.apply(this,arguments)};
_.O(Zdx,CG);
Zdx.prototype.getAssociations=function(){var q=[];this.delegate.tracks&&q.push.apply(q,_.Cm(this.delegate.tracks));this.delegate.refresh&&q.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&q.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&q.push(this.delegate.details);this.delegate.downloadMetadata&&q.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&q.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&q.push(this.delegate.userDetails);this.delegate.entryCollection&&
q.push(this.delegate.entryCollection);this.delegate.share&&q.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&q.push.apply(q,_.Cm((new pza(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.Cm(new Set(q)))};
var pza=function(){To.apply(this,arguments)};
_.O(pza,To);pza.prototype.getAssociations=function(){var q=[];this.delegate.creatorEntity&&q.push(this.delegate.creatorEntity);return[].concat(_.Cm(new Set(q)))};var $H$=function(){CG.apply(this,arguments)};
_.O($H$,CG);$H$.prototype.getAssociations=function(){return[]};var vQ6=function(){CG.apply(this,arguments)};
_.O(vQ6,CG);
vQ6.prototype.getAssociations=function(){var q=[];this.delegate.musicLibraryStatusEntity&&q.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&q.push.apply(q,_.Cm(this.delegate.artists));this.delegate.audioModeVersion&&q.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&q.push(this.delegate.videoModeVersion);this.delegate.userDetails&&q.push(this.delegate.userDetails);this.delegate.details&&q.push(this.delegate.details);this.delegate.albumRelease&&q.push(this.delegate.albumRelease);this.delegate.share&&
q.push(this.delegate.share);this.delegate.libraryEdit&&q.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&q.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&q.push(this.delegate.playbackPosition);this.delegate.lyrics&&q.push(this.delegate.lyrics);return[].concat(_.Cm(new Set(q)))};
var bdF=function(){CG.apply(this,arguments)};
_.O(bdF,CG);bdF.prototype.getAssociations=function(){var q=[];this.delegate.parentTrack&&q.push(this.delegate.parentTrack);return[].concat(_.Cm(new Set(q)))};
var YcZ=function(){CG.apply(this,arguments)};
_.O(YcZ,CG);YcZ.prototype.getAssociations=function(){var q=[];this.delegate.parentTrack&&q.push(this.delegate.parentTrack);return[].concat(_.Cm(new Set(q)))};var wZ=new _.M("musicResponsiveListItemRenderer");var rZl=new _.M("addToPlaylistEndpoint");var gQX=new _.M("captionPickerEndpoint");var EQ3=new _.M("suggestStats");var RJ6=new _.M("backstageImageUploadEndpoint");var cYT=new _.M("createBackstagePostDialogEndpoint");_.Sc$=new _.M("createCommentReplyDialogEndpoint");_.hJ$=new _.M("updateCommentDialogEndpoint");_.jqk=new _.M("updateCommentReplyDialogEndpoint");var lQa=new _.M("menuEndpoint");var IX6=new _.M("modalEndpoint");var Lv3=new _.M("playlistEditorEndpoint");var M4j=new _.M("copyTextEndpoint");var KvP,BaT;KvP=new _.M("shareEndpoint");BaT=new _.M("shareEntityEndpoint");_.xH3=new _.M("shareEntityServiceEndpoint");_.zgJ=new _.M("userFeedbackEndpoint");_.LN=new _.M("watchEndpoint");var u57=new _.M("watchPlaylistEndpoint");var qGr=new _.M("addUpcomingEventReminderEndpoint");_.mZ=new _.M("getCommentsFromInboxCommand");var w_3=new _.M("notificationOptOutEndpoint");var u7$=new _.M("recordNotificationInteractionsEndpoint");var yLZ=new _.M("removeUpcomingEventReminderEndpoint");var Ib7=new _.M("getDownloadActionCommand");_.e_X=new _.M("offlineOrchestrationActionCommand");var kXk=function(){CG.apply(this,arguments)};
_.O(kXk,CG);kXk.prototype.getAssociations=function(){return[]};var tFP=function(){CG.apply(this,arguments)};
_.O(tFP,CG);tFP.prototype.getAssociations=function(){return[]};var PRG=function(){CG.apply(this,arguments)};
_.O(PRG,CG);PRG.prototype.getAssociations=function(){return[]};var X_j=function(){CG.apply(this,arguments)};
_.O(X_j,CG);X_j.prototype.getAssociations=function(){return[]};var Fnk=function(){CG.apply(this,arguments)};
_.O(Fnk,CG);Fnk.prototype.getAssociations=function(){var q=[];this.delegate.transfer&&q.push(this.delegate.transfer);this.delegate.adsPlaybackData&&q.push.apply(q,_.Cm(this.delegate.adsPlaybackData));this.delegate.drmLicense&&q.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&q.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&q.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Cm(new Set(q)))};var GXr=function(){CG.apply(this,arguments)};
_.O(GXr,CG);GXr.prototype.getAssociations=function(){return[]};var n2X=function(){CG.apply(this,arguments)};
_.O(n2X,CG);n2X.prototype.getAssociations=function(){var q=[];this.delegate.offlineVideoStreams&&q.push.apply(q,_.Cm(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&q.push.apply(q,_.Cm(this.delegate.captionTrack));return[].concat(_.Cm(new Set(q)))};var H96=function(){CG.apply(this,arguments)};
_.O(H96,CG);H96.prototype.getAssociations=function(){return[]};var WnX=new _.M("showMoreDrawerCommand");var syx=new _.M("updateEngagementPanelContentCommand");var NMr=new _.M("getPdgBuyFlowCommand");var Qyr=new _.M("liveChatPurchaseMessageEndpoint");var IrG=new _.M("openSuperStickerBuyFlowCommand");var i9P=new _.M("updatePdgFeatureEnablementCommand");var rLX=function(){CG.apply(this,arguments)};
_.O(rLX,CG);rLX.prototype.getAssociations=function(){return[]};var Ud6=function(){CG.apply(this,arguments)};
_.O(Ud6,CG);Ud6.prototype.getAssociations=function(){return[]};_.TM6=new _.M("pdgCommentChipRenderer");_.CRc=new _.M("permissionRoleBottomBarRenderer");_.ddj=new _.M("updatePermissionRoleCommand");var O9F=new _.M("prefetchWatchCommand");var o2F=new _.M("updatePlayerErrorMessageCommand");var GU6=new _.M("toggleCaptionsVisibilityCommand");_.VFj=new _.M("quickActionsViewModel");var fr6=new _.M("playerResponse");var mdX=new _.M("playlistRenderer");_.AL6=new _.M("playlistVideoListRenderer");_.AO=new _.M("playlistEditEndpoint");var JLX=new _.M("createImagePollCommand");var z_$=new _.M("createQuizCommand");var arP=new _.M("quizRenderer");var Ddj=new _.M("uploadedVideoRenderer");var Z9j=new _.M("decorateMessageEndpoint");var p_x=new _.M("lpOfferCardOptionViewModel");var $dT=new _.M("sfvAudioItemPlaybackCommand");var v26=function(){CG.apply(this,arguments)};
_.O(v26,CG);v26.prototype.getAssociations=function(){return[]};_.JO=new _.M("reelNonVideoContentEndpoint");_.Tt=new _.M("reelWatchEndpoint");_.zo=new _.M("reelItemRenderer");_.b9T=new _.M("reelMetapanelViewModel");_.YGT=new _.M("reelNonVideoContentRenderer");_.g2F=new _.M("reelPlayerOverlayRenderer");var E2r=new _.M("shortsLockupViewModel");var R_3=new _.M("sponsorButtonViewModel");var cLT=new _.M("reelItemWatchResponse");var SGZ=new _.M("textBadgeRenderer");_.aB=new _.M("buttonRenderer");_.DE=new _.M("toggleButtonRenderer");var ASc=new _.M("switchButtonViewModel");_.h_P=new _.M("confirmDialogRenderer");var jyG;jyG=new _.M("menuRenderer");_.lrT=new _.M("menuFlexibleItemRenderer");var LnT=new _.M("pollRenderer");_.MFP=new _.M("backgroundPromoRenderer");var uUT;_.Kn$=new _.M("chipCloudRenderer");uUT=new _.M("chipCloudChipRenderer");var yUG=new _.M("dropdownRenderer");var eSF=new _.M("gridVideoRenderer");_.kwX=new _.M("itemSectionRenderer");_.th3=new _.M("messageRenderer");var PGP=new _.M("sortFilterHeaderRenderer");_.ZE=new _.M("videoRenderer");var X8T=new _.M("resolveUrlCommandMetadata");var FFT=function(){CG.apply(this,arguments)};
_.O(FFT,CG);FFT.prototype.getAssociations=function(){return[]};_.Gwr=new _.M("getAnswerCommand");_.ip=new _.M("searchEndpoint");var n9X=new _.M("genAiRichTextViewModel");var Q0u=new _.M("overviewAnswerViewModel");var HHG=new _.M("addToPlaylistServiceEndpoint");var WFj=new _.M("clearSearchHistoryEndpoint");var sZP=new _.M("clearWatchHistoryEndpoint");var No6=new _.M("webSerializedServiceEndpointExtension");_.QZa=new _.M("createCommentEndpoint");var ItT=new _.M("createCommentReplyEndpoint");var iHc=new _.M("performCommentActionEndpoint");var rUP=new _.M("updateCommentEndpoint");var Usj=new _.M("updateCommentReplyEndpoint");_.pG=new _.M("createPlaylistServiceEndpoint");var Toc=new _.M("deletePlaylistEndpoint");var CGG=new _.M("deleteVideoEndpoint");var iPu=new _.M("getReportFormEndpoint");var dsF=new _.M("modifyChannelNotificationPreferenceEndpoint");var Dey;_.sF=new _.M("offlinePlaylistEndpoint");Dey={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 ZRc;_.WC=new _.M("offlineVideoEndpoint");ZRc={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 OHX=new _.M("pingingEndpoint");_.o9F=new _.M("selectActiveIdentityEndpoint");var Vhr=new _.M("setSettingEndpoint");var qmM=new _.M("undoFeedbackEndpoint");var ftk=new _.M("unsubscribeEndpoint");_.msk=new _.M("updatedMetadataEndpoint");var AUT=function(){CG.apply(this,arguments)};
_.O(AUT,CG);AUT.prototype.getAssociations=function(){return[]};_.JU3=new _.M("updateLocalAppSettingCommand");var zST=new _.M("saveImageToDeviceEndpoint");var at$=new _.M("shareImageCommand");var DsF=new _.M("sharingProviderDataCommand");var ZHG=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(ZHG,_.bE);var p8X=[0,_.cS,-1];ZHG.prototype.JSC$10172_serializeBinary=w3M(p8X);var $s6=_.wB(p8X);var v9T=new _.M("userMentionSuggestionRenderer");var bHc=new _.M("liveChatTunnelCommand");var YlX=new _.M("showSponsorshipsGiftOfferDialogCommand");var g9c=new _.M("sponsorshipsScrollableShelfViewModel");var E9G=new _.M("updateUpcomingEventReminderButtonStateCommand");var RS6=new _.M("upcomingEventReminderButtonStateRenderer");var cUG=new _.M("subscribeEndpoint");var Sl3=new _.M("registerTasksCommand");var hSZ=new _.M("showDialogCommand");_.VYc=new _.M("showSheetCommand");var jZF=new _.M("showSnackbarCommand");var ltG=function(){CG.apply(this,arguments)};
_.O(ltG,CG);ltG.prototype.getAssociations=function(){return[]};var LFT=function(){CG.apply(this,arguments)};
_.O(LFT,CG);LFT.prototype.getAssociations=function(){return[]};_.RH=new _.M("avatarViewModel");var Kzo=new _.M("badgeViewModel");_.oH=new _.M("buttonViewModel");_.$P=new _.M("chipViewModel");var Mh6=new _.M("contentPreviewImageViewModel");var KFx=new _.M("decoratedAvatarViewModel");var qyM=new _.M("downloadButtonViewModel");_.JjJ=new _.M("engagementBarViewModel");_.Bo$=new _.M("imageBannerViewModel");var i_y=new _.M("lockupContentMetadataRowExtension");var xsa=new _.M("lockupMetadataViewModel");_.quF=new _.M("lockupViewModel");var wiT=new _.M("avatarStackViewModel");var uha=function(){CG.apply(this,arguments)};
_.O(uha,CG);uha.prototype.getAssociations=function(){return[]};_.yOk=new _.M("pageHeaderViewModel");var eI$=new _.M("snackbarViewModel");var kox=new _.M("thumbnailHoverOverlayToggleActionsViewModel");_.Vo=new _.M("toggleButtonViewModel");var tLP=function(){CG.apply(this,arguments)};
_.O(tLP,CG);tLP.prototype.getAssociations=function(){return[]};_.zL4=new _.M("votingViewModel");var Pk6=new _.M("sectionHeaderViewModel");var Xic=new _.M("notifyDropdownOptionSelectedCommand");var fwM=new _.M("listViewModel");_.AdH=new _.M("listItemViewModel");var FZZ=new _.M("dialogHeaderViewModel");var Go3=function(){CG.apply(this,arguments)};
_.O(Go3,CG);Go3.prototype.getAssociations=function(){return[]};var nPr=function(){CG.apply(this,arguments)};
_.O(nPr,CG);nPr.prototype.getAssociations=function(){return[]};var HG$=function(){CG.apply(this,arguments)};
_.O(HG$,CG);HG$.prototype.getAssociations=function(){return[]};_.WZ3=new _.M("transcriptSubmitCaptionCorrectionCommand");var sBP=function(){CG.apply(this,arguments)};
_.O(sBP,CG);sBP.prototype.getAssociations=function(){return[]};var kNM=new _.M("unpluggedStringRunImage");var Nfc=new _.M("tabViewModel");var QBx=new _.M("tabbedViewModel");var IE3=function(){CG.apply(this,arguments)};
_.O(IE3,CG);IE3.prototype.getAssociations=function(){return[]};_.iGF=new _.M("updateDescriptionAction");var rOa=new _.M("updateToggleButtonTextAction");_.UYa=new _.M("autoplaySwitchButtonRenderer");var Dz;_.Tf6=new _.M("multiMarkersPlayerBarRenderer");Dz=new _.M("chapterRenderer");var CkP=new _.M("heatMarkerRenderer");var Hko=new _.M("heatmapRenderer");var dY3=new _.M("smartSkipPlayerScrimOverlayRenderer");var OGP=new _.M("timedMarkerDecorationRenderer");var I5J=new _.M("postWebToNativeMessageCommand");var oPF=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(oPF,_.bE);var VL3=_.qC(oPF,[0,_.cS,-2]);var fEj=new _.M("whitelistEditEndpoint");var mYX=new _.M("clearUrlParamCommand");var AO3=new _.M("commerceActionCommand");_.JOX=new _.M("getPaymentInstrumentsParamsCommand");var zIT=new _.M("getPaymentsClientTokenCommand");var aEX=new _.M("googlePaymentBillingCommand");var DYx=new _.M("googlePaymentPurchaseManagerCommand");_.ZGk=new _.M("logGtmCommand");var pik=new _.M("updateCardItemOnClickCommand");_.$YF=new _.M("ypcPauseSubscriptionCommand");_.vPF=new _.M("ypcResumeSubscriptionCommand");var bG6=function(){CG.apply(this,arguments)};
_.O(bG6,CG);bG6.prototype.getAssociations=function(){return[]};var Yua=function(){CG.apply(this,arguments)};
_.O(Yua,CG);Yua.prototype.getAssociations=function(){return[]};var gPP=function(){CG.apply(this,arguments)};
_.O(gPP,CG);gPP.prototype.getAssociations=function(){return[]};var EP6=function(){CG.apply(this,arguments)};
_.O(EP6,CG);EP6.prototype.getAssociations=function(){return[]};var RI3=function(){CG.apply(this,arguments)};
_.O(RI3,CG);RI3.prototype.getAssociations=function(){return[]};var qRj=new _.M("ypcOffersEndpoint");var cOX=new _.M("cardItemRenderer"),SuP=new _.M("cardItemTextRenderer");var hIP=new _.M("commerceCartItemQuantityPickerRenderer");var jBc=new _.M("linkCardRenderer");var GOy=new _.M("quantityIncrementerButtonViewModel");var lEG=new _.M("quantityIncrementerViewModel");var LZG=new _.M("themedImageViewModel");_.MLG=new _.M("ypcCancelRecurrenceEndpoint");var KZX=new _.M("ypcCompleteTransactionEndpoint");_.BfT=new _.M("ypcGetCartEndpoint");_.ur=new _.M("ypcGetOffersEndpoint");_.vi=new _.M("ypcHandleTransactionEndpoint");var xYG=new _.M("ypcLogWalletAnalyticDataEndpoint");_.qeT=new _.M("ypcRedeemCodeEndpoint");var whr=new _.M("ypcUpdateFopEndpoint");wf(qY(1),B8(4));JyM((new MessageChannel).port2);var uf3=function(){this.register=new Map},VnM=function(q,w,u){q=q+"_"+w;
bk.register.has(q)?u=bk.register.get(q):(u=u(),bk.register.set(q,u));return u},ybX=function(q){q=_.P(q.register.values());
for(var w=q.next();!w.done;w=q.next())_.Wr(w.value,"ABORTED")};
uf3.prototype.clear=function(){ybX(this);this.register.clear()};
var bk=new uf3;var tnj=Date.now().toString();var XJz,e56=_.uc.ytLoggingDocDocumentNonce_;e56||(e56=ax(16),_.wr("ytLoggingDocDocumentNonce_",e56));XJz=e56;var Qf6={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 k5k;k5k=1;_.DB=function(q){this.veData=q};
_.Tj=function(q){return new _.DB({trackingParams:q})};
_.oV=function(q,w,u,y,e,t){var X=k5k++;return new _.DB({veType:q,veCounter:X,elementIndex:u,dataElement:w,youtubeData:y,jspbYoutubeData:e,loggingDirectives:t})};
_.k=_.DB.prototype;
_.k.getAsJson=function(){var q={};this.veData.trackingParams!==void 0?q.trackingParams=this.veData.trackingParams:(q.veType=this.veData.veType,this.veData.veCounter!==void 0&&(q.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(q.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(q.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(q.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(q.isCounterfactual=!0);
return q};
_.k.getAsJspb=function(){var q=new Zva;this.veData.trackingParams!==void 0?q.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.aG(q,2,this.veData.veType),this.veData.veCounter!==void 0&&_.aG(q,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.aG(q,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.P2(q,5,!0));if(this.veData.dataElement!==void 0){var w=this.veData.dataElement.getAsJspb();_.e9(q,7,w)}this.veData.youtubeData!==void 0&&_.e9(q,8,this.veData.jspbYoutubeData);
return q};
_.k.toString=function(){return JSON.stringify(this.getAsJson())};
_.k.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.k.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.wr("yt_logging_screen.getRootVeType",Wol);_.wr("yt_logging_screen.getCurrentCsn",_.pN);_.wr("yt_logging_screen.getCttAuthInfo",$G);_.wr("yt_logging_screen.setCurrentScreen",_.vf);var t$G=function(){this.events=new Map},Ps3=function(q){var w=[];
q=_.P(q.events.values());for(var u=q.next();!u.done;u=q.next())w.push(u.value);return w};
t$G.prototype.clear=function(){this.events.clear()};var FEk=function(){this.logTransport=new Xhj;this.loggedEventRegister=new t$G;this.unloggedEventRegister=new t$G;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10229_flushTimer=new _.kG(this.flushInterval);this.JSC$10229_flushTimer.listen("tick",this.flush,!1,this)};
FEk.prototype.flush=function(){if(this.eventsCount){var q={loggedEvents:Ps3(this.loggedEventRegister),unloggedEvents:Ps3(this.unloggedEventRegister)};if(_.T("export_player_version_to_ytconfig")){var w;(w=_.Et("PLAYER_CLIENT_VERSION"))?(w=w.split("-")[0].replace(/\./g,""),w=isNaN(Number(w))?"0":w):w="";var u=_.Et("PLAYER_CLIENT_VERSION");if(u){u=u.split("-");var y="";u.length>1&&(y=u[u.length-1]);u=kxl(y.startsWith("canary_experiment")?"canary":y.startsWith("canary_control")?"control":"none")}else u=
"CLIENT_CANARY_STATE_UNKNOWN";q.dimensions={playerClientVersion:w,playerCanaryState:u}}this.logTransport.flush(q);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10229_flushTimer.enabled&&this.JSC$10229_flushTimer.stop()}};
var G5a=function(q){YP==null&&(YP=new FEk);var w=YP;var u=w.loggedEventRegister;q.dimensions=q.dimensions||{};q.dimensions.csn=_.pN()||"";var y=r5c(q.dimensions).join(";");if(q.records!=null)if(u.events.has(y)){var e;(e=u.events.get(y).records)==null||e.push.apply(e,_.Cm(q.records))}else u.events.set(y,q);w.JSC$10229_flushTimer.enabled||w.JSC$10229_flushTimer.start();w.eventsCount++;w.eventsCount>=100&&w.flush()};var Xhj=function(){};
Xhj.prototype.flush=function(q,w){_.T("enable_client_sli_logging")&&_.pn("sliEventBatch",q,{sendIsolatedPayload:!!w})};var YP;var HFk;HFk=function(q){var w=nuZ;q=q===void 0?{}:q;w=w.name;var u=orj("SUCCESS");G5a({dimensions:q,records:[{name:w,state:"SLI_STATE_END",status:u}]})};
_.f9z=function(q,w,u,y){this.name=q;this.sliId=w;this.timeoutMs=u;this.statusOnTimeout=y;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.f9z.prototype.getId=function(){return this.sliId};
_.Hr=function(q,w){w=w===void 0?{}:w;q.ongoing||(q.ongoing=!0,q.dimensions=w,q.logSliId=GjZ(),G5a({dimensions:q.dimensions,records:[{name:q.name,state:"SLI_STATE_START",sliId:q.logSliId}]}),q.timeoutMs>0&&(q.timeoutHandle=setTimeout(function(){_.Wr(q,q.statusOnTimeout)},q.timeoutMs)))};
_.Wr=function(q,w){q.ongoing&&(q.timeoutMs>0&&clearTimeout(q.timeoutHandle),q.ongoing=!1,w={dimensions:q.dimensions,records:[{name:q.name,status:orj(w),state:"SLI_STATE_END",sliId:q.logSliId}]},bk.register.delete(q.name+"_"+q.sliId),G5a(w))};var nuZ=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var WET=function(){CG.apply(this,arguments)};
_.O(WET,CG);WET.prototype.getAssociations=function(){return[]};var hij=new _.M("highlightTextDecoratorColorMapExtension");var c0y=new _.M("styleRunColorMapExtension");var ZMM=_.Sc(["data-"]),vru={};var Yj4={};var gf=function(q){this.wrappedPromise_=q===void 0?null:q;this.state_=0;this.JSC$10261_value_=null};
gf.prototype.then=function(q,w,u){return this.wrappedPromise_?this.wrappedPromise_.then(q,w,u):this.state_===1&&q?(q=q.call(u,this.JSC$10261_value_))&&typeof q.then==="function"?q:_.Eu(q):this.state_===2&&w?(q=w.call(u,this.JSC$10261_value_))&&typeof q.then==="function"?q:_.s4$(q):this};
gf.prototype.getValue=function(){return this.JSC$10261_value_};
gf.prototype.isRejected=function(){return this.state_==2};
ZAa(gf);_.s4$=function(q){var w=new gf;q=q===void 0?null:q;w.state_=2;w.JSC$10261_value_=q===void 0?null:q;return w};
_.Eu=function(q){var w=new gf;q=q===void 0?null:q;w.state_=1;w.JSC$10261_value_=q===void 0?null:q;return w};var wzj="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var N6X=["load","abort","error"],RB=function(q,w,u){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10281_maxAspectRatio_=q;this.disableAnimation_=w===void 0?!1:w;this.disableExifRotation_=u===void 0?!1:u;this.JSC$10281_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10281_reject_=this.resolve_=null};
RB.prototype.transform=function(q){var w=this;this.mime_=q.type;Ej(J7T(q),this.dataUrlRead_,this.readError_,this);Ej(A7P(q.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(u,y){w.resolve_=u;w.JSC$10281_reject_=y})};
RB.prototype.dataUrlRead_=function(q){this.dataUrl_=q;this.angle_!=null&&Q4x(this)};
RB.prototype.exifRead_=function(q){if(this.disableExifRotation_)this.angle_=0;else{a:if(q=new DataView(q),q.byteLength<2||q.getUint16(0)!==65496)q=-2;else{for(var w=2,u=q.byteLength;w<u;){var y=q.getUint16(w),e=q.getUint16(w+2);if(y===65505){w+=4;y=q.getUint32(w);e=q.getUint16(w+4);if(y!==1165519206||e!==0)break;w+=6;y=q.getUint16(w)===18761;w+=q.getUint32(w+4,y);e=q.getUint16(w,y);w+=2;for(var t=0;t<e;t++){if(q.getUint16(w,y)===274){w+=8;q=q.getUint16(w,y);break a}w+=12}}else if(y>>8!==255)break;
else w+=e+2}q=-1}switch(q){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&&Q4x(this)};
RB.prototype.readError_=function(){this.JSC$10281_reject_()};
var Q4x=function(q){rL(q.JSC$10281_image_,N6X,q.completeTransform_,!1,q);q.JSC$10281_image_.src=_.UY(q.dataUrl_).toString();q.JSC$10281_image_.src!=iZ.toString()&&q.JSC$10281_image_.src.substr(0,11)==="data:image/"||q.JSC$10281_reject_()};
RB.prototype.completeTransform_=function(){if(this.JSC$10281_image_.src!=iZ.toString()){var q=_.UY(this.dataUrl_),w=this.JSC$10281_image_.naturalHeight?this.JSC$10281_image_.naturalWidth/this.JSC$10281_image_.naturalHeight:null;this.invalidAspectRatio=w>this.JSC$10281_maxAspectRatio_||w<1/this.JSC$10281_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var u=this.JSC$10281_image_.naturalWidth,y=this.JSC$10281_image_.naturalHeight,e=w=0,t=this.JSC$10281_image_.naturalHeight?this.JSC$10281_image_.naturalWidth/
this.JSC$10281_image_.naturalHeight:null;t>this.JSC$10281_maxAspectRatio_?(u=this.JSC$10281_maxAspectRatio_*y,w=(u-this.JSC$10281_image_.naturalWidth)/2,this.cropped=!0):t<1/this.JSC$10281_maxAspectRatio_?(y=this.JSC$10281_maxAspectRatio_*u,e=(y-this.JSC$10281_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)t=u,u=y,y=t,t=w,w=e,e=t;switch(this.angle_){case 90:e-=u;break;case 180:w-=u;e-=y;break;case 270:w-=
y}this.cropped||this.angle_%360!==0?(q=document.createElement("canvas"),q.width=u||1,q.height=y||1,this.JSC$10281_image_.naturalWidth&&this.JSC$10281_image_.naturalHeight&&(u=q.getContext("2d"),u.rotate(Math.PI/180*this.angle_),u.drawImage(this.JSC$10281_image_,w,e,this.JSC$10281_image_.naturalWidth,this.JSC$10281_image_.naturalHeight)),this.transformedData=_.UY(q.toDataURL(this.mime_))):this.transformedData=q}else this.transformedData=q;this.resolve_(this)}};var ci=function(q,w){_.nM.call(this,q);this.value=w};
_.O(ci,_.nM);
var SL=function(q,w,u,y,e,t,X){X=X===void 0?!1:X;_.Q4.call(this);var G=this;this.JSC$10286_url_=q;this.channelId_=w;this.maxFileSizeMb_=u;this.JSC$10286_maxAspectRatio_=y;this.dropZoneEl_=e;this.rejectInvalidAspectRatio_=X;this.selectButtonEl_=t;this.JSC$10286_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new Fh(this.dropZoneEl_);this.selectOverlay_=new Go(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10286_image_=this.transfer_=null;this.handler_=new _.tp(this);_.sN(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(t,"click",function(){G.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.O(SL,_.Q4);SL.prototype.disposeInternal=function(){for(var q=this.selectButtonEl_.nextSibling;q&&q.parentNode&&q.tagName=="INPUT";)q.parentNode.removeChild(q),q=this.selectButtonEl_.nextSibling;this.cancel();_.Q4.prototype.disposeInternal.call(this)};
SL.prototype.uploadPromise=function(){if(this.JSC$10286_image_==null)return null;this.uploadPromise_||IUX(this);return this.uploadPromise_};
SL.prototype.cancel=function(){iFr(this);this.JSC$10286_image_=null};
var iFr=function(q){q.transfer_&&q.transfer_.cancel();q.transfer_=null;q.uploadPromise_=null;q.resolve_=null;q.JSC$10286_reject_=null},IUX=function(q){iFr(q);
q.transfer_=_.jSk(q.JSC$10286_url_,{"X-YouTube-ChannelId":q.channelId_},q.JSC$10286_image_);q.handler_.listenOnce(q.transfer_,"l",q.JSC$10288_onUploadComplete_);q.handler_.listenOnce(q.transfer_,"n",q.onUploadError_);q.transfer_.run();q.uploadPromise_=new Promise(function(w,u){q.resolve_=w;q.JSC$10286_reject_=u})};
_.k=SL.prototype;_.k.onChange_=function(q){q.files.length&&(this.JSC$10286_image_=q.files[0],this.JSC$10286_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10286_image_=null,this.dispatchEvent(new ci("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(IUX(this),(new RB(this.JSC$10286_maxAspectRatio_)).transform(this.JSC$10286_image_).then((0,_.fY)(this.onPreview_,this),(0,_.fY)(this.onPreviewError_,this))))};
_.k.onPreview_=function(q){if(q.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10286_image_=null),this.dispatchEvent(new ci("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;q.cropped&&this.dispatchEvent(new ci("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new ci("yt.comments.ImageUploadOverlay.CHANGE_EVENT",q.transformedData))};
_.k.onPreviewError_=function(){this.JSC$10286_image_=null;this.dispatchEvent(new ci("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.k.onHover_=function(q){q.stopPropagation();q.preventDefault();if(q.type==="dragover")q=!0;else if(q.type==="dragleave")q=!1;else return;this.dispatchEvent(new ci("yt.comments.ImageUploadOverlay.HOVER_EVENT",q))};
_.k.JSC$10288_onUploadComplete_=function(){var q=(0,_.k2X)(this.transfer_.getResponseText());this.resolve_(q.encryptedBlobId)};
_.k.onUploadError_=function(){this.JSC$10286_reject_();iFr(this)};var rbT=function(q){q=q||{};var w={},u={};this.url=q.url||"";this.args=q.args||_.db.clone(w);this.assets=q.assets||{};this.attrs=q.attrs||_.db.clone(u);this.fallback=q.fallback||null;this.fallbackMessage=q.fallbackMessage||null;this.html5=!!q.html5;this.disable=q.disable||{};this.loaded=!!q.loaded;this.messages=q.messages||{}};
rbT.prototype.clone=function(){var q=new rbT,w;for(w in this)if(this.hasOwnProperty(w)){var u=this[w];q[w]=_.IK(u)=="object"?_.db.clone(u):u}return q};var Ukx,T6Z,Cs6,qL,OF6,ouT,V$F,fUG,mka,Abj,JbP,z5T,aU3,Dkk,ZF$,ph$,$kG,vu3,bFF,Yec,gu6,Eu$,R5F,cbk,SeZ,h5F,j4k,lUx,LEx,Vd7,M$k,KEa,B6a,xk$,q7G,wdZ,uS$,ymT,exP,kVa,t0j,P1P,XdT,FkF,GVT,nY6,HKc,Wk$,sNk,Ndj,QN6,IiG,iKr,rm3,Uqc,TdF,hO,C1k,dq$,OK$,oY3,V0r,fiP,mqT,Am$,JmP,zxj,ai3,Dq6,ZKk,pdX,$qr,vYF,bKk,Y7T,OZM,gYk,EYZ,RxF,cmG,S7F,hxX,jNF,lik,Lk6,M0Z,Kkc,Bd$,xqc,qhj,wYk,u5$,yV$,eFr,kDT,tXr,Pxj,XYa,FDG,GDG,nEX;Ukx=["account/accounts_list"];T6Z=["acknowledge_channel_tou_strike"];Cs6=["notification/add_upcoming_event_reminder"];
_.dk$=["att/get"];qL=["browse","music/browse","unplugged/browse"];OF6=["channel/claim_legacy_youtube_channel"];ouT=["history/clear_search_history"];V$F=["history/clear_watch_history"];fUG=["comment/perform_comment_action"];mka=["comment/get_comment_replies"];Abj=["ypc/commerce_action"];JbP=["backstage/create_post"];z5T=["live/create_broadcast"];aU3=["channel/create_channel"];Dkk=["comment/create_comment_reply"];ZF$=["comment/create_comment"];ph$=["live_chat/create_poll"];$kG=["playlist/create"];
vu3=["decorate_message"];bFF=["live_chat/delete_message"];Yec=["playlist/delete"];gu6=["video/delete"];Eu$=["like/dislike"];R5F=["dismissal/dismiss"];cbk=["flag/flag"];SeZ=["flow"];h5F=["account/account_menu"];j4k=["playlist/get_add_to_playlist"];lUx=["get_answer"];LEx=["channel/get_channel_creation_form"];Vd7=["offline/get_download_action"];M$k=["kids/get_kids_blocklist_picker"];KEa=["live_chat/get_item_context_menu"];B6a=["live_chat/get_live_chat_message_buy_flow"];xk$=["live_chat/get_live_chat_replay"];
q7G=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];wdZ=["live_chat/get_live_chat_super_sticker_buy_flow"];uS$=["notification/get_notification_menu"];ymT=["playlist/get_settings_editor"];exP=["backstage/get_post_video_preview"];kVa=["account/get_profile_card"];t0j=["share/get_share_panel"];P1P=["share/get_sharing_provider_data"];XdT=["get_survey"];FkF=["notification/get_unseen_count"];GVT=["get_user_mention_suggestions"];nY6=["get_watch"];HKc=["guide"];
Wk$=["feedback"];sNk=["kids/update_blacklist"];Ndj=["like/like"];QN6=["live_chat/live_chat_action"];IiG=["live_chat/manage_user"];iKr=["video_manager/metadata_update"];rm3=["live_chat/moderate"];Uqc=["notification/modify_channel_preference"];TdF=["notification/opt_out"];hO=["get_panel","get_posts_by_host_panel"];C1k=["player"];dq$=["browse/edit_playlist"];OK$=["notification/record_interactions"];oY3=["reel/reel_item_watch"];V0r=["reel/reel_watch_sequence"];fiP=["like/removelike"];mqT=["notification/remove_upcoming_event_reminder"];
Am$=["flag/get_form"];JmP=["miniapp/report_value"];zxj=["navigation/resolve_url"];ai3=["channel/reveal_business_email"];Dq6=["in_video/search"];ZKk=["search","sfv/search","unplugged/search"];pdX=["live_chat/send_message"];$qr=["live_chat/send_live_chat_vote"];vYF=["account/set_setting"];bKk=["submit_caption_correction"];Y7T=["subscription/subscribe"];OZM=["get_transcript"];gYk=["resolve_location","unplugged/resolve_location"];EYZ=["subscription/unsubscribe"];RxF=["backstage/update_post"];cmG=["channel_edit/update_channel_page_settings"];
S7F=["comment/update_comment_reply"];hxX=["comment/update_comment"];jNF=["comment/update_comments_settings"];lik=["creator/update_creator_channel"];Lk6=["pdg/update_enablement"];M0Z=["updated_metadata"];Kkc=["channel_edit/validate_channel_handle"];Bd$=["verify_age"];xqc=["next","unplugged/watch_next"];qhj=["whitelist/edit"];wYk=["ypc/cancel_recurrence"];u5$=["ypc/complete_transaction"];yV$=["ypc/get_cart"];eFr=["ypc/get_fix_instrument_params"];kDT=["ypc/get_offers"];tXr=["ypc/get_payment_instruments_params"];
Pxj=["ypc/handle_transaction"];XYa=["ypc/log_payment_server_analytics"];FDG=["ypc/pause_subscription"];GDG=["ypc/redeem_code"];nEX=["ypc/resume_subscription"];var Hoj=[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,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,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,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,194770,195350,195349,194771,166382,37671,49953,
220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,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,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,191925,167637,
234545,197196,214295,110386,221054,113746,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,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,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,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,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,262801,262800,262799,262802,262798,82039];var QY=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.wr("yt.msgs_",QY);var jL=new _.MH("ACTION_ROUTER_TOKEN");_.lk=function(){this.autonavState_=_.T("kevlar_is_pupi_enabled")?2:Wvj()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.lk.prototype.getState=function(){return this.autonavState_};
_.lk.prototype.pause=function(q){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=q):this.autonavState_==1&&(this.disabledAutonavPauseReason_=q)};
_.lk.prototype.setState=function(q,w,u){w&&(this.autoplayChangedByUser=!0);w=this.autonavState_===3||q===3;this.autonavState_!=q&&(this.autonavState_=q,q!=3&&_.sqH(q==2),q=_.T("kevlar_is_pupi_enabled")?u||w:!0,_.lD.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,q,u))};
_.lk.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.xX(_.lk);var LG=function(){this.hasRun=!1};var MY={},fQl=(MY.auto_search="LATENCY_ACTION_AUTO_SEARCH",MY.ad_to_ad="LATENCY_ACTION_AD_TO_AD",MY.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",MY.app_startup="LATENCY_ACTION_APP_STARTUP",MY.browse="LATENCY_ACTION_BROWSE",MY.cast_splash="LATENCY_ACTION_CAST_SPLASH",MY.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",MY.channels="LATENCY_ACTION_CHANNELS",MY.chips="LATENCY_ACTION_CHIPS",MY.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",MY.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
MY.editor="LATENCY_ACTION_EDITOR",MY.embed="LATENCY_ACTION_EMBED",MY.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",MY.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",MY.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",MY.explore="LATENCY_ACTION_EXPLORE",MY.favorites="LATENCY_ACTION_FAVORITES",MY.home="LATENCY_ACTION_HOME",MY.inboarding="LATENCY_ACTION_INBOARDING",MY.landing="LATENCY_ACTION_LANDING",MY.library="LATENCY_ACTION_LIBRARY",MY.live=
"LATENCY_ACTION_LIVE",MY.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",MY.management="LATENCY_ACTION_MANAGEMENT",MY.mini_app="LATENCY_ACTION_MINI_APP_PLAY",MY.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",MY.onboarding="LATENCY_ACTION_ONBOARDING",MY.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",MY.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",MY.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",MY.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
MY.prebuffer="LATENCY_ACTION_PREBUFFER",MY.prefetch="LATENCY_ACTION_PREFETCH",MY.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",MY.profile_switcher="LATENCY_ACTION_LOGIN",MY.projects="LATENCY_ACTION_PROJECTS",MY.reel_watch="LATENCY_ACTION_REEL_WATCH",MY.results="LATENCY_ACTION_RESULTS",MY.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",MY.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",MY.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",MY.review="LATENCY_ACTION_REVIEW",MY.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",MY.search_ui="LATENCY_ACTION_SEARCH_UI",MY.search_suggest="LATENCY_ACTION_SUGGEST",MY.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",MY.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",MY.seek="LATENCY_ACTION_PLAYER_SEEK",MY.settings="LATENCY_ACTION_SETTINGS",MY.store="LATENCY_ACTION_STORE",MY.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",MY.tenx="LATENCY_ACTION_TENX",MY.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",MY.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
MY.watch="LATENCY_ACTION_WATCH",MY.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",MY["watch,watch7"]="LATENCY_ACTION_WATCH",MY["watch,watch7_html5"]="LATENCY_ACTION_WATCH",MY["watch,watch7ad"]="LATENCY_ACTION_WATCH",MY["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",MY.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",MY.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",MY.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",MY.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",MY.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",MY.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",MY.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",MY.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",MY);var jq4=function(q,w){UG.call(this,1,arguments);this.timer=w};
_.O(jq4,UG);var hJ7=new PAf("aft-recorded",jq4);var zJy=_.uc.ytLoggingGelSequenceIdObj_||{};_.wr("ytLoggingGelSequenceIdObj_",zJy);var KG=_.uc.ytLoggingLatencyUsageStats_||{};_.wr("ytLoggingLatencyUsageStats_",KG);var Bi=function(){this.cleanupJob=0},Zdj=function(){Bi.instance||(Bi.instance=new Bi);
return Bi.instance};
_.k=Bi.prototype;_.k.baseline=function(q,w,u){xP(this,"baseline_"+q)||_.pn("latencyActionBaselined",{clientActionNonce:q},{timestamp:w,cttAuthInfo:u})};
_.k.tick=function(q,w,u,y){xP(this,"tick_"+q+"_"+w)||_.pn("latencyActionTicked",{tickName:q,clientActionNonce:w},{timestamp:u,cttAuthInfo:y})};
_.k.info=function(q,w,u){var y=Object.keys(q).join("");xP(this,"info_"+y+"_"+w)||(q=Object.assign({},q),q.clientActionNonce=w,_.pn("latencyActionInfo",q,{cttAuthInfo:u}))};
_.k.jspbInfo=function(q,w,u){for(var y="",e=0;e<ea(q).length;e++)ea(q)[e]!==void 0&&(y=e===0?y.concat(""+e):y.concat("_"+e));xP(this,"info_"+y+"_"+w)||(_.sf(q,2,w),w={cttAuthInfo:u},u=_.T("jspb_sparse_encoded_pivot")?new fn([{}]):new fn,_.km(u,7,MWX,q),aQu("latencyActionInfo",u,w))};
_.k.span=function(q,w,u){var y=Object.keys(q).join("");xP(this,"span_"+y+"_"+w)||(q.clientActionNonce=w,_.pn("latencyActionSpan",q,{cttAuthInfo:u}))};
var xP=function(q,w){KG[w]=KG[w]||{count:0};var u=KG[w];u.count++;u.time=(0,_.eW)();q.cleanupJob||(q.cleanupJob=_.mg(_.pi,function(){var y=(0,_.eW)(),e;for(e in KG)KG[e]&&y-KG[e].time>6E4&&delete KG[e];q&&(q.cleanupJob=0)},5E3));
return u.count>5?(u.count===6&&Math.random()*1E5<1&&(u=new _.fv("CSI data exceeded logging limit with key",w.split("_")),w.indexOf("plev")>=0||_.Y8(u)),!0):!1};var WD6,sac;WD6=window;sac=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.oD=WD6.performance||WD6.mozPerformance||WD6.msPerformance||WD6.webkitPerformance||new sac;var Sc7=!1,$H7=!1,lQl=(0,_.fY)(_.oD.clearResourceTimings||_.oD.webkitClearResourceTimings||_.oD.mozClearResourceTimings||_.oD.msClearResourceTimings||_.oD.oClearResourceTimings||_.sb,_.oD);var NS3=window;NS3.ytcsi&&(NS3.ytcsi.infoGel=_.zM,NS3.ytcsi.tick=_.D_);var tFc=function(q){UG.call(this,1,arguments);this.csn=q};
_.O(tFc,UG);var Hac=new PAf("screen-created",tFc),CRz=[],kX4=TMo,ddu=0,by=new Map,PRy=new Map,X_u=new Map;var Ds=Symbol("vf"),MU=new WeakMap;var qk=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Ig=function(){qk.instance||(qk.instance=new qk);
return qk.instance};
_.k=qk.prototype;_.k.setClient=function(q){this.client=q};
_.k.JSC$10367_newScreen=function(){this.clear();this.csn=_.pN()};
_.k.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.k.reportShown=function(q,w,u){var y=this.JSC$10367_getTrackingParams(q),e=q.visualElement?q.visualElement:y;w=this.shownElements.has(e);var t=this.visibleState.get(e);this.shownElements.add(e);this.visibleState.set(e,!0);q.impressionLog&&!w&&q.impressionLog();if(y||q.visualElement)if(u=QaP(this,q,u))if(e=I1c(this,q),w6(this,q)||e){y=q.visualElement?q.visualElement:_.Tj(y);var X=q.interactionLoggingClientData;e||w?w6(this,q)&4?t||QyH(this.client,u,y,X):w6(this,q)&1&&!w&&Wns(this.client,u,y,X):Wns(this.client,
u,y,X)}};
_.k.reportHidden=function(q,w,u){var y=this.JSC$10367_getTrackingParams(q),e=q.visualElement?q.visualElement:y;w=this.hiddenElements.has(e);var t=this.visibleState.get(e);this.hiddenElements.add(e);this.visibleState.set(e,!1);if(t===!1)return!0;if(!y&&!q.visualElement)return!1;u=QaP(this,q,u);if(!u||!w6(this,q)&&I1c(this,q))return!1;y=q.visualElement?q.visualElement:_.Tj(y);w6(this,q)&8?Iry(this.client,u,y):w6(this,q)&2&&!w&&(q=this.client,w=vw({cttAuthInfo:$G(u)||void 0},u),y={csn:u,ve:y.getAsJson(),
eventType:2},u==="UNDEFINED_CSN"?gk("visualElementHidden",w,y):q?Dn("visualElementHidden",y,q,w):_.pn("visualElementHidden",y,w));return!0};
_.k.JSC$10367_getTrackingParams=function(q){var w=this.getData(q),u,y;if(_.T("il_use_view_model_logging_context")&&(w==null?0:(u=w.context)==null?0:(y=u.loggingContext)==null?0:y.loggingDirectives))return w.context.loggingContext.loggingDirectives.trackingParams||"";var e,t;if(w==null?0:(e=w.rendererContext)==null?0:(t=e.loggingContext)==null?0:t.loggingDirectives)return w.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(w==null?0:w.loggingDirectives)return w.loggingDirectives.trackingParams||
"";var X;return((X=q.veContainer)==null?0:X.trackingParams)?q.veContainer.trackingParams:(w==null?void 0:w.trackingParams)||""};
_.k.JSC$10367_elementShouldLogGesture=function(q,w){q=this.getData(q);return!!((Math.floor(Number(q&&q.loggingDirectives&&q.loggingDirectives.gestures&&q.loggingDirectives.gestures.types||""))||0)&w)};
_.k.JSC$10367_getNearestParentVe=function(q){var w=this.JSC$10367_getTrackingParams(q);return q.visualElement?q.visualElement:w?_.Tj(w):q.parentElement?this.JSC$10367_getNearestParentVe(q.parentElement):null};
var QaP=function(q,w,u){var y=_.pN(u);return q.csn===null||y===q.csn||u?y:(q=new _.fv("VisibilityLogger called before newScreen",{caller:w.tagName,previous_csn:q.csn,current_csn:y}),_.Y8(q),null)};
qk.prototype.getData=function(q){var w,u=q.data||((w=q.props)==null?void 0:w.data);if(!u&&_.T("enable_wiz_always_try_logging_info_map")){var y;u=(y=Kq(q))==null?void 0:y[Ds]}else if(q.isWebComponentWrapper){var e;u=(e=Kq(q))==null?void 0:e[Ds]}return u};
var I1c=function(q,w){var u;return!((u=q.getData(w))==null||!u.loggingDirectives)},w6=function(q,w){q=q.getData(w);
return Math.floor(Number(q&&q.loggingDirectives&&q.loggingDirectives.visibility&&q.loggingDirectives.visibility.types||""))||1};var us;us=function(){};
_.sO=function(){us.instance||(us.instance=new us);return us.instance};
us.prototype.setClient=function(q){_.SZ(Ig().setClient).bind(Ig())(q)};
_.io3=function(){_.sO();_.SZ(Ig().JSC$10367_newScreen).bind(Ig())()};
us.prototype.clear=function(){_.SZ(Ig().clear).bind(Ig())()};
us.prototype.reportShown=function(q,w,u){_.SZ(Ig().reportShown).bind(Ig())(q,w,u)};
us.prototype.reportHidden=function(q,w,u){return _.SZ(Ig().reportHidden).bind(Ig())(q,w,u)};
var gaJ=function(q,w){return _.SZ(Ig().JSC$10367_getTrackingParams).bind(Ig())(w)},Ujs=function(q,w){return _.SZ(Ig().JSC$10367_getNearestParentVe).bind(Ig())(w)};var yJ,rVX;yJ=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};
_.Qz=function(){yJ.instance||(yJ.instance=new yJ);return yJ.instance};
yJ.prototype.setClient=function(q){this.client=q};
rVX=function(q,w,u){u=u===void 0?{}:u;_.SZ(function(){var y,e,t,X=((y=_.C(w==null?void 0:w.commandMetadata,_.wk))==null?void 0:y.rootVe)||((e=_.C(w==null?void 0:w.commandMetadata,UFa))==null?void 0:(t=e.screenVisualElement)==null?void 0:t.uiType);if(X){y=_.C(w==null?void 0:w.commandMetadata,X8T);if(y==null?0:y.parentTrackingParams){var G=_.Tj(y.parentTrackingParams);if(y.parentCsn)var n=y.parentCsn}else u.clickedVisualElement?G=u.clickedVisualElement:w.clickTrackingParams&&(G=_.Tj(w.clickTrackingParams));
a:{y=_.C(w,_.LN);e=_.C(w,u57);if(y){if(e=Nay(y,"VIDEO")){y={token:e,videoId:y.videoId};break a}}else if(e&&(y=Nay(e,"PLAYLIST"))){y={token:y,playlistId:e.playlistId};break a}y=void 0}u=Object.assign({},{cttAuthInfo:y,parentCsn:n},u);if(_.T("expectation_logging")){var N;u.loggingExpectations=((N=_.C(w==null?void 0:w.commandMetadata,UFa))==null?void 0:N.loggingExpectations)||void 0}_.e$(q,X,G,u)}else _.Y8(new _.fv("Error: Trying to create a new screen without a rootVeType",w))})()};
_.e$=function(q,w,u,y){y=y===void 0?{}:y;_.SZ(function(){Hoj.includes(w)||(_.Y8(new _.fv("createClientScreen() called with a non-page VE",w)),w=83769);y.isHistoryNavigation||(q.forwardHistoryStack=[],q.backHistoryStack.push({rootVe:w,key:y.key||""}));q.graftQueue=[];q.stateChangedQueue=[];y.dataPromises?Ucc(q,w,u,y):TSX(q,w,u,y)})()};
_.Cx3=function(q,w,u){u=u===void 0?0:u;_.SZ(function(){w.then(function(y){q.pendingScreenCreation.has(u)&&q.pendingScreenFn&&q.pendingScreenFn();var e=_.pN(u),t=_.ZB(u);if(e&&t){var X;(y==null?0:(X=y.response)==null?0:X.trackingParams)&&Y1(q.client,e,t,_.Tj(y.response.trackingParams));var G;(y==null?0:(G=y.playerResponse)==null?0:G.trackingParams)&&Y1(q.client,e,t,_.Tj(y.playerResponse.trackingParams))}})})()};
yJ.prototype.graftServerVe=function(q,w,u){var y=this;return _.SZ(function(){var e=_.Tj(q);_.ku(y,e,w,u);return e})()};
_.Tey=function(q,w,u,y){return _.T("enable_client_ve_spec")&&w.clientVeSpec?(w=_.oV(w.clientVeSpec.uiType,void 0,w.clientVeSpec.elementIndex,w.clientVeSpec.clientYoutubeData,void 0,w),_.ku(q,w,u,y)?w:null):w.trackingParams?q.graftServerVe(w.trackingParams,u,y):null};
_.N2=function(q,w,u,y){return _.SZ(function(){if(!w.veType)return _.bD(new _.fv("Error: Trying to graft a client VE without a veType.")),null;if(w.visibilityTypes){var e=w.visibilityTypes.reduce(function(t,X){return t|X});
e={visibility:{types:String(e)}}}e=_.oV(w.veType,w.visualElement,w.elementIndex,w.clientYouTubeData,void 0,e);return _.ku(q,e,u,y)?e:null})()};
_.ku=function(q,w,u,y){y=y===void 0?0:y;return _.SZ(function(){if(q.pendingScreenCreation.has(y))return q.graftQueue.push([w,u]),!0;var e=_.pN(y),t=u||_.ZB(y);if(e&&t){if(_.T("combine_ve_grafts")){var X=q.cachedVisualElements.get(t.toString());X?X.push(w):(q.cachedRootVisualElements.set(t.toString(),t),q.cachedVisualElements.set(t.toString(),[w]));q.attachTimeout||(q.attachTimeout=_.mg(_.pi,function(){dc$(q,e)},1200))}else Y1(q.client,e,t,w);
return!0}return!1})()};
_.tb=function(q,w,u){u=u===void 0?0:u;var y=q.recurringGrafts.get(u)||new Map;if(_.T("smarter_ve_dedupping"))for(var e=Array.from(y.keys()),t=0;t<e.length;t++){var X=void 0,G=void 0;var n=w;var N=e[t];N.isClientVe()&&n.isClientVe()?(X=n.getAsJson(),G=N.getAsJson(),n=X.veType!==G.veType||X.elementIndex!==G.elementIndex||X.dataElement!==G.dataElement||n.getLoggingDirectives()!==N.getLoggingDirectives()?!1:!0):n=N.veData.trackingParams!==void 0&&n.veData.trackingParams!==void 0?((G=n.veData)==null?void 0:
G.trackingParams)===((X=N.veData)==null?void 0:X.trackingParams):!1;if(n)return}else if(y.has(w))return;y.set(w,void 0);q.recurringGrafts.set(u,y);_.pN(u)==="UNDEFINED_CSN"||q.pendingScreenCreation.has(u)||_.ku(q,w,void 0,u)};
_.Ph=function(q,w,u,y){y=_.pN(y===void 0?0:y);if(!y)return!1;rLs(q.client,y,w,u);return!0};
_.Xf=function(q,w,u,y){if(!w)return!1;y=_.pN(y===void 0?0:y);if(!y)return!1;rLs(q.client,y,_.Tj(w),u);return!0};
_.gm=function(q,w){var u=w.getScreenLayer&&w.getScreenLayer();if(w.visualElement)return _.Ph(q,w.visualElement,void 0,u);w=gaJ(_.sO(),w);return _.Xf(q,w,void 0,u)};
yJ.prototype.clickCommand=function(q,w,u){return _.Xf(this,q.clickTrackingParams,w,u===void 0?0:u)};
yJ.prototype.stateChanged=function(q,w,u){this.visualElementStateChanged(_.Tj(q),w,u===void 0?0:u)};
yJ.prototype.visualElementStateChanged=function(q,w,u){u=u===void 0?0:u;u===0&&this.pendingScreenCreation.has(u)?this.stateChangedQueue.push([q,w]):this.logStateChanged(q,w,u)};
yJ.prototype.logStateChanged=function(q,w,u){u=u===void 0?0:u;var y=_.pN(u);q=q||_.ZB(u);return y&&q?(Udo(this.client,y,q,w),!0):!1};
var Ucc=function(q,w,u,y){y=y===void 0?{}:y;q.pendingScreenCreation.add(y.layer||0);q.pendingScreenFn=function(){TSX(q,w,u,y);var X=_.ZB(y.layer);if(X){for(var G=_.P(q.graftQueue),n=G.next();!n.done;n=G.next())n=n.value,_.ku(q,n[0],n[1]||X,y.layer);X=_.P(q.stateChangedQueue);for(G=X.next();!G.done;G=X.next())G=G.value,q.logStateChanged(G[0],G[1])}};
u||_.pN(y.layer)||q.pendingScreenFn();if(y.dataPromises)for(var e=_.P(y.dataPromises),t=e.next();!t.done;t=e.next())_.Cx3(q,t.value,y.layer);else _.vm(Error("wf"))},TSX=function(q,w,u,y){y=y===void 0?{}:y;
var e=void 0;y.layer||(y.layer=0);e=y.parentLayer!==void 0?y.parentLayer:y.layer;var t=_.pN(e);e=_.ZB(e);var X=u||e,G;X&&(y.parentCsn!==void 0?G={clientScreenNonce:y.parentCsn,visualElement:X}:t&&t!=="UNDEFINED_CSN"&&(G={clientScreenNonce:t,visualElement:X}));var n,N=_.Et("EVENT_ID");t==="UNDEFINED_CSN"&&N&&(n={servletData:{serializedServletEventId:N}});_.T("combine_ve_grafts")&&t&&dc$(q,t);_.T("no_client_ve_attach_unless_shown")&&X&&t&&H9o(X,t);try{var Q=_.Fn4(q.client,w,G,y.csnToClone,y.cttAuthInfo,
n,y.implicitGestureType,void 0,y.loggingExpectations)}catch(d){_.gs(d,{rootVeType:w,rootVe:e,parentVisualElement:u,currentCsn:t,parentEl:G,csnToClone:y.csnToClone});_.vm(d);return}_.vf(Q,w,y.layer,y.cttAuthInfo);t&&t!=="UNDEFINED_CSN"&&e&&!I9J(t)&&Iry(q.client,t,e,!0);q.backHistoryStack[q.backHistoryStack.length-1]&&!q.backHistoryStack[q.backHistoryStack.length-1].csn&&(q.backHistoryStack[q.backHistoryStack.length-1].csn=Q||"");_.zM({clientScreenNonce:Q});_.io3();var I=_.ZB(y.layer);t&&t!=="UNDEFINED_CSN"&&
I&&(_.T("web_mark_root_visible")||_.T("music_web_mark_root_visible"))&&_.cw(Q,I);q.pendingScreenCreation.delete(y.layer||0);q.pendingScreenFn=void 0;var U;(U=q.recurringGrafts.get(y.layer))==null||U.forEach(function(d,V){d?_.ku(q,V,d,y.layer):I&&_.ku(q,V,I,y.layer)});
Oo6(q)},Oo6=function(q){for(var w=0;w<q.afterNewScreenOneOffJobs.length;w++){var u=q.afterNewScreenOneOffJobs[w];
try{u()}catch(y){_.vm(y)}}for(w=q.afterNewScreenOneOffJobs.length=0;w<q.afterNewScreenRecurringJobs.length;w++){u=q.afterNewScreenRecurringJobs[w];try{u()}catch(y){_.vm(y)}}},dc$=function(q,w){if(w===void 0)for(var u=NDu(),y=0;y<u.length;y++)u[y]!==void 0&&dc$(q,u[y]);
else q.cachedVisualElements.forEach(function(e,t){(t=q.cachedRootVisualElements.get(t))&&GXH(q.client,w,t,e)}),q.cachedVisualElements.clear(),q.cachedRootVisualElements.clear(),q.attachTimeout=void 0};var Ff=function(q){q=q===void 0?{layer:0}:q;this.hasRun=!1;this.createScreenConfig=q;q={};this.gHi=(q.response=!1,q.playerResponse=!1,q)};
_.O(Ff,LG);Ff.prototype.validate=function(q){return!(!q.data||!q.data.response&&!q.data.playerResponse)};
Ff.prototype.handle=function(q){var w=_.Qz(),u=this.createScreenConfig.layer;q.data.response&&q.data.response.trackingParams&&!this.gHi.response&&(w.graftServerVe(q.data.response.trackingParams,void 0,u),this.gHi.response=!0);q.data.playerResponse&&q.data.playerResponse.trackingParams&&!this.gHi.playerResponse&&(w.graftServerVe(q.data.playerResponse.trackingParams,void 0,u),this.gHi.playerResponse=!0)};var G5=function(){this.xu=_.S6();this.v2=[];this.vvB=0};
G5.prototype.processChunk=function(q){if(q){for(var w=_.P(this.v2),u=w.next();!u.done;u=w.next())u=u.value,u.validate(q)&&(u.handle(q),u.hasRun=!0);_.D_("np"+this.vvB);this.vvB++}};var mds,Bw,x1,VFu=0,fro=function(q,w,u,y,e,t){var X=x1;this.name=q;this.attributes=w;this.startTime=u;this.id=y;this.sessionId=e;this.traceId=t;this.parent=X};
fro.prototype.attr=function(q,w){this.attributes[q]=w};
fro.prototype.close=function(q){if(this!==x1)throw Error("xf");var w=x1;q&&(w.status=q);w.endTime=performance.now();q=_.P(Bw.spanProcessors);for(var u=q.next();!u.done;u=q.next()){var y=void 0,e=void 0;(e=(y=u.value).onSpanEnd)==null||e.call(y,w)}x1=w==null?void 0:w.parent};
fro.prototype[Symbol.dispose]=function(){this.close()};var wco,f1j;_.nx=function(q,w,u,y,e,t,X){X=X===void 0?[]:X;this.buildCommandPayload=q;this.navigate=w;this.handleServiceRequest=u;this.sendAction=y;this.JSC$10408_screenManager=e;this.commandResolverMap=t;this.autoLogResolverAllowlist=X;this.pendingCommands=new Set;if(JLs("command")){var G=this.resolveCommand;this.resolveCommand=function(n,N){var Q=ALo("command",{command:n});return arc(Q,G.bind(this,n,N),null)}}};
wco=function(q,w,u){var y=g7c,e=E7o,t=_.Qz(),X=oEc;u=u===void 0?[]:u;_.nx.instance=new _.nx(q,w,y,e,t,X,u)};
f1j=function(q,w,u){if(!q.commandResolverMap)return!1;var y=$dJ(w,q.commandResolverMap);return y?((q.autoLogResolverAllowlist.some(function(e){return!!_.C(w,e)})||(u==null?0:u.forceClickLogging))&&VXT(q,w,u),y instanceof Promise?y.then(function(e){e.resolve(w,u)}):y.resolve(w,u),!0):!1};
_.nx.prototype.resolveCommand=function(q,w){var u=this,y=mcx(q);if(f1j(this,q,w))return!0;if(y)return AVG(this,q,w);if(!this.buildCommandPayload)return Ddu(q,"Unhandled command by buildCommandPayload"),!1;var e=this.buildCommandPayload(q,w);if(w==null?0:w.commandController)e.commandController=w.commandController;if(e.type===0){if(!this.navigate)return Z9u(q,"navigate"),!1;if(!JVX(e.command))return Ddu(q,"Page requests need to specify a url"),!1;_.T("logging_avoid_blocking_during_navigation")&&_.LP4().transition("application_navigating");
q=this.navigate(e)||[];EK6(q).then(function(){u.pendingCommands.delete(e.command)});
return!0}if(e.type===1){if(!this.handleServiceRequest)return Z9u(q,"handleServiceRequest"),!1;(w==null?0:w.forceClickLogging)&&VXT(this,e.command,w);q=this.handleServiceRequest(e);EK6(q).then(function(){u.pendingCommands.delete(e.command)});
return!0}if(e.type===2){if(!this.sendAction)return Z9u(q,"sendAction"),!1;VXT(this,e.command,w);this.sendAction(e);return!0}return!1};
var VXT=function(q,w,u){if((u==null||!u.disableClickTracking)&&q.JSC$10408_screenManager)if(w.clickTrackingParams&&_.T("log_click_with_layer_from_element_in_command_handler")){var y;u=u==null?void 0:(y=u.form)==null?void 0:y.element;q.JSC$10408_screenManager.clickCommand(w,null,u&&u.getScreenLayer&&u.getScreenLayer())}else w.clickTrackingParams?q.JSC$10408_screenManager.clickCommand(w):!_.T("disable_clicked_visual_element_in_command_handler")&&(u==null?0:u.clickedVisualElement)&&_.Ph(q.JSC$10408_screenManager,
u.clickedVisualElement)},mcx=function(q){var w=!!_.C(q,_.Ww),u;
q=((u=_.C(q,_.NU))==null?void 0:u.signal)==="CLIENT_SIGNAL";return w||q},AVG=function(q,w,u){var y=_.C(w,_.Ww);
if(y)var e=(y==null?void 0:y.commands)||[];else{var t;if(((t=_.C(w,_.NU))==null?void 0:t.signal)==="CLIENT_SIGNAL"){var X;e=((X=_.C(w,_.NU))==null?void 0:X.actions)||[]}}if(e){w=_.P(e);for(e=w.next();!e.done;e=w.next()){e=e.value;try{q.resolveCommand(e,u)}catch(G){G instanceof Error&&_.vm(G)}}return!0}Ddu(w,"Could not handle the meta command");return!1},JVX=function(q){var w;
return!((w=_.C(q==null?void 0:q.commandMetadata,_.wk))==null||!w.url)};var nF=function(){LG.apply(this,arguments)};
_.O(nF,LG);nF.prototype.validate=function(q){var w,u;return!this.hasRun&&!!((w=q.data.response)==null?0:(u=w.onResponseReceivedEndpoints)==null?0:u.length)};
nF.prototype.handle=function(q){var w=_.nx.instance;q=_.P(q.data.response.onResponseReceivedEndpoints);for(var u=q.next();!u.done;u=q.next())w.resolveCommand(u.value)};var zFc,a1r,DcZ;
zFc=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=_.Hw();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.Hh=function(){a1r||(a1r=new zFc);return a1r};
DcZ=function(){var q=_.Hh();q.miniplayerButtonActivation=!1;q.userActivation=!1;q.playlistWatchPageActivation=!1;q.productDetailsPageActivation=!1;q.miniAppPageActivation=!1;q.playablesDestPageActivation=!1;q.lockupActivation=!1;q.showMiniplayerCommandActivation=!1;q.playlistSuggestionsShelfActivation=!1;q.mediaSessionPipActivation=!1;q.watchPipActivation=!1;q.watchWhileActivation=!1;q.shortsPipActivation=!1};
_.Zoa=function(){var q=_.Hh(),w=q.mediaSessionPipActivation,u=q.watchPipActivation,y=q.watchWhileActivation,e=q.playlistWatchPageActivation,t=q.lockupActivation,X=q.showMiniplayerCommandActivation,G=q.navigatingAwayFromWatchDeletedVideo,n=q.shortsPipActivation,N=q.playlistSuggestionsShelfActivation,Q=q.productDetailsPageActivation,I=q.miniAppPageActivation,U=q.playablesDestPageActivation;return!q.miniplayerButtonActivation&&!e&&!N&&!Q&&!I&&!U&&!t&&!X&&!w&&!u&&!y&&!n||G};var VOj;_.Wh=wG("FEwhat_to_watch","/",3854);_.fjl=wG("FEdownloads","/feed/downloads",42352);VOj=wG("FEmusic_offline","browse/FEmusic_offline",42352);var La=function(q,w){w=w===void 0?[]:w;var u=u===void 0?[]:u;w=wSH.apply(null,[u1j.apply(null,_.Cm(w))].concat(_.Cm(u)));this.store=tVf(q,void 0,w)};
La.prototype.getState=function(){return this.store.getState()};
La.prototype.dispatch=function(q){return this.store.dispatch(q)};
La.prototype.subscribe=function(q){return this.store.subscribe(q)};
La.prototype.replaceReducer=function(q){return this.store.replaceReducer(q)};
La.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.se=function(q,w,u){var y=w(q.getState());return q.subscribe(function(){var e=w(q.getState());if(e!==y){var t=y;y=e;u(e,t)}})};var fNJ;_.IH=function(q,w,u){return _.tr({type:"REPLACE_ENTITY",payload:{entityPayload:u,entityType:q,key:w}})};
fNJ=function(q){return _.tr({type:"REPLACE_ENTITIES",payload:q})};
_.mG=function(q,w,u,y){return _.tr({type:"UPDATE_ENTITY",payload:{entityPayload:u,entityType:q,key:w,mergeOption:y}})};var MFc=function(q){var w=this;q=q===void 0?[]:q;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;q.forEach(function(u){w.append(u)})};
_.k=MFc.prototype;_.k.getLength=function(){return this.totalLength};
_.k.append=function(q){var w=this.arrays.length===0?!1:(w=this.arrays[this.arrays.length-1])&&w.buffer===q.buffer&&w.byteOffset+w.length===q.byteOffset;w?(w=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(w.buffer,w.byteOffset,w.length+q.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(q);this.totalLength+=q.length};
_.k.split=function(q){for(var w=new MFc,u=new MFc,y=_.P(this.arrays),e=y.next();!e.done;e=y.next())e=e.value,q>=e.length?(w.append(e),q-=e.length):q?(w.append(new Uint8Array(e.buffer,e.byteOffset,q)),u.append(new Uint8Array(e.buffer,e.byteOffset+q,e.length-q)),q=0):u.append(e);return{headView:w,tailView:u}};
_.k.extract=function(q,w){return this.split(q).tailView.split(w).headView};
_.k.isFocused=function(q){return q>=this.arrayPos&&q<this.arrayPos+this.arrays[this.arrayIdx].length};
_.k.focus=function(q){if(!this.isFocused(q))for(q<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=q&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var pYk=function(q,w){q.focus(w);return q.arrays[q.arrayIdx][w-q.arrayPos]};(function(){var q=function(y){return new Uint8Array(y)},w=function(y){for(var e=new Uint8Array(y.length),t=0;t<y.length;t++)e[t]=y[t];
return e},u=new Uint8Array([1]);
return u.length===1&&u[0]===1?q:w})();
var cLM=Array(1024),R_f=window.TextDecoder?new TextDecoder:void 0,h_c=window.TextEncoder?new TextEncoder:void 0;var LnM=function(q){this.arrayView=q;this.pos=0;this.pendingTagAndType=-1},PQ=function(q){var w=pYk(q.arrayView,q.pos);
++q.pos;if(w<128)return w;for(var u=w&127,y=1;w>=128;)w=pYk(q.arrayView,q.pos),++q.pos,y*=128,u+=(w&127)*y;return u},Kn7=function(q,w){var u=q.pendingTagAndType;
for(q.pendingTagAndType=-1;q.pos+1<=q.arrayView.totalLength;){u<0&&(u=PQ(q));var y=u>>3,e=u&7;if(y===w)return!0;if(y>w){q.pendingTagAndType=u;break}u=-1;switch(e){case 0:PQ(q);break;case 1:q.pos+=8;break;case 2:y=PQ(q);q.pos+=y;break;case 5:q.pos+=4}}return!1};var xdl=function(){this.pos=0;this.submessagePosStack=[];this.buf=lrJ(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},Ga=function(q,w){w=q.pos+w;
if(!(q.buf.length>=w)){for(var u=q.buf.length*2;u<w;)u*=2;q.buf=lrJ(u,q.buf.subarray(0,q.pos));q.view=new DataView(q.buf.buffer,q.buf.byteOffset,q.buf.byteLength)}},FX=function(q,w){if(w>268435455){Ga(q,4);
for(var u=w&1073741823,y=0;y<4;y++)q.view.setUint8(q.pos,u&127|128),u>>=7,q.pos+=1;w=Math.floor(w/268435456)}for(Ga(q,4);w>127;)q.view.setUint8(q.pos,w&127|128),w>>=7,q.pos+=1;q.view.setUint8(q.pos,w);q.pos+=1};for(var qzl={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,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},BM4={},$cP=_.P(Object.entries(qzl)),vEa=$cP.next();!vEa.done;vEa=$cP.next()){var boa=_.P(vEa.value),YhT=boa.next().value,gEX=boa.next().value,EEk=YhT,RF3=gEX;RF3&&(BM4[RF3]=EEk)};var uJj=function(q,w){q=q===void 0?{}:q;switch(w.type){case "ENTITY_LOADED":return w.payload.reduce(function(y,e){var t,X=(t=e.options)==null?void 0:t.persistenceOption;if(X&&X!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&X!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return y;if(!e.entityKey)return _.vm(Error("zf")),y;if(e.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!e.payload)return e=new _.fv("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey}),_.vm(e),y;var G=(0,_.db.getAnyKey)(e.payload);
return e0o(y,G,e.entityKey,e.payload[G])}if(e.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{e=e.entityKey;try{var n=_.XX(e).entityType;G=e0o(y,n,e);break a}catch(I){if(I instanceof Error){e=new _.fv("Failed to deserialize entity key",{entityKey:e,originalMessage:I.message});_.vm(e);G=y;break a}throw I;}G=void 0}return G}if(e.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!e.payload)return e=new _.fv("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey}),_.vm(e),y;G=(0,_.db.getAnyKey)(e.payload);
var N,Q;return khu(y,G,e.entityKey,e.payload[G],(N=e.fieldMask)==null?void 0:(Q=N.mergeOptions)==null?void 0:Q.repeatedFieldsMergeOption)}return y},q);
case "REPLACE_ENTITY":var u=w.payload;return e0o(q,u.entityType,u.key,u.entityPayload);case "REPLACE_ENTITIES":return Object.keys(w.payload).reduce(function(y,e){var t=w.payload[e];return Object.keys(t).reduce(function(X,G){return e0o(X,e,G,t[G])},y)},q);
case "UPDATE_ENTITY":return u=w.payload,khu(q,u.entityType,u.key,u.entityPayload,u.mergeOption);default:return q}};var tMl;var cVx=!1,Nk,QJ,I4,is,r6,Shr=function(q){_.VG.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!cVx){var w,u=new Uint8Array(256),y=new Uint8Array(256);var e=1;for(w=0;w<256;w++)u[e]=w,y[w]=e,e^=e<<1^(e>>7&&283);Nk=new Uint8Array(256);QJ=WQ(256);I4=WQ(256);is=WQ(256);r6=WQ(256);for(var t=0;t<256;t++){e=t?y[255^u[t]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;Nk[t]=e;w=e<<1^(e>>7&&283);var X=w^e;QJ[t]=w<<24|e<<16|e<<8|X;I4[t]=X<<24|QJ[t]>>>8;is[t]=e<<24|I4[t]>>>
8;r6[t]=e<<24|is[t]>>>8}cVx=!0}e=WQ(44);for(u=0;u<4;u++)e[u]=q[4*u]<<24|q[4*u+1]<<16|q[4*u+2]<<8|q[4*u+3];for(y=1;u<44;u++)q=e[u-1],u%4||(q=(Nk[q>>16&255]^y)<<24|Nk[q>>8&255]<<16|Nk[q&255]<<8|Nk[q>>>24],y=y<<1^(y>>7&&283)),e[u]=e[u-4]^q;this.key=e};
_.O(Shr,_.VG);
Shr.prototype.encrypt=function(q){var w=q.length;q=new Uint8Array(q.buffer.slice(q.byteOffset,q.byteOffset+w));for(var u=this.cipherBlock,y=0;y<w&&this.blockOffset<16;)q[y++]^=u[this.blockOffset++];for(var e=w-(w-y)%16;y<e;)hFF(this),q[y++]^=u[0],q[y++]^=u[1],q[y++]^=u[2],q[y++]^=u[3],q[y++]^=u[4],q[y++]^=u[5],q[y++]^=u[6],q[y++]^=u[7],q[y++]^=u[8],q[y++]^=u[9],q[y++]^=u[10],q[y++]^=u[11],q[y++]^=u[12],q[y++]^=u[13],q[y++]^=u[14],q[y++]^=u[15];if(y<w)for(hFF(this),this.blockOffset=0;y<w;)q[y++]^=
u[this.blockOffset++];return q};
var jaZ=function(q,w){for(var u=0;u<4;u++)q.counter[u]=w[u*4]<<24|w[u*4+1]<<16|w[u*4+2]<<8|w[u*4+3];q.blockOffset=16},hFF=function(q){for(var w=q.key,u=q.counter[0]^w[0],y=q.counter[1]^w[1],e=q.counter[2]^w[2],t=q.counter[3]^w[3],X=3;X>=0&&!(q.counter[X]=-~q.counter[X]);X--);
for(var G,n,N=4;N<40;)X=QJ[u>>>24]^I4[y>>16&255]^is[e>>8&255]^r6[t&255]^w[N++],G=QJ[y>>>24]^I4[e>>16&255]^is[t>>8&255]^r6[u&255]^w[N++],n=QJ[e>>>24]^I4[t>>16&255]^is[u>>8&255]^r6[y&255]^w[N++],t=QJ[t>>>24]^I4[u>>16&255]^is[y>>8&255]^r6[e&255]^w[N++],u=X,y=G,e=n;q=q.cipherBlock;X=w[40];q[0]=Nk[u>>>24]^X>>>24;q[1]=Nk[y>>16&255]^X>>16&255;q[2]=Nk[e>>8&255]^X>>8&255;q[3]=Nk[t&255]^X&255;X=w[41];q[4]=Nk[y>>>24]^X>>>24;q[5]=Nk[e>>16&255]^X>>16&255;q[6]=Nk[t>>8&255]^X>>8&255;q[7]=Nk[u&255]^X&255;X=w[42];
q[8]=Nk[e>>>24]^X>>>24;q[9]=Nk[t>>16&255]^X>>16&255;q[10]=Nk[u>>8&255]^X>>8&255;q[11]=Nk[y&255]^X&255;X=w[43];q[12]=Nk[t>>>24]^X>>>24;q[13]=Nk[u>>16&255]^X>>16&255;q[14]=Nk[y>>8&255]^X>>8&255;q[15]=Nk[e&255]^X&255};var l1T=!1;(function(){var q=function(y){return new Uint8Array(y)},w=function(y){for(var e=new Uint8Array(y.length),t=0;t<y.length;t++)e[t]=y[t];
return e},u=new Uint8Array([1]);
return u.length===1&&u[0]===1?q:w})();
var Ue;var LDk=function(q){this.JSC$10475_aesKey=q};
LDk.prototype.encrypt=function(q,w){var u=this,y,e;return _.F(function(t){if(t.nextAddress==1){a:{if(!l1T&&!xF){if(Ue){var X=Ue;break a}Ue=(X=window.crypto)==null?void 0:X.subtle;var G,n,N;if(((G=Ue)==null?0:G.importKey)&&((n=Ue)==null?0:n.sign)&&((N=Ue)==null?0:N.encrypt)){X=Ue;break a}Ue=void 0}X=void 0}y=X;if(!y)return t.return(MXj(u,q,w));_.tD(t,3);return _.H(t,KDZ(u,q,w,y),5)}if(t.nextAddress!=3)return t.return(t.yieldResult);e=_.nm(t);_.Y8(e);l1T=!0;return t.return(MXj(u,q,w))})};
var KDZ=function(q,w,u,y){var e,t;return _.F(function(X){switch(X.nextAddress){case 1:if(q.cryptoKey){X.jumpTo(2);break}return _.H(X,y.importKey("raw",q.JSC$10475_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:q.cryptoKey=X.yieldResult;case 2:return e={name:"AES-CTR",counter:u,length:128},_.H(X,y.encrypt(e,q.cryptoKey,w),4);case 4:return t=X.yieldResult,X.return(new Uint8Array(t))}})},MXj=function(q,w,u){q.encryptorPolyfill||(q.encryptorPolyfill=new Shr(q.JSC$10475_aesKey));
jaZ(q.encryptorPolyfill,u);return q.encryptorPolyfill.encrypt(w)},BSZ=function(q){this.JSC$10479_aesKey=q};
BSZ.prototype.encrypt=function(q,w){this.encryptor||(this.encryptor=new Shr(this.JSC$10479_aesKey));jaZ(this.encryptor,w);return this.encryptor.encrypt(q)};var xcG={},Fmu=y_("yt-idb-pref-storage",{objectStores:(xcG.prefs={addedAtVersion:1},xcG),shared:!1,upgrade:function(q,w){w(1)&&cT(Rz(q,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.T5=function(q){this.token=q};
_.T5.getInstance=function(){return _.F(function(q){return q.return(new Promise(function(w){_.uY().then(function(u){u?(_.T5.instance||(_.T5.instance=new _.T5(u)),w(_.T5.instance)):w(void 0)})}))})};
_.T5.prototype.get=function(q){var w=this,u,y,e;return _.F(function(t){if(t.nextAddress==1)return _.H(t,GhM(w.token),2);if(t.nextAddress!=3)return u=t.yieldResult,_.H(t,u.get("prefs",q),3);y=t.yieldResult;if(!y)return t.return();e=(0,_.eW)();return y.expirationTimestampMs<=e?t.return():t.return(y.value)})};
_.T5.prototype.set=function(q,w,u){u=u===void 0?31536E3:u;var y=this,e,t,X;return _.F(function(G){if(G.nextAddress==1)return e=(0,_.eW)(),t={key:q,value:w,expirationTimestampMs:e+u*1E3},_.H(G,GhM(y.token),2);X=G.yieldResult;return _.H(G,X.put("prefs",t),0)})};
_.T5.prototype.remove=function(q){var w=this,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,GhM(w.token),2);u=y.yieldResult;return _.H(y,u.delete("prefs",q),0)})};var CF={},qrX=(CF.INVALID_ENCODER_VERSION="Invalid encoder version",CF.KEY_CREATION_FAILED="Failed to create encoder key",CF.UNKNOWN_DECODE_ERROR="Failed to decode PES data",CF.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",CF.WRONG_DATA_TYPE="Encoder cannot process the data type",CF),s1=function(q,w){w=w===void 0?{}:w;_.fv.call(this,qrX[q],Object.assign({},{name:"PESEncoderError",type:q},w));this.type=q;this.level="WARNING";Object.setPrototypeOf(this,s1.prototype)};
_.O(s1,_.fv);var wva=function(){},upT=function(q,w,u){try{return q.encodeImpl(w,u)}catch(y){s8j(y,H1o)}},yo$=function(q,w,u){var y;
return _.F(function(e){if(e.nextAddress==1)return _.tD(e,2),_.H(e,q.decodeAsyncImpl(w,u),4);if(e.nextAddress!=2)return e.return(e.yieldResult);y=_.nm(e);s8j(y,Wmu);_.HI(e)})};
wva.prototype.decodeAsyncImpl=function(q,w){return Promise.resolve(this.decodeImpl(q,w))};var d6=function(q,w){this.aesEncryptor=q;this.aesEncryptorAsync=w};
_.O(d6,wva);d6.prototype.encodeImpl=function(q,w){w=NQz(w);q=(new TextEncoder).encode(JSON.stringify(q));return this.aesEncryptor.encrypt(q,w)};
d6.prototype.decodeImpl=function(q,w){if(!(q instanceof Uint8Array))throw neu(1);var u=new TextDecoder;w=NQz(w);q=this.aesEncryptor.encrypt(q,w);return JSON.parse(u.decode(q))};
d6.prototype.decodeAsyncImpl=function(q,w){var u=this,y,e,t;return _.F(function(X){if(X.nextAddress==1){if(!(q instanceof Uint8Array))throw neu(1);y=new TextDecoder;e=NQz(w);return _.H(X,u.aesEncryptorAsync.encrypt(q,e),2)}t=X.yieldResult;return X.return(JSON.parse(y.decode(t)))})};var Q8c={accountLinkStatusEntity:JtF,booleanEntity:P6j,buttonEntity:sBP,captionTrack:kXk,channelHandle:j5T,chipEntity:ltG,commerceAcquisitionClientPayloadEntity:bG6,commerceCartListEntity:Yua,contextNoteFeedEntityPayload:qLX,continuationTokenEntity:gr6,downloadQualityPickerEntity:A5P,downloadsPageRefreshTokenEntity:zzc,downloadsPageViewConfigurationEntity:Mna,downloadStatusEntity:J5G,dismissState:LFT,sfvAudioItemCurrentlyPlayingEntity:v26,emojiFountainDataEntity:nPr,emojiCustomizationSetEntity:Go3,
fakeChannel:GkT,fakePlaylist:nkx,fakePlaylistEntryCollection:HOx,fakeVideo:sJa,fakeVideoDescription:NPT,featuredProductsEntity:Qq3,flowStateEntity:VKx,iconBadgeEntity:gPP,interstitialInteractionStateEntity:L_T,likeButtonAnimationEntity:Kor,liveChatPollStateEntity:y5$,liveViewerLeaderboardChatEntryPointStateEntity:rLX,liveViewerLeaderboardPointsEntity:Ud6,liveReactionsDataEntity:HG$,logoEntity:jJk,macroMarkerEntity:BDF,mainDownloadsLibraryEntity:a9x,mainDownloadsListEntity:DFP,mainPlaylistDownloadStateEntity:pJG,
mainPlaylistEntity:Erc,mainPlaylistVideoEntity:RzX,mainVideoDownloadStateEntity:$FT,mainVideoEntity:jfX,markersEngagementPanelSyncEntity:xFP,markersVisibilityOverrideEntity:qcr,musicAlbumReleaseDetail:fQa,musicAlbumReleaseDownloadMetadataEntity:C5x,musicAlbumRelease:V4T,musicAlbumReleaseUserDetail:mHZ,musicArtistDetail:JYG,musicArtist:AYP,musicArtistUserDetail:zJG,musicDownloadsLibraryEntity:dHF,musicLibraryEdit:aQj,musicLibraryStatusEntity:DH$,musicPlaylist:Zdx,musicPlaylistDownloadMetadataEntity:OdZ,
musicShare:$H$,musicTrackDetail:bdF,musicTrackDownloadMetadataEntity:oQT,musicTrack:vQ6,musicTrackUserDetail:YcZ,offlineOrchestrationActionWrapperEntity:tFP,offlineVideoPolicy:PRG,offlineVideoStreams:X_j,offlineabilityEntity:vrj,orchestrationWebSamplingEntity:bMx,pageHeaderEntity:uha,pdpStateEntity:EP6,pinnedProductEntity:IQZ,playbackData:Fnk,playerStateEntity:wzx,quantityIncrementerEntity:RI3,refresh:GXr,saveToPlaylistListEntity:FFT,selectedChipIndexEntityPayload:uCj,settingEntity:AUT,stringEntity:XUj,
suggestedFeedbackChipStateEntity:yYZ,transfer:n2X,trendingOfferEntity:id$,videoDownloadContextEntity:H96,videoOverviewAsyncDataEntity:WET,videoPlaybackPositionEntity:IE3,votingEntity:tLP,ytMainChannelEntity:l9T,youchatPendingResponseEntity:eJa,ytMainDownloadedVideoEntity:Yjk,ytMainVideoEntity:Loj};var eN$,t8a,rG,O1z,oe7,FJX,npT,GrZ,Xv3;eN$=function(q,w){this.JSC$10498_wrapped=q;this.JSC$10498_encoderRegistry=w;this.changedKeys={}};
t8a=function(q,w){a:{q=krk(q.JSC$10498_encoderRegistry,w.version);try{var u=q.decodeImpl(w.data,w.key);break a}catch(y){s8j(y,Wmu)}u=void 0}return u};
_.P7X=function(q,w,u){return q.JSC$10498_wrapped.objectStore("EntityStore").get(w).then(function(y){if(y){if(u&&y.entityType!==u)throw Error("Af");return t8a(q,y)}})};
rG=function(q,w,u){return u?(u=u.map(function(y){return _.P7X(q,y,w)}),R2.all(u)):q.JSC$10498_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(w)).then(function(y){return y.map(function(e){return t8a(q,e)})})};
_.dAl=function(q,w,u){var y=wuc(w),e=krk(q.JSC$10498_encoderRegistry,1),t=Object.assign({},w);return q.JSC$10498_wrapped.objectStore("EntityStore").get(y).then(function(X){if(X){if(X.entityType!==u)throw Error("Af");t.entityMetadata||(X=t8a(q,X),t.entityMetadata=X.entityMetadata)}}).then(function(){var X={key:y,
entityType:u,data:upT(e,t,y),version:1};return R2.all([q.JSC$10498_wrapped.objectStore("EntityStore").put(X),Xv3(q,t,u)])}).then(function(){FJX(q,y,u);
return y})};
O1z=function(q,w){var u=_.XX(w).entityType;return R2.all([q.JSC$10498_wrapped.objectStore("EntityStore").delete(w),GrZ(q,w)]).then(function(){FJX(q,w,u)})};
oe7=function(q,w,u,y){var e=krk(q.JSC$10498_encoderRegistry,1);return _.P7X(q,w,y).then(function(t){if(t){t=E2H(t,u);var X={key:w,entityType:y,data:upT(e,t,w),version:1};return R2.all([q.JSC$10498_wrapped.objectStore("EntityStore").put(X),Xv3(q,t,y)])}}).then(function(){FJX(q,w,y);
return w})};
FJX=function(q,w,u){var y=q.changedKeys[u];y||(y=new Set,q.changedKeys[u]=y);y.add(w)};
npT=function(q,w,u){var y=wuc(w);u=INu(u);if(!u)return R2.resolve([]);u=new u(w);q=q.JSC$10498_wrapped.objectStore("EntityAssociationStore");w=[];u=_.P(u.getAssociations());for(var e=u.next();!e.done;e=u.next())w.push(q.put({parentEntityKey:y,childEntityKey:e.value}));return R2.all(w).then(function(t){return t.map(function(X){return X[1]})})};
GrZ=function(q,w){return q.JSC$10498_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(w))};
Xv3=function(q,w,u){var y=wuc(w);return GrZ(q,y).then(function(){return npT(q,w,u)})};var HUc=function(){};
_.O(HUc,wva);HUc.prototype.encodeImpl=function(q){return q};
HUc.prototype.decodeImpl=function(q){if(q instanceof Uint8Array)throw neu(0);return q};var UAl=function(){this.cacheMap={};this.cacheMap[0]=new HUc;if(!_.T("aes_pes_encoder_killswitch")){var q=this.cacheMap;try{var w=_.O8();var u=NQz(w);var y=new d6(new BSZ(u),new LDk(u))}catch(e){throw q=e instanceof Error?new s1("KEY_CREATION_FAILED",{originalMessage:e.message}):new s1("KEY_CREATION_FAILED"),_.vm(q),q;}q[1]=y}},krk=function(q,w){w=w===void 0?0:w;
q=q.cacheMap[w];if(!q)throw w=new s1("INVALID_ENCODER_VERSION",{encoderVersion:w}),_.vm(w),w;return q};var QU=function(q,w){_.VG.call(this);this.token=q;this.JSC$10512_encoderRegistry=w;this.observers=[];q=new _.uc.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.O8());q.onmessage=this.handleMessage.bind(this);this.channel=q};
_.O(QU,_.VG);_.iA=function(q,w,u){var y,e,t,X;return _.F(function(G){if(G.nextAddress==1)return _.H(G,XuM(q.token),2);if(G.nextAddress!=3)return y=G.yieldResult,_.H(G,_.Mu(y,["EntityStore","EntityAssociationStore"],w,function(n){e=new eN$(n,q.JSC$10512_encoderRegistry);return u(e)}),3);
t=G.yieldResult;e&&(X=e.changedKeys,Object.keys(X).length>0&&(q.channel.postMessage(X),WJj(q,X)));return G.return(t)})};
QU.prototype.observe=function(q){var w=this;this.observers.push(q);return function(){var u=w.observers.indexOf(q);u>=0&&w.observers.splice(u,1)}};
var pnc=function(q){var w;return _.F(function(u){if(u.nextAddress==1)return _.H(u,_.iA(q,{mode:"readonly",enableRetries:!0},function(y){return y.JSC$10498_wrapped.objectStore("EntityStore").getAll()}),2);
w=u.yieldResult;return u.return(Promise.all(w.filter(function(y){return!!y}).map(function(y){var e,t;
return _.F(function(X){if(X.nextAddress==1){e=y.key;t=y.entityType;var G=yo$(krk(q.JSC$10512_encoderRegistry,y.version),y.data,y.key);return _.H(X,G,2)}return X.return({key:e,entityType:t,data:X.yieldResult})})})))})};
QU.prototype.handleMessage=function(q){WJj(this,q.data)};
var WJj=function(q,w){q=_.P(q.observers);for(var u=q.next();!u.done;u=q.next())u=u.value,u(w)};
QU.prototype.disposeInternal=function(){this.channel.close()};
var i1z;var Oe,Nt3,xsl,Toz;Oe={};_.sTG=(Oe.mainVideoEntity="mainVideoEntityActionMetadata",Oe.mainPlaylistEntity="mainPlaylistEntityActionMetadata",Oe.musicTrack="musicTrackEntityActionMetadata",Oe.musicPlaylist="musicPlaylistEntityActionMetadata",Oe);Nt3=new _.MH("DOWNLOADS_ENTITY_TYPE_MAP");xsl=_.na("","downloadsPageViewConfigurationEntity");Toz=_.na("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.uhl=_.na("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.na("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.na("SMART_DOWNLOADS_ENABLED","settingEntity");_.na("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var PGc=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var sZc=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var RSo={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var o4,gPc,eMx,v_6;o4=window;_.YN=o4.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.BfJ=o4.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.hr;gPc=o4.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||CV;eMx=o4.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||yec;_.QTa=o4.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.Ut3;v_6=o4.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||dtZ;cQ({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 whH=EPo(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(q){return q}}}),g5l=EPo(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(q){return q}}}),hIc=new Map;var ybs=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],KZs;var I$X=function(q){return _.tr({type:"SET_EPHEMERAL_ACTION",payload:q})};var iU$={ephemeralAction:null};var rox={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var ouJ={sharedUi:function(q,w){q=q===void 0?rox:q;switch(w.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},q,{animatedThumbnailEnabled:w.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},q,{inlinePreviewEnabled:w.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},q,{currentPageType:w.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},q,{currentPageSubType:w.payload});default:return q}},
a11y:Qv({ephemeralAction:function(q,w){q=q===void 0?iU$.ephemeralAction:q;switch(w.type){case "SET_EPHEMERAL_ACTION":return w.payload;default:return q}}})};var iFH=Qv({isLeaderTab:function(q,w){q=q===void 0?!0:q;switch(w.type){case "SET_IS_LEADER_TAB":var u,y;return(y=w==null?void 0:(u=w.payload)==null?void 0:u.isLeaderTab)!=null?y:q;default:return q}}});var URk=function(q){return _.tr({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:q}})};var OFo=Qv({isDesktopSmallWidth:function(q,w){switch(w.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return w.payload.isDesktopSmallWidth;default:return q===void 0?!1:q}},
isShortsActive:function(q,w){switch(w.type){case "SET_IS_SHORTS_ACTIVE":return w.payload.isShortsActive;default:return q===void 0?!1:q}},
isWatchWhileMode:function(q,w){switch(w.type){case "SET_IS_WATCH_WHILE_MODE":return w.payload.isWatchWhileMode;default:return q===void 0?!1:q}},
playerState:function(q,w){switch(w.type){case "SET_PLAYER_STATE":return w.payload.playerState;default:return q===void 0?-1:q}},
isFullscreen:function(q,w){switch(w.type){case "SET_IS_FULLSCREEN":return w.payload.isFullscreen;default:return q===void 0?!1:q}},
isSmallScreenSqueezeback:function(q,w){switch(w.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return w.payload.isSmallScreenSqueezeback;default:return q===void 0?!1:q}},
isShortsPipActive:function(q,w){switch(w.type){case "SET_IS_SHORTS_PIP_ACTIVE":return w.payload.isShortsPipActive;default:return q===void 0?!1:q}},
isPlaybackStarted:function(q,w){switch(w.type){case "SET_IS_PLAYBACK_STARTED":return w.payload.isPlaybackStarted;default:return q===void 0?!1:q}}});var FE4={playlistId:"",inviteLinkURL:""};var Ttc={};var IUs=Qv({continuationCommand:function(q,w){q=q===void 0?Ttc:q;switch(w.type){case "SET_CONTINUATION_COMMAND":return w.payload.continuationCommand;default:return q}}});var fUy=function(){return function(q){return function(w){var u=q(w);_.Pw(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[w],!0);return u}}};var C73,oIc;C73=new _.Gt;_.kH=new _.MH("WATCH_PLAYER_PROMISE_TOKEN");_.dRF=new _.Gt;_.OUa=new _.MH("SHORTS_PLAYER_PROMISE_TOKEN");oIc=new _.MH("");var mkl=function(){return function(q){return function(w){w.type==="ENTITY_LOADED"&&_.tG().resolve(_.kH).then(function(u){var y;(y=u.dispatchReduxAction)==null||y.call(u,w)});
return q(w)}}};var nu6={currentFormId:"",commandsMap:{}};var opr={};var rbM=Qv({additionalContext:function(q,w){switch(w.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var u;return(u=w.payload)!=null?u:"";default:return q===void 0?"":q}},
impersonatedChannelUrl:function(q,w){switch(w.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var u;return(u=w.payload)!=null?u:"";default:return q===void 0?"":q}},
selectedVideoIds:function(q,w){q=q===void 0?opr:q;switch(w.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var u={};return Object.assign({},q,(u[w.payload]=!0,u));case "VIDEO_UNSELECTED":return w=w.payload,q=Object.assign({},q),delete q[w],q;default:return q}}});var Ukj=Qv({parentClickTrackingParams:function(q,w){switch(w.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return w.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return q===void 0?"":q}}});var V8j=function(q){return _.tr({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:q})};var f$x={};var T66=Qv({stepStates:function(q,w){q=q===void 0?f$x:q;switch(w.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var u=q,y=w.payload,e,t,X;q={};w={selectionStates:Object.assign({},(X=(e=u[y.stepId])==null?void 0:e.selectionStates)!=null?X:{},(q[y.token]={isSelected:y.isSelected},q)),userQuery:(t=u[y.stepId])==null?void 0:t.userQuery};e={};return Object.assign({},u,(e[y.stepId]=w,e));case "TALK_TO_RECS_UPDATE_USER_QUERY":return e=q,t=w.payload,X={selectionStates:Object.assign({},
(y=(u=e[t.stepId])==null?void 0:u.selectionStates)!=null?y:{}),userQuery:{userQuery:t.userQuery,token:t.userQueryToken}},u={},Object.assign({},e,(u[t.stepId]=X,u));default:return q}}});var mRx,Ao$;mRx=function(q){return _.tr({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:q})};
Ao$=function(q){return _.tr({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:q})};
_.fC=function(q){return _.tr({type:"SET_CURRENT_PAGE_TYPE",payload:q})};
_.JoZ=function(q){return _.tr({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:q})};var WEM={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"};_.zNG=function(q){return _.tr({type:"SET_PLAYER_STATE",payload:{playerState:q}})};var a$T=[],DRk={width:0,height:0};var Cso=Qv({isTheaterMode:function(q,w){q=q===void 0?_.T("kevlar_disable_theater_mode_persistence")?!1:_.RX("START_IN_THEATER_MODE"):q;switch(w.type){case "SET_IS_THEATER_MODE":return w.payload.isTheaterMode;default:return q}},
isWatchActive:function(q,w){switch(w.type){case "SET_IS_WATCH_ACTIVE":return w.payload.isWatchActive;default:return q===void 0?!1:q}},
isLearningJourneyActive:function(q,w){switch(w.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return w.payload.isLearningJourneyActive;default:return q===void 0?!1:q}},
isWatchFullscreen:function(q,w){switch(w.type){case "SET_IS_WATCH_FULLSCREEN":return w.payload.isWatchFullscreen;default:return q===void 0?!1:q}},
isWatchNarrowWidth:function(q,w){switch(w.type){case "SET_IS_WATCH_NARROW_WIDTH":return w.payload.isWatchNarrowWidth;default:return q===void 0?!1:q}},
isWatchRetroMode:function(q,w){switch(w.type){case "SET_IS_WATCH_RETRO_MODE":return w.payload.isWatchRetroMode;default:return q===void 0?!1:q}},
isLiveChatCollapsed:function(q,w){switch(w.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return w.payload.isLiveChatCollapsed;default:return q===void 0?!1:q}},
openEngagementPanels:function(q,w){q=q===void 0?a$T:q;var u=[].concat(_.Cm(q));switch(w.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return u.push(w.payload.panelToAdd),u;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return u.splice(u.indexOf(w.payload.panelToRemove),1),u;default:return q}},
playerState:function(q,w){switch(w.type){case "SET_PLAYER_STATE":return w.payload.playerState;default:return q===void 0?-1:q}},
watchScrollTop:function(q,w){switch(w.type){case "SET_WATCH_SCROLL_TOP":return w.payload.watchScrollTop;default:return q===void 0?0:q}},
watchWindowSize:function(q,w){q=q===void 0?DRk:q;switch(w.type){case "SET_WATCH_WINDOW_SIZE":return w.payload.watchWindowSize;default:return q}}});var ZUx={feedbackTokens:[]};var dk7=Qv({surveyFeedbackData:function(q,w){q=q===void 0?ZUx:q;switch(w.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return w.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},q,w.payload);default:return q}}});var N6s={};var Jbc=void 0;_.T("web_enable_redux_store_on_demand")||(Jbc=Abu());var pvT=function(q,w,u){var y=this;this.listId=q;this.JSC$10646_updateCallback=w;this.isOfflineVideoCallback=u;_.Mt().subscribe(function(){y.handleUpdate()})};
pvT.prototype.getPlaylistData=function(){var q=_.Mt().getState().entities;if(this.listId&&this.listId!=="PPSV"){var w=zSJ(q,this.listId,!0),u=_.na(this.listId,"mainPlaylistEntity"),y,e;q=q==null?void 0:(y=q.mainPlaylistEntity)==null?void 0:(e=y[u])==null?void 0:e.title;return z5J(w,q,this.listId)}w=_.Noo(tLc(q));q=_.Noo(_.fa(q));return z5J(w.concat(q))};
pvT.prototype.getPlaylistId=function(){return this.listId};
pvT.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10646_updateCallback(this.listId,this.getPlaylistData(),{})};var VJ=function(q,w,u,y){y=y===void 0?[]:y;this.JSC$10649_playlistNetworkManager=q;this.listId=w;this.JSC$10649_updateCallback=u;this.videoIds=y;this.pendingUpdates=[];this.currentIndex=0};
VJ.prototype.JSC$10649_setCurrentIndex=function(q){this.currentIndex=q};
VJ.prototype.setListId=function(q){this.listId=q};
var $Rc=function(q,w){q.currentCreateRequest&&q.currentCreateRequest.cancel(w);q.currentUpdateRequest&&q.currentUpdateRequest.cancel(w);q.currentRefreshRequest&&q.currentRefreshRequest.cancel(w)};
VJ.prototype.delete=function(){$Rc(this,"PROXY DELETED")};
VJ.prototype.addVideos=function(q,w,u){var y=this;u!==void 0?this.videoIds.splice.apply(this.videoIds,[u,0].concat(_.Cm(q))):this.videoIds.push.apply(this.videoIds,_.Cm(q));this.listId||this.currentCreateRequest?(q.forEach(function(e,t){e={addedVideoId:e,action:"ACTION_ADD_VIDEO"};u&&(e.addedVideoPosition=u+t);y.pendingUpdates.push(e)}),fF(this)):vpF(this,w.onCreateListCommand)};
var bUr=function(q,w,u,y,e){dM7(q.videoIds,w,u);w>q.currentIndex&&u<=q.currentIndex?q.JSC$10649_setCurrentIndex(q.currentIndex+1):w===q.currentIndex?q.JSC$10649_setCurrentIndex(u):w<q.currentIndex&&u>=q.currentIndex&&q.JSC$10649_setCurrentIndex(q.currentIndex-1);q.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:y,movedSetVideoIdPredecessor:e});fF(q)},vpF=function(q,w){$Rc(q,"OBSOLETE");
q.currentCreateRequest=Yrx(q.JSC$10649_playlistNetworkManager,w,q.videoIds);_.Uj(q.currentCreateRequest,function(){q.currentCreateRequest=void 0}).then(function(u){q.setListId(u.playlistId);
q.pendingUpdates.length>0?fF(q):gpX(q)})},fF=function(q){if(q.pendingUpdates.length!==0&&(q.currentRefreshRequest&&q.currentRefreshRequest.cancel("OBSOLETE"),!q.currentUpdateRequest&&!q.currentCreateRequest)){var w=q.pendingUpdates.splice(0,q.pendingUpdates.length);
q.currentUpdateRequest=q.JSC$10649_playlistNetworkManager.updatePlaylist(q.listId,w);_.Uj(q.currentUpdateRequest,function(){q.currentUpdateRequest=void 0}).then(function(){q.pendingUpdates.length>0?fF(q):gpX(q)}).thenCatch(function(){q.pendingUpdates.unshift.apply(q.pendingUpdates,_.Cm(w))})}},gpX=function(q){q.currentRefreshRequest=_.Ep3(q.JSC$10649_playlistNetworkManager,q.listId,q.currentIndex,q.videoIds[q.currentIndex]);
_.Uj(q.currentRefreshRequest,function(){q.currentRefreshRequest=void 0}).then(function(w){q.JSC$10649_updateCallback(w.playlistId,w.playlistPanelRenderer,w.autoplayRenderer)})};
VJ.prototype.size=function(){return this.videoIds.length};var RNG=function(q,w,u,y){y=y===void 0?[]:y;VJ.call(this,q,w,u,y);this.JSC$10649_playlistNetworkManager=q;this.listId=w;this.JSC$10649_updateCallback=u;this.videoIds=y};
_.O(RNG,VJ);_.mE=function(q,w,u,y,e,t,X){e=e===void 0?[]:e;X=X===void 0?wD:X;VJ.call(this,q,w,u,e);this.JSC$10649_playlistNetworkManager=q;this.listId=w;this.JSC$10649_updateCallback=u;this.onAuthChange=y;this.videoIds=e;this.storage=t;this.cookieReader=X;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.ko(_.pi,this.checkLoggedInStatusChange.bind(this),1E3)};
_.O(_.mE,VJ);_.k=_.mE.prototype;_.k.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.ko(_.pi,this.checkLoggedInStatusChange.bind(this),1E3)};
_.k.JSC$10649_setCurrentIndex=function(q){VJ.prototype.JSC$10649_setCurrentIndex.call(this,q);this.store()};
_.k.delete=function(){_.pi.cancelJob(this.queueSapisIdJob);VJ.prototype.delete.call(this)};
_.k.setListId=function(q){VJ.prototype.setListId.call(this,q);this.store()};
_.k.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var cok=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],Srj=["playerResponse","videoDetails"],hN$=["response","currentVideoEndpoint","watchEndpoint","videoId"],jTj=["response","currentVideoEndpoint","watchEndpoint","playlistId"],l$r=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],LJ3=["response","contents","twoColumnWatchNextResults","playlist","playlist"],M8X=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
KJP=["response","contents","twoColumnWatchNextResults"];var Ab={},$ky=(Ab.WEB_UNPLUGGED="^unplugged/",Ab.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Ab.WEB_UNPLUGGED_OPS="^unplugged/",Ab.WEB_UNPLUGGED_PUBLIC="^unplugged/",Ab.WEB_CREATOR="^creator/",Ab.WEB_KIDS="^kids/",Ab.WEB_EXPERIMENTS="^experiments/",Ab.WEB_MUSIC="^music/",Ab.WEB_REMIX="^music/",Ab.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Ab.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Ab);var WDo,Yrx;WDo=function(q,w){this.networkManager=q;this.innertubeTransportService=w};
Yrx=function(q,w,u){if(!_.C(w,_.pG))return _.og(Error("Ef"));_.C(w,_.pG).videoIds=u;u={create_playlist_title:_.ID("QUEUE",void 0,"Queue")};return ZF7(_.cR(q.innertubeTransportService,w,u),aUf)};
_.Ep3=function(q,w,u,y){w={videoId:y,playlistId:w,playlistIndex:u};u=_.Ka(xqc);return ZF7(_.Jb(q.innertubeTransportService,w,u),ph7)};
WDo.prototype.updatePlaylist=function(q,w){return ZF7(_.cR(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:q,actions:w}}),Dk4)};var BtT=function(q){this.storage=q},xRj;
BtT.prototype.store=function(q,w){w=w===void 0?0:w;if(this.storage&&q.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",q),this.storage.set("TLPQindex",String(w)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(u){}};
BtT.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
BtT.prototype.getPlaylistId=function(){if(!this.storage)return null;var q=null;try{q=this.storage.get("TLPQplaylist")}catch(w){}return q};var guo=["navigationEndpoint","watchEndpoint","videoId"],Yez=["nextButtonVideo","watchEndpoint","videoId"];_.OP=new _.MH("NETWORK_TOKEN");_.KT=new _.MH("PAGE_TOKEN");_.z5=new _.MH("PLAYLIST_TOKEN");var qiP;qiP=new _.MH("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.oi=new _.MH("INNERTUBE_TRANSPORT_TOKEN");var wAT,a4,yHx,eZ$,tUa,Pbr;wAT=new Set(["ci","cr","carml"]);a4=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10696_parkedJobs=new Map;this.parkedProcessors=new Map};
_.DU=function(){a4.instance||(a4.instance=new a4);return a4.instance};
a4.prototype.onAny=function(q){return _.u8G(this,q,2)};
a4.prototype.parkOrScheduleJob=function(q,w,u,y,e){_.ZU(this,u)?_.Vk().addJob(q,w,y):(e&&(q=yHx(q),eZ$(this,q,w,u,e)),e=this.JSC$10696_parkedJobs.get(u),e||(this.JSC$10696_parkedJobs.set(u,[]),e=this.JSC$10696_parkedJobs.get(u)),e.push({job:q,priority:w,delay:y}))};
a4.prototype.addListener=function(q,w,u){u&&(w=yHx(w),eZ$(this,w,0,q,u));u=this.parkedProcessors.get(q);u||(this.parkedProcessors.set(q,[]),u=this.parkedProcessors.get(q));u.push(w)};
a4.prototype.processSignal=function(q){if(!_.ZU(this,q)){this.inProgressSignals.add(q);var w=this.JSC$10696_parkedJobs.get(q);if(w){w=_.P(w);for(var u=w.next();!u.done;u=w.next())u=u.value,_.Vk().addJob(u.job,u.priority,u.delay);this.JSC$10696_parkedJobs.delete(q)}if(w=this.parkedProcessors.get(q)){w=_.P(w);for(u=w.next();!u.done;u=w.next())u=u.value,u();this.parkedProcessors.delete(q)}this.signals.push(q);this.inProgressSignals.delete(q)}};
_.ZU=function(q,w){return wAT.has(w)||_.RX("IS_HOMEPAGE_COLD")||_.RX("IS_RESULTS_PAGE_COLD")||_.RX("IS_WATCH_PAGE_COLD")?q.signals.indexOf(w)>=0:!0};
yHx=function(q){var w=!1;return function(){w||(w=!0,q())}};
eZ$=function(q,w,u,y,e){if(kKP.has(y))_.Vk().addJob(w,u,e);else{var t=q.compoundSignals.get(y);t&&_.Vk().addJob(function(){_.ZU(q,y)||(t.isTimeoutConditionSatisfied?_.Vk().addJob(w,u):t.timeoutConditionObservers.push(function(){_.Vk().addJob(w,u)}))},u,e)}};
_.u8G=function(q,w,u){if(w.length>1){var y=[],e=Object.create(null);w=_.P(w);for(var t=w.next();!t.done;t=w.next())t=t.value,e[t]||(y.push(t),e[t]=!0);w=y}if(w.length===1)return w[0];t=w;y="";e=u===2?"|":"&";t.sort();t=_.P(t);for(var X=t.next();!X.done;X=t.next())y+=X.value+e;if(!q.compoundSignals.get(y)){e=0;t=[];X=_.P(w);for(var G=X.next();!G.done;G=X.next())G=G.value,e++,_.ZU(q,G)||t.push(G);(u=u===2)&&e>t.length||!u&&!t.length?q.signals.push(y):tUa(q,y,u,w,t)}return y};
tUa=function(q,w,u,y,e){var t=e.length,X=function(){u||--t===0?q.processSignal(w):Pbr(q,w)};
e=_.P(e);for(var G=e.next();!G.done;G=e.next())q.addListener(G.value,X);q.compoundSignals.set(w,{signals:y,isOnAny:u,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});Pbr(q,w)};
Pbr=function(q,w){if(!_.ZU(q,w)){var u=q.compoundSignals.get(w);if(u&&!u.isTimeoutConditionSatisfied){for(var y=!1,e=0,t=0,X=_.P(u.signals),G=X.next();!G.done;G=X.next()){var n=G.value;G=!_.ZU(q,n);kKP.has(n)?y=!0:(n=q.compoundSignals.get(n))?G&&!n.isTimeoutConditionSatisfied&&(t++,u.isInitialized||n.timeoutConditionObservers.push(function(){Pbr(q,w)})):G&&e++}u.isInitialized=!0;
u.isOnAny?y&&(u.isTimeoutConditionSatisfied=!0):e===0&&t===0&&(u.isTimeoutConditionSatisfied=!0);if(u.isTimeoutConditionSatisfied)for(u=_.P(u.timeoutConditionObservers),y=u.next();!y.done;y=u.next())y=y.value,y()}}};
a4.prototype.processSignal=a4.prototype.processSignal;a4.prototype.parkOrScheduleJob=a4.prototype.parkOrScheduleJob;a4.prototype.onAny=a4.prototype.onAny;_.wr("ytsignals.getInstance",_.DU);a4.prototype.onAny=a4.prototype.onAny;a4.prototype.parkOrScheduleJob=a4.prototype.parkOrScheduleJob;a4.prototype.processSignal=a4.prototype.processSignal;var kKP=new Set(["eop","eocs","dl","pcl"]);_.$X=new _.MH("MINIPLAYER_SERVICE");var pF,XA3,FlP;pF=function(q,w,u){var y=_.lD.getInstance();if(!xRj){var e=new nGu;var t=void 0,X=_.Et("ID_TOKEN");X&&e.isAvailable()&&(t=new zQ(e,"yt-queue"+X));xRj=new BtT(t)}e=xRj;t=_.DU();this.JSC$10703_actionRouter=y;this.pageManager=q;this.playlistManager=w;this.JSC$10703_playlistNetworkManager=u;this.storage=e;this.signals=t;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.$u=function(){if(!XA3){var q=_.tG(),w=q.resolve(_.kF(_.KT)),u=q.resolve(_.kF(_.OP)),y=q.resolve(_.kF(_.z5));q=q.resolve(_.oi);XA3=new pF(w,y,new WDo(u,q))}return XA3};
FlP=function(q,w,u){if(u){var y;if(((y=q.responsePlaylistData)==null?void 0:y.playlistId)!==u)return}q.responsePlaylistData&&(u=j44(w,q.responsePlaylistData),q.responsePlaylistData=(0,_.db.unsafeClone)(q.responsePlaylistData),LEj(q.responsePlaylistData,u));u=q.temporaryItems.findIndex(function(e){return e.videoId===w});
u>-1&&q.temporaryItems.splice(u,1);_.vh(q,_.bs(q,q.response?q.response.autoplayRenderer:void 0))};
_.GK$=function(q,w){if(q.responsePlaylistData){var u=lUj(w,q.responsePlaylistData);LEj(q.responsePlaylistData,u);if(q.queueProxy){var y=q.queueProxy;u<0||(y.videoIds.splice(u,1),u<y.currentIndex&&y.JSC$10649_setCurrentIndex(y.currentIndex-1),y.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:w}),fF(y))}}_.vh(q,_.bs(q,q.response?q.response.autoplayRenderer:void 0))};
pF.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.vh(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
pF.prototype.setPlaylistData=function(q,w,u){this.temporaryItems=[];this.listId=q;this.responsePlaylistData=w;_.vh(this,_.bs(this,u))};
var nzG=function(q){return(q==null?0:q.playlistId)?q.playlistId:"PPSV"},HQX=function(q){return q&&q.playlistId?q.playlistId==="PPSV"?!0:AUJ(_.Mt().getState().entities,q.playlistId):!1};
pF.prototype.isPlayingOfflineVideo=function(){return this.response?HQX(this.response):!1};
pF.prototype.closeMiniplayer=function(q){var w=this.queueProxy&&this.queueProxy.size()<=1,u=_.tG().resolve(_.$X);if(!this.queueProxy||w)this.queueProxy&&this.clearQueue(),u.close(!0);else{u.pipController.getWindow()&&window.focus();w=this.responsePlaylistData;var y=this.temporaryItems.length+(w&&w.contents?w.contents.length:0);w=_.ID("QUEUE_CLEARED_UNPLURALIZED")||_.iy("QUEUE_CLEARED",y);w=_.xN(w);u=_.ID("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");y=_.ID("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.iy("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",y);var e=_.ID("MINIPLAYER_CLOSE",void 0,"Close"),t=_.ID("CANCEL",void 0,"Cancel");_.JL(this.JSC$10703_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.jN(u),dialogMessages:[_.jN(y)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.jN(e),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
w]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.jN(t)}}}}}}],q)}};
_.bs=function(q,w){var u={},y=q.response;u.autoplayRenderer=w;if(!q.responsePlaylistData&&!q.temporaryItems.length)return!y||!y.hasRelatedVideoData&&_.T("kevlar_prefetch_data_augments_network_data")||(u.playerData={rvs:y.relatedVideoArgs,endScreenRenderer:y.endScreenRenderer}),u;u.playerData={};if(q.index===void 0)return _.vm(Error("Gf")),u;u.panel=q.responsePlaylistData?(0,_.db.unsafeClone)(q.responsePlaylistData):{titleText:_.jN(_.ID("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
w=u.panel;if(w.contents)for(var e=_.P(q.temporaryItems),t=e.next();!t.done;t=e.next())w.contents.push({playlistPanelVideoRenderer:t.value});q.queueProxy&&y&&y.playingVideo&&y.playingVideoId&&!h5M(y.playingVideoId,u.panel)&&(w=y.playingVideo,e=u.panel,t=q.index,e.contents&&e.contents.splice(t===void 0?0:t,0,{playlistPanelVideoRenderer:w}));y&&y.playingVideoId&&(w=q.index,e=u.panel,w=!e.contents||w>=e.contents.length?void 0:e.contents[w].playlistPanelVideoRenderer,w&&w.videoId===y.playingVideoId||(w=
j44(y.playingVideoId,u.panel),q.index=w!==-1?w:q.index?q.index-1:0));w=Se6(q.index+1,u.panel);e=void 0;q.index>0&&(e=Se6(q.index-1,u.panel));if(e||w)u.autoplayRenderer=Eu7(w,e,u.autoplayRenderer);!w&&(y==null?0:y.relatedVideoArgs)&&(u.playerData.rvs=y.relatedVideoArgs);y=y?y.playlistIndexOffset:0;q.queueProxy?B6l(u.panel,q.index,y,cb4,!0,!0,!0):B6l(u.panel,q.index,y);u.playerData.playlistPanelRenderer=u.panel;return u};
pF.prototype.openToast=function(q){_.tG().resolve(_.$X).openToast(q,_.ID("ADDED_TO_QUEUE",void 0,"Added to queue"))};
pF.prototype.isMiniplayerActive=function(){return _.tG().resolve(_.$X).isMiniplayerActive()};
_.vh=function(q,w){q.playlistManager.setAutoplayRenderer(w.autoplayRenderer||null);q.playlistManager.setPlaylistData(w.panel||null);w.playerData&&q.playlistManager.setPlayerPlaybackControlData(w.playerData)};var q7y="#";var Wl$={},spr={},Nu6={},Qpr={},IWZ={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:(Wl$.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",Wl$),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:(spr.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",spr),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:(Nu6.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",Nu6),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:(Qpr.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",Qpr),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 ZK4=[{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:IWZ},{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:IWZ}}];_.FT=[[["bmQjeHY3MzU1dGF1cXdma2k=","d2s4ank1MmlrZXd2YWx1ZSMy"],"ZGp5eWxsOWY5ZmFBRF9QTEFDRU1FTlRfS0lORF9TVEFSVCN4"]];_.XT=["bG9iYWxDYWxsYmFja3MjbWFpMmo3d3JscWY0Zw==","ZWQjNzl0YTExdHVwcnVjb25BYm5vcm1hbGl0eURldGVjdA==","bkFkU2tpcCNxbmh6a3V5eDJ2dmJv","c3BvbnNlI2hpbHo1a214YmxsbnJhd19wbGF5ZXJfcmU=","ZXR6YWRTbG90cyNwY2s5Zm1tazU="];_.Yu="bG9iYWxDYWxsYmFja3MjbWFpMmo3d3JscWY0Zw== ZWQjNzl0YTExdHVwcnVjb25BYm5vcm1hbGl0eURldGVjdA== bkFkU2tpcCNxbmh6a3V5eDJ2dmJv c3BvbnNlI2hpbHo1a214YmxsbnJhd19wbGF5ZXJfcmU= ZXVlX211bHRpcGxlX3NraXBzX2tzIzUwY2RxYWdnZ2p3c3dlYl9wbGF5bGlzdF9xdQ== Yl9zYV9lZiNmcGdheHFncTRhNGth ZXR6YWRTbG90cyNwY2s5Zm1tazU=".split(" ");var bK4=[["M2VxcHJpbWFyeSN5ZWg4OXY1NGY=",null],[null,["b3dzZS1yZXN1bHRzLXJlbmRlcmVyI3F2NHJqajNvYXdteXRkLXR3by1jb2x1bW4tYnI=","bWt1dzljZm50NXJzdHlsZS1zY29wZSN0"]],["YWQjcGxkZGdoZXZ1OWVtYXN0aGVhZC0=",["I3hmMjF2OWtuajgzdXl0ZC1yaWNoLWdyaWQtcmVuZGVyZXI="]],[null,["IzJudnhteXNucWt5aXl0ZC1yaWNoLWdyaWQtcmVuZGVyZXI=","YnZzYzl1bTQ0N3NzdHlsZS1zY29wZSNs"]],[null,["YWwzejlweHl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjZG9tdXM=","aG52N3d5MWk3NzlzdHlsZS1zY29wZSNh"]],[null,["ZW5kZXJlciNqcGpnZ3EzbXRuZHl0ZC1hZC1zbG90LXI="]]],
Y7M=[["cyN3ODI3amVwc2pqNDVwbGF5ZXItYWQ=",null]];var g6;g6=function(q,w,u){this.eou=q;this.isAsync=w;this.gtV=u};
_.Lko=[new g6("b.f_",!1,0),new g6("j.s_",!1,2),new g6("r.s_",!1,4),new g6("e.h_",!1,6),new g6("i.s_",!0,8),new g6("s.t_",!1,10),new g6("p.h_",!1,12),new g6("s.i_",!1,14),new g6("f.i_",!1,16),new g6("a.b_",!1,18),new g6("a.o_",!1),new g6("g.o_",!1,22),new g6("p.i_",!1,24),new g6("p.m_",!1),new g6("n.k_",!0,20),new g6("i.f_",!1),new g6("a.s_",!0),new g6("m.c_",!1),new g6("n.h_",!1,26),new g6("o.p_",!1),new g6("m.p_",!0,28),new g6("o.a_",!1),new g6("d.p_",!1),new g6("e.i_",!1)].reduce(function(q,w){q[w.eou]=
w;return q},{});var iQT=function(){};
iQT.prototype.flush=function(q,w){q=q===void 0?[]:q;w=w===void 0?!1:w;if(_.T("enable_client_streamz_web")){q=_.P(q);for(var u=q.next();!u.done;u=q.next())u=JxG(u.value),this.rootSpec&&_.e9(u,2,this.rootSpec),u={serializedIncrementBatch:_.wV(u.JSC$7510_serializeBinary())},_.pn("streamzIncremented",u,{sendIsolatedPayload:w})}};
var exc=function(){};
_.O(exc,iQT);var rHc=function(q){var w=new d6x;var u=new U66;u=_.sf(u,1,"botguard");q=_.sf(u,2,q);this.rootSpec=_.km(w,1,Ohx,q)};
_.O(rHc,iQT);var kM,UEX=new Map;var mqJ,t0u,Ndu,FkM,HKz,dq7,Jmc,TdM;mqJ=2;t0u=2;Ndu=2;FkM=2;HKz=2;dq7=2;Jmc=2;TdM=new VRF;var Cb$,dET,OQ6;Cb$=function(){this.ongoingFlowNonces=new Map};
_.WM=function(){dET||(dET=new Cb$);return dET};
_.np=function(q,w,u){return{eventType:{flowEventNamespace:q,flowEventType:w},metadata:u,statusCode:void 0,csn:void 0,can:void 0}};
_.Kkz=function(q,w){var u=_.WM(),y=OQ6(u,w,!0);_.HM(u,q,w,y)};
_.HM=function(q,w,u,y){q={flowNonce:y||OQ6(q,u),flowType:u,flowEventType:w.eventType};w.metadata&&(q.flowMetadata=w.metadata);w.statusCode!==void 0&&(q.flowEventStatus=w.statusCode);w.csn&&(q.csn=w.csn);w.can&&(q.can=w.can);_.pn("flowEvent",q,void 0)};
OQ6=function(q,w,u){u=u===void 0?!1:u;var y=q.ongoingFlowNonces.get(w);if(!y||u)y=ax(16),q.ongoingFlowNonces.set(w,y);return y};_.oz3=new ojX;var wY4={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_JOURNEY_WATCH:"learning_journey_watch"};var Ee=function(q,w,u,y,e,t,X){u=u===void 0?!1:u;y=y===void 0?!1:y;t=t===void 0?_.$u():t;this.hasRun=!1;this.pZy=q;this.fW6=w;this.kwf=u;this.fromHistory=y;this.previousVideoId=e;this.sBS=t;this.tempData=X;this.d8A=new _.fCX};
_.O(Ee,LG);Ee.prototype.validate=function(q){return!(!q.data.playerResponse||q.data.page!=="watch"&&q.data.page!=="learning_journey_watch"&&q.data.page!=="shorts"||this.hasRun)};
Ee.prototype.handle=function(q){var w=this,u=_.C(q.endpoint,_.LN),y=_.C(q.endpoint,_.Tt);if(_.T("kevlar_continue_playback_without_player_response")&&(u==null?0:u.videoId)&&this.previousVideoId&&(u==null?void 0:u.videoId)===this.previousVideoId&&(u==null?0:u.continuePlayback)&&!this.fromHistory)this.pZy.resolve();else{var e={};u?e.watch_endpoint=u:y&&(e.watch_endpoint=y,y.endTimeSeconds&&(e.end=y.endTimeSeconds));q.data.page==="watch"?(q.data.filler||this.kwf||(_.Z_("cfg"),_.lD.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(e,VUj(this,q.endpoint)),_.T("enable_masthead_quartile_ping_fix")&&Object.assign(e,fW3(this)),u=!_.T("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(e,u),q.data.forceExternalPlaylist&&(e.external_list=!0)):q.data.page==="shorts"?_.lD.getInstance().triggerAction("yt-start-loading-shorts"):q.data.page==="learning_journey_watch"&&_.lD.getInstance().triggerAction("yt-start-loading-learning-journey");if(u=this.fW6()){try{u.loadVideoWithPlayerResponse(q.data.playerResponse,
e),u.getPlayerPromise().then(this.pZy.resolve)}catch(t){_.vm(t),this.pZy.resolve()}this.hasRun=!0;u.getPlayerPromise().then(function(t){t.addEventListener("onAbnormalityDetected",function(){var X=q.data.playerResponse,G=t.getVideoData().cpn;Jmc=0;_.TuZ=G;if(G=li4(X))w.d8A.increment("IN_PLAYER"),_.sP(5),_.T("ab_st_vid_ks")?t.pauseVideo(!0):t.stopVideo(),X.playabilityStatus=Object.assign({},X.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:G}}),X.videoDetails=void 0,_.lD.getInstance().triggerOptionalAction("yt-updated-playability-status",
X.playabilityStatus)})})}else _.Y8(Error("Jf"))}};
var VUj=function(q,w){var u=_.C(w,_.LN);if(w&&u&&u.playlistId&&u.videoId&&(q=q.sBS,q.queueProxy?(q=q.queueProxy,u=q.listId===u.playlistId?q.attributionData.get(u.videoId):void 0):u=void 0,u))return{queue_info:u}},fW3=function(q){var w;
if((w=q.tempData)==null?0:w.adpings)return{adpings:q.tempData.adpings}};var R4=function(q,w,u){this.hasRun=!1;this.u0b=q;this.rIZ=w;this.eXT=u};
_.O(R4,LG);R4.prototype.validate=function(q){return!!_.db.getValueByKeys.apply(null,[q.data].concat(_.Cm(KJP)))};
R4.prototype.handle=function(q){var w=this;this.u0b.promise.then(function(){var u=q.data;var y=_.db.getValueByKeys.apply(null,[u].concat(_.Cm(cok))),e=_.db.getValueByKeys.apply(null,[u].concat(_.Cm(LJ3))),t=_.db.getValueByKeys.apply(null,[u].concat(_.Cm(hN$)));var X=(X=_.db.getValueByKeys.apply(null,[u].concat(_.Cm(Srj))))?{videoId:X.videoId,thumbnail:X.thumbnail,title:X.title?_.jN(X.title):void 0,shortBylineText:X.author?_.jN(X.author):void 0}:void 0;var G=void 0;_.T("web_get_playlist_id_from_current_endpoint_ks")||
(G=_.db.getValueByKeys.apply(null,[u].concat(_.Cm(jTj))));var n=_.db.getValueByKeys.apply(null,[u].concat(_.Cm(M8X))),N=_.db.getValueByKeys.apply(null,[u].concat(_.Cm(l$r))),Q=!!n||!!N&&!!N.results&&N.results.length>0,I=0;e&&e.currentIndex&&e.localCurrentIndex&&(I=e.currentIndex-e.localCurrentIndex);e&&e.playlistId&&(G=e.playlistId);u={rawResponse:u,autoplayRenderer:y,hasRelatedVideoData:Q,playingVideo:X,playingVideoId:t,playlistPanelRenderer:e,playlistId:G,playlistIndex:e&&e.currentIndex,relatedVideoArgs:n,
endScreenRenderer:N,playlistIndexOffset:I};a:{y=w.eXT;e=w.rIZ;y.response=u;if(HQX(u))y.downloadPlaylistProxy&&y.downloadPlaylistProxy.getPlaylistId()===nzG(u)||(y.downloadPlaylistProxy=new pvT(nzG(u),y.setPlaylistData.bind(y),y.isPlayingOfflineVideo.bind(y))),y.responsePlaylistData=y.downloadPlaylistProxy.getPlaylistData(),y.listId=nzG(u),y.index=0;else if(u.playlistPanelRenderer&&u.playlistId&&u.autoplayRenderer)u.playlistId.startsWith("TLPQ")?y.queueProxy?y.listId===u.playlistId?(y.index=u.playlistIndex,
y.responsePlaylistData=u.playlistPanelRenderer,y.queueProxy.JSC$10649_setCurrentIndex(y.index)):u.playingVideoId&&y.index!==void 0&&e.clientParams.autoSaveToQueue&&(y.index+=1,y.queueProxy.JSC$10649_setCurrentIndex(y.index),y.queueProxy.addVideos([u.playingVideoId],{},y.index)):(y.queueProxy=new _.mE(y.JSC$10703_playlistNetworkManager,u.playlistId,y.setPlaylistData.bind(y),y.clearQueue.bind(y),_.M$4(u.playlistPanelRenderer),y.storage),y.responsePlaylistData=u.playlistPanelRenderer,y.listId=u.playlistId,
y.index=u.playlistIndex):(y.index=u.playlistIndex,y.listId!==u.playlistId&&y.clearQueue(),y.responsePlaylistData=u.playlistPanelRenderer,y.listId=u.playlistId,y.playlistProxy=new RNG(y.JSC$10703_playlistNetworkManager,u.playlistId,y.setPlaylistData.bind(y),_.M$4(u.playlistPanelRenderer)));else if(!y.queueProxy)y.responsePlaylistData=void 0;else if(u.playingVideoId&&e.clientParams.autoSaveToQueue){if(y.index===void 0){_.vm(Error("Ff"));y.clearQueue();break a}y.queueProxy.videoIds.includes(u.playingVideoId)||
(y.index+=1,y.queueProxy.JSC$10649_setCurrentIndex(y.index),y.queueProxy.addVideos([u.playingVideoId],{},y.index))}_.vh(y,_.bs(y,y.response.autoplayRenderer))}})};var mEX=function(q,w){w=w===void 0?_.$u():w;G5.call(this);this.v2.push(new R4(this.xu,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},w));this.v2.push(new Ee(this.xu,q,!1,!1));_.T("web_response_commands_chunk_processor")&&this.v2.push(new nF)};
_.O(mEX,G5);mEX.prototype.processChunk=function(q){q&&q.data.player===void 0&&this.xu.resolve();G5.prototype.processChunk.call(this,q)};var ch=function(q,w){q=q===void 0?{layer:0}:q;this.hasRun=!1;this.createScreenConfig=q;this.spl=w};
_.O(ch,LG);ch.prototype.validate=function(q){return!(this.hasRun||!q.endpoint)};
ch.prototype.handle=function(q){var w=_.Qz(),u,y,e=(y=_.C((u=q.endpoint)==null?void 0:u.commandMetadata,_.wk))==null?void 0:y.rootVe;this.spl&&e?_.e$(w,e,this.spl,this.createScreenConfig):rVX(w,q.endpoint,this.createScreenConfig);this.hasRun=!0};var S$=function(q,w){this.hasRun=!1;this.l9Z=q;this.previousVideoId=w};
_.O(S$,LG);S$.prototype.validate=function(q){return _.T("kevlar_continue_playback_without_player_response")&&(q=_.C(q.endpoint,_.LN),(q==null?0:q.videoId)&&this.previousVideoId&&(q==null?void 0:q.videoId)===this.previousVideoId&&(q==null?0:q.continuePlayback))?!1:this.l9Z.vvB===0};
S$.prototype.handle=function(q){_.lD.getInstance().triggerAction("yt-stop-old-player",q.data,!0)};var AHj=function(q){q=q===void 0?{layer:0}:q;G5.call(this);this.v2.push(new S$(this));this.v2.push(new ch(q));this.v2.push(new Ff(q))};
_.O(AHj,G5);var JHx=function(){this.hasRun=this.hasRun=!1};
_.O(JHx,LG);JHx.prototype.validate=function(q){return!this.hasRun&&!(!q.data.csn||!q.data.rootVe)};
JHx.prototype.handle=function(q){this.hasRun=!0;_.vf(q.data.csn,q.data.rootVe,3)};var zZF=function(){LG.apply(this,arguments)};
_.O(zZF,LG);zZF.prototype.validate=function(q){return!!q.data.preconnect};
zZF.prototype.handle=function(q){_.D_("bc");q=_.P(q.data.preconnect);for(var w=q.next();!w.done;w=q.next())w=w.value,(new Image).src=w};var aWx=function(q,w,u){u=u===void 0?{layer:0}:u;G5.call(this);this.v2.push(new Ee(this.xu,q));this.v2.push(new ch(u));this.v2.push(new Ff(u))};
_.O(aWx,G5);var DEP=function(q,w,u,y,e){u=u===void 0?{layer:0}:u;y=y===void 0?_.$u():y;G5.call(this);var t=!!w&&!!w.clientParams&&!!w.clientParams.miniplayer;t&&this.v2.push(new JHx);this.v2.push(new R4(this.xu,w,y));this.v2.push(new zZF);var X,G;this.v2.push(new Ee(this.xu,q,t,!((X=w.clientParams)==null||!X.fromHistory),(G=w.clientParams)==null?void 0:G.previousVideoId,y,w.tempData));var n;this.v2.push(new S$(this,(n=w.clientParams)==null?void 0:n.previousVideoId));var N;(N=w.clientParams)!=null&&N.fromHistory||
(u.layer||(u=Object.assign({},u,{layer:t?3:0})),this.v2.push(new ch(u,e)),this.v2.push(new Ff(u)));_.T("web_response_commands_chunk_processor")&&this.v2.push(new nF)};
_.O(DEP,G5);var hb,$E$;hb={};
_.ZQ$=(hb["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},hb["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},hb["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},hb["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},hb["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},hb["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},hb["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},hb);_.j$=new _.gr("yt-edu");_.pA$=function(){this.JSC$10805_eduDisplayedThisLoad_={}};
$E$=function(q){var w=_.pA$.getInstance();var u=_.Fc("kevlar_tooltip_impression_cap");w=u&&parseInt(_.j$.get(q+"-impression")||0,10)>=u||_.j$.get(q+"-dismissed")?!1:(u=_.ZQ$[q])&&!w.JSC$10805_eduDisplayedThisLoad_[u.setKey||q]&&(u.titleText&&_.ID(u.titleText)||u.bodyText&&_.ID(u.bodyText))?!0:!1;if(!w)return null;w=_.ZQ$[q];if(!w)return null;u=w.bodyText?_.ID(w.bodyText):void 0;var y=w.titleText?_.ID(w.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:w.position,popup:{bubbleHintRenderer:{text:y?
_.jN(y):void 0,detailsText:u?_.jN(u):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.jN(_.ID("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:q}}]}}}}}}}},{eduImpressionAction:{key:q}}]};
_.xX(_.pA$);var Bd7=!1;for(var vzP="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),bQT=[],ls=6;ls>=1;ls--)bQT.push({columnCount:ls,query:ls==1?0:ls*2*107-4+32,className:"grid-"+ls+"-columns",width:ls*2*107+"px"});_.gz3=function(q){this.actionRouter_=q=q===void 0?_.lD.getInstance():q;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.YiF(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.YiF=function(q){var w=q.miniGuideVisible_?72:0,u=q.documentWidth_-(q.guidePersistentAndVisible_?240:w);return bQT.find(function(y){return u>y.query})};
_.xX(_.gz3);var Ezc=function(){var q=this;this.JSC$10817_keyboardInUse=!1;document.addEventListener("keydown",function(){q.onKeydown()});
document.addEventListener("mousedown",function(){q.JSC$10817_keyboardInUse=!1})},RZa;
Ezc.prototype.isKeyBoardInUse=function(){return this.JSC$10817_keyboardInUse};
Ezc.prototype.onKeydown=function(){this.JSC$10817_keyboardInUse=!0};var cHF,KF;_.LF=new _.gr("yt-mentions");_.Mk=function(){};
cHF=function(q,w){return KF(w,"drag-to-reorder-edu-displayed")};
KF=function(q,w,u,y,e,t){u=u===void 0?"OPEN_POPUP_POSITION_TOP":u;if(w){if(_.LF.get(w))return;_.LF.set(w,!0,y)}if(e&&t!==void 0){w=Number(_.LF.get(e)||0);if(w>=t)return;_.LF.set(e,w+1)}return[{openPopupAction:{popupType:"HINT",position:u,popup:{bubbleHintRenderer:{detailsText:q,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.xX(_.Mk);var Sia,hZx,jpc;Sia=function(q,w,u,y){this.JSC$10827_taskManager_=q;this.onFulfilled_=typeof w==="function"?w:null;this.onRejected_=typeof u==="function"?u:null;this.JSC$10827_context_=y};
hZx=function(q,w){q.onFulfilled_&&_.iq(q.JSC$10827_taskManager_,function(){q.onFulfilled_.call(q.JSC$10827_context_,w)})};
jpc=function(q,w){q.onRejected_&&_.iq(q.JSC$10827_taskManager_,function(){q.onRejected_.call(q.JSC$10827_context_,w)})};
_.Bh=function(q){this.JSC$10830_taskManager_=q;this.callbacks_=[]};
_.Bh.prototype.then=function(q,w,u){this.callbacks_.push(new Sia(this.JSC$10830_taskManager_,q,w,u));return this};
_.Bh.prototype.onSuccess=function(q){this.callbacks_.forEach(function(w){hZx(w,q)})};
_.Bh.prototype.onFailure=function(q){this.callbacks_.forEach(function(w){jpc(w,q)})};
_.Bh.prototype.cancel=function(){this.callbacks_.length=0};
ZAa(_.Bh);_.yV7=null;_.fT=new _.MH("ACTIVITY_TOKEN");var XYl=/^[a-zA-Z0-9_\-]{11}$/;var FDy=_.NB(function(){var q,w;return(w=(q=window).matchMedia)==null?void 0:w.call(q,"(prefers-reduced-motion: reduce)").matches});var lW$=_.NB(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 q=_.hP("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");q||(q=_.rg("VIDEO"),_.wr("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
q));return!!(q&&q.canPlayType&&q.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var LlT;_.xu=new _.MH("SHORTS_CONTROLLER_TOKEN");LlT=new _.MH("SHORTS_STATE_STORE_TOKEN");var qq=function(q,w){var u=_.Cj.apply(2,arguments);q=q===void 0?0:q;_.fv.call(this,w,u);this.errorType=q;Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(qq,_.fv);var MUT,Klc,xEX,S_4,YX,sLy,yi$,urF,FUF,tjr,kL6;MUT=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(q){return q+"="}).join("|"));
Klc=RegExp(".*\\?.*playnext=1.*");_.wd=function(q,w,u,y){this.watchEndpointMap=q;this.reelWatchEndpointMap=w;this.innerTubeTransportService=u;this.fetchPbj=y};
xEX=function(q,w,u){var y=_.tG().resolve(_.kF(BuF));_.wd.instance=new _.wd(q,w,u,y)};
_.qJT=function(q,w){var u=_.Fc("web_pbj_log_warning_rate",0);u=u>0&&Math.random()<u;var y;if((y=_.C(w.commandMetadata,_.wk))==null||!y.rootVe)return u&&_.Y8(Error("Pf")),!1;var e;y=(e=_.C(w.commandMetadata,_.wk))==null?void 0:e.url;if(!y)return u&&_.Y8(Error("Qf")),!1;if(Klc.test(y))return!0;if(MUT.test(y))return u&&_.Y8(Error("Rf`"+y)),!1;if(_.C(w,_.LN)){if(!(q.watchEndpointMap.watchNext&&q.watchEndpointMap.player||_.T("kevlar_fetch_initial_data_op_watch_client")))return u&&_.Y8(Error("Lf")),!1;
q=_.Fc("web_pbj_log_warning_rate",0);q=q>0&&Math.random()<q;_.C(w,_.LN)?tXH(w)?w=!0:(q&&_.Y8(Error("Mf")),w=!1):(q&&_.Y8(Error("Lf")),w=!1);return w}if(_.C(w,_.Tt))return Pxu(w);if(_.C(w,_.JO))return!0;q=_.RV(q.innerTubeTransportService,w);!q&&u&&_.vm(Error("Sf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(w)});return q};
S_4=function(q,w,u,y,e,t){w={url:w};if(u==null?0:u.itct)w.parentTrackingParams=u.itct;var X=_.Ka(zxj);return _.Jb(q.innerTubeTransportService,w,X).then(function(G){(G=G.endpoint)||(G=_.Wh);(u==null?0:u.itct)&&G&&!G.trackingParams&&(G.trackingParams=u.itct);var n=rC(G);return YX(q,G,u,y,n,e,t)})};
YX=function(q,w,u,y,e,t,X,G){G=G===void 0?{}:G;if(q.fetchPbj&&!_.qJT(q,w)&&!_.T("force_one_platform")){G=q.fetchPbj(w);var n=_.Hw(G.then(function(S){if(!S)throw Error("Tf");X(n)||t(w,S);return S}));
return n}var N,Q,I={rootVe:(N=_.C(w.commandMetadata,_.wk))==null?void 0:N.rootVe,url:(Q=_.C(w.commandMetadata,_.wk))==null?void 0:Q.url,endpoint:w,page:e};if(_.C(w,_.LN)){var U,d={contentPlaybackContext:_.Cp(u,(U=_.C(w.commandMetadata,_.wk))==null?void 0:U.url,y)},V=_.S6();_.T("web_streaming_watch")&&window.TextDecoderStream?(G=wtG(q.innerTubeTransportService,w,d,function(S){!I.response&&S.content&&(I.response=S.content);!I.playerResponse&&S.player&&(I.playerResponse=S.player);t(w,I)}),N=hzM(w),N.length&&
(I.preconnect=N,t(w,I)),urF(G,V,I).catch(function(S){S instanceof qq&&S.errorType===2&&yi$(q,w,d,I,t,X,V)})):yi$(q,w,d,I,t,X,V);
return V.promise}if(_.C(w,_.Tt)){var J;if(((J=_.C(w,_.Tt))==null?void 0:J.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var a=_.S6();_.esF(_.tG().resolve(_.xu),w).then(function(S){kL6(q,u,y,e,t,a,S)});
return a.promise}G=_.Hw();var b;N={contentPlaybackContext:_.Cp(u,(b=_.C(w.commandMetadata,_.wk))==null?void 0:b.url,y)};(b=q.reelWatchEndpointMap.player)&&(b=b().JSC$11807_getRequest(w,N))&&(G=_.Jb(q.innerTubeTransportService,b.innerTubeRequest,b.input,w.clickTrackingParams,b.config));b=_.Hw();(Q=q.reelWatchEndpointMap.reelItemWatch)&&(Q=Q().JSC$11807_getRequest(w))&&(b=_.Jb(q.innerTubeTransportService,Q.innerTubeRequest,Q.input,w.clickTrackingParams,Q.config));Q=_.Hw();(U=q.reelWatchEndpointMap.reelWatchSequence)&&
_.C(w,_.Tt).sequenceParams&&(N=U().JSC$11807_getRequest(w,N))&&(Q=_.Jb(q.innerTubeTransportService,N.innerTubeRequest,N.input,w.clickTrackingParams,N.config));N=_.Hw(I);U=_.S6();tjr(w,N,G,b,Q,t,X,U);return U.promise}var g;if(_.C(w,u57)&&((g=_.C(w.commandMetadata,_.wk))==null?0:g.url))return G=sTy(_.h1(fg().location.href),_.h1(_.C(w.commandMetadata,_.wk).url)).toString(),S_4(q,G,u,y,t,function(){return!1});
if(_.C(w,_.JO))return t(w,I),_.Hw(I);if(_.RV(q.innerTubeTransportService,w)){G=Object.assign({},{tempData:u,disableCache:u.disableCache},G);var l=_.cR(q.innerTubeTransportService,w,G).then(function(S){I.response=S;X(l)||t(w,I);return I});
return l}return _.Hw(I)};
_.Xtr=function(q,w,u,y){if(_.C(w,_.LN)||_.C(w,_.Tt)&&(_.T("mweb_enable_shorts_innertube_player_prefetch")||_.T("kevlar_enable_shorts_prefetch_in_sequence"))||_.C(w,O9F)&&_.T("web_enable_prefetching_videos_on_home")){var e,t={contentPlaybackContext:_.Cp(u,(e=_.C(w.commandMetadata,_.wk))==null?void 0:e.url,y),prefetchPlaybackContext:nEs(u)},X,G,n;if(((X=_.C(w,_.LN))==null?void 0:(G=X.watchEndpointSupportedPrefetchConfig)==null?void 0:(n=G.prefetchHintConfig)==null?void 0:n.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(u=
q.watchEndpointMap.watchNext)if(t=u().JSC$11807_getRequest(w,t))return Promise.resolve(_.Jb(q.innerTubeTransportService,t.innerTubeRequest,t.input,void 0,t.config).then(function(I){return I}))}else if(_.C(w,_.Tt)&&_.T("web_prefetch_riw_for_next_video")){if(u=q.reelWatchEndpointMap.reelItemWatch)if((u=u().JSC$11807_getRequest(w,t))&&_.Jb(q.innerTubeTransportService,u.innerTubeRequest,u.input,void 0,u.config).then(function(I){return I}),u=q.reelWatchEndpointMap.player)if(t=u().JSC$11807_getRequest(w,
t))return Promise.resolve(_.Jb(q.innerTubeTransportService,t.innerTubeRequest,t.input,void 0,t.config).then(function(I){return I}))}else if(u=q.watchEndpointMap.player)if(t=u().JSC$11807_getRequest(w,t))return Promise.resolve(_.Jb(q.innerTubeTransportService,t.innerTubeRequest,t.input,void 0,t.config).then(function(I){return I}))}else if(_.RV(q.innerTubeTransportService,w)){var N={tempData:u},Q=PlG(q.innerTubeTransportService,w);
return Q?new Promise(function(I,U){var d,V;return _.F(function(J){if(J.nextAddress==1)return _.H(J,Q,2);if(J.nextAddress!=4)return d=J.yieldResult,d.JSC$11814_getStoreKey(w,N)?_.H(J,_.cR(q.innerTubeTransportService,w,N),4):(U(new _.fv("Prefetching request builder with no store key.",w)),J.jumpTo(0));V=J.yieldResult;I(V);_.HI(J)})}):Promise.reject(new _.fv("Prefetching unregistered request builder.",w))}return Promise.reject(new _.fv("No request builder available to prefetch endpoint.",w))};
sLy=function(q,w){var u,y,e;if(_.C(w,_.LN)){var t=q.watchEndpointMap.watchNext;t&&(u=t());(q=q.watchEndpointMap.player)&&(y=q())}else if(_.C(w,_.Tt))(t=q.reelWatchEndpointMap.reelItemWatch)&&(u=t()),(t=q.reelWatchEndpointMap.player)&&(y=t()),(q=q.reelWatchEndpointMap.reelWatchSequence)&&(e=q());else{a:{q=MbH(w,q.innerTubeTransportService.endpointMap);if(q!==void 0)if(typeof q.then==="function")_.vm(new _.fv("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",w));else break a;
q=void 0}q&&(u=q)}var X,G,n;return{content:(X=u)==null?void 0:X.JSC$11814_getStoreKey(w),player:(G=y)==null?void 0:G.JSC$11814_getStoreKey(w),reelSequence:(n=e)==null?void 0:n.JSC$11814_getStoreKey(w)}};
yi$=function(q,w,u,y,e,t,X){var G=_.Hw(),n=q.watchEndpointMap.player;n&&(n=n().JSC$11807_getRequest(w,u))&&(G=_.Jb(q.innerTubeTransportService,n.innerTubeRequest,n.input,w.clickTrackingParams,n.config));n=_.Hw();var N=q.watchEndpointMap.watchNext;N&&(u=N().JSC$11807_getRequest(w,u))&&(n=_.Jb(q.innerTubeTransportService,u.innerTubeRequest,u.input,w.clickTrackingParams,u.config));q=_.Hw(y);FUF(w,q,G,n,e,t,X)};
urF=function(q,w,u){return _.F(function(y){if(y.nextAddress==1)return _.H(y,q,2);w.resolve(u);_.HI(y)})};
FUF=function(q,w,u,y,e,t,X){var G,n,N,Q,I;_.F(function(U){switch(U.nextAddress){case 1:return _.H(U,w,2);case 2:G=U.yieldResult;if(t(X.promise))return X.resolve(G),U.return();e(q,G);n=hzM(q);if(!n.length){U.jumpTo(3);break}return _.H(U,w,4);case 4:G.preconnect=n,e(q,G);case 3:return _.tD(U,5),_.H(U,u,7);case 7:N=U.yieldResult;_.jv(U,6);break;case 5:return Q=_.nm(U),X.reject(Q),U.return();case 6:if(N===void 0)return G.reload=!0,e(q,G),X.resolve(G),U.return();if(t(X.promise))return X.resolve(G),U.return();
G.playerResponse=N;e(q,G);_.tD(U,8);return _.H(U,y,10);case 10:I=U.yieldResult;_.jv(U,9);break;case 8:_.nm(U);case 9:if(I===void 0)return G.response={responseContext:{}},X.resolve(G),U.return();if(t(X.promise))return X.resolve(G),U.return();G.response=I;e(q,G);X.resolve(G);_.HI(U)}})};
tjr=function(q,w,u,y,e,t,X,G){var n,N,Q,I,U,d;_.F(function(V){switch(V.nextAddress){case 1:return _.H(V,w,2);case 2:n=V.yieldResult;if(X(G.promise))return G.resolve(n),V.return();t(q,n);N=hzM(q);if(!N.length){V.jumpTo(3);break}return _.H(V,w,4);case 4:n.preconnect=N,t(q,n);case 3:return _.tD(V,5),_.H(V,u,7);case 7:Q=V.yieldResult;_.jv(V,6);break;case 5:return I=_.nm(V),G.reject(I),V.return();case 6:if(Q===void 0)return n.reload=!0,t(q,n),G.resolve(n),V.return();if(X(G.promise))return G.resolve(n),
V.return();n.playerResponse=Q;t(q,n);_.tD(V,8);return _.H(V,y,10);case 10:U=V.yieldResult;_.jv(V,9);break;case 8:_.nm(V);case 9:if(U===void 0)return n.response={responseContext:{}},G.resolve(n),V.return();if(X(G.promise))return G.resolve(n),V.return();n.response=U;t(q,n);_.tD(V,11);return _.H(V,e,13);case 13:d=V.yieldResult;_.jv(V,12);break;case 11:_.nm(V);case 12:if(X(G.promise))return G.resolve(n),V.return();n.reelWatchSequenceResponse=d;t(q,n);G.resolve(n);_.HI(V)}})};
kL6=function(q,w,u,y,e,t,X){var G,n,N,Q,I,U;_.F(function(d){if((G=X)==null||!G.replacementEndpoint)return t.reject(),d.return();n=X.replacementEndpoint;(N=_.C(n,_.Tt))?(X.sequenceContinuation&&(N.sequenceParams=X.sequenceContinuation),Q=_.tG().resolve(_.xu),I=N.sequenceParams,GL$(Q,n)&&delete N.sequenceParams,U=YX(q,n,w,u,y,e,function(){return!1}),U.then(function(V){return _.F(function(J){if(J.nextAddress==1)return nLc(Q,{reelWatchEndpoint:{sequenceParams:I}},V),_.H(J,0,2);
t.resolve(V);_.HI(J)})})):t.reject();
_.HI(d)})};_.Hzc=function(q){if(q.validatedFragments_.length==0)return null;if(!q.mergedPrefetchedData_){for(var w=[],u=_.P(q.validatedFragments_),y=u.next();!y.done;y=u.next()){y=_.P(q.fragmentConfiguration_[y.value].graftedKeys);for(var e=y.next();!e.done;e=y.next())(e=q.prefetchedData_[e.value].trackingParams)&&w.push(e)}q.mergedPrefetchedData_={};Object.assign(q.mergedPrefetchedData_,q.prefetchedData_,{clientSideGrafts:w})}return q.mergedPrefetchedData_};var WUk;_.u1=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
WUk=function(q,w,u){if(_.eFH(w))return q.prefetchCache_.get(_.kDM(w,u))};_.yA=new _.MH("NAVIGATION_TOKEN");var s1x=function(q){var w=this;var u=u===void 0?saz():u;var y=y===void 0?_.tG().resolve(_.yA):y;this.onePickCommand=q;this.JSC$10931_playlistNetworkManager=u;this.navigationManager=y;this.videoPickerBuilder=_.Hou("yt-addtoplaylist");_.x1r(St3(hCP(cPG(this.videoPickerBuilder.setTitle(q.modalTitle).setSize(1E3).addView(L23()).addView(lHa())).addView("youtube"),q.selectButtonLabel)),function(e){w.handleAction(e)})};
s1x.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
s1x.prototype.handleAction=function(q){var w=this;if(q&&this.onePickCommand.listId&&q.action==="picked"&&q.docs){var u=[];q.docs.forEach(function(y){u.push({addedVideoId:y.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$10931_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,u).then(function(){_.T("playlist_add_video_hard_reload_killswitch")?w.navigationManager.reload():NyZ(w.navigationManager)})}};var Q1X=function(){if(this.constructor===Q1X)throw new TypeError("Uf");};
_.k=Q1X.prototype;_.k.dispose=function(){};
_.k.disconnect=function(){};
_.k.reconnect=function(){};
_.k.observe=function(q,w,u){return{element:q,option:u}};
_.k.unobserveByKey=function(){};var NSf=function(q,w){w=w===void 0?0:w;Q1X.call(this);this.viewroot=q;this.defaultPrescanHeight=w;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),q?{root:q,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.O(NSf,Q1X);_.k=NSf.prototype;_.k.dispose=function(){this.disconnect();this.handlers.clear()};
_.k.disconnect=function(q){this.isConnected=!1;this.pauseObservingUntilReconnect=q===void 0?!1:q;this.observer.disconnect();q=_.P(this.prescanObservers.values());for(var w=q.next();!w.done;w=q.next())w.value.disconnect()};
_.k.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var q=_.P(this.handlers),w=q.next();!w.done;w=q.next()){var u=_.P(w.value);w=u.next().value;var y=u.next().value;u=!1;y=_.P(y.keys());for(var e=y.next();!e.done;e=y.next())if((e=e.value)&&e.state==="prescan"){u=!0;break}u&&I8F(this,w).observe(w);this.observer.observe(w)}}};
_.k.handleObserveEvent=function(q){q=_.P(q);for(var w=q.next();!w.done;w=q.next()){w=w.value;var u=this.handlers.get(w.target);if(u){var y=w.isIntersecting;u=_.P(u);for(var e=u.next();!e.done;e=u.next()){var t=_.P(e.value);e=t.next().value;t=t.next().value;e&&(e.state==="visible"&&y||e.state==="hidden"&&!y)&&(t(w.target,e.state),e.calledOnce&&this.unobserveByKey({element:w.target,option:e}))}}}};
_.k.handlePrescanEvent=function(q){q=_.P(q);for(var w=q.next();!w.done;w=q.next()){w=w.value;var u=this.handlers.get(w.target);if(u&&w.isIntersecting){u=_.P(u);for(var y=u.next();!y.done;y=u.next()){var e=_.P(y.value);y=e.next().value;e=e.next().value;y&&y.state==="prescan"&&(e(w.target,y.state),y.calledOnce&&this.unobserveByKey({element:w.target,option:y}))}}}};
_.k.observe=function(q,w,u){var y=(y=this.handlers.get(q))&&y.has(u)?{element:q,option:u}:void 0;if(y)return y;y={element:q,option:u};this.handlers.has(q)||this.handlers.set(q,new Map);var e=this.handlers.get(q);e&&!e.has(u)&&e.set(u,w);this.pauseObservingUntilReconnect||(u.state==="prescan"&&I8F(this,q).observe(q),this.observer.observe(q));return y};
_.k.unobserveByKey=function(q){var w=this.handlers.get(q.element);if(w&&w.has(q.option)){w.delete(q.option);if(q&&q.option.state==="prescan")for(var u=_.P(this.prescanObservers.values()),y=u.next();!y.done;y=u.next())y.value.unobserve(q.element);w.size===0&&(this.handlers.delete(q.element),this.observer.unobserve(q.element))}};
var I8F=function(q,w){var u=q.defaultPrescanHeight;w.hasAttribute("prescan-height")&&(w=Number(w.getAttribute("prescan-height")),isNaN(w)||(u=w));if(q.prescanObservers.has(u))return q.prescanObservers.get(u);w="-0.1px -0.1px "+u+"px -0.1px";w=new IntersectionObserver(q.handlePrescanEvent.bind(q),q.viewroot?{root:q.viewroot,rootMargin:w}:{rootMargin:w});q.prescanObservers.set(u,w);return w};var izj=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],riG=function(){var q,w=this;this.JSC$10948_actionRouter=q=q===void 0?_.lD.getInstance():q;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return w.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return w.visibilityObservedElementHandlerKeys}}},UwG,ClZ,oL6;
riG.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.T("kevlar_use_vimio_behavior")&&_.Et("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=Qac())};
riG.prototype.dispose=function(){this.visibilityMonitor&&_.NF(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
riG.prototype.handleVisibilityRefreshed=function(){for(var q=_.P(this.targetMap.entries()),w=q.next();!w.done;w=q.next()){var u=_.P(w.value);w=u.next().value;u=u.next().value;_.TyX(this,w,u)}};
_.Ozc=function(q,w,u){ClZ(q,u);var y=_.dw$(q,w);y.element=u;q.targetedElements.set(u,w);_.TyX(q,w,y)};
ClZ=function(q,w){var u=q.targetedElements.get(w);if(u){var y=q.targetMap.get(u);y&&(delete y.element,q.targetMap.set(u,y));q.targetedElements.delete(w);q.visibilityObserver&&q.visibilityObservedElementHandlerKeys&&(u=q.visibilityObservedElementHandlerKeys.get(w))&&(q.visibilityObserver.unobserveByKey(u),q.visibilityObservedElementHandlerKeys.delete(w))}};
_.TyX=function(q,w,u){var y=u.action,e=u.element;e&&y&&(izj.includes(w)||_.Et("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||q.visibilityMonitor&&q.visibilityMonitor.isNodeVisible(e)?oL6(q,w,u):q.visibilityObserver&&(q.visibilityObservedElementHandlerKeys||(q.visibilityObservedElementHandlerKeys=new WeakMap),y=q.visibilityObserver.observe(e,function(){oL6(q,w,u);q.visibilityObservedElementHandlerKeys.delete(e)},{calledOnce:!0,
state:"visible"}),q.visibilityObservedElementHandlerKeys.set(e,y)))};
oL6=function(q,w,u){var y=u.action;(u=u.element)&&y&&(_.JL(q.JSC$10948_actionRouter,[y],u),q.targetMap.delete(w),q.targetedElements.delete(u),q.triggeredTargets.add(w))};
_.dw$=function(q,w){var u=q.targetMap.get(w);u||(u={},q.targetMap.set(w,u));return u};
_.e0=function(){UwG||(UwG=new riG);return UwG};var Vj$=document.createElement("div");Vj$.style.touchAction="pan-down";var I1z=Vj$.style.touchAction==="pan-down";var f86,mwx;f86=function(){this.hammerFn=Y6T();this.JSC$10956_screenManager=_.Qz();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.oV(83615);_.tb(this.JSC$10956_screenManager,this.ve);iof()};
_.kY=function(){mwx||(mwx=new f86);return mwx};
f86.prototype.registerTouchEvents=function(q,w,u){var y=_.Cj.apply(3,arguments),e=this.hammerFn(q,{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}]]});u&&e.set({touchAction:u});this.nodeManagerMapping.set(q,e);var t=
rVs(w);y=_.P(y);for(var X=y.next();!X.done;X=y.next()){X=X.value;if(X.includes("swipe")||X.includes("pinch")||X.includes("pan"))X.includes("swipe")?e.get("swipe").set({enable:!0,direction:t,velocity:.2}):X.includes("pinch")?e.get("pinch").set({enable:!0}):X.includes("pan")&&(e.get("pan").set({enable:!0,direction:t}),e.get("swipe").set({enable:!0,direction:t,velocity:.2}),e.get("swipe").recognizeWith("pan"));Aix(this,q,e,X)}};
var Aix=function(q,w,u,y){u.on(y,function(e){if(y.includes("pinch"))q.lastPinchTime=Date.now();else if(y.includes("swipe")&&Date.now()-q.lastPinchTime<400)return;e.pointerType!=="mouse"&&(e=y==="doubletap"?{coordinates:e.center}:y.includes("pan")?e:y.includes("swipe")?{target:e.target}:{},w.dispatchEvent(new CustomEvent(y,{bubbles:!0,composed:!0,detail:e})))})};
f86.prototype.unregisterTouchEvents=function(q){var w=_.Cj.apply(1,arguments),u=this.nodeManagerMapping.get(q);if(u){w=_.P(w);for(var y=w.next();!y.done;y=w.next())u.off(y.value);this.nodeManagerMapping.delete(q);q.style.touchAction="unset"}};var Jik=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var Ucz=null;var a8T;_.tm=function(q,w,u){var y=u&&u>0?u:0;u=y?Date.now()+y*1E3:0;if((y=y?(0,_.zsZ)():a8T())&&window.JSON){typeof w!=="string"&&(w=JSON.stringify(w,void 0));try{y.set(q,w,u)}catch(e){y.remove(q)}}};
_.Pd=function(q){var w=a8T(),u=(0,_.zsZ)();if(!w&&!u||!window.JSON)return null;try{var y=w.get(q)}catch(e){}if(typeof y!=="string")try{y=u.get(q)}catch(e){}if(typeof y!=="string")return null;try{y=JSON.parse(y,void 0)}catch(e){}return y};
_.XS=function(q){try{var w=a8T(),u=(0,_.zsZ)();w&&w.remove(q);u&&u.remove(q)}catch(y){}};
_.zsZ=_.NB(function(){try{var q=new G6J;var w=q.isAvailable()?q:null}catch(u){return null}return w?new _.Xb(w):null});
a8T=_.NB(function(){var q=new nGu;return q.isAvailable()?new _.Xb(q):null});var Dwr=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},bol=function(){Dwr.instance||(Dwr.instance=new Dwr);
return Dwr.instance},YhM=function(q){var w=q.networkEvents;
q.networkEvents=[];return _.T("enable_network_monitoring")?w:[]};var ZzT;ZzT={};_.ptT=y_("yt-serviceworker-metadata",{objectStores:(ZzT.auth={addedAtVersion:1},ZzT["resource-manifest-assets"]={addedAtVersion:2},ZzT),shared:!0,upgrade:function(q,w){w(1)&&Rz(q,"resource-manifest-assets");w(2)&&Rz(q,"auth")},
version:2});var VXJ=self.location.origin+"/";f1u([/\.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\//]);f1u([/purge_shell=1/]);var $wF=void 0;$wF=$wF===void 0?[]:$wF;for(var vLj=[],bz$=_.P(mu6),YJG=bz$.next();!YJG.done;YJG=bz$.next())vLj.push({key:YJG.value});for(var gLk=_.P($wF),ELa=gLk.next();!ELa.done;ELa=gLk.next())vLj.push(ELa.value);var RsP,VI=_.uc==null?void 0:(RsP=_.uc.performance)==null?void 0:RsP.memory,JVs=!1,gEs={},Dc6={},fp={},m4=navigator;var FS=function(q){this.JSC$11000_expiringStorage=new AG(q)};
FS.prototype.set=function(q,w,u){u=u!==void 0?Date.now()+u:void 0;this.JSC$11000_expiringStorage.set(q,w,u)};
FS.prototype.get=function(q){return this.JSC$11000_expiringStorage.get(q)};
FS.prototype.remove=function(q){this.JSC$11000_expiringStorage.remove(q)};var LD4=_.Sc(["https://www.youtube.com/",""]),MXu=_.Sc(["https://studio.youtube.com/",""]),wvl="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",BS6=null,t8l;var cir=_.Sc(["https://www.youtube.com/iframe_api"]),GV=function(){this.playerResolver_=_.S6();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.sb;this.playbackDurationSeconds_=0},SJk=function(q){var w=function(){return window.YT&&typeof window.YT.ready==="function"};
if(w())return _.Hw(window.YT);var u=_.S6(),y=_.rg("SCRIPT");y.onload=y.onreadystatechange=function(){y.readyState&&y.readyState!="loaded"&&y.readyState!="complete"||(y.onload=_.sb,y.onreadystatechange=_.sb,y.onerror=_.sb,w()?u.resolve(window.YT):u.reject(new _.fv("Failed to load the iframe player library","script.onload",y.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
y.onerror=function(e){y.onload=_.sb;y.onreadystatechange=_.sb;y.onerror=_.sb;u.reject(new _.fv("Failed to load the iframe player library","script.onerror",e&&e.target&&e.target.src))};
_.bZ(y,_.qK(cir));q.insertBefore(y,q.firstChild);return u.promise},hsX=function(q,w,u){var y,e;
_.F(function(t){switch(t.nextAddress){case 1:return q.playbackEndedCallback_=u,_.tD(t,2),_.H(t,SJk(w.parentElement||null),4);case 4:y=t.yieldResult;_.jv(t,3);break;case 2:return e=_.nm(t),e instanceof _.fv&&e.args&&e.args[0]=="script.onerror"?_.Y8(e):_.vm(e),t.return();case 3:y.ready(function(){return new y.Player(w,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:q.onPlayerReady_.bind(q),onStateChange:q.onPlayerStateChange_.bind(q),
onCueRangeExit:q.onCueRangeExit_.bind(q)}})}),_.HI(t)}})};
_.k=GV.prototype;_.k.getPlayerPromise=function(){return this.playerPromise_};
_.k.onPlayerReady_=function(q){this.playerResolver_.resolve(q.target)};
_.k.onPlayerStateChange_=function(q){if(q.data==YT.PlayerState.PLAYING){q=q.target;var w=q.getCurrentTime();q.addCueRange("playback",w,w+this.playbackDurationSeconds_)}};
_.k.onCueRangeExit_=function(q){q.data=="playback"&&(q.target.stopVideo(),this.playbackEndedCallback_())};
_.k.stopVideo=function(){this.playerPromise_.then(function(q){q.stopVideo()})};
var j1c=function(q){q.playerVars_&&q.playerPromise_.then(function(w){typeof w.cueVideoByPlayerVars!="function"?_.Y8(new _.fv("vmh: player API not ready","cueVideoByPlayerVars",typeof w.cueVideoByPlayerVars)):w.cueVideoByPlayerVars(q.playerVars_)})};
GV.prototype.playVideo=function(){var q=this;this.playerVars_&&this.playerPromise_.then(function(w){typeof w.loadVideoByPlayerVars!="function"?(w=new _.fv("vmh: player API not ready","loadVideoByPlayerVars",typeof w.loadVideoByPlayerVars),_.vm(w)):w.loadVideoByPlayerVars(q.playerVars_)})};
var l8$=function(q,w,u,y,e){w&&(u===void 0&&(u=0),y===void 0&&(y=0),q.playbackDurationSeconds_=y/1E3,q.playerVars_={adformat:"17_8",videoId:w,suggestedQuality:"hd720",startSeconds:u/1E3,player_params:e})};
GV.prototype.mute=function(){this.playerPromise_.then(function(q){q.mute()})};
GV.prototype.unMute=function(){this.playerPromise_.then(function(q){q.unMute()})};var WJu=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var nK;nK=function(){this.tokenJars={};if(this.cookiesEnabled=_.d$()){var q=_.TQ.get("CONSISTENCY",void 0);q&&LUx(this,{encryptedTokenJarContents:q})}};
_.Ntf=function(){nK.instance||(nK.instance=new nK);return nK.instance};
nK.prototype.handleResponse=function(q,w){if(!w)throw Error("Zf");var u,y;w=((u=w.innerTubeRequest.context)==null?void 0:(y=u.request)==null?void 0:y.consistencyTokenJars)||[];var e;(q=(e=q.responseContext)==null?void 0:e.consistencyTokenJar)&&this.replace(w,q)};
nK.prototype.replace=function(q,w){q=_.P(q);for(var u=q.next();!u.done;u=q.next())delete this.tokenJars[u.value.encryptedTokenJarContents];LUx(this,w)};
var LUx=function(q,w){if(w.encryptedTokenJarContents&&(q.tokenJars[w.encryptedTokenJarContents]=w,typeof w.expirationSeconds==="string")){var u=Number(w.expirationSeconds);setTimeout(function(){delete q.tokenJars[w.encryptedTokenJarContents]},u*1E3);
q.cookiesEnabled&&_.Cv("CONSISTENCY",w.encryptedTokenJarContents,u,void 0,!0)}};var Mjk,Hd;Mjk=window.location.hostname.split(".").slice(-2).join(".");_.YM=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var q=_.Et("LOCATION_PLAYABILITY_TOKEN");_.Et("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=KU6(this))&&(q=this.localStorage.get("yt-location-playability-token"));q&&(this.locationPlayabilityToken=q,this.mostRecentPosition=void 0)};
_.YM.getInstance=function(){Hd=_.hP("yt.clientLocationService.instance");Hd||(Hd=new _.YM,_.wr("yt.clientLocationService.instance",Hd));return Hd};
_.YM.prototype.setLocationOnInnerTubeContext=function(q){q.client||(q.client={});if(this.mostRecentPosition)q.client.locationInfo||(q.client.locationInfo={}),q.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),q.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),q.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),q.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)q.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.YM.prototype.handleResponse=function(q){var w;q=(w=q.responseContext)==null?void 0:w.locationPlayabilityToken;q!==void 0&&(this.locationPlayabilityToken=q,this.mostRecentPosition=void 0,_.Et("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=KU6(this))&&this.localStorage.set("yt-location-playability-token",q,15552E3):_.Cv("YT_CL",JSON.stringify({loctok:q}),15552E3,Mjk,!0))};
var KU6=function(q){return q.localStorage===void 0?new _.gr("yt-client-location"):q.localStorage};
_.YM.prototype.clearLocationPlayabilityToken=function(q){q==="TVHTML5"?(this.localStorage=KU6(this))&&this.localStorage.remove("yt-location-playability-token"):_.ypy("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.YM.prototype.getCurrentPositionFromGeolocation=function(){var q=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var w=!1,u=1E4;_.Et("INNERTUBE_CLIENT_NAME")==="MWEB"&&(w=!0,u=15E3);return new Promise(function(y,e){navigator.geolocation.getCurrentPosition(function(t){q.mostRecentPosition=t;y(t)},function(t){e(t)},{enableHighAccuracy:w,
maximumAge:0,timeout:u})})};
_.YM.prototype.createUnpluggedLocationInfo=function(q){var w={};q=q.coords;if(q==null?0:q.latitude)w.latitudeE7=Math.floor(q.latitude*1E7);if(q==null?0:q.longitude)w.longitudeE7=Math.floor(q.longitude*1E7);if(q==null?0:q.accuracy)w.locationRadiusMeters=Math.round(q.accuracy);return w};
_.YM.prototype.createLocationInfo=function(q){var w={};q=q.coords;if(q==null?0:q.latitude)w.latitudeE7=Math.floor(q.latitude*1E7);if(q==null?0:q.longitude)w.longitudeE7=Math.floor(q.longitude*1E7);return w};var Byc=function(q,w){var u=g1();q||(q="unknown");w||(w="unknown");q="MAIN_APP_WEB_PAGE_TYPE_"+q.toUpperCase();q in ChZ||(q="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");w="MAIN_APP_WEB_REQUEST_TYPE_"+w.toUpperCase();w in dFF||(w="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Hr(u,{mainAppWeb:{pageType:q,requestType:w,isShellLoad:_.RX("IS_SHELL_LOAD",!1)}})},xwT={start:function(){_.Hr(A5c(),{mainAppWeb:_.gC()})},
success:function(){_.Wr(A5c(),"SUCCESS")},
failure:function(){_.Wr(A5c(),"FAILURE")},
cancelled:function(){_.Wr(A5c(),"CANCELLED")}};var qp6,wFk,UR4;qp6=_.Sc(["/sw.js"]);wFk=_.Sc(["/sw.js?0"]);_.uMk=_.qK(qp6);UR4=_.qK(wFk);var yRZ=function(){var q=Error.apply(this,arguments);this.message=q.message;"stack"in q&&(this.stack=q.stack)};
_.O(yRZ,Error);_.cM.prototype.load=function(q){this.megabloxUrl_=_.Et("YPC_MB_URL");_.EM(this.megabloxUrl_,(0,_.fY)(function(){q&&q()},this))};
_.Ffo=function(q,w,u,y,e,t,X,G,n,N,Q){_.C7f(n);q.load((0,_.fY)(function(){try{var I=t?t:_.Et("HL"),U=_.Et("SESSION_INDEX");_.Xzl("client",function(){YqF("59",{helpCenterPath:"/youtube",locale:I,window:window}).JSC$7875_loadChatSupport({authuser:String(U)})})}catch(d){throw EP(10,Q,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),e&&e(d),_.vm(d),d;
}enc(this,w,u,y,e,t,X,G,n,N,Q)},q))};
_.cM.prototype.openFixFlowDialog=function(q,w,u,y){this.load((0,_.fY)(function(){try{kEc(this,_.hP("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(q).withIntegratorCallback(w).load(u,y)}catch(e){throw _.vm(e),e;}},this))};
var kEc=function(q,w,u,y){var e=w.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.T("enable_window_constrained_buy_flow_dialog")&&(e=e.usingPopupStyle(_.hP("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));y&&(e=e.usingCloseCallback(y));w.bootstrap.fromPaymentsUrl(q.megabloxUrl_);q=w.bootstrap.asMashupMode(e);u=u?u:_.Et("HL");q.usingGaiaIndex(_.Et("SESSION_INDEX")).usingLocale(u).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.T("enable_google_payments_buyflow_material2_style_web")?
q.usingStyle(":m2;pc=#444;ac=#065fd4"):q.usingStyle(":md;pc=#444;ac=#065fd4");return q},enc=function(q,w,u,y,e,t,X,G,n,N,Q){try{var I=_.hP("payments.business.integration");
if(!I)throw new yRZ("payments.business.integration is undefined");var U=I.standaloneContextAuthId.forUserId(),d=kEc(q,I,t,G);X&&d.usingServerAnalyticsEventHandler(X);var V=d.inStandaloneContext(U).buyFlow(function(J){if(J&&(!J.integratorData||J.integratorData===""||J.error))if(J.error!=null)if(String(J.error)==="-1")_.dRM(n);else{var a=String(J.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";EP(10,Q,a,J.debugCode);
_.Ri(a,n,J.debugCode);a=new _.fv("PAYMENT_ERROR_MESSAGE::"+J.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+J.internalErrorDetails);_.vm(a)}else EP(10,Q,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.Ri("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",n,"EMPTY_INTEGRATOR_DATA"),_.vm(Error("bg"));u&&u(J)}).withEncryptedParameters(w);
N&&V.withClientParameters(uGy(_.stc(N)));V.load(function(){EP(24,Q);_.pq("ttc",void 0,"commerce_transaction");Kvc("commerce_transaction");y&&y()},function(J){if(J==null?0:J.debugCode)var a=J==null?void 0:J.debugCode;
else if(!J||(J==null?0:J.debugCode))a="EMPTY_LOAD_FAILURE_ERROR",_.vm(Error(a));else{a="EMPTY_LOAD_FAILURE_DEBUG_CODE";var b=new _.fv("LOAD_FAILURE:"+J.message," DEBUG_CODE:"+a);_.vm(b)}EP(10,Q,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",a);_.Ri("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",n,a);_.vm(J);e&&e(J)})}catch(J){throw J instanceof yRZ&&(EP(10,Q,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),e&&e(J)),_.vm(J),J;
}};var tm3;tm3=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.tk6=function(q,w){w=w===void 0?!1:w;q=tm3.test(q)?_.FE(q):null;!w&&window.payments||!q?(q=_.S6(),w=q.promise,q.resolve()):w=_.Vr(q,{attributes:{"data-payments-main":"",id:"payment-lib"}});return w};var Pe3;Pe3=_.Sc(["//www.googletagmanager.com/gtm.js?id=",""]);_.Wd=function(q,w){_.wE(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:w}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Et("GL")}),w=_.rg("SCRIPT"),w.async=!0,_.bZ(w,_.qK(Pe3,q)),w.id="gtm",q=document.getElementsByTagName("script"),q.length==0?document.head.appendChild(w):(q=q[0],q.parentNode.insertBefore(w,q)))};
_.s7=function(q){if(q=JSON.parse(q))window.dataLayer=window.dataLayer||[],window.dataLayer.push(q)};var XF$,FY6;XF$=_.Sc(["https://clients2.google.com/gr/gr_sync.js"]);_.eeo=function(){};
_.eeo.prototype.init=function(){if(FY6()){var q=_.S6();q.resolve();return q.promise}return _.Vr(_.qK(XF$)).then(function(){if(!FY6())throw Error("cg");},function(){throw Error("dg");
})};
_.kzz=function(){if(!FY6())return"";var q=window.google.gr;q.init({async:{schedule:"sync"},merchantId:"youtube"});q.start();q=q.finish();return q==null?"":q};
FY6=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.Y=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.O(_.Y,PolymerFakeBaseClassWithoutHtml);_.Na=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.O(_.Na,PolymerFakeBaseClassWithoutHtml);var OUl=window.ShadyDOM;var kKc,yHj,PbH,XAf,GK7,nzy,Nq,uf;kKc=_.T("enable_shadydom_free_scoped_query_methods");yHj=_.T("enable_shadydom_free_scoped_node_methods");PbH=_.T("enable_shadydom_free_scoped_readonly_properties_batch_one");XAf=_.T("enable_shadydom_free_parent_node");GK7=_.T("enable_shadydom_free_children");nzy=_.T("enable_shadydom_free_last_child");Nq=window.ShadyDOM;_.tM=Nq&&Nq.noPatch&&Nq.wrap?Nq.wrap:Nq?function(q){return Nq.patch(q)}:function(q){return q};
uf=function(q){if(q instanceof ShadowRoot)this.host=(0,_.tM)(q.host),this.root=q;else if(q.$$){this.host=(0,_.tM)(q);var w;this.root=(w=q.root)!=null?w:this.host}else if(q.polymerController){this.host=(0,_.tM)(q);var u;this.root=(u=this.host.shadowRoot)!=null?u:this.host}else this.root=this.host=(0,_.tM)(q)};
eZ7();tUl();HQs();Wl7();Flc();var GET={querySelector:function(q,w){w=V8u(w,lp(q));q=_.Lp(q);return BM(q).prototype.querySelector.call(q,w)},
querySelectorAll:function(q,w){w=V8u(w,lp(q));q=_.Lp(q);return BM(q).prototype.querySelectorAll.call(q,w)}},nVx={appendChild:function(q,w){var u=lp(q),y=_.jQ(w);
return _.wAM(_.Lp(q),u?_.qa(w,u,y):w)},
cloneNode:function(q,w){var u=_.jQ(q);q=_.Lp(q);w=BM(q).prototype.cloneNode.call(q,w);return u?wN(w,u):w},
contains:function(q,w){var u=lp(q),y=_.jQ(w);return u!==y?!1:u8y(q,w)},
insertBefore:function(q,w,u){var y=lp(q),e=_.jQ(w);q=_.Lp(q);w=y?_.qa(w,y,e):w;return BM(q).prototype.insertBefore.call(q,w,u)},
removeChild:function(q,w){var u=lp(q);q=_.Lp(q);w=u?wN(w,u):w;return BM(q).prototype.removeChild.call(q,w)},
replaceChild:function(q,w,u){var y=lp(q),e=_.jQ(w);w=y?_.qa(w,y,e):e?wN(w,e):w;u=y?wN(u,y):u;q=_.Lp(q);return BM(q).prototype.replaceChild.call(q,w,u)},
getRootNode:function(q,w){w=w===void 0?{composed:!0}:w;var u;if(((u=w)!=null?u:{}).composed)q=vpM(q);else{w=q;for(q=mRj(q);q;)w=q,q=Jo6(q);q=w}return q}},Nuo=PbH?{firstChild:LJf,
nextSibling:hN7,previousSibling:l$H,firstElementChild:M8s,lastElementChild:BtM,nextElementSibling:Sru,previousElementSibling:jTu,childNodes:xRu}:{};XAf&&(Nuo.parentNode=co4);GK7&&(Nuo.children=qic);nzy&&(Nuo.lastChild=KJc);kKc&&spH(GET);yHj&&spH(nVx);QpH();var IW6=function(q){this.node=q instanceof ShadowRoot?q.host:q};
iQJ();rHz();var Cb7=new WeakMap;var OQo=Symbol("wd");var AHu=new Set(["tap","track","down","up"]),JHj=_.T("pbcm_fi_query_decorators");var QA=function(){return _.Na.apply(this,arguments)||this};
_.O(QA,_.Na);_.k=QA.prototype;_.k.getState=function(){return this.store.getState()};
_.k.dispatch=function(q){this.store.dispatch(q)};
_.k.beforeRegister=function(){if(this&&typeof this==="object"){var q;var w=!!this.useSignals||!((q=this.polymerController)==null||!q.useSignals)}else w=!1;if(!w&&this.properties)for(w=_.P(Object.keys(this.properties)),q=w.next();!q.done;q=w.next()){var u=q.value;q=this.properties[u];if(q.selector){if(q.computed)throw Error("jg");u=["reduxPropertiesRecomputeTrigger",'"'+u+'"'].concat(_.Cm(q.selectorArgs||[])).join(",");q.computed="recomputeReduxSelector("+u+")"}}};
_.k.attached=function(){var q=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){q.reduxPropertiesRecomputeTrigger++}));
_.T("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.k.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.k.recomputeReduxSelector=function(q,w){var u=_.Cj.apply(2,arguments),y=this.properties[w].selector;if(!y)throw Error("hg`"+w);return y.apply(null,[this.store.getState()].concat(_.Cm(u)))};
_.k.select=function(q){var w=_.Cj.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return q.apply(null,[this.store.getState()].concat(_.Cm(w)))};
_.x$.Object.defineProperties(QA.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("ig");}}});
QA.prototype.recomputeReduxSelector=QA.prototype.recomputeReduxSelector;_.c([_.v(),_.h("design:type",Number)],QA.prototype,"reduxPropertiesRecomputeTrigger",void 0);QA=_.c([_.Q6()],QA);var IN=[],ZQ7={},AM=function(){return w1.apply(this,arguments)||this};
_.O(AM,w1);AM.prototype._addPropertyEffect=function(q,w,u){if(w==="__observeEffects"&&u){var y,e=(y=u.info.method)!=null?y:u.info.methodName;if(e){var t=this[e];this[e]=function(){IN.push(e);try{t==null||t.apply(this,arguments)}finally{IN.pop()}}}}_.iM._addPropertyEffect.apply(this,[q,
w,u])};
AM.prototype._setPendingProperty=function(q,w,u){if(IN.length){var y=IN[IN.length-1],e;(e=ZQ7[this.is])!=null&&e.has(y)||(pA7(this.is,y),_.pn("polymerPropertyChangedInObserver",{componentName:this.is,observerName:y}))}return _.iM._setPendingProperty.apply(this,[q,w,u])};
AM=_.c([s5H()],AM);var $E7=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),bQM,U6={};_.T("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=U6);var dN=function(){return _.Na.apply(this,arguments)||this};
_.O(dN,_.Na);dN.prototype._setUnmanagedPropertyToNode=function(q,w,u){q.loggingStatus&&(q.loggingStatus.isDeclarativeExternal=!0);if(u!==q[w]||typeof u==="object")q[w]=u;q.is&&q.polymerController&&q.polymerController!==q&&Tm(q.is,w,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");q.loggingStatus&&(q.loggingStatus.isDeclarativeExternal=!1)};
dN=_.c([_.Q6()],dN);vzc()&&(gA.prototype._setUnmanagedPropertyToNode=(new dN)._setUnmanagedPropertyToNode);_.xEs={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(q){},set polymerController(q){}}]};var mP=function(){var q=w1.apply(this,arguments)||this;q.json=function(){};
return q};
_.O(mP,w1);mP.prototype.equals=function(q,w){return q===w};
mP.prototype.isEmpty=function(q){return!q||_.uP(q)&&q.length===0};
mP=_.c([s5H()],mP);var H0c=function(q){q=GkM(q);pH.call(this,q)};
_.O(H0c,pH);H0c.prototype.addProvider=function(q){q=q.key?q:GkM([q])[0];var w=this.keyIdToIndex.get(q.key.id);if(w){if(cHM(q,this.providers[w]))throw Error("kg`"+q.key.displayName);}else pH.prototype.addProvider.call(this,q)};
var WYa=new H0c([]);var sEk=!1;var MUM={};sEk||(LlJ(),sEk=!0);
MUM.InjectBehavior={initializeInjection:function(){var q=this.provide;try{if((q=q!=null?q:[])&&q.length>0)for(var w=GkM(q),u=_.P(w),y=u.next();!y.done;y=u.next())WYa.addProvider(y.value);var e=new Set;Sil(this.behaviors||[],e);w={};for(var t=_.P(e),X=t.next();!X.done;X=t.next()){var G=X.value;G.inject&&Object.assign(w,G.inject)}this.inject&&Object.assign(w,this.inject);for(var n=_.P(Object.keys(w)),N=n.next();!N.done;N=n.next()){var Q=N.value,I=w[Q];try{this[Q]=WYa.resolve(I)}catch(U){throw U;}}}catch(U){throw Error(U.message);
}}};var BuM;var qJJ=/\bclass\b/.test(function(){}.toString()),yi7=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var NT$=function(q){this.wasDefined=!0;Array.isArray(q)||q instanceof Array?(this.JSC$11159_getImpl=q[0],this.JSC$11159_setImpl=q[1]):this.JSC$11159_getImpl=q};
_.k=NT$.prototype;_.k.getWithPath=function(q){return tjH(this.JSC$11159_getImpl(),q)};
_.k.setWithPath=function(q,w){var u=this;if(q.length)throw Error("lg");if(!this.JSC$11159_setImpl)throw Error("mg");Vy(function(){u.JSC$11159_setImpl(w)})};
_.k.notifyPath=function(){throw Error("ng");};
_.k.notifySplices=function(){throw Error("og");};
_.k.getChangeRecordSignal=function(q,w){var u=this;if(q.length)throw Error("pg");return function(){var y=u.getWithPath(q);return{path:w!=null?w:"",base:y,value:y}}};
_.k.getSplicesSignal=function(){throw Error("qg");};
_.k.getPathMutationSignal=function(){throw Error("rg");};
_.k.pop=function(){throw Error("sg");};
_.k.push=function(){throw Error("tg");};
_.k.splice=function(){throw Error("ug");};
_.k.unshift=function(){throw Error("vg");};var i1=function(q){var w=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(q)||q instanceof Array?(this.JSC$11164_getImpl=q[0],this.JSC$11164_setImpl=q[1]):this.JSC$11164_getImpl=q;this.wasDefined=!1;Qy(function(){w.wasDefined=w.JSC$11164_getImpl()!==void 0})};
i1.prototype.getWithPath=function(q){return tjH(this.JSC$11164_getImpl(),q)};
i1.prototype.setWithPath=function(q,w){var u=this;if(q[q.length-1]!=="*"&&q[q.length-1]!=="splices"){if(q.length===0){if(!this.JSC$11164_setImpl)throw Error("wg");this.wasDefined||(this.wasDefined=w!==void 0);Vy(function(){u.JSC$11164_setImpl(w)})}else{for(var y=Qy(function(){return u.getWithPath([])}),e=0;e<q.length-1;e++){if(!y)return;
y=y[q[e]]}e=q[q.length-1];y&&(y[e]=w);this.wasDefined||(this.wasDefined=q.length>1||w!==void 0)}QEX(this,q,{pathComponents:q,value:w})}};
i1.prototype.notifyPath=function(q,w){q.length===0?w&&this.setWithPath(q,w.value):QEX(this,q,{pathComponents:q,value:w==null?void 0:w.value,fallbackWhenUndefined:w==null?void 0:w.value})};
var QEX=function(q,w,u,y){if(q.setMutationSignal){var e=++q.mutationIndex,t=[q.observedPath],X=q.observedPath,G;w.length===0&&(G=X);for(var n=0;n<w.length;n++){var N=X.subPaths[w[n]];if(!N)break;t.push(N);X=N;n===w.length-1&&(G=N)}for(w=!1;t.length;)X=t.shift(),X.data={index:e,mutation:u,spliceMutationIndex:y},w||(w=X===G),w&&t.push.apply(t,_.Cm(Object.values(X.subPaths)));Vy(function(){q.setMutationSignal(e)})}};
i1.prototype.notifySplices=function(q,w){var u=this,y=Qy(function(){return u.getWithPath(q)}),e=[].concat(_.Cm(q),["splices"]);
QEX(this,e,{pathComponents:e,value:{indexSplices:w}});if(y==null?0:y.length)w=this.mutationIndex,e=[].concat(_.Cm(q),["length"]),QEX(this,e,{pathComponents:e,value:y.length},w)};
var ImT=function(q,w,u,y,e,t){q.notifySplices(u,[{index:y,addedCount:e,removed:t,object:w,type:"splice"}])},i0G=function(q,w){q=q.observedPath;
for(var u=0;u<w.length;u++){var y=w[u],e=q.subPaths[y];e||(e={pathComponents:w.slice(0,u+1),subPaths:{}},q.subPaths[y]=e);q=e}},UPk=function(q,w,u){i0G(q,w);
if(!q.getMutationSignal){var y=_.P(_.r4(q.mutationIndex,void 0,"HavCgf"));q.getMutationSignal=y.next().value;q.setMutationSignal=y.next().value}var e=q.getMutationSignal;return _.oR(function(){e();return u(rRc(q,w))},void 0,"BYaPo")};
i1.prototype.getChangeRecordSignal=function(q,w){var u=this,y=this.mutationIndex,e;return UPk(this,q,function(t){if(t&&t.index>y){var X=t.mutation;y=t.index;e=void 0}t=Qy(function(){return u.getWithPath(q)});
if(X){var G=X.pathComponents[X.pathComponents.length-1],n=[].concat(_.Cm(X.pathComponents));if(G==="splices"||G==="length")return{base:t,path:(w?[w].concat(_.Cm(n)):n).join("."),value:X.value};var N=q.length>n.length?q:n,Q;return{base:t!=null?t:X.fallbackWhenUndefined,path:(w?[w].concat(_.Cm(N)):N).join("."),value:(Q=Qy(function(){return u.getWithPath(N)}))!=null?Q:X.fallbackWhenUndefined}}e||(e={base:t,
path:(w?[w].concat(_.Cm(q)):q).join("."),value:t});return e})};
i1.prototype.getSplicesSignal=function(q){var w=this.mutationIndex,u;return UPk(this,q,function(y){if(y&&y.index>w&&y.spliceMutationIndex!==w){var e=y.mutation;w=y.index;u=void 0}return e&&e.pathComponents[e.pathComponents.length-1]==="splices"?u=y=e.value:u})};
i1.prototype.getPathMutationSignal=function(q){var w=this;i0G(this,q);if(!this.getMutationSignal){var u=_.P(_.r4(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=u.next().value;this.setMutationSignal=u.next().value}var y=this.getMutationSignal,e=this.mutationIndex,t;return _.oR(function(){y();var X=rRc(w,q);if(X&&X.index>e&&X.mutation&&Ply(X.mutation.pathComponents,q)){var G=X.mutation;e=X.index}if(!t||e!==t.index){var n,N;X=(N=Qy(function(){return w.getWithPath(q)}))!=null?N:(n=G)==null?
void 0:n.fallbackWhenUndefined;
t={index:e,value:X}}return t},void 0,"Aumsyf")};
var rRc=function(q,w){q=q.observedPath;w=_.P(w);for(var u=w.next();!u.done;u=w.next())q=q.subPaths[u.value];return q.data};
i1.prototype.pop=function(q){var w=this,u=Qy(function(){return w.getWithPath(q)});
if(!(u instanceof Array))throw Error("xg");var y=u.length>0,e=u.pop();y&&ImT(this,u,q,u.length,0,[e]);return e};
i1.prototype.push=function(q){var w=_.Cj.apply(1,arguments),u=this,y=Qy(function(){return u.getWithPath(q)});
if(!(y instanceof Array))throw Error("yg");var e=y.length,t=y.push.apply(y,_.Cm(w));w.length&&ImT(this,y,q,e,w.length,[]);return t};
i1.prototype.splice=function(q,w,u){var y=_.Cj.apply(3,arguments),e=this,t=Qy(function(){return e.getWithPath(q)});
if(!(t instanceof Array))throw Error("zg");w<0?w=t.length-Math.floor(-w):w&&(w=Math.floor(w));var X=t.splice.apply(t,[w,u].concat(_.Cm(y)));(y.length||X.length)&&ImT(this,t,q,w,y.length,X);return X};
i1.prototype.unshift=function(q){var w=_.Cj.apply(1,arguments),u=this,y=Qy(function(){return u.getWithPath(q)});
if(!(y instanceof Array))throw Error("Ag");var e=y.unshift.apply(y,_.Cm(w));w.length&&ImT(this,y,q,0,w.length,[]);return e};var TTx=!0,Cer=!1,Rnz=!1,dPP=!1,rd=!1,O0c=0;dPP=!1;O0c=0;TTx=!0;rd=Cer=Rnz=!1;var U7=function(q,w,u){this.model=q;this.unknownSignalResolver=w;this.options=u;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];w=_.P(Q1s());q=w.next().value;w=w.next().value;this.owner=q;this.disposeImpl=w};
U7.prototype.dispose=function(){if(!this.isDisposed){for(var q=_.P(this.childSignalProxies),w=q.next();!w.done;w=q.next())w.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var oVT=function(q,w){q=e7(q.owner);try{w()}finally{e7(q)}};
U7.prototype.effect=function(q){oVT(this,function(){_.v1(q)})};
var Vm$=function(q,w){q.options!=null||(q.options={});var u;(u=q.options).immutableProps!=null||(u.immutableProps=new Set);q.options.immutableProps.add(w)},ELl=function(q,w){w=""+w;
fmP(q,w);var u;if((u=q.model.__signalCache)==null?0:u.has(w))u=q.model.__signalCache.get(w),Array.isArray(u)&&Vm$(q,w);var y,e,t;return(t=(y=q.options)==null?void 0:(e=y.immutableProps)==null?void 0:e.has(w))!=null?t:!1},mPT=function(q,w){var u;
q.unknownSignalResolver&&(u=q.unknownSignalResolver(w));var y,e;((y=q.options)==null?0:(e=y.immutableProps)==null?0:e.has(w))?u!=null||(u=new NT$(_.r4(q.model[w],void 0,"Xu3svb"))):u!=null||(u=new i1(_.r4(q.model[w],void 0,"NgC9n")));var t=q.model.hostElement;Object.defineProperty(q.model,w,{get:function(){gzf(t,w);return u.getWithPath([])},
set:function(X){CL(t,w);q.setWithPath([w],X)},
configurable:!0});return u},fmP=function(q,w){var u,y,e;
((u=q.model.__signalCache)==null||!u.has(w))&&((y=q.options)==null?0:(e=y.externalSignalProps)==null?0:e.has(w))&&q.model[w]},DM=function(q,w){w=""+w;
var u=q.signalCache[w];if(u!==void 0)return u;u=!1;fmP(q,w);var y;if((y=q.model.__signalCache)==null?0:y.has(w))if(u=q.model.__signalCache.get(w),Array.isArray(u))u=!0,Vm$(q,w);else return q.signalCache[w]=q.model.__signalCache.get(w).signal,q.signalCache[w];var e,t;y=(t=(e=q.options)==null?void 0:e.reactivityMode)!=null?t:0;var X,G;if(!((X=q.options)==null?0:(G=X.reactiveProps)==null?0:G.has(w))&&!u&&y===1)throw Error("Bg`"+w);e=u?AR3(q,w):mPT(q,w);return q.signalCache[w]=e},AR3=function(q,w){var u=
Object.getOwnPropertyDescriptor(q.model.constructor.prototype,w),y=function(){return q.model[w]};
return new NT$(u&&u.get&&!u.set?y:[y,function(e){q.model[w]=e}])};
U7.prototype.getWithPath=function(q){var w=_.P(q);q=w.next().value;w=B2(w);gzf(this.model.hostElement,""+q);return DM(this,q).getWithPath(w)};
U7.prototype.setWithPath=function(q,w){if(q.length){CL(this.model.hostElement,q.join("."));var u=_.P(q);q=u.next().value;u=B2(u);DM(this,q).setWithPath(u,w)}};
U7.prototype.getPathMutationSignal=function(q){var w=_.P(q);q=w.next().value;w=B2(w);return DM(this,q).getPathMutationSignal(w)};
U7.prototype.notifyPath=function(q,w){var u=_.P(q);q=u.next().value;u=B2(u);DM(this,q).notifyPath(u,w)};
var JRZ=function(q,w){if(w.type==="literal")return function(){return{rootWasDefined:!0,value:w.value}};
var u=zm(w.path),y=_.P(u),e=y.next().value;y=B2(y);var t,X;if(w.type==="path"&&(u.length===1||((t=q.options)==null?0:(X=t.immutableProps)==null?0:X.has(e))))return function(){var I=q.getWithPath(u.slice(0,1)),U=tjH(I,u.slice(1));I=I!==void 0;rd&&(I=DM(q,u[0]).wasDefined);return{rootWasDefined:I,value:U}};
var G=DM(q,e);if(w.type==="path"){var n=G.getPathMutationSignal(y);return function(){var I=rd?G.wasDefined:bO(q.owner,function(){return G.getWithPath([])})!==void 0;
var U,d=(U=n())==null?void 0:U.value;return{rootWasDefined:I,value:d}}}if(w.type==="splices"){var N=G.getSplicesSignal(y);
return function(){var I=N();return{rootWasDefined:rd?G.wasDefined:I!==void 0,value:I}}}var Q=G.getChangeRecordSignal(y,""+e);
return function(){var I=Q();return{rootWasDefined:rd?G.wasDefined:I!==void 0,value:I}}},WU4=function(q,w,u){var y=u.map(function(G){return JRZ(q,G)}),e=u.length===0,t=[],X=u.length!==1||u[0].type!=="path"?!1:!0;
q.effect(function(){for(var G=y.length,n=[],N=!!t.length,Q=0;Q<G;Q++){var I=y[Q](),U=I.rootWasDefined;I=I.value;e||(e=U);n[Q]=I;X&&(n[Q+G]=N?t[Q]:n[Q],t[Q]=I)}e&&bO(q.owner,function(){return void w.apply(null,_.Cm(n))})})},XtH=function(q,w,u,y,e){var t=DM(q,w);
e!==void 0&&t.setWithPath([],e);WU4(q,function(){var X=_.Cj.apply(0,arguments);CL(q.model.hostElement,w,!0);t.setWithPath([],u.apply(null,_.Cm(X)))},y)};
U7.prototype.arrayPush=function(q){var w=_.Cj.apply(1,arguments),u=_.P(q),y=u.next().value;u=B2(u);y=DM(this,y);return y.push.apply(y,[u].concat(_.Cm(w)))};
U7.prototype.arraySplice=function(q,w,u){var y=_.Cj.apply(3,arguments),e=_.P(q),t=e.next().value;e=B2(e);t=DM(this,t);return t.splice.apply(t,[e,w,u].concat(_.Cm(y)))};
U7.prototype.arrayUnshift=function(q){var w=_.Cj.apply(1,arguments),u=_.P(q),y=u.next().value;u=B2(u);y=DM(this,y);return y.unshift.apply(y,[u].concat(_.Cm(w)))};
U7.prototype.notifySplices=function(q,w){var u=_.P(q);q=u.next().value;u=B2(u);DM(this,q).notifySplices(u,w)};var Cl6=/([^\s]+?)\(([\s\S]*)\)/,riy=/\.([^.]+)$/,Ozz=/\\,/g,I8M=/&comma;/g,izu=/\\(.)/g,dw7=[],Uwy={"*":"wildcard",splices:"splices"};var ZzM=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"),Ji4=/[A-Z]/,zn$=["class","hidden","id","on-dom-change"],$wM=new Set([].concat(_.Cm(zn$),
["if","notify-dom-change","restamp"])),vLu=new Set([].concat(_.Cm(zn$),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),bz7=new Set(["restamp"]);var $O4=new Set(["className","id"]);var ciH=Symbol(),KUo=window;var kEz=window;var H0z=0,XF7=0,ZM=[],nVj=0,Pef=!1,GEJ=document.createTextNode("");(new window.MutationObserver(FYo)).observe(GEJ,{characterData:!0});var $d=new Map,pL=0,amx=function(q){this.mappedHandleId=q},sE4=function(q,w,u,y){this.mappedHandleId=q;
var e=this;this.mappedHandleId=q;this.callback=w;this.waitTime=u;this.schedulerPriority=y;this.handleId=_.pi.addJob(function(){e.callback();$d.delete(e.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.O(sE4,amx);sE4.prototype.cancel=function(){_.pi.cancelJob(this.handleId);$d.delete(this.mappedHandleId)};
var NT7=function(q,w){this.mappedHandleId=q;var u=this;this.mappedHandleId=q;this.callback=w;this.handleId=WYl(function(){u.callback();$d.delete(u.mappedHandleId)})};
_.O(NT7,amx);NT7.prototype.cancel=function(){var q=this.handleId-XF7;q<0||ZM.length<=q||(ZM[q]=null);$d.delete(this.mappedHandleId)};var rRz=function(){};
rRz.prototype.cancel=function(){this.jobHandle!==void 0&&(QEs(this.jobHandle),this.jobHandle=void 0)};
rRz.prototype.run=function(q,w,u){var y=this;this.cancel();this.callback=q;this.jobHandle=_.vj(function(){q();y.callback=void 0},w,u)};
rRz.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var ImM=new WeakMap;var DPZ=hL(function(q){for(var w=q,u=0;u<3;u++)w=Object.getPrototypeOf(w);delete w.prototype.connectedCallback;var y=function(){return q.apply(this,arguments)||this};
_.O(y,q);y.prototype._attachDom=function(e){if(!e)return null;var t=(0,_.tM)(this.hostElement);t.attachShadow({mode:"open",shadyUpgradeFragment:e});t.shadowRoot.appendChild(e);return t.shadowRoot};
y.prototype._takeAttributes=function(){for(var e=this.hostElement.attributes,t=0;t<e.length;t++){var X=e[t],G=void 0,n=void 0;(n=(G=this).__attributeReaction)==null||n.call(G,X.name,null,X.value)}};
y.prototype._readyClients=function(){q.prototype._readyClients.call(this);this.root=this};
y.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);q.prototype.connectedCallback.call(this)};
_.x$.Object.defineProperties(y,{template:{configurable:!0,enumerable:!0,get:function(){return y.prototype._template}}});
return y}),Z0X=hL(function(q){var w=function(){return q.apply(this,arguments)||this};
_.O(w,q);w.prototype.created=function(){if(this.__notifyEffects)for(var u=_.P(Object.values(this.__notifyEffects)),y=u.next();!y.done;y=u.next()){y=_.P(y.value);for(var e=y.next();!e.done;e=y.next())e.value.fn=dPc}if(this.__reflectEffects)for(u=_.P(Object.values(this.__reflectEffects)),y=u.next();!y.done;y=u.next())for(y=_.P(y.value),e=y.next();!e.done;e=y.next())e.value.fn=O0z};
w.prototype._addEventListenerToNode=function(u,y,e){u=Yd(u);DO(u,y,e)||q.prototype._addEventListenerToNode.call(this,u,y,e)};
w.prototype._removeEventListenerFromNode=function(u,y,e){u=Yd(u);ZO(u,y,e)||q.prototype._removeEventListenerFromNode.call(this,u,y,e)};
w.prototype._propertiesChanged=function(u,y,e){if(this.__dataToNotify&&this.__notifyEffects)for(var t=_.P(Object.keys(this.__dataToNotify)),X=t.next();!X.done;X=t.next()){X=X.value;var G=CeH(X);this.__notifyEffects[G]||delete this.__dataToNotify[X]}else this.__dataToNotify=null;q.prototype._propertiesChanged.call(this,u,y,e)};
w.prototype.fire=function(u,y,e){y=y===void 0?{}:y;var t;return _.t7(Yd((t=e==null?void 0:e.node)!=null?t:this),u,y,e)};
w.prototype._ensureAttribute=function(u,y){var e=Yd(this);e.hasAttribute(u)||a9(e,y,u)};
w.prototype.isLightDescendant=function(u){var y=Yd(this);return Yd(y)!==u&&_.A(y).contains(u)&&_.A(y).getRootNode()===_.A(u).getRootNode()};
return w});
_.iG.ready=function(){var q;((q=this.hostElement)!=null?q:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var w;((w=this.hostElement)!=null?w:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.mF._subscribeIronResize=function(q){var w;((w=q.hostElement)!=null?w:q).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.mF._unsubscribeIronResize=function(q){var w;((w=q.hostElement)!=null?w:q).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var fmc=[Array,Boolean,Date,Number,Object,String],E6=function(q,w,u,y){this.polySiInfo=q;this.polySiParams=w;this.polySiContext=u;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;y||this instanceof HTMLElement&&(y=this);if(!y)throw Error("Ig");this.allowedProps=w.allowedProps;this.hostElement=y;this.is=q.is;this.upgradeDisabled=!!w.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");q=new Set(w.reactiveSchemas.filter(function(e){return e.type!==
"observe"}).map(function(e){return e.propertyKey}));
this.signalProxy=new U7(this,void 0,{reactiveProps:q,reactivityMode:w.reactivityMode});this.__dataHasAccessor={};w=_.P(w.reactiveSchemas);for(q=w.next();!q.done;q=w.next())q=q.value,q.type==="signal"&&(this.__dataHasAccessor[q.propertyKey]=!0);this.upgradeDisabled||pFc(this)};
E6.prototype.getExtraMethodsToForward=function(){return[]};
var pFc=function(q){q.polySiContext.didRegister||(q.registered(),q.polySiContext.didRegister=!0);q.polySiContext.finalizedTemplate||(q.polySiContext.finalizedTemplate={},q.polySiParams.templateGetter&&(q.polySiContext.finalizedTemplate.processedTemplate=tmf(q.polySiParams.templateGetter,q.polySiParams.is)));$Px(q);var w=q.hostElement;w.loggingStatus!=null||(w.loggingStatus={});w.loggingStatus.isInitializing=!0;Qy(function(){return void q.created()});
w.loggingStatus.isInitializing=!1;q.isPolySiElementConnected&&vVT(q)},vVT=function(q){q.didCallReady||(Qy(function(){return void q.ready()}),q.didCallReady=!0);
q.isAttached=!0;q.attached()};
_.k=E6.prototype;_.k.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||vVT(this)};
_.k.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.k.attributeChangedCallback=function(q,w,u){if(this.upgradeDisabled)q==="disable-upgrade"&&u===null&&(this.upgradeDisabled=!1,pFc(this));else if(w!==u){var y=_.r1(q),e=this.polySiContext.typesForSignals[y];if(e&&(!this.reflecting||_.T("polysi_attribute_changed_serializing_killswitch"))){switch(e){case Object:try{var t=JSON.parse(u)}catch(G){t=u}break;case Array:try{t=JSON.parse(u)}catch(G){t=null}break;case Date:t=isNaN(u)?String(u):Number(u);t=new Date(t);break;case Boolean:t=u!==null;break;case Number:t=
Number(u);break;default:t=u}this[y]=t}y=_.P(this.polySiParams.behaviors);for(e=y.next();!e.done;e=y.next())t=void 0,(t=e.value.attributeChanged)==null||t.call(this,q,w,u);var X;(X=this.attributeChanged)==null||X.call(this,q,w,u)}};
_.k.attributeChangedCallbackWrapper=function(q,w,u){this.attributeChangedCallback(q,w,u)};
_.k.setPropertiesFromInitialAttributeValues=function(){for(var q=0;q<this.hostElement.attributes.length;q++){var w=this.hostElement.attributes[q];(w.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(w.name))&&this.attributeChangedCallback(w.name,null,w.value)}};
_.k.created=function(){this.provide=this.polySiParams.provide;var q;(q=this.initializeInjection)==null||q.call(this);q=_.P(this.polySiParams.reactiveSchemas);for(var w=q.next();!w.done;w=q.next())w=w.value,w.type==="signal"&&(this.mutablePropNames.add(w.propertyKey),DM(this.signalProxy,w.propertyKey));Vm7(this,this.polySiInfo,this.polySiParams.behaviors);q=_.P(this.polySiParams.reactiveSchemas);for(w=q.next();!w.done;w=q.next())w=w.value,w.type==="signal"&&w.value!==void 0&&(this.signalProxy.model[w.propertyKey]=
typeof w.value==="function"?w.value.call(this):w.value);if(this.polySiParams.signalProperties)for(q=_.P(this.polySiParams.signalProperties),w=q.next();!w.done;w=q.next()){w=w.value;var u=void 0;((u=this.__signalCache)==null?0:u.has(w))||(this.signalProxy.model[w]=void 0)}dPP||b0P(this);oVJ(this);q=_.P(this.polySiParams.behaviors);for(w=q.next();!w.done;w=q.next())u=void 0,(u=w.value.created)==null||u.call(this);var y;(y=this.polySiInfo.created)==null||y.call(this)};
_.k.registered=function(){var q=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var w=Object.getPrototypeOf(this);w.addReactiveSchema=function(G){q.polySiParams.reactiveSchemas.push(G)};
for(var u=_.P(this.polySiParams.behaviors),y=u.next();!y.done;y=u.next()){var e=void 0;(e=y.value.beforeRegister)==null||e.call(w)}var t;(t=this.polySiInfo.beforeRegister)==null||t.call(w);w.addReactiveSchema=ARf;u=_.P(this.polySiParams.behaviors);for(y=u.next();!y.done;y=u.next())e=void 0,(e=y.value.registered)==null||e.call(w);var X;(X=this.polySiInfo.registered)==null||X.call(w)};
_.k.ready=function(){var q;(q=this.beforeReady)==null||q.call(this);dPP&&b0P(this);var w;if(q=(w=this.polySiContext.finalizedTemplate)==null?void 0:w.processedTemplate){q=enz(q.template,q.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:q.hasInsertionPoint,thisCtx:this});w=q.nodesById;q=q.root;var u=this.hostElement;var y=y===void 0?!1:y;u=(0,_.tM)(u);if(!u.attachShadow)throw Error("Cd");if(!u.shadowRoot||y)u.attachShadow({mode:"open",shadyUpgradeFragment:q}),u.shadowRoot.appendChild(q);
this.root=u.shadowRoot;this.$=w}YpX(this);y=_.P(this.polySiParams.behaviors);for(w=y.next();!w.done;w=y.next())q=void 0,(q=w.value.ready)==null||q.call(this);var e;(e=this.polySiInfo.ready)==null||e.call(this)};
_.k.attached=function(){for(var q=_.P(this.polySiParams.behaviors),w=q.next();!w.done;w=q.next()){var u=void 0;(u=w.value.attached)==null||u.call(this)}var y;(y=this.polySiInfo.attached)==null||y.call(this)};
_.k.detached=function(){for(var q=_.P(this.polySiParams.behaviors),w=q.next();!w.done;w=q.next()){var u=void 0;(u=w.value.detached)==null||u.call(this)}var y;(y=this.polySiInfo.detached)==null||y.call(this)};
var $Px=function(q){for(var w=_.P(q.polySiParams.behaviors),u=w.next();!u.done;u=w.next())if(u=u.value,u.listeners)for(var y in u.listeners)yR6(q,q.hostElement,y,u.listeners[y]);if(q.polySiInfo.listeners)for(var e in q.polySiInfo.listeners)yR6(q,q.hostElement,e,q.polySiInfo.listeners[e])},yR6=function(q,w,u,y,e){q=kLo(q,y,e);
DO(w,u,q)||w.addEventListener(u,q);return q},b0P=function(q){for(var w=_.P(q.polySiParams.reactiveSchemas),u=w.next();!u.done;u=w.next())u=u.value,u.type==="compute"||u.type==="computeWithMethod"?FUM(q.signalProxy,u,q):u.type==="redux"?Hzz(q.signalProxy,u,q.store):u.type==="signal"&&u.readOnly&&nLz(q.signalProxy,u)},YpX=function(q){for(var w=_.P(q.polySiParams.reactiveSchemas),u=w.next(),y={};!u.done;y={schema$jscomp$12:void 0},u=w.next())y.schema$jscomp$12=u.value,y.schema$jscomp$12.type==="notify"?
s1j(q.signalProxy,y.schema$jscomp$12,q.hostElement):y.schema$jscomp$12.type==="observe"?Ny6(q.signalProxy,y.schema$jscomp$12,q):y.schema$jscomp$12.type==="reflect"&&q.signalProxy.effect(function(t){return function(){var X=q.signalProxy.getWithPath([t.schema$jscomp$12.propertyKey]);
q.reflecting=!0;Vj7(q.hostElement,t.schema$jscomp$12.propertyKey,X,!0);q.reflecting=!1}}(y));
if(q.reflectedAttributes)for(w=_.P(Object.entries(q.reflectedAttributes)),y=w.next(),u={};!y.done;u={key$jscomp$873:void 0,value$jscomp$8768:void 0},y=w.next()){var e=_.P(y.value);y=e.next().value;e=e.next().value;u.key$jscomp$873=y;u.value$jscomp$8768=e;q.signalProxy.effect(function(t){return function(){q.reflecting=!0;Vj7(q.hostElement,t.key$jscomp$873,(0,t.value$jscomp$8768)(),!0);q.reflecting=!1}}(u))}};
_.k=E6.prototype;_.k._setPendingProperty=function(q,w){this.set(q,w);return!1};
_.k._enableProperties=function(){};
_.k._setPendingPropertyOrPath=function(q,w){this.notifyPath(q,w);return!1};
_.k._addPropertyEffect=function(){};
_.k._stampTemplate=function(){throw Error("Jg");};
_.k.fire=function(q,w,u){w=w===void 0?{}:w;u=u===void 0?{}:u;var y,e,t={bubbles:(y=u.bubbles)!=null?y:!0,cancelable:!!u.cancelable,composed:(e=u.composed)!=null?e:!0},X;return _.t7(JR6((X=u.node)!=null?X:this.hostElement),q,w,t)};
_.k.get=function(q,w){var u=zm(q);return w?tjH(w,u):q==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(u)};
_.k.linkPaths=function(){};
_.k.listen=function(q,w,u){q=JR6(q);this.boundListeners!=null||(this.boundListeners=new WeakMap);var y=this.boundListeners.get(q);y||(y={},this.boundListeners.set(q,y));var e=w+u;y[e]||(y[e]=yR6(this,q,w,u))};
_.k.notifyPath=function(q,w){this.signalProxy.notifyPath(zm(q),arguments.length===2?{value:w}:void 0)};
_.k.canNotifyPath=function(q){var w,u;return this.mutablePropNames.has(q)&&!((w=this.signalProxy.options)==null?0:(u=w.immutableProps)==null?0:u.has(q))};
_.k.notifySplices=function(q,w){this.signalProxy.notifySplices(zm(q),w)};
_.k.pop=function(q){var w=this.signalProxy;q=zm(q);var u=_.P(q);q=u.next().value;u=B2(u);return DM(w,q).pop(u)};
_.k.push=function(q){var w=_.Cj.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[zm(q)].concat(_.Cm(w)))};
_.k.set=function(q,w,u){if(u)throw Error("Kg");q==="hidden"?this.hostElement.hidden=!!w:this.signalProxy.setWithPath(zm(q),w)};
_.k.setProperties=function(q){q=_.P(Object.entries(q));for(var w=q.next();!w.done;w=q.next()){var u=_.P(w.value);w=u.next().value;u=u.next().value;this[w]=u}};
_.k.splice=function(q,w,u){var y=_.Cj.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[zm(q),w,u].concat(_.Cm(y)))};
_.k.unlinkPaths=function(){};
_.k.unlisten=function(q,w,u){q=JR6(q);if(this.boundListeners){var y=this.boundListeners.get(q);if(y){u=w+u;var e=y[u];e&&(ZO(q,w,e)||q.removeEventListener(w,e),delete y[u])}}};
_.k.unshift=function(q){var w=_.Cj.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[zm(q)].concat(_.Cm(w)))};
_.x$.Object.defineProperties(E6.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 EVy=[Array,Boolean,Date,Number,Object,String];var SpM=!1;var TV=function(){var q=HTMLElement.apply(this,arguments)||this;q.restamp=!1;q.notifyDomChange=!1;q.JSC$11272_didCallConnected=!1;q.JSC$11272_renderDebouncer=null;q.disableTemplateUpdateSignalImpl=R9()?void 0:_.r4(!1,void 0,"zLXz1e");var w;q.getDisableTemplateUpdate=(w=q.disableTemplateUpdateSignalImpl)==null?void 0:w[0];var u;q.setDisableTemplateUpdate=(u=q.disableTemplateUpdateSignalImpl)==null?void 0:u[1];return q};
_.O(TV,HTMLElement);var gVa=function(q){q.conditionSignalImpl!=null||(q.conditionSignalImpl=new i1(_.r4(!1,void 0,"wcuOQ")));return q.conditionSignalImpl};
_.k=TV.prototype;_.k.showHideChildren=function(q){EVG(this,q,this.if)};
_.k.attributeChangedCallback=function(q,w,u){if(this.JSC$11272_didCallConnected)throw Error("Og`"+q);q==="notify-dom-change"?this.notifyDomChange=u!==null:q==="restamp"&&(this.restamp=u!==null)};
_.k.debounceRender=function(){this.JSC$11272_renderDebouncer=_.y5(this.JSC$11272_renderDebouncer,$$,this.JSC$11272_renderImpl.bind(this));_.eM(this.JSC$11272_renderDebouncer)};
_.k.disconnectedCallback=function(){var q=(0,_.tM)(this).parentNode;(!q||q.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in q&&!q.host)&&Rnc(this)};
_.k.connectedCallback=function(){var q=this;this.JSC$11272_didCallConnected=!0;TTx?hnH():this.style.display="none";this.parentSignalProxy.effect(function(){gVa(q).getWithPath([]);q.debounceRender()})};
_.k.render=function(){_.XJ()};
_.k.JSC$11272_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var q=this.if;if(q){a:{var w=(0,_.tM)(this).parentNode;if(this.hasInstance()){var u=this.instance.children;if((u==null?0:u.length)&&(0,_.tM)(this).previousSibling!==u[u.length-1])for(var y=0;y<u.length;y++)(0,_.tM)(w).insertBefore(u[y],this)}else{if(!w){w=!1;break a}cRG(this,w)}w=!0}if(!w)return}else this.restamp&&Rnc(this);EVG(this,!1,q);q&&SpF(this);Cer&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.k.hasInstance=function(){return!!this.instance};
var cRG=function(q,w){var u=q.parentSignalProxy;if(R9()){var y=_.P(_.r4(!0,void 0,"wXzgnc"));var e=y.next().value;y=y.next().value;u=q.parentSignalProxy}else{var t;var X=new U7((t=hnr(q))!=null?t:{},function(n){var N=DM(q.parentSignalProxy,n).getChangeRecordSignal([]);n=_.r4(void 0,void 0,"mryEkc");var Q=new i1(n);X.effect(function(){if(q.getDisableTemplateUpdate&&!q.getDisableTemplateUpdate()){var I=N();Q.notifyPath(zm(I.path),{value:I.value})}});
return Q});
q.parentSignalProxy.childSignalProxies.push(X);var G=u=X}u=enz(q.templateInfo,q.templateInfo.nodeInfoList,u,{eventListenerHost:q.eventListenerHost,hasInsertionPoint:q.templateInfo.hasInsertionPoint,thisCtx:q.eventListenerHost,enabledSignal:R9()?e:void 0,getModel:function(){return hnr(q)}}).root;
q.instance={root:u,children:[],hidden:!1,signalProxy:G,getTemplateUpdatesEnabled:e,setTemplateUpdatesEnabled:y};G=_.P(u.childNodes);for(e=G.next();!e.done;e=G.next())q.instance.children.push(e.value);(0,_.tM)(w).insertBefore(q.instance.root,q)},hnr=function(q){if((q=q.parentSignalProxy.model)&&!q.hostElement){var w={},u;
for(u in q)q.hasOwnProperty(u)&&(w[u]=q[u]);return w}},Rnc=function(q){if(q.instance){var w=q.instance.children;
if(w.length){var u=(0,_.tM)(w[0]).parentNode;if(u){u=(0,_.tM)(u);for(var y=0;y<w.length;y++)u.removeChild(w[y])}}R9()?q.instance.setTemplateUpdatesEnabled(!1):q.instance.signalProxy.dispose();q.instance=void 0}},EVG=function(q,w,u){w=w||!u;
q.instance&&q.instance.hidden!==w&&(q.instance.hidden=w,cRy(w,q.instance.children))},SpF=function(q){if(R9()){var w=q.instance;
w&&bO(q.parentSignalProxy.owner,function(){return!w.getTemplateUpdatesEnabled()})&&w.setTemplateUpdatesEnabled(!0)}else q.setDisableTemplateUpdate(!1)};
_.x$.Object.defineProperties(TV.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var q=this;return bO(this.parentSignalProxy.owner,function(){return gVa(q).getWithPath([])})},
set:function(q){q||(R9()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));gVa(this).setWithPath([],!!q)}}});
_.x$.Object.defineProperties(TV,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",TV);var jE$=[],CK=function(){var q=HTMLElement.apply(this,arguments)||this;q.as="item";q.indexAs="index";q.itemsIndexAs="itemsIndex";q.targetFramerate=20;q.notifyDomChange=!1;q.isDetached=!1;q.JSC$11279_renderDebouncer=null;q.instances=[];q.chunkingId=null;q.chunkCount=null;q.shouldMeasureChunk=!1;q.shouldContinueChunking=!1;q.renderStartTime=null;q.JSC$11279_didCallConnected=!1;return q};
_.O(CK,HTMLElement);var lmr=function(q){q.itemSignalImpl!=null||(q.itemSignalImpl=new i1(_.r4(jE$,void 0,"YBrqgf")));return q.itemSignalImpl},LYT=function(q,w){Array.isArray(w)||(w=jE$);
lmr(q).setWithPath([],w)};
_.k=CK.prototype;_.k.showHideChildren=function(q){for(var w=_.P(this.instances),u=w.next();!u.done;u=w.next())cRy(q,u.value.children)};
_.k.notifyPath=function(q,w){q=zm(q);q[0]==="items"&&(q.length===1?LYT(this,w):lmr(this).setWithPath(q.slice(1),w))};
_.k.canNotifyPath=function(q){return q==="items"};
_.k.attributeChangedCallback=function(q,w,u){if(this.JSC$11279_didCallConnected)throw Error("Pg`"+q);q==="as"?this.as=u:q==="index-as"?this.indexAs=u:q==="items-index-as"?this.itemsIndexAs=u:q==="initial-count"?this.initialCount=Number(u):q==="notify-dom-change"?this.notifyDomChange=u!==null:q==="target-framerate"&&(this.targetFramerate=Number(u))};
_.k.disconnectedCallback=function(){this.isDetached=!0;for(var q=0;q<this.instances.length;q++)Mm6(this,q);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.k.connectedCallback=function(){var q=this,w=lmr(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var e=w(),t=zm(e.path);if(t[0]===void 0||t[0]==="splices"||t[0]==="length")q.debounceRender();else{var X=t[0];if(X=q.instances[typeof X==="string"?Math.floor(Number(X)):X])t=[q.as].concat(_.Cm(t.slice(1))),X.signalProxy.notifyPath(t,e)}});
this.JSC$11279_didCallConnected=!0;TTx?hnH():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var u=(0,_.tM)((0,_.tM)(this).parentNode),y=0;y<this.instances.length;y++)u.insertBefore(this.instances[y].root,this);this.chunkingId&&this.render()}};
_.k.debounceRender=function(){this.JSC$11279_renderDebouncer=_.y5(this.JSC$11279_renderDebouncer,$$,this.JSC$11279_renderImpl.bind(this));_.eM(this.JSC$11279_renderDebouncer)};
_.k.render=function(){this.debounceRender();_.XJ()};
_.k.JSC$11279_renderImpl=function(){var q=this,w=this.items,u=KYP(this,w.length);BT$(this,w,u);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){q.chunkingId=null;if(q.shouldMeasureChunk){var y=performance.now()-q.renderStartTime;q.chunkCount=Math.round(Math.ceil(1E3/q.targetFramerate)/y*q.chunkCount)||1}q.shouldContinueChunking&&q.debounceRender()}));
Cer&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var KYP=function(q,w){var u=w,y=q.instances.length;if(q.initialCount){if(q.chunkCount){var e=Math.min(Math.max(w-y,0),q.chunkCount);u=Math.min(y+e,w)}else u=Math.min(w,q.initialCount),e=Math.max(u-y,0),q.chunkCount=e||1;q.shouldMeasureChunk=e===q.chunkCount;q.shouldContinueChunking=u<w;q.renderStartTime=performance.now()}return u},BT$=function(q,w,u){for(var y=0;y<u;y++){var e=q.instances[y],t=w[y];
e?(e.signalProxy.setWithPath([q.as],t),e.signalProxy.setWithPath([q.indexAs],y)):xPT(q,t,y)}for(w=q.instances.length-1;w>=y;w--)u=q,e=w,Mm6(u,e),_.P(u.instances.splice(e,1)).next().value.signalProxy.dispose()},Mm6=function(q,w){q=q.instances[w];
w=(0,_.tM)(q.root);for(var u=0;u<q.children.length;u++)w.appendChild(q.children[u])},xPT=function(q,w,u){var y={};
w=Object.assign({},qWr(q),(y[q.as]=w,y[q.indexAs]=u,y[q.itemsIndexAs]=u,y));var e=new U7(w,function(X){if(X!==q.as&&X!==q.indexAs){if(X===q.itemsIndexAs)return DM(e,q.indexAs);var G=DM(q.parentSignalProxy,X).getChangeRecordSignal([]);X=_.r4(void 0,void 0,"Mu2Bwb");var n=new i1(X);e.effect(function(){var N=G();n.notifyPath(zm(N.path),{value:N.value})});
return n}});
q.parentSignalProxy.childSignalProxies.push(e);y=enz(q.templateInfo,q.templateInfo.nodeInfoList,e,{eventListenerHost:q.eventListenerHost,getModel:function(){var X={};return Object.assign({},qWr(q),(X[q.as]=e.model[q.as],X[q.indexAs]=e.model[q.indexAs],X[q.itemsIndexAs]=e.model[q.indexAs],X))},
hasInsertionPoint:q.templateInfo.hasInsertionPoint,thisCtx:q.eventListenerHost,methodInvocationRequirement:O0c,enabledSignal:q.stampingEnabled}).root;w={root:y,children:[],signalProxy:e};y=_.P(y.childNodes);for(var t=y.next();!t.done;t=y.next())w.children.push(t.value);y=(y=q.instances[u+1])?y.children[0]:q;(0,_.tM)((0,_.tM)(q).parentNode).insertBefore(w.root,y);q.instances[u]=w},qWr=function(q){if((q=q.parentSignalProxy.model)&&!q.hostElement){var w={},u;
for(u in q)q.hasOwnProperty(u)&&(w[u]=q[u]);return w}};
CK.prototype.itemForElement=function(q){var w=this,u=this.instances.find(function(y){return y.children.includes(q)});
if(u)return bO(this.parentSignalProxy.owner,function(){return u.signalProxy.getWithPath([w.as])})};
CK.prototype.indexForElement=function(q){var w=this.instances.findIndex(function(u){return u.children.includes(q)});
return w>=0?w:void 0};
_.x$.Object.defineProperties(CK.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var q=this;return bO(this.parentSignalProxy.owner,function(){return lmr(q).getWithPath([])})},
set:function(q){LYT(this,q)}},
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}}});
_.x$.Object.defineProperties(CK,{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",CK);var waj,uka;_.dd=new _.MH("STATE_STORE_TOKEN");waj=new _.MH("SELECT_TOKEN");uka=new _.MH("DISPATCH_TOKEN");var BT7={getSelectFn:function(){var q;return(q=_.tG().resolve(_.kF(waj)))!=null?q:jE7},
getDispatchFn:function(){var q;return(q=_.tG().resolve(_.kF(uka)))!=null?q:_.cj().dispatch.bind(_.cj())},
getAppStore:function(){return _.tG().resolve(_.dd)}},lmH,KYc=!1;var wau=void 0;var yW3=function(){};
yW3.prototype.hasAttribute=function(q){if(q==="dir")return!1;if(q==="disable-upgrade"){var w,u;return(u=(w=this.hostElement)==null?void 0:w.hasAttribute("disable-upgrade"))!=null?u:!1}throw Error("Qg`"+q);};
yW3.prototype.attributeChangedCallbackWrapper=function(q,w,u){if(q==="disable-upgrade"&&this.__isUpgradeDisabled&&u===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var y;((y=this.hostElement)!=null?y:this).isConnected&&this.connectedCallback()}else w===u||this.__isReflecting||this.attributeChangedCallback(q,w,u)};
yW3.prototype.getExtraMethodsToForward=function(){for(var q=this,w=[],u=_.P(e7G),y=u.next(),e={};!y.done;e={tagName$jscomp$51:void 0,name$jscomp$533:void 0},y=u.next())e.name$jscomp$533=y.value,y=void 0,e.name$jscomp$533==="_setPendingProperty"?(e.tagName$jscomp$51=this.hostElement.tagName.toLowerCase(),y=function(t){return function(X,G,n){Tm(t.tagName$jscomp$51,X,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return q._setPendingProperty(X,G,n)}}(e)):y=function(t){return function(){return q[t.name$jscomp$533].apply(q,
_.Cm(_.Cj.apply(0,arguments)))}}(e),w.push([e.name$jscomp$533,
y]);return w};
for(var Xau=Z0X(DPZ((0,_.I8)(yW3))),Hfc=["disabled","disable-upgrade"],kHx=(0,_.I8)(function(){}),tok=new Set(Object.getOwnPropertyNames(kHx.prototype)),Icz=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.Cm(tok))),sPJ=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),e7G=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),P_c=new Set([].concat(_.Cm(sPJ),_.Cm(e7G),_.Cm(tok))),Xaj=_.P(P_c),F3G=Xaj.next();!F3G.done;F3G=Xaj.next())$E7.add(F3G.value);var QPu={created:function(){oVJ(this);this.initializeInjection()}};var Vou=!1,xd=window.ShadyDOM,Zfs=["appendChild","insertBefore","removeChild","replaceChild"],DOM=[Node];xd&&DOM.push(xd.Wrapper);var gc7,Ecf,SWl={};var un=new Set,q2="",h7J="";var wL,yz=new Set;var wHo=new Set("context didCallReady is info params signalProxy".split(" ")),yA6="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),eA4="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var GH$=Qv({entities:y3j}),ncF=new La(GH$);var O7=function(){return _.Na.apply(this,arguments)||this};
_.O(O7,_.Na);_.x$.Object.defineProperties(O7.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return ncF}}});
O7=_.c([_.Q6()],O7);_.oN=[QA.prototype,O7.prototype];_.VA={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var q=this,w={};setTimeout(function(){var u;return _.t7((u=q.hostElement)!=null?u:q,"yt-live-chat-add-tooltip-target",w)},0);
this.handler_=w.handler},
detached:function(){if(this.handler_){var q;this.handler_.removeElementFromSupportingTooltips((q=this.hostElement)!=null?q:this)}this.handler_=null}}};_.Gj=new _.MH("ICON_MANAGER_TOKEN");var HfP=[48,20,18,16,15,13,12],VtM=new Map,USl=new Set,IfH=new Set,rAy=new Set,Qls=new Set,iSz=new Set,CQo=new Promise(function(q){var w=!1,u=!1,y=!1,e=[],t=function(X){if("detail"in X)if(X=X.detail,X.name==="yt-icons")TOs(X),w=!0;else if(X.name==="yt-sys-icons")TOs(X),u=!0;else{var G;((G=X.name)==null?0:G.includes("yt-sys-icons"))&&X.size!==24&&(TOs(X,!0),e.push(X.size),e.length===HfP.length&&(y=!0))}w&&u&&y&&(window.removeEventListener("iron-iconset-added",t),q())};
window.addEventListener("iron-iconset-added",t)}),OSs=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"]]);_.fK={};_.fK.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.lA,computeHref_:function(q,w){w=w===void 0?!1:w;if(!q||q.commandExecutorCommand)return null;var u=$2z(q,w);return w||u!==null?u?_.T("enable_polymer_resin")?_.UY(u).toString():u:null:(_.Y8(new _.fv("computeHref was null",this.is,q)),null)},
computeOptionalHref_:function(q){return this.computeHref_(q,!0)},
computeNofollow_:function(q){return q?fh4(q)?"nofollow":null:null},
computeIcon_:function(q){return q&&q.iconType?_.Fy(q.iconType):""},
resolveCommand:function(q,w,u){w=w===void 0?{}:w;return _.H6(q,this.hostElement,w,u===void 0?!1:u)}};var sPT,mk;_.W3k={};sPT=null;
mk={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_=Qac(this.viewroot));_.vj(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var q=this;this.unobserve_();if(_.T("kevlar_vimio_use_shared_monitor"))zAJ(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 w=[];this.visibilityOptionVisible_&&w.push(this.visibilityObserver.observe(this.hostElement,function(){return q.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&w.push(this.visibilityObserver.observe(this.hostElement,function(){return q.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&w.push(this.visibilityObserver.observe(this.hostElement,function(){return q.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=w}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){ffH(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 q=_.ar(this.parentNode,function(u){var y,e=(y=u.polymerController)!=null?y:u;return!!e.getVisibilityObserverForChild&&e.getVisibilityObserverForChild()},!0);
if(q){var w;this.localVisibilityObserver_=((w=q.polymerController)!=null?w:q).getVisibilityObserverForChild()}else sPT||(sPT=Qac()),this.localVisibilityObserver_=sPT;return this.localVisibilityObserver_},visibilityCallback:function(q){q?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.T("kevlar_use_vimio_behavior")||(mk={});mk&&!_.T("kevlar_use_vimio_behavior")&&(delete mk.attached,delete mk.detached);_.W3k.YtVisibilityObserverBehavior=[mk];var NH6={};NH6.YtVisualElementBehavior=[_.W3k.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.T("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.T("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var q=this.getScreenLayer&&this.getScreenLayer(),w=this.getVisibilityLogger();w&&w.reportShown(this,void 0,q)}},
onHidden:function(){if(_.T("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.T("kevlar_vimio_use_shared_monitor")){var q=this.getScreenLayer&&this.getScreenLayer(),w=this.getVisibilityLogger();w&&w.reportHidden(this,void 0,q)}},
getVisibilityLogger:function(){return _.T("kevlar_use_vimio_behavior")?_.sO():null},
shouldSkipLogging:function(){if(_.Et("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var q=this.getParentRenderer&&this.getParentRenderer();if(!q)return!1;var w,u=(w=q.polymerController)!=null?w:q;if(!u.data)return!1;q=this.data.trackingParams;q=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:q;var y;w=(y=u.data)==null?void 0:y.trackingParams;var e,t;w=((e=u.data)==null?0:e.loggingDirectives)?(t=u.data)==null?void 0:t.loggingDirectives.trackingParams:w;return q&&w&&q===
w}}];var pHj=new Map,Cx;var rQH=function(q){this.layer=q},aH=function(q){return q.layer!==void 0?q.layer:q.parent?aH(q.parent):q.layer=0};var Ea7;_.B={};Ea7=0;_.B.YtRendererBehavior=[_.fK.YtComponentBehavior,NH6.YtVisualElementBehavior,{_noAccessors:!0,properties:{data:Object},observers:["ytRendererBehaviorDataObserver_(data)","ytRendererBehaviorTargetIdObserver_(data.targetId)"],childCache_:null,parentComponent:null,wasVisible:!1,wasPrescan:!1,lastHandledScroll_:0,isRenderer_:!0,screenLayer:null,veFromLoggingDirective_:!1,useVimio_:_.T("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var q,w;(w=(q=this.monitorScrollElement)!=null?q:this.hostElement)==null||w.removeEventListener("scroll",_.Fj(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();DSM(this.hostElement);ClZ(_.e0(),this.hostElement);MU.delete(this.hostElement)},
registerRenderer:function(q){var w;((w=q.polymerController)!=null?w:q).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(q),this.markDirty())},
unregisterRenderer_:function(q){this.useVimio_||(this.childCache_.delete(q),this.markDirty())},
attached:function(){var q=this,w=this.getParentRenderer();if(w){var u,y,e;(y=(u=(e=w.polymerController)!=null?e:w).registerRenderer)==null||y.call(u,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var t,X;(X=(t=this.monitorScrollElement)!=null?t:this.hostElement)==null||X.addEventListener("scroll",_.Fj(this,this.onScroll))}_.pi.addJob(function(){$So(q.hostElement)},8);
u=new rQH(this.screenLayer||void 0);(w=Kq(w))&&w.layerNode&&(u.parent=w.layerNode);w={};O9M(this.hostElement,(w.isRenderer=!0,w.layerNode=u,w[Ds]=this.data,w))},
getParentRenderer:function(){for(var q=this.hostElement.parentNode,w,u;q&&((w=Kq(q))==null||!w.isRenderer)&&!((u=q.polymerController)!=null?u:q).isRenderer_;)q=q.parentNode||q.host;return q},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.T("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.RX("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.T("debug_web_ve_data")&&this.data.trackingParams){var q="";try{q=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(u){_.vm(u)}if(q){var w=xbM(q,1);w!==void 0&&(this.hostElement.dataset.veIndex=String(w));q=xbM(q,2);
q!==void 0&&(this.hostElement.dataset.ve=String(q))}}this.veFromLoggingDirective_&&(this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,_.T("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Tj(this.data.loggingDirectives.trackingParams)),this.visualElement=_.N2(_.Qz(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var q=this.data.targetId;_.Ozc(_.e0(),q,this.hostElement)}else ClZ(_.e0(),this.hostElement)},
onScroll:function(){var q=Date.now();q-this.lastHandledScroll_<50||(this.lastHandledScroll_=q,this.markDirty())},
markDirty:function(){_.T("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():RAu(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var q=this.getParentRenderer();if(q&&(q=Kq(q))&&q.layerNode)return aH(q.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.Cm(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var q=0;q<this.data.impressionEndpoints.length;q++)this.sendImpression(this.data.impressionEndpoints[q]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(q){q.clickTrackingParams&&delete q.clickTrackingParams;var w,u;(q==null?0:(w=q.commandMetadata)==null?0:(u=w.webCommandMetadata)==null?0:u.sendPost)?_.GM(this.hostElement,[q,{impression:!0}]):_.nq(this.hostElement,[q],this.hostElement)},
logExplicitClick:function(q){var w=_.pN(this.getScreenLayer());if(w){var u,y=(u=q.polymerController)!=null?u:q;q=y.visualElement;y=y.trackingParams||y.clickTrackingParams;!q&&y&&(q=_.Tj(y));q&&_.jB(w,q)}}}];var QPj={},Am=function(){return _.Na.apply(this,arguments)||this};
_.O(Am,_.Na);Am.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Am.prototype.onPdgItemBehaviorClick=Am.prototype.onPdgItemBehaviorClick;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Am.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Am.prototype,"data",void 0);_.c([_.Gm("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Am.prototype,"onPdgItemBehaviorClick",null);Am=_.c([_.Q6()],Am);QPj.YtPdgLiveChatItemBehavior=[Am.prototype,_.B.YtRendererBehavior];var Icc;var if6;_.Jm={};_.Jm.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var zV=function(){var q=w1.apply(this,arguments)||this;q.switchTemplateAtRegistration=!1;return q};
_.O(zV,w1);zV.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||jl7(this),_.UP4(this,"doRender"),this.doRender())};
zV.prototype.debounceRender=function(){this.templatingFn&&_.bf(this,"doRender",this.doRender)};
zV.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.vm(Error("$g"))};
zV.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
zV=_.c([s5H()],zV);var rWj=zV;var UOc=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,aN={},K5H=(aN[1]={filterString:null,isUnwrappable:null,unwrap:null},aN[2]={filterString:function(q,w,u){return Xu(u)},
isUnwrappable:function(q){return q instanceof fj},
unwrap:function(q){return Aa(q)}},aN[3]={filterString:function(q,w,u){return UOc.test(u)?u:iZ.toString()},
isUnwrappable:function(q){return sY(q)},
unwrap:function(q){return _.NC(q)}},aN[4]={filterString:function(){return iZ.toString()},
isUnwrappable:function(q){return q instanceof XE},
unwrap:function(q){return _.G2(q).toString()}},aN[5]={filterString:function(q,w,u){return u},
isUnwrappable:function(q){return typeof q==="string"},
unwrap:function(q){return q.toString()}},aN[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(q){return q instanceof _.ZD},
unwrap:function(q){return $m(q)}},aN[8]={filterString:function(q,w,u){u=String(u).toLowerCase();
return GPf(q,w,u)?u:"zClosurez"},
isUnwrappable:null,unwrap:null},aN[10]={filterString:null,isUnwrappable:null,unwrap:null},aN);uV[S7["default"]]=xSH;var qdo=[];var FW4=uIl("A"),Ggf=uIl("BUTTON"),CT=uIl("DIV"),nAc=uIl("LABEL");(function(){var q=eZ;eZ=function(w){q==null||q(w);Vz(function(){for(var u=0;u<w.length;u++)wbu(w[u])})}})();var Di=function(){var q=_.Na.apply(this,arguments)||this;q.hasUnmounted=!1;return q};
_.O(Di,_.Na);_.k=Di.prototype;_.k.beforeRegister=function(){var q=this.doIdomRender;this.templatingFn?_.vm(Error("Zg")):(this.templatingFn=q,this.switchTemplateAtRegistration=!0,Mt6(this))};
_.k.attached=function(){};
_.k.detached=function(){wbu(this.hostElement)};
_.k.renderIdom=function(){throw Error("bh");};
_.k.doIdomRender=function(){var q=this;lhj(this.hostElement,function(){q.renderIdom()})};
Di=_.c([_.Q6()],Di);var THZ=[rWj.prototype,Di.prototype];var C_Z,dOF=function(){return C_Z!==void 0?C_Z:C_Z=document.createElement("template")};
document.head.appendChild(dOF().content);var Of$;var ocr,Voj=function(){return ocr!==void 0?ocr:ocr=document.createElement("template")};
document.head.appendChild(Voj().content);var fc$;var mO$=document.head,AWa=mO$.appendChild,JWT;if(fc$===void 0){var z7r=document.createElement("template");_.f(z7r,"\x3c!--css-build:shady--\x3e");z7r.content.insertBefore(Voj().content.cloneNode(!0),z7r.content.firstChild);fc$=z7r}JWT=fc$;AWa.call(mO$,JWT.content);var ac6,DOT=function(){return ac6!==void 0?ac6:ac6=document.createElement("template")};
document.head.appendChild(DOT().content);var ZfX;var pa3=document.head,$Ok=pa3.appendChild,vcj;if(ZfX===void 0){var bfP=document.createElement("template");_.f(bfP,"\x3c!--css-build:shady--\x3e");bfP.content.insertBefore(DOT().content.cloneNode(!0),bfP.content.firstChild);ZfX=bfP}vcj=ZfX;$Ok.call(pa3,vcj.content);var YW6=document.head,gc$=YW6.appendChild,Ec3;if(Of$===void 0){var R7r=document.createElement("template");_.f(R7r,"\x3c!--css-build:shady--\x3e");R7r.content.insertBefore(dOF().content.cloneNode(!0),R7r.content.firstChild);Of$=R7r}Ec3=Of$;gc$.call(YW6,Ec3.content);var cWF,SWa=function(){return cWF!==void 0?cWF:cWF=document.createElement("template")};
document.head.appendChild(SWa().content);var h7T;_.Rg=new _.MH("DARK_THEME_TOKEN");var lXj=new _.M("accessibilityProperties");var jec=new _.M("layoutProperties");var L8J=new _.M("imageType");var jP6={};if("ytAttributedStringLinkHoverColor"in jP6)throw Error("eh`ytAttributedStringLinkHoverColor");(function(q,w){jP6[q]="value"in w&&"unit"in w?PXs(q,w):function(u){try{return w(u)}catch(y){throw Error("ch`"+q+"`"+y.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var lcx=function(q){var w=this;this.holdTime=q===void 0?500:q;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(u){var y=new CustomEvent("LONG_PRESS"),e;(e=u.changedTouches[0].target)==null||e.dispatchEvent(y)};
this.ontouchstart=function(u){w.longPressTimeout=_.dE(_.pi,function(){w.onlongpress(u);w.longPressOccurred=!0},w.holdTime)};
this.ontouchmove=function(){_.pi.cancelJob(w.longPressTimeout);w.longPressTimeout=NaN;w.longPressOccurred=!1;w.moveOccurred=!0};
this.ontouchend=function(u){if(w.longPressTimeout&&!w.longPressOccurred&&!w.moveOccurred){var y;(y=u.changedTouches[0].target)==null||y.dispatchEvent(new Event("click"))}_.pi.cancelJob(w.longPressTimeout);w.longPressTimeout=NaN;w.longPressOccurred=!1;w.moveOccurred=!1}};var m87=function(q,w){lcx.call(this,w);var u=this;this.callback=q;this.onlongpress=function(y){var e;(e=u.callback)==null||e.call(u,y)}};
_.O(m87,lcx);var A0M=function(q,w){var u=Object.assign({},w);q=_.P(new Map([["ontouchstart",q.ontouchstart],["ontouchend",q.ontouchend],["ontouchmove",q.ontouchmove]]));for(var y=q.next(),e={};!y.done;e={eventName$jscomp$85:void 0,eventHandler$jscomp$1:void 0},y=q.next()){var t=_.P(y.value);y=t.next().value;t=t.next().value;e.eventName$jscomp$85=y;e.eventHandler$jscomp$1=t;w[e.eventName$jscomp$85]=function(X){return function(G){var n;(n=u[X.eventName$jscomp$85])==null||n.call(u,G);(0,X.eventHandler$jscomp$1)(G)}}(e)}};_.PG=new _.MH("COMMAND_HANDLER_TOKEN");var F8H=new _.M("parallelCommand");var HXJ=new _.M("performOnceCommand");var n0c=new _.M("serialCommand");var W8j=void 0;var L3P=function(){this.data=[]};
L3P.prototype.push=function(q){this.data.push(q)};var wI={};_.r4(wI,void 0,"sgPmTd");_.r4(null,void 0,"jypsq");var sIf=new L3P;var Tpy=[Wcj,s7j,NR6,I3j,Q7J,Huy,iuy,rfc];var Sdj=new _.M("bracketTextDecorator");var EO=new _.M("highlightTextDecorator");_.SD=new _.MH("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var Yds=function(){},Mo3;
(Mo3=window.requestIdleCallback)==null||Mo3.bind(window);var E0l={calledOnce:!1,state:"visible"},g0l={calledOnce:!1,state:"hidden"};var K3r=new _.MH("ICON_RENDERER_TOKEN"),BHa=new _.MH("ICON_WIZ_COMPONENT_TOKEN");_.U3=_.LL(function(q){var w=q.icon;var u=q.active;var y=q.className;var e=q.style;var t=q.dataSelected;var X=q.dataDisabled;var G=q.role;var n=q.animateIcon;var N=q.themeOverride;var Q=q.ariaHidden;var I=q.ariaExpanded;var U=q.ariaLabel;var d=q.id;var V=q.size;var J=q.iconFilter;return _.W(_.r,{cond:w,then:function(){var a=_.tG().resolve(BHa);return _.W(a,{icon:w,dataSelected:t,dataDisabled:X,animateIcon:n,themeOverride:N,ariaExpanded:I,id:d,active:u,size:V,role:G,className:y,ariaHidden:Q,ariaLabel:U,
style:function(){return e!=null&&e()||V==null||!V()?e==null?void 0:e():"width: "+(V==null?void 0:V())+"px;height: "+((V==null?void 0:V())+"px;")},
iconFilter:J})}})},"b");
_.U3.idomCompat=!0;var ntJ=window.devicePixelRatio||1;var N2u=new Map([["yt_outline_bag_black_24","bag"]]);var Zi=function(q){var w=this;this.margin=.1;this.whenInViewportWithMargin=q;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){w.requestScan()});
window.addEventListener("touchend",function(){w.requestScan()});
window.addEventListener("updateui",function(){w.requestScan()});
var u=new _.MI((0,_.fY)(this.requestScan,this),100);window.addEventListener("scroll",function(){u.fire()},!0);
window.addEventListener("resize",(0,_.fY)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){w.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.fY)(this.requestScan,this))};
Zi.prototype.observe=function(q){this.observationTargets.includes(q)||this.observationTargets.push(q)};
Zi.prototype.unobserve=function(q){this.observationTargets=this.observationTargets.filter(function(w){return w!==q})};
Zi.prototype.requestScan=function(){var q=this;this.scanRequested||(Vz(function(){xOc(q)}),this.scanRequested=!0)};
var xOc=function(q){var w=(1+q.margin)*(document.documentElement.clientHeight||window.innerHeight);q.observationTargets=q.observationTargets.filter(function(u){var y=u.getBoundingClientRect();(y=w>y.top&&!!y.height)&&q.whenInViewportWithMargin(u);return!y&&u.parentNode});
q.scanRequested=!1};
Zi.prototype.disconnect=function(){this.observationTargets=[]};var qSX,uWx;qSX=_.P(_.r4(r_M(),void 0,"O3X2wd"));_.wH6=qSX.next().value;uWx=qSX.next().value;window.addEventListener("resize",function(){uWx(r_M())});var yAZ={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},eAk=void 0,kfX=window.innerWidth,ttX=window.innerHeight;window.addEventListener("resize",function(){eAk=void 0});var PQx;if("IntersectionObserver"in window)PQx=CKH();else{if(eAk===void 0){var XHX;XHX="matchMedia"in window?window.matchMedia(yAZ.landscape+","+yAZ.portrait).matches:void 0;eAk=XHX!==void 0?XHX:kfX>=930&&ttX>=550||kfX>=550&&ttX>=930}PQx=eAk?{observe:function(q){Vz(function(){var w;(w=q.onViewportEntered)==null||w.call(q)})},
unobserve:function(){}}:new Zi(function(q){Vz(function(){var w;
(w=q.onViewportEntered)==null||w.call(q)})})}var Uis=PQx;var F5c=_.LL(function(q){var w=!1,u=_.Bm(function(y){_.ZG(function(){w=!0;y.onload=null})});
_.DG(function(){var y,e=(y=q.data)==null?void 0:y.call(q),t,X=(t=q.getSrc)==null?void 0:t.call(q).cb,G;y=(G=q.config)==null?void 0:G.call(q);if(G=u.value)if(t=function(N,Q){if(!w)return X?X(N,Q):N},ot7(G,y),_.T("web_image_dont_reload_same_src")&&O6c(G,e,t))_.T("web_image_dont_reload_same_src_simulate_load")&&G.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var n;diH(G,e||null,t,y,(n=q.lazy)==null?void 0:n.call(q))}});
return _.W("img",{el:u})},"c");
F5c.idomCompat=!0;_.ln=_.LL(function(q){var w=function(){var u,y=q.data(),e,t,X,G,n,N,Q,I,U,d,V,J,a,b,g,l,S,eH,x,P4,C7,mu,Os,YJ,ao,bc,Ro;var K7={contentMode:(e=q.contentMode)==null?void 0:e.call(q),loadedClass:(t=q.loadedClass)==null?void 0:t.call(q),isPreloaded:(X=q.isPreloaded)==null?void 0:X.call(q),notifyOnLoaded:(G=q.notifyOnLoaded)==null?void 0:G.call(q),notifyOnUnloaded:(n=q.notifyOnUnloaded)==null?void 0:n.call(q),preferredThumbnail:(N=q.preferredThumbnail)==null?void 0:N.call(q),preserveHeight:(Q=q.preserveHeight)==
null?void 0:Q.call(q),preserveWidth:(I=q.preserveWidth)==null?void 0:I.call(q),objectPosition:(U=q.objectPosition)==null?void 0:U.call(q),targetWidth:(d=q.targetWidth)==null?void 0:d.call(q),targetHeight:(V=q.targetHeight)==null?void 0:V.call(q),shouldShowPlaceholder:(J=q.shouldShowPlaceholder)==null?void 0:J.call(q),useWidth:(a=q.useWidth)==null?void 0:a.call(q),alt:(b=q.alt)==null?void 0:b.call(q),className:(g=q.className)==null?void 0:g.call(q),onerror:q.onerror,onload:q.onload,style$:((l=q.style$)==
null?void 0:l.call(q))||((S=q.style)==null?void 0:S.call(q)),color:(eH=q.color)==null?void 0:eH.call(q),width:(x=q.width)==null?void 0:x.call(q),height:(P4=q.height)==null?void 0:P4.call(q),"aria-hidden$":(bc=(C7=q["aria-hidden$"])==null?void 0:C7.call(q))!=null?bc:(mu=q.ariaHidden)==null?void 0:mu.call(q),draggable:(Os=q.draggable)==null?void 0:Os.call(q),"data-disabled$":(Ro=(YJ=q["data-disabled$"])==null?void 0:YJ.call(q))!=null?Ro:(ao=q.dataDisabled)==null?void 0:ao.call(q)};return mi6(y,K7,(u=
q.hideOn404)==null?void 0:u.call(q))};
return _.W(_.zS,null,_.W(_.AP,{when:function(){var u;return((u=w())==null?void 0:u.type)==="image"}},function(){return _.W(F5c,{data:function(){return w().image},
getSrc:{cb:function(u,y){var e=w().image.sources,t=w().config.isPreloaded,X=w().config.useWidth,G=w().config.targetWidth,n=w().config.targetHeight,N=w().config.preferredThumbnail;return _.H67(y,e,t,X,G,n,N)||""}},
config:function(){var u=w().config,y;for(y in u)u[y]===void 0&&delete u[y];return u},
lazy:q.renderLazy})}),_.W(_.AP,{when:function(){var u;
return((u=w())==null?void 0:u.type)==="icon"}},function(){return _.W(_.U3,{icon:function(){return w().iconName},
role:function(){return w().config.role},
className:function(){return w().config.className},
style:function(){return w().config.style$+";width: "+(w().config.width+"px;height: ")+(w().config.height+"px;color: ")+(w().config.color+";")},
ariaLabel:function(){return w().config["aria-label$"]},
ariaHidden:function(){return w().config["aria-hidden$"]},
dataDisabled:function(){return w().config["data-disabled$"]}})}))},"d");
_.ln.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var Gfr=function(q){return function(w){return _.W(noj,null,function(){var u=w.data(),y=_.$C(w.config);return _.W(qb,null,function(){return void q(u,y)})})}}(aPz),J_J=_.LL(function(q){var w=function(y){var e,t=_.M2(function(U){e=pD(function(){for(var d=_.P(Q()),V=d.next();!V.done;V=d.next()){V=Dic(V.value);
V=typeof V==="string"?document.createTextNode(V):V;if(!(V instanceof Node)){d=new _.fv("Part is not a node",V,typeof V);_.vm(d);break}U.appendChild(V)}})}),X=Kx(function(){return K8s(y())},{isEqual:A_j}),G=_.jf(q.config),n=function(){var U,d=X();
return!((U=G())==null||!U.ariaLabel)||!(d.commandRuns&&d.commandRuns.length!==0||d.paragraphStyleRuns&&d.paragraphStyleRuns.length!==0)},N=Kx(G,{isEqual:p9c}),Q=function(){var U=M1y(X(),N());
x8M(U,N());return X().content?kvf(X().content,U).parts:[]},I=!0;
_.DG(function(){X();N();if(I)I=!1;else{var U=Q();Promise.resolve().then(function(){var d=t.value;if(d){d.innerText="";var V;(V=e)==null||V();e=_.aX(d,function(){return _.W(Z6M,{parts:U})})}})}});
return _.W("span",{el:t,class:function(){return X()&&ZXl(X(),G())},
dir:function(){var U;return((U=G())==null?0:U.userInput)?"auto":void 0},
"aria-label":function(){var U;return n()?(U=G())==null?void 0:U.ariaLabel:void 0},
role:function(){return n()?"text":void 0}})},u;
return((u=q.config)==null?0:u.renderedFromFormattedString)?w(q.text):_.W(_.r,{cond:q.text,then:w})},"e");
J_J.idomCompat=!0;_.Lr=_.LL(function(q){var w=_.jf(q.text),u=$ic(q);q.renderedFromFormattedString!==void 0&&(u.renderedFromFormattedString=!0);return _.T("attr_string_reactive")?_.W(J_J,{text:w,config:u}):_.W(_.r,{cond:function(){var y;return w()&&((y=K8s(w()))==null?void 0:y.content)},
then:function(){return _.W(Gfr,{data:q.text,config:u})},
debugInstance:"Apcuac"})},"f");
_.Lr.idomCompat=!0;var b64=function(q,w,u){w=w===void 0?"unknown":w;u=u===void 0?{}:u;_.fv.call(this,q+" ("+w+")",Object.assign({},{name:"YtWcwError",tagName:w},u));Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(b64,_.fv);_.S$l=new WeakMap;_.c_4=!1;var R97,h9J,EtM;_.pK=Symbol("gh");_.xB=Symbol("hh");R97=Symbol("ih");h9J=new Set(Object.getOwnPropertyNames(Element.prototype));EtM=Symbol("jh");var naF=_.LL(function(q){return _.W("yt-attributed-string",{"aria-label":q.ariaLabel,hidden:q.hidden,id:q.id,class:q.className,"force-default-style":q.forceDefaultStyle},_.W(_.Lr,{text:q.data,ariaLabel:q.ariaLabel,ellipsisTruncate:q.ellipsisTruncate,isOverlay:q.isOverlay,linkInheritColor:q.linkInheritColor,noPreWrap:q.noPreWrap,noWrap:q.noWrap,userInput:q.userInput,noEndpoints:q.noEndpoints,headerRuns:q.headerRuns}))},"g");
_.T("web_wiz_attributed_string")&&_.q9(naF,"yt-attributed-string",{props:{ariaHidden:_.pK,ariaLabel:_.pK,className:_.pK,ellipsisTruncate:_.pK,isOverlay:_.pK,linkInheritColor:_.pK,noEndpoints:_.pK,noStyleRuns:_.pK,noLinkColor:_.pK,noPreWrap:_.pK,noWrap:_.pK,skipOnClick:_.pK,userInput:_.pK,headerRuns:_.pK,id:_.pK,data:_.pK,hidden:_.pK,forceDefaultStyle:_.pK,text:_.xB,stopPropagation:_.xB,disableUpgrade:_.xB,disable:_.xB,slot:_.xB}});var $Y=function(){return _.Y.apply(this,arguments)||this};
_.O($Y,_.Y);$Y.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},aPz(this.data,this.config))};
_.c([_.D(THZ),_.h("design:type",Object)],$Y.prototype,"ytIdomTemplatingBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],$Y.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],$Y.prototype,"ariaLabel",void 0);_.c([_.v(),_.h("design:type",Boolean)],$Y.prototype,"disable",void 0);_.c([_.v(),_.h("design:type",Boolean)],$Y.prototype,"ellipsisTruncate",void 0);_.c([_.v(),_.h("design:type",Boolean)],$Y.prototype,"isOverlay",void 0);
_.c([_.v(),_.h("design:type",Boolean)],$Y.prototype,"linkInheritColor",void 0);_.c([_.v(),_.h("design:type",Boolean)],$Y.prototype,"noPreWrap",void 0);_.c([_.v(),_.h("design:type",Boolean)],$Y.prototype,"noWrap",void 0);_.c([_.v(),_.h("design:type",Boolean)],$Y.prototype,"userInput",void 0);_.c([_.v(),_.h("design:type",Boolean)],$Y.prototype,"noEndpoints",void 0);_.c([_.v(),_.h("design:type",Array)],$Y.prototype,"headerRuns",void 0);
$Y=_.c([_.JM({is:"yt-attributed-string",disableElementRegistration:!0})],$Y);
_.T("web_wiz_attributed_string")||_.R($Y,"yt-attributed-string",function(){if(h7T===void 0){var q=document.createElement("template");_.f(q,"\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");q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);
q.content.insertBefore(SWa().content.cloneNode(!0),q.content.firstChild);h7T=q}q=h7T;return q},{mode:2});var HS6,W5Z,xif;HS6=function(){this.firstThumbnailLoaded=!1};
_.slT=function(){W5Z||(W5Z=new HS6);return W5Z};
xif=function(q){var w=_.slT();w.firstThumbnailLoaded||(w.firstThumbnailLoaded=!0,_.D_("ftl",q))};
HS6.prototype.reset=function(){this.firstThumbnailLoaded=!1};var lPo=0,B2M=new WeakMap,MCy=0,yS=new Set;var NOT,QlX=function(){return NOT!==void 0?NOT:NOT=document.createElement("template")};
document.head.appendChild(QlX().content);var Ifr;var y97,kis,vd;_.tE=_.uc.caches;vd=function(){};
vd.prototype.open=function(q){return _.tE.open(iSc(q))};
vd.prototype.has=function(q){return _.tE.has(iSc(q))};
vd.prototype.delete=function(q){return _.tE.delete(iSc(q))};
vd.prototype.match=function(q,w){var u=this,y,e,t,X,G,n;return _.F(function(N){switch(N.nextAddress){case 1:return _.H(N,u.keys(),2);case 2:y=N.yieldResult,e=_.P(y),t=e.next();case 3:if(t.done){N.jumpTo(5);break}X=t.value;return _.H(N,u.open(X),6);case 6:return G=N.yieldResult,_.H(N,G.match(q,w),7);case 7:if(n=N.yieldResult)return N.return(n);t=e.next();N.jumpTo(3);break;case 5:return N.return()}})};
var t2l=function(){};
_.O(t2l,vd);var iSc=function(q){if(q.includes(":"))throw Error("mh`"+q);return q+":"+_.O8("CacheStorage get")};
t2l.prototype.keys=function(){var q,w,u,y,e,t,X,G,n;return _.F(function(N){if(N.nextAddress==1)return q=[],w=_.O8("CacheStorage keys"),_.H(N,_.tE.keys(),2);u=N.yieldResult;y=_.P(u);for(e=y.next();!e.done;e=y.next())t=e.value,X=_.u9H(t),G=X.originalName,n=X.datasyncId,n===w&&q.push(G);return N.return(q)})};var b1=function(){var q=_.Y.apply(this,arguments)||this;q.objectURL=null;q.loadTime=Infinity;return q};
_.O(b1,_.Y);_.k=b1.prototype;_.k.renderIdom=function(){wx4(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("ph");this.setConfig();this.config&&VCJ(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.k.objectFitToContentMode=function(q){switch(q){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.k.logThumbnailFailureVe=function(){var q=_.oV(197497);_.ku(_.Qz(),q);var w=_.pN();w&&q&&w&&_.SB(w,[q])};
_.k.loadImageFromCacheIfExists=function(q){var w=this,u=q.target;(u==null?0:u.src)&&Xx7(u.src).then(function(y){w.objectURL=_.T2(y).toString();w.setSrc(u,w.objectURL)}).catch(function(){})};
_.k.onError=function(q){var w=this;if(_.T("web_use_cache_for_image_fallback")){var u=q.target;u&&Xx7(u.src).then(function(y){w.objectURL=_.T2(y).toString();w.setSrc(u,w.objectURL)}).catch(function(){_.T("kevlar_woffle_log_thumbnail_failure_ve")&&w.logThumbnailFailureVe();
_.T("kevlar_woffle_fallback_image")&&w.setSrc(u,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.k.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.k.setConfig=function(){var q=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(w){q.loadImageFromCacheIfExists(w);q.revokeObjectURL();q0y(q.hostElement)},
onerror:function(w){q.onError(w)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.T("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.k.setSrc=function(q,w){w&&(q.src=w)};
_.c([_.D(THZ),_.h("design:type",Object)],b1.prototype,"ytIdomTemplatingBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],b1.prototype,"data",void 0);_.c([_.v(),_.h("design:type",String)],b1.prototype,"alt",void 0);_.c([_.v(),_.h("design:type",Boolean)],b1.prototype,"ftlEligible",void 0);_.c([_.v(),_.h("design:type",Number)],b1.prototype,"height",void 0);_.c([_.v(),_.h("design:type",Boolean)],b1.prototype,"notifyOnLoaded",void 0);
_.c([_.v(),_.h("design:type",Boolean)],b1.prototype,"notifyOnUnloaded",void 0);_.c([_.v(),_.h("design:type",String)],b1.prototype,"objectFit",void 0);_.c([_.v(),_.h("design:type",String)],b1.prototype,"objectPosition",void 0);_.c([_.v(),_.h("design:type",String)],b1.prototype,"preferredThumbnail",void 0);_.c([_.v(),_.h("design:type",Boolean)],b1.prototype,"preserveHeight",void 0);_.c([_.v(),_.h("design:type",Boolean)],b1.prototype,"preserveWidth",void 0);
_.c([_.v({value:!0}),_.h("design:type",Boolean)],b1.prototype,"useWidth",void 0);_.c([_.v({value:function(){return!_.RX("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.h("design:type",Boolean)],b1.prototype,"shouldRenderLazy",void 0);_.c([_.v(),_.h("design:type",Number)],b1.prototype,"width",void 0);b1=_.c([_.JM({is:"yt-image",disableElementRegistration:!0})],b1);
_.R(b1,"yt-image",function(){if(Ifr===void 0){var q=document.createElement("template");_.f(q,"\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");q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);q.content.insertBefore(QlX().content.cloneNode(!0),q.content.firstChild);
Ifr=q}q=Ifr;return q},{mode:2});var YY=function(){return _.Y.apply(this,arguments)||this};
_.O(YY,_.Y);YY.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var q=_.Zh(this.data.onVisibleCommand);q&&this.ytComponentBehavior.resolveCommand(q)}};
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],YY.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],YY.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.Jm.YtVisibilityBehavior),_.h("design:type",Object)],YY.prototype,"ytVisibilityBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],YY.prototype,"data",void 0);YY=_.c([_.JM({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],YY);
_.R(YY,"yt-bumper-user-edu-content-view-model",function(){if(if6===void 0){var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;Icc===void 0&&(Icc=document.createElement("template"));var y=Icc;u.call(w,y.content.cloneNode(!0),q.content.firstChild);if6=q}q=if6;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var rAG;var USa,TOX=function(){if(USa!==void 0)return USa;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;rAG===void 0&&(rAG=document.createElement("template"));var y=rAG;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return USa=q};var CQ6;_.gd={};CQ6=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"]);_.gd.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var q=this.getContext_();return q?q.getTaskManager():_.pi},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var q=_.t7(this.hostElement,"yt-get-context-provider",{});q.detail&&q.detail.contextProvider?this.cachedProviderNode_=q.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return CQ6.has(this.hostElement.localName)},
getNetworkManager:function(){var q=this.getContext_();if(q)return q.getNetworkManager()}};var sMJ,dS$,oa$,OSX;_.E7=function(q){var w=dS$.get(q);if(w&&(w=w.pop()))return OSX++,w;oa$++;try{var u=document.createElement(q)}catch(y){throw new _.fv("ElementPool failed to create element",q,y.message);}return u};
sMJ=function(q){var w=q.is;if(w){var u=dS$.get(w);u||(u=[],dS$.set(w,u));var y=_.Et("ELEMENT_POOL_CONFIG")||{};u.length>=(y[w]!==void 0?y[w]:_.Et("ELEMENT_POOL_DEFAULT_CAP",0))||u.push(q)}else _.Y8(new _.fv("Element pool should only handle custom elements:",q.nodeName))};
dS$=new Map;oa$=0;OSX=0;var PR=new WeakMap,Wh4=new WeakMap;var ffr;_.RN=function(q,w,u){u=u===void 0?_.Vk():u;this.JSC$11542_defaultPriority=q;this.signal=w;this.scheduler=u;this.nextJobDescriptor=0;this.JSC$11542_parkedJobs=[];this.scheduledJobs=new Map};
_.cd=function(q,w){if(w){var u=_.DU();q.signal&&!_.ZU(u,q.signal)?(u.addListener(q.signal,function(){q.processSignal()}),q.JSC$11542_parkedJobs.push({job:w,
priority:void 0})):VtT(q,w)}};
ffr=function(q,w){if(w!==q.JSC$11542_defaultPriority){q.JSC$11542_defaultPriority=w;for(var u=_.P(q.scheduledJobs.values()),y=u.next();!y.done;y=u.next())y=y.value,q.scheduler.cancelJob(y.jobId),y.jobId=q.scheduler.addJob(y.jobWrapper,w)}};
_.RN.prototype.flushJobs=function(){ffr(this,10);this.processSignal()};
_.RN.prototype.cancel=function(){for(var q=_.P(this.scheduledJobs),w=q.next();!w.done;w=q.next()){var u=_.P(w.value);w=u.next().value;u=u.next().value;this.scheduler.cancelJob(u.jobId);this.scheduledJobs.delete(w)}this.JSC$11542_parkedJobs=[]};
_.RN.prototype.processSignal=function(){for(var q=_.P(this.JSC$11542_parkedJobs),w=q.next();!w.done;w=q.next())w=w.value,VtT(this,w.job,w.priority);this.JSC$11542_parkedJobs=[]};
var VtT=function(q,w,u){u=u||q.JSC$11542_defaultPriority;if(u===10)e6(w);else{var y=q.nextJobDescriptor++,e=function(){w();q.scheduledJobs.delete(y)},t=q.scheduler.addJob(e,u);
q.scheduledJobs.set(y,{jobWrapper:e,jobId:t,priority:u})}};_.t2(icj);var r9u={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};sA6({beforeVisit:function(q){if(un.has(q.type)){var w;(w=q.props).idomKey!=null||(w.idomKey=q.type)}else q.type.TAG_NAME&&(q2=q.type.TAG_NAME)},
afterRender:function(q,w){var u;q2=(u=w==null?void 0:w.type)!=null?u:""},
didPatch:function(){q2=""}});var mST;_.S0={};mST={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.S0.YtRendererstamperBehavior=[_.gd.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 q in this.stampDom){var w=this.stampDom[q];w&&w.id&&this.addReactiveSchema({type:"observe",method:{methodName:Gif(w.id),args:[{type:"wildcard",path:q}]}})}else{(q=(this.constructor.generatedFrom||this).observers)||(q=[]);for(w in this.stampDom){var u=this.stampDom[w];u&&u.id&&q.push(Gif(u.id)+"("+w+".*)")}this.constructor.generatedFrom.observers=q}},
addStampDomObserverFns_:function(){for(var q in this.stampDom){var w=this.stampDom[q];w.id?(this[Gif(w.id)]=this.rendererStamperObserver_.bind(this,q,w.id),this.hasDataPath_[q]=!1):(w=new _.fv("Bad rendererstamper config",this.is+":"+q),_.vm(w))}},
rendererStamperObserver_:function(q,w,u){if(u.path==q){if(u.value===void 0&&!this.hasDataPath_[q])return;this.hasDataPath_[q]=u.value!==void 0}this.rendererStamperApplyChangeRecord_(q,w,u)},
rendererStamperApplyChangeRecord_:function(q,w,u){var y=this.renderJobsMap_[w],e=null;q==u.path?(u=u.value,_.uP(u)||(u=u===void 0||u===null?[]:[u]),q=this.stampDom[q],q.mapping&&(e=this.stampDomArray_.bind(this,u,w,q.mapping,q.reuseComponents,q.events,q.stamperStableList)),y&&y.cancel(),u=q.usePageScheduler?this.getTaskManager():void 0,y||q.initialRenderPriority==void 0)?q.renderPriority==void 0||y||(y=new _.RN(q.renderPriority,q.waitForSignal,u),this.renderJobsMap_[w]=y):(y=new _.RN(q.initialRenderPriority,
q.waitForSignal,u),this.renderJobsMap_[w]=y,e=function(t,X){t();ffr(X,10)}.bind(this,e,y)):e=q+".splices"==u.path?this.stampDomArraySplices_.bind(this,q,w,u.value):this.forwardRendererStamperChanges_.bind(this,q,w,u);
y?_.cd(y,e):e()},
forwardRendererStamperChanges_:function(q,w,u){var y=u.path.slice(q.length+1),e=this.getStampContainer_(w),t=y.indexOf("."),X=y.substring(0,t),G=!1,n=0,N=parseInt(X,0);if(X[0]=="#"){G=parseInt(X.substring(1),0);N=this.get(q);var Q=this.get([q,X]);N[G]==Q?n=G:n=N.indexOf(Q);G=!0}else isNaN(N)||(n=N,G=!0);G&&(y=y.substring(X.length+1),t=y.indexOf("."));X=_.fN(e).children[n];var I;if(e=(I=X==null?void 0:X.polymerController)!=null?I:X)y="data"+y.slice(t),typeof e.notifyPath!=="function"?_.Y8(new _.fv("notifyPath missing",
this.is+": "+q+", "+w)):u.value?e.notifyPath(y,u.value):e.notifyPath(y)},
stampDomArraySplices_:function(q,w,u){if(u&&u.indexSplices){var y=this.getStampContainer_(w);if(y){for(var e=_.fN(y),t=Hc7(this.stampDom[q].reuseComponents),X=u.indexSplices.length,G=0;G<X;G++){for(var n=u.indexSplices[G],N=e.children[n.index],Q=n.removed.length;Q>0;Q--)N&&N.parentElement&&(_.fN(N.parentElement).removeChild(N),t&&sMJ(N),N=e.children[n.index]);Q=this.stampDom[q].mapping;for(var I=n.index+n.addedCount,U=document.createDocumentFragment(),d=t,V=n.index;V<I;V++){var J=n.object[V],a=FhM(Q,
J);if(a){var b=Q[a];J=J[a];a=this.getComponentName_(b,J);var g=N?PR.has(N):!1;d&&N&&N.is==a&&g?(a=N,this.telemetry_.reuse++,N=N.nextElementSibling):d&&N&&g?(a=this.createComponent_(b,J,t),g=_.fN(N).nextElementSibling,e.insertBefore(a,g),QMH(this.is,e,N,t),N=g):(d=!1,a=this.createComponent_(b,J,t),U.appendChild(a));this.deferRenderStamperBinding_(a,b,J)}else b=new _.fv("Unimplemented type",q,w,y.tagName,Object.keys(J)[0]),_.vm(b)}e.insertBefore(U,N)}this.flushRenderStamperComponentBindings_();this.stampDom[q].events&&
_.t7(this.hostElement,"yt-rendererstamper-finished",{container:y})}else q=new _.fv("Container object not found",w,this.hostElement?this.hostElement.is:""),_.vm(q)}},
stampDomArray_:function(q,w,u,y,e,t){var X=this.getStampContainer_(w);if(X)if(w=_.fN(X),y=Hc7(y),q){var G=0,n=0,N;if(t=t===void 0?_.RX("STAMPER_STABLE_LIST",!1):t||!1)for(N=w.firstElementChild;N&&!PR.has(N)&&q.length>n;){t=q[n];var Q=FhM(u,t);if(Q){if(this.getComponentName_(u[Q],t[Q])!=N.is){var I=this.createComponent_(u[Q],t[Q],y),U=_.fN(N).nextElementSibling;U?w.insertBefore(I,U):w.appendChild(I);QMH(this.is,w,N,y);N=I}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(N,u[Q],t[Q]);G++;
n++;N=_.fN(N).nextElementSibling}else n++}IFs(this.is,w,G,y);G=N;if(q.length>n){t=document.createDocumentFragment();for(Q=q.length;n<Q;n++)if(I=q[n],U=FhM(u,I))N=this.createComponent_(u[U],I[U],y),this.deferRenderStamperBinding_(N,u[U],I[U]),t.appendChild(N);G&&_.fN(G).parentNode&&N&&!PR.has(N)?w.insertBefore(t,G):w.appendChild(t)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();e&&_.t7(this.hostElement,"yt-rendererstamper-finished",{container:X})}else IFs(this.is,w,0,
y);else q=new _.fv("Container object not found",w,this.hostElement?this.hostElement.is:""),_.vm(q)},
getStampContainer_:function(q){return this.$&&this.$[q]||_.A(this.hostElement).querySelector("#"+q)},
getComponentName_:function(q,w){return typeof q==="string"?q:q.matcher?q.matcher.call(this,w):q.component},
createComponent_:function(q,w,u){q=this.getComponentName_(q,w);try{var y=yz.has(q)||un.has(q);if(u&&!y){var e=_.E7(q);try{_.Pj(e)}catch(t){u="Failed to clear styles for "+q+".",t.message&&(u+=" Original error: "+t.message),_.Y8(new _.fv(u))}}else e=document.createElement(q)}catch(t){return e="YtRendererStamperBehavior failed to create "+q+".",t.message&&(e+=" Original description: "+t.message),t.message="YtRendererStamperBehavior failed to create element",_.gs(t,e),mST.hasOwnProperty(q)?_.Y8(t):_.vm(t),
document.createElement("SPAN")}this.telemetry_.create++;return e},
deferRenderStamperBinding_:function(q,w,u){this.deferredBindingTasks_.push({component:q,typeOrConfig:w,data:u})},
flushRenderStamperComponentBindings_:function(){for(var q=0,w=this.deferredBindingTasks_.length;q<w;q++){var u=this.deferredBindingTasks_[q];if(!u)break;var y=void 0,e=void 0,t=void 0,X=void 0,G=u.component,n=u.typeOrConfig;u=u.data;var N=(X=G.polymerController)!=null?X:G;X=G.loggingStatus;try{X&&(X.isRendererStamper=!0);if(typeof n!=="string"){for(t in n.attributes)n.attributes[t]===!0?G.setAttribute(t,""):n.attributes[t]===!1?G.removeAttribute(t):G.setAttribute(t,n.attributes[t]);for(e in n.params)N[e]=
n.params[e],G!==N&&Tm(G.localName,e,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(y in n.properties){var Q=n.properties[y];if(Q){var I=nxM(Q);N[y]=this.get(I);G!==N&&Tm(G.localName,y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(y==="on-tap"||y==="on-click"){var U=this.get(I);G.addEventListener("click",U);Wh4.set(G,{property:y,listener:{type:"element",eventName:"click",handler:U}})}}else{var d=new _.fv("Undefined property binding",y);_.vm(d)}}}if(n.classListBinding){var V=nxM(n.classListBinding),
J=V?this[V]:null;if(J)for(y=0;y<J.length;y++)_.ef(G,J[y],!0)}N.data=u}finally{X&&(X.isRendererStamper=!1)}if(y=PR.get(G))G.hidden=!1,PR.delete(G),_.pi.cancelJob(y)}this.deferredBindingTasks_.length=0}}];_.hm={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(q){for(var w=_.lD.getInstance(),u=_.P(Object.keys(q)),y=u.next();!y.done;y=u.next()){var e=y.value;y=q[e];if(this&&this[y]){var t=w.actionRoutingMap.get(e);t||(t=new Map,w.actionRoutingMap.set(e,t));w.registerActionHandler(this,e,this[y].bind(this),t)}else e=Error("id"),e.params=y,_.cl(e)}},
unregisterActionMap:function(q){_.M5(_.lD.getInstance(),q,this)}}]};var GW=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_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"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:79,lazyLoad:!1}]]);var FK;var nT=new Map;var zkH=window.matchMedia("(forced-colors: active)").matches;var AAj;var JAX;var pxM=new _.MH("LOTTIE_LOADER_TOKEN");_.q9(_.LL(function(q){return _.W("ytd-lottie-player",{id:q.id,hidden:q.hidden,class:q.className,"aria-label":q.ariaLabel,style:"display: block;"},_.W(_.WR,{data:q.data,animationName:function(){var w;return((w=q.data().animationConfig)==null?void 0:w.name)||""},
animationRef:function(){return q.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.pK,
id:_.pK,hidden:_.pK,className:_.pK,ariaLabel:_.pK}});var j0=function(){var q=_.Y.apply(this,arguments)||this;q.animationRef={};return q};
_.O(j0,_.Y);_.k=j0.prototype;
_.k.handlePropertyChange=function(){var q=this.animatedIcon,w=this.active,u=this.isDarkTheme;if(q){var y=this.previousActive!==w;this.previousActive=w;this.animationRef.lottieEl?y&&this.toggleAnimation(w,q.totalFrames):w?this.initializeAnimationAsToggled(q.lottiePlayerProps,q.totalFrames):this.initializeAnimationAsUntoggled(q.lottiePlayerProps);q.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=q.type;this.lottiePlayerProps=this.computeLottiePlayerProps(q,u)}};
_.k.computeLottiePlayerProps=function(q,w){var u=this.deepCloneLottiePlayerProps(q);w?(w=q.nameDarkTheme,q=q.pathDarkTheme):(w=q.name,q=q.path);u.animationConfig.name=w;(w=nT.get(q))?u.animationConfig.animationData=w:u.animationConfig.path=q;return u};
_.k.initializeAnimationAsToggled=function(q,w){q.animationConfig.initialSegment=[w-1,w]};
_.k.initializeAnimationAsUntoggled=function(q){q.animationConfig.initialSegment=void 0};
_.k.toggleAnimation=function(q,w){if(q){var u;(u=this.animationRef.lottieEl)==null||u.playSegments([0,w],!0)}else{var y;(y=this.animationRef.lottieEl)==null||y.playSegments([0,1],!0)}};
_.k.deepCloneLottiePlayerProps=function(q){var w=Object.assign({},q.lottiePlayerProps.animationConfig);q=Object.assign({},q.lottiePlayerProps);q.animationConfig=w;return q};
j0.prototype.handlePropertyChange=j0.prototype.handlePropertyChange;_.c([_.v(),_.h("design:type",Object)],j0.prototype,"animatedIcon",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],j0.prototype,"active",void 0);_.c([_.v(),_.h("design:type",Boolean)],j0.prototype,"isDarkTheme",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],j0.prototype,"animatedIconType",void 0);_.c([_.v(),_.h("design:type",Boolean)],j0.prototype,"previousActive",void 0);
_.c([_.v(),_.h("design:type",Object)],j0.prototype,"lottiePlayerProps",void 0);_.c([_.v(),_.h("design:type",Object)],j0.prototype,"animationRef",void 0);_.c([_.nL("animatedIcon","active","isDarkTheme"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],j0.prototype,"handlePropertyChange",null);j0=_.c([_.JM({is:"yt-animated-icon",disableElementRegistration:!0})],j0);
_.R(j0,"yt-animated-icon",function(){if(JAX===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;AAj===void 0&&(AAj=document.createElement("template"));var y=AAj;u.call(w,y.content.cloneNode(!0),q.content.firstChild);JAX=q}q=JAX;return q},{mode:2});var zAT;var af$;var bcu=_.LL(function(q){var w=_.x8(),u=$w(function(){return{value:null}});
_.ZG(function(){var e;(e=u.value)==null||e.cancel()});
var y=_.oR(q.data,{equals:function(e,t){return e.iconName===t.iconName&&e.iconStyle===t.iconStyle&&e.iconSize===t.iconSize&&e.iconSetName===t.iconSetName&&e.iconSelected===t.iconSelected}},"aoiXAb");
_.DG(function(){var e,t=(e=q.options)==null?void 0:e.call(q);vxc(w,u,y(),t)});
return _.W("span",{class:"yt-icon-shape",el:w})},"i");
bcu.idomCompat=!0;var ZZj=["youtube_fill","youtube_outline"];var DST=new _.CH({type:"iconset",value:void 0}),l1=function(){var q=_.Y.apply(this,arguments)||this;q.isDarkTheme=document.documentElement.hasAttribute("dark");q.iconName="";q.iconsetName="yt-icons";q.iconset=null;q.missingIconSet=!1;q.iconType=null;q.iconShapeDataSignal=_.r4(void 0,void 0,"RQ9kUb");q.renderingOptionsSignal=_.r4({iconWidth:"100%",iconHeight:"100%",iconFilter:q.iconFilter},void 0,"qtx8Ef");q.wizHasRendered=!1;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.O(l1,_.Y);_.k=l1.prototype;_.k.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&(this.isDarkTheme=q)};
_.k.handlePropertyChange=function(){var q=this,w,u,y,e,t,X,G,n,N,Q;return _.F(function(I){switch(I.nextAddress){case 1:if(w=!q.icon&&!q.iconName||!q.isAttached)return I.return();u=q;y=u.icon;e=u.size;t=u.defaultToFilled;X=u.active;G=u.targetContainer;q.toggleContainerClass(G);_.T("kevlar_use_wil_icons")&&y&&(n=NOJ(y),q.iconType=n.length?n[1]:null);if(y){I.jumpTo(2);break}q.iconsetName="";q.iconName="";return _.H(I,q.renderIcon(G,y),3);case 3:return I.return();case 2:N=q.computeIcon(y);Q=NOJ(N);Q.length&&
(q.iconsetName=Q[0],q.iconName=Q[1]);if(!_.T("kevlar_use_wil_icons")){I.jumpTo(4);break}return _.H(I,q.getIconShapeData(),5);case 5:q.iconShapeData=I.yieldResult;case 4:if(q.shouldRenderIconShape(G)){I.jumpTo(6);break}return _.H(I,q.determineIconSet(N,X,t,e,G),6);case 6:return _.H(I,q.renderIcon(G,y),0)}})};
_.k.toggleContainerClass=function(q){q?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.k.computeIcon=function(q){return!_.T("default_to_innertube_icon")||q.indexOf(":")>0?q:_.Fy(q)};
_.k.determineIconSet=function(q,w,u,y){var e=this;return _.F(function(t){return t.nextAddress==1?_.T("kevlar_system_icons")||_.Et("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Et("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.H(t,e.switchToYtSysIconset(q,w,u,y),3):t.jumpTo(2):t.nextAddress!=2?t.return():_.H(t,e.useYtSysIconsetForMissingIcons(q,w,u,y),0)})};
_.k.switchToYtSysIconset=function(q,w,u,y){var e=this,t,X,G,n,N,Q,I;return _.F(function(U){switch(U.nextAddress){case 1:if(!q||e.iconsetName!=="yt-icons"&&e.iconsetName!=="yt-sys-icons"){U.jumpTo(0);break}t=NOJ(q);X=t[1];X=_.oa7(X);_.T("enable_polymer_icons_replace_underscores_dash")&&X.includes("_filled")&&(X=X.replace(/_filled/g,"-filled"));return _.H(U,Xy(X,!0),3);case 3:return G=U.yieldResult,_.H(U,Xy(X,!1),4);case 4:if((n=U.yieldResult)||w&&G)e.iconsetName="yt-sys-icons";e.iconName=e.getIconName(X,
w,u,n,G);if(y===24){U.jumpTo(0);break}N="yt-sys-icons"+y+":"+e.iconName;return _.H(U,Xy(N,!1,!0),6);case 6:return Q=U.yieldResult,_.H(U,Xy(N,!0,!0),7);case 7:I=U.yieldResult;e.iconName=e.getIconName(X,w,u,Q,I);if(!w&&Q||w&&I)e.iconsetName="yt-sys-icons"+y;_.HI(U)}})};
_.k.getIconName=function(q,w,u,y,e){q.includes("-filled")&&(q=q.replace("-filled",""));return e&&(w||u)?q+"-filled":q};
_.k.useYtSysIconsetForMissingIcons=function(q,w,u,y){var e=this,t,X;return _.F(function(G){if(G.nextAddress==1)return e.iconsetName!=="yt-icons"?G.jumpTo(0):_.H(G,Xy(e.iconName,!1,!1,!0),3);if(G.nextAddress!=4)return t=G.yieldResult,_.H(G,Xy(e.iconName,!1),4);X=G.yieldResult;if(t||!X)return G.jumpTo(0);e.iconsetName="yt-sys-icons";return _.H(G,e.switchToYtSysIconset(q,w,u,y),0)})};
_.k.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.k.getIconManager=function(){return _.F(function(q){try{return q.return(_.tG().resolve(_.Gj))}catch(w){return q.return(new Promise(function(u){_.DU().parkOrScheduleJob(function(){u(_.tG().resolve(_.Gj))},2,"ci")}))}})};
_.k.getIconShapeData=function(){var q=this,w,u,y,e,t,X;return _.F(function(G){if(G.nextAddress==1){if(!q.iconType)return G.return(void 0);w=q.iconType.toLowerCase();u=w.endsWith("_filled")||w.endsWith("-filled");return _.H(G,q.getIconManager(),2)}y=G.yieldResult;e=q.active||q.defaultToFilled||u?"youtube_fill":"youtube_outline";t={iconName:w,iconStyle:e,iconSize:q.size,iconSetName:q.iconsetName};X=!!y.resolveIcon(t);X||(t.iconSize=void 0,X=!!y.resolveIcon(t));!X&&u&&(t.iconName=w.substring(0,w.length-
7),t.iconSize=q.size,X=!!y.resolveIcon(t),X||(t.iconSize=void 0,X=!!y.resolveIcon(t)));X||(t.iconStyle=void 0,X=!!y.resolveIcon(t));X||_.Y8(new _.fv("Icon not supported",{iconName:t.iconName,iconStyle:t.iconStyle,iconSize:t.iconSize,iconType:w}));return G.return(X?t:void 0)})};
_.k.shouldRenderIconShape=function(q){if(!_.T("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;q=this.getContainer(q);return!aFy(q,this.icon)};
_.k.renderIcon=function(q,w){var u=this,y,e,t,X,G,n,N,Q;return _.F(function(I){switch(I.nextAddress){case 1:if(w&&u.icon!==w)return I.return();y=u.getContainer(q);e=aFy(y,u.icon);if(u.shouldRenderIconShape(q)&&u.iconType)return u.applyIconShape(e,y),I.return();u.removeIconShape();if(!y)return I.return();u.iconName===""&&u.iconset&&y&&(u.removeStaticIcon(u.iconset,y),e&&u.removeAnimatedIcon(y));if(u.iconName===""&&u.iconset||!u.iconsetName||!DST)return I.return();u.iconset=DST.byKey(u.iconsetName);
if(!u.iconset)return u.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Fj(u,u.onIconsetAdded)),I.return();u.missingIconSet&&(u.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Fj(u,u.onIconsetAdded)));X=(t=e||u.isAnimatedIcon?J9y(u.icon):void 0)&&!t.lazyLoad;n=t&&((G=t)==null?void 0:G.lazyLoad)&&(t.lottiePlayerProps.animationConfig.animationData?!0:nT.get(u.isDarkTheme?t.pathDarkTheme:t.path)?!0:!1);if(X||n)return u.applyAnimatedIcon(y,t,u.iconset),I.return();if(n||
(N=t)==null||!N.lazyLoad){I.jumpTo(2);break}Q=Zcj(t,u.isDarkTheme);u.applyStaticIcon(u.iconset,y,u.iconName,q,e);return _.H(I,Q,3);case 3:return _.H(I,u.renderIcon(u.targetContainer,u.icon),4);case 4:return I.return();case 2:u.applyStaticIcon(u.iconset,y,u.iconName,q,e),_.HI(I)}})};
_.k.getContainer=function(q){var w,u=(w=vpM(this.hostElement))==null?void 0:w.host;w=!!u&&!!u.polymerController;if(!q||w)return q?this.getTargetContainer(q,u):this.hostElement};
_.k.getTargetContainer=function(q,w){var u=_.A(w).querySelector("#"+q);u||(q=new _.fv("yt-icon container missing",w.is,q),_.vm(q));return u};
_.k.applyStaticIcon=function(q,w,u,y,e){e&&this.removeAnimatedIcon(w);this.removeIconShape();e=e&&!!this.iconType&&!!this.iconShapeData&&_.T("kevlar_use_wil_icons");try{e?this.applyIconShape(!1,w):q.applyIcon(w,u)}catch(t){this.handleError(t,y,w)}};
_.k.applyIconShape=function(q,w){this.iconset&&w&&(this.removeStaticIcon(this.iconset,w),q&&this.removeAnimatedIcon(w));q={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var u=_.P(this.iconShapeDataSignal);w=u.next().value;u=u.next().value;var y=_.P(this.renderingOptionsSignal),e=y.next().value;y=y.next().value;u(this.iconShapeData);y(q);if(!this.wizHasRendered)for(this.wizHasRendered=!0,q=_.P(Y0H(w,e)).next().value;q.firstChild;)_.A(this.hostElement).appendChild(q.firstChild)};
_.k.removeIconShape=function(){if(_.T("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.k.removeStaticIcon=function(q,w){q.removeIcon(w)};
_.k.applyAnimatedIcon=function(q,w,u){this.removeStaticIcon(u,q);this.removeIconShape();var y;u=this.animatedIconElement&&((y=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:y.type)===w.type;if(this.animatedIconElement&&u){this.animatedIconElement.polymerController.animatedIcon=w;var e;((e=this.animatedIconElement)==null?void 0:e.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(q),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=w,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.T("kevlar_use_wil_icons")?q.insertBefore(this.animatedIconElement,q.childNodes[0]):(q=_.A(q),q.insertBefore(this.animatedIconElement,q.childNodes[0]))};
_.k.removeAnimatedIcon=function(q){_.T("kevlar_use_wil_icons")?this.animatedIconElement&&q.contains(this.animatedIconElement)&&q.removeChild(this.animatedIconElement):(q=_.A(q),this.animatedIconElement&&q.contains(this.animatedIconElement)&&q.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.k.handleError=function(q,w,u){_.gs(q,this.iconName,w,u);w=aFy(u,this.icon);var y=!1;window.location.href.includes("JpymaW6Lh2w")?y=!0:u._svgIcon&&(u=(u=u._svgIcon.parentNode)?u.tagName:"unknown",_.gs(q,u),u==="YT-ICON"&&q.name==="NotFoundError"?y=!0:q.name==="NotFoundError"&&w&&(y=!0));y?_.Y8(q):_.vm(q)};
_.x$.Object.defineProperties(l1,{template:{configurable:!0,enumerable:!0,get:function(){if(af$===void 0){var q=document.createElement("template");_.f(q,"\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");q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;
zAT===void 0&&(zAT=document.createElement("template"));var y=zAT;u.call(w,y.content.cloneNode(!0),q.content.firstChild);af$=q}q=af$;return q}}});
l1.prototype.handlePropertyChange=l1.prototype.handlePropertyChange;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],l1.prototype,"actionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",String)],l1.prototype,"icon",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],l1.prototype,"active",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],l1.prototype,"defaultToFilled",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],l1.prototype,"isAnimatedIcon",void 0);
_.c([_.v({value:24}),_.h("design:type",Number)],l1.prototype,"size",void 0);_.c([_.v({value:""}),_.h("design:type",String)],l1.prototype,"targetContainer",void 0);_.c([_.v(),_.h("design:type",Object)],l1.prototype,"animatedIconElement",void 0);_.c([_.v(),_.h("design:type",Object)],l1.prototype,"isDarkTheme",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],l1.prototype,"ariaHidden",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],l1.prototype,"ariaLabel",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],l1.prototype,"role",void 0);_.c([_.v(),_.h("design:type",String)],l1.prototype,"style",void 0);_.c([_.v(),_.h("design:type",String)],l1.prototype,"iconFilter",void 0);_.c([_.nL("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],l1.prototype,"handlePropertyChange",null);
l1=_.c([_.JM({is:"yt-icon",noInjection:!0})],l1);var ZSG;var pHx=function(){var q=document.body,w=q.appendChild;if(ZSG===void 0){var u=document.createElement("template");_.f(u,'\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>');
ZSG=u}u=ZSG;w.call(q,u.content)};
document.body?pHx():window.addEventListener("DOMContentLoaded",pHx);var $S6,vaT=function(){return $S6!==void 0?$S6:$S6=document.createElement("template")};
document.head.appendChild(vaT().content);var bSj,YSG=function(){return bSj!==void 0?bSj:bSj=document.createElement("template")};
document.head.appendChild(YSG().content);var gaT;_.LK=new _.MH("KEY_MANAGER_TOKEN");var S0s={duration:1E3,easing:"ease",fill:"forwards"};_.t2(c9f);var Ea$=_.N9(_.hkJ);_.t2(_.hkJ);_.Mq=_.LL(function(q){var w=_.Bm(q.ref),u=q.aTagConfig?q.aTagConfig:_.oR(function(){var t,X,G,n,N,Q;var I=(Q=_.Zh((n=q.command)==null?void 0:n.call(q)))!=null?Q:(N=q.command)==null?void 0:N.call(q);return _.$B({innertubeCommand:I,skipOnClick:(t=q.skipOnClick)==null?void 0:t.call(q),stopPropagation:(X=q.dangerousStopPropagation)==null?void 0:X.call(q),defaultTarget:(G=q.target)==null?void 0:G.call(q)})||{}},void 0,"gnrRge");
_.DG(function(){w.value._data=u()._data;w.value.params=u().params});
var y=_.QS(function(t){var X,G;return void((G=(X=u()).onpointerdown)==null?void 0:G.call(X,t))}),e=_.QS(function(t){var X,G;
return void((G=(X=u()).onclick)==null?void 0:G.call(X,t))});
return _.W("a",{el:w,href:function(){return u().href$},
rel:function(){return u().rel$},
class:function(){var t,X;return(X=u().className)!=null?X:(t=q.className)==null?void 0:t.call(q)},
style:function(){var t;if((t=q.style)==null?0:t.call(q))return q.style();var X;return((X=q.disabled)==null?0:X.call(q))?"pointer-events:none":""},
"aria-haspopup":function(){return!!u()["aria-haspopup$"]},
"force-new-state":IV(function(){return u()["force-new-state$"]}),
title:IV(function(){var t,X;return(X=u().title$)!=null?X:(t=q.title)==null?void 0:t.call(q)}),
role:IV(function(){return u().role$}),
target:IV(function(){return u().target$}),
dir:IV(function(){var t;return((t=q.dir)==null?0:t.call(q))?q.dir():u().dir}),
tabindex:function(){var t;return u().tabindex$?Number(u().tabindex$):(t=q.tabIndex)==null?void 0:t.call(q)},
"aria-hidden":function(){var t,X;return(X=u()["aria-hidden$"])!=null?X:(t=q.ariaHidden)==null?void 0:t.call(q)},
"aria-label":function(){var t,X;return(X=u()["aria-label$"])!=null?X:(t=q.ariaLabel)==null?void 0:t.call(q)},
"aria-current":q.ariaCurrent,"aria-labelledby":q.ariaLabelledby,"aria-describedby":q.ariaDescribedby,"aria-selected":q.ariaSelected,"tab-identifier":q.tabIdentifier,"on:pointerdown":y,"on:click":e},q.children)},"j");var RAj=function(q,w){this.fillAnimation=new Animation(Lh7(q),document.timeline);this.strokeAnimation=new Animation(M2u(w),document.timeline)};
RAj.prototype.play=function(){var q,w;(w=(q=this.fillAnimation).play)==null||w.call(q);var u,y;(y=(u=this.strokeAnimation).play)==null||y.call(u)};
RAj.prototype.cancel=function(){var q,w;(w=(q=this.fillAnimation).cancel)==null||w.call(q);var u,y;(y=(u=this.strokeAnimation).cancel)==null||y.call(u)};_.dm=_.LL(function(q){var w=q.model;var u=q.pointerDownEvent;var y=q.pointerUpEvent;var e=q.pointerLeaveEvent;q=_.Bm();var t=_.rm({"border-radius":function(){return w().borderRadius}}),X=_.Bm(),G=_.Bm(),n=_.P(_.iv(function(){return(y==null?0:y())||(e==null?0:e())?!1:!(u==null||!u())||!1})),N=n.next().value,Q=n.next().value,I=void 0,U=function(){!I&&G.value&&X.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(I=new RAj(G.value,X.value));
var g;(g=I)==null||g.play()},d=function(){var g;
(g=I)==null||g.cancel()},V=function(){var g;
(g=I)==null||g.cancel()};
_.DG(function(){(y==null?0:y())&&U()});
_.DG(function(){(u==null?0:u())&&d()});
_.DG(function(){(e==null?0:e())&&V()});
n=_.QS(function(){U();Q(!1)});
var J=_.QS(function(){d();Q(!0)}),a=_.QS(function(){V();
Q(!1)});
_.ZG(function(){if(I){var g;(g=I)==null||g.cancel();I=void 0}});
var b={};N=_.HR("yt-spec-touch-feedback-shape",function(){return B3c(w().color)},(b["yt-spec-touch-feedback-shape--focused"]=function(){return!!w().focused&&!w().disabled},b["yt-spec-touch-feedback-shape--circular"]=function(){return!!w().circular},b["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!w().isExtended},b["yt-spec-touch-feedback-shape--down"]=N,b["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!w().triggerEvents},b));
return _.W("yt-touch-feedback-shape",{style:_.rm({"border-radius":"inherit"})},_.W("div",{el:q,class:N,style:_.rm({"margin-top":function(){return w().customTopExtend?"-"+w().customTopExtend+"px":void 0}}),
"on:mousedown":J,"on:mouseup":n,"on:pointerleave":a,"on:touchstart":J,"on:touchend":n,"aria-hidden":!0},_.W("div",{class:"yt-spec-touch-feedback-shape__stroke",style:t,el:X}),_.W("div",{class:"yt-spec-touch-feedback-shape__fill",style:t,el:G})))},"k");
_.dm.idomCompat=!0;var cAr={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 KK=_.QM();KK=KK.toLowerCase();if(_.H4(KK,"android")){var SSa=KK.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);SSa&&parseFloat(SSa[1])<100||KK.match("("+Object.keys(cAr).join("|")+")")};var hAT=_.LL(function(q){return _.W(_.r,{cond:q.aTagConfig,then:function(w){return _.W(_.Mq,{aTagConfig:w,disabled:q.disabled,className:q.className,style:q.style,title:q.title,ariaLabel:q.ariaLabel,ariaCurrent:function(){var u,y;return((u=q.toggleable)==null?void 0:u.call(q))&&((y=q.toggled)==null?void 0:y.call(q))}},q.children)},
else:function(){return _.W("button",{"on:click":_.QS(function(w){var u;return(u=q.onClick)==null?void 0:u.call(q,w)}),
class:q.className,title:q.title,style:q.style,disabled:q.disabled,"aria-pressed":function(){var w,u;return((w=q.toggleable)==null?0:w.call(q))?!((u=q.toggled)==null||!u.call(q)):void 0},
"aria-label":q.ariaLabel,"aria-disabled":q.visiblyDisabled,"aria-hidden":q.ariaHidden,tabindex:q.tabIndex},q.children)}})},"l"),lfT=_.LL(function(q){var w=q.data;
var u=q.hasIconLeading;var y=q.hasIconLeadingTrailing;var e=q.hasIconTrailing;var t=q.iconButton;var X=q.iconClassName;var G=q.secondaryIconClassName;var n=q.icon;var N=q.secondaryIcon;var Q=q.textContentClassName;return _.W(Bd,{className:"",style:"display: inherit; justify-content: center"},_.W(_.r,{cond:function(){return n&&(u()||y()||(t==null?void 0:t()))},
then:function(){return _.W(Bd,null,_.W("div",{class:X,"aria-hidden":"true"},n==null?void 0:n()))}}),_.W(_.r,{cond:function(){return(w().buttonText||w().animatedTextProps||w().formattedButtonText)&&!(t==null?0:t())},
then:function(){return _.W(Bd,null,_.W(jl$,{className:Q,iconPosition:function(){return w().iconPosition},
text:function(){return w().buttonText},
oneOffCustomTextWrap:function(){return w().oneOffCustomTextWrap},
formattedButtonText:function(){return w().formattedButtonText},
animatedTextProps:function(){return w().animatedTextProps}}))}}),_.W(_.r,{cond:e,
then:function(){return _.W(Bd,null,_.W("div",{class:X},n==null?void 0:n()))}}),_.W(_.r,{cond:y,
then:function(){return _.W(Bd,null,_.W("div",{class:G},N==null?void 0:N()))}}),_.W(_.r,{cond:function(){return!w().disabled&&!0},
then:function(){return _.W(_.dm,{model:function(){return{color:y8s(w())}}})}}))},"m"),jl$=_.LL(function(q){var w=function(){var u,y;
return((u=q.iconPosition)==null?void 0:u.call(q))==="icon-with-label"||((y=q.oneOffCustomTextWrap)==null?void 0:y.call(q))};
return _.W("div",{class:q.className,"aria-hidden":function(){var u,y,e;return((u=q.ariaHidden)==null?void 0:u.call(q))&&(!((y=q.animatedTextProps)==null||!y.call(q))||!((e=q.formattedButtonText)==null||!e.call(q)))}},_.W(_.zS,null,_.W(_.AP,{when:function(){var u;
return(u=q.animatedTextProps)==null?void 0:u.call(q)}},function(){return _.W(Ea$,{numberText:function(){return q.animatedTextProps().numberText},
numberValue:function(){return q.animatedTextProps().numberValue},
heightPx:function(){return q.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return q.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return q.animatedTextProps().shouldAnimate},
forceRollUp:function(){return q.animatedTextProps().forceRollUp}})}),_.W(_.AP,{when:function(){var u;
return(u=q.formattedButtonText)==null?void 0:u.call(q)}},function(){return _.W(_.Lr,{text:function(){return Object.assign({},q.formattedButtonText(),{lineBreakMode:w()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":q.formattedButtonText().lineBreakMode,
alignment:w()?"TEXT_ALIGNMENT_CENTER":q.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!w()}})}),_.W(_.AP,{when:function(){var u,y;
return((u=q.iconPosition)==null?void 0:u.call(q))==="icon-with-label"&&((y=q.text)==null?void 0:y.call(q))}},function(){return _.W(_.Lr,{text:function(){return{content:q.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.W(_.JP,null,function(){return q.text})))},"n"),L5j=_.LL(function(q){return _.W(_.r,{cond:q.hasLabel,
then:function(){var w;return _.W("label",{class:q.className},q.children,(w=q.textContent)==null?void 0:w.call(q))},
else:function(){return q.children}})},"o"),Bd=_.LL(function(q){return q.children},"p");var t6o=kC("stamper-context");var Kr=_.LL(function(q){var w=q.data;var u=q.icon;var y=q.iconName;var e=q.secondaryIcon;var t=q.secondaryIconName;var X=q.focusedOverride;sdz();var G=xVz(w),n=G.size,N=G.style;q=G.disabled;var Q=G.onTap,I=G.alignByText,U=G.aTagConfig,d=G.customColors,V=G.segmentedPosition,J=G.toggled,a=G.toggleable,b=G.accessibilityLabel,g=G.onToggle,l=G.iconPosition,S=G.oneOffCustomTextWrap,eH=G.disableTextEllipsis,x=G.disableBackdropFilter,P4=G.tooltipText,C7=G.ariaHidden,mu=G.tabIndex,Os=G.buttonText,YJ=G.formattedButtonText,
ao=G.animatedTextProps,bc=uA7(w,u,e,y,t,X),Ro=bc.type;u=bc.shouldFocus;y=bc.hasIconLeading;e=bc.hasIconTrailing;var K7=bc.hasIconLeadingTrailing,gx=bc.hasIconOnly;t=bc.hasIconOnly40;var dx=bc.hasIconWithLabel;X=bc.iconButton;var tc=bc.visiblyDisabled;G=bc.overrideSmallSizeIcon;var Fa=bc.iconToRender;bc=bc.secondaryIconToRender;var eq={},Hk={};return _.W(L5j,{className:_.HR("yt-spec-button-shape-with-label",(eq["yt-spec-button-shape-with-label--is-overlay"]=function(){return N()==="overlay"||N()===
"overlay-dark"},eq)),
hasLabel:dx,textContent:function(){return _.W(jl$,{text:Os,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:S,iconPosition:l,formattedButtonText:YJ,animatedTextProps:ao})}},_.W(hAT,{aTagConfig:U,
className:_.HR("yt-spec-button-shape-next",function(){return kgy(Ro())},function(){return tc()?void 0:tb4(N())},function(){return PHM(n())},(Hk["yt-spec-button-shape-next--disabled"]=tc,Hk["yt-spec-button-shape-next--focused"]=u,Hk["yt-spec-button-shape-next--icon-trailing"]=e,Hk["yt-spec-button-shape-next--icon-leading"]=y,Hk["yt-spec-button-shape-next--icon-leading-trailing"]=K7,Hk["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return K7()&&!(Os()||YJ())},Hk["yt-spec-button-shape-next--icon-button"]=
function(){return gx()||dx()},Hk["yt-spec-button-shape-next--icon-only-default"]=t,Hk["yt-spec-button-shape-next--align-by-text"]=I,Hk["yt-spec-button-shape-next--segmented-start"]=function(){return V()==="start"},Hk["yt-spec-button-shape-next--segmented-end"]=function(){return V()==="end"},Hk["yt-spec-button-shape-next--override-small-size-icon"]=G,Hk["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=S,Hk["yt-spec-button-shape-next--disable-text-ellipsis"]=eH,Hk["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!x()&&eg6()},Hk)),
style:function(){return X5l(d()).style},
onClick:function(W3){Q==null||Q(W3);a()&&(g==null||g(W3))},
disabled:q,ariaLabel:b,toggleable:a,toggled:J,title:function(){var W3;return(W3=P4())!=null?W3:""},
visiblyDisabled:tc,ariaHidden:C7,tabIndex:mu},_.W(lfT,{data:w,hasIconLeading:y,hasIconLeadingTrailing:K7,hasIconTrailing:e,iconButton:X,icon:Fa,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:bc})))},"q");
Kr.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var MtZ=_.LL(function(q){var w=q.data;var u=q.id;var y=q.hidden;var e=q.className;var t=q.iconName;var X=q.secondaryIconName;q=_.P(_.r4(!1,void 0,"RyKHFc"));var G=q.next().value,n=q.next().value,N=function(){var I=_.tG().resolve(_.kF(_.LK));I&&n(I.isKeyBoardInUse())},Q=function(){n(!1)};
q=_.Bm(function(I){if(_.tG().resolve(_.kF(_.LK)))return I.addEventListener("focusin",N),I.addEventListener("focusout",Q),function(){I.removeEventListener("focusin",N);I.removeEventListener("focusout",Q)}});
return _.W("yt-button-shape",{el:q,id:u,class:e,hidden:y},_.W(_.r,{cond:w,then:function(){return _.W(Kr,{data:w,iconName:t,secondaryIconName:X,focusedOverride:G})}}))},"r");
_.T("web_wiz_button_shape")&&_.q9(MtZ,"yt-button-shape",{props:{data:_.pK,id:_.pK,hidden:_.pK,className:_.pK,iconName:_.pK,secondaryIconName:_.pK},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var xY=function(){var q=_.Y.apply(this,arguments)||this;q.keyboardFocused=!1;return q};
_.O(xY,_.Y);xY.prototype.onFocus=function(){var q=_.tG().resolve(_.kF(_.LK));q&&(this.keyboardFocused=q.isKeyBoardInUse())};
xY.prototype.onBlur=function(){this.keyboardFocused=!1};
xY.prototype.renderIdom=function(){var q=this;if(this.data){var w=TW(this.data,!!this.iconName),u=w5u(this.data);this.data.focused=this.keyboardFocused;HtH(this.data,function(){var y;m6("yt-icon",{icon:q.iconName,active:(y=q.data)==null?void 0:y.toggled,size:w,style:"width: "+w+"px; height: "+w+"px;",iconFilter:u},w_)},function(){var y;
m6("yt-icon",{icon:q.secondaryIconName,active:(y=q.data)==null?void 0:y.toggled,size:w,style:"width: "+w+"px; height: "+w+"px;",iconFilter:u},w_)});
_.t7(this.hostElement,"yt-renderidom-finished")}};
_.x$.Object.defineProperties(xY,{template:{configurable:!0,enumerable:!0,get:function(){if(gaT===void 0){var q=document.createElement("template");_.f(q,"\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");
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);q.content.insertBefore(YSG().content.cloneNode(!0),q.content.firstChild);q.content.insertBefore(vaT().content.cloneNode(!0),q.content.firstChild);gaT=q}q=gaT;return q}}});
xY.prototype.onBlur=xY.prototype.onBlur;xY.prototype.onFocus=xY.prototype.onFocus;_.c([_.D(THZ),_.h("design:type",Object)],xY.prototype,"ytIdomTemplatingBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],xY.prototype,"data",void 0);_.c([_.v(),_.h("design:type",String)],xY.prototype,"iconName",void 0);_.c([_.v(),_.h("design:type",String)],xY.prototype,"secondaryIconName",void 0);_.c([_.v(),_.h("design:type",Object)],xY.prototype,"keyboardFocused",void 0);
_.c([_.Gm("focusin"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xY.prototype,"onFocus",null);_.c([_.Gm("focusout"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xY.prototype,"onBlur",null);xY=_.c([_.JM({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.T("web_wiz_button_shape")})],xY);_.q9(_.LL(function(q){function w(){u().seconds&&t(pi4({seconds:Number(u().seconds)-Date.now()/1E3}))}
var u=q.targetTimestamp;q=q.className;var y=_.P(_.r4("",void 0,"U1Q8Ae")),e=y.next().value,t=y.next().value;_.DR(function(){w();var X=setInterval(function(){w()},1E3);
_.ZG(function(){clearInterval(X)})});
return _.W("yt-countdown",{class:_.HR("ytCountDownHost",q)},_.W("div",null,e))},"s"),"yt-countdown",{props:{targetTimestamp:_.pK,
className:_.xB}});_.Zs=_.LL(function(q){var w=q.data;var u=q.className;var y=q.style;var e=q.useOutlinedIcon;var t=q.buttonOverrides;var X=q.animatedTextProps;var G=q.onClick;var n=_.Bm(function(a){return function(){ClZ(_.e0(),a)}}),N=function(){return w().iconName},Q,I=(Q=_.tG().resolve(_.kF(_.Rg)))==null?void 0:Q(),U=function(){var a=w();
var b=t==null?void 0:t(),g=X==null?void 0:X();if(a){var l=Ivl(a.type);var S=!!a.title||!!a.titleFormatted;var eH=!(!a.iconName&&!a.iconImage);S=eH&&!S?"icon-only":eH?a.iconTrailing||a.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;S==="icon-only-40"&&(l="text");var x,P4=(x=b==null?void 0:b.disabled)!=null?x:a.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||a.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";x=Object;eH=x.assign;var C7=a.title,mu=a.titleFormatted;g=g&&g.numberText&&
!isNaN(Number(g.numberValue))?g:void 0;var Os=a.accessibilityText,YJ=Qdu(a.style),ao=itc(a.state),bc=r87(a.buttonSize),Ro=Nh6(a,n,P4,G);P4=P4&&!a.onDisabledTap;var K7=_.$B({elementsCommand:a.onTap,forceNewState:!0});K7=v6(K7)?K7:void 0;var gx=a.customFontColor,dx=a.customBackgroundColor;var tc=a.customBorderColor;var Fa=a.customDarkThemeFontColor,eq=a.customDarkThemeBackgroundColor,Hk=a.customDarkThemeBorderColor;gx=I&&Fa?Fa:gx;dx=I&&eq?eq:dx;tc=I&&Hk?Hk:tc;tc={color:gx?_.Je(gx):void 0,backgroundColor:dx?
_.Je(dx):void 0,borderColor:tc?_.Je(tc):void 0};a=eH.call(x,{},{buttonText:C7,formattedButtonText:mu,animatedTextProps:g,accessibilityLabel:Os,style:YJ,type:l,state:ao,size:bc,iconPosition:S,onTap:Ro,disabled:P4,aTagConfig:K7,customColors:tc,tooltipText:a.tooltip},b)}else a={style:"mono",type:"text",state:"active",size:"M"};a.focused=J();return a},d=function(){return TW(U(),!!w().iconName)};
q=_.P(_.r4(!1,void 0,"JjUrEe"));Q=q.next().value;var V=q.next().value,J=Q;q=_.QS(function(){var a=_.tG().resolve(_.kF(_.LK));a&&V(a.isKeyBoardInUse());return!1});
Q=_.QS(function(){V(!1);return!1});
_.DG(function(){var a,b=_.C(w==null?void 0:(a=w())==null?void 0:a.onVisible,_.Dh);b&&_.px(b,{disableClickTracking:!0})});
_.p4(function(){n.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var a=w().targetId;a&&_.Ozc(_.e0(),a,n.value)});
return _.W("button-view-model",{el:n,class:_.HR("yt-spec-button-view-model",u),"on:focusin":q,"on:focusout":Q},_.W(_.r,{cond:function(){return w().iconImage?{sources:[w().iconImage]}:void 0},
then:function(a){return _.W(Kr,{data:U,icon:function(){return _.W(_.ln,{data:a,alt:"",targetWidth:d,targetHeight:d,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.W(Kr,{data:U,icon:function(){return _.W(_.U3,{icon:N,active:function(){return(e==null?0:e())?!1:U().toggled},
animateIcon:function(){var a;return!!(y==null?0:(a=y())==null?0:a.animateIcon)},
size:d})}})}}))},"t");
_.Zs.idomCompat={callbacks:{onClick:!0}};_.q9(_.LL(function(q){return _.W("yt-button-view-model",{id:q.id,class:_.HR(q.scopingClassName,q.classes),icon:function(){var w;return(w=q.icon)==null?void 0:w.call(q)},
"dialog-dismiss":function(){var w;return((w=q.dialogDismiss)==null?0:w.call(q))?"":void 0}},_.W(_.Zs,{data:function(){var w;
return(w=q.data)==null?void 0:w.call(q)},
className:function(){var w;return(w=q.className)==null?void 0:w.call(q)},
style:function(){var w;return(w=q.style)==null?void 0:w.call(q)},
useOutlinedIcon:function(){var w;return(w=q.useOutlinedIcon)==null?void 0:w.call(q)},
buttonOverrides:function(){var w;return(w=q.buttonOverrides)==null?void 0:w.call(q)},
animatedTextProps:function(){var w;return(w=q.animatedTextProps)==null?void 0:w.call(q)},
onClick:function(w){var u;return(u=q.onClick)==null?void 0:u.call(q,w)}}))},"u"),"yt-button-view-model",{props:{data:_.pK,
className:_.pK,style:_.pK,useOutlinedIcon:_.pK,buttonOverrides:_.pK,animatedTextProps:_.pK,onClick:_.xB,scopingClassName:_.pK,id:_.pK,icon:_.pK,dialogDismiss:_.pK,classes:_.pK}});var qc=function(){var q=_.Y.apply(this,arguments)||this;q.isGoalActive=!0;return q};
_.O(qc,_.Y);qc.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
qc.prototype.progressBarChanged=function(){var q=_.A(this.hostElement).querySelector("#progress-bar-progress"),w,u,y,e=(y=Number((w=this.creatorGoalState)==null?void 0:w.currentGoalCount)/Number((u=this.creatorGoalState)==null?void 0:u.totalGoalCount)*100)!=null?y:0,t;q.style.width=((t=Math.min(e,100))!=null?t:0)+"%"};
qc.prototype.goalStateChanged=function(){var q;this.isGoalActive=((q=this.creatorGoalState)==null?void 0:q.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var w;q={"--yt-progress-bar-color":cAH((w=this.creatorGoalState)==null?void 0:w.progressBarColor)};_.Pj(this.hostElement,q)};
qc.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.x$.Object.defineProperties(qc.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var q;return this.isGoalActive&&!((q=this.creatorGoalState)==null||!q.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.creatorGoalState)==null?0:q.endTimestampMs){var w;q=Number((w=this.creatorGoalState)==null?void 0:w.endTimestampMs)/1E3;return{seconds:String(q)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.creatorGoalState)==null?0:q.themedTargetImage){var w;q=_.C((w=this.creatorGoalState)==null?void 0:w.themedTargetImage,LZG);return this.isAppDarkTheme()?q==null?void 0:q.imageDark:q==null?void 0:q.imageLight}}}});
_.x$.Object.defineProperties(qc,{template:{configurable:!0,enumerable:!0,get:function(){return TOX()}}});
qc.prototype.goalStateChanged=qc.prototype.goalStateChanged;qc.prototype.progressBarChanged=qc.prototype.progressBarChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],qc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.oN),_.h("design:type",Object)],qc.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],qc.prototype,"ytRendererBehavior",void 0);
_.c([_.v({selectorArgs:["data.creatorGoalEntityKey"],selector:function(q,w){return _.HQ(q.entities,"creatorGoalEntity",w)}}),
_.h("design:type",Object)],qc.prototype,"creatorGoalState",void 0);_.c([_.v(),_.h("design:type",Object)],qc.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],qc.prototype,"isGoalActive",void 0);_.c([_.Z("creatorGoalState","isGoalActive"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],qc.prototype,"shouldShowCountdown",null);_.c([_.Z("creatorGoalState"),_.h("design:type",Object),_.h("design:paramtypes",[])],qc.prototype,"endTimestamp",null);
_.c([_.Z("creatorGoalState"),_.h("design:type",Object),_.h("design:paramtypes",[])],qc.prototype,"targetIconThemedImage",null);_.c([_.nL("creatorGoalState.currentGoalCount"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qc.prototype,"progressBarChanged",null);_.c([_.nL("creatorGoalState.creatorGoalState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qc.prototype,"goalStateChanged",null);
qc=_.c([_.JM({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],qc);_.R(qc,"yt-creator-goal-progress-flow-view-model",function(){return TOX()},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var K5r;var BOx;var wS=function(){return _.Y.apply(this,arguments)||this};
_.O(wS,_.Y);wS.prototype.attached=function(){var q,w,u;if(this==null?0:(q=this.data)==null?0:(w=q.pdgPurchasedBumperLoggingDirectives)==null?0:(u=w.loggingDirectives)==null?0:u.trackingParams){var y,e,t;CHl(this==null?void 0:(y=this.data)==null?void 0:(e=y.pdgPurchasedBumperLoggingDirectives)==null?void 0:(t=e.loggingDirectives)==null?void 0:t.trackingParams)}};
wS.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],wS.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],wS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],wS.prototype,"data",void 0);wS=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],wS);
_.R(wS,"yt-live-chat-item-bumper-view-model",function(){if(BOx===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;K5r===void 0&&(K5r=document.createElement("template"));var y=K5r;u.call(w,y.content.cloneNode(!0),q.content.firstChild);BOx=q}q=BOx;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var xSr;var qd6;_.lv=function(q,w){this.data=q;this.actions=w;this.data=q;this.actions=w};
_.Yo=function(){};_.ux={};_.ux.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(q,w){dJH(this.hostElement,q,w)},
getNavigationEndpointPopupAction:function(q){return OtM(q,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(q,w){oA7(this.hostElement,q,w,this.openPopupConfig)}};var p5s=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.yL={};
_.yL.YtEndpointBehavior=[_.ux.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Et("openPopupConfig");(this.useClickHandler=_.RX("useClickHandler",!1))?this.hostElement.addEventListener("click",Xj(this,this.onEndpointClick_)):(DO(this.hostElement,"tap",Xj(this,this.onEndpointTap_)),DO(this.hostElement,"touchend",Xj(this,this.onEndpointTouchEnd_)));DO(this.hostElement,"touchstart",Xj(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
Xj(this,this.onEndpointTapStart_))},
onEndpointClick_:function(q){mJy(this.hostElement,q,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(q){var w=this.hostElement,u=this.openPopupConfig,y=this.disableCommandHandlerOverride;y=y===void 0?!1:y;var e=Vbl(q);if(e){e.href&&Du(e.href);var t=q.detail;var X=t.sourceEvent;t=t.preventer;X=X.button!==void 0?X.button===0&&!VS(X):t?!VS(t):!0;e.data&&X&&fvz(w,e,q,u,y)}},
onEndpointTouchEnd_:function(q){VS(q)||Vbl(q)&&q.preventDefault()},
onEndpointTapStart_:function(q){DJs(q)}}];var $Jz="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),btu=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var wbj={};wbj.YtPlaintextBehavior=[_.IZ,{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(q){q.preventDefault();q=q.clipboardData.getData("text/plain");document.execCommand("insertText",!1,q)},
preventRichTextFormatting_:function(q){_.Gs&&(q=q.detail.keyboardEvent,q.stopImmediatePropagation(),q.preventDefault())}}];var uIa;var y0a;var eX=function(){var q=_.Y.apply(this,arguments)||this;q.ignoreShadyDom=!1;q.hasChange_=!1;q.hasSetTitle_=!1;q.useIOObserverForVisibilityLogging_=_.T("kevlar_use_vimio_behavior")&&_.Et("INNERTUBE_CLIENT_NAME")==="WEB";q.ytFormattedStringObserverHandlerKeys_=void 0;return q};
_.O(eX,_.Y);_.k=eX.prototype;_.k.created=function(){this.useIOObserverForVisibilityLogging_=_.T("kevlar_use_vimio_behavior")&&_.Et("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.k.ready=function(){_.Et("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_()};
_.k.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.k.detached=function(){this.unobserveIOObservers_()};
_.k.clearContents_=function(){for(var q=this.getRoot(),w=q.lastChild;w&&w.tagName!=="STYLE";){try{q.removeChild(w)}catch(u){break}w=q.lastChild}};
_.k.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var q=_.P(this.ytFormattedStringObserverHandlerKeys_),w=q.next();!w.done;w=q.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(w.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.k.resetForAttributedString=function(){var q=this.getRoot();!q.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),q.appendChild(this.ytAttributedStringElementRef))};
_.k.resetForFormattedString=function(){var q=this.getRoot(),w=q.querySelector("yt-attributed-string");w&&(this.ytAttributedStringElementRef=q.removeChild(w))};
_.k.textChanged=function(){this.textChanged_(this.text)};
_.k.textChanged_=function(q){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!q||!q.runs&&!q.simpleText;if(_.T("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var w=this.hostElement.firstChild;w&&w.nodeName==="FONT";){var u=w;w=w.nextSibling;this.hostElement.removeChild(u)}w=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
u=q.simpleText;var y;!u&&((y=q.runs)==null?void 0:y.length)===1&&this.isSimpleString_(q.runs[0])&&(u=q.runs[0].text);u!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Et("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(u!==void 0){try{w.textContent=u}catch(e){}w.textContent||(this.isEmpty=!0)}else q=q.runs,u!==void 0&&(q=[{text:u}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),q&&this.updateText_(q),
w.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.k.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)};
_.k.computeAriaLabel_=function(q){return q};
_.k.computeEllipsisTruncateStyling=function(q,w){return q&&!w};
_.k.computeUseAttributedString=function(q){return _.T("web_replace_formatted_with_attributed_string")&&t1H(q)&&!this.disableAttributedString&&!this.enableContentEditable};
_.k.setNodeStyle_=function(q,w){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.T("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?w.removeAttribute("dir"):w.setAttribute("dir","auto");w.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");w.style.color="";var u=null;this.noStyles||(q.bold&&(w.classList.add("bold"),u="bold"),q.deemphasize&&(w.classList.add("deemphasize"),u="deemphasize"),q.italics&&w.classList.add("italic"),
q.strikethrough&&w.classList.add("strikethrough"),q.errorUnderline&&(w.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),q.bracket&&w.classList.add("bracket"),q.textColor&&(w.style.color=_.Ae(q.textColor)));u!==w.getAttribute("style-target")&&(u?w.setAttribute("style-target",u):w.removeAttribute("style-target"))};
_.k.setUpVisibilityLogging_=function(q,w){var u=this;this.setNodeTrackingParams_(q,w);var y;((y=w.data)==null?0:y.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(q=this.ytRendererBehavior.visibilityObserver.observe(w,function(e){var t=u.ytRendererBehavior.getVisibilityLogger();t&&t.reportShown(e)},this.ytRendererBehavior.visibilityOptionVisible_),w=this.ytRendererBehavior.visibilityObserver.observe(w,function(e){var t=u.ytRendererBehavior.getVisibilityLogger();
t&&t.reportHidden(e)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(q),this.ytFormattedStringObserverHandlerKeys_.push(w))};
_.k.setNodeTrackingParams_=function(q,w){w.data||(w.data={});if((q=q.loggingDirectives?q.loggingDirectives.trackingParams:null)||w.data.trackingParams)w.data.trackingParams=q};
_.k.computeHasLinkOnly_=function(q){return!(!q||q.length!==1||this.noEndpoints||!q[0].navigationEndpoint)};
_.k.getRoot=function(){var q=this.buildScopeDomOptions();return this.enableContentEditable?_.A(_.A(this.hostElement,q).querySelector("[contenteditable]")):_.A(this.hostElement,q)};
_.k.fixContenteditableScope=function(){var q=function(w){w&&(w.nodeType===1&&w.classList&&(w.classList.add("style-scope"),w.classList.add("yt-formatted-string")),w.childNodes&&w.childNodes.forEach(function(u){q(u)}))};
q(this.getRoot())};
_.k.updateText_=function(q){for(var w=q.length,u=this.getRoot(),y=u.firstChild;y&&y.nodeName==="STYLE";)y=y.nextSibling;for(var e=0;e<w&&y;){var t=q[e],X=_.T("remove_cr_char")&&t.text?t.text.replace("\r",""):t.text;if(this.isSimpleString_(t)&&!this.useMixedDirectionFormattedStrings)if(y.nodeName==="#text"){y.textContent!=X&&(y.textContent=X);e++;y=y.nextSibling;continue}else break;if(_.C(t,zj))break;else if(!this.noEndpoints&&t.navigationEndpoint){if(y.nodeName!=="A")break;this.setDataOnAnchor_(y,
t.navigationEndpoint)}else if(y.nodeName!=="SPAN")break;this.setNodeStyle_(t,y);this.setUpVisibilityLogging_(t,y);y.textContent!=X&&(y.textContent=X);e++;y=y.nextSibling}if(y)for(t=u.lastChild,y=e?y.previousSibling:null;t&&t!=y;){try{u.removeChild(t)}catch(G){break}t=u.lastChild}e!==w&&this.addTextNodes_(q,e)};
_.k.addTextNodes_=function(q,w){for(var u=document.createDocumentFragment(),y=q.length;w<y;w++){var e=q[w],t=_.T("remove_cr_char")&&e.text?e.text.replace("\r",""):e.text;if(this.isSimpleString_(e)&&!this.useMixedDirectionFormattedStrings)u.appendChild(document.createTextNode(t));else{var X=_.C(e,zj);if(X){if(X.image){var G=document.createElement("img");X.isCustomEmoji||G.classList.add("small-emoji");G.classList.add("emoji");X.isCustomEmoji&&(G.dataset.emojiId=X.emojiId);G.src=_.wm(X.image.thumbnails,
this.emojiSize);(e=this.get("image.accessibility.accessibilityData.label",X))?G.alt=e:X.shortcuts&&X.shortcuts.length>0?G.alt=X.shortcuts[0]:X.emojiId&&(G.alt=X.emojiId);u.appendChild(G);this.hasEmoji=!0}}else!this.noEndpoints&&e.navigationEndpoint?(G=document.createElement("a"),G.classList.add("yt-simple-endpoint"),G.setAttribute("spellcheck","false"),this.setDataOnAnchor_(G,e.navigationEndpoint)):G=document.createElement("span"),this.setNodeStyle_(e,G),this.setUpVisibilityLogging_(e,G),G.appendChild(document.createTextNode(t)),
u.appendChild(G)}}this.getRoot().appendChild(u)};
_.k.isSimpleString_=function(q){return(this.noEndpoints||!q.navigationEndpoint)&&!_.C(q,zj)&&(this.noStyles||!(q.bold||q.deemphasize||q.italics||q.strikethrough||q.errorUnderline||q.bracket||q.textColor))&&!q.loggingDirectives};
_.k.getRawText=function(){return _.lA(this.text)};
_.k.getFirstRunText=function(){var q;if(((q=this.text)==null?0:q.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.k.setFirstRunText=function(q){var w;((w=this.text)==null?0:w.runs)&&this.text.runs[0]&&(this.text.runs[0].text=q,this.textChanged_(this.text))};
_.k.setDataOnAnchor_=function(q,w){var u=this;!_.T("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(w)||this.isSignalServiceEndpoint_(w)?(q.onclick=this.serviceEndpointHandler_(w),VE(q,"#")):oBj({text:this.text,command:w},function(){vBJ(q,w,u.target)})};
_.k.isServiceEndpoint_=function(q){var w;return!((w=_.C(q==null?void 0:q.commandMetadata,_.wk))==null||!w.sendPost)};
_.k.isSignalServiceEndpoint_=function(q){return!!_.C(q,_.NU)};
_.k.serviceEndpointHandler_=function(q){var w=this;return function(u){_.GM(w.hostElement,[q]);u.preventDefault()}};
_.k.overrideAriaLabelChanged_=function(){var q=this.getRoot();this.enableContentEditable&&q&&q.setAttribute("aria-label",this.overrideAriaLabel)};
_.k.enableContentEditableChanged_=function(){var q=this,w=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),w=_.A(this.hostElement,w),!w.lastChild||w.lastChild instanceof HTMLElement&&w.lastChild.id!=="contenteditable-root"){var u=document.createElement("div");u.id="contenteditable-root";u.setAttribute("contenteditable","true");u.setAttribute("dir","auto");u.onfocus=function(){q.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
w.appendChild(u);this.overrideAriaLabel&&u.setAttribute("aria-label",this.overrideAriaLabel)}}else u=_.y6(this.hostElement).firstChild,u instanceof HTMLElement&&u.id==="contenteditable-root"&&_.A(this.hostElement,w).removeChild(u)};
_.k.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.k.getNodesForVisibilityLogging_=function(){return _.yN(this.getRoot().childNodes,function(q){var w;return!((w=q.data)==null||!w.trackingParams)})};
_.k.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.k.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var q=this.ytRendererBehavior.getVisibilityLogger();q&&this.getNodesForVisibilityLogging_().forEach(function(w){q.reportShown(w)})}};
_.k.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var q=this.ytRendererBehavior.getVisibilityLogger();q&&this.getNodesForVisibilityLogging_().forEach(function(w){q.reportHidden(w)})}};
_.x$.Object.defineProperties(eX.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.T("enable_mixed_direction_formatted_strings")}}});
eX.prototype.enableContentEditableChanged_=eX.prototype.enableContentEditableChanged_;eX.prototype.overrideAriaLabelChanged_=eX.prototype.overrideAriaLabelChanged_;eX.prototype.ellipsisTruncateChanged_=eX.prototype.ellipsisTruncateChanged_;eX.prototype.textChanged=eX.prototype.textChanged;_.c([_.D(wbj.YtPlaintextBehavior),_.h("design:type",Object)],eX.prototype,"ytPlaintextBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],eX.prototype,"ytComponentBehavior",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],eX.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],eX.prototype,"text",void 0);_.c([_.v(),_.h("design:type",Boolean)],eX.prototype,"noEndpoints",void 0);_.c([_.v(),_.h("design:type",Boolean)],eX.prototype,"noStyles",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],eX.prototype,"isDarkTheme",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],eX.prototype,"splitLines",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],eX.prototype,"forceDefaultStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],eX.prototype,"ellipsisTruncate",void 0);_.c([_.v(),_.h("design:type",Object)],eX.prototype,"ignoreShadyDom",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.h("design:type",Boolean)],eX.prototype,"ellipsisTruncateStyling",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.h("design:type",String)],eX.prototype,"ariaLabel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],eX.prototype,"isEmpty",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.h("design:type",Boolean)],eX.prototype,"hasLinkOnly_",void 0);_.c([_.v(),_.h("design:type",Boolean)],eX.prototype,"hasEmoji",void 0);_.c([_.v(),_.h("design:type",Boolean)],eX.prototype,"disableAttributedString",void 0);_.c([_.v(),_.h("design:type",Boolean)],eX.prototype,"isOverlay",void 0);_.c([_.v(),_.h("design:type",Boolean)],eX.prototype,"linkInheritColor",void 0);
_.c([_.v(),_.h("design:type",Boolean)],eX.prototype,"noPreWrap",void 0);_.c([_.v(),_.h("design:type",Boolean)],eX.prototype,"userInput",void 0);_.c([_.v({value:16}),_.h("design:type",Number)],eX.prototype,"emojiSize",void 0);_.c([_.v(),_.h("design:type",String)],eX.prototype,"target",void 0);_.c([_.v(),_.h("design:type",Boolean)],eX.prototype,"enableContentEditable",void 0);_.c([_.v(),_.h("design:type",String)],eX.prototype,"overrideAriaLabel",void 0);
_.c([_.v(),_.h("design:type",Boolean)],eX.prototype,"respectHtmlDir",void 0);_.c([_.v(),_.h("design:type",Boolean)],eX.prototype,"respectLangDir",void 0);_.c([_.Z("plaintextOnly"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],eX.prototype,"useMixedDirectionFormattedStrings",null);_.c([_.v({computed:"computeUseAttributedString(text)"}),_.h("design:type",Boolean)],eX.prototype,"useYtAttributedString",void 0);
_.c([_.nL("text"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eX.prototype,"textChanged",null);_.c([_.nL("ellipsisTruncate"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eX.prototype,"ellipsisTruncateChanged_",null);_.c([_.nL("overrideAriaLabel"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eX.prototype,"overrideAriaLabelChanged_",null);
_.c([_.nL("enableContentEditable"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eX.prototype,"enableContentEditableChanged_",null);eX=_.c([_.JM({is:"yt-formatted-string",disableElementRegistration:!0})],eX);
_.R(eX,"yt-formatted-string",function(){if(y0a===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;uIa===void 0&&(uIa=document.createElement("template"));var y=uIa;u.call(w,y.content.cloneNode(!0),q.content.firstChild);y0a=q}q=y0a;return q});var ei$;var kNF;var t1r;var PXX;var kE=function(){var q=_.Y.apply(this,arguments)||this;q.focused=!1;q.disabled=!1;q.isOverlay=!1;return q};
_.O(kE,_.Y);kE.prototype.triggerDown=function(){if(!this.disabled){_.ef(this.hostElement,"down",!0);var q;(q=this.currentAnimation)==null||q.cancel()}};
kE.prototype.triggerUp=function(){if(!this.disabled){_.ef(this.hostElement,"down",!1);var q=this.fillElement;var w=this.strokeElement;typeof GroupEffect==="function"?(q=new GroupEffect([Lh7(q),M2u(w)]),q=new Animation(q,document.timeline)):q=new RAj(q,w);this.currentAnimation=q;var u;(u=this.currentAnimation)==null||u.play()}};
_.c([_.Wj(".stroke"),_.h("design:type",HTMLElement)],kE.prototype,"strokeElement",void 0);_.c([_.Wj(".fill"),_.h("design:type",HTMLElement)],kE.prototype,"fillElement",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],kE.prototype,"focused",void 0);_.c([_.v(),_.h("design:type",Object)],kE.prototype,"disabled",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],kE.prototype,"isOverlay",void 0);kE=_.c([_.JM({is:"yt-interaction",disableElementRegistration:!0})],kE);
_.R(kE,"yt-interaction",function(){if(PXX===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;t1r===void 0&&(t1r=document.createElement("template"));var y=t1r;u.call(w,y.content.cloneNode(!0),q.content.firstChild);PXX=q}q=PXX;return q},{mode:2});var tV=function(){return _.Y.apply(this,arguments)||this};
_.O(tV,_.Y);_.k=tV.prototype;_.k.ready=function(){var q=this,w=_.A(this.hostElement).querySelector("#button");w.addEventListener("focus",function(){RZa||(RZa=new Ezc);q.keyboardFocused=RZa.isKeyBoardInUse()});
w.addEventListener("blur",function(){q.keyboardFocused=!1;q.rippleUp_()})};
_.k.computeTabIndex_=function(q){return q?-1:0};
_.k.computeButtonAriaPressed_=function(q){if(this.toggleable)return q?"true":"false"};
_.k.rippleDown_=function(){_.A(this.hostElement).querySelector("#interaction").triggerDown()};
_.k.rippleUp_=function(){_.A(this.hostElement).querySelector("#interaction").triggerUp()};
_.k.onPressedChanged_=function(){var q=_.y6(_.A(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.y6(_.A(this.hostElement).querySelector("#button")).children[0];q&&(q.active=this.pressed)};
tV.prototype.onPressedChanged_=tV.prototype.onPressedChanged_;tV.prototype.rippleUp_=tV.prototype.rippleUp_;tV.prototype.rippleDown_=tV.prototype.rippleDown_;_.c([_.v(),_.h("design:type",String)],tV.prototype,"label",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],tV.prototype,"disabled",void 0);_.c([_.v(),_.h("design:type",Boolean)],tV.prototype,"pressed",void 0);_.c([_.v(),_.h("design:type",Object)],tV.prototype,"toggleable",void 0);
_.c([_.v(),_.h("design:type",Boolean)],tV.prototype,"untabbable",void 0);_.c([_.v(),_.h("design:type",Boolean)],tV.prototype,"keyboardFocused",void 0);_.c([_.Gm("down"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tV.prototype,"rippleDown_",null);_.c([_.Gm("up"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tV.prototype,"rippleUp_",null);
_.c([_.nL("pressed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tV.prototype,"onPressedChanged_",null);tV=_.c([_.JM({is:"yt-icon-button",disableElementRegistration:!0})],tV);
_.R(tV,"yt-icon-button",function(){if(kNF===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;ei$===void 0&&(ei$=document.createElement("template"));var y=ei$;u.call(w,y.content.cloneNode(!0),q.content.firstChild);kNF=q}q=kNF;return q},{mode:2});var Xba=_.Sc(["aria-"]),PY={};PY.YtRenderButtonBehavior=[_.B.YtRendererBehavior,_.yL.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!!_.tG().resolve(_.kF(_.LK))&&_.T("kevlar_keyboard_button_focus")},
reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0},
sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String,
readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)",
"dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1},
attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1},
get container(){return this.root},onYtButtonTapHandler:function(){},
ytButtonServiceEndpointHandler:function(){},
updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var q=this.computeHref_(this.endpoint,!0);q?VE(this.elements_.endpoint,q):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){q=this.buttonClass.split(" ");q=_.P(q);for(var w=q.next();!w.done;w=q.next())w=w.value,_.ef(this.hostElement,w,!0),this.elements_.button&&_.ef(this.elements_.button,w,!0),this.elements_.text&&_.ef(this.elements_.text,w,!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&&(q=null,this.buttonAccessibility&&(q=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=q:q?_.gB([_.BI(Xba)],this.elements_.button,"aria-label",q):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var q=_.tG().resolve(_.kF(_.LK));q&&(this.keyboardFocused=q.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.E7("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,_.fN(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.fN(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(q,w){if(w)for(q=w.split(" "),q=_.P(q),w=q.next();!w.done;w=q.next())w=w.value,_.ef(this.hostElement,w,!1),this.elements_.button&&_.ef(this.elements_.button,w,!1),this.elements_.text&&_.ef(this.elements_.text,w,!1)},
buttonIconChanged_:function(q){this.elements_.icon?q?(this.elements_.icon.icon=q,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.fN(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.kd(this.hostElement,"is-paper-button-with-icon",!1)):q&&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"&&_.fN(this.elements_.button).appendChild(this.elements_.icon):_.fN(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.kd(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(q){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,q){var w=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(q){case "yt_icon_button_with_label":w=!0;_.ef(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();q=_.fN(this.elements_.button).firstElementChild;
this.elements_.icon=q;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.fN(this.elements_.endpoint).appendChild(this.elements_.button);_.fN(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.E7("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;_.fN(this.elements_.button).appendChild(this.elements_.text);_.fN(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":w=!0,this.elements_.button=this.getYtIconButton_(),q=_.fN(this.elements_.button).firstElementChild,this.elements_.icon=q,this.setIconActive_(this.elements_.icon),
_.fN(this.elements_.endpoint).appendChild(this.elements_.button)}_.kd(this.hostElement,"is-icon-button",w);_.kd(this.hostElement,"is-paper-button",!w);_.kd(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 u;_.A((u=this.container.hostElement)!=null?u:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.fN(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(q){if(q!=void 0||this.disabled)this.disabled=q,this.elements_.button&&(this.elements_.button.disabled=q)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(q){_.T("kevlar_system_icons")&&q&&this.data&&(this.data.isSelected!==void 0?q.active=this.data.isSelected:this.data.isToggled!==void 0&&(q.active=this.data.isToggled))},
observeBasicPalette_:function(q){_.ms(this.hostElement,q)},
disabledChanged_:function(q){this.data&&this.set("data.isDisabled",q)},
onYtButtonTap_:function(q){if(this.disabled)q.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.GM(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(q=this.disableCommandHandlerOverride,!this.data||!this.data.command||q||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.T("handle_service_request_actions")||_.GM(this.hostElement,[this.serviceEndpoint]),
_.t7(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.T("handle_service_request_actions")?(q=[],this.serviceEndpoint&&q.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&q.push(this.data.command),q.length&&_.nq(this.hostElement,q,this.hostElement)):this.data&&this.data.command&&(q=this.data.command,q.accountUnlinkCommand||q.accountLinkCommand||q.insertAdCommand||q.insertHighlightMarkerCommand||
q.createLivestreamHighlightClipCommand||q.getVideoUploadFeedbackCommand||q.musicDeletePrivatelyOwnedEntityCommand||q.ypcCancelRecurrenceEndpoint||q.getMultiSelectCommandEndpoint?_.GM(this.hostElement,[q]):_.nq(this.hostElement,[q],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 q,w=_.A((q=this.container.hostElement)!=null?q:this.container);w.lastChild&&w.lastChild.tagName!="STYLE";)try{w.removeChild(w.lastChild)}catch(u){break}},
getYtIconButton_:function(){var q=this.reuseEnabled_()?_.E7("yt-icon-button"):document.createElement("yt-icon-button"),w=_.fN(q).firstElementChild;if(w&&w.is!="yt-icon"){for(w=_.fN(q);w.lastChild;)w.removeChild(w.lastChild);w=null}w||(w=this.getIcon_(),this.setIconActive_(w),_.fN(q).appendChild(w));return q},
reuseEnabled_:function(){return _.T("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.E7("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.E7("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.F8r={};
_.F8r.YtButtonBehavior=[PY.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var q=this.data;q&&(this._setEndpoint(this.computeEndpoint_(q)),this._setServiceEndpoint(this.computeServiceEndpoint_(q)),this._setCommand(this.computeCommand_(q)),this._setButtonIcon(this.computeButtonIcon_(q)),this._setButtonText(this.computeButtonText_(q,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(q)),this._setButtonTooltip(this.computeTooltip_(q)),this._setButtonClass(this.computeButtonClass_(q)),this._setIconPositionType(this.computeIconPositionType_(q)),this.updateRenderedElements())},
setPressedState:function(q){var w;if((w=this.elements_)==null?0:w.button)this.elements_.button.pressed=!!q},
computeIconPositionType_:function(q){return q&&q.iconPosition||null},
computeEndpoint_:function(q){var w=q&&q.navigationEndpoint,u=this.get("data.command.commandMetadata.webCommandMetadata.url"),y=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return w?w:q&&q.command&&q.command.modalEndpoint?q.command:u&&!y&&q.command?q.command:null},
computeServiceEndpoint_:function(q){var w=q&&q.serviceEndpoint,u=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return w?w:u&&q.command?q.command:null},
computeCommand_:function(q){return q&&q.command||null},
computeButtonIcon_:function(q){return q&&q.icon&&q.icon.iconType?_.Fy(q.icon.iconType):null},
computeButtonText_:function(q,w){return!w&&q&&q.text||null},
computeAccessibility_:function(q){return this.get("accessibilityData.accessibilityData",q)||q&&q.accessibility||(q&&q.text?{label:this.getSimpleString(q.text)}:null)},
computeTooltip_:function(q){return q?q.isDisabled&&q.disabledTooltip||q.tooltip||null:null},
computeButtonClass_:function(q){var w=q&&q.style?q.style.toLowerCase().replace(/_/g,"-")+" ":"";w+=q&&q.size?q.size.toLowerCase().replace(/_/g,"-")+" ":"";q.colorData&&q.colorData.basicColorPaletteData&&q.colorData.basicColorPaletteData.borderColor&&(w+="palette-with-border");return w.trim()}}];var AE={};var GNa;var n0P;var HXT,W8x=function(){return HXT!==void 0?HXT:HXT=document.createElement("template")};
document.head.appendChild(W8x().content);var seZ;var NpF,QeT=function(){return NpF!==void 0?NpF:NpF=document.createElement("template")};
document.head.appendChild(QeT().content);var IXZ;var iXj,r0T=function(){return iXj!==void 0?iXj:iXj=document.createElement("template")};
document.head.appendChild(r0T().content);var U8k;var TpG=document.head,CXa=TpG.appendChild,d8c;if(U8k===void 0){var OXT=document.createElement("template");_.f(OXT,"\x3c!--css-build:shady--\x3e");OXT.content.insertBefore(r0T().content.cloneNode(!0),OXT.content.firstChild);U8k=OXT}d8c=U8k;CXa.call(TpG,d8c.content);var o0c=document.head,V1r=o0c.appendChild,fXT;if(IXZ===void 0){var m8$=document.createElement("template");_.f(m8$,"\x3c!--css-build:shady--\x3e");m8$.content.insertBefore(QeT().content.cloneNode(!0),m8$.content.firstChild);IXZ=m8$}fXT=IXZ;V1r.call(o0c,fXT.content);var A0F=document.head,J06=A0F.appendChild,zi6;if(seZ===void 0){var aX6=document.createElement("template");_.f(aX6,"\x3c!--css-build:shady--\x3e");aX6.content.insertBefore(W8x().content.cloneNode(!0),aX6.content.firstChild);seZ=aX6}zi6=seZ;J06.call(A0F,zi6.content);var D8T;_.JE("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");D8T=_.T("web_button_rework")&&_.RX("BUTTON_REWORK")||_.T("web_button_rework_with_live");_.X5=function(){return _.Y.apply(this,arguments)||this};
_.O(_.X5,_.Y);_.X5.prototype.created=function(){this.openPopupConfig=_.Et("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.X5.prototype.onYtNavigate_=function(q){var w=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(q.detail.endpoint);w&&(this.ytOpenPopupBehavior.openPopup(w),q.stopPropagation(),q.preventDefault())};
_.x$.Object.defineProperties(_.X5,{template:{configurable:!0,enumerable:!0,get:function(){if(n0P===void 0){var q=document.createElement("template");_.f(q,"\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");q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);
var w=q.content,u=w.insertBefore;GNa===void 0&&(GNa=document.createElement("template"));var y=GNa;u.call(w,y.content.cloneNode(!0),q.content.firstChild);n0P=q}q=n0P;return q}}});
_.X5.prototype.onYtNavigate_=_.X5.prototype.onYtNavigate_;_.c([_.D(_.ux.YtOpenPopupBehavior),_.h("design:type",Object)],_.X5.prototype,"ytOpenPopupBehavior",void 0);_.c([_.D(_.F8r.YtButtonBehavior),_.h("design:type",Object)],_.X5.prototype,"ytButtonBehavior",void 0);_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],_.X5.prototype,"onYtNavigate_",null);
_.X5=_.c([_.JM({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:D8T})],_.X5);var ZXa;var pb3=_.T("web_button_rework")&&_.RX("BUTTON_REWORK")||_.T("web_button_rework_with_live"),F5=function(){var q=_.Y.apply(this,arguments)||this;q.isPressed=!1;q.forceIconButton=!1;q.forceIconOnly=!1;q.forceModernIconButton=!1;q.skipCommandHandling=!1;q.alignByText=!1;q.fitToVisibleBounds=!0;q.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};q.onTap=function(w){_.t7(q.hostElement,"yt-service-request-sent-button-renderer",w)};
return q};
_.O(F5,_.Y);_.k=F5.prototype;_.k.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.k.onClick=function(q){var w,u=this.disabled||((w=this.data)==null?void 0:w.isDisabled);w=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");u&&w&&q.stopPropagation()};
_.k.computeIcon=function(){var q,w,u=(q=this.data)==null?void 0:(w=q.icon)==null?void 0:w.iconType;if(u)return _.Fy(u)};
_.k.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.k.handleUpdateButtonAction=function(q){q=_.C(q,dG$);var w=_.C(q==null?void 0:q.updatedButton,_.aB);if(this.data&&q&&w){var u=this.data;u.targetId&&q.targetId&&u.targetId===q.targetId&&(this.data=w)}};
_.x$.Object.defineProperties(F5.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var q=this;if(this.data){var w=Sou({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.t7(q.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.t7(q.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});w.alignByText=this.alignByText;return w}}}});
_.x$.Object.defineProperties(F5,{template:{configurable:!0,enumerable:!0,get:function(){if(ZXa===void 0){var q=document.createElement("template");_.f(q,'\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>');ZXa=q}q=ZXa;return q}}});
F5.prototype.onClick=F5.prototype.onClick;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],F5.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],F5.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],F5.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],F5.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],F5.prototype,"isPressed",void 0);
_.c([_.v(),_.h("design:type",Object)],F5.prototype,"forceIconButton",void 0);_.c([_.v(),_.h("design:type",Object)],F5.prototype,"forceIconOnly",void 0);_.c([_.v(),_.h("design:type",Object)],F5.prototype,"forceModernIconButton",void 0);_.c([_.v(),_.h("design:type",Object)],F5.prototype,"skipCommandHandling",void 0);_.c([_.v(),_.h("design:type",Object)],F5.prototype,"alignByText",void 0);_.c([_.v(),_.h("design:type",Object)],F5.prototype,"buttonTooltipPosition",void 0);
_.c([_.v(),_.h("design:type",Object)],F5.prototype,"fitToVisibleBounds",void 0);_.c([_.v({computed:"computeTooltip(data)"}),_.h("design:type",Object)],F5.prototype,"tooltip",void 0);_.c([_.v(),_.h("design:type",Object)],F5.prototype,"overrides",void 0);_.c([_.v(),_.h("design:type",Boolean)],F5.prototype,"disabled",void 0);_.c([_.Gm("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],F5.prototype,"onClick",null);
_.c([_.Z("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.h("design:type",Object),_.h("design:paramtypes",[])],F5.prototype,"computedButtonShape",null);F5=_.c([_.JM({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!pb3,cssBuildOptOut:!0}),_.JM({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!pb3,cssBuildOptOut:!0})],F5);var $8P;var v0Z;var GD=function(){var q=_.Y.apply(this,arguments)||this;q.empty_=!0;q.loadTime=Infinity;q.pendingPaint=!1;q.hasChange_=!1;q.oldThumbnail_=null;q.oldDelayedSrc_="";q.objectURL_=null;return q};
_.O(GD,_.Y);_.k=GD.prototype;_.k.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.k.ready=function(){var q=this.shouldShowPlaceholder_();_.ef(this.hostElement,"no-transition",!0);q&&this.hostElement.classList.add("with-placeholder")};
_.k.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.k.isThumbPreloaded_=function(q){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",q)};
_.k.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||bX$};
_.k.computeThumbnailSrc_=function(q){return q&&q.thumbnails?_.wm(q.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.k.computeAlt_=function(){var q=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&q||""};
_.k.thumbnailChanged_=function(){var q=_.P([this.thumbnail,this.oldThumbnail_]),w=q.next().value;q=q.next().value;this.oldThumbnail_=w;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(q=this.computeThumbnailSrc_(q),this.computeThumbnailSrc_(w)===q))return;_.T("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(w)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):w&&_.RX("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.KJ(this,this.onReload_):_.KJ(this,this.onShow_):this.resetImage_();w&&(this.hostElement.style.opacity=""+w.opacity)}};
_.k.delayedSrcChanged_=function(){var q=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===q||this.resetImage_()};
_.k.setSrc_=function(q){q?(_.A(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.A(this.hostElement).querySelector("#img").src=q):(_.A(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.k.resetImage_=function(){wx4(this.hostElement);this.empty_=!0;this.setSrc_(bX$);this.ytRendererBehavior.invalidate(!1)};
_.k.observePlaceholderColor_=function(){var q=this.thumbnail&&this.thumbnail.placeholderColor;q?this.hostElement.style.backgroundColor=_.Ae(q):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.k.onLoad_=function(){_.A(this.hostElement).querySelector("#img").src&&_.A(this.hostElement).querySelector("#img").src!==bX$&&(q0y(this.hostElement),this.notifyOnLoaded&&_.t7(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.k.onError_=function(){var q=this;if(_.T("web_use_cache_for_image_fallback"))Xx7(_.A(this.hostElement).querySelector("#img").src).then(function(w){q.objectURL_=_.T2(w).toString();q.setSrc_(q.objectURL_)}).catch(function(){_.T("kevlar_woffle_fallback_image")&&q.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.k.onPrescanVisible=function(){this.onShow_()};
_.k.onVisible=function(){if(_.T("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.k.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var q=this.computeSrc_();q!==_.A(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(q))}};
_.k.onReload_=function(){this.empty_=!1;var q=this.computeSrc_();q!==_.A(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(q))};
_.k.shouldShowPlaceholder_=function(){return _.T("kevlar_thumbnail_bg")};
GD.prototype.observePlaceholderColor_=GD.prototype.observePlaceholderColor_;GD.prototype.delayedSrcChanged_=GD.prototype.delayedSrcChanged_;GD.prototype.thumbnailChanged_=GD.prototype.thumbnailChanged_;_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],GD.prototype,"alt",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],GD.prototype,"ariaHidden",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],GD.prototype,"ariaLabel",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],GD.prototype,"hidden",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],GD.prototype,"id",void 0);_.c([_.D(_.Jm.YtVisibilityBehavior),_.h("design:type",Object)],GD.prototype,"ytVisibilityBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],GD.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",String)],GD.prototype,"delayedSrc",void 0);
_.c([_.v(),_.h("design:type",Object)],GD.prototype,"thumbnail",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],GD.prototype,"loaded",void 0);_.c([_.v(),_.h("design:type",Boolean)],GD.prototype,"notifyOnLoaded",void 0);_.c([_.v(),_.h("design:type",Number)],GD.prototype,"height",void 0);_.c([_.v(),_.h("design:type",Number)],GD.prototype,"width",void 0);_.c([_.v({value:function(){return"width"}}),
_.h("design:type",String)],GD.prototype,"dimension",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],GD.prototype,"fit",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],GD.prototype,"fitHeight",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],GD.prototype,"fitWidth",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],GD.prototype,"objectFit",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],GD.prototype,"objectPosition",void 0);_.c([_.v(),_.h("design:type",String)],GD.prototype,"preferredThumbnail",void 0);_.c([_.v({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.h("design:type",String)],GD.prototype,"alt_",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],GD.prototype,"sharedTooltipText",void 0);
_.c([_.v(),_.h("design:type",Boolean)],GD.prototype,"ftlEligible",void 0);_.c([_.v({value:void 0}),_.h("design:type",String)],GD.prototype,"observeHiddenOption",void 0);_.c([_.v({value:"observe_once"}),_.h("design:type",String)],GD.prototype,"observePrescanOption",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],GD.prototype,"roundedContainer",void 0);
_.c([_.I9("thumbnail"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GD.prototype,"thumbnailChanged_",null);_.c([_.I9("delayedSrc"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GD.prototype,"delayedSrcChanged_",null);_.c([_.nL("thumbnail.placeholderColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GD.prototype,"observePlaceholderColor_",null);
GD=_.c([_.JM({is:"yt-img-shadow",disableElementRegistration:!0})],GD);var bX$=_.RX("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.eD()(GD,"yt-img-shadow",function(){if(v0Z===void 0){var q=document.createElement("template");_.f(q,'\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">');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;$8P===void 0&&($8P=document.createElement("template"));var y=$8P;u.call(w,y.content.cloneNode(!0),q.content.firstChild);v0Z=q}q=v0Z;return q},{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 jjc;_.WY=new _.MH("SCREEN_MANAGER_TOKEN");jjc=new _.MH("LOG_INITIAL_SCREEN_TOKEN");_.fr=_.LL(function(q){function w(P4){return _.C(P4,_.oH)}
function u(){var P4=y().isTogglingDisabled||U()?J():!J();a(P4);g(!1);if(!y().isTogglingDisabled){var C7;(C7=X)==null||C7(!!P4)}var mu;((mu=t)==null?0:mu())||_.Xf(_.tG().resolve(_.WY),y().trackingParams);var Os;if(!P4||!w(y().defaultButtonViewModel)||(Os=t)!=null&&Os()){var YJ;!w(y().toggledButtonViewModel)||((YJ=t)==null?0:YJ())||_.Xf(_.tG().resolve(_.WY),w(y().toggledButtonViewModel).trackingParams)}else _.Xf(_.tG().resolve(_.WY),w(y().defaultButtonViewModel).trackingParams)}
var y=q.data,e=q.buttonShapeOverrides,t=q.disableExplicitClickLogging,X=q.onToggle,G=q.style,n=q.useOutlinedIcon,N=q.className,Q=function(){var P4,C7;return J()?(P4=q.animatedTextPropsToggled)==null?void 0:P4.call(q):(C7=q.animatedTextPropsDefault)==null?void 0:C7.call(q)},I=_.oR(function(){return Q()?Object.assign({},Q(),{shouldAnimate:b()}):void 0},void 0,"ZKEa0b"),U=function(){var P4;
return((P4=eH())==null?void 0:P4.isToggled)!==void 0},d=_.P(_.iv(function(){var P4,C7,mu;
return U()?(P4=eH())==null?void 0:P4.isToggled:(mu=e==null?void 0:(C7=e())==null?void 0:C7.toggled)!=null?mu:y().isToggled})),V=d.next().value;
d=d.next().value;var J=V,a=d;d=_.P(_.iv(function(){var P4,C7;return(P4=q.animatedTextPropsToggled)==null?void 0:(C7=P4.call(q))==null?void 0:C7.shouldAnimate}));
V=d.next().value;d=d.next().value;var b=V,g=d;V=_.P(_.r4(!1,void 0,"S11hid"));var l=V.next().value,S=V.next().value,eH=_.aV(function(P4){var C7;a:{var mu=y().entityKey,Os=y().toggledStateEntitySelectorType;if(Os&&mu)switch(Os){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var YJ;P4=(YJ=_.HQ(P4.entities,"sfvAudioItemCurrentlyPlayingEntity",mu))!=null?YJ:void 0;YJ=(C7=P4==null?void 0:P4.sfvAudioItemPlaybackState)!=null?C7:void 0;if(YJ==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){C7={isToggled:!0};
break a}if(YJ){C7={isToggled:!1};break a}break;default:_.Y8(new _.fv("Error: entitySelectorType defined but not matched in selector.",P4,Os))}C7=void 0}return C7});
V=_.QS(function(){var P4=_.tG().resolve(_.kF(_.LK));P4&&S(P4.isKeyBoardInUse());return!1});
d=_.QS(function(){S(!1);return!1});
var x=function(){return Object.assign({},e==null?void 0:e(),{onToggle:u,toggleable:!0,toggled:J(),focused:l()})};
return _.W("toggle-button-view-model",{"on:focusin":V,"on:focusout":d,class:N},_.W(_.r,{cond:function(){return J()?w(y().toggledButtonViewModel):w(y().defaultButtonViewModel)},
then:function(P4){return _.W(_.Zs,{data:P4,className:N,style:G,useOutlinedIcon:n,buttonOverrides:x,animatedTextProps:I})}}))},"v");
_.fr.idomCompat={callbacks:{onToggle:!0}};_.q9(_.LL(function(q){return _.W("yt-toggle-button-view-model",{class:function(){var w;return(w=q.scopingClassName)==null?void 0:w.call(q)}},_.W(_.fr,{data:function(){var w;
return(w=q.data)==null?void 0:w.call(q)},
buttonShapeOverrides:function(){var w;return(w=q.overrides)==null?void 0:w.call(q)},
animatedTextPropsDefault:function(){var w;return(w=q.animatedTextPropsDefault)==null?void 0:w.call(q)},
animatedTextPropsToggled:function(){var w;return(w=q.animatedTextPropsToggled)==null?void 0:w.call(q)},
disableExplicitClickLogging:function(){var w;return(w=q.disableExplicitClickLogging)==null?void 0:w.call(q)},
onToggle:function(w){var u;return(u=q.onToggle)==null?void 0:u.call(q,w)},
style:function(){var w;return(w=q.style)==null?void 0:w.call(q)},
useOutlinedIcon:function(){var w;return(w=q.useOutlinedIcon)==null?void 0:w.call(q)},
className:function(){var w;return(w=q.className)==null?void 0:w.call(q)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.pK,
buttonShapeOverrides:_.pK,overrides:_.pK,animatedTextPropsDefault:_.pK,animatedTextPropsToggled:_.pK,disableExplicitClickLogging:_.pK,onToggle:_.xB,style:_.pK,useOutlinedIcon:_.pK,className:_.pK,scopingClassName:_.pK}});var sh=function(){return _.Y.apply(this,arguments)||this};
_.O(sh,_.Y);sh.prototype.onTap=function(q){q.stopPropagation();q=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.mG("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:q})):this.ytLiveChatReduxBehavior.dispatch(_.IH("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:q}))};
_.x$.Object.defineProperties(sh.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.engagementState)==null?void 0:q.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var q=_.C(this.data.toggleButton,_.Vo),w;if(Number(((w=this.likeCountState)==null?void 0:w.likeCountIfIndifferentNumber)||"0")===0){var u;w=((u=this.data.likeCountPlaceholder)==null?void 0:u.content)||""}else{var y,e,t;w=((y=this.likeCountState)==null?void 0:(e=y.likeCountIfIndifferent)==null?void 0:e.content)||((t=this.data.likeCountPlaceholder)==null?void 0:t.content)||""}var X,G;u=((X=this.likeCountState)==null?void 0:(G=
X.likeCountIfLiked)==null?void 0:G.content)||"1";X=_.C(q.toggledButtonViewModel,_.oH);return Object.assign({},q,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.C(q.defaultButtonViewModel,_.oH),{title:w})},toggledButtonViewModel:{buttonViewModel:Object.assign({},X,{title:u})}})}}}});
sh.prototype.onTap=sh.prototype.onTap;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],sh.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.oN),_.h("design:type",Object)],sh.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],sh.prototype,"data",void 0);
_.c([_.v({selectorArgs:["data.likeCountEntityKey"],selector:hgu}),_.h("design:type",Object)],sh.prototype,"likeCountState",void 0);_.c([_.v({selectorArgs:["data.engagementStateKey"],selector:UJM}),_.h("design:type",Object)],sh.prototype,"engagementState",void 0);_.c([_.Z("data","engagementState"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],sh.prototype,"isLiked",null);
_.c([_.Z("data","likeCountState","isLiked"),_.h("design:type",Object),_.h("design:paramtypes",[])],sh.prototype,"toggleButton",null);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],sh.prototype,"onTap",null);sh=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],sh);
_.R(sh,"yt-live-chat-like-button-view-model",function(){if(qd6===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;xSr===void 0&&(xSr=document.createElement("template"));var y=xSr;u.call(w,y.content.cloneNode(!0),q.content.firstChild);qd6=q}q=qd6;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var YdX;var g0a;var Nc=function(){return _.Y.apply(this,arguments)||this};
_.O(Nc,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Nc.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Nc.prototype,"data",void 0);Nc=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],Nc);
_.R(Nc,"yt-live-chat-paid-message-footer-renderer",function(){if(g0a===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;YdX===void 0&&(YdX=document.createElement("template"));var y=YdX;u.call(w,y.content.cloneNode(!0),q.content.firstChild);g0a=q}q=g0a;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var E0a;var Rir;var c0G;var Sdx,hix=function(){if(Sdx!==void 0)return Sdx;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;c0G===void 0&&(c0G=document.createElement("template"));var y=c0G;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return Sdx=q};var QL=function(){return _.Y.apply(this,arguments)||this};
_.O(QL,_.Y);QL.prototype.onTap=function(q){q.stopPropagation()};
_.x$.Object.defineProperties(QL.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var q=_.C(this.data.replyButton,_.oH),w,u,y,e,t,X,G,n=Number(((w=this.replyCountState)==null?void 0:w.replyCountNumber)||"0")===0?(u=this.data)==null?void 0:(y=u.replyCountPlaceholder)==null?void 0:y.content:((e=this.replyCountState)==null?void 0:(t=e.replyCount)==null?void 0:t.content)||((X=this.data)==null?void 0:(G=X.replyCountPlaceholder)==null?void 0:G.content)||"",N;return Object.assign({},
q,{title:n,accessibilityText:(N=this.replyCountState)==null?void 0:N.replyButtonAccessibilityText})}}}});
_.x$.Object.defineProperties(QL,{template:{configurable:!0,enumerable:!0,get:function(){return hix()}}});
QL.prototype.onTap=QL.prototype.onTap;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],QL.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.oN),_.h("design:type",Object)],QL.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],QL.prototype,"data",void 0);
_.c([_.v({selectorArgs:["data.replyCountEntityKey"],selector:function(q,w){return _.HQ(q.entities,"replyCountEntity",w)}}),
_.h("design:type",Object)],QL.prototype,"replyCountState",void 0);_.c([_.Z("data","replyCountState"),_.h("design:type",Object),_.h("design:paramtypes",[])],QL.prototype,"buttonViewModel",null);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],QL.prototype,"onTap",null);QL=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],QL);
_.R(QL,"yt-live-chat-reply-button-view-model",function(){return hix()},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var jeP;var lXx;var Ia=function(){var q=_.Y.apply(this,arguments)||this;q.ariaLabel="";return q};
_.O(Ia,_.Y);
Ia.prototype.dataChanged=function(){for(var q=(0,_.tM)(_.A(this.hostElement).querySelector("#image"));q.firstChild;)q.removeChild(q.firstChild);if(this.data)if(this.data.icon){var w=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(w.polymerController.icon="yt-sys-icons:shield-filled",w.polymerController.defaultToFilled=!0):w.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();q.appendChild(w)}else if(this.data.customThumbnail){w=document.createElement("img");
var u=_.juu(this.data.customThumbnail.thumbnails,16);u?(w.src=u,q.appendChild(w),w.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Y8(new _.fv("Could not compute URL for thumbnail",this.data.customThumbnail))}};
Ia.prototype.identity=function(q){return q};
Ia.prototype.computeType=function(q){return tB(q||void 0)};
Ia.prototype.dataChanged=Ia.prototype.dataChanged;_.c([_.v(),_.h("design:type",Object)],Ia.prototype,"data",void 0);_.c([_.v({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.h("design:type",Object)],Ia.prototype,"ariaLabel",void 0);_.c([_.v({computed:"computeType(data)",reflectToAttribute:!0}),_.h("design:type",String)],Ia.prototype,"type",void 0);
_.c([_.v({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.h("design:type",String)],Ia.prototype,"sharedTooltipText",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.T("live_chat_enable_new_moderator_badge")}}),
_.h("design:type",Boolean)],Ia.prototype,"enableNewModeratorBadge",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ia.prototype,"dataChanged",null);Ia=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Ia);
_.R(Ia,"yt-live-chat-author-badge-renderer",function(){if(lXx===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;jeP===void 0&&(jeP=document.createElement("template"));var y=jeP;u.call(w,y.content.cloneNode(!0),q.content.firstChild);lXx=q}q=lXx;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var L8T;var M1G;var ix=function(){return _.Y.apply(this,arguments)||this};
_.O(ix,_.Y);_.k=ix.prototype;_.k.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"}}}}};
_.k.computeBadgesInsideChip=function(q){return q?q.filter(function(w){return tB(w.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.k.computeBadgesOutsideChip=function(q){return this.prependChatBadges||!q?[]:q.filter(function(w){w=tB(w.liveChatAuthorBadgeRenderer);return w!=="verified"&&w!=="owner"})};
_.k.computeBadgesBeforeChip=function(q){return this.prependChatBadges&&q?q.filter(function(w){w=tB(w.liveChatAuthorBadgeRenderer);return w!=="verified"&&w!=="owner"}):[]};
_.k.computeIsHighlighted=function(q,w){var u=!!PQj(q,"owner"),y=!!PQj(q,"verified");q=!!PQj(q,"moderator");return(u||y&&!q)&&!w};
_.k.computeAuthorType=function(q){return tts(q)};
_.k.computeAuthorClass=function(q,w){return w?(q?q+" ":"")+"single-line":q};
_.k.onSeedColorChanged=function(){_.T("live_chat_author_name_color_usernames")||_.T("live_chat_seed_color_usernames")||_.T("live_chat_colored_usernames")?!this.authorNameColor||this.authorType||this.isHighlighted||this.hostElement.classList.contains("yt-live-chat-paid-message-renderer")||this.hostElement.classList.contains("yt-live-chat-paid-sticker-renderer")||(this.username.style.color=this.authorNameColor):_.T("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
ix.prototype.onSeedColorChanged=ix.prototype.onSeedColorChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],ix.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],ix.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ix.prototype,"authorName",void 0);_.c([_.v(),_.h("design:type",Array)],ix.prototype,"authorBadges",void 0);
_.c([_.v({computed:"computeAuthorType(authorBadges)"}),_.h("design:type",String)],ix.prototype,"authorType",void 0);_.c([_.v({computed:"computeAuthorClass(authorType, singleLine)"}),_.h("design:type",String)],ix.prototype,"authorClass",void 0);_.c([_.v({computed:"computeBadgesInsideChip(authorBadges)"}),_.h("design:type",Array)],ix.prototype,"badgesInsideChip",void 0);_.c([_.v({computed:"computeBadgesOutsideChip(authorBadges)"}),_.h("design:type",Array)],ix.prototype,"badgesOutsideChip",void 0);
_.c([_.v({computed:"computeBadgesBeforeChip(authorBadges)"}),_.h("design:type",Array)],ix.prototype,"badgesBeforeChip",void 0);_.c([_.v({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.h("design:type",Boolean)],ix.prototype,"isHighlighted",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],ix.prototype,"singleLine",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],ix.prototype,"disableHighlighting",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],ix.prototype,"dashboardMoneyFeed",void 0);_.c([_.v({value:_.T("live_chat_prepend_badges"),reflectToAttribute:!0}),_.h("design:type",Boolean)],ix.prototype,"prependChatBadges",void 0);_.c([_.v(),_.h("design:type",String)],ix.prototype,"authorNameColor",void 0);_.c([_.Wj("#author-name"),_.h("design:type",HTMLDivElement)],ix.prototype,"username",void 0);
_.c([_.nL("authorNameColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ix.prototype,"onSeedColorChanged",null);ix=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],ix);
_.R(ix,"yt-live-chat-author-chip",function(){if(M1G===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;L8T===void 0&&(L8T=document.createElement("template"));var y=L8T;u.call(w,y.content.cloneNode(!0),q.content.firstChild);M1G=q}q=M1G;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var K8X;var Bp$;var rS=function(){var q=_.Y.apply(this,arguments)||this;q.debounceCommand=_.Qs(function(w){q.ytComponentBehavior.resolveCommand(w)},1500);
return q};
_.O(rS,_.Y);rS.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var q=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",w,u,y=this.isHearted?(w=this.data)==null?void 0:w.unheartCommand:(u=this.data)==null?void 0:u.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.mG("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:q}));(q=_.Zh(y))&&this.debounceCommand(q)}};
_.x$.Object.defineProperties(rS.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var q,w;if(!((q=this.data)==null?0:(w=q.creatorThumbnail)==null?0:w.sources))return{};q={thumbnails:[]};w={};w.url=this.data.creatorThumbnail.sources[0].url;q.thumbnails.push(w);return q}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.engagementState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((w=this.engagementState)==null?void 0:w.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.engagementState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((w=this.engagementState)==null?void 0:w.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.engagementState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return((q=this.engagementState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((w=this.engagementState)==null?void 0:w.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((u=this.engagementState)==null?void 0:u.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}}});
rS.prototype.onTap=rS.prototype.onTap;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],rS.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.oN),_.h("design:type",Object)],rS.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],rS.prototype,"data",void 0);
_.c([_.v({selectorArgs:["data.engagementStateKey"],selector:UJM}),_.h("design:type",Object)],rS.prototype,"engagementState",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],rS.prototype,"thumbnailDetails",null);_.c([_.Z("data","engagementState"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rS.prototype,"isHearted",null);_.c([_.Z("data","engagementState"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rS.prototype,"isEditable",null);
_.c([_.Z("data","engagementState"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rS.prototype,"showCreatorView",null);_.c([_.Z("data","engagementState"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rS.prototype,"showButton",null);_.c([_.Z("data","isHearted"),_.h("design:type",String),_.h("design:paramtypes",[])],rS.prototype,"label",null);_.c([_.Z("data","isHearted"),_.h("design:type",Object),_.h("design:paramtypes",[])],rS.prototype,"heartHoverText",null);
_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rS.prototype,"onTap",null);rS=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],rS);
_.R(rS,"yt-live-chat-creator-heart-view-model",function(){if(Bp$===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;K8X===void 0&&(K8X=document.createElement("template"));var y=K8X;u.call(w,y.content.cloneNode(!0),q.content.firstChild);Bp$=q}q=Bp$;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var Uh=function(q,w){this.serviceId=new aHr(q,w)};
Uh.prototype.toString=function(){return this.serviceId.toString()};var x8F=function(){this.internalMap={}};
_.k=x8F.prototype;_.k.contains=function(q){return Object.prototype.hasOwnProperty.call(this.internalMap,q)};
_.k.get=function(q){if(this.contains(q))return this.internalMap[q]};
_.k.set=function(q,w){this.internalMap[q]=w};
_.k.getKeys=function(){return Object.keys(this.internalMap)};
_.k.remove=function(q){delete this.internalMap[q]};var TD=function(){this.mappings=new x8F;this.errorCallbacks=new Set};
TD.prototype.getModuleId=function(q){return q.serviceId.getModuleId()};
TD.prototype.get=function(q){var w=this.mappings.get(q.toString());return q$T(this,w,q)};
TD.prototype.getMultipleAsync=function(){var q=_.Cj.apply(0,arguments),w=this,u=q.map(function(n){return w.getModuleId(n)}),y=q.map(function(n){return w.mappings.get(n.toString())}).filter(function(n){return n});
if(y.length===q.length)return _.Hw(y.map(function(n,N){return q$T(w,n,q[N])}));
var e=DH().loadMultiple(u);y=_.rD(u.map(function(n){return e[n]}));
var t=document.hidden,X=-1,G=_.Fc("get_async_timeout_ms",-1);G>-1&&(X=setTimeout(function(){_.Y8(new _.fv("Module timeout.",u,t,document.hidden))},G));
return _.Uj(y.then(function(){return q.map(function(n){return q$T(w,w.mappings.get(n.toString()),n)})}).thenCatch(function(n){for(var N=_.P(w.errorCallbacks),Q=N.next();!Q.done;Q=N.next())Q=Q.value,Q(n);
throw n;}),function(){clearTimeout(X)})};
TD.prototype.registerService=function(q,w){this.mappings.set(q.toString(),{type:"mapping",value:w});return q};
var q$T=function(q,w,u){switch(w.type){case "mapping":return w.value;case "factory":return w=w.value(),q.mappings.set(u.toString(),{type:"mapping",value:w}),w;default:return _.Xm(w)}};
TD.prototype.onLoadError=function(q){var w=this;this.errorCallbacks.add(q);return function(){w.errorCallbacks.delete(q)}};
_.Co=new TD;var w9F=function(){};
_.k=w9F.prototype;
_.k.JSC$11807_getRequest=function(q,w,u){w=w===void 0?{}:w;u=u===void 0?pGZ:u;var y=w;if(this.isNavigationCommand()){var e,t=(e=_.C(q==null?void 0:q.commandMetadata,_.wk))==null?void 0:e.url;y=_.QTl(q.clickTrackingParams,!0,!1,t,this.JSC$11807_getClientScreen(y))}else y=_.QTl(q.clickTrackingParams,!1,this.includeCsn);y={context:y};if(e=this.getExtension(q))return this.JSC$11807_buildRequest(y,e,w),e=this.getApiUrl(q),t=Object.assign({},{command:q},this.getRequestConfig(q,w)),y={input:e,requestShell:jp(e),
innerTubeRequest:y,config:t},y.config.authStrategy?y.config.authStrategy.identity=u:y.config.authStrategy={identity:u},(q=this.JSC$11807_getRequestKey(q,w))&&!y.config.requestKey&&(y.config.requestKey=q),y;q=new _.fv("Error: Failed to create Request from Command.",q);_.vm(q)};
_.k.getApiUrl=function(q){var w=_.Ka(this.getApiPaths(q)),u;(q=(u=_.C(q.commandMetadata,_.wk))==null?void 0:u.apiUrl)&&(w=q);return SjH(c54(w))};
_.k.isNavigationCommand=function(){return!1};
_.k.JSC$11807_getClientScreen=function(){};
_.k.JSC$11807_getRequestKey=function(){};
_.k.getRequestConfig=function(){};
_.x$.Object.defineProperties(w9F.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var dS=function(){};
_.O(dS,w9F);dS.prototype.JSC$11814_getStoreKey=function(){};
dS.prototype.JSC$11807_getRequestKey=function(q,w){w=w===void 0?{}:w;return this.JSC$11814_getStoreKey(q,w)};var Oh=function(){};
_.O(Oh,dS);Oh.prototype.JSC$11807_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:jp("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Oh.prototype.getApiPaths=function(){return[]};
Oh.prototype.getExtension=function(){};
Oh.prototype.JSC$11807_buildRequest=function(){};var uiF={},y_x=(uiF.GET_DATASYNC_IDS=$o(Oh),uiF);var e9$,kv3,tCa,wtG,oa,Fta,PlG,X9r,PKT;e9$="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");kv3=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.E3=function(q,w,u,y,e,t,X,G,n){this.endpointMap=q;this.networkManager=w;this.authService=u;this.responseProcessorMap=y;this.innertubeResponseStore=e;this.contextProcessors=t;this.asyncContextProcessors=X;this.localInnertubeRouter=G;this.requestSequencer=n;this.inflightRequests=new Map;q.signalEndpointMap||(q.signalEndpointMap={});q.signalEndpointMap=Object.assign({},y_x,q.signalEndpointMap)};
tCa=function(q,w,u,y,e,t,X,G,n){if(_.E3.instance!==void 0){if(y=_.E3.instance,q=[q!==y.endpointMap,w!==y.networkManager,u!==y.authService,e!==y.innertubeResponseStore,t!==y.contextProcessors,X!==y.asyncContextProcessors,G!==y.localInnertubeRouter],q.some(function(N){return N}))throw new _.fv("InnerTubeTransportService is already initialized",q);
}else _.E3.instance=new _.E3(q,w,u,y,e,t,X,G,n)};
_.cR=function(q,w,u){var y=y===void 0?pGZ:y;var e=PlG(q,w);return e?new _.IA(function(t,X){var G,n,N,Q,I;return _.F(function(U){switch(U.nextAddress){case 1:return _.H(U,e,2);case 2:G=U.yieldResult;n=G.JSC$11807_getRequest(w,u,y);if(!n){X(new _.fv("Error: Failed to build request for command.",w));U.jumpTo(0);break}Du(n.input);Q=((N=n.requestShell)==null?void 0:N.mode)==="cors"?"cors":void 0;if(q.authService.syncHeaders){I=PKT(n.config,Q);U.jumpTo(4);break}return _.H(U,X9r(n.config,Q),5);case 5:I=
U.yieldResult;case 4:t(Fta(q,n,I)),_.HI(U)}})}):_.og(new _.fv("Error: No request builder found for command.",w))};
wtG=function(q,w,u,y){var e=e===void 0?pGZ:e;var t,X,G,n,N,Q,I,U,d,V,J,a,b,g,l,S,eH,x;return _.F(function(P4){switch(P4.nextAddress){case 1:t=LWJ(w,q.endpointMap);if(!t)throw new _.fv("Error: No streaming request builder found for command",w);X=t.JSC$11807_getRequest(w,u,e);if(!X)throw new _.fv("Failed to build YtRequest for streaming Command",w);if((G=q.localInnertubeRouter)==null||!G.shouldPreferLocalResponse(X.input,X.innerTubeRequest)){P4.jumpTo(2);break}return _.H(P4,q.localInnertubeRouter.localInnertubeResponse(X.input,
X.innerTubeRequest),3);case 3:return n=P4.yieldResult,N={},n.playerResponse&&(oa(q,n.playerResponse,X),N.player=n.playerResponse,(Q=y)==null||Q(N,n)),n.watchNextResponse&&(oa(q,n.watchNextResponse,X),N.content=n.watchNextResponse,(I=y)==null||I(N,n)),P4.return(N);case 2:d=((U=X.requestShell)==null?void 0:U.mode)==="cors"?"cors":void 0;if(q.authService.syncHeaders){V=PKT(X.config,d);P4.jumpTo(4);break}return _.H(P4,X9r(X.config,d),5);case 5:V=P4.yieldResult;case 4:return b=(a=(J=X.requestShell)==null?
void 0:J.headers)!=null?a:{},X.requestShell=Object.assign({},X.requestShell,{headers:Object.assign({},b,V)}),g=Object.assign({},X.requestShell),l=JSON.stringify(X.innerTubeRequest),X.requestShell.method==="POST"&&(g=Object.assign({},g,{body:l})),S=function(C7,mu){oa(q,mu.playerResponse||mu.watchNextResponse||mu.reelItemWatchResponse||mu.reelWatchSequenceResponse,X);y==null||y(C7,mu)},eH={},_.H(P4,Gvr(q.networkManager,X.input,g,S),6);
case 6:return eH=P4.yieldResult,((x=X.config)==null?0:x.responseTick)&&_.D_(X.config.responseTick),P4.return(eH)}})};
_.Jb=function(q,w,u,y,e){e=e===void 0?{authStrategy:{identity:pGZ}}:e;var t=t===void 0?!0:t;var X=function(){};
X=e_s(u77(u));w.context||(w.context=_.QTl(y,t));return new _.IA(function(G){var n,N,Q,I,U;return _.F(function(d){if(d.nextAddress==1)return n=c54(u),N=_.hp(n),q.authService.syncHeaders?(Q=PKT(e,N),d.jumpTo(2)):_.H(d,X9r(e,N),3);d.nextAddress!=2&&(Q=d.yieldResult);I=SjH(c54(u));U={input:I,requestShell:jp(I),innerTubeRequest:w,config:e};G(Fta(q,U,Q,X));_.HI(d)})})};
oa=function(q,w,u){var y;if(w&&!(w==null?0:(y=w.sequenceMetaData)==null?0:y.skipProcessing)&&q.responseProcessorMap){y=_.P(e9$);for(var e=y.next();!e.done;e=y.next())e=e.value,q.responseProcessorMap[e]&&q.responseProcessorMap[e].handleResponse(w,u)}};
Fta=function(q,w,u,y){y=y===void 0?function(){}:y;
var e,t,X,G,n,N,Q,I,U,d,V,J,a,b,g,l,S,eH,x,P4,C7,mu,Os,YJ,ao,bc,Ro,K7,gx,dx,tc,Fa,eq,Hk,W3,gV,Fl,C$,ZZ,EA;return _.F(function(mj){switch(mj.nextAddress){case 1:X=(e=w.config)==null?void 0:(t=e.storeStrategy)==null?void 0:t.storeKey;if(!(X&&q.innertubeResponseStore&&q.innertubeResponseStore.has(X))||((G=w.config)==null?0:(n=G.storeStrategy)==null?0:n.disableCache)){mj.jumpTo(2);break}return _.H(mj,q.innertubeResponseStore.get(X),3);case 3:if((N=mj.yieldResult)&&!N.isExpired())return mj.return(Promise.resolve(_.Pr(N)));
case 2:if(!((Q=w)==null?0:(I=Q.innerTubeRequest)==null?0:I.context)){mj.jumpTo(4);break}U=w.innerTubeRequest.context;if(!(q.asyncContextProcessors&&q.asyncContextProcessors.length>0)){mj.jumpTo(5);break}d=[];V=_.P(q.asyncContextProcessors);for(J=V.next();!J.done;J=V.next())a=J.value,b=a.processContext(w),b.wrappedPromise_&&d.push(b.wrappedPromise_);if(!(d.length>0)){mj.jumpTo(5);break}return _.H(mj,Promise.all(d),5);case 5:g=_.P(q.contextProcessors||[]),l=g.next();case 8:if(l.done){mj.jumpTo(4);break}S=
l.value;return _.H(mj,S.processContext(U),9);case 9:l=g.next();mj.jumpTo(8);break;case 4:if((eH=q.localInnertubeRouter)==null||!eH.shouldPreferLocalResponse(w.input,w.innerTubeRequest)){mj.jumpTo(12);break}return _.H(mj,q.localInnertubeRouter.localInnertubeResponse(w.input,w.innerTubeRequest),13);case 13:return x=mj.yieldResult,oa(q,x,w),mj.return(x);case 12:return(mu=(C7=w.config)==null?void 0:C7.requestKey)&&q.inflightRequests.has(mu)?P4=q.inflightRequests.get(mu):(Os=JSON.stringify(w.innerTubeRequest),
bc=(ao=(YJ=w.requestShell)==null?void 0:YJ.headers)!=null?ao:{},w.requestShell=Object.assign({},w.requestShell,{headers:Object.assign({},bc,u)}),Ro=Object.assign({},w.requestShell),w.requestShell.method==="POST"&&(Ro=Object.assign({},Ro,{body:Os})),((K7=w.config)==null?0:K7.requestTick)&&_.D_(w.config.requestTick),gx=function(){return q.networkManager.fetch(w.input,Ro,w.config)},P4=q.requestSequencer?ntT(q.requestSequencer,w,gx):gx(),mu&&q.inflightRequests.set(mu,P4)),_.H(mj,P4,14);
case 14:(dx=mj.yieldResult)&&_.T("web_streaming_player")&&Array.isArray(dx)&&(dx=dx[0].playerResponse);if(dx&&"error"in dx&&((tc=dx)==null?0:(Fa=tc.error)==null?0:Fa.details))for(eq=dx.error.details,Hk=_.P(eq),W3=Hk.next();!W3.done;W3=Hk.next())gV=W3.value,(Fl=gV["@type"])&&kv3.indexOf(Fl)>-1&&(delete gV["@type"],dx=gV);mu&&q.inflightRequests.has(mu)&&q.inflightRequests.delete(mu);((C$=w.config)==null?0:C$.responseTick)&&_.D_(w.config.responseTick);if(dx||(ZZ=q.localInnertubeRouter)==null||!ZZ.canProvideFallbackResponse(w.input,
w.innerTubeRequest)){mj.jumpTo(15);break}return _.H(mj,q.localInnertubeRouter.localFallbackInnertubeResponse(w.input,w.innerTubeRequest),16);case 16:dx=mj.yieldResult;case 15:return oa(q,dx,w),((EA=w.config)==null?0:EA.processorTick)&&_.D_(w.config.processorTick),y(),mj.return(dx||void 0)}})};
_.RV=function(q,w){return lvs(w,q.endpointMap)};
PlG=function(q,w){q=MbH(w,q.endpointMap);if(q!==void 0)return Promise.resolve(q)};
X9r=function(q,w){var u,y,e,t;return _.F(function(X){if(X.nextAddress==1){e=(u=q)==null?void 0:(y=u.authStrategy)==null?void 0:y.sessionIndex;var G=_.Hw(iq7({sessionIndex:e}));return _.H(X,G,2)}t=X.yieldResult;return X.return(Promise.resolve(Object.assign({},KWH(w),t)))})};
PKT=function(q,w){var u;q=q==null?void 0:(u=q.authStrategy)==null?void 0:u.sessionIndex;u=iq7({sessionIndex:q});return Object.assign({},KWH(w),u)};var H6$,Wtx,su6,N2j,QuF,IPT,UiX,T2x,mD,CKr,dir,r_F,O6P;H6$=0;Wtx=/tone[1-5]/;su6=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");N2j="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
QuF=Number.MAX_SAFE_INTEGER;IPT=RegExp("\ufe0f","g");_.VL=function(q){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;q&&_.i6a(this,q)};
_.i6a=function(q,w){try{_.I2(w,{context:q,onSuccess:function(y,e){Array.isArray(e)?q.load(e):(y=new _.fv("Emoji manager JSON response was not an array!",{response:e}),_.vm(y))},
onError:function(y){y=new _.fv("Failed to retrieve emoji manager initial JSON data!",{url:w,statusCode:_.HG(y).toString()});_.Y8(y)}})}catch(y){var u=new _.fv("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:w});
_.Y8(u)}};
_.VL.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.VL.prototype.load=function(q,w){if(w)if(q.length)q=q.concat(w.emojis);else{this.emojis=w.emojis;this.emojiMap=w.emojiMap;this.emojiShortcutMap=w.emojiShortcutMap;this.emojiShortcutCharMap=r_F(w);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=w.emojiRegex;return}this.emojis=[].concat(_.Cm(new Set(this.emojis.concat(q))));this.hasInitializedShortcutCharMap=!1;q=Array(this.emojis.length);for(w=0;w<this.emojis.length;w++){var u=this.emojis[w];if(u.emojiId){this.emojiMap[u.emojiId]=u;this.emojiMap[u.emojiId].index=
w;for(var y=0;u.shortcuts&&y<u.shortcuts.length;y++)this.emojiShortcutMap[u.shortcuts[y].toLocaleLowerCase()]=u;q[w]=u.isCustomEmoji&&u.shortcuts?u.shortcuts[0]:u.emojiId}}q.sort(function(e,t){return t.length-e.length});
if(q.length)try{this.emojiRegex=new RegExp(q.join("|").replace("*","\\*"),"gi")}catch(e){this.emojiRegex=/$./}else this.emojiRegex=/$./};
UiX=function(q,w){w=_.P(w);for(var u=w.next();!u.done;u=w.next()){var y=u.value;if(y.emojiId&&q.emojiMap[y.emojiId]){u=Object.assign({},q.emojiMap[y.emojiId],y);q.emojiMap[y.emojiId]=u;var e=void 0;u.index&&((e=q.emojis[u.index])==null?void 0:e.emojiId)===y.emojiId&&(q.emojis[u.index]=u);y=void 0;if((y=u.shortcuts)==null?0:y.length)for(q.hasInitializedShortcutCharMap=!1,y=_.P(u.shortcuts),e=y.next();!e.done;e=y.next())q.emojiShortcutMap[e.value.toLocaleLowerCase()]=u}}};
T2x=function(q){var w,u;_.F(function(y){if(y.nextAddress==1)return _.H(y,_.T5.getInstance(),2);if(y.nextAddress!=3)return(w=y.yieldResult)?_.H(y,w.get("ytlc-emoji-pref"),3):y.return();(u=y.yieldResult)&&UiX(q,Object.keys(u).map(function(e){return{emojiId:e,stickyPrefId:u[e]}}).filter(function(e){return!!e.emojiId&&!!e.stickyPrefId}));
_.HI(y)})};
_.fo=function(q,w,u){return(q=q.emojiMap[w])&&(!q.isLocked||u!==void 0&&u)?q:void 0};
mD=function(q,w,u){u=_.fo(q,w,u===void 0?!1:u);var y=w.match("\u200d");u&&q.skinTone!==0&&(q=(y==null?void 0:y.length)===1?_.fo(q,w.replace("\u200d",su6[q.skinTone]+"\u200d")):_.fo(q,w+su6[q.skinTone]))&&(u=q);return u};
CKr=function(q,w){var u=q.emojiMap[w];return(u==null?0:u.stickyPrefId)?q.emojiMap[u.stickyPrefId]:mD(q,w)};
_.ND=function(q,w){q=q.emojiShortcutMap[w.toLocaleLowerCase()];return!q||q.isLocked?null:q};
dir=function(q,w,u){return r_F(q,u===void 0?!1:u)[w]||{}};
r_F=function(q,w){w=w===void 0?!1:w;if(!q.hasInitializedShortcutCharMap){q.hasInitializedShortcutCharMap=!0;for(var u=0;u<q.emojis.length;u++){var y=q.emojis[u];if(!(y.isLocked||w&&y.isCustomEmoji&&y.emojiId&&!q.pickerCustomEmojiIds.includes(y.emojiId)))for(var e=0;y.shortcuts&&e<y.shortcuts.length;e++){var t=y.shortcuts[e];t.startsWith(":_")&&y.isCustomEmoji&&(q.emojiShortcutCharMap[":_"]==null&&(q.emojiShortcutCharMap[":_"]=Object.create(null)),q.emojiShortcutCharMap[":_"][t]=y);if(!(t.length<3||
!y.isCustomEmoji&&Wtx.test(t))){var X=t.substr(0,3).toLocaleLowerCase();q.emojiShortcutCharMap[X]==null&&(q.emojiShortcutCharMap[X]=Object.create(null));q.emojiShortcutCharMap[X][t]=y}}}}return q.emojiShortcutCharMap};
_.VL.prototype.createEmoji=function(q,w){w=w===void 0?!0:w;var u=document.createElement("img");q.isCustomEmoji||u.classList.add("small-emoji");u.classList.add("emoji");u.classList.add("yt-formatted-string");u.src=q.image?_.wm(q.image.thumbnails,this.emojiSize)||"":"";var y=void 0;q.image&&q.image.accessibility&&q.image.accessibility.accessibilityData&&(y=q.image.accessibility.accessibilityData.label);u.alt=y?y:(q.isCustomEmoji&&q.shortcuts?q.shortcuts[0]:q.emojiId)||"";q.isCustomEmoji&&(u.dataset.emojiId=
q.emojiId);_.kf&&(u.setAttribute("contenteditable","false"),u.setAttribute("unselectable","on"));w&&(q.shortcuts&&q.shortcuts.length&&u.setAttribute("shared-tooltip-text",q.shortcuts[0]),u.id="emoji-"+H6$++);return u};
_.VL.prototype.createDocumentFragment=function(q,w,u,y){w=w===void 0?!1:w;u=u===void 0?!0:u;y=y===void 0?!1:y;q=q.replace(IPT,"");for(var e=document.createDocumentFragment(),t=0,X,G=0;(X=this.emojiRegex.exec(q))!=null;){var n=_.fo(this,X[0])||_.ND(this,X[0]);!n||n.isCustomEmoji&&!w||(n=this.createEmoji(n,u),t!==X.index&&e.appendChild(document.createTextNode(q.substring(t,X.index))),e.appendChild(n),t=X.index+X[0].length,G++)}if(!y||G)return e.appendChild(document.createTextNode(q.substr(t))),e};
O6P=function(q,w,u){var y,e,t,X,G,n,N,Q,I;return _.F(function(U){if(U.nextAddress==1){if(!w.emojiId||!q.emojiMap[w.emojiId])return U.return();y=Object.assign({},q.emojiMap[w.emojiId],{stickyPrefId:u});q.emojiMap[w.emojiId]=y;w.index&&((e=q.emojis[w.index])==null?void 0:e.emojiId)===w.emojiId&&(q.emojis[w.index]=y);if((t=w.shortcuts)==null?0:t.length)for(q.hasInitializedShortcutCharMap=!1,X=_.P(w.shortcuts),G=X.next();!G.done;G=X.next())n=G.value,q.emojiShortcutMap[n.toLocaleLowerCase()]=y;return _.H(U,
_.T5.getInstance(),2)}if(U.nextAddress!=4)return(N=U.yieldResult)?_.H(U,N.get("ytlc-emoji-pref"),4):U.jumpTo(0);I=(Q=U.yieldResult)!=null?Q:{};I[w.emojiId]=u;return _.H(U,N.set("ytlc-emoji-pref",I,QuF),0)})};
_.AV=new _.VL;var fP3;_.JV={};
fP3={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.T("web_context_menu_a11y_opacity_visibility"),reflectToAttribute:!0},timestampString:{type:String,computed:"computeTimestampString(data)"},popupPositionTarget:{type:Object,computed:"identity(menuButton)"},menuButton:Object,menuVisible:{type:Boolean,
computed:"computeMenuVisible_(menuOpen, menuFocused)",reflectToAttribute:!0},menuOpen:{type:Boolean,value:!1},menuFocused:{type:Boolean,value:!1},emojiManager:Object,participantsManager:Object,isDeleted:{type:Boolean,value:!1,computed:"truthy(data.deletedStateMessage)",reflectToAttribute:!0},hasOriginalContent:{type:Boolean,value:!1,computed:"truthy(data.showOriginalContentMessage)"},hasInlineActionButtons:{type:Boolean,computed:"computeHasInlineActionButtons(data)",reflectToAttribute:!0},modern:{type:Boolean,
reflectToAttribute:!0,value:_.T("web_button_rework_with_live")},filledButtonOverrides:{type:Object,value:{type:"filled",style:"overlay"}}},supportsInlineActionButtons:!1,listeners:{"yt-popup-opened":"onYtPopupOpened_","yt-popup-closed":"onYtPopupClosedOrCanceled_","yt-popup-canceled":"onYtPopupClosedOrCanceled_",tap:"onItemTap"},TIME_FORMATTER:new SN(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 q=_.A(this.hostElement||this).querySelector("#inline-action-button-container");q&&q.setAttribute("aria-hidden","true");this.menuButton=_.A(this.hostElement).querySelector("#menu-button")},
attached:function(){var q=this.menuButton;q&&(q.addEventListener("focusin",_.Fj(this,this.onMenuButtonFocus_)),q.addEventListener("focusout",_.Fj(this,this.onMenuButtonBlur_)))},
detached:function(){var q=this.menuButton;q&&(q.removeEventListener("focusin",_.Fj(this,this.onMenuButtonFocus_)),q.removeEventListener("focusout",_.Fj(this,this.onMenuButtonBlur_)))},
identity:_.gj,truthy:function(q){return!!q},
computeTimestampString:function(q){return q?q.timestampText?this.getSimpleString(q.timestampText):this.TIME_FORMATTER.format(new Date(q.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(q){return _.T("live_chat_whole_message_clickable")&&q},
computeMenuVisible_:function(q,w){return q||w},
computeHasInlineActionButtons:function(q){if(!q)return!1;var w,u;return!((w=q.inlineActionButtons)==null||!w.length)||!((u=q.additionalInlineActionButtons)==null||!u.length)},
createDocumentFragmentFromString:function(q){var w=_.AV.createDocumentFragment.bind(_.AV),u;if((u=this.participantsManager)==null||!u.viewerRegex)return w(q);u=document.createDocumentFragment();for(var y=0,e;(e=this.participantsManager.viewerRegex.exec(q))!=null;){if(e.index>0){var t=":"+e[0]+":";if((_.fo(_.AV,t)||_.ND(_.AV,t))&&q.indexOf(t)===e.index-1)continue}u.appendChild(w(q.substring(y,e.index)));y=document.createElement("span");y.appendChild(w(e[0]));y.classList.add("mention");u.appendChild(y);
y=e.index+e[0].length}u.appendChild(w(q.substring(y)));return u},
createDocumentFragment:function(q){var w=document.createDocumentFragment();if(q.simpleText)return w.appendChild(this.createDocumentFragmentFromString(q.simpleText)),w;if(!q.runs)return w;for(var u=0;u<q.runs.length;u++){var y=q.runs[u];if(y.emoji)w.appendChild(_.AV.createEmoji(y.emoji));else if(y.text)if(y.navigationEndpoint){var e=document.createElement("a");e.classList.add("yt-simple-endpoint");vBJ(e,y.navigationEndpoint);_.A(e).appendChild(this.createDocumentFragmentFromString(y.text));w.appendChild(e)}else w.appendChild(this.createDocumentFragmentFromString(y.text))}return w},
hasModerationOverlayVisible:function(){var q;return((q=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:q.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(q){q.composedPath().some(function(w){return(w=w instanceof Element?w:null)?w.tagName&&(w.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||w.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.T("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(q)},
colorFromDecimal:function(q){return cAH(q)},
markAsDeleted:function(q,w){this.set("data.deletedStateMessage",q);this.set("data.showOriginalContentMessage",w)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(q){if(this.data.contextMenuEndpoint){var w=_.tG().resolve(_.OP),u=this.data.contextMenuEndpoint,y;(y=_.E3.instance)&&_.RV(y,u)?(w=ot$(w,u),y=_.Jb(y,{},w)):y=_.VCT(w,u);y.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);q&&q.stopPropagation()}},
handleGetContextMenuResponse_:function(q){var w=_.E3.instance;w&&_.RV(w,{liveChatEndpoint:{}})||(q=q.response);q.liveChatItemContextMenuSupportedRenderers&&q.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(q.liveChatItemContextMenuSupportedRenderers.menuRenderer);q.actions&&_.Pw(this.hostElement,"yt-live-chat-actions",[q.actions])},
handleGetContextMenuError:function(q){if(q instanceof Error||q instanceof Object||q instanceof String)var w=q;_.vm(new _.fv("Error encountered calling GetLiveChatItemContextMenu",w))},
showContextMenu_:function(q){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:q}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.t7(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.t7(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.JV.YtLiveChatItemBehavior=[fP3,_.fK.YtComponentBehavior,_.ux.YtOpenPopupBehavior];_.zD=function(){};var miZ;var A_x;var J_T;var z9a;var aa=function(){var q=_.Y.apply(this,arguments)||this;q.active=!1;q.identity=_.gj;return q};
_.O(aa,_.Y);aa.prototype.dataChanged=function(){this.active=!1};
aa.prototype.onClick=function(){_.t7(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
aa.prototype.dataChanged=aa.prototype.dataChanged;_.c([_.v(),_.h("design:type",Object)],aa.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],aa.prototype,"active",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],aa.prototype,"dataChanged",null);aa=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],aa);
_.R(aa,"yt-live-chat-text-input-field-suggestion",function(){if(z9a===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;J_T===void 0&&(J_T=document.createElement("template"));var y=J_T;u.call(w,y.content.cloneNode(!0),q.content.firstChild);z9a=q}q=z9a;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});_.D1=function(q,w,u){return CustomEvent.call(this,q,{detail:{value:w,path:u}})||this};
_.O(_.D1,CustomEvent);_.Z1=function(){var q=_.Y.apply(this,arguments)||this;q.viewerName=null;q.actionMap={"yt-live-chat-actions":"onChatMessage_"};q.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];q.PARTICIPANT_TIME_USEC_=3E8;return q};
_.O(_.Z1,_.Y);_.k=_.Z1.prototype;_.k.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.k.addParticipant=function(q){var w=_.Tjo(this.participants,q,function(y,e){y=y[Object.keys(y)[0]];e=e[Object.keys(e)[0]];y=String(_.lA(y.authorName)).toLowerCase();e=String(_.lA(e.authorName)).toLowerCase();return y<e?-1:y==e?0:1}.bind(this));
if(w>=0){var u=this.participants[w];u[Object.keys(u)[0]].timestampUsec&&this.splice("participants",w,1,q)}else this.splice("participants",-w-1,0,q);q=q[Object.keys(q)[0]];w=_.lA(q.authorName).toLocaleLowerCase();u=w.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(u)||(this.allParticipantsCharMap_[u]={});this.allParticipantsCharMap_[u][w]=q};
_.k.getAuthorsFromPrefix=function(q){return this.allParticipantsCharMap_.hasOwnProperty(q)?this.allParticipantsCharMap_[q]:null};
_.k.computeViewerRegex_=function(q){if(!q)return null;q=q.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return _.T("enable_web_yt_handles")||_.T("enable_live_chat_yt_handles")?new RegExp("([#]"+q.replace(/ /g,"\\s*")+"|^"+q.replace(/ /g,"\\s*")+"$|^"+q.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+q.replace(/ /g,"\\s*")+"$|(?<=\\s)"+q.replace(/ /g,"\\s*")+"(?=\\s))","ig"):new RegExp("([@#]"+q.replace(/ /g,"\\s*")+"|^"+q.replace(/ /g,"\\s*")+"$|^"+q.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+q.replace(/ /g,"\\s*")+
"$|(?<=\\s)"+q.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.k.checkForStaleParticipants_=function(){var q=this;this.trimOldParticipants_();this.asyncHandle_&&QEs(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.vj(function(){q.checkForStaleParticipants_()},3E4))};
_.k.onChatMessage_=function(q){var w=this,u=Date.now()*1E3;q.forEach(function(y){if(y=_.C(y,xBa)){y=y.item;var e=Object.keys(y)[0];w.SUPPORTED_ITEM_TYPES_.indexOf(e)!=-1&&y[e].timestampUsec>=u-w.PARTICIPANT_TIME_USEC_&&w.addParticipant(y)}},this);
this.checkForStaleParticipants_()};
_.k.trimOldParticipants_=function(){for(var q=Date.now()*1E3,w=this.participants.length-1;w>=0;w--){var u=this.participants[w];u=u[Object.keys(u)[0]];u.timestampUsec&&u.timestampUsec<q-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",w,1)}};
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],_.Z1.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],_.Z1.prototype,"viewerName",void 0);_.c([_.v({computed:"computeViewerRegex_(viewerName)"}),_.h("design:type",Object)],_.Z1.prototype,"viewerRegex",void 0);_.c([_.v({value:function(){return[]},
notify:!0}),_.h("design:type",Array)],_.Z1.prototype,"participants",void 0);_.Z1=_.c([_.JM({is:"yt-live-chat-participants-manager",noInjection:!0})],_.Z1);var aPc=/.*([:@#].*?)$/,po=/\u00a0/g,DiP=String.fromCharCode(160),Z6F={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"},$E=function(){var q=_.Y.apply(this,arguments)||this;q.disabled=!1;q.liveChatRichMessageInput=null;q.messageInput=null;q.isValidWithNoInputText=!1;q.suggestions=[];q.emojiManager=_.AV;q.inputMethodEditorActive=
!1;q.suggestionIndex=-1;q.JSC$11862_lastSuggestionRange=null;return q};
_.O($E,_.Y);_.k=$E.prototype;_.k.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.k.attached=function(){_.tv&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.k.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.k.dataChanged=function(){if(!this.ignoreColorMapping){var q=!1,w={},u;for(u in Z6F)this.data&&this.data.hasOwnProperty(u)&&(w[Z6F[u]]=this.colorFromDecimal(this.data[u]),q=!0);q&&_.Pj(this.hostElement,w)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.k.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.k.colorFromDecimal=function(q){q=Math.floor(Number(q));return"rgba("+[q>>16&255,q>>8&255,q&255,(q>>24&255)/255].join()+")"};
_.k.preventDrag=function(q){q.dataTransfer&&(q.dataTransfer.dropEffect="none");q.preventDefault()};
_.k.preventResize=function(q){q.returnValue=!1};
_.k.onInputChange=function(){var q=this.characterCount,w=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&w&&w.remove();if(!w&&this.characterCount>this.maxCharacterLimit){var u=window.getSelection();if(u){var y=u.getRangeAt(0);u.removeAllRanges();u.addRange(y)}}if(u=this.getCurrentRange())y=this.calculateTextBeforeRange(u),this.completeEmojisInRange(u,y,!0)||this.updateSuggestions(u,y);y=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(y);
_.t7(this.hostElement,"yt-live-chat-message-input-change",y);w&&this.characterCount===0&&w.remove();u&&u.commonAncestorContainer.parentElement.id==="input"&&u.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>q):u&&!u.collapsed&&u.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(q=this.input.childNodes.length-1;q>=0;q--)this.input.childNodes[q].nodeName==="BR"&&this.input.childNodes[q].remove()};
_.k.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.k.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var q=this.getCurrentRange();q&&q.commonAncestorContainer.parentElement.id==="input"&&q.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.k.mergeOverflowText=function(q){if(q){var w=document.createRange();w.selectNodeContents(q);w=w.extractContents();this.input.insertBefore(w,q)}};
_.k.checkRangeAtEndOfInput=function(){var q=this.getCurrentRange();if(q){var w=_.A(this.hostElement).querySelector("#overflow-text"),u=document.createRange();w&&w.previousSibling?w.previousSibling instanceof HTMLImageElement?u.selectNode(w.previousSibling):u.selectNodeContents(w.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?u.selectNode(this.input.lastChild):u.selectNodeContents(this.input.lastChild));u.collapse(!1);return u.isPointInRange(q.startContainer,
q.startOffset)}return!1};
_.k.handleOverflowText=function(q){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var w=_.A(this.hostElement).querySelector("#overflow-text"),u=this.getCurrentRange();this.input.normalize();q=this.checkRangeAtEndOfInput()&&q;this.mergeOverflowText(w);for(var y,e=0,t=0,X,G=this.input.childNodes,n=0;n<G.length;n++){var N=G[n];N instanceof Text?(t+=N.textContent.length,t>this.maxCharacterLimit&&(y=N,e=this.maxCharacterLimit+N.textContent.length-t)):N instanceof HTMLImageElement&&
(y=void 0,t=N.dataset.emojiId&&((y=this.data)==null?0:y.emojiCharacterCount)?t+this.data.emojiCharacterCount:t+N.alt.length,y=this.input,e=n);if(t>this.maxCharacterLimit&&y){X=document.createRange();X.collapse(!1);w?(t=this.input.lastChild.previousSibling,t instanceof Text?X.setEnd(this.input.lastChild.previousSibling,t.textContent.length):t instanceof HTMLImageElement&&X.setEnd(this.input,this.input.childNodes.length-1)):X.selectNodeContents(this.input);X.setStart(y,e);break}}X&&(y=!1,u&&(q=X.isPointInRange(u.startContainer,
u.startOffset-1)),w||(w=document.createElement("span"),w.id="overflow-text",w.textContent="",w.setAttribute("contenteditable","true"),_.A(_.A(this.hostElement).querySelector("#input")).appendChild(w),y=!0),w&&(u=X.extractContents(),w.insertBefore(u,w.firstChild),q&&w.firstChild&&(u=document.createRange(),y?u.setStartAfter(w.lastChild):u.setStartAfter(w.firstChild),u.collapse(!0),w=window.getSelection(),w.removeAllRanges(),w.addRange(u))))}};
_.k.checkForDuplicateSpans=function(){for(var q=0;q<this.input.childNodes.length;q++){var w=this.input.childNodes[q];if(w.nodeName==="SPAN"){var u=document.createRange();u.selectNodeContents(w);u=u.extractContents();this.input.insertBefore(u,w);w.remove()}}this.handleOverflowText(!0)};
_.k.getCurrentRange=function(){var q=window.getSelection();return q&&q.rangeCount?q.getRangeAt(0).cloneRange():null};
_.k.getInputRange=function(){var q=this.getCurrentRange();if(q){for(var w=q.commonAncestorContainer,u=!1,y=_.A(this.hostElement).querySelector("#input");w;){if(w===y){u=!0;break}w=w.parentNode}u||(q=null)}q||(q=this.getRangeAtEnd());return q};
_.k.getRangeAtEnd=function(){var q=document.createRange(),w=_.A(this.hostElement).querySelector("#input").lastChild;!w||w.nodeName!=="#text"&&w.nodeName!=="SPAN"?(q.selectNodeContents(_.A(this.hostElement).querySelector("#input")),q.collapse(!1)):w.nodeName==="#text"?q.setStart(w,w.textContent.length):q.setStart(w,w.childNodes.length);return q};
_.k.getSuggestions=function(q){var w=[],u=q.substring(0,3),y=dir(_.AV,u,!0);if(y)for(var e in y)if(e.toLocaleLowerCase().indexOf(q)===0){var t=y[e];if(t&&t.emojiId){if(t=CKr(_.AV,t.emojiId)){var X=void 0,G=void 0,n=void 0,N=void 0,Q=((X=t.image)==null?0:(G=X.accessibility)==null?0:(n=G.accessibilityData)==null?0:n.label)||t.isCustomEmoji?(N=t.shortcuts)==null?void 0:N[0]:t.emojiId;w.push({suggestion:{emoji:!0,image:t.image,alt:Q,text:e,textToInsertWhenSelected:t.isCustomEmoji?e:Q}})}if(w.length>=
64)break}}if(!this.participantsManager)return null;y=_.T("enable_web_yt_handles")||_.T("enable_live_chat_yt_handles");if(u.indexOf("@")===0||u.indexOf("#")===0)if(e=u.charAt(0),q=q.substring(1),u=y&&u.indexOf("@")===0?u.substring(0,2):u.substring(1),u=this.participantsManager.getAuthorsFromPrefix(u))for(var I in u)if(I.indexOf(q)===0||y&&I.indexOf(e+q)===0)if(t=u[I],X=_.lA(t.authorName),w.push({suggestion:{author:!0,authorType:e,image:t.authorPhoto,alt:X,text:X}}),w.length>=64)break;return w?w.sort(function(U,
d){return d.suggestion.text<U.suggestion.text?-1:d.suggestion.text===U.suggestion.text?0:1}):null};
_.k.insertSuggestion=function(q){var w=_.T("enable_web_yt_handles")||_.T("enable_live_chat_yt_handles")?q.text+DiP:q.authorType+q.text+DiP;q.emoji?this.insertTextAtRange(this.JSC$11862_lastSuggestionRange,q.textToInsertWhenSelected||""):q.author&&this.insertTextAtRange(this.JSC$11862_lastSuggestionRange,w)};
_.k.updateSuggestionsAtCaret=function(){var q=this.getCurrentRange();q&&this.updateSuggestions(q,this.calculateTextBeforeRange(q))};
_.k.offsetStartOfRangeBy=function(q,w){for(;w>0;)if(q.startOffset-w>=0){q.setStart(q.startContainer,q.startOffset-w);break}else{w=q.startContainer instanceof HTMLImageElement?w-q.startContainer.alt.length:w-q.startOffset;var u=q.startContainer.previousSibling;if(!u){q.setStart(q.startContainer,0);break}if(_.T("live_chat_require_space_for_autocomplete_emoji")){var y=void 0,e=void 0;q.setStart(u,((y=u)==null?void 0:(e=y.textContent)==null?void 0:e.length)||0)}else q.setStart(u,u.childNodes.length||
0)}};
_.k.updateSuggestions=function(q,w){var u=this;this.JSC$11862_lastSuggestionRange&&(this.JSC$11862_lastSuggestionRange.detach(),this.JSC$11862_lastSuggestionRange=null);if((w=aPc.exec(w))&&w.length&&(w=w[w.length-1].toLocaleLowerCase(),w.length>2&&(this.offsetStartOfRangeBy(q,w.length),this.JSC$11862_lastSuggestionRange=q,(q=this.getSuggestions(w))&&q.length))){this.suggestions=q;_.KJ(this,function(){_.A(u.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(q.length-1);return}this.dropdown.opened=!1};
_.k.completeEmojisInRange=function(q,w,u){var y=w.replace(/[\s\xa0]+$/,"");w=w.length-y.length;y=y.split(" ");y=y[y.length-1].trim().toLocaleLowerCase();var e=y.lastIndexOf(":");if(u&&!w&&e!==y.length-1)return!1;e!==-1&&(u=y.lastIndexOf(":",e-1),u!==-1&&(y=y.substring(u)));if((u=_.ND(_.AV,y))&&u.emojiId){u=CKr(_.AV,u.emojiId)||null;this.offsetStartOfRangeBy(q,y.length+w);var t,X,G,n;y=(((t=u)==null?0:t.isCustomEmoji)?(X=u)==null?void 0:(G=X.shortcuts)==null?void 0:G[0]:(n=u)==null?void 0:n.emojiId)||
"";w&&(y+=DiP);this.insertTextAtRange(q,y);this.dropdown.opened=!1;return!0}return!1};
_.k.onSuggestion=function(q){this.insertSuggestion(q.detail);this.dropdown.opened=!1};
_.k.onKeyPress=function(q){q.keyCode===13&&(q.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.t7(this.hostElement,"yt-live-chat-send-message"))};
_.k.completeEmojis=function(){var q=document.createRange(),w=_.A(this.hostElement).querySelector("#input").lastChild;w?q.setStart(w,w.childNodes.length):(q.selectNodeContents(_.A(this.hostElement).querySelector("#input")),q.collapse(!1));this.completeEmojisInRange(q,this.calculateTextBeforeRange(q),_.T("live_chat_require_space_for_autocomplete_emoji"))};
_.k.maybePreventTextFormatting=function(q){!_.Gs||!q.ctrlKey&&!q.metaKey||q.keyCode!==66&&q.keyCode!==73||(q.stopImmediatePropagation(),q.preventDefault())};
_.k.onKeyDown=function(q){this.maybePreventTextFormatting(q);if(this.dropdown.opened)switch(q.keyCode){case 27:this.dropdown.opened=!1;q.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;q.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);q.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),q.preventDefault()}};
_.k.onKeyUp=function(q){switch(q.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.kf)this.onInputChange()};
_.k.changeSuggestionIndex=function(q){if(this.dropdown.opened){var w=_.A(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<w.children.length&&(w.children[this.suggestionIndex].active=!1);var u=this.suggestions.length;this.suggestionIndex=(q+u)%u;q=w.children[this.suggestionIndex];q.active=!0;w.scrollTop=q.offsetTop}};
_.k.onInputPaste=function(q){q.preventDefault();(q=q.clipboardData)&&q.types&&(q=q.getData("text/plain")||"",q=q.replace(/\n/g,""),this.insertText(q));(q=this.getCurrentRange())&&q.commonAncestorContainer.parentElement.id==="input"&&q.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.k.onFocus=function(){this._setFocused(!0)};
_.k.onBlur=function(){this._setFocused(!1)};
_.k.insertText=function(q){this.insertTextAtRange(this.getInputRange(),q)};
_.k.insertTextAtRange=function(q,w){if(q&&(q.collapsed||q.deleteContents(),w=_.AV.createDocumentFragment(w,!0,!1))){for(var u=_.P((w==null?void 0:w.childNodes)||[]),y=u.next();!y.done;y=u.next()){y=y.value;var e=void 0,t=void 0,X=void 0,G=void 0,n=void 0;(X=(e=window)==null?void 0:(t=e.ShadyCSS)==null?void 0:t.ScopingShim)==null||(n=(G=X).scopeNode)==null||n.call(G,y,this.hostElement.localName)}u=w.lastChild;q.insertNode(w);this.focused||this.input.focus();if(this.focused){q=q.cloneRange();q.selectNodeContents(u);
q.collapse(!1);if(w=window.getSelection())w.removeAllRanges(),w.addRange(q);q.commonAncestorContainer.parentElement.id==="input"&&q.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}q=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(q);_.t7(this.hostElement,"yt-live-chat-message-input-change",q)}};
_.k.setLiveChatRichMessageInput=function(q){_.A(_.A(this.hostElement).querySelector("#input")).textContent="";if(q&&q.textSegments){for(var w=0;w<q.textSegments.length;w++){var u=q.textSegments[w];u.text?_.A(_.A(this.hostElement).querySelector("#input")).appendChild(_.AV.createDocumentFragment(u.text,!0,!1)):u.emojiId&&(u=_.fo(_.AV,u.emojiId))&&_.A(_.A(this.hostElement).querySelector("#input")).appendChild(_.AV.createEmoji(u,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.k.setText=function(q){this.setLiveChatRichMessageInput(q?{textSegments:[{text:q}]}:null)};
_.k.calculateTextBeforeRange=function(q){var w="",u=q.startContainer;if(u&&u instanceof Text){var y;w=((y=u.textContent)==null?void 0:y.substring(0,q.startOffset))||"";u=u.previousSibling}for(;u&&u instanceof Text;)w=u.textContent+w,u=u.previousSibling;return w.replace(po," ")};
_.k.calculateLiveChatRichMessageInput=function(){for(var q=[],w="",u=_.A(_.A(this.hostElement).querySelector("#input")).childNodes,y=0;y<u.length;y++){var e=u[y];e instanceof Text?w+=e.textContent:e instanceof HTMLImageElement&&(e.dataset.emojiId?(w&&(q.push({text:w.replace(po," ")}),w=""),q.push({emojiId:e.dataset.emojiId})):w+=e.alt)}w&&q.push({text:w.replace(po," ")});if(u=_.A(this.hostElement).querySelector("#overflow-text")){w="";u=u.childNodes;for(y=0;y<u.length;y++)e=u[y],e instanceof Text?
w+=e.textContent:e instanceof HTMLImageElement&&(e.dataset.emojiId?(w&&(q.push({text:w.replace(po," ")}),w=""),q.push({emojiId:e.dataset.emojiId})):w+=e.alt);w&&q.push({text:w.replace(po," ")})}return{textSegments:q}};
_.k.computeCharacterCount=function(q){if(!q||!q.textSegments)return 0;for(var w=0,u=0;u<q.textSegments.length;u++){var y=q.textSegments[u];if(y.text)w+=y.text.length;else if(y.emojiId){var e=void 0;if((e=this.data)==null?0:e.emojiCharacterCount)w+=this.data.emojiCharacterCount;else{var t=e=void 0,X=void 0;w+=((t=_.fo(_.AV,(e=y)==null?void 0:e.emojiId))==null?void 0:(X=t.shortcuts)==null?void 0:X[0].length)||0}}}return w};
_.k.characterCountChanged=function(){_.t7(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.k.focusedChanged=function(){this.hostElement.dispatchEvent(new _.D1("focused-changed",this.focused))};
_.k.focus=function(){this.setFocus(!1)};
_.k.focusAtEnd=function(){this.setFocus(!0)};
_.k.setFocus=function(q){q=q?this.getRangeAtEnd():this.getInputRange();_.A(this.hostElement).querySelector("#input").focus();var w=window.getSelection();w&&(w.removeAllRanges(),w.addRange(q))};
_.k.insertEmoji=function(q){var w,u=((q==null?0:q.isCustomEmoji)?(w=q.shortcuts)==null?void 0:w[0]:q==null?void 0:q.emojiId)||"";this.insertText(u)};
_.k.computeText=function(q){if(!q||!q.textSegments)return"";for(var w="",u=0;u<q.textSegments.length;u++){var y=q.textSegments[u];if(y.text)w+=y.text;else if(y.emojiId){var e=void 0,t=void 0,X=void 0;w+=((t=_.fo(_.AV,(e=y)==null?void 0:e.emojiId))==null?void 0:(X=t.shortcuts)==null?void 0:X[0])||""}}return w};
_.k.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.x$.Object.defineProperties($E.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.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}}});
$E.prototype.focusedChanged=$E.prototype.focusedChanged;$E.prototype.characterCountChanged=$E.prototype.characterCountChanged;$E.prototype.onSuggestion=$E.prototype.onSuggestion;$E.prototype.onMessageSet=$E.prototype.onMessageSet;$E.prototype.dataChanged=$E.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],$E.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],$E.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],$E.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],$E.prototype,"disabled",void 0);_.c([_.Z("disabled"),_.h("design:type",Number),_.h("design:paramtypes",[])],$E.prototype,"inputTabIndex",null);_.c([_.Z("data.maxCharacterLimit"),_.v({readOnly:!0,notify:!0}),_.h("design:type",Number),_.h("design:paramtypes",[])],$E.prototype,"maxCharacterLimit",null);
_.c([_.Z("liveChatRichMessageInput"),_.v({readOnly:!0,notify:!0}),_.h("design:type",Number),_.h("design:paramtypes",[])],$E.prototype,"characterCount",null);_.c([_.Z("maxCharacterLimit, characterCount"),_.v({readOnly:!0,notify:!0}),_.h("design:type",Number),_.h("design:paramtypes",[])],$E.prototype,"remainingCharacterCount",null);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],$E.prototype,"isChatMessageInput",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],$E.prototype,"inputExpanded",void 0);_.c([_.v({readOnly:!0,notify:!0}),_.h("design:type",Object)],$E.prototype,"liveChatRichMessageInput",void 0);_.c([_.v(),_.h("design:type",Object)],$E.prototype,"messageInput",void 0);_.c([_.v(),_.h("design:type",Boolean)],$E.prototype,"ignoreColorMapping",void 0);_.c([_.Z("characterCount"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$E.prototype,"hasText",null);
_.c([_.v(),_.h("design:type",Object)],$E.prototype,"isValidWithNoInputText",void 0);_.c([_.Z("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.v(),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$E.prototype,"isInputValid",null);_.c([_.v({readOnly:!0,value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],$E.prototype,"focused",void 0);_.c([_.v(),_.h("design:type",Array)],$E.prototype,"suggestions",void 0);
_.c([_.v(),_.h("design:type",_.VL)],$E.prototype,"emojiManager",void 0);_.c([_.v(),_.h("design:type",_.Z1)],$E.prototype,"participantsManager",void 0);_.c([_.v(),_.h("design:type",Boolean)],$E.prototype,"noUnderline",void 0);_.c([_.v(),_.h("design:type",Object)],$E.prototype,"inputMethodEditorActive",void 0);_.c([_.Wj("#dropdown"),_.h("design:type",Object)],$E.prototype,"dropdown",void 0);_.c([_.Wj("#input"),_.h("design:type",HTMLElement)],$E.prototype,"input",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$E.prototype,"dataChanged",null);_.c([_.nL("messageInput"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$E.prototype,"onMessageSet",null);_.c([_.Gm("yt-live-chat-select-suggestion"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],$E.prototype,"onSuggestion",null);
_.c([_.nL("characterCount"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$E.prototype,"characterCountChanged",null);_.c([_.nL("focused"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$E.prototype,"focusedChanged",null);$E=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],$E);
_.p9P=_.R($E,"yt-live-chat-text-input-field-renderer",function(){if(A_x===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;miZ===void 0&&(miZ=document.createElement("template"));var y=miZ;u.call(w,y.content.cloneNode(!0),q.content.firstChild);A_x=q}q=A_x;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var vY=function(){var q=_.Y.apply(this,arguments)||this;q.buttonOverrides={style:"overlay",type:"filled"};q.allowAnimations=!1;q.modern=_.T("web_button_rework_with_live");q.noPadding=!1;return q};
_.O(vY,_.Y);_.k=vY.prototype;_.k.shouldSupportInlineActionButtons=function(){return!0};
_.k.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"}}}}};
_.k.ready=function(){var q=document.querySelector("yt-live-chat-app");q&&q.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.k.attached=function(){this.allowAnimations=!1};
_.k.dataChanged=function(){if(this.data){var q={"--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)};_.Pj(this.hostElement,q);this.allowAnimations=!0}};
_.k.messageChanged=function(){var q,w=(q=this.data)==null?void 0:q.message;q=_.A(_.A(this.hostElement).querySelector("#message"));q.textContent="";w&&q.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(w))};
_.k.computeShowOnlyHeader=function(q,w){return!q||q.pdgLikeButton||q.replyButton||q.buyFlowButton?!1:this.isEmpty(q,w)&&!q.footer};
_.k.computeShowFooterDivider=function(q,w,u){return q?!!q.footer&&!this.isEmpty(q,w)&&!u:!1};
_.k.computeIsUserEditable=function(q){return!!q.inputField};
_.k.computeHasHeartButton=function(q){return(q==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(q==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(q==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.k.computeNoveltyImage=function(q){if(q.headerOverlayImage&&q.headerOverlayImage.thumbnails.length){var w=q.headerOverlayImage.thumbnails[0],u,y;if((u=q.pdgPurchasedNoveltyLoggingDirectives)==null?0:(y=u.loggingDirectives)==null?0:y.trackingParams){var e,t;CHl((e=q.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(t=e.loggingDirectives)==null?void 0:t.trackingParams)}return w.width||0}return 0};
_.k.computeAuthorPhotoSize=function(q){return(q==null?0:q.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.k.inputFocus=function(){var q=_.A(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");q&&q.focus()};
_.k.inputInsertEmoji=function(q){var w=_.A(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");w&&w.insertEmoji(q)};
_.k.inputMessage=function(){var q=_.A(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),w;return q&&((w=this.data)==null?0:w.inputField)?(q.completeEmojis(),_.bv(q.liveChatRichMessageInput)):null};
_.k.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.k.isEmpty=function(q,w){return q?q.empty||!(q.message||q.inputField||w):!0};
_.k.onLowerBuyButtonClick=function(){var q,w=_.C((q=this.data)==null?void 0:q.buyButton,_.aB);w&&w.trackingParams&&!hAM(w.command)&&(q=_.Tj(w.trackingParams))&&(w=_.pN())&&_.jB(w,q)};
_.k.shouldSupportWholeItemClick=function(){return!0};
_.x$.Object.defineProperties(vY.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
vY.prototype.isDeletedChanged=vY.prototype.isDeletedChanged;vY.prototype.messageChanged=vY.prototype.messageChanged;vY.prototype.dataChanged=vY.prototype.dataChanged;_.c([_.D(QPj.YtPdgLiveChatItemBehavior),_.h("design:type",Object)],vY.prototype,"ytPdgLiveChatItemBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.oN),_.h("design:type",Object)],vY.prototype,"ytLiveChatReduxBehavior",void 0);
_.c([_.D(_.JV.YtLiveChatItemBehavior),_.h("design:type",_.zD)],vY.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],vY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],vY.prototype,"data",void 0);_.c([_.v({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:UJM}),_.h("design:type",Object)],vY.prototype,"engagementState",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.h("design:type",Boolean)],vY.prototype,"isUserEditable",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.h("design:type",Boolean)],vY.prototype,"hasHeartButton",void 0);_.c([_.v({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.h("design:type",Boolean)],vY.prototype,"showOnlyHeader",void 0);
_.c([_.v({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.h("design:type",Boolean)],vY.prototype,"showFooterDivider",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Object)],vY.prototype,"allowAnimations",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],vY.prototype,"dashboardMoneyFeed",void 0);_.c([_.v({computed:"computeNoveltyImage(data)"}),_.h("design:type",Number)],vY.prototype,"noveltyWidth",void 0);
_.c([_.v({computed:"computeAuthorPhotoSize(data)"}),_.h("design:type",Number)],vY.prototype,"authorPhotoSize",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],vY.prototype,"modern",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],vY.prototype,"noPadding",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vY.prototype,"dataChanged",null);
_.c([_.nL("data.message"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vY.prototype,"messageChanged",null);_.c([_.Z("data","dashboardMoneyFeed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],vY.prototype,"hideLowerBumper",null);_.c([_.nL("isDeleted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vY.prototype,"isDeletedChanged",null);
vY=_.c([_.E({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],vY);
_.R(vY,"yt-live-chat-paid-message-renderer",function(){if(Rir===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;E0a===void 0&&(E0a=document.createElement("template"));var y=E0a;u.call(w,y.content.cloneNode(!0),q.content.firstChild);Rir=q}q=Rir;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var $iP;var vt6;var bx=function(){var q=_.Na.apply(this,arguments)||this;q._noAccessors=!0;return q};
_.O(bx,_.Na);bx.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Et("openPopupConfig")};
_.c([_.D(_.ux.YtOpenPopupBehavior),_.h("design:type",Object)],bx.prototype,"ytOpenPopupBehavior",void 0);bx=_.c([_.Q6()],bx);_.YE=[_.ux.YtOpenPopupBehavior,bx.prototype];var b6k;var hE=[_.Ii,EXa,_.AO,_.ip,_.LN,_.xGF,_.Tt,_.Gwr,_.JI,Ib7];_.T("web_watch_get_updated_metadata_response_processing")&&hE.push(_.msk);_.T("web_continuation_response_processing")&&hE.push(_.ZK);var Uf4=new _.MH("RESPONSE_RECEIVED_COMMANDS"),WKs=new _.MH("RESPONSE_RECEIVED_COMMANDS");var tz7="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),kUz=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],elM=["GET_UNSEEN_NOTIFICATION_COUNT"];var gS=function(){var q=_.Na.apply(this,arguments)||this;q._noAccessors=!0;q.serviceEndpointHandlers=[];return q};
_.O(gS,_.Na);gS.prototype.created=function(){var q=this;this.endpointHandlerActionMap={"yt-service-request":function(w,u,y,e){var t;return yZl(q.hostElement,w,u,y,e,q.serviceEndpointHandlers,(t=q.onEntitiesUpdated)==null?void 0:t.bind(q))}}};
gS.prototype.attached=function(){_.Ln(_.lD.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
gS.prototype.detached=function(){_.M5(_.lD.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
gS=_.c([_.Q6()],gS);_.Y$6=[gS.prototype];var gtF,EtF=function(){return gtF!==void 0?gtF:gtF=document.createElement("template")};
document.head.appendChild(EtF().content);var R9$;var c_k=document.head,S$a=c_k.appendChild,h9T;if(R9$===void 0){var juj=document.createElement("template");_.f(juj,"\x3c!--css-build:shady--\x3e");juj.content.insertBefore(EtF().content.cloneNode(!0),juj.content.firstChild);R9$=juj}h9T=R9$;S$a.call(c_k,h9T.content);var lP6,LtX=function(){return lP6!==void 0?lP6:lP6=document.createElement("template")};
document.head.appendChild(LtX().content);var MCG;var KtP=document.head,B2F=KtP.appendChild,xi3;if(MCG===void 0){var q0G=document.createElement("template");_.f(q0G,"\x3c!--css-build:shady--\x3e");q0G.content.insertBefore(LtX().content.cloneNode(!0),q0G.content.firstChild);MCG=q0G}xi3=MCG;B2F.call(KtP,xi3.content);var wxk;_.JE("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.JE("sharingRendererButtons","buttonRenderer","ytd-button-renderer");wxk=_.T("web_button_rework")&&_.RX("BUTTON_REWORK")||_.T("web_button_rework_with_live");_.Eh=function(){var q=_.Y.apply(this,arguments)||this;q.isPressed=!1;q.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return q};
_.O(_.Eh,_.Y);_.k=_.Eh.prototype;_.k.created=function(){this.showTooltips=!0};
_.k.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.k.onHintIdChanged=function(){var q=this,w,u,y=(w=this.ytButtonBehavior.data)==null?void 0:(u=w.hint)==null?void 0:u.hintRenderer;if(y&&y.hintId){w=_.X4(this.hostElement,"yt-get-opened-popups-action");w=(w&&w.length===1?w[0]:[]).length>0;var e=null;y.hintId!=="sponsor-pre-purchase"||w?y.hintId.startsWith("sponsor-post-purchase")&&!w?e=$E$("membership-manage"):y.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!w&&(e=$E$("membership-freebie-join")):e=$E$("membership-join");e&&_.pi.addLowPriorityJob(function(){for(var t=
_.P(e),X=t.next();!X.done;X=t.next())q.ytComponentBehavior.resolveCommand(X.value)})}};
_.k.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.k.onYtNavigate=function(q){var w=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(q.detail.endpoint);w&&(q.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(w))};
_.k.onYtServiceRequestSent=function(q,w){this.handleServiceRequestActions(w);_.t7(this.hostElement,"yt-service-request-sent-button-renderer")};
_.k.onServiceRequestCompleted=function(q,w){this.handleServiceRequestActions(w);_.t7(this.hostElement,"yt-service-request-completed-button-renderer")};
_.k.updateButton=function(q){var w;if(q=(w=_.C(q,dG$))==null?void 0:w.updatedButton)this.ytButtonBehavior.data=_.C(q,_.aB)};
_.k.handleUpdateButtonAction=function(q){var w=this.ytButtonBehavior.data;w.targetId&&q.updateButtonAction.targetId&&w.targetId===q.updateButtonAction.targetId&&this.updateButton(q)};
_.k.handleServiceRequestActions=function(q){if(q=q.actions)for(var w=0;w<q.length;w++)this.updateButton(q[w])};
_.x$.Object.defineProperties(_.Eh,{template:{configurable:!0,enumerable:!0,get:function(){if(b6k===void 0){var q=document.createElement("template");_.f(q,"\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");q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);b6k=q}q=b6k;return q}}});
_.Eh.prototype.onServiceRequestCompleted=_.Eh.prototype.onServiceRequestCompleted;_.Eh.prototype.onYtServiceRequestSent=_.Eh.prototype.onYtServiceRequestSent;_.Eh.prototype.onYtNavigate=_.Eh.prototype.onYtNavigate;_.Eh.prototype.onPressedStateChanged=_.Eh.prototype.onPressedStateChanged;_.Eh.prototype.onHintIdChanged=_.Eh.prototype.onHintIdChanged;_.c([_.v(),_.h("design:type",Object)],_.Eh.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],_.Eh.prototype,"isPressed",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],_.Eh.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.F8r.YtButtonBehavior),_.h("design:type",Object)],_.Eh.prototype,"ytButtonBehavior",void 0);_.c([_.D(_.YE),_.h("design:type",Object)],_.Eh.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],_.Eh.prototype,"ytComponentBehavior",void 0);
_.c([_.D(PY.YtRenderButtonBehavior),_.h("design:type",Object)],_.Eh.prototype,"ytRenderButtonBehavior",void 0);_.c([_.nL("data.hint.hintRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],_.Eh.prototype,"onHintIdChanged",null);_.c([_.nL("isPressed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],_.Eh.prototype,"onPressedStateChanged",null);
_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],_.Eh.prototype,"onYtNavigate",null);_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],_.Eh.prototype,"onYtServiceRequestSent",null);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],_.Eh.prototype,"onServiceRequestCompleted",null);_.Eh=_.c([_.E({is:"ytd-button-renderer",disableElementRegistration:wxk})],_.Eh);var Ra=function(){var q=_.Y.apply(this,arguments)||this;q.modern=_.T("web_button_rework_with_live");q.buttonOverrides={style:"overlay",type:"filled"};return q};
_.O(Ra,_.Y);_.k=Ra.prototype;_.k.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"}}}}};
_.k.ready=function(){var q=document.querySelector("yt-live-chat-app");q&&q.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.k.dataChanged=function(){if(this.data&&this.data.sticker){var q=_.wm(this.data.sticker.thumbnails,this.stickerWidth);q||_.Unl(q).thenCatch(function(){_.Y8(new _.fv("Failed to load Super Sticker with url",q))})}};
_.k.computeAuthorPhotoSize=function(q){return(q==null?0:q.isV2Style)?32:40};
_.k.computeIsV2Style=function(q){return(q==null?0:q.isV2Style)?!0:!1};
_.k.onStickerLoaded=function(q){var w,u,y;(w=_.he(q))==null||(u=w.parentNode)==null||(y=u.classList)==null||y.add("sticker-loaded")};
_.k.computeNoveltyImageWidth=function(q){var w,u;if(q==null?0:(w=q.headerOverlayImage)==null?0:(u=w.thumbnails)==null?0:u.length){w=q.headerOverlayImage.thumbnails[0];var y,e;if((y=q.pdgPurchasedNoveltyLoggingDirectives)==null?0:(e=y.loggingDirectives)==null?0:e.trackingParams){var t,X;CHl((t=q.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(X=t.loggingDirectives)==null?void 0:X.trackingParams)}return w.width||0}return 0};
_.k.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.k.updateStickerStyles=function(){var q=this.data;q&&(q={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(q.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(q.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(q.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(q.authorNameTextColor)},
_.Pj(this.hostElement,q))};
_.k.onBuyButtonClick=function(){var q,w=_.C((q=this.data)==null?void 0:q.buyButton,_.aB);w&&!hAM(w.command)&&this.ytRendererBehavior.logExplicitClick(w)};
_.k.shouldSupportWholeItemClick=function(){return!0};
_.x$.Object.defineProperties(Ra.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 q;return((q=this.data)==null?0:q.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Ra.prototype.updateStickerStyles=Ra.prototype.updateStickerStyles;Ra.prototype.isDeletedChanged=Ra.prototype.isDeletedChanged;Ra.prototype.onStickerLoaded=Ra.prototype.onStickerLoaded;Ra.prototype.dataChanged=Ra.prototype.dataChanged;_.c([_.D(QPj.YtPdgLiveChatItemBehavior),_.h("design:type",Object)],Ra.prototype,"ytPdgLiveChatItemBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ra.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Ra.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.JV.YtLiveChatItemBehavior),_.h("design:type",_.zD)],Ra.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ra.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ra.prototype,"data",void 0);
_.c([_.v({computed:"computeAuthorPhotoSize(data)"}),_.h("design:type",Number)],Ra.prototype,"authorPhotoSize",void 0);_.c([_.v(),_.h("design:type",Boolean)],Ra.prototype,"isDeleted",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ra.prototype,"dashboardMoneyFeed",void 0);_.c([_.v({computed:"computeNoveltyImageWidth(data)"}),_.h("design:type",Number)],Ra.prototype,"noveltyWidth",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ra.prototype,"modern",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.h("design:type",Boolean)],Ra.prototype,"isV2Style",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ra.prototype,"dataChanged",null);_.c([_.Gm("yt-img-shadow-loaded"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ra.prototype,"onStickerLoaded",null);
_.c([_.Z("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],Ra.prototype,"stickerWidth",null);_.c([_.Z("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],Ra.prototype,"stickerHeight",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ra.prototype,"hasHeartButton",null);_.c([_.Z("data","dashboardMoneyFeed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ra.prototype,"hideLowerBumper",null);
_.c([_.nL("isDeleted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ra.prototype,"isDeletedChanged",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ra.prototype,"updateStickerStyles",null);Ra=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],Ra);
_.R(Ra,"yt-live-chat-paid-sticker-renderer",function(){if(vt6===void 0){var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;$iP===void 0&&($iP=document.createElement("template"));var y=$iP;u.call(w,y.content.cloneNode(!0),q.content.firstChild);vt6=q}q=vt6;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var u9r;var y9$;var ek$,kiX=function(){return ek$!==void 0?ek$:ek$=document.createElement("template")};
document.head.appendChild(kiX().content);var t2a,Pmr=function(){return t2a!==void 0?t2a:t2a=document.createElement("template")};
document.head.appendChild(Pmr().content);var Xx$;var FhT,Gi3=function(){return FhT!==void 0?FhT:FhT=document.createElement("template")};
document.head.appendChild(Gi3().content);var nxT;var Hc$=document.head,Whk=Hc$.appendChild,sMT;if(nxT===void 0){var N36=document.createElement("template");_.f(N36,"\x3c!--css-build:shady--\x3e");N36.content.insertBefore(Gi3().content.cloneNode(!0),N36.content.firstChild);nxT=N36}sMT=nxT;Whk.call(Hc$,sMT.content);var QMr=document.head,IFX=QMr.appendChild,icx;if(Xx$===void 0){var cY=document.createElement("template");_.f(cY,"\x3c!--css-build:shady--\x3e");cY.content.insertBefore(Pmr().content.cloneNode(!0),cY.content.firstChild);cY.content.insertBefore(kiX().content.cloneNode(!0),cY.content.firstChild);Xx$=cY}icx=Xx$;IFX.call(QMr,icx.content);var SX=function(){var q=_.Na.apply(this,arguments)||this;q.focusedIndex=0;q.verticalOffset=0;q.verticalAlign="top";q.dynamicAlign=!0;return q};
_.O(SX,_.Na);SX.prototype.emojiUrl=function(q){q=_.fo(this.emojiManager,q);if(!q)return"";var w;q=(w=q.image)==null?void 0:w.thumbnails;return _.wm(q,24)||""};
var r9j=function(q){var w;q.emojiVariants&&(w=q.data)!=null&&w.target&&_.KJ(q,function(){q.set("verticalOffset",-1*q.hostElement.clientHeight);var u=_.A(q.hostElement).querySelector("img");u&&u.focus()})};
_.k=SX.prototype;_.k.onKeyboardEnter=function(){};
_.k.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.k.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.k.onKeyDown=function(q){switch(q.keyCode){case 13:this.onKeyboardEnter();q.preventDefault();break;case 40:this.changeFocus(1);q.preventDefault();break;case 38:this.changeFocus(-1);q.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.k.onYtEmojiSelect=function(q){var w=this,u,y,e,t,X,G,n,N;return _.F(function(Q){if(Q.nextAddress==1)return y=(u=w.data)==null?void 0:u.emoji,X=((e=y)==null?void 0:e.stickyPrefId)||((t=y)==null?void 0:t.emojiId),n=(G=q.detail)==null?void 0:G.emojiId,X&&n&&X!==n?_.H(Q,(N=w.emojiManager)==null?void 0:O6P(N,y,n),2):Q.return();_.Pw(w.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[y,n]);_.HI(Q)})};
_.k.changeFocus=function(q){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+q+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(q=_.A(this.hostElement).querySelector("#variants"))&&q.children[this.focusedIndex].focus())};
_.x$.Object.defineProperties(SX.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
SX.prototype.onYtEmojiSelect=SX.prototype.onYtEmojiSelect;SX.prototype.onKeyDown=SX.prototype.onKeyDown;SX.prototype.onEmojiVariantsChanged=SX.prototype.onEmojiVariantsChanged;SX.prototype.onVerticalOffsetOrPositionTargetChanged=SX.prototype.onVerticalOffsetOrPositionTargetChanged;_.c([_.D(_.RZ),_.h("design:type",Object)],SX.prototype,"ironOverlayBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],SX.prototype,"data",void 0);_.c([_.v(),_.h("design:type",_.VL)],SX.prototype,"emojiManager",void 0);
_.c([_.v(),_.h("design:type",Object)],SX.prototype,"emojiVariants",void 0);_.c([_.v(),_.h("design:type",Object)],SX.prototype,"focusedIndex",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],SX.prototype,"positionTarget",null);_.c([_.v({reflectToAttribute:!0}),_.Z("verticalOffset","data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],SX.prototype,"isPositioned",null);_.c([_.v(),_.h("design:type",Object)],SX.prototype,"verticalOffset",void 0);
_.c([_.v(),_.h("design:type",Object)],SX.prototype,"verticalAlign",void 0);_.c([_.v(),_.h("design:type",Object)],SX.prototype,"dynamicAlign",void 0);_.c([_.nL("verticalOffset","positionTarget"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],SX.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.c([_.nL("emojiVariants"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],SX.prototype,"onEmojiVariantsChanged",null);
_.c([_.Gm("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],SX.prototype,"onKeyDown",null);_.c([_.Gm("yt-emoji-select"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype",Promise)],SX.prototype,"onYtEmojiSelect",null);SX=_.c([_.Q6()],SX);var UV6=[SX.prototype];var T3a;var CmT;var dVj=/medium-light|medium-dark|light|medium|dark/,OcG=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,oxa=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),hV=function(){var q=_.Y.apply(this,arguments)||this;q.userSelection={left:null,right:null};q.scrollAction="lock";q.isEmojiDraftInProgress=!1;return q};
_.O(hV,_.Y);_.k=hV.prototype;_.k.onClick=function(q){q=_.he(q);q instanceof HTMLImageElement&&this.selectOrUpdateEmoji(q)};
_.k.selectOrUpdateEmoji=function(q){var w=q.getAttribute("selection");w&&(w==="default"?_.t7(this.hostElement,"yt-emoji-select",_.fo(this.emojiManager,q.id)):w==="left"?this.userSelection=Object.assign({},this.userSelection,{left:q.src}):w==="right"?this.userSelection=Object.assign({},this.userSelection,{right:q.src}):w==="user"&&this.userSelection.left&&this.userSelection.right&&_.t7(this.hostElement,"yt-emoji-select",_.fo(this.emojiManager,q.id)))};
_.k.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.k.onMultiSelectorThumbnailRowChanged=function(){var q,w,u;((q=this.data)==null?0:(w=q.emoji)==null?0:(u=w.multiSelectorThumbnailRow)==null?0:u.length)&&this.openSelector()};
_.k.getThumbnailFromEmojiRow=function(q){var w,u;return(q==null?void 0:(w=q.thumbnails)==null?void 0:(u=w[0])==null?void 0:u.url)||""};
_.k.getEmojiAltTextForPartialSelector=function(q){var w;return((w=this.getThumbnailFromEmojiRow(q).match(OcG))==null?void 0:w[0])||""};
_.k.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.k.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.k.getRowSelection=function(q){return["left","right"][q]};
_.k.getIdFromComposedEmoji=function(q){return(q==null?void 0:q.emojiId)||""};
_.k.getEmojiFromPartialSelections=function(q,w){if(!q&&!w)return null;var u,y,e=(u=this.data)==null?void 0:(y=u.emoji)==null?void 0:y.variantIds;if(!e||!e.length)return null;var t;q=(t=q.match(dVj))==null?void 0:t[0];var X;w=(X=w.match(dVj))==null?void 0:X[0];if(!q||!w)return null;var G=oxa.get(q);X=oxa.get(w);if(G===X){X=Array.from(oxa.values()).filter(function(N){return N!==G}).join("|");
var n=new RegExp("^((?!("+X+")).)*"+G+"$")}else n=new RegExp(G+".*"+X);return(e=e.find(function(N){return n.test(N)}))&&_.fo(this.emojiManager,e)||null};
_.k.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var q,w=this.ytEmojiSelectorBehavior.emojiUrl(((q=this.data.emoji)==null?void 0:q.emojiId)||"");_.A(this.hostElement).querySelector('[selection="user"]').src.includes(w)||(this.isEmojiDraftInProgress=!0)}};
_.k.onDomChange=function(){r9j(this.ytEmojiSelectorBehavior)};
_.k.getFocusableElements=function(){return _.A(this.hostElement).querySelectorAll("img").filter(function(q){return q.getAttribute("role")==="option"})};
_.k.changeFocus=function(q){var w=this.getFocusableElements();w!=null&&w.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+q+w.length)%w.length,this.ytEmojiSelectorBehavior.focusedIndex<w.length&&(q=w[this.ytEmojiSelectorBehavior.focusedIndex])&&q.focus())};
_.k.onKeyboardEnter=function(){var q=this.getFocusableElements();q!=null&&q.length&&(q=q[this.ytEmojiSelectorBehavior.focusedIndex])&&q instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(q),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.x$.Object.defineProperties(hV.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var q=this,w,u,y;return this.emojiManager&&((w=this.data)==null?0:(u=w.emoji)==null?0:(y=u.variantIds)==null?0:y.length)?this.data.emoji.variantIds.map(function(e){return!!e&&_.fo(q.emojiManager,e)}).filter(function(e){return!!e}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var q,w=(q=this.userSelection)==null?void 0:q.left,u;q=(u=this.userSelection)==null?void 0:u.right;return w&&q?this.getEmojiFromPartialSelections(w,q):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.composedEmojiSelection)==null?0:q.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var w;q=(w=this.userSelection)==null?void 0:w.left;var u;w=(u=this.userSelection)==null?void 0:u.right;if(!q&&!w){var y;return this.ytEmojiSelectorBehavior.emojiUrl(((y=this.data.emoji)==null?void 0:y.emojiId)||"")}return q&&!w?q:!q&&w?w:""}}});
hV.prototype.onMultiSelectorThumbnailRowChanged=hV.prototype.onMultiSelectorThumbnailRowChanged;hV.prototype.onClick=hV.prototype.onClick;_.c([_.D(_.RZ),_.h("design:type",Object)],hV.prototype,"ironOverlayBehavior",void 0);_.c([_.D(UV6),_.h("design:type",Object)],hV.prototype,"ytEmojiSelectorBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],hV.prototype,"data",void 0);_.c([_.v(),_.h("design:type",_.VL)],hV.prototype,"emojiManager",void 0);
_.c([_.v(),_.h("design:type",Object)],hV.prototype,"userSelection",void 0);_.c([_.v(),_.h("design:type",Object)],hV.prototype,"scrollAction",void 0);_.c([_.v(),_.h("design:type",Object)],hV.prototype,"isEmojiDraftInProgress",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],hV.prototype,"emojiVariants",null);_.c([_.Z("data","userSelection"),_.h("design:type",Object),_.h("design:paramtypes",[])],hV.prototype,"composedEmojiSelection",null);
_.c([_.Gm("click"),_.h("design:type",Function),_.h("design:paramtypes",[MouseEvent]),_.h("design:returntype")],hV.prototype,"onClick",null);_.c([_.nL("data.emoji.multiSelectorThumbnailRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hV.prototype,"onMultiSelectorThumbnailRowChanged",null);_.c([_.Z("data","userSelection","composedEmojiSelection"),_.h("design:type",String),_.h("design:paramtypes",[])],hV.prototype,"draftEmojiUrl",null);
hV=_.c([_.JM({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],hV);
_.R(hV,"yt-emoji-multi-person-selector",function(){if(CmT===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;T3a===void 0&&(T3a=document.createElement("template"));var y=T3a;u.call(w,y.content.cloneNode(!0),q.content.firstChild);CmT=q}q=CmT;return q},{mode:2});var V2P;var fFT;var jX=function(){var q=_.Y.apply(this,arguments)||this;q.tooltip_=null;return q};
_.O(jX,_.Y);_.k=jX.prototype;_.k.dataChanged_=function(){var q;if((q=this.data)==null?0:q.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.A(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.tM)(this.tooltip_).textContent=this.data.tooltip};
_.k.computeTargetId=function(){var q;return((q=this.data)==null?void 0:q.targetId)||""};
_.k.computeId_=function(q){return q};
_.k.computeIcon_=function(q){return _.Fy(q)};
_.k.onTap_=function(){this.active=!this.active;_.t7(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.k.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.D1("active-changed",this.active))};
_.x$.Object.defineProperties(jX.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var q,w;if((q=this.data)==null?0:(w=q.icon)==null?0:w.iconType)return this.data.icon.iconType==="SUPER_STICKER";var u,y;return((u=this.data)==null?void 0:(y=u.icon)==null?void 0:y.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
jX.prototype.activeChangedForBinding=jX.prototype.activeChangedForBinding;jX.prototype.dataChanged_=jX.prototype.dataChanged_;_.c([_.D(_.VA.YtLiveChatTooltipTargetingBehavior),_.h("design:type",Object)],jX.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],jX.prototype,"data",void 0);_.c([_.v({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.h("design:type",String)],jX.prototype,"id",void 0);
_.c([_.v({computed:"computeTargetId(data.targetId)"}),_.h("design:type",String)],jX.prototype,"targetId",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],jX.prototype,"active",void 0);_.c([_.v({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.h("design:type",String)],jX.prototype,"icon",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jX.prototype,"dataChanged_",null);
_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],jX.prototype,"iconFilled",null);_.c([_.nL("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jX.prototype,"activeChangedForBinding",null);jX=_.c([_.JM({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],jX);
_.R(jX,"yt-emoji-picker-category-button-renderer",function(){if(fFT===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;V2P===void 0&&(V2P=document.createElement("template"));var y=V2P;u.call(w,y.content.cloneNode(!0),q.content.firstChild);fFT=q}q=fFT;return q},{mode:2});var mVj;var A9j;var lx=function(){var q=_.Y.apply(this,arguments)||this;q.ariaLabel=null;q.ariaActivedescendant=null;q.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};q.JSC$11927_ignoreNextFocus_=!1;q.longPressTimeoutId=-1;return q};
_.O(lx,_.Y);_.k=lx.prototype;_.k.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.k.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.k.emojiChanged_=function(){this.changeFocus_(0,!1);for(var q=_.Qz(),w=0;w<this.emoji.length;w++){var u={veType:88013,elementIndex:w},y=this.emoji[w];y.isCustomEmoji&&(y=document.querySelector(("#"+y.emojiId).replace("/","\\/")))&&(u=_.N2(q,u))&&(y.visualElement=u)}};
_.k.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.k.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.k.emojiSkinToneChanged_=function(q){this.skinTone=q};
_.k.dataChanged=function(){this.data&&this.data.emojiData&&UiX(this.emojiManager,this.data.emojiData)};
_.k.emojiUrl=function(q){q=this.getEmoji(q);if(!q)return"";var w;q=(w=q.image)==null?void 0:w.thumbnails;return _.wm(q,24)||""};
_.k.emojiAlt=function(q){var w=this.get("image.accessibility.accessibilityData.label",q);return w?w:q.isCustomEmoji?q.shortcuts[0]:q.emojiId};
_.k.emojiAriaLabel=function(q){return q.shortcuts?q.shortcuts[0]:""};
_.k.emojiAriaSelected=function(q,w,u){return q&&u==w?"true":"false"};
_.k.getEmoji=function(q){if(this.emojiManager)return this.shouldUseStickyPreferences?CKr(this.emojiManager,q):mD(this.emojiManager,q)};
_.k.computeId_=function(q){return q.categoryId||""};
_.k.computeEmoji=function(q){var w=this;return this.emojiManager?q.emojiIds?q.emojiIds.map(function(u){return u?_.fo(w.emojiManager,u):null}).filter(Tvc):q.emojiData?q.emojiData.map(function(u){var y=!!u.emojiId&&_.fo(w.emojiManager,u.emojiId);
return y?Object.assign({},y,u):null}).filter(Tvc):[]:[]};
_.k.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.k.computeAriaLabel_=function(q){return _.lA(q)};
_.k.computeAriaActivedescendant_=function(q,w){return q&&q[w]?q[w].emojiId||"":""};
_.k.handleLongPressEmojiWithVariants=function(q,w){this.changeFocusToEmoji(q.emojiId,!1);this.openVariantSelector(q,w)};
_.k.onMouseDown=function(q){var w=this;this.hostElement!==document.activeElement&&(this.JSC$11927_ignoreNextFocus_=!0);if(q.button===0){var u=_.he(q);if(u instanceof HTMLImageElement){var y=_.A(this.hostElement).querySelector("#repeat").itemForElement(u);this.emojiContainsVariants(y)&&(this.longPressTimeoutId=setTimeout(function(){w.handleLongPressEmojiWithVariants(y,u)},500))}}};
_.k.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.k.onFocus=function(){this.JSC$11927_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11927_ignoreNextFocus_=!1};
_.k.onBlur_=function(){this.showFocus=!1};
_.k.emojiContainsVariants=function(q){return!!(q&&q.variantIds&&q.variantIds.length)};
_.k.onClick=function(q){clearTimeout(this.longPressTimeoutId);q=_.he(q);if(q instanceof HTMLImageElement){var w=q.id;this.changeFocusToEmoji(w,!1);var u=this.getEmoji(w),y;if(y=this.shouldUseStickyPreferences&&this.emojiContainsVariants(u)){var e;y=!((e=this.emojiManager.emojiMap[w])!=null&&e.stickyPrefId)}y?(e=_.A(this.hostElement).querySelector("#repeat").itemForElement(q),this.openVariantSelector(e,q)):_.t7(this.hostElement,"yt-emoji-select",u)}};
_.k.isActiveEmojiWithVariants=function(q,w){return q&&w?w.stickyPrefId?q===w.stickyPrefId:q===w.emojiId:!1};
_.k.onCloseEmojiVariantSelector=function(q){this.activeEmojiWithVariantsId===q&&(this.activeEmojiWithVariantsId="")};
_.k.onMouseOver_=function(q){q=_.he(q);q instanceof HTMLImageElement&&_.t7(this.hostElement,"yt-emoji-hover",_.fo(this.emojiManager,q.id))};
_.k.changeFocus_=function(q,w){this.focusedIndex=(this.focusedIndex+q+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(q=this.emoji[this.focusedIndex],w&&(this.showFocus=!0,_.A(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.t7(this.hostElement,"yt-emoji-hover",q)))};
_.k.changeFocusToEmoji=function(q,w){if(q){var u=this.emoji.findIndex(function(y){return y.emojiId===q});
u!==-1&&this.changeFocus_(u-this.focusedIndex,w)}};
_.k.onKeyDown_=function(q){switch(q.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var w=this.emoji[this.focusedIndex];if(w&&w.emojiId){if(this.emojiContainsVariants(w)){var u=_.A(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(w,u)}else _.t7(this.hostElement,"yt-emoji-select",mD(this.emojiManager,w.emojiId)),this.hostElement.focus();q.preventDefault()}}break;case 40:this.changeFocus_(1,!0);q.preventDefault();break;case 38:this.changeFocus_(-1,!0),q.preventDefault()}};
_.k.onEmojiStickyPreferenceChanged=function(q,w){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&q.emojiId&&q.variantIds&&q.variantIds.includes(w)&&this.activeEmojiWithVariantsId!==w&&this.setStickyEmojiPreference(q.emojiId,w)};
_.k.openVariantSelector=function(q,w){this.activeEmojiWithVariantsId=q.stickyPrefId||q.emojiId||"";_.t7(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:q,target:w})};
_.k.setStickyEmojiPreference=function(q,w){if(this.data){var u=this.emoji.findIndex(function(e){return e.emojiId===q});
if(u!==-1){var y=this.emoji[u];y.stickyPrefId=w;this.set("emoji."+u,Object.assign({},y));this.activeEmojiWithVariantsId=w}}};
lx.prototype.onKeyDown_=lx.prototype.onKeyDown_;lx.prototype.onMouseOver_=lx.prototype.onMouseOver_;lx.prototype.onClick=lx.prototype.onClick;lx.prototype.onBlur_=lx.prototype.onBlur_;lx.prototype.onFocus=lx.prototype.onFocus;lx.prototype.onMouseUp=lx.prototype.onMouseUp;lx.prototype.onMouseDown=lx.prototype.onMouseDown;lx.prototype.dataChanged=lx.prototype.dataChanged;lx.prototype.disableIncrementalLoadingChanged_=lx.prototype.disableIncrementalLoadingChanged_;lx.prototype.emojiManagerChanged_=lx.prototype.emojiManagerChanged_;
lx.prototype.emojiChanged_=lx.prototype.emojiChanged_;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],lx.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],lx.prototype,"data",void 0);_.c([_.v({computed:"computeId_(data)"}),_.h("design:type",String)],lx.prototype,"id",void 0);_.c([_.v({computed:"computeEmoji(data)"}),_.h("design:type",Array)],lx.prototype,"emoji",void 0);_.c([_.v(),_.h("design:type",Number)],lx.prototype,"skinTone",void 0);
_.c([_.v(),_.h("design:type",_.VL)],lx.prototype,"emojiManager",void 0);_.c([_.v(),_.h("design:type",Boolean)],lx.prototype,"disableIncrementalLoading",void 0);_.c([_.v({value:0}),_.h("design:type",Number)],lx.prototype,"focusedIndex",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],lx.prototype,"showFocus",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.h("design:type",Object)],lx.prototype,"ariaLabel",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.h("design:type",Object)],lx.prototype,"ariaActivedescendant",void 0);_.c([_.v({value:60}),_.h("design:type",Number)],lx.prototype,"domRepeatTargetFramerate",void 0);_.c([_.v({value:1}),_.h("design:type",Number)],lx.prototype,"domRepeatInitialCount",void 0);_.c([_.v({value:""}),_.h("design:type",String)],lx.prototype,"activeEmojiWithVariantsId",void 0);
_.c([_.v({value:!1}),_.h("design:type",Boolean)],lx.prototype,"shouldUseStickyPreferences",void 0);_.c([_.nL("emoji"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lx.prototype,"emojiChanged_",null);_.c([_.nL("emojiManager"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lx.prototype,"emojiManagerChanged_",null);
_.c([_.nL("disableIncrementalLoading"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lx.prototype,"disableIncrementalLoadingChanged_",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lx.prototype,"dataChanged",null);_.c([_.Gm("mousedown"),_.h("design:type",Function),_.h("design:paramtypes",[Object]),_.h("design:returntype")],lx.prototype,"onMouseDown",null);
_.c([_.Gm("mouseup"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lx.prototype,"onMouseUp",null);_.c([_.Gm("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lx.prototype,"onFocus",null);_.c([_.Gm("blur"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lx.prototype,"onBlur_",null);
_.c([_.Gm("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],lx.prototype,"onClick",null);_.c([_.Gm("mouseover"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],lx.prototype,"onMouseOver_",null);_.c([_.Gm("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],lx.prototype,"onKeyDown_",null);
lx=_.c([_.JM({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],lx);
_.R(lx,"yt-emoji-picker-category-renderer",function(){if(A9j===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;mVj===void 0&&(mVj=document.createElement("template"));var y=mVj;u.call(w,y.content.cloneNode(!0),q.content.firstChild);A9j=q}q=A9j;return q},{mode:2});var J9G;var zkr;var aFG;var DVT;var Lo=function(){var q=_.Y.apply(this,arguments)||this;q.ariaLabel=null;q.ariaActivedescendant=null;q.getFormattedStringRawText=_.lA;q.JSC$11933_ignoreNextFocus_=!1;return q};
_.O(Lo,_.Y);_.k=Lo.prototype;_.k.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")};
_.k.emojiUrl=function(q){var w,u;q=(w=mD(this.emojiManager,q,!0))==null?void 0:(u=w.image)==null?void 0:u.thumbnails;return _.wm(q,24)||""};
_.k.emojiAlt=function(q){var w=this.get("image.accessibility.accessibilityData.label",q);return w?w:q.isCustomEmoji?q.shortcuts[0]:q.emojiId};
_.k.emojiId=function(q){return"emoji"+q};
_.k.computeId_=function(q){return q.categoryId||""};
_.k.computeAriaActivedescendant_=function(q){return this.emoji&&q<this.emoji.length?this.emojiId(q):""};
_.k.emojiChanged_=function(){this.changeFocus_(0,!1);for(var q=_.Qz(),w=0;w<this.emoji.length;w++){var u={veType:88013,elementIndex:w},y=this.emoji[w];y.isCustomEmoji&&(y=document.querySelector(("#"+y.emojiId).replace("/","\\/")))&&(u=_.N2(q,u))&&(y.visualElement=u)}};
_.k.computeEmoji_=function(q){var w=this;return this.emojiManager?q.emojiIds.map(function(u){return _.fo(w.emojiManager,u,!0)}).filter(CwH):[]};
_.k.titleOffsetChanged_=function(){var q=this.hostElement.getBoundingClientRect(),w=_.A(this.hostElement).querySelector("#title").getBoundingClientRect();q=Math.max(0,Math.min(this.titleOffset,q.height-w.height));_.A(this.hostElement).querySelector("#title").style.top=q+"px"};
_.k.onEmojiMouseOver_=function(q){_.t7(this.hostElement,"yt-emoji-hover",q.model.item)};
_.k.onEmojiTap_=function(q){this.data.command&&(q=J8M(_.tG().resolve(_.kF(hq)),this.data.command,q),_.t7(this.hostElement,"yt-navigate",q))};
_.k.emojiAriaLabel=function(q){return q.shortcuts[0]};
_.k.emojiAriaSelected=function(q,w,u){return q&&u==w?"true":"false"};
_.k.changeFocus_=function(q,w){var u=this.emoji.length;this.focusedIndex=(this.focusedIndex+q+u)%u;q=this.emoji[this.focusedIndex];if(w){var y;(y=_.A(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||y.scrollIntoView(!1);_.t7(this.hostElement,"yt-emoji-hover",q)}};
_.k.onMouseDown_=function(){this.JSC$11933_ignoreNextFocus_=!0};
_.k.onFocus_=function(){this.JSC$11933_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11933_ignoreNextFocus_=!1};
_.k.onBlur_=function(){this.showFocus=!1};
_.k.onKeyDown_=function(q){switch(q.keyCode){case 13:this.onEmojiTap_(q);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);q.preventDefault();break;case 38:this.changeFocus_(-1,!0),q.preventDefault()}};
Lo.prototype.onKeyDown_=Lo.prototype.onKeyDown_;Lo.prototype.onBlur_=Lo.prototype.onBlur_;Lo.prototype.onFocus_=Lo.prototype.onFocus_;Lo.prototype.onMouseDown_=Lo.prototype.onMouseDown_;Lo.prototype.onEmojiTap_=Lo.prototype.onEmojiTap_;Lo.prototype.titleOffsetChanged_=Lo.prototype.titleOffsetChanged_;Lo.prototype.emojiChanged_=Lo.prototype.emojiChanged_;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Lo.prototype,"ytComponentBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],Lo.prototype,"data",void 0);_.c([_.v({computed:"computeId_(data)"}),_.h("design:type",String)],Lo.prototype,"id",void 0);_.c([_.v({computed:"computeEmoji_(data)"}),_.h("design:type",Array)],Lo.prototype,"emoji",void 0);_.c([_.v({value:0}),_.h("design:type",Number)],Lo.prototype,"titleOffset",void 0);_.c([_.v({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.h("design:type",Object)],Lo.prototype,"ariaLabel",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.h("design:type",Object)],Lo.prototype,"ariaActivedescendant",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],Lo.prototype,"showFocus",void 0);_.c([_.v({value:0}),_.h("design:type",Number)],Lo.prototype,"focusedIndex",void 0);_.c([_.v(),_.h("design:type",_.VL)],Lo.prototype,"emojiManager",void 0);
_.c([_.nL("emoji"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lo.prototype,"emojiChanged_",null);_.c([_.nL("titleOffset"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lo.prototype,"titleOffsetChanged_",null);_.c([_.Gm("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Lo.prototype,"onEmojiTap_",null);
_.c([_.Gm("mousedown"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lo.prototype,"onMouseDown_",null);_.c([_.Gm("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lo.prototype,"onFocus_",null);_.c([_.Gm("blur"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lo.prototype,"onBlur_",null);
_.c([_.Gm("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Lo.prototype,"onKeyDown_",null);Lo=_.c([_.JM({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],Lo);
_.R(Lo,"yt-emoji-picker-upsell-category-renderer",function(){if(DVT===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;aFG===void 0&&(aFG=document.createElement("template"));var y=aFG;u.call(w,y.content.cloneNode(!0),q.content.firstChild);DVT=q}q=DVT;return q},{mode:2});var Zcx;var pxT;var Mc=function(){var q=_.Y.apply(this,arguments)||this;q.scrollAction="lock";q.verticalAlign="top";return q};
_.O(Mc,_.Y);_.k=Mc.prototype;_.k.onClick=function(q){q=_.he(q);q instanceof HTMLImageElement&&_.t7(this.hostElement,"yt-emoji-select",_.fo(this.emojiManager,q.id))};
_.k.openSelector=function(){this.ironOverlayBehavior.open()};
_.k.onDomChange=function(){r9j(this.ytEmojiSelectorBehavior)};
_.k.computeIsFamilySelector=function(q){var w;return(q==null?void 0:(w=q.emoji)==null?void 0:w.emojiId)==="\ud83d\udc6a"};
_.k.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var q=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];q&&q.emojiId&&(_.t7(this.hostElement,"yt-emoji-select",_.fo(this.emojiManager,q.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.x$.Object.defineProperties(Mc.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var q=this,w,u,y;return this.emojiManager&&((w=this.data)==null?0:(u=w.emoji)==null?0:(y=u.variantIds)==null?0:y.length)?this.data.emoji.variantIds.map(function(e){return!!e&&_.fo(q.emojiManager,e)}).filter(function(e){return!!e}):[]}}});
Mc.prototype.onClick=Mc.prototype.onClick;_.c([_.D(_.RZ),_.h("design:type",Object)],Mc.prototype,"ironOverlayBehavior",void 0);_.c([_.D(UV6),_.h("design:type",Object)],Mc.prototype,"ytEmojiSelectorBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Mc.prototype,"data",void 0);_.c([_.v(),_.h("design:type",_.VL)],Mc.prototype,"emojiManager",void 0);_.c([_.v(),_.h("design:type",Object)],Mc.prototype,"scrollAction",void 0);_.c([_.v(),_.h("design:type",Object)],Mc.prototype,"verticalAlign",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.h("design:type",Boolean)],Mc.prototype,"isFamilySelector",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Mc.prototype,"emojiVariants",null);_.c([_.Gm("click"),_.h("design:type",Function),_.h("design:paramtypes",[MouseEvent]),_.h("design:returntype")],Mc.prototype,"onClick",null);Mc=_.c([_.JM({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],Mc);
_.R(Mc,"yt-emoji-variant-selector",function(){if(pxT===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;Zcx===void 0&&(Zcx=document.createElement("template"));var y=Zcx;u.call(w,y.content.cloneNode(!0),q.content.firstChild);pxT=q}q=pxT;return q},{mode:2});var $V3=/:/g,vxP=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],Ko=function(){var q=_.Y.apply(this,arguments)||this;q.emojiVariantSelector=null;q.emojiMultiPersonSelector=null;q.identity=_.gj;q.lastAnimationTime_=0;q.animationStart_=null;q.animationEnd_=null;return q};
_.O(Ko,_.Y);_.k=Ko.prototype;
_.k.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}}};
_.k.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.AV)};
_.k.attached=function(){_.kf&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&T2x(this.emojiManager)};
_.k.dataChanged=function(){var q;if((q=this.data)==null?0:q.categories){q=this.emojiManager;var w=this.getCustomEmojiIds();q.pickerCustomEmojiIds=[].concat(_.Cm(N2j),_.Cm(w))}};
_.k.getCustomEmojiIds=function(){var q,w=(q=this.data.categories)==null?void 0:q.find(function(t){var X;return((X=t.emojiPickerCategoryRenderer)==null?void 0:X.categoryId)&&vxP.includes(t.emojiPickerCategoryRenderer.categoryId)}),u;
q=(u=this.data.categories)==null?void 0:u.find(function(t){return t.emojiPickerUpsellCategoryRenderer});
var y,e;return[w==null?void 0:(y=w.emojiPickerCategoryRenderer)==null?void 0:y.emojiIds,q==null?void 0:(e=q.emojiPickerUpsellCategoryRenderer)==null?void 0:e.emojiIds].flat().filter(function(t){return!!t})};
_.k.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.k.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.k.updateCategoriesAndPlaceholderInternal=function(q,w){var u=this;q&&w&&(this.categories=q.categories||[],this.categoryButtons=q.categoryButtons||[],this.resetPlaceholder(),this.search="",_.vj(function(){u.updateButtons_()}))};
_.k.computeId_=function(q){return q.id||""};
_.k.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(q){return q.emojiPickerCategoryRenderer&&q.emojiPickerCategoryRenderer.emojiData}):!1};
_.k.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.k.onShowEmojiVariantSelector=function(q){var w=q.detail.emojiData;w.variantIds&&w.variantIds.length&&(w.multiSelectorThumbnailRow&&w.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:w,target:q.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:w,target:q.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.k.onIronOverlayClosed=function(q){var w=CKr(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");w&&q.composedPath&&(q.composedPath().includes(_.A(this.hostElement).querySelector("#emoji-variant-selector"))||q.composedPath().includes(_.A(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.Pw(this.hostElement,"yt-close-emoji-variant-selector",[w.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.k.onEmojiVariantSelectorMouseup=function(q){var w=q.target.firstChild;this.variantSelectorOpened&&w&&_.vj(function(){w.noCancelOnOutsideClick=!1},100)};
_.k.onEmojiVariantSelectorMousedown=function(q){q=q.target.firstChild;this.variantSelectorOpened&&q&&(q.noCancelOnOutsideClick=!1)};
_.k.onSelectCategory_=function(q){var w=this.search!="";this.search="";for(var u=_.A(this.hostElement).querySelector("#categories").children,y=0;y<u.length;y++){var e=u[y];if(e.id==q.detail.categoryId){w?(_.A(this.hostElement).querySelector("#categories").scrollTop=e.offsetTop,this.updateButtons_()):(this.animationStart_=_.A(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=e.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.k.onEmojiHover_=function(q){this.placeholder=q.detail.shortcuts?q.detail.shortcuts[0]:""};
_.k.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.k.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.k.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.k.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.k.computeSearchCategory_=function(q){q=q.replace($V3,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();q=q.split(" ");for(var w=[],u=this.emojiManager.emojis,y=0;y<u.length;y++){var e=u[y];if(e.searchTerms)for(var t=0;t<e.searchTerms.length;t++){for(var X=e.searchTerms[t].toLocaleLowerCase(),G=!1,n=0;n<q.length;n++)if(X.indexOf(q[n])!=-1){G=!0;break}if(G&&(!e.isCustomEmoji||!e.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(e.emojiId))){w.push(e.emojiId);
break}}}return{categoryId:-1,emojiIds:w}};
_.k.computeSearchEmptyMessage_=function(q,w){return q&&w&&w.emojiIds&&w.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.k.computeSearching_=function(q){return this.emojiManager&&q.replace($V3,"").length>1};
_.k.computeSkinToneHidden=function(){var q;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((q=this.data)==null||!q.hideSkinTonePicker)};
_.k.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.k.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.k.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.k.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.k.selectSkinTone_=function(q){q=Number(q.target.getAttribute("tone"));this.set("emojiManager.skinTone",q);_.Pw(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[q]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.k.skinToneChanged_=function(){_.A(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var q=_.A(this.hostElement).querySelector("#dropdown-content").children,w=0;w<q.length;w++)w===this.skinTone?q[w].setAttribute("selected",""):q[w].removeAttribute("selected")};
_.k.animateScroll_=function(q){this.lastAnimationTime_||(this.lastAnimationTime_=q);q-=this.lastAnimationTime_;q<200?(_.A(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*q/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.A(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.k.searchChanged_=function(){this.updateButtons_()};
_.k.updateButtons_=function(){var q=null;if(!this.search)for(var w=_.A(this.hostElement).querySelector("#categories").scrollTop,u=_.A(this.hostElement).querySelector("#categories").children,y=0;y<u.length;y++){var e=u[y];e.offsetTop<=w&&(q=e.id)}w=_.A(this.hostElement).querySelector("#category-buttons").children;for(u=0;u<w.length;u++)y=w[u],y.active=y.id===q};
Ko.prototype.searchChanged_=Ko.prototype.searchChanged_;Ko.prototype.skinToneChanged_=Ko.prototype.skinToneChanged_;Ko.prototype.onEmojiHover_=Ko.prototype.onEmojiHover_;Ko.prototype.onSelectCategory_=Ko.prototype.onSelectCategory_;Ko.prototype.onShowEmojiVariantSelector=Ko.prototype.onShowEmojiVariantSelector;Ko.prototype.updateCategoriesAndPlaceholder_=Ko.prototype.updateCategoriesAndPlaceholder_;Ko.prototype.dataChanged=Ko.prototype.dataChanged;
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ko.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ko.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ko.prototype,"data",void 0);_.c([_.v({value:function(){return[]}}),
_.h("design:type",Array)],Ko.prototype,"categories",void 0);_.c([_.v({value:function(){return[]}}),
_.h("design:type",Array)],Ko.prototype,"categoryButtons",void 0);_.c([_.v({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Ko.prototype,"disableScroll",void 0);_.c([_.v({computed:"computeId_(data)",reflectToAttribute:!0}),_.h("design:type",String)],Ko.prototype,"id",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],Ko.prototype,"selected",void 0);
_.c([_.v({value:!1}),_.h("design:type",Boolean)],Ko.prototype,"disableIncrementalLoading",void 0);_.c([_.v(),_.h("design:type",String)],Ko.prototype,"placeholder",void 0);_.c([_.v({value:""}),_.h("design:type",String)],Ko.prototype,"search",void 0);_.c([_.v({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Ko.prototype,"searching",void 0);_.c([_.v({computed:"computeSearchCategory_(search)"}),_.h("design:type",Object)],Ko.prototype,"searchCategory",void 0);
_.c([_.v({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.h("design:type",Object)],Ko.prototype,"searchEmptyMessage",void 0);_.c([_.v({computed:"identity(emojiManager.skinTone)"}),_.h("design:type",Number)],Ko.prototype,"skinTone",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],Ko.prototype,"skinToneOpened",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Ko.prototype,"variantSelectorOpened",void 0);
_.c([_.v({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.h("design:type",Boolean)],Ko.prototype,"skinToneHidden",void 0);_.c([_.v(),_.h("design:type",_.VL)],Ko.prototype,"emojiManager",void 0);_.c([_.v(),_.h("design:type",Object)],Ko.prototype,"emojiVariantSelector",void 0);_.c([_.v(),_.h("design:type",Object)],Ko.prototype,"emojiMultiPersonSelector",void 0);
_.c([_.v({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.h("design:type",Boolean)],Ko.prototype,"shouldUseStickyPreferences",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ko.prototype,"dataChanged",null);_.c([_.nL("data","selected"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ko.prototype,"updateCategoriesAndPlaceholder_",null);
_.c([_.Gm("yt-show-emoji-variant-selector"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Ko.prototype,"onShowEmojiVariantSelector",null);_.c([_.Gm("yt-emoji-picker-select-category"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Ko.prototype,"onSelectCategory_",null);_.c([_.Gm("yt-emoji-hover"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Ko.prototype,"onEmojiHover_",null);
_.c([_.nL("skinTone"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ko.prototype,"skinToneChanged_",null);_.c([_.nL("search"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ko.prototype,"searchChanged_",null);Ko=_.c([_.JM({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],Ko);
_.R(Ko,"yt-emoji-picker-renderer",function(){if(zkr===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;J9G===void 0&&(J9G=document.createElement("template"));var y=J9G;u.call(w,y.content.cloneNode(!0),q.content.firstChild);zkr=q}q=zkr;return q},{mode:2});var BY=function(){var q=_.Y.apply(this,arguments)||this;q.emojiManager=_.AV;q.isDarkTheme=document.documentElement.hasAttribute("dark");q.selectedIndex=1;q.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return q};
_.O(BY,_.Y);_.k=BY.prototype;_.k.handleEmojiCustomizationVisible=function(q){this.emojiPickerRenderer.selected=q;this.selectedIndex=1;q?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.k.emojiCustomizationSetChanged=function(){var q;(q=this.data)!=null&&q.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.Wk(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.k.updateSaveButtonState=function(q){var w;(w=this.data)!=null&&w.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.IH("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:q}))};
_.k.emojiUrl=function(q){q=_.fo(this.emojiManager,q);if(!q)return"";var w;q=(w=q.image)==null?void 0:w.thumbnails;return _.wm(q,24)||""};
_.k.emojiAlt=function(q){var w=_.fo(this.emojiManager,q);if(!w)return q;var u,y,e,t=(w==null?void 0:(u=w.image)==null?void 0:(y=u.accessibility)==null?void 0:(e=y.accessibilityData)==null?void 0:e.label)||"";return t?t:w.isCustomEmoji?w.shortcuts[0]:w.emojiId||q};
_.k.emojiAriaLabel=function(q){var w,u;return((w=_.fo(this.emojiManager,q))==null?void 0:(u=w.shortcuts)==null?void 0:u[0])||q};
_.k.onEmojiClick=function(q){q.model.index!==0&&(this.selectedIndex=q.model.index)};
_.k.onEmojiSelect=function(q){q=q.detail;var w,u;((w=this.data)==null?0:w.emojiCustomizationSetEntityKey)&&((u=this.emojiCustomizationSet)==null?0:u.emojiId)&&q.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,q.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.IH("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,q.emojiId,this.selectedIndex)}))};
_.k.canEditEmoji=function(q,w,u){q=q.indexOf(w);return q===u||q===0||u===0?!1:!0};
_.k.getUpdatedEmojiIdList=function(q,w,u){var y=q.indexOf(w);q=[].concat(_.Cm(q));y>=0&&(q[y]=q[u]);q[u]=w;return q};
_.x$.Object.defineProperties(BY,{template:{configurable:!0,enumerable:!0,get:function(){if(y9$===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;u9r===void 0&&(u9r=document.createElement("template"));var y=u9r;u.call(w,y.content.cloneNode(!0),q.content.firstChild);y9$=q}q=y9$;return q}}});
BY.prototype.onEmojiSelect=BY.prototype.onEmojiSelect;_.c([_.D(_.oN),_.h("design:type",Object)],BY.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],BY.prototype,"ytActionHandlerBehavior",void 0);_.c([_.Wj("yt-emoji-picker-renderer"),_.h("design:type",Object)],BY.prototype,"emojiPickerRenderer",void 0);
_.c([_.v({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(q,w){return _.HQ(q.entities,"emojiCustomizationSetEntity",w)},
observer:"emojiCustomizationSetChanged"}),_.h("design:type",Object)],BY.prototype,"emojiCustomizationSet",void 0);_.c([_.v(),_.h("design:type",Object)],BY.prototype,"originalEmojiSet",void 0);_.c([_.v(),_.h("design:type",_.VL)],BY.prototype,"emojiManager",void 0);_.c([_.v(),_.h("design:type",Object)],BY.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],BY.prototype,"isDarkTheme",void 0);_.c([_.v(),_.h("design:type",Object)],BY.prototype,"selectedIndex",void 0);
_.c([_.Gm("yt-emoji-select"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],BY.prototype,"onEmojiSelect",null);BY=_.c([_.JM({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],BY);var bcj;var Y0r;var gx$;var Exc;var xE=function(){var q=_.Y.apply(this,arguments)||this;q.authorBadges=[];return q};
_.O(xE,_.Y);_.k=xE.prototype;_.k.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.k.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]]"}}}}}};
_.k.dataChanged=function(){var q=tts(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",q)};
_.k.updateMessage=function(){var q=this.data.message,w=_.A(_.A(this.hostElement).querySelector("#message"));w.textContent="";q&&w.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(q))};
_.k.shouldSupportWholeItemClick=function(){return!0};
_.k.onShowOriginalClick=function(q){q.preventDefault();this.showOriginal=!0};
_.k.computeShowBar=function(q,w,u){return q&&w||u};
_.k.computeAuthorBadges=function(q){return q.authorBadges||[]};
_.k.computeAuthorIsOwner=function(q){return!!PQj(q.authorBadges,"owner")};
_.k.computeAuthorNameColor=function(q){var w;if(_.T("live_chat_author_name_color_usernames")&&(q==null?0:(w=q.authorName)==null?0:w.simpleText))return _.W56(_.slJ(q.authorName.simpleText));if(_.T("live_chat_seed_color_usernames")&&(q==null?0:q.authorSeedColorArgb))return _.W56(_.P6(q.authorSeedColorArgb));if(_.T("live_chat_colored_usernames"))return"#cc0000";var u;return _.T("live_chat_simple_color_usernames")&&(q==null?0:(u=q.authorName)==null?0:u.simpleText)&&(q==null?0:q.authorUsernameColorLight)&&
(q==null?0:q.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.P6(q.authorUsernameColorDark):_.P6(q.authorUsernameColorLight):""};
xE.prototype.updateMessage=xE.prototype.updateMessage;xE.prototype.dataChanged=xE.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],xE.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.JV.YtLiveChatItemBehavior),_.h("design:type",_.zD)],xE.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],xE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],xE.prototype,"data",void 0);
_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],xE.prototype,"showOriginal",void 0);_.c([_.v({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.h("design:type",Boolean)],xE.prototype,"isDimmed",void 0);_.c([_.v({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.h("design:type",Boolean)],xE.prototype,"showBar",void 0);
_.c([_.v({computed:"computeAuthorBadges(data)"}),_.h("design:type",Array)],xE.prototype,"authorBadges",void 0);_.c([_.v({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],xE.prototype,"authorIsOwner",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],xE.prototype,"inCollapsedBanner",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],xE.prototype,"inBanner",void 0);
_.c([_.v({value:_.T("live_chat_hide_avatars"),reflectToAttribute:!0}),_.h("design:type",Boolean)],xE.prototype,"avatarHidden",void 0);_.c([_.v({computed:"computeAuthorNameColor(data)"}),_.h("design:type",String)],xE.prototype,"authorNameColor",void 0);_.c([_.v(),_.h("design:type",_.Z1)],xE.prototype,"participantsManager",void 0);_.c([_.v({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.h("design:type",Object)],xE.prototype,"filledButtonOverrides",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xE.prototype,"dataChanged",null);_.c([_.nL("data.message"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xE.prototype,"updateMessage",null);xE=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],xE);
_.R(xE,"yt-live-chat-text-message-renderer",function(){if(Exc===void 0){var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;gx$===void 0&&(gx$=document.createElement("template"));var y=gx$;u.call(w,y.content.cloneNode(!0),q.content.firstChild);Exc=q}q=Exc;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var qR=function(){var q=_.Y.apply(this,arguments)||this;q.tonalButtonOverrides={type:"tonal",style:"overlay"};return q};
_.O(qR,_.Y);
qR.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]]"}}}}}};
qR.prototype.shouldSupportInlineActionButtons=function(){return!0};
qR.prototype.shouldSupportWholeItemClick=function(){return!0};
_.x$.Object.defineProperties(qR.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.JV.YtLiveChatItemBehavior),_.h("design:type",_.zD)],qR.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],qR.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],qR.prototype,"data",void 0);_.c([_.v(),_.h("design:type",_.Z1)],qR.prototype,"participantsManager",void 0);
_.c([_.v(),_.h("design:type",Object)],qR.prototype,"tonalButtonOverrides",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("data.infoDialogButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],qR.prototype,"hasInfoDialogButton",null);qR=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],qR);
_.R(qR,"yt-live-chat-auto-mod-message-renderer",function(){if(Y0r===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;bcj===void 0&&(bcj=document.createElement("template"));var y=bcj;u.call(w,y.content.cloneNode(!0),q.content.firstChild);Y0r=q}q=Y0r;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var Rkk;var c93;var S0X;var wt=function(){return _.Y.apply(this,arguments)||this};
_.O(wt,_.Y);_.c([_.v(),_.h("design:type",Object)],wt.prototype,"data",void 0);wt=_.c([_.E({is:"ytd-factoid-renderer",disableElementRegistration:!0})],wt);
_.R(wt,"ytd-factoid-renderer",function(){if(S0X!==void 0)return S0X;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return S0X=q},{mode:1});var u7=function(){return _.Y.apply(this,arguments)||this};
_.O(u7,_.Y);u7.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.c([_.v(),_.h("design:type",Object)],u7.prototype,"data",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],u7.prototype,"ytRendererstamperBehavior",void 0);u7=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],u7);
_.R(u7,"yt-live-chat-channel-activity-reputation-renderer",function(){if(c93===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;Rkk===void 0&&(Rkk=document.createElement("template"));var y=Rkk;u.call(w,y.content.cloneNode(!0),q.content.firstChild);c93=q}q=c93;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var hkT;var jMa;var ye=function(){return _.Y.apply(this,arguments)||this};
_.O(ye,_.Y);ye.prototype.ready=function(){var q=document.querySelector("yt-live-chat-app");q&&q.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ye.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Boolean)],ye.prototype,"menuFocused",void 0);_.c([_.v(),_.h("design:type",Object)],ye.prototype,"data",void 0);_.c([_.D(_.JV.YtLiveChatItemBehavior),_.h("design:type",_.zD)],ye.prototype,"ytLiveChatItemBehavior",void 0);ye=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],ye);
_.R(ye,"yt-live-chat-donation-announcement-renderer",function(){if(jMa===void 0){var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;hkT===void 0&&(hkT=document.createElement("template"));var y=hkT;u.call(w,y.content.cloneNode(!0),q.content.firstChild);jMa=q}q=jMa;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var lFF;var Lh$,M2j=function(){if(Lh$!==void 0)return Lh$;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;lFF===void 0&&(lFF=document.createElement("template"));var y=lFF;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return Lh$=q};var e8=function(){return _.Y.apply(this,arguments)||this};
_.O(e8,_.Y);_.x$.Object.defineProperties(e8,{template:{configurable:!0,enumerable:!0,get:function(){return M2j()}}});
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],e8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],e8.prototype,"data",void 0);e8=_.c([_.JM({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],e8);_.R(e8,"yt-live-chat-empty-feed-view-model",function(){return M2j()},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var KhT;var B3P;var kp=function(){return _.Y.apply(this,arguments)||this};
_.O(kp,_.Y);kp.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"}}}}}};
_.x$.Object.defineProperties(kp.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var q,w;return{runs:[{text:(q=this.data)==null?void 0:(w=q.channelName)==null?void 0:w.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var q=[],w;if((w=this.data)==null||!w.channelBadges)return q;var u;w=_.P((u=this.data)==null?void 0:u.channelBadges);for(u=w.next();!u.done;u=w.next()){u=_.C(u.value,Gx$);var y=void 0,e=void 0;if((y=u)==null?0:(e=y.badgeImage)==null?0:e.sources)y=void 0,e={liveChatAuthorBadgeRenderer:{tooltip:u.tooltip,accessibility:{accessibilityData:{label:(y=_.C(u.rendererContext,_.ik))==null?void 0:y.label}}}},u.badgeImage.sources[0].clientResource?e.liveChatAuthorBadgeRenderer.icon=
{iconType:u.badgeImage.sources[0].clientResource.imageName}:e.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:u.badgeImage.sources},q.push(e)}return q}}});
_.c([_.v(),_.h("design:type",Object)],kp.prototype,"data",void 0);_.c([_.Z("data.channelName"),_.h("design:type",Object),_.h("design:paramtypes",[])],kp.prototype,"channelName",null);_.c([_.Z("data.channelBadges"),_.h("design:type",Array),_.h("design:paramtypes",[])],kp.prototype,"channelBadges",null);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],kp.prototype,"ytRendererstamperBehavior",void 0);
kp=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],kp);
_.R(kp,"yt-live-chat-identity-view-model",function(){if(B3P===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;KhT===void 0&&(KhT=document.createElement("template"));var y=KhT;u.call(w,y.content.cloneNode(!0),q.content.firstChild);B3P=q}q=B3P;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var xVc;var qoT;var w5j;var uA$;var to=function(){var q=_.Y.apply(this,arguments)||this;q.hidden=!1;q.supportsInlineActionButtons=!0;return q};
_.O(to,_.Y);to.prototype.ready=function(){var q;((q=document.querySelector("yt-live-chat-app"))==null?0:q.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
to.prototype.dataChanged=function(q){var w=(0,_.tM)(_.A(this.hostElement).querySelector("#detail-text"));w.textContent="";(q==null?0:q.detailText)&&w.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(q.detailText))};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],to.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.JV.YtLiveChatItemBehavior),_.h("design:type",_.zD)],to.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],to.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v({observer:"dataChanged"}),_.h("design:type",Object)],to.prototype,"data",void 0);
_.c([_.v({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.h("design:type",Object)],to.prototype,"hidden",void 0);to=_.c([_.E({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],to);
_.R(to,"yt-live-chat-legacy-paid-message-renderer",function(){if(uA$===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;w5j===void 0&&(w5j=document.createElement("template"));var y=w5j;u.call(w,y.content.cloneNode(!0),q.content.firstChild);uA$=q}q=uA$;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var y8X;var egZ;var kgG={},Pv=function(){return _.Na.apply(this,arguments)||this};
_.O(Pv,_.Na);Pv.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Pv.prototype.onLiveChatMembershipItemBehaviorClick=Pv.prototype.onLiveChatMembershipItemBehaviorClick;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Pv.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Pv.prototype,"data",void 0);_.c([_.Gm("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Pv.prototype,"onLiveChatMembershipItemBehaviorClick",null);Pv=_.c([_.Q6()],Pv);
kgG.YtLiveChatMembershipItemBehavior=[Pv.prototype,_.B.YtRendererBehavior];var Xp=function(){var q=_.Y.apply(this,arguments)||this;q.supportsInlineActionButtons=!0;q.hasPrimaryHeaderText=!1;q.showOnlyHeader=!1;q.authorBadges=[];q.modern=_.T("web_button_rework_with_live");q.buttonOverrides={style:"overlay",type:"filled"};return q};
_.O(Xp,_.Y);_.k=Xp.prototype;_.k.shouldSupportInlineActionButtons=function(){return!0};
_.k.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.k.ready=function(){var q=document.querySelector("yt-live-chat-app");q&&q.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.k.messageChanged=function(){var q=this.data.message,w=(0,_.tM)(_.A(this.hostElement).querySelector("#message"));w.textContent="";q&&w.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(q))};
_.k.computeHasPrimaryHeaderText=function(q){return!(!q||!q.headerPrimaryText)};
_.k.computeShowOnlyHeader=function(q,w){return this.isMessageEmpty(q,w)};
_.k.computeAuthorBadges=function(q){return q.authorBadges||[]};
_.k.isMessageEmpty=function(q,w){return!q||q.empty?!0:!q.message&&!q.inputField&&!w};
_.k.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.k.getInputElement=function(){return _.A(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.k.inputFocus=function(){var q=this.getInputElement();q&&q.focus()};
_.k.inputInsertEmoji=function(q){var w=this.getInputElement();w&&w.insertEmoji(q)};
_.k.inputMessage=function(){var q=this.getInputElement();return q&&this.data.inputField?(q.completeEmojis(),_.bv(q.liveChatRichMessageInput)):null};
_.k.onFooterButtonClick=function(){this.data.footerButton&&_.t7(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.k.shouldSupportWholeItemClick=function(){return!0};
Xp.prototype.isDeletedChanged=Xp.prototype.isDeletedChanged;Xp.prototype.messageChanged=Xp.prototype.messageChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Xp.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.JV.YtLiveChatItemBehavior),_.h("design:type",_.zD)],Xp.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.D(kgG.YtLiveChatMembershipItemBehavior),_.h("design:type",Object)],Xp.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Xp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Xp.prototype,"data",void 0);_.c([_.v({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.h("design:type",Object)],Xp.prototype,"hasPrimaryHeaderText",void 0);_.c([_.v({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.h("design:type",Object)],Xp.prototype,"showOnlyHeader",void 0);
_.c([_.v({computed:"computeAuthorBadges(data)"}),_.h("design:type",Array)],Xp.prototype,"authorBadges",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Xp.prototype,"modern",void 0);_.c([_.nL("data.message"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xp.prototype,"messageChanged",null);_.c([_.nL("isDeleted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xp.prototype,"isDeletedChanged",null);
Xp=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],Xp);
_.R(Xp,"yt-live-chat-membership-item-renderer",function(){if(egZ===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;y8X===void 0&&(y8X=document.createElement("template"));var y=y8X;u.call(w,y.content.cloneNode(!0),q.content.firstChild);egZ=q}q=egZ;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var tbk;var PHF;var Fp=function(){return _.Y.apply(this,arguments)||this};
_.O(Fp,_.Y);Fp.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Fp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Fp.prototype,"data",void 0);Fp=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Fp);
_.R(Fp,"yt-live-chat-mode-change-message-renderer",function(){if(PHF===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;tbk===void 0&&(tbk=document.createElement("template"));var y=tbk;u.call(w,y.content.cloneNode(!0),q.content.firstChild);PHF=q}q=PHF;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var X5a;var FWk;var Gr=function(){return _.Y.apply(this,arguments)||this};
_.O(Gr,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Gr.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.JV.YtLiveChatItemBehavior),_.h("design:type",_.zD)],Gr.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Gr.prototype,"data",void 0);Gr=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Gr);
_.R(Gr,"yt-live-chat-moderation-message-renderer",function(){if(FWk===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;X5a===void 0&&(X5a=document.createElement("template"));var y=X5a;u.call(w,y.content.cloneNode(!0),q.content.firstChild);FWk=q}q=FWk;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var Gg3;var nAP;var nU=function(){var q=_.Y.apply(this,arguments)||this;q.modern=_.T("web_button_rework");return q};
_.O(nU,_.Y);nU.prototype.onClick=function(){var q;if((q=this.data)!=null&&q.onClickCommand){var w;_.nx.instance.resolveCommand((w=this.data)==null?void 0:w.onClickCommand)}};
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],nU.prototype,"modern",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.oN),_.h("design:type",Object)],nU.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.D(_.JV.YtLiveChatItemBehavior),_.h("design:type",_.zD)],nU.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],nU.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],nU.prototype,"data",void 0);nU=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],nU);
_.R(nU,"yt-live-chat-offer-click-count-message-renderer",function(){if(nAP===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;Gg3===void 0&&(Gg3=document.createElement("template"));var y=Gg3;u.call(w,y.content.cloneNode(!0),q.content.firstChild);nAP=q}q=nAP;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var Htr;var Hv=function(){return _.Y.apply(this,arguments)||this};
_.O(Hv,_.Y);_.c([_.v(),_.h("design:type",Object)],Hv.prototype,"data",void 0);Hv=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],Hv);
_.R(Hv,"yt-live-chat-placeholder-item-renderer",function(){if(Htr===void 0){var q=document.createElement("template");_.f(q,"\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");q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);Htr=q}q=Htr;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var WWx;var sdc;var NhZ=new SN(7),Wv=function(){var q=_.Y.apply(this,arguments)||this;q.data={};return q};
_.O(Wv,_.Y);Wv.prototype.dataChanged=function(){var q;((q=this.data)==null?0:q.class)&&_.ef(this.hostElement,this.data.class,!0);var w;((w=this.oldData)==null?0:w.class)&&_.ef(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
Wv.prototype.computeTimestampString=function(q){return NhZ.format(new Date(q/1E3))};
Wv.prototype.dataChanged=Wv.prototype.dataChanged;_.c([_.v(),_.h("design:type",Object)],Wv.prototype,"data",void 0);_.c([_.v({computed:"computeTimestampString(data.timestampUsec)"}),_.h("design:type",String)],Wv.prototype,"timestampString",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Wv.prototype,"dataChanged",null);Wv=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],Wv);
_.R(Wv,"yt-live-chat-server-error-message",function(){if(sdc===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;WWx===void 0&&(WWx=document.createElement("template"));var y=WWx;u.call(w,y.content.cloneNode(!0),q.content.firstChild);sdc=q}q=sdc;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var Qdj;var Iva;var sr=function(){var q=_.Y.apply(this,arguments)||this;q.defaultToFilledIcon=!1;return q};
_.O(sr,_.Y);sr.prototype.computeHasPrimaryColorIcon=function(q){return q==="SPARK"||q==="SPONSORSHIP_STAR"};
sr.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],sr.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.JV.YtLiveChatItemBehavior),_.h("design:type",_.zD)],sr.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],sr.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],sr.prototype,"defaultToFilledIcon",void 0);_.c([_.v(),_.h("design:type",Object)],sr.prototype,"data",void 0);
_.c([_.v({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.h("design:type",Boolean)],sr.prototype,"hasPrimaryColorIcon",void 0);sr=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],sr);
_.R(sr,"yt-live-chat-viewer-engagement-message-renderer",function(){if(Iva===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;Qdj===void 0&&(Qdj=document.createElement("template"));var y=Qdj;u.call(w,y.content.cloneNode(!0),q.content.firstChild);Iva=q}q=Iva;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var itP;var NR=function(){var q=_.Y.apply(this,arguments)||this;q.modernUpdate=!1;q.buttonStyle="overlay";q.buttonType="filled";return q};
_.O(NR,_.Y);NR.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
NR.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],NR.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],NR.prototype,"modernUpdate",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],NR.prototype,"buttonStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],NR.prototype,"buttonType",void 0);
NR=_.c([_.E({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],NR);
_.R(NR,"ytd-ad-hover-text-button-renderer",function(){if(itP!==void 0)return itP;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return itP=q},{mode:1});var r8$;var Qe=function(){var q=_.Y.apply(this,arguments)||this;q.buttonOverrides={size:"XS"};q.modern=_.T("web_button_rework");return q};
_.O(Qe,_.Y);Qe.prototype.onHelpTap=function(q){this.data&&this.data.informationDialog&&(_.t7(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),q.preventDefault(),q.stopPropagation())};
_.c([_.v(),_.h("design:type",Object)],Qe.prototype,"buttonOverrides",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Qe.prototype,"modern",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Qe.prototype,"data",void 0);Qe=_.c([_.E({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],Qe);
_.R(Qe,"ytd-live-chat-purchased-product-message-renderer",function(){if(r8$!==void 0)return r8$;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return r8$=q},{mode:1});var UJT;var Thc;var IT=function(){var q=_.Y.apply(this,arguments)||this;q.isContainerDeleted=!1;return q};
_.O(IT,_.Y);IT.prototype.onContextMenuClick=function(q){this.ytLiveChatItemBehavior.showContextMenu(q)};
IT.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))};
IT.prototype.isContainerDeletedChanged=IT.prototype.isContainerDeletedChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],IT.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.JV.YtLiveChatItemBehavior),_.h("design:type",_.zD)],IT.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],IT.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],IT.prototype,"isContainerDeleted",void 0);
_.c([_.v(),_.h("design:type",String)],IT.prototype,"deletedStateMessage",void 0);_.c([_.nL("isContainerDeleted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],IT.prototype,"isContainerDeletedChanged",null);IT=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],IT);
_.R(IT,"ytd-sponsorships-live-chat-header-renderer",function(){if(Thc!==void 0)return Thc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Thc=q},{mode:1});var i7=function(){var q=_.Y.apply(this,arguments)||this;q.modern=_.T("web_button_rework_with_live");q.buttonOverrides={style:"overlay",type:"filled"};return q};
_.O(i7,_.Y);i7.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]]"}}}}}};
i7.prototype.onCtaButtonClick=function(){var q,w=_.C((q=this.data)==null?void 0:q.optInPrompt,_.aB);if(q=this.maybeGetButtonCommand(w)){var u;(u=_.Qz())==null||u.clickCommand(q)}};
i7.prototype.maybeGetButtonCommand=function(q){return!q||!q.command||_.C(q.command,YlX)===void 0&&_.C(q.command,bHc)===void 0?null:q.command};
i7.prototype.shouldHideOptinPrompt=function(q,w){return!q||w};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.JV.YtLiveChatItemBehavior),_.h("design:type",_.zD)],i7.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],i7.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],i7.prototype,"modern",void 0);i7=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],i7);
_.R(i7,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(UJT!==void 0)return UJT;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return UJT=q},{mode:1});var CHa;var rt=function(){return _.Y.apply(this,arguments)||this};
_.O(rt,_.Y);rt.prototype.onContextMenuClick=function(q){this.ytLiveChatItemBehavior.showContextMenu(q)};
rt.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))};
rt.prototype.isDeletedChanged=rt.prototype.isDeletedChanged;_.c([_.D(_.JV.YtLiveChatItemBehavior),_.h("design:type",_.zD)],rt.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],rt.prototype,"data",void 0);_.c([_.nL("isDeleted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rt.prototype,"isDeletedChanged",null);rt=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],rt);
_.R(rt,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(CHa!==void 0)return CHa;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return CHa=q},{mode:1});var Ur=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return q};
_.O(Ur,_.Y);_.k=Ur.prototype;
_.k.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"}}}};
_.k.handleLiveChatAction=function(q){_.C(q,wJP)?this.handleMarkChatItemAsDeletedAction(_.C(q,wJP)):_.C(q,qja)&&this.handleRemoveChatItemAction(_.C(q,qja))};
_.k.handleLiveChatActions=function(q){q.forEach(this.handleLiveChatAction,this)};
_.k.handleMarkChatItemAsDeletedAction=function(q){var w=this,u;((u=this.data)==null?0:u.items)&&this.data.items.forEach(function(y,e){var t=Object.keys(y)[0];Object.values(y)[0].id===q.targetItemId&&w.markAsDeleted("data.items",e,t,q.deletedStateMessage,q.showOriginalContentMessage)})};
_.k.handleRemoveChatItemAction=function(q){var w=this,u;((u=this.data)==null?0:u.items)&&this.data.items.forEach(function(y,e){Object.values(y)[0].id===q.targetItemId&&w.splice("data.items",e,1)})};
_.k.markAsDeleted=function(q,w,u,y,e){q=[q,w,u].join(".");this.set(q+".deletedStateMessage",y);this.set(q+".showOriginalContentMessage",e)};
_.c([_.v(),_.h("design:type",Object)],Ur.prototype,"data",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ur.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Ur.prototype,"ytActionHandlerBehavior",void 0);Ur=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],Ur);
_.R(Ur,"yt-live-chat-item-display-list-renderer",function(){if(qoT===void 0){var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;xVc===void 0&&(xVc=document.createElement("template"));var y=xVc;u.call(w,y.content.cloneNode(!0),q.content.firstChild);qoT=q}q=qoT;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var dJr;var OtT,oA$=function(){if(OtT!==void 0)return OtT;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;dJr===void 0&&(dJr=document.createElement("template"));var y=dJr;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return OtT=q};var Tr=function(){var q=_.Y.apply(this,arguments)||this;q.isHeader=!1;return q};
_.O(Tr,_.Y);Tr.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.x$.Object.defineProperties(Tr,{template:{configurable:!0,enumerable:!0,get:function(){return oA$()}}});
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Tr.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Tr.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Tr.prototype,"isHeader",void 0);Tr=_.c([_.JM({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],Tr);_.R(Tr,"yt-live-chat-item-display-renderer",function(){return oA$()},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var Vba,fvc,avk,zgT;
Vba={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}};fvc={home:"eohps",search:"eosps",watch:"eowps"};_.mJG=["watch","search","home"];
_.CU=function(){this.JSC$12044_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12044_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Et("PRECONSTRUCTION_DELAY",0);this.signals_=_.DU();this.targetPage_=""};
_.CU.prototype.init=function(q,w){q=q===void 0?"":q;w=w===void 0?null:w;if(this.JSC$12044_isInitialized_)this.abort();else if(this.JSC$12044_isInitialized_=!0,q&&_.A8r(this,q),w){var u=_.ZU(this.signals_,"pcl")?0:10,y=function(){for(var e=0,t;t=_.mJG[e++];)t!=q&&t!=w&&this.pendingPages_.push(t);_.J8F(this)}.bind(this);
this.signals_.parkOrScheduleJob(y,u,"pcl")}};
_.CU.prototype.abort=function(){this.fragmentJobId_&&(_.pi.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);zgT(this)};
_.A8r=function(q,w){q.JSC$12044_isInitialized_&&!q.targetPage_&&(q.targetPage_=w,avk(q,w),q.isInitialPass_=!1,avk(q,w),q.signals_.processSignal(fvc[q.targetPage_]),zgT(q),_.J8F(q))};
_.J8F=function(q){q.pendingPages_.length&&!q.pagePreparerJobId_&&(q.pagePreparerJobId_=_.mg(_.pi,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.A8r(this,this.pendingPages_.shift())}.bind(q),q.DEFAULT_DELAY_))};
avk=function(q,w){if(w=Vba[w])for(var u in w){var y=!1,e=u;u.charAt(0)=="~"&&(y=!0,e=u.substring(1));var t=w[u];t=typeof t=="object"?t:{count:t};w[u]=t;t.componentName=e;t.count>0&&(q.isInitialPass_?y||q.isSeenDuringInitialPass_[e]||(q.JSC$12044_queue_.push({componentName:e,count:1,signals:t.signals}),q.isSeenDuringInitialPass_[e]=!0,t.count--):q.JSC$12044_queue_.push(t))}};
zgT=function(q){q.JSC$12044_queue_.length=0;q.targetPage_="";q.isInitialPass_=!0;q.signals_.processSignal("eop")};
_.CU.getInstance=function(){return _.kX(_.CU)};var DJX=function(){this.signals=_.DU();this.init()};
DJX.prototype.startPreconstruction=function(){_.CU.getInstance().init(_.RX("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
DJX.prototype.init=function(){Ztk(this);window.Polymer&&Uua&&xqz();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var q=_.uc.ytcsi;if(q&&q.gt&&(q=q.gt())&&q.tick&&(q.tick.aft>0||q.tick.pbs>0)&&(_.RX("IS_HOMEPAGE_COLD")||_.RX("IS_RESULTS_PAGE_COLD")||_.RX("IS_WATCH_PAGE_COLD"))){p5X(this);break a}GaH(hJ7,this.onNotifications,this)}};
var Ztk=function(q){var w=function(){q.signals.processSignal("dl")};
document.readyState==="complete"?(_.jZ(Error("sh"),"WARNING"),w()):_.YPf(window,"load",w)};
DJX.prototype.onNotifications=function(q){q.timer||(_.RX("IS_HOMEPAGE_COLD")||_.RX("IS_RESULTS_PAGE_COLD")||_.RX("IS_WATCH_PAGE_COLD"))&&p5X(this)};
var p5X=function(q){q.signals.parkOrScheduleJob(function(){q.signals.processSignal("eocs")},10,"eor")};
new DJX;var dt,Or=function(){return _.Na.apply(this,arguments)||this};
_.O(Or,_.Na);_.k=Or.prototype;_.k.enableActiveViewMeasurement=function(q){if(this.isActiveViewEnabled(q)){var w=this.getUrlPrefixesFromCommand(q.viewableCommands);q=this.getUrlPrefixesFromCommand(q.endOfSessionCommands);if(!dt){var u=_.Fc("active_view_tos_timeout_ms");dt=u>0?new OW7(this.getVersion(),u):new OW7(this.getVersion())}VJM(dt,this.hostElement);fxl(dt,this.hostElement,w,q)}};
_.k.stopActiveViewMeasurement=function(){dt&&VJM(dt,this.hostElement)};
_.k.isActiveViewEnabled=function(q){return!!q&&(this.hasAtLeastOneUrl(q.viewableCommands)||this.hasAtLeastOneUrl(q.endOfSessionCommands))};
_.k.hasAtLeastOneUrl=function(q){return!!q&&q.length>0&&q[0].loggingUrls!=null&&q[0].loggingUrls.length>0};
_.k.getVersion=function(){var q=_.Et("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(q==null?void 0:q.length)===2?q[1]:null};
_.k.getUrlPrefixesFromCommand=function(q){if(!q)return[];var w=[];q=_.P(q);for(var u=q.next();!u.done;u=q.next())if(u=u.value,u.loggingUrls){u=_.P(u.loggingUrls);for(var y=u.next();!y.done;y=u.next())y=y.value,y.baseUrl&&w.push(y.baseUrl)}return w};
Or=_.c([_.Q6()],Or);var oT=[Or.prototype];var Ve=function(){return _.Na.apply(this,arguments)||this};
_.O(Ve,_.Na);_.x$.Object.defineProperties(Ve.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.T("enable_entity_store_from_dependency_injection")?_.cj():_.Mt()}}});
Ve=_.c([_.Q6()],Ve);_.fU=[QA.prototype,Ve.prototype];var $Jc=["ytd-rich-shelf-renderer"],mJ=function(){var q=_.Na.apply(this,arguments)||this;q._noAccessors=!0;q.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";q.followUpDialogPromise=null;q.followUpDialogPromiseResolve=null;q.followUpDialogPromiseReject=null;return q};
_.O(mJ,_.Na);_.k=mJ.prototype;_.k.dismissibleItemIsDismissedChanged_=function(q){_.T("kevlar_fluid_dismiss")&&(q?_.t7(this.hostElement,"yt-dismissible-item-dismissed"):_.t7(this.hostElement,"yt-dismissible-item-undismissed"))};
_.k.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.k.dismissibleItemReset_=function(){var q=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 _.IA(function(w,u){q.followUpDialogPromiseResolve=w;q.followUpDialogPromiseReject=u});
_.t7(this.hostElement,"yt-enable-lockup-interaction")};
_.k.dismissibleItemOnYtServiceRequestSent_=function(q,w){w.actions&&this.dismissibleItemProcessActions(w.actions,q)};
_.k.dismissibleItemOnRequestSent=function(q){if(_.T("web_button_rework"))for(var w=_.P(q.detail),u=w.next();!u.done;u=w.next()){var y=void 0;(u=(y=_.C(u.value,_.NU))==null?void 0:y.actions)&&this.dismissibleItemProcessActions(u,q)}};
_.k.dismissibleItemOnCommandSent=function(q,w){w&&this.dismissibleItemProcessActions(w,q)};
_.k.setAndGetDismissedContentId=function(q){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+q};
_.k.replayDismissAction=function(q){this.dismissibleItemProcessActions([q])};
_.k.dismissibleItemProcessActions=function(q,w){for(var u=0;u<q.length;u++){var y=q[u],e=void 0;((e=_.C(y,_.Ww))==null?0:e.commands)&&this.dismissibleItemProcessActions(_.C(y,_.Ww).commands,w);if(_.C(y,_.rf)){if(e=_.C(y,_.rf),!e.replaceParentSection||$Jc.includes(this.hostElement.nodeName.toLowerCase()))_.T("web_see_fewer_shorts_reactive_dismissal")&&e.groupDismissal&&dnu(this,e.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(e),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.IH("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:y})),y=void 0,(y=w)==null||y.stopPropagation()}else if(_.C(y,GTj))this.dismissibleItemHandleHideEnclosingAction_(),y=void 0,(y=w)==null||y.stopPropagation();else if(_.C(y,C8G))_.T("web_see_fewer_shorts_reactive_dismissal")&&(y=_.C(y,C8G),e=void 0,((e=y)==null?0:e.targetGroupId)&&dnu(this,{targetGroupId:y.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.IH("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),y=void 0,(y=w)==null||y.stopPropagation();else if(_.C(y,_.NU))(y=_.C(y,_.NU).actions)&&_.nq(this.hostElement,y,this.hostElement),y=void 0,(y=w)==null||y.stopPropagation();else{var t=e=void 0;((e=_.C(y,_.Sw))==null?void 0:e.signal)!=="TELL_US_WHY"||((t=_.C(y,_.Sw))==null?0:t.targetId)&&_.T("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),y=void 0,(y=w)==null||y.stopPropagation())}}};
_.k.dismissibleItemOnYtServiceRequestCompleted_=function(q,w){var u=this.get("feedbackResponses.0.followUpDialog",w.data);u?this.followUpDialogPromiseResolve(u):w.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(w.actions,q)};
_.k.dismissibleItemHandleReplaceEnclosingAction_=function(q){this.dismissedRenderer=q.item;this.isDismissed=!0;var w=null;(w=_.A(this.hostElement).querySelector("#dismissed"))&&_.KJ(this,function(){_.q5(w)});
_.t7(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.k.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.k.dismissibleItemHandleUndoFeedbackAction_=function(){_.t7(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.k.dismissibleItemHandleTellUsWhySignalAction_=function(){var q=this;this.followUpDialogPromise.then(function(w){q.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:w}})})};
mJ.prototype.dismissibleItemOnYtServiceRequestCompleted_=mJ.prototype.dismissibleItemOnYtServiceRequestCompleted_;mJ.prototype.dismissibleItemOnCommandSent=mJ.prototype.dismissibleItemOnCommandSent;mJ.prototype.dismissibleItemOnRequestSent=mJ.prototype.dismissibleItemOnRequestSent;mJ.prototype.dismissibleItemOnYtServiceRequestSent_=mJ.prototype.dismissibleItemOnYtServiceRequestSent_;mJ.prototype.dismissibleItemDataChanged_=mJ.prototype.dismissibleItemDataChanged_;
mJ.prototype.dismissibleItemIsDismissedChanged_=mJ.prototype.dismissibleItemIsDismissedChanged_;_.c([_.D(_.YE),_.h("design:type",Object)],mJ.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],mJ.prototype,"ytdReduxBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],mJ.prototype,"isDismissed",void 0);_.c([_.v(),_.h("design:type",Object)],mJ.prototype,"dismissedRenderer",void 0);
_.c([_.nL("isDismissed"),_.h("design:type",Function),_.h("design:paramtypes",[Boolean]),_.h("design:returntype")],mJ.prototype,"dismissibleItemIsDismissedChanged_",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mJ.prototype,"dismissibleItemDataChanged_",null);
_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],mJ.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.c([_.Gm("yt-service-request-sent-button-renderer"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],mJ.prototype,"dismissibleItemOnRequestSent",null);
_.c([_.Gm("yt-dismissible-item-action"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Array]),_.h("design:returntype")],mJ.prototype,"dismissibleItemOnCommandSent",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],mJ.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);mJ=_.c([_.Q6()],mJ);_.Ao=[_.YE,_.fU,mJ.prototype];var Jo=function(){var q=_.Na.apply(this,arguments)||this;q.disableGridStateAware=!1;q.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};q.currentGridClass="";return q};
_.O(Jo,_.Na);Jo.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.KJ(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var q=this.gridStateAwareGetElement();_.ef(q,"grid",!0)}};
Jo.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
Jo.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.A(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
Jo.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var q="grid-disabled";else{q=_.gz3.getInstance();var w=this.get("pageSubtype");q=w&&vzP.includes(w)?"grid-disabled":q.currentSnapState_?q.currentSnapState_.className:null}(w=this.gridStateAwareGetElement())&&q!==this.currentGridClass&&(q&&_.ef(w,q,!0),this.currentGridClass&&_.ef(w,this.currentGridClass,!1),this.currentGridClass=q)};
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Jo.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",String)],Jo.prototype,"gridStateAwareSizingElementSelector",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Jo.prototype,"disableGridStateAware",void 0);Jo=_.c([_.Q6()],Jo);_.zr=[Jo.prototype,_.hm.YtActionHandlerBehavior];_.aT=new _.MH("GUIDE_TOKEN");var Z$;_.D$={};Z$=function(){var q=_.Na.apply(this,arguments)||this;q.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 q};
_.O(Z$,_.Na);_.k=Z$.prototype;_.k.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.k.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var q=_.tG().resolve(_.kF(_.aT));q&&(this.guidePersistentAndVisible=q.getGuidePersistentAndVisible(),this.activeEndpoint=q.getActiveEndpoint(),this.guideOpened=q.getGuideOpened(),this.miniGuideVisible=q.getMiniGuideVisible())};
_.k.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.k.handleGuideStateAction=function(q){this.guidePersistentAndVisible=q};
_.k.handleMiniGuideStateAction=function(q){this.miniGuideVisible=q};
_.k.handleGuideOpenedAction=function(q){this.guideOpened=q};
_.k.handleActiveEndpointAction=function(q){this.activeEndpoint=q};
Z$.prototype.onActiveEndpointChange=Z$.prototype.onActiveEndpointChange;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Z$.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Z$.prototype,"guidePersistentAndVisible",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Z$.prototype,"miniGuideVisible",void 0);_.c([_.v(),_.h("design:type",Object)],Z$.prototype,"activeEndpoint",void 0);
_.c([_.nL("activeEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Z$.prototype,"onActiveEndpointChange",null);_.c([_.v(),_.h("design:type",Boolean)],Z$.prototype,"guideOpened",void 0);Z$=_.c([_.Q6()],Z$);_.D$.YtdGuideStateAwareBehavior=[];_.D$.YtdGuideStateAwareBehavior.push(Z$.prototype,_.hm.YtActionHandlerBehavior);var vAF=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],pU=function(){var q=_.Na.apply(this,arguments)||this;q.hoverJobId=0;q.JSC$12075_touched=!1;return q};
_.O(pU,_.Na);_.k=pU.prototype;_.k.created=function(){this.useExpandableTooltip=!vAF.includes(this.is)};
_.k.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.k.detached=function(){this.useExpandableTooltip=!1};
_.k.lockupOnDown=function(q){this.interactionElement&&!_.LT(_.SQ(q),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.k.lockupOnUp=function(q){this.interactionElement&&!_.LT(_.SQ(q),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.k.onTouchStart=function(){this.JSC$12075_touched=!0};
_.k.lockupOnMouseEnter=function(){var q=this,w=_.Fc("kevlar_lockup_hover_delay",-1);this.JSC$12075_touched&&w>=0?(_.pi.cancelJob(this.hoverJobId),this.hoverJobId=_.pi.addJob(function(){q.lockupIsHovered=!0},8,w),this.JSC$12075_touched=!1):this.lockupIsHovered=!0};
_.k.lockupOnMouseLeave=function(){this.hoverJobId&&(_.pi.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.k.lockupOnPopupClosed=function(q,w){var u;((u=w.popupRenderer)==null?void 0:u.is)==="ytd-menu-popup-renderer"&&(q=w.popupRenderer.veData,w=_.pN(),q&&w&&_.h7(w,[q]))};
_.k.lockupOnLockupRequested=function(q){var w=q.detail.videoIds[0],u;q.detail&&w===((u=this.data)==null?void 0:u.videoId)&&(q.detail.returnValue=[this.data])};
_.k.lockupOnYtServiceRequestSent=function(q,w){if(q=w.actions)for(var u=0;u<q.length;u++){var y=q[u];if(y.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&w.ajaxPromise){var e=void 0,t=(e=_.C(w.endpoint,_.AO))==null?void 0:e.playlistId;e=void 0;y=(e=y.removedVideoId)!=null?e:"";FlP(_.$u(),y,t)}else y.action==="ACTION_REMOVE_VIDEO"&&w.ajaxPromise&&(t=void 0,y=(t=y.setVideoId)!=null?t:"",_.GK$(_.$u(),y))}};
_.k.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.k.lockupOnLockupEnabled=function(){if(!this.$){var q=_.tG().resolve(_.KT).getCurrentPage(),w=this.getParentRenderer?this.getParentRenderer():void 0;_.Y8(new _.fv("component not ready",this.is,this.isAttached,q==null?void 0:q.is,w==null?void 0:w.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
pU.prototype.lockupOnLockupEnabled=pU.prototype.lockupOnLockupEnabled;pU.prototype.lockupOnLockupDisabled=pU.prototype.lockupOnLockupDisabled;pU.prototype.lockupOnYtServiceRequestSent=pU.prototype.lockupOnYtServiceRequestSent;pU.prototype.lockupOnLockupRequested=pU.prototype.lockupOnLockupRequested;pU.prototype.lockupOnPopupClosed=pU.prototype.lockupOnPopupClosed;pU.prototype.lockupOnMouseLeave=pU.prototype.lockupOnMouseLeave;pU.prototype.lockupOnMouseEnter=pU.prototype.lockupOnMouseEnter;
pU.prototype.onTouchStart=pU.prototype.onTouchStart;pU.prototype.lockupOnUp=pU.prototype.lockupOnUp;pU.prototype.lockupOnDown=pU.prototype.lockupOnDown;_.c([_.v(),_.h("design:type",Object)],pU.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],pU.prototype,"lockupIsHovered",void 0);_.c([_.v(),_.h("design:type",Boolean)],pU.prototype,"lockupTouchTriggered",void 0);_.c([_.v(),_.h("design:type",Boolean)],pU.prototype,"useExpandableTooltip",void 0);
_.c([_.Wj("#interaction"),_.h("design:type",Object)],pU.prototype,"interactionElement",void 0);_.c([_.Gm("down"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],pU.prototype,"lockupOnDown",null);_.c([_.Gm("up"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],pU.prototype,"lockupOnUp",null);
_.c([_.Gm("touchstart"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pU.prototype,"onTouchStart",null);_.c([_.Gm("mouseenter"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pU.prototype,"lockupOnMouseEnter",null);_.c([_.Gm("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pU.prototype,"lockupOnMouseLeave",null);
_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],pU.prototype,"lockupOnPopupClosed",null);_.c([_.Gm("yt-lockup-requested"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],pU.prototype,"lockupOnLockupRequested",null);
_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],pU.prototype,"lockupOnYtServiceRequestSent",null);_.c([_.Gm("yt-disable-lockup-interaction"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pU.prototype,"lockupOnLockupDisabled",null);
_.c([_.Gm("yt-enable-lockup-interaction"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pU.prototype,"lockupOnLockupEnabled",null);pU=_.c([_.Q6()],pU);_.$p=[pU.prototype];_.btj={YtdReduxBehavior:[]};_.btj.YtdReduxBehavior.push.apply(_.btj.YtdReduxBehavior,_.fU);var vv=function(){var q=_.Na.apply(this,arguments)||this;q._noAccessors=!0;q.disableNowPlaying=!1;q.disableTooltips=!1;q.useHoveredProperty=!1;q.hovered=!1;q.isThumbnailHovered_=!1;q.addBackground=_.T("kevlar_thumbnail_bg");q.nowPlaying=!1;q.disableRounding=!1;q.size="small";return q};
_.O(vv,_.Na);_.k=vv.prototype;_.k.computeThumbnailOverlaySidePanelWidth_=function(q,w){return q-w};
_.k.computeSize=function(q,w){if(!this.disableRounding){if(!q&&!w)return"small";q=Math.max(q||0,w||0);return q>=256?"large":q>=96?"medium":"small"}};
_.k.computeFinalHoveredState_=function(q,w,u){return this.nowPlaying?!1:_.T("kevlar_thumbnail_fluid")&&q?w:u};
_.k.computeHoverOverlays_=function(q,w){return q&&w?w:void 0};
_.k.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.k.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.k.checkMiniplayer_=function(){var q;if(((q=this.data)==null?0:q.playlistSetVideoId)&&_.T("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{q=_.Hh();var w=q.currentEndpoint;!this.disableNowPlaying&&w&&_.C(w,_.LN)&&this.data?(w=_.C(w,_.LN),this.nowPlaying=this.data.playlistId?w.playlistId===this.data.playlistId:w.videoId===this.data.videoId,this.isVideoPlaying=q==null?void 0:q.isVideoPlaying):this.nowPlaying=!1}};
vv.prototype.checkMiniplayer_=vv.prototype.checkMiniplayer_;vv.prototype.onMouseLeave_=vv.prototype.onMouseLeave_;vv.prototype.onMouseEnter_=vv.prototype.onMouseEnter_;vv.prototype.computeHoverOverlays_=vv.prototype.computeHoverOverlays_;vv.prototype.computeFinalHoveredState_=vv.prototype.computeFinalHoveredState_;vv.prototype.computeSize=vv.prototype.computeSize;vv.prototype.computeThumbnailOverlaySidePanelWidth_=vv.prototype.computeThumbnailOverlaySidePanelWidth_;
_.c([_.D(_.fU),_.h("design:type",Object)],vv.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],vv.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Number)],vv.prototype,"height",void 0);_.c([_.v(),_.h("design:type",Boolean)],vv.prototype,"bottomSidePanel",void 0);_.c([_.v(),_.h("design:type",Number)],vv.prototype,"width",void 0);_.c([_.v(),_.h("design:type",Object)],vv.prototype,"disableNowPlaying",void 0);
_.c([_.v({selector:_.DV}),_.h("design:type",Boolean)],vv.prototype,"miniplayerIsActive",void 0);_.c([_.v(),_.h("design:type",Object)],vv.prototype,"disableTooltips",void 0);_.c([_.v(),_.h("design:type",Object)],vv.prototype,"useHoveredProperty",void 0);_.c([_.v(),_.h("design:type",Object)],vv.prototype,"hovered",void 0);_.c([_.v(),_.h("design:type",Object)],vv.prototype,"isThumbnailHovered_",void 0);
_.c([_.v({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.h("design:type",Boolean)],vv.prototype,"finalHoveredState_",void 0);_.c([_.v({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.h("design:type",Number)],vv.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],vv.prototype,"addBackground",void 0);
_.c([_.v({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.h("design:type",Object)],vv.prototype,"hoverOverlays_",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],vv.prototype,"nowPlaying",void 0);_.c([_.v(),_.h("design:type",Boolean)],vv.prototype,"isVideoPlaying",void 0);_.c([_.v(),_.h("design:type",Object)],vv.prototype,"disableRounding",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.h("design:type",Object)],vv.prototype,"size",void 0);_.c([_.Gm("mouseenter"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vv.prototype,"onMouseEnter_",null);_.c([_.Gm("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vv.prototype,"onMouseLeave_",null);
_.c([_.nL("data","disableNowPlaying","miniplayerIsActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vv.prototype,"checkMiniplayer_",null);vv=_.c([_.Q6()],vv);var Yo6=[vv.prototype];_.b7={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(q,w){return q+":"+_.kT(w)},
getPlayerListener_:function(q,w,u){q=this.getPlayerListenerKey_(q,w);w=this.playerListeners_.get(q);u&&this.playerListeners_.delete(q);return w},
savePlayerListener_:function(q,w){var u=w.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(q,w),u);return u},
listenToPlayerEvent:function(q,w,u){u=this.savePlayerListener_(w,u);q.addEventListener(w,u)},
listenToPlayerEvents:function(q,w){w.forEach(function(u,y){this.listenToPlayerEvent(q,y,u)}.bind(this))},
unlistenFromPlayerEvent:function(q,w,u){u=this.getPlayerListener_(w,u,!0);q.removeEventListener(w,u)},
unlistenFromPlayerEvents:function(q,w){w.forEach(function(u,y){this.unlistenFromPlayerEvent(q,y,u)}.bind(this))}}};
_.Yp=function(){};_.gAT=new _.MH("PLAYER_API_TOKEN");var AZ4=!1,Dnf,zlj=!1,pOM;var uq=function(q,w,u,y,e){_.VG.call(this);var t=this;this.playerId=w;this.webPlayerContextConfig=y;this.tAi=e;this.pJC=!1;this.api={};this.trS=this.taS=null;this.u7i=new _.r$;this.a5={};this.kZV=this.hAw=this.elementId=this.zIT=this.config=null;this.q3A=!1;this.lQ=this.ti2=null;this.hp2={};this.yKi=["onReady"];this.lastError=null;this.efy=NaN;this.dMi={};this.l2V=0;this.ln=this.targetElement=q;_.sN(this,this.u7i);EA6(this);u?this.l2V=setTimeout(function(){t.loadNewVideoConfig(u)},0):y&&(Rgr(this),
c8j(this))};
_.O(uq,_.VG);uq.prototype.getId=function(){return this.playerId};
uq.prototype.loadNewVideoConfig=function(q){if(!this.isDisposed()){this.l2V&&(clearTimeout(this.l2V),this.l2V=0);var w=q||{};w instanceof rbT||(w=new rbT(w));this.config=w;this.setConfig(q);c8j(this);this.isReady()&&Soj(this)}};
var Rgr=function(q){var w;q.webPlayerContextConfig?w=q.webPlayerContextConfig.rootElementId:w=q.config.attrs.id;q.elementId=w||q.elementId;q.elementId==="video-player"&&(q.elementId=q.playerId,q.webPlayerContextConfig?q.webPlayerContextConfig.rootElementId=q.playerId:q.config.attrs.id=q.playerId);var u;((u=q.ln)==null?void 0:u.id)===q.elementId&&(q.elementId+="-player",q.webPlayerContextConfig?q.webPlayerContextConfig.rootElementId=q.elementId:q.config.attrs.id=q.elementId)};
uq.prototype.setConfig=function(q){this.zIT=q;this.config=hgj(q);Rgr(this);if(!this.hAw){var w;this.hAw=jdP(this,((w=this.config.args)==null?void 0:w.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var u;if((u=this.config)==null?0:u.attrs)q=this.config.attrs,(w=q.width)&&this.ln&&(this.ln.style.width=aJ(Number(w)||w,!0)),(q=q.height)&&this.ln&&(this.ln.style.height=aJ(Number(q)||q,!0))};
var Soj=function(q){if(q.config&&q.config.loaded!==!0)if(q.config.loaded=!0,!q.config.args||q.config.args.autoplay!=="0"&&q.config.args.autoplay!==0&&q.config.args.autoplay!==!1){var w;q.api.loadVideoByPlayerVars((w=q.config.args)!=null?w:null)}else q.api.cueVideoByPlayerVars(q.config.args)},LWT=function(q){var w=!0,u=q.getPlayerElement();
u&&q.config&&(w=u.dataset.version===lvX(q));return w&&!!_.hP("yt.player.Application.create")},c8j=function(q){if(!q.isDisposed()&&!q.q3A){var w=LWT(q);
if(w&&(q.getPlayerElement()?"html5":null)==="html5")q.kZV="html5",q.isReady()||Mbr(q);else if(KWr(q),q.kZV="html5",w&&q.lQ&&q.targetElement)q.targetElement.appendChild(q.lQ),Mbr(q);else{q.config&&(q.config.loaded=!0);var u=!1;q.ti2=function(){u=!0;var y=Bha(q,"player_bootstrap_method")?_.hP("yt.player.Application.createAlternate")||_.hP("yt.player.Application.create"):_.hP("yt.player.Application.create");var e=q.config?hgj(q.config):void 0;y&&y(q.targetElement,e,q.webPlayerContextConfig,q.tAi);Mbr(q)};
q.q3A=!0;w?q.ti2():(_.EM(lvX(q),q.ti2),(w=xJG(q))&&Hdc(w||""),qw$(q)&&!u&&_.wr("yt.player.Application.create",null))}}};
uq.prototype.getPlayerElement=function(){var q=_.wE(document,this.elementId);!q&&this.ln&&this.ln.querySelector&&(q=this.ln.querySelector("#"+this.elementId));return q};
var Mbr=function(q){if(!q.isDisposed()){var w=q.getPlayerElement(),u=!1;w&&w.getApiInterface&&w.getApiInterface()&&(u=!0);if(u){q.q3A=!1;if(!Bha(q,"html5_remove_not_servable_check_killswitch")){var y;if((w==null?0:w.isNotServable)&&q.config&&(w==null?0:w.isNotServable((y=q.config.args)==null?void 0:y.video_id)))return}wOk(q)}else q.efy=setTimeout(function(){Mbr(q)},50)}},wOk=function(q){EA6(q);
q.pJC=!0;var w=q.getPlayerElement();if(w){q.taS=u2k(q,w,"addEventListener");q.trS=u2k(q,w,"removeEventListener");var u=w.getApiInterface();u=u.concat(w.getInternalApiInterface());for(var y=q.api,e=0;e<u.length;e++){var t=u[e];y[t]||(y[t]=u2k(q,w,t))}}for(var X in q.a5)q.a5.hasOwnProperty(X)&&q.taS&&q.taS(X,q.a5[X]);Soj(q);q.hAw&&q.hAw(q.api);q.u7i.publish("onReady",q.api)},u2k=function(q,w,u){var y=w[u];
return function(){var e=_.Cj.apply(0,arguments);try{return q.lastError=null,y.apply(w,e)}catch(t){if(u!=="sendAbandonmentPing")throw t.params=u,q.lastError=t,e=new _.fv("PlayerProxy error in method call",{error:t,method:u,playerId:q.playerId}),e.level="WARNING",e;}}},EA6=function(q){q.pJC=!1;
if(q.trS)for(var w in q.a5)q.a5.hasOwnProperty(w)&&q.trS(w,q.a5[w]);for(var u in q.dMi)q.dMi.hasOwnProperty(u)&&clearTimeout(Number(u));q.dMi={};q.taS=null;q.trS=null;w=q.api;for(var y in w)w.hasOwnProperty(y)&&(w[y]=null);w.addEventListener=function(e,t){q.addEventListener(e,t)};
w.removeEventListener=function(e,t){q.removeEventListener(e,t)};
w.destroy=function(){q.dispose()};
w.getLastError=function(){return q.getLastError()};
w.getPlayerType=function(){return q.getPlayerType()};
w.getCurrentVideoConfig=function(){return q.zIT};
w.loadNewVideoConfig=function(e){q.loadNewVideoConfig(e)};
w.isReady=function(){return q.isReady()}};
uq.prototype.isReady=function(){return this.pJC};
uq.prototype.addEventListener=function(q,w){var u=this;this.isDisposed();var y=jdP(this,w);y&&(_.SH(this.yKi,q)||this.a5[q]||(w=yZa(this,q),this.taS&&this.taS(q,w)),this.u7i.subscribe(q,y),q==="onReady"&&this.isReady()&&setTimeout(function(){y(u.api)},0))};
uq.prototype.removeEventListener=function(q,w){this.isDisposed()||(w=jdP(this,w))&&this.u7i.unsubscribe(q,w)};
var jdP=function(q,w){var u=w;if(typeof w==="string"){if(q.hp2[w])return q.hp2[w];u=function(){var y=_.Cj.apply(0,arguments),e=_.hP(w);if(e)try{e.apply(_.uc,y)}catch(t){throw y=new _.fv("PlayerProxy error when executing callback",{error:t}),y.level="ERROR",y;}};
q.hp2[w]=u}return u?u:null},yZa=function(q,w){var u=function(y){var e=function(){q.isDisposed();
if(!q.isDisposed())try{q.u7i.publish(w,y!=null?y:void 0)}catch(G){var X=new _.fv("PlayerProxy error when creating global callback",{error:G.message,event:w,playerId:q.playerId,data:y,originalStack:G.stack,componentStack:G.componentStack});X.level="WARNING";throw X;}};
if(Bha(q,"web_player_publish_events_immediately"))e();else{var t=setTimeout(function(){e();_.db.remove(q.dMi,String(t))},0);
_.db.add(q.dMi,String(t),!0)}};
return q.a5[w]=u};
uq.prototype.getPlayerType=function(){return this.kZV||(this.getPlayerElement()?"html5":null)};
uq.prototype.getLastError=function(){return this.lastError};
var KWr=function(q){q.cancel();EA6(q);q.kZV=null;q.config&&(q.config.loaded=!1);var w=q.getPlayerElement();w&&(LWT(q)||!qw$(q)?q.lQ=w:(w&&w.destroy&&w.destroy(),q.lQ=null));q.targetElement&&_.oJ(q.targetElement)};
uq.prototype.cancel=function(){this.ti2&&_.gro(lvX(this),this.ti2);clearTimeout(this.efy);this.q3A=!1};
uq.prototype.disposeInternal=function(){KWr(this);if(this.lQ&&this.config&&this.lQ.destroy)try{this.lQ.destroy()}catch(w){var q=new _.fv("PlayerProxy error during disposal",{error:w});q.level="ERROR";throw q;}this.hp2=null;for(q in this.a5)this.a5.hasOwnProperty(q)&&delete this.a5[q];this.zIT=this.config=this.api=null;delete this.targetElement;delete this.ln;_.VG.prototype.disposeInternal.call(this)};
var qw$=function(q){var w,u;q=(w=q.config)==null?void 0:(u=w.args)==null?void 0:u.fflags;return!!q&&q.indexOf("player_destroy_old_version=true")!==-1},lvX=function(q){return q.webPlayerContextConfig?q.webPlayerContextConfig.jsUrl:(q=q.config.assets)?q.js:""},xJG=function(q){return q.webPlayerContextConfig?q.webPlayerContextConfig.cssUrl:(q=q.config.assets)?q.css:""},Bha=function(q,w){if(q.webPlayerContextConfig)var u=q.webPlayerContextConfig.serializedExperimentFlags;
else{var y;if((y=q.config)==null?0:y.args)u=q.config.args.fflags}return(u||"").split("&").includes(w+"=true")},hgj=function(q){for(var w={},u=_.P(Object.keys(q)),y=u.next();!y.done;y=u.next()){y=y.value;
var e=q[y];w[y]=typeof e==="object"?_.db.clone(e):e}return w};var gUj={},YwM="player_uid_"+(Math.random()*1E9>>>0);var gt=function(q,w,u,y,e,t){w=w===void 0?document.createElement("div"):w;this.webPlayerContextConfig=q;this.container=w;this.commandResolver=u;this.apiResolver=cZu();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.Gt;y||t?elF(this):kUc(this);this.pendingPlayerResponse=y;this.pendingWatchNextResponse=e;this.pendingPlayerVars=t;tz$(this)};
gt.prototype.loadVideoWithPlayerResponse=function(q,w,u){this.loadVideo(q,w,u)};
gt.prototype.loadVideoWithPlayerVars=function(q){return this.loadVideo(void 0,void 0,q)};
gt.prototype.destroy=function(q){if(q=_.wE(document,q))q=YwM+"_"+_.kT(q),(q=gUj[q])&&q.dispose()};
var XOG=function(q,w){var u;_.F(function(y){if(y.nextAddress==1)return q.pendingWatchNextResponse=w,q.synchronousApi?(u=q.synchronousApi,y.jumpTo(2)):_.H(y,q.api,3);y.nextAddress!=2&&(u=y.yieldResult);PwP(q,u);q.pendingWatchNextResponse&&(u.updateVideoData({raw_watch_next_response:q.pendingWatchNextResponse}),q.pendingWatchNextResponse=void 0);_.HI(y)})},PwP=function(q,w){var u;
if(!(w==null?0:(u=w.isReady)==null?0:u.call(w))){var y;q=new _.fv("playerApi is falsey",{synchronousApi:q.synchronousApi,apiResolved:q.apiResolver.resolved,playerApiUndefined:w===void 0,playerApiNull:w===null,playerApiReady:(w==null?void 0:(y=w.isReady)==null?void 0:y.call(w))===!0,playerApiMethods:w?Object.keys(w):[]});_.vm(q)}},FK6=function(q,w){if(typeof q[w]==="function")return q[w]()},GUZ=function(q){var w=window,u,y=(u=w.ytplayer)==null?void 0:u.bootstrapPlayerContainer;
if((u=y==null?void 0:y.firstElementChild)&&_.$r(u,"html5-video-player")){var e,t,X=(e=w.ytplayer)==null?void 0:(t=e.bootstrapWebPlayerContextConfig)==null?void 0:t.contextId;e=q.webPlayerContextConfig.contextId;if(X&&X===e){y!==q.container&&(y=!1,FK6(u,"getPlayerState")===2&&(y=!0),q.container.appendChild(u),y||FK6(u,"playVideo"));var G;if((G=w.ytplayer)==null?0:G.bootstrapPlayerResponse)q.bootstrapPlayerResponse=w.ytplayer.bootstrapPlayerResponse}}},tz$=function(q){var w,u,y,e,t;
_.F(function(X){if(X.nextAddress==1)return q.pageReadyOrDataAvailable?X.jumpTo(2):_.H(X,q.pageReadyOrDataAvailableResolver.promise,2);if(X.nextAddress!=4)return!_.T("kevlar_player_unified_player_loading")||JZj()&&abu()?X.jumpTo(4):_.H(X,vU6(),4);GUZ(q);if(q.pendingPlayerResponse||q.pendingPlayerVars)w=bPu(q.pendingPlayerResponse,q.pendingWatchNextResponse,q.pendingPlayerVars),q.pendingPlayerResponse&&q.pendingPlayerResponse===q.bootstrapPlayerResponse&&(w.loaded=!0),q.bootstrapPlayerResponse=void 0;
u=Rlz(q.container,w,q.webPlayerContextConfig);((y=w)==null?0:y.loaded)&&q.pendingWatchNextResponse?(XOG(q,q.pendingWatchNextResponse),q.pendingPlayerResponse=void 0,q.pendingPlayerVars=void 0):nUX(q);e=function(G){u.removeEventListener("onReady",e);q.synchronousApi=G;q.apiResolver.resolve(G)};
u.addEventListener("onReady",e);q.commandResolver!==void 0&&(t=q.commandResolver,u.addEventListener("innertubeCommand",function(G){t(G)}));
_.HI(X)})};
gt.prototype.loadVideo=function(q,w,u){var y=this,e,t,X,G,n,N,Q,I,U;return _.F(function(d){if(d.nextAddress==1)return y.pendingPlayerResponse=q,y.pendingWatchNextResponse=w,y.pendingPlayerVars=u,elF(y),y.synchronousApi?(e=y.synchronousApi,d.jumpTo(2)):_.H(d,y.api,3);d.nextAddress!=2&&(e=d.yieldResult);PwP(y,e);X=new Promise(function(V){t=V});
G=function(){var V=e.getPlayerResponse();V&&(e.removeEventListener("onVideoDataChange",G),t(V))};
e.addEventListener("onVideoDataChange",G);if(y.pendingPlayerResponse||y.pendingPlayerVars)y.pendingPlayerResponse&&y.pendingPlayerResponse===y.bootstrapPlayerResponse?(t(y.pendingPlayerResponse),y.pendingWatchNextResponse&&XOG(y,y.pendingWatchNextResponse)):(n=bPu(y.pendingPlayerResponse,y.pendingWatchNextResponse,y.pendingPlayerVars),(U=(N=y.pendingPlayerResponse)==null?void 0:(Q=N.playerConfig)==null?void 0:(I=Q.playbackStartConfig)==null?void 0:I.startPaused)?e.cueVideoByPlayerVars(n.args):e.loadVideoByPlayerVars(n.args)),
nUX(y),y.bootstrapPlayerResponse=void 0;return d.return(X)})};
var kUc=function(q){if(document.readyState==="complete"||document.readyState==="interactive")elF(q);else{var w=function(){document.removeEventListener("DOMContentLoaded",w);elF(q)};
document.addEventListener("DOMContentLoaded",w)}},elF=function(q){q.pageReadyOrDataAvailable=!0;
q.pageReadyOrDataAvailableResolver.resolve()},nUX=function(q){q.pendingPlayerResponse=void 0;
q.pendingWatchNextResponse=void 0;q.pendingPlayerVars=void 0};
_.x$.Object.defineProperties(gt.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var Er=function(q){mn.call(this,q===void 0?"document_active":q);var w=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(u){w.transition("document_disposed",{event:u})});
window.addEventListener("beforeunload",function(u){w.transition("document_disposed_preventable",{event:u})});
window.addEventListener("unload",function(u){w.transition("document_disposed",{event:u});w.hasRun=new Map})};
_.O(Er,mn);
Er.prototype.runPreventableDispose=function(q,w){if(!this.hasRun.get("document_disposed_preventable")){q(w==null?void 0:w.event);var u,y;if((w==null?0:(u=w.event)==null?0:u.defaultPrevented)||(w==null?0:(y=w.event)==null?0:y.returnValue)){w.event.returnValue||(w.event.returnValue=!0);w.event.defaultPrevented||w.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")};
Er.prototype.runDispose=function(q,w){this.hasRun.get("document_disposed")?this.transition("document_active"):(q(w==null?void 0:w.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
Er.prototype.runFlush=function(q,w){q(w==null?void 0:w.event);this.transition("document_active")};
Er.prototype.runActive=function(){};var RT=function(q){mn.call(this,q===void 0?"document_visibility_unknown":q);var w=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(u){document.visibilityState==="visible"?w.transition("document_visible",{event:u}):w.transition("document_hidden",
{event:u})});
_.T("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(u){w.transition("document_backgrounded",{event:u})}),window.addEventListener("focus",function(u){w.transition("document_foregrounded",{event:u})}))};
_.O(RT,mn);RT.prototype.runVisible=function(q,w){q(w==null?void 0:w.event);_.T("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
RT.prototype.runHidden=function(q,w){q(w==null?void 0:w.event);_.T("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
RT.prototype.runBackgrounded=function(q,w){q(w==null?void 0:w.event)};
RT.prototype.runForegrounded=function(q,w){q(w==null?void 0:w.event)};var cv=function(){this.teardownLifecycle=new Er;this.visibilityLifecycle=new RT};
cv.prototype.install=function(){var q=_.Cj.apply(0,arguments),w=this;q.forEach(function(u){w.teardownLifecycle.install(u)});
q.forEach(function(u){w.visibilityLifecycle.install(u)})};var S8=function(){cv.call(this);var q={};this.install((q.document_disposed={callback:this.abortSlisAndFlush},q));_.T("combine_ve_grafts")&&(q={},this.install((q.document_disposed={callback:this.flushInteractionLoggingAttachVes},q)));q={};this.install((q.flush_logs={callback:this.logFinalPayload},q));_.T("web_log_cfg_cee_ks")||_.mg(_.pi,HPG)};
_.O(S8,cv);var Swl=function(){S8.loggingInstance||(S8.loggingInstance=new S8);return S8.loggingInstance};
S8.prototype.logFinalPayload=function(){if(_.T("web_fp_via_jspb")){var q=new LrZ,w=_.pN();w&&_.sf(q,1,w);w=_.T("jspb_sparse_encoded_pivot")?new fn([{}]):new fn;_.km(w,380,MWX,q);aQu("finalPayload",w);_.T("web_fp_via_jspb_and_json")&&_.pn("finalPayload",{csn:_.pN()})}else _.pn("finalPayload",{csn:_.pN()})};
S8.prototype.abortSlisAndFlush=function(){ybX(bk);YP!=null&&YP.flush()};
S8.prototype.flushInteractionLoggingAttachVes=function(){dc$(_.Qz())};
var HPG=function(){var q=_.Et("CLIENT_EXPERIMENT_EVENTS");if(q){var w=b7M();q=_.P(q);for(var u=q.next();!u.done;u=q.next())u=u.value,w(u)&&_.pn("genericClientExperimentEvent",{eventType:u});delete _.Yw.CLIENT_EXPERIMENT_EVENTS}};var WKX={};
WKX.YtPlayerBehavior=[_.b7.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 q=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.Gt;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;hlz(function(){q.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.pJ(this,"pan-down"),_.T("kevlar_pinch_fullscreen")&&_.kY().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.T("kevlar_pinch_fullscreen")&&_.kY().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(q,w,u){var y=this;yo(this.useUnifiedPlayer_());if(this.mainAppPlayer_)yo(!1,"MainAppPlayer already created.");else{var e=_.T("kevlar_player_container_query_killswitch")?this.$.container:_.A(this.hostElement).querySelector("#container");this.mainAppPlayer_=new gt(this.getWebPlayerContextConfig_(),e,function(t){return _.H6(t,y.hostElement)},q,w,u);
this.mainAppPlayer_.api.then(function(t){y.player_=t;y.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&C73.resolve(t)})}},
loadVideoWithPlayerResponse:function(q,w){var u=this;if(this.useUnifiedPlayer_()){var y=this.watchNextData,e,t=(e=q.videoDetails)==null?void 0:e.videoId,X,G,n;(e=(X=this.watchNextData)==null?void 0:(G=X.currentVideoEndpoint)==null?void 0:(n=G.watchEndpoint)==null?void 0:n.videoId)&&t!=e&&(y=void 0,_.T("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(q,y,w):this.createMainAppPlayer_(q,y,w);this.mainAppPlayer_.api.then(function(){_.t7(u.hostElement,
"yt-player-updated")})}else this.update(Vzu(q,w))},
loadVideoWithPlayerVars:function(q){var w=this;this.useUnifiedPlayer_()?(_.T("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(q):this.createMainAppPlayer_(void 0,void 0,q),this.mainAppPlayer_.api.then(function(){_.t7(w.hostElement,"yt-player-updated")})):this.update({args:q})},
update:function(q){var w=this;if(this.useUnifiedPlayer_())yo(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(q);var u=Mnl(q.args);u&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==u&&Object.assign(q.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(q).then(function(y){_.t7(w.hostElement,"yt-player-updated",_.T("kevlar_player_updated_obsolete_player_killswitch")?
y:void 0)})}_.bD(new _.fv("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(q){var w=this,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,w.getPlayerPromise(),2);u=y.yieldResult;if(!u)throw Error("uh");q&&w.updatePlayerPlaylist_(q);_.HI(y)})},
acquireApi_:function(q){var w=this;if(this.useUnifiedPlayer_())yo(!1,"Invalid method call in kevlar_unified_player.");else return _.pi.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(yo(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(u){w.shouldAutoplay_(q)?u.loadVideoByPlayerVars(q.args):u.cueVideoByPlayerVars(q.args)})):this.initPlayerPromise_=this.initPlayerContainer_(q),this.initPlayerPromise_},
initPlayerContainer_:function(q){var w=this;if(this.useUnifiedPlayer_())yo(!1,"Invalid method call in kevlar_unified_player.");else return yo(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Y8(Error("vh")),yo(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.T("kevlar_player_container_query_killswitch")?this.$.container:_.A(this.hostElement).querySelector("#container"),vU6().then(function(){var u=w.initPlayer_(q);w.playerResolver_.resolve(u);
return u})},
onPlayerReady_:function(q,w){this.useUnifiedPlayer_()?yo(!1,"Invalid method call in kevlar_unified_player."):(q.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&C73.resolve(q),w(q))},
maybeCallApiMethodOnElement_:function(q,w){if(typeof q[w]==="function")return q[w]()},
maybeAdoptBootstrapPlayer_:function(){var q=window,w,u=(w=q.ytplayer)==null?void 0:w.bootstrapPlayerContainer;if((w=u==null?void 0:u.firstElementChild)&&w.classList.contains("html5-video-player")){var y,e,t=(y=q.ytplayer)==null?void 0:(e=y.bootstrapWebPlayerContextConfig)==null?void 0:e.contextId;y=this.getWebPlayerContextConfig_().contextId;if(t&&t===y){u!==this.playerContainer_&&(u=!1,this.maybeCallApiMethodOnElement_(w,"getPlayerState")===2&&(u=!0),this.playerContainer_.appendChild(w),u||this.maybeCallApiMethodOnElement_(w,
"playVideo"));var X;if((X=q.ytplayer)==null?0:X.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=q.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(q){var w=this;if(this.useUnifiedPlayer_())yo(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(u){w.maybeAdoptBootstrapPlayer_();var y=q?fbs(q):void 0;y&&y==w.bootstrapPlayerResponse_&&(q.loaded=!0);y=w.playerContainer_;var e=w.getWebPlayerContextConfig_();y=Rlz(y,q,e);w.player_=y;w.onPlayerReadyEvent_=w.onPlayerReady_.bind(w,w.player_,u);w.player_.addEventListener("onReady",w.onPlayerReadyEvent_);w.player_.addEventListener("innertubeCommand",
w.onPlayerInnerTubeCommand_.bind(w))})},
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(q){q.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(q){q.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var q=_.tG().resolve(_.KT).getCurrentPage();q&&q.getScrollTop()<=0?_.pJ(this,"pan-down"):_.pJ(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(q){q.isFullscreen()||q.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(q){q.isFullscreen()&&q.toggleFullscreen()})},
updatePlayerPlaylist_:function(q){var w=this,u,y,e;return _.F(function(t){if(t.nextAddress==1)return u=_.tG().resolve(_.kF(_.z5)),y=!!(u&&u.playlistComponent&&u.playlistComponent.loopOn),_.H(t,w.getPlayerPromise(),2);var X=e=t.yieldResult,G=X.updatePlaylist,n=[];if(_.T("kevlar_player_playlist_use_local_index")){var N,Q;var I=(Q=(N=q.localCurrentIndex)!=null?N:q.currentIndex)!=null?Q:0}else{var U;I=(U=q.currentIndex)!=null?U:0}if(q.contents)for(N=0;N<q.contents.length;N++)if((Q=q.contents[N])&&Q.playlistPanelVideoRenderer)if(R5M(Q)){Q=
Q.playlistPanelVideoRenderer;U="";Q.shortBylineText&&(U=_.lA(Q.shortBylineText));var d="";Q.title?d=_.lA(Q.title):Q.unplayableText&&(d=_.lA(Q.unplayableText));n.push({author:U,title:d,encrypted_id:Q.videoId})}else N<I&&--I;G.call(X,{index:I,list:q.playlistId?q.playlistId:"",loop:y,playlist_title:q.title,playlist_length:n.length,video:n,fetch:0,external_list:"1",title:q.title?q.title:"",playlist_author:q.ownerName?_.lA(q.ownerName):void 0});_.HI(t)})},
focusOnPlayer:function(){_.KJ(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var q=this.playerContainer_.querySelector(".html5-video-player");q&&(_.ho(_.tG().resolve(_.fT)),q.focus())}})},
preparePlayer:function(){var q=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(w){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")w();else{var u=function(){document.removeEventListener("DOMContentLoaded",u);w()};
document.addEventListener("DOMContentLoaded",u)}})).then(function(){return vU6()}).then(function(){q.initPlayerPromise_||q.preparePlayerJobId_||(q.preparePlayerJobId_=_.mg(_.pi,function(){q.initPlayerPromise_||(q.initPlayerPromise_=q.initPlayerContainer_())}))}):_.bD(new _.fv("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(q){this.useUnifiedPlayer_()?yo(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(q)||(q.args.autoplay="0")},
shouldAutoplay_:function(q){if(this.useUnifiedPlayer_())yo(!1,"Invalid method call in kevlar_unified_player.");else{var w=this.get("args.el",q);return w&&w!="detailpage"&&this.isMiniplayerActive_()||w&&(w=="sponsorshipsoffer"||w=="handlesclaiming")&&this.get("args.autoplay",q)=="0"?!1:(q=fbs(q))&&this.get("playerConfig.playbackStartConfig.startPaused",q)?!1:!0}},
isMiniplayerActive_:function(){return _.tG().resolve(_.$X).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var q=this.getPlayer();if(q){var w=q.getPlayerState();_.T("kevlar_player_check_ad_state_on_stop")&&(w=q.getPlayerState(q.getPresentingPlayerType()));w!=5&&q.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(q,w,u){u=u===void 0?!1:u;var y=this,e,t,X,G;return _.F(function(n){if(n.nextAddress==1)return w||(w=y.hostElement),e=y.useUnifiedPlayer_()?!!y.mainAppPlayer_:!!y.initPlayerPromise_,e?_.H(n,y.getPlayerPromise(),2):(u?q.insertBefore(w,q.firstChild):q.appendChild(w),n.return());t=n.yieldResult;X=t.getPlayerState(t.getPresentingPlayerType());G=!1;if(X==-1||X==1||X==3)G=!0;u?q.insertBefore(w,q.firstChild):q.appendChild(w);G&&t.playVideo();t.setSize(NaN,NaN);_.HI(n)})},
watchNextDataChanged_:function(q){var w=this;q&&(this.useUnifiedPlayer_()&&_.T("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&XOG(this.mainAppPlayer_,q):this.getPlayerPromise().then(function(u){u.updateVideoData(w.computeWatchNextPlayerVars_(q))}))},
computeWatchNextPlayerVars_:function(q){if(this.useUnifiedPlayer_()&&_.T("kevlar_unified_player_update_watch_next_killswitch"))yo(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:q}},
maybeSendAbandonmentPing_:function(){var q=this.getPlayer();q&&q.getPlayerState()!=5&&q.getPlayerState()!=0&&q.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var q=_.Et("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(q=Object.assign({},q),q.rootElementId=this.playerId);q.serializedExperimentIds&&q.serializedExperimentFlags||_.Y8(Error("wh"));return q},
hasWebPlayerContextConfig_:function(){return!!_.Et("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(q){this.useUnifiedPlayer_()?yo(!1,"Invalid method call in kevlar_unified_player."):_.H6(q,this.hostElement)},
useUnifiedPlayer_:function(){var q=_.T("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.T("kevlar_unified_player")||q}}];var s0x={};s0x.YtPlaylistPanelBehavior=[_.B.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(q){q=q.detail;if(q.actions.loop!=void 0||q.actions["yt-icons:loop"]!=void 0)this.loopOn=q.actions.loop||q.actions["yt-icons:loop"];if(q.actions.shuffle!=void 0||q.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=q.actions.shuffle||q.actions["yt-icons:shuffle"]},
setMenuData_:function(q){if(!q||!q.playlistButtons||q.isInfinite)return null;for(var w=q.playlistButtons.menuRenderer.topLevelButtons,u=w.length,y=0;y<u;y++)if(w[y].toggleButtonRenderer){var e=w[y].toggleButtonRenderer;e.defaultIcon.iconType=="LOOP"&&this.loopOn?e.isToggled=this.loopOn:e.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(e.isToggled=this.shuffleOn)}return q.playlistButtons}}];var NvZ=function(q){Pf.call(this,q,132);this.isDocument=q===document.documentElement};
_.O(NvZ,Pf);NvZ.prototype.calculateScrollDelta=function(q,w,u){var y=0;q<w?y=q<w-100?-48:-8:q>w+u&&(y=q>w+u+100?48:8);return y};
NvZ.prototype.JSC$9198_onMouseMove=function(q){this.isDocument||(q.clientX=q.event_.pageX,q.clientY=q.event_.pageY);Pf.prototype.JSC$9198_onMouseMove.call(this,q)};var j8=function(){var q=_.Na.apply(this,arguments)||this;q._noAccessors=!0;q.scrollElement=document.documentElement;q.JSC$12134_dragListGroup=null;q.dragScrollSupport=null;q.onDraggerCreated=function(w){var u=w.JSC$9194_dragger;u.scrollTarget_=q.scrollElement;w=w.draggerEl;u&&w.menuOpened&&u.setEnabled(!1)};
q.onDragStart=function(w){var u=w.draggerEl;w=w.currDragItem;var y=Object.assign({},w==null?void 0:w.data);y.trackingParams=void 0;u.data=y;u.style.position="absolute";u.style.width=(w==null?void 0:w.clientWidth)+"px";u.style.zIndex="2030";u.onDrag&&u.onDrag();_.T("web_owner_document_fallback_killswitch")?(w=document.querySelector("ytd-app"))&&_.A(w).appendChild(u):(w=_.mN(u),(y=w.querySelector("ytd-app"))?_.A(y).appendChild(u):w.body.appendChild(u));q.dragScrollSupport=new NvZ(q.scrollElement);q.dragScrollSupport.horizontalScrolling_=
!1;u=q.dragScrollSupport;u.constrainScroll_=!!u.margin_&&!1};
q.onDrop=function(w){q.handleDrop(w);q.dragScrollSupport&&(_.BX(q.dragScrollSupport),q.dragScrollSupport=null)};
q.onReorderableScroll=function(){if(q.JSC$12134_dragListGroup){var w=q.JSC$12134_dragListGroup;RKX(w,w.currDragItem_)}};
return q};
_.O(j8,_.Na);j8.prototype.detached=function(){_.Q0j(this)};
_.Q0j=function(q){q.JSC$12134_dragListGroup&&(_.NF(q.JSC$12134_dragListGroup,DUc,q.onDragStart),_.NF(q.JSC$12134_dragListGroup,v1j,q.onDragStart),q.JSC$12134_dragListGroup.dispose(),q.JSC$12134_dragListGroup=null);q.dragScrollSupport&&(_.BX(q.dragScrollSupport),q.dragScrollSupport=null);q.scrollElement.removeEventListener("scroll",q.onReorderableScroll)};
_.Ib$=function(q,w,u,y){y=y===void 0?"":y;_.Q0j(q);u&&(q.scrollElement=u);q.JSC$12134_dragListGroup=new ZN;q.JSC$12134_dragListGroup.hysteresisDistance_=2;YCX(q.JSC$12134_dragListGroup,w);q.JSC$12134_dragListGroup.draggerElClasses_=ss("dragging").split(" ");y&&g1Z(q.JSC$12134_dragListGroup,function(e){var t=e||document,X=null;t.getElementsByClassName?X=t.getElementsByClassName(y)[0]:X=DMx("*",y,e);return X||e});
_.dL(q.JSC$12134_dragListGroup,zKG,q.onDraggerCreated);_.dL(q.JSC$12134_dragListGroup,DUc,q.onDragStart);_.dL(q.JSC$12134_dragListGroup,v1j,q.onDrop);q.JSC$12134_dragListGroup.init();q.scrollElement.addEventListener("scroll",q.onReorderableScroll,{passive:!0})};
j8.prototype.handleDrop=function(){};
_.x$.Object.defineProperties(j8.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.c([_.v({value:100}),_.h("design:type",Number)],j8.prototype,"scrollMargin",void 0);j8=_.c([_.Q6()],j8);_.iPj=[j8.prototype];_.l7={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(q,w,u){var y=this.getClickTarget_(w);if(y&&this.isClickAllowed_(y)){w.preventDefault();q=(0,_.db.unsafeClone)(q);var e=this.getContainerBoundingRect();w=this.getRelativeClickXy_(w,e);this.expandEndpointUrlMacros_(q,{NX:w[0],NY:w[1],NB:y.code});u&&this.truncateWebCommendMetadataUrl_(q);_.t7(this.hostElement,"yt-navigate",{endpoint:q})}},
getClickTarget_:function(q){if(!this.clickTargetMap)return null;q=_.SQ(q)||[];q=_.P(q);for(var w=q.next();!w.done;w=q.next()){w=w.value;if(w===_.A(this.hostElement).querySelector("#menu"))break;if(w=this.clickTargetMap.get(w.id))return w}return null},
getRelativeClickXy_:function(q,w){var u=q.detail.x,y=q.detail.y;_.T("use_on_click_for_desktop_display_ad")&&q.clientX!=null&&q.clientY!=null&&(u=q.clientX,y=q.clientY);q=Math.round(u-w.left);w=Math.round(y-w.top);return q<0||w<0?[null,null]:[q,w]},
getContainerBoundingRect:function(){return _.A(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(q,w){for(var u=_.P(q.loggingUrls||[]),y=u.next();!y.done;y=u.next())y=y.value,y.baseUrl&&(y.baseUrl=Of(y.baseUrl,w));q.urlEndpoint&&q.urlEndpoint.url&&(q.urlEndpoint.url=Of(q.urlEndpoint.url,w));q.commandMetadata&&q.commandMetadata.webCommandMetadata&&q.commandMetadata.webCommandMetadata.url&&(q.commandMetadata.webCommandMetadata.url=Of(q.commandMetadata.webCommandMetadata.url,w))},
truncateWebCommendMetadataUrl_:function(q){if(q.commandMetadata&&q.commandMetadata.webCommandMetadata&&q.commandMetadata.webCommandMetadata.url){var w=q.commandMetadata.webCommandMetadata.url,u=w.indexOf("&pp=");if(u>0){var y=w.indexOf("&",u+1);q.commandMetadata.webCommandMetadata.url=y>u&&y<w.length?w.slice(0,u)+w.slice(y):w.slice(0,u)}}},
configureClickTargets:function(q,w,u){this.containerId=q;this.clickTargetMap=new Map;q=_.P(w);for(w=q.next();!w.done;w=q.next())if(w=w.value,w.location){var y=u.get(w.location);y&&(_.ef(_.A(this.hostElement).querySelector("#"+y),"yt-simple-endpoint",this.isClickAllowed_(w)),this.clickTargetMap.set(y,w))}},
isClickAllowed_:function(q){return q.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||q.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||q.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||q.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.LU={};
_.LU.YtLazyListBehavior=[_.gd.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 q=(this.constructor.generatedFrom||this).observers;q||(q=[]);q.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
q}},
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 q=this.renderElementsOutsideVisibleArea_;q&&(ffr(q,4),q.processSignal())},
deepLazyListObserver_:function(q){var w=this;if(q){var u=q.value||[];if(this.itemsPath==q.path){var y=this.nonDeferredItemCount;q=0;y>-1&&u.length>y&&(q=_.Et("REMAINING_DOVA_DEFERRED_CHUNKS",-1));q>0?(y>0&&(y=u.slice(0,y),this.setInitialItemsOnDataChanged(y)),(y=this.renderElementsOutsideVisibleArea_)?y.cancel():(y=this.renderElementsOutsideVisibleArea_=new _.RN(2,"eocs"),_.YPf(window,"scroll",function(){return w.renderDeferredElements()})),_.cd(y,function(){w.setInitialItemsOnDataChanged(u)}),_.g_("REMAINING_DOVA_DEFERRED_CHUNKS",
q-1)):this.setInitialItemsOnDataChanged(u)}else if(this.itemsPath+".splices"==q.path)this.onItemsUpdated_(u);
else y="shownItems"+q.path.substr(this.itemsPath.length),this.useSignals&&y==="shownItems.length"||this.notifyPath(y,q.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(q){q&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(q),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(q){q=q.indexSplices;for(var w=0,u=q.length;w<u;w++){var y=q[w];if(y.index<this.shownCount&&(y.removed&&this.splice("shownItems",y.index,y.removed.length),y.addedCount)){var e=y.object.slice(y.index,y.index+y.addedCount);y=["shownItems",y.index,0];y.push.apply(y,e);this.splice.apply(this,y)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(q){this.cancelPendingTasks_();q||(q=[]);this.items_=q;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&&(_.RX("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.KJ(this,this.tryRenderChunk_)))},
fillRange_:function(q,w){this.canShowMore&&this.items_&&(q=this.items_.slice(q,w),q.unshift("shownItems"),this.push.apply(this,q),this.shownCount=w,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var q=this;this.canShowMore&&_.bf(this,"renderChunk",function(){q.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.RX("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.iq(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var q=this.renderElementsOutsideVisibleArea_;q&&(q.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var q=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(q-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=q;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(q){return Math.ceil(1E3/q)},
onCanShowMoreUpdated_:function(q){this.data&&this.items_!==null&&(q?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(q){!this.shouldUseTaskManager()&&this.data&&(!q&&this.canShowMore?(_.UP4(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):q&&this.partiallyRenderedItems_.has(this.items_)&&(_.T("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var Bv;_.MR={};
Bv=function(){var q=_.Na.apply(this,arguments)||this;q.atStart=!0;q.atEnd=!0;q.startIndex=0;q.endIndex=0;q.scrollCount=0;q.initialStartIndex=0;q.disableScrollEventListener=!1;q.useFloorScrolling=!1;q.isSearch=!1;q.dragging=!1;q.dragMouseStart=0;q.dragOffsetStart=0;q.disableWheelScroll=!1;q.centerListItems=!1;q.offset=0;q.minComponentWidth=0;q.marginWidthRight=0;q.marginWidthLeft=0;q.setButtonsStateRequested=!1;q.itemsVisibilityObserver=null;q.fullyVisibleItemsIndices=[];q.JSC$12145_onWheelScroll=function(w){if(q.isSearch&&
!q.disableWheelScroll&&_.T("desktop_enable_dmpanel_wheel_scroll")){var u=w.shiftKey?Math.abs(w.deltaY)>Math.abs(w.deltaX)?w.deltaY:w.deltaX:w.deltaX;u!==0&&(w.preventDefault(),q.ytLazyListBehavior.fillRemainingListItems(),q.offset+=u,KU(q),q.reposition_())}};
q.onPointerDown=function(w){rZa(q)&&(q.dragMouseStart=w.clientX,q.dragOffsetStart=q.offset,q.dragging=!0)};
q.onPointerMove=function(w){rZa(q)&&q.dragging&&(q.ytLazyListBehavior.fillRemainingListItems(),q.offset=q.dragOffsetStart-(w.clientX-q.dragMouseStart),KU(q),q.reposition_())};
q.onPointerUp=function(){rZa(q)&&(q.dragging=!1)};
return q};
_.O(Bv,_.Na);var Una=function(q){var w=_.A(q.hostElement).querySelector("#items").children;if(!w)return 0;var u=0;q=_.P(q.fullyVisibleItemsIndices);for(var y=q.next();!y.done;y=q.next())u+=w[y.value].clientWidth;return u},rZa=function(q){return q.isSearch&&_.T("desktop_enable_dmpanel_click_drag_scroll")};
Bv.prototype.created=function(){this.cachedViewportWidth=_.Et("initialInnerWidth")||window.innerWidth;this.JSC$12145_cachedViewportHeight=_.Et("initialInnerHeight")||window.innerHeight;_.Et("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.g_("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
Bv.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.T("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();TvP(this)};
Bv.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.T("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var q;(q=this.itemsVisibilityObserver)==null||q.disconnect();this.itemsVisibilityObserver=null;var w;(w=this.itemsObserver)==null||w.disconnect()};
var TvP=function(q){var w=_.A(q.hostElement).querySelector("#scroll-container");if(w){if(!q.itemsVisibilityObserver){var u=window.getComputedStyle(w).marginRight;q.itemsVisibilityObserver=new IntersectionObserver(function(y){Cwr(q,y)},{root:w,
rootMargin:u,threshold:.98})}if(w=_.A(q.hostElement).querySelector("#items"))q.itemsObserver=new U4P(w,function(y){dnj(q,y)})}},dnj=function(q,w){OPT(q)&&(Array.from(w.addedNodes).filter(function(u){return u.nodeType===Node.ELEMENT_NODE}).forEach(function(u){q.itemsVisibilityObserver&&q.itemsVisibilityObserver.observe(u)}),Array.from(w.removedNodes).filter(function(u){return u.nodeType===Node.ELEMENT_NODE}).forEach(function(u){q.itemsVisibilityObserver&&q.itemsVisibilityObserver.unobserve(u)}))},
Cwr=function(q,w){var u=new Set(q.fullyVisibleItemsIndices);
w=_.P(w);for(var y=w.next();!y.done;y=w.next()){y=y.value;var e=y.target.parentElement;e?(e=Array.from(e.children).indexOf(y.target),y.isIntersecting?u.add(e):u.has(e)&&u.delete(e)):_.Y8(new _.fv("Parent element not found",y.target.nodeName))}q.fullyVisibleItemsIndices=Array.from(u).sort(function(t,X){return t-X});
u.size===0?_.Y8(new _.fv("No visible entries in horizontal list")):(q.startIndex=q.fullyVisibleItemsIndices[0],q.endIndex=q.fullyVisibleItemsIndices[q.fullyVisibleItemsIndices.length-1])},OPT=function(q){q.data?q=(q=q.data)&&q.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===q.itemSizeConstraint:!1:q=!1;
return q};
_.k=Bv.prototype;_.k.addScrollEventListeners=function(){var q=_.A(this.hostElement).querySelector("#scroll-container");q.style.touchAction="pan-y";q.addEventListener("wheel",this.JSC$12145_onWheelScroll);q.addEventListener("pointerdown",this.onPointerDown);q.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.k.removeScrollEventListeners=function(){var q=_.A(this.hostElement).querySelector("#scroll-container");q.removeEventListener("wheel",this.JSC$12145_onWheelScroll);q.removeEventListener("pointerdown",this.onPointerDown);q.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.k.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.KJ(this,this.setStartIndex,[this.initialStartIndex])};
_.k.reposition_=function(){var q=_.Et("HTML_DIR")=="rtl"?"":"-",w=_.A(this.hostElement).querySelector("#items");w&&(w.style.transform="translateX("+q+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.k.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.KJ(this,this.setButtonsState_))};
_.k.setButtonsState_=function(){this.setButtonsStateRequested=!1;var q=_.A(this.hostElement).querySelector("#items").firstElementChild;if(q){this.minComponentWidth||(this.minComponentWidth=oUF(this,q));q=_.A(this.hostElement).querySelector("#scroll-container").clientWidth;var w=_.A(this.hostElement).querySelector("#items").clientWidth,u=this.get(this.ytLazyListBehavior.itemsPath,this);if(u){var y=Math.round(q/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+y,u.length)-1)}this.ytLazyListBehavior.canShowMore?w+this.minComponentWidth>=this.offset+q&&(this.atEnd=!1):this.atEnd=this.offset+q>=w-20?!0:!1;this.atStart=this.offset<=20}};
_.k.setStartIndex=function(q){if(!this.minComponentWidth){var w=_.A(this.hostElement).querySelector("#items").firstElementChild;if(!w)return;this.minComponentWidth=oUF(this,w)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*q;KU(this);this.reposition_()};
_.k.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.XJ();var q=_.A(this.hostElement).querySelector("#scroll-container").clientWidth;_.T("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=oUF(this,_.A(this.hostElement).querySelector("#items").firstElementChild));q=this.useFloorScrolling?Math.floor(q/this.minComponentWidth)||1:Math.round(q/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&Vzj(this);this.offset+=OPT(this)?
Una(this):q*this.minComponentWidth;KU(this);this.reposition_();this.scrollCount++};
_.k.prevClick_=function(){var q=_.A(this.hostElement).querySelector("#scroll-container").clientWidth;q=this.useFloorScrolling?Math.floor(q/this.minComponentWidth)||1:Math.round(q/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=OPT(this)?Una(this):this.minComponentWidth*this.scrollCount-1):this.offset-=OPT(this)?Una(this):q*this.minComponentWidth;this.centerListItems&&Vzj(this);KU(this);this.reposition_()};
_.k.onIronResize_=function(){this.resizeSupportEnabled&&_.KJ(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.k.onItemsTransitionEnd_=function(q){_.he(q)===_.A(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.k.onChildElementFocus_=function(q){q=q.target.closest("#items > *");var w=_.A(this.hostElement).querySelector("#scroll-container");if(w.contains(q)){if(_.T("web_horizontal_list_behavior_focus_killswitch"))if(q.offsetLeft<this.offset)this.offset=Math.abs(q.offsetLeft)<q.clientWidth?0:q.offsetLeft;else if(q.offsetLeft+q.clientWidth>this.offset+w.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.XJ(),this.offset=q.offsetLeft+q.clientWidth-w.clientWidth;else return;else{var u=_.A(this.hostElement).querySelector("#items"),
y=_.Et("HTML_DIR")==="rtl",e=y?u.clientWidth-q.offsetLeft:q.offsetLeft;u=y?u.clientWidth-(q.offsetLeft+q.clientWidth):q.offsetLeft+q.clientWidth;var t=y?e>this.offset+w.clientWidth:e<this.offset,X=y?u<this.offset:u>this.offset+w.clientWidth,G=y?t:X;if(y?X:t)w=y?u:e,this.offset=Math.abs(w)<q.clientWidth?0:w;else if(G)this.ytLazyListBehavior.fillRemainingListItems(),_.XJ(),this.offset=(y?e:u)-w.clientWidth;else return}KU(this);this.reposition_()}};
_.k.observeShownItems_=function(){this.reset()};
_.k.checkComponentWidthResize=function(){var q=_.A(this.hostElement).querySelector("#items").firstElementChild;q&&(q=oUF(this,q),this.centerListItems||q!==this.minComponentWidth)&&(this.minComponentWidth=q,this.offset=q*this.scrollCount,this.centerListItems&&Vzj(this),KU(this),this.reposition_())};
var oUF=function(q,w){var u=window.getComputedStyle(w).marginRight;u=Math.floor(Number(u.replace("px","")));var y=window.getComputedStyle(w).marginLeft;y=Math.floor(Number(y.replace("px","")));q.centerListItems&&!q.marginWidthRight&&(q.marginWidthRight=u,q.marginWidthLeft=y);return q.resizeSupportEnabled?w.getBoundingClientRect().width+u:w.offsetWidth+u},KU=function(q){var w=_.A(q.hostElement).querySelector("#scroll-container").clientWidth,u=_.A(q.hostElement).querySelector("#items").clientWidth;
q.offset<0?q.offset=0:q.offset+w>=u&&(q.offset=u-w)},Vzj=function(q){q.offset-=(_.A(q.hostElement).querySelector("#scroll-container").clientWidth+q.marginWidthRight-q.minComponentWidth)/2-q.marginWidthLeft};
_.x$.Object.defineProperties(Bv.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var q=_.Et("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(q==-1)q=this.JSC$12145_cachedViewportHeight,q=q>1320?5:q>1020?4:q>730?3:q>430?2:1;else if(q==0)return 0;_.g_("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",q-1);q=_.Et("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(q>-1)return q;q=this.cachedViewportWidth;q=q>1600?6:q>1400?5:q>1300?4:q>1090?5:q>870?4:q>660?3:2;_.g_("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
q);return q},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.T("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
Bv.prototype.observeShownItems_=Bv.prototype.observeShownItems_;Bv.prototype.onChildElementFocus_=Bv.prototype.onChildElementFocus_;Bv.prototype.onItemsTransitionEnd_=Bv.prototype.onItemsTransitionEnd_;Bv.prototype.onIronResize_=Bv.prototype.onIronResize_;Bv.prototype.prevClick_=Bv.prototype.prevClick_;Bv.prototype.nextClick_=Bv.prototype.nextClick_;Bv.prototype.setButtonsState_=Bv.prototype.setButtonsState_;Bv.prototype.requestButtonsStateUpdate_=Bv.prototype.requestButtonsStateUpdate_;
Bv.prototype.reposition_=Bv.prototype.reposition_;Bv.prototype.reset=Bv.prototype.reset;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Bv.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.LU.YtLazyListBehavior),_.h("design:type",Object)],Bv.prototype,"ytLazyListBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Bv.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Bv.prototype,"atStart",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Bv.prototype,"atEnd",void 0);_.c([_.v(),_.h("design:type",Object)],Bv.prototype,"startIndex",void 0);_.c([_.v(),_.h("design:type",Object)],Bv.prototype,"endIndex",void 0);_.c([_.v({value:6}),_.h("design:type",Number)],Bv.prototype,"initialCount",void 0);_.c([_.v(),_.h("design:type",Object)],Bv.prototype,"scrollCount",void 0);_.c([_.v(),_.h("design:type",Object)],Bv.prototype,"initialStartIndex",void 0);
_.c([_.v(),_.h("design:type",Object)],Bv.prototype,"disableScrollEventListener",void 0);_.c([_.v(),_.h("design:type",Object)],Bv.prototype,"supportComponentResize",void 0);_.c([_.v({value:function(){var q=this;return function(){return q.prevClick_()}}}),
_.h("design:type",Function)],Bv.prototype,"boundPrevClick",void 0);_.c([_.v({value:function(){var q=this;return function(){return q.nextClick_()}}}),
_.h("design:type",Function)],Bv.prototype,"boundNextClick",void 0);_.c([_.v(),_.h("design:type",Object)],Bv.prototype,"useFloorScrolling",void 0);_.c([_.v(),_.h("design:type",Object)],Bv.prototype,"isSearch",void 0);_.c([_.v(),_.h("design:type",Object)],Bv.prototype,"dragging",void 0);_.c([_.v(),_.h("design:type",Object)],Bv.prototype,"dragMouseStart",void 0);_.c([_.v(),_.h("design:type",Object)],Bv.prototype,"dragOffsetStart",void 0);
_.c([_.v(),_.h("design:type",Object)],Bv.prototype,"disableWheelScroll",void 0);_.c([_.v(),_.h("design:type",Object)],Bv.prototype,"centerListItems",void 0);_.c([_.Gm("iron-resize"),_.nL("guideOpened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Bv.prototype,"onIronResize_",null);_.c([_.Gm("transitionend"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Bv.prototype,"onItemsTransitionEnd_",null);
_.c([_.Gm("focusin"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Bv.prototype,"onChildElementFocus_",null);_.c([_.nL("shownItems"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Bv.prototype,"observeShownItems_",null);Bv=_.c([_.Q6()],Bv);_.MR.YtdHorizontalListBehavior=[];_.MR.YtdHorizontalListBehavior.push(_.mF,_.B.YtRendererBehavior,_.LU.YtLazyListBehavior,_.D$.YtdGuideStateAwareBehavior,Bv.prototype);var lbu=["APP_STATE","PI"];var fbX=_.Sc(["about:blank"]),mna={pushState:window.history.pushState,replaceState:window.history.replaceState};var xp=function(q){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=q;this.internalPushState=q.pushState.bind(q);this.internalReplaceState=q.replaceState.bind(q)};
xp.prototype.init=function(){this.initialized=!0};
xp.prototype.pushState=function(q,w){this.initialized||this.init();this.internalPushState&&this.internalPushState(q,"",w)};
xp.prototype.replaceState=function(q,w){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(q,"",w)};
xp.prototype.getState=function(){return this.history&&this.history.state};var AZk=function(q){var w=function(){var u=q.apply(this,arguments)||this;u.boundHistoryPushState=!1;u.boundHistoryReplaceState=!1;u.debugInfo={};return u};
_.O(w,q);w.prototype.init=function(){var u=_.rg("IFRAME");_.Ja(u,_.qK(fbX));u.sandbox="allow-same-origin";u.style.display="none";this.iframe=u;document.body.appendChild(u);this.bindHistoryStateFunctions();q.prototype.init.call(this)};
w.prototype.bindHistoryStateFunctions=function(){var u=this,y=[],e;this.iframe&&((e=this.iframe.contentWindow)==null?0:e.history)&&(e=this.iframe.contentWindow.history)&&(y.push(e),Object.getPrototypeOf(e)&&y.push(Object.getPrototypeOf(e)));window.history&&y.push(window.history);e=window.history;Object.getPrototypeOf(e)&&y.push(Object.getPrototypeOf(e));y.push(mna);e=function(X){for(var G=null,n=0;n<y.length;n++){var N=y[n][X];if(typeof N==="function"){G=N.bind(window.history);u.debugInfo[X]=n;break}}return G};
if(!this.boundHistoryReplaceState){var t=e("replaceState");t&&(this.internalReplaceState=t,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(e=e("pushState"))&&(this.internalPushState=e,this.boundHistoryPushState=!0)};
return w}(xp),JZx=function(){return AZk.call(this,window.history)||this};
_.O(JZx,AZk);JZx.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var qE=function(q){this.browserHistory=q;this.initialized=!1};
qE.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
qE.prototype.pushState=function(q,w){this.initialized||this.init();this.browserHistory.pushState(q,w)};
qE.prototype.replaceState=function(q,w){this.initialized||this.init();this.browserHistory.replaceState(q,w)};
qE.prototype.handlePopstate=function(q){return q.state};_.zlx=function(q,w,u,y,e){this.endpoint=q;this.forward=w;this.historyEntry=u;this.JSC$26376_savedComponentState=y;this.legacyBorder=e===void 0?!1:e};var abj=function(q,w){this.rootData=q;this.scrollTop=w};var dZ=new _.MH("PAGE_REQUEST_TOKEN"),BuF=new _.MH("FETCH_PBJ_TOKEN");_.wu=new _.MH("EPHEMERAL_STORE_TOKEN");_.ub=function(q){this.data=Object.assign({},q);var w;(w=this.data.innertubeResponse)==null||delete w.frameworkUpdates};
_.ub.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.eW)()};
_.Pr=function(q){return Object.assign({},q.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var Dn3=function(){this.maxSize=100;this.timeToDataCache=new Map};
Dn3.prototype.get=function(q){var w=this.timeToDataCache.get(q);w&&(this.timeToDataCache.delete(q),this.timeToDataCache.set(q,w));if(w&&w.rootData&&(_.T("web_use_response_store_for_history_cache")||_.T("mweb_use_new_history_manager"))){var u=_.tG().resolve(_.wu),y=ZPF(w),e=!!y;if(y){if(y.content){var t=y$(u,y.content);e&&t?w.rootData.response=_.Pr(t):e=!1}y.player&&(t=y$(u,y.player),e&&t?w.rootData.playerResponse=_.Pr(t):e=!1);y.reelSequence&&(u=y$(u,y.reelSequence),e&&u?w.rootData.reelWatchSequenceResponse=
_.Pr(u):e=!1)}e||(this.timeToDataCache.delete(q),w=void 0)}return w};
Dn3.prototype.set=function(q,w){if(w.rootData&&(_.T("web_use_response_store_for_history_cache")||_.T("mweb_use_new_history_manager"))){var u=ZPF(w),y=Object.assign({},w.rootData);u&&(u.content&&w.rootData.response&&(pOT(this,u.content,w.rootData.response),y.response=null),u.player&&w.rootData.playerResponse&&(pOT(this,u.player,w.rootData.playerResponse),y.playerResponse=null),u.reelSequence&&w.rootData.reelWatchSequenceResponse&&(pOT(this,u.reelSequence,w.rootData.reelWatchSequenceResponse),y.reelWatchSequenceResponse=
null));w=new abj(y,w.scrollTop)}this.timeToDataCache.has(q)?this.timeToDataCache.delete(q):this.timeToDataCache.size>=this.maxSize&&(u=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(u.value));this.maxSize!==0&&this.timeToDataCache.set(q,w)};
Dn3.prototype.clear=function(){this.timeToDataCache.clear()};
var ZPF=function(q){var w=_.tG().resolve(_.kF(dZ)),u;if((u=q.rootData)==null?0:u.endpoint)return w==null?void 0:sLy(w,q.rootData.endpoint);var y;_.Y8(new _.fv("History snapshot response data does not contain endpoint",(y=q.rootData)==null?void 0:y.url));return null},pOT=function(q,w,u){if(q.maxSize>0){var y;
(q=(y=u.responseContext)==null?void 0:y.maxAgeSeconds)&&Number(q)>0&&(y=_.tG().resolve(_.wu),u=PC(u,q),y.put(w,new _.ub(u)))}};var $nG=function(q,w,u){this.endpoint=w;this.JSC$26381_savedComponentState=u===void 0?null:u;this.entryTime=q};var qvo=1;var eU=function(q){var w=function(){var u=q.apply(this,[].concat(_.Cm(_.Cj.apply(0,arguments))))||this;u.historyEntryTime=0;u.historySnapshotCache=u.createHistoryCache();return u};
_.O(w,q);w.prototype.createHistoryCache=function(){return new Dn3};
w.prototype.saveAndReplace=function(u,y,e){var t=window.location.href;var X=X===void 0?{}:X;var G=(G=this.browserHistory.getState())&&G.entryTime?G.entryTime:wKM();u=this.createNewHistoryEntry(u,X,G);this.saveSnapshot(G,y,e);this.replaceState(u,t||window.location.href)};
w.prototype.saveAndPush=function(u,y,e,t,X){X=X===void 0?{}:X;this.saveSnapshot(this.historyEntryTime,e,t);e=this.historySnapshotCache;t=this.historyEntryTime;var G=e.timeToDataCache.keys();G=_.P(G);for(var n=G.next();!n.done;n=G.next())n=n.value,n>t&&e.timeToDataCache.delete(n);y=this.createNewHistoryEntry(y,X);this.pushState(y,u)};
w.prototype.saveSnapshot=function(u,y,e){this.historySnapshotCache.set(u,new abj(y,e))};
w.prototype.createNewHistoryEntry=function(u,y,e){e=e===void 0?wKM():e;return new $nG(e,u,y)};
w.prototype.handlePopstate=function(u){var y=q.prototype.handlePopstate.call(this,u),e=null,t=null,X=!1,G=null;y&&y.entryTime&&(G=this.historySnapshotCache.get(y.entryTime)||null,X=y.entryTime>this.historyEntryTime,this.historyEntryTime=y.entryTime,e=y.endpoint,t=y.JSC$26381_savedComponentState);this.handleHistoryCacheLoad(new _.zlx(e,X,G,t),u);return y};
w.prototype.pushState=function(u,y){Number(u==null?void 0:u.entryTime)>=0&&(this.historyEntryTime=u.entryTime);q.prototype.pushState.call(this,u,y)};
w.prototype.replaceState=function(u,y){Number(u==null?void 0:u.entryTime)>=0&&(this.historyEntryTime=u.entryTime);q.prototype.replaceState.call(this,u,y)};
w.prototype.handleHistoryCacheLoad=function(){};
return w}(qE),vUZ=function(){var q=eU.call(this,new JZx)||this;
q.dispatchElement=null;q.entryIndex=0;return q};
_.O(vUZ,eU);_.k=vUZ.prototype;_.k.init=function(q){q=q===void 0?!0:q;eU.prototype.init.call(this);this.initialized||(q||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.k.handlePopstate=function(q){var w=null;q.state||(w="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return eU.prototype.handlePopstate.call(this,q);var u=new CustomEvent("yt-history-pop",{cancelable:!0});_.Pw(this.dispatchElement,"yt-history-pop",[u,{errorMsg:w}]);_.X4(this.dispatchElement,"yt-close-all-popups-action");if(!u.defaultPrevented){u=_.tG().resolve(_.KT);w=u.getCurrentData();var y=u.getCurrentPage();u=0;y?(y=_.Pw(this.dispatchElement,"yt-get-page-offset",
[y]),y.length>0&&(u=y[0])):_.Y8(new _.fv("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:w?w.page:"undefined"}));w&&(w.csn=_.pN());this.saveSnapshot(this.historyEntryTime,w,u)}return eU.prototype.handlePopstate.call(this,q)};
_.k.handleHistoryCacheLoad=function(q,w){q.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.P(_.X4(this.dispatchElement,"yt-history-will-navigate",[w])).next().value||_.Pw(this.dispatchElement,"yt-history-load",[w,q]))};
_.k.pushState=function(q,w){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var u=new _.fv("history.pushState is not a function",this.getDebugString());_.vm(u)}eU.prototype.pushState.call(this,q,w)};
_.k.replaceState=function(q,w){if(!this.browserHistory.boundHistoryReplaceState){var u=new _.fv("history.replaceState is not a function",this.getDebugString());_.vm(u)}eU.prototype.replaceState.call(this,q,w)};
_.k.saveAndPush=function(q,w,u,y,e){e=e===void 0?{}:e;u&&(u.csn=_.pN());eU.prototype.saveAndPush.call(this,q,w,u,y,e)};
_.k.getDebugString=function(){var q=[];this.initialized&&q.push("i");this.browserHistory.boundHistoryReplaceState&&q.push("bhr");this.browserHistory.boundHistoryPushState&&q.push("bhs");"replaceState"in this.browserHistory.debugInfo&&q.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&q.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&q.push("ei:"+String(this.entryIndex));return q.join(",")};
_.kz=function(q,w){q.init(!0);var u=q.browserHistory.getState();q.replaceState(u,tg(w))};
vUZ.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.tH=new _.MH("DESKTOP_HISTORY_MANAGER_TOKEN");var bPj=[10,20,30,40,50,60],PA=function(){this.currentPartitionIndex=0},YwT=function(q){HFk({mainAppWeb:_.gC(),
survivalSli:{partitionMinute:q,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},gUx=function(q){HFk({mainAppWeb:_.gC(),
survivalSli:{partitionMinute:q,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},EUj=function(q){return q.currentPartitionIndex>=0&&q.currentPartitionIndex<bPj.length?bPj[q.currentPartitionIndex]:-1},Rlc=function(q){return q.currentPartitionIndex>0&&q.currentPartitionIndex-1<bPj.length?bPj[q.currentPartitionIndex-1]:-1};
PA.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var q=Rlc(this);q>0&&gUx(q);q=EUj(this);q>0&&YwT(q);cZj(this)}};
var cZj=function(q){var w=EUj(q);if(w>0){var u=Rlc(q);u<0&&(u=0);q.intervalId=_.pi.addJob(function(){var y=Rlc(q);y>0&&gUx(y);y=EUj(q);y>0&&YwT(y);cZj(q)},3,(w-u)*6E4);
q.currentPartitionIndex+=1}else q.currentPartitionIndex=-1};var Swa=function(){this.skipNextNavigation=!1},hlc=function(q,w,u){if(!w)return!1;
if(q.skipNextNavigation)return q.skipNextNavigation=!1;if(_.C(u,_.jw))return!1;var y,e,t;if((y=_.C(u,_.Ii))==null?0:(e=y.browseEndpointContextSupportedConfigs)==null?0:(t=e.browseEndpointContextMainConfig)==null?0:t.skipConfirmation)return!1;var X;return((X=_.C(w.commandMetadata,_.wk))==null?void 0:X.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
Swa.prototype.showConfirmationDialog=function(q,w){this.navigateParams=w;this.customConfirmationCommand?_.tG().resolve(_.PG).resolveCommand(this.customConfirmationCommand):(w={openPopupAction:{popup:{confirmDialogRenderer:{title:_.jN(_.ID("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.jN(_.ID("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.jN(_.ID("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.jN(_.ID("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.lD.getInstance().triggerAction("yt-open-popup-action",w,q))};
Swa.prototype.cancelPendingNavigation=function(){var q;((q=this.navigateParams)==null?void 0:q.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var j0P=function(){},LKr=function(q,w,u,y,e,t,X){u=u===void 0?{}:u;
X=X===void 0?{}:X;var G=_.wd.instance,n,N=(n=_.C(w,_.jw))==null?void 0:n.url;return N?S_4(G,N,u,window.location.href,function(Q,I){lbj(q,Q,I,!1,!0,u,t,y)},function(){return!1}):YX(G,w,u,window.location.href,rC(w),function(Q,I){lbj(q,Q,I,!1,!0,u,t,y)},e,X)},lbj=function(q,w,u,y,e,t,X,G){if(!q.JSC$12203_chunkHandler)if(u.page==="watch"||u.page==="learning_journey_watch")if(e||y){if(_.T("kevlar_continue_playback_without_player_response")){var n;
var N=(n=_.C(G,_.LN))==null?void 0:n.videoId}q.JSC$12203_chunkHandler=new DEP(_.xo,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:y,previousVideoId:N},tempData:t},X)}else q.JSC$12203_chunkHandler=new mEX(_.xo);else u.page==="shorts"&&e&&!y?q.JSC$12203_chunkHandler=new aWx(_.xo,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:t},X):q.JSC$12203_chunkHandler=new AHj(X);q.JSC$12203_chunkHandler.processChunk({endpoint:w,data:u});return q.JSC$12203_chunkHandler.xu.promise},
Mzc=function(q,w,u,y,e){(u=_.Hzc(u))&&lbj(q,w,u,!1,!0,y,void 0,e)};var KK$=function(){this.pendingNavigationPromise=null};
_.k=KK$.prototype;_.k.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.k.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.k.addEventListener=function(){throw Error("xh");};
_.k.dispatchEvent=function(){throw Error("xh");};
_.k.removeEventListener=function(){throw Error("xh");};var Bv$=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],X8=function(){_.Q4.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];xnF(this)};
_.O(X8,_.Q4);X8.prototype.verifyUser=function(){var q=xnF(this),w=q.logout;if(!q.sessionChange)return!0;this.dispatchEvent("ytsessionchange");w&&this.dispatchEvent("ytuserinvalid");return!1};
var xnF=function(q){var w=Bv$.map(function(e){var t;return(t=_.TQ.get(e))!=null?t:""}),u=w.some(function(e,t){return q.sessionCookies&&q.sessionCookies[t]!==""&&e===""}),y=w.some(function(e,t){return q.sessionCookies&&q.sessionCookies[t]!==e});
q.sessionCookies=w;return{logout:u,sessionChange:y}};
X8.prototype.clearTimeout=function(){this.scheduledJobId&&(_.pi.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var t_l=new _.MH("POSTMESSAGE_TUNNEL_TOKEN");var ylz=["/parent_tools","/file_download","/artist_roster"],F7M=[Wcj,s7j,NR6,I3j,Q7J,Huy,iuy,rfc];var qv6=new _.MH("APP_ROOT");var F8=new _.MH("NAVIGATION_CONFIRMATION_SERVICE");var wKF="/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(" "),u6j=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
GK=function(q,w){this.pendingNavigationPromise=null;this.JSC$12221_clientRoot=q;this.historyManager=w;this.logger=null;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 j0P;this.debugString=q.is;q={"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};_.Ln(_.lD.getInstance(),q,this.JSC$12221_clientRoot)},P3Z,XKT,F7T,GF6,t_a;
_.O(GK,KK$);GK.prototype.reload=function(){_.Zu(window.location.href)};
var NyZ=function(q){q.currentEndpoint&&_.C(q.currentEndpoint,_.Tt)?q.reload():q.currentEndpoint&&q.navigate(q.currentEndpoint,!0,void 0,{disableCache:!0})};
GK.prototype.navigate=function(q,w,u,y,e,t,X,G){w=w===void 0?!1:w;u=u===void 0?{}:u;y=y===void 0?{}:y;var n=_.tG().resolve(F8),N;if(!X&&hlc(n,(N=this.currentEndpoint)!=null?N:void 0,q))return n.showConfirmationDialog(this.JSC$12221_clientRoot.parentElement,{endpoint:q,reload:w,params:u,tempData:y,requestType:e,createScreenConfig:t}),!1;var Q=_.DU();_.ZU(Q,"eocs")||Q.parkOrScheduleJob(function(){Q.processSignal("eocs")},10,"eor");
X=rC(q);n=y.autonav==="1";N=_.pN();X8.instance||(X8.instance=new X8);var I=X8.instance.verifyUser(),U;if(_.T("enable_dark_theme_only_on_shorts")){var d=document.documentElement.hasAttribute("dark"),V=_.$M(!0)==="USER_INTERFACE_THEME_DARK";if(X==="shorts"){if(!d)if(_.T("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var J;_.Zu((J=_.C(q==null?void 0:q.commandMetadata,_.wk))==null?void 0:J.url,void 0,void 0,window.top)}}else{var a;_.Zu(_.Bl((a=_.C(q==null?
void 0:q.commandMetadata,_.wk))==null?void 0:a.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.T("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!d){var b;_.Zu(_.Bl((b=_.C(q==null?void 0:q.commandMetadata,_.wk))==null?void 0:b.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(V!==d){var g;_.Zu(_.Bl((g=_.C(q==null?void 0:q.commandMetadata,_.wk))==null?void 0:g.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(X==="watch"){if(ylc(_.tG().resolve(_.$X),
q)&&(I||_.T("fix_miniplayer_navigation_killswitch")))return!1;_.T("block_all_player_prefetch_requests")||(U=WUk(_.kX(_.u1),q,n))}else{var l,S=(l=_.C(this.currentEndpoint,_.LN))==null?void 0:l.videoId;S&&_.T5.getInstance().then(function(YJ){YJ&&YJ.set("yt-miniplayer-shown-video-id",S)})}U&&(u.frags=U.missingFragments_.join(","));
J=null;var eH;a=(eH=_.C(q==null?void 0:q.commandMetadata,_.wk))==null?void 0:eH.ignoreNavigation;if(!a)if(_.T("kevlar_command_url")){var x;J=(x=_.C(q==null?void 0:q.commandMetadata,_.wk))==null?void 0:x.url}else J=_.VDf(q,u);if(J&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&J==this.lastNavigationUrl)return _.zM({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Wr(g1(),"CANCELLED")}J&&(this.lastNavigationUrl=J);M06();_.g_("IS_HOMEPAGE_COLD",
!1);_.g_("IS_RESULTS_PAGE_COLD",!1);_.g_("IS_WATCH_PAGE_COLD",!1);q.loggingUrls&&q.loggingUrls.forEach(function(YJ){YJ.baseUrl&&_.h6(YJ.baseUrl)});
_.W7H(q,t?t.layer:0)&&_.T("kevlar_flush_logs_on_away_navigation")&&_.$8();if(GFo(q))return!1;Byc(X,e);if(!J)return a||_.Y8(new _.fv("Can't construct url for endpoint",q)),_.Wr(g1(),"FAILURE"),!1;_.u6u();eH=q&&_.C(q,_.Ii)&&_.C(q,_.Ii).browseId.startsWith("UC");u=(x=_.T("enable_dark_theme_only_on_shorts")&&X==="shorts"?!1:_.vM()&&document.documentElement.hasAttribute("dark")!==_.pp())?{themeRefresh:1}:{};x&&!_.d$()&&_.$M()==="USER_INTERFACE_THEME_DARK"&&(u.theme="dark");eH=x||e4X(J)&&!eH&&!_.T("kevlar_disable_url_allowlist");
I||(eH=!0);if(eH||_.Et("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var P4;var C7=(P4=window.top)==null?void 0:P4.location.href}catch(YJ){var mu;C7=(mu=YJ)==null?void 0:mu.message}_.Y8(new _.fv("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:C7}))}q=_.T("kevlar_redirect_on_window_killswitch")?window.top:window;Du(J);_.Zu(_.Bl(J,u),void 0,void 0,q);_.Wr(g1(),"ABORTED");return!1}_.T("kevlar_early_popup_close")&&_.Pw(this.JSC$12221_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12203_chunkHandler=void 0;var Os;C7=rC((Os=this.currentEndpoint)!=null?Os:void 0);(Os=X==="shorts"&&C7==="shorts")||_.M4u();_.SZ(vQo)("nr",void 0);n&&_.zM({webInfo:{navigationReason:"an"}});q.clickTrackingParams&&(y.itct=q.clickTrackingParams,y.csn=N);qrs(y);y.endpoint=JSON.stringify(q);_.T("enable_unknown_lact_fix_on_html5")&&(_.tG().resolve(_.fT),y.lact=_.Pm());_.db.isEmpty(y)||_.xG(J,y);!_.T("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(t=Object.assign({},{layer:0},t,{parentLayer:3}));this.pendingNavigationPromise=t=LKr(this.pageFetcher,q,y,this.currentEndpoint,this.JSC$12221_isNetworkPromiseStale.bind(this),t,G);t=t.then(this.handleNavigateSuccess.bind(this,t,q,U,y),this.handleNavigateFail.bind(this,t,q));_.Hh().navigationFinishPromise=t;w={endpoint:q,pageType:X,url:tg(J),reload:!!w,noProgressBar:_.T("web_disable_page_navigation_progress")||Os};e&&(w.type=e);this.fireEvent("yt-navigate-start",w);U&&
Mzc(this.pageFetcher,q,U,y,this.currentEndpoint);return!0};
GK.prototype.JSC$12221_isNetworkPromiseStale=function(q){return q!=this.pendingNavigationPromise};
var kFX=function(q,w,u,y,e){var t=rC(w);w={endpoint:w,pageType:t};e&&(w.errorMessage=e);_.Y8(u);w.navigationDoneMs=_.D_("nd");w.navigationErrorReason=y;q.fireEvent("yt-navigate-error",w)};
GK.prototype.handleNavigateFail=function(q,w,u){var y=void 0;u instanceof _.hK&&(y=u,Oxy(u));if(this.JSC$12221_isNetworkPromiseStale(q))return _.og(y);_.Wr(g1(),"FAILURE");kFX(this,w,u,"101");return _.og(u)};
GK.prototype.handleNavigateSuccess=function(q,w,u,y,e){if(this.JSC$12221_isNetworkPromiseStale(q))return _.Hw();this.pendingNavigationPromise=null;if(!e)return w=new _.fv("Missing data in response for navigation endpoint",w),_.og(w);if(e.reload)return window.location.reload(!0),_.Hw();u&&(q={},_.db.extend(q,_.Hzc(u),e),e=q);var t,X;u=(t=e)==null?void 0:(X=t.timing)==null?void 0:X.responseStart;u!=null&&_.D_("srt",u);_.D_("pdc");var G,n;t=(G=e)==null?void 0:(n=G.timing)==null?void 0:n.info;t!=null&&
(G=_.SZ(_.EQf)(t),_.zM(G));_.Wr(g1(),"SUCCESS");t_a(this,w,e,1,y);return _.Hw()};
var e4X=function(q){var w=q;_.T("kevlar_no_redirect_to_classic_2_ks")||(w=(new _.M4(q)).getPath());if(w==="/"||w==="/red")return!1;var u=!0;wKF.forEach(function(y){q.indexOf(y)===0&&(u=!1)});
u6j.forEach(function(y){var e=y.url;_.T(y.expFlag)&&q.indexOf(e)===0&&(u=!1)});
return u};
GK.prototype.publishPageData=function(q){this.fireEvent("yt-page-data-fetched",{pageData:q})};
P3Z=function(q,w,u,y,e,t){var X=null;w.page!=="watch"||y?w.filler||_.Pw(q.JSC$12221_clientRoot,"yt-stop-old-player",[w]):X=lbj(q.pageFetcher,e,w,u,!1,t,void 0,q.currentEndpoint);if(X)return X.then(q.publishPageData.bind(q,w));q.publishPageData(w);return _.Hw()};
XKT=function(q,w,u){var y=null;if(!u)return y=new _.fv("Empty data",q.debugString,w);var e=u.response;if(!e)return y;var t={endpointType:rC(w)||"unknown"};e.responseContext?(e=e.responseContext.errors)&&(y=new _.fv("Errors in response context",q.debugString,w,e,t)):y=e.error||e.errorMetadata?new _.fv("Errors in response",q.debugString,w,e.error,e.errorMetadata,t):new _.fv("responseContext missing",q.debugString,w,Object.keys(e).sort().join(","),t);var X,G,n,N;if(q=u==null?void 0:(X=u.response)==null?
void 0:(G=X.responseContext)==null?void 0:(n=G.webResponseContextExtensionData)==null?void 0:(N=n.webResponseContextDebugData)==null?void 0:N.debugErrorMessages)for(X=0;X<q.length;X++);return y};
F7T=function(q){var w,u,y,e;return q==null?void 0:(w=q.response)==null?void 0:(u=w.responseContext)==null?void 0:(y=u.errors)==null?void 0:(e=y.error)==null?void 0:e["0"]};
GF6=function(q,w){var u;if(u=w.url&&!w.url.startsWith("/clip"))u=w.url,u=!_.T("webfe_parse_debug_param_in_resolveurl_service")&&q.searchDebugUrlMatcher.test(u)||z$u(u)?!0:!1;if(u)z$u(w.url)&&_.K4(window.location.href).themeRefresh?(w=_.qU(w.url,"themeRefresh"),_.kz(q.historyManager,w)):w.url&&!Bv7(w.url)&&_.kz(q.historyManager,w.url);else if(w.endpoint){var y,e,t;(u=(y=w.endpoint)==null?void 0:(e=y.commandMetadata)==null?void 0:(t=e.webCommandMetadata)==null?void 0:t.url)&&!Bv7(u)&&_.kz(q.historyManager,
u);u&&w.url&&u!=w.url&&!w.url.match("playnext=1")&&new _.fv("Response url mismatch in response data",q.debugString,u,w.url)}};
_.nIr=function(q,w,u,y,e,t,X,G){t=t===void 0?!1:t;var n=_.tG().resolve(F8),N;if(!G&&hlc(n,(N=q.currentEndpoint)!=null?N:void 0,w))return n.showConfirmationDialog(q.JSC$12221_clientRoot.parentElement,{endpoint:w,data:u,navigationType:y,tempData:e,isMiniplayer:t,isForwardHistoryNavigation:X==null?void 0:X.forward}),_.Hw();q.pageFetcher.JSC$12203_chunkHandler=void 0;return t_a(q,w,u,y,e,t)};
t_a=function(q,w,u,y,e,t){t=t===void 0?!1:t;q.isMiniplayerExpansion=t;var X=y===2;q.currentEndpoint=w;q.numNavigations++;q.numNavigations&&(gEs.navigationCount=q.numNavigations);_.g_("NUM_NAV",q.numNavigations);var G=XKT(q,w,u);if(G)return kFX(q,w,G,"102",F7T(u)),_.og(G);var n,N,Q,I;G=u.rootVe||(u==null?void 0:(n=u.response)==null?void 0:(N=n.responseContext)==null?void 0:(Q=N.webResponseContextExtensionData)==null?void 0:(I=Q.ytConfigData)==null?void 0:I.rootVisualElementType);!X&&u&&GF6(q,u);var U,
d;n=u==null?void 0:(U=u.response)==null?void 0:(d=U.responseContext)==null?void 0:d.maxAgeSeconds;if(!X&&!isNaN(n)){var V;_.T("kevlar_use_response_ttl_to_invalidate_cache")?V=(0,_.eW)()+1E3*n:_.T("kevlar_always_invalidate_cache")&&(V=0);isNaN(V)||(u.expirationTime=V)}_.T("html5_enable_ssap_entity_id")&&X&&u.playerResponse&&(u.playerResponse.cacheMetadata={isCacheHit:!0});_.kX(_.u1).prefetchCache_.clear();X||u.page!=="watch"||u.type!=="reduced"&&y!==1?y=P3Z(q,u,X,!!t,w,e):(q.publishPageData(u),y=_.Hw());
e=y.then(function(){var J=rC(w);J={endpoint:w,pageType:J,fromHistory:X,response:u};J.navigationDoneMs=_.D_("nd");q.fireEvent("yt-navigate-finish",J)});
u.csn&&G&&u.clientSideGrafts&&y.then(q.attachClientSideGrafts.bind(q,u,_.ZB()));return e};
_.k=GK.prototype;_.k.attachClientSideGrafts=function(q,w){q.clientSideGrafts&&w&&q.clientSideGrafts.forEach(function(u){if(w&&u){var y=_.Tj(u);_.T("combine_ve_grafts")?_.Qz().graftServerVe(u,w):_.EC(q.csn,w,y)}})};
_.k.handleSignalActionHistoryBack=function(){window.history.back()};
_.k.handleSignalActionCloseWindow=function(){window.close()};
_.k.handleSignalActionReloadPage=function(){this.reload()};
_.k.handleSignalActionSoftReloadPage=function(){NyZ(this)};
_.k.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.k.fireEvent=function(q,w){q=new CustomEvent(q,{bubbles:!0,cancelable:!1,composed:!0,detail:w});this.dispatchEvent(q)};
_.k.addEventListener=function(q,w){this.JSC$12221_clientRoot.addEventListener(q,w)};
_.k.dispatchEvent=function(q){return this.JSC$12221_clientRoot.dispatchEvent(q)};
_.k.removeEventListener=function(q,w){this.JSC$12221_clientRoot.removeEventListener(q,w)};
GK[Ld]=[qv6,_.tH];_.wqc=new Uh("browse","h8y2qb");_.uYc=new Uh("search","JzFVk");_.y4J=new Uh("shorts","xwEKAe");_.eyM=new Uh("watchFixie","nmfa2d");_.kAj=new Uh("watchFlexy","CF909");_.tSJ=new Uh("watchGrid","Tm0L3c");_.P07=new Uh("watchLearningJourney","L3n37");var HRx;var nQ=function(){return _.Y.apply(this,arguments)||this};
_.O(nQ,_.Y);_.x$.Object.defineProperties(nQ,{template:{configurable:!0,enumerable:!0,get:function(){if(HRx===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);HRx=q}q=HRx;return q}}});
_.c([_.D(WKX.YtPlayerBehavior),_.h("design:type",Object)],nQ.prototype,"ytPlayerBehavior",void 0);nQ=_.c([_.E({is:"ytd-player"})],nQ);var W7r;var skX;var NXa;var HA=function(){var q=_.Y.apply(this,arguments)||this;q.forceModernIconButton=!1;q.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return q};
_.O(HA,_.Y);HA.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]]"}}}}}};
HA.prototype.handleAccountLinkingStateChangedCommand=function(q){if(q=_.C(q,At3)){var w,u=(w=this.data)==null?void 0:w.providerKey;w=q.providerKey;u&&w&&u.id===w.id&&u.subject===w.subject&&(q=q.linked,q!==void 0&&(this.set("data.linked",q),this.notifyPath("data.linked"),_.T("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(q)))}};
HA.prototype.setPlayerAccountLinkState=function(q){var w=new AQz;mj7(w,JQ6(new zoH,q));var u=_.xo();u&&u.getPlayerPromise().then(function(y){y.setAccountLinkState(_.wV(w.JSC$9971_serializeBinary(),4));y.updateAccountLinkingConfig(q)})};
HA.prototype.handleShowAccountLinkDialog=function(){var q=this.get("button.buttonRenderer.command");q&&_.sC([q],this.hostElement)};
_.x$.Object.defineProperties(HA.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}}}});
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],HA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],HA.prototype,"ytRendererBehavior",void 0);_.c([_.D([_.hm.YtActionHandlerBehavior]),_.h("design:type",Object)],HA.prototype,"actionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],HA.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],HA.prototype,"overrides",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],HA.prototype,"forceModernIconButton",void 0);_.c([_.v({value:"bottom"}),_.h("design:type",String)],HA.prototype,"buttonTooltipPosition",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],HA.prototype,"forceIconButton",void 0);_.c([_.v(),_.h("design:type",Boolean)],HA.prototype,"disableTextTransform",void 0);
_.c([_.Z("data","data.linked","data.isWarning"),_.h("design:type",Object),_.h("design:paramtypes",[])],HA.prototype,"button",null);HA=_.c([_.E({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],HA);
_.R(HA,"ytd-account-link-button-renderer",function(){if(NXa!==void 0)return NXa;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return NXa=q},{mode:1});var QkG;var IJr=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],WA=function(){return _.Y.apply(this,arguments)||this};
_.O(WA,_.Y);WA.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
WA.prototype.updateButtonActiveState=function(){var q=this,w=!!IJr.find(function(u){return q.currentState===u});
this.button&&(this.button.isPressed=w)};
_.x$.Object.defineProperties(WA.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.playlistLoopStateEntity)==null?void 0:q.state)||((w=this.data)==null?void 0:w.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var q=void 0,w;if(this.currentState&&((w=this.data)==null?0:w.states)){w=_.P(this.data.states);for(var u=w.next();!u.done;u=w.next()){u=_.C(u.value,_.Lwk);var y=void 0;if(((y=u)==null?void 0:y.state)===this.currentState){q=u;break}}}return q}}});
WA.prototype.updateButtonActiveState=WA.prototype.updateButtonActiveState;_.c([_.D(_.fU),_.h("design:type",Object)],WA.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],WA.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],WA.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.UeM}),_.h("design:type",Object)],WA.prototype,"playlistLoopStateEntity",void 0);_.c([_.v(),_.h("design:type",Object)],WA.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],WA.prototype,"forceIconOnly",void 0);_.c([_.Wj("ytd-button-renderer"),_.h("design:type",_.Eh)],WA.prototype,"button",void 0);
_.c([_.Z("data","playlistLoopStateEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],WA.prototype,"currentState",null);_.c([_.nL("currentButtonStateRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WA.prototype,"updateButtonActiveState",null);_.c([_.Z("currentState"),_.h("design:type",Object),_.h("design:paramtypes",[])],WA.prototype,"currentButtonStateRenderer",null);
WA=_.c([_.E({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],WA);
_.R(WA,"ytd-playlist-loop-button-renderer",function(){if(QkG!==void 0)return QkG;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return QkG=q},
{mode:1});var iRk;var rlT=_.ID("DOWNLOAD",{},"Download"),UeF=_.ID("DOWNLOADING",{},"Downloading"),TX3=_.ID("DOWNLOADED",{},"Downloaded"),C3x=_.ID("RETRY",{},"Retry"),si=function(){var q=_.Y.apply(this,arguments)||this;q.forceIconButton=!1;q.forceIconOnly=!1;q.overrides=!1;q.buttonTooltipPosition=!1;q.styleActionButton=!1;q.disableTextTransform=!1;q.downloadProgress=0;q.isDownloadComplete=!1;q.isHidden=!0;q.transferState="TRANSFER_STATE_UNKNOWN";q.isVideoDeletedByUser=!1;q.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return q};
_.O(si,_.Y);_.k=si.prototype;_.k.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.k.dataChanged=function(){var q;(q=this.data)!=null&&q.text||(q=_.pa(_.Mt().getState(),this.videoId),this.updateButtonState(q))};
_.k.computeVideoId=function(q){return q};
_.k.showHideButton=function(){this.updateButtonVisibility()};
_.k.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};
_.k.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.k.updateButtonState=function(q){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==UeF||!_.Ta(q))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(q){case "TRANSFER_STATE_UNKNOWN":q=rlT;var w="OFFLINE_DOWNLOAD";var u="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":q=C3x;w="OFFLINE_DOWNLOAD";u="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":q=TX3;w="OFFLINE_PIN";u="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":q=
UeF;w="OFFLINE_DOWNLOADING_ZERO";u="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":q=C3x;w="OFFLINE_DOWNLOAD";u="ACTION_RETRY";break;default:q=rlT,w="OFFLINE_DOWNLOAD",u="ACTION_ADD"}this.isVideoDeletedByUser&&(q=rlT,w="OFFLINE_DOWNLOAD",u="ACTION_ADD");var y=Object.assign({},this.data);y.text=_.jN(q);y.tooltip=q;y.icon={iconType:w};y.size="SIZE_DEFAULT";y.style="STYLE_DEFAULT";_.C(y.command,_.WC)&&(_.C(y.command,_.WC).action=u);this.set("data",y)}};
_.k.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var q="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?q="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?q="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?q="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?q="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?q="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(q="OFFLINE_PIN",this.isDownloadComplete=!0);var w;q!==((w=this.data.icon)==null?void 0:w.iconType)&&(w=Object.assign({},this.data),w.text=_.jN(UeF),w.tooltip=UeF,w.icon={iconType:q},_.C(w.command,_.WC)&&(_.C(w.command,_.WC).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",w))}};
si.prototype.updateProgress=si.prototype.updateProgress;si.prototype.onTransferStateChanged=si.prototype.onTransferStateChanged;si.prototype.showHideButton=si.prototype.showHideButton;si.prototype.dataChanged=si.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],si.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],si.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],si.prototype,"forceIconButton",void 0);
_.c([_.v(),_.h("design:type",Object)],si.prototype,"forceIconOnly",void 0);_.c([_.v(),_.h("design:type",Object)],si.prototype,"overrides",void 0);_.c([_.v(),_.h("design:type",Object)],si.prototype,"buttonTooltipPosition",void 0);_.c([_.v(),_.h("design:type",Object)],si.prototype,"styleActionButton",void 0);_.c([_.v(),_.h("design:type",Object)],si.prototype,"disableTextTransform",void 0);
_.c([_.v({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.h("design:type",String)],si.prototype,"videoId",void 0);_.c([_.v(),_.h("design:type",Object)],si.prototype,"data",void 0);_.c([_.v({selector:vQ,selectorArgs:["videoId"]}),_.h("design:type",Object)],si.prototype,"downloadProgress",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],si.prototype,"isDownloadComplete",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],si.prototype,"isHidden",void 0);_.c([_.v({selector:_.pa,selectorArgs:["videoId"]}),_.h("design:type",String)],si.prototype,"transferState",void 0);_.c([_.v({selector:_.JOs,selectorArgs:["videoId"]}),_.h("design:type",Object)],si.prototype,"isVideoDeletedByUser",void 0);_.c([_.v({selector:oPM,selectorArgs:["videoId"]}),_.h("design:type",Object)],si.prototype,"offlineabilityState",void 0);
_.c([_.v({value:!0}),_.h("design:type",Boolean)],si.prototype,"showTooltips",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],si.prototype,"sendCommandWhenDisabled",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],si.prototype,"disabled",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],si.prototype,"dataChanged",null);
_.c([_.I9("offlineabilityState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],si.prototype,"showHideButton",null);_.c([_.I9("transferState","isVideoDeletedByUser"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],si.prototype,"onTransferStateChanged",null);_.c([_.I9("downloadProgress"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],si.prototype,"updateProgress",null);
si=_.c([_.E({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],si);
_.R(si,"ytd-download-button-renderer",function(){if(iRk!==void 0)return iRk;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return iRk=q},{mode:2});var deP;var ORr,oIP=function(){if(ORr!==void 0)return ORr;var q=document.createElement("template");_.f(q,'\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 ORr=q};var V_T=_.T("web_button_rework")&&_.RX("BUTTON_REWORK")||_.T("web_button_rework_with_live"),fJr=_.Fc("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,NE=function(){var q=_.Y.apply(this,arguments)||this;q.isPressed=!1;q.forceIconButton=!1;q.forceIconOnly=!1;q.forceModernIconButton=!1;q.alignByText=!1;q.isShorts=!1;q.animatedText=!1;q.shouldAnimate=!1;q.JSC$12259_browserSupportsAnimation=_.T("web_supports_animations_api");q.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};q.onTap=function(){var w;if((w=q.data)==null||!w.defaultNavigationEndpoint){var u;w=!((u=q.data)==null?0:u.isToggled);var y;if((y=q.data)==null||!y.preventAutoToggle){q.shouldAnimate=!1;q.disableTextUpdateJobId&&_.pi.cancelJob(q.disableTextUpdateJobId);q.disableTextUpdateJobId=_.pi.addLowPriorityJob(function(){q.disableTextUpdateJobId=void 0},fJr);
var e;q.set("data.isToggled",!((e=q.data)==null?0:e.isToggled));u=q.getInnertubeIcon();y={toggled:w,actions:{}};u&&(y.actions[u.toLowerCase()]=w);_.t7(q.hostElement,"yt-toggle-button",y)}}};
return q};
_.O(NE,_.Y);_.k=NE.prototype;_.k.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.pi.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.k.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.k.toggle=function(q){var w;this.set("data.isToggled",q!==void 0?q:!((w=this.data)==null?0:w.isToggled))};
_.k.handleUpdateToggleButtonStateCommand=function(q){if(this.data){q=_.C(q,YLF);var w,u,y,e=(w=this.data)==null?void 0:(u=w.toggleButtonSupportedData)==null?void 0:(y=u.toggleButtonIdData)==null?void 0:y.id;e&&q&&e===(q==null?void 0:q.buttonId)&&this.set("data.isToggled",q.toggled)}};
_.k.handleUpdateToggleButtonTextAction=function(q){if(this.data){q=_.C(q,rOa);var w,u,y,e=(w=this.data)==null?void 0:(u=w.toggleButtonSupportedData)==null?void 0:(y=u.toggleButtonIdData)==null?void 0:y.id;e&&q&&e===(q==null?void 0:q.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=q.defaultNumericalValue,this.set("data.defaultText",q.defaultText),this.set("data.toggledText",q.toggledText),this.shouldAnimate=!1)}};
_.k.getInnertubeIcon=function(){var q=this.data;if(q){var w,u,y=((w=q.defaultIcon)==null?0:w.iconType)?(u=q.defaultIcon)==null?void 0:u.iconType:null,e,t;w=((e=q.toggledIcon)==null?0:e.iconType)?(t=q.toggledIcon)==null?void 0:t.iconType:y;return q.isToggled?w:y}};
_.k.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.x$.Object.defineProperties(NE.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var q={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$12259_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var w=q.renderer;var u=q.element;var y=q.toggled;var e=q.onTapCallback;var t=q.commandClientArgs;var X=q.overrides;var G=q.forceIcon;var n=q.forceModernIconButton;var N=q.forceDisabled;var Q=q.useAnimatedText;var I=q.animatedTextProps;q=ORH(w,y);G=!w.defaultIcon||!G&&w.defaultText?w.defaultIcon?"leading":void 0:n?"icon-only":"icon-only-40";G==="icon-only-40"&&(q.type="text");var U;n=Object;var d=n.assign,V;a:switch((V=
w.style)==null?void 0:V.styleType){case "STYLE_COMPACT_GRAY":V={size:"S"};break a;default:V={size:"M"}}var J=!!y;var a=(a=y&&w.toggledText||w.defaultText)?_.JB(a):void 0;Q?(Q=_.lA(y&&w.toggledText||w.defaultText))&&I&&!isNaN(Number(I.numberValue))?(I.numberText=Q,y&&(I.numberValue+=1),Q=I):Q=void 0:Q=void 0;var b,g,l,S;var eH=(I=((g=y?w.toggledAccessibilityData||((eH=w.toggledText)==null?void 0:eH.accessibility):w.accessibilityData||((b=w.defaultText)==null?void 0:b.accessibility))==null?void 0:(l=
g.accessibilityData)==null?void 0:l.label)||((S=w.accessibility)==null?void 0:S.label))?I:_.lA(y&&w.toggledText||w.defaultText);N=N===void 0?w.isDisabled:N;u=dec(w,y,e,u,t);y=C3j(w,y);y!=null&&y.length?(y=_.$B({innertubeCommand:r0J(y),forceNewState:!0}),y=v6(y)?y:void 0):y=void 0;w=d.call(n,{},q,V,{iconPosition:G},X,{focused:!1,toggled:J,toggleable:!0,formattedButtonText:a,animatedTextProps:Q,accessibilityLabel:eH,disabled:N,onTap:u,aTagConfig:y},Yoo((U=w.colorData)==null?void 0:U.basicColorPaletteData));
w.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(w.type="filled");return w}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var q=this.getInnertubeIcon();if(q)return _.Fy(q)}}});
NE.prototype.resetAnimation=NE.prototype.resetAnimation;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],NE.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],NE.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],NE.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],NE.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",Object)],NE.prototype,"isPressed",void 0);_.c([_.v(),_.h("design:type",Object)],NE.prototype,"forceIconButton",void 0);_.c([_.v(),_.h("design:type",Object)],NE.prototype,"forceIconOnly",void 0);_.c([_.v(),_.h("design:type",Object)],NE.prototype,"forceModernIconButton",void 0);_.c([_.v(),_.h("design:type",Object)],NE.prototype,"alignByText",void 0);_.c([_.v(),_.h("design:type",Object)],NE.prototype,"overrides",void 0);
_.c([_.v(),_.h("design:type",Boolean)],NE.prototype,"disabled",void 0);_.c([_.v(),_.h("design:type",Object)],NE.prototype,"isShorts",void 0);_.c([_.v(),_.h("design:type",Object)],NE.prototype,"buttonTooltipPosition",void 0);_.c([_.v(),_.h("design:type",Object)],NE.prototype,"animatedText",void 0);_.c([_.v(),_.h("design:type",String)],NE.prototype,"textNumberValue",void 0);_.c([_.v({computed:"computeTooltip(data, data.isToggled)"}),_.h("design:type",Object)],NE.prototype,"tooltip",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NE.prototype,"resetAnimation",null);_.c([_.Z("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.h("design:type",Object),_.h("design:paramtypes",[])],NE.prototype,"computedButtonShape",null);_.c([_.Z("data.*"),_.h("design:type",Object),_.h("design:paramtypes",[])],NE.prototype,"computedIcon",null);
NE=_.c([_.E({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],NE);V_T&&_.R(NE,"ytd-toggle-button-renderer",oIP,{mode:_.kB("kevlar_poly_si_batch_j081")?1:2});var zn=_.LL(function(q){function w(N){var Q;return _.F(function(I){if(I.nextAddress==1)return(Q=!V_J(N,G())||!G().enabled)?I.jumpTo(2):_.H(I,z4s(),3);I.nextAddress!=2&&(Q=I.yieldResult);if(Q)return I.return();u();setTimeout(function(){X(!1)},1500);
_.HI(I)})}
function u(){setTimeout(function(){X(!0);var N;(N=y.lottieEl)==null||N.goToAndPlay(0)},150)}
var y=_.nr(),e=_.P(_.r4(!1,void 0,"JJXzp")),t=e.next().value,X=e.next().value,G=_.jf(q.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.p4(function(){var N,Q;((N=q.settings)==null?void 0:(Q=N.call(q))==null?void 0:Q.uniqueId)==="this is not intended behavior"&&_.Y8(new _.fv("Smartimation Settings is undefined"))});
_.DG(function(){G().experimentEnabled&&(G().enabled?fJH(w):(X(!1),meH(w)),_.ZG(function(){meH(w)}))});
_.DG(function(){G().timings.join("");G().experimentEnabled&&(Al4(G()),_.ZG(function(){Jlo(G())}))});
var n=_.oR(function(){var N=y,Q=G().uniqueId+"-border",I,U;var d="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((U=(I=_.tG().resolve(_.kF(_.Rg)))==null?void 0:I())!=null&&U?"dark":"light")+"_v2.json";return{animationRef:N,animationConfig:{name:Q,autoplay:!1,loop:!1,path:d}}},void 0,"tgykab");
e={};return _.W("yt-smartimation",{class:_.HR(q.className,"smartimation",(e["smartimation--experiment-enabled"]=function(){return G().experimentEnabled},e["smartimation--active-border"]=t,e["smartimation--enable-masking"]=aJs(),e))},_.W(_.r,{cond:function(){return G().experimentEnabled},
then:function(){return _.W("div",{class:"smartimation__border"},_.W(_.WR,{className:"smartimation__border-gradient",data:n,animationName:function(){return n().animationConfig.name}}))}}),_.W("div",{class:"smartimation__content"},q.children))},"x");
zn.idomCompat=!0;_.q9(zn,"yt-smartimation",{props:{className:_.pK,settings:_.pK}});var Q$=function(){var q=_.Y.apply(this,arguments)||this;q.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};q.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};q.shouldEnableSmartimation=!1;return q};
_.O(Q$,_.Y);Q$.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Q$.prototype.onDataChanged=function(){var q,w;this.shouldEnableSmartimation=(((q=this.data)==null?void 0:(w=q.timedAnimationData)==null?void 0:w.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
Q$.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var q=_.C(this.data.likeButton,_.DE),w=_.C(this.data.dislikeButton,_.DE);return!!((q==null?0:q.isToggled)||(w==null?0:w.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]]"}}}}}};
_.x$.Object.defineProperties(Q$.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var q,w,u=((q=this.data)==null?void 0:(w=q.timedAnimationData)==null?void 0:w.animationTiming)||[];return{uniqueId:"like-dislike",timings:u,enabled:this.shouldEnableSmartimation,experimentEnabled:u.length>0}}}});
Q$.prototype.onDataChanged=Q$.prototype.onDataChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Q$.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Q$.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Q$.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],Q$.prototype,"likeButtonOverride",void 0);_.c([_.v(),_.h("design:type",Object)],Q$.prototype,"dislikeButtonOverride",void 0);
_.c([_.Z("shouldEnableSmartimation"),_.h("design:type",Object),_.h("design:paramtypes",[])],Q$.prototype,"smartimationSettings",null);_.c([_.nL("data"),_.Gm("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Q$.prototype,"onDataChanged",null);Q$=_.c([_.E({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],Q$);
_.R(Q$,"ytd-segmented-like-dislike-button-renderer",function(){if(deP!==void 0)return deP;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return deP=q},{mode:1});var mer;var Alk;(Alk=document.body)==null||Alk.setAttribute("rounded-container","");var Jl6={};Jl6.YtToggleButtonBehavior=[_.hm.YtActionHandlerBehavior,PY.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 q=this.data.isToggled;if(!this.isModal_(q)){if(!this.data.preventAutoToggle){this.toggle();var w={toggled:this.data.isToggled,actions:{}};w.actions[this.buttonIcon]=this.data.isToggled;_.t7(this.hostElement,"yt-toggle-button",w)}w=this.data.defaultServiceEndpoint||null;var u=this.data.toggledServiceEndpoint||null;if(w&&u||w&&this.data.preventAutoToggle)q=q?u:w,w=this.disableCommandHandlerOverride,_.T("killswitch_toggle_button_behavior_resolve_command")||w?_.GM(this.hostElement,
[q]):_.H6(q,this.hostElement),_.t7(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:q})}},
stateChanged_:function(){var q=this.data;if(q){var w=q.isToggled;this._setEndpoint(this.computeEndpoint_(q));this._setServiceEndpoint(this.computeServiceEndpoint_(q));this._setButtonIcon(this.computeButtonIcon_(q,w));this._setButtonText(this.computeButtonText_(q,w));this._setButtonAccessibility(this.computeAccessibility_(q,w));this._setButtonTooltip(this.computeTooltip_(q,w));this._setButtonClass(this.computeButtonClass_(q,w));this._setIconPositionType(this.computeIconPositionType_(q));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=w):this.elements_.button.setAttribute("aria-pressed",w));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=w)}},
shouldSetIconActiveState_:function(){return _.T("kevlar_system_icons")},
toggle:function(q){this.set("data.isToggled",q!==void 0?q:!this.data.isToggled);_.T("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(q){if(q){var w,u;return!!((w=this.data)==null?0:(u=w.toggledServiceEndpoint)==null?0:u.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(q){return q&&q.defaultNavigationEndpoint||null},
computeButtonIcon_:function(q,w){var u=q&&q.defaultIcon?_.Fy(q.defaultIcon.iconType):null;q=q&&q.toggledIcon?_.Fy(q.toggledIcon.iconType):u;return w?q:u},
handleUpdateToggleButtonStateCommand_:function(q){q=q.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==q.buttonId&&this.toggle(q.toggled)},
computeButtonText_:function(q,w){return q?w&&q.toggledText||q.defaultText||null:null},
computeAccessibility_:function(q,w){return q?(w?this.get("toggledAccessibilityData.accessibilityData",q):this.get("accessibilityData.accessibilityData",q))||q.accessibility||null:null},
computeTooltip_:function(q,w){return q?w&&q.toggledTooltip||q.defaultTooltip||null:null},
computeButtonClass_:function(q,w){if(!q)return"";var u="",y=q.toggledStyle||q.style;if(w=w?y:q.style){w.styleType&&(w=w.styleType);try{u+=w.toLowerCase().replace(/_/g,"-")+" "}catch(e){_.gs(e,w,typeof w),_.Y8(e)}}if(q=q.size){q.sizeType&&(q=q.sizeType);try{u+=q.toLowerCase().replace(/_/g,"-")+" "}catch(e){_.gs(e,q,typeof q),_.Y8(e)}}return u.trim()},
computeIconPositionType_:function(q){return q&&q.iconPosition||null},
computeServiceEndpoint_:function(q){var w=q&&q.serviceEndpoint,u=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return w?w:u&&q.command?q.command:null},
handleUpdateToggleButtonTextAction_:function(q){q=q.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==q.buttonId&&(this.set("data.defaultText",q.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",q.toggledText),this.notifyPath("data.toggledText"))}}];_.JE("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var z4X=_.T("web_button_rework")&&_.RX("BUTTON_REWORK")||_.T("web_button_rework_with_live"),Ip=function(){var q=_.Y.apply(this,arguments)||this;q.systemIcons=_.T("kevlar_system_icons");q.roundedContainer=!0;return q};
_.O(Ip,_.Y);Ip.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Ip.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var q=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var w={toggled:!!this.data.isToggled,actions:{}};w.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var u,y;w.actions.playlistId=(u=this.data.defaultServiceEndpoint)==null?void 0:(y=u.playlistEditEndpoint)==null?void 0:y.playlistId;_.t7(this.hostElement,"yt-toggle-button",w)}(q=q?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(q)}};
Ip.prototype.onYtNavigate=function(q){var w=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(q.detail.endpoint);w&&(q.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(w))};
_.x$.Object.defineProperties(Ip,{template:{configurable:!0,enumerable:!0,get:function(){if(mer===void 0){var q=document.createElement("template");_.f(q,"\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");q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);mer=q}q=mer;return q}}});
Ip.prototype.onYtNavigate=Ip.prototype.onYtNavigate;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Ip.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ip.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.YE),_.h("design:type",Object)],Ip.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.D(Jl6.YtToggleButtonBehavior),_.h("design:type",Object)],Ip.prototype,"ytToggleButtonBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],Ip.prototype,"data",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],Ip.prototype,"showTooltips",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ip.prototype,"systemIcons",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ip.prototype,"roundedContainer",void 0);_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ip.prototype,"onYtNavigate",null);
Ip=_.c([_.E({is:"ytd-toggle-button-renderer",disableElementRegistration:z4X})],Ip);var aJX;_.ib=new _.MH("PANEL_CONTROLLER_TOKEN");_.ru=new _.MH("SHEET_CONTROLLER_TOKEN");_.Ui=new _.MH("DIALOG_CONTROLLER_TOKEN");aJX=new _.MH("DIALOG_CONTAINER_TOKEN");var EIs=_.ID("DOWNLOAD",{},"Download"),R4M=_.ID("DOWNLOADING",{},"Downloading"),clM=_.ID("DOWNLOADED",{},"Downloaded"),Sv4=_.ID("RETRY",{},"Retry");var jkl=[],lJJ=!1;var DeG=_.LL(function(q){var w=ydy,u=function(){return""},y=xej(q.data),e=q2o(q.data),t=w$y(q.data),X=uRj(q.data);
w=function(){var G=q.data(),n=Yv7(G,y(),e(),t(),X()),N=!!G.videoId,Q=n.text;return{title:N?Q:void 0,tooltip:N?void 0:Q,accessibilityText:Q,onTap:n.onTap,iconName:n.iconType,style:G.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:n.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:G.buttonSize}};
u={};u=_.HR("ytDownloadButtonViewModelHost",(u.ytDownloadButtonViewModelIsHidden=function(){var G=q.data(),n=X();return G.playlistId||n()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||n()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},u));
return _.W("download-button-view-model",{class:u},_.W(_.Zs,{data:w}))},"y");
DeG.idomCompat=!0;var pKx=_.LL(function(q){var w=q.backgroundLottieRef;var u=q.foregroundLottieRef;var y=q.children;var e=q.wrapperClass;var t=q.disableAnimation;q=function(){return(_.T("web_animated_actions")||_.T("web_animated_actions_v2"))&&!(t==null?0:t())};
return _.W("yt-animated-action",{class:_.HR("animated-action__container",e)},_.W("div",{class:"animated-action__content-with-background"},_.W(_.r,{cond:q,then:function(){return _.W(ZRP,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:w==null?void 0:w(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(e8s()?"dark":"light")+"_v5.json"}}}})}}),y),_.W(_.r,{cond:q,
then:function(){return _.W(ZRP,{lottiePlayerProps:function(){return{animationRef:u==null?void 0:u(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(e8s()?"dark":"light")+"_v4.json"}}}})}}))},"z");
pKx.idomCompat=!0;var ZRP=_.LL(function(q){var w=q.wrapperClass;var u=q.lottieClass;var y=q.lottiePlayerProps;return _.W("div",{class:_.HR("animated-action__lottie",w),"aria-hidden":"true"},_.W(_.WR,{className:u,data:y,animationName:function(){return y().animationConfig.name}}))},"A");var kRu={isOpen:!1};var P$o={isAllowed:!1};var Fec={errorMessage:"",title:"",privacy:"",isDisabled:!0};var nWJ={isOpen:!1};var We6={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var $er={response:void 0};var Nqo=function(q,w){q=q===void 0?$er:q;switch(w.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},q,{response:w.payload});default:return q}};var vIG={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var QCM=function(q,w){q=q===void 0?vIG:q;switch(w.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},q,{nextDisabled:w.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},q,{nextCommand:w.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},q,{footerSubmissionData:w.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},q,{isImpersonationValid:w.payload});default:return q}};var bRX={reportFormData:void 0,reportDetailsFormData:void 0};var Iwc=function(q,w){q=q===void 0?bRX:q;switch(w.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},q,{reportFormData:w.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},q,{reportDetailsFormData:w.payload});default:return q}};var Yv$=void 0;_.T("mweb_enable_redux_store_on_demand")||(Yv$=new La(i34()));var gIT=_.LL(function(q){q=_.lf(q,{themeOverride:void 0,animationRef:{}});var w=q.animatedIconType,u=q.active,y=q.themeOverride,e=q.animationRef;q=q.staticIconFn;var t=_.P(_.r4(void 0,void 0,"P5a72b")),X=t.next().value,G=t.next().value,n=function(){a:{var a=w();var b=y==null?void 0:y();var g;b=(b==null?void 0:b.useDarkTheme)||((g=_.tG().resolve(_.kF(_.Rg)))==null?void 0:g());switch(a){case "LIKE":Yv$||(Yv$=new La(i34()));a=(a=V2c(Yv$.getState()))&&a.animationLightUrl&&a.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:b?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:b?a.animationDarkUrl:a.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0}:void 0;if(a){b=a;break a}b="animated_like_icon_"+(b?"dark_v4":"light_v4");b={lottiePlayerProps:{animationConfig:{name:b,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+b+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},
totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":b={lottiePlayerProps:{animationConfig:{name:b?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(b?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}b=void 0}return b},N=function(){var a,b;
return(b=(a=n())==null?void 0:a.lottiePlayerProps.animationConfig.name)!=null?b:""},Q=function(){if(n()){var a=n().lottiePlayerProps.animationConfig.path;
return nT.get(a)||X()}};
t=_.P(_.r4(!1,void 0,"h6xR3c"));var I=t.next().value;t=t.next().value;var U=Ulo(t),d=function(){var a=n(),b,g,l;return(l=a==null?void 0:(b=a.lottiePlayerProps.animationConfig)==null?void 0:(g=b.rendererSettings)==null?void 0:g.className)!=null?l:""},V=void 0,J=void 0;
_.DG(function(){var a=n(),b=N(),g=Q(),l=I(),S=u();if(a&&(J!==b&&(J=b,V=S,b=e(),U.animationConfig=a.lottiePlayerProps.animationConfig,U.animationRef=b,g&&(U.animationConfig.animationData=g,U.animationConfig.path=void 0),b=a.lottiePlayerProps.animationConfig.path,!nT.get(b)&&a.lazyLoad&&b&&rdj(b,G)),!(l||a.lazyLoad&&!g))){if(g=!e().lottieEl)S?(l=a.totalFrames,U.animationConfig.initialSegment=[l-1,l]):U.animationConfig.initialSegment=void 0;if(V!==S&&!g)if(g=e(),S){var eH;(eH=g.lottieEl)==null||eH.playSegments([0,
a.totalFrames],!0)}else{var x;(x=g.lottieEl)==null||x.playSegments([0,1],!0)}V=S}});
return _.W("animated-icon",{class:"ytAnimatedIconHost"},_.W(_.r,{cond:function(){var a,b;return!((a=n())==null||!a.lottiePlayerProps.animationConfig.path||((b=n())==null?0:b.lazyLoad)&&!Q()||I())},
then:function(){return _.W(_.WR,{data:U,animationName:N,className:d,animationRef:e})},
else:q}))},"B");_.TK=_.LL(function(q){var w=_.Bm(),u=_.Bm(),y=_.Bm(),e=_.nr(),t=_.nr(),X=_.nr(),G=_.Qo(sks,function(){return q.data().stateEntityStoreKey}),n=_.Qo(NXl,function(){var tc,Fa;
return(Fa=(tc=q.data().notificationStateEntityStoreKeys)==null?void 0:tc.subsNotificationStateKey)!=null?Fa:""}),N=function(){return!q.data().enableSubscribeButtonPostClickAnimation},Q=_.P(_.r4(0,void 0,"WIh5Qe")),I=Q.next().value,U=Q.next().value;
Q=_.P(_.r4(0,void 0,"DLe07"));var d=Q.next().value,V=Q.next().value;Q=_.P(_.r4(!1,void 0,"pPeKsd"));var J=Q.next().value,a=Q.next().value;Q=_.P(_.r4(!1,void 0,"SgCom"));var b=Q.next().value,g=Q.next().value;Q=_.P(_.r4(!1,void 0,"SnaGE"));var l=Q.next().value,S=Q.next().value,eH;Q=_.P(_.r4(!1,void 0,"mZPNLe"));var x=Q.next().value,P4=Q.next().value,C7=function(){g(!0);_.iq(_.pi,function(){g(!1)},1500)};
_.DG(function(){var tc=b();Qy(function(){tc&&!N()&&G()&&awu(e,t,X)})});
_.DG(function(){var tc=G();Qy(function(){if(!N()&&tc){var Fa;((Fa=q.animateWidth)==null?0:Fa.call(q))&&z8J(w.value,!!tc.subscribed,I(),d());var eq,Hk;((eq=eH)==null?0:eq.subscribed)||!tc.subscribed||tc.key!==((Hk=eH)==null?void 0:Hk.key)||C7();eH=tc}})});
Q=_.oR(function(){var tc,Fa,eq,Hk=q.data(),W3=!((tc=G())==null||!tc.subscribed);tc=!((Fa=q.isOverlay)==null||!Fa.call(q));Fa=J()?w.value:void 0;var gV=(eq=n())==null?void 0:eq.state;eq=x();Jdy(Hk,gV);return dl4({model:Hk,subscribed:W3,isOverlay:tc,element:Fa,notificationState:gV,disableTextEllipsis:!0,focused:eq})},void 0,"vnnmge");
var mu=function(){var tc;if(!N()&&((tc=q.animateWidth)==null?0:tc.call(q))&&(u==null?0:u.value)&&(y==null?0:y.value)&&!l()){tc=G();var Fa=_.P((tc==null?0:tc.subscribed)?[u,y]:[y,u]),eq=Fa.next().value;Fa=Fa.next().value;eq=Math.ceil(eq.value.getBoundingClientRect().width);Fa=Math.ceil(Fa.value.getBoundingClientRect().width);U(eq);V(Fa);z8J(w.value,!(tc==null||!tc.subscribed),eq,Fa);S(!0)}},Os=_.QS(function(tc){mu();
var Fa=G();Fa&&(tc.detail.endpoint.subscribeEndpoint||tc.detail.endpoint.unsubscribeEndpoint)&&oWJ(w.value,!Fa.subscribed,Fa)}),YJ=function(){var tc=_.tG().resolve(_.kF(_.LK));
tc&&P4(tc.isKeyBoardInUse())},ao=function(){P4(!1)};
_.Kn("yt-player-subscribe",function(tc){var Fa=G();Fa&&tc===q.data().channelId&&oWJ(w.value,!0,Fa)});
_.Kn("yt-player-unsubscribe",function(tc){var Fa=G();Fa&&tc===q.data().channelId&&oWJ(w.value,!1,Fa)});
_.Kn("yt-update-subscribe-button-action",function(tc){tc=_.C(tc,Oyk);var Fa=G();Fa&&tc&&tc.channelId===q.data().channelId&&oWJ(w.value,!!tc.subscribed,Fa)});
_.p4(function(){w.value&&(w.value.addEventListener("focusin",YJ),w.value.addEventListener("focusout",ao));var tc=_.mg(_.pi,function(){mu()});
a(!0);_.ZG(function(){_.pi.cancelJob(tc);w.value&&(w.value.removeEventListener("focusin",YJ),w.value.removeEventListener("focusout",ao))})});
var bc=function(){var tc,Fa,eq;if(eq=!((tc=G())==null||!tc.subscribed))tc=!!q.data().disableNotificationBell,eq=(Fa=n())==null?void 0:Fa.state,eq=!tc&&!!eq;return eq},Ro=function(){var tc;
return!((tc=G())==null?0:tc.subscribed)},K7=function(){var tc,Fa;
if(Fa=Ro()){Fa=!!q.data().disableNotificationBell;var eq=(tc=n())==null?void 0:tc.state;Fa=!Fa&&!!eq}return Fa},gx={},dx={};
return _.W("yt-subscribe-button-view-model",{class:_.HR(q.className,"yt-subscribe-button-view-model-wiz",(gx["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var tc,Fa;return!((tc=G())==null||!tc.subscribed)&&((Fa=q.animateWidth)==null?void 0:Fa.call(q))&&b()},gx["yt-subscribe-button-view-model-wiz--hidden"]=function(){var tc;
return!((tc=G())==null?0:tc.subscribed)&&q.data().hideWhenUnsubscribed},gx)),
el:w,"on:yt-service-request-sent":Os},_.W(pKx,{backgroundLottieRef:e,foregroundLottieRef:t,wrapperClass:_.HR("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(dx["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var tc;return((tc=q.animateWidth)==null?void 0:tc.call(q))&&b()},dx["yt-subscribe-button-view-model-wiz__static-width"]=function(){var tc;
return!((tc=q.animateWidth)==null?0:tc.call(q))},dx)),
disableAnimation:N},_.W("div",{el:u,class:"yt-subscribe-button-view-model-wiz__container"},_.W(Kr,{data:Q,icon:function(){return _.W(_.r,{cond:bc,then:function(){var tc=function(){var Fa;return O3f((Fa=n())==null?void 0:Fa.state)};
return _.W(_.r,{cond:function(){return N()||tc()!=="NOTIFICATIONS_NONE"},
then:function(){return _.W(_.U3,{icon:tc})},
else:function(){return _.W(gIT,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:X})}})}})},
secondaryIconName:function(){return bc()?"EXPAND":void 0}}))),_.W("div",{el:y,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.W(_.r,{cond:function(){var tc;return((tc=q.animateWidth)==null?void 0:tc.call(q))&&!N()&&!l()},
then:function(){return _.W(Kr,{data:_.oR(function(){var tc;return dl4({model:q.data(),subscribed:Ro(),isOverlay:!((tc=q.isOverlay)==null||!tc.call(q)),element:w.value,disableTextEllipsis:!0})},void 0,"qRN0Cf"),
iconName:function(){var tc;return K7()?O3f((tc=n())==null?void 0:tc.state):void 0},
secondaryIconName:function(){return K7()?"EXPAND":void 0}})}})))},"C");
_.TK.idomCompat=!0;var DlH=new _.MH("RENDERER_STAMPER_OPTIONS_TOKEN");var Cr;_.Tn=new rej;Cr=new Map;var MYf="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),Bqj=["notificationTextRenderer","notificationMultiActionRenderer"],Keo="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
LeH=EW4(function(q){return _.$C(q==null?void 0:q.targetId)}).useUpdatableData;var lw4=0;_.OF.debugName="EjJbCe";var EIX=_.LL(function(q){var w=q.data;var u=_.Qo(sks,function(){return w().subscriptionStateEntityKey});
return _.W(_.r,{cond:function(){var y=w(),e=u();return!y.hideWhenUnsubscribed||(e==null?0:e.subscribed)?_.C(w().button,_.oH):void 0},
then:function(y){return _.W("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.W(_.Zs,{data:y,buttonOverrides:function(){return{toggled:!0}}}))}})},"D");var wDM=_.UF({buttonViewModel:_.Zs,subscribeButtonViewModel:_.TK,downloadButtonViewModel:DeG,toggleButtonViewModel:_.fr,subscribePlusButtonViewModel:EIX});_.t2(yQ6);var R4T=_.LL(function(q){return _.W(_.OF,{data:function(){return q.actionRow().actions}},{buttonViewModel:function(w){var u=w.data;
return _.W(CQ,{isRow:q.isRow,isIconOnlyButton:function(){return eo6(u())},
useIntrinsicWidth:q.useIntrinsicWidth},_.W(_.Zs,{data:u}))},
subscribeButtonViewModel:function(w){return _.W(CQ,{isRow:q.isRow},_.W(_.TK,{data:w.data,isOverlay:!1,animateWidth:function(){return!q.isRow()}}))},
downloadButtonViewModel:function(w){var u=w.data;return _.W(CQ,{isRow:q.isRow,isIconOnlyButton:function(){return!!u().playlistId}},_.W(DeG,{data:u}))},
toggleButtonViewModel:function(w){var u=w.data;return _.W(CQ,{isRow:q.isRow,isIconOnlyButton:function(){var y=u();return eo6(_.C(y.isToggled?y.toggledButtonViewModel:y.defaultButtonViewModel,_.oH))}},_.W(_.fr,{data:u}))},
subscribePlusButtonViewModel:function(w){return _.W(CQ,{isRow:q.isRow},_.W(EIX,{data:w.data}))}})},"E"),CQ=_.LL(function(q){var w={};
return _.W("div",{class:_.HR("yt-flexible-actions-view-model-wiz__action",(w["yt-flexible-actions-view-model-wiz__action--row-action"]=q.isRow,w["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=q.useIntrinsicWidth,w["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,w["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=q.isIconOnlyButton,w))},q.children)},"F"),clF=_.LL(function(q){var w=function(){var y;
return((y=q.layout)==null?void 0:y.call(q))===1},u={};
return _.W("yt-flexible-actions-view-model",{class:_.HR("yt-flexible-actions-view-model-wiz",q.className,(u["yt-flexible-actions-view-model-wiz--inline"]=function(){return!w()},u["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return q.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},u))},_.W(_.mL,{each:function(){return q.data().actionsRows||[]}},function(y){return _.W(_.r,{cond:w,
then:function(){return _.W("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.W(R4T,{actionRow:y,isRow:w,useIntrinsicWidth:function(){return!!q.data().respectActionIntrinsicWidth}}))},
else:function(){return _.W(R4T,{actionRow:y,isRow:w})}})}))},"G"),Svk=_.T("web_enable_sink_yt_flexible_actions_view_model")?clF:yQ6,du=_.T("web_enable_sink_yt_flexible_actions_view_model")?clF:_.N9(yQ6);
clF.idomCompat=!0;_.q9(du,"yt-flexible-actions-view-model",{props:{data:_.pK,layout:_.pK,justifyContentOverride:_.pK,className:_.pK}});_.t2(k$y);var h4F,G$M;h4F=_.LL(function(q){var w=_.Qo(DK,function(){var e;return(e=q.data().dislikeEntityKey)!=null?e:""}),u=_.oR(function(){var e=w();
return e?e.likeStatus==="DISLIKE":_.C(q.data().toggleButtonViewModel,_.Vo).isToggled},void 0,"D8oIFb"),y=_.oR(function(){return Object.assign({},_.C(q.data().toggleButtonViewModel,_.Vo),{isToggled:u()})},void 0,"shaCXe");
return _.W("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.W(_.fr,{data:y,buttonShapeOverrides:q.buttonShapeOverrideables,onToggle:function(e){var t=w();t&&e!==(t.likeStatus==="DISLIKE")&&t.key&&_.hM(_.mG("likeStatusEntity",t.key,{likeStatus:e?"DISLIKE":"INDIFFERENT",hadUserInteraction:e}))}}))},"H");
G$M=_.T("web_enable_sink_dislike_button_view_model")?h4F:k$y;_.Oi=_.T("web_enable_sink_dislike_button_view_model")?h4F:_.N9(k$y);h4F.idomCompat=!0;_.t2(Pd4);var jka,FVH;jka=_.LL(function(q){var w=_.T("web_supports_animations_api"),u=Kx(function(U){var d=N(),V,J=(d==null?void 0:(V=d.likeCountIfIndifferent)==null?void 0:V.content)!==U.numberText;if(G()||!J)return U;var a,b;return{numberText:(d==null?void 0:(a=d.likeCountIfIndifferent)==null?void 0:a.content)||"",numberValue:Number((b=d==null?void 0:d.likeCountIfIndifferentNumber)!=null?b:0),heightPx:36,shouldAnimate:!!d}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),y=Kx(function(U){var d=N(),V,J=(d==null?void 0:(V=d.likeCountIfIndifferent)==null?void 0:V.content)!==U.numberText;if(G()||!J)return U;var a,b;return{numberText:(d==null?void 0:(a=d.likeCountIfLiked)==null?void 0:a.content)||"",numberValue:Number((b=d==null?void 0:d.likeCountIfLikedNumber)!=null?b:0),heightPx:36,shouldAnimate:!!d}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),e=_.P(_.r4(void 0,void 0,"T6jMHc")),t=e.next().value,X=e.next().value,G=t,n=_.Qo(DK,function(){var U,d;return(d=(U=q.data())==null?void 0:U.likeStatusEntityKey)!=null?d:""}),N=_.Qo(hgu,function(){var U,d;
return((U=q.likeCountEntity)==null?void 0:(d=U.call(q))==null?void 0:d.key)||""}),Q=_.oR(function(){var U;
return((U=n())==null?void 0:U.likeStatus)==="LIKE"},void 0,"WxQBcd"),I=function(){var U;
return w&&!((U=q.likeCountEntity)==null||!U.call(q))};
return _.W("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.W(_.fr,{data:function(){var U=Object,d=U.assign,V;var J=_.C((V=q.data())==null?void 0:V.toggleButtonViewModel,_.Vo);return d.call(U,{},J||{},{isToggled:Q()})},
buttonShapeOverrides:q.buttonShapeOverrideables,animatedTextPropsDefault:function(){return I()?u():void 0},
animatedTextPropsToggled:function(){return I()?y():void 0},
onToggle:function(U){XDM(U,n(),G(),X)},
style:function(){var U;return((U=q.disableIconAnimation)==null?0:U.call(q))?void 0:{animateIcon:"true"}}}))},"I");
FVH=_.T("web_enable_sink_like_button_view_model")?jka:Pd4;_.op=_.T("web_enable_sink_like_button_view_model")?jka:_.N9(Pd4);_.t2(n5M);var lJT=_.LL(function(q){var w=function(){return _.C(q.data().likeButtonViewModel,_.Ag)},u=function(){var e;
return((e=w())==null?void 0:e.likeStatusEntityKey)||""},y=_.oR(function(){var e,t;
var X=(t=_.Qo(DK,u)())!=null?t:(e=w())==null?void 0:e.likeStatusEntity;e=q.data();var G;e=(e==null?void 0:(G=e.timedAnimationData)==null?void 0:G.animationTiming)||[];return{uniqueId:"like-dislike",timings:e,enabled:(X==null?void 0:X.likeStatus)==="INDIFFERENT"&&e.length>0,experimentEnabled:e.length>0}},void 0,"e1fsz");
return _.W("segmented-like-dislike-button-view-model",{class:_.HR("ytSegmentedLikeDislikeButtonViewModelHost",q.className),"button-renderer":!0},_.W(zn,{settings:y},_.W("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.W(_.r,{cond:w,then:function(e){return _.W(_.op,{data:e,likeCountEntity:function(){return q.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.W(_.r,{cond:function(){return _.C(q.data().dislikeButtonViewModel,_.Jg)},
then:function(e){return _.W(_.Oi,{data:e,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"J"),L7c=_.T("web_enable_sink_segmented_like_dislike_button_view_model")?lJT:n5M;
lJT.idomCompat=!0;_.T("web_enable_sink_segmented_like_dislike_button_view_model")?_.q9(L7c,"segmented-like-dislike-button-view-model",{props:{data:_.pK,className:_.pK}}):_.XK(L7c,"segmented-like-dislike-button-view-model",{propNames:["data"]});var Iys=0;_.q9(ay4,"account-link-button-view-model",{props:{data:_.pK,className:_.xB,setMinWidth:_.xB,forceIconOnly:_.xB}});_.JE("menuRenderer","menuRenderer","ytd-menu-renderer");
var M_X={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"}},
K7T=_.T("web_fix_missing_action_buttons")?100:200,V$=function(){var q=_.Y.apply(this,arguments)||this;q.safeArea=!_.T("kevlar_flex_menu_safe_area_killswitch");q.tonalOverride=!1;q.threeDotSize="M";q.isOverlay=!1;q.useOverlayDark=!1;q.topLevelIconsOnly=!1;q.JSC$12402_lastWidth=0;q.maybeUpdateFlexibleMenu=function(){_.T("web_fix_missing_action_buttons")?requestAnimationFrame(q.maybeUpdateFlexibleMenuImpl):q.maybeUpdateFlexibleMenuImpl()};
q.maybeUpdateFlexibleMenuImpl=function(){var w;if((w=q.data)!=null&&w.flexibleItems){q.maybeFlushDebouncer();w=q.hostElement.clientWidth;var u=w>q.JSC$12402_lastWidth,y,e=((y=q.topLevelButtonsContainer)==null?void 0:y.scrollHeight)||0,t;y=((t=q.flexibleItemButtonsContainer)==null?void 0:t.scrollHeight)||0;t=q.hostElement.scrollHeight>Math.max(e,y)+8;u?(q.resetFlexibleItems(),q.JSC$12402_lastWidth=q.hostElement.clientWidth,q.maybeUpdateFlexibleMenu()):t&&(q.shrinkFlexibleMenu(),q.JSC$12402_lastWidth=
w)}};
q.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){q.onOverflowTap()},
iconPosition:"icon-only",style:q.isOverlay?q.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:q.threeDotSize,state:"active",accessibilityLabel:q.computeAccessibilityLabel(q.data)},q.threeDotButtonOverride)};
q.onOverflowTap=function(){if(q.data.fetchMenuCommand)_.tG().resolve(_.PG).resolveCommand(q.data.fetchMenuCommand,{form:{element:q.hostElement}});else if(q.data.isDisabled&&q.data.disabledCommand)_.H6(q.data.disabledCommand,q.hostElement);else{var w=q.createMenuRendererVe(),u={items:q.items};q.data.menuPopupAccessibility&&(u.menuPopupAccessibility=q.data.menuPopupAccessibility);q.data.footer&&(u.footer=q.data.footer);w={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:u},veData:w}};
_.tG().resolve(_.ru).openSheet({openPopupActionCommand:w},q.hostElement)}};
return q};
_.O(V$,_.Y);_.k=V$.prototype;_.k.updateButtonOverrides=function(){if(!_.T("menu_renderer_label_update_upkillswitch")){var q=_.A(this.hostElement).querySelector("yt-button-view-model");q&&(q.buttonOverrides=this.buttonOverrides)}};
_.k.computeHasItems=function(){var q;return((q=this.topLevelButtonData)==null?void 0:q.length)||this.hasFlexibleItems};
_.k.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.k.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Pj(this.hostElement,{"--ytd-menu-renderer-button-color":_.Ae(this.data.iconColor)}))};
_.k.onStamperFinished=function(){this.JSC$12402_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.k.setupFlexibleMenu=function(){var q=this,w;(w=this.data)!=null&&w.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.MI(this.maybeUpdateFlexibleMenu,K7T,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){q.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))};
_.k.maybeFlushDebouncer=function(){if(_.T("web_replace_formatted_with_attributed_string")){var q;(q=this.topLevelButtons)==null||q.forEach(function(u){var y;(u=(y=u.getElementsByTagName("yt-attributed-string"))==null?void 0:y[0])&&TTj(u)});
var w;(w=this.flexibleItemButtons)==null||w.forEach(function(u){var y;(u=(y=u.getElementsByTagName("yt-attributed-string"))==null?void 0:y[0])&&TTj(u)})}};
_.k.resetFlexibleItems=function(){var q;if((q=this.data)!=null&&q.flexibleItems){_.T("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var w;this.flexAsTopLevelButtons=(w=this.data.flexibleItems)==null?void 0:w.map(function(u){return _.C(u,_.lrT).topLevelButton});
_.T("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.k.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.k.shrinkFlexibleMenu=function(){var q;(q=this.flexAsTopLevelButtons)!=null&&q.length&&(this.flexAsTopLevelButtons=[].concat(_.Cm(this.flexAsTopLevelButtons.slice(0,-1))))};
_.k.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:M_X,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:M_X,events:!0}}};
_.k.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.k.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.k.detached=function(){this.icon="yt-icons:more_vert"};
_.k.computeTopLevelButtonData=function(q){if(!q)return[];var w;q=(w=q==null?void 0:q.topLevelButtons)!=null?w:[];return _.db.unsafeClone([].concat(_.Cm(q)))};
_.k.computeItems=function(q,w){if(!q)return[];var u=[];if(w){var y=(q.flexibleItems||[]).map(function(X){return _.C(X,_.lrT)});
y=_.P(y);for(var e=y.next();!e.done;e=y.next())e=e.value,w.includes(e.topLevelButton)||(e=e.menuItem)&&u.push(e)}var t;q=(t=q==null?void 0:q.items)!=null?t:[];return[].concat(_.Cm(u),_.Cm(q))};
_.k.computeMenuActive=function(q,w){return q||w};
_.k.onPopupOpened=function(){this.overlayOpen=!0;_.t7(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.k.onPopupClosed=function(){this.overlayOpen=!1;_.t7(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.k.onPopupCanceled=function(){this.overlayOpen=!1;_.t7(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.k.computeAccessibilityLabel=function(q){return this.get("accessibility.accessibilityData.label",q)};
_.k.isHidden=function(q,w){return this.tonalOverride||!q?!0:q.fetchMenuCommand||q.isDisabled&&q.disabledCommand?!1:!(w==null?0:w.length)};
_.k.isModernOverflowHidden=function(q,w){return this.tonalOverride&&q?q.fetchMenuCommand?!1:!(w==null?0:w.length):!0};
_.k.createMenuRendererVe=function(){var q=this.data.trackingParams,w=_.pN(),u=_.ZB();return q&&w&&u?(q=_.Tj(q),u=_.oV(7591),_.T("combine_ve_grafts")?_.ku(_.Qz(),u,q):_.EC(w,q,u),u):null};
_.x$.Object.defineProperties(V$.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.flexAsTopLevelButtons)==null||!q.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
V$.prototype.onPopupCanceled=V$.prototype.onPopupCanceled;V$.prototype.onPopupClosed=V$.prototype.onPopupClosed;V$.prototype.onPopupOpened=V$.prototype.onPopupOpened;V$.prototype.tonalOverrideChanged=V$.prototype.tonalOverrideChanged;V$.prototype.resetFlexibleItems=V$.prototype.resetFlexibleItems;V$.prototype.setupFlexibleMenu=V$.prototype.setupFlexibleMenu;V$.prototype.iconButtonColorChanged=V$.prototype.iconButtonColorChanged;V$.prototype.updateButtonOverrides=V$.prototype.updateButtonOverrides;
_.c([_.D(_.YE),_.h("design:type",Object)],V$.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],V$.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],V$.prototype,"ytRendererstamperBehavior",void 0);_.c([_.Wj("#button-shape"),_.h("design:type",xY)],V$.prototype,"buttonShape",void 0);_.c([_.Wj("#button"),_.h("design:type",Object)],V$.prototype,"button",void 0);
_.c([_.v(),_.h("design:type",Object)],V$.prototype,"data",void 0);_.c([_.v({computed:"computeTopLevelButtonData(data)"}),_.h("design:type",Array)],V$.prototype,"topLevelButtonData",void 0);_.c([_.v(),_.h("design:type",Array)],V$.prototype,"flexAsTopLevelButtons",void 0);_.c([_.v({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.h("design:type",Array)],V$.prototype,"items",void 0);_.c([_.v({value:"yt-icons:more_vert"}),_.h("design:type",String)],V$.prototype,"icon",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],V$.prototype,"safeArea",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.h("design:type",Boolean)],V$.prototype,"menuActive",void 0);_.c([_.v(),_.h("design:type",Boolean)],V$.prototype,"menuFocused",void 0);_.c([_.v({value:"bottom"}),_.h("design:type",String)],V$.prototype,"buttonTooltipPosition",void 0);_.c([_.v(),_.h("design:type",Boolean)],V$.prototype,"overlayOpen",void 0);
_.c([_.v({value:!0}),_.h("design:type",Boolean)],V$.prototype,"forceIconButton",void 0);_.c([_.v(),_.h("design:type",Boolean)],V$.prototype,"styleActionButton",void 0);_.c([_.v(),_.h("design:type",Boolean)],V$.prototype,"disableTextTransformOnButtons",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],V$.prototype,"tonalOverride",void 0);_.c([_.v(),_.h("design:type",Object)],V$.prototype,"threeDotSize",void 0);
_.c([_.v(),_.h("design:type",Object)],V$.prototype,"threeDotButtonOverride",void 0);_.c([_.v(),_.h("design:type",Object)],V$.prototype,"isOverlay",void 0);_.c([_.v(),_.h("design:type",Object)],V$.prototype,"useOverlayDark",void 0);_.c([_.v({computed:"computeButtonOverride(tonalOverride)"}),_.h("design:type",Object)],V$.prototype,"buttonOverride",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],V$.prototype,"hasCustomIconColor",void 0);
_.c([_.v({reflectToAttribute:!0}),_.Z("flexAsTopLevelButtons"),_.h("design:type",Object),_.h("design:paramtypes",[])],V$.prototype,"hasFlexibleItems",null);_.c([_.v({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.h("design:type",Boolean)],V$.prototype,"hasItems",void 0);_.c([_.v(),_.h("design:type",Object)],V$.prototype,"topLevelIconsOnly",void 0);
_.c([_.nL("topLevelIconsOnly"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],V$.prototype,"updateButtonOverrides",null);_.c([_.Z("topLevelIconsOnly"),_.h("design:type",Object),_.h("design:paramtypes",[])],V$.prototype,"buttonOverrides",null);_.c([_.Wj("#top-level-buttons-computed"),_.h("design:type",HTMLElement)],V$.prototype,"topLevelButtonsContainer",void 0);_.c([_.s6(".top-level-buttons > *"),_.h("design:type",Array)],V$.prototype,"topLevelButtons",void 0);
_.c([_.Wj("#flexible-item-buttons"),_.h("design:type",HTMLElement)],V$.prototype,"flexibleItemButtonsContainer",void 0);_.c([_.s6("#flexible-item-buttons > *"),_.h("design:type",Array)],V$.prototype,"flexibleItemButtons",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],V$.prototype,"iconButtonColorChanged",null);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],V$.prototype,"setupFlexibleMenu",null);_.c([_.I9("topLevelIconsOnly"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],V$.prototype,"resetFlexibleItems",null);_.c([_.nL("tonalOverride"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],V$.prototype,"tonalOverrideChanged",null);
_.c([_.Gm("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],V$.prototype,"onPopupOpened",null);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],V$.prototype,"onPopupClosed",null);_.c([_.Gm("yt-popup-canceled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],V$.prototype,"onPopupCanceled",null);
_.R(V$,"ytd-menu-renderer",function(){if(skX===void 0){var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);skX=q}q=skX;return q},{mode:_.kB("kevlar_poly_si_batch_j030")?1:2});var BX$;var xex;_.jg=_.LL(function(q){var w=q.data;var u=function(){if(w().icon)a:{var y={iconName:w().icon};for(var e=_.tG().resolve(_.Gj),t=_.P([12,24]),X=t.next();!X.done;X=t.next()){var G=X.value;X=Object.assign({},y,{iconStyle:"youtube_fill",iconSize:G});G=Object.assign({},y,{iconStyle:"youtube_outline",iconSize:G});if(e.resolveIcon(X)){y=X;break a}if(e.resolveIcon(G)){y=G;break a}}y=void 0}else y=void 0;return y};
q={};return _.W("badge-shape",{class:_.HR("badge-shape-wiz",function(){return pDM(w().type)},(q["badge-shape-wiz--overlay"]=function(){return w().isOverlay},q["badge-shape-wiz--ads-include-dot"]=function(){return w().adsIncludeDot},q["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(w().type){case 16:case 17:case 18:var y=!0;
break a;default:y=!1}return y},q["badge-shape-wiz--status-badge"]=function(){a:switch(w().type){case 11:case 12:case 13:case 14:case 15:var y=!0;
break a;default:y=!1}return y},q["badge-shape-wiz--no-text"]=function(){return!w().text},q["badge-shape-wiz--modern"]=function(){return w().modern},q)),
style:_.rm({"background-color":function(){var y;return(y=w().customColors)==null?void 0:y.backgroundColor}}),
role:function(){return w().accessibilityText?"img":void 0},
"aria-label":function(){return w().accessibilityText}},_.W(_.r,{cond:function(){return w().animation},
then:function(y){return _.W(_.WR,{className:"badge-shape-wiz__icon",data:y,animationName:function(){return y().animationConfig.name||""}})}}),_.W(_.r,{cond:function(){var y;
return u()&&!((y=w())==null?0:y.animation)},
then:function(){return _.W("div",{class:"badge-shape-wiz__icon"},_.W(bcu,{data:function(){return u()}}))}}),_.W("div",{class:"badge-shape-wiz__text"},function(){var y;
return(y=w())==null?void 0:y.text}))},"K");
_.jg.idomCompat=!0;_.q9(_.jg,"badge-shape",{props:{data:_.pK}});var fQ=function(){var q=_.Y.apply(this,arguments)||this;q.systemIcons=_.T("kevlar_system_icons");q.animated=_.T("animated_live_badge_icon");q.useBadgeShape=_.T("web_badge_shape_defrag");return q};
_.O(fQ,_.Y);_.k=fQ.prototype;_.k.addTooltips=function(){for(var q=_.A(this.hostElement).querySelectorAll(".badge"),w=0,u;u=q[w++];){var y=this.repeatElement.itemForElement(u);u=_.A(u);u.lastChild&&u.lastChild.is==="tp-yt-paper-tooltip"&&u.removeChild(u.lastChild);if(y=y.metadataBadgeRenderer&&y.metadataBadgeRenderer.tooltip){var e=_.E7("tp-yt-paper-tooltip");(0,_.tM)(e).textContent=y;e.setAttribute("position","top");u.appendChild(e)}}};
_.k.badgesChanged=function(){var q=this;_.DU().parkOrScheduleJob(function(){q.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.k.standaloneRoundedBadgeChanged=function(){var q=this.useRoundedBadge?this.useRoundedBadge:void 0;q&&(this.useRoundedBadge=q)};
_.k.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.k.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.k.computeStyle=function(q){_.T("enable_html5_teal_ad_badge")&&q==="BADGE_STYLE_TYPE_AD"&&(q="badge-style-type-ad-alternate");_.T("kevlar_ytb_live_badges")&&q==="BADGE_STYLE_TYPE_LIVE_NOW"&&(q="badge-style-type-live-now-alternate");return q?q.toLowerCase().replace(/_/g,"-"):""};
_.k.computeRole=function(q){return this.computeAriaLabel(q)?"img":"status"};
_.k.computeAriaLabel=function(q){var w;return(q==null?void 0:(w=q.accessibilityData)==null?void 0:w.label)||(q==null?void 0:q.label)};
_.k.computeBadgeShape=function(q){var w;if(q){var u,y=DjJ(q.style),e=Zlz(q.style),t=q.label,X=((u=q.accessibilityData)==null?void 0:u.label)||q.label;q=(w=q.icon)==null?void 0:w.iconType;w={type:y,brNzRatingBadgeType:e,text:t,accessibilityText:X,icon:q!=="PREMIUM"?q:void 0}}else w={};return w};
_.k.updateComputedBadges=function(q,w,u){var y=this;(w=w?[w]:u?[u]:void 0)?this.computedBadges=w:this.computedBadges=q==null?void 0:q.filter(function(e){var t;if((t=e.metadataBadgeRenderer)==null?0:t.groups){t=!1;e=_.P(e.metadataBadgeRenderer.groups);for(var X=e.next();!X.done;X=e.next()){X=X.value;var G=void 0;t=t||((G=y.hiddenBadgeGroups)==null?void 0:G.includes(X))}return!t}return!0})};
_.k.useFilledIcons=function(q){return _.T("kevlar_system_icons")&&(q==="AUDIO_BADGE"||q==="CHECK_CIRCLE_THICK"||q==="OFFICIAL_ARTIST_BADGE"||q==="SPONSORSHIP_STAR"||q==="PERSON_RADAR_FILLED"||q==="PERSON_RADAR")};
_.k.computeIcon=function(q){var w,u;q=q==null?void 0:(w=q.metadataBadgeRenderer)==null?void 0:(u=w.icon)==null?void 0:u.iconType;if(q!=="PREMIUM"&&q)return _.Fy(q)};
_.k.computeStandaloneBadge=function(q){var w;q=q==null?void 0:(w=q.icon)==null?void 0:w.iconType;return q==="PREMIUM_STANDALONE"||q==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
fQ.prototype.hiddenBadgeGroupsChanged=fQ.prototype.hiddenBadgeGroupsChanged;fQ.prototype.standaloneBadgeChanged=fQ.prototype.standaloneBadgeChanged;fQ.prototype.standaloneRoundedBadgeChanged=fQ.prototype.standaloneRoundedBadgeChanged;fQ.prototype.badgesChanged=fQ.prototype.badgesChanged;_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],fQ.prototype,"hidden",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],fQ.prototype,"componentBehavior",void 0);
_.c([_.v(),_.h("design:type",Array)],fQ.prototype,"badges",void 0);_.c([_.v(),_.h("design:type",Object)],fQ.prototype,"topStandaloneBadge",void 0);_.c([_.v(),_.h("design:type",Object)],fQ.prototype,"bottomStandaloneBadge",void 0);_.c([_.v(),_.h("design:type",Object)],fQ.prototype,"computedBadges",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],fQ.prototype,"mediumFontAdBadge",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],fQ.prototype,"useRoundedBadge",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],fQ.prototype,"largeFontAdBadge",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],fQ.prototype,"overlayAd",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],fQ.prototype,"overlayPremium",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],fQ.prototype,"noDotAdBadge",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],fQ.prototype,"collectionTruncate",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],fQ.prototype,"isThumbnailBadge",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],fQ.prototype,"wrapBadges",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],fQ.prototype,"systemIcons",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],fQ.prototype,"animated",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],fQ.prototype,"useBadgeShape",void 0);_.c([_.v({value:[]}),_.h("design:type",Array)],fQ.prototype,"hiddenBadgeGroups",void 0);_.c([_.Wj("#repeat"),_.h("design:type",V6)],fQ.prototype,"repeatElement",void 0);_.c([_.I9("badges"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fQ.prototype,"badgesChanged",null);
_.c([_.I9("useRoundedBadge"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fQ.prototype,"standaloneRoundedBadgeChanged",null);_.c([_.I9("topStandaloneBadge","bottomStandaloneBadge"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fQ.prototype,"standaloneBadgeChanged",null);_.c([_.I9("hiddenBadgeGroups"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fQ.prototype,"hiddenBadgeGroupsChanged",null);
fQ=_.c([_.E({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],fQ);
var q26=_.eD()(fQ,"ytd-badge-supported-renderer",function(){if(xex===void 0){var q=document.createElement("template");_.f(q,'\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"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);xex=q}q=xex;return q},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.kB("kevlar_poly_si_batch_j053")?1:2});var ml=function(){var q=_.Y.apply(this,arguments)||this;q.iconType="STAR";q.standardizeIconSize=_.T("kevlar_system_icons");q.mediaHoverOverlayInitialVisibility=_.T("enable_top_landscape_image_button_command_web");q.noBottomMargin=!1;q.thumbnailObjectFit="CONTAIN";q.thumbnailFitHeight=!0;q.actionMap={"yt-mute-ad-action":"handleMuteAd"};return q};
_.O(ml,_.Y);_.k=ml.prototype;
_.k.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"}}}};
_.k.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",ml.JSC$12414_DEFAULT_CLICK_LOCATION_BEHAVIOR,ml.JSC$12414_CLICK_LOCATION_ID_MAP))};
_.k.onTap=function(q){if(!_.T("use_on_click_for_desktop_display_ad"))this.onTapOrClick(q)};
_.k.onClick=function(q){if(_.T("use_on_click_for_desktop_display_ad"))this.onTapOrClick(q)};
_.k.onTapOrClick=function(q){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,q,!1)};
_.k.updateMediaBackgroundImage=function(){var q=this.get("data.image.thumbnail.thumbnails");q&&(q=_.wm(q,0))&&_.Pj(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+q+")"})};
_.k.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var q=0;q<this.data.impressionEndpoints.length;q++){var w=this.data.impressionEndpoints[q];w.clickTrackingParams&&delete w.clickTrackingParams;_.tG().resolve(_.PG).resolveCommand(w,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var u;((u=this.data)==null?0:u.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.k.handleMuteAd=function(){};
_.k.attached=function(){var q=this;_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&q.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.k.detached=function(){_.T("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.x$.Object.defineProperties(ml.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.titleText)return"";var w;return _.ID("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((w=this.data)==null?void 0:w.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.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 q;return!((q=this.data)==null||!q.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"}}});
ml.prototype.onClick=ml.prototype.onClick;ml.prototype.onTap=ml.prototype.onTap;ml.prototype.dataChanged=ml.prototype.dataChanged;
ml.JSC$12414_CLICK_LOCATION_ID_MAP=_.T("enable_web_home_top_landscape_image_layout_click_location")?new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","body-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER","secondary-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","media-hover-overlay"],["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",
"media"],["PROMOTED_SPARKLES_CLICK_LOCATION_BORDER","media-background"]]):new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"]]);
ml.JSC$12414_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.T("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ml.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],ml.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.Ao),_.h("design:type",Object)],ml.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],ml.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.l7.YtSparklesClickLocationBehavior),_.h("design:type",Object)],ml.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.D(oT),_.h("design:type",Object)],ml.prototype,"ytdActiveViewBehavior",void 0);_.c([_.D([_.hm.YtActionHandlerBehavior]),_.h("design:type",Object)],ml.prototype,"actionHandlerBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],ml.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],ml.prototype,"clickCommand",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.za}),_.h("design:type",Boolean)],ml.prototype,"miniMode",void 0);_.c([_.v(),_.h("design:type",String)],ml.prototype,"iconType",void 0);_.c([_.Z("data.titleText"),_.h("design:type",String),_.h("design:paramtypes",[])],ml.prototype,"titleAriaLabel",null);
_.c([_.Z("data.rating"),_.h("design:type",Object),_.h("design:paramtypes",[])],ml.prototype,"getRating",null);_.c([_.Z("data.price"),_.h("design:type",Object),_.h("design:paramtypes",[])],ml.prototype,"getPrice",null);_.c([_.Z("data.thirdLine"),_.h("design:type",Object),_.h("design:paramtypes",[])],ml.prototype,"getThirdLine",null);_.c([_.Z("data.fourthLine"),_.h("design:type",Object),_.h("design:paramtypes",[])],ml.prototype,"getFourthLine",null);
_.c([_.Z("data.fifthLine"),_.h("design:type",Object),_.h("design:paramtypes",[])],ml.prototype,"getFifthLine",null);_.c([_.Z("getRating"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ml.prototype,"computeRatingHidden",null);_.c([_.Z("getPrice"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ml.prototype,"computePriceHidden",null);_.c([_.Z("getThirdLine"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ml.prototype,"computeThirdLineHidden",null);
_.c([_.Z("getFourthLine"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ml.prototype,"computeFourthLineHidden",null);_.c([_.Z("getFifthLine"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ml.prototype,"computeFifthLineHidden",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data.energyIcon"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ml.prototype,"hasEnergyIcon",null);
_.c([_.Z("computePriceHidden","computeRatingHidden"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ml.prototype,"computeSecondaryTextHidden",null);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ml.prototype,"standardizeIconSize",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ml.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ml.prototype,"noBottomMargin",void 0);
_.c([_.v({reflectToAttribute:!0}),_.Z("data.layout"),_.h("design:type",String),_.h("design:paramtypes",[])],ml.prototype,"layout",null);_.c([_.Z("data.layout"),_.h("design:type",Object),_.h("design:paramtypes",[])],ml.prototype,"mediaThumbnailWidth",null);_.c([_.Z("layout"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ml.prototype,"useRoundedBadge",null);_.c([_.v(),_.h("design:type",String)],ml.prototype,"thumbnailObjectFit",void 0);
_.c([_.v(),_.h("design:type",Object)],ml.prototype,"thumbnailFitHeight",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ml.prototype,"dataChanged",null);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],ml.prototype,"onTap",null);_.c([_.Gm("click"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],ml.prototype,"onClick",null);
ml=_.c([_.E({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],ml);
_.R(ml,"ytd-display-ad-renderer",function(){if(BX$!==void 0)return BX$;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return BX$=q},{mode:1});var w$G;var uRx;var ydG;var $j4=new Map;var e8X=!1;var AH=function(){var q=_.Y.apply(this,arguments)||this;q.DEFAULT_TOOLTIP_OFFSET="10";q.TOOLTIP_OFFSET_NO_BANNER="-8";q.badges=null;q.noEndpoints=!1;q.wrapText=!1;q.forceVerified=!1;q.tooltipPosition="top";q.compactStyle=!1;q.height=0;q.lineHeight=0;return q};
_.O(AH,_.Y);_.k=AH.prototype;_.k.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.k.attached=function(){var q=this;this.observer=new MutationObserver(function(w,u){q.handleResized();u.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.k.detached=function(){this.observer&&this.observer.disconnect()};
_.k.logTooltipEvent=function(){_.T("kevlar_wiz_tooltip_event_killswitch")||e8X||(_.v5M("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),e8X=!0)};
_.k.handleWindowResized=function(){this.handleResized()};
_.k.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")))};
_.k.onHeightChanged=function(){if(this.verified){var q=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Et("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=q:this.textContainerEl.style.marginRight=q}};
_.k.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Et("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.k.handleResized=function(){var q=this;this.verified&&_.pi.addLowPriorityJob(function(){q.fitBackgroundToText();var w=getComputedStyle(q.hostElement).lineHeight;w&&(w=w.match(/\d+/))&&w.length&&(q.lineHeight=Number(w[0]));q.height=q.lineHeight&&!q.wrapText?q.lineHeight:q.textEl.offsetHeight})};
_.k.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var q=document.createRange(),w=_.A(this.textEl).children;w.length>0?q.selectNodeContents(w[0]):q.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(q.getBoundingClientRect().width)+"px"}};
_.k.computeChannelBadgeStyle=function(q){var w;if((q==null?0:(w=q.runs)==null?0:w.length)&&q.runs[0].textColor)return"--ytd-badge-icon-color:"+_.Ae(q.runs[0].textColor)+";"};
_.x$.Object.defineProperties(AH.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"?_.jN(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var q=this.get("badges.0.metadataBadgeRenderer.tooltip");if(q)return q}return _.lA(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
AH.prototype.onLineHeightChanged=AH.prototype.onLineHeightChanged;AH.prototype.onHeightChanged=AH.prototype.onHeightChanged;AH.prototype.onChannelNameChanged=AH.prototype.onChannelNameChanged;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],AH.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],AH.prototype,"badges",void 0);_.c([_.v(),_.h("design:type",Object)],AH.prototype,"channelName",void 0);
_.c([_.v(),_.h("design:type",Object)],AH.prototype,"noEndpoints",void 0);_.c([_.v(),_.h("design:type",Object)],AH.prototype,"wrapText",void 0);_.c([_.v(),_.h("design:type",Object)],AH.prototype,"forceVerified",void 0);_.c([_.v(),_.h("design:type",Object)],AH.prototype,"tooltipPosition",void 0);_.c([_.v(),_.h("design:type",String)],AH.prototype,"tooltip",void 0);_.c([_.v(),_.h("design:type",Boolean)],AH.prototype,"hasChannelArt",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],AH.prototype,"compactStyle",void 0);_.c([_.Wj("#text-container"),_.h("design:type",HTMLElement)],AH.prototype,"textContainerEl",void 0);_.c([_.Wj("#text"),_.h("design:type",Object)],AH.prototype,"textEl",void 0);_.c([_.Wj("#verified-tooltip"),_.h("design:type",HTMLElement)],AH.prototype,"verifiedTooltip",void 0);_.c([_.v(),_.h("design:type",Object)],AH.prototype,"height",void 0);
_.c([_.v(),_.h("design:type",Object)],AH.prototype,"lineHeight",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("badges","forceVerified"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],AH.prototype,"verified",null);_.c([_.Z("badges","verified"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],AH.prototype,"hideBadges",null);_.c([_.Z("channelName"),_.h("design:type",Object),_.h("design:paramtypes",[])],AH.prototype,"formattedName",null);
_.c([_.Z("badges","verified","formattedName"),_.h("design:type",String),_.h("design:paramtypes",[])],AH.prototype,"tooltipText",null);_.c([_.Z("hasChannelArt"),_.h("design:type",String),_.h("design:paramtypes",[])],AH.prototype,"tooltipOffset",null);_.c([_.nL("channelName"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AH.prototype,"onChannelNameChanged",null);
_.c([_.nL("height"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AH.prototype,"onHeightChanged",null);_.c([_.nL("lineHeight","height"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AH.prototype,"onLineHeightChanged",null);AH=_.c([_.E({is:"ytd-channel-name",disableElementRegistration:!0})],AH);
_.R(AH,"ytd-channel-name",function(){if(ydG!==void 0)return ydG;var q=document.createElement("template");_.f(q,'\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 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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return ydG=q},{mode:_.kB("kevlar_poly_si_batch_j036")?1:2});var JH=function(){var q=_.Y.apply(this,arguments)||this;q.standardizeIconSize=_.T("kevlar_system_icons");q.enableModernCommentBadges=_.T("enable_modern_comment_badges");return q};
_.O(JH,_.Y);JH.prototype.basicPaletteChanged=function(){var q;(q=this.data.color)!=null&&q.basicColorPaletteData&&_.ms(this.hostElement,this.data.color.basicColorPaletteData)};
JH.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var q,w=this.get("basicColorPaletteData.backgroundColor",(q=this.data)==null?void 0:q.color),u;q=this.get("basicColorPaletteData.foregroundTitleColor",(u=this.data)==null?void 0:u.color);u={};w?(w=_.Ae(w),u["--ytd-author-comment-badge-background-color"]=w):(u["--ytd-author-comment-badge-icon-background-color"]="transparent",u["--ytd-author-comment-badge-background-color"]="transparent");q?(w=_.Ae(q),u["--ytd-author-comment-badge-name-color"]=
w,u["--ytd-author-comment-badge-icon-color"]=w):u["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(u).length>0&&_.Pj(this.hostElement,u)}};
JH.prototype.useFilledIcons=function(q){return _.T("kevlar_system_icons")&&(q==="CHECK_CIRCLE_THICK"||q==="OFFICIAL_ARTIST_BADGE")};
_.x$.Object.defineProperties(JH.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
JH.prototype.colorChanged=JH.prototype.colorChanged;JH.prototype.basicPaletteChanged=JH.prototype.basicPaletteChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],JH.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],JH.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],JH.prototype,"standardizeIconSize",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],JH.prototype,"enableModernCommentBadges",void 0);
_.c([_.v({reflectToAttribute:!0}),_.Z("data.authorUnifiedVerified"),_.h("design:type",Object),_.h("design:paramtypes",[])],JH.prototype,"verified",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],JH.prototype,"creator",null);_.c([_.nL("data.color.basicColorPaletteData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],JH.prototype,"basicPaletteChanged",null);
_.c([_.nL("data.color"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],JH.prototype,"colorChanged",null);JH=_.c([_.E({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],JH);
_.R(JH,"ytd-author-comment-badge-renderer",function(){if(uRx!==void 0)return uRx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return uRx=q},{mode:1});var kRj;var zK=function(){return _.Y.apply(this,arguments)||this};
_.O(zK,_.Y);zK.prototype.computeThumbnailWidth=function(q){if(q==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],zK.prototype,"data",void 0);_.c([_.v({computed:"computeIcon_(data.icon)"}),_.h("design:type",String)],zK.prototype,"icon",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],zK.prototype,"surface",void 0);
_.c([_.v({reflectToAttribute:!0,value:_.T("enable_shrink_image_size_on_web_posts_singleton")}),_.h("design:type",Boolean)],zK.prototype,"searchSxsUx",void 0);zK=_.c([_.E({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],zK);
_.R(zK,"ytd-backstage-image-renderer",function(){if(kRj!==void 0)return kRj;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return kRj=q},{mode:1});var tYc;var ap=function(){var q=_.Y.apply(this,arguments)||this;q.isLoading=!1;q.selectedItemIndex=-1;return q};
_.O(ap,_.Y);_.k=ap.prototype;_.k.computeIsChannelOwner=function(q){if(!q)return!0;q=q[0];return!(q&&(q.signinEndpoint||q.selectServiceEndpoint))};
_.k.computeIsImagePoll=function(q){return(q==null?void 0:q.type)==="POLL_TYPE_IMAGE"};
_.k.computeIsTotalVotesDisabled=function(q){return!(q==null?0:q.totalVotes)};
_.k.thumbnailSrc=function(q){var w,u,y,e;return(q==null?0:(w=q.thumbnails)==null?0:(u=w[0])==null?0:u.url)?_.UY((y=q.thumbnails)==null?void 0:(e=y[0])==null?void 0:e.url):void 0};
_.k.progressWidth=function(q){return"width:"+(q?q*100:0)+"%;"};
_.k.textAreaWidth=function(q){return this.isImagePoll?null:"width:"+(q?q*100:0)+"%;"};
_.k.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.k.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var q=this.data.choices,w=0;w<q.length;w++)if(q[w].selected){this.selectedItemIndex=w;break}};
_.k.onPopupClosed=function(q,w){q=Number(this.pollVotes.selected);w.confirmed&&(this.selectChoice(q,!1),_.Pw(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.k.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.k.onYtCommentPollRevert=function(q,w){w&&(this.selectChoice(w.selectedChoiceIndex,!0),this.set("data.totalVotes",w.totalVotes))};
_.k.onYtServiceRequestSent=function(q,w){if(w.actions)for(q=0;q<w.actions.length;q++){var u=w.actions[q];_.C(u,df)&&this.set("data.totalVotes",_.C(u,df).totalVotes)}};
_.k.onYtServiceRequestCompleted=function(q){var w=this.get("detail.data.actionResults.0.feedback",q);q=this.get("detail.data.actionResults.0.status",q);if(w==="FEEDBACK_DESELECT"||w==="FEEDBACK_SELECT")this.isLoading=!1,q==="STATUS_FAILED"?_.t7(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.k.getEndpoint=function(q,w){return w===q?this.data.choices[w].deselectServiceEndpoint||null:this.data.choices[q].selectServiceEndpoint||null};
_.k.selectChoice=function(q,w){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var u=0;u<this.data.choices.length;u++){var y;if(q===this.selectedItemIndex){var e=!1;var t=y=null}else y=(e=u===q)?this.data.choices[u].voteRatioIfSelected:this.data.choices[u].voteRatioIfNotSelected,t=e?this.data.choices[u].votePercentageIfSelected:this.data.choices[u].votePercentageIfNotSelected;this.set("data.choices."+u+".voteRatio",y);
this.set("data.choices."+u+".votePercentage",t);this.set("data.choices."+u+".selected",e)}w||(this.isLoading=!0,(w=this.getEndpoint(q,this.selectedItemIndex))&&_.tG().resolve(_.PG).resolveCommand(w,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===q?-1:q};
_.x$.Object.defineProperties(ap.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
ap.prototype.onYtServiceRequestCompleted=ap.prototype.onYtServiceRequestCompleted;ap.prototype.onYtServiceRequestSent=ap.prototype.onYtServiceRequestSent;ap.prototype.onYtCommentPollRevert=ap.prototype.onYtCommentPollRevert;ap.prototype.onPopupClosed=ap.prototype.onPopupClosed;ap.prototype.dataChanged=ap.prototype.dataChanged;_.c([_.D(_.hU),_.h("design:type",Object)],ap.prototype,"paperItemBehavior",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ap.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.YE),_.h("design:type",Object)],ap.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ap.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],ap.prototype,"isLoading",void 0);_.c([_.v({computed:"computeIsChannelOwner(data.choices)"}),_.h("design:type",Boolean)],ap.prototype,"isChannelOwner",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.h("design:type",Boolean)],ap.prototype,"isImagePoll",void 0);_.c([_.v({computed:"computeIsTotalVotesDisabled(data)"}),_.h("design:type",Boolean)],ap.prototype,"isTotalVotesDisabled",void 0);_.c([_.v(),_.h("design:type",Object)],ap.prototype,"previousPollInfo",void 0);_.c([_.v(),_.h("design:type",Object)],ap.prototype,"selectedItemIndex",void 0);_.c([_.Wj("#poll-votes"),_.h("design:type",Object)],ap.prototype,"pollVotes",void 0);
_.c([_.Z("isChannelOwner"),_.h("design:type",Object),_.h("design:paramtypes",[])],ap.prototype,"endpointStyle",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ap.prototype,"dataChanged",null);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],ap.prototype,"onPopupClosed",null);
_.c([_.Gm("yt-comment-poll-revert"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],ap.prototype,"onYtCommentPollRevert",null);_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],ap.prototype,"onYtServiceRequestSent",null);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],ap.prototype,"onYtServiceRequestCompleted",null);ap=_.c([_.E({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],ap);
_.R(ap,"ytd-backstage-poll-renderer",function(){if(tYc!==void 0)return tYc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return tYc=q},{mode:2});var P$6;var X$T={autoplay:!1,loop:!1},FeP={simpleText:""},DW=function(){var q=_.Y.apply(this,arguments)||this;q.isLoading=!1;q.usesPanelLockup=!1;q.selectedItemIndex=-1;q.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},X$T,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});q.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},X$T,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});q.correctnessAnimationProps=[];q.correctnessAnimationRefs=[];return q};
_.O(DW,_.Y);_.k=DW.prototype;_.k.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.k.computeIsChannelOwner=function(q){if(!q)return!0;q=q[0];return!(q&&(q.signinEndpoint||q.selectServiceEndpoint))};
_.k.computeIsTotalVotesDisabled=function(q){return!(q==null?0:q.totalVotes)};
_.k.computeIsImageQuiz=function(q){return(q==null?void 0:q.type)==="POLL_TYPE_IMAGE"};
_.k.onExplanationChanged=function(){this.expander.reset()};
_.k.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var q=this.data.choices;if(q){this.maybeInitializeQuizLotties(q);for(var w=0;w<q.length;w++)if(q[w].isSelected||this.isChannelOwner&&q[w].isCorrect){this.selectedItemIndex=w;return}this.selectedItemIndex=-1}}};
_.k.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var q=this.selectedItemIndex,w=Number(this.quizVotes.selected);this.selectChoice(w);this.sendVoteAction(w,q);this.quizVotes.selected=-1;var u;q=!((u=this.data)==null?0:u.enableAnimation);this.maybePlayAnswerAnimations(q)}};
_.k.onYtCommentPollRevert=function(q,w){w&&(this.selectChoice(w.selectedChoiceIndex),this.set("data.totalVotes",w.totalVotes))};
_.k.onYtServiceRequestSent=function(q,w){if(w.actions)for(q=_.P(w.actions),w=q.next();!w.done;w=q.next())(w=_.C(w.value,df))&&this.set("data.totalVotes",w.totalVotes)};
_.k.onYtServiceRequestCompleted=function(q){var w=this.get("detail.data.actionResults.0.feedback",q);q=this.get("detail.data.actionResults.0.status",q);if(w==="FEEDBACK_DESELECT"||w==="FEEDBACK_SELECT")this.isLoading=!1,q==="STATUS_FAILED"?_.t7(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.k.getAnimationPropsForChoiceIndex=function(q,w){return w[q]};
_.k.maybePlayAnswerAnimations=function(q){q=q===void 0?!1:q;var w;if((w=this.data)!=null&&w.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){w=_.P(this.correctnessAnimationRefs);for(var u=w.next();!u.done;u=w.next()){var y=void 0,e=void 0;(y=u.value)==null||(e=y.lottieEl)==null||e.stop()}if(!(this.selectedItemIndex<0)){w=0;q&&(w=this.isCorrect?37:25);var t,X;(t=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(X=t.lottieEl)==null||X.goToAndPlay(q?w:0,!0);if(!(this.isCorrect||
(t=this.data.choices.findIndex(function(Q){return Q.isCorrect}),t<0))){var G,n;
(n=(G=this.correctnessAnimationRefs[t])==null?void 0:G.lottieEl)==null||n.goToAndPlay(37,!0);var N;G=(N=this.fadeContainers)==null?void 0:N.item(t);!q&&G&&this.fadeIn(G)}}}};
_.k.thumbnailSrc=function(q){var w,u,y,e;return(q==null?0:(w=q.thumbnails)==null?0:(u=w[0])==null?0:u.url)?_.UY((y=q.thumbnails)==null?void 0:(e=y[0])==null?void 0:e.url):void 0};
_.k.a11yVotedText=function(q,w){var u,y,e=((u=this.data)==null?void 0:(y=u.correctVotedText)==null?void 0:y.simpleText)||"",t,X;u=((t=this.data)==null?void 0:(X=t.votedText)==null?void 0:X.simpleText)||"";if(!w)return"";var G,n;if((G=this.data)==null?0:(n=G.choices)==null?0:n[q].isCorrect)return e;var N,Q;return((N=this.data)==null?0:(Q=N.choices)==null?0:Q[q].isSelected)?u:""};
_.k.getEndpoint=function(q,w){return w===q?this.data.choices[q].deselectServiceEndpoint||null:this.data.choices[q].selectServiceEndpoint||null};
_.k.sendVoteAction=function(q,w){if(q=this.getEndpoint(q,w))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(q)};
_.k.selectChoice=function(q){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var w=0;w<this.data.choices.length;w++)this.set("data.choices."+w+".isSelected",q===this.selectedItemIndex?!1:w===q);this.selectedItemIndex=this.selectedItemIndex===q?-1:q};
_.k.maybeInitializeQuizLotties=function(q){var w=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=q.map(function(u){return{animationConfig:u.isCorrect?w.baseCorrectLottiePlayerAnimationConfig:w.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){w.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(u){return u.animationRef||{}})};
_.k.fadeIn=function(q){q.classList.add("fade-in");_.ko(_.pi,function(){q.classList.remove("fade-in")},900)};
_.x$.Object.defineProperties(DW.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.T("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.lA(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 q,w;return((q=this.data)==null?void 0:(w=q.choices)==null?void 0:w.some(function(u){return u.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null||!q.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?FeP:this.data.choices[this.selectedItemIndex].explanation||FeP}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null||!q.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
DW.prototype.onYtServiceRequestCompleted=DW.prototype.onYtServiceRequestCompleted;DW.prototype.onYtServiceRequestSent=DW.prototype.onYtServiceRequestSent;DW.prototype.onYtCommentPollRevert=DW.prototype.onYtCommentPollRevert;DW.prototype.dataChanged=DW.prototype.dataChanged;DW.prototype.onExplanationChanged=DW.prototype.onExplanationChanged;_.c([_.D(_.hU),_.h("design:type",Object)],DW.prototype,"paperItemBehavior",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],DW.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],DW.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.gd.YtTaskEmitterBehavior),_.h("design:type",Object)],DW.prototype,"ytTaskEmitterBehavior",void 0);_.c([_.D(_.YE),_.h("design:type",Object)],DW.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],DW.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",Object)],DW.prototype,"isLoading",void 0);_.c([_.v(),_.h("design:type",Object)],DW.prototype,"usesPanelLockup",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.h("design:type",Boolean)],DW.prototype,"isChannelOwner",void 0);_.c([_.v({computed:"computeIsTotalVotesDisabled(data)"}),_.h("design:type",Boolean)],DW.prototype,"isTotalVotesDisabled",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.h("design:type",Boolean)],DW.prototype,"isImageQuiz",void 0);_.c([_.v(),_.h("design:type",Object)],DW.prototype,"previousQuizInfo",void 0);_.c([_.v(),_.h("design:type",Object)],DW.prototype,"selectedItemIndex",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("data","usesPanelLockup"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],DW.prototype,"shouldUseModernUi",null);
_.c([_.s6(".fade-container"),_.h("design:type",Object)],DW.prototype,"fadeContainers",void 0);_.c([_.v(),_.h("design:type",Array)],DW.prototype,"correctnessAnimationProps",void 0);_.c([_.Z("explanation","showCorrectAnswer"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],DW.prototype,"showExplanation",null);_.c([_.Z("isChannelOwner","isAttempted"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],DW.prototype,"showCorrectAnswer",null);
_.c([_.Z("isChannelOwner","isAttempted","data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],DW.prototype,"isQuizAnsweringDisabled",null);_.c([_.Z("isQuizAnsweringDisabled"),_.h("design:type",Object),_.h("design:paramtypes",[])],DW.prototype,"endpointStyle",null);_.c([_.Z("data","selectedItemIndex"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],DW.prototype,"isAttempted",null);
_.c([_.Z("data","selectedItemIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],DW.prototype,"explanation",null);_.c([_.Z("data","selectedItemIndex"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],DW.prototype,"isCorrect",null);_.c([_.Wj("ytd-expander"),_.h("design:type",Object)],DW.prototype,"expander",void 0);_.c([_.Wj("#quiz-votes"),_.h("design:type",Object)],DW.prototype,"quizVotes",void 0);
_.c([_.nL("explanation"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],DW.prototype,"onExplanationChanged",null);_.c([_.nL("data","isChannelOwner"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],DW.prototype,"dataChanged",null);_.c([_.Gm("yt-comment-quiz-revert"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],DW.prototype,"onYtCommentPollRevert",null);
_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],DW.prototype,"onYtServiceRequestSent",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],DW.prototype,"onYtServiceRequestCompleted",null);DW=_.c([_.E({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],DW);
_.R(DW,"ytd-backstage-quiz-renderer",function(){if(P$6!==void 0)return P$6;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return P$6=q},{mode:1});var GR6;var ZW=function(){return _.Y.apply(this,arguments)||this};
_.O(ZW,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ZW.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ZW.prototype,"data",void 0);ZW=_.c([_.E({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],ZW);
_.R(ZW,"ytd-post-uploaded-video-renderer",function(){if(GR6!==void 0)return GR6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return GR6=q},{mode:1});var nWT;var pQ=function(){return _.Y.apply(this,arguments)||this};
_.O(pQ,_.Y);pQ.prototype.useFilledIcons=function(q){return q==="SPONSORSHIP_STAR"};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],pQ.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],pQ.prototype,"data",void 0);pQ=_.c([_.E({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],pQ);
_.R(pQ,"ytd-sponsors-only-badge-renderer",function(){if(nWT!==void 0)return nWT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return nWT=q},{mode:1});var H36;var $z=function(){return _.Y.apply(this,arguments)||this};
_.O($z,_.Y);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],$z.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],$z.prototype,"data",void 0);$z=_.c([_.E({is:"ytd-child-video-renderer",disableElementRegistration:!0})],$z);
_.R($z,"ytd-child-video-renderer",function(){if(H36!==void 0)return H36;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return H36=q},{mode:1});var WeZ;var sCa;var vA=function(){var q=_.Y.apply(this,arguments)||this;q.size=0;q.enableWebModernCollectionsV2=_.T("web_modern_collections_v2");q.fallbackImageSize={height:void 0,width:9999};q.webModernCollections=!1;return q};
_.O(vA,_.Y);_.k=vA.prototype;_.k.computeBlurredImageSize=function(q){return q?{height:q*2,width:q*2}:this.fallbackImageSize};
_.k.computeImageSize=function(q){return q?{height:q,width:q}:this.fallbackImageSize};
_.k.computeObjectFit=function(q){return q?"FILL":"CONTAIN"};
_.k.computePreserve=function(q){return q?!0:!1};
_.k.setBackground=function(){var q,w;_.T("web_modern_collections_v2")&&((q=this.data)==null?0:(w=q.thumbnail)==null?0:w.sampledThumbnailColor)&&(q=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+q.red+","+q.green+","+q.blue+",1)")};
vA.prototype.setBackground=vA.prototype.setBackground;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],vA.prototype,"ytRendererBehavior",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],vA.prototype,"watchFeedThumbnail",void 0);_.c([_.v(),_.h("design:type",Object)],vA.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],vA.prototype,"size",void 0);
_.c([_.v({computed:"computeBlurredImageSize(size)"}),_.h("design:type",Object)],vA.prototype,"blurredImageSize",void 0);_.c([_.v({computed:"computeImageSize(size)"}),_.h("design:type",Object)],vA.prototype,"imageSize",void 0);_.c([_.v({computed:"computePreserve(size)"}),_.h("design:type",String)],vA.prototype,"preserve",void 0);_.c([_.v({computed:"computeObjectFit(size)"}),_.h("design:type",String)],vA.prototype,"objectFit",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],vA.prototype,"enableWebModernCollectionsV2",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],vA.prototype,"webModernCollections",void 0);_.c([_.nL("data.thumbnail.sampledThumbnailColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vA.prototype,"setBackground",null);vA=_.c([_.E({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],vA);
_.R(vA,"ytd-playlist-custom-thumbnail-renderer",function(){if(sCa!==void 0)return sCa;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return sCa=q},{mode:1});var Nq6;var bb=function(){return _.Y.apply(this,arguments)||this};
_.O(bb,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],bb.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Number)],bb.prototype,"width",void 0);bb=_.c([_.E({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],bb);
_.R(bb,"ytd-playlist-video-thumbnail-renderer",function(){if(Nq6!==void 0)return Nq6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Nq6=q},{mode:1});var QCT;var Yz=function(){return _.Y.apply(this,arguments)||this};
_.O(Yz,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Yz.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Number)],Yz.prototype,"width",void 0);Yz=_.c([_.E({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Yz);
_.R(Yz,"ytd-show-custom-thumbnail-renderer",function(){if(QCT!==void 0)return QCT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return QCT=q},{mode:1});var IwP;var gu=function(){return _.Y.apply(this,arguments)||this};
_.O(gu,_.Y);gu.prototype.useFilledIcons=function(q){return q==="MUSIC"||q==="COURSE"};
gu.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=zt(this.overlayColor,"0.8");else if(this.overlayColor){var q=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+q.red+","+q.green+","+q.blue+",0.8)"}};
_.x$.Object.defineProperties(gu.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)}}});
gu.prototype.overlayColorChanged=gu.prototype.overlayColorChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],gu.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],gu.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],gu.prototype,"overlayColor",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("data.icon","data.text"),_.h("design:type",Object),_.h("design:paramtypes",[])],gu.prototype,"overlayStyle",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("data.icon","data.text"),_.h("design:type",Object),_.h("design:paramtypes",[])],gu.prototype,"overlayTextStyle",null);_.c([_.nL("overlayColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gu.prototype,"overlayColorChanged",null);gu=_.c([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],gu);
_.R(gu,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(IwP!==void 0)return IwP;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return IwP=q},{mode:1});var i3k;var Ei=function(){var q=_.Y.apply(this,arguments)||this;q.active=!1;return q};
_.O(Ei,_.Y);Ei.prototype.computeIsSpinnerHidden=function(q){return(q==null?void 0:q.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
Ei.prototype.computeOverlayIcon=function(q){return(q==null?void 0:q.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(q==null?void 0:q.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ei.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],Ei.prototype,"active",void 0);Ei=_.c([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Ei);
_.R(Ei,"ytd-thumbnail-overlay-downloading-renderer",function(){if(i3k!==void 0)return i3k;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return i3k=q},{mode:1});var rdx;var Rp=function(){return _.Y.apply(this,arguments)||this};
_.O(Rp,_.Y);_.x$.Object.defineProperties(Rp.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Rp.prototype,"data",void 0);_.c([_.Z("data.text"),_.h("design:type",Object),_.h("design:paramtypes",[])],Rp.prototype,"text",null);Rp=_.c([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],Rp);
_.R(Rp,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(rdx!==void 0)return rdx;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return rdx=q},{mode:1});var Ul6,Tqk=function(){if(Ul6!==void 0)return Ul6;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Ul6=q};var cA=function(){return _.Y.apply(this,arguments)||this};
_.O(cA,_.Y);_.x$.Object.defineProperties(cA,{template:{configurable:!0,enumerable:!0,get:function(){return Tqk()}}});
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],cA.prototype,"animateEqualizer",void 0);cA=_.c([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],cA);_.eD()(cA,"ytd-thumbnail-overlay-equalizer",function(){return Tqk()},{allowedProps:["animateEqualizer"],
mode:1});var C$X;var SU=function(){var q=_.Y.apply(this,arguments)||this;q.nowPlayingBadge=_.T("web_now_playing_badge");q.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return q};
_.O(SU,_.Y);SU.prototype.activeChanged=function(){var q=this;_.T("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.KJ(this,function(){_.t7(q.hostElement,"yt-playlist-lockup-now-playing-active",q)})};
SU.prototype.onMiniplayerPlayStateChanged=function(q){var w,u=(w=_.C(_.Hh().currentEndpoint,_.LN))==null?void 0:w.videoId;this.isVideoPlaying=q&&(_.T("web_limit_now_playing_animation_killswitch")||this.videoId===u)};
SU.prototype.activeChanged=SU.prototype.activeChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],SU.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],SU.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],SU.prototype,"isVideoPlaying",void 0);_.c([_.v(),_.h("design:type",String)],SU.prototype,"videoId",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],SU.prototype,"equalizerOnly",void 0);_.c([_.v(),_.h("design:type",Boolean)],SU.prototype,"isActive",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],SU.prototype,"nowPlayingBadge",void 0);_.c([_.nL("isActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],SU.prototype,"activeChanged",null);
SU=_.c([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],SU);
_.R(SU,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(C$X!==void 0)return C$X;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return C$X=q},{mode:1});var dlk;var hH=function(){return _.Y.apply(this,arguments)||this};
_.O(hH,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],hH.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],hH.prototype,"data",void 0);hH=_.c([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],hH);
_.R(hH,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(dlk!==void 0)return dlk;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return dlk=q},{mode:_.kB("kevlar_poly_si_batch_j025")?1:2});var O33;var jU=function(){return _.Y.apply(this,arguments)||this};
_.O(jU,_.Y);jU.prototype.onDurationChanged=function(){var q,w;_.A(this.hostElement).querySelector("#progress").style.width=((w=(q=this.data)==null?void 0:q.percentDurationWatched)!=null?w:0)+"%"};
jU.prototype.onDurationChanged=jU.prototype.onDurationChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],jU.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],jU.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],jU.prototype,"isLive",void 0);_.c([_.nL("data.percentDurationWatched"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jU.prototype,"onDurationChanged",null);
jU=_.c([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],jU);
_.R(jU,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(O33!==void 0)return O33;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return O33=q},{mode:1});var oWT;var lb=function(){var q=_.Y.apply(this,arguments)||this;q.bottomPanel=!1;q.richGridOverlay=!1;q.watchFeedOverlay=!1;q.isCompact=!1;return q};
_.O(lb,_.Y);lb.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.x$.Object.defineProperties(lb.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.data)==null?void 0:(w=q.icon)==null?void 0:w.iconType)==="PLAY_ALL"&&_.T("kevlar_system_icons")}}});
lb.prototype.widthChanged=lb.prototype.widthChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],lb.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],lb.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Number)],lb.prototype,"width",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],lb.prototype,"bottomPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],lb.prototype,"richGridOverlay",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],lb.prototype,"watchFeedOverlay",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],lb.prototype,"isCompact",void 0);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],lb.prototype,"isIconFilled",null);_.c([_.nL("width","watchFeedOverlay"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lb.prototype,"widthChanged",null);
lb=_.c([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],lb);
_.R(lb,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(oWT!==void 0)return oWT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return oWT=q},{mode:1});var VYP;var fwF=["CLIP","SHORTS"],LQ=function(){var q=_.Y.apply(this,arguments)||this;q.animated=_.T("animated_live_badge_icon");q.hasIcon=!1;q.updateTimerIntervalId=0;q.timeSinceLive=0;return q};
_.O(LQ,_.Y);_.k=LQ.prototype;_.k.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.k.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.k.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.k.hasIconOrText=function(){var q,w;return!!(((q=this.data)==null?0:q.icon)||((w=this.data)==null?0:w.text))};
_.k.initializeLiveBadgeTimer=function(){var q=this,w,u=(w=this.liveBadgeData)==null?void 0:w.startTimestampSec;if(u&&this.canShowLiveBadgeTimer()){var y;w=Number((y=this.liveBadgeData)==null?void 0:y.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(u);this.updateTimerIntervalId=_.s8(function(){q.canShowLiveBadgeTimer()?q.timeSinceLive++:(q.timeSinceLive=0,window.clearInterval(q.updateTimerIntervalId))},w)}else this.timeSinceLive=0};
_.k.canShowLiveBadgeTimer=function(){var q=Date.now(),w,u;return q<(Number((w=this.liveBadgeData)==null?void 0:w.endTimestampSec)-1)*1E3&&q>Number((u=this.liveBadgeData)==null?void 0:u.startTimestampSec)*1E3};
_.x$.Object.defineProperties(LQ.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var q=this.data;var w=this.timeSinceLive;var u,y,e,t;a:{var X=q.style;if(X===void 0)X=16;else switch(X){case "LIVE":X=17;break a;default:X=16}}w={type:X,text:w?pi4({seconds:w}):_.lA(q.text),accessibilityText:(u=q.text)==null?void 0:(y=u.accessibility)==null?void 0:(e=y.accessibilityData)==null?void 0:e.label,icon:(t=q.icon)==null?void 0:t.iconType}}else w={};return w}},
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 q;return(q=this.data)==null?void 0:q.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 fwF.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
LQ.prototype.initializeLiveBadgeTimer=LQ.prototype.initializeLiveBadgeTimer;LQ.prototype.dataChanged=LQ.prototype.dataChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],LQ.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],LQ.prototype,"data",void 0);_.c([_.v({computed:"computeIcon_(data.icon)"}),_.h("design:type",String)],LQ.prototype,"icon",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],LQ.prototype,"animated",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.h("design:type",Boolean)],LQ.prototype,"hideTimeStatus",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],LQ.prototype,"hasIcon",void 0);_.c([_.v(),_.h("design:type",Object)],LQ.prototype,"timeSinceLive",void 0);_.c([_.Z("data","timeSinceLive"),_.h("design:type",Object),_.h("design:paramtypes",[])],LQ.prototype,"badgeShapeData",null);
_.c([_.Z("data","overlayType"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],LQ.prototype,"hideBadgeShape",null);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LQ.prototype,"dataChanged",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data.style"),_.h("design:type",Object),_.h("design:paramtypes",[])],LQ.prototype,"overlayStyle",null);
_.c([_.Z("data.liveBadgeData"),_.h("design:type",Object),_.h("design:paramtypes",[])],LQ.prototype,"liveBadgeData",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data.type"),_.h("design:type",Object),_.h("design:paramtypes",[])],LQ.prototype,"overlayType",null);_.c([_.Z("overlayType","overlayStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],LQ.prototype,"useFilledIcon",null);
_.c([_.I9("liveBadgeData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LQ.prototype,"initializeLiveBadgeTimer",null);LQ=_.c([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],LQ);
_.R(LQ,"ytd-thumbnail-overlay-time-status-renderer",function(){if(VYP!==void 0)return VYP;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return VYP=q},{mode:_.kB("kevlar_poly_si_batch_j035")?1:2});var mlT;var ME=function(){return _.Y.apply(this,arguments)||this};
_.O(ME,_.Y);ME.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"}}}}};
ME.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(q){if(this.hasPlaybackProgressBar)return{percentDurationWatched:q.percentDurationWatched}};
ME.prototype.computeHasPlaybackProgressBar=function(q){return!!q.percentDurationWatched&&q.percentDurationWatched>0};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ME.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],ME.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ME.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.h("design:type",Boolean)],ME.prototype,"hasPlaybackProgressBar",void 0);
ME=_.c([_.E({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],ME);
_.R(ME,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(mlT!==void 0)return mlT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return mlT=q},{mode:1});var Adr;var JdG=_.LL(function(q){var w=q.data;var u=q.children;var y=function(){return!!w().doubleStack};
return _.W("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!w().experimentEnabled}},_.W(_.r,{cond:w,
then:function(){return _.W("div",null,_.W(_.r,{cond:y,then:function(){var e={};return _.W("div",{class:_.HR("collections-stack-wiz__collection-stack2",function(){return w().customClassName2ndStack},(e["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return w().enableResponsiveMode},e)),
style:_.rm({"background-color":function(){return YyM(w())}})})}}),_.W("div",{class:_.HR("collections-stack-wiz__collection-stack1",function(){return w().customClassName1stStack},function(){return bl4(w().thumbnailSize?w().thumbnailSize:"medium")}),
style:_.rm({"background-color":function(){return YyM(w())}})}),u)}}))},"L");_.q9(JdG,"yt-collections-stack",{props:{data:_.pK}});var KQ=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};q.webModernCollections=!1;q.isSearch=!1;q.isDoubleStack=!1;q.thumbnailSize="medium";q.enableWebModernCollectionsV2=_.T("web_modern_collections_v2");return q};
_.O(KQ,_.Y);_.k=KQ.prototype;
_.k.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]]"}}}}}};
_.k.getThumbnailDetails=function(q){if(q!=null&&q.thumbnailRenderer){var w=q.thumbnailRenderer,u;if((u=w.playlistVideoThumbnailRenderer)==null?0:u.thumbnail)return w.playlistVideoThumbnailRenderer.thumbnail;var y;if((y=w.playlistCustomThumbnailRenderer)==null?0:y.thumbnail)return w.playlistCustomThumbnailRenderer.thumbnail;q=q.thumbnailRenderer;var e;if((e=q.showCustomThumbnailRenderer)==null?0:e.thumbnail)return q.showCustomThumbnailRenderer.thumbnail}};
_.k.computeOverlayColor=function(q){var w,u;if((w=this.getThumbnailDetails(q))==null?0:(u=w.darkColorPalette)==null?0:u.section2Color)return this.getThumbnailDetails(q).darkColorPalette.section2Color;var y;return(y=this.getThumbnailDetails(q))==null?void 0:y.sampledThumbnailColor};
_.k.computeWebModernCollections=function(q){if(q==null||!q.thumbnailOverlays)return!1;q=_.P(q.thumbnailOverlays);for(var w=q.next();!w.done;w=q.next()){var u=void 0;if((u=w.value)==null?0:u.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.k.computeNavigationEndpoint=function(q){return YGJ(q==null?void 0:q.navigationEndpoint)};
_.x$.Object.defineProperties(KQ.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var q=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:q==null?void 0:q.sampledThumbnailColor,vibrantColorPalette:q==null?void 0:q.vibrantColorPalette,darkColorPalette:q==null?void 0:q.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],KQ.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],KQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(Yo6),_.h("design:type",Object)],KQ.prototype,"ytdThumbnailBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],KQ.prototype,"componentBehavior",void 0);
_.c([_.v({value:!1}),_.h("design:type",Boolean)],KQ.prototype,"watchFeedThumbnail",void 0);_.c([_.v(),_.h("design:type",Number)],KQ.prototype,"customThumbnailSize",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],KQ.prototype,"hideAria",void 0);_.c([_.v(),_.h("design:type",Object)],KQ.prototype,"data",void 0);_.c([_.v({computed:"computeOverlayColor(data)"}),_.h("design:type",Object)],KQ.prototype,"overlayColor",void 0);
_.c([_.v({computed:"computeWebModernCollections(data)"}),_.h("design:type",Object)],KQ.prototype,"webModernCollections",void 0);_.c([_.v({computed:"computeNavigationEndpoint(data)"}),_.h("design:type",Object)],KQ.prototype,"computedNavigationEndpoint",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],KQ.prototype,"isSearch",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],KQ.prototype,"isDoubleStack",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],KQ.prototype,"thumbnailSize",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],KQ.prototype,"enableWebModernCollectionsV2",void 0);_.c([_.Z("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.h("design:type",Object),_.h("design:paramtypes",[])],KQ.prototype,"collectionStack",null);KQ=_.c([_.E({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],KQ);
_.R(KQ,"ytd-playlist-thumbnail",function(){if(Adr!==void 0)return Adr;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Adr=q},{mode:_.kB("kevlar_poly_si_batch_j025")?1:2});var z8T;var BA=function(){var q=_.Y.apply(this,arguments)||this;q.noEndpoints=!1;q.amsterdamPostMvp=_.T("web_amsterdam_post_mvp_playlists");q.badges=[];q.transferState="TRANSFER_STATE_UNKNOWN";return q};
_.O(BA,_.Y);_.k=BA.prototype;_.k.getMetadata=function(q){if(!q)return[];var w=[],u=q.shortViewCountText||q.viewCountText;u&&w.push(_.lA(u));q.publishedTimeText&&w.push(_.lA(q.publishedTimeText));q.upcomingEventData&&q.upcomingEventData.upcomingEventText&&w.push(_.pr(_.lA(q.upcomingEventData.upcomingEventText),Number(q.upcomingEventData.startTime)));return w};
_.k.observeDataForBylineSeparator=function(){this.data&&_.ef(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.k.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.Ae(this.metadataColor)};
_.k.getSimpleString=function(q){return _.lA(q)};
_.k.isBylineHidden=function(q){return this.noByline||!((q==null?0:q.longBylineText)||(q==null?0:q.shortBylineText))};
_.k.isMetadataHidden=function(q){var w;return((w=this.getMetadata(q))==null?void 0:w.length)===0};
_.k.isBylineMetadataSeparatorHidden=function(q){return this.isMetadataHidden(q)||!this.shouldShowVideoInfo};
_.k.isLongByline=function(q,w){return w&&!(q==null||!q.longBylineText)};
_.x$.Object.defineProperties(BA.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var q;return this.amsterdamPostMvp&&!((q=this.data)==null||!q.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 _.T("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
BA.prototype.metadataColorChanged=BA.prototype.metadataColorChanged;BA.prototype.observeDataForBylineSeparator=BA.prototype.observeDataForBylineSeparator;_.c([_.D(_.fU),_.h("design:type",Object)],BA.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],BA.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],BA.prototype,"noEndpoints",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],BA.prototype,"isSlimShort",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],BA.prototype,"radioMeta",void 0);_.c([_.v({selector:_.$H}),_.h("design:type",Object)],BA.prototype,"isGridViewEnabled",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],BA.prototype,"richMeta",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],BA.prototype,"amsterdamPostMvp",void 0);_.c([_.v(),_.h("design:type",Boolean)],BA.prototype,"noByline",void 0);
_.c([_.v({computed:"isLongByline(data, radioMeta)"}),_.h("design:type",Boolean)],BA.prototype,"longByline",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],BA.prototype,"truncateMetadataLine",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],BA.prototype,"miniMode",void 0);_.c([_.v(),_.h("design:type",Number)],BA.prototype,"metadataColor",void 0);_.c([_.v(),_.h("design:type",Array)],BA.prototype,"badges",void 0);
_.c([_.v({selector:_.pa,selectorArgs:["data.videoId"]}),_.h("design:type",String)],BA.prototype,"transferState",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],BA.prototype,"isDownloading",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],BA.prototype,"typographyBump",void 0);_.c([_.Wj("#metadata-line"),_.h("design:type",HTMLElement)],BA.prototype,"metadataLine",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BA.prototype,"observeDataForBylineSeparator",null);_.c([_.nL("metadataColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BA.prototype,"metadataColorChanged",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],BA.prototype,"shouldShowVideoInfo",null);
_.c([_.Z("badges"),_.h("design:type",String),_.h("design:paramtypes",[])],BA.prototype,"inlineBadgeClass",null);_.c([_.Z("longByline"),_.h("design:type",String),_.h("design:paramtypes",[])],BA.prototype,"longBylineClass",null);_.c([_.Z("data","longByline"),_.h("design:type",Object),_.h("design:paramtypes",[])],BA.prototype,"bylineText",null);_.c([_.Z("isGridViewEnabled","data"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],BA.prototype,"watchFeedBigThumbs",null);
BA=_.c([_.E({is:"ytd-video-meta-block",disableElementRegistration:!0})],BA);
_.R(BA,"ytd-video-meta-block",function(){if(z8T!==void 0)return z8T;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return z8T=q},{mode:_.kB("kevlar_poly_si_batch_j080")?1:2});_.JE("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var xz=function(){var q=_.Y.apply(this,arguments)||this;q.displayItemCount=2;q.isBackstagePlaylist=!1;q.isPostCompactPlaylist=!1;q.shouldShowChannelThumbnail=!1;q.useModernCollectionsV2=_.T("web_modern_collections_v2");return q};
_.O(xz,_.Y);_.k=xz.prototype;_.k.computeFirstVideos=function(q,w){return q===void 0||w===void 0?[]:q.slice(0,w)};
_.k.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var q=this.data.thumbnailRenderer;q.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",q.playlistVideoThumbnailRenderer.thumbnail);q.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",q.playlistCustomThumbnailRenderer.thumbnail)}};
_.k.computeThumbnailHeight=function(q,w,u,y,e){return y?e==="BIG"?280:e==="MASSIVE"?337:234:u?240:w?72:q?118:138};
_.k.computeThumbnailWidth=function(q,w,u,y,e){return y?e==="MEDIUM"?450:e==="BIG"?500:e==="MASSIVE"?600:420:u?360:w?128:q?210:246};
_.k.computeUseBiggerThumbs=function(q){return q&&_.T("enable_desktop_search_bigger_thumbs")};
_.k.computeShouldShowChannelThumbnail=function(q,w){return q&&!(w==null||!w.channelThumbnail)};
_.x$.Object.defineProperties(xz.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
xz.prototype.dataChanged=xz.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.$p),_.h("design:type",Object)],xz.prototype,"ytdLockupBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],xz.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],xz.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],xz.prototype,"displayItemCount",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],xz.prototype,"isBackstagePlaylist",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],xz.prototype,"isPostCompactPlaylist",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],xz.prototype,"isSearch",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.h("design:type",Boolean)],xz.prototype,"useBiggerThumbs",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.GQ("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],xz.prototype,"biggerThumbsStyle",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],xz.prototype,"isDownloads",void 0);_.c([_.v({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.h("design:type",Object)],xz.prototype,"shouldShowChannelThumbnail",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],xz.prototype,"useModernCollectionsV2",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xz.prototype,"dataChanged",null);_.c([_.Z("isSearch"),_.h("design:type",String),_.h("design:paramtypes",[])],xz.prototype,"stackThumbnailSize",null);xz=_.c([_.E({is:"ytd-playlist-renderer",disableElementRegistration:!0})],xz);
_.R(xz,"ytd-playlist-renderer",function(){if(WeZ===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);WeZ=q}q=WeZ;return q},{mode:1});var awj;var Dlr;var qw=function(){var q=_.Y.apply(this,arguments)||this;q.collections=!!_.T("web_modern_collections_v2");q.startX=0;return q};
_.O(qw,_.Y);qw.prototype.onEndpointMouseDown=function(q){this.startX=q.clientX};
qw.prototype.onEndpointClick=function(q){this.startX!==q.clientX&&(q.preventDefault(),q.stopPropagation())};
qw.prototype.computeObjectFit=function(q){return q==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||q==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||q==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
qw.prototype.computeCardStyle=function(q){return q?q.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.x$.Object.defineProperties(qw.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var q,w;return this.collections&&((q=this.data)==null?void 0:(w=q.searchRefinementCardRendererStyle)==null?void 0:w.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}}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],qw.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],qw.prototype,"data",void 0);_.c([_.v({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.h("design:type",Number)],qw.prototype,"objectFit",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.h("design:type",String)],qw.prototype,"cardStyle",void 0);
_.c([_.v({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],qw.prototype,"roundContainer",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],qw.prototype,"collections",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],qw.prototype,"isAlbumCard",null);_.c([_.Z("data","collections","isAlbumCard"),_.h("design:type",Object),_.h("design:paramtypes",[])],qw.prototype,"collectionStack",null);
qw=_.c([_.E({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],qw);
_.R(qw,"ytd-search-refinement-card-renderer",function(){if(Dlr!==void 0)return Dlr;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Dlr=q},{mode:1});var Z3c;var wy=function(){var q=_.Y.apply(this,arguments)||this;q.isRichGrid=!1;return q};
_.O(wy,_.Y);_.c([_.v(),_.h("design:type",Object)],wy.prototype,"data",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],wy.prototype,"componentBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],wy.prototype,"ytdReduxBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],wy.prototype,"isRichGrid",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.za}),_.h("design:type",Boolean)],wy.prototype,"miniMode",void 0);
wy=_.c([_.E({is:"ytd-game-details-renderer",disableElementRegistration:!0})],wy);
_.R(wy,"ytd-game-details-renderer",function(){if(Z3c!==void 0)return Z3c;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Z3c=q},{mode:1});var p$r;var $lF;var ul=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return q};
_.O(ul,_.Y);_.k=ul.prototype;_.k.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.k.currentStateData=function(q){var w=q||this.data;return w&&w.states&&w.currentStateId!=null?w.states.find(function(u){return u.stateId===w.currentStateId})||null:null};
_.k.currentStateRendererData=function(q){return(q=this.currentStateData(q))&&q.state&&q.state.buttonRenderer?q.state.buttonRenderer:null};
_.k.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())};
_.k.computeButtonIcon=function(q){q=this.currentStateRendererData(q);var w;return(q==null?0:(w=q.icon)==null?0:w.iconType)?q.icon.iconType.toLowerCase():null};
_.k.computeAccessibility=function(q){return(q=this.currentStateRendererData(q))&&q.accessibilityData?q.accessibilityData.accessibilityData||null:null};
_.k.computeButtonClass=function(q){var w=this.currentStateRendererData(q);if(!w)return"";q="";var u=w.style;u&&(q+=u.toLowerCase().replace(/_/g,"-")+" ");(w=w.size)&&(q+=w.toLowerCase().replace(/_/g,"-")+" ");return q.trim()};
_.k.computeServiceEndpoint=function(q){if(!q)return null;var w=q&&q.serviceEndpoint,u=this.get("command.commandMetadata.webCommandMetadata.sendPost",q);return w?w:u&&q.command?q.command:null};
_.k.computeBellMenuItemParams=function(q){var w;q=(w=_.C(q==null?void 0:q.command,_.Ww))==null?void 0:w.commands;if(!q||q.length===0)return null;w=_.C(q[0],_.Ou);var u,y;return(w==null?0:(u=w.popup)==null?0:(y=u.menuPopupRenderer)==null?0:y.items)?w.popup.menuPopupRenderer.items.map(function(e){return e.menuServiceItemRenderer.trackingParams}):null};
_.k.handleBellMenuOpenSelectedAction=function(q){var w=q.trackingParams,u=this.computeBellMenuItemParams(this.data);this.data&&w&&u&&u.includes(w)&&this.ytRenderButtonBehavior._setButtonIcon(q.icon.iconType.toLowerCase())};
_.k.onYtServiceRequestCompleted=function(q,w){(q=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",w))&&this.set("data",q)};
_.k.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.k.resetState=function(){this.set("data.currentStateId",3)};
_.k.onYtButtonTapHandler=function(){if(this.data){var q=this.currentStateRendererData(this.data);q&&this.ytRendererBehavior.logExplicitClick(q)}};
ul.prototype.onYtServiceRequestError=ul.prototype.onYtServiceRequestError;ul.prototype.onYtServiceRequestCompleted=ul.prototype.onYtServiceRequestCompleted;ul.prototype.stateChanged=ul.prototype.stateChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ul.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],ul.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.D(PY.YtRenderButtonBehavior),_.h("design:type",Object)],ul.prototype,"ytRenderButtonBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ul.prototype,"data",void 0);_.c([_.I9("data","data.currentStateId"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ul.prototype,"stateChanged",null);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],ul.prototype,"onYtServiceRequestCompleted",null);_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],ul.prototype,"onYtServiceRequestError",null);ul=_.c([_.E({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],ul);
_.R(ul,"ytd-subscription-notification-toggle-button-renderer",function(){if($lF!==void 0)return $lF;var q=document.createElement("template");_.f(q,"\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");q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return $lF=q},{mode:1});var vWZ;var yw=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};q.tapHandler=function(){if(q.data){var w=q.currentStateRendererData();w&&q.ytRendererBehavior.logExplicitClick(w)}};
return q};
_.O(yw,_.Y);_.k=yw.prototype;_.k.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.k.currentStateData=function(){var q=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(w){return w.stateId===q.data.currentStateId})||null:null};
_.k.currentStateRendererData=function(){var q=this.currentStateData();return q&&q.state&&q.state.buttonRenderer?q.state.buttonRenderer:null};
_.k.computeAccessibilityLabel=function(){var q,w,u;return(q=this.currentStateRendererData())==null?void 0:(w=q.accessibilityData)==null?void 0:(u=w.accessibilityData)==null?void 0:u.label};
_.k.computeBellMenuItemParams=function(){var q,w,u=(w=_.C((q=this.data)==null?void 0:q.command,_.Ww))==null?void 0:w.commands;if(!u||u.length===0)return null;q=_.C(u[0],_.Ou);var y,e;return(q==null?0:(y=q.popup)==null?0:(e=y.menuPopupRenderer)==null?0:e.items)?q.popup.menuPopupRenderer.items.map(function(t){return t.menuServiceItemRenderer.trackingParams}):null};
_.k.handleBellMenuOpenSelectedAction=function(q){var w=q.trackingParams,u=this.computeBellMenuItemParams();if(this.data&&w&&u&&u.includes(w)&&(q==null||!q.isDisabled)){var y;((y=_.C(q.serviceEndpoint,_.NU))==null?void 0:y.signal)!=="CLIENT_SIGNAL"&&(this.icon=q.icon.iconType)}};
_.k.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.k.onYtServiceRequestCompleted=function(q,w){if(q=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",w))this.icon=void 0,this.set("data",q)};
_.k.onYtServiceRequestError=function(){this.icon=void 0};
_.x$.Object.defineProperties(yw.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var q=this.data,w=this.textLabel,u=this.hostElement,y=this.computeAccessibilityLabel(),e=this.tapHandler,t=this.isOverlay?"overlay":"mono",X=(q==null?0:q.disableButton)?"disabled":"active";w=w?_.JB(w):void 0;return{style:t,type:"tonal",state:X,size:"M",focused:!1,formattedButtonText:w,iconPosition:"leading-trailing",onTap:Rou(q,e,u),accessibilityLabel:y}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var q=this.currentStateRendererData(),w,u,y=(u=this.icon)!=null?u:q==null?void 0:(w=q.icon)==null?void 0:w.iconType;if(y)return _.Fy(y)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var q,w,u=(q=this.data)==null?void 0:(w=q.secondaryIcon)==null?void 0:w.iconType;if(u)return _.Fy(u)}}});
yw.prototype.onYtServiceRequestError=yw.prototype.onYtServiceRequestError;yw.prototype.onYtServiceRequestCompleted=yw.prototype.onYtServiceRequestCompleted;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],yw.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],yw.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],yw.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],yw.prototype,"textLabel",void 0);
_.c([_.v(),_.h("design:type",String)],yw.prototype,"icon",void 0);_.c([_.v(),_.h("design:type",Boolean)],yw.prototype,"isOverlay",void 0);_.c([_.Z("data.*","textLabel"),_.h("design:type",Object),_.h("design:paramtypes",[])],yw.prototype,"computedButtonShape",null);_.c([_.Z("data.*","icon"),_.h("design:type",Object),_.h("design:paramtypes",[])],yw.prototype,"computedIcon",null);_.c([_.Z("data.*"),_.h("design:type",Object),_.h("design:paramtypes",[])],yw.prototype,"computedSecondaryIcon",null);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],yw.prototype,"onYtServiceRequestCompleted",null);_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],yw.prototype,"onYtServiceRequestError",null);yw=_.c([_.E({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],yw);
_.R(yw,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(vWZ!==void 0)return vWZ;var q=document.createElement("template");_.f(q,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return vWZ=q},{mode:_.kB("kevlar_poly_si_batch_j081")?1:2});var b33;_.q9(pKx,"yt-animated-action",{props:{backgroundLottieRef:_.pK,foregroundLottieRef:_.pK,wrapperClass:_.pK,disableAnimation:_.pK},unsafeExternallySettableAttributes:new Set(["key"])});var ej=function(){var q=_.Y.apply(this,arguments)||this;q.animatedActionEnabled=_.T("web_animated_actions");q.foregroundLottieRef={};q.backgroundLottieRef={};q.forceIconOnly=!1;q.showTextWhileAnimating=!1;q.keyboardFocused=!1;q.isAnimating=!1;q.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return q};
_.O(ej,_.Y);_.k=ej.prototype;_.k.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.k.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]]"}}}}}};
_.k.attached=function(){this.keyboardFocused=!1};
_.k.onYtServiceRequestSent=function(q,w){(this.get("endpoint.subscribeEndpoint",w)||this.get("endpoint.unsubscribeEndpoint",w))&&this.updateSubscriptionState(!this.subscribed)};
_.k.onYtServiceRequestCompleted=function(q,w){(q=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",w.data))&&this.bellButton&&(this.bellButton.data=q)};
_.k.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Pj(this.hostElement)};
_.k.onPlayerSubscribe=function(q){this.isCompactRed()||q!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.k.onPlayerUnsubscribe=function(q){this.isCompactRed()||q!==this.data.channelId||this.updateSubscriptionState(!1)};
_.k.handleUpdateSubscribeButtonAction=function(q){q=_.C(q,Oyk);var w;q&&q.channelId===((w=this.data)==null?void 0:w.channelId)&&this.updateSubscriptionState(!!q.subscribed)};
_.k.computeButtonStyle=function(q){return this.get("style.styleType",q)||null};
_.k.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.k.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.k.updateSubscriptionState=function(q){if(q!==this.subscribed){this.set("data.subscribed",q);var w,u=(w=this.data)==null?void 0:w.subscribedEntityKey;u&&this.ytdReduxBehavior.dispatch(_.IH("subscriptionStateEntity",u,{key:u,subscribed:q}));this.isCompactRed()||_.t7(this.hostElement,"yt-subscription-changed",q);q||(_.Pw(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!q),q&&this.hasBellButton&&this.startAnimation())}};
_.k.startAnimation=function(){var q=this;if(!this.isAnimating){var w=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var u;(u=this.backgroundLottieRef.lottieEl)==null||u.goToAndPlay(0);var y;(y=this.foregroundLottieRef.lottieEl)==null||y.goToAndPlay(0);_.pi.addJob(function(){q.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.pi.addJob(function(){q.updateContainerToFitContent(!!q.subscribed,!0)},2,1500);
_.pi.addJob(function(){q.isAnimating=!1},2,w)}};
_.k.maybeAnimateBellIcon=function(){var q=_.y6(this.hostElement).querySelector("yt-animated-icon");if(q){var w;(w=q.animationRef.lottieEl)==null||w.goToAndPlay(0)}};
_.k.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.k.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.k.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var q;this.unsubscribedWidth=(q=this.subscribeButtonShape)==null?void 0:q.getBoundingClientRect().width}var w;this.subscribedWidth=(w=this.bellButton)==null?void 0:w.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.k.updateContainerToFitContent=function(q,w){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(q?(q=this.subscribedWidth,w=this.isAnimating&&!w,this.subscribedIconOnlyWidth===void 0||w||(q=this.subscribedIconOnlyWidth),this.hostElement.style.width=q+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.k.clearContainerSize=function(){this.hostElement.style.width=""};
_.k.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.k.maybeSetSubscribedButtonIconOnlyWidth=function(){var q=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 w;q.subscribedIconOnlyWidth=(w=q.bellButton)==null?void 0:w.getBoundingClientRect().width;requestAnimationFrame(function(){if(q.bellButton){var u;q.bellButton.textLabel=
(u=q.data)==null?void 0:u.subscribedButtonText}})})))};
_.x$.Object.defineProperties(ej.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 q;return(q=this.data)==null?void 0:q.subscribedButtonText}var w;return this.forceIconOnly?void 0:(w=this.data)==null?void 0:w.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var q,w,u=((q=this.data)==null?void 0:(w=q.timedAnimationData)==null?void 0:w.animationTiming)||[];return{uniqueId:"subscribe",timings:u,enabled:u.length>0&&!this.subscribed,experimentEnabled:u.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var q;return!this.subscribed&&((q=this.data)==null?void 0:q.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 q={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var w=q.renderer;var u=q.element;var y=q.subscribed;var e=q.commandController;var t=q.isOverlay;q=q.config;var X=jnj(w,y);t&&(X.style="overlay");t=Object;var G=t.assign,n;a:switch((n=w.style)==null?void 0:n.styleType){case "COMPACT_GRAY":case "COMPACT_RED":n={size:"S"};break a;default:n={size:"M"}}var N=hoy(w,y);var Q=
(Q=y?w.subscribedButtonText:w.unsubscribedButtonText)?_.JB(Q):void 0;return G.call(t,{},X,n,{focused:!1,toggled:y,accessibilityLabel:N,formattedButtonText:Q,onTap:Syj(w,q,y,u,e)})}}}});
ej.prototype.onMouseDown=ej.prototype.onMouseDown;ej.prototype.onDataChanged=ej.prototype.onDataChanged;ej.prototype.observedSubscribed=ej.prototype.observedSubscribed;ej.prototype.onYtServiceRequestCompleted=ej.prototype.onYtServiceRequestCompleted;ej.prototype.onYtServiceRequestSent=ej.prototype.onYtServiceRequestSent;ej.prototype.maybeUpdateBellButtonText=ej.prototype.maybeUpdateBellButtonText;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],ej.prototype,"ytComponentBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],ej.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ej.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],ej.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],ej.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ej.prototype,"data",void 0);
_.c([_.v({selectorArgs:["data.subscribedEntityKey"],selector:sks}),_.h("design:type",Object)],ej.prototype,"subscriptionStateEntity",void 0);_.c([_.v({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.h("design:type",Boolean)],ej.prototype,"subscribed",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],ej.prototype,"branded",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ej.prototype,"animatedActionEnabled",void 0);
_.c([_.v(),_.h("design:type",Object)],ej.prototype,"foregroundLottieRef",void 0);_.c([_.v(),_.h("design:type",Object)],ej.prototype,"backgroundLottieRef",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],ej.prototype,"overlayButton",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.h("design:type",Object)],ej.prototype,"buttonStyle",void 0);_.c([_.v(),_.h("design:type",Object)],ej.prototype,"forceIconOnly",void 0);
_.c([_.v(),_.h("design:type",Object)],ej.prototype,"showTextWhileAnimating",void 0);_.c([_.v({value:function(){return!!_.tG().resolve(_.kF(_.LK))&&_.T("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.h("design:type",Boolean)],ej.prototype,"useKeyboardFocused",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ej.prototype,"keyboardFocused",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ej.prototype,"isAnimating",void 0);_.c([_.Z("data.notificationPreferenceButton.*"),_.h("design:type",Object),_.h("design:paramtypes",[])],ej.prototype,"hasBellButton",null);
_.c([_.nL("subscribedButtonText"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ej.prototype,"maybeUpdateBellButtonText",null);_.c([_.Z("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.h("design:type",Object),_.h("design:paramtypes",[])],ej.prototype,"subscribedButtonText",null);_.c([_.Z("data.timedAnimationData.animationTiming","subscribed"),_.h("design:type",Object),_.h("design:paramtypes",[])],ej.prototype,"smartimationSettings",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.h("design:type",Object),_.h("design:paramtypes",[])],ej.prototype,"subscribeButtonHidden",null);_.c([_.v({reflectToAttribute:!0}),_.Z("subscribed","hasBellButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],ej.prototype,"subscribeButtonInvisible",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("subscribed"),_.h("design:type",Object),_.h("design:paramtypes",[])],ej.prototype,"unsubscribeButtonHidden",null);_.c([_.Wj("ytd-subscription-notification-toggle-button-renderer-next"),_.h("design:type",Object)],ej.prototype,"bellButton",void 0);_.c([_.Wj("#subscribe-button-shape"),_.h("design:type",HTMLElement)],ej.prototype,"subscribeButtonShape",void 0);
_.c([_.Z("overlayButton","subscribed","data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ej.prototype,"buttonShape",null);_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],ej.prototype,"onYtServiceRequestSent",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],ej.prototype,"onYtServiceRequestCompleted",null);
_.c([_.nL("subscribed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ej.prototype,"observedSubscribed",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ej.prototype,"onDataChanged",null);_.c([_.Gm("mousedown"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],ej.prototype,"onMouseDown",null);
ej=_.c([_.E({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],ej);
_.R(ej,"ytd-subscribe-button-renderer",function(){if(b33!==void 0)return b33;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return b33=q},{mode:1});var kL=function(){var q=_.Y.apply(this,arguments)||this;q.isRichGrid=!1;return q};
_.O(kL,_.Y);kL.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"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],kL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],kL.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],kL.prototype,"isRichGrid",void 0);kL=_.c([_.E({is:"ytd-game-card-renderer",disableElementRegistration:!0})],kL);
_.R(kL,"ytd-game-card-renderer",function(){if(p$r!==void 0)return p$r;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return p$r=q},{mode:1});var ti={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.T("defer_menus")&&!Jik?0:void 0,waitForSignal:"eocs"};var Y2j;var gW$;var Pt=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return q};
_.O(Pt,_.Y);_.k=Pt.prototype;_.k.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.k.onSeriesReminderStateEntityChange=function(){var q,w,u;((q=this.eventReminderStateEntity)==null?0:q.key)&&((w=this.seriesReminderStateEntity)==null?void 0:w.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((u=this.eventReminderStateEntity)==null?void 0:u.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.IH("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.k.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.k.onYtServiceRequestError=function(){var q;this.updateReminderStateEntitiesFromButtonState((q=this.data)==null?void 0:q.currentState)};
_.k.handleUpdateUpcomingEventReminderButtonStateCommand=function(q){if(q=_.C(q,E9G)){var w,u=(w=this.data)==null?void 0:w.targetId;u&&q.targetId===u&&_.vj(this.updateReminderStateEntitiesFromButtonState.bind(this,q.state))}};
_.k.getButtonStateFromReminderState=function(){var q;if(((q=this.seriesReminderStateEntity)==null?void 0:q.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var w;if(((w=this.eventReminderStateEntity)==null?void 0:w.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var u,y;if(((u=this.seriesReminderStateEntity)==null?void 0:u.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((y=this.eventReminderStateEntity)==
null?void 0:y.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var e;return(e=this.data)==null?void 0:e.currentState};
_.k.updateReminderStateEntitiesFromButtonState=function(q){if(q){switch(q){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":q="UPCOMING_EVENT_REMINDER_STATE_NONE";var w="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":q="UPCOMING_EVENT_REMINDER_STATE_SINGLE";w="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":q="UPCOMING_EVENT_REMINDER_STATE_NONE";w="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var u;
((u=this.eventReminderStateEntity)==null?0:u.key)&&this.ytdReduxBehavior.dispatch(_.IH("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:q})));var y;((y=this.seriesReminderStateEntity)==null?0:y.key)&&this.ytdReduxBehavior.dispatch(_.IH("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:w})))}};
_.x$.Object.defineProperties(Pt.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var q=this.getButtonStateFromReminderState(),w,u;if(q&&((w=this.data)==null?0:(u=w.states)==null?0:u.length))for(w=_.P(this.data.states),u=w.next();!u.done;u=w.next()){u=u.value;var y=void 0;if(((y=_.C(u,RS6))==null?void 0:y.state)===q)return _.C(u,RS6)}}}});
Pt.prototype.onYtServiceRequestError=Pt.prototype.onYtServiceRequestError;Pt.prototype.onYtServiceRequestCompleted=Pt.prototype.onYtServiceRequestCompleted;Pt.prototype.onSeriesReminderStateEntityChange=Pt.prototype.onSeriesReminderStateEntityChange;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Pt.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Pt.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],Pt.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Pt.prototype,"data",void 0);_.c([_.v({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:Qky}),_.h("design:type",Object)],Pt.prototype,"eventReminderStateEntity",void 0);
_.c([_.v({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(q,w){return _.HQ(q.entities,"sportsSeriesReminderStateEntity",w)}}),
_.h("design:type",Object)],Pt.prototype,"seriesReminderStateEntity",void 0);_.c([_.Z("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],Pt.prototype,"currentButtonStateRenderer",null);_.c([_.nL("seriesReminderStateEntity"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Pt.prototype,"onSeriesReminderStateEntityChange",null);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Pt.prototype,"onYtServiceRequestCompleted",null);_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Pt.prototype,"onYtServiceRequestError",null);Pt=_.c([_.E({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],Pt);
_.R(Pt,"ytd-upcoming-event-reminder-button-renderer",function(){if(gW$!==void 0)return gW$;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);
return gW$=q},{mode:1});var EWk;var Xr=function(){return _.Y.apply(this,arguments)||this};
_.O(Xr,_.Y);Xr.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.x$.Object.defineProperties(Xr.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}},
textAriaLabel:{configurable:!0,enumerable:!0,get:function(){if(_.T("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Xr.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Xr.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Xr.prototype,"shelfDismissal",void 0);_.c([_.Z("data.responseText"),_.h("design:type",Object),_.h("design:paramtypes",[])],Xr.prototype,"text",null);
_.c([_.Z("data.responseText"),_.h("design:type",Object),_.h("design:paramtypes",[])],Xr.prototype,"textAriaLabel",null);Xr=_.c([_.E({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Xr);
_.R(Xr,"ytd-notification-multi-action-renderer",function(){if(EWk!==void 0)return EWk;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return EWk=q},{mode:1});var R86;var Fr=function(){return _.Y.apply(this,arguments)||this};
_.O(Fr,_.Y);Fr.prototype.ready=function(){var q=this;_.A(this.hostElement).querySelector("#undo").addEventListener("tap",function(){q.onUndoTap()})};
Fr.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.tG().resolve(_.PG).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Fr.prototype,"data",void 0);Fr=_.c([_.E({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],Fr);
_.R(Fr,"ytd-notification-text-renderer",function(){if(R86!==void 0)return R86;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return R86=q},{mode:1});var cdP;var GL=function(){var q=_.Y.apply(this,arguments)||this;q.mouseOverDelayJobId=0;q.fadeInImageDelayJobId=0;q.startTimeMs=-1;q.loadingStartTimeMs=-1;q.loadingEndTimeMs=-1;q.hasVideoPreview=!1;return q};
_.O(GL,_.Y);_.k=GL.prototype;_.k.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.k.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.k.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.k.showThumbnail=function(){var q=this;this.csn=_.pN();_.Z_("fmth");_.pi.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.ko(_.pi,function(){q.loadingStartTimeMs=(0,_.eW)();var w=_.A(q.hostElement).querySelector("#thumbnail");w.complete?q.displayMouseOverImage():w.addEventListener("load",_.Fj(q,q.displayMouseOverImage))},150):_.ef(_.A(this.hostElement).querySelector("#play"),"show",!0)};
_.k.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.k.onTap=function(){this.removeVideoPreview()};
_.k.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var q=this.videoId,w=this.csn,u=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,y=this.startTimeMs,e=this.hasVideoPreview,t=_.Tj(this.trackingParams),X={isMovingThumbnail:e};e&&y>0&&(u>0&&(X.movingThumbnailLoadingDurationMs=Math.round(u)),X.durationHoveredMs=Math.round((0,_.eW)()-y));q&&(X.videoId=q);_.ly(w,t,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:X});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.k.removeVideoPreview=function(){_.pi.cancelJob(this.mouseOverDelayJobId);_.pi.cancelJob(this.fadeInImageDelayJobId);var q=_.A(this.hostElement).querySelector("#thumbnail");_.ef(q,"fade-in",!1);q.removeEventListener("load",_.Fj(this,this.displayMouseOverImage));q=_.A(this.hostElement).querySelector("#play");_.ef(q,"fade-in",!1);_.ef(q,"show",!1)};
_.k.displayMouseOverImage=function(){var q=_.A(this.hostElement).querySelector("#thumbnail"),w=_.A(this.hostElement).querySelector("#play");this.isImageAvailable(q)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.eW)(),this.startTimeMs=(0,_.eW)(),this.fadeInImageDelayJobId=_.ko(_.pi,function(){_.ef(q,"fade-in",!0)},50)):_.ef(w,"fade-in",!0)};
_.k.computeThumbnail=function(q,w){var u;q&&q.movingThumbnailDetails&&q.movingThumbnailDetails.thumbnails&&w?u=_.wm(q.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):u=w?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(u)return _.UY(u)};
_.k.isImageAvailable=function(q){return!(!q.src||q.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||q.naturalWidth===120)};
GL.prototype.onTap=GL.prototype.onTap;GL.prototype.dataChanged=GL.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],GL.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],GL.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],GL.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],GL.prototype,"csn",void 0);_.c([_.v(),_.h("design:type",Object)],GL.prototype,"trackingParams",void 0);
_.c([_.v(),_.h("design:type",String)],GL.prototype,"videoId",void 0);_.c([_.v(),_.h("design:type",Boolean)],GL.prototype,"isAttachedAndDataSet",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GL.prototype,"dataChanged",null);_.c([_.Gm("click"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GL.prototype,"onTap",null);GL=_.c([_.E({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],GL);
_.R(GL,"ytd-moving-thumbnail-renderer",function(){if(cdP!==void 0)return cdP;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return cdP=q},{mode:1});var S2G;_.nC=function(q){this.hostElement=q;this.eventSink=null;this.eventList=[]};
_.nC.prototype.shouldForward=function(){var q,w;return(w=(q=this.eventSink)==null?void 0:q.isConnected)!=null?w:document.body.contains(this.eventSink)};
_.nC.prototype.start=function(q,w){this.eventSink&&this.stop();for(var u=0;u<q.length;u++)this.hostElement.addEventListener(q[u],_.Fj(this,this.forwardEvent));var y;this.eventSink=(y=w.hostElement)!=null?y:w;this.eventList=q};
_.nC.prototype.stop=function(){for(var q=0;q<this.eventList.length;q++)this.hostElement.removeEventListener(this.eventList[q],_.Fj(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.nC.prototype.forwardEvent=function(q,w){this.shouldForward()&&(q.stopPropagation(),this.eventSink instanceof Element?_.t7(this.eventSink,q.type,w):_.Y8(new _.fv("eventSink is not an element")))};_.nz={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.nC(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(q,w){this.forwarder_.start(q,w)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Ht=function(){return _.Y.apply(this,arguments)||this};
_.O(Ht,_.Y);_.k=Ht.prototype;_.k.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=_.Et("HTML_DIR")==="rtl"?"right":"left"};
_.k.dataChanged=function(){this.popupOpen=!1};
_.k.computeAriaLabel=function(q){return _.C(q,uNG).label};
_.k.onTap=function(q){q.stopPropagation();q.preventDefault();this.data.command&&_.tG().resolve(_.PG).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.k.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.k.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Ht.prototype.onPopupClosed=Ht.prototype.onPopupClosed;Ht.prototype.onPopupOpened=Ht.prototype.onPopupOpened;Ht.prototype.onTap=Ht.prototype.onTap;Ht.prototype.dataChanged=Ht.prototype.dataChanged;_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],Ht.prototype,"eventForwardingBehavior",void 0);_.c([_.D(_.JU),_.h("design:type",Object)],Ht.prototype,"ironButtonState",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Ht.prototype,"componentBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],Ht.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:-1}),_.h("design:type",Number)],Ht.prototype,"tabindex",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.h("design:type",Object)],Ht.prototype,"ariaLabel",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],Ht.prototype,"disableTooltips",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ht.prototype,"popupOpen",void 0);
_.c([_.v(),_.h("design:type",Element)],Ht.prototype,"eventSink",void 0);_.c([_.Wj("#tooltip"),_.h("design:type",Object)],Ht.prototype,"tooltip",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ht.prototype,"dataChanged",null);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ht.prototype,"onTap",null);
_.c([_.Gm("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ht.prototype,"onPopupOpened",null);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ht.prototype,"onPopupClosed",null);Ht=_.c([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Ht);
_.R(Ht,"ytd-thumbnail-overlay-button-renderer",function(){if(S2G!==void 0)return S2G;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return S2G=q},{mode:1});var h83;var Wt=function(){return _.Y.apply(this,arguments)||this};
_.O(Wt,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Wt.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Wt.prototype,"disableAnimation",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Wt.prototype,"rounded",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Wt.prototype,"transparentBackground",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Wt.prototype,"noPadding",void 0);Wt=_.c([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Wt);
_.R(Wt,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(h83!==void 0)return h83;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return h83=q},{mode:1});var jCa;var sJ=function(){return _.Y.apply(this,arguments)||this};
_.O(sJ,_.Y);sJ.prototype.computeIconPosition=function(q){return this.get("iconPosition",q)||null};
sJ.prototype.computeIconStyle=function(q){return this.get("iconStyle",q)||null};
sJ.prototype.computeIsIconStyleFilled=function(q){if(!q)return!1;var w;return q.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((w=q.icon)==null?void 0:w.iconType)==="ERROR_BLACK"};
_.c([_.v(),_.h("design:type",Object)],sJ.prototype,"data",void 0);_.c([_.v({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.h("design:type",Object)],sJ.prototype,"iconPosition",void 0);_.c([_.v({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.h("design:type",Object)],sJ.prototype,"iconStyle",void 0);_.c([_.v({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],sJ.prototype,"iconStyleFilled",void 0);
sJ=_.c([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],sJ);
_.R(sJ,"ytd-thumbnail-overlay-icon-renderer",function(){if(jCa!==void 0)return jCa;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return jCa=q},{mode:1});var lwk;var Nw=function(){return _.Y.apply(this,arguments)||this};
_.O(Nw,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Nw.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Nw.prototype,"data",void 0);Nw=_.c([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],Nw);
_.R(Nw,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(lwk!==void 0)return lwk;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return lwk=q},{mode:1});var Ler;var Qw=function(){var q=_.Y.apply(this,arguments)||this;q.isPreviewLoading=!1;return q};
_.O(Qw,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Qw.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Qw.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Qw.prototype,"isPreviewLoading",void 0);Qw=_.c([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Qw);
_.R(Qw,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(Ler!==void 0)return Ler;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Ler=q},{mode:1});var MY3;var I1=function(){return _.Y.apply(this,arguments)||this};
_.O(I1,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],I1.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],I1.prototype,"data",void 0);I1=_.c([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],I1);
_.R(I1,"ytd-thumbnail-overlay-pinking-renderer",function(){if(MY3!==void 0)return MY3;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return MY3=q},{mode:1});var Ke6;var il=function(){var q=_.Y.apply(this,arguments)||this;q.disableTooltips=!1;q.isLoading=!1;q.useExpandableTooltip=!1;q.toggled=!1;q.hovered=!1;q.mouseoverDelayJobId=0;q.toggleDelayJobId=0;q.expandAnimationDelayJobId=0;return q};
_.O(il,_.Y);_.k=il.prototype;_.k.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");_.A(this.hostElement).querySelector("#tooltip").position=_.Et("HTML_DIR")==="rtl"?"right":"left"};
_.k.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.pi.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.pi.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.pi.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.k.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.pi.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.pi.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.pi.cancelJob(this.expandAnimationDelayJobId)};
_.k.computeIcon=function(q,w,u){return(q=u?w:q)&&q.iconType?_.Fy(q.iconType):void 0};
_.k.computeAriaLabel=function(q,w,u){return _.C(u?w:q,uNG).label};
_.k.computeTooltip=function(q,w,u){return u?w:q};
_.k.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.k.computeIconOnHover=function(q,w){if((q==null?0:q.iconType)&&!w)return _.Fy(q.iconType)};
_.k.onTap=function(q){var w=this;q.stopPropagation();q.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(q=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(q),this.useExpandableTooltip&&(this.toggleDelayJobId=_.ko(_.pi,function(){w.hovered=!1;w.data&&!w.data.toggledServiceEndpoint&&(w.expandAnimationDelayJobId=_.ko(_.pi,function(){w.set("data.isToggled",
!1)},200))},2E3))};
_.k.onMouseenter=function(){var q=this;this.mouseoverDelayJobId=_.ko(_.pi,function(){q.hovered=!0},300)};
_.k.onMouseleave=function(){_.pi.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.k.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.k.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.k.onServiceRequestCompleted=function(q,w){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(w)||this.set("data.isToggled",!this.data.isToggled)};
_.k.serviceRequestWasSuccessful=function(q){return _.C(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.AO)?q.data.status==="STATUS_SUCCEEDED":!0};
il.prototype.onServiceRequestCompleted=il.prototype.onServiceRequestCompleted;il.prototype.onPopupClosed=il.prototype.onPopupClosed;il.prototype.onPopupOpened=il.prototype.onPopupOpened;il.prototype.onMouseleave=il.prototype.onMouseleave;il.prototype.dataChanged=il.prototype.dataChanged;_.c([_.D(_.JU),_.h("design:type",Object)],il.prototype,"ironButtonState",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],il.prototype,"ytComponentBehavior",void 0);
_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],il.prototype,"ytEventForwardingBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],il.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.h("design:type",Object)],il.prototype,"ariaLabel",void 0);_.c([_.v(),_.h("design:type",Object)],il.prototype,"disableTooltips",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],il.prototype,"popupOpen",void 0);_.c([_.v(),_.h("design:type",Object)],il.prototype,"isLoading",void 0);_.c([_.v(),_.h("design:type",Element)],il.prototype,"eventSink",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],il.prototype,"useExpandableTooltip",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.h("design:type",Object)],il.prototype,"toggled",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],il.prototype,"hovered",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.h("design:type",Object)],il.prototype,"iconOnHover",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],il.prototype,"dataChanged",null);
_.c([_.Gm("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],il.prototype,"onMouseleave",null);_.c([_.Gm("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],il.prototype,"onPopupOpened",null);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],il.prototype,"onPopupClosed",null);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],il.prototype,"onServiceRequestCompleted",null);il=_.c([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],il);
_.R(il,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(Ke6!==void 0)return Ke6;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Ke6=q},{mode:_.kB("kevlar_poly_si_batch_j053")?1:2});var Bqx;var xl3=_.LL(function(q){var w=q.data;var u=function(){return w().enableSegmentView};
return _.W("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.W(_.r,{cond:u,then:function(){return _.W("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.W("div",{class:_.s3("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+w().startPercent+"%"}}),_.W("div",{class:_.s3("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+w().segmentDurationPercent+"%"}},_.W("div",{class:_.s3("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.W("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.W("div",null," ",function(){return w().segmentLabel})),_.W("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.W("div",{class:_.s3("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.W(_.r,{cond:function(){return!u()&&w().startPercent},
then:function(){var y={};return _.W("div",{class:_.s3("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(y.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.T("web_enable_modern_progress_bar_overlay"),y))},_.W("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+w().startPercent+"%"}}))}}))},"M");
xl3.idomCompat=!0;var qyF=_.LL(function(q){var w=_.nr(),u=_.aV(function(e){var t,X,G;a:{var n=(t=q.data())==null?void 0:t.animationActivationTargetId;t=((X=q.data())==null?void 0:X.animationActivationEntityKey)||"";X=(G=q.data())==null?void 0:G.animationActivationEntitySelectorType;if(t&&n)switch(X){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":e=_.HQ(e.entities,"playerStateEntity",t);G=_.tG().resolve(_.kF(_.$X));n=!!(e&&e.videoId===n&&(G==null?0:G.isMiniplayerActive()));n={activated:n,playAnimation:n&&
e.playerState==="PLAYER_STATE_PLAYING"};break a}n=void 0}return n});
_.DG(function(){var e;if((e=u())==null?0:e.activated){var t;if((t=u())==null?0:t.playAnimation){var X;(X=w.lottieEl)==null||X.goToAndPlay(0)}else{var G;(G=w.lottieEl)==null||G.goToAndStop(0)}}});
var y=function(){var e,t=!((e=u())==null||!e.activated);if(q.data()){e=q.data();var X=void 0;e.icon&&(X=_.Ftl(e.icon),X=QuM(X));var G=void 0,n;if((n=e.backgroundColor)==null?0:n.lightTheme){var N;G={backgroundColor:zt((N=e.backgroundColor)==null?void 0:N.lightTheme,"0.8")}}if(e.text||X||t){if(t&&e.lottieData&&w){N=e.lottieData;var Q,I,U;n={animationConfig:{name:N.url,path:N.url,autoplay:(Q=N.settings)==null?void 0:Q.autoplay,loop:(U=(I=N.settings)==null?void 0:I.loop)!=null?U:!0},animationRef:w}}else n=
void 0;if(t)Q=16;else b:switch(e.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":Q=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":Q=18;break b;default:Q=16}t={type:Q,text:t&&e.animatedText?e.animatedText:e.text,icon:X,customColors:G,animation:n}}else t=void 0}else t=void 0;return t};
return _.W("yt-thumbnail-badge-view-model",{class:_.HR("yt-thumbnail-badge-view-model-wiz",q.class)},_.W(_.r,{cond:y,then:function(){return _.W(_.jg,{data:function(){return y()}})}}))},"N");var wDT=_.LL(function(q){var w={};return _.W("yt-thumbnail-bottom-overlay-view-model",{class:_.HR("ytThumbnailBottomOverlayViewModelHost",(w.ytThumbnailBottomOverlayViewModelHostBackground=function(){return q.data().enableGradientBackground},w))},_.W("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.W(_.OF,{data:function(){return q.data().progressBar}},{thumbnailOverlayProgressBarViewModel:xl3}),_.W(_.OF,{data:function(){return q.data().badge}},{thumbnailBadgeViewModel:function(u){return _.W(qyF,
{data:u.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.W(_.OF,{data:function(){return q.data().badges}},{thumbnailBadgeViewModel:function(u){return _.W(qyF,{data:u.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"O");
wDT.idomCompat=!0;_.q9(wDT,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.xB}});var kb7={calledOnce:!1,state:"visible"},tAo={calledOnce:!1,state:"hidden"};var ry=_.LL(function(q){var w=q.data;var u=q.className;q=q.alwaysShow;var y=_.Bm();_.EF(y,function(){return w().rendererContext});
var e=_.MTc(),t={};return _.W("thumbnail-hover-overlay-view-model",{el:y,class:_.HR("ytThumbnailHoverOverlayViewModelHost",u,(t.ytThumbnailHoverOverlayViewModelHostForceHover=q,t)),"aria-label":function(){var X;return(X=_.C(w().rendererContext,_.ik))==null?void 0:X.label},
role:function(){return _.YH(w().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.YH(w().rendererContext)!==void 0?0:void 0},
"on:keypress":e},_.W("div",{class:_.HR("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(w().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var X="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:X="ytThumbnailHoverOverlayViewModelStyleCover"}return X})},_.W(_.r,{cond:function(){return w().icon},
then:function(X){return _.W(_.ln,{data:X,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.W(_.r,{cond:function(){return w().text},
then:function(X){return _.W(_.Lr,{text:X,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"P");
ry.idomCompat=!0;var uH3=_.LL(function(q){var w=q.data;return _.W(_.OF,{data:function(){return w==null?void 0:w().overlays}},{thumbnailHoverOverlayViewModel:ry})},"Q");
uH3.idomCompat=!0;var yQZ={};var eoZ=_.LL(function(q){var w=q.data;var u=q.image;var y=q.state;var e=q.iconType;var t=q.overlays;var X=q.isOverlay;var G=_.x8();q=_.P(_.r4(!0,void 0,"AA4e7b"));var n=q.next().value,N=q.next().value,Q=function(){return!!w().onTap},I=_.jf(e,"LIVE");
_.DG(function(){var d=w();requestAnimationFrame(function(){if(G.value===null)var V=!0;else{var J=G.value;V=d.badgeText;var a=FXJ(d.size);V in yQZ?J=yQZ[V]:(J=J.clientWidth,yQZ[V]=J);(V=J>a)?G.value.style.display="none":G.value.style.visibility="visible"}N(V)})});
var U=function(){var d={};return d["yt-spec-avatar-shape__image"]=!0,d["yt-spec-avatar-shape__image--ads-app"]=w().type===1,d};
return _.W("yt-avatar-shape",null,_.W("div",{el:_.M2(ni7(Q,{keydown:function(d){if(d.key==="Enter"){var V;(V=d.currentTarget)==null||V.click()}},
click:function(d){var V,J;return void((J=(V=w()).onTap)==null?void 0:J.call(V,d))}})),
class:function(){var d={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},V=w();d=(d[V.clusterLayoutConfig?sYH(V.clusterLayoutConfig):N5o(V.size)]=!0,d["yt-spec-avatar-shape__button--tappable"]=Q(),d);(V=w().avatarButtonCustomClassName)&&(d[V]=!0);return _.s3(d)},
"aria-label":function(){return Q()?w().accessibilityText:""},
role:function(){return Q()?"button":void 0},
tabindex:function(){return Q()?0:void 0}},_.W("div",{class:function(){var d,V=w(),J=y==null?void 0:y(),a=X==null?void 0:X(),b=!((d=V.decorations)==null||!d.includes(2)||V.size!=="medium"&&V.size!=="large"),g=V.size==="tiny"||V.size==="extra-small",l,S,eH,x,P4={};
d=(P4["yt-spec-avatar-shape--live-ring"]=!!(((l=V.decorations)==null?0:l.includes(0))&&IYz(V.size)),P4["yt-spec-avatar-shape--stories-watched"]=b&&!(J==null||!J.storiesWatched),P4["yt-spec-avatar-shape--stories-unwatched"]=b&&!(J==null?0:J.storiesWatched),P4["yt-spec-avatar-shape--background-border"]=i2l(V.decorations)&&!g,P4["yt-spec-avatar-shape--background-border-thin"]=i2l(V.decorations)&&g,P4["yt-spec-avatar-shape__on-select-border"]=!((S=V.decorations)==null||!S.includes(4)),P4["yt-spec-avatar-shape__white-border"]=
!((eH=V.decorations)==null||!eH.includes(5)),P4["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((x=V.decorations)==null?0:x.includes(5))&&g),P4["yt-spec-avatar-shape--is-overlay"]=!!a,P4);return _.s3(d)}},_.W("div",{class:function(){var d={};
var V=w();d=(d[V.clusterLayoutConfig?H2j(V.clusterLayoutConfig):WXl(V.size)]=!0,d["yt-spec-avatar-shape--no-margin"]=i2l(w().decorations),d);return _.s3(d)}},_.W(_.ln,{data:u,
alt:function(){return!Q()&&w().accessibilityText?w().accessibilityText:""},
targetWidth:function(){return QYf(w().size)},
targetHeight:function(){return QYf(w().size)},
className:function(){return _.s3(U())}}),_.W(_.r,{cond:function(){var d;
return((d=w().decorations)==null?void 0:d.includes(0))&&IYz(w().size)},
then:function(){return _.W("div",{class:function(){var d={};d=(d["yt-spec-avatar-shape__live-badge"]=!0,d["yt-spec-avatar-shape__live-badge--badge-small"]=w().size==="small",d["yt-spec-avatar-shape__live-badge--badge-medium"]=w().size==="medium"||w().size==="48",d["yt-spec-avatar-shape__live-badge--badge-large"]=w().size==="large",d["yt-spec-avatar-shape__live-badge--badge-extra-large"]=w().size==="extra-large"||w().size==="extra-extra-large"||w().size==="giant",d);return _.s3(d)}},_.W(_.r,{cond:function(){return w().badgeText},
then:function(d){return _.W("div",{class:"yt-spec-avatar-shape__badge-text",el:G},d)}}),_.W(_.r,{cond:n,
then:function(){return _.W("div",{class:"yt-spec-avatar-shape__badge-icon"},_.W(_.U3,{icon:I,size:function(){a:switch(w().size){case "extra-large":var d=16;break a;default:d=13}return d}}))}}))}}),_.W(_.r,{cond:function(){var d,V;
return((d=w().decorations)==null?void 0:d.includes(1))||((V=w().decorations)==null?void 0:V.includes(0))&&!IYz(w().size)},
then:function(){return _.W("div",{class:function(){var d=w(),V,J,a={};var b=(a["yt-spec-avatar-shape__live-dot"]=!((V=d.decorations)==null||!V.includes(0)||IYz(d.size)),a["yt-spec-avatar-shape__new-content"]=!((J=d.decorations)==null||!J.includes(1)),a);return _.s3(b)}})}}),_.W(_.r,{cond:function(){return!!t},
then:function(){return _.W("div",{class:function(){var d={};d=Object.assign((d["yt-spec-avatar-shape__image-overlays"]=!0,d),U());return _.s3(d)}},t==null?void 0:t())}})))))},"R");
eoZ.idomCompat={callbacks:{overlays:!0}};_.Vb=_.LL(function(q){function w(){u().endpoint&&_.bn(u().endpoint)}
var u=q.data;var y=q.decorations;var e=q.avatarButtonCustomClassName;var t=q.isOverlay;var X=q.clusterLayoutConfig;return _.W("avatar-view-model",null,_.W(_.r,{cond:function(){return u().image},
then:function(G){return _.W(eoZ,{data:function(){return UhM({data:u(),onTap:u().endpoint?w:void 0,decorations:y==null?void 0:y(),badgeText:void 0,accessibilityText:u().accessibilityText,avatarButtonCustomClassName:e==null?void 0:e(),clusterLayoutConfig:X==null?void 0:X()})},
image:G,iconType:"RADAR_LIVE",overlays:function(){return _.W(uH3,{data:u})},
isOverlay:t})}}))},"S");
_.Vb.idomCompat=!0;_.UJ=_.LL(function(q){var w=q.data;q=q.className;var u=_.x8(),y=function(){return _.C(w().avatar,_.RH)},e=_.oR(function(){var t,X=w(),G=y(),n=_.YH(w().rendererContext),N=(t=u.value)!=null?t:void 0,Q;
if(G){N={data:X,avatar:G,onTap:n,element:N};t=N.data;X=N.avatar;G=N.onTap;n=N.element;N=N.commandController;G=G?O27(G,n,N):void 0;n=[];t.liveData&&n.push(0);var I;N=(I=t.liveData)==null?void 0:I.liveBadgeText;I=(Q=_.C(t.rendererContext,_.ik))==null?void 0:Q.label;Q=UhM({data:X,onTap:G,decorations:n,badgeText:N,accessibilityText:I?I:t.a11yLabel})}else Q={size:"medium"};return Q},void 0,"H8tk9d");
return _.W("yt-decorated-avatar-view-model",{class:_.HR("yt-decorated-avatar-view-model-wiz",q),el:u},_.W(_.r,{cond:function(){var t;return(t=y())==null?void 0:t.image},
then:function(t){return _.W(eoZ,{data:e,image:t,iconType:"RADAR_LIVE",overlays:function(){return _.W(uH3,{data:y})}})}}))},"T");
_.UJ.idomCompat=!0;_.TL=_.LL(function(q){var w=function(){var n;return Object.assign({},q.data(),(n=q.overrides)==null?void 0:n.call(q))},u=_.Bm(),y=function(){return u&&_.gE(w().rendererContext)};
_.EF(u,function(){return w().rendererContext});
var e=function(){var n=w().avatars,N,Q;return(Q=(N=(n==null?0:n[0])?_.C(n[0],_.RH):void 0)==null?void 0:N.avatarImageSize)!=null?Q:"AVATAR_SIZE_UNKNOWN"},t=function(){return dh4(w())},X=function(){if(w().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var n=void 0;
else if((n=q.decorations)==null?0:n.call(q))n=q.decorations();else{n=w();var N=0;n.avatars&&(N+=n.avatars.length);n.decoratedText&&(N+=1);n=N>1?[3]:[]}return n},G={};
return _.W("yt-avatar-stack-view-model",{el:u,class:_.HR("yt-avatar-stack-view-model-wiz",q.className,(G["yt-avatar-stack-view-model-wiz--tappable"]=y,G["yt-avatar-stack-view-model-wiz--is-overlay"]=q.isOverlay,G["yt-avatar-stack-view-model-wiz--medium-text"]=q.useMediumText,G)),tabindex:function(){return y()?0:void 0},
role:function(){return y()?"link":void 0},
"aria-label":function(){var n,N;return(N=(n=_.C(w().rendererContext,_.ik))==null?void 0:n.label)!=null?N:""}},_.W(_.r,{cond:function(){var n;
return w().avatars&&!((n=q.hideAvatar)==null?0:n.call(q))},
then:function(){return _.W("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.W(_.r,{cond:function(){return w().decoratedText},
then:function(n){var N={};return _.W("div",{class:_.HR("yt-avatar-stack-view-model-wiz__text-container",(N["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return e()==="AVATAR_SIZE_XXS"||e()==="AVATAR_SIZE_XS"},N["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var Q;
return((Q=q.isOverlay)==null?void 0:Q.call(q))&&(e()==="AVATAR_SIZE_XXS"||e()==="AVATAR_SIZE_XS")},N)),
style:_.rm({width:function(){return t().avatarSizeInPx+"px"},
height:function(){return t().avatarSizeInPx+"px"}})},_.W(_.Lr,{text:n,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.W("div",{style:function(){return _.rm(t().avatarStackStyle)()},
class:function(){return t().avatarStackClass}},_.W(_.OF,{data:function(){return t().avatars.reverse()}},{avatarViewModel:function(n,N){return _.W("div",{style:function(){var Q,I;
return _.rm((I=(Q=t()).avatarStyle)==null?void 0:I.call(Q,N()))()},
class:function(){return t().avatarClass}},_.W(_.Vb,{data:n.data,
decorations:X,avatarButtonCustomClassName:function(){return t().avatarButtonCustomClassName},
isOverlay:q.isOverlay,clusterLayoutConfig:function(){var Q,I;return(I=(Q=t()).clusterLayoutConfig)==null?void 0:I.call(Q,N())}}))},
decoratedAvatarViewModel:function(n,N){return _.W("div",{style:function(){var Q,I;return _.rm((I=(Q=t()).avatarStyle)==null?void 0:I.call(Q,N()))()},
class:function(){return t().avatarClass}},_.W(_.UJ,{data:n.data}))}})))}}),_.W(_.r,{cond:function(){return w().text},
then:function(n){return _.W(_.Lr,{text:n,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"U");
_.TL.idomCompat=!0;_.q9(_.LL(function(q){var w=q.data;var u=q.thumbnailSize;return _.W("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.W("div",{class:_.HR("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return oic(u==null?void 0:u())})},_.W(_.OF,{data:function(){return w().avatarStack}},{avatarStackViewModel:function(y){return _.W(_.TL,{data:y.data,
decorations:[5]})}})))},"V"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.pK,
thumbnailSize:_.pK}});var k$G=_.LL(function(q){q=_.lf(q,{hidden:!1});var w=q.data;return _.W("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:q.hidden},_.W(_.Lr,{text:function(){return w().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.W(_.r,{cond:function(){return w().subtitle},
then:function(){return _.W(_.Lr,{text:function(){return w().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"W");
k$G.idomCompat=!0;_.q9(k$G,"yt-thumbnail-overlay-title-view-model",{props:{data:_.pK,hidden:_.pK}});var tTX=_.LL(function(q){q=_.lf(q,{isClip:!1});var w=q.data,u=q.thumbnailSize,y={};return _.W("yt-thumbnail-overlay-badge-view-model",{class:_.HR("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(w().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var e="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:e="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return e},function(){return VAu(u==null?void 0:u())},(y["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
q.isClip,y))},_.W(_.OF,{data:function(){return w().thumbnailBadges}},{thumbnailBadgeViewModel:function(e){return _.W(qyF,{data:e.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"X");
tTX.idomCompat=!0;_.q9(tTX,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.pK,thumbnailSize:_.pK,isClip:_.pK}});_.t2(fYl);_.XK(fYl,"yt-page-indicator-view-model",{propNames:["data"]});var Cz=function(){var q=_.Y.apply(this,arguments)||this;q.eventSink=function(){return q};
q.disableInteraction=!1;q.noRoundedCorners=!1;q.isPreviewLoading=!1;q.isOriginalAspectRatio=!1;q.computedObjectFit=!1;q.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return q};
_.O(Cz,_.Y);_.k=Cz.prototype;
_.k.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.T("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.k.onImageLoaded=function(){this.loaded=!0};
_.k.onImageUnloaded=function(){this.loaded=!1};
_.k.computeRichThumbnail=function(q,w,u,y){if(q&&w&&!y&&!_.T("disable_moving_thumbs_handling")&&!u)return w};
_.k.computeImageWidth=function(q,w){return w||9999};
_.k.computeIsOriginalAspectRatio=function(q){return q};
_.k.computeIsLive=function(q){if(q==null?0:q.badges)for(var w=0;w<q.badges.length;w++){var u=q.badges[w];if(u.metadataBadgeRenderer&&u.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(q==null?0:q.thumbnailOverlays)for(w=0;w<q.thumbnailOverlays.length;w++)if(u=q.thumbnailOverlays[w],u.thumbnailOverlayTimeStatusRenderer&&u.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.k.computeObjectFit=function(q,w){return w||(q?"CONTAIN":"")};
_.k.computeNavigationEndpoint=function(q,w,u){return q?w:u};
_.k.computeHasClip=function(q){q=_.P(q||[]);for(var w=q.next();!w.done;w=q.next())if(w.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.k.computeOverlayColor=function(q){var w;return(q==null?0:(w=q.darkColorPalette)==null?0:w.section2Color)?q.darkColorPalette.section2Color:q==null?void 0:q.sampledThumbnailColor};
_.x$.Object.defineProperties(Cz.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return OPJ(this.width)}}});
Cz.prototype.onImageUnloaded=Cz.prototype.onImageUnloaded;Cz.prototype.onImageLoaded=Cz.prototype.onImageLoaded;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Cz.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Cz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(Yo6),_.h("design:type",Object)],Cz.prototype,"ytdThumbnailBehavior",void 0);
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Cz.prototype,"componentBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],Cz.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Cz.prototype,"data",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],Cz.prototype,"circular",void 0);
_.c([_.v({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.h("design:type",Object)],Cz.prototype,"richThumbnail",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.h("design:type",Boolean)],Cz.prototype,"hasClip",void 0);_.c([_.v(),_.h("design:type",Object)],Cz.prototype,"eventSink",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Cz.prototype,"queued",void 0);
_.c([_.v({value:!1}),_.h("design:type",Boolean)],Cz.prototype,"richGridThumbnail",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],Cz.prototype,"useExpandableTooltip",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],Cz.prototype,"useUntranslatedNavigationEndpoint",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Cz.prototype,"disableInteraction",void 0);
_.c([_.v({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.h("design:type",Object)],Cz.prototype,"computedNavigationEndpoint",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Cz.prototype,"nowPlayingEqualizerOnly",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Cz.prototype,"hidePlaybackStatus",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],Cz.prototype,"objectFit",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Cz.prototype,"noRoundedCorners",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],Cz.prototype,"watchFeedThumbnail",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Cz.prototype,"isPreviewLoading",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.h("design:type",Object)],Cz.prototype,"isOriginalAspectRatio",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.h("design:type",Object)],Cz.prototype,"computedObjectFit",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.h("design:type",Boolean)],Cz.prototype,"isLiveVideo",void 0);
_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Cz.prototype,"loaded",void 0);_.c([_.v({computed:"computeOverlayColor(data.thumbnail)"}),_.h("design:type",Object)],Cz.prototype,"overlayColor",void 0);_.c([_.v({selector:_.WZf}),_.h("design:type",Boolean)],Cz.prototype,"inlinePreviewIsEnabled",void 0);_.c([_.v(),_.h("design:type",Number)],Cz.prototype,"width",void 0);
_.c([_.Z("inlinePreviewIsEnabled"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Cz.prototype,"isPreviewDisabled",null);_.c([_.Z("width"),_.h("design:type",String),_.h("design:paramtypes",[])],Cz.prototype,"thumbnailSize",null);_.c([_.Gm("image-loaded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Cz.prototype,"onImageLoaded",null);
_.c([_.Gm("image-unloaded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Cz.prototype,"onImageUnloaded",null);Cz=_.c([_.E({disableElementRegistration:!0,is:"ytd-thumbnail"})],Cz);
var Pdk=_.eD()(Cz,"ytd-thumbnail",function(){if(Bqx===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);Bqx=q}q=Bqx;return q},{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 zrl=function(q){var w=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12678_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12678_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(u){XDT(w,u)};
this.onLockupMouseLeaveFn=function(u){u=u.relatedTarget;var y,e;((y=document.getElementsByTagName("ytd-video-preview"))==null?0:(e=y.item(0))==null?0:e.contains(u))||(w.terminateVideoPreview(),dy(w))};
this.onThumbnailMouseDownFn=function(){w.terminateVideoPreview();dy(w)};
this.onTouchStart=function(){w.JSC$12678_touched=!0};
this.mediaRenderer=q.mediaRenderer;this.thumbnailElement=q.thumbnailElement;this.lockupElement=q.lockupElement;this.videoPreviewOptsInput=q.videoPreviewOpts;FVr(this);OJ(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)):
_.Y8(Error("Bh")):_.Y8(Error("Ch")):G$F(this)},yb=function(q){G$F(q);
var w;(w=q.lockupElement)==null||w.removeEventListener("mouseenter",q.onMouseMoveFn);var u;(u=q.lockupElement)==null||u.removeEventListener("mouseleave",q.onLockupMouseLeaveFn);var y;(y=q.lockupElement)==null||y.removeEventListener("touchstart",q.onTouchStart);var e;(e=q.thumbnailElement)==null||e.removeEventListener("mousedown",q.onThumbnailMouseDownFn);dy(q)},FVr=function(q){q.inlinePreviewIsEnabledForUser=_.Mt().getState().ui.inlinePreviewIsEnabled;
q.unsubscribeFromInlinePreviewIsEnabled=_.se(_.Mt(),_.WZf,function(w){(q.inlinePreviewIsEnabledForUser=w)||dy(q)});
q.JSC$12678_unsubscribeFromInlinePreviewIsActive=_.se(_.Mt(),_.HG7,function(w){(q.inlinePreviewIsActive=w)||dy(q)})},G$F=function(q){q.unsubscribeFromInlinePreviewIsEnabled();
q.unsubscribeFromInlinePreviewIsEnabled=function(){};
q.JSC$12678_unsubscribeFromInlinePreviewIsActive();q.JSC$12678_unsubscribeFromInlinePreviewIsActive=function(){}},XDT=function(q,w){w.buttons>0||(w=_.Fc("kevlar_lockup_hover_delay",-1),q.JSC$12678_touched&&w>=0?(_.pi.cancelJob(q.videoPreviewJobId),q.videoPreviewJobId=_.ko(_.pi,function(){n5F(q)},w),q.JSC$12678_touched=!1):n5F(q))},Hl6=function(q){q.videoPreviewJobId=_.ko(_.pi,function(){var w,u,y,e;
return _.F(function(t){if(t.nextAddress==1){if(!OJ(q))return t.return();w=q.getVideoPreviewOpts();if(!w)return t.return();w.isAutoplay=!0;return(y=(u=_.X4(q.mediaRenderer.hostElement,"yt-open-video-preview-action",[w]))&&u[0])?_.H(t,u[0],3):t.jumpTo(2)}t.nextAddress!=2&&(y=t.yieldResult===1);y&&AsH((e=q.mediaRenderer)==null?void 0:e.data);_.HI(t)})})},n5F=function(q){!q.previewTriggered&&OJ(q)&&(q.inlinePreviewIsActive&&q.terminateVideoPreview(),q.previewTriggered=!0,q.mediaRenderer.isInlinePreviewTriggered=
!0,_.pi.cancelJob(q.videoPreviewJobId),q.videoPreviewJobId=_.ko(_.pi,function(){var w,u,y,e;
return _.F(function(t){if(t.nextAddress==1){if(!OJ(q))return t.return();w=q.getVideoPreviewOpts();return w?(y=(u=_.X4(q.mediaRenderer.hostElement,"yt-open-video-preview-action",[w]))&&u[0])?_.H(t,u[0],3):t.jumpTo(2):t.return()}t.nextAddress!=2&&(y=t.yieldResult===1);y&&AsH((e=q.mediaRenderer)==null?void 0:e.data);_.HI(t)})}))};
zrl.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var q,w;if((w=(q=this.videoPreviewOptsInput)==null?void 0:q.videoPreviewData)!=null)q=w;else if(q=this.mediaRenderer.data)if(mhs(q))q={inlinePlaybackEndpoint:_.Zh(q.inlinePlayerData.onVisible),navigationEndpoint:_.Zh(q.onTap),thumbnail:"image"in q?q.image:q.thumbnail,thumbnailOverlays:void 0,accessibilityText:JsM(q)};else if("multipleInlinePlaybackEndpoint"in q){var u=_.C(_.C(q.multipleInlinePlaybackEndpoint,e2P),kkX);if(u!=
null&&u.playerDescriptors){w=[];u=_.P(u.playerDescriptors);for(var y=u.next();!y.done;y=u.next())y=y.value,w.push({inlinePlaybackEndpoint:y.inlinePlaybackEndpoint,navigationEndpoint:y.navigationEndpoint,thumbnail:y.thumbnail,thumbnailOverlays:y.thumbnailOverlays,accessibilityText:JsM(q)});q=w}else q=void 0}else q={inlinePlaybackEndpoint:q.inlinePlaybackEndpoint,navigationEndpoint:q.navigationEndpoint,thumbnail:q.thumbnail,thumbnailOverlays:q.thumbnailOverlays,accessibilityText:JsM(q)};else q=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:q,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var OJ=function(q){var w;if(w=q.inlinePreviewIsEnabledForUser)w=(q=q.mediaRenderer.data)?"inlinePlaybackEndpoint"in q&&q.inlinePlaybackEndpoint||mhs(q)&&q.inlinePlayerData||"multipleInlinePlaybackEndpoint"in q&&q.multipleInlinePlaybackEndpoint?!0:!1:!1;return w};
zrl.prototype.terminateVideoPreview=function(){_.Pw(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var dy=function(q){_.pi.cancelJob(q.videoPreviewJobId);q.inlinePreviewIsActive=!1;q.previewTriggered=!1;q.mediaRenderer.isInlinePreviewTriggered=!1};var WVx=_.Sc(["#"]),o1=function(){var q=_.Y.apply(this,arguments)||this;q.isDisabled=!1;return q};
_.O(o1,_.Y);_.k=o1.prototype;_.k.configureRendererStamper=function(){return{"data.menu":ti,"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"}}}};
_.k.attached=function(){this.updateInlinePreviewHoverListeners()};
_.k.detached=function(){this.clearInlinePreviewHoverListeners()};
_.k.getMetadata=function(q){var w=[];if(q.metadataText&&Object.keys(q.metadataText).length>0){var u=this.ytRendererBehavior.getSimpleString(q.metadataText);q.upcomingEventData&&q.upcomingEventData.upcomingEventText&&(u=_.pr(u,Number(q.upcomingEventData.startTime)));w.push(u)}else q.shortViewCountText&&w.push(this.ytRendererBehavior.getSimpleString(q.shortViewCountText)),q.publishedTimeText&&w.push(this.ytRendererBehavior.getSimpleString(q.publishedTimeText)),q.upcomingEventData&&q.upcomingEventData.upcomingEventText&&
(u=this.ytRendererBehavior.getSimpleString(q.upcomingEventData.upcomingEventText),w.push(_.pr(u,Number(q.upcomingEventData.startTime))));return w};
_.k.calculateBylineText=function(q){return q.shortBylineText?q.shortBylineText:q.bylineText?q.bylineText:null};
_.k.calculateIsDisabled=function(q){return!!q.isDisabled};
_.k.computeHrefWithDefault=function(q){return this.ytComponentBehavior.computeHref_(q)||_.OY(WVx)};
_.k.onDetailsTap=function(q){var w=this.data&&this.data.navigationEndpoint;w&&!_.LT(_.SQ(q)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.T("kevlar_grid_video_renderer_killswitch")?_.t7(this.hostElement,"yt-navigate",{endpoint:w}):this.ytComponentBehavior.resolveCommand(w))};
_.k.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.k.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12683_inlinePreviewHoverListener=cC({mediaRenderer:this,lockupElement:_.A(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.A(this.hostElement).querySelector("ytd-thumbnail")})};
_.k.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$12683_inlinePreviewHoverListener)==null||yb(q)};
_.k.computeThumbnailWidth=function(q,w){return w&&w>0?w:q?360:210};
_.k.computeShowChannelThumbnail=function(q,w){var u;return w&&!!(q==null?0:(u=q.channelThumbnailSupportedRenderers)==null?0:u.channelThumbnailWithLinkRenderer)};
_.x$.Object.defineProperties(o1.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$12683_inlinePreviewHoverListener)==null?0:OJ(q))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
o1.prototype.dataChanged=o1.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],o1.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],o1.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],o1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],o1.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.D(_.$p),_.h("design:type",Object)],o1.prototype,"ytdLockupBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],o1.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],o1.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],o1.prototype,"noEndpoints",void 0);_.c([_.v({computed:"calculateBylineText(data)"}),_.h("design:type",Object)],o1.prototype,"bylineText",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],o1.prototype,"isSearch",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],o1.prototype,"isDownloading",void 0);_.c([_.v({reflectToAttribute:!0,value:0}),_.h("design:type",Number)],o1.prototype,"width",void 0);_.c([_.v({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.h("design:type",Object)],o1.prototype,"isDisabled",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],o1.prototype,"dataChanged",null);_.c([_.Z("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],o1.prototype,"isHovered",null);o1=_.c([_.E({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],o1);
_.R(o1,"ytd-grid-video-renderer",function(){if(Y2j!==void 0)return Y2j;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Y2j=q},{mode:_.kB("kevlar_poly_si_batch_j047")?1:2});var sn6;var Vw=function(){var q=_.Y.apply(this,arguments)||this;q.roundedContainer=!0;q.skipRoundingTop=!1;q.disableTopPadding=!1;q.amsterdamEnabled=_.T("enable_desktop_amsterdam_info_panels");return q};
_.O(Vw,_.Y);Vw.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Vw.prototype.onClick=function(q){var w,u=(w=this.data)==null?void 0:w.sourceEndpoint;!_.LT(_.SQ(q),this.hostElement,["A".toString()])&&u&&_.t7(this.hostElement,"yt-navigate",{endpoint:u})};
_.x$.Object.defineProperties(Vw.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 q;return!((q=this.data)==null||!q.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var q,w;return(w=(q=this.data)==null?void 0:q.paragraphMaxLines)!=null?w:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Vw.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Vw.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Vw.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Vw.prototype,"showVerticalDividers",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Vw.prototype,"roundedContainer",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Vw.prototype,"skipRoundingTop",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Vw.prototype,"disableTopPadding",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Vw.prototype,"amsterdamEnabled",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Vw.prototype,"showMetadataAtTop",null);
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Vw.prototype,"showMetadataBelowTitle",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data.menu"),_.h("design:type",Object),_.h("design:paramtypes",[])],Vw.prototype,"hasMenu",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data.truncateParagraphs"),_.h("design:type",Object),_.h("design:paramtypes",[])],Vw.prototype,"truncateParagraphs",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("data.paragraphMaxLines"),_.h("design:type",Number),_.h("design:paramtypes",[])],Vw.prototype,"paragraphMaxLines",null);_.c([_.v({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Z("data.background"),_.h("design:type",Object),_.h("design:paramtypes",[])],Vw.prototype,"background",null);Vw=_.c([_.E({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],Vw);
_.R(Vw,"ytd-info-panel-content-renderer",function(){if(sn6!==void 0)return sn6;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return sn6=q},{mode:_.kB("kevlar_poly_si_batch_j076")?1:2});var NeT;var Qna;var IyX;var ilc;var fz=function(){return _.Y.apply(this,arguments)||this};
_.O(fz,_.Y);fz.prototype.computeStyle=function(q){return q};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],fz.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],fz.prototype,"style_",void 0);fz=_.c([_.JM({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],fz);
_.R(fz,"yt-channel-thumbnail-with-link-renderer",function(){if(ilc===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;IyX===void 0&&(IyX=document.createElement("template"));var y=IyX;u.call(w,y.content.cloneNode(!0),q.content.firstChild);ilc=q}q=ilc;return q},{mode:2});var mU=function(){var q=_.Y.apply(this,arguments)||this;q.modernTypography=_.T("web_modern_typography");return q};
_.O(mU,_.Y);mU.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"}}}};
mU.prototype.computeTitleStyle=function(q){return q||null};
mU.prototype.computeAvatarStyle=function(q){return q||null};
mU.prototype.computeShowNavigationButton=function(q,w){return!(q==null||!q.navigationButton||w)};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],mU.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],mU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],mU.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.h("design:type",String)],mU.prototype,"titleStyle",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.h("design:type",String)],mU.prototype,"avatarStyle",void 0);_.c([_.v(),_.h("design:type",Boolean)],mU.prototype,"hideNavigationButton",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],mU.prototype,"isModernSd",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],mU.prototype,"modernTypography",void 0);
mU=_.c([_.E({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],mU);
_.R(mU,"ytd-rich-list-header-renderer",function(){if(Qna!==void 0)return Qna;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Qna=q},{mode:_.kB("kevlar_poly_si_batch_j058")?1:2});var Ai=function(){return _.Y.apply(this,arguments)||this};
_.O(Ai,_.Y);Ai.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]]"}}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ai.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ai.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ai.prototype,"data",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],Ai.prototype,"isSearch",void 0);Ai=_.c([_.E({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Ai);
_.R(Ai,"ytd-preview-card-renderer",function(){if(NeT!==void 0)return NeT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return NeT=q},{mode:1});var rQr;var Ji=function(){return _.Y.apply(this,arguments)||this};
_.O(Ji,_.Y);Ji.prototype.configureRendererStamper=function(){return{"data.menu":ti}};
Ji.prototype.dataChanged=function(){var q=this.get("colorExtractionPalette.section1Color",this.data);q=_.Ae(q);_.Pj(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":q})};
Ji.prototype.computeCardStyle=function(q){return this.get("style.value",q)||null};
Ji.prototype.dataChanged=Ji.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ji.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ji.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],Ji.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ji.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.h("design:type",String)],Ji.prototype,"cardStyle",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ji.prototype,"dataChanged",null);Ji=_.c([_.E({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],Ji);
_.R(Ji,"ytd-compact-channel-recommendation-card-renderer",function(){if(rQr!==void 0)return rQr;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return rQr=q},{mode:1});var UjX;var TeG;var zL=function(){var q=_.Y.apply(this,arguments)||this;q.alignAuto=!1;q.collapsed=!0;q.isToggled=!1;q.alwaysCollapsed=!1;q.canToggle=!0;q.collapsedHeight=80;q.disableToggle=!1;q.alwaysToggleable=!1;q.reversed=!1;q.shouldUseNumberOfLines=!1;q.recomputeOnResize=!1;q.canToggleJobId=0;q.lastReversed=!1;return q};
_.O(zL,_.Y);_.k=zL.prototype;_.k.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.k.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.k.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var q=_.A(this.hostElement),w=q.childNodes,u=document.createDocumentFragment(),y=q.childNodes.length-1;y>=0;y--)_.A(u).appendChild(w[y]);_.T("enable_shadydom_free_scoped_node_methods")?_.y6(this.hostElement).appendChild(u):q.appendChild(u)}};
_.k.ready=function(){var q=this;_.vj(function(){q.initChildrenObserver()},1)};
_.k.detached=function(){this.detachObserver()};
_.k.toggle=function(q,w){this.canToggle&&(this.isToggled=w,_.t7(this.hostElement,"yt-refit"),q&&q.stopPropagation())};
_.k.reset=function(){this.childrenChanged()};
_.k.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.k.computeIsMoreVisible=function(q,w){return q&&!w};
_.k.computeShouldUseNumberOfLines=function(q){try{return!!q&&window.CSS.supports("-webkit-line-clamp","1")}catch(w){}return!1};
_.k.computeIsLessVisible=function(q,w){return q&&w};
_.k.observeCollapsedHeightAndMaxLines=function(){var q=this.collapsedHeight,w=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Pj(this.hostElement,{"--ytd-expander-max-lines":""+w,"--ytd-expander-collapsed-height":""}):_.Pj(this.hostElement,{"--ytd-expander-collapsed-height":q+"px","--ytd-expander-max-lines":""})};
_.k.handleMoreTap=function(q){this.disableToggle||(_.t7(this.hostElement,"yt-expander-more-tapped"),this.toggle(q,!0))};
_.k.handleLessTap=function(q){_.t7(this.hostElement,"yt-expander-less-tapped");this.toggle(q,!1)};
_.k.initChildrenObserver=function(){var q=this;this.observer=new MutationObserver(function(){q.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.k.childrenChanged=function(){var q=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){e6(function(){q.canToggleJobId=0;q.calculateCanCollapse()})}))};
_.k.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};
_.k.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.k.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.D1("collapsed-changed",this.collapsed))};
_.k.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.D1("is-toggled-changed",this.isToggled))};
_.k.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.D1("can-toggle-changed",this.canToggle))};
_.x$.Object.defineProperties(zL.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
zL.prototype.canToggleChangedForBinding=zL.prototype.canToggleChangedForBinding;zL.prototype.isToggledChangedForBinding=zL.prototype.isToggledChangedForBinding;zL.prototype.collapsedChangedForBinding=zL.prototype.collapsedChangedForBinding;zL.prototype.observeCollapsedHeightAndMaxLines=zL.prototype.observeCollapsedHeightAndMaxLines;zL.prototype.onIronResize=zL.prototype.onIronResize;zL.prototype.reversedChanged=zL.prototype.reversedChanged;zL.prototype.toggledChanged=zL.prototype.toggledChanged;
zL.prototype.alwaysToggleableChanged=zL.prototype.alwaysToggleableChanged;_.c([_.D(_.mF),_.h("design:type",Object)],zL.prototype,"ironResizableBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],zL.prototype,"alignAuto",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],zL.prototype,"collapsed",void 0);_.c([_.v(),_.h("design:type",Object)],zL.prototype,"isToggled",void 0);_.c([_.v(),_.h("design:type",Object)],zL.prototype,"alwaysCollapsed",void 0);
_.c([_.v(),_.h("design:type",Object)],zL.prototype,"canToggle",void 0);_.c([_.v(),_.h("design:type",Object)],zL.prototype,"collapsedHeight",void 0);_.c([_.v(),_.h("design:type",Object)],zL.prototype,"disableToggle",void 0);_.c([_.v(),_.h("design:type",Object)],zL.prototype,"alwaysToggleable",void 0);_.c([_.v(),_.h("design:type",Object)],zL.prototype,"reversed",void 0);_.c([_.v(),_.h("design:type",Number)],zL.prototype,"maxNumberOfLines",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.h("design:type",Object)],zL.prototype,"shouldUseNumberOfLines",void 0);_.c([_.v(),_.h("design:type",Object)],zL.prototype,"recomputeOnResize",void 0);_.c([_.Wj("#content"),_.h("design:type",HTMLDivElement)],zL.prototype,"content",void 0);_.c([_.I9("alwaysToggleable"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zL.prototype,"alwaysToggleableChanged",null);
_.c([_.I9("isToggled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zL.prototype,"toggledChanged",null);_.c([_.Z("canToggleJobId"),_.h("design:type",Object),_.h("design:paramtypes",[])],zL.prototype,"isResetting",null);_.c([_.nL("reversed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zL.prototype,"reversedChanged",null);
_.c([_.Gm("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zL.prototype,"onIronResize",null);_.c([_.nL("maxNumberOfLines","collapsedHeight"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zL.prototype,"observeCollapsedHeightAndMaxLines",null);_.c([_.nL("collapsed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zL.prototype,"collapsedChangedForBinding",null);
_.c([_.nL("isToggled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zL.prototype,"isToggledChangedForBinding",null);_.c([_.nL("canToggle"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zL.prototype,"canToggleChangedForBinding",null);zL=_.c([_.E({disableElementRegistration:!0,is:"ytd-expander"})],zL);
_.R(zL,"ytd-expander",function(){if(TeG!==void 0)return TeG;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return TeG=q},{mode:1});var a1=function(){return _.Y.apply(this,arguments)||this};
_.O(a1,_.Y);a1.prototype.computeIsCarousel=function(q){return!!q.isCarousel};
a1.prototype.observeLightsourcePalette=function(){var q,w=(q=this.data)==null?void 0:q.vibrantsourceColorPaletteData;w&&_.ms(this.hostElement,w)};
a1.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
a1.prototype.observeLightsourcePalette=a1.prototype.observeLightsourcePalette;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],a1.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],a1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],a1.prototype,"data",void 0);_.c([_.v({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],a1.prototype,"isCarousel",void 0);
_.c([_.nL("data.vibrantsourceColorPaletteData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],a1.prototype,"observeLightsourcePalette",null);a1=_.c([_.E({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],a1);
_.R(a1,"ytd-media-upsell-renderer",function(){if(UjX!==void 0)return UjX;var q=document.createElement("template");_.f(q,'\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="arrow_drop_down" 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="arrow_drop_up" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return UjX=q},{mode:2});var CdF;var D8=function(){var q=_.Y.apply(this,arguments)||this;q.JSC$12711_playerEvents=new Map;q.listeningToPlayer=!1;q.startX=0;q.active=!1;q.shouldShowButtons=_.T("web_buttons_hidden_killswitch");q.isHighlighted=!1;q.useHighlightStyling=_.T("web_enable_deeper_metadata_highlight_styling");q.modern=_.T("kevlar_modern_sd");q.enableProblemWalkthrough=_.T("problem_walkthrough_sd");return q};
_.O(D8,_.Y);_.k=D8.prototype;
_.k.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}}}}}};
_.k.created=function(){this.JSC$12711_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.k.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Fj(this,this.onRepeatButtonToggle));_.T("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Fj(this,this.onActiveUpdate))};
_.k.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Fj(this,this.onRepeatButtonToggle));_.T("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Fj(this,this.onActiveUpdate))};
_.k.onDataChanged=function(){this.removePlayerListeners()};
_.k.onColorPaletteChange=function(){var q={},w;if(_.$M()==="USER_INTERFACE_THEME_DARK"&&((w=this.data)==null?0:w.darkColorPalette)){var u=this.data.darkColorPalette;q["--ytd-macro-markers-list-item-background-color"]=_.Je(this.get("section2Color",u))}else{var y;_.$M()==="USER_INTERFACE_THEME_LIGHT"&&((y=this.data)==null?0:y.lightColorPalette)&&(u=this.data.lightColorPalette,q["--ytd-macro-markers-list-item-background-color"]=_.Je(this.get("section3Color",u)))}u?(q["--ytd-macro-markers-list-item-title-color"]=
_.Je(this.get("primaryTitleColor",u)),q["--ytd-macro-markers-list-item-secondary-color"]=_.Je(this.get("secondaryTitleColor",u)),q["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Je(this.get("section1Color",u)),this.customButtonProperties={customColors:{color:_.Je(this.get("primaryTitleColor",u))}},this.useColorSampling=!0):(q["--ytd-macro-markers-list-item-background-color"]="initial",q["--ytd-macro-markers-list-item-title-color"]="initial",q["--ytd-macro-markers-list-item-secondary-color"]=
"initial",q["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Pj(this.hostElement,q)};
_.k.onEndpointMouseDown=function(q){this.startX=q.clientX};
_.k.onEndpointClick=function(q){var w=this,u,y,e;return _.F(function(t){if(t.nextAddress==1){if(w.startX!==q.clientX)return q.preventDefault(),t.return();w.data&&w.ytRendererBehavior.logExplicitClick(w.data);if(!w.seekWithAnimationOnClick)return t.jumpTo(0);if(q.button!==0||q.shiftKey||q.altKey||q.metaKey||q.ctrlKey||_.LT(_.SQ(q),w.hostElement,["BUTTON".toString()]))return t.return();q.stopPropagation();q.preventDefault();return w.data?_.H(t,_.qI().getPlayerPromise(),3):t.return()}u=t.yieldResult;
e=(y=_.C(w.data.onTap,_.LN))==null?void 0:y.startTimeSeconds;e!==void 0&&u.seekToTimeWithAnimation(e*1E3,_.lA(w.data.title));_.HI(t)})};
_.k.computeLayout=function(q){return q};
_.k.computeIsHighlighted=function(q){return!!q};
_.k.computeCarouselType=function(q){return q};
_.k.hideModernCarousel=function(q){return this.modern&&this.hideThumbnail(q)};
_.k.hideThumbnail=function(q){return this.enableProblemWalkthrough&&q!==null&&q==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.k.onRepeatButtonToggle=function(q){var w=this;q.detail.toggled&&_.qI().getPlayerPromise().then(function(u){w.ytPlayerListenerBehavior.listenToPlayerEvents(u,w.JSC$12711_playerEvents);w.listeningToPlayer=!0})};
_.k.onLoopRangeChange=function(q){var w=_.A(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(w){var u=w.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",w.polymerController.data);if(u){var y=Number(u.endTimeMs);if(Number(u.startTimeMs)!==(q==null?void 0:q.startTimeMs)||y!==(q==null?void 0:q.endTimeMs))w.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.k.removePlayerListeners=function(){var q=this;this.listeningToPlayer&&_.qI().getPlayerPromise().then(function(w){q.ytPlayerListenerBehavior.unlistenFromPlayerEvents(w,q.JSC$12711_playerEvents);q.listeningToPlayer=!1})};
_.k.onActiveUpdate=function(q){this.active=q.detail.active};
D8.prototype.onColorPaletteChange=D8.prototype.onColorPaletteChange;D8.prototype.onDataChanged=D8.prototype.onDataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],D8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.b7.YtPlayerListenerBehavior),_.h("design:type",_.Yp)],D8.prototype,"ytPlayerListenerBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],D8.prototype,"data",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],D8.prototype,"useCustomColors",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],D8.prototype,"active",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],D8.prototype,"shouldShowButtons",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.h("design:type",String)],D8.prototype,"layout",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.h("design:type",Object)],D8.prototype,"isHighlighted",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],D8.prototype,"useHighlightStyling",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],D8.prototype,"modern",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],D8.prototype,"enableProblemWalkthrough",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.h("design:type",String)],D8.prototype,"carouselType",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],D8.prototype,"useColorSampling",void 0);_.c([_.v(),_.h("design:type",Boolean)],D8.prototype,"seekWithAnimationOnClick",void 0);_.c([_.v(),_.h("design:type",Object)],D8.prototype,"customButtonProperties",void 0);
_.c([_.Wj("#repeat-button"),_.h("design:type",HTMLElement)],D8.prototype,"repeatButton",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],D8.prototype,"onDataChanged",null);_.c([_.nL("data.lightColorPalette","data.darkColorPalette"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],D8.prototype,"onColorPaletteChange",null);
D8=_.c([_.E({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],D8);
_.R(D8,"ytd-macro-markers-list-item-renderer",function(){if(CdF!==void 0)return CdF;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return CdF=q},{mode:1});var djx;var Ol3;var Z8=function(){var q=_.Y.apply(this,arguments)||this;q.modernTypography=_.T("web_modern_typography");return q};
_.O(Z8,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Z8.prototype,"modernTypography",void 0);_.c([_.v(),_.h("design:type",Object)],Z8.prototype,"data",void 0);Z8=_.c([_.E({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],Z8);
_.R(Z8,"ytd-title-and-button-list-header-renderer",function(){if(Ol3!==void 0)return Ol3;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Ol3=q},{mode:1});var o5X;var VT6=new _.MH("BUTTON_RENDERER_WIZ_TOKEN"),fyr=new _.MH("BUTTON_RENDERER_TOKEN");_.pz=_.LL(function(q){var w=_.tG().resolve(_.kF(VT6));if(w)return _.W(w,Object.assign({},q));var u=_.tG().resolve(fyr);return u?_.W(noj,null,function(){return _.W(qb,null,function(){var y,e,t,X,G,n,N,Q,I,U,d,V;return void u(q.data(),{onButtonClickCallback:q.onButtonClickCallback,shouldShowIcons:(y=q.shouldShowIcons)==null?void 0:y.call(q),icon:(e=q.icon)==null?void 0:e.call(q),processAllEndpoints:(t=q.processAllEndpoints)==null?void 0:t.call(q),preventDefault:(X=q.preventDefault)==null?void 0:X.call(q),
stopPropagation:(G=q.stopPropagation)==null?void 0:G.call(q),disableButtonRendererClickHandling:(n=q.disableButtonRendererClickHandling)==null?void 0:n.call(q),className:(N=q.className)==null?void 0:N.call(q),buttonOverrides:(Q=q.buttonOverrides)==null?void 0:Q.call(q),forceModernIconButton:(I=q.forceModernIconButton)==null?void 0:I.call(q),isSubscribe:(U=q.isSubscribe)==null?void 0:U.call(q),alignByText:(d=q.alignByText)==null?void 0:d.call(q),forceDisabled:(V=q.forceDisabled)==null?void 0:V.call(q)})})}):
_.W(_.GS,null)},"Y");
_.pz.idomCompat=!0;var mj$=_.LL(function(q){var w=q.data,u=_.jf(q.useSquareAspectRatio,!1);return _.W("dismissed-mini-game-card-view-model",null,_.W(_.r,{cond:function(){var y,e;return(y=w().responseText)==null?void 0:(e=y.runs)==null?void 0:e.length},
then:function(){var y={};return _.W("div",{class:_.HR("yt-mini-game-card-view-model__dismissed-card",(y["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!u()},y["yt-mini-game-card-view-model--dismissed-square-card"]=u,y))},_.W("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.W(_.r,{cond:function(){return w().responseText.runs[0].text},
then:function(e){return _.W("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:e},e)}}),_.W(_.OF,{data:function(){return w().buttons}},{buttonRenderer:_.pz,
buttonViewModel:_.Zs})))}}))},"Z");var Zlc=_.LL(function(q){q=_.lf(q,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var w=q.data,u=q.useFullWidth,y=q.isDesktopWeb,e=q.addSearchResultTopMargin,t=function(){return w().layout},X=function(){return w().title},G=function(){return w().genre},n=function(){return w().channelName},N=function(){return w().image},Q=function(){return w().colorPalette},I=function(){return w().actionButton},U=function(){return w().overflowButton},d=function(){return w().avatar},
V=function(){var g={};
g=_.HR("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(g["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return y()},g));
return _.W("div",{class:g},_.W(AQc,{imageData:N,colorPalette:Q}),_.W(JQZ,{onTap:function(){return w().onTap},
imageData:N,accessibilityText:function(){return w().accessibilityText},
overlayBadgeText:function(){return w().overlayBadgeText},
iconName:function(){return w().iconName},
unplayableInlinePlaybackIconName:function(){return w().unplayableInlinePlaybackIconName},
isDesktopWeb:y}),_.W(_.r,{cond:function(){return!y()},
then:function(){return _.W(_.GS,null,_.W(zor,{layout:t,colorPalette:Q,isDesktopWeb:y,overflowButton:U,avatar:d,onTap:function(){return w().onTap},
genre:G,title:X,channelName:n,entityRedesignExperiments:function(){return w().entityRedesignExperiments}}),_.W($L,{actionButton:I}))}}))},J=function(){var g={};
g=_.HR((g["yt-mini-game-card-view-model--search-result-desktop"]=function(){return y()},g["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!y()},g["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return e()},g));
return _.W("div",{class:g},V(),_.W(ayk,{description:function(){return w().description},
isDesktopWeb:y,title:X,genre:G,onTap:function(){return w().onTap},
actionButton:I,overflowButton:U,avatar:d,channelName:n}))},a=function(){var g=function(){var S;
return(S=w().entityRedesignExperiments)==null?void 0:S.changePlayablesLayoutWithCta},l={};
l=_.HR("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(l["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return g()},l["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return y()},l["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return y()&&w().width===135},l["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return y()},l["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!g()&&y()&&w().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},l["yt-mini-game-card-view-model--big-metadata-font"]=function(){return w().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},l["yt-mini-game-card-view-model--use-full-width"]=function(){return u()},l["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!I()},l));
return _.W("div",{class:l},_.W(_.r,{cond:function(){return g()},
then:function(){return _.W(_.GS,null,_.W(DjT,{entityRedesignExperiments:function(){return w().entityRedesignExperiments},
colorPalette:Q,isDesktopWeb:y,onTap:function(){return w().onTap},
accessibilityText:function(){return w().accessibilityText},
overlayBadgeText:function(){return w().overlayBadgeText},
iconName:function(){return w().iconName},
unplayableInlinePlaybackIconName:function(){return w().unplayableInlinePlaybackIconName},
actionButton:I,imageData:N}),_.W(zor,{layout:t,colorPalette:Q,isDesktopWeb:y,overflowButton:U,avatar:d,onTap:function(){return w().onTap},
genre:G,title:X,channelName:n,entityRedesignExperiments:function(){return w().entityRedesignExperiments}}),_.W(_.r,{cond:function(){return!!g()===!1&&I()},
then:function(){return _.W($L,{actionButton:I})}}))},
else:function(){return _.W(_.GS,null,_.W(AQc,{imageData:N,colorPalette:Q}),_.W(JQZ,{onTap:function(){return w().onTap},
imageData:N,accessibilityText:function(){return w().accessibilityText},
overlayBadgeText:function(){return w().overlayBadgeText},
iconName:function(){return w().iconName},
unplayableInlinePlaybackIconName:function(){return w().unplayableInlinePlaybackIconName},
isDesktopWeb:y}),_.W(zor,{layout:t,colorPalette:Q,isDesktopWeb:y,overflowButton:U,avatar:d,onTap:function(){return w().onTap},
genre:G,title:X,channelName:n,entityRedesignExperiments:function(){return w().entityRedesignExperiments}}),_.W($L,{actionButton:I}))}}))},b=function(){var g={};
g=_.HR("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(g["yt-mini-game-card-view-model--square-card-desktop"]=function(){return y()},g["yt-mini-game-card-view-model--use-full-width"]=function(){return u()},g));
return _.W("div",{class:g},_.W(JQZ,{onTap:function(){return w().onTap},
imageData:N,accessibilityText:function(){return w().accessibilityText},
overlayBadgeText:function(){return w().overlayBadgeText},
iconName:function(){return w().iconName},
unplayableInlinePlaybackIconName:function(){return w().unplayableInlinePlaybackIconName},
isDesktopWeb:y}),_.W(zor,{layout:t,colorPalette:Q,isDesktopWeb:y,overflowButton:U,avatar:d,onTap:function(){return w().onTap},
genre:G,title:X,channelName:n,entityRedesignExperiments:function(){return w().entityRedesignExperiments}}))};
return _.W("mini-game-card-view-model",{class:q.className},_.W(_.zS,null,_.W(_.AP,{when:function(){return t()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return a()}),_.W(_.AP,{when:function(){return t()==="MINI_APP_LAYOUT_SQUARE"}},function(){return b()}),_.W(_.AP,{when:function(){return t()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return J()})))},"$");
Zlc.idomCompat=!0;var $L=_.LL(function(q){var w=_.jf(q.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.W(_.OF,{data:q.actionButton},{buttonViewModel:function(u){return _.W("div",{class:w},_.W(_.Zs,{data:u.data}))}})},"aa"),JQZ=_.LL(function(q){var w=q.onTap;
var u=q.imageData;var y=q.accessibilityText;var e=q.overlayBadgeText;var t=q.iconName;var X=q.unplayableInlinePlaybackIconName;q=q.isDesktopWeb;return _.W(_.Mq,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:w},_.W(_.ln,{data:u,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(y==null?void 0:y())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.W(pDF,{overlayBadgeText:e,iconName:t,unplayableInlinePlaybackIconName:X,isDesktopWeb:q}))},"ba"),pDF=_.LL(function(q){var w=q.overlayBadgeText;
var u=q.iconName;var y=q.unplayableInlinePlaybackIconName;var e=q.isDesktopWeb;return _.W("div",{class:"yt-mini-game-card-view-model__badge-container"},_.W(_.r,{cond:u,then:function(t){return _.W("div",{class:"yt-mini-game-card-view-model__badge"},_.W("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.W(_.U3,{icon:t,className:"yt-mini-game-card-view-model__icon"}),_.W("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},w)))}}),_.W(_.r,{cond:function(){return!u()&&
w()},
then:function(){return _.W("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},w)}}),_.W(_.r,{cond:function(){return y()&&e()},
then:function(){return _.W("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.W(_.U3,{icon:y,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ca"),AQc=_.LL(function(q){var w=q.colorPalette;
var u=q.imageData;var y=function(){return w().vibrantColorPalette?w().vibrantColorPalette.section2Color:w().sectionTwoColor};
return _.W(_.GS,null,_.W("div",{class:"yt-mini-game-card-view-model__background-base",style:_.rm({"background-color":function(){return zt(y(),"1")}})}),_.W("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.rm({"background-image":function(){return"url("+u().sources[0].url+")"}})}),_.W("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.rm({background:function(){return"linear-gradient(180deg,\n    "+zt(y(),".8")+" 0%,\n    "+zt(y(),".4")+" 25%,\n    "+zt(w().vibrantColorPalette?w().vibrantColorPalette.section4Color:w().sectionFourColor,".8")+" 100%)"}})}))},"da"),zor=_.LL(function(q){var w=q.layout;
var u=q.colorPalette;var y=q.overflowButton;var e=q.avatar;var t=q.onTap;var X=q.title;var G=q.channelName;var n=q.entityRedesignExperiments;var N=q.genre;var Q=function(){var U;return w()!=="MINI_APP_LAYOUT_SQUARE"&&((U=u())==null?0:U.textPrimaryColor)?"color: "+zt(u().textPrimaryColor,".7"):""},I=function(){var U;
return n==null?void 0:(U=n())==null?void 0:U.changePlayablesLayoutWithCta};
return _.W("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.W(_.r,{cond:e,then:function(){return _.W("div",{class:"yt-mini-game-card-view-model__avatar"},_.W(_.OF,{data:e},{avatarViewModel:_.Vb}))}}),_.W(_.Mq,{command:t,
className:"yt-mini-game-card-view-model__metadata-details"},_.W("h3",{class:"yt-mini-game-card-view-model__title",title:X},X),_.W(_.r,{cond:e,then:function(){return _.W("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.W("span",{class:"yt-mini-game-card-view-model__genre",title:G,style:Q},G),_.W("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:Q},N))},
else:function(){return _.W(_.r,{cond:I,then:function(){return _.W("span",{class:"yt-mini-game-card-view-model__genre",title:N},N)},
else:function(){return _.W("span",{class:"yt-mini-game-card-view-model__genre",title:N,style:Q},N)}})}})),_.W("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.W(_.OF,{data:y},{buttonViewModel:function(U){var d=U.data;
return _.W(_.Zs,{data:function(){return Object.assign({},d(),{customFontColor:I()?void 0:d().customFontColor})}})}})))},"ea"),DjT=_.LL(function(q){var w=q.entityRedesignExperiments;
var u=q.colorPalette;var y=q.isDesktopWeb;var e=q.onTap;var t=q.accessibilityText;var X=q.overlayBadgeText;var G=q.iconName;var n=q.unplayableInlinePlaybackIconName;var N=q.actionButton;q=q.imageData;var Q=function(){var I;return w==null?void 0:(I=w())==null?void 0:I.changePlayablesLayoutWithCta};
return _.W("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.W(AQc,{imageData:q,colorPalette:u}),_.W(JQZ,{onTap:e,imageData:q,accessibilityText:t,overlayBadgeText:X,iconName:G,unplayableInlinePlaybackIconName:n,isDesktopWeb:y}),_.W(_.r,{cond:function(){return(Q==null?void 0:Q())&&(N==null?void 0:N())},
then:function(){return _.W($L,{actionButton:N})}}))},"fa"),ayk=_.LL(function(q){var w=q.description;
var u=q.isDesktopWeb;var y=q.title;var e=q.genre;var t=q.onTap;var X=q.actionButton;var G=q.overflowButton;var n=q.avatar;q=q.channelName;var N={};N=_.HR("yt-mini-game-card-view-model--search-result-metadata-wrapper",(N["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=u,N["yt-mini-game-card-view-model--show-unplayable-on-hover"]=u,N["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!u()},N));
var Q={};Q=_.HR("yt-mini-game-card-view-model__search-result-info-row",(Q["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!u()},Q));
return _.W("div",{class:N},_.W("div",{class:Q},_.W(_.Mq,{command:t,className:"yt-mini-game-card-view-model__metadata-details"},_.W("h3",{class:"yt-mini-game-card-view-model__title",title:y},y),_.W("span",{class:"yt-mini-game-card-view-model__genre",title:e},e)),_.W($L,{actionButton:X,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.W("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.W(_.OF,{data:G},{buttonViewModel:_.Zs}))),_.W("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.W("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.W("div",{class:"yt-mini-game-card-view-model__avatar"},_.W(_.OF,{data:n},{avatarViewModel:function(I){var U=I.data;return _.W(_.Vb,{data:function(){return Object.assign({},U(),{avatarImageSize:u()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.W(_.Mq,{command:t,
className:"yt-mini-game-card-view-model__description"},_.W("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},q)),_.W(_.Mq,{command:t,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.W("div",null)))),_.W(_.r,{cond:u,then:function(){return _.W(_.Mq,{command:t,className:"yt-mini-game-card-view-model__description"},w)}}))},"ga");_.q9(Zlc,"mini-game-card-view-model",{props:{data:_.pK,className:_.pK,useFullWidth:_.pK,isDesktopWeb:_.pK,addSearchResultTopMargin:_.pK}});_.q9(mj$,"dismissed-mini-game-card-view-model",{props:{data:_.pK,useSquareAspectRatio:_.pK}});var vt=function(){var q=_.Y.apply(this,arguments)||this;q.isSearch=!1;q.isRichGrid=!1;return q};
_.O(vt,_.Y);_.k=vt.prototype;_.k.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.k.dismissibleItemOnYtServiceRequestSent=function(q,w){w.actions&&this.dismissibleItemProcessActions(q,w.actions)};
_.k.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.k.dataChanged=function(){this.dismissibleItemReset()};
_.k.dismissibleItemProcessActions=function(q,w){for(var u=0;u<w.length;u++){var y=w[u];_.C(y,_.rf)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.C(y,_.rf)),q.stopPropagation())}};
_.k.dismissibleItemHandleReplaceEnclosingAction=function(q){this.dismissedRenderer=q.item;this.isDismissed=!0};
_.k.experimentalPropertiesChanged=function(){_.T("kevlar_mini_game_card_c3po_to_wiz")||this.ytIdomTemplatingBehavior.debounceRender()};
_.k.renderIdom=function(){if(!_.T("kevlar_mini_game_card_c3po_to_wiz")&&this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var q=!!this.useSquareAspectRatio;hB(mj$)({data:this.dismissedRenderer.notificationMultiActionRenderer,useSquareAspectRatio:q===void 0?!1:q})}else hB(Zlc)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0})};
_.x$.Object.defineProperties(vt.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){if(!_.T("kevlar_mini_game_card_c3po_to_wiz"))return!1;var q;return!!this.data&&!((q=this.dismissedRenderer)==null?0:q.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){if(!_.T("kevlar_mini_game_card_c3po_to_wiz"))return!1;var q;return!((q=this.dismissedRenderer)==null||!q.notificationMultiActionRenderer)}}});
vt.prototype.experimentalPropertiesChanged=vt.prototype.experimentalPropertiesChanged;vt.prototype.dataChanged=vt.prototype.dataChanged;vt.prototype.dismissibleItemOnRequestSent=vt.prototype.dismissibleItemOnRequestSent;vt.prototype.dismissibleItemOnYtServiceRequestSent=vt.prototype.dismissibleItemOnYtServiceRequestSent;_.c([_.D(_.T("kevlar_mini_game_card_c3po_to_wiz")?{}:THZ),_.h("design:type",Object)],vt.prototype,"ytIdomTemplatingBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],vt.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],vt.prototype,"isSearch",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],vt.prototype,"isDismissed",void 0);_.c([_.v(),_.h("design:type",Object)],vt.prototype,"dismissedRenderer",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],vt.prototype,"isRichGrid",void 0);
_.c([_.Z("data.layout"),_.h("design:type",Object),_.h("design:paramtypes",[])],vt.prototype,"useSquareAspectRatio",null);_.c([_.Z("data","dismissedRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],vt.prototype,"showCard",null);_.c([_.Z("data","dismissedRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],vt.prototype,"showDismissed",null);
_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],vt.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.c([_.Gm("yt-service-request-sent-button-renderer"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],vt.prototype,"dismissibleItemOnRequestSent",null);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vt.prototype,"dataChanged",null);_.c([_.nL("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vt.prototype,"experimentalPropertiesChanged",null);vt=_.c([_.JM({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],vt);
_.R(vt,"ytd-mini-game-card-view-model",function(){if(o5X!==void 0)return o5X;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return o5X=q},{mode:_.kB("kevlar_poly_si_batch_j081")?1:2});var $jk;var v5T;var bl=function(){return _.q4.apply(this,arguments)||this};
_.O(bl,_.q4);bl.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
bl.prototype.getContinuationUrl=function(q){var w={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(w.itct=this.data.clickTrackingParams);return _.xw(q,w)};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],bl.prototype,"data",void 0);bl=_.c([_.JM({is:"yt-reload-continuation",noInjection:!0})],bl);var blk;var YyT;var YL=function(){var q=_.Y.apply(this,arguments)||this;q.notificationData={};return q};
_.O(YL,_.Y);_.k=YL.prototype;_.k.isMenuExpanded=function(q){return q&&q.length<=1?"undefined":"false"};
_.k.dataChanged_=function(){this.selected=void 0;var q=this.computeSelectedIndex_(this.data);q>=0&&(this.selected=q);q=this.data&&this.data.length>1;_.ef(this.hostElement,"has-items",q);_.A(this.hostElement).querySelector("#label").tabIndex=q?0:-1};
_.k.onDropdownOpen=function(){var q=_.pN();if(this.parentTrackingParams&&this.data){var w=_.Tj(this.parentTrackingParams);this.data.forEach(function(u){q&&w&&u.trackingParams&&(u=_.Tj(u.trackingParams),_.EC(q,w,u),_.SB(q,[u]))})}else this.parentTrackingParams||_.Y8(new _.fv("No parent tracking params passed in for yt-dropdown-menu."))};
_.k.hasNotification=function(q){var w;if(q.targetId&&((w=this.notificationData)==null?0:w.targetId)){var u;return q.targetId===((u=this.notificationData)==null?void 0:u.targetId)}};
_.k.computeSelectedIndex_=function(q){if(q)for(var w=0,u=q.length;w<u;w++)if(q[w].selected)return w;return-1};
_.k.computeLabel_=function(q){return this.data&&q!=void 0?this.data[q].title:""};
_.k.computeShowIcon_=function(q,w){return!w&&!!q};
_.k.computeVerticalOffset_=function(q){return q?36:0};
_.k.computeEndpoint_=function(q){return q.endpoint||q.navigationEndpoint};
_.k.onLabelClick_=function(q){this.data&&this.data.length<=1?q.stopPropagation():this.menuExpanded="true"};
_.k.onIronActivate_=function(q){q=q.detail.item;var w=_.A(this.hostElement).querySelector("#repeat").itemForElement(q);if(w&&w.trackingParams){var u=_.pN(),y=_.Tj(w.trackingParams);u&&_.jB(u,y)}if(w&&w.serviceEndpoint)_.T("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(w.serviceEndpoint):_.GM(this.hostElement,[w.serviceEndpoint]),_.t7(this.hostElement,"yt-playlist-reloading");else a:{if((w=q.querySelector("yt-supported-renderers"))&&(w=
w.rendererElement)&&w.is=="yt-reload-continuation"){w.trigger();break a}(q=q.querySelector("yt-reload-continuation"))&&q.trigger()}};
_.k.onTap_=function(q){q.preventDefault()};
_.k.onItemTap_=function(q){this.ytEndpointBehavior.onEndpointTap_(q)};
_.k.onLinkFocus_=function(q){try{var w=q.target}catch(y){}if(w){var u=w.querySelector("tp-yt-paper-item");u&&_.bf(this,"focus",function(){u.focus()})}};
_.k.onMenuClose_=function(){this.menuExpanded="false"};
_.k.isLabelIconActive_=function(q){return q==="true"};
_.k.computeHasSubtitle_=function(q){return!!q};
_.k.computeHrefForItem_=function(q){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(q))};
_.k.updateSelectedFromBinding=function(q){this.selected=q.detail.value};
_.x$.Object.defineProperties(YL.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
YL.prototype.onMenuClose_=YL.prototype.onMenuClose_;YL.prototype.onTap_=YL.prototype.onTap_;YL.prototype.onIronActivate_=YL.prototype.onIronActivate_;YL.prototype.onDropdownOpen=YL.prototype.onDropdownOpen;YL.prototype.dataChanged_=YL.prototype.dataChanged_;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],YL.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.yL.YtEndpointBehavior),_.h("design:type",Object)],YL.prototype,"ytEndpointBehavior",void 0);
_.c([_.v(),_.h("design:type",Array)],YL.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],YL.prototype,"parentTrackingParams",void 0);_.c([_.v(),_.h("design:type",Object)],YL.prototype,"selected",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],YL.prototype,"useLabel",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],YL.prototype,"useComputedAriaLabel",void 0);_.c([_.v(),_.h("design:type",String)],YL.prototype,"icon",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],YL.prototype,"iconLabel",void 0);_.c([_.v(),_.h("design:type",String)],YL.prototype,"ariaLabel",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],YL.prototype,"disabled",void 0);_.c([_.v({computed:"isMenuExpanded(data)"}),_.h("design:type",String)],YL.prototype,"menuExpanded",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],YL.prototype,"closeOnActivate",void 0);
_.c([_.v({reflectToAttribute:!0,value:_.T("web_modern_buttons")}),_.h("design:type",Boolean)],YL.prototype,"modernButtons",void 0);_.c([_.v(),_.h("design:type",Object)],YL.prototype,"notificationData",void 0);_.c([_.Z("ariaLabel, selected"),_.v(),_.h("design:type",String),_.h("design:paramtypes",[])],YL.prototype,"computedAriaLabel",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],YL.prototype,"dataChanged_",null);
_.c([_.Gm("paper-dropdown-open"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],YL.prototype,"onDropdownOpen",null);_.c([_.Gm("iron-activate"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],YL.prototype,"onIronActivate_",null);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],YL.prototype,"onTap_",null);
_.c([_.Gm("iron-overlay-closed"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],YL.prototype,"onMenuClose_",null);YL=_.c([_.JM({is:"yt-dropdown-menu",disableElementRegistration:!0})],YL);
_.R(YL,"yt-dropdown-menu",function(){if(YyT===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;blk===void 0&&(blk=document.createElement("template"));var y=blk;u.call(w,y.content.cloneNode(!0),q.content.firstChild);YyT=q}q=YyT;return q},{mode:2});var gy=function(){var q=_.Y.apply(this,arguments)||this;q.hasNotification=!1;return q};
_.O(gy,_.Y);gy.prototype.computeId=function(q){return q};
gy.prototype.computeHorizontalAlign=function(q){return q?"right":"left"};
gy.prototype.computeAccessibilityLabel=function(q){var w,u;return((w=q.accessibility)==null?void 0:(u=w.accessibilityData)==null?void 0:u.label)||null};
gy.prototype.notificationDataChanged=function(){var q;this.hasNotification=!!this.notificationData&&!((q=this.data)==null?0:q.icon)};
gy.prototype.notificationDataChanged=gy.prototype.notificationDataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.VA.YtLiveChatTooltipTargetingBehavior),_.h("design:type",Object)],gy.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],gy.prototype,"data",void 0);_.c([_.v({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.h("design:type",String)],gy.prototype,"id",void 0);
_.c([_.v({value:!1}),_.h("design:type",Boolean)],gy.prototype,"isRightAligned",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],gy.prototype,"disabled",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],gy.prototype,"closeOnActivate",void 0);_.c([_.v(),_.h("design:type",Object)],gy.prototype,"notificationData",void 0);_.c([_.v(),_.h("design:type",Object)],gy.prototype,"hasNotification",void 0);
_.c([_.v({value:!1}),_.h("design:type",Boolean)],gy.prototype,"useComputedAriaLabel",void 0);_.c([_.nL("notificationData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gy.prototype,"notificationDataChanged",null);gy=_.c([_.JM({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],gy);
_.R(gy,"yt-sort-filter-sub-menu-renderer",function(){if(v5T===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;$jk===void 0&&($jk=document.createElement("template"));var y=$jk;u.call(w,y.content.cloneNode(!0),q.content.firstChild);v5T=q}q=v5T;return q},{mode:2});_.t2(Dhc);
var g5a=_.LL(function(q){var w=q.children;var u=q.className;var y=q.style;var e=q.role;var t=q.ariaSelected;var X=q.ariaLabel;var G=q.ariaHidden;var n=q.ariaLabelledby;var N=q.ariaDescribedby;var Q=q.command;var I=q.elementsCommand;var U=q.forceNewState;var d=q.tabIdentifier;var V=q.target;var J=q.tabIndex;var a=q.stopPropagation;q=_.oR(function(){var b=_.$B({innertubeCommand:Q==null?void 0:Q(),elementsCommand:I==null?void 0:I(),forceNewState:U==null?void 0:U(),stopPropagation:(a==null?void 0:a())!==
!1});b||(b={});b["aria-hidden$"]=G==null?void 0:G();var g;b.tabindex$=(g=J==null?void 0:J())!=null?g:b.tabindex$;var l;b["force-new-state$"]=(l=U==null?void 0:U())!=null?l:b["force-new-state$"];var S;b.role$=(S=e==null?void 0:e())!=null?S:b.role$;var eH;b["aria-hidden$"]=(eH=G==null?void 0:G())!=null?eH:b["aria-hidden$"];var x;b.target$=(x=V==null?void 0:V())!=null?x:b.target$;return b},void 0,"SU0Mnc");
return _.W(_.Mq,{aTagConfig:q,className:u,style:y,ariaLabel:X,ariaLabelledby:n,ariaDescribedby:N,ariaSelected:t,tabIdentifier:d},w)},"ha");var E5r=_.N9(Z2s);_.t2(Z2s);_.q9(E5r,"place-data-view-model",{props:{data:_.pK}});var Roj=new _.MH("INLINE_PLAYBACK_HOOK_TOKEN");var cQa=function(q){this.setActiveSlideIndex=q;this.jobIds=[];this.isSlideshowPlaying=!1},jnx=function(q,w){q.isSlideshowPlaying||(q.isSlideshowPlaying=!0,Syx(q),hoG(q,w,0))},Syx=function(q){_.ko(_.pi,function(){q.setActiveSlideIndex(0)},1)},hoG=function(q,w,u){q.jobIds.push(_.ko(_.pi,function(){var y=u<w-1?u+1:0;
q.setActiveSlideIndex(y);hoG(q,w,y)},1800))};var lyT=new _.MH("IMAGE_ON_LOAD_HANDLER_TOKEN");var LVa=_.LL(function(q){return _.W("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.W(_.r,{cond:function(){var w;return(w=q.data())==null?void 0:w.thumbnail},
then:function(w){return _.W(_.ln,{data:w,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ia");_.MTP=_.LL(function(q){var w=q.data;var u=q.lockupExperiments;q={};return _.W("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.W("div",{class:_.HR("ytThumbnailOverlayButtonViewModelButton",(q.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var y;return u&&((y=u())==null?void 0:y.useLegacySizedIconButton)},q))},_.W(_.OF,{data:function(){return w().overlayButton}},{buttonViewModel:function(y){return _.W(_.Zs,{data:y.data,
buttonOverrides:function(){var e;return u&&((e=u())==null?0:e.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ja");
_.MTP.idomCompat=!0;var KVF=_.LL(function(q){var w=_.QS(function(u){u.preventDefault();return!1});
return _.W("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":w},_.W(_.OF,{data:function(){return q.data().buttons}},{toggleButtonViewModel:function(u){return _.W("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.W(_.fr,{data:u.data}))}}))},"ka");
KVF.idomCompat=!0;var Bej=_.LL(function(q){var w=function(){var u;return((u=_.C(q.data().rendererContext,_.ik))==null?void 0:u.label)||""};
return _.W("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.W(_.r,{cond:function(){return q.data().image},
then:function(){return _.W("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.W(_.ln,{data:function(){return q.data().image},
alt:w}))}}),_.W(_.r,{cond:function(){return q.data().text},
then:function(){return _.W("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return q.data().text})}}))},"la");_.EJ=_.LL(function(q){var w=[],u=function(){var U,d;return OPJ((U=q.width)==null?void 0:U.call(q),(d=q.height)==null?void 0:d.call(q))},y=_.tG().resolve(_.kF(lyT)),e=_.Bm(function(){w.push("elRef.value set");
var U;(U=q.playbackRef)==null||U.call(q,{thumbnailElRef:e,thumbnail:q.data().image,thumbnailOverlays:q.data().overlays,thumbnailSize:u()})});
_.p4(function(){w.push("onInit");_.ZG(function(){w.push("onCleanup")})});
var t=_.aV($hl),X=function(){var U,d;return(d=(U=q.aspectRatio)==null?void 0:U.call(q))!=null?d:0},G=function(){return(q.data().image?_.X9H(q.data().image):X())<=1&&X()===0},n=function(){return G()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},N=function(){e.value||_.Y8(new _.fv("Thumbnail elRef.value is null",w.join("\n")));
y&&e.value&&y(e.value)},Q=function(){var U,d;
return((U=q.hovered)==null?void 0:U.call(q))&&u()!=="large"&&((d=q.data().overlays)==null?void 0:d.some(function(V){return _.C(V,kox)}))},I={};
return _.W("yt-thumbnail-view-model",{class:_.HR("yt-thumbnail-view-model",q.className,function(){return YQM(X())},function(){var U,d;
a:{var V=u(),J=(U=q.disableRounding)==null?void 0:U.call(q);U=(d=q.isClip)==null?void 0:d.call(q);if(!J&&!U)switch(V){case "large":d="yt-thumbnail-view-model--large";break a;case "small":d="yt-thumbnail-view-model--small";break a;default:d="yt-thumbnail-view-model--medium";break a}d=void 0}return d},(I["yt-thumbnail-view-model--cinematic"]=G,I)),
style:_.rm({"background-color":function(){var U,d=G()?(U=q.data().backgroundColor)==null?void 0:U.lightTheme:void 0;return d?zt(d,"1"):void 0}}),
el:e},_.W(_.r,{cond:G,then:function(){return _.W("div",{class:"yt-thumbnail-view-model__blurred-image"},_.W(_.ln,{data:function(){return q.data().image},
alt:"",contentMode:n,targetWidth:q.width,onload:N}))}}),_.W("div",{class:"yt-thumbnail-view-model__image"},_.W(_.ln,{data:function(){return q.data().image},
alt:"",contentMode:n,targetWidth:q.width,onload:N}),null),_.W(_.OF,{data:function(){return Q()?void 0:q.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:k$G,thumbnailOverlayBadgeViewModel:function(U){return _.W(tTX,{data:U.data,thumbnailSize:u,isClip:q.isClip})},
thumbnailBottomOverlayViewModel:wDT,thumbnailOverlayFullViewModel:Bej,thumbnailOverlayButtonViewModel:function(U){return _.W(_.MTP,{data:U.data,lockupExperiments:q.lockupExperiments})}}),_.W(_.OF,{data:function(){var U;
return((U=q.hovered)==null?0:U.call(q))?q.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(U){return _.W(ry,{data:U.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:KVF}),_.W(_.OF,{data:function(){var U;return((U=q.hovered)==null?0:U.call(q))&&t()?q.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:LVa}),_.W(_.r,{cond:q.isClip,then:function(){return _.W("div",{class:"yt-pinking"},_.W("svg",{class:"yt-pinking__pinking-left"},_.W("defs",null,_.W("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.W("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.W("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.W("svg",{class:"yt-pinking__pinking-right"},_.W("defs",null,_.W("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.W("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.W("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"ma");
_.EJ.idomCompat={callbacks:{playbackRef:!0}};var xjF=_.LL(function(q){var w=_.P(_.r4(-1,void 0,"IOLZ0b")),u=w.next().value,y=w.next().value;_.p4(function(){var e=new cQa(y);jnx(e,q.data().thumbnails.length);_.ZG(function(){if(e.isSlideshowPlaying){e.isSlideshowPlaying=!1;for(var t=e.jobIds,X=0,G=t.length;X<G;X++)_.pi.cancelJob(t[X]);e.jobIds.length=0}})});
return _.W("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.W(_.OF,{data:function(){return q.data().thumbnails}},{thumbnailViewModel:function(e,t){return _.W("div",{class:function(){var X=!q.data().primaryThumbnail,G=t(),n=u(),N=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
X&&G===0&&N.push("yt-collection-thumbnail-slideshow--first-slide");G<=n&&N.push("yt-collection-thumbnail-slideshow--show-slide");return N.join(" ")}},_.W(_.EJ,{data:e.data,
disableRounding:q.disableRounding}))}}))},"na");
xjF.idomCompat=!0;var gi7=new _.MH("DWELL_DETECTOR_REGISTRY_TOKEN");var wer=_.LL(function(q){var w=Ei4(q.triggeringElement),u=function(){return!!q.data().primaryThumbnail};
return _.W("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.W(qQF,{stackEnabled:u,thumbnailSize:function(){var y,e;return OPJ((y=q.width)==null?void 0:y.call(q),(e=q.height)==null?void 0:e.call(q))},
doubleStack:q.doubleStack,stackColor:function(){return q.data().stackColor}},_.W("div",null,_.W(_.OF,{data:function(){return q.data().primaryThumbnail}},{thumbnailViewModel:function(y){var e={};
return _.W(_.EJ,{data:y.data,width:q.width,height:q.height,aspectRatio:q.aspectRatio,disableRounding:q.disableRounding,className:_.HR((e["yt-collection-thumbnail-view-model--has-stacks"]=u,e)),hovered:q.hovered,playbackRef:q.playbackRef})}}),_.W(_.r,{cond:function(){var y;
return w()&&((y=q.data().thumbnails)==null?void 0:y.length)},
then:function(){return _.W("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.W(xjF,{data:q.data,disableRounding:function(){return!u()}}))}}))))},"oa");
wer.idomCompat={callbacks:{playbackRef:!0}};
var qQF=_.LL(function(q){var w=q.children;var u=q.stackEnabled;var y=q.thumbnailSize;var e=q.doubleStack;var t=q.stackColor;var X,G=(X=_.tG().resolve(_.kF(_.Rg)))==null?void 0:X();return _.W(_.r,{cond:u,then:function(){return _.W(JdG,{data:function(){var n,N;return{experimentEnabled:!0,thumbnailSize:y(),doubleStack:e==null?void 0:e(),color:G?t==null?void 0:(n=t())==null?void 0:n.darkTheme:t==null?void 0:(N=t())==null?void 0:N.lightTheme,enableResponsiveMode:!1}}},w)},
else:function(){return w}})},"pa");var ue6=new _.MH("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var ct;_.R1={calledOnce:!0,state:"visible"};ct={calledOnce:!0,state:"hidden"};_.Sj=_.LL(function(q){var w=q.data;var u=q.customCommandResolver;var y=q.className;var e=q.delayedClassName;q=q.animationEntityKey;var t=_.Bm(),X=_.jf(q,""),G=_.Qo(Ocy,X),n=function(){var x,P4;return(P4=(x=G())==null?void 0:x.value)!=null?P4:!1},N=function(){_.hM(_.IH("booleanEntity",X(),{key:X(),
value:!0}));b=void 0};
q=_.P(_.iv(n));var Q=q.next().value,I=q.next().value;q=_.P(_.iv(n));var U=q.next().value,d=q.next().value;q=_.P(_.iv(function(){var x;return n()?(x=w().styleTransitionConfig)==null?void 0:x.destinationStyle:void 0}));
var V=q.next().value,J=q.next().value,a=function(){var x=Object.assign({},w(),V()&&{style:V()}),P4,C7,mu=x.label,Os=(P4=x.interaction)==null?void 0:(C7=P4.accessibility)==null?void 0:C7.label;P4=x.iconImage?x.label&&x.label.content?x.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:mu,accessibilityLabel:Os,style:hrJ(x.style),type:jY6(x.style),state:"active",size:SQf(x.size),iconPosition:P4,disabled:!1,aTagConfig:csj(x,u)}},b;
_.k$(t,{visibilityCallback:function(x){var P4,C7=(P4=w().interaction)==null?void 0:P4.onFirstVisible;x&&C7&&_.bn(C7)},
showOption:_.R1});var g=function(){return TW(a(),!!w().iconImage)};
y=_.HR(function(){return"ytwAdButtonViewModelHost"},function(){return w().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var x=!!w().delayedAppearanceConfig,P4=Q();
return x?P4?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var x=!!w().delayedAppearanceConfig,P4=U();
return x?P4?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!w().delayedAppearanceConfig||Q()?e==null?void 0:e():""},y!=null?y:"");
var l=function(){var x,P4=(x=w().delayedAppearanceConfig)==null?void 0:x.delayedInvisibleSeconds;P4&&(b=_.iq(_.pi,function(){I(!0);S()},P4*1E3))},S=function(){var x,P4=(x=w().delayedAppearanceConfig)==null?void 0:x.delayedVisibleSeconds;
P4&&(b=_.iq(_.pi,function(){d(!0);eH()},P4*1E3))},eH=function(){var x,P4=(x=w().styleTransitionConfig)==null?void 0:x.styleTransitionSeconds,C7,mu=(C7=w().styleTransitionConfig)==null?void 0:C7.destinationStyle;
P4&&mu?b=_.iq(_.pi,function(){J(mu);N()},P4*1E3):N()};
_.p4(function(){var x;((x=w().delayedAppearanceConfig)==null?0:x.transitionDurationSeconds)&&t.value.style.setProperty("transition-duration",w().delayedAppearanceConfig.transitionDurationSeconds+"s");l()});
_.ZG(function(){b&&_.pi.cancelJob(b)});
return _.W("ad-button-view-model",{class:y,el:t},_.W(_.r,{cond:a,then:function(){return _.W(Kr,{data:a,icon:function(){return _.W(_.r,{cond:function(){return w().iconImage},
then:function(x){return _.W(_.ln,{data:x,alt:"",targetWidth:g,targetHeight:g,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"qa");var ysP=_.LL(function(q){var w=q.data;q=_.Bm();_.k$(q,{visibilityCallback:function(u){var y,e=(y=w().interaction)==null?void 0:y.onFirstVisible;u&&e&&_.bn(e)},
showOption:_.R1});return _.W("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:q},_.W("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.W(_.OF,{data:function(){return w().secondaryAdButton}},{adButtonViewModel:function(u){return _.W(_.Sj,{data:u.data})}})),_.W("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.W(_.OF,{data:function(){return w().primaryAdButton}},{adButtonViewModel:function(u){return _.W(_.Sj,{data:u.data})}})))},"ra");var erZ=_.LL(function(q){var w=function(){var u;return((u=q.data())==null?void 0:u.answers)||[]};
return _.W("yt-survey-icons",{class:"ytSurveyIconsHost"},_.W("div",{class:"ytSurveyIconsHeader"},_.W("div",{class:"ytSurveyIconsTitle"},function(){var u;return(u=q.data())==null?void 0:u.text}),_.W("div",null,_.W(Kr,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var u;(u=q.onDismiss)==null||u.call(q)}}},
iconName:"DISMISSAL"}))),_.W("div",null,_.W("div",{class:"ytSurveyIconsAnswers"},_.W(_.mL,{each:function(){return w()},
keyBy:"INDEX"},function(u,y){return _.W("div",null,_.W(Kr,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var e;(e=q.onSelect)==null||e.call(q,u(),y)}}},
icon:function(){return _.W(_.U3,{icon:function(){var e,t;return(e=u())==null?void 0:(t=e.icon)==null?void 0:t.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.W("div",{class:"ytSurveyIconsAnswersText"},_.W("div",null,function(){return w().length?w()[0].text:""}),_.W("div",null,function(){return w().length?w()[w().length-1].text:""}))))},"sa");var kb$=_.LL(function(q){var w=_.P(_.r4(!1,void 0,"s8HkOb")),u=w.next().value,y=w.next().value,e=_.Qo(o5s,function(){var G;return(G=q.data().keys)==null?void 0:G.surveyEntityKey}),t=_.Qo(VTo,function(){var G;
return(G=q.data().keys)==null?void 0:G.surveyStateEntityKey});
_.Kn("ytd-slimline-survey-show-action",function(){y(!1)});
var X=function(){var G,n;var N=(G=t())==null?void 0:(n=G.questionStack)==null?void 0:n[0];if(N!==void 0){var Q,I;return(Q=e())==null?void 0:(I=Q.questions)==null?void 0:I[N]}};
w={};return _.W("yt-slimline-survey-view-model",{class:_.HR("ytSlimlineSurveyViewModelHost",(w.ytSlimlineSurveyViewModelCollapsed=function(){return u()},w))},_.W("div",{class:"ytSlimlineSurveyViewModelContainer"},_.W(_.r,{cond:function(){var G;
return((G=X())==null?void 0:G.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.W(erZ,{data:function(){return X()},
onSelect:function(G,n){var N,Q;return _.F(function(I){y(!0);if(Q=(N=q.data())==null?void 0:N.onSelectRating)_.bn(Q),_.hM(mRx(n));_.HI(I)})},
onDismiss:function(){y(!0)}})}})))},"ta");var tA6=_.LL(function(q){return _.W("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.W(_.OF,{data:function(){var w;return(w=q.data())==null?void 0:w.attachments}},{flexibleActionsViewModel:function(w){return _.W("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.W(clF,{data:w.data,
layout:function(){var u;return((u=q.lockupStyle())==null?void 0:u.arrangement)===1?0:1},
justifyContentOverride:function(){var u;return((u=q.lockupStyle())==null?void 0:u.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(w){return _.W("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.W(kb$,{data:w.data}))},
expandableMetadataViewModel:function(w){w=w.data;var u;return _.W("div",{class:"ytLockupAttachmentsViewModelAttachment"},(u=_.tG().resolve(_.kF(ue6)))==null?void 0:u({data:w}))},
adButtonGroupViewModel:function(w){return _.W("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.W(ysP,{data:w.data}))}}))},"ua");var xhy=_.Fc("rich_grid_min_item_width",310),KX4=_.Fc("rich_grid_max_item_width",500);var nbc=_.LL(function(q){var w=q.data;return _.W("br-nz-badge-shape",{class:_.HR(function(){return PTc(w().brNzRatingBadgeType)}),
role:function(){return w().accessibilityText?"img":void 0},
"aria-label":function(){return w().accessibilityText}},function(){var u;
return(u=w())==null?void 0:u.text})},"va");_.t2(H_H);var P2$,B8M;P2$=_.LL(function(q){var w=function(){var u=q.data(),y,e;return u?GeJ(u,!((y=q.workaroundShortsIsThumbnailBadge)==null||!y.call(q)),(e=q.modern)==null?void 0:e.call(q)):void 0};
return _.W("yt-badge-view-model",{class:_.HR("yt-badge-view-model-wiz",q.class)},_.W(_.zS,null,_.W(_.AP,{when:function(){var u;return!((u=w())==null||!u.brNzRatingBadgeType)}},function(){return _.W(nbc,{data:function(){return w()}})}),_.W(_.AP,{when:function(){return!!w()&&!w().brNzRatingBadgeType}},function(){return _.W(_.jg,{data:function(){return w()}})})))},"wa");
B8M=_.T("web_enable_sink_yt_badge_view_model")?P2$:H_H;_.hi=_.T("web_enable_sink_yt_badge_view_model")?P2$:_.N9(H_H);P2$.idomCompat=!0;var sWy,WQ6;sWy=16/9;WQ6=2/3;_.jj=_.LL(function(q){var w=q.data;var u=q.className;var y=q.imageSizeConfig;var e=q.notifyOnLoaded;q=_.Bm();var t=function(){return w().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},X=function(){var d;
return _.gE((d=w())==null?void 0:d.rendererContext)},G={};
G=(G["yt-content-preview-image-view-model-wiz"]=!0,G["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return t()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},G["yt-content-preview-image-view-model-wiz--tappable"]=function(){return X()},G);
var n=function(){var d,V;return(V=(d=_.C(w().rendererContext,_.ik))==null?void 0:d.label)!=null?V:""},N=function(){return QWf(w())},Q=function(){var d=NWl(t(),w().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",y==null?void 0:y(),IqM(N()),w().layoutWidth,w().layoutHeight),V=Object.assign({},d);
d.width&&(V.width=Math.round(d.width));d.height&&(V.height=Math.round(d.height));d.maxWidth&&(V.maxWidth=Math.round(d.maxWidth));d.maxHeight&&(V.maxHeight=Math.round(d.maxHeight));return V},I=_.oR(function(){return Q().height},void 0,"gbmSDf"),U=_.oR(function(){return Q().width},void 0,"BtfJ3b");
_.EF(q,function(){var d;return(d=w())==null?void 0:d.rendererContext});
return _.W("yt-content-preview-image-view-model",{el:q,role:function(){return X()?"link":void 0},
tabindex:function(){return X()?0:void 0},
class:_.HR(u,G,function(){var d=t();var V=y==null?void 0:y();d=d==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||d==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||d==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||d==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(V==null?void 0:V.size)!=null&&V.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(V==null?void 0:V.size)!=null&&V.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 d}),
style:function(){var d=Q(),V=[];d.width&&V.push("width: "+d.width+"px");d.height&&V.push("height: "+d.height+"px");d.maxWidth&&V.push("max-width: "+d.maxWidth+"px");d.maxHeight&&V.push("max-height: "+d.maxHeight+"px");d.fullWidth&&V.push("width: 100%");return V.join(";")}},_.W(_.r,{cond:N,
then:function(d){return _.W(_.ln,{data:d,alt:n,"data-disabled$":function(){return!n()},
notifyOnLoaded:e,targetWidth:U,targetHeight:I,preserveWidth:function(){return!!U()},
preserveHeight:function(){return!!I()}})}}),_.W(_.OF,{data:function(){var d;
return(d=w())==null?void 0:d.overlays}},{thumbnailHoverOverlayViewModel:ry,
thumbnailOverlayButtonViewModel:_.MTP}))},"xa");
_.jj.idomCompat=!0;var FXT=_.LL(function(q){var w=q.data;var u=q.className;var y=q.useSmallLayout;var e=q.useMediumText;q=_.Bm();var t={};e=(t["yt-attribution-view-model-wiz"]=!0,t["yt-attribution-view-model-wiz--medium-text"]=e,t);_.EF(q,function(){var X;return(X=w())==null?void 0:X.rendererContext});
return _.W("yt-attribution-view-model",{el:q,class:_.HR(u,e)},_.W(_.r,{cond:function(){return _.gE(w().rendererContext)},
then:function(){return _.W("button",{class:"yt-attribution-view-model-wiz--tappable"},_.W(XeF,{data:w,useSmallLayout:y}))},
else:function(){return _.W(XeF,{data:w,useSmallLayout:y})}}))},"ya"),XeF=_.LL(function(q){var w=q.data;
var u=q.useSmallLayout;var y=function(){return{size:(u==null?0:u())?16:24}};
return _.W(_.GS,null,_.W(_.OF,{data:function(){return w().contentPreviewImage}},{contentPreviewImageViewModel:function(e){return _.W(_.jj,{data:e.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:y})}}),_.W(_.OF,{data:function(){return w().badge}},{badgeViewModel:function(e){return _.W(_.hi,{data:e.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.W(_.r,{cond:function(){return w().text},
then:function(){return _.W(_.Lr,{text:function(){return w().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.W(_.r,{cond:function(){return w().suffix},
then:function(){return _.W(_.Lr,{text:function(){return w().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"za");
FXT.idomCompat=!0;var O_j=_.UF({avatarStackViewModel:_.TL,badgeViewModel:B8M});_.t2(fqs);var Gbc,ni$,H2x,WXa,sYr,N56;Gbc=_.LL(function(q){var w=q.delimiter;var u=q.max;var y=q.index;var e=q.isStandalone;return _.W(_.r,{cond:function(){return u()-1>y()},
then:function(){var t={};return _.W("span",{class:_.HR("yt-content-metadata-view-model-wiz__delimiter",(t["yt-content-metadata-view-model-wiz__delimiter--standalone"]=e,t)),"aria-hidden":!0},w)}})},"Aa");
ni$=_.LL(function(q){var w=q.metadataPart;var u=q.maxLines;return _.W(_.Lr,{text:function(){return w().text},
linkInheritColor:!0,className:function(){return mpM(u())},
userInput:!0})},"Ba");
H2x=_.LL(function(q){var w=q.metadataPart;var u=q.maxLines;return _.W(_.r,{cond:function(){return w().tooltip},
then:function(y){return _.W("span",{title:y,role:"tooltip"},_.W(ni$,{metadataPart:w,maxLines:u}))},
else:function(){return _.W(ni$,{metadataPart:w,maxLines:u})}})},"Ca");
WXa=_.LL(function(q){var w=q.metadataPart;var u=q.isOverlay;var y=q.useMediumText;var e=q.hideAvatar;var t=function(){return w().maxLines!==void 0?w().maxLines:1};
return _.W(_.GS,null,_.W(_.OF,{data:function(){return w().avatarStack}},{avatarStackViewModel:function(X){return _.W(_.TL,{data:X.data,
isOverlay:u,useMediumText:y,hideAvatar:e})},
badgeViewModel:_.hi}),_.W(_.r,{cond:function(){return w().text},
then:function(){return _.W(H2x,{metadataPart:w,maxLines:t})}}))},"Da");
sYr=_.LL(function(q){var w=q.metadataRow;var u=q.isInline;var y=q.delimiter;var e=q.isOverlay;var t=q.useMediumText;var X=q.extensions;var G=function(){var N;return ruM(X==null?void 0:(N=X())==null?void 0:N.lockupMetadata,w())},n=function(){return w().metadataParts||[]};
q={};return _.W("div",{class:_.HR("yt-content-metadata-view-model-wiz__metadata-row",(q["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=u,q["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var N;return Up4(X==null?void 0:(N=X())==null?void 0:N.lockupMetadata,w())},q["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var N;
return!!(X==null?0:(N=X())==null?0:N.lockupMetadata)&&w().badges},q))},_.W(_.OF,{data:function(){return w().badges}},{badgeViewModel:function(N){return _.W("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.W(_.hi,{data:N.data}))}}),_.W(_.mL,{each:n},function(N,Q){return _.W(_.GS,null,_.W(WXa,{metadataPart:N,
isOverlay:e,useMediumText:t,hideAvatar:G}),_.W(Gbc,{delimiter:y,max:function(){return n().length},
index:Q,isStandalone:!1}))}),_.W(_.r,{cond:function(){return w().isSpacerRow&&!u()},
then:function(){return _.W("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ea");
N56=_.LL(function(q){var w=_.lf(q,{layout:0,isOverlay:!1});q=w.className;var u=w.data,y=w.layout,e=w.isOverlay,t=w.useMediumText,X=w.extensions;w=_.Bm();var G=function(){return y()===0};
_.EF(w,function(){return u().rendererContext});
var n=function(){return u().metadataRows||[]},N={};
return _.W("yt-content-metadata-view-model",{class:_.HR(q,"yt-content-metadata-view-model-wiz",(N["yt-content-metadata-view-model-wiz--inline"]=G,N["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.gE(u().rendererContext)},N["yt-content-metadata-view-model-wiz--medium-text"]=t,N)),
el:w},_.W(_.mL,{each:n},function(Q,I){return _.W(_.GS,null,_.W(sYr,{metadataRow:Q,isInline:G,delimiter:function(){return u().delimiter},
isOverlay:e,useMediumText:t,extensions:X}),_.W(_.r,{cond:function(){return G()&&!Q.isSpacerRow},
then:function(){return _.W(Gbc,{delimiter:function(){return u().delimiter},
max:function(){return n().length},
index:I,isStandalone:!0})}}))}))},"Fa");
_.QY3=_.T("web_enable_sink_yt_content_metadata_view_model")?N56:_.N9(fqs);N56.idomCompat=!0;var IYc=_.LL(function(q){var w={};return _.W("yt-lockup-metadata-view-model",{class:_.HR("yt-lockup-metadata-view-model-wiz",function(){a:{var u=q.lockupStyle();if(u==null?0:u.isOverlay)u="yt-lockup-metadata-view-model-wiz--overlay";else switch(u==null?void 0:u.arrangement){case 1:u="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:u="yt-lockup-metadata-view-model-wiz--vertical"}}return u},function(){a:{var u=q.lockupStyle();
if(u==null?0:u.isTiny)u="yt-lockup-metadata-view-model-wiz--tiny";else switch(u==null?void 0:u.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":u="yt-lockup-metadata-view-model-wiz--compact";break a;default:u="yt-lockup-metadata-view-model-wiz--standard"}}return u},(w["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var u;
return(u=q.lockupStyle())==null?void 0:u.isOverlay},w["yt-lockup-metadata-view-model-wiz--card"]=function(){var u;
return(u=q.lockupStyle())==null?void 0:u.isCard},w["yt-lockup-metadata-view-model-wiz--centered"]=function(){var u;
return(u=q.lockupStyle())==null?void 0:u.isCentered},w["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var u;
return(u=q.lockupStyle())==null?void 0:u.typographyBump},w["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var u;
return(u=q.lockupStyle())==null?void 0:u.useLegacyTypography},w["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var u;
return(u=q.lockupStyle())==null?void 0:u.useRichGridLegacyTypography},w))},_.W(_.OF,{data:function(){return q.data().image}},{avatarStackViewModel:function(u){return _.W("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.W(_.TL,{data:u.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(u){return _.W("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.W(_.Vb,{data:u.data}))},
decoratedAvatarViewModel:function(u){return _.W("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.W(_.UJ,{data:u.data}))}}),_.W("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.W("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var u;return(u=q.data().title)==null?void 0:u.content}},_.W(_.r,{cond:function(){return q.data().title},
then:function(u){return _.W(_.Mq,{command:q.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:q.lockupAccessibilityLabel},_.W(_.Lr,{text:u}))}})),_.W("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.W(_.OF,{data:function(){return q.data().metadata}},{contentMetadataViewModel:function(u){return _.W(_.QY3,{data:u.data,
layout:1,useMediumText:function(){var y,e;return((y=q.lockupStyle())==null?void 0:y.typographyBump)||((e=q.lockupStyle())==null?void 0:e.useRichGridLegacyTypography)},
extensions:function(){var y,e;return{lockupMetadata:{byline:{hideAvatar:((y=q.lockupStyle())==null?void 0:y.arrangement)===0,addPadding:((e=q.lockupStyle())==null?void 0:e.arrangement)===1}}}}})}})),_.W(_.OF,{data:function(){return q.data().attribution}},{attributionViewModel:function(u){return _.W("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.W(FXT,{data:u.data,
useSmallLayout:!0}))}})),_.W("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.W(_.OF,{data:function(){return q.data().menuButton}},{buttonViewModel:function(u){return _.W(_.Zs,{data:u.data,
buttonOverrides:function(){var y;return((y=q.lockupStyle())==null?0:y.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ga");
IYc.idomCompat=!0;var i2a=_.LL(function(q){var w=_.Bm();_.DR(function(){requestAnimationFrame(function(){_.q5(w.value)})});
var u={},y={},e={};return _.W("notification-multi-action-renderer",{class:_.HR("ytNotificationMultiActionRendererHost",(u.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var t;return(t=q.useLegacyShelfStyle)==null?void 0:t.call(q)},u)),
el:w},_.W("span",{"aria-live":"polite",class:_.HR("ytNotificationMultiActionRendererTextContainer",(y.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var t;return(t=q.useLegacyShelfStyle)==null?void 0:t.call(q)},y))},_.W(_.Lr,{text:function(){return q.data().responseText}})),_.W("div",{class:_.HR("ytNotificationMultiActionRendererButtonContainer",(e.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var t;
return(t=q.useLegacyShelfStyle)==null?void 0:t.call(q)},e))},_.W(_.OF,{data:function(){var t;
return(t=q.data().buttons)==null?void 0:t.map(function(X){if(X=X.buttonRenderer){var G,n=Object,N=n.assign,Q=(G=X.icon)==null?void 0:G.iconType;G=(G=X.command||X.serviceEndpoint||X.navigationEndpoint)?{innertubeCommand:G}:void 0;X={buttonViewModel:N.call(n,{},{iconName:Q,onTap:G,trackingParams:X.trackingParams,titleFormatted:X.text?_.JB(X.text):void 0},Auu(X))}}else X=void 0;return X}).filter(function(X){return!!X})}},{buttonViewModel:function(t,X){return _.W("div",null,_.W(_.Zs,{data:t.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var G;return((G=q.useModernStyles)==null?0:G.call(q))?{type:X()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ha");var rsX=_.LL(function(q){var w=_.Bm();_.DR(function(){requestAnimationFrame(function(){_.q5(w.value)})});
return _.W("notification-text-renderer",{el:w,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.W(_.Lr,{text:function(){return q.data().successResponseText}}))},"Ia");_.UhF=_.LL(function(q){var w=_.Qo(TXf,function(){var y;return Juc((y=q.contentId)==null?void 0:y.call(q))}),u=function(){var y;
return _.C((y=w())==null?void 0:y.command,_.rf)};
return _.W(_.r,{cond:function(){var y;if(!(y=u())){var e;y=_.C((e=w())==null?void 0:e.command,GTj)}return y},
then:function(){return _.W(_.r,{cond:u,then:function(){var y={};return _.W("div",{class:_.HR("ytDismissibleItemReplacedContent",function(){var e;return zEy((e=q.aspectRatio)==null?void 0:e.call(q))})},_.W("div",{class:_.HR((y.ytDismissibleItemAspectRatioContainer=function(){var e;
return((e=q.aspectRatio)==null?void 0:e.call(q))!==void 0},y))},_.W(_.OF,{data:function(){var e;
return(e=u())==null?void 0:e.item}},{notificationMultiActionRenderer:function(e){return _.W(i2a,{data:e.data,
useModernStyles:q.useModernStyle,useLegacyShelfStyle:q.useLegacyShelfStyle})},
notificationTextRenderer:rsX})))}})},
else:q.children})},"Ja");_.T5F=_.LL(function(q){var w=q.data;var u=q.customCommandResolver;q=_.x8();var y=function(){var t;return((t=w().interaction)==null?0:t.onTap)?function(X){var G;Rrz(X,(G=w().interaction)==null?void 0:G.onTap,u)}:void 0},e=function(){var t,X=w(),G=y(),n=(t=_.C(w().rendererContext,_.ik))==null?void 0:t.label;
a:switch(X.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":t=1;break a;default:t=0}return{size:Z_o(X.size),type:t,onTap:G,accessibilityText:n}};
_.k$(q,{visibilityCallback:function(t){var X,G=(X=w().interaction)==null?void 0:X.onFirstVisible;t&&G&&_.bn(G)},
showOption:_.R1});return _.W("ad-avatar-view-model",{class:function(){var t;return((t=w().interaction)==null?0:t.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:q},_.W(_.r,{cond:function(){return w().image},
then:function(t){return _.W(eoZ,{data:e,image:t})}}))},"Ka");_.ll=_.LL(function(q){q=_.lf(q,{hasDot:!1});var w=Object.assign({},q),u=q.data,y=q.hasDot;q=q.customCommandResolver;var e=(delete w.data,delete w.hasDot,delete w.customCommandResolver,w);w=function(){return u().style};
w!==void 0&&w!==null||_.jZ(Error("Dh"));w=_.Bm();_.Sg(w,function(){return u().interaction},q);
return _.W("ad-badge-view-model",{class:_.HR(function(){var t;return((t=u().interaction)==null?0:t.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var t=e.adRenderingContextType();
u();return t==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:w},_.W(_.jg,{data:function(){var t;u();return{type:2,text:(t=u().label)==null?void 0:t.content,adsIncludeDot:y(),isOverlay:u().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"La");var C2Z;_.Lz=_.LL(function(q){var w=q.data;var u=q.customCommandResolver;var y=q.adRenderingContextType;q=_.Bm();_.Sg(q,function(){return w().interaction},u);
_.k$(q,{visibilityCallback:function(e){var t,X=(t=w().interaction)==null?void 0:t.onFirstVisible;e&&X&&_.bn(X)},
showOption:_.R1});return _.W("ad-details-line-view-model",{class:function(){var e;return((e=w().interaction)==null?0:e.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:q},_.W(_.r,{cond:function(){return w().style},
then:function(e){return _.W(_.mL,{each:function(){var t;return((t=w())==null?void 0:t.attributes)||[]},
keyBy:"INDEX"},function(t){return _.W(C2Z,{attribute:t,style:e,adRenderingContextType:function(){return y()}})})}}))},"Ma");
C2Z=_.LL(function(q){var w=q.attribute;var u=q.style;var y=q.adRenderingContextType;return _.W(_.r,{cond:function(){return w().text},
then:function(e){return _.W(_.Lr,{text:e,className:function(){var t=y();u();return t==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Na");var dhk=_.LL(function(q){var w=q.data;var u=q.typographyBump;var y=function(){return w().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
q={};return _.W(_.GS,null,_.W("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.W(_.Lr,{text:function(){return w().headline},
className:_.HR("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(q.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return y==null?void 0:y()},q.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(u==null?void 0:u())&&!(y==null?0:y())},q)),
linkInheritColor:!0}),_.W(_.r,{cond:function(){return w().description},
then:function(e){var t={};return _.W(_.Lr,{text:e,className:_.HR("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(t.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return y==null?void 0:y()},t.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(u==null?void 0:u())&&!(y==null?0:y())},t)),
linkInheritColor:!0})}}),_.W(_.r,{cond:function(){return w().secondaryDescription},
then:function(e){var t={};return _.W(_.Lr,{text:e,className:_.HR("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(t.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return u==null?void 0:u()},t)),
linkInheritColor:!0})}}),_.W("div",{class:function(){return y()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.W(_.r,{cond:function(){return w().adAvatar},
then:function(){return _.W("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.W(_.OF,{data:function(){return w().adAvatar}},{adAvatarViewModel:_.T5F}))}}),_.W(_.OF,{data:function(){return w().adBadge}},{adBadgeViewModel:function(e){return _.W(_.ll,{data:e.data,
hasDot:function(){return!!w().adDetailsLine},
adRenderingContextType:function(){return w().adRenderingContextType}})}}),_.W(_.OF,{data:function(){return w().adDetailsLine}},{adDetailsLineViewModel:function(e){return _.W(_.Lz,{data:e.data,
adRenderingContextType:function(){return w().adRenderingContextType}})}}))),_.W("div",{class:function(){return y()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.W(_.OF,{data:function(){return w().menu}},{buttonViewModel:function(e){return _.W(_.Zs,{data:e.data,
buttonOverrides:function(){a:switch(w().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var t="S";break a;default:t="M"}return{size:t}}})}})))},"Oa"),O2$=_.LL(function(q){var w=q.data;
var u=q.noBottomMargin;var y=q.useVideoLockupTopPadding;var e=q.typographyBump;q={};q=_.HR("ytwFeedAdMetadataViewModelHostMetadata",(q.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return u==null?void 0:u()},q.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return y==null?void 0:y()},q));
var t=function(){return w().adBadge};
t!==void 0&&t!==null||_.jZ(Error("Eh"));t={};var X={};return _.W(_.GS,null,_.W(_.r,{cond:function(){return w().adAvatar},
then:function(){return _.W("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.W(_.OF,{data:function(){return w().adAvatar}},{adAvatarViewModel:function(G){return _.W(_.T5F,{data:G.data})}}))}}),_.W("div",{class:q},_.W("div",{class:_.HR("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(t.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return e==null?void 0:e()},t.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(e==
null?void 0:e())&&_.T("web_enable_typography_bump_v2")},t))},_.W(_.Lr,{text:function(){return w().headline},
linkInheritColor:!0})),_.W(_.r,{cond:function(){return w().description},
then:function(G){return _.W(_.Lr,{text:G,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.W("div",{class:function(){return w().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.T("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.W(_.OF,{data:function(){return w().adBadge}},
{adBadgeViewModel:function(G){return _.W(_.ll,{data:G.data,
hasDot:function(){return!!w().adDetailsLine},
adRenderingContextType:function(){return w().adRenderingContextType}})}}),_.W(_.OF,{data:function(){return w().adDetailsLine}},{adDetailsLineViewModel:function(G){return _.W(_.Lz,{data:G.data,
adRenderingContextType:function(){return w().adRenderingContextType}})}})),_.W(_.r,{cond:function(){return w().secondaryDescription},
then:function(G){return _.W(_.Lr,{text:G,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.W("div",{class:_.HR("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(X.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return y==null?void 0:y()},X))},_.W(_.OF,{data:function(){return w().menu}},{buttonViewModel:_.Zs})))},"Pa"),oiP=_.LL(function(q){var w=q.data;
var u=q.noBottomMargin;var y=q.listenToTapEvent;var e=q.setTouchEndHandler;var t=q.useVideoLockupTopPadding;var X=q.typographyBump;var G=_.Bm();_.Sg(G,function(){return w().interaction},void 0,function(){return y==null?void 0:y()});
q=_.P(_.r4(!1,void 0,"qjt0Xc"));var n=q.next().value,N=q.next().value;q=_.QS(function(){(e==null?0:e())&&!n()&&(G.value.click(),N(!0),setTimeout(function(){N(!1)},100));
return!1});
_.k$(G,{visibilityCallback:function(Q){var I,U=(I=w().interaction)==null?void 0:I.onFirstVisible;Q&&U&&_.bn(U)},
showOption:_.R1});return _.W("feed-ad-metadata-view-model",{class:function(){var Q;return((Q=w().interaction)==null?0:Q.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:G,"on:touchend":q},_.W(_.zS,null,_.W(_.AP,{when:function(){return w().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.W(dhk,{data:w,
typographyBump:X})}),_.W(_.AP,{when:function(){return w().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.W(O2$,{data:w,
noBottomMargin:u,useVideoLockupTopPadding:t,typographyBump:X})})))},"Qa");var VAj;_.Mw=_.LL(function(q){return _.W("yt-lockup-view-model",{class:_.HR(q.className)},_.W(_.UhF,{contentId:function(){return q.data().contentId},
useModernStyle:!0,aspectRatio:function(){var w,u;return((w=q.containerType)==null?void 0:w.call(q))!==3?kec(q.data().contentType,(u=q.force16By9ThumbnailAspectRatio)==null?void 0:u.call(q)):void 0}},function(){return _.W(VAj,Object.assign({},q))}))},"Ra");
VAj=_.LL(function(q){q=_.lf(q,{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 w=q.data,u=q.containerLayoutConfig,y=q.containerType,e=q.sizing,t=q.protectBackground,X=q.typographyBump,G=q.force16By9ThumbnailAspectRatio,n=q.thumbnailFixedWidth,N=q.thumbnailTargetWidth,Q=q.lockupExperiments,I=q.elementsPerRow;
q=_.Bm();_.EF(q,function(){var ao;return(ao=w())==null?void 0:ao.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var U=_.aV(vij),d=_.tG().resolve(_.kF(Roj)),V=d?{}:void 0,J=function(){var ao,bc,Ro;return(Ro=(bc=_.C((ao=w())==null?void 0:ao.rendererContext,_.ik))==null?void 0:bc.label)!=null?Ro:void 0},a=function(){var ao=u==null?void 0:u(),bc;
if(ao==null?0:ao.containerType){var Ro=(bc=w())==null?void 0:bc.contentType;bc=Q();var K7=X(),gx=N(),dx=t();ao=Object.assign({},tI7(uwf(ao),qH6(ao.responsiveSize),K7,Ro,ao.force16By9ThumbnailAspectRatio,gx,dx,bc),{thumbnailFixedWidth:ao.contentPreviewWidth})}else ao=tI7(y(),e(),X(),(Ro=w())==null?void 0:Ro.contentType,G(),N(),t(),Q());return ao};
d&&V&&d({enabled:function(){return U()},
itemPlaybackModel:function(){return w().itemPlayback},
thumbnailElRef:function(){return V.thumbnailElRef},
containerElRef:q,options:function(){var ao,bc=(ao=_.C(w().metadata,xsa))==null?void 0:ao.endorsement;ao=V.thumbnailOverlays||[];bc&&ao.push(bc);var Ro,K7;return{thumbnail:V.thumbnail,thumbnailOverlays:ao,accessibilityText:J(),thumbnailSize:V.thumbnailSize,enableRounding:a().isCollection,containPlayerWithinThumbnail:a().isCollection,trackingParams:(Ro=_.C(w().rendererContext,_.af7))==null?void 0:(K7=Ro.loggingDirectives)==null?void 0:K7.trackingParams}}});
var b=0;d=_.P(_.r4(!1,void 0,"HzAs3"));var g=d.next().value,l=d.next().value;d=_.P(_.r4(!1,void 0,"ujOXud"));var S=d.next().value,eH=d.next().value;d=_.QS(function(){var ao=U()&&w().itemPlayback;S()?(_.pi.cancelJob(b),b=_.pi.addJob(function(){l(!ao)},8,32)):l(!ao);
return!0});
var x=_.QS(function(){b&&(_.pi.cancelJob(b),b=0);l(!1)});
_.ZG(function(){b&&(_.pi.cancelJob(b),b=0)});
var P4=Dpy(function(){eH(!0)}),C7=P4.touchFeedbackEvents,mu=P4.touchFeedbackOnPointerUp,Os=P4.touchFeedbackOnPointerDown;
P4=P4.touchFeedbackOnPointerLeave;var YJ={};return _.W("div",{el:q,class:_.HR("yt-lockup-view-model-wiz",function(){a:{var ao=a();if(ao.isOverlay)ao="yt-lockup-view-model-wiz--overlay";else switch(ao.arrangement){case 1:ao="yt-lockup-view-model-wiz--horizontal";break a;default:ao="yt-lockup-view-model-wiz--vertical"}}return ao},function(){a:{var ao=a();
if(ao.isOverlay)ao="yt-lockup-view-model-wiz--overlay";else{switch(ao.collectionStackNumber){case 1:ao="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:ao="yt-lockup-view-model-wiz--collection-stack-2";break a}ao=void 0}}return ao},(YJ["yt-lockup-view-model-wiz--card"]=function(){return a().isCard},YJ["yt-lockup-view-model-wiz--compact"]=function(){return a().isTiny||a().sizing!=="STANDARD"},YJ["yt-lockup-view-model-wiz--protect-background"]=t,YJ["yt-lockup-view-model-wiz--add-margins"]=
function(){return a().addMarginForFullbleed},YJ["yt-lockup-view-model-wiz--centered"]=function(){return a().isCentered},YJ["yt-lockup-view-model-wiz--fullbleed"]=function(){return a().fullbleed},YJ["yt-lockup-view-model-wiz--single-column-grid"]=function(){return I()===1&&y()===2},YJ["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var ao;
return(ao=Q())==null?void 0:ao.useRichGridLegacyMargin},YJ)),
"on:mousedown":Os,"on:mouseleave":x,"on:mouseup":mu,"on:mouseover":d,"on:touchstart":Os,"on:touchend":mu,"on:pointerleave":P4},_.W(_.Mq,{command:function(){var ao;return _.YH((ao=w())==null?void 0:ao.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return n()&&a().arrangement===1?"width: "+n():""}},_.W(_.OF,{data:function(){var ao;
return(ao=w())==null?void 0:ao.contentImage}},{thumbnailViewModel:function(ao){return _.W(_.EJ,{data:ao.data,
aspectRatio:function(){return a().aspectRatio},
disableRounding:function(){return a().disableRounding},
width:N,hovered:g,isClip:function(){var bc;return((bc=w())==null?void 0:bc.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:peH(V),lockupExperiments:function(){return Q()}})},
collectionThumbnailViewModel:function(ao){return _.W(wer,{data:ao.data,aspectRatio:function(){return a().aspectRatio},
disableRounding:function(){return a().disableRounding},
width:N,doubleStack:function(){return a().collectionStackNumber===2},
hovered:g,playbackRef:peH(V)})},
decoratedAvatarViewModel:_.UJ})),_.W("div",{class:"yt-lockup-view-model-wiz__metadata"},_.W(_.OF,{data:function(){var ao;return(ao=w())==null?void 0:ao.metadata}},{lockupMetadataViewModel:function(ao){return _.W(IYc,{data:ao.data,
lockupStyle:a,lockupCommand:function(){var bc;return _.YH((bc=w())==null?void 0:bc.rendererContext)},
lockupAccessibilityLabel:function(){return J()}})},
feedAdMetadataViewModel:function(ao){return _.W(oiP,{data:ao.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:X})}}),_.W(_.OF,{data:function(){var ao;
return(ao=w())==null?void 0:ao.attachmentSlot}},{lockupAttachmentsViewModel:function(ao){return _.W(tA6,{data:ao.data,
lockupStyle:a})}})),_.W(_.dm,{model:function(){a:{switch(a().collectionStackNumber){case 1:var ao=8;
break a;case 2:ao=12;break a}ao=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:ao}},
pointerDownEvent:C7.pointerDownEvent,pointerUpEvent:C7.pointerUpEvent,pointerLeaveEvent:C7.pointerLeaveEvent}))},"Sa");
_.Mw.idomCompat=!0;_.q9(_.Mw,"yt-lockup-view-model",{props:{data:_.pK,containerLayoutConfig:_.pK,containerType:_.pK,sizing:_.pK,protectBackground:_.pK,typographyBump:_.pK,thumbnailFixedWidth:_.pK,thumbnailTargetWidth:_.pK,force16By9ThumbnailAspectRatio:_.pK,className:_.pK,lockupExperiments:_.pK,elementsPerRow:_.pK}});_.t2(gbH);var fYa=_.N9(gbH,{callbacks:{onExpandClick:!0}});var jWu=_.UF({buttonViewModel:_.Zs}),mhX=_.N9(SHM);_.t2(SHM);_.t2(REz);_.t2(cuc);_.q9(mhX,"yt-video-attribute-view-model",{props:{data:_.pK,className:_.pK}});var Kz=function(){var q=_.Y.apply(this,arguments)||this;q.useHighlightStyling=_.T("web_enable_deeper_metadata_highlight_styling");q.isSearch=!1;q.JSC$12917_lastScrollContainerWidth=NaN;q.pageLoadingFromNavigation=!1;q.currentIndex=0;q.supportComponentResize=!1;return q};
_.O(Kz,_.Y);_.k=Kz.prototype;
_.k.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}}}}}};
_.k.attached=function(){document.addEventListener("yt-page-type-changed",_.Fj(this,this.onPageChange))};
_.k.detached=function(){document.removeEventListener("yt-page-type-changed",_.Fj(this,this.onPageChange))};
_.k.getItemsPath=function(){return"data.cards"};
_.k.onIronResize=function(){this.updateListStyles()};
_.k.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var q;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(q=this.data)==null?void 0:q.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.T("problem_walkthrough_sd")&&!!this.centerItems};
_.k.computeCardListStyle=function(q){return q||null};
_.k.computeEmpty=function(q){return!this.get("cards.length",q)};
_.k.computeThumbnailStyle=function(q){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",q)||null};
_.k.computeHasSubtitle=function(q){return!!this.get("header.richListHeaderRenderer.subtitle",q)};
_.k.computeInitialCountNumber=function(q){return this.hasSquareMiniApp&&q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.k.computeUseFloorScrolling=function(q){return q==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.k.computeHasGameCard=function(q){return(q=this.get("cards",q))?q.some(function(w){return w.gameCardRenderer}):!1};
_.k.computeCenterHeaderTitle=function(q){return!(q==null||!q.centerHeaderTitle)};
_.k.computeHasPortraitMiniApp=function(q){return(q=q==null?void 0:q.cards)?q.some(function(w){return w.miniGameCardViewModel&&w.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.k.computeHasSquareMiniApp=function(q){return(q=q==null?void 0:q.cards)?q.some(function(w){return w.miniGameCardViewModel&&w.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.k.computeHasSkinnyWidthPortraitMiniApp=function(q){return(q=q==null?void 0:q.cards)?q.some(function(w){return w.miniGameCardViewModel&&w.miniGameCardViewModel.width===135}):!1};
_.k.computeCenterItems=function(q){return!!q};
_.k.computeHasInfoPanel=function(q){var w;return q==null?void 0:(w=q.cards)==null?void 0:w.some(function(u){return u.infoPanelContentRenderer})};
_.k.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.k.getItemByIndex=function(q){var w=this.items.children;return w&&w.length>q?w[q]:void 0};
_.k.onPageChange=function(){var q=this;this.pageLoadingFromNavigation=!0;_.pi.addJob(function(){q.pageLoadingFromNavigation=!1;_.X4(q.hostElement,"yt-terminate-video-preview-action")},8)};
_.k.updateListStyles=function(){if(_.T("problem_walkthrough_sd")&&this.JSC$12917_scrollContainer!==void 0){var q=this.JSC$12917_scrollContainer.clientWidth;q!==this.JSC$12917_lastScrollContainerWidth&&(this.JSC$12917_lastScrollContainerWidth=q,_.Pj(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(q*.8,415)+"px"}),_.t7(this.hostElement,"iron-resize"))}};
_.x$.Object.defineProperties(Kz.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.T("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return!!((q=this.data)==null?0:(w=q.cards)==null?0:(u=w[0])==null?0:u.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return!!((q=this.data)==null?0:(w=q.cards)==null?0:(u=w[0])==null?0:u.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return _.T("enable_desktop_amsterdam_info_panels")&&!!((q=this.data)==null?0:(w=q.cards)==null?0:(u=w[0])==null?0:u.infoPanelContentRenderer)}}});
Kz.prototype.dataChanged=Kz.prototype.dataChanged;Kz.prototype.onIronResize=Kz.prototype.onIronResize;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Kz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.MR.YtdHorizontalListBehavior),_.h("design:type",Object)],Kz.prototype,"ytdHorizontalListBehavior",void 0);
_.c([_.D(_.Ao),_.h("design:type",Object)],Kz.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Kz.prototype,"data",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Kz.prototype,"useCustomColors",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Kz.prototype,"useHighlightStyling",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.h("design:type",Object)],Kz.prototype,"cardListStyle",void 0);_.c([_.v({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.h("design:type",Boolean)],Kz.prototype,"empty",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.h("design:type",Boolean)],Kz.prototype,"hasSubtitle",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.h("design:type",Boolean)],Kz.prototype,"thumbnailStyle",void 0);_.c([_.v({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.h("design:type",Boolean)],Kz.prototype,"hasGameCard",void 0);_.c([_.v({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.h("design:type",Boolean)],Kz.prototype,"centerHeaderTitle",void 0);
_.c([_.v({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.h("design:type",Boolean)],Kz.prototype,"hasPortraitMiniApp",void 0);_.c([_.v({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.h("design:type",Boolean)],Kz.prototype,"hasSquareMiniApp",void 0);_.c([_.v({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.h("design:type",Boolean)],Kz.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.c([_.v({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.h("design:type",Boolean)],Kz.prototype,"hasInfoPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Kz.prototype,"isSearch",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Kz.prototype,"inlineStructuredDescription",void 0);_.c([_.Wj("#scroll-container"),_.h("design:type",HTMLDivElement)],Kz.prototype,"JSC$12917_scrollContainer",void 0);
_.c([_.v({computed:"computeInitialCountNumber(data.style.type)"}),_.h("design:type",Number)],Kz.prototype,"initialCount",void 0);_.c([_.v({computed:"computeUseFloorScrolling(data.style.type)"}),_.h("design:type",Boolean)],Kz.prototype,"useFloorScrolling",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.h("design:type",Boolean)],Kz.prototype,"centerItems",void 0);_.c([_.v(),_.h("design:type",Object)],Kz.prototype,"pageLoadingFromNavigation",void 0);
_.c([_.v(),_.h("design:type",Object)],Kz.prototype,"currentIndex",void 0);_.c([_.v(),_.h("design:type",Number)],Kz.prototype,"scrollCount",void 0);_.c([_.v(),_.h("design:type",Object)],Kz.prototype,"supportComponentResize",void 0);_.c([_.Wj("#items"),_.h("design:type",HTMLDivElement)],Kz.prototype,"items",void 0);_.c([_.Gm("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Kz.prototype,"onIronResize",null);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Kz.prototype,"dataChanged",null);_.c([_.v({reflectToAttribute:!0}),_.Z("inlineStructuredDescription"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Kz.prototype,"hideNavigationButton",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Kz.prototype,"modernChapters",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Kz.prototype,"hasVideoAttributeViewModels",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Kz.prototype,"modernInfoPanels",null);Kz=_.c([_.E({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],Kz);
_.R(Kz,"ytd-horizontal-card-list-renderer",function(){if(djx!==void 0)return djx;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return djx=q},{mode:_.kB("kevlar_poly_si_batch_j072")?1:2});var Asr=_.LL(function(q){var w=q.data;var u={};return _.W("video-summary-content-view-model",{class:_.HR("video-summary-content-view-model-wiz",q.className,(u["video-summary-content-view-model-wiz--is-search"]=q.isSearch,u))},_.W(_.mL,{each:function(){var y=[],e=w().paragraphs;if(e==null||!e.length)return[];for(var t=0;t<e.length;t++){var X=_.C(e[t],t43),G=void 0;t>0&&(G=_.C(e[t-1],t43));G&&!!G.marker===!!X.marker?y[y.length-1].paragraphs.push(X):y.push({isList:!!X.marker,paragraphs:[X]})}return y},
keyBy:"INDEX"},function(y){return _.W(_.r,{cond:function(){return y().isList},
then:function(){return _.W("ul",{class:"video-summary-content-view-model-wiz__list"},_.W(_.mL,{each:function(){return y().paragraphs},
keyBy:"INDEX"},function(e){return _.W("li",{class:"video-summary-content-view-model-wiz__list-item"},_.W(_.Lr,{text:function(){return e().text}}))}))},
else:function(){return _.W(_.mL,{each:function(){return y().paragraphs},
keyBy:"INDEX"},function(e){return _.W("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.W(_.Lr,{text:function(){return e().text}}))})}})}),_.W(_.r,{cond:function(){return!!_.C(w().likeButtonViewModel,_.Ag)&&!!_.C(w().dislikeButtonViewModel,_.Jg)},
then:function(){return _.W("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.W("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.W(_.op,{data:function(){return _.C(w().likeButtonViewModel,_.Ag)},
disableIconAnimation:!0})),_.W(_.Oi,{data:function(){return _.C(w().dislikeButtonViewModel,_.Jg)}}))}}))},"Ta");
Asr.idomCompat=!0;_.q9(Asr,"video-summary-content-view-model",{props:{data:_.pK,isSearch:_.pK,className:_.pK}});var Bt=function(){var q=_.Y.apply(this,arguments)||this;var w,u;q.isExpanded=(u=(w=q.data)==null?void 0:w.isExpanded)!=null?u:!1;q.disableExpand=!1;q.showProminentLabel=!1;q.showRightSideLabel=!0;q.toggleExpandableContent=function(y){q.disableExpand||(y.stopPropagation(),_.M9(_.SQ(y),q.hostElement,["info","expanded-subtitle"])||(q.isExpanded=!q.isExpanded,q.ytRendererBehavior.logExplicitClick(q.data),q.JSC$12928_cardList&&!_.T("expandable_metadata_a11y_fix_ks")&&_.KJ(q,function(){_.xZ(q.hostElement)})))};
q.useSquareThumbnail=!1;q.startX=0;return q};
_.O(Bt,_.Y);_.k=Bt.prototype;_.k.computeUseSquareThumbnail=function(){var q;return(q=this.data)==null?void 0:q.useSquareThumbnail};
_.k.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"}}}}};
_.k.dataChanged=function(){if(this.data){var q,w;this.isExpanded=(w=(q=this.data)==null?void 0:q.isExpanded)!=null?w:!1;var u,y,e,t;if(q=this.isDarkTheme()?(u=this.data)==null?void 0:(y=u.colorData)==null?void 0:y.darkColorPalette:(e=this.data)==null?void 0:(t=e.colorData)==null?void 0:t.lightColorPalette){var X,G;if((X=this.data)==null?0:(G=X.colorData)==null?0:G.vibrantColorPalette)q.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.ms(this.hostElement,q)}}};
_.k.isExpandedChanged=function(){this.isExpanded&&this.JSC$12928_cardList&&_.t7(this.JSC$12928_cardList,"iron-resize")};
_.k.computeIsExpanded=function(q){return!!q.isExpanded};
_.k.computeShowProminentLabel=function(q,w){var u;return!!(q==null?0:(u=q.header)==null?0:u.showLeadingCollapsedLabel)&&!w};
_.k.computeShowRightSideLabel=function(q,w){var u;return!(q==null?0:(u=q.header)==null?0:u.showLeadingCollapsedLabel)&&!w};
_.k.captureContentClick=function(q){if(!this.disableExpand)if(_.T("expandable_metadata_fix_killswitch")){var w=q.target;_.e3x(w,"ytd-macro-markers-list-item-renderer")||q.stopPropagation();(w==null?void 0:w.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.M9(_.SQ(q),this.hostElement,["items"])||_.LT(_.SQ(q),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.k.timestampClick=function(q){q.stopPropagation();var w,u;(q=(w=this.data)==null?void 0:(u=w.header)==null?void 0:u.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(q)};
_.k.onDown=function(q){q.stopPropagation();this.startX=q.detail?q.detail.x:0};
_.k.onUp=function(q){this.skipKeyInteraction(q)&&q.stopPropagation()};
_.k.skipKeyInteraction=function(q){var w=q.target;if((w==null?void 0:w.id)==="scroll-container"||(w==null?void 0:w.id)==="items"||q.detail&&q.detail.x!==this.startX)return!0;q=_.SQ(q);q=_.P(q);for(w=q.next();!w.done;w=q.next()){w=w.value;if(w===this.hostElement)break;if(w.hasAttribute&&w.hasAttribute("skip-key-interaction"))return!0}return!1};
_.k.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.x$.Object.defineProperties(Bt.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var q;return!!_.C((q=this.data)==null?void 0:q.expandedContent,kI$)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var q;return!!_.C((q=this.data)==null?void 0:q.expandedContent,_.quF)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var q,w;return!((q=this.data)==null||!q.useCustomColors)&&!((w=this.data)==null||!w.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var q,w;return!!((q=this.data)==null?0:(w=q.header)==null?0:w.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var q,w;return!!((q=this.data)==null?0:(w=q.header)==null?0:w.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var q,w;return!!((q=this.data)==null?0:(w=q.header)==null?0:w.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
Bt.prototype.onUp=Bt.prototype.onUp;Bt.prototype.onDown=Bt.prototype.onDown;Bt.prototype.isExpandedChanged=Bt.prototype.isExpandedChanged;Bt.prototype.dataChanged=Bt.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Bt.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Bt.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Bt.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Bt.prototype,"isExpanded",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Bt.prototype,"disableExpand",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],Bt.prototype,"isSearch",void 0);
_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Bt.prototype,"isWatch",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.h("design:type",Object)],Bt.prototype,"showProminentLabel",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.h("design:type",Object)],Bt.prototype,"showRightSideLabel",void 0);
_.c([_.v({value:!1,reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Bt.prototype,"hasVideoSummary",null);_.c([_.v({value:!1,reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Bt.prototype,"hasLockupViewModel",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data","isWatch"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Bt.prototype,"useCustomColors",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("data","isExpanded"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Bt.prototype,"showInfoButton",null);_.c([_.Z("data","isExpanded"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Bt.prototype,"showTimestamp",null);_.c([_.Z("data","isExpanded"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Bt.prototype,"showExpandedSubtitle",null);
_.c([_.Z("data","isExpanded"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Bt.prototype,"showThumbnail",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Bt.prototype,"useVppShoppingDestinationStyle",null);_.c([_.v(),_.h("design:type",Object)],Bt.prototype,"toggleExpandableContent",void 0);_.c([_.Wj("ytd-horizontal-card-list-renderer"),_.h("design:type",Object)],Bt.prototype,"JSC$12928_cardList",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.h("design:type",Object)],Bt.prototype,"useSquareThumbnail",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Bt.prototype,"dataChanged",null);_.c([_.nL("isExpanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Bt.prototype,"isExpandedChanged",null);
_.c([_.Gm("down"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Bt.prototype,"onDown",null);_.c([_.Gm("up"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Bt.prototype,"onUp",null);Bt=_.c([_.E({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],Bt);
_.R(Bt,"ytd-expandable-metadata-renderer",function(){if(awj!==void 0)return awj;var q=document.createElement("template");_.f(q,'\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" 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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return awj=q},{mode:1});var JsF,zra=function(){if(JsF!==void 0)return JsF;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return JsF=q};_.q9(_.TL,"yt-avatar-stack-view-model",{props:{className:_.pK,data:_.pK,overrides:_.pK,isOverlay:_.pK,useMediumText:_.pK,decorations:_.pK,hideAvatar:_.pK}});_.JE("itemSectionRenderer","videoRenderer","ytd-video-renderer");var xL=function(){var q=_.Y.apply(this,arguments)||this;q.disableExpand=!1;q.shouldShowChannelInfo=!1;q.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return q};
_.O(xL,_.Y);_.k=xL.prototype;_.k.computeUseSearchUi=function(){var q,w;return this.isSearch||((q=this.data)==null?void 0:(w=q.style)==null?void 0:w.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.k.computeUseThreeLineTitle=function(){var q;return((q=this.data)==null?void 0:q.maxTitleLines)===3};
_.k.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.T("polymer_video_renderer_defer_menu")&&!Jik?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"}}}};
_.k.attached=function(){_.ef(this.hostElement,"blue-links",_.T("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.k.detached=function(){this.clearInlinePreviewHoverListeners()};
_.k.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.kd(_.A(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var q=this.get("data.buttons.buttonRenderer.serviceEndpoint"),w;q&&((w=_.C(q.commandMetadata,_.oB))==null?0:w.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(q);this.updateInlinePreviewHoverListeners()};
_.k.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12933_inlinePreviewHoverListener=cC({mediaRenderer:this,lockupElement:this.JSC$12933_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.k.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$12933_inlinePreviewHoverListener)==null||yb(q)};
_.k.onTextWrapperClick=function(q){var w,u,y=this.hideTranslation?(w=this.data)==null?void 0:w.untranslatedNavigationEndpoint:(u=this.data)==null?void 0:u.navigationEndpoint;w=_.M9(_.SQ(q),this.hostElement,["expandable-metadata"]);!y||w&&!_.T("expandable_metadata_fix_killswitch")||_.LT(_.SQ(q),this.hostElement,["A".toString(),"BUTTON".toString()])||_.t7(this.hostElement,"yt-navigate",{endpoint:y})};
_.k.computeThumbnailWidth=function(q,w,u,y,e){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:y?e==="MASSIVE"?600:e==="BIG"?500:e==="MEDIUM"?450:420:u?360:w?128:q?210:246};
_.k.computeUseBiggerThumbs=function(q){return q&&_.T("enable_desktop_search_bigger_thumbs")};
_.k.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.k.computeVideoStyle=function(){if(_.T("enable_video_style")){var q,w;return(q=this.data)==null?void 0:(w=q.style)==null?void 0:w.value}};
_.k.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.k.handleHideItemSectionVideosByIdCommand=function(q){var w;q=(w=_.C(q,f9c))==null?void 0:w.videoId;this.data&&this.data.videoId===q&&(this.isHidden=!0)};
_.k.getMetadataSnippetContainerClass=function(q){return q?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.k.computeTitleText=function(q,w,u){return q?u:w};
_.k.computeDescriptionSnippet=function(q,w,u){return q?u:w};
_.k.computeSnippetText=function(q,w,u){return q?u:w};
_.k.computeNavigationEndpoint=function(q,w){return q?w==null?void 0:w.untranslatedNavigationEndpoint:w==null?void 0:w.navigationEndpoint};
_.k.hideInlineTitleIcon=function(q,w){return q||!w};
_.x$.Object.defineProperties(xL.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 q;return(q=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?q:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return!!(this==null?0:(q=this.data)==null?0:(w=q.channelThumbnailSupportedRenderers)==null?0:(u=w.channelThumbnailWithLinkRenderer)==null?0:u.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var q;return!!_.C((q=this.data)==null?void 0:q.avatar,wiT)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$12933_inlinePreviewHoverListener)==null?0:OJ(q))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.x$.Object.defineProperties(xL,{template:{configurable:!0,enumerable:!0,get:function(){return zra()}}});
xL.prototype.dataChanged=xL.prototype.dataChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],xL.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],xL.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],xL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],xL.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.D(_.$p),_.h("design:type",Object)],xL.prototype,"ytdLockupBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],xL.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],xL.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],xL.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],xL.prototype,"isBackstageVideo",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],xL.prototype,"isPostCompactVideo",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],xL.prototype,"isHistory",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],xL.prototype,"isRichGridVideoPost",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],xL.prototype,"isHidden",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],xL.prototype,"isSearch",void 0);_.c([_.v({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.h("design:type",Boolean)],xL.prototype,"useSearchUi",void 0);_.c([_.v({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.h("design:type",Boolean)],xL.prototype,"useThreeLineTitle",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.h("design:type",Boolean)],xL.prototype,"useBiggerThumbs",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.h("design:type",Object)],xL.prototype,"videoStyle",void 0);_.c([_.v({computed:"computeDisableExpand(videoStyle)"}),_.h("design:type",Object)],xL.prototype,"disableExpand",void 0);
_.c([_.v({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.h("design:type",Object)],xL.prototype,"shouldShowChannelInfo",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.GQ("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],xL.prototype,"biggerThumbsStyle",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.h("design:type",String)],xL.prototype,"inlineTitleIcon",void 0);_.c([_.v({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.h("design:type",Object)],xL.prototype,"computedNavigationEndpoint",void 0);_.c([_.v({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(q,w){return _.HQ(q.entities,"searchVideoResultEntity",w)}}),
_.h("design:type",Object)],xL.prototype,"searchVideoResultEntity",void 0);_.c([_.Wj("ytd-thumbnail"),_.h("design:type",HTMLElement)],xL.prototype,"thumbnail",void 0);_.c([_.Wj("#dismissible"),_.h("design:type",HTMLElement)],xL.prototype,"JSC$12933_dismissibleMedia",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xL.prototype,"dataChanged",null);
_.c([_.Z("searchVideoResultEntity"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],xL.prototype,"hideTranslation",null);_.c([_.Z("searchVideoResultEntity"),_.h("design:type",Array),_.h("design:paramtypes",[])],xL.prototype,"hiddenBadgeGroups",null);_.c([_.Z("data","useAvatar"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],xL.prototype,"shouldShowChannelThumbnail",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],xL.prototype,"useAvatar",null);
_.c([_.Z("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],xL.prototype,"isHovered",null);xL=_.c([_.E({is:"ytd-video-renderer",disableElementRegistration:!0})],xL);_.R(xL,"ytd-video-renderer",function(){return zra()},{mode:_.kB("kevlar_poly_si_batch_j047")?1:2});var qP=function(){var q=_.Y.apply(this,arguments)||this;q.editDialog=null;q.roundedContainer=!0;q.isLoading=!1;q.isRichGrid=!1;q.isRichGridRepost=!1;q.reduceSidePaddings=_.T("reduce_side_paddings_in_shelf");q.JSC$12940_spinnerEl=null;return q};
_.O(qP,_.Y);_.k=qP.prototype;
_.k.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"}}}};
_.k.contentTextChanged=function(){this.expander.reset()};
_.k.dataChanged=function(){var q=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var w=0,u=this.data.actions&&this.data.actions.length;w<u;w++)this.openEditDialog(_.C(this.data.actions[w],Kpc));if((w=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(w=this.get("buttonRenderer.hint.hintRenderer.hintId",w))&&w.startsWith("share-post-hint")){var y=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(y){_.Mk.getInstance();var e=KF(_.jN(_.ID("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.pi.addLowPriorityJob(function(){_.nq(q.hostElement,e,y)})}}}};
_.k.updatePoll=function(q){q>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.k.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12940_spinnerEl||(this.JSC$12940_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.A(this.hostElement).appendChild(this.JSC$12940_spinnerEl));this.JSC$12940_spinnerEl&&(this.JSC$12940_spinnerEl.active=this.isLoading)};
_.k.onYtNavigate=function(q){var w=this.get("updateCommentDialogEndpoint",q.detail.endpoint);w&&(this.openEditDialog(w),q.stopPropagation())};
_.k.onYtCommentboxDismiss=function(){this.editDialog=null};
_.k.onYtCommentPollRevert=function(q,w){w&&this.updatePoll(w.selectedChoiceIndex)};
_.k.onYtServiceRequestSent=function(q,w){var u;w.endpoint&&(_.C(w.endpoint,rUP)||_.C(w.endpoint,iHc)&&((u=_.C(w.endpoint,iHc))==null||!u.clientActions))&&(this.isLoading=!0);if(w.actions)for(q=0;q<w.actions.length;q++)u=w.actions[q],_.C(u,df)&&(u=this.get("updateBackstagePollAction.selectedChoiceIndex",u),u==void 0&&(u=-1),this.updatePoll(u))};
_.k.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.k.openEditDialog=function(q){q&&q.dialog&&(this.editDialog=q.dialog,q=this.editDialogEl.firstElementChild)&&(q.focus(),q.openDialog&&q.openDialog())};
_.k.computeIsPostHidden=function(q,w){return!!q||w};
_.k.computeSurfaceType=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.k.computeUsesCompactLockup=function(q){return q==="BACKSTAGE_SURFACE_TYPE_HOME"||q==="BACKSTAGE_SURFACE_TYPE_SEARCH"||q==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||q==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||q==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||q==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.k.computeShowWithoutToolbar=function(q){return!q.actionButtons&&!q.actionMenu};
_.k.computePostAttachment=function(q){if(q.backstageAttachment){if(_.C(q.backstageAttachment,LnT))return"poll";if(_.C(q.backstageAttachment,arP))return"quiz";if(_.C(q.backstageAttachment,_.ZE))return"video";if(_.C(q.backstageAttachment,Ddj))return"uploaded-videos";if(_.C(q.backstageAttachment,oXa))return q.contentText?"image":"image-only";if(_.C(q.backstageAttachment,mdX))return"playlist"}return"none"};
_.k.computePostTabIndex=function(q){return q?0:-1};
_.k.computeButtonTooltipPosition=function(q){return this.computeUsesCompactLockup(q)?"top":"bottom"};
_.k.computeHasText=function(q){return!(q==null||!q.contentText)};
_.k.onTap=function(q){var w,u;if(((w=this.data)==null?0:w.navigationEndpoint)&&((u=this.data)==null?void 0:u.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var y;((y=this.data)==null?0:y.navigationEndpoint)&&!_.LT(_.SQ(q)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.t7(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.x$.Object.defineProperties(qP.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.voteCount)||_.jN("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.C(this.data.backstageAttachment,LnT))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.C(this.data.backstageAttachment,Ddj))}}});
qP.prototype.onYtServiceRequestCompleted=qP.prototype.onYtServiceRequestCompleted;qP.prototype.onYtServiceRequestSent=qP.prototype.onYtServiceRequestSent;qP.prototype.onYtCommentPollRevert=qP.prototype.onYtCommentPollRevert;qP.prototype.onYtCommentboxDismiss=qP.prototype.onYtCommentboxDismiss;qP.prototype.onYtNavigate=qP.prototype.onYtNavigate;qP.prototype.isLoadingChanged=qP.prototype.isLoadingChanged;qP.prototype.dataChanged=qP.prototype.dataChanged;qP.prototype.contentTextChanged=qP.prototype.contentTextChanged;
_.c([_.D(_.Ao),_.h("design:type",Object)],qP.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],qP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],qP.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],qP.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",Object)],qP.prototype,"editDialog",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],qP.prototype,"roundedContainer",void 0);_.c([_.v(),_.h("design:type",Object)],qP.prototype,"isLoading",void 0);_.c([_.v({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.h("design:type",String)],qP.prototype,"surface",void 0);
_.c([_.v({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.h("design:type",Boolean)],qP.prototype,"usesCompactLockup",void 0);_.c([_.v({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],qP.prototype,"showWithoutToolbar",void 0);_.c([_.v({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.h("design:type",String)],qP.prototype,"attachment",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],qP.prototype,"isRichGrid",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],qP.prototype,"isRichGridRepost",void 0);_.c([_.v({reflectToAttribute:!0,value:_.T("use_better_post_dismissals")}),_.h("design:type",Boolean)],qP.prototype,"useBetterPostDismissals",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],qP.prototype,"reduceSidePaddings",void 0);
_.c([_.v({computed:"computeHasText(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],qP.prototype,"hasText",void 0);_.c([_.Wj("#expander"),_.h("design:type",Object)],qP.prototype,"expander",void 0);_.c([_.Wj("#action-buttons"),_.h("design:type",Object)],qP.prototype,"actionButtons",void 0);_.c([_.Wj("#edit-dialog"),_.h("design:type",HTMLElement)],qP.prototype,"editDialogEl",void 0);
_.c([_.nL("data.contentText"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qP.prototype,"contentTextChanged",null);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qP.prototype,"dataChanged",null);_.c([_.nL("isLoading"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qP.prototype,"isLoadingChanged",null);
_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],qP.prototype,"onYtNavigate",null);_.c([_.Gm("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qP.prototype,"onYtCommentboxDismiss",null);_.c([_.Gm("yt-comment-poll-revert"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],qP.prototype,"onYtCommentPollRevert",null);
_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],qP.prototype,"onYtServiceRequestSent",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],qP.prototype,"onYtServiceRequestCompleted",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],qP.prototype,"voteCount",null);
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],qP.prototype,"commentCount",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],qP.prototype,"hasPoll",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],qP.prototype,"hasUploadedVideo",null);qP=_.c([_.E({is:"ytd-post-renderer",disableElementRegistration:!0})],qP);
_.R(qP,"ytd-post-renderer",function(){if(w$G!==void 0)return w$G;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return w$G=q},{mode:1});var aYP;var DhP;var wT=function(){return _.Y.apply(this,arguments)||this};
_.O(wT,_.Y);wT.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],wT.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],wT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.MR.YtdHorizontalListBehavior),_.h("design:type",Object)],wT.prototype,"ytdHorizontalListBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],wT.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],wT.prototype,"data",void 0);
_.c([_.v({value:"$.items.children"}),_.h("design:type",String)],wT.prototype,"itemsPath",void 0);_.c([_.v({value:1}),_.h("design:type",Number)],wT.prototype,"initialCount",void 0);_.c([_.v(),_.h("design:type",String)],wT.prototype,"surface",void 0);wT=_.c([_.E({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],wT);
_.R(wT,"ytd-post-multi-image-renderer",function(){if(DhP!==void 0)return DhP;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return DhP=q},{mode:_.kB("kevlar_poly_si_batch_j079")?1:2});var Z2X={"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"}}},ue=function(){var q=_.Y.apply(this,arguments)||this;q.hasInlineCommentSection=!1;q.editDialog=null;q.isLoading=!1;q.shouldHideAuthor=!1;q.shouldShowVideoTime=!1;
q.isInEngagementPanel=!1;q.hideBorder=!1;q.usesFullLockup=!1;q.shouldShowMenuInCompactView=!1;q.JSC$12956_spinnerEl=null;q.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return q};
_.O(ue,_.Y);_.k=ue.prototype;_.k.configureRendererStamper=function(){return Z2X};
_.k.computeIsPollHeaderEnabled=function(q){return(q==null?void 0:q.pollMetadataIcon)!=null};
_.k.getPublishTimeStampString=function(q,w){w=new Date((Number(w)-60*((new Date).getTimezoneOffset()-(new Date(Number(w)*1E3)).getTimezoneOffset()))*1E3);w=(new SN(10)).format(w);if(q&&q.runs&&q.runs.length)for(var u=0;u<q.runs.length;u++)q.runs[u].text&&(q.runs[u].text=q.runs[u].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",w));return q};
_.k.created=function(){this.JSC$12956_spinnerEl=null};
_.k.contentTextChanged=function(){this.expander.reset()};
_.k.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var q;if((q=this.data)==null?0:q.actions){q=_.P(this.data.actions);for(var w=q.next();!w.done;w=q.next())this.openEditDialog(_.C(w.value,Kpc))}};
_.k.handleSignalActionOpenPostCommentDialogAction=function(){_.A(this.hostElement).querySelector("#action-buttons").reply()};
_.k.updatePoll=function(q,w){w&&this.set("data.pollMetadataVoteCountText",w);this.hasInlineCommentSection&&(q=q>=0,w=_.A(this.hostElement).querySelector("#action-buttons"),q?w.reply():w.hideReplyDialog())};
_.k.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12956_spinnerEl||(this.JSC$12956_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.A(this.hostElement).appendChild(this.JSC$12956_spinnerEl));this.JSC$12956_spinnerEl&&(this.JSC$12956_spinnerEl.active=this.isLoading)};
_.k.onYtNavigate=function(q){var w=this.get("updateCommentDialogEndpoint",q.detail.endpoint);w&&(this.openEditDialog(w),q.stopPropagation())};
_.k.onYtCommentboxDismiss=function(){this.editDialog=null};
_.k.onYtCommentPollRevert=function(q,w){w&&this.updatePoll(w.selectedChoiceIndex,w.totalVotes)};
_.k.onYtServiceRequestSent=function(q,w){q.stopPropagation();q=_.C(w.endpoint,iHc);if(_.C(w.endpoint,rUP)||q&&!q.clientActions)this.isLoading=!0;if(w.actions)for(q=0;q<w.actions.length;q++){var u=w.actions[q],y=_.C(u,df);y&&(u=this.get("updateBackstagePollAction.selectedChoiceIndex",u),u===void 0&&(u=-1),this.updatePoll(u,y.totalVotes))}};
_.k.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.k.openEditDialog=function(q){q&&q.dialog&&(this.editDialog=q.dialog,q=this.editDialogElement.firstElementChild)&&(q.focus(),q.openDialog&&q.openDialog())};
_.k.computeIsBodyHidden=function(q,w){return!!q||w};
_.x$.Object.defineProperties(ue.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var q,w;if((q=this.data)==null?0:(w=q.pollMetadataIcon)==null?0:w.iconType)return _.Fy(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.voteCount)||_.jN("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.C(this.data.backstageAttachment,LnT))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.C(this.data.backstageAttachment,arP))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.C(this.data.backstageAttachment,Ddj))}}});
ue.prototype.onYtServiceRequestCompleted=ue.prototype.onYtServiceRequestCompleted;ue.prototype.onYtServiceRequestSent=ue.prototype.onYtServiceRequestSent;ue.prototype.onYtCommentPollRevert=ue.prototype.onYtCommentPollRevert;ue.prototype.onYtCommentboxDismiss=ue.prototype.onYtCommentboxDismiss;ue.prototype.onYtNavigate=ue.prototype.onYtNavigate;ue.prototype.isLoadingChanged=ue.prototype.isLoadingChanged;ue.prototype.dataChanged=ue.prototype.dataChanged;ue.prototype.contentTextChanged=ue.prototype.contentTextChanged;
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],ue.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ue.prototype,"rendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],ue.prototype,"rendererstamperBehavior",void 0);_.c([_.Wj("#contentTextExpander"),_.h("design:type",Object)],ue.prototype,"expander",void 0);
_.c([_.Wj("#edit-dialog"),_.h("design:type",Element)],ue.prototype,"editDialogElement",void 0);_.c([_.v(),_.h("design:type",Object)],ue.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],ue.prototype,"hasInlineCommentSection",void 0);_.c([_.v(),_.h("design:type",Object)],ue.prototype,"editDialog",void 0);_.c([_.v(),_.h("design:type",Object)],ue.prototype,"isLoading",void 0);
_.c([_.v({computed:"computeIsPollHeaderEnabled(data)"}),_.h("design:type",Boolean)],ue.prototype,"isPollHeaderEnabled",void 0);_.c([_.v(),_.h("design:type",Object)],ue.prototype,"shouldHideAuthor",void 0);_.c([_.v(),_.h("design:type",Object)],ue.prototype,"shouldShowVideoTime",void 0);_.c([_.v(),_.h("design:type",Object)],ue.prototype,"isInEngagementPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ue.prototype,"hideBorder",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ue.prototype,"usesFullLockup",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ue.prototype,"shouldShowMenuInCompactView",void 0);_.c([_.Z("isInEngagementPanel"),_.h("design:type",Number),_.h("design:paramtypes",[])],ue.prototype,"postTextMaxLines",null);_.c([_.Z("data.icon.iconType"),_.h("design:type",Object),_.h("design:paramtypes",[])],ue.prototype,"pollIcon",null);
_.c([_.nL("data.contentText"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ue.prototype,"contentTextChanged",null);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ue.prototype,"dataChanged",null);_.c([_.nL("isLoading"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ue.prototype,"isLoadingChanged",null);
_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],ue.prototype,"onYtNavigate",null);_.c([_.Gm("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ue.prototype,"onYtCommentboxDismiss",null);_.c([_.Gm("yt-comment-poll-revert"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],ue.prototype,"onYtCommentPollRevert",null);
_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],ue.prototype,"onYtServiceRequestSent",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],ue.prototype,"onYtServiceRequestCompleted",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ue.prototype,"voteCount",null);
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ue.prototype,"commentCount",null);_.c([_.Z("data.backstageAttachment"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ue.prototype,"hasPoll",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ue.prototype,"hasQuiz",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ue.prototype,"hasUploadedVideo",null);
ue=_.c([_.E({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],ue);
_.R(ue,"ytd-backstage-post-renderer",function(){if(aYP!==void 0)return aYP;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return aYP=q},{mode:1});var per;var yh=function(){var q=_.Y.apply(this,arguments)||this;q.editDialog=null;q.showExpandButton=!1;q.isRichGrid=!1;q.usesFullLockup=!1;return q};
_.O(yh,_.Y);_.k=yh.prototype;_.k.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"}}}};
_.k.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.k.computeShowExpandButton=function(q){return this.usesCompactLockup||q&&q.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.k.computeUsesCompactLockup=function(q){return!!q.condensedContent};
_.k.computeShowFullContentText=function(q){return!q};
_.k.onYtNavigate=function(q){q=this.get("updateCommentDialogEndpoint",q.detail.endpoint);this.openEditDialog(q)};
_.k.onYtCommentboxDismiss=function(){this.editDialog=null};
_.k.openEditDialog=function(q){q&&q.dialog&&(this.editDialog=q.dialog,q=this.repostEditDialogEl.firstElementChild)&&(q.focus(),q.openDialog&&q.openDialog())};
_.k.onTap=function(q){if(this.data){var w=null;this.usesCompactLockup&&!_.LT(_.SQ(q)||[],this.hostElement,["YT-IMG-SHADOW"])?w=this.get("navigationEndpoint",this.data):q.target===this.moreButtonEl&&(w=this.get("navigationEndpoint",q.target.data));w&&_.t7(this.hostElement,"yt-navigate",{endpoint:w})}};
yh.prototype.onYtCommentboxDismiss=yh.prototype.onYtCommentboxDismiss;yh.prototype.onYtNavigate=yh.prototype.onYtNavigate;yh.prototype.dataChanged=yh.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],yh.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],yh.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],yh.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",Object)],yh.prototype,"editDialog",void 0);_.c([_.v({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],yh.prototype,"usesCompactLockup",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],yh.prototype,"showExpandButton",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],yh.prototype,"isRichGrid",void 0);
_.c([_.v({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.h("design:type",Boolean)],yh.prototype,"showFullContentText",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],yh.prototype,"usesFullLockup",void 0);_.c([_.Wj("#more"),_.h("design:type",Object)],yh.prototype,"moreButtonEl",void 0);_.c([_.Wj("#repost-content-text"),_.h("design:type",HTMLElement)],yh.prototype,"repostContentTextEl",void 0);
_.c([_.Wj("#repost-edit-dialog"),_.h("design:type",HTMLElement)],yh.prototype,"repostEditDialogEl",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yh.prototype,"dataChanged",null);_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],yh.prototype,"onYtNavigate",null);
_.c([_.Gm("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yh.prototype,"onYtCommentboxDismiss",null);yh=_.c([_.E({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],yh);
_.R(yh,"ytd-shared-post-renderer",function(){if(per!==void 0)return per;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return per=q},{mode:1});var $ha;var vix;var em=function(){return _.Y.apply(this,arguments)||this};
_.O(em,_.Y);em.prototype.attached=function(){var q=this;this.networkStatusManager||(this.networkStatusManager=new _.MQ,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){q.onlineHandler()}))};
em.prototype.detached=function(){var q=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){q.onlineHandler()}),delete this.networkStatusManager)};
em.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],em.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],em.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],em.prototype,"data",void 0);em=_.c([_.E({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],em);
_.R(em,"ytd-reload-page-button-renderer",function(){if(vix!==void 0)return vix;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);
return vix=q},{mode:1});var b2c={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"},kV=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.O(kV,_.Y);_.k=kV.prototype;_.k.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.k.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.k.computeHasBodyText=function(q){return!!q.bodyText};
_.k.computeButtons=function(q){var w=[];q.ctaButton&&w.push(q.ctaButton);q.secondaryButton&&w.push(q.secondaryButton);return w};
_.k.computeRendererStyle=function(q){return q.style?q.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():q.icon?"":"no-icon"};
_.k.getIconName=function(q,w){w=w===void 0?!1:w;if(q===void 0)return"";q=this.get("icon.iconType",q);var u;_.T("enable_hlp_client_icon_pick")?u=this.getThemedIcon(q,w):u=q;(w=b2c[u])||(w="yt-icons");return[w,u].join(":")};
_.k.getThemedIcon=function(q,w){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(q)?w?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(q)?w?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":q};
_.k.isThumbnail=function(q){return!!q.thumbnail};
_.k.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.k.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],kV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],kV.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],kV.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],kV.prototype,"data",void 0);
_.c([_.v({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.h("design:type",String)],kV.prototype,"rendererStyle",void 0);_.c([_.v({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.h("design:type",String)],kV.prototype,"iconName",void 0);_.c([_.v({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],kV.prototype,"thumbnail",void 0);_.c([_.v({computed:"computeButtons(data)"}),_.h("design:type",Array)],kV.prototype,"buttons",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],kV.prototype,"isDarkTheme",void 0);_.c([_.v({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],kV.prototype,"hasBodyText",void 0);kV=_.c([_.E({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],kV);
_.R(kV,"ytd-background-promo-renderer",function(){if($ha!==void 0)return $ha;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return $ha=q},{mode:1});var YQF;var tR=function(){var q=_.Y.apply(this,arguments)||this;q.collections=_.T("web_modern_collections_v2");return q};
_.O(tR,_.Y);_.x$.Object.defineProperties(tR.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var q,w,u,y,e,t;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(q=this.data)==null?void 0:(w=q.thumbnail)==null?void 0:w.sampledThumbnailColor,vibrantColorPalette:(u=this.data)==null?void 0:(y=u.thumbnail)==null?void 0:y.vibrantColorPalette,darkColorPalette:(e=this.data)==null?void 0:(t=e.thumbnail)==null?void 0:t.darkColorPalette,experimentEnabled:this.collections}}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],tR.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],tR.prototype,"collections",void 0);_.c([_.Z("data","collections"),_.h("design:type",Object),_.h("design:paramtypes",[])],tR.prototype,"collectionStack",null);tR=_.c([_.E({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],tR);
_.R(tR,"ytd-compact-station-renderer",function(){if(YQF!==void 0)return YQF;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return YQF=q},{mode:1});var gi$;var PF=function(){var q=_.Y.apply(this,arguments)||this;q.isRichGrid=!1;return q};
_.O(PF,_.Y);PF.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]]"}}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],PF.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],PF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],PF.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],PF.prototype,"isRichGrid",void 0);PF=_.c([_.E({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],PF);
_.R(PF,"ytd-grid-channel-renderer",function(){if(gi$!==void 0)return gi$;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return gi$=q},{mode:1});var Eik;var XM=function(){return _.Y.apply(this,arguments)||this};
_.O(XM,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],XM.prototype,"data",void 0);XM=_.c([_.E({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],XM);
_.R(XM,"ytd-grid-movie-playlist-renderer",function(){if(Eik!==void 0)return Eik;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Eik=q},{mode:1});var Rrc;var FM=function(){var q=_.Y.apply(this,arguments)||this;q.downloadProgress=0;q.transferState="TRANSFER_STATE_UNKNOWN";q.modernButtons=_.T("web_modern_buttons");q.useModernCollectionsV2=_.T("web_modern_collections_v2");return q};
_.O(FM,_.Y);FM.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
FM.prototype.configureRendererStamper=function(){return{"data.menu":ti}};
FM.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
FM.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.T("woffle_playlist_renderer_killswitch")){var q,w=Psf(this.entityInfo,this.transferState,this.downloadProgress,(q=this.data)==null?void 0:q.playlistId,this.isOnline);q=w.viewPlaylistText;var u=w.badges;w=w.thumbnailOverlays;this.isDownloads=!!q||!!u;this.set("data.viewPlaylistText",q);u&&u.length>0&&this.set("data.badges",u);w&&w.length>0&&this.set("data.thumbnailOverlays",
w)}};
_.x$.Object.defineProperties(FM.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 q;return!((q=this.data)==null?0:q.menu)}}});
FM.prototype.transferStateChanged=FM.prototype.transferStateChanged;FM.prototype.dataChanged=FM.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.$p),_.h("design:type",Object)],FM.prototype,"ytdLockupBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],FM.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],FM.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v({selector:_.Ckc,selectorArgs:["data.playlistId"]}),_.h("design:type",Object)],FM.prototype,"downloadProgress",void 0);_.c([_.v({selector:_.$N,selectorArgs:["data.playlistId"]}),_.h("design:type",Object)],FM.prototype,"transferState",void 0);_.c([_.v({selector:Tfo,selectorArgs:["data.playlistId"]}),_.h("design:type",Object)],FM.prototype,"entityInfo",void 0);_.c([_.v({selector:Nfz}),_.h("design:type",Boolean)],FM.prototype,"isOnline",void 0);
_.c([_.v(),_.h("design:type",Object)],FM.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],FM.prototype,"downloadRenderData",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],FM.prototype,"modernButtons",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],FM.prototype,"isDownloads",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],FM.prototype,"useModernCollectionsV2",void 0);
_.c([_.Z("transferState"),_.v({reflectToAttribute:!0}),_.h("design:type",String),_.h("design:paramtypes",[])],FM.prototype,"downloadState",null);_.c([_.Z("data"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],FM.prototype,"menuHidden",null);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],FM.prototype,"dataChanged",null);
_.c([_.I9("transferState","downloadProgress","isOnline"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],FM.prototype,"transferStateChanged",null);FM=_.c([_.E({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],FM);
_.R(FM,"ytd-grid-playlist-renderer",function(){if(Rrc!==void 0)return Rrc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Rrc=q},{mode:1});var csx;var GE=function(){var q=_.Y.apply(this,arguments)||this;q.collections=_.T("web_modern_collections_v2");return q};
_.O(GE,_.Y);GE.prototype.configureRendererStamper=function(){return{"data.menu":ti,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.x$.Object.defineProperties(GE.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var q,w,u,y,e,t;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(q=this.data)==null?void 0:(w=q.thumbnail)==null?void 0:w.sampledThumbnailColor,vibrantColorPalette:(u=this.data)==null?void 0:(y=u.thumbnail)==null?void 0:y.vibrantColorPalette,darkColorPalette:(e=this.data)==null?void 0:(t=e.thumbnail)==null?void 0:t.darkColorPalette,experimentEnabled:this.collections}}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],GE.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.D(_.$p),_.h("design:type",Object)],GE.prototype,"ytdLockupBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],GE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],GE.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],GE.prototype,"collections",void 0);_.c([_.Z("data","collections"),_.h("design:type",Object),_.h("design:paramtypes",[])],GE.prototype,"collectionStack",null);GE=_.c([_.E({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],GE);
_.R(GE,"ytd-grid-radio-renderer",function(){if(csx!==void 0)return csx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return csx=q},{mode:1});var SQ3;var n0=function(){var q=_.Y.apply(this,arguments)||this;q.useModernCollectionsV2=_.T("web_modern_collections_v2");return q};
_.O(n0,_.Y);n0.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
n0.prototype.computeNavigationEndpoint=function(q){return YGJ(q==null?void 0:q.navigationEndpoint)};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],n0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.$p),_.h("design:type",Object)],n0.prototype,"ytdLockupBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],n0.prototype,"data",void 0);_.c([_.v({computed:"computeNavigationEndpoint(data)"}),_.h("design:type",Object)],n0.prototype,"computedNavigationEndpoint",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],n0.prototype,"useModernCollectionsV2",void 0);n0=_.c([_.E({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],n0);
_.R(n0,"ytd-grid-show-renderer",function(){if(SQ3!==void 0)return SQ3;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return SQ3=q},{mode:1});var hrT;_.HF=function(q){this.playerClient=q};
_.jYZ=function(q,w,u){u=u===void 0?{}:u;return q.playerClient.setOption("ad",w,u)};
_.HF.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.HF.prototype.executeCommand=function(q,w){this.getOptions().includes("executeCommand")?_.jYZ(this,"executeCommand",{command:q,layoutId:w}):_.BC("Calling executeCommand when adModule is not loaded")};var WF=function(){return _.Y.apply(this,arguments)||this};
_.O(WF,_.Y);WF.prototype.getLayoutId=function(){var q=_.hP("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.layoutId:null};
WF.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var q=_.xo(),w=this.getLayoutId(),u=this.data.clickthroughEndpoint;q&&w&&_.T("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?q.getPlayerPromise().then(function(y){(new _.HF(y)).executeCommand(u,w)}):_.t7(this.hostElement,"yt-navigate",{endpoint:u})}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],WF.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],WF.prototype,"data",void 0);WF=_.c([_.E({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],WF);
_.R(WF,"ytd-shopping-companion-item-renderer",function(){if(hrT!==void 0)return hrT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return hrT=q},{mode:1});var lYa;var sp=function(){var q=_.Y.apply(this,arguments)||this;q.isExpandableContent=!1;return q};
_.O(sp,_.Y);_.x$.Object.defineProperties(sp.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return((q=this.data)==null?void 0:q.price)||((w=this.data)==null?void 0:(u=w.dealsData)==null?void 0:u.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var q,w;if((q=this.data)!=null&&q.dealsData&&((w=this.data)==null||!w.priceReplacementText)){q=this.data.dealsData;var u,y,e;return((u=q.salesData)==null?void 0:u.originalPrice)||((y=q.priceDropData)==null?void 0:y.referencePrice)||((e=q.promotionData)==null?void 0:e.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var q,w;return(q=this.data)==null?void 0:(w=q.dealsData)==null?void 0:w.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],sp.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],sp.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],sp.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],sp.prototype,"isExpandableContent",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],sp.prototype,"showCta",null);
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],sp.prototype,"ctaText",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],sp.prototype,"hasPriceTopPosition",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],sp.prototype,"hasPriceBottomPosition",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],sp.prototype,"useNewStyle",null);
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],sp.prototype,"showPriceReplacementText",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],sp.prototype,"priceValue",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],sp.prototype,"showDeal",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],sp.prototype,"showAffiliateDisclaimer",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],sp.prototype,"useSaleStyle",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],sp.prototype,"useFromBrandCtaStyle",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],sp.prototype,"useFromVendorCtaStyle",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],sp.prototype,"useShoppingCollectionCtaStyle",null);sp=_.c([_.E({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],sp);
_.R(sp,"ytd-vertical-product-card-renderer",function(){if(lYa!==void 0)return lYa;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return lYa=q},{mode:1});var LXx;var NP=function(){return _.Y.apply(this,arguments)||this};
_.O(NP,_.Y);NP.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],NP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.$p),_.h("design:type",Object)],NP.prototype,"ytdLockupBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],NP.prototype,"data",void 0);NP=_.c([_.E({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],NP);
_.R(NP,"ytd-grid-movie-renderer",function(){if(LXx!==void 0)return LXx;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return LXx=q},{mode:1});var MA3;var Qh=function(){var q=_.Y.apply(this,arguments)||this;q.rounded=!0;q.itemStyle="small-item";return q};
_.O(Qh,_.Y);Qh.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var q,w,u,y,e=(w=_.C((q=this.data)==null?void 0:q.buttonCommand,_.Fpa))==null?void 0:(u=w.item)==null?void 0:(y=u.notificationTextRenderer)==null?void 0:y.successResponseText;e&&_.lq7(this.hostElement,e)}};
_.x$.Object.defineProperties(Qh.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.data)==null?void 0:q.isProductPlaceholder)!==void 0&&((w=this.data)==null?void 0:w.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.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}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Qh.prototype,"ytRendererBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Qh.prototype,"rounded",void 0);_.c([_.v(),_.h("design:type",Object)],Qh.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],Qh.prototype,"itemStyle",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Qh.prototype,"hasPrice",null);
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Qh.prototype,"hasPriceReplacementText",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Qh.prototype,"hasAdditionalFeesText",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Qh.prototype,"hasAffiliateDisclaimer",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Qh.prototype,"isProductPlaceholder",null);
_.c([_.v(),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Qh.prototype,"hideOpenInNewIcon",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Qh.prototype,"ariaLabel",null);Qh=_.c([_.E({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],Qh);
_.R(Qh,"ytd-merch-shelf-item-renderer",function(){if(MA3!==void 0)return MA3;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return MA3=q},{mode:1});var KXk=_.LL(function(q){var w=_.Bm();_.EF(w,function(){return q.data().rendererContext});
return _.W("button-card-view-model",{el:w,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return q.data().title},
role:"button"},_.W(_.dm,{model:{}}),_.W("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.W("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.W(_.r,{cond:function(){return q.data().image},
then:function(u){return _.W(_.ln,{data:u,alt:function(){var y;return(y=q.data().title)!=null?y:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.W("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return q.data().title})))},"Ua");_.T("web_button_view_model_wcw_registration_killswitch")||_.q9(KXk,"button-card-view-model",{props:{data:_.pK}});_.q9(_.LL(function(q){q=_.lf(q,{className:void 0});var w=q.data;q=q.className;var u=_.oR(function(){return w().onTapCommand},void 0,"NprDr");
return _.W("ytd-shopping-item-card",{class:_.HR("ytdShoppingItemCardHost",q)},_.W(_.Mq,{command:u,className:"ytdShoppingItemCardHostLink"},_.W("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.W(_.OF,{data:function(){return w().thumbnailViewModel}},{thumbnailViewModel:function(y){return _.W(_.EJ,{data:y.data,
aspectRatio:3})}})),_.W("div",null,_.W("p",{class:"ytdShoppingItemCardHostItemTitle"},_.W(_.Lr,{text:function(){return w().itemTitle}})),_.W("p",{class:"ytdShoppingItemCardHostPrice"},_.W(_.Lr,{text:function(){return w().priceOrStatus}})))))},"Va"),"ytd-shopping-item-card",{props:{data:_.pK,
className:_.pK}});var B5j={isAdsVideo:!0},xhG={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},qHZ={showPlayerControls:!1,videoPreviewDurationMs:15E3},yNH={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.T("web_shorts_imp_fullwidth_killswitch")};var qD=null,LQJ={};var BWM="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(" "),IE={},xps=(IE.FEwhat_to_watch="home",IE.FEhashtag="hashtag",IE.FEtrending="trending",IE.FEhistory="history",IE.SPunlimited="premium",IE.FEmemberships_and_purchases="paid_memberships",IE.SPredeem_code="redeem",IE.SPverify_location="locate",IE.SPminor_moment="minor_moment",
IE.FEmini_app_container="mini_app",IE.FEnews_destination="news",IE.SPopen_in_app="open_in_app",IE.FEexplore="explore",IE.FEsubscriptions="subscriptions",IE.FEsfv_audio_pivot="sfv_audio_pivot",IE.FEplaylist_aggregation="playlist_aggregation",IE);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");_.Hw("init");var wPZ=function(){},keP=_.LL(function(q){var w=q.data;
var u=q.inlineMetadata;var y=q.aspectRatio;var e=q.scrimStyle;var t=q.className;var X=q.useDefaultStyle;var G=new wPZ,n=_.T("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",N=_.oR(function(){return(X==null?0:X())?n==="SHORTS_LOCKUP_STYLE_SLIM":w().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"x5GdUe"),Q=_.oR(function(){return _.$C(u)||N()||!1},void 0,"pcPnBf"),I=function(){return(e==null?void 0:e())!==void 0?e==null?void 0:e():1};
q=_.Bm(function(l){G&&(G.hostElement=l,J())});
_.k$(q,{visibilityCallback:function(l){var S=w().onFirstVisible;l&&S&&_.bn(S)},
showOption:{calledOnce:!0,state:"visible"}});t=_.HR("shortsLockupViewModelHost",t);var U=_.Bm(),d={};d=_.HR(function(){return N(),"shortsLockupViewModelHostThumbnailContainer"},(d.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.$C(y)===1},d.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.$C(y)===2},d.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!N()},d.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.T("web_shorts_2_by_3_lockups_study")&&!_.T("desktop_search_enable_two_by_three_shorts_aspect_ratio")},d));
var V,J=function(){if(G){var l;(l=V)==null||yb(l);var S;G.hostElement&&((S=G.data)==null?0:S.inlinePlayerData)&&(V=cC({mediaRenderer:G,lockupElement:G.hostElement,thumbnailElement:U.value,videoPreviewOpts:yNH}))}};
_.DG(function(){G&&(G.data=w(),J())});
var a=_.oR(function(){return w().thumbnail},void 0,"FXJKOd"),b=_.oR(function(){return w().badge},void 0,"RHSDwe"),g=_.oR(function(){return w().onTap},void 0,"twXQme");
return _.W("ytm-shorts-lockup-view-model",{el:q,class:t},_.W(_.GS,null,_.W(_.Mq,{command:g,className:_.HR("shortsLockupViewModelHostEndpoint","reel-item-endpoint",""),ariaHidden:function(){return!Q()},
tabIndex:function(){return Q()?0:-1}},_.W("div",{el:U,
class:d},_.W(_.r,{cond:a,then:function(){return _.W(_.ln,{data:function(){return a()},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.W(_.r,{cond:Q,
then:function(){return _.W(uw3,{data:w,scrimStyle:I,useDefaultStyle:X})}}),_.W(_.OF,{data:b},{badgeViewModel:function(l){return _.W(_.hi,{data:l.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.W(_.r,{cond:function(){return Q()&&w().menuOnTap},
then:function(){return _.W(yuc,{data:w,inlineMetadata:!0})}}),_.W(_.r,{cond:function(){return!Q()},
then:function(){return _.W(eET,{data:w,useDefaultStyle:X})}})))},"Wa"),uw3=_.LL(function(q){var w=q.data;
var u=q.scrimStyle;var y=q.useDefaultStyle;var e=_.T("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",t=y&&_.T("web_hide_primary_text_for_pivot_panel"),X=_.oR(function(){return(y==null?0:y())?e==="SHORTS_LOCKUP_STYLE_SLIM":w().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"qtqqA");
q={};q=_.HR("shortsLockupViewModelHostInlineMetadata",(q.shortsLockupViewModelHostMetadataRounded=function(){return!X()},q.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(u==null?void 0:u())===3&&!_.T("enable_shorts_lockup_new_scrim")},q.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(u==null?void 0:u())===3&&_.T("enable_shorts_lockup_new_scrim")},q.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(u==null?void 0:u())===2||(u==null?void 0:
u())===4},q.shortsLockupViewModelHostShowOverPlayer=function(){return!0},q),"image-overlay-text");
var G={};return _.W("div",{class:q},_.W("h3",{class:_.HR("shortsLockupViewModelHostMetadataTitle",(G.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(u==null?void 0:u())===4},G)),
"aria-label":function(){return w().accessibilityText}},_.W(_.r,{cond:function(){var n;
return!((n=w().overlayMetadata)==null||!n.primaryText)&&!t},
then:function(){return _.W(_.Lr,{text:function(){var n;return(n=w().overlayMetadata)==null?void 0:n.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.W(_.r,{cond:function(){var n;
return(n=w().overlayMetadata)==null?void 0:n.secondaryText},
then:function(){return _.W(tI$,{data:w,scrimStyle:u,className:void 0})}}))},"Xa"),eET=_.LL(function(q){var w=q.data;
var u=q.useDefaultStyle;var y=_.T("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",e=_.oR(function(){return(u==null?0:u())?y==="SHORTS_LOCKUP_STYLE_SLIM":w().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"VQCGke");
q=_.HR(function(){return e()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var t,X=_.QS(function(){var n;(n=t)==null||n.click();return!1}),G={};
return _.W("div",{class:q,"on:click":X},_.W("h3",{class:_.HR("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(G.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var n,N;return!((n=w().overlayMetadata)==null?0:(N=n.primaryText)==null?0:N.content)},G)),
"aria-label":function(){return w().accessibilityText}},_.W(_.Mq,{ref:function(n){return void(t=n)},
command:function(){return w().onTap},
className:_.HR("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var n,N;return(n=w().overlayMetadata)==null?void 0:(N=n.primaryText)==null?void 0:N.content}},_.W(_.r,{cond:function(){return!!w().overlayMetadata},
then:function(){return _.W(_.Lr,{text:function(){var n;return(n=w().overlayMetadata)==null?void 0:n.primaryText},
noEndpoints:!0,noStyleRuns:!0})}}))),_.W(_.r,{cond:function(){var n;
return(n=w().overlayMetadata)==null?void 0:n.secondaryText},
then:function(){return _.W(tI$,{data:w,className:"shortsLockupViewModelHostOutsideMetadataSubhead"})}}),_.W(_.r,{cond:function(){return w().menuOnTap},
then:function(){return _.W(yuc,{data:w,inlineMetadata:!1})}}))},"Ya"),tI$=_.LL(function(q){var w=q.data;
var u=q.scrimStyle;q=q.className;var y={};return _.W("div",{class:_.HR((y.shortsLockupViewModelHostMetadataSubhead=function(){return(u==null?void 0:u())!==4},y.shortsLockupViewModelHostMetadataSubheadNew=_.T("enable_shorts_lockup_new_scrim"),y.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(u==null?void 0:u())===4},y),q),
"aria-hidden":"true"},_.W(_.Lr,{text:function(){var e;return(e=w().overlayMetadata)==null?void 0:e.secondaryText},
noStyleRuns:!0}))},"Za"),yuc=_.LL(function(q){var w=q.data;
var u=q.inlineMetadata;q={};q=_.HR((q.shortsLockupViewModelHostInlineMetadataMenu=function(){return u()},q.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!u()},q.shortsLockupViewModelHostShowOverPlayer=function(){return!0},q),"image-overlay-text");
return _.W("div",{class:q},_.W(Kr,{data:function(){return{style:u()?"overlay":"mono",accessibilityLabel:w().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(y){y.preventDefault();y.stopPropagation();var e=_.$B({elementsCommand:w().menuOnTap,forceNewState:!0});if(e==null?0:e.onclick)e.onclick(y)}}},
iconName:"MORE_VERT"}))},"$a");var kqf=_.UF({badgeViewModel:B8M}),uq7=function(){},PTP=_.N9(Xgl),XPc=_.LL(function(q){var w=q.data;
var u=q.inlineMetadata;var y=q.aspectRatio;var e=q.scrimStyle;var t=q.className;var X=q.useDefaultStyle;q=_.oR(function(){var n=w().entityId;return n?n.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"FWALZc");
var G=_.T("web_shorts_lockup_view_model_sink")?keP:PTP;return _.W("ytm-shorts-lockup-view-model-v2",{class:_.HR("shortsLockupViewModelHost",t)},_.W(_.UhF,{contentId:q,aspectRatio:function(){return(y==null?void 0:y())===1?1:(y==null?void 0:y())===2?2:4}},function(){return _.W(G,{data:w,
inlineMetadata:u,aspectRatio:y,scrimStyle:e,className:t,useDefaultStyle:X})}))},"ab");
_.t2(Xgl);_.t2(etJ);_.t2(PJf);_.t2(F9H);_.t2(tJu);_.q9(XPc,"ytm-shorts-lockup-view-model-v2",{props:{data:_.xB,inlineMetadata:_.xB,aspectRatio:_.xB,scrimStyle:_.xB,className:_.xB,useDefaultStyle:_.xB}});var FQG=16/9*210,ie=function(){var q=_.Y.apply(this,arguments)||this;q.isExpandableContent=!1;q.hideShelfHeader=!1;q.engagementPanel=!1;q.buttonClasses=["arrow"];q.isSearch=!1;q.disableScrollEventListener=!1;q.containsLockup=!1;q.overrideArrowPositionForProductCard=!1;q.overrideArrowPositionForShoppingItemCard=!1;q.overrideArrowPositionForReelItems=!1;q.overrideArrowPositionForGridMovie=!1;q.overrideArrowPositionToCenter=!1;q.isSearchPostShelf=!1;q.overrideArrowPositionForMixedShelf=!1;q.overrideArrowPositionForMixedShelfShortsOnly=
!1;q.hasBigThumbsReelItems=!1;q.shouldUseMixedListHeight=!1;q.shouldUseShortsListHeight=!1;q.gridVideoWidth=0;q.isSearchVodShelf=!1;q.disableWheelScroll=!1;q.sizing="COMPACT";q.shortsLockupAspectRatio=0;return q};
_.O(ie,_.Y);_.k=ie.prototype;
_.k.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]]"}}}}};
_.k.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.T("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.k.computeInitialCountNumber=function(q){if(!q)return 6;var w=q.items.some(function(t){return!!t.topicRecommendationsChipRenderer}),u=q.items.some(function(t){return!!t.displayAdRenderer}),y=this.computeShouldListItemsHaveEqualHeight(q),e=q.items.some(function(t){return!!t.gridPlaylistRenderer});
q=q.items.some(function(t){return!!t.shoppingItemCardViewModel});
return w?9:u?8:e||y?10:q?7:6};
_.k.computeContainsPost=function(q){return!!q&&!!q.items&&q.items.some(function(w){return!!w.postRenderer})};
_.k.computeContainsLockup=function(){if(_.T("web_horizontal_list_lockup_arrow_killswitch"))return!1;var q,w;return(q=this.data)==null?void 0:(w=q.items)==null?void 0:w.some(function(u){return!!u.lockupViewModel})};
_.k.maybeUpdateLockupAspectRatio=function(){var q,w;if(this.computeContainsLockup()&&((q=this.data)==null?0:(w=q.items)==null?0:w.length)){var u;q=kec((u=this.data.items[0].lockupViewModel)==null?void 0:u.contentType,this.data.force16By9ThumbnailAspectRatio);u=oUM(q);u=this.computeLockupWidth()/u;_.Pj(this.hostElement,{"--yt-horizontal-list-content-height":u+"px"})}};
_.k.computeOverrideArrowPositionForProductCard=function(q){if(this.isExpandableContent)return!1;var w;return!!(q==null?0:(w=q.items)==null?0:w.some(function(u){return!!u.verticalProductCardRenderer}))};
_.k.computeOverrideArrowPositionForShoppingItemCard=function(q){var w;return!!(q==null?0:(w=q.items)==null?0:w.some(function(u){return!!u.shoppingItemCardViewModel}))};
_.k.computeOverrideArrowPositionForReelItemRenderer=function(q){return this.containsReelItemRenderer(q)};
_.k.computeHasBigThumbsReelItems=function(q,w){return q&&this.containsReelItemRenderer(w)};
_.k.computeShouldListItemsHaveEqualHeight=function(q){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(q==null?void 0:q.itemSizeConstraint)};
_.k.computeShouldListItemsHaveShortsHeight=function(q){return this.computeShouldListItemsHaveEqualHeight(q)&&!this.containsGridVideoRenderer(q)};
_.k.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.k.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.k.containsReelItemRenderer=function(q){var w;return!!(q==null?0:(w=q.items)==null?0:w.some(function(u){return!(!u.reelItemRenderer&&!u.shortsLockupViewModel)}))};
_.k.containsGridVideoRenderer=function(q){var w;return!!(q==null?0:(w=q.items)==null?0:w.some(function(u){return!!u.gridVideoRenderer||!!u.lockupViewModel}))};
_.k.computeContainsGridMovieRenderer=function(q){var w;return!!(q==null?0:(w=q.items)==null?0:w.some(function(u){return!!u.gridMovieRenderer}))};
_.k.computeOverrideArrowPositionToCenter=function(q){return this.computeIsSearchPostShelf(q)};
_.k.computeIsSearchPostShelf=function(q){var w;return!!(q==null?0:(w=q.items)==null?0:w.some(function(u){var y,e;return((e=(y=u.postRenderer)==null?void 0:y.surface)!=null?e:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.k.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(q){var w;return!!(q==null?0:(w=q.items)==null?0:w.some(function(u){var y,e,t;return((t=(y=u.backgroundPromoRenderer)==null?void 0:(e=y.style)==null?void 0:e.value)!=null?t:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.k.computeIsSearchVodShelf=function(q,w){return q&&this.containsGridVideoRenderer(w)};
_.k.computeDisableWheelScroll=function(q,w){return this.computeIsSearchVodShelf(q,w)};
_.k.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.k.computeShortsLockupAspectRatio=function(q){return q&&_.T("web_shorts_2_by_3_lockups_no_search")&&!_.T("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.k.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Pj(this.hostElement,{"--ytd-reel-item-thumbnail-height":FQG+"px"})};
ie.prototype.dataChanged=ie.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ie.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],ie.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.MR.YtdHorizontalListBehavior),_.h("design:type",Object)],ie.prototype,"ytdHorizontalListBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ie.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",Object)],ie.prototype,"isExpandableContent",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ie.prototype,"hideShelfHeader",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ie.prototype,"engagementPanel",void 0);_.c([_.v(),_.h("design:type",Array)],ie.prototype,"buttonClasses",void 0);_.c([_.v(),_.h("design:type",Object)],ie.prototype,"isSearch",void 0);
_.c([_.v(),_.h("design:type",Object)],ie.prototype,"disableScrollEventListener",void 0);_.c([_.v({computed:"computeInitialCountNumber(data)"}),_.h("design:type",Number)],ie.prototype,"initialCount",void 0);_.c([_.v({computed:"computeContainsPost(data)"}),_.h("design:type",Boolean)],ie.prototype,"supportComponentResize",void 0);_.c([_.v({computed:"computeContainsPost(data)"}),_.h("design:type",Boolean)],ie.prototype,"containsPost",void 0);
_.c([_.v({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.h("design:type",Object)],ie.prototype,"containsLockup",void 0);_.c([_.v({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],ie.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.c([_.v({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.h("design:type",Object)],ie.prototype,"overrideArrowPositionForProductCard",void 0);_.c([_.v({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.h("design:type",Object)],ie.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.c([_.v({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.h("design:type",Object)],ie.prototype,"overrideArrowPositionForReelItems",void 0);_.c([_.v({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.h("design:type",Object)],ie.prototype,"overrideArrowPositionForGridMovie",void 0);
_.c([_.v({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.h("design:type",Object)],ie.prototype,"overrideArrowPositionToCenter",void 0);_.c([_.v({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.h("design:type",Object)],ie.prototype,"isSearchPostShelf",void 0);_.c([_.v({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.h("design:type",Object)],ie.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.c([_.v({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.h("design:type",Object)],ie.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.c([_.v({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.h("design:type",Object)],ie.prototype,"hasBigThumbsReelItems",void 0);
_.c([_.v({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.h("design:type",Object)],ie.prototype,"shouldUseMixedListHeight",void 0);_.c([_.v({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.h("design:type",Object)],ie.prototype,"shouldUseShortsListHeight",void 0);_.c([_.v({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.h("design:type",Object)],ie.prototype,"gridVideoWidth",void 0);
_.c([_.v({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.h("design:type",Object)],ie.prototype,"isSearchVodShelf",void 0);_.c([_.v({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.h("design:type",Object)],ie.prototype,"disableWheelScroll",void 0);_.c([_.v({computed:"computeSizing(isSearch)"}),_.h("design:type",Object)],ie.prototype,"sizing",void 0);
_.c([_.v({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.h("design:type",Object)],ie.prototype,"shortsLockupAspectRatio",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ie.prototype,"dataChanged",null);
_.R(ie,"yt-horizontal-list-renderer",function(){if(W7r===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);W7r=q}q=W7r;return q},{mode:1});var GeT;var nbP=[10,12,14,16,18,20,24,28,32,36],H_r=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],Up=function(){var q=_.Y.apply(this,arguments)||this;q.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";q.hideOverflow=!1;q.useRoboto=!1;q.fontClass="";q.overflown=!1;q.actionMap={"yt-window-resized":"resize"};return q};
_.O(Up,_.Y);_.k=Up.prototype;
_.k.attached=function(){var q=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();_.KJ(this,function(){q.resize()});
if(!_.kf){var w,u,y;(w=document)==null||(u=w.fonts)==null||(y=u.ready)==null||y.then(function(){q.resize()})}};
_.k.dataChanged=function(){this.resize()};
_.k.guideIsExpandedChanged=function(){this.resize()};
_.k.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 q=this.getMaxNumLines(),w=this.getMinFont(),u=this.getMaxFont(),y=this.useRoboto?nbP:H_r;for(y=y.filter(function(t){return t<=u&&t>=w});y.length>1;){var e=Math.floor(y.length/2);
this.updateFontSize(y[e]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=q)y=y.slice(e,y.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>q)y=y.slice(0,e);else break}this.updateFontSize(y[y.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(q)}};
_.k.handleOverflow=function(q){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>q&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",q.toString()))};
_.k.updateFontSize=function(q){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+q;this.textNode.classList.add(this.fontClass)};
_.k.getMaxFont=function(){var q=this.useRoboto?nbP:H_r;q=q[q.length-1];return this.maxFontSize&&this.maxFontSize<=q?this.maxFontSize:q};
_.k.getMinFont=function(){var q=(this.useRoboto?nbP:H_r)[0];return this.minFontSize&&this.minFontSize>=q?this.minFontSize:q};
_.k.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.k.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.k.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.lA(this.text).split("\n").length-1:Infinity};
_.k.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()}};
Up.prototype.guideIsExpandedChanged=Up.prototype.guideIsExpandedChanged;Up.prototype.dataChanged=Up.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Up.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],Up.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Up.prototype,"actionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Up.prototype,"text",void 0);
_.c([_.v(),_.h("design:type",String)],Up.prototype,"fontFamily",void 0);_.c([_.v(),_.h("design:type",Number)],Up.prototype,"maxWidth",void 0);_.c([_.v(),_.h("design:type",Number)],Up.prototype,"maxHeight",void 0);_.c([_.v(),_.h("design:type",Number)],Up.prototype,"maxFontSize",void 0);_.c([_.v(),_.h("design:type",Number)],Up.prototype,"minFontSize",void 0);_.c([_.v(),_.h("design:type",Number)],Up.prototype,"maxLines",void 0);_.c([_.v(),_.h("design:type",Object)],Up.prototype,"hideOverflow",void 0);
_.c([_.v({selector:_.FZ6}),_.h("design:type",Boolean)],Up.prototype,"guideIsExpanded",void 0);_.c([_.Wj("#container"),_.h("design:type",HTMLElement)],Up.prototype,"containerNode",void 0);_.c([_.Wj("#text"),_.h("design:type",HTMLElement)],Up.prototype,"textNode",void 0);_.c([_.I9("text"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Up.prototype,"dataChanged",null);
_.c([_.I9("guideIsExpanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Up.prototype,"guideIsExpandedChanged",null);Up=_.c([_.E({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],Up);
_.R(Up,"yt-dynamic-sizing-formatted-string",function(){if(GeT!==void 0)return GeT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return GeT=q},{mode:1});var WQZ;_.sWG=function(q){_.qM.call(this,q)};
_.O(_.sWG,_.qM);var NWa=function(q){_.qM.call(this,q)};
_.O(NWa,_.sWG);var TE=function(){return _.Y.apply(this,arguments)||this};
_.O(TE,_.Y);TE.prototype.onTapSuspendedChannel=function(){var q;if((q=this.data)!=null&&q.serviceEndpoint){var w,u;(q=(u=_.C((w=this.data)==null?void 0:w.serviceEndpoint,_.jw))==null?void 0:u.url)?_.Zu(q,void 0,void 0,window.top):(w=new NWa("Did not handle suspended account tap. No appealUrl."),_.vm(w))}else w=new NWa("Did not handle suspended account tap. No serviceEndpoint."),_.vm(w)};
TE.prototype.onTap=function(){var q=this,w=_.Qz(),u,y=(u=_.N2(w,{veType:7116}))!=null?u:void 0;_.gm(w,{visualElement:y});_.ai();this.saveRoleText();var e;if((e=this.data)==null?0:e.youtubeSuspended)this.onTapSuspendedChannel();else{var t=!1,X,G;(w=(G=_.C((X=this.data)==null?void 0:X.serviceEndpoint,_.o9F))==null?void 0:G.supportedTokens)&&w.forEach(function(n){if(n.accountSigninToken)if(t=!0,q.onAccountItemTap)q.onAccountItemTap(n.accountSigninToken.signinUrl);else _.Zu(n.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!t){if(X=this.get("serviceEndpoint",this.data))t=!0,this.ytComponentBehavior.resolveCommand(X);t||_.bD(new NWa("Did not handle account switch tap. No token."))}}};
TE.prototype.saveRoleText=function(){if(this.data){var q=this.data,w=q.channelDelegationRole;if(w){var u,y=(u=_.C(q==null?void 0:q.serviceEndpoint,_.o9F))==null?void 0:u.supportedTokens;if(!y){var e,t,X,G;y=(e=_.C(q==null?void 0:q.serviceEndpoint,_.Ou))==null?void 0:(t=e.popup)==null?void 0:(X=t.confirmDialogRenderer)==null?void 0:(G=X.confirmButton)==null?void 0:G.buttonRenderer;var n;y=(n=_.C(y==null?void 0:y.command,_.Ww))==null?void 0:n.commands;if(!y)return;var N;y=(N=_.C(y[1],_.o9F))==null?
void 0:N.supportedTokens}if(y){n=void 0;N=_.P(y);for(y=N.next();!y.done;y=N.next())if(y=y.value,y.datasyncIdToken){n=y.datasyncIdToken.datasyncIdToken;break}if(n){var Q;a:{if(_.ja6()&&(N=_.HN4(n+"::pom"))){N=new FS(N);break a}N=void 0}(Q=N)==null||Q.set("role_text",w);if((t8l?t8l:window.location).href.indexOf("studio")!==-1&&(Q=l1J())){N=Q.src?(new URL(Q.src)).origin:"*";var I;(I=Q.contentWindow)==null||I.postMessage({action:"save_pom_role",datasyncId:n,roleText:w},N)}}}}}};
_.x$.Object.defineProperties(TE.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var q,w,u=(q=this.data)==null?void 0:(w=q.accountPhoto)==null?void 0:w.thumbnails;return u&&u.length>0&&(u[0].height===36||u[0].height===48)?u[0].height:40}}});
TE.prototype.onTap=TE.prototype.onTap;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],TE.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],TE.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!1}),_.h("design:type",Function)],TE.prototype,"onAccountItemTap",void 0);
_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],TE.prototype,"enableRingForActiveAccount",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],TE.prototype,"thumbnailSize",null);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],TE.prototype,"onTap",null);TE=_.c([_.E({is:"ytd-account-item-renderer",disableElementRegistration:!0})],TE);
_.R(TE,"ytd-account-item-renderer",function(){if(WQZ!==void 0)return WQZ;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return WQZ=q},{mode:1});var QW3;var C0=function(){return _.Y.apply(this,arguments)||this};
_.O(C0,_.Y);C0.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.tG().resolve(_.PG).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],C0.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],C0.prototype,"data",void 0);C0=_.c([_.E({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],C0);
_.R(C0,"ytd-identity-chip-renderer",function(){if(QW3!==void 0)return QW3;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return QW3=q},{mode:1});var IqF;var i_G;var ruT;var Upk;var dT=function(){var q=_.Y.apply(this,arguments)||this;q.richItemMinWidth=_.Fc("wn_grid_min_item_width",310);q.isShorts=!1;q.isWatchNext=!1;q.isExploreHub=!1;return q};
_.O(dT,_.Y);_.x$.Object.defineProperties(dT.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var q=[],w=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Pj(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var u;if(((u=this.data)==null?0:u.rows)&&w)for(w*=this.data.rows,u=0;u<w;u++)q.push({});return q}}});
_.c([_.D(_.fU),_.h("design:type",Object)],dT.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],dT.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],dT.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.aO,value:3}),_.h("design:type",Number)],dT.prototype,"itemsPerRow",void 0);_.c([_.v({selector:_.Xiz,value:6}),_.h("design:type",Number)],dT.prototype,"slimItemsPerRow",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Number)],dT.prototype,"richItemMinWidth",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.za}),_.h("design:type",Boolean)],dT.prototype,"miniMode",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dT.prototype,"isShorts",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dT.prototype,"isWatchNext",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dT.prototype,"isExploreHub",void 0);
_.c([_.Z("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.h("design:type",Array),_.h("design:paramtypes",[])],dT.prototype,"cardItems",null);dT=_.c([_.E({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],dT);
_.TWT=_.eD()(dT,"ytd-ghost-grid-renderer",function(){if(Upk===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);Upk=q}q=Upk;return q},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.q9(_.LL(function(q){var w=_.lf(q,{numberOfComments:3}).numberOfComments,u=_.lf(q,{isInitialLoad:!1}).isInitialLoad,y=_.lf(q,{engagementPanel:!1}).engagementPanel,e=function(){return Math.min(Number(w==null?void 0:w())||20,20)};
return _.W("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.W(_.r,{cond:function(){return!(y==null?0:y())&&(u==null?void 0:u())},
then:function(){return _.W("div",{class:"ytGhostCommentsComments"},_.W("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.W("div",{class:_.HR("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.W("div",{class:_.HR("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.W("div",{class:"ytGhostCommentsGhostCard"},_.W("div",{class:"ytGhostCommentsAvatar"},_.W("div",{class:"ytGhostCommentsCircle"})),_.W("div",{class:"ytGhostCommentsComments"},_.W("div",{class:"ytGhostCommentsMeta"},
_.W("div",{class:_.HR("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.W("div",{class:_.HR("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.W("div",{class:"ytGhostCommentsComments"},_.W(_.mL,{each:function(){return Array((e==null?void 0:e())||3)}},function(){return _.W("div",{class:"ytGhostCommentsGhostCard"},_.W("div",{class:"ytGhostCommentsAvatar"},_.W("div",{class:"ytGhostCommentsCircle"})),_.W("div",{class:"ytGhostCommentsHost"},_.W("div",{class:"ytGhostCommentsMeta"},
_.W("div",{class:_.HR("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.W("div",{class:_.HR("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.W("div",{class:_.HR("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.W("div",{class:"ytGhostCommentsGhostLikeDislike"},_.W("div",{class:_.HR("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.W("div",{class:_.HR("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"bb"),"yt-ghost-comments",{props:{numberOfComments:_.pK,
isInitialLoad:_.pK,engagementPanel:_.pK}});_.JE("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var Op=function(){var q=_.Y.apply(this,arguments)||this;q.isOverridable=!1;q.spinnerActive=!1;q.showButton=!1;q.isCommentsSection=!1;q.engagementPanel=!0;q.isShortsGrid=!1;q.isShortsPage=!1;q.isWatchPage=!1;q.ghostCardExperimentEnabled=_.T("show_ghost_comments_shorts_watch")||_.T("show_ghost_comments_desktop_watch");q.originalShowButton=!1;q.endOfList=!1;return q};
_.O(Op,_.Y);_.k=Op.prototype;_.k.resetIntersectionObserver=function(){var q;(q=this.observer)==null||q.disconnect();this.observer=void 0};
_.k.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var q,w;((q=this.data)==null?void 0:q.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((w=this.data)==null?0:w.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.k.initializeIntersectionObserver=function(){var q=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(w){w=_.P(w);for(var u=w.next();!u.done;u=w.next())u.value.isIntersecting&&(q.triggerContinuation(),q.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.k.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]]"}}}}}};
_.k.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var q;((q=this.data)==null?0:q.continuationEndpoint)&&(q=_.C(this.data.continuationEndpoint,_.ZK))&&this.ytdReduxBehavior.dispatch(_.tr({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:q}}))};
_.k.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.k.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.k.onServiceRequestCompleted=function(q,w){if(!_.T("kevlar_hide_spinner_on_empty_continuation_killswitch")){var u;(u=w.actions)!=null&&u.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.k.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.k.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.k.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.k.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var q=3;if(this.engagementPanel){var w,u,y;q=Math.floor(((((w=this.hostElement)==null?void 0:(u=w.parentElement)==null?void 0:(y=u.parentElement)==null?void 0:y.scrollHeight)||108)-108)/108);q=this.isInitialLoad?Math.max(q,3):3}w=[].concat(_.Cm(this.hostElement.querySelectorAll("yt-ghost-comments")));w=_.P(w);for(u=w.next();!u.done;u=w.next())u=u.value,u.numberOfComments=q,u.isInitialLoad=this.isInitialLoad,u.engagementPanel=
this.engagementPanel}};
_.k.detached=function(){this.resetIntersectionObserver()};
_.x$.Object.defineProperties(Op.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.T("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.T("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
Op.prototype.numberOfGhostCommentsChanged=Op.prototype.numberOfGhostCommentsChanged;Op.prototype.continuationTriggerOffsetChanged=Op.prototype.continuationTriggerOffsetChanged;Op.prototype.showButtonChanged=Op.prototype.showButtonChanged;Op.prototype.onYtServiceRequestCompletedForButtonRenderer=Op.prototype.onYtServiceRequestCompletedForButtonRenderer;Op.prototype.onServiceRequestCompleted=Op.prototype.onServiceRequestCompleted;Op.prototype.onYtServiceRequestSentForButtonRenderer=Op.prototype.onYtServiceRequestSentForButtonRenderer;
Op.prototype.observeData=Op.prototype.observeData;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Op.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Op.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.Jm.YtVisibilityBehavior),_.h("design:type",Object)],Op.prototype,"ytVisibilityBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Op.prototype,"ytComponentBehavior",void 0);
_.c([_.D(_.fU),_.h("design:type",Object)],Op.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Op.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],Op.prototype,"isOverridable",void 0);_.c([_.v(),_.h("design:type",Object)],Op.prototype,"spinnerActive",void 0);_.c([_.v(),_.h("design:type",Object)],Op.prototype,"showButton",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Op.prototype,"isCommentsSection",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Op.prototype,"engagementPanel",void 0);_.c([_.v(),_.h("design:type",Object)],Op.prototype,"isShortsGrid",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.nPH}),_.h("design:type",Object)],Op.prototype,"isShortsPage",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.ZV}),_.h("design:type",Object)],Op.prototype,"isWatchPage",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Op.prototype,"ghostCardExperimentEnabled",void 0);
_.c([_.v(),_.h("design:type",Number)],Op.prototype,"continuationTriggerOffset",void 0);_.c([_.v(),_.h("design:type",Object)],Op.prototype,"endOfList",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Op.prototype,"isInitialLoad",void 0);_.c([_.Wj("ytd-button-renderer"),_.h("design:type",_.Eh)],Op.prototype,"buttonRenderer",void 0);_.c([_.v(),_.h("design:type",Object)],Op.prototype,"buttonOverrides",void 0);
_.c([_.v(),_.Z("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.h("design:type",Object),_.h("design:paramtypes",[])],Op.prototype,"isShortsCommentsSection",null);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Op.prototype,"observeData",null);
_.c([_.Gm("yt-service-request-sent-button-renderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Op.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],Op.prototype,"onServiceRequestCompleted",null);
_.c([_.Gm("yt-service-request-completed-button-renderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Op.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.c([_.I9("showButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Op.prototype,"showButtonChanged",null);
_.c([_.I9("continuationTriggerOffset"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Op.prototype,"continuationTriggerOffsetChanged",null);_.c([_.nL("isInitialLoad","engagementPanel"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Op.prototype,"numberOfGhostCommentsChanged",null);Op=_.c([_.E({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],Op);
_.R(Op,"ytd-continuation-item-renderer",function(){if(ruT!==void 0)return ruT;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return ruT=q},{mode:1});var CTX;var oE=function(){var q=_.Y.apply(this,arguments)||this;q.downloadProgress=0;q.transferState="TRANSFER_STATE_UNKNOWN";q.downloadState="DOWNLOAD_STATE_UNKNOWN";q.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";q.offlineVideoPolicyExpirationTimestamp=0;q.downloadedVideoPlaybackPosition=0;return q};
_.O(oE,_.Y);oE.prototype.dataChanged=function(){var q;this.videoData=_.C((q=this.data)==null?void 0:q.renderer,eSF);this.transferStateChanged()};
oE.prototype.downloadProgressChanged=function(){if(this.entityInfo){var q=Object.assign({},this.videoData),w=Xhu(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),u=w.publishedTimeText,y=w.badges;q.shortViewCountText=w.shortViewCountText;q.publishedTimeText=u;q.badges=y;this.set("videoData",q)}};
oE.prototype.transferStateChanged=function(){if(this.entityInfo){var q=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",w=_.Ta(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!U1(this.entityInfo.policyEntity),u=Object.assign({},this.videoData),y=Xhu(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),e=y.publishedTimeText,t=y.badges;u.shortViewCountText=
y.shortViewCountText;u.publishedTimeText=e;u.badges=t;u.isDisabled=w;u.isWatched=this.downloadedVideoPlaybackPosition>0;u.navigationEndpoint=w?void 0:v2o(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var X;q&&((X=this.videoData)==null?0:X.videoId)&&!_.T("dl_resume_click_killswitch")&&(u.isDisabled=!1,u.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});u.thumbnailOverlays=t$y(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",u)}};
oE.prototype.transferStateChanged=oE.prototype.transferStateChanged;oE.prototype.downloadProgressChanged=oE.prototype.downloadProgressChanged;oE.prototype.dataChanged=oE.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],oE.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],oE.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],oE.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",Object)],oE.prototype,"videoData",void 0);_.c([_.v({selector:vQ,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],oE.prototype,"downloadProgress",void 0);_.c([_.v(),_.h("design:type",Number)],oE.prototype,"relativeDateReference",void 0);_.c([_.v({selector:_.pa,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],oE.prototype,"transferState",void 0);
_.c([_.v({selector:zIM,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],oE.prototype,"downloadState",void 0);_.c([_.v({selector:IEf,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],oE.prototype,"offlinePolicyAction",void 0);_.c([_.v({selector:iGM,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],oE.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.c([_.v({selector:bA,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],oE.prototype,"downloadedVideoPlaybackPosition",void 0);_.c([_.v({selector:UYl,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],oE.prototype,"entityInfo",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],oE.prototype,"isDownloading",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oE.prototype,"dataChanged",null);
_.c([_.I9("downloadProgress"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oE.prototype,"downloadProgressChanged",null);_.c([_.I9("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oE.prototype,"transferStateChanged",null);
oE=_.c([_.E({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],oE);
_.R(oE,"ytd-downloaded-video-grid-video-renderer",function(){if(CTX!==void 0)return CTX;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return CTX=q},{mode:_.kB("kevlar_poly_si_batch_j025")?1:2});var dpF;var Vh=function(){};
Vh.prototype.resolve=function(q,w){var u=this;return _.F(function(y){return _.H(y,u.resolveCommand(q,w),0)})};var O_x,f0;O_x=EW4(function(q){return q.targetId},{shouldPersist:!1});
f0=O_x.updateData;_.obP=O_x.useUpdatableData;var VIF,fqX;VIF=EW4(function(q){return q.targetId});
fqX=VIF.updateData;_.mpF=VIF.useUpdatableData;var Auj=Gqf.bind(null,f0),JuP=Gqf.bind(null,fqX);(function(q,w,u){var y=_.C(u==null?void 0:u.updatedRenderer,_.AL6);return y?q({targetId:w},function(){return y}):!1}).bind(null,f0);var mY=function(){};
_.O(mY,Vh);mY.prototype.resolveCommand=function(q){var w;return _.F(function(u){w=_.C(q,_.Nv6);if(!w)return u.return();Auj(w.targetId,w);_.HI(u)})};var AR=function(){var q=_.Na.apply(this,arguments)||this;q.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return q};
_.O(AR,_.Na);_.k=AR.prototype;_.k.configureContinuationPathMap=function(){return{}};
_.k.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.k.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.k.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.k.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.k.handleAppendContinuationItemsAction=function(q){var w=_.C(q,_.P8X);if(this.data&&this.data.targetId&&w&&this.continuationPathMap&&w.targetId===this.data.targetId){var u=JB7(q);if((q=u&&this.continuationPathMap[u])&&u){u=this.get(q,this.data);var y;a:{for(y=0;y<u.length;y++){var e=u[y],t=void 0,X=!!_.C((t=_.C(e,SLF))==null?void 0:t.content,_.MFP);if(_.C(e,_.ec)||X)break a}y=u.length}q="data."+q;w.continuationItems?y===u.length-1?(this.pop(q),this.push.apply(this,[q].concat(_.Cm(w.continuationItems)))):
y===u.length?this.push.apply(this,[q].concat(_.Cm(w.continuationItems))):this.splice.apply(this,[q,y,1].concat(_.Cm(w.continuationItems))):this.splice(q,y,1);(_.T("web_enable_voting_animation")||_.T("enable_music_web_cairo_voting_animation"))&&_.t7(this.hostElement,"yt-append-continuation-items-action-finished");_.t7(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Y8(new _.fv("append continuation path does not exist",u))}};
_.k.handleReloadContinuationItemsCommand=function(q){var w=_.C(q,_.Nv6);if(this.data&&w){if(_.T("web_explore_hub")||_.T("web_client_explore_hub")||_.T("web_explore_hub_on_hover")||_.T("web_client_explore_hub_on_hover"))try{_.tG().resolve(mY).resolveCommand(q)}catch(t){}if(this.data.targetId&&this.continuationPathMap&&w.targetId===this.data.targetId&&(!_.T("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||w.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var u,y=
(u=w.slot)==null?void 0:u.replace("RELOAD_CONTINUATION_SLOT_","");u=(q=JB7(q)+"-"+(y==null?void 0:y.toLowerCase()))&&this.continuationPathMap[q];if(!u||!q||!y)_.Y8(new _.fv("reload continuation path does not exist",q));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(w)){if(w.replaceWithFirstItem){var e;this.set("data."+u,((e=w.continuationItems)==null?0:e.length)?w.continuationItems[0]:{})}else this.set("data."+u,w.continuationItems?w.continuationItems:
[]);this.continuationIsReloading=!1;_.t7(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.k.handleShowReloadUiCommand=function(q){q=_.C(q,T9X);var w;((w=this.data)==null?0:w.targetId)&&(q==null?0:q.targetId)&&q.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
AR.prototype.observeData=AR.prototype.observeData;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],AR.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],AR.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],AR.prototype,"data",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],AR.prototype,"continuationIsReloading",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AR.prototype,"observeData",null);AR=_.c([_.Q6()],AR);_.JR=[_.fK.YtComponentBehavior,_.hm.YtActionHandlerBehavior,AR.prototype];_.zE={};_.zE.YtNextContinuationBehavior=[_.gd.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",_.Fj(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Fj(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(q,w){q.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,w,{}):(q={locationRetrieved:function(u){this.makeNextContinuationRequest_(u,w,{})}.bind(this)},_.t7(this.hostElement,"yt-retrieve-location",q))},
makeNextContinuationRequest_:function(q,w,u){_.Z_("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();q=w(q);var y;this.canUseContextualNetworkManager_()&&(y=this.getNetworkManager());y||(y=_.tG().resolve(_.OP));w=_.E3.instance;if(_.Et("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&w){y=_.Ka([q.startsWith("/")?q.substr(1):q]);var e,t;u=_.Jb(w,{},y,u==null?void 0:(e=u.context)==null?void 0:(t=e.clickTracking)==null?void 0:t.clickTrackingParams).then(function(X){return{response:X}})}else u=
this.nextContinuation.usePost?y.postData(q,u):y.fetchData(q);
u.then(this.updateNextContinuationData_.bind(this,q));this.pendingContinuationRequest_=u;this.startListeningForNavigate_()},
updateNextContinuationData_:function(q,w){var u=this;_.Z_("ncl");this.pendingContinuationRequest_=void 0;if(w){var y={};this.nextContinuation&&(y=this.nextContinuation);if(w.response&&w.response.continuationContents&&w.response.continuationContents[y.continuationType]){q=w.response.continuationContents[y.continuationType];var e=y.header||"data.header",t=q[y.responseHeaderKey||"header"];t&&this.set(e,t);e=y.contentsArray||"data.contents";t=this.getContents_(q,y.responseContentsKey||"contents")||[];
this.pathExists_(e)?(t.unshift(e),this.push.apply(this,t)):this.set(e,t);t&&(ngl(_.Qz(),w.response,this.hostElement,function(X){_.Pw(u.hostElement,"yt-store-grafted-ve-action",[X])}),_.t7(this.hostElement,"yt-next-continuation-data-updated",{continuationData:w,
page:this,contentsArray:e}));this.set(y.continuationsArray||"data.continuations",q[y.responseContinuationsKey||"continuations"]||[])}else w.reload?_.Y8(new _.fv("Reloading from continuation is unsupported")):w.responseContext&&w.responseContext.errors||(delete w.xsrf_token,delete w.timing,delete w.endpoint,delete w.csn,w.responseContext&&delete w.responseContext.serviceTrackingParams,e={request:_.Bl(q,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(w).sort()},w.response&&(e.responseContentKeys=
Object.keys(w.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(e.continuationType=this.nextContinuation.continuationType.substr(0,256)),w=new _.fv("Malformed continuation",e),q.indexOf("/comment_service_ajax")==0?_.Y8(w):_.vm(w)),this.set(y.continuationsArray||"data.continuations",[])}else _.bD(new _.fv("Missing continuation response",q))},
getContents_:function(q,w){w=w.split(".");return _.db.getValueByKeys(q,w)},
pathExists_:function(q){var w=this;q=q.toString().split(".");for(var u=0;u<q.length;u++)if(w=w[q[u]],w===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var zEG;var aqT;var aE=function(){var q=_.Y.apply(this,arguments)||this;q.triggered_=!1;return q};
_.O(aE,_.Y);_.k=aE.prototype;_.k.attached=function(){this.maybeTriggerAutoload()};
_.k.detached=function(){this.hasBeenTriggered_=!1};
_.k.onPrescanVisible=function(){this.onShow()};
_.k.onShow=function(){this.showButton||this.trigger()};
_.k.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.t7(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.k.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.k.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.k.computeLabel_=function(q,w){return q===void 0?null:q.label||!w?q.label:this.showMoreText_};
_.k.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.k.getContinuationUrl=function(q){var w={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(w.itct=this.data.clickTrackingParams);return _.xw(q,w)};
_.k.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
aE.prototype.showButtonChanged_=aE.prototype.showButtonChanged_;aE.prototype.observeData_=aE.prototype.observeData_;_.c([_.D(_.Jm.YtVisibilityBehavior),_.h("design:type",Object)],aE.prototype,"ytVisibilityBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],aE.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],aE.prototype,"data",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],aE.prototype,"showButton",void 0);
_.c([_.v({value:!1}),_.h("design:type",Boolean)],aE.prototype,"showIcon",void 0);_.c([_.v({computed:"computeLabel_(data, showButton)"}),_.h("design:type",Object)],aE.prototype,"label",void 0);_.c([_.v({value:_.jN(_.ID("SHOW_MORE",void 0,"Show More"))}),_.h("design:type",Object)],aE.prototype,"showMoreText_",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],aE.prototype,"spinnerActive_",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],aE.prototype,"hasBeenTriggered_",void 0);
_.c([_.v({value:void 0}),_.h("design:type",String)],aE.prototype,"observeVisibleOption",void 0);_.c([_.v({value:void 0}),_.h("design:type",String)],aE.prototype,"observeHiddenOption",void 0);_.c([_.v({value:"observe_once"}),_.h("design:type",Object)],aE.prototype,"observePrescanOption",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],aE.prototype,"observeData_",null);
_.c([_.nL("showButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],aE.prototype,"showButtonChanged_",null);aE=_.c([_.JM({is:"yt-next-continuation",disableElementRegistration:!0})],aE);
_.R(aE,"yt-next-continuation",function(){if(aqT===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;zEG===void 0&&(zEG=document.createElement("template"));var y=zEG;u.call(w,y.content.cloneNode(!0),q.content.firstChild);aqT=q}q=aqT;return q},{mode:2});var DpG;var Z_6;var Dm=function(){return _.Y.apply(this,arguments)||this};
_.O(Dm,_.Y);Dm.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Dm.prototype,"data",void 0);Dm=_.c([_.JM({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],Dm);
_.R(Dm,"yt-music-pass-small-feature-info-renderer",function(){if(Z_6===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;DpG===void 0&&(DpG=document.createElement("template"));var y=DpG;u.call(w,y.content.cloneNode(!0),q.content.firstChild);Z_6=q}q=Z_6;return q},{mode:2});_.JE("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Zm=function(){var q=_.Y.apply(this,arguments)||this;q.isCollapsible=!1;q.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return q};
_.O(Zm,_.Y);_.k=Zm.prototype;_.k.computeIsCollapsible=function(q){return!!(((q==null?0:q.showMoreText)||(q==null?0:q.visibleRowCount))&&(q==null?0:q.isCollapsible))};
_.k.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"}}}};
_.k.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.k.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.k.onIronResize=function(){var q=this;_.bf(this,"updateGridInitItems",function(){q.maybeUpdateInitialItemsDisplayed()})};
_.k.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var q=this.getVisibleWidth();q!==0&&(q=Math.floor(q/214)*(this.data.visibleRowCount||2),q!==this.initialCount&&(this.initialCount=q,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.k.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.k.computeExpandVisible=function(q,w,u,y){return q&&w&&u&&!!y&&!!y.showMoreText};
_.k.computeShowMoreButton=function(q){return{text:q,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.k.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.k.initCollapsed=function(){var q=this;this.ytLazyListBehavior.canShowMore=!1;var w;(this.collapsed=!((w=this.data)==null||!w.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.KJ(this,function(){_.X4(q.hostElement,"yt-refit-popups-action")})};
_.k.fillRestIfNotCollapsible=function(){var q=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!q||this.ytLazyListBehavior.fillRemainingListItems()};
_.k.computeViewAllHidden=function(q,w){return q||!w.viewAllEndpoint};
Zm.prototype.fillRestIfNotCollapsible=Zm.prototype.fillRestIfNotCollapsible;Zm.prototype.initCollapsed=Zm.prototype.initCollapsed;Zm.prototype.onIronResize=Zm.prototype.onIronResize;Zm.prototype.persistentGuideChanged=Zm.prototype.persistentGuideChanged;_.c([_.D(_.mF),_.h("design:type",Object)],Zm.prototype,"ironResizableBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Zm.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Zm.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.LU.YtLazyListBehavior),_.h("design:type",Object)],Zm.prototype,"ytLazyListBehavior",void 0);_.c([_.D(_.zE.YtNextContinuationBehavior),_.h("design:type",Object)],Zm.prototype,"ytNextContinuationBehavior",void 0);_.c([_.D(_.D$.YtdGuideStateAwareBehavior),_.h("design:type",Object)],Zm.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.D(_.JR),_.h("design:type",Object)],Zm.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Zm.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],Zm.prototype,"collapsed",void 0);_.c([_.v(),_.h("design:type",Number)],Zm.prototype,"initialCount",void 0);_.c([_.v({computed:"computeShowMoreButton(data.showMoreText)"}),_.h("design:type",Object)],Zm.prototype,"showMoreButton",void 0);
_.c([_.v({computed:"computeIsCollapsible(data)"}),_.h("design:type",Object)],Zm.prototype,"isCollapsible",void 0);_.c([_.Wj("#items"),_.h("design:type",HTMLElement)],Zm.prototype,"items",void 0);_.c([_.I9("guidePersistentAndVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Zm.prototype,"persistentGuideChanged",null);_.c([_.Gm("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Zm.prototype,"onIronResize",null);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Zm.prototype,"initCollapsed",null);_.c([_.I9("canShowMore"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Zm.prototype,"fillRestIfNotCollapsible",null);Zm=_.c([_.E({is:"ytd-grid-renderer",disableElementRegistration:!0})],Zm);
_.R(Zm,"ytd-grid-renderer",function(){if(dpF!==void 0)return dpF;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return dpF=q},{mode:_.kB("kevlar_poly_si_batch_j025")?1:2});var p0=function(){return _.Y.apply(this,arguments)||this};
_.O(p0,_.Y);
p0.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"}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],p0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],p0.prototype,"data",void 0);p0=_.c([_.E({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],p0);
_.R(p0,"ytd-carousel-ad-renderer",function(){if(i_G!==void 0)return i_G;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return i_G=q},{mode:1});var pPF;var $V=function(){return _.Y.apply(this,arguments)||this};
_.O($V,_.Y);_.k=$V.prototype;_.k.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"}}}};
_.k.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,$V.JSC$13138_CLICK_LOCATION_ID_MAP))};
_.k.onSitelinkTap=function(q){q.stopPropagation();var w,u,y=q==null?void 0:(w=q.model)==null?void 0:(u=w.item)==null?void 0:u.onTap;y&&this.ytSparklesClickLocationBehavior.handleClick(y,q,!1)};
_.k.onTap=function(q){var w=this.data&&this.data.content&&this.data.content.navigationEndpoint;w&&this.ytSparklesClickLocationBehavior.handleClick(w,q,!1)};
_.k.sendImpression=function(){if(this.data&&this.data.content)for(var q=_.P(this.data.content.impressionEndpoints||[]),w=q.next();!w.done;w=q.next()){w=_.P(w.value.loggingUrls||[]);for(var u=w.next();!u.done;u=w.next())u=u.value,u.baseUrl&&Li(u.baseUrl,u.attributionSrcMode)}};
$V.prototype.onTap=$V.prototype.onTap;$V.prototype.dataChanged=$V.prototype.dataChanged;$V.JSC$13138_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"]]);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],$V.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],$V.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.l7.YtSparklesClickLocationBehavior),_.h("design:type",Object)],$V.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],$V.prototype,"data",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$V.prototype,"dataChanged",null);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],$V.prototype,"onTap",null);$V=_.c([_.E({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],$V);
_.R($V,"ytd-promoted-sparkles-text-search-renderer",function(){if(pPF!==void 0)return pPF;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return pPF=q},{mode:1});var $pP;var vF=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-mute-ad-action":"handleMuteAd"};return q};
_.O(vF,_.Y);_.k=vF.prototype;
_.k.configureRendererStamper=function(){return{"data.menu":{id:_.T("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.k.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.k.computeHasAdBadge=function(q){return!(q==null||!q.adBadge)};
_.k.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",vF.JSC$13147_DEFAULT_AD_BADGE_RENDERER),_.ef(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,vF.JSC$13147_CLICK_LOCATION_ID_MAP))};
_.k.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var q;(((q=this.data)==null?void 0:q.impressionCommands)||[]).forEach(function(w){w=_.P(w.loggingUrls||[]);for(var u=w.next();!u.done;u=w.next())u=u.value,u.baseUrl&&Li(u.baseUrl,u.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.k.onTap=function(q){var w,u=(w=this.data)==null?void 0:w.navigationEndpoint,y;(w=(y=this.data)==null?void 0:y.thumbnailNavigationEndpoint)&&_.M9(_.SQ(q),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(w,q,!1):u&&this.ytSparklesClickLocationBehavior.handleClick(u,q,!1)};
_.k.handleMuteAd=function(){this.collapsed=!0};
_.k.attached=function(){var q=this;_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&q.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.k.detached=function(){_.T("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.x$.Object.defineProperties(vF.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var q;return!(((q=this.data)==null?void 0:q.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var q;return!(((q=this.data)==null?void 0:q.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.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}}});
vF.prototype.dataChanged=vF.prototype.dataChanged;
vF.JSC$13147_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"]]);
vF.JSC$13147_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.ID("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],vF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);_.c([_.D(oT),_.h("design:type",Object)],vF.prototype,"ytdActiveViewBehavior",void 0);
_.c([_.D([_.hm.YtActionHandlerBehavior]),_.h("design:type",Object)],vF.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.l7.YtSparklesClickLocationBehavior),_.h("design:type",Object)],vF.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],vF.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],vF.prototype,"collapsed",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],vF.prototype,"useBiggerThumbs",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.GQ("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],vF.prototype,"biggerThumbsStyle",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.T("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.h("design:type",Boolean)],vF.prototype,"fixAlignmentSmallScreens",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs_square")}}),
_.h("design:type",Boolean)],vF.prototype,"useBiggerThumbsSquare",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("data.mediaHoverOverlay"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],vF.prototype,"hideHoverOverlay",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data.promotedSparklesWebStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],vF.prototype,"webSearchLayout",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],vF.prototype,"webSearchLayoutLandscape",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],vF.prototype,"webSearchLayoutSquare",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("data.promotedSparklesWebStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],vF.prototype,"sparklesCtaNoBackground",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data.actionButton"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],vF.prototype,"hideActionButton",null);_.c([_.v({computed:"computeButtonOverride(uiUpdate)"}),_.h("design:type",Object)],vF.prototype,"buttonOverride",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.h("design:type",Boolean)],vF.prototype,"hasNewAdBadge",void 0);_.c([_.Z("data.promotedSparklesWebStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],vF.prototype,"useRoundedBadge",null);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vF.prototype,"dataChanged",null);vF=_.c([_.E({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],vF);
_.R(vF,"ytd-promoted-sparkles-web-renderer",function(){if($pP!==void 0)return $pP;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return $pP=q},{mode:1});var vbc;var be=function(){return _.Y.apply(this,arguments)||this};
_.O(be,_.Y);_.k=be.prototype;_.k.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]]"}}}}}};
_.k.computeShowCta=function(q){return!(q==null||!q.ctaRenderer)};
_.k.onCtaClick=function(){var q,w,u,y=(q=this.data)==null?void 0:(w=q.ctaRenderer)==null?void 0:(u=w.buttonRenderer)==null?void 0:u.command;y&&this.ytComponentBehavior.resolveCommand(y)};
_.k.onWatchButtonClick=function(){var q,w,u,y=(q=this.data)==null?void 0:(w=q.watchButtonRenderer)==null?void 0:(u=w.buttonRenderer)==null?void 0:u.command;y&&this.ytComponentBehavior.resolveCommand(y)};
_.k.onTap=function(){};
_.k.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",be.JSC$13150_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",be.JSC$13150_DEFAULT_CLICK_LOCATION_BEHAVIOR,be.JSC$13150_CLICK_LOCATION_ID_MAP),this.thumbnail)){var q=this.thumbnail.getElementsByTagName("a");q.length>0&&(q=q.namedItem("thumbnail"))&&q.removeAttribute("href")}};
_.k.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var q=_.P(this.data.impressionUrls),w=q.next();!w.done;w=q.next())w=w.value,sij(w,QiJ(w));this.data.impressionsFired=!0}};
_.k.maybeComputeHref=function(){return null};
_.k.computeIsShortDR=function(q){return!(q==null||!q.watchButtonRenderer)&&!(q==null||!q.ctaRenderer)&&!!this.enableShortDR};
_.k.computeIsNewUiOrShortDr=function(q){return!!this.enableUiUpdate||this.computeIsShortDR(q)};
_.k.computeIsNewUiAndNotShortDr=function(q){return!!this.enableUiUpdate&&!this.computeIsShortDR(q)};
_.k.computeHideAvatar=function(q){return!((q==null?0:q.channelThumbnail)&&this.computeIsNewUiOrShortDr(q))};
_.k.onClick=function(q){var w,u=(w=this.data)==null?void 0:w.navigationEndpoint;if(this.enableShortDR&&u&&(_.C(u,_.LN)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(u,q,!!_.C(u,_.LN)),q.stopPropagation();else if(u&&_.C(u,_.LN))this.ytSparklesClickLocationBehavior.handleClick(u,q,!0),q.stopPropagation();else if(u){var y,e;((y=this.data)==null?0:y.navigationEndpoint)&&((e=this.data)==null?0:e.adPlaybackContextParams)&&uCu(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(u)}};
_.k.computeButtonOverride=function(q){if(this.computeIsNewUiOrShortDr(q))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.k.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.k.onThumbnailContainerClick=function(q){this.onClick(q)};
_.k.computeThumbnailWidth=function(q,w){return q?w==="MASSIVE"?600:w==="BIG"?500:w==="MEDIUM"?450:420:360};
_.k.attached=function(){var q=this;_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&q.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.k.detached=function(){_.T("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
be.prototype.dataChanged=be.prototype.dataChanged;be.prototype.onTap=be.prototype.onTap;be.JSC$13150_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.ID("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};be.JSC$13150_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
be.JSC$13150_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"}];_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],be.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],be.prototype,"ytRendererBehavior",void 0);_.c([_.D(oT),_.h("design:type",Object)],be.prototype,"ytdActiveViewBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],be.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.l7.YtSparklesClickLocationBehavior),_.h("design:type",Object)],be.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],be.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],be.prototype,"useBiggerThumbs",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.T("enable_video_display_compact_button_group_for_desktop_search")}}),
_.h("design:type",Boolean)],be.prototype,"enableShortDR",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.T("enable_vac_ui_update_for_desktop_search")}}),
_.h("design:type",Boolean)],be.prototype,"enableUiUpdate",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.GQ("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],be.prototype,"biggerThumbsStyle",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.h("design:type",Boolean)],be.prototype,"showCta",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.h("design:type",Boolean)],be.prototype,"isShortDr",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.h("design:type",Boolean)],be.prototype,"isShortDrOrNewUi",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.h("design:type",Boolean)],be.prototype,"isNewUiAndNotShortDr",void 0);_.c([_.v({computed:"computeButtonOverride(data)"}),_.h("design:type",Object)],be.prototype,"buttonOverride",void 0);_.c([_.v({computed:"computeSecondaryButtonOverride(data)"}),_.h("design:type",Object)],be.prototype,"secondaryButtonOverride",void 0);_.c([_.Wj("ytd-thumbnail"),_.h("design:type",HTMLElement)],be.prototype,"thumbnail",void 0);
_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],be.prototype,"onTap",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],be.prototype,"dataChanged",null);be=_.c([_.E({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],be);
_.R(be,"ytd-promoted-video-renderer",function(){if(vbc!==void 0)return vbc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return vbc=q},{mode:1});var b_6;var YV=function(){var q=_.Y.apply(this,arguments)||this;q.useRoundedBadge=!0;q.sitelinkIds=[];return q};
_.O(YV,_.Y);_.k=YV.prototype;
_.k.configureRendererStamper=function(){return{"data.menu":{id:_.T("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.k.dataChanged=function(){var q;(q=this.data)!=null&&q.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,YV.JSC$13157_CLICK_LOCATION_ID_MAP)};
_.k.onTap=function(q){var w,u=(w=this.data)==null?void 0:w.navigationCommand;u&&!_.M9(_.SQ(q),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(u,q,!1)};
_.k.onSitelinkTap=function(q){var w,u,y=q==null?void 0:(w=q.model)==null?void 0:(u=w.item)==null?void 0:u.onTap;y&&this.ytSparklesClickLocationBehavior.handleClick(y,q,!1)};
_.k.configureSitelinkClickTargets=function(){var q=this,w,u,y=(w=this.data)==null?void 0:(u=w.clickLocationTargets)==null?void 0:u.find(function(e){return e.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
y&&_.A(this.hostElement).querySelectorAll(".sitelink").forEach(function(e){_.ef(e,"yt-simple-endpoint",!0);q.sitelinkIds.push(e.id);var t,X;(t=q.ytSparklesClickLocationBehavior)==null||(X=t.clickTargetMap)==null||X.set(e.id,y)})};
_.k.sendImpression=function(){var q,w,u=((q=this.data)==null?void 0:(w=q.impressionCommand)==null?void 0:w.loggingUrls)||[];q=_.P(u);for(w=q.next();!w.done;w=q.next())w=w.value,w.baseUrl&&Li(w.baseUrl,w.attributionSrcMode)};
_.k.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.x$.Object.defineProperties(YV.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
YV.prototype.onTap=YV.prototype.onTap;YV.prototype.dataChanged=YV.prototype.dataChanged;YV.JSC$13157_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"]]);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],YV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],YV.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.l7.YtSparklesClickLocationBehavior),_.h("design:type",Object)],YV.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],YV.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],YV.prototype,"showFavicon",null);_.c([_.v({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],YV.prototype,"useBiggerThumbs",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.GQ("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],YV.prototype,"biggerThumbsStyle",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.T("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.h("design:type",Boolean)],YV.prototype,"enableThumbnailScalingFix",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],YV.prototype,"dataChanged",null);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],YV.prototype,"onTap",null);YV=_.c([_.E({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],YV);
_.R(YV,"ytd-text-image-no-button-layout-renderer",function(){if(b_6!==void 0)return b_6;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return b_6=q},{mode:_.kB("kevlar_poly_si_batch_j028")?1:2});var YHT;var gT=function(){var q=_.Y.apply(this,arguments)||this;q.isInlinePlaybackState=!1;q.uiUpdate=_.T("web_modern_buttons");q.hideCta=_.T("hide_cta_for_home_web_video_ads");q.noBottomMargin=!1;q.animateInTimeStamp=_.Fc("hide_cta_for_home_web_video_ads_animate_in_time");q.animateInCta=!1;q.isHovered=!1;q.player=null;q.JSC$13164_playerEvents=new Map;q.JSC$13164_preventProgressSaveTimer=null;q.delayedCtaJobId=null;return q};
_.O(gT,_.Y);_.k=gT.prototype;_.k.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]]"}}}}}};
_.k.attached=function(){this.JSC$13164_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13164_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.T("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.k.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13164_playerEvents)};
_.k.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",gT.JSC$13163_DEFAULT_CLICK_LOCATION_BEHAVIOR,gT.JSC$13163_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.k.hoverChanged=function(){var q=this;this.delayedCtaJobId&&(_.pi.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.T("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.iq(_.pi,function(){q.buttonContainer.classList.add("show-delayed-buttons")},_.Fc("delayed_cta_on_web_delay_milliseconds")))};
_.k.setPlayer=function(){var q=this,w;return _.F(function(u){if(u.nextAddress==1)return(w=_.X4(q.hostElement,"yt-get-inline-preview-player-action"))&&w[0]?_.H(u,w[0].getPlayerPromise(),3):u.jumpTo(0);q.player=u.yieldResult;q.ytPlayerListenerBehavior.listenToPlayerEvents(q.player,q.JSC$13164_playerEvents);_.HI(u)})};
_.k.onPlaybackStart=function(){var q=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13164_preventProgressSaveTimer=_.ko(_.pi,function(){q.JSC$13164_preventProgressSaveTimer=null},1E4))};
_.k.onVideoProgress=function(q){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&q>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.k.resetPreventProgressSaveTimer=function(){_.pi.cancelJob(this.JSC$13164_preventProgressSaveTimer);this.JSC$13164_preventProgressSaveTimer=null};
_.k.getSimpleString=function(q){return _.lA(q)};
_.k.onClick=function(q){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var w,u=(w=this.data)==null?void 0:w.navigationEndpoint,y;w=(y=this.data)==null?void 0:y.channelEndpoint;var e,t;(y=(t=_.C((e=this.data)==null?void 0:e.adCtaButton,_.aB))==null?void 0:t.command)&&_.M9(_.SQ(q),this.hostElement,["call-to-action"])?_.T("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(y,q,!1):w&&_.M9(_.SQ(q),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(w,q,!1):!_.M9(_.SQ(q),this.hostElement,["secondary-button"])&&u&&(_.T("enable_short_dr_for_desktop_launchable")?(e=!!_.C(u,_.LN),this.isInlinePlaybackState&&e&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(u,q,e)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(u,q,!0)))}};
_.k.updateWatchEndpointStartTime=function(){var q,w;this.player&&((q=this.data)==null?0:q.inlinePlaybackEndpoint)&&((w=this.data)==null?0:w.navigationEndpoint)&&!this.JSC$13164_preventProgressSaveTimer&&(q=Math.floor(this.player.getCurrentTime()),_.C(this.data.navigationEndpoint,_.LN).startTimeSeconds=q,_.C(this.data.inlinePlaybackEndpoint,_.LN).startTimeSeconds=q)};
_.k.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.k.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.x$.Object.defineProperties(gT.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.T("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var q,w;return!((q=this.data)==null||!q.watchButton)&&!((w=this.data)==null||!w.adCtaButton)}}});
gT.prototype.hoverChanged=gT.prototype.hoverChanged;gT.prototype.dataChanged=gT.prototype.dataChanged;
gT.JSC$13163_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"]]);
gT.JSC$13163_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"}];
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],gT.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],gT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],gT.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.l7.YtSparklesClickLocationBehavior),_.h("design:type",Object)],gT.prototype,"ytSparklesClickLocationBehavior",void 0);
_.c([_.D(_.b7.YtPlayerListenerBehavior),_.h("design:type",_.Yp)],gT.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],gT.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],gT.prototype,"isInlinePlaybackState",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],gT.prototype,"miniMode",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],gT.prototype,"uiUpdate",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],gT.prototype,"hideCta",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],gT.prototype,"noBottomMargin",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],gT.prototype,"animateInCta",void 0);_.c([_.v({computed:"computeButtonOverride(uiUpdate)"}),_.h("design:type",Object)],gT.prototype,"buttonOverride",void 0);
_.c([_.v({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.h("design:type",Object)],gT.prototype,"secondaryButtonOverride",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],gT.prototype,"isHovered",void 0);_.c([_.Wj("#button-container"),_.h("design:type",HTMLElement)],gT.prototype,"buttonContainer",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],gT.prototype,"typographyBump",void 0);
_.c([_.v({reflectToAttribute:!0}),_.Z("typographyBump"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],gT.prototype,"typographyBumpV2",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gT.prototype,"dataChanged",null);_.c([_.nL("isHovered"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gT.prototype,"hoverChanged",null);
_.c([_.Z("data"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],gT.prototype,"isButtonGroup",null);gT=_.c([_.E({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],gT);
_.R(gT,"ytd-ad-inline-playback-meta-block",function(){if(YHT!==void 0)return YHT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return YHT=q},{mode:_.kB("kevlar_poly_si_batch_j065")?1:2});var gbr;var Ep=function(){var q=_.Y.apply(this,arguments)||this;q.noBottomMargin=!1;q.isInlinePreviewTriggered=!1;q.JSC$13169_activeViewMeasurementDataResolver=_.S6();return q};
_.O(Ep,_.Y);_.k=Ep.prototype;_.k.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.k.attached=function(){var q=this;this.updateInlinePreviewHoverListeners();this.JSC$13169_activeViewMeasurementDataResolver.promise.then(function(w){q.ytdActiveViewBehavior.enableActiveViewMeasurement(w,15)});
_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&q.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.k.detached=function(){this.clearInlinePreviewHoverListeners();_.T("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.k.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13169_inlinePreviewHoverListener=cC({mediaRenderer:this,lockupElement:this.JSC$13169_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:B5j})};
_.k.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$13169_inlinePreviewHoverListener)==null||yb(q)};
_.k.onDataChanged=function(){var q;((q=this.data)==null?0:q.activeView)&&this.JSC$13169_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Ep.JSC$13168_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ep.JSC$13168_CLICK_LOCATION_ID_MAP);this.thumbnail&&(q=this.thumbnail.getElementsByTagName("a"),q.length>0&&(q=q.namedItem("thumbnail"))&&q.removeAttribute("href"));var w,u;if(((w=this.data)==
null?0:w.hasAutoplay)||((u=this.data)==null?0:u.forceImpAutoplay)){var y;(y=this.JSC$13169_inlinePreviewHoverListener)==null||Hl6(y)}};
_.k.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.k.onThumbnailContainerClick=function(q){if(this.data&&this.data.navigationEndpoint){var w,u=(w=this.data)==null?void 0:w.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(u,q,!!_.C(u,_.LN));q.stopPropagation()}};
_.k.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.k.impressionLog=function(){var q=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var w,u,y=(u=_.C((w=this.data)==null?void 0:w.onImpression,_.Ww))==null?void 0:u.commands;y&&(y.forEach(function(e){e.clickTrackingParams&&delete e.clickTrackingParams;q.ytComponentBehavior.resolveCommand(e)}),this.data.impressionsFired=!0)}};
_.x$.Object.defineProperties(Ep.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$13169_inlinePreviewHoverListener)==null?0:OJ(q))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Ep.prototype.onTypographyBumpChanged=Ep.prototype.onTypographyBumpChanged;Ep.prototype.onDataChanged=Ep.prototype.onDataChanged;Ep.JSC$13168_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Ep.JSC$13168_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"}];
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Ep.prototype,"ytComponentBehavior",void 0);_.c([_.D(oT),_.h("design:type",Object)],Ep.prototype,"ytdActiveViewBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ep.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ep.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],Ep.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.D(_.$p),_.h("design:type",Object)],Ep.prototype,"ytdLockupBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],Ep.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.l7.YtSparklesClickLocationBehavior),_.h("design:type",Object)],Ep.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ep.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],Ep.prototype,"noBottomMargin",void 0);
_.c([_.v(),_.h("design:type",Object)],Ep.prototype,"isInlinePreviewTriggered",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.za}),_.h("design:type",Boolean)],Ep.prototype,"miniMode",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],Ep.prototype,"typographyBump",void 0);_.c([_.Wj("ytd-thumbnail"),_.h("design:type",HTMLElement)],Ep.prototype,"thumbnail",void 0);_.c([_.Wj("#dismissible"),_.h("design:type",HTMLElement)],Ep.prototype,"JSC$13169_dismissibleMedia",void 0);
_.c([_.Wj("ytd-ad-inline-playback-meta-block"),_.h("design:type",HTMLElement)],Ep.prototype,"adInlinePlaybackMetaBlock",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ep.prototype,"onDataChanged",null);_.c([_.I9("typographyBump"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ep.prototype,"onTypographyBumpChanged",null);
_.c([_.Z("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ep.prototype,"isHovered",null);Ep=_.c([_.E({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],Ep);
_.R(Ep,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(gbr!==void 0)return gbr;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return gbr=q},{mode:1});var EbT;var RE=function(){var q=_.Y.apply(this,arguments)||this;q.isInlinePreviewTriggered=!1;q.JSC$13172_activeViewMeasurementDataResolver=_.S6();return q};
_.O(RE,_.Y);_.k=RE.prototype;_.k.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.k.attached=function(){var q=this;this.updateInlinePreviewHoverListeners();this.JSC$13172_activeViewMeasurementDataResolver.promise.then(function(w){q.ytdActiveViewBehavior.enableActiveViewMeasurement(w,15)})};
_.k.detached=function(){this.clearInlinePreviewHoverListeners()};
_.k.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13172_inlinePreviewHoverListener=cC({mediaRenderer:this,lockupElement:this.JSC$13172_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:B5j})};
_.k.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$13172_inlinePreviewHoverListener)==null||yb(q)};
_.k.onDataChanged=function(){var q;((q=this.data)==null?0:q.activeView)&&this.JSC$13172_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",RE.JSC$13171_DEFAULT_CLICK_LOCATION_BEHAVIOR,RE.JSC$13171_CLICK_LOCATION_ID_MAP);this.thumbnail&&(q=this.thumbnail.getElementsByTagName("a"),q.length>0&&(q=q.namedItem("thumbnail"))&&q.removeAttribute("href"))};
_.k.onThumbnailContainerClick=function(q){if(this.data&&this.data.navigationEndpoint){var w,u=(w=this.data)==null?void 0:w.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(u,q,!0);q.stopPropagation()}};
_.k.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.k.impressionLog=function(){var q=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var w,u,y=(u=_.C((w=this.data)==null?void 0:w.onImpression,_.Ww))==null?void 0:u.commands;y&&(y.forEach(function(e){e.clickTrackingParams&&delete e.clickTrackingParams;_.tG().resolve(_.PG).resolveCommand(e,{form:{element:q.hostElement}})}),this.data.impressionsFired=!0)}};
_.x$.Object.defineProperties(RE.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$13172_inlinePreviewHoverListener)==null?0:OJ(q))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
RE.prototype.onDataChanged=RE.prototype.onDataChanged;RE.JSC$13171_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);RE.JSC$13171_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"}];_.c([_.D(oT),_.h("design:type",Object)],RE.prototype,"ytdActiveViewBehavior",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],RE.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],RE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],RE.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.D(_.$p),_.h("design:type",Object)],RE.prototype,"ytdLockupBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],RE.prototype,"ytdReduxBehavior",void 0);
_.c([_.D(_.l7.YtSparklesClickLocationBehavior),_.h("design:type",Object)],RE.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],RE.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],RE.prototype,"isInlinePreviewTriggered",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.za}),_.h("design:type",Boolean)],RE.prototype,"miniMode",void 0);_.c([_.Wj("ytd-thumbnail"),_.h("design:type",HTMLElement)],RE.prototype,"thumbnail",void 0);
_.c([_.Wj("#dismissible"),_.h("design:type",HTMLElement)],RE.prototype,"JSC$13172_dismissibleMedia",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RE.prototype,"onDataChanged",null);_.c([_.Z("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],RE.prototype,"isHovered",null);RE=_.c([_.E({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],RE);
_.R(RE,"ytd-video-display-full-buttoned-renderer",function(){if(EbT!==void 0)return EbT;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return EbT=q},{mode:1});var XD=function(q,w,u,y){y=y===void 0?!1:y;_.qM.call(this,q);this.adsClientErrorMessage=u;this.aggressivelySample=y;this.args=[];w&&this.args.push(w)};
_.O(XD,_.qM);var tK=function(q,w,u,y){y=y===void 0?!1:y;_.qM.call(this,q);this.adsClientErrorMessage=u;this.aggressivelySample=y;this.args=[];w&&this.args.push(w)};
_.O(tK,_.qM);var REc=function(q){_.VG.call(this);var w=this;this.initializationFunction=q;this.instance=null;this.addOnDisposeCallback(function(){_.BX(w.instance);w.instance=null})};
_.O(REc,_.VG);REc.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.BC("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var rNc=function(){var q=new Map;[].forEach(function(w){q.set(w.JSC$26699_getType(),w)})};new Promise(function(){});var s$J=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"]]),HW7=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"}]]),cuP=function(q){this.experimentApiProvider=q;q=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=q<.1};var cF=function(q,w,u,y){_.VG.call(this);this.adsControlFlowEventListeners=w;this.adEventLogger=u;this.experimentApiProvider=y;this.adsControlFlowManagerHelper=q(this,this,this,this,this);_.sN(this,this.adsControlFlowManagerHelper);q=_.P(w);for(w=q.next();!w.done;w=q.next())_.sN(this,w.value)};
_.O(cF,_.VG);var SHT=function(q,w,u,y){Sm(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",w,u,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,y);q=_.P(q.adsControlFlowEventListeners);for(y=q.next();!y.done;y=q.next())SHT(y.value,w,u)};
_.k=cF.prototype;_.k.onOpportunityProcessedExternallyManaged=function(q,w,u,y){Sm(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",q,u,w,void 0,void 0,void 0,void 0,void 0,void 0,void 0,y)};
_.k.onSlotReceivedExternallyManaged=function(q,w){hR(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",q,w)};
_.k.onSlotEntered=function(q){if(jm(this.adsControlFlowManagerHelper,q)!=null){hR(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",q);this.adsControlFlowManagerHelper.onSlotEntered(q);for(var w=_.P(this.adsControlFlowEventListeners),u=w.next();!u.done;u=w.next())u.value.onSlotEntered(q);if(jm(this.adsControlFlowManagerHelper,q)!=null&&jm(this.adsControlFlowManagerHelper,q).isOccupyingSlotType()&&le(this.adsControlFlowManagerHelper,q)&&!hEj(this.adsControlFlowManagerHelper,q)){var y;L0(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",q,(y=le(this.adsControlFlowManagerHelper,q))!=null?y:void 0);q=jm(this.adsControlFlowManagerHelper,q);q.slotLifecycleStage!=="entered"&&MP(q.slot,q.slotLifecycleStage,"enterLayoutForSlot");q.slotLifecycleStage="rendering";q.registeredLayoutRenderingAdapter.startRendering(q.layout)}}};
_.k.onSlotExited=function(q){if(jm(this.adsControlFlowManagerHelper,q)!=null){hR(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",q);this.adsControlFlowManagerHelper.onSlotExited(q);for(var w=_.P(this.adsControlFlowEventListeners),u=w.next();!u.done;u=w.next())u.value.onSlotExited(q);jm(this.adsControlFlowManagerHelper,q)!=null&&jm(this.adsControlFlowManagerHelper,q).markedForUnscheduleAfterOutboundAdapterRequests&&jWj(this,q)}};
_.k.onLayoutReceivedExternallyManaged=function(q,w,u){q.managerLayer!=="core"&&L0(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",q,w,u)};
var lq$=function(q,w,u){if(jm(q.adsControlFlowManagerHelper,w)!=null){L0(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",w,u);q=_.P(q.adsControlFlowEventListeners);for(var y=q.next();!y.done;y=q.next())lq$(y.value,w,u)}};
cF.prototype.onLayoutExited=function(q,w,u){if(jm(this.adsControlFlowManagerHelper,q)!=null){L0(this.adEventLogger,W94(u),q,w);this.adsControlFlowManagerHelper.onLayoutExited(q,w);for(var y=_.P(this.adsControlFlowEventListeners),e=y.next();!e.done;e=y.next())e.value.onLayoutExited(q,w,u);(u=le(this.adsControlFlowManagerHelper,q))&&w.layoutId===u.layoutId&&LQT(this,q)}};
cF.prototype.disposeInternal=function(){var q=MIP(this.adsControlFlowManagerHelper);q=_.P(q);for(var w=q.next();!w.done;w=q.next())jWj(this,w.value);_.VG.prototype.disposeInternal.call(this)};
var jWj=function(q,w){if(jm(q.adsControlFlowManagerHelper,w)!=null)if(jm(q.adsControlFlowManagerHelper,w).JSC$26730_isSlotExitRequested()||jm(q.adsControlFlowManagerHelper,w).JSC$26730_isLayoutExitRequested())jm(q.adsControlFlowManagerHelper,w).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(jm(q.adsControlFlowManagerHelper,w).isOccupyingSlotType())jm(q.adsControlFlowManagerHelper,w).markedForUnscheduleAfterOutboundAdapterRequests=!0,LQT(q,w);else if(jm(q.adsControlFlowManagerHelper,w).JSC$26730_isSlotFillRequested())jm(q.adsControlFlowManagerHelper,
w).markedForUnscheduleAfterOutboundAdapterRequests=!0,jm(q.adsControlFlowManagerHelper,w)!=null&&(hR(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",w),w=jm(q.adsControlFlowManagerHelper,w),w.fulfillmentLifecycleStage="fill_cancel_requested",w.registeredFulfillmentAdapter.cancelSlotFilling());else{var u=le(q.adsControlFlowManagerHelper,w),y;q.experimentApiProvider.get();(y=_.T("h5_enable_layout_unscheduling_events"))&&(u?KQT(q,w,u):_.BC(Error("Hh"),w,u,void 0,!1));hR(q.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",w);var e=jm(q.adsControlFlowManagerHelper,w),t=w.slotEntryTrigger,X=e.registeredSlotEntryTriggerAdapters.get(t.triggerId);X&&(X.unregisterTrigger(t),e.registeredSlotEntryTriggerAdapters.delete(t.triggerId));t=_.P(w.slotFulfillmentTriggers);for(X=t.next();!X.done;X=t.next()){X=X.value;var G=e.registeredFulfillmentTriggerAdapters.get(X.triggerId);G&&(G.unregisterTrigger(X),e.registeredFulfillmentTriggerAdapters.delete(X.triggerId))}t=_.P(w.slotExpirationTriggers);
for(X=t.next();!X.done;X=t.next())if(X=X.value,G=e.registeredExpirationTriggerAdapters.get(X.triggerId))G.unregisterTrigger(X),e.registeredExpirationTriggerAdapters.delete(X.triggerId);e.hasLayout()&&(t=e.layout,K0(e,t.layoutExitNormalTriggers),K0(e,t.layoutExitSkipTriggers),K0(e,t.layoutExitMuteTriggers),K0(e,t.layoutExitUserInputSubmittedTriggers),K0(e,t.layoutExitUserCancelledTriggers));e.registeredFulfillmentAdapter=void 0;e.registeredSlotAdapter!=null&&(e.registeredSlotAdapter.release(),e.registeredSlotAdapter=
void 0);e.registeredLayoutRenderingAdapter!=null&&(e.registeredLayoutRenderingAdapter.release(),e.registeredLayoutRenderingAdapter=void 0);e=q.adsControlFlowManagerHelper;jm(e,w)&&(e=BWF(e,w.slotType+"_"+w.slotPhysicalPosition))&&e.delete(w.slotId);hR(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",w);q=_.P(q.adsControlFlowEventListeners);for(e=q.next();!e.done;e=q.next())e=e.value,e.onSlotUnscheduled(w),u&&!y&&KQT(e,w,u)}},KQT=function(q,w,u){L0(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
w,u);
L0(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",w,u);q=_.P(q.adsControlFlowEventListeners);for(var y=q.next();!y.done;y=q.next())y=y.value,u&&KQT(y,w,u)},LQT=function(q,w){if(jm(q.adsControlFlowManagerHelper,w)!=null&&jm(q.adsControlFlowManagerHelper,w).isOccupyingSlotType()){var u=le(q.adsControlFlowManagerHelper,w);
if(u&&hEj(q.adsControlFlowManagerHelper,w)){if(jm(q.adsControlFlowManagerHelper,w)!=null){var y=q.adEventLogger,e;var t=((e=HW7.get("abandoned"))==null?void 0:e.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";L0(y,t,w,u);q=jm(q.adsControlFlowManagerHelper,w);q.slotLifecycleStage!=="rendering"&&MP(q.slot,q.slotLifecycleStage,"exitLayout");q.slotLifecycleStage="rendering_stop_requested";q.registeredLayoutRenderingAdapter.stopRendering(u,"abandoned")}}else{hR(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
w);try{y=jm(q.adsControlFlowManagerHelper,w);if(!y)throw new tK("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");y.slotLifecycleStage!=="enter_requested"&&y.slotLifecycleStage!=="entered"&&y.slotLifecycleStage!=="rendering"&&MP(y.slot,y.slotLifecycleStage,"exitSlot");y.slotLifecycleStage="exit_requested";if(y.registeredSlotAdapter===void 0)throw y.slotLifecycleStage="scheduled",new tK("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
y.registeredSlotAdapter.exit()}catch(X){X instanceof tK&&X.adsClientErrorMessage?(xpX(q.adEventLogger,X.adsClientErrorMessage,w),_.BC(X,w,void 0,void 0,X.aggressivelySample)):(xpX(q.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",w),_.BC(X,w))}}}};var BF=function(q,w,u,y,e,t){_.VG.call(this);this.registry=q;this.experimentApiProvider=t;this.slotMap=new Map};
_.O(BF,_.VG);var BWF=function(q,w){return(q=q.slotMap.get(w))?q:new Map},jm=function(q,w){return BWF(q,w.slotType+"_"+w.slotPhysicalPosition).get(w.slotId)},MIP=function(q){var w=[];
q.slotMap.forEach(function(u){u=_.P(u.values());for(var y=u.next();!y.done;y=u.next())w.push(y.value.slot)});
return w};
BF.prototype.onSlotEntered=function(q){q=jm(this,q);q.slotLifecycleStage!=="enter_requested"&&MP(q.slot,q.slotLifecycleStage,"onSlotEntered");q.slotLifecycleStage="entered"};
var hEj=function(q,w){q=jm(q,w);return q.hasLayout()&&q.isRendering()},le=function(q,w){(q=jm(q,w))?q.hasLayout()&&!q.layout&&_.BC("Unexpected empty layout",w):_.BC("Unexpected undefined slotState",w);
return(q==null?void 0:q.layout)||null};
BF.prototype.onSlotExited=function(q){q=jm(this,q);q.slotLifecycleStage!=="exit_requested"&&MP(q.slot,q.slotLifecycleStage,"onSlotExited");q.slotLifecycleStage="scheduled"};
BF.prototype.onLayoutExited=function(q,w){q=jm(this,q);q.isPrimaryLayout(w)&&(q.slotLifecycleStage!=="rendering_stop_requested"&&MP(q.slot,q.slotLifecycleStage,"onLayoutExited"),q.slotLifecycleStage="entered")};
var K0=function(q,w){w=_.P(w);for(var u=w.next();!u.done;u=w.next()){u=u.value;var y=q.registeredLayoutExitTriggerAdapters.get(u.triggerId);y&&(y.unregisterTrigger(u),q.registeredLayoutExitTriggerAdapters.delete(u.triggerId))}},MP=function(q,w,u){_.BC("Slot stage was "+w+" when calling method "+u,q)};var wg3=function(q){_.VG.call(this);this.deps=q;this.JSC$13221_adsControlFlowManager=qRx(this)};
_.O(wg3,_.VG);var qRx=function(q){var w=new cF(function(u,y,e,t){return new BF(q.deps.registry,u,y,e,t,q.deps.experimentApiProvider)},new Set(iWu(q.deps.registry).concat(q.deps.listeners)),q.deps.adEventLogger,q.deps.experimentApiProvider);
_.sN(q,w);return w};var uq$=function(q,w){_.VG.call(this);this.experimentApiProvider=q;this.eventLoggingSettingsProvider=w;this.eventCount=0};
_.O(uq$,_.VG);uq$.prototype.logEvent=function(q){Sm(this,q)};
var hR=function(q,w,u,y){Sm(q,w,void 0,void 0,void 0,u,void 0,void 0,void 0,u.adSlotLoggingData,void 0,void 0,y)},L0=function(q,w,u,y,e){Sm(q,w,void 0,void 0,void 0,u,y?y:void 0,void 0,void 0,u.adSlotLoggingData,y?y.adLayoutLoggingData:void 0,void 0,e)},xpX=function(q,w,u){Sm(q,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,u,void 0,void 0,void 0,u.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:w})},Sm=function(q,w,u,y,e,t,X,G,n,N,Q,I,U){U=U===void 0?0:U;
yNr(q.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+w,"slot:",t,"layout:",X,"ping:",G,"Opportunity:",{opportunityType:u,associatedSlotId:y,slotsFromOpportunity:e,triggerBundle:n,adSlotLoggingData:N,adLayoutLoggingData:Q});try{var d=function(){q.experimentApiProvider.get();if(w!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){w||_.BC("Empty PACF event type",t,X);var V=q.eventLoggingSettingsProvider.get();var J;(J=V.alwaysIncludeDebugData)||(V.experimentApiProvider.get(),J=
!1);V=J;J={eventType:w,eventOrder:++q.eventCount};var a={};t&&(a.slotData=Q$J(V,t));if(X){var b={type:X.layoutType,controlFlowManagerLayer:s$J.get(X.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};V&&(b.debugData={layoutId:X.layoutId});a.layoutData=b}G&&(a.pingData={pingDispatchStatus:G.dispatchStatus,serializedAdPingMetadata:G.ping.serializedAdPingMetadata,pingIndex:G.index});n&&(a.triggerData=Niu(n.trigger,n.category));u&&(a.opportunityData=IxJ(V,u,y,e));J.adClientData=a;N&&(J.serializedSlotAdServingData=
N.serializedSlotAdServingDataEntry);Q&&(J.serializedAdServingData=Q.serializedAdServingDataEntry);I&&(J.errorInfo=I);_.pn("adsClientStateChange",{adsClientEvent:J})}};
U&&U>0?_.mg(_.Vk(),function(){return d()},U):d()}catch(V){yNr(q.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.mg(_.Vk(),function(){_.BC(V instanceof Error?V:String(V),t,X,{pacf_message:"exception during pacf logging"})})}};var etT=function(q,w){uq$.call(this,q,w)};
_.O(etT,uq$);var kq3=function(){},yNr=function(q,w){return _.T(w)};var PJ3=function(){var q=new tJj;this.JSC$13240_adsControlFlowManager=(new wg3(q)).JSC$13221_adsControlFlowManager},tJj=function(){_.VG.call(this);
var q=this;this.experimentApiProvider=new REc(function(){return new kq3});
var w=new REc(function(){return new cuP(q.experimentApiProvider)});
this.adEventLogger=new etT(this.experimentApiProvider,w);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.O(tJj,_.VG);var Xga=function(){},F9r,xV=function(){F9r||(F9r=new Xga);
return F9r},qO=function(q){if(!q.JSC$13251_externallyManagedSlotAdapterCallback){var w=(new PJ3).JSC$13240_adsControlFlowManager;
q.JSC$13251_externallyManagedSlotAdapterCallback=w}return q.JSC$13251_externallyManagedSlotAdapterCallback},Gq3=function(q,w,u){var y=w.opportunityType,e=Error("Ih");
if(y!==void 0){var t=qO(q);SHT(t,y,void 0,u)}else _.BC(e,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});t=[];if(w.adSlotAndLayoutMetadata!==void 0){w=_.P(w.adSlotAndLayoutMetadata);for(var X=w.next();!X.done;X=w.next()){var G=X.value;if(X=G.adSlotMetadata)if(t.push(X),q.onSlotReceivedExternallyManaged(X,u),G.adLayoutMetadata){G=_.P(G.adLayoutMetadata);for(var n=G.next();!n.done;n=G.next())q.onLayoutReceivedExternallyManaged(X,n.value,u)}else u>0&&_.BC("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
y,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else u>0&&_.BC("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+y,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else u>0&&_.BC("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+y,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(y!==void 0)q.onOpportunityProcessedExternallyManaged(y,t,void 0,u);else _.BC(e,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
Xga.prototype.onSlotReceivedExternallyManaged=function(q,w){q=Py(q);if(q instanceof tK)_.BC(q,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else qO(this).onSlotReceivedExternallyManaged(q,w)};
Xga.prototype.onLayoutReceivedExternallyManaged=function(q,w,u){q=Py(q);w=U7u(w);if(q instanceof tK)_.BC(q,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(w instanceof XD)_.BC(w,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else qO(this).onLayoutReceivedExternallyManaged(q,w,u)};
Xga.prototype.onOpportunityProcessedExternallyManaged=function(q,w,u,y){var e=[];w=_.P(w);for(var t=w.next();!t.done;t=w.next())t=Py(t.value),t instanceof tK?_.BC(t,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):e.push(t);qO(this).onOpportunityProcessedExternallyManaged(q,e,u,y)};
var nga=function(q,w){w=Py(w);if(w instanceof tK)_.BC(w,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var u=qO(q);hR(u.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",w);u=_.P(u.adsControlFlowEventListeners);for(var y=u.next();!y.done;y=u.next())y=jm(y.value,w),y.slotLifecycleStage!=="not_scheduled"&&MP(y.slot,y.slotLifecycleStage,"onSlotScheduled"),y.slotLifecycleStage="scheduled";q=qO(q);hR(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",w);q=_.P(q.adsControlFlowEventListeners);
for(u=q.next();!u.done;u=q.next())u.value.onSlotEntered(w)}},HW$=function(q,w){w=Py(w);
if(w instanceof tK)_.BC(w,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var u=qO(q);hR(u.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",w);u=_.P(u.adsControlFlowEventListeners);for(var y=u.next();!y.done;y=u.next())y.value.onSlotExited(w);q=qO(q);hR(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",w);q=_.P(q.adsControlFlowEventListeners);for(u=q.next();!u.done;u=q.next())u.value.onSlotUnscheduled(w)}},W9k=function(q,w,u){w=Py(w);
u=U7u(u);if(w instanceof tK)_.BC(w,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(u instanceof XD)_.BC(u,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var y=qO(q);L0(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",w,u);y=_.P(y.adsControlFlowEventListeners);for(var e=y.next();!e.done;e=y.next())e.value.onLayoutScheduled(w,u);q=qO(q);L0(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",w,u);q=_.P(q.adsControlFlowEventListeners);
for(y=q.next();!y.done;y=q.next())lq$(y.value,w,u)}},wH=function(q,w,u){w=Py(w);
u=U7u(u);if(w instanceof tK)_.BC(w,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(u instanceof XD)_.BC(u,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var y=qO(q);L0(y.adEventLogger,W94("normal"),w,u);y=_.P(y.adsControlFlowEventListeners);for(var e=y.next();!e.done;e=y.next())e.value.onLayoutExited(w,u,"normal");q=qO(q);q=_.P(q.adsControlFlowEventListeners);for(y=q.next();!y.done;y=q.next())KQT(y.value,w,u)}};_.u_=_.LL(function(q){var w=_.lf(q,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});q=Object.assign({},w);var u=w.data;w=w.customCommandResolver;var y=(delete q.data,delete q.customCommandResolver,q),e=_.Bm();_.Sg(e,function(){return u().interaction},w,function(){var G;
return(G=y.listenToTapEvent)==null?void 0:G.call(y)});
_.k$(e,{visibilityCallback:function(G){var n,N=(n=u().interaction)==null?void 0:n.onFirstVisible;G&&(N&&_.bn(N),y.setOnErrorHandler()&&TiJ(e))},
showOption:_.R1});q=_.P(_.r4(!1,void 0,"eiYvIe"));var t=q.next().value,X=q.next().value;q=_.QS(function(){var G;((G=y.setTouchEndHandler)==null?0:G.call(y))&&!t()&&(e.value.click(),X(!0),setTimeout(function(){X(!1)},100));
return!1});
return _.W("ad-image-view-model",{class:function(){var G,n=[((G=u().interaction)==null?0:G.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],N;((N=y.isGridViewEnabled)==null?0:N.call(y))&&n.push("ytwAdImageViewModelHostInGridView");return n.join(" ")},
el:e,"on:touchend":q},_.W("div",{class:"ytwAdImageViewModelHostImageContainer"},_.W(_.ln,{data:function(){var G;return{sources:u().imageSources,contentMode:(G=u().imageProperties)==null?void 0:G.contentMode}},
alt:function(){var G,n;return((G=u().interaction)==null?void 0:(n=G.accessibility)==null?void 0:n.label)||""},
targetHeight:y.targetHeight,targetWidth:y.targetWidth,preserveHeight:y.preserveHeight,preserveWidth:y.preserveWidth,useWidth:y.useWidth,style:function(){var G,n;return"vertical-align: bottom;"+(((G=u().background)==null?0:G.color)?"background-color:"+_.Ae((n=u().background)==null?void 0:n.color)+";":"")},
className:function(){return y.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var G,n;return(n=(G=y.setDraggable)==null?void 0:G.call(y))!=null?n:void 0}})))},"cb");var s$T=_.LL(function(q){var w=q.data,u=q.listenToTapEvent,y=_.Bm();_.T("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.Sg(y,function(){return w().interaction},void 0,function(){return u==null?void 0:u()});
_.k$(y,{visibilityCallback:function(t){var X,G=(X=w().interaction)==null?void 0:X.onFirstVisible;t&&G&&_.bn(G)},
showOption:_.R1});q=_.QS(function(){if(_.T("enable_web_home_top_landscape_image_layout_legacy_click_command")){var t,X=(t=w().interaction)==null?void 0:t.onTap;X&&_.t7(y.value,"yt-navigate",{endpoint:_.Zh(X)})}});
var e=function(){};
return _.W("ad-button-hover-overlay-view-model",{"on:click":q,class:function(){var t;return((t=w().interaction)==null?0:t.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:y},function(){return _.T("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.W(_.OF,{data:function(){return w().button}},{adButtonViewModel:function(t){return _.W(_.Sj,{data:t.data,
customCommandResolver:e})}}):_.W(_.OF,{data:function(){return w().button}},{adButtonViewModel:_.Sj})}())},"db");var FD;_.q9(_.LL(function(q){var w=q.data;var u=_.Bm();_.T("stop_av_measurement_on_detach")&&_.ZG(function(){nV(u)});
_.Sg(u,function(){return w().interaction},void 0,function(){return!0});
_.k$(u,{visibilityCallback:function(X){if(X){var G;(X=(G=w().interaction)==null?void 0:G.onFirstVisible)&&_.bn(X);var n;if(G=(n=w().adLayoutData)==null?void 0:n.activeViewData)G3(u,G),_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&nV(u)})}else _.T("stop_av_measurement_on_detach")&&nV(u)},
showOption:_.R1,hideOption:ct});q=_.P(_.r4(!1,void 0,"yzu6qe"));var y=q.next().value,e=q.next().value;q=_.QS(function(){e(!0)});
var t=_.QS(function(){e(!1)});
return _.W("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:u,"on:mouseenter":q,"on:mouseleave":t},_.W("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.rm({"max-width":function(){return _.T("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.W("div",{class:function(){var X;
a:{var G;switch((X=_.C(w().thumbnailImage,Uu))==null?void 0:(G=X.imageProperties)==null?void 0:G.renderingAspect){case "RENDERING_ASPECT_SQUARE":X="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":X="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}X=void 0}return X}},_.W(_.OF,{data:function(){return w().thumbnailImage}},{adImageViewModel:function(X){return _.W(_.u_,
{data:X.data,
listenToTapEvent:!0,setTouchEndHandler:_.T("enable_top_landscape_image_experiment_dom_id_web")})}})),_.W("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.W(_.r,{cond:function(){var X,G,n;
return(X=_.C(w().thumbnailImage,Uu))==null?void 0:(G=X.imageProperties)==null?void 0:(n=G.overlayIcon)==null?void 0:n.iconImage},
then:function(X){return _.W(_.ln,{data:X,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.W("div",{class:function(){return y()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.W(_.OF,{data:function(){return w().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(X){return _.W(s$T,
{data:X.data,
listenToTapEvent:!0})}}))),_.W("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.W(_.OF,{data:function(){return w().feedAdMetadata}},{feedAdMetadataViewModel:function(X){return _.W(oiP,{data:X.data,
listenToTapEvent:!0,setTouchEndHandler:_.T("enable_top_landscape_image_experiment_dom_id_web")})}})))},"eb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.pK}});_.q9(_.LL(function(q){var w=q.data;var u=_.Bm();_.T("stop_av_measurement_on_detach")&&_.ZG(function(){nV(u)});
var y=_.aV(_.$H);_.Sg(u,function(){return w().interaction});
_.k$(u,{visibilityCallback:function(N){if(N){var Q;(N=(Q=w().interaction)==null?void 0:Q.onFirstVisible)&&_.bn(N);var I;if(Q=(I=w().adLayoutData)==null?void 0:I.activeViewData)G3(u,Q),_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&nV(u)})}else _.T("stop_av_measurement_on_detach")&&nV(u)},
showOption:_.R1,hideOption:ct});var e=_.QS(function(N){var Q,I,U=(Q=_.C(w().adImage,Uu))==null?void 0:(I=Q.interaction)==null?void 0:I.onTap;U&&(_.T("enable_square_image_components_ui_web_with_custom_event")?_.t7(u.value,"yt-navigate",{endpoint:_.Zh(U)}):Rrz(N,U))}),t=_.QS(function(){var N,Q,I=(N=_.C(w().adButton,TZF))==null?void 0:(Q=N.interaction)==null?void 0:Q.onTap;
I&&_.t7(u.value,"yt-navigate",{endpoint:_.Zh(I)})}),X=function(){};
q={};var G={},n={};return _.W("square-image-layout-view-model",{class:_.HR("ytwSquareImageLayoutViewModelHost",(q.ytwSquareImageLayoutViewModelHostColumn=y,q)),el:u},_.W("div",{class:_.HR("ytwSquareImageLayoutViewModelHostImage",(G.ytwSquareImageLayoutViewModelHostColumnImage=y,G))},function(){return _.T("enable_square_image_components_ui_web_with_native_img")?_.W("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var N,Q,I;return((N=_.C(w().adImage,Uu))==null?void 0:(Q=N.imageSources)==
null?void 0:(I=Q[0])==null?void 0:I.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:"false","on:click":e}):_.W(_.OF,{data:function(){return w().adImage}},{adImageViewModel:function(N){return _.W(_.u_,{data:N.data,
isGridViewEnabled:y,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.W("div",{class:_.HR("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(n.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=y,n))},_.W(_.OF,{data:function(){return w().feedAdMetadata}},{feedAdMetadataViewModel:oiP}),function(){return _.T("enable_square_image_components_ui_web_with_float_button")?_.W("div",{"on:click":t},_.W(_.OF,{data:function(){return w().adButton}},
{adButtonViewModel:function(N){var Q={};
return _.W(_.Sj,{data:N.data,customCommandResolver:X,className:_.HR((Q.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,Q.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=y,Q))})}})):_.W(_.OF,{data:function(){return w().adButton}},{adButtonViewModel:function(N){var Q={};
return _.W(_.Sj,{data:N.data,className:_.HR((Q.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,Q.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=y,Q))})}})}()))},"fb"),"square-image-layout-view-model",{props:{data:_.pK}});_.q9(_.LL(function(q){var w=q.data;var u=q.noBottomMargin;var y=q.typographyBump;var e=_.Bm();_.T("stop_av_measurement_on_detach")&&_.ZG(function(){nV(e)});
_.T("enable_web_home_top_landscape_image_layout_level_click")&&_.Sg(e,function(){return w().interaction},void 0,function(){return!0});
q=function(){return w().interaction};
q!==void 0&&q!==null||_.jZ(Error("Jh"));_.k$(e,{visibilityCallback:function(Q){if(Q){var I;(Q=(I=w().interaction)==null?void 0:I.onFirstVisible)&&_.bn(Q);var U;if(I=(U=w().adLayoutData)==null?void 0:U.activeViewData)G3(e,I),_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&nV(e)})}else _.T("stop_av_measurement_on_detach")&&nV(e)},
showOption:_.R1,hideOption:ct});var t=function(){var Q,I,U;return(Q=_.C(w().thumbnailImage,Uu))==null?void 0:(I=Q.background)==null?void 0:(U=I.backgroundImageSource)==null?void 0:U.imageSources};
q=_.P(_.r4(!1,void 0,"GIwTMc"));var X=q.next().value,G=q.next().value;q=_.QS(function(){G(!0)});
var n=_.QS(function(){G(!1)}),N=function(){return X()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.W("top-landscape-image-layout-view-model",{class:function(){var Q;return((Q=w().interaction)==null?0:Q.onTap)&&_.T("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:e,"on:mouseenter":q,"on:mouseleave":n},_.W("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.W(_.r,{cond:function(){return t()&&t().length>0},
then:function(){return _.W("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.rm({top:"0","background-image":function(){return"url("+String(t()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.W(_.r,{cond:function(){return!!w().adButtonHoverOverlay},
then:function(){return _.W("div",{class:N},_.W(_.OF,{data:function(){return w().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:s$T}))}}),_.W("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.W(_.OF,{data:function(){return w().thumbnailImage}},{adImageViewModel:function(Q){return _.W(_.u_,{data:Q.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.T("enable_web_home_top_landscape_image_layout_level_click")})}})),_.W("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.W(_.ln,{data:{sources:[{clientResource:{imageName:_.T("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.W("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.W(_.OF,{data:function(){return w().feedAdMetadata}},{feedAdMetadataViewModel:function(Q){return _.W(oiP,{data:Q.data,
noBottomMargin:function(){return u==null?void 0:u()},
listenToTapEvent:function(){return _.T("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return y==null?void 0:y()}})}})))},"gb"),"top-landscape-image-layout-view-model",{props:{data:_.pK,
noBottomMargin:_.pK,typographyBump:_.pK}});_.q9(_.LL(function(q){var w=q.data;var u=q.typographyBump;var y=_.Bm();_.T("stop_av_measurement_on_detach")&&_.ZG(function(){nV(y)});
_.k$(y,{visibilityCallback:function(e){if(e){var t;(e=(t=w().interaction)==null?void 0:t.onFirstVisible)&&_.bn(e);var X;if(t=(X=w().adLayoutData)==null?void 0:X.activeViewData)G3(y,t),_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&nV(y)})}else _.T("stop_av_measurement_on_detach")&&nV(y)},
showOption:_.R1,hideOption:ct});return _.W("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:y},_.W("div",null,_.W(_.OF,{data:function(){return w().videoLockup}},{lockupViewModel:function(e){return _.W(_.Mw,{data:e.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:u})}})))},"hb"),"video-display-button-group-layout-view-model",{props:{data:_.pK,
noBottomMargin:_.pK,typographyBump:_.pK}});_.q9(_.LL(function(q){var w=q.data;var u=q.typographyBump;var y=_.Bm();_.T("stop_av_measurement_on_detach")&&_.ZG(function(){nV(y)});
_.k$(y,{visibilityCallback:function(e){if(e){var t;(e=(t=w().interaction)==null?void 0:t.onFirstVisible)&&_.bn(e);var X;if(t=(X=w().adLayoutData)==null?void 0:X.activeViewData)G3(y,t),_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&nV(y)})}else _.T("stop_av_measurement_on_detach")&&nV(y)},
showOption:_.R1,hideOption:ct});return _.W("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:y},_.W("div",null,_.W(_.OF,{data:function(){return w().videoLockup}},{lockupViewModel:function(e){return _.W(_.Mw,{data:e.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:u})}})))},"ib"),"video-display-full-layout-view-model",{props:{data:_.pK,
noBottomMargin:_.pK,typographyBump:_.pK}});_.Nij=_.LL(function(q){var w=q.data;q=_.Bm();return _.W("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:q},_.W(_.r,{cond:function(){return w().imageBadge},
then:function(u){return _.W(_.ln,{data:u,alt:""})}}))},"jb");var Q$T=_.LL(function(q){var w=q.data;var u=q.customCommandResolver;q=_.Bm();_.Sg(q,function(){return w().interaction},u);
_.k$(q,{visibilityCallback:function(y){var e,t=(e=w().interaction)==null?void 0:e.onFirstVisible;y&&t&&_.bn(t)},
showOption:_.R1});return _.W("carousel-ad-card-image-view-model",{class:function(){var y;return((y=w().interaction)==null?0:y.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:q,"aria-label":function(){var y,e;return(y=w().interaction)==null?void 0:(e=y.accessibility)==null?void 0:e.label}},_.W(_.OF,{data:function(){return w().adImage}},{adImageViewModel:function(y){return _.W(_.u_,{data:y.data,
customCommandResolver:u})}}),_.W("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.W(_.OF,{data:function(){return w().badge}},{adCardBadgeViewModel:_.Nij})),_.W(_.dm,{model:{color:4}}))},"kb");var IxT=_.LL(function(q){var w=_.P(_.r4(0,void 0,"o9Bzd")),u=w.next().value;w.next();var y=w.next().value,e=_.P(_.r4(!1,void 0,"KLdzYe"));w=e.next().value;var t=e.next().value,X;_.ZG(function(){clearTimeout(X)});
e=_.QS(function(){var N;((N=q.animate)==null?0:N.call(q))?(t(!0),X=setTimeout(function(){t(!1);G()},200)):G();
return!1});
var G=function(){y(function(N){return(N+q.numShownItems())%q.data().length})},n={};
return _.W("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.W("div",{class:_.HR("ytwHorizontalCarouselCarouselWrapper")},_.W("div",{class:_.HR("ytwHorizontalCarouselCarouselInnerWrapper",(n.ytwHorizontalCarouselAnimating=w,n))},_.W(_.mL,{each:q.data,keyBy:"INDEX"},function(N,Q){return _.W("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.rm({"flex-basis":function(){return"calc((100% - (8px * "+(q.numShownItems()-1)+")) / "+q.numShownItems()+")"},
order:function(){var I=Q-u();I<0&&(I+=q.data().length);return I}})},q.children(N,Q))}))),_.W("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":e},q.nextButton()))},"lb");var iWj=_.LL(function(q){var w=q.data;var u=q.customCommandResolver;var y=q.expansive;q=_.Bm();_.k$(q,{visibilityCallback:function(e){var t,X=(t=w().interaction)==null?void 0:t.onFirstVisible;e&&X&&_.bn(X)},
showOption:_.R1});return _.W("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:q},_.W(IxT,{data:function(){var e;return((e=w())==null?void 0:e.carouselAdCards)||[]},
nextButton:function(){return _.W(_.OF,{data:function(){return w().nextButton}},{buttonViewModel:function(e){var t=e.data;
return _.W(_.Zs,{data:function(){return(y==null?0:y())?Object.assign({},t(),{style:"mono"}):t()},
className:_.T("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(e){return _.W(_.OF,{data:e},{carouselAdCardImageViewModel:function(t){return _.W(Q$T,{data:t.data,customCommandResolver:u})}})}))},"mb");var rNP=_.LL(function(q){var w=q.data;var u=q.customCommandResolver;var y=q.className;var e=q.buttonClassName;var t=q.animationEntityKey;var X=q.expansive;return _.W("carousel-button-view-model",{class:_.HR("ytwCarouselButtonViewModelHost",y)},_.W(_.OF,{data:function(){return w().carousel}},{carouselAdCardCollectionViewModel:function(G){return _.W(iWj,{data:G.data,
customCommandResolver:u,expansive:X})}}),_.W(_.OF,{data:function(){return w().button}},{adButtonViewModel:function(G){var n=G.data;
return _.W(_.Sj,{data:function(){return(X==null?0:X())?Object.assign({},n(),{style:"AD_BUTTON_STYLE_TONAL"}):n()},
className:e,customCommandResolver:u,animationEntityKey:t})}}))},"nb");_.U7j=_.LL(function(q){var w=q.data;q=q.className;var u=_.Bm();_.p4(function(){var y;((y=w())==null?0:y.backgroundColor)&&u.value.setAttribute("data-background-color",String(w().backgroundColor))});
return _.W("pivot-button-view-model",{el:u,class:_.HR("ytwPivotButtonViewModelHost",q)},_.W(_.Mq,{command:function(){var y=w();y=y.onClickCommand?_.Zh(y.onClickCommand):y.contentDescription?_.xN(y.contentDescription):void 0;return y},
ariaLabel:function(){return w().contentDescription}},_.W(_.r,{cond:function(){return w().thumbnail},
then:function(y){return _.W(_.ln,{data:y,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.W(_.r,{cond:function(){return w().icon},
then:function(y){return _.W(_.U3,{icon:function(){return y().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"ob");_.TiT=_.LL(function(q){var w=q.data;var u=q.buttonShapeOverrideables;return _.W("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.W(_.OF,{data:function(){return w().buttonViewModels}},{buttonViewModel:function(y){return _.W(_.Zs,{data:y.data,
buttonOverrides:u})},
likeButtonViewModel:function(y){return _.W(_.op,{data:y.data,buttonShapeOverrideables:u})},
dislikeButtonViewModel:function(y){return _.W(_.Oi,{data:y.data,buttonShapeOverrideables:u})}}))},"pb");var CJc=_.LL(function(q){var w=q.avatar;var u=q.headline;var y=q.badge;var e=q.description;var t=q.expansive;q={};return _.W("yt-ad-metadata-shape",{class:_.HR("ytAdMetadataShapeHost",(q.ytAdMetadataShapeHostLarge=t,q))},_.W("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.W(_.r,{cond:w,then:function(X){return _.W(_.T5F,{data:function(){return(t==null?0:t())?Object.assign({},X(),{size:"AD_AVATAR_SIZE_MPLUS"}):X()}})}}),_.W("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.W(_.Lr,{text:u,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.W(_.r,{cond:y,then:function(X){return _.W(_.ll,{data:function(){return(t==null?0:t())?Object.assign({},X(),{style:"AD_BADGE_STYLE_STARK"}):X()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.W("h2",{class:"ytAdMetadataShapeHostDescription"},_.W(_.Lr,{text:e,
linkInheritColor:!0})))},"qb");var d7P=_.LL(function(q){var w=q.data;var u=q.onShow;var y=q.expansive;q=_.Bm();_.Sg(q,function(){return w().interaction});
_.p4(function(){var t,X=(t=w().animatedRenderingConfig)==null?void 0:t.delayedSecondsToVisible;if(X){var G=setTimeout(u,X*1E3);_.ZG(function(){clearTimeout(G)})}});
var e={};return _.W("reels-ad-card-buttoned-view-model",{class:_.HR(function(){var t;return((t=w().interaction)==null?0:t.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(e.ytwReelsAdCardButtonedViewModelHostExpansive=y,e)),
el:q},_.W(CJc,{avatar:function(){return _.C(w().avatar,rIZ)},
headline:function(){return w().headline},
badge:function(){return _.C(w().adBadge,ULT)},
description:function(){return w().description},
expansive:y}),_.W(_.OF,{data:function(){return w().ctaButton}},{adButtonViewModel:function(t){var X=t.data;
return _.W(_.Sj,{data:function(){return(y==null?0:y())?Object.assign({},X(),{style:"AD_BUTTON_STYLE_FILLED"}):X()}})}}))},"rb");var OW$=_.LL(function(q){var w=q.data;q=q.expansive;var u=_.Bm();_.T("web_ad_metadata_clickable")&&_.Sg(u,function(){return w().interaction});
var y={};y=_.s3("ytwReelsAdMetadataViewModelHost",(y.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.T("web_ad_metadata_clickable"),y));return _.W("reels-ad-metadata-view-model",{class:y,el:u},_.W(CJc,{avatar:function(){return _.C(w().avatar,rIZ)},
headline:function(){return w().headline},
badge:function(){return _.C(w().adBadge,ULT)},
description:function(){return w().description},
expansive:q}))},"sb");var ogT={iconPosition:"icon-with-label",size:"L"},VJT=_.LL(function(q){var w=q.data;q=q.overlayDensity;var u=_.Bm(),y=_.jf(q,0);_.DG(function(){u.value.setAttribute("overlay-density",String(y()))});
var e=function(){var I;return(I=w().reelsAdCardButtonedEntityKey)!=null?I:""},t=function(){return e()+"/ad_button"},X=_.Qo(Ocy,e),G=function(){var I,U;
return(U=(I=X())==null?void 0:I.value)!=null?U:!1},n=_.aV(m7o),N=function(){return Object.assign({},ogT,(n()||y()===2)&&{style:"overlay-dark"})};
q={};var Q={};return _.W("reels-player-overlay-layout-view-model",{class:_.HR("ytwReelsPlayerOverlayLayoutViewModelHost",(q.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!w().extension},q.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},q)),
el:u},_.W("div",{class:_.HR("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(Q.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},Q))},_.W("div",{"aria-hidden":function(){return G()},
class:_.HR("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return G()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.rm({"transition-duration":function(){return ztc(w())}})},_.W(_.OF,{data:function(){return w().adMetadata}},{reelsAdMetadataViewModel:function(I){return _.W(OW$,{data:I.data,
expansive:function(){return y()===1}})}}),_.W(_.r,{cond:function(){return w().extension},
then:function(I){return _.W("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.W(_.OF,{data:I},{adButtonViewModel:function(U){return _.W(_.Sj,{data:U.data,animationEntityKey:t,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(U){return _.W(rNP,{data:U.data,animationEntityKey:t,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return y()===1}})}}))}})),_.W("div",{"aria-hidden":function(){return!G()},
class:_.HR("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return G()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.rm({"transition-duration":function(){return ztc(w())}})},_.W(_.OF,{data:function(){return w().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(I){return _.W(d7P,{data:I.data,
onShow:function(){_.hM(_.IH("booleanEntity",e(),{key:e(),value:!0}))},
expansive:function(){return y()===1}})}}))),_.W("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.W(_.OF,{data:function(){return w().actions}},{reelActionBarViewModel:function(I){return _.W(_.TiT,{data:I.data,
buttonShapeOverrideables:N})}}),_.W(_.OF,{data:function(){return w().menu}},{buttonViewModel:function(I){return _.W(_.Zs,{data:I.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},N(),{type:"tonal"})}})}}),_.W(_.OF,{data:function(){return w().pivotButton}},{pivotButtonViewModel:function(I){return _.W(_.U7j,{data:I.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"tb");_.q9(VJT,"reels-player-overlay-layout-view-model",{props:{data:_.pK,overlayDensity:_.pK}});var yp=function(){var q=_.Y.apply(this,arguments)||this;q.noBottomMargin=!1;q.overlayDensity=0;return q};
_.O(yp,_.Y);_.k=yp.prototype;
_.k.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]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.T("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]"}}}}}};
_.k.ready=function(){var q=this;hlz(function(){q.isAttached&&es(q.JSC$13294_storedAdSlotMetadata,q.JSC$13294_storedAdLayoutMetadata,q.adSlotMetadata,q.adLayoutMetadata)&&wH(xV(),q.JSC$13294_storedAdSlotMetadata,q.JSC$13294_storedAdLayoutMetadata)})};
_.k.attached=function(){es(this.JSC$13294_storedAdSlotMetadata,this.JSC$13294_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&W9k(xV(),this.JSC$13294_storedAdSlotMetadata,this.JSC$13294_storedAdLayoutMetadata)};
_.k.detached=function(){es(this.JSC$13294_storedAdSlotMetadata,this.JSC$13294_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&wH(xV(),this.JSC$13294_storedAdSlotMetadata,this.JSC$13294_storedAdLayoutMetadata)};
_.k.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.k.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13294_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13294_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13294_storedAdLayoutMetadata!==void 0&&this.JSC$13294_storedAdSlotMetadata!==void 0&&wH(xV(),this.JSC$13294_storedAdSlotMetadata,this.JSC$13294_storedAdLayoutMetadata),W9k(xV(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13294_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13294_storedAdSlotMetadata=this.adSlotMetadata)};
_.x$.Object.defineProperties(yp.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.adLayoutMetadata}}});
yp.prototype.onAdMetadataChanged=yp.prototype.onAdMetadataChanged;yp.prototype.onTypographyBumpChanged=yp.prototype.onTypographyBumpChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],yp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],yp.prototype,"rendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],yp.prototype,"ytComponentBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],yp.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],yp.prototype,"noBottomMargin",void 0);_.c([_.v(),_.h("design:type",Object)],yp.prototype,"overlayDensity",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],yp.prototype,"typographyBump",void 0);_.c([_.Z("data.adLayoutMetadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],yp.prototype,"adLayoutMetadata",null);_.c([_.v(),_.h("design:type",Object)],yp.prototype,"adSlotMetadata",void 0);
_.c([_.Wj("ytd-video-display-full-buttoned-and-button-group-renderer"),_.h("design:type",HTMLElement)],yp.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.c([_.nL("typographyBump"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yp.prototype,"onTypographyBumpChanged",null);_.c([_.nL("adLayoutMetadata","adSlotMetadata"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yp.prototype,"onAdMetadataChanged",null);
yp=_.c([_.E({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],yp);
_.R(yp,"ytd-in-feed-ad-layout-renderer",function(){if(IqF!==void 0)return IqF;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return IqF=q},
{mode:_.kB("kevlar_poly_si_batch_j028")?1:2});var fxa;var m76;var eo=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return q};
_.O(eo,_.Y);_.k=eo.prototype;_.k.computeHasLiveDescription=function(q){return!(q==null||!q.liveDescription)};
_.k.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.k.onYtToggleButton=function(q){var w,u=(w=this.data)==null?void 0:w.videoReminderEntityKey;u&&this.ytdReduxBehavior.dispatch(_.IH("upcomingEventReminderStateEntity",u,{key:u,state:q.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.k.attached=function(){this.updateChannelBanner()};
_.k.dataChanged=function(){this.updateChannelBanner()};
_.k.videoReminderStateChanged=function(){var q;this.videoReminderState&&_.C((q=this.data)==null?void 0:q.cta,_.DE)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.k.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var q=_.wm(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);q&&(q.startsWith("//")&&(q="https:"+q),this.hostElement.classList.add("channel-banner"),_.Pj(this.hostElement,{"--ytvmh-channel-banner":"url("+q+")"}))}else _.T("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.k.onPlayerReady=function(){this.onIronResize()};
_.k.maybeFlushDebouncer=function(){_.T("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(q){var w;q=(w=q.getElementsByTagName("yt-attributed-string"))==null?void 0:w[0];TTj(q==null?void 0:q.polymerController)})};
_.k.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var q=_.A(this.hostElement).querySelector("#live-description"),w;q&&((w=this.data)==null?0:w.shortLiveDescription)&&q.clientWidth<q.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
eo.prototype.onIronResize=eo.prototype.onIronResize;eo.prototype.videoReminderStateChanged=eo.prototype.videoReminderStateChanged;eo.prototype.dataChanged=eo.prototype.dataChanged;eo.prototype.onYtToggleButton=eo.prototype.onYtToggleButton;_.c([_.D(_.mF),_.h("design:type",Object)],eo.prototype,"ironResizableBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],eo.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],eo.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],eo.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],eo.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],eo.prototype,"data",void 0);_.c([_.v({selectorArgs:["data.videoReminderEntityKey"],selector:Qky}),_.h("design:type",Object)],eo.prototype,"videoReminderState",void 0);
_.c([_.v({reflectToAttribute:!0,value:_.T("web_modern_buttons")}),_.h("design:type",Boolean)],eo.prototype,"rounded",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.h("design:type",Boolean)],eo.prototype,"hasLiveDescription",void 0);_.c([_.v({reflectToAttribute:!0,value:_.T("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.h("design:type",Boolean)],eo.prototype,"resizableAdBannerSafariFix",void 0);
_.c([_.v({reflectToAttribute:!0,value:_.T("align_three_dot_menu_with_title_description")}),_.h("design:type",Boolean)],eo.prototype,"menuFix",void 0);_.c([_.s6("yt-formatted-string"),_.h("design:type",Array)],eo.prototype,"formattedStrings",void 0);_.c([_.Wj("#cta-button"),_.h("design:type",HTMLElement)],eo.prototype,"ctaButton",void 0);_.c([_.Gm("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],eo.prototype,"onYtToggleButton",null);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eo.prototype,"dataChanged",null);_.c([_.nL("videoReminderState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eo.prototype,"videoReminderStateChanged",null);_.c([_.Gm("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eo.prototype,"onIronResize",null);
eo=_.c([_.E({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],eo);
_.R(eo,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(m76!==void 0)return m76;var q=document.createElement("template");_.f(q,'\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      <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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return m76=q},{mode:1});var AN6;var kc=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};q.isLocked=!1;return q};
_.O(kc,_.Y);_.k=kc.prototype;_.k.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.k.onExpandedChanged=function(){this.expanded&&_.X4(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.k.onMouseOver=function(){this.maybeExpand()};
_.k.onTap=function(){this.maybeExpand()};
_.k.onExpandableTileExpanding=function(q){q!==this&&(this.expanded=!1)};
_.k.onExpandableTileLockAndCollapse=function(q){this.isLocked=!0;q!==this&&(this.expanded=!1)};
_.k.onExpandableTileUnlock=function(){this.isLocked=!1};
kc.prototype.onTap=kc.prototype.onTap;kc.prototype.onMouseOver=kc.prototype.onMouseOver;kc.prototype.onExpandedChanged=kc.prototype.onExpandedChanged;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],kc.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],kc.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],kc.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],kc.prototype,"expanded",void 0);_.c([_.I9("expanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kc.prototype,"onExpandedChanged",null);_.c([_.Gm("mouseover"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kc.prototype,"onMouseOver",null);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kc.prototype,"onTap",null);
kc=_.c([_.E({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],kc);
_.R(kc,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(AN6!==void 0)return AN6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return AN6=q},{mode:1});var JNP;var tW=function(){var q=_.Y.apply(this,arguments)||this;q.buttonOverrides={style:"overlay"};q.useYtdPlayer=_.T("use_ytd_player_for_desktop_masthead");q.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};q.playbackFinished=!1;q.JSC$13306_playerManager=null;q.JSC$13306_mastheadCounter=new dr3;return q};
_.O(tW,_.Y);_.k=tW.prototype;_.k.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"}}}};
_.k.created=function(){this.JSC$13306_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13306_playerManager=new GV)};
_.k.ready=function(){var q=this;this.JSC$13306_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var w=_.A(this.hostElement).querySelector("#player");this.useYtdPlayer?w.style.display="none":(this.ytdPlayer.style.display="none",hsX(this.JSC$13306_playerManager,w,function(){q.onPlaybackEnded()}),_.A(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var u;
((u=q.data)==null?0:u.navigationEndpoint)&&_.t7(q.hostElement,"yt-navigate",{endpoint:q.data.navigationEndpoint})}))};
_.k.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13306_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.k.attached=function(){var q=this;_.vj(function(){q.maybePlayVideo()})};
_.k.maybePlayVideo=function(){var q=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$13306_playerManager.playVideo(),this.getPlayerPromise().then(function(){q.JSC$13306_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.k.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13306_playerManager.stopVideo()};
_.k.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var q,w={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((q=this.data.playbackStartMs)!=null?q:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(w);this.setupYtdPlayer()}else l8$(this.JSC$13306_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(j1c(this.JSC$13306_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.k.getPlayerPromise=function(){return this.JSC$13306_playerManager.getPlayerPromise()};
_.k.onYtToggleButton=function(q){this.useYtdPlayer?this.toggleMute(q.detail.toggled):q.detail.toggled?this.JSC$13306_playerManager.mute():this.JSC$13306_playerManager.unMute()};
_.k.onYtNavigate=function(q){var w=Xvf(q.detail.endpoint),u=FJs(this.data.clickthroughReportingData);w&&u&&(q.detail.endpoint.watchEndpoint?q.detail.tempData=u:_.xG(w,u,30))};
_.k.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.k.onExpandedChanged=function(){this.expanded?(_.X4(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.k.onMouseOver=function(){this.maybeExpand()};
_.k.onTap=function(){this.maybeExpand()};
_.k.onExpandableTileExpanding=function(q){q!==this&&(this.stopVideo(),this.expanded=!1)};
_.k.onExpandableTileLockAndCollapse=function(q){q!==this&&(this.isLocked=!0,this.expanded=!1)};
_.k.onExpandableTileUnlock=function(){this.isLocked=!1};
_.k.lockAndCollapseExpandableTiles=function(){_.Pw(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.k.unlockExpandableTiles=function(){_.Pw(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.k.setupYtdPlayer=function(){var q=this,w;return _.F(function(u){if(u.nextAddress==1)return _.H(u,q.ytdPlayer.getPlayerPromise(),2);w=u.yieldResult;w.addEventListener("onStateChange",function(y){q.onPlayerStateChange(y)});
w.addEventListener("onCueRangeExit",function(y){q.onCueRangeExit(y)});
_.HI(u)})};
_.k.onPlayerStateChange=function(q){if(q===1&&(q=this.ytdPlayer.getPlayer())){var w=q.getCurrentTime(),u,y,e=w+((y=(u=this.data)==null?void 0:u.playbackDurationMs)!=null?y:0)/1E3;q.addCueRange("playback",w,e);this.JSC$13306_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.k.onCueRangeExit=function(q){q==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.k.toggleMute=function(q){var w=this,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,w.ytdPlayer.getPlayerPromise(),2);u=y.yieldResult;q?u.mute():u.unMute();_.HI(y)})};
tW.prototype.onTap=tW.prototype.onTap;tW.prototype.onMouseOver=tW.prototype.onMouseOver;tW.prototype.onExpandedChanged=tW.prototype.onExpandedChanged;tW.prototype.onYtNavigate=tW.prototype.onYtNavigate;tW.prototype.onYtToggleButton=tW.prototype.onYtToggleButton;tW.prototype.dataChanged=tW.prototype.dataChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],tW.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],tW.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],tW.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],tW.prototype,"expanded",void 0);_.c([_.v(),_.h("design:type",Object)],tW.prototype,"buttonOverrides",void 0);
_.c([_.v(),_.h("design:type",Object)],tW.prototype,"useYtdPlayer",void 0);_.c([_.Wj("#ytd-player"),_.h("design:type",Object)],tW.prototype,"ytdPlayer",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tW.prototype,"dataChanged",null);_.c([_.Gm("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],tW.prototype,"onYtToggleButton",null);
_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],tW.prototype,"onYtNavigate",null);_.c([_.I9("expanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tW.prototype,"onExpandedChanged",null);_.c([_.Gm("mouseover"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tW.prototype,"onMouseOver",null);
_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tW.prototype,"onTap",null);tW=_.c([_.E({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],tW);
_.R(tW,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(JNP!==void 0)return JNP;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return JNP=q},{mode:1});var ztP;var Pa=function(){return _.Y.apply(this,arguments)||this};
_.O(Pa,_.Y);Pa.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Pa.prototype.onShow=function(){var q=_.A(this.hostElement).querySelector("#live-description"),w;q&&((w=this.data)==null?0:w.shortLiveDescription)&&q.clientWidth<q.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Pa.prototype.onYtToggleButton=function(q){var w,u=(w=this.data)==null?void 0:w.videoReminderEntityKey;u&&this.ytdReduxBehavior.dispatch(_.IH("upcomingEventReminderStateEntity",u,{key:u,state:q.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Pa.prototype.videoReminderStateChanged=function(){var q;this.videoReminderState&&_.C((q=this.data)==null?void 0:q.cta,_.DE)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Pa.prototype.videoReminderStateChanged=Pa.prototype.videoReminderStateChanged;Pa.prototype.onYtToggleButton=Pa.prototype.onYtToggleButton;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Pa.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Pa.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],Pa.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Pa.prototype,"data",void 0);
_.c([_.v({selectorArgs:["data.videoReminderEntityKey"],selector:Qky}),_.h("design:type",Object)],Pa.prototype,"videoReminderState",void 0);_.c([_.Gm("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Pa.prototype,"onYtToggleButton",null);_.c([_.nL("videoReminderState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Pa.prototype,"videoReminderStateChanged",null);
Pa=_.c([_.E({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Pa);
_.R(Pa,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(ztP!==void 0)return ztP;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return ztP=q},{mode:_.kB("kevlar_poly_si_batch_j065")?1:2});var axF;var Xk=function(){var q=_.Y.apply(this,arguments)||this;q.useYtdPlayer=_.T("use_ytd_player_for_desktop_masthead");q.buttonOverrides={style:"overlay"};q.JSC$13314_playerManager=null;q.JSC$13314_mastheadCounter=new dr3;q.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return q};
_.O(Xk,_.Y);_.k=Xk.prototype;_.k.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"}}}};
_.k.created=function(){this.JSC$13314_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13314_playerManager=new GV)};
_.k.ready=function(){var q=this;this.JSC$13314_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var w;(w=this.embeddedPlayer)==null||w.remove()}else{var u;(u=this.ytdPlayer)==null||u.remove();hsX(this.JSC$13314_playerManager,this.embeddedPlayer,function(){q.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){q.data&&q.data.navigationEndpoint&&_.t7(q.hostElement,"yt-navigate",{endpoint:q.data.navigationEndpoint})})}};
_.k.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13314_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.k.dataChanged=function(){var q=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var w=!this.data.disableAutoPlayback,u,y={autoplay:w,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((u=this.data.playbackStartMs)!=null?u:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(w?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(y);this.setupYtdPlayer()}else l8$(this.JSC$13314_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(j1c(this.JSC$13314_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13314_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.Pw(q.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");q.JSC$13314_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.k.getPlayerPromise=function(){return this.JSC$13314_playerManager.getPlayerPromise()};
_.k.onYtToggleButton=function(q){this.useYtdPlayer?this.toggleMute(q.detail.toggled):q.detail.toggled?this.JSC$13314_playerManager.mute():this.JSC$13314_playerManager.unMute()};
_.k.onYtNavigate=function(q){var w=Xvf(q.detail.endpoint),u=FJs(this.data.clickthroughReportingData);w&&u&&(q.detail.endpoint.watchEndpoint?q.detail.tempData=u:_.xG(w,u,30))};
_.k.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13314_playerManager.stopVideo()};
_.k.setupYtdPlayer=function(){var q=this,w;return _.F(function(u){if(u.nextAddress==1)return _.H(u,q.ytdPlayer.getPlayerPromise(),2);w=u.yieldResult;w.addEventListener("onStateChange",function(y){q.onPlayerStateChange(y)});
w.addEventListener("onCueRangeExit",function(y){q.onCueRangeExit(y)});
_.HI(u)})};
_.k.onPlayerStateChange=function(q){if(q===1&&(q=this.ytdPlayer.getPlayer())){var w=q.getCurrentTime(),u,y,e=w+((y=(u=this.data)==null?void 0:u.playbackDurationMs)!=null?y:0)/1E3;q.addCueRange("playback",w,e);_.Pw(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13314_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.k.onCueRangeExit=function(q){q==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.k.toggleMute=function(q){var w=this,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,w.ytdPlayer.getPlayerPromise(),2);u=y.yieldResult;q?u.mute():u.unMute();_.HI(y)})};
_.x$.Object.defineProperties(Xk.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var q,w;if(!((q=this.data)==null?0:(w=q.accessibilityData)==null?0:w.label))return"Ad primary link";var u,y;return _.ID("AD_TITLE",{title:(u=this.data)==null?void 0:(y=u.accessibilityData)==null?void 0:y.label})}}});
Xk.prototype.onYtMastheadHidden=Xk.prototype.onYtMastheadHidden;Xk.prototype.onYtNavigate=Xk.prototype.onYtNavigate;Xk.prototype.onYtToggleButton=Xk.prototype.onYtToggleButton;Xk.prototype.dataChanged=Xk.prototype.dataChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Xk.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Xk.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Xk.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Xk.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],Xk.prototype,"useYtdPlayer",void 0);_.c([_.Wj("ytd-toggle-button-renderer"),_.h("design:type",Object)],Xk.prototype,"muteButton",void 0);_.c([_.v(),_.h("design:type",Object)],Xk.prototype,"buttonOverrides",void 0);
_.c([_.Z("data.accessibilityData.label"),_.h("design:type",String),_.h("design:paramtypes",[])],Xk.prototype,"titleAriaLabel",null);_.c([_.Wj("#replay-button"),_.h("design:type",Object)],Xk.prototype,"replayButton",void 0);_.c([_.Wj("#player-container"),_.h("design:type",Object)],Xk.prototype,"playerContainer",void 0);_.c([_.Wj("#player"),_.h("design:type",Object)],Xk.prototype,"embeddedPlayer",void 0);_.c([_.Wj("#ytd-player"),_.h("design:type",Object)],Xk.prototype,"ytdPlayer",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xk.prototype,"dataChanged",null);_.c([_.Gm("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Xk.prototype,"onYtToggleButton",null);_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Xk.prototype,"onYtNavigate",null);
_.c([_.Gm("yt-masthead-hidden"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xk.prototype,"onYtMastheadHidden",null);Xk=_.c([_.E({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],Xk);
_.R(Xk,"ytd-video-masthead-ad-primary-video-renderer",function(){if(axF!==void 0)return axF;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return axF=q},{mode:2});var D7T;var Fk=function(){var q=_.Y.apply(this,arguments)||this;q.collapsed=!1;q.impressionResolver=_.S6();q.JSC$13318_activeViewMeasurementDataResolver=_.S6();q.actionMap={"yt-mute-ad-action":"handleMuteAd"};return q};
_.O(Fk,_.Y);_.k=Fk.prototype;_.k.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"}}}};
_.k.ready=function(){var q=this;_.A(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){q.expandAd()});
this.hostElement.addEventListener("yt-action",function(w){if(w.detail.actionName==="yt-service-request"){var u=w.detail.args[1];u.videoMastheadAdMuteCommand&&(q.collapseAd(u.videoMastheadAdMuteCommand.encryptedMastheadId),w.stopPropagation())}})};
_.k.attached=function(){var q=this;_.vj(function(){q.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(w){if(!q.collapsed){w=_.P(w);for(var u=w.next();!u.done;u=w.next())u=u.value,Li(u.baseUrl,u.attributionSrcMode);q.data.impressionCommand=void 0}});
this.JSC$13318_activeViewMeasurementDataResolver.promise.then(function(w){q.ytdActiveViewBehavior.enableActiveViewMeasurement(w,15)});
_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&q.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.k.dataChanged=function(){var q;((q=this.data.impressionCommand)==null?0:q.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var w;((w=this.data)==null?0:w.activeView)&&this.JSC$13318_activeViewMeasurementDataResolver.resolve(this.data.activeView);(q=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(q.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.k.computeWidescreen=function(q){var w;return!!(q&&((w=_.C(q,s5r))==null?0:w.isWidescreen))};
_.k.computeExpandable=function(q){return!!(q&&q.length>0)};
_.k.onIronResize=function(){if(this.expandable){var q=_.A(this.hostElement).querySelector("#expandable-tile-container :first-child");q&&!q.expanded&&(q.expanded=!0)}};
_.k.handleMuteAd=function(){this.collapseAd(null)};
_.k.restoreCollapsedState=function(q){this.collapsed=_.UC().get("HIDDEN_MASTHEAD_ID")===q};
_.k.collapseAd=function(q){if(q){var w=_.UC();w.set("HIDDEN_MASTHEAD_ID",q);w.save()}(q=_.A(this.hostElement).querySelector("#video"))&&_.t7(q,"yt-masthead-hidden");this.collapsed=!0};
_.k.expandAd=function(){var q=_.UC();q.set("HIDDEN_MASTHEAD_ID",!1);q.save();location.reload()};
_.k.detached=function(){_.T("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
Fk.prototype.onIronResize=Fk.prototype.onIronResize;Fk.prototype.dataChanged=Fk.prototype.dataChanged;_.c([_.D(_.mF),_.h("design:type",Object)],Fk.prototype,"ironResizableBehavior",void 0);_.c([_.D(oT),_.h("design:type",Object)],Fk.prototype,"ytdActiveViewBehavior",void 0);_.c([_.D(_.zr),_.h("design:type",Object)],Fk.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Fk.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Fk.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Fk.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Fk.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.h("design:type",Boolean)],Fk.prototype,"widescreen",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.h("design:type",Boolean)],Fk.prototype,"expandable",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Fk.prototype,"collapsed",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Fk.prototype,"dataChanged",null);
_.c([_.Gm("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Fk.prototype,"onIronResize",null);Fk=_.c([_.E({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],Fk);
_.R(Fk,"ytd-video-masthead-ad-v3-renderer",function(){if(D7T!==void 0)return D7T;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return D7T=q},{mode:2});var GH=function(){return _.Y.apply(this,arguments)||this};
_.O(GH,_.Y);_.k=GH.prototype;_.k.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.k.ready=function(){var q=this;hlz(function(){q.isAttached&&es(q.JSC$13323_storedAdSlotMetadata,q.JSC$13323_storedAdLayoutMetadata,q.adSlotMetadata,q.adLayoutMetadata)&&wH(xV(),q.JSC$13323_storedAdSlotMetadata,q.JSC$13323_storedAdLayoutMetadata)})};
_.k.attached=function(){es(this.JSC$13323_storedAdSlotMetadata,this.JSC$13323_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&W9k(xV(),this.JSC$13323_storedAdSlotMetadata,this.JSC$13323_storedAdLayoutMetadata)};
_.k.detached=function(){es(this.JSC$13323_storedAdSlotMetadata,this.JSC$13323_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&wH(xV(),this.JSC$13323_storedAdSlotMetadata,this.JSC$13323_storedAdLayoutMetadata)};
_.k.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13323_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13323_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13323_storedAdLayoutMetadata!==void 0&&this.JSC$13323_storedAdSlotMetadata!==void 0&&wH(xV(),this.JSC$13323_storedAdSlotMetadata,this.JSC$13323_storedAdLayoutMetadata),W9k(xV(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13323_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13323_storedAdSlotMetadata=this.adSlotMetadata)};
_.x$.Object.defineProperties(GH.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.adLayoutMetadata}}});
GH.prototype.onAdMetadataChanged=GH.prototype.onAdMetadataChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],GH.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],GH.prototype,"data",void 0);_.c([_.Z("data.adLayoutMetadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],GH.prototype,"adLayoutMetadata",null);
_.c([_.v(),_.h("design:type",Object)],GH.prototype,"adSlotMetadata",void 0);_.c([_.nL("adLayoutMetadata","adSlotMetadata"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GH.prototype,"onAdMetadataChanged",null);GH=_.c([_.E({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],GH);
_.R(GH,"ytd-page-top-ad-layout-renderer",function(){if(fxa!==void 0)return fxa;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return fxa=
q},{mode:_.kB("kevlar_poly_si_batch_j070")?1:2});var ZWj;var nf=function(){var q=_.Y.apply(this,arguments)||this;q.noBottomMargin=!1;q.overlayDensity=0;q.typographyBump=!1;return q};
_.O(nf,_.Y);_.k=nf.prototype;
_.k.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]]"}}}}}};
_.k.ready=function(){var q=this;hlz(function(){q.isAttached&&q.adSlotMetadata&&HW$(xV(),q.adSlotMetadata)})};
_.k.attached=function(){if(this.adSlotMetadata){var q;if(this.adSlotMetadata===((q=this.data)==null?void 0:q.adSlotMetadata))nga(xV(),this.adSlotMetadata);else{var w;_.Y8(Error("Kh`"+this.adSlotMetadata+"`"+((w=this.data)==null?void 0:w.adSlotMetadata)))}}};
_.k.detached=function(){this.adSlotMetadata&&HW$(xV(),this.adSlotMetadata)};
_.k.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.k.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&HW$(xV(),this.adSlotMetadata),nga(xV(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.x$.Object.defineProperties(nf.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var q,w,u=_.C((q=this.data)==null?void 0:(w=q.fulfillmentContent)==null?void 0:w.fulfilledLayout,_.Q5x),y;return(q=(y=_.C(u==null?void 0:u.renderingContent,NZc))==null?void 0:y.layout)?q.toLowerCase().replace(/_/g,"-"):""}}});
nf.prototype.onAdSlotMetadataChanged=nf.prototype.onAdSlotMetadataChanged;nf.prototype.onTypographyBumpChanged=nf.prototype.onTypographyBumpChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],nf.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],nf.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],nf.prototype,"rendererBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],nf.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],nf.prototype,"noBottomMargin",void 0);_.c([_.v(),_.h("design:type",Object)],nf.prototype,"overlayDensity",void 0);_.c([_.v(),_.h("design:type",Object)],nf.prototype,"typographyBump",void 0);_.c([_.Wj("ytd-in-feed-ad-layout-renderer"),_.h("design:type",HTMLElement)],nf.prototype,"inFeedAdLayoutRenderer",void 0);
_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",String),_.h("design:paramtypes",[])],nf.prototype,"layout",null);_.c([_.nL("typographyBump"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nf.prototype,"onTypographyBumpChanged",null);_.c([_.nL("data.adSlotMetadata"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nf.prototype,"onAdSlotMetadataChanged",null);
nf=_.c([_.E({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],nf);
_.R(nf,"ytd-ad-slot-renderer",function(){if(ZWj!==void 0)return ZWj;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return ZWj=q},{mode:_.kB("kevlar_poly_si_batch_j077")?
1:2});var pg6;var Ha=function(){return _.Y.apply(this,arguments)||this};
_.O(Ha,_.Y);_.k=Ha.prototype;_.k.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"}}}};
_.k.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&uCu(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.k.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var q=_.P(this.data.impressionUrls),w=q.next();!w.done;w=q.next())w=w.value,sij(w,QiJ(w));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.k.attached=function(){var q=this;_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&q.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.k.detached=function(){_.T("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.x$.Object.defineProperties(Ha.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.T("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.T("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
Ha.prototype.dataChanged=Ha.prototype.dataChanged;Ha.prototype.onTap=Ha.prototype.onTap;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ha.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ha.prototype,"ytRendererBehavior",void 0);_.c([_.D(oT),_.h("design:type",Object)],Ha.prototype,"ytdActiveViewBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],Ha.prototype,"ytdReduxBehavior",void 0);
_.c([_.v({selector:_.$H}),_.h("design:type",Object)],Ha.prototype,"isGridViewEnabled",void 0);_.c([_.Z("isGridViewEnabled"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ha.prototype,"watchFeedBigThumbs",null);_.c([_.Z("isGridViewEnabled"),_.v({reflectToAttribute:!0}),_.h("design:type",String),_.h("design:paramtypes",[])],Ha.prototype,"thumbnailWidth",null);_.c([_.v(),_.h("design:type",Object)],Ha.prototype,"data",void 0);
_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ha.prototype,"onTap",null);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ha.prototype,"dataChanged",null);Ha=_.c([_.E({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],Ha);
_.R(Ha,"ytd-compact-promoted-video-renderer",function(){if(pg6!==void 0)return pg6;var q=document.createElement("template");_.f(q,'\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<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" 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-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" 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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return pg6=q},{mode:1});var $7T;_.JE("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var Wa=function(){return _.Y.apply(this,arguments)||this};
_.O(Wa,_.Y);Wa.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Wa.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Wa.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Wa.prototype,"data",void 0);Wa=_.c([_.E({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],Wa);
_.R(Wa,"ytd-search-pyv-renderer",function(){if($7T!==void 0)return $7T;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return $7T=q},{mode:1});var vgX;_.JE("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var sW=function(){var q=_.Y.apply(this,arguments)||this;q.roundedContainer=!0;q.JSC$13339_handleOpenPostCommentDialogActionAfterStamp=!1;q.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return q};
_.O(sW,_.Y);_.k=sW.prototype;
_.k.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}}};
_.k.onStampFinished=function(){this.JSC$13339_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.k.handleSignalActionOpenPostCommentDialogAction=function(){var q=_.A(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");q?q.openDialog():this.JSC$13339_handleOpenPostCommentDialogActionAfterStamp=!0};
_.k.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.k.computeHideBorder=function(){return this.isInEngagementPanel};
_.k.computeIsCompact=function(){return this.isInEngagementPanel};
_.k.computeUsesCompactLockup=function(q){return q==="BACKSTAGE_SURFACE_TYPE_HOME"||q==="BACKSTAGE_SURFACE_TYPE_SEARCH"||q==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||q==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||q==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||q==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.k.computeUsesFullLockup=function(){var q,w=(q=this.data)==null?void 0:q.post,u;q=(u=_.C(w,VcZ))==null?void 0:u.surface;var y;u=(y=_.C(w,mLT))==null?void 0:y.originalPost;var e;if(y=q||((e=_.C(u,VcZ))==null?void 0:e.surface))return!this.computeUsesCompactLockup(y)&&this.useUpdatedRepostUi;var t;return((t=_.C(w,mLT))==null?void 0:t.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.x$.Object.defineProperties(sW.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var q,w;return((w=_.C((q=this.data)==null?void 0:q.post,VcZ))==null?void 0:w.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.useUpdatedRepostUi}}});
sW.prototype.onYtCommentModerationPanelEmpty=sW.prototype.onYtCommentModerationPanelEmpty;sW.prototype.onStampFinished=sW.prototype.onStampFinished;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],sW.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],sW.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],sW.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],sW.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],sW.prototype,"roundedContainer",void 0);_.c([_.v({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.h("design:type",Boolean)],sW.prototype,"hideBorder",void 0);_.c([_.v({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.h("design:type",Boolean)],sW.prototype,"isCompact",void 0);
_.c([_.v({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.h("design:type",Boolean)],sW.prototype,"usesFullLockup",void 0);_.c([_.Gm("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sW.prototype,"onStampFinished",null);
_.c([_.Gm("ytd-comment-moderation-panel-empty"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],sW.prototype,"onYtCommentModerationPanelEmpty",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],sW.prototype,"isInEngagementPanel",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],sW.prototype,"useUpdatedRepostUi",null);
sW=_.c([_.E({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],sW);
_.R(sW,"ytd-backstage-post-thread-renderer",function(){if(vgX!==void 0)return vgX;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return vgX=q},{mode:1});var bWk;var NO=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.O(NO,_.Y);NO.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
NO.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var q=this.data.thumbnail.thumbnails;this.isDarkTheme&&(q=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(q=_.wm(q,24,void 0,"height"))?q:void 0}};
NO.prototype.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
NO.prototype.computeHasText=function(){var q;return!((q=this.data)==null||!q.text)};
_.x$.Object.defineProperties(NO.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.UY(this.bannerImageUrl))+'");'}}});
NO.prototype.computeHasText=NO.prototype.computeHasText;NO.prototype.computeBannerImageUrl=NO.prototype.computeBannerImageUrl;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],NO.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],NO.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],NO.prototype,"ytRendererBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],NO.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],NO.prototype,"isDarkTheme",void 0);_.c([_.v(),_.h("design:type",String)],NO.prototype,"bannerImageUrl",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.h("design:type",Boolean)],NO.prototype,"hasText",void 0);_.c([_.nL("data","isDarkTheme"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NO.prototype,"computeBannerImageUrl",null);
_.c([_.nL("data.text"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NO.prototype,"computeHasText",null);_.c([_.Z("bannerImageUrl"),_.h("design:type",Object),_.h("design:paramtypes",[])],NO.prototype,"bannerStyle",null);NO=_.c([_.E({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],NO);
_.R(NO,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(bWk!==void 0)return bWk;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return bWk=q},{mode:1});var YRX;var Qp=function(){return _.Y.apply(this,arguments)||this};
_.O(Qp,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Qp.prototype,"data",void 0);Qp=_.c([_.E({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],Qp);
_.R(Qp,"ytd-backstage-zero-state-renderer",function(){if(YRX!==void 0)return YRX;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return YRX=q},{mode:1});var ggZ;var IP=function(){return _.Y.apply(this,arguments)||this};
_.O(IP,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],IP.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],IP.prototype,"data",void 0);_.c([_.v({computed:"computeIcon_(data.icon)"}),_.h("design:type",String)],IP.prototype,"icon",void 0);IP=_.c([_.E({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],IP);
_.R(IP,"ytd-post-filter-zero-state-renderer",function(){if(ggZ!==void 0)return ggZ;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return ggZ=q},{mode:1});var EgG;var Rta={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},i_=function(){return _.Y.apply(this,arguments)||this};
_.O(i_,_.Y);i_.prototype.configureRendererStamper=function(){return Rta};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],i_.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],i_.prototype,"rendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],i_.prototype,"data",void 0);_.c([_.v({computed:"computeIcon_(data.icon)"}),_.h("design:type",String)],i_.prototype,"icon",void 0);i_=_.c([_.E({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],i_);
_.R(i_,"ytd-post-scheduling-zero-state-renderer",function(){if(EgG!==void 0)return EgG;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return EgG=q},{mode:1});var cNG;var rH=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return q};
_.O(rH,_.Y);rH.prototype.onTabsActivate=function(q){this.data&&this.data.tabs&&_.t7(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[q.detail.selected].navigationEndpoint})};
rH.prototype.shouldShowTotalCount=function(q){return q&&q.totalCount!==void 0};
rH.prototype.handleUpdatePostsTotalCountAction=function(q){var w=this.get(["data.tabs",1,"totalCount"]),u=this.get("updatePostsTotalCountAction.updateType",q);q=this.get("updatePostsTotalCountAction.number",q);w!==void 0&&u!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&q&&(u==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(w)+q):u==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(w)-q))};
_.x$.Object.defineProperties(rH.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var q=0,w=this.data.tabs.length;q<w;q++)if(this.data.tabs[q].selected)return q;return 0}}});
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],rH.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],rH.prototype,"rendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],rH.prototype,"data",void 0);_.c([_.Z("data.tabs"),_.h("design:type",Number),_.h("design:paramtypes",[])],rH.prototype,"selected",null);rH=_.c([_.E({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],rH);
_.R(rH,"ytd-post-stream-filter-renderer",function(){if(cNG!==void 0)return cNG;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return cNG=q},{mode:1});var SR$;var UW=function(){return _.Y.apply(this,arguments)||this};
_.O(UW,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],UW.prototype,"kevlarBehaviors",void 0);_.c([_.v(),_.h("design:type",Object)],UW.prototype,"data",void 0);UW=_.c([_.E({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],UW);
_.R(UW,"ytd-channel-age-gate-renderer",function(){if(SR$!==void 0)return SR$;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return SR$=q},{mode:1});var htc;_.JE("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var TH=function(){var q=_.Y.apply(this,arguments)||this;q.data=null;return q};
_.O(TH,_.Y);TH.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x$.Object.defineProperties(TH.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return((q=this.data)==null?0:(w=q.title)==null?0:(u=w.runs)==null?0:u.length)?147:160}}});
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],TH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],TH.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],TH.prototype,"imageSizePx",null);TH=_.c([_.E({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],TH);
_.R(TH,"ytd-channel-owner-empty-state-renderer",function(){if(htc!==void 0)return htc;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return htc=q},{mode:1});var j$P;var lxF;var Cf=function(){var q=_.Y.apply(this,arguments)||this;q.boundSubmitSearch=function(){q.submitSearch()};
q.boundClearSearch=function(){q.clearSearch()};
return q};
_.O(Cf,_.Y);_.k=Cf.prototype;_.k.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]]"}}}}}};
_.k.toggleClearButton=function(){this.hideClearButton=UgJ||!this.input.value};
_.k.submitOnEnterKeyUp=function(q){q.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.k.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.k.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.k.submit=function(){_.t7(this.hostElement,"search-query-changed",this.input.value)};
Cf.prototype.toggleClearButton=Cf.prototype.toggleClearButton;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Cf.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Cf.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Cf.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Cf.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Cf.prototype,"hideClearButton",void 0);_.c([_.v(),_.h("design:type",Object)],Cf.prototype,"boundSubmitSearch",void 0);_.c([_.v(),_.h("design:type",Object)],Cf.prototype,"boundClearSearch",void 0);_.c([_.Wj("#input"),_.h("design:type",Object)],Cf.prototype,"input",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Cf.prototype,"toggleClearButton",null);
Cf=_.c([_.E({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],Cf);
_.R(Cf,"ytd-channel-switcher-search-box-renderer",function(){if(lxF!==void 0)return lxF;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return lxF=q},{mode:1});var L9P;var dH=function(){var q=_.Y.apply(this,arguments)||this;q.boundSubmit=function(){q.submit()};
return q};
_.O(dH,_.Y);_.k=dH.prototype;_.k.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"}}}}};
_.k.ready=function(){var q=this;this.form.addEventListener("submit",function(w){return q.onSubmit(w)})};
_.k.onSubmit=function(q){q.preventDefault();return!1};
_.k.toggleClearButton=function(){this.hideClearButton=UgJ||!this.input.value};
_.k.submitOnEnterKeyUp=function(q){q.keyCode===13&&this.submit()};
_.k.submit=function(){var q=this.data.endpoint,w=(0,_.db.unsafeClone)(q);_.C(w,_.Ii)?_.C(w,_.Ii).query=this.input.value:_.C(w,_.ip)&&(_.C(w,_.ip).query=this.input.value);var u=_.C(w.commandMetadata,_.wk);(u==null?0:u.url)?(u.url=_.RA(u.url,"query",this.input.value),_.t7(this.hostElement,"yt-navigate",{endpoint:w})):_.C(w,Xr6)?(_.C(w,Xr6).channelSwitcherQuery=this.input.value,_.tG().resolve(_.PG).resolveCommand(w,{form:{element:this.hostElement}})):(q=Error("Lh`"+JSON.stringify(q)),_.vm(q))};
_.k.getUrl=function(q){return this.get("commandMetadata.webCommandMetadata.url",q)};
dH.prototype.toggleClearButton=dH.prototype.toggleClearButton;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],dH.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],dH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],dH.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],dH.prototype,"hideClearButton",void 0);
_.c([_.v(),_.h("design:type",Object)],dH.prototype,"boundSubmit",void 0);_.c([_.Wj("#form"),_.h("design:type",HTMLFormElement)],dH.prototype,"form",void 0);_.c([_.Wj("#input"),_.h("design:type",Object)],dH.prototype,"input",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dH.prototype,"toggleClearButton",null);dH=_.c([_.E({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],dH);
_.R(dH,"ytd-search-box-renderer",function(){if(L9P!==void 0)return L9P;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return L9P=q},{mode:2});var OW=function(){var q=_.Y.apply(this,arguments)||this;q.showSearchBox=!0;return q};
_.O(OW,_.Y);OW.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],OW.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],OW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],OW.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],OW.prototype,"showSearchBox",void 0);OW=_.c([_.E({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],OW);
_.R(OW,"ytd-channel-switcher-header-renderer",function(){if(j$P!==void 0)return j$P;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return j$P=q},{mode:1});var MJT;var K9x;var oP=function(){var q=_.Y.apply(this,arguments)||this;q.isDisplayed=!0;return q};
_.O(oP,_.Y);_.k=oP.prototype;_.k.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.k.dataChanged=function(){this.isDisplayed=!0};
_.k.computeType=function(q){return q||"UNKNOWN"};
_.k.onYtServiceRequestCompleted=function(q){q.stopPropagation();this.isDisplayed=!1};
_.k.onClose=function(){this.isDisplayed=!1};
oP.prototype.onYtServiceRequestCompleted=oP.prototype.onYtServiceRequestCompleted;oP.prototype.dataChanged=oP.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],oP.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],oP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],oP.prototype,"data",void 0);
_.c([_.v({computed:"computeType(data.type)",reflectToAttribute:!0}),_.h("design:type",String)],oP.prototype,"type",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],oP.prototype,"isDisplayed",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oP.prototype,"dataChanged",null);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],oP.prototype,"onYtServiceRequestCompleted",null);oP=_.c([_.E({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],oP);
_.R(oP,"ytd-alert-with-button-renderer",function(){if(K9x!==void 0)return K9x;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return K9x=q},{mode:1});var Vp=function(){var q=_.Y.apply(this,arguments)||this;q.noResult=!1;q.enableAlertBanner=!1;q.dismissedAlertBanner=!1;q.hideCreateChannelButton=!1;q.boundDismissAlertBanner=function(){q.dismissAlertBanner()};
q.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return q};
_.O(Vp,_.Y);_.k=Vp.prototype;_.k.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.k.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.k.updateChannelSwitcherAction=function(q){var w;q=(w=_.C(q,cva))==null?void 0:w.page;_.C(q,RDF)!==void 0&&(this.data=_.C(q,RDF))};
_.k.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]]"}}}}}};
_.k.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.k.searchQueryChanged=function(q,w){if(this.data&&this.data.contents&&this.data.contents.length){q=[];var u=[];this.hideCreateChannelButton=this.noResult=!1;for(var y=document.querySelectorAll("ytd-account-item-renderer"),e=_.P(y),t=e.next();!t.done;t=e.next())t=t.value,u.push(t),t.style.display="block";this.resetRightBorder(u);if(w){this.hideCreateChannelButton=!0;for(u=1;u<this.data.contents.length;u++)if(t=this.data.contents[u],_.C(t,kTG)){var X=void 0,G=void 0;e=(X=_.C(t,kTG))==null?void 0:(G=
X.accountName)==null?void 0:G.simpleText;G=X=void 0;t=(X=_.C(t,kTG))==null?void 0:(G=X.channelHandle)==null?void 0:G.simpleText;(X=y[u-1])&&e&&_.W4(e,w)?q.push(X):_.T("enable_handle_search_on_channel_switcher")&&X&&t&&_.W4(t.toString(),w.toString())?q.push(X):X.style.display="none"}q.length===0&&(this.noResult=!0);this.resetRightBorder(q)}}};
_.k.resetRightBorder=function(q){for(var w=0;w<q.length;w++)q[w].style.borderRight=!this.hideCreateChannelButton&&(w+2)%3===0||this.hideCreateChannelButton&&(w+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.k.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.k.setShowSearchBox=function(q){if(q&&q.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var w=0;w<q.contents.length;w++)_.C(q.contents[w],_.ec)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.k.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.x$.Object.defineProperties(Vp.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null?0:q.contents)}}});
Vp.prototype.onContinuationItemsUpdated=Vp.prototype.onContinuationItemsUpdated;Vp.prototype.searchQueryChanged=Vp.prototype.searchQueryChanged;Vp.prototype.onDataChanged=Vp.prototype.onDataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Vp.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Vp.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Vp.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.JR),_.h("design:type",Object)],Vp.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Vp.prototype,"data",void 0);_.c([_.Wj("ytd-channel-switcher-header-renderer"),_.h("design:type",Object)],Vp.prototype,"channelSwitcherHeaderRenderer",void 0);_.c([_.v(),_.h("design:type",Object)],Vp.prototype,"noResult",void 0);
_.c([_.v(),_.h("design:type",Object)],Vp.prototype,"enableAlertBanner",void 0);_.c([_.v(),_.h("design:type",Object)],Vp.prototype,"dismissedAlertBanner",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Vp.prototype,"hideCreateChannelButton",void 0);_.c([_.Z("data.contents"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Vp.prototype,"isLoading",null);_.c([_.v(),_.h("design:type",Object)],Vp.prototype,"boundDismissAlertBanner",void 0);
_.c([_.v({computed:"computeButtonOverride()"}),_.h("design:type",Object)],Vp.prototype,"buttonOverride",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Vp.prototype,"onDataChanged",null);_.c([_.Gm("search-query-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,String]),_.h("design:returntype")],Vp.prototype,"searchQueryChanged",null);
_.c([_.Gm("yt-next-continuation-data-updated"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Vp.prototype,"onContinuationItemsUpdated",null);Vp=_.c([_.E({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Vp);
_.R(Vp,"ytd-channel-switcher-page-renderer",function(){if(MJT!==void 0)return MJT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return MJT=q},{mode:1});var Bix;var x7$;var ff=function(){var q=_.Y.apply(this,arguments)||this;q.images=[];q.selectedImageIndex=0;return q};
_.O(ff,_.Y);_.k=ff.prototype;
_.k.ready=function(){_.dL(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.dL(this.JSC$13384_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.dL(this.JSC$13384_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.dL(this.JSC$13384_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.k.onThumbnailClick=function(q){if(q=q.event_.detail)this.selectedImageIndex=this.images.indexOf(q)};
_.k.updateImageThumbnails=function(q){q=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:q.event_.detail});this.images.splice(this.selectedImageIndex,1,q);this.images=[].concat(_.Cm(this.images))};
_.k.cancelImageRepositions=function(){this.selectedImageIndex=0;_.t7(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.k.saveImageRepositions=function(){this.selectedImageIndex=0;_.t7(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.x$.Object.defineProperties(ff.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var q=this;return(this.images||[]).map(function(w,u){return{image:w,selected:u===q.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],ff.prototype,"ytRendererstamperBehavior",void 0);_.c([_.Wj("ytd-backstage-image-preview-renderer"),_.h("design:type",Object)],ff.prototype,"JSC$13384_imagePreviewContainer",void 0);_.c([_.Wj(".thumbnail-images-container"),_.h("design:type",HTMLElement)],ff.prototype,"thumbnailImagesContainer",void 0);_.c([_.v(),_.h("design:type",Array)],ff.prototype,"images",void 0);
_.c([_.v(),_.h("design:type",Object)],ff.prototype,"repositionInstructions",void 0);_.c([_.v(),_.h("design:type",Object)],ff.prototype,"selectedImageIndex",void 0);_.c([_.Z("images","selectedImageIndex"),_.h("design:type",Array),_.h("design:paramtypes",[])],ff.prototype,"thumbnailRendererDatas",null);_.c([_.Z("images","selectedImageIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],ff.prototype,"selectedImageData",null);
ff=_.c([_.E({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],ff);
_.R(ff,"ytd-backstage-multi-image-reposition-renderer",function(){if(x7$!==void 0)return x7$;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return x7$=q},{mode:1});var m3=function(q,w){_.Q4.call(this);this.uploadUrl=q;this.channelId=w;this.imagesUploadData=[]};
_.O(m3,_.Q4);m3.prototype.getAllUploadStatuses=function(){var q=this,w,u,y;return _.F(function(e){if(e.nextAddress==1)return _.H(e,qxa(q),2);w=e.yieldResult;u=w.get("succeed");y=w.get("failed");return e.return(u.concat(y))})};
var uBc=function(q){var w,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,qxa(q),2);w=y.yieldResult;u=w.get("failed");u.length>0&&wNT(q,u);return y.return(q.getAllUploadStatuses())})},qxa=function(q){var w,u,y,e,t,X,G;
return _.F(function(n){if(n.nextAddress==1)return w=new Map,_.H(n,Promise.allSettled(q.imagesUploadData.map(function(N){return N.uploadPromise})),2);
u=n.yieldResult;y=[];e=_.P(u);for(t=e.next();!t.done;t=e.next())X=t.value,X.status==="fulfilled"&&y.push(X.value);G=q.imagesUploadData.map(function(N){return N.image}).filter(function(N){return y.every(function(Q){return Q.id!==N.id})});
w.set("succeed",y);w.set("failed",G);return n.return(w)})},wNT=function(q,w){w=_.P(w);
for(var u=w.next();!u.done;u=w.next()){var y=q;u=u.value;yTT(y,u.id)>=0&&y.cancel(u.id);var e=new eRk(u),t=_.jSk(y.uploadUrl,{"X-YouTube-ChannelId":y.channelId},u.imageBlob);e.transfer=t;e.uploadPromise=kpT(t,u);y.imagesUploadData.push(e);t.run()}};
m3.prototype.cancel=function(q){var w=yTT(this,q);w!==-1&&((w=this.imagesUploadData[w].transfer)&&w.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(u){return u.image.id!==q}))};
var yTT=function(q,w){return q.imagesUploadData.findIndex(function(u){return u.image.id===w})},kpT=function(q,w){return new Promise(function(u,y){q.listen("l",function(){var e=q.getResponseText();
e?(e=JSON.parse(e).encryptedBlobId,w.encryptedBlobId=e,u(w)):y("upload failed")});
q.listen("n",function(){y("upload failed")})})},eRk=function(q){this.image=q};var axM=function(q,w,u,y,e){this.id=q;this.imageBlob=w;this.localImageSrc=u;this.naturalWidth=y;this.naturalHeight=e;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 tOk=[".jpeg",".jpg",".png"],AW=function(){var q=_.Y.apply(this,arguments)||this;q.showImagesPreview=!1;q.pollOptions=[];q.errorMessage="";q.optionPlaceholderText="";q.optionDefaultText="";q.JSC$13395_imageId=0;q.maxFileSizeMb=0;q.maxAspectRatio=0;q.invalidFileSizeError="";q.invalidAspectRatioError="";q.invalidFileTypeError="";q.imageSelector=new Go(null,"single_file",tOk);return q};
_.O(AW,_.Y);_.k=AW.prototype;_.k.ready=function(){_.dL(this.imageSelector,"j",this.onImageSelect,!1,this);_.dL(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.dL(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.k.dataChanged=function(){var q,w,u=_.C((q=this.data)==null?void 0:(w=q.cellTemplate)==null?void 0:w.onEmptyCellTap,RJ6);if(u&&u.uploadUrl&&u.channelId){var y;this.maxFileSizeMb=((y=u.imageValidationInfo)==null?void 0:y.maxFileSizeMb)||0;var e;this.maxAspectRatio=((e=u.imageValidationInfo)==null?void 0:e.allowedMaxAspectRatio)||0;var t;this.invalidFileSizeError=this.getSimpleString((t=this.data)==null?void 0:t.invalidFileSizeError);var X;this.invalidAspectRatioError=this.getSimpleString((X=this.data)==
null?void 0:X.invalidAspectRatioError);var G;this.invalidFileTypeError=this.getSimpleString((G=this.data)==null?void 0:G.invalidFileTypeError);this.uploadManager=new m3(u.uploadUrl,u.channelId)}};
_.k.onEditorInfoChange=function(){this.optionPlaceholderText=_.lA(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.lA(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.k.observeAddImageError=function(){this.errorMessage!==""&&_.t7(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.k.onPollOptionsChange=function(){for(var q=!1,w=[],u=0;u<this.pollOptions.length;u++){var y=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(u+1);this.pollOptions[u].placeholderText!==y?(q=!0,w.push(Object.assign({},this.pollOptions[u],{placeholderText:y}))):w.push(this.pollOptions[u])}q&&(this.pollOptions=w);this.isValid()?_.t7(this.hostElement,"yt-commentbox-post-enable"):_.t7(this.hostElement,"yt-commentbox-post-disable")};
_.k.createPollOptions=function(q){var w=[],u;q=(u=q==null?void 0:q.minPollOptions)!=null?u:0;for(u=0;u<q;u++)w.push(this.createPollOption());return w};
_.k.onImageSelect=function(q){var w=this,u,y,e,t,X,G;return _.F(function(n){if(n.nextAddress==1){if(w.selectedImageIndex===void 0)return n.jumpTo(0);u=q.files[0];w.errorMessage="";y=w.validateImage(u);if(y!=="")return w.errorMessage=y,n.return();e=new RB(w.maxAspectRatio,!1,!0);return _.H(n,e.transform(u),3)}if(n.nextAddress!=4)return t=n.yieldResult,t.transformedData?t.invalidAspectRatio?(w.errorMessage=w.invalidAspectRatioError,n.return()):_.H(n,D7M(w.JSC$13395_imageId,q.files[0],t.transformedData),
4):(w.errorMessage=w.invalidFileTypeError,n.return());X=n.yieldResult;w.JSC$13395_imageId++;wNT(w.uploadManager,[X]);G=Object.assign({},w.pollOptions[w.selectedImageIndex],{image:X});w.pollOptions.splice(w.selectedImageIndex,1,G);w.refreshPollOptions();_.t7(w.hostElement,"yt-backstage-poll-image-select");_.HI(n)})};
_.k.validateImage=function(q){return q.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.k.refreshPollOptions=function(){this.pollOptions=[].concat(_.Cm(this.pollOptions))};
_.k.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.Cm(this.pollOptions),[this.createPollOption()]))};
_.k.onRemovePollOption=function(q){var w=this.pollOptions[q.model.index];w&&w.image&&this.uploadManager.cancel(w.image.id);this.pollOptions.splice(q.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.t7(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.k.onTextInput=function(){this.refreshPollOptions()};
_.k.onImageButtonClick=function(q){this.selectedImageIndex=q.model.index;this.imageSelector.click()};
_.k.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.k.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.k.saveImageRepositions=function(q){q=q.event_.detail;for(var w=0,u=[],y=_.P(this.pollOptions),e=y.next();!e.done;e=y.next())e=e.value,e.image!==void 0?(e=Object.assign({},e,{image:q[w]}),u.push(e),w++):u.push(e);this.showImagesPreview=!1;this.pollOptions=[].concat(_.Cm(u))};
_.k.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 q=0,w=_.P(this.pollOptions),u=w.next();!u.done;u=w.next())if(u=u.value,u.optionText.trim()!==""||u.image!==void 0){if(!u.image||this.hasCustomOptionText&&u.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;q++}return q>=Number(this.editorInfo.minPollOptions)};
_.k.getAllUploadStatuses=function(){var q=this,w,u,y,e;return _.F(function(t){if(t.nextAddress==1)return _.H(t,q.uploadManager.getAllUploadStatuses(),2);w=t.yieldResult;u=_.P(w);for(y=u.next();!y.done;y=u.next())if(e=y.value,e.encryptedBlobId===void 0)return t.return(uBc(q.uploadManager));return t.return(w)})};
_.k.getPostCreateOptions=function(){for(var q=[],w=_.P(this.pollOptions),u=w.next();!u.done;u=w.next())u=u.value,u.image!==void 0&&q.push({text:this.hasCustomOptionText?u.optionText:u.placeholderText,image:u.image});return q};
_.k.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.k.createButtonRenderer=function(q,w){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:q,accessibilityData:{accessibilityData:{label:this.getSimpleString(q)}},isDisabled:w}};
_.k.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.k.computeThumbnailRendererData=function(q){return q?{image:q,selected:!1}:void 0};
_.k.getSimpleString=function(q){return _.lA(q)};
_.k.updateOptionTextFromBinding=function(q){if(q.target){var w=Array.from(_.A(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(q.target);if(w>=0){var u;this.pollOptions[w].optionText=(u=q.detail.value)!=null?u:""}}};
_.x$.Object.defineProperties(AW.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var q,w;return this.pollOptions.length<((w=(q=this.editorInfo)==null?void 0:q.maxPollOptions)!=null?w:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(q){return q.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(q){return q.image}).map(function(q){return q.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(q){return q.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var q,w=(q=this.data)==null?void 0:q.addOptionButtonText;return w?this.createButtonRenderer(w,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var q,w=(q=this.data)==null?void 0:q.repositionImagesButtonLabel;return w?this.createButtonRenderer(w,!this.hasImages):void 0}}});
AW.prototype.onPollOptionsChange=AW.prototype.onPollOptionsChange;AW.prototype.observeAddImageError=AW.prototype.observeAddImageError;AW.prototype.onEditorInfoChange=AW.prototype.onEditorInfoChange;AW.prototype.dataChanged=AW.prototype.dataChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],AW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.Wj("ytd-backstage-multi-image-reposition-renderer"),_.h("design:type",Object)],AW.prototype,"imageRepositionContainer",void 0);
_.c([_.v(),_.h("design:type",Object)],AW.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],AW.prototype,"editorInfo",void 0);_.c([_.v(),_.h("design:type",m3)],AW.prototype,"uploadManager",void 0);_.c([_.v(),_.h("design:type",Object)],AW.prototype,"showImagesPreview",void 0);_.c([_.v(),_.h("design:type",Array)],AW.prototype,"pollOptions",void 0);_.c([_.v(),_.h("design:type",Object)],AW.prototype,"errorMessage",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AW.prototype,"dataChanged",null);_.c([_.I9("editorInfo"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AW.prototype,"onEditorInfoChange",null);_.c([_.nL("errorMessage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AW.prototype,"observeAddImageError",null);
_.c([_.I9("pollOptions"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AW.prototype,"onPollOptionsChange",null);_.c([_.Z("pollOptions","editorInfo"),_.h("design:type",Object),_.h("design:paramtypes",[])],AW.prototype,"isAllowedToAddOption",null);_.c([_.Z("pollOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],AW.prototype,"hasImages",null);
_.c([_.Z("pollOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],AW.prototype,"imagesToReposition",null);_.c([_.Z("pollOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],AW.prototype,"hasCustomOptionText",null);_.c([_.Z("data","isAllowedToAddOption"),_.h("design:type",Object),_.h("design:paramtypes",[])],AW.prototype,"addOptionButton",null);_.c([_.Z("data","hasImages"),_.h("design:type",Object),_.h("design:paramtypes",[])],AW.prototype,"repositionImagesButton",null);
AW=_.c([_.E({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],AW);
_.R(AW,"ytd-backstage-image-poll-editor-renderer",function(){if(Bix!==void 0)return Bix;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Bix=q},{mode:2});var PgP={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 XNc;var JW=function(){var q=_.Y.apply(this,arguments)||this;q.a11yConfig=PgP;q.imageDisplayOffsetTop=0;q.imageDisplayOffsetLeft=0;q.pickerDisplayOffsetTop=0;q.pickerDisplayOffsetLeft=0;q.showPreviewContainer=!0;q.startPicker=!1;q.repositionOptional=!1;q.editOnlyMode=!1;q.savedImageDisplayOffsetTop=0;q.savedImageDisplayOffsetLeft=0;return q};
_.O(JW,_.Y);_.k=JW.prototype;_.k.created=function(){_.v8.requestAvailability()};
_.k.ready=function(){};
_.k.onArrowKeysDown=function(q){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){q.detail.keyboardEvent.preventDefault();var w=0,u=0,y="";switch(q.detail.keyboardEvent.key){case "ArrowUp":ZWu(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?y=this.a11yConfig.reachBottomOfImage:w=this.imageHeight*.05*-1;break;case "ArrowDown":ZWu(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?y=this.a11yConfig.reachTopOfImage:
w=this.imageHeight*.05;break;case "ArrowLeft":ZWu(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?y=this.a11yConfig.reachRightOfImage:u=this.imageWidth*.05*-1;break;case "ArrowRight":ZWu(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?y=this.a11yConfig.reachLeftOfImage:u=this.imageWidth*.05}y&&_.ID(y)&&_.t7(this.hostElement,"iron-announce",{text:_.ID(y)});if(u||w)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+w)),q=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),q=_.ID(this.a11yConfig.imageVerticalPosition,{x_percent:""+q,y_percent:""+(100-q)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+u)),q=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),q=_.ID(this.a11yConfig.imageHorizontalPosition,{x_percent:""+q,y_percent:""+(100-q)})),q&&_.t7(this.hostElement,"iron-announce",{text:q})}};
_.k.getPreviewPosition=function(q,w,u,y){return Math.round(100*(q+w*.5-u)/y)};
_.k.calculateDisplayPosition=function(){var q=this.imageData.naturalWidth,w=this.imageData.naturalHeight;this.displayScale=Math.max(200/q,200/w);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var u=q*this.displayScale*this.imageData.previewCoordinates.left,y=w*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=w>q?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-u;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=q>w?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-y;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=q*this.displayScale;this.imageHeight=w*this.displayScale};
_.k.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.k.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.k.getSignedPosition=function(q,w,u){return w==="X"&&_.Et("HTML_DIR")==="rtl"?u==="-"?q+"px":q*-1+"px":u==="-"?q*-1+"px":q+"px"};
_.k.pickerMove=function(q){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var w=this.pickerOffsetX-q.clientX,u=this.pickerOffsetY-q.clientY;this.pickerOffsetX=q.clientX;this.pickerOffsetY=q.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
u)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-w))}};
_.k.pickerMoveStart=function(q){this.startPicker=!0;this.pickerOffsetX=q.clientX;this.pickerOffsetY=q.clientY};
_.k.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var q=this.generateCropPreview();q&&_.t7(this.hostElement,"ytd-backstage-image-preview-coordinates-update",q)};
_.k.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.t7(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.k.deleteImage=function(){_.t7(this.hostElement,"ytd-backstage-image-preview-delete")};
_.k.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.k.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var q=this.generateCropPreview();q&&_.t7(this.hostElement,"ytd-backstage-image-preview-coordinates-save",q)};
_.k.getPreviewOffset=function(q,w,u){return w&&q?(u==="X"&&_.Et("HTML_DIR")==="rtl"?300/w*q:300/w*q*-1)+"px":"0px"};
_.k.getSimpleText=function(q){return q?_.lA(q):""};
_.k.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}};
_.x$.Object.defineProperties(JW.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var q=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.ID(this.a11yConfig.imageVerticalPosition,{x_percent:""+q,y_percent:""+(100-q)})+"\n"+_.ID(this.a11yConfig.verticalRepositionInstruction)}q=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.ID(this.a11yConfig.imageHorizontalPosition,{x_percent:""+q,y_percent:""+(100-q)})+"\n"+_.ID(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 q,w,u=(q=this.instruction)==null?void 0:(w=q.previewInstruction)==null?void 0:w.editButtonLabel;return u?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:u,accessibilityData:{accessibilityData:{label:this.getSimpleText(u)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var q,w,u,y,e=this.editOnlyMode?(q=this.instruction)==null?void 0:(w=q.editInstruction)==null?void 0:w.saveImagesButtonLabel:(u=this.instruction)==null?void 0:(y=u.editInstruction)==null?void 0:y.saveButtonLabel;return e?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:e,accessibilityData:{accessibilityData:{label:this.getSimpleText(e)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var q,w,u=(q=this.instruction)==null?void 0:(w=q.previewInstruction)==null?void 0:w.deleteButtonLabel;return u?{size:"SIZE_SMALL",text:u,accessibilityData:{accessibilityData:{label:this.getSimpleText(u)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var q,w,u=(q=this.instruction)==null?void 0:(w=q.editInstruction)==null?void 0:w.cancelButtonLabel;q=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return u?{style:q,size:"SIZE_SMALL",text:u,accessibilityData:{accessibilityData:{label:this.getSimpleText(u)}}}: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"}}});
JW.prototype.onEditOnlyModeUpdate=JW.prototype.onEditOnlyModeUpdate;JW.prototype.onImageChange=JW.prototype.onImageChange;_.c([_.v(),_.h("design:type",axM)],JW.prototype,"imageData",void 0);_.c([_.v(),_.h("design:type",Object)],JW.prototype,"instruction",void 0);_.c([_.v(),_.h("design:type",Object)],JW.prototype,"a11yConfig",void 0);_.c([_.v(),_.h("design:type",Number)],JW.prototype,"imageWidth",void 0);_.c([_.v(),_.h("design:type",Number)],JW.prototype,"imageHeight",void 0);
_.c([_.v(),_.h("design:type",Number)],JW.prototype,"displayScale",void 0);_.c([_.v(),_.h("design:type",Object)],JW.prototype,"imageDisplayOffsetTop",void 0);_.c([_.v(),_.h("design:type",Object)],JW.prototype,"imageDisplayOffsetLeft",void 0);_.c([_.v(),_.h("design:type",Object)],JW.prototype,"pickerDisplayOffsetTop",void 0);_.c([_.v(),_.h("design:type",Object)],JW.prototype,"pickerDisplayOffsetLeft",void 0);_.c([_.v(),_.h("design:type",Object)],JW.prototype,"showPreviewContainer",void 0);
_.c([_.v(),_.h("design:type",Object)],JW.prototype,"startPicker",void 0);_.c([_.v(),_.h("design:type",Number)],JW.prototype,"pickerOffsetX",void 0);_.c([_.v(),_.h("design:type",Number)],JW.prototype,"pickerOffsetY",void 0);_.c([_.v(),_.h("design:type",Object)],JW.prototype,"repositionOptional",void 0);_.c([_.v(),_.h("design:type",Object)],JW.prototype,"editOnlyMode",void 0);_.c([_.Wj("#picker-container"),_.h("design:type",HTMLElement)],JW.prototype,"JSC$13408_pickerContainer",void 0);
_.c([_.Wj("#picker"),_.h("design:type",HTMLElement)],JW.prototype,"picker",void 0);_.c([_.Wj("#preview-clipper"),_.h("design:type",HTMLElement)],JW.prototype,"previewClipper",void 0);_.c([_.Wj("#image-in-picker-background"),_.h("design:type",HTMLImageElement)],JW.prototype,"JSC$13408_imageInBackground",void 0);_.c([_.Wj("#image-in-picker"),_.h("design:type",HTMLImageElement)],JW.prototype,"JSC$13408_imageInPicker",void 0);
_.c([_.Wj("#image-in-preview-clipper"),_.h("design:type",HTMLImageElement)],JW.prototype,"JSC$13408_imageInPreviewClipper",void 0);_.c([_.Z("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],JW.prototype,"altLabelForImage",null);_.c([_.Z("imageHeight","imageWidth"),_.h("design:type",Number),_.h("design:paramtypes",[])],JW.prototype,"pickerSize",null);
_.c([_.Z("imageHeight","imageWidth"),_.h("design:type",Object),_.h("design:paramtypes",[])],JW.prototype,"imageOrientationStyle",null);_.c([_.Z("instruction"),_.h("design:type",Object),_.h("design:paramtypes",[])],JW.prototype,"editButton",null);_.c([_.Z("instruction","editOnlyMode"),_.h("design:type",Object),_.h("design:paramtypes",[])],JW.prototype,"saveButton",null);_.c([_.Z("instruction"),_.h("design:type",Object),_.h("design:paramtypes",[])],JW.prototype,"deleteButton",null);
_.c([_.Z("instruction","editOnlyMode"),_.h("design:type",Object),_.h("design:paramtypes",[])],JW.prototype,"cancelButton",null);_.c([_.Z("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.h("design:type",Number),_.h("design:paramtypes",[])],JW.prototype,"cropOffsetTop",null);_.c([_.Z("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.h("design:type",Number),_.h("design:paramtypes",[])],JW.prototype,"cropOffsetLeft",null);
_.c([_.Z("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],JW.prototype,"pickerBackgroundStyle",null);_.c([_.Z("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],JW.prototype,"pickerDisplayStyle",null);_.c([_.Z("cropOffsetLeft","cropOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],JW.prototype,"imageInPickerStyle",null);
_.c([_.Z("cropOffsetLeft","cropOffsetTop","pickerSize"),_.h("design:type",String),_.h("design:paramtypes",[])],JW.prototype,"previewClipperStyle",null);_.c([_.I9("imageData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],JW.prototype,"onImageChange",null);_.c([_.I9("editOnlyMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],JW.prototype,"onEditOnlyModeUpdate",null);
_.c([_.Z("showPreviewContainer"),_.h("design:type",String),_.h("design:paramtypes",[])],JW.prototype,"pickerModeStyle",null);JW=_.c([_.E({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],JW);
_.R(JW,"ytd-backstage-image-preview-renderer",function(){if(XNc!==void 0)return XNc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return XNc=q},{mode:1});var Fzx;var GpG={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 nlZ;var H5P;var zH=function(){var q=_.Y.apply(this,arguments)||this;q.a11yConfig=GpG;q.imageDisplayOffsetTop=0;q.imageDisplayOffsetLeft=0;q.pickerDisplayOffsetTop=0;q.pickerDisplayOffsetLeft=0;q.cropCoordinatesSaved=!1;q.previewSize=0;q.startPicker=!1;q.repositionOptional=!1;return q};
_.O(zH,_.Y);_.k=zH.prototype;_.k.created=function(){_.v8.requestAvailability()};
_.k.ready=function(){};
_.k.onArrowKeysDown=function(q){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){q.detail.keyboardEvent.preventDefault();var w=0,u=0,y="";switch(q.detail.keyboardEvent.key){case "ArrowUp":pgo(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?y=this.a11yConfig.reachBottomOfImage:w=this.imageHeight*.05*-1;break;case "ArrowDown":pgo(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?y=this.a11yConfig.reachTopOfImage:
w=this.imageHeight*.05;break;case "ArrowLeft":pgo(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?y=this.a11yConfig.reachRightOfImage:u=this.imageWidth*.05*-1;break;case "ArrowRight":pgo(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?y=this.a11yConfig.reachLeftOfImage:u=this.imageWidth*.05}y&&_.ID(y)&&_.t7(this.hostElement,"iron-announce",{text:_.ID(y)});if(u||w)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+w)),q=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),q=_.ID(this.a11yConfig.imageVerticalPosition,{x_percent:""+q,y_percent:""+(100-q)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+u)),q=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),q=_.ID(this.a11yConfig.imageHorizontalPosition,{x_percent:""+q,y_percent:""+(100-q)})),q&&_.t7(this.hostElement,"iron-announce",{text:q})}};
_.k.getPreviewPosition=function(q,w,u,y){return Math.round(100*(q+w*.5-u)/y)};
_.k.displayImage=function(){var q=this.JSC$13419_pickerContainer.getBoundingClientRect().width,w=this.JSC$13419_pickerContainer.getBoundingClientRect().height,u=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),y=this.JSC$13419_imageInBackground.naturalWidth,e=this.JSC$13419_imageInBackground.naturalHeight;this.displayScale=Math.max(u/y,u/e);this.imageWidth=y*this.displayScale;this.imageHeight=e*this.displayScale;this.pickerDisplayOffsetLeft=(q-u)/2;this.pickerDisplayOffsetTop=
(w-u)/2;this.imageDisplayOffsetLeft=e>y?this.pickerDisplayOffsetLeft:(q-this.imageWidth)/2;this.imageDisplayOffsetTop=y>e?this.pickerDisplayOffsetTop:(w-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.k.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13419_imageInBackground.src=this.imageData.toString(),this.JSC$13419_imageInPicker.src=this.imageData.toString(),this.JSC$13419_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.k.getSignedPosition=function(q,w,u){return w==="X"&&_.Et("HTML_DIR")==="rtl"?u==="-"?q+"px":q*-1+"px":u==="-"?q*-1+"px":q+"px"};
_.k.pickerMove=function(q){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var w=this.pickerOffsetX-q.clientX,u=this.pickerOffsetY-q.clientY;this.pickerOffsetX=q.clientX;this.pickerOffsetY=q.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
u)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-w))}};
_.k.pickerMoveStart=function(q){this.startPicker=!0;this.pickerOffsetX=q.clientX;this.pickerOffsetY=q.clientY};
_.k.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.k.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.t7(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.k.getPreviewOffset=function(q,w,u,y){return w&&q&&u?(y==="X"&&_.Et("HTML_DIR")==="rtl"?u/w*q:u/w*q*-1)+"px":"0px"};
_.k.getSimpleText=function(q){return q?_.lA(q):""};
_.k.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var q=this.cropOffsetTop/this.imageHeight,w=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,u=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,y=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.A(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.t7(this.hostElement,"yt-img-crop-coordinates-update",{top:q,right:w,bottom:u,left:y})}};
_.x$.Object.defineProperties(zH.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var q=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.ID(this.a11yConfig.imageVerticalPosition,{x_percent:""+q,y_percent:""+(100-q)})+"\n"+_.ID(this.a11yConfig.verticalRepositionInstruction)}q=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.ID(this.a11yConfig.imageHorizontalPosition,{x_percent:""+q,y_percent:""+(100-q)})+"\n"+_.ID(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 q,w=(q=this.learnMore.runs[0])==null?void 0:q.navigationEndpoint,u;return((u=_.C(w,_.jw))==null?void 0:u.url)||void 0}}}});
zH.prototype.onImageDataChange=zH.prototype.onImageDataChange;_.c([_.v(),_.h("design:type",Object)],zH.prototype,"imageData",void 0);_.c([_.v(),_.h("design:type",Object)],zH.prototype,"instruction",void 0);_.c([_.v(),_.h("design:type",Object)],zH.prototype,"a11yConfig",void 0);_.c([_.v(),_.h("design:type",Number)],zH.prototype,"imageWidth",void 0);_.c([_.v(),_.h("design:type",Number)],zH.prototype,"imageHeight",void 0);_.c([_.v(),_.h("design:type",Number)],zH.prototype,"displayScale",void 0);
_.c([_.v(),_.h("design:type",Object)],zH.prototype,"imageDisplayOffsetTop",void 0);_.c([_.v(),_.h("design:type",Object)],zH.prototype,"imageDisplayOffsetLeft",void 0);_.c([_.v(),_.h("design:type",Object)],zH.prototype,"pickerDisplayOffsetTop",void 0);_.c([_.v(),_.h("design:type",Object)],zH.prototype,"pickerDisplayOffsetLeft",void 0);_.c([_.v(),_.h("design:type",Object)],zH.prototype,"cropCoordinatesSaved",void 0);_.c([_.v(),_.h("design:type",Object)],zH.prototype,"previewSize",void 0);
_.c([_.v(),_.h("design:type",Object)],zH.prototype,"startPicker",void 0);_.c([_.v(),_.h("design:type",Number)],zH.prototype,"pickerOffsetX",void 0);_.c([_.v(),_.h("design:type",Number)],zH.prototype,"pickerOffsetY",void 0);_.c([_.v(),_.h("design:type",Object)],zH.prototype,"repositionOptional",void 0);_.c([_.Wj("#picker-container"),_.h("design:type",HTMLElement)],zH.prototype,"JSC$13419_pickerContainer",void 0);_.c([_.Wj("#picker"),_.h("design:type",HTMLElement)],zH.prototype,"picker",void 0);
_.c([_.Wj("#image-in-picker-background"),_.h("design:type",HTMLImageElement)],zH.prototype,"JSC$13419_imageInBackground",void 0);_.c([_.Wj("#image-in-picker"),_.h("design:type",HTMLImageElement)],zH.prototype,"JSC$13419_imageInPicker",void 0);_.c([_.Wj("#image-in-preview-clipper"),_.h("design:type",HTMLImageElement)],zH.prototype,"JSC$13419_imageInPreviewClipper",void 0);_.c([_.Wj("#full-image-as-preview"),_.h("design:type",HTMLImageElement)],zH.prototype,"imageAsPreview",void 0);
_.c([_.Z("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],zH.prototype,"altLabelForImage",null);_.c([_.Z("imageHeight","imageWidth"),_.h("design:type",Number),_.h("design:paramtypes",[])],zH.prototype,"pickerSize",null);_.c([_.Z("imageHeight","imageWidth"),_.h("design:type",Object),_.h("design:paramtypes",[])],zH.prototype,"imageOrientationStyle",null);
_.c([_.Z("instruction.previewInstruction.editButtonLabel"),_.h("design:type",Object),_.h("design:paramtypes",[])],zH.prototype,"editButton",null);_.c([_.Z("instruction.editInstruction.saveButtonLabel"),_.h("design:type",Object),_.h("design:paramtypes",[])],zH.prototype,"saveButton",null);_.c([_.Z("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.h("design:type",Number),_.h("design:paramtypes",[])],zH.prototype,"cropOffsetTop",null);
_.c([_.Z("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.h("design:type",Number),_.h("design:paramtypes",[])],zH.prototype,"cropOffsetLeft",null);_.c([_.Z("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],zH.prototype,"pickerBackgroundStyle",null);_.c([_.Z("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],zH.prototype,"pickerDisplayStyle",null);
_.c([_.Z("cropOffsetLeft","cropOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],zH.prototype,"imageInPickerStyle",null);_.c([_.Z("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.h("design:type",String),_.h("design:paramtypes",[])],zH.prototype,"previewClipperStyle",null);_.c([_.nL("imageData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zH.prototype,"onImageDataChange",null);
_.c([_.Z("cropCoordinatesSaved"),_.h("design:type",String),_.h("design:paramtypes",[])],zH.prototype,"pickerModeStyle",null);_.c([_.Z("instruction.editInstruction.learnMore"),_.h("design:type",Object),_.h("design:paramtypes",[])],zH.prototype,"learnMore",null);_.c([_.Z("learnMore"),_.h("design:type",Object),_.h("design:paramtypes",[])],zH.prototype,"learnMoreUrl",null);zH=_.c([_.JM({is:"yt-img-crop-picker",disableElementRegistration:!0})],zH);
_.R(zH,"yt-img-crop-picker",function(){if(H5P===void 0){var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;nlZ===void 0&&(nlZ=document.createElement("template"));var y=nlZ;u.call(w,y.content.cloneNode(!0),q.content.firstChild);H5P=q}q=H5P;return q},{mode:2});var aP=function(){var q=_.Y.apply(this,arguments)||this;q.errorMessage="";q.hasPreview=!1;q.isBackstagePost=!1;q.dismissButtonOverrides={size:"XS"};return q};
_.O(aP,_.Y);_.k=aP.prototype;_.k.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"}}}};
_.k.detached=function(){this.removeOverlay()};
_.k.setPreview=function(q){_.A(this.hostElement).querySelector("#preview-picker").imageData=q;this.hasPreview=!0;_.t7(this.hostElement,"yt-backstage-image-select-preview")};
_.k.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var q=_.A(this.hostElement).querySelector("#dropzone");q.classList.remove("dragover");q.classList.remove("error");_.t7(this.hostElement,"yt-backstage-image-select-cancel")};
_.k.setupOverlay=function(){var q=this.imageUploadEndpoint;this.removeOverlay();if(q&&q.imageValidationInfo){var w=_.A(this.hostElement).querySelector("#dropzone"),u=_.A(this.hostElement).querySelector("#select");this.overlay=new SL(q.uploadUrl,q.channelId,q.imageValidationInfo.maxFileSizeMb,q.imageValidationInfo.allowedMaxAspectRatio,w,u,!0);_.dL(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.dL(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.dL(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.dL(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.dL(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.k.removeOverlay=function(){this.overlay&&(_.NF(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.NF(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.NF(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.NF(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.NF(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.k.onDragOver=function(q){var w=_.A(this.hostElement).querySelector("#dropzone");_.ef(w,"dragover",q.value)};
_.k.onPreview=function(q){this.setPreview(q.value)};
_.k.onImageError=function(q){if(q.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var w;q=(w=this.data)==null?void 0:w.fileSizeError}else if(q.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var u;q=(u=this.data)==null?void 0:u.invalidError}else if(q.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var y;q=(y=this.data)==null?void 0:y.invalidAspectRatioError}else return;this.errorMessage=_.lA(q);_.A(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.k.onImageAlert=function(q){this.onImageError(q)};
_.k.uploadPromise=function(){var q=this,w=this.overlay&&this.overlay.uploadPromise();if(w)return w.catch(function(){throw Error(q.data?_.lA(q.data.uploadFailureError):"");})};
_.x$.Object.defineProperties(aP.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var q,w;if((q=this.data)==null?0:(w=q.icon)==null?0:w.iconType)return _.Fy(this.data.icon.iconType)}}});
aP.prototype.setupOverlay=aP.prototype.setupOverlay;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],aP.prototype,"rendererStamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],aP.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],aP.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],aP.prototype,"imageUploadEndpoint",void 0);_.c([_.v(),_.h("design:type",Object)],aP.prototype,"errorMessage",void 0);
_.c([_.v(),_.h("design:type",SL)],aP.prototype,"overlay",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],aP.prototype,"hasPreview",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],aP.prototype,"isBackstagePost",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],aP.prototype,"selectionCancel",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],aP.prototype,"previewCancel",null);
_.c([_.Z("data.icon.iconType"),_.h("design:type",Object),_.h("design:paramtypes",[])],aP.prototype,"icon",null);_.c([_.v(),_.h("design:type",Object)],aP.prototype,"dismissButtonOverrides",void 0);_.c([_.nL("imageUploadEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],aP.prototype,"setupOverlay",null);aP=_.c([_.E({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],aP);
_.R(aP,"ytd-backstage-image-select-renderer",function(){if(Fzx!==void 0)return Fzx;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Fzx=q},{mode:1});var WzG;var sF3;var Dc=function(){var q=_.Y.apply(this,arguments)||this;q.selected=!1;return q};
_.O(Dc,_.Y);_.k=Dc.prototype;_.k.computeSelected=function(q){return q==null?void 0:q.selected};
_.k.computeTransform=function(q,w,u){var y,e,t=(e=(y=this.imageContainer)==null?void 0:y.getBoundingClientRect())!=null?e:{width:0,height:0};y=Math.max(t.width/w,t.height/u);u=u*y*q.top;return"translateX("+this.getSignedPosition(w*y*q.left,"X","-")+") translateY("+this.getSignedPosition(u,"Y","-")+")"};
_.k.getSignedPosition=function(q,w,u){return w==="X"&&_.Et("HTML_DIR")==="rtl"?u==="-"?q+"px":q*-1+"px":u==="-"?q*-1+"px":q+"px"};
_.k.onClick=function(){var q;_.t7(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(q=this.data)==null?void 0:q.image)};
_.k.onKeyPress=function(q){if(q.keyCode===13)this.onClick()};
_.x$.Object.defineProperties(Dc.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.data)==null?void 0:(w=q.image)==null?void 0:w.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)!=null&&q.image){var w;q=(w=this.data)==null?void 0:w.image;return q.previewCoordinates.top!==0||q.previewCoordinates.left!==0?(w=this.computeTransform(q.previewCoordinates,q.naturalWidth,q.naturalHeight),q.naturalHeight>=q.naturalWidth?"width:inherit;transform:"+w+";":"height:inherit;transform:"+w+";"):q.naturalHeight>=q.naturalWidth?"width:inherit;":"height:inherit;"}}}});
Dc.prototype.onKeyPress=Dc.prototype.onKeyPress;_.c([_.Wj(".image-container"),_.h("design:type",HTMLElement)],Dc.prototype,"imageContainer",void 0);_.c([_.v(),_.h("design:type",Object)],Dc.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.h("design:type",Object)],Dc.prototype,"selected",void 0);_.c([_.Z("data.image"),_.h("design:type",Object),_.h("design:paramtypes",[])],Dc.prototype,"thumbnailUrl",null);
_.c([_.Z("data.image","data.image.previewCoordinates"),_.h("design:type",Object),_.h("design:paramtypes",[])],Dc.prototype,"thumbnailStyle",null);_.c([_.Gm("keypress"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Dc.prototype,"onKeyPress",null);Dc=_.c([_.E({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],Dc);
_.R(Dc,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(sF3!==void 0)return sF3;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return sF3=q},{mode:2});var Zc=function(q,w,u){u=u===void 0?!1:u;_.Q4.call(this);var y=this;this.dropZoneOverlay=new Fh(q);this.selectOverlay=u?new Go(w,"multiple_file",["image/*"]):new Go(w,"single_file",["image/*"]);this.handler=new _.tp(this);_.sN(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(w,"click",function(){y.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.O(Zc,_.Q4);Zc.prototype.onChange=function(q){var w;(w=q.files)!=null&&w.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:q.files}))};var pf=function(){var q=_.Y.apply(this,arguments)||this;q.addImageErrorMessage="";q.errorMessage="";q.images=[];q.selectedImageIndex=0;q.modern=_.T("web_modern_buttons");q.maxNumImagesPerPost=_.Fc("max_num_images_per_post_web_ui");q.JSC$13434_imageId=0;return q};
_.O(pf,_.Y);_.k=pf.prototype;_.k.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.t7(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.k.observeDragToReorder=function(){var q=this;if(this.showImagesPreview){var w,u=cHF(_.Mk.getInstance(),(w=this.data)==null?void 0:w.dragToReorderTooltip);_.pi.addLowPriorityJob(function(){_.nq(q.hostElement,u,q.thumbnailDragDropArea)})}};
_.k.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}}};
_.k.computeThumbnail=function(q){return(q==null?void 0:q.localImageSrc)||void 0};
_.k.onRendererstamperFinished=function(){_.Ib$(this.ytReorderableBehavior,_.A(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.A(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.k.handleDrop=function(q){var w=q.currDragItem;if(w!=null&&w.data){q=this.images[this.selectedImageIndex];var u=w.data.image,y=this.images.indexOf(u)||0;w=_.c4(w.parentNode.children,w);this.images.splice(y,1);this.images.splice(w,0,u);this.images=[].concat(_.Cm(this.images));this.selectedImageIndex=this.images.indexOf(q)}};
_.k.setUpImagePicker=function(){var q=this.imageUploadEndpoint;q&&q.imageValidationInfo&&(this.uploadManager=new m3(q.uploadUrl,q.channelId),this.initialPicker||(this.initialPicker=new Zc(this.dropzone,this.selectLink,!0),_.dL(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new Zc(this.addImageButtonContainer,this.addImageSelectButton),_.dL(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.dL(this.JSC$13434_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.dL(this.JSC$13434_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.dL(_.A(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.k.detached=function(){this.initialPicker&&(_.NF(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.NF(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.k.onInitialSelectImages=function(q){var w=this;return _.F(function(u){return _.H(u,w.onSelectImages(q,!1),0)})};
_.k.onAddImage=function(q){var w=this;return _.F(function(u){return _.H(u,w.onSelectImages(q,!0),0)})};
_.k.onSelectImages=function(q,w){var u=this,y,e,t,X,G,n,N,Q,I,U,d,V,J,a,b,g,l,S,eH,x;return _.F(function(P4){switch(P4.nextAddress){case 1:w?u.addImageErrorMessage="":(u.images=[],u.errorMessage="");y=q.detail;e=u.validateImages([].concat(_.Cm(y)));if(e!=="")return w?u.addImageErrorMessage=e:u.errorMessage=e,P4.return();t=[].concat(_.Cm(y)).map(function(C7){return(new RB(u.maxAspectRatio,!1,!0)).transform(C7)});
return _.H(P4,Promise.allSettled(t),2);case 2:X=P4.yieldResult,G=_.P(X.entries()),n=G.next();case 3:if(n.done){P4.jumpTo(5);break}N=n.value;Q=_.P(N);I=Q.next().value;U=Q.next().value;d=I;V=U;if(V.status!=="fulfilled"){b=a=J=void 0;w?u.addImageErrorMessage=_.lA((J=u.data)==null?void 0:J.invalidError):u.errorMessage=u.errorMessage===""?_.lA((a=u.data)==null?void 0:a.invalidError):_.lA((b=u.data)==null?void 0:b.multiFileError);P4.jumpTo(4);break}g=V.value;g.cropped&&_.t7(u.hostElement,"yt-backstage-multi-image-cropped");
if(g.invalidAspectRatio){eH=S=l=void 0;w?u.addImageErrorMessage=_.lA((l=u.data)==null?void 0:l.invalidAspectRatioError):u.errorMessage=u.errorMessage===""?_.lA((S=u.data)==null?void 0:S.invalidAspectRatioError):_.lA((eH=u.data)==null?void 0:eH.multiFileError);P4.jumpTo(4);break}return _.H(P4,D7M(u.JSC$13434_imageId,q.detail[d],g.transformedData),8);case 8:x=P4.yieldResult,u.images.push(x),u.JSC$13434_imageId++;case 4:n=G.next();P4.jumpTo(3);break;case 5:if(u.errorMessage!==""||u.addImageErrorMessage!==
"")return P4.return();w?wNT(u.uploadManager,[u.images[u.images.length-1]]):wNT(u.uploadManager,u.images);u.images=[].concat(_.Cm(u.images));u.selectedImageIndex=w?Math.max(u.images.length-1,0):0;_.t7(u.hostElement,"yt-backstage-multi-image-select");_.HI(P4)}})};
_.k.onThumbnailClick=function(q){if(q=q.event_.detail)this.selectedImageIndex=this.images.indexOf(q)};
_.k.validateImages=function(q){if(q.length>this.maxNumImagesPerPost){var w;return _.lA((w=this.data)==null?void 0:w.multiImageExceedMaxImageCountError)}var u=1048576*this.maxFileSizeMb;q=q.filter(function(t){return t.size>u}).length;
if(q===0)return"";var y,e;q=q>1?(y=this.data)==null?void 0:y.multiFileError:(e=this.data)==null?void 0:e.fileSizeError;return _.lA(q)};
_.k.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.Cm(this.images));this.selectedImageIndex=0};
_.k.repositionImage=function(q){this.images[this.selectedImageIndex].previewCoordinates=q.event_.detail;this.images=[].concat(_.Cm(this.images))};
_.k.getAllUploadStatuses=function(){var q=this,w,u,y,e;return _.F(function(t){if(t.nextAddress==1)return _.H(t,q.uploadManager.getAllUploadStatuses(),2);w=t.yieldResult;u=_.P(w);for(y=u.next();!y.done;y=u.next())if(e=y.value,e.encryptedBlobId===void 0)return t.return(uBc(q.uploadManager));return t.return(w)})};
_.k.hasImages=function(){return this.images.length>0};
_.k.cancel=function(){for(var q=this.uploadManager,w=_.P(q.imagesUploadData),u=w.next();!u.done;u=w.next())q.cancel(u.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.t7(this.hostElement,"yt-backstage-multi-image-cancel")};
_.x$.Object.defineProperties(pf.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.imageUploadEndpoint)==null?void 0:(w=q.imageValidationInfo)==null?void 0:w.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.imageUploadEndpoint)==null?void 0:(w=q.imageValidationInfo)==null?void 0:w.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var q,w;if((q=this.data)==null?0:(w=q.icon)==null?0:w.iconType)return _.Fy(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.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 q=this;return(this.images||[]).map(function(w,u){return{renderer:{image:w,selected:u===q.selectedImageIndex}}})}}});
pf.prototype.setUpImagePicker=pf.prototype.setUpImagePicker;pf.prototype.onRendererstamperFinished=pf.prototype.onRendererstamperFinished;pf.prototype.observeDragToReorder=pf.prototype.observeDragToReorder;pf.prototype.observeAddImageError=pf.prototype.observeAddImageError;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],pf.prototype,"rendererStamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],pf.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.iPj),_.h("design:type",Object)],pf.prototype,"ytReorderableBehavior",void 0);_.c([_.Wj("#dropzone"),_.h("design:type",HTMLElement)],pf.prototype,"dropzone",void 0);_.c([_.Wj("#select-link"),_.h("design:type",HTMLElement)],pf.prototype,"selectLink",void 0);_.c([_.Wj("#thumbnail-drag-drop-area"),_.h("design:type",HTMLElement)],pf.prototype,"thumbnailDragDropArea",void 0);_.c([_.Wj("#add-image-button-container"),_.h("design:type",HTMLElement)],pf.prototype,"addImageButtonContainer",void 0);
_.c([_.Wj("#add-image-button"),_.h("design:type",HTMLElement)],pf.prototype,"addImageSelectButton",void 0);_.c([_.Wj("#image-preview-container"),_.h("design:type",Object)],pf.prototype,"JSC$13434_imagePreviewContainer",void 0);_.c([_.v(),_.h("design:type",Object)],pf.prototype,"addImageErrorMessage",void 0);_.c([_.v(),_.h("design:type",Object)],pf.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],pf.prototype,"errorMessage",void 0);
_.c([_.v(),_.h("design:type",Object)],pf.prototype,"imageUploadEndpoint",void 0);_.c([_.v(),_.h("design:type",Array)],pf.prototype,"images",void 0);_.c([_.v(),_.h("design:type",Zc)],pf.prototype,"initialPicker",void 0);_.c([_.v(),_.h("design:type",Zc)],pf.prototype,"addImagePicker",void 0);_.c([_.v(),_.h("design:type",m3)],pf.prototype,"uploadManager",void 0);_.c([_.v(),_.h("design:type",Object)],pf.prototype,"selectedImageIndex",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],pf.prototype,"modern",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],pf.prototype,"maxNumImagesPerPost",void 0);_.c([_.Z("imageUploadEndpoint"),_.h("design:type",Number),_.h("design:paramtypes",[])],pf.prototype,"maxAspectRatio",null);_.c([_.Z("imageUploadEndpoint"),_.h("design:type",Number),_.h("design:paramtypes",[])],pf.prototype,"maxFileSizeMb",null);
_.c([_.Z("data.icon.iconType"),_.h("design:type",Object),_.h("design:paramtypes",[])],pf.prototype,"dropIcon",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],pf.prototype,"selectionCancel",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],pf.prototype,"previewCancel",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],pf.prototype,"dataForAddImageButton",null);
_.c([_.Z("errorMessage"),_.h("design:type",String),_.h("design:paramtypes",[])],pf.prototype,"dropzoneClass",null);_.c([_.Z("images"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],pf.prototype,"showImagesPreview",null);_.c([_.Z("images"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],pf.prototype,"containMaxImages",null);_.c([_.nL("addImageErrorMessage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pf.prototype,"observeAddImageError",null);
_.c([_.nL("showImagesPreview"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pf.prototype,"observeDragToReorder",null);_.c([_.Z("images","selectedImageIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],pf.prototype,"selectedImageData",null);_.c([_.Z("images","selectedImageIndex"),_.h("design:type",Array),_.h("design:paramtypes",[])],pf.prototype,"thumbnailRenderers",null);
_.c([_.Gm("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pf.prototype,"onRendererstamperFinished",null);_.c([_.nL("imageUploadEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pf.prototype,"setUpImagePicker",null);pf=_.c([_.E({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],pf);
_.R(pf,"ytd-backstage-multi-image-select-renderer",function(){if(WzG!==void 0)return WzG;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return WzG=q},{mode:1});var N8k;var QFX;var Ijc;var EW=function(){var q=_.Y.apply(this,arguments)||this;q.boundCaptureFocus=function(w){q.onCaptureFocus(w)};
return q};
_.O(EW,_.Y);_.k=EW.prototype;_.k.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.k.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.k.onCaptureFocus=function(q){_.SQ(q).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.k.getIconType=function(q){return q?"yt-icons:"+q.toLowerCase():null};
_.k.onSelect=function(){var q;if((q=this.data)==null?0:q.onSelectCommand)if(_.T("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var w;((w=_.C(this.data.onSelectCommand.commandMetadata,_.wk))==null?0:w.url)?_.t7(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.tG().resolve(_.PG).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.x$.Object.defineProperties(EW.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.lA(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}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],EW.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],EW.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],EW.prototype,"data",void 0);_.c([_.Wj("#item"),_.h("design:type",HTMLElement)],EW.prototype,"item",void 0);_.c([_.Z("data.label"),_.h("design:type",String),_.h("design:paramtypes",[])],EW.prototype,"label",null);
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],EW.prototype,"value",null);EW=_.c([_.E({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],EW);
_.R(EW,"ytd-privacy-dropdown-item-renderer",function(){if(Ijc!==void 0)return Ijc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Ijc=q},{mode:1});var RP=function(){var q=_.Y.apply(this,arguments)||this;q.value="";q.label="";q.disabled=!1;return q};
_.O(RP,_.Y);_.k=RP.prototype;_.k.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"}}}};
_.k.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.k.dataChanged=function(){this.reset()};
_.k.valueChanged=function(){var q;if(this.value&&(q=this.data)!=null&&q.entries){q=_.P(this.data.entries);for(var w=q.next();!w.done;w=q.next())if((w=this.getRendererForEntry(w.value))&&this.getItemRendererValue(w)===this.value){this.label=this.ytComponentBehavior.getSimpleString(w.label);break}}};
_.k.setInitialLabel=function(){if(this.data&&this.data.entries)for(var q=_.P(this.data.entries),w=q.next();!w.done;w=q.next())if(w=this.getRendererForEntry(w.value)){if(w.isSelected){this.label=this.ytComponentBehavior.getSimpleString(w.label);break}this.data.label&&(this.label=this.data.label)}};
_.k.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var q=_.P(this.data.entries),w=q.next();!w.done;w=q.next()){w=this.getRendererForEntry(w.value);var u=void 0;if((u=w)==null?0:u.isSelected)return this.getItemRendererValue(w)||-1}return-1};
_.k.getItemRendererValue=function(q){return"stringValue"in q||"int32Value"in q?q.stringValue||q.int32Value||null:null};
_.k.getRendererForEntry=function(q){return q.dropdownItemRenderer||q.privacyDropdownItemRenderer||q.navigationDropdownItemRenderer||null};
_.k.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.D1("value-changed",this.value))};
_.k.updateValueFromBinding=function(q){this.value=q.detail.value};
RP.prototype.valueChangedForBinding=RP.prototype.valueChangedForBinding;RP.prototype.valueChanged=RP.prototype.valueChanged;RP.prototype.dataChanged=RP.prototype.dataChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],RP.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],RP.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],RP.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],RP.prototype,"value",void 0);_.c([_.v(),_.h("design:type",Object)],RP.prototype,"label",void 0);_.c([_.Wj("#entries"),_.h("design:type",Object)],RP.prototype,"entries",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],RP.prototype,"disabled",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RP.prototype,"dataChanged",null);
_.c([_.I9("value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RP.prototype,"valueChanged",null);_.c([_.nL("value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RP.prototype,"valueChangedForBinding",null);RP=_.c([_.E({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],RP);
_.R(RP,"ytd-flat-dropdown-renderer",function(){if(QFX!==void 0)return QFX;var q=document.createElement("template");_.f(q,'\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="yt-icons:arrow_drop_down" 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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return QFX=q},{mode:1});var i5a;var ca=function(){var q=_.Y.apply(this,arguments)||this;q.quizOptions=[];q.explanationPlaceholderText="";q.optionPlaceholderText="";q.correctAnswerIndex=-1;q.isMarkAnswerTooltipShown=!1;q.timer=0;return q};
_.O(ca,_.Y);_.k=ca.prototype;_.k.dataChanged=function(){this.optionPlaceholderText=_.lA(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.lA(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.k.onMarkCorrectAnswer=function(q){var w,u=((w=this.quizOptions[this.correctAnswerIndex])==null?void 0:w.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[q.model.index]=Object.assign({},this.quizOptions[q.model.index],{explanationText:u,isCorrect:!0});this.correctAnswerIndex=q.model.index;this.quizOptions=[].concat(_.Cm(this.quizOptions))};
_.k.updatePlaceholderTexts=function(){for(var q=!1,w=[],u=0;u<this.quizOptions.length;u++){var y=this.optionPlaceholderText+" "+(u+1),e=void 0;((e=this.quizOptions[u])==null?void 0:e.placeholderText)!==y?(q=!0,w.push(Object.assign({},this.quizOptions[u],{placeholderText:y}))):w.push(this.quizOptions[u])}q&&(this.quizOptions=w);this.isValid()?_.t7(this.hostElement,"yt-commentbox-post-enable"):_.t7(this.hostElement,"yt-commentbox-post-disable")};
_.k.getSimpleString=function(q){return _.lA(q)};
_.k.createQuizOptions=function(q){var w=[],u;q=(u=q==null?void 0:q.minQuizOptions)!=null?u:0;for(u=0;u<q;u++)w.push(this.createQuizOption());return w};
_.k.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.Cm(this.quizOptions),[this.createQuizOption()]))};
_.k.onInput=function(){this.quizOptions=[].concat(_.Cm(this.quizOptions))};
_.k.onExplanationInput=function(){_.t7(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.k.onRemoveQuizOption=function(q){this.quizOptions.splice(q.model.index,1);q.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:q.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.Cm(this.quizOptions));this.quizOptions.length===0&&_.t7(this.hostElement,"yt-quiz-attachment-dismiss")};
_.k.updateHintRenderer=function(){var q=this;clearTimeout(this.timer);this.timer=setTimeout(function(){q.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.k.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var q=0,w=0,u=_.P(this.quizOptions),y=u.next();!y.done;y=u.next()){y=y.value;var e=void 0;if(((e=y.optionText)==null?void 0:e.trim())!==""||y.isCorrect){y.isCorrect&&w++;e=void 0;if(this.hasCustomOptionText&&((e=y.optionText)==null?void 0:e.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;q++}}return q>=
Number(this.editorInfo.minQuizOptions)&&w===1};
_.k.getPostCreateOptions=function(){for(var q=[],w=_.P(this.quizOptions),u=w.next();!u.done;u=w.next()){u=u.value;var y=void 0;((y=u.optionText)==null?void 0:y.trim())!==""&&q.push({pollOption:{text:u.optionText,explanation:u.explanationText},isCorrect:u.isCorrect})}return q};
_.k.getExplanationText=function(){var q;return((q=this.quizOptions[this.correctAnswerIndex])==null?void 0:q.explanationText)||""};
_.k.maybeDisplayMarkAnswerEduToolTip=function(){var q,w,u,y,e,t,X;this.shouldShowMarkAnswerTooltip()&&((q=this.editorInfo)==null?0:(w=q.markAnswerButton)==null?0:(u=w.buttonRenderer)==null?0:(y=u.hint)==null?0:(e=y.hintRenderer)==null?0:(t=e.content)==null?0:(X=t.bubbleHintRenderer)==null?0:X.text)&&(_.Mk.getInstance(),q=KF(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,(q==null?void 0:q.length)>0&&this.optionSelectors&&_.H6(q[0],this.optionSelectors[0]))};
_.k.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var q=0,w=_.P(this.quizOptions),u=w.next();!u.done;u=w.next()){u=u.value;var y=void 0;((y=u.optionText)==null?void 0:y.trim())!==""&&q++;if(u.isCorrect)return!1}return q<2?!1:!0};
_.k.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.k.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.k.updateOptionTextFromBinding=function(q){if(q.target){var w=Array.from(_.A(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(q.target);if(w>=0){var u;this.quizOptions[w].optionText=(u=q.detail.value)!=null?u:""}}};
_.x$.Object.defineProperties(ca.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var q,w,u=(q=this.editorInfo)==null?void 0:(w=q.addOptionButton)==null?void 0:w.buttonRenderer;u&&(u.style="STYLE_SUGGESTIVE",u.size="SIZE_SMALL",u.isDisabled=!this.isAllowedToAddOption);return(u==null?0:u.text)?u:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var q,w;return this.quizOptions.length<((w=(q=this.editorInfo)==null?void 0:q.maxQuizOptions)!=null?w:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(q){var w;return(w=q.optionText)==null?void 0:w.trim()})}}});
ca.prototype.updatePlaceholderTexts=ca.prototype.updatePlaceholderTexts;ca.prototype.dataChanged=ca.prototype.dataChanged;_.c([_.v(),_.h("design:type",Object)],ca.prototype,"editorInfo",void 0);_.c([_.v(),_.h("design:type",Array)],ca.prototype,"quizOptions",void 0);_.c([_.v(),_.h("design:type",Object)],ca.prototype,"explanationPlaceholderText",void 0);_.c([_.s6(".option-selector-button"),_.h("design:type",Array)],ca.prototype,"optionSelectors",void 0);
_.c([_.I9("editorInfo"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ca.prototype,"dataChanged",null);_.c([_.Z("editorInfo","isAllowedToAddOption","quizOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],ca.prototype,"addAnswerButton",null);_.c([_.Z("editorInfo","quizOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],ca.prototype,"isAllowedToAddOption",null);
_.c([_.I9("quizOptions"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ca.prototype,"updatePlaceholderTexts",null);_.c([_.Z("quizOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],ca.prototype,"hasCustomOptionText",null);ca=_.c([_.E({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],ca);
_.R(ca,"ytd-backstage-quiz-editor-renderer",function(){if(i5a!==void 0)return i5a;var q=document.createElement("template");_.f(q,'\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-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" 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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return i5a=q},{mode:2});var rTF;var UWa=(CV.FIRSTDAYOFWEEK+1)%7;var T8a;var Cg$=[],dW3=0,O5$=0;dW3=0;O5$=24;if(.25*(O5$-dW3)<0)T8a=[];else{for(var olX=dW3;olX<O5$;olX+=.25)Cg$.push(olX);T8a=Cg$}var VOx=T8a.map(function(q){q=q*60*60;return{secondsSinceMidnight:q,text:(new SN(7)).format(new Date(0,0,0,0,0,q))}});var fja;var So=function(){var q=_.Y.apply(this,arguments)||this;q.skipNextOpenDialog=!1;q.errorMessage="";return q};
_.O(So,_.Y);_.k=So.prototype;_.k.attached=function(){var q=this,w=new MutationObserver(function(){q.JSC$13477_calendarMain.scrollHeight>0&&(w.disconnect(),q.calendarConfig&&q.calendarConfig.selectedDate&&q.scrollToDate())});
w.observe(this.JSC$13477_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){w.disconnect()},1E3)};
_.k.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.k.onDateTextChange=function(){if(this.calendarConfig){var q=this.validateDateText();q.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(q.details)):this.textbox.setAttribute("invalid","")}};
_.k.handleDayClick=function(q){q.model.day.date&&(this.commitDate(q.model.day.date),this.dialog.close())};
_.k.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var q=SR7(this.calendarConfig.selectedDate,this.renderData);q!==void 0&&this.JSC$13477_calendarMain.scrollToIndex(q)}};
_.k.scrollToNextMonth=function(){this.JSC$13477_calendarMain.scrollToIndex(this.JSC$13477_calendarMain.firstVisibleIndex+1)};
_.k.scrollToPrevMonth=function(){this.JSC$13477_calendarMain.firstVisibleIndex===0&&this.JSC$13477_calendarMain.scrollTo(0,0);this.JSC$13477_calendarMain.scrollToIndex(this.JSC$13477_calendarMain.firstVisibleIndex-1)};
_.k.onFormSubmit=function(q){q.preventDefault();this.calendarConfig&&(q=this.validateDateText(),q.isValid&&(this.commitDate(q.details),this.dialog.close()))};
_.k.onEscOrClickingOutside=function(q){q=q.detail.path&&!!q.detail.path.length&&q.detail.path[0];if(q.classList.contains("ytd-calendar-date-picker")){q===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var w=0;w<this.dropdownButton.children.length;w++)this.dropdownButton.children[w]===q&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}q=this.textbox.value!==this.dateText;w=this.validateDateText();q&&w.isValid&&this.commitDate(w.details);this.dialog.close();this.textbox.value=
this.dateText};
_.k.commitDate=function(q){this.calendarConfig&&(this.set("calendarConfig.selectedDate",q),_.t7(this.hostElement,"ytd-calendar-date-selected",q))};
_.k.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var q=this.textbox.value;var w=new Date;q=(new Gpy(2)).parse(q,w,{validate:!0})===q.length?Rtl(w):void 0;if(!q)return this.errorMessage=_.ID("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};w=this.calendarConfig.start;var u=this.calendarConfig.end;if(vgs(q,w))return this.errorMessage=_.ID("ENTER_DATE_OR_LATER",{allowed_date:Egy(w)}),{isValid:!1,details:void 0};if(vgs(u,q))return this.errorMessage=
_.ID("ENTER_DATE_OR_EARLIER",{allowed_date:Egy(u)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:q}};
_.x$.Object.defineProperties(So.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?Egy(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var q=this.calendarConfig,w=[],u=0;u<7;u++)w.push(CV.NARROWWEEKDAYS[(u+UWa)%7]);u=[];for(var y=new Date(q.start.year,q.start.month);y.getFullYear()<q.end.year||y.getFullYear()===q.end.year&&y.getMonth()<=q.end.month;){var e=u,t=e.push,X=y.getFullYear(),G=y.getMonth(),n=q,N=void 0,Q=[],I=Object.freeze({extraCssClass:"invisible",debugClass:""}),U=new Date(X,G),d=Rtl(U);U=U.getDay();for(var V=Rtl(new Date);d.month===
G;){U!==UWa&&N||(N=Array.from({length:7}).fill(I),Q.push(N));var J={date:{year:X,month:G,day:d.day},extraCssClass:"",debugClass:""};n.selectedDate&&J.date&&$7M(J.date,n.selectedDate)&&(J.extraCssClass+=" selected");if(vgs(d,n.start)||vgs(n.end,d))J.extraCssClass+=" disabled";$7M(d,V)&&(J.extraCssClass+=" today");J.extraCssClass=J.extraCssClass.trim();N[(U-UWa+7)%7]=J;d=YRs(d);U=(U+1)%7}t.call(e,{weeks:Q,monthLabel:CV.SHORTMONTHS[G]+" "+X,year:X,month:G,monthLabelExtraCssClass:Q[0][2]===I?"shift-down-label":
""});y.setMonth(y.getMonth()+1)}return{months:u,daysOfWeekLabel:w}}}}});
So.prototype.onEscOrClickingOutside=So.prototype.onEscOrClickingOutside;So.prototype.scrollToDate=So.prototype.scrollToDate;_.c([_.v(),_.h("design:type",Object)],So.prototype,"calendarConfig",void 0);_.c([_.v(),_.h("design:type",Object)],So.prototype,"skipNextOpenDialog",void 0);_.c([_.v(),_.h("design:type",Object)],So.prototype,"errorMessage",void 0);_.c([_.Wj("#textbox"),_.h("design:type",HTMLInputElement)],So.prototype,"textbox",void 0);
_.c([_.Wj("#calendar-dialog"),_.h("design:type",Object)],So.prototype,"dialog",void 0);_.c([_.Wj("#calendar-main"),_.h("design:type",Object)],So.prototype,"JSC$13477_calendarMain",void 0);_.c([_.Wj("#date-picker"),_.h("design:type",HTMLElement)],So.prototype,"dropdownButton",void 0);_.c([_.Z("calendarConfig.selectedDate"),_.h("design:type",String),_.h("design:paramtypes",[])],So.prototype,"dateText",null);
_.c([_.Z("calendarConfig","calendarConfig.selectedDate"),_.h("design:type",Object),_.h("design:paramtypes",[])],So.prototype,"renderData",null);_.c([_.nL("renderData","calendarConfig.selectedDate"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],So.prototype,"scrollToDate",null);_.c([_.Gm("iron-overlay-canceled"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],So.prototype,"onEscOrClickingOutside",null);
So=_.c([_.JM({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],So);
_.R(So,"ytd-calendar-date-picker",function(){if(fja!==void 0)return fja;var q=document.createElement("template");_.f(q,'\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="yt-icons:arrow_drop_down" 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" 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" 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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return fja=q},{mode:2});var mWF=_.ID("UTC_OFFSET_FORMAT",{utc_offset:(new SN("Z")).format(new Date)}),ATk=(new Date).getTimezoneOffset()*-60,JTP=new Date,zRT,aj3=cQ(JTP.getTimezoneOffset());zRT=q1r(uXG(aj3,JTP));var DWG=_.ID("LOCAL_TIME_GMT_LABEL",{gmt_text:zRT.replace("+0","+").replace("-0","-").replace(":00","")}),hW=function(){var q=_.Y.apply(this,arguments)||this;q.selectedTimeIndex=0;q.selectedTimezoneIndex=0;q.timeOfDayOptions=VOx;return q};
_.O(hW,_.Y);_.k=hW.prototype;_.k.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.k.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var q=gg6();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=q,this.selectedTimeIndex=0;else{var w=cNy(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},q,{selectedDate:w.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(u){return u.secondsSinceMidnight===w.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.k.onDatePicked=function(q){this.selectedDate=q.detail};
_.k.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.t7(this.hostElement,"ytd-date-time-selection-cancelled")};
_.k.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var q=this.selectedDate;q=new Date(q.year,q.month,q.day);_.t7(this.hostElement,"ytd-date-time-selection-update",Math.floor(q.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+q.getTimezoneOffset()*60))}};
_.k.getTimezoneFormat=function(q){return q.localizedDisplayText?q.localizedDisplayText:_.ID("TIMEZONE_FORMAT",{utc_offset_text:""+q.localizedUtcOffset,city_name:""+q.localizedName})};
_.k.updateSelectedTimeIndexFromBinding=function(q){this.selectedTimeIndex=q.detail.value};
_.k.updateSelectedTimezoneIndexFromBinding=function(q){this.selectedTimezoneIndex=q.detail.value};
_.x$.Object.defineProperties(hW.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var q=this.data.timezoneOptions;var w={name:"Etc/Unknown",localizedName:_.ID("LOCAL_TIME_LABEL"),localizedUtcOffset:mWF,utcOffsetSec:""+ATk,localizedDisplayText:DWG};q?q.length&&q[0].name!==w.name&&(q[0].localizedDisplayText||(w.localizedDisplayText=""),q.unshift(w)):q=[w];return q}}},
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]}}});
hW.prototype.onDateTimeTimezoneChange=hW.prototype.onDateTimeTimezoneChange;hW.prototype.onDatePicked=hW.prototype.onDatePicked;hW.prototype.updateDefaultSelectedValue=hW.prototype.updateDefaultSelectedValue;_.c([_.v(),_.h("design:type",Object)],hW.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],hW.prototype,"calendarConfig",void 0);_.c([_.v(),_.h("design:type",Object)],hW.prototype,"selectedDate",void 0);_.c([_.v(),_.h("design:type",Object)],hW.prototype,"selectedTimeIndex",void 0);
_.c([_.v(),_.h("design:type",Object)],hW.prototype,"selectedTimezoneIndex",void 0);_.c([_.Wj("#time-listbox"),_.h("design:type",Object)],hW.prototype,"timeListBox",void 0);_.c([_.Wj("#timezone-listbox"),_.h("design:type",Object)],hW.prototype,"timezoneListBox",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],hW.prototype,"rendererStamperBehavior",void 0);_.c([_.Z("data.timezoneOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],hW.prototype,"timeZones",null);
_.c([_.I9("data","timeZones"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hW.prototype,"updateDefaultSelectedValue",null);_.c([_.Z("selectedTimezoneIndex","timeZones"),_.h("design:type",Object),_.h("design:paramtypes",[])],hW.prototype,"selectedTimezone",null);_.c([_.Z("selectedTimeIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],hW.prototype,"selectedTime",null);
_.c([_.Gm("ytd-calendar-date-selected"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],hW.prototype,"onDatePicked",null);_.c([_.nL("selectedTimezone","selectedTime","selectedDate"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hW.prototype,"onDateTimeTimezoneChange",null);hW=_.c([_.E({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],hW);
_.R(hW,"ytd-date-time-picker-renderer",function(){if(rTF!==void 0)return rTF;var q=document.createElement("template");_.f(q,'\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="yt-icons:arrow_drop_down" 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="yt-icons:arrow_drop_down" 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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return rTF=q},{mode:1});var Z56;var jo=function(){var q=_.Y.apply(this,arguments)||this;q.boundOnTapDismissButton=function(){q.dismissTapHandler()};
q.dismissButtonOverrides={size:"XS"};return q};
_.O(jo,_.Y);jo.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}}}}}};
jo.prototype.dismissTapHandler=function(){_.t7(this.hostElement,"yt-backstage-attachment-dismissed")};
jo.prototype.computeAttachmentType=function(q){return q?q.backstageImageRenderer?"image":q.videoRenderer?"video":"none":"none"};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],jo.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],jo.prototype,"attachmentPreview",void 0);_.c([_.v(),_.h("design:type",Object)],jo.prototype,"dismissButton",void 0);_.c([_.v(),_.h("design:type",Object)],jo.prototype,"boundOnTapDismissButton",void 0);
_.c([_.v(),_.h("design:type",Object)],jo.prototype,"dismissButtonOverrides",void 0);_.c([_.v({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.h("design:type",String)],jo.prototype,"attachmentType",void 0);jo=_.c([_.E({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],jo);
_.R(jo,"ytd-backstage-dismissable-attachment",function(){if(Z56!==void 0)return Z56;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Z56=q},{mode:1});var pN$;var l_=function(){var q=_.Y.apply(this,arguments)||this;q.selectedVideoId=void 0;q.picker=void 0;q.dismissButtonOverrides={size:"XS"};q.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return q};
_.O(l_,_.Y);_.k=l_.prototype;_.k.onServiceRequestCompleted=function(q){q.stopPropagation()};
_.k.handleAddVideoPreviewAction=function(q){q=this.get("addVideoPreviewAction",q);this.onGetVideoPreviewSuccess(q)};
_.k.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}}}}}};
_.k.onLaunchVideoPicker=function(q){var w=this,u=_.lA(this.get("addVideoLinkAction.title",q)),y=this.get("addVideoLinkAction.onePickHostId",q);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",q);y&&(this.picker||(u=_.x1r(_.Hou(y).setTitle(u).addView(L23()).addView(lHa()),function(e){w.onPickVideo(e)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",q)||u.addView("youtube"),this.picker=u.build()),this.picker.setVisible(!0))};
_.k.onPickVideo=function(q){if(q)if(q.action==="cancel")_.t7(this.hostElement,"yt-video-link-button-cancel");else if(q.action==="picked"){q=q.docs;if(!q||q.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(q=(q==null?0:q.length)?q[0]:void 0)?q.id:void 0;this.setVideoPreview()}};
_.k.setVideoPreview=function(){var q=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){q.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.k.onGetVideoPreviewSuccess=function(q){if(q&&q.videoPreview&&q.cancelButton)this.videoPreview=q.videoPreview,this.cancelButton=q.cancelButton,_.t7(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.k.onGetVideoPreviewError=function(){this.cancel()};
_.k.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.t7(this.hostElement,"yt-video-link-cancel")};
_.k.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
l_.prototype.onServiceRequestCompleted=l_.prototype.onServiceRequestCompleted;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],l_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],l_.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],l_.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],l_.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],l_.prototype,"videoPreview",void 0);_.c([_.v(),_.h("design:type",Object)],l_.prototype,"cancelButton",void 0);_.c([_.v(),_.h("design:type",Object)],l_.prototype,"getVideoPreviewCommand",void 0);_.c([_.v(),_.h("design:type",Object)],l_.prototype,"dismissButtonOverrides",void 0);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],l_.prototype,"onServiceRequestCompleted",null);l_=_.c([_.E({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],l_);
_.R(l_,"ytd-backstage-video-link-attachment",function(){if(pN$!==void 0)return pN$;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return pN$=q},{mode:1});var $WZ;var vlx;var b5$;var Lf=function(){return _.Y.apply(this,arguments)||this};
_.O(Lf,_.Y);Lf.prototype.dataChanged=function(){this.active=!1};
Lf.prototype.onTap=function(){_.t7(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Lf.prototype.identity=function(q){return q};
_.x$.Object.defineProperties(Lf.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var q,w,u,y;if((q=this.data)==null?0:(w=q.image)==null?0:(u=w.thumbnails)==null?0:(y=u[0])==null?0:y.url)return q=this.data.image.thumbnails[0].url,q.startsWith("data:image/svg+xml")?Ws(q):_.UY(q)}}});
Lf.prototype.dataChanged=Lf.prototype.dataChanged;_.c([_.v(),_.h("design:type",Object)],Lf.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Lf.prototype,"active",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lf.prototype,"dataChanged",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Lf.prototype,"imageSrc",null);
Lf=_.c([_.E({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Lf);
_.R(Lf,"ytd-emoji-suggestion",function(){if(b5$!==void 0)return b5$;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return b5$=q},{mode:1});var Yxx=/.*([:@#].*?)$/,MO=function(){var q=_.Y.apply(this,arguments)||this;q.suggestions=[];q.suggestionIndex=-1;q.JSC$13505_lastSuggestionRange=null;return q};
_.O(MO,_.Y);_.k=MO.prototype;_.k.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.k.getSuggestions=function(q){var w=[],u=dir(this.emojiManager,q.substr(0,3));if(u)for(var y in u)if(y.toLocaleLowerCase().indexOf(q)===0){var e=u[y];if(e&&e.emojiId){e=mD(this.emojiManager,e.emojiId);var t=void 0,X=void 0,G=void 0,n=void 0,N=((t=e)==null?0:t.isCustomEmoji)?(X=e)==null?void 0:(G=X.shortcuts)==null?void 0:G[0]:(n=e)==null?void 0:n.emojiId;t=void 0;w.push({suggestion:{image:(t=e)==null?void 0:t.image,alt:N,text:y}});if(w.length>=64)break}}return w?w.sort(function(Q,I){return I.suggestion.text<
Q.suggestion.text?-1:I.suggestion.text===Q.suggestion.text?0:1}):null};
_.k.insertSuggestion=function(q){_.t7(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13505_lastSuggestionRange,text:q.alt});this.dropdown.opened=!1};
_.k.updateSuggestionsAtCaret=function(q){this.updateSuggestions(q,this.retrieveTextBeforeRange(q))};
_.k.offsetStartOfRangeBy=function(q,w){q.startOffset>=w&&q.setStart(q.startContainer,q.startOffset-w)};
_.k.updateSuggestions=function(q,w){var u=this;this.JSC$13505_lastSuggestionRange&&(this.JSC$13505_lastSuggestionRange.detach(),this.JSC$13505_lastSuggestionRange=null);if((w=Yxx.exec(w))&&w.length&&(w=w[w.length-1].toLocaleLowerCase(),w.length>2||w===":_")&&(this.offsetStartOfRangeBy(q,w.length),this.JSC$13505_lastSuggestionRange=q,(q=this.getSuggestions(w))&&q.length)){this.suggestions=q;_.KJ(this,function(){u.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(q.length-1);return}this.dropdown.opened=!1};
_.k.onKeyDown=function(q){if(this.dropdown.opened)switch(q.key){case "Escape":this.dropdown.opened=!1;q.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);q.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);q.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),q.preventDefault()}};
_.k.onKeyUp=function(q,w){switch(q.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(w);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(w)}};
_.k.onKeyPress=function(q){q.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),q.preventDefault())};
_.k.changeSuggestionIndex=function(q){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(q+this.suggestions.length)%this.suggestions.length,q=this.dropdownContent.children[this.suggestionIndex],q.active=!0,this.dropdownContent.scrollTop=q.offsetTop)};
_.k.retrieveTextBeforeRange=function(q){var w=q.startContainer;return w&&w.nodeType===Node.TEXT_NODE?w.textContent.substr(0,q.startOffset):""};
MO.prototype.onKeyPress=MO.prototype.onKeyPress;MO.prototype.onKeyUp=MO.prototype.onKeyUp;MO.prototype.onKeyDown=MO.prototype.onKeyDown;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],MO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Array)],MO.prototype,"suggestions",void 0);_.c([_.v(),_.h("design:type",_.VL)],MO.prototype,"emojiManager",void 0);_.c([_.v(),_.h("design:type",Number)],MO.prototype,"verticalSuggestionsOffset",void 0);
_.c([_.Wj("#dropdown"),_.h("design:type",Object)],MO.prototype,"dropdown",void 0);_.c([_.Wj("#dropdown-content"),_.h("design:type",HTMLDivElement)],MO.prototype,"dropdownContent",void 0);_.c([_.Gm("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],MO.prototype,"onKeyDown",null);_.c([_.Gm("keyup"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent,Range]),_.h("design:returntype")],MO.prototype,"onKeyUp",null);
_.c([_.Gm("keypress"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],MO.prototype,"onKeyPress",null);MO=_.c([_.E({disableElementRegistration:!0,is:"ytd-emoji-input"})],MO);
_.R(MO,"ytd-emoji-input",function(){if(vlx!==void 0)return vlx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return vlx=q},{mode:2});var gla;var Kf=function(){var q=_.Y.apply(this,arguments)||this;q.hasMaxOptions=!1;return q};
_.O(Kf,_.Y);_.k=Kf.prototype;_.k.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.k.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.k.setPrefilledChoices=function(q){var w=this;this.set("pollOptions",[]);var u;for(u=0;u<Math.min(q.length,this.data.maxPollOptions);u++)this.push("pollOptions",q[u].substring(0,this.data.maxPollOptionChars));for(;u<this.data.minPollOptions;u++)this.push("pollOptions","");this.hasMaxOptions=u>=this.data.maxPollOptions;_.KJ(this,function(){for(var y=w.pollOptions,e=_.A(w.hostElement).querySelectorAll(".poll-option-input"),t=0;t<e.length;t++)e[t].value=y[t]})};
_.k.focusChanged=function(){_.Pj(this.hostElement)};
_.k.onInput=function(){var q=this;_.bf(this,"onInput",function(){q.isValid()?_.t7(q.hostElement,"yt-commentbox-post-enable"):_.t7(q.hostElement,"yt-commentbox-post-disable")},300)};
_.k.setPollOptions=function(){var q=[],w,u=((w=this.data)==null?0:w.minPollOptions)?this.data.minPollOptions:0;for(w=0;w<u;w++)q.push("");return q};
_.k.addPollOption=function(){var q=this;_.t7(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.pi.addLowPriorityJob(function(){var w;(w=_.A(q.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||w.focus()})};
_.k.onRemovePollOption=function(q){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.t7(this.hostElement,"yt-poll-attachment-dismiss")):(q=this.repeat.indexForElement(q.target.parentNode),q!==null&&(this.splice("pollOptions",q,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.t7(this.hostElement,"yt-commentbox-post-enable"))))};
_.k.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.k.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var q=0,w=this.pollOptions.length;q<w;q++)if(this.pollOptions[q].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.k.getPollOptions=function(){return this.pollOptions};
_.k.setPollOptionsFromInputs=function(){for(var q=_.A(this.hostElement).querySelectorAll(".poll-option-input"),w=0;w<q.length;w++)this.pollOptions[w]=q[w].value.trim()};
_.k.clearPollOptions=function(){var q=_.A(this.hostElement).querySelectorAll(".poll-option-input");q=_.P(q);for(var w=q.next();!w.done;w=q.next())w.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.k.getSimpleString=function(q){return _.lA(q)};
_.k.updateValueFromBinding=function(q){if(q.target&&this.pollOptions){var w=Array.from(_.A(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(q.target);if(w>=0){var u;this.pollOptions[w]=(u=q.detail.value)!=null?u:"";this.notifyPath("pollOptions."+w)}}};
Kf.prototype.dataChanged=Kf.prototype.dataChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Kf.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Kf.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Array)],Kf.prototype,"pollOptions",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Kf.prototype,"hasMaxOptions",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Kf.prototype,"enableCreationBox",void 0);
_.c([_.Wj("#repeat"),_.h("design:type",V6)],Kf.prototype,"repeat",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Kf.prototype,"dataChanged",null);Kf=_.c([_.E({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Kf);
_.R(Kf,"ytd-poll-attachment",function(){if(gla!==void 0)return gla;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return gla=q},{mode:2});var Elc;var RRx;var cTT;var SxT;var Ba=function(){return _.Y.apply(this,arguments)||this};
_.O(Ba,_.Y);_.x$.Object.defineProperties(Ba.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ba.prototype,"rendererBehaviors",void 0);_.c([_.v(),_.h("design:type",Object)],Ba.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ba.prototype,"focused",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("focused"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ba.prototype,"ariaSelected",null);Ba=_.c([_.JM({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],Ba);
_.R(Ba,"yt-user-mention-suggestion-renderer",function(){if(SxT===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;cTT===void 0&&(cTT=document.createElement("template"));var y=cTT;u.call(w,y.content.cloneNode(!0),q.content.firstChild);SxT=q}q=SxT;return q},{mode:2});var hRF;var jF3;var xc=function(){var q=_.Y.apply(this,arguments)||this;q.focusedSuggestionIndex=-1;return q};
_.O(xc,_.Y);_.k=xc.prototype;_.k.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.k.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.k.setFocusedSuggestionIndex=function(q){!this.data||!this.data.suggestions||q<0||q>=this.data.suggestions.length||(this.focusedSuggestionIndex=q,q=this.getSuggestionId(q),this._setFocusedSuggestionId(q))};
_.k.advanceSuggestion=function(q){this.focusedSuggestionIndex===-1||q!==-1&&q!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+q),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.k.ensureSuggestionVisible=function(q){q=this.getSuggestionId(q);q=_.A(this.hostElement).querySelector("[id="+q+"]");q!=null&&(q.offsetTop<this.hostElement.scrollTop?q.scrollIntoView(!0):q.offsetTop+q.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&q.scrollIntoView(!1))};
_.k.getSuggestionId=function(q){return"user-mention-suggestion-"+q};
_.k.onSuggestionTap=function(q){var w=_.C(q.model.item,v9T);this.ytRendererBehavior.logExplicitClick(w);_.t7(this.hostElement,"yt-user-mention-suggestion-selected",{data:w,index:q.model.index})};
_.k.onSuggestionMouseMove=function(q){q.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(q.model.index)};
_.k.isSuggestionFocused=function(q,w){return q===w};
_.k.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.k.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.D1("focused-suggestion-id-changed",this.focusedSuggestionId))};
xc.prototype.focusedSuggestionIdChangedForBinding=xc.prototype.focusedSuggestionIdChangedForBinding;xc.prototype.onDomChange=xc.prototype.onDomChange;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],xc.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],xc.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],xc.prototype,"focusedSuggestionIndex",void 0);_.c([_.v({readOnly:!0}),_.h("design:type",String)],xc.prototype,"focusedSuggestionId",void 0);
_.c([_.Gm("dom-change"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],xc.prototype,"onDomChange",null);_.c([_.nL("focusedSuggestionId"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xc.prototype,"focusedSuggestionIdChangedForBinding",null);xc=_.c([_.JM({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],xc);
_.R(xc,"yt-user-mention-suggestions-dropdown",function(){if(jF3===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;hRF===void 0&&(hRF=document.createElement("template"));var y=hRF;u.call(w,y.content.cloneNode(!0),q.content.firstChild);jF3=q}q=jF3;return q},{mode:2});var qS=function(){var q=_.Y.apply(this,arguments)||this;q.suggestionsResponse=null;q.activeMention=null;q.selectionChangeListener=q.onSelectionChange.bind(q);q.handlesEnabled=_.T("enable_handles_in_mention_suggest_posts");q.handlesInMentionSuggestionsEnabled=_.T("handles_in_mention_suggest_posts");q.zeroPrefixMentionSuggestionEnabled=_.T("enable_zero_prefix_mention_suggestion_web");q.pendingQuery=null;q.flowNonce=null;return q};
_.O(qS,_.Y);_.k=qS.prototype;_.k.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.k.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.k.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.k.hasSuggestions=function(q){return!!(q&&q.suggestions&&q.suggestions.length>0)};
_.k.onInput=function(){var q=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var w=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),u=this.activeMention.JSC$9150_getText().slice(-1)===" ",y=this.activeMention.JSC$9150_getText().slice(-2,-1)===" ",e="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9150_getText().slice(-2,-1))>=
0;e=this.zeroPrefixMentionSuggestionEnabled&&e;if(this.activeMention.isCollapsed()||(w||y||e)&&u)this.cancelActiveMention();else{var t=this.activeMention.JSC$9150_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.bf(this,"requestSuggestions",function(){q.requestSuggestions(t)},100)}}}};
_.k.onServiceRequestSent=function(q){q.stopPropagation()};
_.k.onServiceRequestCompleted=function(q){q.stopPropagation();q=q.detail.data;q.query&&(!this.pendingQuery||this.pendingQuery!==q.query)||!this.zeroPrefixMentionSuggestionEnabled&&q.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=q,this.hasSuggestions(q)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.k.onServiceRequestError=function(q){q.stopPropagation()};
_.k.onUserMentionSuggestionSelected=function(q){this.selectSuggestion(q.detail.data,q.detail.index)};
_.k.onSelectionChange=function(){if(this.activeMention){var q=_.IS(),w=this.activeMention.JSC$9150_containsRange(q);q=q&&this.containsHelper(this.dropdown,q.getContainer());w||q||this.cancelActiveMention()}};
_.k.containsHelper=function(q,w){var u;if(((u=window.ShadyDOM)==null?void 0:u.noPatch)===!0)return q.contains(w);for(;w;){if(w===q)return!0;w=w instanceof ShadowRoot?w.host:w.parentNode}return!1};
_.k.maybeStartSuggest=function(){var q=_.IS();if(q&&q.isCollapsed()){var w=q.JSC$9150_getStartNode(),u=q.JSC$9150_getStartOffset();if(w instanceof Text&&!(u<1)){var y=w.textContent;!(y=y&&y.charAt(u-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(y)<0||(this.activeMention=_.a8(w,u-1,q.JSC$9150_getEndNode(),q.JSC$9150_getEndOffset()),this.flowNonce=ax(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.k.updateActiveMention=function(){if(this.activeMention){var q=_.IS();q&&q.isCollapsed()&&(this.activeMention=_.a8(this.activeMention.JSC$9150_getStartNode(),this.activeMention.JSC$9150_getStartOffset(),q.JSC$9150_getEndNode(),q.JSC$9150_getEndOffset()))}};
_.k.requestSuggestions=function(q){if(this.activeMention){var w={suggestions_query:q};this.pendingQuery=q;_.GM(this.hostElement,[this.suggestionsEndpoint,w])}};
_.k.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()};
_.k.focusPreviousSuggestion=function(q){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),q.preventDefault())};
_.k.focusNextSuggestion=function(q){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),q.preventDefault())};
_.k.selectFocusedSuggestion=function(q){if(this.hasSuggestions(this.suggestionsResponse)){var w=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.C(w,v9T)&&(this.selectSuggestion(_.C(w,v9T),this.dropdown.focusedSuggestionIndex),q.preventDefault())}};
_.k.selectSuggestion=function(q,w){if(q){var u=this.activeMention;if(u){var y=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&q.handle?_.At(y,"\u00a0\u2068@"+q.handle+"\u2069\u00a0"):this.handlesEnabled?_.At(y,"\u00a0"+q.displayName+"\u00a0"):_.At(y,"\u00a0@"+q.displayName+"\u00a0");VE(y,"/channel/"+q.channelId);y.classList.add("yt-formatted-string","yt-simple-endpoint");y.setAttribute("spellcheck","false");u.isCollapsed()||u.JSC$9150_removeContents();u.insertNode(y,!0);q=document.createTextNode(" ");
y.parentNode.insertBefore(q,y.nextSibling);window.getSelection().collapse(q,1);w={suggestionSelected:{suggestionIndex:w}};if(this.zeroPrefixMentionSuggestionEnabled){var e;w.suggestionSelected.isZeroPrefix=((e=this.suggestionsResponse)==null?void 0:e.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",w);this.cancelActiveMention();_.t7(this.hostElement,"yt-mention-inserted")}}};
_.k.getPositionTarget=function(q){return q&&q.getBrowserRangeObject()};
_.k.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.k.onFocusedSuggestionIdChanged=function(q){var w=_.Tu6(this.hostElement)[0];w&&(q.detail.value?w.setAttribute("aria-activedescendant",q.detail.value):w.removeAttribute("aria-activedescendant"))};
_.k.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.k.logGELEvent=function(q,w){q={eventType:q,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};w&&(q=Object.assign(q,w));_.pn("userMentionAutoCompleteBoxEvent",q)};
qS.prototype.onDomChange=qS.prototype.onDomChange;qS.prototype.onUserMentionSuggestionSelected=qS.prototype.onUserMentionSuggestionSelected;qS.prototype.onServiceRequestError=qS.prototype.onServiceRequestError;qS.prototype.onServiceRequestCompleted=qS.prototype.onServiceRequestCompleted;qS.prototype.onServiceRequestSent=qS.prototype.onServiceRequestSent;qS.prototype.onInput=qS.prototype.onInput;_.c([_.D(_.IZ),_.h("design:type",Object)],qS.prototype,"ironA11yKeysBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],qS.prototype,"suggestionsEndpoint",void 0);_.c([_.v(),_.h("design:type",Object)],qS.prototype,"suggestionsResponse",void 0);_.c([_.v(),_.h("design:type",Object)],qS.prototype,"activeMention",void 0);_.c([_.Wj("#dropdown"),_.h("design:type",Object)],qS.prototype,"dropdown",void 0);_.c([_.Wj("#iron-dropdown"),_.h("design:type",Object)],qS.prototype,"ironDropdown",void 0);
_.c([_.Gm("input"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],qS.prototype,"onInput",null);_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],qS.prototype,"onServiceRequestSent",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],qS.prototype,"onServiceRequestCompleted",null);
_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],qS.prototype,"onServiceRequestError",null);_.c([_.Gm("yt-user-mention-suggestion-selected"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],qS.prototype,"onUserMentionSuggestionSelected",null);
_.c([_.Gm("dom-change"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],qS.prototype,"onDomChange",null);qS=_.c([_.JM({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],qS);
_.R(qS,"yt-user-mention-autosuggest-input",function(){if(RRx===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;Elc===void 0&&(Elc=document.createElement("template"));var y=Elc;u.call(w,y.content.cloneNode(!0),q.content.firstChild);RRx=q}q=RRx;return q},{mode:2});var wO=null;
_.o9({is:"ytd-commentbox",_template:function(){if($WZ!==void 0)return $WZ;var q=document.createElement("template");_.f(q,'\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="yt-icons:arrow_drop_down" 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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return $WZ=q},
behaviors:[_.xEs.YtHostElementBehavior,_.IZ,_.hm.YtActionHandlerBehavior,_.fK.YtComponentBehavior,_.S0.YtRendererstamperBehavior,_.btj.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(q,w){return _.HQ(q.entities,"aadcGuidelinesStateEntityPayload",w)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(q,w){return _.HQ(q.entities,"commentboxStateEntity",w)},
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 _.AV}},
isEmojiButtonDisplayed:{type:Boolean,computed:"computeIsEmojiButtonDisplayed_(data)",value:!1},isEmojiPickerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},hasExternalLinksAccess_:{type:Boolean,computed:"computeHasExternalLinksAccess_(data)",value:!0},isExternalLinksBannerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},emojiInput:Object,verticalSuggestionsOffset:{type:Number,value:30},isPostCreationDialogV2:{type:Boolean,reflectToAttribute:!0,value:!1},accessRestriction:{type:String},
charCount_:{type:Number,value:0},charLimit_:{type:Number,computed:"computeCharLimit_(data)"},aboveCharLimit_:{type:Boolean,reflectToAttribute:!0,value:!1},inputEventSupported_:{type:Boolean,value:!1},textRequiresScrolling:{type:Boolean,reflectToAttribute:!0,value:!1},localStorage:Object,modern:{type:Boolean,reflectToAttribute:!0,value:_.T("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.T("kevlar_watch_grid")}},observers:["observePrefilledImage_(data.purpose, data.prefilledImageData, data.backstageAttachment)",
"observePrefilledVideo_(data.purpose, data.backstageAttachment)","observePrefilledPoll_(data.prefilledAttachment)"],listeners:{"yt-service-request-completed":"onYtServiceRequestCompleted_","yt-service-request-error":"onYtServiceRequestError_","yt-service-request-sent":"onYtServiceRequestSent_","yt-backstage-image-select-cancel":"onAttachmentDismiss_","yt-backstage-multi-image-cancel":"onAttachmentDismiss_","yt-backstage-image-select-alert":"onImageAlert_","yt-backstage-image-select-preview":"onImageSelected_",
"yt-backstage-multi-image-select":"onImagesSelected_","yt-backstage-poll-image-select":"onImagesSelected_","yt-img-crop-coordinates-update":"onImagePreviewCoordinatesUpdated_","yt-img-crop-reposition":"onImagePreviewReposition_","yt-poll-attachment-dismiss":"onAttachmentDismiss_","yt-image-poll-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-explanation-update":"onQuizExplanationUpdated_","yt-navigate":"onYtNavigate_","yt-video-link-selected":"onVideoLinkSelected_",
"yt-backstage-add-image-error":"onAddImageError_","yt-video-link-cancel":"onAttachmentDismiss_","yt-video-link-button-cancel":"onVideoLinkButtonCancel_","yt-commentbox-post-enable":"onSubmitButtonEnable_","yt-commentbox-post-disable":"onSubmitButtonDisable_","yt-backstage-attachment-dismissed":"onPrefilledContentDismissed_","yt-emoji-select":"onEmojiSelect_","yt-insert-suggestion":"onSuggestionInsert_","yt-select-emoji-suggestion":"onEmojiSuggestionClick_","ytd-date-time-selection-update":"onDateTimeSelectionUpdate_",
"ytd-date-time-selection-cancelled":"onDateTimeSelectionCancelled_","yt-mention-inserted":"onInsertMention_"},actionMap:{"yt-signal-action-ack-post-aadc-notice":"onAadcNoticeConfirm_","yt-hide-identity-chip-action":"onHideIdentityChip"},stampDom:{editAttachment_:{id:"attachment-preview",mapping:{backstageImageRenderer:"ytd-backstage-image-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isBackstageVideo:"[[isBackstagePost]]"}},playlistRenderer:{component:"ytd-playlist-renderer",
properties:{isBackstagePlaylist:"[[isBackstagePost]]"}},postMultiImageRenderer:"ytd-post-multi-image-renderer"}},"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:"ytd-flat-dropdown-renderer"}},"data.backstageAttachment":{id:"poll-preview",mapping:{pollRenderer:"ytd-backstage-poll-renderer",quizRenderer:"ytd-backstage-quiz-renderer"}},"imageUploadEndpoint_.imageEditor":{id:"image-select",mapping:{backstageImageSelectRenderer:{component:"ytd-backstage-image-select-renderer",
properties:{imageUploadEndpoint:"[[imageUploadEndpoint_]]",isBackstagePost:"[[isBackstagePost]]"}},backstageMultiImageSelectRenderer:{component:"ytd-backstage-multi-image-select-renderer",properties:{imageUploadEndpoint:"[[imageUploadEndpoint_]]"}}}},"data.emojiButton":{id:"emoji-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.emojiPicker":{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},dropdownSchedulePanel_:{id:"scheduling-panel",
mapping:{dateTimePickerRenderer:"ytd-date-time-picker-renderer"}},inlineSchedulePanel_:{id:"inline-scheduling-panel",mapping:{dateTimePickerRenderer:"ytd-date-time-picker-renderer"}},"zeroStepChannelCreationRenderer.identityChipRenderer":{id:"identity-chip",mapping:{identityChipRenderer:"ytd-identity-chip-renderer"}}},ready:function(){document.addEventListener("tap",_.Fj(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(q){this.fire(q?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(q){this.set("submitButtonDisabled",void 0);this.clear();q&&this.computeIsEmojiButtonDisplayed_(q)&&(q=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&q.updateEmojiCategories()},
observePrefilledImage_:function(q,w,u){this.isValidPrefilledImage_(q,w,u)&&(this.prefilledAttachment_="image",this.prefilledImageData_=w,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(q,w){this.isValidPrefilledVideo_(q,w)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(q){q&&q.pollData&&q.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(q.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.XJ();this.focus()},
detached:function(){document.removeEventListener("tap",_.Fj(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(q){q=q.detail;q=q.isCustomEmoji?q.shortcuts[0]:q.emojiId;var w=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(w,q);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var q=_.IS();if(q){q=q.getBrowserRangeObject();for(var w=q.commonAncestorContainer;w;){if(w===this.getEditableTextArea_())return q;w=w.parentNode}}q=this.getEditableTextArea_();q=_.zh(q,q.childNodes.length);q.select();return q.getBrowserRangeObject()},
insertTextWithEmojis_:function(q,w,u){(w=this.emojiManager.createDocumentFragment(w,!0,!1,u===void 0?!0:u))&&w.childNodes.length!==0&&(q.collapsed||q.deleteContents(),u=w.lastChild,q.insertNode(w),_.TkX(u).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var q=_.IS();if(q){var w=q.JSC$9150_getStartNode(),u=q.JSC$9150_getEndNode();if(htz(w)&&htz(u)){var y=q.JSC$9150_getStartOffset(),e;if(_.F1&&w.nodeType===Node.ELEMENT_NODE&&(e=_.Z7r(w)))_.zh(e,0).select();else{e=sK(w)?w:_.ar(w,sK);var t=sK(u)?u:_.ar(u,sK);if(e||t)if(q.isCollapsed()){if(w.nodeType===Node.TEXT_NODE){q=!0;y===w.length&&(q=!1);if(wO==="end"||wO==="right")q=!1;w=w.parentNode;q=[].concat(_.Cm(w.parentNode.childNodes)).indexOf(w)+(q?0:1);_.zh(w.parentNode,q).select()}}else e?
e.previousSibling&&e.previousSibling.length>0?_.a8(u,q.JSC$9150_getEndOffset(),e.previousSibling,e.previousSibling.length-1).select():(w=document.createTextNode("\u200b"),e.parentNode.insertBefore(w,e),_.a8(u,q.JSC$9150_getEndOffset(),w,0).select()):t&&(t.nextSibling&&t.nextSibling.length>0?_.a8(w,q.JSC$9150_getStartOffset(),t.nextSibling,1).select():(u=document.createTextNode("\u200b"),t.parentNode.insertBefore(u,t.nextSibling),_.a8(w,q.JSC$9150_getStartOffset(),u,u.length).select()));wO=null}}else wO=
null}else wO=null},
leftKeyPressed_:function(){wO="left"},
rightKeyPressed_:function(){wO="right"},
endKeyPressed_:function(){wO="end"},
maybeDeleteChip_:function(){var q=Bij(!0);if(q){var w=_.IS(),u=w.JSC$9150_getStartNode();w=w.JSC$9150_getStartOffset();_.V5(u,w,q,q.childNodes.length).select()}},
maybeBackspaceChip_:function(){var q=Bij(!1);if(q){var w=_.IS(),u=w.JSC$9150_getStartNode();w=w.JSC$9150_getStartOffset();_.V5(u,w,q,0).select()}},
maybeBackspaceChipWordMode_:function(q){var w=_.IS();if(w.isCollapsed()){var u=w.JSC$9150_getStartNode();w=w.JSC$9150_getStartOffset();var y=x77(u,w,!0);y&&(_.V5(u,w,y,0).select(),document.execCommand("delete"),q.preventDefault(),q.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(q){var w=_.IS();if(w.isCollapsed()){var u=w.JSC$9150_getStartNode();w=w.JSC$9150_getStartOffset();var y=x77(u,w,!1);y&&(_.V5(u,w,y,y.childNodes.length).select(),document.execCommand("delete"),q.preventDefault(),q.stopImmediatePropagation())}},
onTap_:function(q){if(!q.defaultPrevented&&(q.currentTarget.tagName==="YTD-COMMENTBOX"&&sK(q.target)&&q.preventDefault(),this.isEmojiPickerDisplayed)){var w=this.$$("#emojis"),u=this.$$("#emoji-button"),y=this.getEditableTextArea_();if((q=q.path?q.path:q.composedPath&&q.composedPath())&&!q.includes(w)&&!q.includes(y)&&!q.includes(u))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(q,w,u){return q==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&w!==void 0&&w.encryptedBlobId!==null&&w.sourceExternalVideoId!==null&&u!==void 0&&u.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(q,w){return q==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!w&&!!w.videoRenderer&&!!w.videoRenderer.videoId},
isValidPrefilledAttachment_:function(q,w,u){return this.isValidPrefilledImage_(q,w,u)||this.isValidPrefilledVideo_(q,u)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.T("enable_multi_image_post_creation")){var q=this.$$("ytd-backstage-multi-image-select-renderer");q&&q.hasImages()&&q.cancel()}else(q=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&q.cancel();(q=this.$["poll-attachment"])&&this.hasPoll_&&q.clearPollOptions();(q=this.$["image-poll-attachment"])&&this.hasImagePoll_&&q.resetPollOptions();(q=this.$["quiz-attachment"])&&this.hasQuiz_&&q.resetQuizOptions();
(q=this.$["video-link-attachment"])&&this.hasVideo_&&q.cancel();(q=this.$["access-restrictions-selector"].firstElementChild)&&q.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 _.A(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.A(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(q,w){q=lxM(q,this.emojiManager,w).cloneNode(!0);for(w=q.firstChild;w;)if(w.nodeType!==1)w=w.nextSibling;else switch(w.tagName){case "BR":var u=_.dP();_.Rf6(u,w);w=u.nextSibling;break;case "DIV":(u=w.lastChild)&&w.nextSibling&&_.fO(_.dP(),u);w.previousSibling&&(w.previousSibling.nodeType===1||w.previousSibling.nodeType===3&&!w.previousSibling.textContent.endsWith("\n"))&&_.Vs(_.dP(),w);u&&u.nodeName==="BR"&&_.UN(u);u=w;w.hasChildNodes()?(w=w.firstChild,
_.czP(u)):(w=w.nextSibling,_.UN(u));break;default:w=w.nextSibling}return qxl(q)},
onAddImageError_:function(q){q.stopPropagation();this.errorMessage_=_.jN(q.detail)},
setTextAreaValue_:function(q){q||(q="");var w=this.getEditableFormattedString_();w.text="";this.getEditableTextArea_().innerText="";typeof q==="string"&&(q={runs:[{text:q}]});w.text=q},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();wO=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var q=this.getEditableTextArea_();q&&(_.zh(q,q.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Et("HTML_DIR")==="rtl"){var q=this.getEditableTextArea_(),w=this.getTextAreaValue()!==""?"auto":"rtl";q.setAttribute("dir",w)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var q;return ezs((q=this.$["quiz-attachment"])==null?void 0:q.getExplanationText())||ezs(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var q=null;if(this.isEmojiButtonDisplayed){var w=this.getInputRange_();w&&(q=this.emojiInput.retrieveTextBeforeRange(w))}this.insertText_(q,!0);this.updateCharCount_();this.setSubmitButton_();q=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=q.scrollHeight>q.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var q=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:q})},
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(q){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(q)},
onPasteEmoji_:function(q){q.preventDefault();q.stopImmediatePropagation();q=q.clipboardData.getData("text/plain");this.insertText_(q,!1,!1)},
insertText_:function(q,w,u){w=w===void 0?!1:w;u=u===void 0?!0:u;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&q){var y=this.getInputRange_().cloneRange();this.emojiManager&&y&&(w&&this.emojiInput.offsetStartOfRangeBy(y,q.length),this.insertTextWithEmojis_(y,q,u),j$c(this.getEditableTextArea_().lastChild)||(y=this.getInputRange_().cloneRange()),y&&(this.emojiInput.updateSuggestions(y,q),this.updateSuggestionOffset_(y)))}},
setSubmitButton_:function(){if(this.data){var q=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",w=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(q||w){var u=this.getTextAreaValue().trim();w=u===this.previousText_;u=!u||this.aboveCharLimit_;q&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(u=this.aboveCharLimit_);this.submitButtonDisabled=
w||u||!this.getTextLength();q&&_.T("enable_post_scheduling")&&(this.submitButtonDisabled=w&&!this.scheduledPublishTimeSec_||u)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.lA,computeCreationBoxClass_:function(q){return q?"focused":"not-focused"},
computeFooterMessageClass_:function(q,w){return w?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(q,w){return w?w:q},
computeFooterMessageHidden_:function(q,w){return!w&&!q},
computePlaceholderText_:function(q,w,u){return(u==="video"||u==="image")&&(q==null?0:q.prefilledPlaceholderText)?q==null?void 0:q.prefilledPlaceholderText:w==="poll"||w==="image-poll"?q==null?void 0:q.pollPostPlaceholderText:w==="quiz"?q==null?void 0:q.quizPostPlaceholderText:w==="image"?q==null?void 0:q.imagePostPlaceholderText:q==null?void 0:q.placeholderText},
computeHideAttachmentButtons_:function(q,w,u,y){return q===void 0?!1:y&&this.getSimpleString(y)===this.getSimpleString(q.rateLimitErrorMessage)?!0:w!=="none"||u!=="none"||!q.videoLinkButton&&!q.pollButton&&!q.imagePollButton&&!q.quizButton&&!q.imageButton},
computeHideDismissableAttachment_:function(q){return q!=="image"&&q!=="video"},
computeHasVideo_:function(q){return q==="video"},
computeHasImage_:function(q){return q==="image"},
computeHasPoll_:function(q){return q==="poll"},
computeHasImagePoll_:function(q){return q==="image-poll"},
computeHasQuiz_:function(q){return q==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(q){return q&&q.backstageAttachment?q.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!q.backstageAttachment.quizRenderer&&!q.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(q){if(this.isValidPrefilledAttachment_(q.purpose,q.prefilledImageData,q.backstageAttachment))return q.backstageAttachment},
computeEditAttachment_:function(q){if(this.computePrefilledContent_(q)===void 0)return q.backstageAttachment},
computeAuthorThumbnailDimension_:function(q,w){return q&&!w?24:40},
computeImageUploadEndpoint_:function(q){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",q)},
computeRateLimitErrorCommands_:function(q){var w,u;return q==null?void 0:(w=q.advancedTierFeatures)==null?void 0:(u=w.rateLimit)==null?void 0:u.rateLimitCommands},
computeIsBackstageComment_:function(q){return!(!q||q!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(q){return this.get("submitButton.buttonRenderer.serviceEndpoint",q)||this.get("replyButton.buttonRenderer.serviceEndpoint",q)||this.get("postButton.buttonRenderer.serviceEndpoint",q)},
computeSubmitButtonOverride:function(){if(_.T("web_modern_buttons")){var q,w;return{segmentedPosition:this.dropdownSchedulePanel_||!((q=this.data)==null?0:(w=q.postOptionsMenu)==null?0:w.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.T("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(q,w){q=this.get("submitButton.buttonRenderer",q)||this.get("replyButton.buttonRenderer",q)||this.get("postButton.buttonRenderer",q);w&&(q=w);q&&(q=Object.assign({},q),q.serviceEndpoint=void 0,q.isDisabled=this.submitButtonDisabled);return q},
computeHasExternalLinksAccess_:function(q){if(_.T("enable_rfa_external_links")){var w,u,y;return(y=q==null?void 0:(w=q.advancedTierFeatures)==null?void 0:(u=w.externalLinks)==null?void 0:u.allowExternalLinks)!=null?y:!0}return!0},
computeIsEmojiButtonDisplayed_:function(q){return q.emojiButton&&q.emojiPicker&&q.emojiPicker.emojiPickerRenderer&&q.emojiPicker.emojiPickerRenderer.categories?q.emojiPicker.emojiPickerRenderer.categories.find(function(w){return w.emojiPickerCategoryRenderer?w.emojiPickerCategoryRenderer.emojiIds&&w.emojiPickerCategoryRenderer.emojiIds.length>0:w.emojiPickerUpsellCategoryRenderer?w.emojiPickerUpsellCategoryRenderer.emojis&&w.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(q){return q.charLimit?q.charLimit:null},
computeDropdownSchedulingPanel_:function(q,w){if(q==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&w)return w},
computeInlineSchedulingPanel_:function(q,w){if(q==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&w)return w},
computeHideAuthorThumbnail_:function(q,w){return q||this.computeUseIdentityChip_(w)},
computeHideIdentityChipRenderer_:function(q,w){return q||!this.computeUseIdentityChip_(w)},
computeUseIdentityChip_:function(q){return!!q&&!!q.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(q){var w,u,y,e;(q==null?0:(w=q.detail)==null?0:(u=w.endpoint)==null?0:u.ypcGetOffersEndpoint)||(q==null?0:(y=q.detail)==null?0:(e=y.endpoint)==null?0:e.ypcOffersEndpoint)?(q.stopPropagation(),_.GM(this,[q.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",q)&&(q.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(q){this.addedAttachment="video";this.selectedVideoId_=q.detail.videoId},
commentboxStateEntityChanged_:function(q){var w=this;(q==null?void 0:q.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(q==null?void 0:q.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){w.focus()})},
onYtServiceRequestSent_:function(q,w){if(w.actions)for(q=_.P(w.actions),w=q.next();!w.done;w=q.next())w.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(q){this.isLoading=!1;var w=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",q),u,y,e,t=q==null?void 0:(u=q.detail)==null?void 0:(y=u.data)==null?void 0:(e=y.actionResult)==null?void 0:e.commentboxStateEntityKey;if(w)this.errorMessage_=w;else if(t){var X;this.dismissData_=q==null?void 0:(X=q.detail)==null?void 0:X.data;this.commentboxStateKey_=t}else{this.clear();var G;this.fire("yt-commentbox-dismiss",q==null?void 0:(G=q.detail)==
null?void 0:G.data)}},
onYtServiceRequestError_:function(q){q.stopPropagation();this.isLoading=!1;var w,u;if(((w=this.data)==null?void 0:w.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((u=this.data)==null?void 0:u.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(w=this.get("detail.error.args",q)||[],w.length>1&&w[1].message){this.handlePostsServiceRequestError_(w[1].message);return}(q=this.get("detail.error.message",q))?this.errorMessage_=this.data.errorMessage||_.jN(q):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(q){if(_.T("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var w=_.P(this.rateLimitErrorCommands),u=w.next();!u.done;u=w.next())if(u=u.value,u.errorLabel===q){_.H6(u.command,this.hostElement);return}this.errorMessage_=_.jN(q)},
submitIfNotBackstagePost_:function(q){if(!this.isBackstagePost)this.onSubmit_(q)},
onSubmit_:function(q){var w=this,u,y,e,t,X,G,n,N,Q,I,U,d,V,J,a;return _.F(function(b){switch(b.nextAddress){case 1:q.stopPropagation();if(!w.serviceEndpoint||!w.isValidInput_())return b.return();if(w.shouldShowPostAadcNotice_())return w.showPostAadcNotice_(),b.return();if(w.shouldShowCommentAadcNotice_())return w.showCommentAadcNotice_(),b.return();if(!(w.$$("ytd-backstage-multi-image-select-renderer")&&w.hasImage_&&_.T("enable_multi_image_post_creation"))){b.jumpTo(2);break}u=w.$$("ytd-backstage-multi-image-select-renderer");
return _.H(b,u.getAllUploadStatuses(),3);case 3:y=b.yieldResult;if(!y)return b.return();e=_.P(y);for(t=e.next();!t.done;t=e.next())if(X=t.value,X.encryptedBlobId===void 0)return w.isLoading=!1,n=G=void 0,w.errorMessage_=(n=(G=w.imageUploadEndpoint_)==null?void 0:G.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?n:null,b.return();return b.return(w.submitForm_(void 0,void 0,void 0,void 0,u.images,w.taggedVideoId_));case 2:if(!w.hasImagePoll_||!w.$["image-poll-attachment"]){b.jumpTo(4);
break}return _.H(b,w.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:N=b.yieldResult;if(!N)return b.return();Q=_.P(N);for(I=Q.next();!I.done;I=Q.next())if(U=I.value,!U.encryptedBlobId)return w.isLoading=!1,d=void 0,w.errorMessage_=(d=w.data.errorMessage)!=null?d:null,b.return();case 4:J=(V=w.$$("ytd-backstage-image-select-renderer"))&&V.uploadPromise(),a=w.getSharedPostId_(),J?J.then(function(){w.submitForm_.apply(w,_.Cm(_.Cj.apply(0,arguments)))}).catch(function(g){w.isLoading=!1;
w.errorMessage_=_.jN(g.message)}):w.selectedVideoId_?w.submitForm_(void 0,w.selectedVideoId_):w.prefilledAttachment_==="image"?w.submitForm_(w.prefilledImageData_.encryptedBlobId,void 0,void 0,w.prefilledImageData_.sourceExternalVideoId,void 0,w.taggedVideoId_):w.prefilledAttachment_==="video"?w.submitForm_(void 0,w.data.backstageAttachment.videoRenderer.videoId):a?w.submitForm_(void 0,void 0,a):w.taggedVideoId_!==void 0?w.submitForm_(void 0,void 0,void 0,void 0,void 0,w.taggedVideoId_):w.submitForm_(),
_.HI(b)}})},
openSchedulingPanel:function(q){q&&q.scheduleButton&&q.scheduleButton.buttonRenderer&&(this.scheduleButton_=q.scheduleButton.buttonRenderer);q&&q.dateTimePicker&&this.set("data.schedulingDateTimePicker",q.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(q){q.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(q){q.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(q){q.stopPropagation();q.detail.alertMessage&&(this.alertMessage_=q.detail.alertMessage)},
onImageSelected_:function(q){q.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(q){q.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(q){q.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(q.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(q){q.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(q){var w=this.$["video-link-attachment"];w&&w.onLaunchVideoPicker(q)},
onAttachmentDismiss_:function(q){q.stopPropagation();this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()},
isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&_.T("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.T("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&
this.$$("ytd-backstage-image-select-renderer").hasPreview&&this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$["poll-attachment"]&&!this.$["poll-attachment"].isValid())return!1;var q;if(this.addedAttachment==="image-poll"&&((q=this.$["image-poll-attachment"])==null||!q.isValid()))return!1;var w;if(this.addedAttachment==="quiz"&&((w=this.$["quiz-attachment"])==null||!w.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;q=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(q=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")q=!0;return q||!!this.getTextAreaValue().trim()},
submitForm_:function(q,w,u,y,e,t){var X=this.getTextAreaValue().trim(),G={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&X===this.previousText_&&(X=void 0);X!==void 0&&(G.comment_text=X);this.isLoading=!0;t!=void 0&&(G.tagged_video_id=t);q?(G.image_blob_id=q,this.imagePreviewCoordinates_&&(G.image_preview_coordinates=this.imagePreviewCoordinates_)):w?G.attached_video_id=w:u?G.shared_post_id=u:e&&e.length>0&&(G.images_data=e.map(function(n){return{encryptedBlobId:n.encryptedBlobId,
previewCoordinates:n.previewCoordinates}}));
y&&(G.source_video_id=y);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(G.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(G.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(G.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.T("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(G.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.T("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(G.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.GM(this,[this.serviceEndpoint,G])},
onIsInputFocusChanged_:function(q,w){q?this.fire("yt-autonav-pause-focus"):w!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(q){var w=this.getEditableTextArea_();[].concat(_.Cm(q.dataTransfer.items)).forEach(function(u){u.kind==="string"&&u.type.match("^text/plain")&&u.getAsString(function(y){w.appendChild(document.createTextNode(y))})});
q.preventDefault()},
preventDefault_:function(q){q.preventDefault()},
onSuggestionInsert_:function(q){this.insertTextWithEmojis_(q.detail.range,q.detail.text)},
onEmojiSuggestionClick_:function(q){this.emojiInput.insertSuggestion(q.detail)},
computeSubmitButtonClass_:function(q,w){return!w||q?"":"with-options"},
updateSuggestionOffset_:function(q){if(this.emojiInput&&_.A(this.emojiInput).querySelector("#dropdown")){var w=this.getEditableTextArea_().getBoundingClientRect().bottom,u=q.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(w-u)+5;w=this.getEditableTextArea_().getBoundingClientRect().left;q=q.getBoundingClientRect().left-w;_.A(this.emojiInput).querySelector("#dropdown").style.marginLeft=q+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(q){if(_.T("enable_post_scheduling")&&this.data&&this.data.purpose){q=q.detail;if(Math.floor(Date.now()/1E3)>=q)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var w=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(w)||w!==q?this.scheduledPublishTimeSec_=q:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=q;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var q=["image-button","image-poll-button","poll-button"];_.T("enable_quiz_creation")&&q.push("quiz-button");_.T("auto_convert_posts_video_tag")||q.push("video-link-button");return q},
getButtonRenderer:function(q,w){if(q)switch(w){case "video-link-button":var u;return((u=q.videoLinkButton)==null?void 0:u.buttonRenderer)||void 0;case "image-button":var y;return((y=q.imageButton)==null?void 0:y.buttonRenderer)||void 0;case "poll-button":var e;return((e=q.pollButton)==null?void 0:e.buttonRenderer)||void 0;case "image-poll-button":var t;return((t=q.imagePollButton)==null?void 0:t.buttonRenderer)||void 0;case "quiz-button":var X;return((X=q.quizButton)==null?void 0:X.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var q;return(q=this.data)==null||!q.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var q,w;return!((q=this.data)==null||!q.openAadcDialog)&&!((w=this.aadcGuidelinesState_)==null||!w.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Et("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var q;((q=this.data)==null?0:q.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.gr("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(q){q.clickTrackingParams&&_.Qz().clickCommand(q);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.Pw(this,"yt-close-popup-action")},
onHideIdentityChip:function(q){var w;this.set("data.placeholderText",(w=q.hideIdentityChipAction)==null?void 0:w.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var uQ=function(){var q=_.Y.apply(this,arguments)||this;q.isOpen=!1;q.modern=_.T("web_modern_buttons");q.roundedContainer=!0;q.dropdownButtonOverride=_.T("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;q.inPopupContainer=!1;q.isCommentboxLoading=!1;var w=["image-button","image-poll-button","poll-button"];_.T("enable_quiz_creation")&&w.push("quiz-button");_.T("auto_convert_posts_video_tag")||w.push("video-link-button");q.attachmentButtonIds=w;q.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 q};
_.O(uQ,_.Y);_.k=uQ.prototype;_.k.computeButtonOverride=function(){var q;return((q=this.data)==null?0:q.postOptionsMenu)&&_.T("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.k.configureRendererStamper=function(){var q={"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:"yt-icons:arrow_drop_down"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.T("auto_convert_posts_video_tag")||(q["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return q};
_.k.ready=function(){var q=this,w=_.A(this.hostElement).querySelector("#placeholder-area"),u=function(y){q.onOpen(y)};
w.addEventListener("tap",u);w.addEventListener("keypress",u)};
_.k.showButtonEduTooltip=function(){var q,w,u,y,e,t,X;if(_.T("enable_quiz_creation")&&((q=this.data)==null?0:(w=q.quizButton)==null?0:(u=w.buttonRenderer)==null?0:(y=u.hint)==null?0:(e=y.hintRenderer)==null?0:(t=e.content)==null?0:(X=t.bubbleHintRenderer)==null?0:X.text)&&(_.Mk.getInstance(),q=KF(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(q==null?void 0:
q.length)>0)){this.ytComponentBehavior.resolveCommand(q[0],{form:{element:this.quizButton}});return}var G;if((G=this.data)==null?0:G.imagePollButtonTooltip)if(_.Mk.getInstance(),G=KF(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(G==null?void 0:G.length)>0){this.ytComponentBehavior.resolveCommand(G[0],{form:{element:this.imagePollButton}});return}var n;_.T("enable_multi_image_post_creation")&&
((n=this.data)==null?0:n.multiImageButtonTooltip)&&(_.Mk.getInstance(),n=KF(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(n==null?void 0:n.length)>0&&this.ytComponentBehavior.resolveCommand(n[0],{form:{element:this.imageButton}}))};
_.k.onCreatePollAction=function(q){_.C(q,LpF)&&(this.JSC$13560_commentbox.addedAttachment="poll",this.openDialog())};
_.k.onAddVideoLinkAction=function(q){if(_.C(q,lzG))this.JSC$13560_commentbox.onAddVideoLink(q)};
_.k.onShowSchedulingPanelCommand=function(q){(q=_.C(q,dLc))&&this.openSchedulingPanel(q)};
_.k.onCreateImagePollCommand=function(q){_.C(q,JLX)&&(this.JSC$13560_commentbox.openImagePollComponent(),this.openDialog())};
_.k.onCreateQuizCommand=function(q){_.C(q,z_$)&&(this.JSC$13560_commentbox.openQuizComponent(),this.openDialog())};
_.k.openSchedulingPanel=function(q){_.T("enable_post_scheduling")&&(this.openDialog(),this.JSC$13560_commentbox.openSchedulingPanel(q))};
_.k.onCreateCommentAction=function(q){this.get("createCommentAction.contents",q)&&(this.JSC$13560_commentbox.clear(),this.closeDialog())};
_.k.onOpen=function(q){q instanceof KeyboardEvent&&q.type==="keypress"&&q.keyCode!==13&&q.keyCode!==32||(this.data.prepareAccountEndpoint?_.t7(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.k.onYtCommentboxDismiss=function(){this.closeDialog()};
_.k.onYtCommentboxLoadingStart=function(q){q.stopPropagation();this.isCommentboxLoading=!0};
_.k.onYtCommentboxLoadingEnd=function(q){q.stopPropagation();this.isCommentboxLoading=!1};
_.k.onYtVideoLinkButtonCancel=function(q){q.stopPropagation();this.onOpen(q)};
_.k.onYtVideoLinkSelected=function(q){q.stopPropagation();this.onOpen(q)};
_.k.onIronSelect=function(q){q.stopPropagation();q.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=q.detail.item.value&&(this.accessRestriction?(this.accessRestriction=q.detail.item.value,this.onOpen(q)):this.accessRestriction=q.detail.item.value)};
_.k.onYtNavigate=function(q){this.get("detail.endpoint.backstageImageUploadEndpoint",q)&&(this.JSC$13560_commentbox.addedAttachment="image",this.JSC$13560_commentbox.submitButtonDisabled=!0,this.onOpen(q))};
_.k.onRequestSent=function(q){if(_.T("web_button_rework"))for(var w=_.P(q.detail),u=w.next();!u.done;u=w.next())_.C(u.value,RJ6)&&(this.JSC$13560_commentbox.addedAttachment="image",this.JSC$13560_commentbox.submitButtonDisabled=!0,this.onOpen(q))};
_.k.openDialog=function(){this.JSC$13560_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13560_commentbox.focus()};
_.k.onPopupClosed=function(){_.Mk.getInstance()};
_.k.computeCreationDisabled=function(q){return!!q};
_.k.computeIsCreationDialog=function(q){return!!q&&q==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.k.computeDisabledPostButton=function(q){if(!q)return null;q.isDisabled=!0;return q};
_.k.computeIsCreationDialogWithHeader=function(q){return!this.inPopupContainer&&!!q&&!!q.authorText&&q.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.k.computeIsHeaderHidden=function(q,w){return!q||w};
_.k.computeDropdownRendererClasses=function(q){return q?["text-secondary-style"]:[]};
_.k.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var q=_.A(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;q&&q.reset()};
uQ.prototype.onPopupClosed=uQ.prototype.onPopupClosed;uQ.prototype.onRequestSent=uQ.prototype.onRequestSent;uQ.prototype.onYtNavigate=uQ.prototype.onYtNavigate;uQ.prototype.onIronSelect=uQ.prototype.onIronSelect;uQ.prototype.onYtVideoLinkSelected=uQ.prototype.onYtVideoLinkSelected;uQ.prototype.onYtVideoLinkButtonCancel=uQ.prototype.onYtVideoLinkButtonCancel;uQ.prototype.onYtCommentboxLoadingEnd=uQ.prototype.onYtCommentboxLoadingEnd;uQ.prototype.onYtCommentboxLoadingStart=uQ.prototype.onYtCommentboxLoadingStart;
uQ.prototype.onYtCommentboxDismiss=uQ.prototype.onYtCommentboxDismiss;uQ.prototype.showButtonEduTooltip=uQ.prototype.showButtonEduTooltip;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],uQ.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],uQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],uQ.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],uQ.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],uQ.prototype,"isOpen",void 0);_.c([_.v({computed:"computeButtonOverride(data)"}),_.h("design:type",Object)],uQ.prototype,"buttonOverride",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],uQ.prototype,"modern",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],uQ.prototype,"roundedContainer",void 0);_.c([_.v(),_.h("design:type",Object)],uQ.prototype,"dropdownButtonOverride",void 0);_.c([_.v({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.h("design:type",Boolean)],uQ.prototype,"creationDisabled",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],uQ.prototype,"enableCreationBox",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.h("design:type",Boolean)],uQ.prototype,"isCreationDialog",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],uQ.prototype,"inPopupContainer",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.h("design:type",Boolean)],uQ.prototype,"isCreationDialogWithHeader",void 0);_.c([_.v(),_.h("design:type",Object)],uQ.prototype,"accessRestriction",void 0);
_.c([_.v({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.h("design:type",Array)],uQ.prototype,"dropdownRendererClasses",void 0);_.c([_.v(),_.h("design:type",Object)],uQ.prototype,"isCommentboxLoading",void 0);_.c([_.v(),_.h("design:type",Array)],uQ.prototype,"attachmentButtonIds",void 0);_.c([_.Wj("#image-button"),_.h("design:type",HTMLElement)],uQ.prototype,"imageButton",void 0);
_.c([_.Wj("#image-poll-button"),_.h("design:type",HTMLElement)],uQ.prototype,"imagePollButton",void 0);_.c([_.Wj("#quiz-button"),_.h("design:type",HTMLElement)],uQ.prototype,"quizButton",void 0);_.c([_.Wj("#commentbox"),_.h("design:type",Object)],uQ.prototype,"JSC$13560_commentbox",void 0);_.c([_.nL("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uQ.prototype,"showButtonEduTooltip",null);
_.c([_.Gm("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],uQ.prototype,"onYtCommentboxDismiss",null);_.c([_.Gm("yt-commentbox-loading-start"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],uQ.prototype,"onYtCommentboxLoadingStart",null);
_.c([_.Gm("yt-commentbox-loading-end"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],uQ.prototype,"onYtCommentboxLoadingEnd",null);_.c([_.Gm("yt-video-link-button-cancel"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],uQ.prototype,"onYtVideoLinkButtonCancel",null);
_.c([_.Gm("yt-video-link-selected"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],uQ.prototype,"onYtVideoLinkSelected",null);_.c([_.Gm("iron-select"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],uQ.prototype,"onIronSelect",null);_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],uQ.prototype,"onYtNavigate",null);
_.c([_.Gm("yt-service-request-sent-button-renderer"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],uQ.prototype,"onRequestSent",null);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uQ.prototype,"onPopupClosed",null);uQ=_.c([_.E({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],uQ);
_.R(uQ,"ytd-backstage-post-dialog-renderer",function(){if(N8k!==void 0)return N8k;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return N8k=q},{mode:1});var lja;var LzT;var y3=function(){return _.Y.apply(this,arguments)||this};
_.O(y3,_.Y);_.k=y3.prototype;_.k.computeHeartButtonStyle=function(q){return(q==null?0:q.styleType)?q.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.k.onYtButtonTap=function(){if(this.data.isEnabled){var q=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(q=this.getEndpoint(q))&&_.tG().resolve(_.PG).resolveCommand(q,{form:{element:this.hostElement}})}else(q=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(q)};
_.k.toggle=function(q){this.set("data.isHearted",q!==void 0?q:!this.data.isHearted)};
_.k.getEndpoint=function(q){var w,u=(w=this.data)==null?void 0:w.heartEndpoint,y;w=(y=this.data)==null?void 0:y.unheartEndpoint;if(u&&w)return q?w:u};
_.k.computeButtonAccessibility=function(q,w){var u,y,e=q==null?void 0:(u=q.heartedAccessibility)==null?void 0:(y=u.accessibilityData)==null?void 0:y.label,t,X;q=q==null?void 0:(t=q.unheartedAccessibility)==null?void 0:(X=t.accessibilityData)==null?void 0:X.label;return w?e:q};
_.x$.Object.defineProperties(y3.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 q;return _.T("kevlar_system_icons")&&!((q=this.data)==null||!q.isHearted)}}});
y3.prototype.onYtButtonTap=y3.prototype.onYtButtonTap;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],y3.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.YE),_.h("design:type",Object)],y3.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],y3.prototype,"data",void 0);_.c([_.Z("data.isHearted"),_.h("design:type",Object),_.h("design:paramtypes",[])],y3.prototype,"heartTooltip",null);
_.c([_.Z("data.isHearted"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],y3.prototype,"iconFilled",null);_.c([_.v({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.h("design:type",String)],y3.prototype,"buttonAccessibility",void 0);_.c([_.v({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.h("design:type",String)],y3.prototype,"heartButtonStyle",void 0);
_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],y3.prototype,"onYtButtonTap",null);y3=_.c([_.E({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],y3);
_.R(y3,"ytd-creator-heart-renderer",function(){if(LzT!==void 0)return LzT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return LzT=q},{mode:1});var et=function(){var q=_.Y.apply(this,arguments)||this;q.hasCreatorReply=!1;q.buttonOverrides={size:"S",iconPosition:"icon-only"};q.replyButtonOverrides={size:"S",type:"text"};q.forceIconButton=!_.T("web_modern_buttons");q.modern=_.T("web_modern_buttons");q.buttonTooltipPosition="bottom";q.systemIcons=_.T("kevlar_system_icons");q.replyDialog=null;return q};
_.O(et,_.Y);_.k=et.prototype;
_.k.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]]"}}}}}};
_.k.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.k.dataChange=function(){this.replyDialog&&_.A(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var q,w,u;this.isLiked=this.systemIcons&&!!((q=this.data)==null?0:(w=q.likeButton)==null?0:(u=w.toggleButtonRenderer)==null?0:u.isToggled)};
_.k.computeShowVoteCountBeginning=function(q,w){return q===void 0||w===void 0?!0:q.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!w&&this.ytRendererBehavior.getSimpleString(w)!=="0"};
_.k.computeShowVoteCountEnd=function(q,w){return q===void 0||w===void 0?!0:q.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!w&&this.ytRendererBehavior.getSimpleString(w)!=="0"};
_.k.computeShowCommentCount=function(q,w){return q===void 0||w===void 0?!0:q.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!w&&this.ytRendererBehavior.getSimpleString(w)!=="0"};
_.k.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.k.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.k.showReplyDialog=function(q){q&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.A(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=q,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.k.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.k.onRequestSent=function(q){if(_.T("web_button_rework")){q=_.P(q.detail);for(var w=q.next();!w.done;w=q.next())(w=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",w.value))&&this.showReplyDialog(w)}};
_.k.onYtNavigate=function(q){var w,u;(q=(w=_.C(q.detail.endpoint,_.Sc$))==null?void 0:(u=w.dialog)==null?void 0:u.commentReplyDialogRenderer)&&this.showReplyDialog(q)};
_.k.onYtServiceRequestSent=function(q,w){q.stopPropagation();if(w.actions)for(q=0;q<w.actions.length;q++){var u=_.C(w.actions[q],BZa);u&&this.handleUpdateCommentVoteAction(u)}};
_.k.handleUpdateCommentVoteAction=function(q){this.voteCount=q.voteCount||_.jN("0");q.voteStatus==="LIKE"?this.JSC$13571_ytdDislikeToggleButtonRenderer.toggle(!1):q.voteStatus==="DISLIKE"?this.JSC$13571_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13571_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13571_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.k.computeReplyButtonHidden=function(q){return q};
_.k.computeReplyButtonBeginning=function(q){return(q==null?0:q.replyButton)&&q.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?q.replyButton:void 0};
_.k.computeReplyButtonEnd=function(q){return(q==null?0:q.replyButton)&&q.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?q.replyButton:void 0};
_.k.computeActionButtonStyle=function(q){return(q==null?0:q.style)?q.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.k.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.k.onYtToggleButton=function(q){var w,u;this.isLiked=this.systemIcons&&!!((w=q.detail)==null?0:(u=w.actions)==null?0:u.like)};
et.prototype.onYtToggleButton=et.prototype.onYtToggleButton;et.prototype.onButtonTooltipPositionChanged=et.prototype.onButtonTooltipPositionChanged;et.prototype.onYtServiceRequestSent=et.prototype.onYtServiceRequestSent;et.prototype.onYtNavigate=et.prototype.onYtNavigate;et.prototype.onRequestSent=et.prototype.onRequestSent;et.prototype.onYtCommentboxDismiss=et.prototype.onYtCommentboxDismiss;et.prototype.dataChange=et.prototype.dataChange;
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],et.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],et.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],et.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],et.prototype,"voteCount",void 0);_.c([_.v(),_.h("design:type",Object)],et.prototype,"commentCount",void 0);_.c([_.v(),_.h("design:type",Object)],et.prototype,"replyThumbnail",void 0);
_.c([_.v(),_.h("design:type",Object)],et.prototype,"hasCreatorReply",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],et.prototype,"enableCreationBox",void 0);_.c([_.v({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.h("design:type",String)],et.prototype,"actionButtonsStyle",void 0);_.c([_.v({computed:"computeReplyButtonBeginning(data)"}),_.h("design:type",Object)],et.prototype,"replyButtonBeginning",void 0);
_.c([_.v({computed:"computeReplyButtonEnd(data)"}),_.h("design:type",Object)],et.prototype,"replyButtonEnd",void 0);_.c([_.v(),_.h("design:type",Object)],et.prototype,"buttonOverrides",void 0);_.c([_.v(),_.h("design:type",Object)],et.prototype,"replyButtonOverrides",void 0);_.c([_.v(),_.h("design:type",Object)],et.prototype,"forceIconButton",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],et.prototype,"useCommentIcon",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],et.prototype,"modern",void 0);_.c([_.v(),_.h("design:type",Object)],et.prototype,"buttonTooltipPosition",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],et.prototype,"systemIcons",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],et.prototype,"isLiked",void 0);_.c([_.Wj("ytd-button-renderer"),_.h("design:type",Object)],et.prototype,"ytdReplyButtonRenderer",void 0);
_.c([_.Wj("#like-button"),_.h("design:type",Object)],et.prototype,"JSC$13571_ytdLikeToggleButtonRenderer",void 0);_.c([_.Wj("#dislike-button"),_.h("design:type",Object)],et.prototype,"JSC$13571_ytdDislikeToggleButtonRenderer",void 0);_.c([_.Wj("#reply-dialog"),_.h("design:type",HTMLElement)],et.prototype,"replyDialogElement",void 0);_.c([_.Wj("#reply-button"),_.h("design:type",HTMLElement)],et.prototype,"replyButtonElement",void 0);
_.c([_.Wj("#reply-button-end"),_.h("design:type",HTMLElement)],et.prototype,"replyButtonEndElement",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],et.prototype,"dataChange",null);_.c([_.Gm("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],et.prototype,"onYtCommentboxDismiss",null);
_.c([_.Gm("yt-service-request-sent-button-renderer"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],et.prototype,"onRequestSent",null);_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],et.prototype,"onYtNavigate",null);
_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],et.prototype,"onYtServiceRequestSent",null);_.c([_.nL("buttonTooltipPosition"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],et.prototype,"onButtonTooltipPositionChanged",null);
_.c([_.Gm("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],et.prototype,"onYtToggleButton",null);et=_.c([_.E({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],et);
_.R(et,"ytd-comment-action-buttons-renderer",function(){if(lja!==void 0)return lja;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return lja=q},{mode:1});var MOT;var ka=function(){return _.Y.apply(this,arguments)||this};
_.O(ka,_.Y);ka.prototype.focus=function(){_.A(this.hostElement).querySelector("#commentbox").focus()};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ka.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],ka.prototype,"zeroStepChannelCreationRenderer",void 0);ka=_.c([_.E({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],ka);
_.R(ka,"ytd-comment-dialog-renderer",function(){if(MOT!==void 0)return MOT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return MOT=q},{mode:1});var Kz6;var tA=function(){var q=_.Y.apply(this,arguments)||this;q.buttonOverrides={size:"S",iconPosition:"icon-only"};q.replyButtonOverrides={size:"S",type:"text"};return q};
_.O(tA,_.Y);_.k=tA.prototype;_.k.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.k.detached=function(){this.replyBox&&this.replyBox.remove()};
_.k.showReplyDialog=function(q){if(q){var w=this.replyBox;w||(w=document.createElement("ytd-comment-reply-dialog-renderer"),w.id="replybox",_.A(this.replyDialogDiv).appendChild(w));w.data=q;this.replyDialogDiv.hidden=!1;w.openDialog()}};
_.k.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.k.onYtServiceRequestSent=function(q,w){q.stopPropagation();if(w.actions)for(var u=0;u<w.actions.length;u++){var y=_.C(w.actions[u],BZa);y?this.handleUpdateCommentVoteAction(y):q.target===this.heartButton&&this.toggleHeartState()}};
_.k.handleUpdateCommentVoteAction=function(q){var w;(w=this.toolbarState)!=null&&w.key&&this.ytdReduxBehavior.dispatch(_.mG("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:q.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":q.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.k.toggleHeartState=function(){var q;(q=this.toolbarState)!=null&&q.key&&this.ytdReduxBehavior.dispatch(_.mG("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.x$.Object.defineProperties(tA.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return(((q=this.toolbarState)==null?void 0:q.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(w=this.toolbarData)==null?void 0:w.likeCountLiked:(u=this.toolbarData)==null?void 0:u.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.toolbarSurface)==null?void 0:q.commentDisabledActionCommand)!==void 0}},
isSubscribersOnlyComments:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.toolbarSurface)==null?void 0:q.subscribersOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.toolbarSurface)==null?void 0:q.prepareAccountCommand)!==void 0&&!_.T("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var q,w=_.C((q=this.toolbarSurface)==null?void 0:q.prepareAccountCommand,_.Dh),u,y,e,t,X,G,n,N,Q;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((u=this.toolbarSharedData)==null||!u.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((y=this.toolbarState)==null?void 0:y.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:w!=null?w:_.C((e=this.toolbarSurface)==null?void 0:e.likeCommand,_.Dh),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:w!=null?w:_.C((t=this.toolbarSurface)==null?void 0:t.unlikeCommand,_.Dh),defaultCommand:this.isVisiblyDisabled?_.C((X=this.toolbarSurface)==null?void 0:X.commentDisabledActionCommand,_.Dh):void 0,defaultTooltip:(G=this.toolbarData)==null?void 0:G.likeInactiveTooltip,toggledTooltip:(n=this.toolbarData)==null?void 0:n.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(N=this.toolbarData)==null?void 0:N.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(Q=this.toolbarSharedData)==null?void 0:Q.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var q,w=_.C((q=this.toolbarSurface)==null?void 0:q.prepareAccountCommand,_.Dh),u,y,e,t,X,G,n,N,Q,I;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((u=this.toolbarSharedData)==null||!u.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((y=this.toolbarState)==null?void 0:y.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:w!=null?w:_.C((e=this.toolbarSurface)==null?void 0:e.dislikeCommand,_.Dh),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:w!=null?w:_.C((t=this.toolbarSurface)==null?void 0:t.undislikeCommand,_.Dh),defaultCommand:this.isVisiblyDisabled?_.C((X=this.toolbarSurface)==null?void 0:X.commentDisabledActionCommand,_.Dh):void 0,defaultTooltip:(G=this.toolbarData)==null?void 0:G.dislikeInactiveTooltip,toggledTooltip:(n=this.toolbarData)==null?void 0:
n.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(N=this.toolbarSharedData)==null?void 0:N.dislikeReplyButtonA11y:(Q=this.toolbarSharedData)==null?void 0:Q.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(I=this.toolbarSharedData)==null?void 0:I.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var q,w,u;if(((q=this.toolbarState)==null?void 0:q.heartState)!==void 0&&((w=this.toolbarState)==null?void 0:w.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((u=this.toolbarState)==null?void 0:u.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var y,e,t,X,G,n,N,Q,I,U,d,V,J,a;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(y=this.toolbarData)==null?void 0:y.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((e=this.toolbarState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((t=this.toolbarState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((X=this.toolbarState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((G=this.toolbarState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.C((n=this.toolbarSurface)==null?void 0:n.heartCommand,
_.Dh),unheartEndpoint:this.isVisiblyDisabled?void 0:_.C((N=this.toolbarSurface)==null?void 0:N.unheartCommand,_.Dh),disabledEndpoint:this.isVisiblyDisabled?_.C((Q=this.toolbarSurface)==null?void 0:Q.commentDisabledActionCommand,_.Dh):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(I=this.toolbarData)==null?void 0:I.heartActiveTooltip,unheartedTooltip:(U=this.toolbarData)==null?void 0:U.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((d=
this.toolbarState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(V=this.toolbarSharedData)==null?void 0:V.unheartButtonA11y:(J=this.toolbarSharedData)==null?void 0:J.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(a=this.toolbarSharedData)==null?void 0:a.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.toolbarSurface)==null||!q.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var q,w,u,y;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubscribersOnlyComments?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(q=this.commentStrings)==null?void 0:q.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubscribersOnlyComments?void 0:_.C((w=this.toolbarSurface)==null?void 0:w.replyCommand,_.Dh),command:this.isVisiblyDisabled?_.C((u=this.toolbarSurface)==null?void 0:u.commentDisabledActionCommand,
_.Dh):this.isSubscribersOnlyComments?_.C((y=this.toolbarSurface)==null?void 0:y.subscribersOnlySnackbarCommand,_.Dh):void 0}}}});
tA.prototype.onYtServiceRequestSent=tA.prototype.onYtServiceRequestSent;tA.prototype.hideReplyDialogDiv=tA.prototype.hideReplyDialogDiv;_.c([_.v(),_.h("design:type",Object)],tA.prototype,"commentStrings",void 0);_.c([_.v(),_.h("design:type",Boolean)],tA.prototype,"isReply",void 0);_.c([_.v(),_.h("design:type",Object)],tA.prototype,"toolbarData",void 0);_.c([_.v(),_.h("design:type",Object)],tA.prototype,"toolbarSharedData",void 0);
_.c([_.v(),_.h("design:type",String)],tA.prototype,"toolbarStateKey",void 0);_.c([_.v(),_.h("design:type",String)],tA.prototype,"toolbarSurfaceKey",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],tA.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],tA.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],tA.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.Wj("#reply-dialog"),_.h("design:type",HTMLElement)],tA.prototype,"replyDialogDiv",void 0);_.c([_.Wj("#replybox"),_.h("design:type",Object)],tA.prototype,"replyBox",void 0);_.c([_.Wj("ytd-creator-heart-renderer"),_.h("design:type",Object)],tA.prototype,"heartButton",void 0);_.c([_.v({selector:function(q,w){return _.HQ(q.entities,"engagementToolbarStateEntityPayload",w)},
selectorArgs:["toolbarStateKey"]}),_.h("design:type",Object)],tA.prototype,"toolbarState",void 0);_.c([_.v({selector:IJH,selectorArgs:["toolbarSurfaceKey"]}),_.h("design:type",Object)],tA.prototype,"toolbarSurface",void 0);_.c([_.v(),_.h("design:type",Object)],tA.prototype,"buttonOverrides",void 0);_.c([_.Gm("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tA.prototype,"hideReplyDialogDiv",null);
_.c([_.Z("toolbarData","toolbarState"),_.h("design:type",String),_.h("design:paramtypes",[])],tA.prototype,"likeCount",null);_.c([_.Z("likeCount"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tA.prototype,"showLikeCount",null);_.c([_.Z("toolbarSurface"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tA.prototype,"isVisiblyDisabled",null);_.c([_.Z("toolbarSurface"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tA.prototype,"isSubscribersOnlyComments",null);
_.c([_.Z("toolbarSurface"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tA.prototype,"hasPrepareAccountCommand",null);_.c([_.Z("toolbarData","toolbarState","toolbarSurface"),_.h("design:type",Object),_.h("design:paramtypes",[])],tA.prototype,"likeToggleButtonRenderer",null);_.c([_.Z("isReply","toolbarData","toolbarState","toolbarSurface"),_.h("design:type",Object),_.h("design:paramtypes",[])],tA.prototype,"dislikeToggleButtonRenderer",null);
_.c([_.Z("toolbarData","toolbarState","toolbarSurface"),_.h("design:type",Object),_.h("design:paramtypes",[])],tA.prototype,"creatorHeartSupportedRenderer",null);_.c([_.Z("toolbarSurface"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tA.prototype,"hasReplyCommand",null);_.c([_.Z("toolbarSurface","commentStrings","isVisiblyDisabled"),_.h("design:type",Object),_.h("design:paramtypes",[])],tA.prototype,"replyButtonRenderer",null);
_.c([_.v(),_.h("design:type",Object)],tA.prototype,"replyButtonOverrides",void 0);_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],tA.prototype,"onYtServiceRequestSent",null);tA=_.c([_.E({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],tA);
_.R(tA,"ytd-comment-engagement-bar",function(){if(Kz6!==void 0)return Kz6;var q=document.createElement("template");_.f(q,'\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]]" 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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Kz6=q},{mode:1});var B8T;var PH=function(){return _.Y.apply(this,arguments)||this};
_.O(PH,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],PH.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],PH.prototype,"data",void 0);PH=_.c([_.E({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],PH);
_.R(PH,"ytd-comment-inline-thumbnail-renderer",function(){if(B8T!==void 0)return B8T;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return B8T=q},{mode:1});var xWT;var XW=function(){return _.Y.apply(this,arguments)||this};
_.O(XW,_.Y);_.c([_.v(),_.h("design:type",Object)],XW.prototype,"data",void 0);XW=_.c([_.E({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],XW);
_.R(XW,"ytd-comment-pause-composer-renderer",function(){if(xWT!==void 0)return xWT;var q=document.createElement("template");_.f(q,'\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" 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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return xWT=q},{mode:1});var qBc;var wpZ;var FW=function(){var q=_.Y.apply(this,arguments)||this;q.isOpen=!1;return q};
_.O(FW,_.Y);_.k=FW.prototype;_.k.dataChanged=function(){this.isOpen=!1};
_.k.onTap=function(){this.data&&(this.data.navigationEndpoint?_.t7(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.k.focus=function(){this.JSC$13597_commentbox.focus()};
_.k.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.k.openDialog=function(){this.isOpen=!0;this.JSC$13597_commentbox.focus();this.JSC$13597_commentbox.maybeHeightChanged()};
FW.prototype.onYtCommentboxDismiss=FW.prototype.onYtCommentboxDismiss;FW.prototype.dataChanged=FW.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],FW.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],FW.prototype,"isOpen",void 0);_.c([_.Wj("#commentbox"),_.h("design:type",Object)],FW.prototype,"JSC$13597_commentbox",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],FW.prototype,"dataChanged",null);_.c([_.Gm("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],FW.prototype,"onYtCommentboxDismiss",null);FW=_.c([_.E({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],FW);
_.R(FW,"ytd-comment-reply-dialog-renderer",function(){if(wpZ!==void 0)return wpZ;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return wpZ=q},{mode:1});var u_$;var Gf=function(){return _.Y.apply(this,arguments)||this};
_.O(Gf,_.Y);_.x$.Object.defineProperties(Gf.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var q,w,u=(q=this.data)==null?void 0:(w=q.icon)==null?void 0:w.iconType;return u?"yt-icons:"+u.toLowerCase():null}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Gf.prototype,"data",void 0);_.c([_.v(),_.Z("data.icon"),_.h("design:type",Object),_.h("design:paramtypes",[])],Gf.prototype,"icon",null);Gf=_.c([_.E({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Gf);
_.R(Gf,"ytd-pinned-comment-badge-renderer",function(){if(u_$!==void 0)return u_$;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return u_$=q},{mode:1});var ySa;var edj={},k8T={input:!0,meta:!0,br:!0,link:!0,img:!0},nS=null;edj.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(){nS==null&&(nS=document.createElement("tp-yt-paper-tooltip"),nS.offset=8,nS.fitToVisibleBounds=!0)},
onMouseOver_:function(q){if(q=_.ar(q.target,function(e){return e==this||e.getAttribute&&e.getAttribute("shared-tooltip-text")}.bind(this),!0)){var w=q.getAttribute("shared-tooltip-text");
if(w){var u=this,y=null;q!=this&&(q.tagName.toLowerCase()in k8T?u=q.parentElement:u=q,q.id&&(y=q.id));this.polymerController.createTooltipIfRequired_();if(nS.parentElement!=u||nS.for!=y)(0,_.tM)(nS).textContent=w,_.A(u).appendChild(nS),nS.for=y,nS.animationDelay=this.polymerController.sharedTooltipAnimationDelay,nS.position=this.polymerController.sharedTooltipPosition}}}};var HH=function(){return _.Y.apply(this,arguments)||this};
_.O(HH,_.Y);HH.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]]"}}}}}};
HH.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
HH.prototype.colorChanged=function(){var q,w,u,y=(q=this.data)==null?void 0:(w=q.color)==null?void 0:(u=w.basicColorPaletteData)==null?void 0:u.foregroundBodyColor;y&&(this.rgbBadgeColor=_.Ae(y));_.A(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
HH.prototype.tooltipChanged=function(){var q;((q=this.data)==null?0:q.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
HH.prototype.tooltipChanged=HH.prototype.tooltipChanged;HH.prototype.colorChanged=HH.prototype.colorChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],HH.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],HH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(edj.YtSharedTooltipBehavior),_.h("design:type",Object)],HH.prototype,"ytSharedTooltipBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],HH.prototype,"data",void 0);
_.c([_.v({value:"#4285F4"}),_.h("design:type",String)],HH.prototype,"rgbBadgeColor",void 0);_.c([_.nL("data.color"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HH.prototype,"colorChanged",null);_.c([_.nL("data.tooltip"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HH.prototype,"tooltipChanged",null);HH=_.c([_.E({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],HH);
_.R(HH,"ytd-sponsor-comment-badge-renderer",function(){if(ySa!==void 0)return ySa;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return ySa=q},{mode:1});var txF;var PNr;var WH=function(){return _.Y.apply(this,arguments)||this};
_.O(WH,_.Y);WH.prototype.computeState=function(q){switch(q==null?void 0:q.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"}};
WH.prototype.updateStateIdentifier=function(q){if(this.viewModel.triStateKey){var w=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.mG("triStateButtonStateEntityPayload",w,{key:w,stateIdentifier:q}))}};
WH.prototype.onClick=function(){var q=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(){q.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){q.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.x$.Object.defineProperties(WH.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 q;return((q=this.data)==null?void 0:q.buttonText)||""}}});
_.c([_.v(),_.h("design:type",Object)],WH.prototype,"viewModel",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],WH.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],WH.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],WH.prototype,"ytRendererBehavior",void 0);_.c([_.v({selector:iR4,selectorArgs:["viewModel.triStateKey"]}),_.h("design:type",Object)],WH.prototype,"triStateButtonStateEntity",void 0);
_.c([_.v({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.h("design:type",String)],WH.prototype,"state",void 0);_.c([_.Z("viewModel","state"),_.h("design:type",Object),_.h("design:paramtypes",[])],WH.prototype,"data",null);_.c([_.Z("data"),_.h("design:type",String),_.h("design:paramtypes",[])],WH.prototype,"buttonText",null);WH=_.c([_.E({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],WH);
_.R(WH,"ytd-tri-state-button-view-model",function(){if(PNr!==void 0)return PNr;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return PNr=q},{mode:1});var Xpa;var Fdk;var sS=function(){var q=_.Y.apply(this,arguments)||this;q.defaultIconToFilled=!_.T("kevlar_fill_comment_chip_icon_killswitch");return q};
_.O(sS,_.Y);sS.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
sS.prototype.dataChanged=function(){if(this.data){var q,w;((q=this.data.chipColorPalette)==null?0:q.backgroundColor)&&((w=this.data.chipColorPalette)==null?0:w.foregroundTitleColor)&&_.Pj(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Je(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Je(this.data.chipColorPalette.foregroundTitleColor)});var u;((u=this.data)==null?0:u.command)?(_.Pj(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Pj(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}};
sS.prototype.onTap=function(){var q;if(this.data&&(q=this.data)!=null&&q.command){var w;this.ytComponentBehavior.resolveCommand((w=this.data)==null?void 0:w.command)}};
sS.prototype.getIconSize=function(){return _.T("kevlar_fill_comment_chip_icon_killswitch")?24:12};
sS.prototype.onTap=sS.prototype.onTap;sS.prototype.dataChanged=sS.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],sS.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.IZ),_.h("design:type",Object)],sS.prototype,"ironA11yKeysBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],sS.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",Object)],sS.prototype,"basePriceText",void 0);_.c([_.v(),_.h("design:type",Object)],sS.prototype,"chipIcon",void 0);_.c([_.v(),_.h("design:type",Object)],sS.prototype,"defaultIconToFilled",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sS.prototype,"dataChanged",null);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sS.prototype,"onTap",null);
sS=_.c([_.JM({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],sS);
_.R(sS,"yt-pdg-comment-chip-renderer",function(){if(Fdk===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;Xpa===void 0&&(Xpa=document.createElement("template"));var y=Xpa;u.call(w,y.content.cloneNode(!0),q.content.firstChild);Fdk=q}q=Fdk;return q},{mode:2});var NS=function(){var q=_.Y.apply(this,arguments)||this;q.useSmallAvatars=_.T("small_avatars_for_comments");q.webWatchCompactComments=_.T("web_watch_compact_comments");q.editDialog=null;return q};
_.O(NS,_.Y);_.k=NS.prototype;_.k.onShow=function(){_.Z_("cmv",void 0,"wn_comments")};
_.k.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"}}}};
_.k.detached=function(){this.editDialog=null;this.expander.reset()};
_.k.updateBackgroundColor=function(){if(this.backgroundColor){var q={"--ytd-comment-paid-background-color":_.Je(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Pj(this.hostElement,q)}else _.Pj(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.k.resetExpander=function(){var q;(q=this.expander)==null||q.reset()};
_.k.openEditDialog=function(q){q.dialog&&(this.editDialog=q.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.k.onYtNavigate=function(q){var w=q.detail.endpoint;if(w=_.C(w,_.hJ$)||_.C(w,_.jqk))q.stopPropagation(),this.openEditDialog(w)};
_.k.onYtCommentboxDismiss=function(){this.editDialog=null;_.Pj(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.k.onAuthorThumbnailClicked=function(){var q=this;_.T("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(w,u){q.onAuthorThumbnailEndpointSuccess(u)},
onServerError:function(w,u){_.Y8(new _.fv("Failed to resolve the command",u))}}})};
_.k.onAuthorThumbnailEndpointSuccess=function(q){if((q=q==null?void 0:q.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(q,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();q=q==null?void 0:q.clickTrackingParams;var w=_.ZB();q&&w&&_.Qz().graftServerVe(q,w)}};
_.k.logScreenVe=function(){_.e$(_.Qz(),66557)};
_.k.onYtCommentboxResize=function(q){var w;(q==null?0:(w=q.detail)==null?0:w.height)&&_.Pj(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":q.detail.height+"px"})};
_.x$.Object.defineProperties(NS.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 q,w=(q=this.commentEntity)==null?void 0:q.author;return w&&(w.isCreator||w.isVerified||w.isArtist)?{renderer:{authorEndpoint:w.channelPageEndpoint?_.C(w.channelPageEndpoint,_.Dh):_.C(w.channelCommand,_.Dh),authorText:{runs:[{text:w.displayName}]},color:w.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:w.isArtist?{iconType:"AUDIO_BADGE"}:
w.isVerified?{iconType:w.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:w.isArtist||w.isVerified?w.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var q,w=(q=this.commentEntity)==null?void 0:q.author;return w!=null&&w.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:w.sponsorBadgeUrl}]},tooltip:w.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var q;return _.C((q=this.commentSurfaceEntity)==null?void 0:q.pdgCommentChip,_.TM6)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var q;return this.voiceReplyContainerViewModel&&((q=this.voiceReplyContainerViewModel)==null?void 0:q.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var q;return _.C((q=this.commentSurfaceEntity)==null?void 0:q.voiceReplyContainerViewModel,ksT)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var q;return this.voiceReplyContainerViewModel&&(q=this.voiceReplyContainerViewModel)!=null&&q.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var q,w;return(w=(q=this.commentSurfaceEntity)==null?void 0:q.commentBackgroundColor)!=null?w:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.T("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var q,w;return(((q=this.commentEntity)==null?void 0:(w=q.properties)==null?void 0:w.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var q,w;if(_.T("enable_profile_cards_on_comments")&&((q=this.commentEntity)==null?0:(w=q.author)==null?0:w.profileCardEndpoint)&&this.viewModel.allowProfileCard){var u,y;return _.C((u=this.commentEntity)==null?void 0:(y=u.author)==null?void 0:y.profileCardEndpoint,_.Dh)}var e,t;return _.C((e=this.commentEntity)==null?void 0:(t=e.avatar)==null?void 0:t.endpoint,_.Dh)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var q,w;if(_.T("enable_profile_cards_on_comments")&&((q=this.commentEntity)==null?0:(w=q.author)==null?0:w.channelPageEndpoint)){var u,y;return _.C((u=this.commentEntity)==null?void 0:(y=u.author)==null?void 0:y.channelPageEndpoint,_.Dh)}var e,t;return _.C((e=this.commentEntity)==null?void 0:(t=e.avatar)==null?void 0:t.endpoint,_.Dh)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var q,w,u,y,e=(q=this.commentEntity)==null?void 0:(w=q.avatar)==null?void 0:(u=w.image)==null?void 0:(y=u.sources)==null?void 0:y[0];return e?{thumbnails:[{url:e.url,width:e.width,height:e.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.commentEntity)==null?0:(w=q.author)==null?0:w.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.commentEntity)==null?void 0:(w=q.author)==null?void 0:w.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.commentEntity)==null?void 0:(w=q.properties)==null?void 0:w.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var q;return _.C((q=this.commentSurfaceEntity)==null?void 0:q.publishedTimeCommand,_.Dh)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var q,w;if(((q=this.commentEntity)==null?0:q.translatedContent)&&((w=this.translateButtonState)==null?void 0:w.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var u;if((u=this.voiceReplyContainerViewModel)==null?0:u.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var y,e;return((y=this.commentEntity)==null?void 0:(e=y.properties)==null?void 0:e.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.commentSharedEntity)==null?void 0:(w=q.strings)==null?void 0:w.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.commentSharedEntity)==null?void 0:(w=q.strings)==null?void 0:w.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.commentEntity)==null||!q.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var q,w,u=(w=_.C((q=this.viewModel)==null?void 0:q.translateButton,eDG))!=null?w:{},y,e,t,X,G,n,N,Q,I,U,d;return Object.assign({},u,{untoggledStateData:Object.assign({},u.untoggledStateData,{buttonText:(y=this.commentEntity)==null?void 0:(e=y.translateData)==null?void 0:e.text}),togglingStateData:Object.assign({},u.togglingStateData,{buttonText:(t=this.commentSharedEntity)==null?
void 0:(X=t.strings)==null?void 0:X.translatingText}),toggledStateData:Object.assign({},u.toggledStateData,{buttonText:(G=this.commentSharedEntity)==null?void 0:(n=G.strings)==null?void 0:n.seeOriginalText}),transitionCommand:((N=this.commentEntity)==null?0:N.translatedContent)?void 0:_.C((Q=this.commentEntity)==null?void 0:(I=Q.translateData)==null?void 0:I.translateComment,_.Dh),triStateKey:(U=this.commentEntity)==null?void 0:(d=U.properties)==null?void 0:d.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return((w=_.C(_.C((q=this.toolbarSurface)==null?void 0:q.menuCommand,_.Dh),lQa))==null?void 0:(u=w.menu)==null?void 0:u.menuRenderer)||null}}});
NS.prototype.onYtCommentboxResize=NS.prototype.onYtCommentboxResize;NS.prototype.onYtCommentboxDismiss=NS.prototype.onYtCommentboxDismiss;NS.prototype.onYtNavigate=NS.prototype.onYtNavigate;NS.prototype.resetExpander=NS.prototype.resetExpander;NS.prototype.updateBackgroundColor=NS.prototype.updateBackgroundColor;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],NS.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],NS.prototype,"ytdReduxBehavior",void 0);
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],NS.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],NS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.Wj("#author-thumbnail > button"),_.h("design:type",HTMLElement)],NS.prototype,"authorThumbnailAnchor",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("viewModel"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],NS.prototype,"linked",null);
_.c([_.Z("viewModel","linked"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"linkedCommentBadge",null);_.c([_.v({reflectToAttribute:!0}),_.Z("viewModel"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],NS.prototype,"pinned",null);_.c([_.Z("viewModel","pinned"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"pinnedCommentBadge",null);
_.c([_.Z("commentEntity","commentSharedEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"authorCommentBadge",null);_.c([_.v({reflectToAttribute:!0}),_.Z("authorCommentBadge"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"hasAuthorBadge",null);_.c([_.Z("commentEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"sponsorCommentBadge",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("sponsorCommentBadge"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"hasSponsorBadge",null);_.c([_.Z("commentSurfaceEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"pdgCommentChipRenderer",null);_.c([_.v({reflectToAttribute:!0}),_.Z("voiceReplyContainerViewModel"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"hasVoiceReply",null);
_.c([_.Z("commentSurfaceEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"voiceReplyContainerViewModel",null);_.c([_.Z("voiceReplyContainerViewModel"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"voiceReplyUnavailableText",null);_.c([_.v(),_.h("design:type",Object)],NS.prototype,"data",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"viewModel",null);
_.c([_.v({selector:function(q,w){return _.HQ(q.entities,"commentSharedEntityPayload",w)},
selectorArgs:["viewModel.sharedKey"]}),_.h("design:type",Object)],NS.prototype,"commentSharedEntity",void 0);_.c([_.v({selector:function(q,w){return _.HQ(q.entities,"commentEntityPayload",w)},
selectorArgs:["viewModel.commentKey"]}),_.h("design:type",Object)],NS.prototype,"commentEntity",void 0);_.c([_.v({selector:function(q,w){return _.HQ(q.entities,"commentSurfaceEntityPayload",w)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.h("design:type",Object)],NS.prototype,"commentSurfaceEntity",void 0);_.c([_.v({selector:IJH,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.h("design:type",Object)],NS.prototype,"toolbarSurface",void 0);_.c([_.v({selector:iR4,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.h("design:type",Object)],NS.prototype,"translateButtonState",void 0);
_.c([_.Z("commentSurfaceEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"backgroundColor",null);_.c([_.v({reflectToAttribute:!0}),_.Z("viewModel"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],NS.prototype,"optimalReadingWidthComments",null);_.c([_.Wj("ytd-expander"),_.h("design:type",Object)],NS.prototype,"expander",void 0);
_.c([_.nL("backgroundColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NS.prototype,"updateBackgroundColor",null);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],NS.prototype,"useSmallAvatars",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],NS.prototype,"webWatchCompactComments",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("commentEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"isReply",null);
_.c([_.Z("commentEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"authorThumbnailEndpoint",null);_.c([_.Z("commentEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"authorNameEndpoint",null);_.c([_.Z("commentEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"authorThumbnail",null);_.c([_.Z("commentEntity"),_.h("design:type",String),_.h("design:paramtypes",[])],NS.prototype,"authorTextClass",null);
_.c([_.Z("commentEntity"),_.h("design:type",String),_.h("design:paramtypes",[])],NS.prototype,"authorChannelName",null);_.c([_.Z("commentEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"publishedTime",null);_.c([_.Z("commentSurfaceEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"publishedTimeCommand",null);
_.c([_.Z("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"contentText",null);_.c([_.nL("contentText"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NS.prototype,"resetExpander",null);_.c([_.Z("commentEntity"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],NS.prototype,"shouldShowReadMoreInitially",null);
_.c([_.Z("commentSharedEntity"),_.h("design:type",String),_.h("design:paramtypes",[])],NS.prototype,"expandText",null);_.c([_.Z("commentSharedEntity"),_.h("design:type",String),_.h("design:paramtypes",[])],NS.prototype,"collapseText",null);_.c([_.Z("commentEntity"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],NS.prototype,"shouldShowTranslateButton",null);
_.c([_.Z("commentEntity","commentSharedEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"translateButton",null);_.c([_.Z("toolbarSurface"),_.h("design:type",Object),_.h("design:paramtypes",[])],NS.prototype,"overflowMenuRenderer",null);_.c([_.v(),_.h("design:type",Object)],NS.prototype,"editDialog",void 0);_.c([_.Wj("ytd-comment-dialog-renderer"),_.h("design:type",Object)],NS.prototype,"editCommentDialogContainer",void 0);
_.c([_.Wj("ytd-comment-reply-dialog-renderer"),_.h("design:type",Object)],NS.prototype,"editReplyDialogContainer",void 0);_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],NS.prototype,"onYtNavigate",null);_.c([_.Gm("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],NS.prototype,"onYtCommentboxDismiss",null);
_.c([_.Gm("yt-commentbox-resize"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],NS.prototype,"onYtCommentboxResize",null);NS=_.c([_.E({disableElementRegistration:!0,is:"ytd-comment-view-model"})],NS);
_.R(NS,"ytd-comment-view-model",function(){if(txF!==void 0)return txF;var q=document.createElement("template");_.f(q,'\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">\n      </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          <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">\n              [[authorChannelName]]\n            </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" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return txF=q},{mode:_.kB("kevlar_poly_si_batch_j025")?1:2});var Q3=function(){var q=_.Y.apply(this,arguments)||this;q.modern=_.T("web_modern_buttons");q.isWatchGrid=_.T("kevlar_watch_grid");q.buttonOverrides={style:"call-to-action"};q.JSC$13643_spinnerEl=null;return q};
_.O(Q3,_.Y);_.k=Q3.prototype;_.k.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.k.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]]"}}}}}};
_.k.attached=function(){this.isShowRepliesVisible=!0};
_.k.dataChanged=function(){var q=this.expanderContents;q&&(q.hidden=!0);this.isLoading=!1};
_.k.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.k.isLoadingChanged=function(){this.isLoading&&!this.JSC$13643_spinnerEl&&(this.JSC$13643_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.A(this.expanderContents).appendChild(this.JSC$13643_spinnerEl));this.JSC$13643_spinnerEl&&(this.JSC$13643_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var q;(q=this.contents)==null||q.classList.remove("reloading")}};
_.k.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var q=_.C(this.data.viewReplies,_.aB);q&&this.ytRendererBehavior.logExplicitClick(q)};
_.k.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var q=_.C(this.data.hideReplies,_.aB);q&&this.ytRendererBehavior.logExplicitClick(q)};
_.k.isShowMoreChanged=function(){var q=_.A(this.hostElement).querySelector("#expander-contents");q&&(q.hidden=this.isShowRepliesVisible)};
_.k.computeAlign=function(){if(this.modern){var q;return!((q=this.data)==null?0:q.viewRepliesCreatorThumbnail)}};
_.x$.Object.defineProperties(Q3.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var q,w=(q=this.data)==null?void 0:q.contents;return!!w&&w.length>0&&!!w[w.length-1].continuationItemRenderer}}});
Q3.prototype.isShowMoreChanged=Q3.prototype.isShowMoreChanged;Q3.prototype.isLoadingChanged=Q3.prototype.isLoadingChanged;Q3.prototype.triggerFirstContinuation=Q3.prototype.triggerFirstContinuation;Q3.prototype.dataChanged=Q3.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Q3.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.JR),_.h("design:type",Object)],Q3.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Q3.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Q3.prototype,"modern",void 0);_.c([_.v(),_.h("design:type",Boolean)],Q3.prototype,"isLoading",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],Q3.prototype,"isShowRepliesVisible",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],Q3.prototype,"useNewFormatting",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Q3.prototype,"isWatchGrid",void 0);_.c([_.v(),_.h("design:type",Object)],Q3.prototype,"buttonOverrides",void 0);_.c([_.Wj("#expander-contents"),_.h("design:type",HTMLElement)],Q3.prototype,"expanderContents",void 0);_.c([_.Wj("ytd-continuation-item-renderer"),_.h("design:type",Object)],Q3.prototype,"continuationItemRenderer",void 0);_.c([_.Wj("#contents"),_.h("design:type",HTMLElement)],Q3.prototype,"contents",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Q3.prototype,"dataChanged",null);_.c([_.Z("data.contents"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Q3.prototype,"hasContinuation",null);_.c([_.Gm("yt-expander-more-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Q3.prototype,"triggerFirstContinuation",null);
_.c([_.nL("isLoading"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Q3.prototype,"isLoadingChanged",null);_.c([_.nL("isShowRepliesVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Q3.prototype,"isShowMoreChanged",null);Q3=_.c([_.E({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],Q3);
_.R(Q3,"ytd-comment-replies-renderer",function(){if(qBc!==void 0)return qBc;var q=document.createElement("template");_.f(q,'\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="[[!hasContinuation]]" 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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return qBc=q},{mode:1});var G8a;var Il=function(){var q=_.Y.apply(this,arguments)||this;q.isOpen=!1;q.commentDialog=null;q.useSmallAvatars=_.T("small_avatars_for_comments");q.useSmallAvatarsEngagementPanelOnly=_.T("small_avatars_for_comments_ep");q.placeholderFocusListener=null;q.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return q};
_.O(Il,_.Y);_.k=Il.prototype;_.k.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]]"}}}}}};
_.k.ready=function(){var q=this,w=_.A(this.hostElement).querySelector("#placeholder-area"),u=_.A(this.hostElement).querySelector("#simplebox-placeholder"),y=function(e){e.stopPropagation();e instanceof KeyboardEvent&&e.type==="keypress"&&e.keyCode!==13&&e.keyCode!==32||q.openDialog()};
this.placeholderFocusListener=y;u.addEventListener("focus",this.placeholderFocusListener);w.addEventListener("tap",y);w.addEventListener("keypress",y)};
_.k.maybeRemoveFocusEventListener=function(){var q;(q=this.data)!=null&&q.prepareAccountEndpoint&&!_.T("web_comments_simplebox_modal_focus_on_tap_ks")&&(q=_.A(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(q.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.k.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.k.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.T("web_comment_simplebox_resolve_polymer_command_ks")?_.nx.instance.resolveCommand(this.data.prepareAccountEndpoint):_.H6(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.A(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.k.onYtCommentboxDismiss=function(q){q.stopPropagation();this.isOpen=!1};
_.k.onCreateCommentAction=function(q){this.get("createCommentAction.contents",q)&&(this.isOpen=!1)};
_.k.computeCommentDialog=function(q){return{placeholderText:q.placeholderText,authorThumbnail:q.authorThumbnail,submitButton:q.submitButton,imageButton:q.imageButton,cancelButton:q.cancelButton,emojiButton:q.emojiButton,emojis:q.emojis,emojiPicker:q.emojiPicker,aadcGuidelinesStateEntityKey:q.aadcGuidelinesStateEntityKey,openAadcDialog:q.openAadcDialog,unicodeEmojisUrl:q.unicodeEmojisUrl}};
_.k.onHideIdentityChip=function(q){_.C(q,Mc6)&&this.set("data.placeholderText",_.C(q,Mc6).placeholderText)};
Il.prototype.onYtCommentboxDismiss=Il.prototype.onYtCommentboxDismiss;Il.prototype.dataChanged=Il.prototype.dataChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Il.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Il.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Il.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],Il.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],Il.prototype,"isOpen",void 0);_.c([_.v(),_.h("design:type",Object)],Il.prototype,"commentDialog",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Il.prototype,"engagementPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Il.prototype,"useSmallAvatars",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Il.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Il.prototype,"enableCreationBox",void 0);_.c([_.v(),_.h("design:type",Boolean)],Il.prototype,"showCreateDialog",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Il.prototype,"dataChanged",null);
_.c([_.Gm("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Il.prototype,"onYtCommentboxDismiss",null);Il=_.c([_.E({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],Il);
_.R(Il,"ytd-comment-simplebox-renderer",function(){if(G8a!==void 0)return G8a;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return G8a=q},{mode:1});var n4$;_.JE("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var iQ=function(){var q=_.Y.apply(this,arguments)||this;q.addHoverEffect=_.T("swatcheroo_comments_hover_effect");return q};
_.O(iQ,_.Y);iQ.prototype.onTap=function(q){if(this.addHoverEffect&&!this.engagementPanel&&!_.LT(_.SQ(q)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var w;((w=window.getSelection())==null?0:w.toString().length)||_.H6({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
iQ.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.x$.Object.defineProperties(iQ.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)!=null&&q.commentViewModel)return _.C(this.data.commentViewModel,yvj)}}});
iQ.prototype.onTap=iQ.prototype.onTap;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],iQ.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],iQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],iQ.prototype,"addHoverEffect",void 0);_.c([_.v(),_.h("design:type",Object)],iQ.prototype,"data",void 0);
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],iQ.prototype,"commentViewModel",null);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],iQ.prototype,"engagementPanel",void 0);_.c([_.Gm("tap"),_.Gm("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],iQ.prototype,"onTap",null);iQ=_.c([_.E({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],iQ);
_.R(iQ,"ytd-comment-thread-renderer",function(){if(n4$!==void 0)return n4$;var q=document.createElement("template");_.f(q,'\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<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return n4$=q},{mode:_.kB("kevlar_poly_si_batch_j025")?1:2});var HEF;var rO=function(){var q=_.Y.apply(this,arguments)||this;q.modernTypography=_.T("web_modern_typography");q.compactHeader=_.T("web_watch_compact_comments_header");q.hidePanelButton=!1;q.isPostSchedulingEnabled=_.T("enable_post_scheduling");q.hasFinishedStamping=!1;q.JSC$13661_handleOpenPostCommentDialogActionAfterStamp=!1;q.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return q};
_.O(rO,_.Y);_.k=rO.prototype;
_.k.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"}}}};
_.k.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.k.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13661_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.k.onYtServiceRequestSent=function(q,w){if(!_.T("kevlar_command_handler")&&w.actions)for(q=0;q<w.actions.length;q++){var u=w.actions[q];_.C(u,dLc)&&_.A(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.C(u,dLc))}};
_.k.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var q;if(this.getPrefilledBackstagePostDialog((q=this.data)==null?void 0:q.actions)){_.A(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var w=_.A(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;w&&_.KJ(this,function(){w.focus();w.openDialog&&w.openDialog()})}}else this.hasActionsChange=!0};
_.k.computeIsBackstage=function(q){return q};
_.k.onYtCommentboxDismiss=function(){_.A(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.k.removePrefilledDialog=function(q){if(q==null?0:q.actions){for(var w=q.actions.length-1;w>=0;w--){var u=void 0;((u=_.C(q.actions[w],cYT))==null?0:u.dialog)&&delete q.actions[w]}this.set("data",void 0);this.set("data",q)}};
_.k.getPrefilledBackstagePostDialog=function(q){if(q)for(var w=0;w<q.length;w++){var u=q[w],y=void 0;if((y=_.C(u,cYT))==null?0:y.dialog)return _.C(u,cYT).dialog}return null};
_.k.computeBackstagePostDialog=function(q){return q&&(this.getPrefilledBackstagePostDialog(q.actions)||q.createRenderer)};
_.k.dataChanged=function(){if(this.data){var q=this.data.customEmojis,w=this.data.unicodeEmojisUrl;_.AV.clear();w&&_.i6a(_.AV,w);q&&_.AV.load(q)}};
_.k.handleSignalActionOpenPostCommentDialogAction=function(){var q=_.A(this.hostElement).querySelector("ytd-comment-simplebox-renderer");q?q.openDialog():this.JSC$13661_handleOpenPostCommentDialogActionAfterStamp=!0};
_.x$.Object.defineProperties(rO.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.T("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var q,w,u,y,e,t,X;return!this.hidePanelButton&&_.T("kevlar_watch_comments_panel_button")&&((X=_.C((q=this.data)==null?void 0:(w=q.sortMenu)==null?void 0:(u=w.sortFilterSubMenuRenderer)==null?void 0:(y=u.subMenuItems)==null?void 0:(e=y[0])==null?void 0:(t=e.serviceEndpoint)==null?void 0:t.commandMetadata,_.wk))==null?void 0:X.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.ID("MINIPLAYER_EXPAND_LABEL"),text:_.jN(_.ID("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
rO.prototype.dataChanged=rO.prototype.dataChanged;rO.prototype.onYtCommentboxDismiss=rO.prototype.onYtCommentboxDismiss;rO.prototype.observePrefilledBackstagePostDialog=rO.prototype.observePrefilledBackstagePostDialog;rO.prototype.onYtServiceRequestSent=rO.prototype.onYtServiceRequestSent;rO.prototype.onStampFinished=rO.prototype.onStampFinished;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],rO.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],rO.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],rO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],rO.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],rO.prototype,"modernTypography",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],rO.prototype,"compactHeader",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],rO.prototype,"engagementPanel",void 0);_.c([_.v(),_.h("design:type",Object)],rO.prototype,"hidePanelButton",void 0);_.c([_.v({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.h("design:type",Boolean)],rO.prototype,"isBackstage",void 0);_.c([_.v({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.h("design:type",Object)],rO.prototype,"backstagePostDialog",void 0);
_.c([_.v(),_.h("design:type",Object)],rO.prototype,"isPostSchedulingEnabled",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("data","showCommentsPanelButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],rO.prototype,"useSpaceBetween",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data","hidePanelButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],rO.prototype,"showCommentsPanelButton",null);
_.c([_.Z("data","showCommentsPanelButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],rO.prototype,"commentsPanelButtonData",null);_.c([_.Gm("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rO.prototype,"onStampFinished",null);_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],rO.prototype,"onYtServiceRequestSent",null);
_.c([_.nL("data.actions"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rO.prototype,"observePrefilledBackstagePostDialog",null);_.c([_.Gm("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],rO.prototype,"onYtCommentboxDismiss",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rO.prototype,"dataChanged",null);
rO=_.c([_.E({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],rO);
_.R(rO,"ytd-comments-header-renderer",function(){if(HEF!==void 0)return HEF;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return HEF=q},{mode:1});var Wdc;var US=function(){return _.Y.apply(this,arguments)||this};
_.O(US,_.Y);_.c([_.v(),_.h("design:type",Object)],US.prototype,"data",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],US.prototype,"ytRendererBehavior",void 0);US=_.c([_.E({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],US);
_.R(US,"ytd-destination-button-renderer",function(){if(Wdc!==void 0)return Wdc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Wdc=q},{mode:1});var sbx;var Tf=function(){var q=_.Y.apply(this,arguments)||this;q.isRichGrid=!1;q.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};q.modernTypography=_.T("web_modern_typography");return q};
_.O(Tf,_.Y);_.k=Tf.prototype;_.k.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.k.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.k.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.k.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var q;if((q=this.data)==null||!q.isExpanded){q=this.hostElement.clientWidth;var w;if(q&&(w=this.data)!=null&&w.destinationButtons){w=Math.floor((q+4)/214);q=this.data.destinationButtons.length;var u=Math.ceil(q/w);this.fullyVisibleRows=q%w===1&&u===2?1:Math.min(u,2);this.isShowMoreVisible=this.fullyVisibleRows<u}}}};
_.k.updateRichGridDestinationButtonsVisibility=function(){var q,w;if(this.isRichGrid&&((q=this.data)==null||!q.isExpanded)&&(w=this.data)!=null&&w.destinationButtons){q=this.richGridItemsPerRow+1;w=this.data.destinationButtons.length;var u=Math.ceil(w/q);this.fullyVisibleRows=w%q===1&&u===2?1:Math.min(u,2);this.isShowMoreVisible=this.fullyVisibleRows<u}};
_.k.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Tf.prototype.updateRichGridDestinationButtonsVisibility=Tf.prototype.updateRichGridDestinationButtonsVisibility;_.c([_.v(),_.h("design:type",Object)],Tf.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Number)],Tf.prototype,"fullyVisibleRows",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Tf.prototype,"isShowMoreVisible",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Tf.prototype,"isRichGrid",void 0);
_.c([_.v({selector:_.aO,value:0}),_.h("design:type",Number)],Tf.prototype,"richGridItemsPerRow",void 0);_.c([_.v(),_.h("design:type",Object)],Tf.prototype,"gridStateActionMap",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Tf.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Tf.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],Tf.prototype,"ytdReduxBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Tf.prototype,"modernTypography",void 0);_.c([_.nL("data","richGridItemsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Tf.prototype,"updateRichGridDestinationButtonsVisibility",null);
Tf=_.c([_.E({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],Tf);
_.R(Tf,"ytd-destination-shelf-renderer",function(){if(sbx!==void 0)return sbx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return sbx=q},{mode:1});var Nla;var CS=function(){return _.Y.apply(this,arguments)||this};
_.O(CS,_.Y);CS.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"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],CS.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],CS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],CS.prototype,"data",void 0);CS=_.c([_.E({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],CS);
_.R(CS,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(Nla!==void 0)return Nla;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Nla=q},{mode:1});var QbX;var dO=function(){var q=_.Y.apply(this,arguments)||this;q.disableAnimation=!1;q.isSlimlineSurvey=!1;q.isSlimlineSurveyFollowUp=!1;q.isShortsStyle=!1;return q};
_.O(dO,_.Y);dO.prototype.onTap=function(q){q.preventDefault();this.data&&_.t7(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.x$.Object.defineProperties(dO.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 q,w,u,y,e;return((q=this.data)==null?0:q.checked)?(w=this.data)==null?void 0:(u=w.onStateIcon)==null?void 0:u.iconType:(y=this.data)==null?void 0:(e=y.defaultStateIcon)==null?void 0:e.iconType}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],dO.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],dO.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],dO.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],dO.prototype,"disableAnimation",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dO.prototype,"isSlimlineSurvey",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dO.prototype,"isSlimlineSurveyFollowUp",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dO.prototype,"isShortsStyle",void 0);_.c([_.Z("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],dO.prototype,"isAnimatedIcon",null);
_.c([_.Z("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.h("design:type",Number),_.h("design:paramtypes",[])],dO.prototype,"iconSize",null);_.c([_.Z("isShortsStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],dO.prototype,"isDarkTheme",null);_.c([_.Z("data.checked"),_.h("design:type",Object),_.h("design:paramtypes",[])],dO.prototype,"icon",null);dO=_.c([_.E({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],dO);
_.R(dO,"ytd-rating-survey-option-renderer",function(){if(QbX!==void 0)return QbX;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return QbX=q},{mode:2});var IdT;var OS=function(){var q=_.Y.apply(this,arguments)||this;q.firstResponseText=null;q.lastResponseText=null;q.selectedNonStarOption=null;q.hideOptions=!1;q.hideUndoButton=!0;q.disableAnimation=!1;q.showResponseRangeText=!1;q.selectedRatingIndex=-1;q.isSlimlineSurvey=!1;q.isSlimlineSurveyFollowUp=!1;q.isShortsStyle=!1;q.slimlineSurveyRatingSelectedIndex=-1;return q};
_.O(OS,_.Y);_.k=OS.prototype;_.k.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.k.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.k.onOptionChange=function(q,w){var u=this;q=w.onStateIcon&&w.defaultStateIcon&&w.onStateIcon.iconType===w.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(X,G){X.responseText===w.responseText?u.isSlimlineSurvey?(u.selectedRatingIndex=G,u.ytdReduxBehavior.dispatch(mRx(G))):(u.setSurveyOptionValue(G,!0,"checked"),u.setSurveyOptionValue(G,!0,"selected")):(u.setSurveyOptionValue(G,!1,"checked"),u.setSurveyOptionValue(G,
!1,"selected"))});
else if(q)this.selectedNonStarOption=w,this.hideOptions=!0;else{var y=this.ytRendererBehavior.getSimpleString(w.responseText),e=!0;this.getOptionRenderers().forEach(function(X,G){u.setSurveyOptionValue(G,e,"checked");u.setSurveyOptionValue(G,!1,"selected");u.ytRendererBehavior.getSimpleString(X.responseText)===y&&(e=!1,u.setSurveyOptionValue(G,!0,"selected"))})}q=w.responseEndpoint;
var t;w.followUpCommand&&(t=_.C(w.followUpCommand,IlF));this.isSlimlineSurvey?(this.resetComponent(),_.Pw(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.Pw(this.hostElement,"ytd-inline-survey-rating-select-action",[q,t])};
_.k.showSelectedOption=function(){var q=this;_.pi.addJob(function(){var w=q.getOptionRenderers()[q.slimlineSurveyRatingSelectedIndex];q.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),w)},8,100)};
_.k.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(q){var w;return(w=_.C(q,rtr))!=null?w:{}}):[]};
_.k.onUndoClick=function(){this.resetComponent();_.Pw(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.k.setSurveyOptionValue=function(q,w,u){this.notifyPath("data.ratings."+q+".ratingSurveyOptionRenderer."+u);this.set("data.ratings."+q+".ratingSurveyOptionRenderer."+u,w)};
_.k.resetComponent=function(){var q=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var w=this.getOptionRenderers(),u,y;this.firstResponseText=(y=(u=w[0])==null?void 0:u.responseText)!=null?y:null;var e,t;this.lastResponseText=(t=(e=w[w.length-1])==null?void 0:e.responseText)!=null?t:null;w.forEach(function(X,G){q.setSurveyOptionValue(G,!1,"checked");q.setSurveyOptionValue(G,!1,"selected")})};
_.x$.Object.defineProperties(OS.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
OS.prototype.onOptionChange=OS.prototype.onOptionChange;OS.prototype.dataChanged=OS.prototype.dataChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],OS.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],OS.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",Object)],OS.prototype,"firstResponseText",void 0);_.c([_.v(),_.h("design:type",Object)],OS.prototype,"lastResponseText",void 0);_.c([_.v(),_.h("design:type",Object)],OS.prototype,"selectedNonStarOption",void 0);_.c([_.v(),_.h("design:type",Object)],OS.prototype,"hideOptions",void 0);_.c([_.v(),_.h("design:type",Object)],OS.prototype,"hideUndoButton",void 0);_.c([_.v(),_.h("design:type",Object)],OS.prototype,"disableAnimation",void 0);
_.c([_.v(),_.h("design:type",Object)],OS.prototype,"showResponseRangeText",void 0);_.c([_.v(),_.h("design:type",Object)],OS.prototype,"selectedRatingIndex",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],OS.prototype,"isSlimlineSurvey",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],OS.prototype,"isSlimlineSurveyFollowUp",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],OS.prototype,"isShortsStyle",void 0);_.c([_.v({selector:function(q){return q.ui.slimlineSurveyRatingSelectedIndex}}),
_.h("design:type",Object)],OS.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.c([_.Z("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],OS.prototype,"isSingleSelect",null);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OS.prototype,"dataChanged",null);
_.c([_.Gm("ytd-rating-survey-option-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],OS.prototype,"onOptionChange",null);OS=_.c([_.E({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],OS);
_.R(OS,"ytd-rating-survey-renderer",function(){if(IdT!==void 0)return IdT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return IdT=q},{mode:1});var iE6;var rSa;var UmP;var Pgc=(CV.FIRSTDAYOFWEEK+1)%7,Tlc=function(q,w,u,y){var e="";if(y.selection&&yTJ(y.selection))rI(q,y.selection)&&(e+=" selected");else if(y.selection&&eR4(y.selection)){var t=y.selection.selectionState||"START_DATE";rI(q,y.selection.start)&&(e+=" period-start ",t==="START_DATE"&&(e+="selected"));rI(q,y.selection.end)&&(e+=" period-end ",t==="END_DATE"&&(e+="selected"));UK(q,y.selection.start)||UK(y.selection.end,q)||(e+=" highlighted")}if(UK(w,y.start)||UK(y.end,w))e+=" disabled";y.circleToday&&
rI(w,u)&&(e+=" today");return e};var ol=function(){return _.Y.apply(this,arguments)||this};
_.O(ol,_.Y);_.k=ol.prototype;_.k.attached=function(){var q=this;_.KJ(this,function(){q.JSC$13695_calendarMain.scrollHeight>0&&(q.calendarConfig.selection?q.scrollToDate(kpM(q.calendarConfig.selection)):q.scrollToDate(q.calendarConfig.end))})};
_.k.updateSelection=function(q){q=XNz(Object.assign({},this.calendarConfig,{selection:q}),Tlc);this.splice.apply(this,["renderData.months",0,q.length].concat(_.Cm(q)))};
_.k.scrollToDate=function(q){this.renderData&&(q=Fzj(q,this.renderData),q!==void 0&&this.JSC$13695_calendarMain.scrollToIndex(q))};
_.k.scrollToNextMonth=function(){this.JSC$13695_calendarMain.scrollToIndex(this.JSC$13695_calendarMain.firstVisibleIndex+1)};
_.k.scrollToPrevMonth=function(){this.JSC$13695_calendarMain.firstVisibleIndex===0&&this.JSC$13695_calendarMain.scrollTo(0,0);this.JSC$13695_calendarMain.scrollToIndex(this.JSC$13695_calendarMain.firstVisibleIndex-1)};
_.k.handleDayClick=function(q){_.Pw(this.hostElement,"ytd-calendar-date-clicked",[q.model.day.date])};
_.k.handleDayMouseDown=function(q){q.preventDefault();_.Pw(this.hostElement,"ytd-calendar-date-mousedown",[q.model.day.date])};
_.k.handleDayMouseUp=function(q){_.Pw(this.hostElement,"ytd-calendar-date-mouseup",[q.model.day.date])};
_.k.handleDayMouseEnter=function(q){q.preventDefault();_.Pw(this.hostElement,"ytd-calendar-date-mouseenter",[q.model.day.date])};
_.k.handleDayMouseLeave=function(q){_.Pw(this.hostElement,"ytd-calendar-date-mouseleave",[q.model.day.date])};
_.x$.Object.defineProperties(ol.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var q=this.calendarConfig,w=Tlc;w=w===void 0?Tlc:w;for(var u=[],y=0;y<7;y++)u.push(CV.NARROWWEEKDAYS[(y+Pgc)%7]);return{months:XNz(q,w),daysOfWeekLabel:u}}}});
_.c([_.v(),_.h("design:type",Object)],ol.prototype,"calendarConfig",void 0);_.c([_.Wj("#calendar-main"),_.h("design:type",Object)],ol.prototype,"JSC$13695_calendarMain",void 0);_.c([_.Z("calendarConfig"),_.h("design:type",Object),_.h("design:paramtypes",[])],ol.prototype,"renderData",null);ol=_.c([_.E({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],ol);
_.R(ol,"ytd-scrollable-calendar",function(){if(UmP!==void 0)return UmP;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return UmP=q},{mode:2});var CNP;var dma;var V3=function(){var q=_.Y.apply(this,arguments)||this;q.hideCharCounter=!1;q.hideLabel=!1;q.noLabelFloat=!1;q.autoValidate=!0;q.invalid=!1;q.disabled=!1;q.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return q};
_.O(V3,_.Y);_.k=V3.prototype;_.k.reset=function(q){this.value=q&&this.data?this.data.value=q:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.k.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.k.focusTextInput=function(){this.input.focus()};
_.k.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()};
_.k.valueChanged=function(){var q,w;if(((q=this.data)==null?0:q.value)||((w=this.data)==null?void 0:w.value)==="")this.value=this.data.value;else{var u;((u=this.data)==null?void 0:u.value)!==void 0||this.value||(this.value="")}};
_.k.computeLabel=function(q,w){return w?"":_.lA(q)};
_.k.computeAriaLabel=function(q,w){return w?_.lA(q):""};
_.k.computeErrorMessage=function(q,w,u,y){!q&&w?q=u||this.strings.REQUIRED_LABEL:(q=_.lA(y),q=_.H4(q,"&")?"document"in _.uc?Ves(q):f3s(q):q);return q};
_.k.computeType=function(q){return q==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.k.onTextValueChanged=function(q){this.value=q.detail.value;var w;(w=this.onValueChanged)==null||w.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.k.handleUpdateTextInputFormFieldRendererCommand=function(q){(q=_.C(q,byk))&&this.data&&this.data.id===q.id&&(q.invalid!==void 0&&(this.invalid=q.invalid),q.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",q.invalidValueErrorMessage))};
_.k.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.D1("value-changed",this.value))};
_.k.updateInvalidFromBinding=function(q){this.invalid=q.detail.value};
_.x$.Object.defineProperties(V3.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var q;return!((q=this.data)==null||!q.isMultiline)}}});
V3.prototype.valueChangedForBinding=V3.prototype.valueChangedForBinding;V3.prototype.valueChanged=V3.prototype.valueChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],V3.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],V3.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],V3.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],V3.prototype,"data",void 0);_.c([_.v(),_.h("design:type",String)],V3.prototype,"value",void 0);_.c([_.v(),_.h("design:type",String)],V3.prototype,"pattern",void 0);_.c([_.v(),_.h("design:type",String)],V3.prototype,"errorMessage",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],V3.prototype,"componentStyle",void 0);_.c([_.v(),_.h("design:type",Object)],V3.prototype,"hideCharCounter",void 0);
_.c([_.v(),_.h("design:type",Object)],V3.prototype,"hideLabel",void 0);_.c([_.v(),_.h("design:type",Object)],V3.prototype,"noLabelFloat",void 0);_.c([_.v(),_.h("design:type",Function)],V3.prototype,"onValueChanged",void 0);_.c([_.v(),_.h("design:type",Boolean)],V3.prototype,"isMultilineOverride",void 0);_.c([_.v(),_.h("design:type",Object)],V3.prototype,"autoValidate",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],V3.prototype,"invalid",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],V3.prototype,"disabled",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],V3.prototype,"enableOverlayTheme",void 0);_.c([_.v({value:{REQUIRED_LABEL:_.ID("REQUIRED_LABEL",void 0,"Required")}}),_.h("design:type",Object)],V3.prototype,"strings",void 0);_.c([_.Wj("#input"),_.h("design:type",Object)],V3.prototype,"input",void 0);
_.c([_.Z("data","isMultilineOverride"),_.h("design:type",Object),_.h("design:paramtypes",[])],V3.prototype,"isMultiline",null);_.c([_.I9("data.value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],V3.prototype,"valueChanged",null);_.c([_.nL("value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],V3.prototype,"valueChangedForBinding",null);V3=_.c([_.JM({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],V3);
_.R(V3,"yt-text-input-form-field-renderer",function(){if(dma===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;CNP===void 0&&(CNP=document.createElement("template"));var y=CNP;u.call(w,y.content.cloneNode(!0),q.content.firstChild);dma=q}q=dma;return q},{mode:2});var fS=function(){var q=_.Y.apply(this,arguments)||this;q.data=void 0;q.selectionState="START_DATE";q.isStartDateInvalid=!1;q.isEndDateInvalid=!1;q.autoapply=!1;q.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 q};
_.O(fS,_.Y);_.k=fS.prototype;_.k.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"}}}}};
_.k.focus=function(){this.startDateInput.focus()};
_.k.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:T3(this.data.selection.start),end:T3(this.data.selection.end)})};
_.k.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.k.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Xm(this.selectionState)}};
_.k.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.k.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.k.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.k.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var q=this.calendar.calendarConfig,w=q.end;q=nl6({start:q.start,end:this.endDate||w},this.startDateInput.value||"");this.isStartDateInvalid=!q.isValid;q.isValid&&(q=q.value,this.selection=this.endDate?{start:q,end:this.endDate}:q,this.calendar.scrollToDate(q));this.updateInvalidState()}};
_.k.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var q=this.calendar.calendarConfig,w=q.start;q=nl6({start:this.startDate||w,end:q.end},this.endDateInput.value||"");this.isEndDateInvalid=!q.isValid;q.isValid&&(q=q.value,this.selection={start:this.startDate,end:q},this.calendar.scrollToDate(q));this.updateInvalidState()}};
_.k.handleCalendarDateClicked=function(q){var w=this.selection&&kpM(this.selection),u=this.selection&&tO4(this.selection);w&&!UK(q,w)&&this.selectionState==="END_DATE"?(this.selection={start:w,end:q},this.selectionState="START_DATE"):(u&&!UK(u,q)?this.selection={start:q,end:u}:this.selection=q,this.selectionState="END_DATE")};
_.k.handleCalendarDateMouseDown=function(q){this.selection&&!yTJ(this.selection)&&(this.dragPivot=rI(q,this.selection.start)?this.selection.end:rI(q,this.selection.end)?this.selection.start:q)};
_.k.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.k.handleCalendarDateMouseEnter=function(q){this.dragPivot&&(this.selection={start:function(w,u){return UK(w,u)?w:u}(this.dragPivot,q),
end:function(w,u){return UK(w,u)?u:w}(this.dragPivot,q)},this.dragPivot||(this.selectionState="START_DATE"))};
_.k.handleCalendarDateMouseLeave=function(){};
_.k.handleCalendarSubmitDateRange=function(){this.selection&&!yTJ(this.selection)&&_.Pw(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.k.updateInvalidState=function(){var q=function(w,u){u?w.setAttribute("invalid",""):w.removeAttribute("invalid")};
q(this.startDateInput,this.isStartDateInvalid);q(this.endDateInput,this.isEndDateInvalid)};
_.k.updateDateStrings=function(){this.selection&&(yTJ(this.selection)?uBz(this.selection):(uBz(this.selection.start),uBz(this.selection.end)))};
_.k.updateCalendarSelection=function(q){this.calendar.updateSelection(Object.assign({},q,{selectionState:this.selectionState}))};
_.k.updateIsStartDateInvalidFromBinding=function(q){this.isStartDateInvalid=q.detail.value};
_.k.updateIsEndDateInvalidFromBinding=function(q){this.isEndDateInvalid=q.detail.value};
_.k.updateStartDateStringFromBinding=function(){};
_.k.updateEndDateStringFromBinding=function(){};
_.x$.Object.defineProperties(fS.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:T3(this.data.dateRangeStart),end:T3(this.data.dateRangeEnd),selection:{start:T3(this.data.selection.start),end:T3(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&kpM(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&tO4(this.selection)}}});
fS.prototype.resetTextboxes=fS.prototype.resetTextboxes;fS.prototype.observeSelection=fS.prototype.observeSelection;fS.prototype.dataChanged=fS.prototype.dataChanged;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],fS.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],fS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.Wj("#calendar"),_.h("design:type",Object)],fS.prototype,"calendar",void 0);
_.c([_.Wj("#start-date"),_.h("design:type",Object)],fS.prototype,"startDateInput",void 0);_.c([_.Wj("#end-date"),_.h("design:type",Object)],fS.prototype,"endDateInput",void 0);_.c([_.v(),_.h("design:type",Object)],fS.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],fS.prototype,"selection",void 0);_.c([_.v(),_.h("design:type",String)],fS.prototype,"selectionState",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],fS.prototype,"calendarConfig",null);
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],fS.prototype,"errorMessage",null);_.c([_.Z("selection"),_.h("design:type",Object),_.h("design:paramtypes",[])],fS.prototype,"startDate",null);_.c([_.Z("selection"),_.h("design:type",Object),_.h("design:paramtypes",[])],fS.prototype,"endDate",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fS.prototype,"dataChanged",null);
_.c([_.nL("selection","selectionState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fS.prototype,"observeSelection",null);_.c([_.nL("selectionState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fS.prototype,"resetTextboxes",null);fS=_.c([_.E({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],fS);
_.R(fS,"ytd-date-period-picker-renderer",function(){if(rSa!==void 0)return rSa;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return rSa=q},{mode:1});var m5=function(){var q=_.Y.apply(this,arguments)||this;var w={};q.actionMap=(w["ytd-date-period-picker-apply"]="handleDateRangeUpdated",w);return q};
_.O(m5,_.Y);m5.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
m5.prototype.handleDateRangeUpdated=function(){};
_.c([_.v(),_.h("design:type",Object)],m5.prototype,"data",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],m5.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],m5.prototype,"rendererstamperBehavior",void 0);m5=_.c([_.E({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],m5);
_.R(m5,"ytd-report-history-section-header-renderer",function(){if(iE6!==void 0)return iE6;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return iE6=q},{mode:1});var OEx;var o4j;var VxG;var AA=function(){return _.Y.apply(this,arguments)||this};
_.O(AA,_.Y);_.x$.Object.defineProperties(AA.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.data)==null?0:(w=q.icon)==null?0:w.iconType)?_.Fy(this.data.icon.iconType):""}}});
_.c([_.v(),_.h("design:type",Object)],AA.prototype,"data",void 0);_.c([_.Z("data"),_.h("design:type",String),_.h("design:paramtypes",[])],AA.prototype,"icon",null);AA=_.c([_.E({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],AA);
_.R(AA,"ytd-report-history-table-text-cell-renderer",function(){if(VxG!==void 0)return VxG;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return VxG=q},{mode:1});var JA=function(){return _.Y.apply(this,arguments)||this};
_.O(JA,_.Y);JA.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],JA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],JA.prototype,"data",void 0);JA=_.c([_.E({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],JA);
_.R(JA,"ytd-report-history-table-reason-cell-renderer",function(){if(o4j!==void 0)return o4j;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return o4j=q},{mode:1});var zf=function(){return _.Y.apply(this,arguments)||this};
_.O(zf,_.Y);zf.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"}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],zf.prototype,"rendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],zf.prototype,"data",void 0);zf=_.c([_.E({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],zf);
_.R(zf,"ytd-report-history-table-cell-renderer",function(){if(OEx!==void 0)return OEx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);
return OEx=q},{mode:1});var fdG;var al=function(){var q=_.Y.apply(this,arguments)||this;q.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 q};
_.O(al,_.Y);al.prototype.onDataChanged=function(){var q;if((q=this.data)==null?0:q.style)this.componentStyle=this.getStyleName(this.data.style)};
al.prototype.getCellForColumn=function(q){return this.cells.find(function(w){var u;return((u=_.C(w==null?void 0:w.cell,C6r)||_.C(w==null?void 0:w.cell,TPr))==null?void 0:u.columnId)===q.type})};
al.prototype.getClassForColumn=function(q){switch(q){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
al.prototype.getStyleName=function(q){switch(q){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.x$.Object.defineProperties(al.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var q;return(((q=this.data)==null?void 0:q.cells)||[]).map(function(w){return _.C(w,UBG)})}}});
al.prototype.onDataChanged=al.prototype.onDataChanged;_.c([_.v(),_.h("design:type",Object)],al.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Array)],al.prototype,"columnRenderData",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],al.prototype,"componentStyle",void 0);_.c([_.Z("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],al.prototype,"cells",null);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],al.prototype,"onDataChanged",null);al=_.c([_.E({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],al);
_.R(al,"ytd-report-history-table-row-renderer",function(){if(fdG!==void 0)return fdG;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return fdG=q},{mode:1});var mmr;var ASP;var H5c={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},Wzy={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var Df=function(){return _.Y.apply(this,arguments)||this};
_.O(Df,_.Y);Df.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"}}}}}};
Df.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.x$.Object.defineProperties(Df.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.columns)?i5l(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return QFs(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var q=this.tableSpec,w=H5c;w=w===void 0?Wzy:w;w=Ijz(q.columnDimensions,q.columnsToShow||[],w);q=0;w=_.P(w);for(var u=w.next();!u.done;u=w.next())u=u.value,q+=u.minWidth+u.paddingLeft+u.paddingRight;return q}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.c([_.D(_.JR),_.h("design:type",Object)],Df.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Df.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Df.prototype,"data",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Df.prototype,"tableSpec",null);_.c([_.Z("tableSpec"),_.h("design:type",Array),_.h("design:paramtypes",[])],Df.prototype,"columnRenderData",null);
_.c([_.Z("tableSpec"),_.h("design:type",Number),_.h("design:paramtypes",[])],Df.prototype,"totalMinWidth",null);_.c([_.Z("totalMinWidth"),_.h("design:type",String),_.h("design:paramtypes",[])],Df.prototype,"tableWidthStyle",null);Df=_.c([_.E({is:"ytd-table-renderer",disableElementRegistration:!0})],Df);
_.R(Df,"ytd-table-renderer",function(){if(ASP!==void 0)return ASP;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return ASP=q},{mode:1});var Zf=function(){return _.Y.apply(this,arguments)||this};
_.O(Zf,_.Y);Zf.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}}}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Zf.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Zf.prototype,"data",void 0);Zf=_.c([_.E({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],Zf);
_.R(Zf,"ytd-report-reason-history-modal-renderer",function(){if(mmr!==void 0)return mmr;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return mmr=q},{mode:1});var JSx;var zdr;var adZ;var pS=function(){return _.Y.apply(this,arguments)||this};
_.O(pS,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],pS.prototype,"data",void 0);pS=_.c([_.E({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],pS);
_.R(pS,"ytd-profile-column-stats-entry-renderer",function(){if(adZ!==void 0)return adZ;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return adZ=q},{mode:1});var Dm6;var $a=function(){return _.Y.apply(this,arguments)||this};
_.O($a,_.Y);$a.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],$a.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],$a.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],$a.prototype,"data",void 0);$a=_.c([_.E({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],$a);
_.R($a,"ytd-profile-column-stats-renderer",function(){if(Dm6!==void 0)return Dm6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Dm6=q},{mode:1});var ZEZ;var vH=function(){return _.Y.apply(this,arguments)||this};
_.O(vH,_.Y);_.x$.Object.defineProperties(vH.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.useThumbnailSize)return 80;var w,u;q=(w=this.data)==null?void 0:(u=w.thumbnail)==null?void 0:u.thumbnails;var y;return q&&((y=q[0])==null?void 0:y.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.useThumbnailSize)return 80;var w,u;q=(w=this.data)==null?void 0:(u=w.thumbnail)==null?void 0:u.thumbnails;var y;return q&&((y=q[0])==null?void 0:y.height)||80}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],vH.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],vH.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],vH.prototype,"componentStyle",void 0);_.c([_.Z("data.useThumbnailSize"),_.h("design:type",Object),_.h("design:paramtypes",[])],vH.prototype,"thumbnailWidth",null);
_.c([_.Z("data.useThumbnailSize"),_.h("design:type",Object),_.h("design:paramtypes",[])],vH.prototype,"thumbnailHeight",null);vH=_.c([_.E({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],vH);
_.R(vH,"ytd-profile-column-user-info-renderer",function(){if(ZEZ!==void 0)return ZEZ;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return ZEZ=q},{mode:1});var bQ=function(){return _.Y.apply(this,arguments)||this};
_.O(bQ,_.Y);bQ.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]]"}}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],bQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],bQ.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],bQ.prototype,"componentStyle",void 0);bQ=_.c([_.E({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],bQ);
_.R(bQ,"ytd-profile-column-renderer",function(){if(zdr!==void 0)return zdr;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return zdr=q},{mode:1});var Ya=function(){var q=_.Y.apply(this,arguments)||this;q.componentStyle="NON_CENTERED_PROFILE";return q};
_.O(Ya,_.Y);Ya.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
Ya.prototype.getIcon=function(q){return q?"settings:"+q.toLowerCase():null};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ya.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ya.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ya.prototype,"data",void 0);Ya=_.c([_.E({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],Ya);
_.R(Ya,"ytd-page-introduction-renderer",function(){if(JSx!==void 0)return JSx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return JSx=q},{mode:1});var ppj;var gO=function(){return _.Y.apply(this,arguments)||this};
_.O(gO,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],gO.prototype,"data",void 0);gO=_.c([_.E({is:"ytd-report-description-renderer",disableElementRegistration:!0})],gO);
_.R(gO,"ytd-report-description-renderer",function(){if(ppj!==void 0)return ppj;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return ppj=q},{mode:1});var $mZ;var v4P;var ES=function(){return _.Y.apply(this,arguments)||this};
_.O(ES,_.Y);ES.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],ES.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ES.prototype,"data",void 0);ES=_.c([_.E({is:"ytd-video-report-renderer",disableElementRegistration:!0})],ES);
_.R(ES,"ytd-video-report-renderer",function(){if(v4P!==void 0)return v4P;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return v4P=q},{mode:1});var bEZ;_.JE("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.JE("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var Rl=function(){return _.Y.apply(this,arguments)||this};
_.O(Rl,_.Y);Rl.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]]"}}}}}};
Rl.prototype.computeMessageStyle=function(q){return q};
Rl.prototype.computeButtonOverride=function(q){var w;if((q==null?0:(w=q.style)==null?0:w.value)&&q.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Rl.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Rl.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Rl.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Rl.prototype,"shelf",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Rl.prototype,"panel",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.h("design:type",Boolean)],Rl.prototype,"componentStyle",void 0);_.c([_.v({computed:"computeButtonOverride(data)"}),_.h("design:type",Object)],Rl.prototype,"buttonOverride",void 0);Rl=_.c([_.E({is:"ytd-message-renderer",disableElementRegistration:!0})],Rl);
_.R(Rl,"ytd-message-renderer",function(){if(bEZ!==void 0)return bEZ;var q=document.createElement("template");_.f(q,'\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<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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return bEZ=q},{mode:1});var cH=function(){return _.Y.apply(this,arguments)||this};
_.O(cH,_.Y);cH.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"}}}};
cH.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
cH.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.x$.Object.defineProperties(cH.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var q,w;return!!(((q=this.data)==null?0:q.header)&&((w=this.data)==null?0:w.table))}}});
cH.prototype.onRequestError=cH.prototype.onRequestError;_.c([_.D(_.JR),_.h("design:type",Object)],cH.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],cH.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],cH.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],cH.prototype,"data",void 0);
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],cH.prototype,"isUnifiedReportHistory",null);_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cH.prototype,"onRequestError",null);cH=_.c([_.E({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],cH);
_.R(cH,"ytd-report-history-section-renderer",function(){if($mZ!==void 0)return $mZ;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return $mZ=q},{mode:1});var YBT;var St=function(){var q=_.Y.apply(this,arguments)||this;q.answerExpanded=!1;return q};
_.O(St,_.Y);St.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],St.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],St.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],St.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],St.prototype,"answerExpanded",void 0);St=_.c([_.E({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],St);
_.R(St,"ytd-handles-claiming-faq-renderer",function(){if(YBT!==void 0)return YBT;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return YBT=q},{mode:1});var g4F;var hA=function(){return _.Y.apply(this,arguments)||this};
_.O(hA,_.Y);_.c([_.v(),_.h("design:type",Object)],hA.prototype,"data",void 0);hA=_.c([_.E({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],hA);
_.R(hA,"ytd-handles-claiming-faq-section-renderer",function(){if(g4F!==void 0)return g4F;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return g4F=q},{mode:1});var E4G;var jt=function(){var q=_.Y.apply(this,arguments)||this;q.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";q.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";q.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";q.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";q.leftSquiggly=q.leftSquigglyLight;q.rightSquiggly=q.rightSquigglyLight;
q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};q.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return q};
_.O(jt,_.Y);_.k=jt.prototype;_.k.updateLeftSquigglyStyle=function(){_.Pj(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.k.updateRightSquigglyStyle=function(){_.Pj(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.k.ready=function(){var q=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(q)};
_.k.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&(this.set("isDarkTheme",q),q?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.k.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
jt.prototype.updateRightSquigglyStyle=jt.prototype.updateRightSquigglyStyle;jt.prototype.updateLeftSquigglyStyle=jt.prototype.updateLeftSquigglyStyle;_.c([_.v(),_.h("design:type",Object)],jt.prototype,"data",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],jt.prototype,"isDarkTheme",void 0);_.c([_.v(),_.h("design:type",String)],jt.prototype,"leftSquiggly",void 0);_.c([_.v(),_.h("design:type",String)],jt.prototype,"rightSquiggly",void 0);
_.c([_.nL("leftSquiggly"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jt.prototype,"updateLeftSquigglyStyle",null);_.c([_.nL("rightSquiggly"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jt.prototype,"updateRightSquigglyStyle",null);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],jt.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],jt.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],jt.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],jt.prototype,"actionButtonOverride",void 0);jt=_.c([_.E({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],jt);
_.R(jt,"ytd-handles-claiming-header-renderer",function(){if(E4G!==void 0)return E4G;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return E4G=q},{mode:1});var RdG;var lQ=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};q.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";q.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";q.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";q.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
q.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";q.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";q.image0SquigglyBackground=q.image0LightSquigglyBackground;q.image1SquigglyBackground=q.image1LightSquigglyBackground;q.image3SquigglyBackground=q.image3LightSquigglyBackground;return q};
_.O(lQ,_.Y);_.k=lQ.prototype;_.k.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.k.onDataChanged=function(){this.updateTitleAndImages()};
_.k.onThemeChanged=function(){this.updateTitleAndImages()};
_.k.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&(this.isDarkTheme=q)};
_.k.updateImage0SquigglyBackground=function(){_.Pj(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.k.updateImage1SquigglyBackground=function(){_.Pj(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.k.updateImage3SquigglyBackground=function(){_.Pj(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.k.updateTitleAndImages=function(){var q,w;((q=this.data)==null?void 0:(w=q.titleImages)==null?void 0:w.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))};
lQ.prototype.updateImage3SquigglyBackground=lQ.prototype.updateImage3SquigglyBackground;lQ.prototype.updateImage1SquigglyBackground=lQ.prototype.updateImage1SquigglyBackground;lQ.prototype.updateImage0SquigglyBackground=lQ.prototype.updateImage0SquigglyBackground;lQ.prototype.onThemeChanged=lQ.prototype.onThemeChanged;lQ.prototype.onDataChanged=lQ.prototype.onDataChanged;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],lQ.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],lQ.prototype,"isDarkTheme",void 0);_.c([_.v(),_.h("design:type",Object)],lQ.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],lQ.prototype,"title0",void 0);_.c([_.v(),_.h("design:type",Object)],lQ.prototype,"title1",void 0);_.c([_.v(),_.h("design:type",Object)],lQ.prototype,"title2",void 0);_.c([_.v(),_.h("design:type",Object)],lQ.prototype,"title3",void 0);
_.c([_.v(),_.h("design:type",Object)],lQ.prototype,"title4",void 0);_.c([_.v(),_.h("design:type",Object)],lQ.prototype,"image0",void 0);_.c([_.v(),_.h("design:type",Object)],lQ.prototype,"image1",void 0);_.c([_.v(),_.h("design:type",Object)],lQ.prototype,"image2",void 0);_.c([_.v(),_.h("design:type",Object)],lQ.prototype,"image3",void 0);_.c([_.v(),_.h("design:type",Object)],lQ.prototype,"image4",void 0);_.c([_.v(),_.h("design:type",String)],lQ.prototype,"image0SquigglyBackground",void 0);
_.c([_.v(),_.h("design:type",String)],lQ.prototype,"image1SquigglyBackground",void 0);_.c([_.v(),_.h("design:type",String)],lQ.prototype,"image3SquigglyBackground",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lQ.prototype,"onDataChanged",null);_.c([_.nL("isDarkTheme"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lQ.prototype,"onThemeChanged",null);
_.c([_.nL("image0SquigglyBackground"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lQ.prototype,"updateImage0SquigglyBackground",null);_.c([_.nL("image1SquigglyBackground"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lQ.prototype,"updateImage1SquigglyBackground",null);
_.c([_.nL("image3SquigglyBackground"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lQ.prototype,"updateImage3SquigglyBackground",null);lQ=_.c([_.E({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],lQ);
_.R(lQ,"ytd-handles-claiming-title-images-section-renderer",function(){if(RdG!==void 0)return RdG;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return RdG=q},{mode:1});var cST;var LS=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.O(LS,_.Y);LS.prototype.ready=function(){var q=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(q)};
LS.prototype.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&this.set("isDarkTheme",q)};
LS.prototype.onCopyButtonClick=function(){var q=this,w,u,y;return _.F(function(e){return(w=q.data)!=null&&w.primaryChannelUrl?_.H(e,navigator.clipboard.writeText(((u=q.data)==null?0:u.encodedChannelUrl)?q.data.encodedChannelUrl:"https://"+_.lA((y=q.data)==null?void 0:y.primaryChannelUrl)),0):e.jumpTo(0)})};
_.c([_.v(),_.h("design:type",Object)],LS.prototype,"data",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],LS.prototype,"ytComponentBehavior",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],LS.prototype,"isDarkTheme",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],LS.prototype,"ytActionHandlerBehavior",void 0);LS=_.c([_.E({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],LS);
_.R(LS,"ytd-handles-claiming-update-social-renderer",function(){if(cST!==void 0)return cST;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return cST=q},{mode:1});var SBT;var MS=function(){var q=_.Y.apply(this,arguments)||this;q.JSC$13790_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";q.JSC$13790_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};q.squigglyBackground=q.JSC$13790_squigglyBackgroundLight;return q};
_.O(MS,_.Y);MS.prototype.updateSquigglyBackgroundStyle=function(){_.Pj(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
MS.prototype.ready=function(){var q=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",q);this.squigglyBackground=q?this.JSC$13790_squigglyBackgroundDark:this.JSC$13790_squigglyBackgroundLight};
MS.prototype.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&(this.set("isDarkTheme",q),this.squigglyBackground=q?this.JSC$13790_squigglyBackgroundDark:this.JSC$13790_squigglyBackgroundLight)};
MS.prototype.updateSquigglyBackgroundStyle=MS.prototype.updateSquigglyBackgroundStyle;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],MS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],MS.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],MS.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],MS.prototype,"isDarkTheme",void 0);_.c([_.v(),_.h("design:type",String)],MS.prototype,"squigglyBackground",void 0);_.c([_.nL("squigglyBackground"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],MS.prototype,"updateSquigglyBackgroundStyle",null);MS=_.c([_.E({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],MS);
_.R(MS,"ytd-handles-claiming-vanity-info-renderer",function(){if(SBT!==void 0)return SBT;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return SBT=q},{mode:1});var hdZ;var KS=function(){var q=_.Y.apply(this,arguments)||this;q.JSC$13793_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";q.JSC$13793_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";q.squigglyBackground=q.JSC$13793_squigglyBackgroundLight;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.O(KS,_.Y);_.k=KS.prototype;_.k.ready=function(){var q=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(q)};
_.k.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&(this.set("isDarkTheme",q),this.squigglyBackground=q?this.JSC$13793_squigglyBackgroundDark:this.JSC$13793_squigglyBackgroundLight)};
_.k.updateSquigglyBackgroundStyle=function(){_.Pj(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.k.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.k.detached=function(){this.stop()};
_.k.stop=function(){this.playerElement.stop()};
_.k.setupVideoPlayer=function(){var q=this,w,u;return _.F(function(y){w=q.data.videoId;u="http://i1.ytimg.com/vi/"+w+"/maxresdefault.jpg";q.playerElement.loadVideoWithPlayerVars({video_id:w,iurlhq:u});_.HI(y)})};
KS.prototype.onDataChanged=KS.prototype.onDataChanged;KS.prototype.updateSquigglyBackgroundStyle=KS.prototype.updateSquigglyBackgroundStyle;_.c([_.v({value:!1}),_.h("design:type",Boolean)],KS.prototype,"isDarkTheme",void 0);_.c([_.v(),_.h("design:type",String)],KS.prototype,"squigglyBackground",void 0);_.c([_.Wj("#player"),_.h("design:type",Object)],KS.prototype,"playerElement",void 0);_.c([_.v(),_.h("design:type",Object)],KS.prototype,"data",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],KS.prototype,"ytActionHandlerBehavior",void 0);_.c([_.nL("squigglyBackground"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KS.prototype,"updateSquigglyBackgroundStyle",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KS.prototype,"onDataChanged",null);
KS=_.c([_.E({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],KS);
_.R(KS,"ytd-handles-claiming-video-item-renderer",function(){if(hdZ!==void 0)return hdZ;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return hdZ=q},{mode:1});var jbT;var xa=function(){var q=_.Na.apply(this,arguments)||this;q.dragging=!1;q.dragMouseStart=0;q.dragOffsetStart=0;q.containerWidthDiff=0;q.boundPrevClick=function(){q.set("offset",BH(q,q.offset-(q.scrollDistance||320)))};
q.boundNextClick=function(){q.set("offset",BH(q,q.offset+(q.scrollDistance||320)))};
q.boundScrollContainerMouseDown=function(w){q.dragMouseStart=w.clientX;q.dragOffsetStart=q.offset;q.dragging=!0};
q.boundScrollContainerDrag=function(w){q.dragging&&q.set("offset",BH(q,q.dragOffsetStart-(w.clientX-q.dragMouseStart)))};
q.boundMouseUp=function(){q.onMouseUp()};
q.boundWheelScroll=function(w){var u=0;Math.abs(w.deltaX)>=Math.abs(w.deltaY)?u=w.deltaX:w.shiftKey&&(u=w.deltaY);u!==0&&(q.offset+=u,w.stopPropagation(),w.preventDefault())};
q.boundChipCloudChipScrollIntoView=function(w){(w=w.detail)&&q.scrollChipIntoView(w)};
return q};
_.O(xa,_.Na);xa.prototype.attached=function(){var q=_.A(this.hostElement).querySelector("#scroll-container");q.addEventListener("wheel",this.boundWheelScroll);q.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);q.style.touchAction="pan-y";q.addEventListener("pointerdown",this.boundScrollContainerMouseDown);q.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
xa.prototype.detached=function(){var q=_.A(this.hostElement).querySelector("#scroll-container");q.removeEventListener("wheel",this.boundWheelScroll);q.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);q.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);q.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
xa.prototype.reset=function(){this.set("offset",0);_.KJ(this,this.setContainerWidthDiff);q8(this)};
var BH=function(q,w){return Math.min(Math.max(w,0),q.containerWidthDiff)};
xa.prototype.onMouseUp=function(){this.dragging=!1};
xa.prototype.transformContainer=function(){this.offset=BH(this,this.offset);var q=_.Et("HTML_DIR")==="rtl"?"":"-";_.A(this.hostElement).querySelector("#chips").style.transform="translateX("+q+this.offset+"px)";q8(this)};
var q8=function(q){_.KJ(q,q.setButtonsState)};
xa.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=BH(this,this.offset));this.atStart=this.offset<=0};
xa.prototype.setContainerWidthDiff=function(){var q=_.A(this.hostElement).querySelector("#scroll-container"),w=_.A(this.hostElement).querySelector("#chips");q&&w&&(this.containerWidthDiff=w.clientWidth-q.clientWidth)};
xa.prototype.scrollChipIntoView=function(q){var w=_.A(this.hostElement).querySelector("#scroll-container");if(w){var u=this.atStart?0:106,y=this.atEnd?0:106;q.offsetLeft<this.offset+u?this.offset=BH(this,q.offsetLeft-u):q.offsetLeft+q.clientWidth>this.offset+w.clientWidth-y&&(this.offset=BH(this,q.offsetLeft+q.clientWidth+y-w.clientWidth))}};
xa.prototype.transformContainer=xa.prototype.transformContainer;_.c([_.v({value:0}),_.h("design:type",Number)],xa.prototype,"offset",void 0);_.c([_.v({value:!0,reflectToAttribute:!0}),_.h("design:type",Boolean)],xa.prototype,"atStart",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],xa.prototype,"atEnd",void 0);_.c([_.v(),_.h("design:type",Number)],xa.prototype,"scrollDistance",void 0);
_.c([_.nL("offset"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xa.prototype,"transformContainer",null);xa=_.c([_.Q6()],xa);var ldG;var LdP;var BlZ=_.LL(function(q){var w=q.data;q=_.P(_.r4(!1,void 0,"icHmSe"));var u=q.next().value,y=q.next().value;q={};q=_.HR("ytChipShapeChip",function(){a:switch(w==null?void 0:w().state){case 0:var G="ytChipShapeActive";break a;case 1:G="ytChipShapeDisabled";break a;default:G="ytChipShapeInactive"}return G},function(){var G=w().type===1||w().type===2,n=w();
return G||n!=null&&n.startIcon?n==null||!n.startIcon||n!=null&&n.text?G?"ytChipShapeEndIconPadding":(n==null?0:n.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(q.ytChipShapeFocused=function(){var G;
return u()&&((G=w())==null?void 0:G.state)!==1},q));
var e=function(G){if((w==null?void 0:w().state)!==1){var n,N;(N=(n=w()).onTap)==null||N.call(n,G)}},t=_.QS(function(){var G=_.tG().resolve(_.kF(_.LK));
if(G){y(G.isKeyBoardInUse());var n,N;(N=(n=w()).onFocusIn)==null||N.call(n)}return!1}),X=_.QS(function(){y(!1);
return!1});
return _.W("chip-shape",{class:"ytChipShapeHost","on:focusin":t,"on:focusout":X},_.W(Mxj,{shouldWrapInButton:function(){return w().type!==2},
selected:function(){return w().state===0},
onClick:e,isDropdown:function(){return w().type===1},
accessibilityLabel:function(){return w().accessibilityLabel}},_.W("div",{class:q},_.W(_.r,{cond:function(){return w().startIcon},
then:function(){return _.W(_.U3,{icon:function(){var G;return(G=w())==null?void 0:G.startIcon},
className:function(){return w().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return w().text},_.W(KdT,{shape:w,
onClick:e}))))},"ub");
BlZ.idomCompat=!0;var Mxj=_.LL(function(q){var w=_.QS(function(u){q.onClick(u);return!1});
return _.W(_.r,{cond:q.shouldWrapInButton,then:function(){return _.W("button",{class:"ytChipShapeButtonReset","on:click":w,role:function(){return q.isDropdown()?"combobox":"tab"},
"aria-label":q.accessibilityLabel,"aria-selected":q.selected},q.children)},
else:function(){return q.children}})},"vb"),KdT=_.LL(function(q){var w=q.shape;
var u=q.onClick;var y=_.QS(function(e){u(e);return!1});
return _.W(_.zS,null,_.W(_.AP,{when:function(){return w().type===1}},function(){return _.W(_.U3,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.W(_.AP,{when:function(){return w().type===2}},function(){return _.W("button",{class:"ytChipShapeButtonReset",
"on:click":y},_.W(_.U3,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.W(_.AP,{when:function(){return w().type===0}},function(){return _.W(_.GS,null)}))},"wb");_.q9(BlZ,"chip-shape",{props:{data:_.pK}});var wp=function(){var q=_.Y.apply(this,arguments)||this;q.disableDeselectEvent=!1;q.modern=_.T("web_modern_typography");q.useChipShape=_.T("web_chip_shape_defrag");q.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return q};
_.O(wp,_.Y);_.k=wp.prototype;_.k.beforeRegister=function(){_.T("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.k.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.k.onSelectChipCommand=function(q){if(!this.selected&&this.data&&(q=_.C(q,AvF),q.targetId&&q.targetId===this.data.targetId))this.onTap()};
_.k.onFilterChipTransformCommand=function(q){if(!this.selected&&this.data){var w;(q=(w=_.C(q,az6))==null?void 0:w.chipUniqueId)&&q===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.k.dataChanged=function(){var q=this;_.KJ(this,function(){q.data&&q.data.isSelected&&!q.selected&&(q.scrollChipIntoView(),q.onTap())})};
_.k.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.k.computeChipStyle=function(q){return q!=null?q:"STYLE_DEFAULT"};
_.k.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.Pw(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.Pw(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.k.onFocus=function(){var q=_.tG().resolve(_.kF(_.LK));q&&q.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.k.scrollChipIntoView=function(){_.t7(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.x$.Object.defineProperties(wp.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return O57({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
wp.prototype.onFocus=wp.prototype.onFocus;wp.prototype.onTap=wp.prototype.onTap;wp.prototype.selectionChanged=wp.prototype.selectionChanged;wp.prototype.dataChanged=wp.prototype.dataChanged;_.c([_.D(_.Ul),_.h("design:type",Object)],wp.prototype,"ironButtonState",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],wp.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],wp.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],wp.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.IZ),_.h("design:type",Object)],wp.prototype,"ironA11yKeysBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],wp.prototype,"disableDeselectEvent",void 0);_.c([_.v(),_.h("design:type",Object)],wp.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("data.icon"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wp.prototype,"hasIcon",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("data.uniqueId"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wp.prototype,"isGnomeChip",null);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],wp.prototype,"modern",void 0);_.c([_.v({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.h("design:type",String)],wp.prototype,"chipStyle",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],wp.prototype,"selected",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],wp.prototype,"useChipShape",void 0);_.c([_.Z("data","selected"),_.h("design:type",Object),_.h("design:paramtypes",[])],wp.prototype,"chipShapeData",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wp.prototype,"dataChanged",null);_.c([_.nL("selected"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wp.prototype,"selectionChanged",null);
_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wp.prototype,"onTap",null);_.c([_.Gm("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wp.prototype,"onFocus",null);wp=_.c([_.JM({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],wp);
_.R(wp,"yt-chip-cloud-chip-renderer",function(){if(LdP===void 0){var q=document.createElement("template");_.f(q,'\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<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;ldG===void 0&&(ldG=document.createElement("template"));var y=ldG;u.call(w,y.content.cloneNode(!0),q.content.firstChild);LdP=q}q=LdP;return q},{mode:2});var uX=function(){var q=_.Y.apply(this,arguments)||this;q.isDarkTheme=!1;q.notSticky=!1;q.transparentBackground=!1;q.shouldHide=!1;q.disableSticky=!1;q.fluidWidth=!1;q.isClipList=!1;q.defaultChipIndex=0;q.isPlaylist=!1;q.playlistVotingAnimationEnabled=_.T("web_enable_voting_animation");q.toolbarHeight=0;q.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return q};
_.O(uX,_.Y);_.k=uX.prototype;
_.k.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}}}}}};
_.k.attached=function(){var q=this;document.addEventListener("scroll",_.Fj(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var w;this.toolbarHeight=((w=document.querySelector("ytd-masthead"))==null?void 0:w.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(u){q.handleIntersect(u)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){q.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.k.detached=function(){var q;(q=this.intersectionObserver)==null||q.disconnect();var w;(w=this.resizeObserver)==null||w.disconnect();document.removeEventListener("scroll",_.Fj(this,this.updateChipBarWidthAndTop))};
_.k.dataChanged=function(){var q=this,w,u,y;((y=_.C((w=this.data)==null?void 0:(u=w.contents)==null?void 0:u[0],uUT))==null?void 0:y.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var e=this.findSelectedChipIndex();this.selectedIndex!==e&&(this.selectedIndex=-1);_.KJ(this,function(){q.selectedIndex=e;q.updating=!1;q.ytScrollableChipCloudBehavior.reset()})};
_.k.findSelectedChipIndex=function(){var q;if((q=this.data)==null||!q.contents)return 0;q=this.data.contents;for(var w=0;w<q.length;w++){var u=void 0;if((u=_.C(q[w],uUT))==null?0:u.isSelected)return w}return 0};
_.k.computeStyle=function(q){return q};
_.k.handleChipCloudChipSelectAction=function(q){q=this.JSC$13812_chipsSelector.indexOf(q);q>-1&&this.JSC$13812_chipsSelector.selectIndex(q)};
_.k.handleChipCloudChipDeselectAction=function(){if(_.T("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var q,w,u,y=(u=_.C((q=this.data)==null?void 0:(w=q.contents)==null?void 0:w[0],uUT))==null?void 0:u.navigationEndpoint;y&&_.Pw(this.hostElement,"yt-browse-section-list-reload-endpoint",[y]);this.JSC$13812_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.k.onGuideIsExpandedChanged=function(){var q=this.ytScrollableChipCloudBehavior;_.KJ(q,q.setContainerWidthDiff);q8(this.ytScrollableChipCloudBehavior)};
_.k.onResize=function(){var q=this.ytScrollableChipCloudBehavior;_.KJ(q,q.setContainerWidthDiff);q8(this.ytScrollableChipCloudBehavior)};
_.k.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.k.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.k.handleIntersect=function(q){_.T("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||q[0].intersectionRatio===1)};
_.k.updateDimensions=function(){var q=this.ytRendererBehavior.parentComponent;if(q){var w,u=(w=q.headerElement)!=null?w:q;_.Pj(this.hostElement,{"--ytd-rich-grid-chips-bar-width":u.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.k.updateSelectedIndexFromBinding=function(q){this.selectedIndex=q.detail.value};
_.k.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var q;(q=this.sortFilterHeaderRendererElement)==null||q.setAttribute("is-playlist-page-with-filters","")}};
_.k.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.tr({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.x$.Object.defineProperties(uX.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 q,w,u=(q=this.data)==null?void 0:(w=q.contents)==null?void 0:w.find(function(y){return _.C(y,PGP)});
return{sortFilterHeaderRenderer:_.C(u,PGP)}}}});
uX.prototype.dispatchChipBarIsSticky=uX.prototype.dispatchChipBarIsSticky;uX.prototype.isPlaylistPageChanged=uX.prototype.isPlaylistPageChanged;uX.prototype.updateChipBarWidthAndTop=uX.prototype.updateChipBarWidthAndTop;uX.prototype.onResize=uX.prototype.onResize;uX.prototype.onGuideIsExpandedChanged=uX.prototype.onGuideIsExpandedChanged;uX.prototype.dataChanged=uX.prototype.dataChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],uX.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],uX.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],uX.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.mF),_.h("design:type",Object)],uX.prototype,"ironResizableBehavior",void 0);_.c([_.D(),_.h("design:type",xa)],uX.prototype,"ytScrollableChipCloudBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],uX.prototype,"ytdReduxBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],uX.prototype,"data",void 0);_.c([_.v({value:0}),_.h("design:type",Number)],uX.prototype,"selectedIndex",void 0);_.c([_.v({value:320}),_.h("design:type",Number)],uX.prototype,"scrollDistance",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],uX.prototype,"isDarkTheme",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],uX.prototype,"notSticky",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],uX.prototype,"transparentBackground",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.h("design:type",String)],uX.prototype,"componentStyle",void 0);_.c([_.v({selector:_.FZ6}),_.h("design:type",Boolean)],uX.prototype,"guideIsExpanded",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],uX.prototype,"shouldHide",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],uX.prototype,"disableSticky",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],uX.prototype,"fluidWidth",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],uX.prototype,"isClipList",void 0);_.c([_.v(),_.h("design:type",Object)],uX.prototype,"defaultChipIndex",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],uX.prototype,"isPlaylist",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],uX.prototype,"playlistVotingAnimationEnabled",void 0);_.c([_.Wj("#chips"),_.h("design:type",Object)],uX.prototype,"JSC$13812_chipsSelector",void 0);_.c([_.Wj("ytd-sort-filter-header-renderer"),_.h("design:type",HTMLElement)],uX.prototype,"sortFilterHeaderRendererElement",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],uX.prototype,"updating",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uX.prototype,"dataChanged",null);_.c([_.nL("guideIsExpanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uX.prototype,"onGuideIsExpandedChanged",null);_.c([_.Gm("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uX.prototype,"onResize",null);
_.c([_.I9("isChannelPageGrid","disableSticky","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uX.prototype,"updateChipBarWidthAndTop",null);_.c([_.Z("componentStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uX.prototype,"isChannelPageGrid",null);_.c([_.Z("componentStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uX.prototype,"isHashtagLandingPage",null);
_.c([_.nL("isPlaylistPage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uX.prototype,"isPlaylistPageChanged",null);_.c([_.Z("componentStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uX.prototype,"isPlaylistPage",null);_.c([_.Z("componentStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uX.prototype,"isDisableDeselectEvent",null);
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],uX.prototype,"sortFilterHeaderRendererData",null);_.c([_.v({reflectToAttribute:!0,selector:_.QBj}),_.h("design:type",String)],uX.prototype,"frostedGlassMode",void 0);_.c([_.nL("notSticky"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uX.prototype,"dispatchChipBarIsSticky",null);uX=_.c([_.E({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],uX);
_.R(uX,"ytd-feed-filter-chip-bar-renderer",function(){if(jbT!==void 0)return jbT;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return jbT=q},{mode:1});var xmT;var qDj=_.LL(function(q){var w=q.data;var u=q.buttonIndex;var y=q.selectedIndex;var e=q.onSelect;var t=function(){return u()===y()},X=function(){var n,N;
return(N=(n=w().text)==null?void 0:n.content)!=null?N:""};
_.QS(function(){});
q=_.LVl();var G=_.QS(function(){e(w().onSubmitCommand);return!1});
return _.W("yt-toggleable-image-button-view-model",{class:function(){var n={};n=(n["toggleable-image-button-view-model-wiz"]=!0,n[""]=!0,n["toggleable-image-button-view-model-wiz__semi-transparent"]=y()!==-1&&!t(),n);return _.s3(n)},
tabindex:0,"aria-label":X,"aria-pressed":t,role:"button","on:keydown":q,"on:click":G},_.W(_.r,{cond:function(){return w().logo},
then:function(n){return _.W(_.ln,{data:n,className:function(){var N={};N=(N["toggleable-image-button-view-model-wiz__image"]=!0,N["toggleable-image-button-view-model-wiz__circular-radius"]=!(!w().backgroundColor||!w().backgroundColorDarkMode),N["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(t()&&w().backgroundColor&&w().backgroundColorDarkMode),N);return _.s3(N)},
alt:X,useWidth:!1,style:function(){if(t()&&w().backgroundColor&&w().backgroundColorDarkMode){var N=zt(Number(w().backgroundColorDarkMode),"1");var Q=zt(Number(w().backgroundColor),"1");N="background: linear-gradient(180deg,"+N+","+Q+") border-box;"}else N="";return N}})}}),_.W(_.dm,{model:{borderRadius:"16px"}}),_.W("p",{class:function(){var n={};
n=(n["toggleable-image-button-view-model-wiz__label"]=!0,n["toggleable-image-button-view-model-wiz__bold-text"]=t(),n);return _.s3(n)}},_.W(_.Lr,{text:function(){return w().text}})))},"xb");
qDj.idomCompat=!0;var uLT=_.LL(function(q){var w=q.data;q=_.P(_.r4({index:-1,command:{}},void 0,"Zcqtsb"));var u=q.next().value,y=q.next().value;return _.W("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.W("div",{class:"nudge-form-view-model-wiz__form-options"},_.W(_.OF,{data:function(){return w().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(e,t){return _.W(qDj,{data:e.data,buttonIndex:t,selectedIndex:function(){return u().index},
onSelect:function(X){y({index:t(),command:X})}})}})),_.W(_.Lr,{text:function(){return w().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.W("div",{class:"nudge-form-view-model-wiz__submit"},_.W(_.OF,{data:function(){return w().submitButton}},{buttonViewModel:function(e){return _.W(wZ6,{data:e.data,
isDisabled:function(){return u().index===-1},
onClick:function(){_.bn(u().command)}})}})))},"yb");
uLT.idomCompat=!0;var wZ6=_.LL(function(q){var w=_.oR(function(){return Object.assign({},q.data(),{state:q.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.W(_.Zs,{data:w,onClick:q.onClick})},"zb");_.q9(uLT,"yt-nudge-form-view-model",{props:{data:_.pK}});var yg=function(){var q=_.Y.apply(this,arguments)||this;q.roundedContainer=!0;q.buttonUpdate=_.T("web_modern_buttons");q.isDarkMode=!1;q.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return q};
_.O(yg,_.Y);_.k=yg.prototype;_.k.computeNudgeStyle=function(q){return q?"modernized-nudge":""};
_.k.handleDarkModeToggledAction=function(q){this.isDarkMode=q};
_.k.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.k.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"}}}};
_.k.computeIsHorizontalButtons=function(q){return q?!!q.applyModernizedStyle&&!!q.enableHorizontalButtons&&!!q.secondaryButton:!1};
_.x$.Object.defineProperties(yg.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var q,w;return(w=(q=this.data)==null?void 0:q.backgroundStyle)!=null?w:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var q,w;return(w=(q=this.data)==null?void 0:q.contentsLocation)!=null?w:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null?0:q.lightIconImage)}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],yg.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],yg.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],yg.prototype,"actionHandlerBehavior",void 0);
_.c([_.v({reflectToAttribute:!0}),_.Z("isHideEnclosingAction"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],yg.prototype,"isHidden",null);_.c([_.v(),_.h("design:type",Object)],yg.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],yg.prototype,"roundedContainer",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],yg.prototype,"buttonUpdate",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.h("design:type",String)],yg.prototype,"nudgeStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("data.trimStyle"),_.h("design:type",String),_.h("design:paramtypes",[])],yg.prototype,"trimStyle",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data.backgroundStyle"),_.h("design:type",String),_.h("design:paramtypes",[])],yg.prototype,"backgroundStyle",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("data.contentsLocation"),_.h("design:type",String),_.h("design:paramtypes",[])],yg.prototype,"contentsLocation",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data.disableDropShadow"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],yg.prototype,"noShadow",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data.lightIconImage"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],yg.prototype,"noIcon",null);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.h("design:type",Boolean)],yg.prototype,"isHorizontalButtons",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Object)],yg.prototype,"isDarkMode",void 0);yg=_.c([_.E({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],yg);
_.R(yg,"ytd-feed-nudge-renderer",function(){if(xmT!==void 0)return xmT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return xmT=q},{mode:_.kB("kevlar_poly_si_batch_j028")?1:2});var yCa;var eTa;var e1=function(){var q=_.Y.apply(this,arguments)||this;q.collapsed=!1;q.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return q};
_.O(e1,_.Y);e1.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"}}}};
e1.prototype.handleRatingSelect=function(){var q;((q=this.data)==null?0:q.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
e1.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],e1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],e1.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],e1.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.Ao),_.h("design:type",Object)],e1.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],e1.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],e1.prototype,"collapsed",void 0);e1=_.c([_.E({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],e1);
_.R(e1,"ytd-slimline-survey-renderer",function(){if(eTa!==void 0)return eTa;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return eTa=q},{mode:1});var kOT;var k0=function(){return _.Y.apply(this,arguments)||this};
_.O(k0,_.Y);k0.prototype.maybeGetBackgroundColor=function(q){return this.isDarkMode?q.section2Color:q.section3Color};
k0.prototype.colorPaletteChanged=function(){var q=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;q&&(q==null?0:q.secondaryTitleColor)&&this.maybeGetBackgroundColor(q)?(this.hostElement.style.backgroundColor=_.Ae(this.maybeGetBackgroundColor(q)),this.hostElement.style.color=_.Ae(q.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
k0.prototype.colorPaletteChanged=k0.prototype.colorPaletteChanged;_.c([_.D(_.fU),_.h("design:type",Object)],k0.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],k0.prototype,"data",void 0);_.c([_.v({selector:function(q){return q.ui.darkModeIsEnabled}}),
_.h("design:type",Boolean)],k0.prototype,"isDarkMode",void 0);_.c([_.v(),_.h("design:type",Object)],k0.prototype,"lightColorPalette",void 0);_.c([_.v(),_.h("design:type",Object)],k0.prototype,"darkColorPalette",void 0);_.c([_.nL("darkColorPalette","lightColorPalette","data","isDarkMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],k0.prototype,"colorPaletteChanged",null);k0=_.c([_.E({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],k0);
_.R(k0,"ytd-endorsement-header-renderer",function(){if(kOT!==void 0)return kOT;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return kOT=q},{mode:1});_.q9(_.UJ,"yt-decorated-avatar-view-model",{props:{data:_.pK,className:_.pK}});var t0=function(){var q=_.Y.apply(this,arguments)||this;q.fullHeight=_.T("web_rich_grid_media_full_height");q.showChannelAvatar=!0;q.hasPlaylistThumbnail=!1;q.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};q.prepareThumbnailForPageTransition=function(){_.T("web_thumbnail_to_watch_transition")&&(q.thumbnail.style.viewTransitionName="thumbnail-to-watch",q.cleanupThumbnailAfterPageTransition(q.thumbnail))};
return q};
_.O(t0,_.Y);_.k=t0.prototype;
_.k.configureRendererStamper=function(){return{lazyLoadMenu:ti,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"}}}};
_.k.attached=function(){this.updateInlinePreviewHoverListeners()};
_.k.detached=function(){this.clearInlinePreviewHoverListeners()};
_.k.shouldLazyLoadMenu=function(){var q=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.T("kevlar_modern_downloads_page")||!q};
_.k.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13838_inlinePreviewHoverListener=cC({mediaRenderer:this,lockupElement:this.JSC$13838_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.k.getVideoPreviewOpts=function(){var q={},w;if((w=this.data)==null?0:w.multipleInlinePlaybackEndpoint)q=qHZ;this.isRadio&&(q=xhG);return _.T("web_thumbnail_to_watch_transition")?Object.assign({},q,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):q};
_.k.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$13838_inlinePreviewHoverListener)==null||yb(q)};
_.k.getOwner=function(){var q,w,u;return((q=this.data)==null?void 0:(w=q.channelThumbnailSupportedRenderers)==null?void 0:w.channelThumbnailWithLinkRenderer)||_.C((u=this.data)==null?void 0:u.showProviderChannelThumbnail,cIF)};
_.k.updateLockupSize=function(){var q;((q=this.getOwner())==null?0:q.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.k.getFeedbackEndpoint=function(q){if(_.C(q,_.JI))return q;var w,u;q=(u=(w=_.C(q,_.Ww))==null?void 0:w.commands)!=null?u:[];w=_.P(q);for(u=w.next();!u.done;u=w.next())if(u=this.getFeedbackEndpoint(u.value))return u;return null};
_.k.computeNavigationEndpoint=function(q){return YGJ(q==null?void 0:q.navigationEndpoint)};
_.k.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var q=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(q)!==JSON.stringify(this.data)&&this.set("data",q)}};
_.k.onDataChanged=function(){var q=this,w=this.getOwner();if(w){this.set("data.owner",w);var u,y,e,t,X,G=((u=this.data)==null?void 0:(y=u.shortBylineText)==null?void 0:(e=y.runs)==null?void 0:(t=e[0])==null?void 0:t.text)||((X=w.name)==null?void 0:X.simpleText);this.set("data.owner.title",G)}var n,N,Q,I,U,d;w=((n=this.data)==null?void 0:(N=n.thumbnailRenderer)==null?void 0:N.playlistVideoThumbnailRenderer)||((Q=this.data)==null?void 0:(I=Q.thumbnailRenderer)==null?void 0:I.playlistCustomThumbnailRenderer)||
((U=this.data)==null?void 0:(d=U.thumbnailRenderer)==null?void 0:d.showCustomThumbnailRenderer);var V;((V=this.data)==null?0:V.thumbnail)||!w||this.set("data.thumbnail",w.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){q.updateLockupSize()});
var J;if(n=((J=this.data)==null?void 0:J.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(n);var a;((a=this.dismissActionToReplayEntity)==null?0:a.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.k.onHiddenChanged=function(){this.updateLockupSize()};
_.k.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.Pw(this.hostElement,"yt-terminate-video-preview-action");else{var q;(q=this.videoTitleLink)==null||q.focus()}};
_.k.metadataColorChanged=function(){var q;if(this.metadataColor&&((q=this.videoTitle)==null?0:q.style))this.videoTitle.style.color=_.Ae(this.metadataColor);else{var w,u;!this.metadataColor&&((w=this.videoTitle)==null?0:(u=w.style)==null?0:u.color)&&(this.videoTitle.style.color="")}};
_.k.onDetailsClick=function(q){var w=this.computedNavigationEndpoint;w&&(_.LT(_.SQ(q),this.hostElement,["A","BUTTON"])||_.t7(this.hostElement,"yt-navigate",{endpoint:w}))};
_.k.cleanupThumbnailAfterPageTransition=function(q){_.YPf(document,"yt-page-type-changed",function(){q.style.viewTransitionName=""})};
_.k.onRendererTap=function(){this.prepareThumbnailForPageTransition();var q,w,u=((q=this.data)==null?void 0:q.serviceEndpoint)||this.getFeedbackEndpoint((w=this.data)==null?void 0:w.navigationEndpoint);u&&_.C(u,_.JI)&&this.ytComponentBehavior.resolveCommand(u)};
_.k.onMouseDown=function(q){var w=q.target,u=this.computedNavigationEndpoint,y;q=w.href||((y=_.C(u==null?void 0:u.commandMetadata,_.wk))==null?void 0:y.url);y=w.data||u;q&&y&&Zt4(q,y)};
_.k.computeVideoTitleText=function(){var q;if((q=this.data)==null?0:q.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.k.computeHasPlaylistThumbnail=function(q){var w,u,y,e,t;if((((w=q.thumbnailRenderer)==null?0:w.playlistVideoThumbnailRenderer)||((u=q.thumbnailRenderer)==null?0:u.playlistCustomThumbnailRenderer)||((y=q.thumbnailRenderer)==null?0:y.showCustomThumbnailRenderer)||((e=q.thumbnailRenderer)==null?0:e.playlistVideoThumbnailRenderer)||((t=q.thumbnailRenderer)==null?0:t.playlistCustomThumbnailRenderer))&&q.thumbnailOverlays)for(w=0;w<q.thumbnailOverlays.length;w++)if(u=void 0,(u=q.thumbnailOverlays[w])==
null?0:u.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.x$.Object.defineProperties(t0.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.T("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var q;return(q=this.data)==null?void 0:q.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var q;return(q=this.data)==null?void 0:q.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$13838_inlinePreviewHoverListener)==null?0:OJ(q))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.N_(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.data)==null?void 0:q.videoId)||((w=this.data)==null?void 0:w.playlistId)||""}}});
t0.prototype.onMouseDown=t0.prototype.onMouseDown;t0.prototype.metadataColorChanged=t0.prototype.metadataColorChanged;t0.prototype.onIsDismissedChanged=t0.prototype.onIsDismissedChanged;t0.prototype.onHiddenChanged=t0.prototype.onHiddenChanged;t0.prototype.onDataChanged=t0.prototype.onDataChanged;t0.prototype.handleReloadDownloadsInfo=t0.prototype.handleReloadDownloadsInfo;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],t0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],t0.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],t0.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.D(_.$p),_.h("design:type",Object)],t0.prototype,"ytdLockupBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],t0.prototype,"ytdReduxBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],t0.prototype,"data",void 0);_.c([_.v(),_.h("design:type",String)],t0.prototype,"entitySelectorType",void 0);_.c([_.v(),_.h("design:type",Boolean)],t0.prototype,"noEndpoints",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],t0.prototype,"isRadio",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.za}),_.h("design:type",Boolean)],t0.prototype,"miniMode",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],t0.prototype,"fullHeight",void 0);
_.c([_.v(),_.h("design:type",Boolean)],t0.prototype,"showDarkVideoMetadata",void 0);_.c([_.v(),_.h("design:type",Boolean)],t0.prototype,"showLightVideoMetadata",void 0);_.c([_.v(),_.h("design:type",Number)],t0.prototype,"metadataColor",void 0);_.c([_.v(),_.h("design:type",Object)],t0.prototype,"showChannelAvatar",void 0);_.c([_.v(),_.h("design:type",Boolean)],t0.prototype,"hidden",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],t0.prototype,"showYtInteraction",void 0);
_.c([_.v(),_.h("design:type",String)],t0.prototype,"dismissedContentId",void 0);_.c([_.v({selectorArgs:["dismissedContentId"],selector:TXf}),_.h("design:type",Object)],t0.prototype,"dismissActionToReplayEntity",void 0);
_.c([_.v({selectorArgs:["entitySelectorType","mediaId"],selector:function(q,w,u){if(_.T("kevlar_modern_downloads_page")&&u&&w&&w!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(w){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var y=UYl(q,u);if(y){w=_.pa(q,u);var e=vQ(q,u),t=zIM(q,u);q=bA(q,u);var X=Xhu(y,w,e,t);e=X.shortViewCountText;var G=X.publishedTimeText;X=X.badges;var n=q>0;t=t$y(y,w,t,q);y=_.Ta(w)||w==="TRANSFER_STATE_FAILED"||w==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!U1(y.policyEntity)?
void 0:v2o(u,q,y.videoEntity.lengthSeconds);w==="TRANSFER_STATE_PAUSED_BY_USER"&&u&&!_.T("dl_resume_click_killswitch")&&(y={offlineVideoEndpoint:{videoId:u,action:"ACTION_RESUME"}});u={shortViewCountText:e,publishedTimeText:G,badges:X,isWatched:n,navigationEndpoint:y,thumbnailOverlays:t}}else u=void 0;return u;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(w=Tfo(q,u))if(y=_.$N(q,u),t=_.Ckc(q,u),y!=="TRANSFER_STATE_UNKNOWN"){u=Psf(w,y,t,u,Nfz(q));break a}u=void 0}return u;default:_.Y8(new _.fv("Error: entitySelectorType defined but not matched in selector.",
q,w))}}}),
_.h("design:type",Object)],t0.prototype,"entityDrivenState",void 0);_.c([_.v({computed:"computeVideoTitleText(data)"}),_.h("design:type",Object)],t0.prototype,"videoTitleText",void 0);_.c([_.v({computed:"computeHasPlaylistThumbnail(data)"}),_.h("design:type",Object)],t0.prototype,"hasPlaylistThumbnail",void 0);_.c([_.v({computed:"computeNavigationEndpoint(data)"}),_.h("design:type",Object)],t0.prototype,"computedNavigationEndpoint",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],t0.prototype,"typographyBump",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("typographyBump"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],t0.prototype,"typographyBumpV2",null);_.c([_.Wj("#video-title"),_.h("design:type",HTMLElement)],t0.prototype,"videoTitle",void 0);_.c([_.Wj("#video-title-link"),_.h("design:type",HTMLElement)],t0.prototype,"videoTitleLink",void 0);
_.c([_.Wj("#thumbnail"),_.h("design:type",HTMLElement)],t0.prototype,"thumbnail",void 0);_.c([_.Wj("#dismissible"),_.h("design:type",HTMLElement)],t0.prototype,"JSC$13838_dismissibleMedia",void 0);_.c([_.Z("data.menu"),_.h("design:type",Object),_.h("design:paramtypes",[])],t0.prototype,"lazyLoadMenu",null);_.c([_.Z("data.menu"),_.h("design:type",Object),_.h("design:paramtypes",[])],t0.prototype,"immediateLoadMenu",null);
_.c([_.I9("entityDrivenState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],t0.prototype,"handleReloadDownloadsInfo",null);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],t0.prototype,"onDataChanged",null);_.c([_.I9("hidden"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],t0.prototype,"onHiddenChanged",null);
_.c([_.nL("isDismissed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],t0.prototype,"onIsDismissedChanged",null);_.c([_.nL("metadataColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],t0.prototype,"metadataColorChanged",null);_.c([_.Gm("mousedown"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],t0.prototype,"onMouseDown",null);
_.c([_.Z("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],t0.prototype,"isHovered",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],t0.prototype,"useAvatar",null);_.c([_.Z("data","entitySelectorType"),_.h("design:type",String),_.h("design:paramtypes",[])],t0.prototype,"mediaId",null);t0=_.c([_.E({is:"ytd-rich-grid-media",disableElementRegistration:!0})],t0);
var tyT=_.eD()(t0,"ytd-rich-grid-media",function(){if(yCa!==void 0)return yCa;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return yCa=q},{mode:_.kB("kevlar_poly_si_batch_j072")?1:2});var PFa;var Pb=function(){var q=_.Y.apply(this,arguments)||this;q.removeMaxWidth=!0;q.insetMetadata=!1;return q};
_.O(Pb,_.Y);_.k=Pb.prototype;_.k.configureRendererStamper=function(){return{innerMenu:ti,outerMenu:Object.assign({},ti,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.k.onDataChanged=function(){var q,w=((q=this.data)==null?void 0:q.trackingParams)||"";w&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(w));var u;((u=this.dismissActionToReplayEntity)==null?0:u.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.k.attached=function(){this.updateInlinePreviewHoverListeners()};
_.k.detached=function(){this.clearInlinePreviewHoverListeners()};
_.k.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13843_inlinePreviewHoverListener=cC({mediaRenderer:this,lockupElement:this.JSC$13843_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:yNH})};
_.k.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$13843_inlinePreviewHoverListener)==null||yb(q)};
_.k.onRendererTap=function(){var q,w,u=(q=this.data)==null?void 0:(w=q.serviceEndpoints)==null?void 0:w[0];_.C(u,_.JI)&&this.componentBehavior.resolveCommand(u)};
_.k.onDetailsClick=function(q){var w,u=(w=this.data)==null?void 0:w.navigationEndpoint;u&&(_.LT(_.SQ(q),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(u))};
_.k.onShow=function(){var q=this.data;q.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(q.onFirstVisibleCommand),delete q.onFirstVisibleCommand)};
_.x$.Object.defineProperties(Pb.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var q;return this.insetMetadata?void 0:(q=this.data)==null?void 0:q.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var q;return this.insetMetadata?(q=this.data)==null?void 0:q.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var q=this.data;if(q!=null&&q.badge&&(q=_.C(q.badge,SGZ))){var w,u,y;return[{metadataBadgeRenderer:{label:((w=q.label)==null?void 0:(u=w.runs)==null?void 0:u[0].text)||((y=q.label)==null?void 0:y.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var q=this.data;return Object.assign({},q.headline,{accessibility:q.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return this.isSlimShort?(q=this.computedTitle)==null?void 0:(w=q.accessibility)==null?void 0:(u=w.accessibilityData)==null?void 0:u.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$13843_inlinePreviewHoverListener)==null?0:OJ(q))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Pb.prototype.onDataChanged=Pb.prototype.onDataChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Pb.prototype,"componentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Pb.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.$p),_.h("design:type",Object)],Pb.prototype,"ytdLockupBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Pb.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.Ao),_.h("design:type",Object)],Pb.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],Pb.prototype,"ytdReduxBehavior",void 0);_.c([_.Wj("ytd-thumbnail"),_.h("design:type",HTMLElement)],Pb.prototype,"thumbnail",void 0);_.c([_.Wj("#dismissible"),_.h("design:type",HTMLElement)],Pb.prototype,"JSC$13843_dismissibleMedia",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Pb.prototype,"removeMaxWidth",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Pb.prototype,"insetMetadata",void 0);_.c([_.v(),_.h("design:type",String)],Pb.prototype,"dismissedContentId",void 0);_.c([_.v({selectorArgs:["dismissedContentId"],selector:TXf}),_.h("design:type",Object)],Pb.prototype,"dismissActionToReplayEntity",void 0);_.c([_.Z("insetMetadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],Pb.prototype,"thumbnailObjectFit",null);
_.c([_.Z("data","insetMetadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],Pb.prototype,"innerMenu",null);_.c([_.Z("data","insetMetadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],Pb.prototype,"outerMenu",null);_.c([_.v(),_.h("design:type",Object)],Pb.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.za}),_.h("design:type",Boolean)],Pb.prototype,"miniMode",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Pb.prototype,"onDataChanged",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Pb.prototype,"shortsBadges",null);_.c([_.Z("data"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Pb.prototype,"isShort",null);
_.c([_.Z("data"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Pb.prototype,"isSlimShort",null);_.c([_.Z("data","isShort"),_.h("design:type",Object),_.h("design:paramtypes",[])],Pb.prototype,"computedTitle",null);_.c([_.Z("isSlimShort","computedTitle"),_.h("design:type",Object),_.h("design:paramtypes",[])],Pb.prototype,"computedAccessibilityLabel",null);
_.c([_.Z("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Pb.prototype,"isHovered",null);Pb=_.c([_.E({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],Pb);
_.R(Pb,"ytd-rich-grid-slim-media",function(){if(PFa!==void 0)return PFa;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return PFa=q},{mode:_.kB("kevlar_poly_si_batch_j063")?1:2});var XZP;var Fya;var XI=function(){var q=_.Y.apply(this,arguments)||this;q.darkerDarkTheme=_.T("web_darker_dark_theme");return q};
_.O(XI,_.Y);XI.prototype.computeIcon=function(q){return q&&q.iconType?"yt-sys-icons:"+q.iconType.toLowerCase():""};
XI.prototype.onMouseEnter=function(){this.isHovered=!0};
XI.prototype.onMouseLeave=function(){this.isHovered=!1};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],XI.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],XI.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],XI.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],XI.prototype,"data",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],XI.prototype,"isHovered",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],XI.prototype,"darkerDarkTheme",void 0);XI=_.c([_.E({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],XI);
_.R(XI,"ytd-expand-on-hover-card-renderer",function(){if(Fya!==void 0)return Fya;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Fya=q},{mode:1});var GOG,n_F=function(){if(GOG!==void 0)return GOG;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return GOG=q};_.JE("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var FI=function(){var q=_.Y.apply(this,arguments)||this;q.compactStyle=!1;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.O(FI,_.Y);_.k=FI.prototype;_.k.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.k.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"}}}};
_.k.computeHideDot=function(q){return!(q&&q.subscriberCountText&&q.videoCountText)||this.compactStyle};
_.k.hasDualButtons=function(q){return q&&q.purchaseButton&&q.subscribeButton};
_.k.backgroundColorChanged=function(){if(this.data!==void 0){var q=this.data.backgroundColor;this.isDarkTheme&&(q=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=q!=null?_.Ae(q):"transparent"}};
_.k.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.k.onTap=function(q){var w,u,y=((w=this.data)==null?void 0:w.navigationEndpoint)||((u=this.data)==null?void 0:u.serviceEndpoint);_.C(y,_.ur)&&(y&&_.tG().resolve(_.PG).resolveCommand(y,{form:{element:this.hostElement}}),q.preventDefault())};
_.k.computeChannelEndpoint=function(q){return _.C(q,_.ur)?null:q};
_.k.computeHrefEndpoint=function(q){return _.C(q,_.ur)?null:this.componentBehavior.computeHref_(q)};
_.k.computeChannelRendererStyle=function(q){return q};
_.k.computeIconSize=function(q){return q?108:136};
_.x$.Object.defineProperties(FI,{template:{configurable:!0,enumerable:!0,get:function(){return n_F()}}});
FI.prototype.backgroundColorChanged=FI.prototype.backgroundColorChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],FI.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],FI.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.YE),_.h("design:type",Object)],FI.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],FI.prototype,"componentBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],FI.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],FI.prototype,"isDarkTheme",void 0);_.c([_.v({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.h("design:type",String)],FI.prototype,"channelRendererStyle",void 0);_.c([_.v({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],FI.prototype,"dualButtons",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],FI.prototype,"useBiggerThumbs",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.GQ("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],FI.prototype,"biggerThumbStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],FI.prototype,"compactStyle",void 0);_.c([_.nL("data","isDarkTheme"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],FI.prototype,"backgroundColorChanged",null);FI=_.c([_.E({is:"ytd-channel-renderer",disableElementRegistration:!0})],FI);_.R(FI,"ytd-channel-renderer",function(){return n_F()},{mode:1});var HBX;var WyF;_.JE("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var GN=function(){var q=_.Y.apply(this,arguments)||this;q.displayItemCount=2;q.collections=_.T("web_modern_collections_v2");q.hasPlaylistThumbnail=!1;q.stackThumbnailSize="large";return q};
_.O(GN,_.Y);_.k=GN.prototype;_.k.attached=function(){this.updateInlinePreviewHoverListeners()};
_.k.detached=function(){this.clearInlinePreviewHoverListeners()};
_.k.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.k.computeFirstVideos=function(q,w){return q&&w?q.slice(0,w):[]};
_.k.computeThumbnailWidth=function(q,w){return q?w==="BIG"?500:w==="MASSIVE"?600:w==="MEDIUM"?450:420:360};
_.k.computeThumbnailHeight=function(q,w){return q?w==="BIG"?280:w==="MASSIVE"?337:234:202};
_.k.clearInlinePreviewHoverListeners=function(){var q;(q=this.JSC$13856_inlinePreviewHoverListener)==null||yb(q)};
_.k.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13856_inlinePreviewHoverListener=cC({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:qHZ,thumbnailElement:this.thumbnail})};
_.k.computeHasPlaylistThumbnail=function(q){var w,u;if((((w=q.thumbnailRenderer)==null?0:w.playlistVideoThumbnailRenderer)||((u=q.thumbnailRenderer)==null?0:u.playlistCustomThumbnailRenderer))&&q.thumbnailOverlays)for(w=0;w<q.thumbnailOverlays.length;w++)if(u=void 0,(u=q.thumbnailOverlays[w])==null?0:u.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.x$.Object.defineProperties(GN.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.JSC$13856_inlinePreviewHoverListener)==null?0:OJ(q))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
GN.prototype.dataChanged=GN.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],GN.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.$p),_.h("design:type",Object)],GN.prototype,"ytdLockupBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],GN.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],GN.prototype,"displayItemCount",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],GN.prototype,"useBiggerThumbs",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.GQ("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],GN.prototype,"biggerThumbsStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],GN.prototype,"collections",void 0);_.c([_.v({computed:"computeHasPlaylistThumbnail(data)"}),_.h("design:type",Object)],GN.prototype,"hasPlaylistThumbnail",void 0);_.c([_.v(),_.h("design:type",String)],GN.prototype,"stackThumbnailSize",void 0);_.c([_.Wj("ytd-thumbnail"),_.h("design:type",HTMLElement)],GN.prototype,"thumbnail",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GN.prototype,"dataChanged",null);_.c([_.Z("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],GN.prototype,"isHovered",null);GN=_.c([_.E({is:"ytd-radio-renderer",disableElementRegistration:!0})],GN);
_.R(GN,"ytd-radio-renderer",function(){if(WyF!==void 0)return WyF;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return WyF=q},{mode:_.kB("kevlar_poly_si_batch_j058")?1:2});var sI3;_.JE("itemSectionRenderer","showRenderer","ytd-show-renderer");var nX=function(){return _.Y.apply(this,arguments)||this};
_.O(nX,_.Y);nX.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
nX.prototype.computeThumbnailWidth=function(q){return q?360:246};
nX.prototype.computeUseProminentThumbs=function(q){return q};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],nX.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],nX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],nX.prototype,"data",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],nX.prototype,"isSearch",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.h("design:type",Boolean)],nX.prototype,"useProminentThumbs",void 0);nX=_.c([_.E({is:"ytd-show-renderer",disableElementRegistration:!0})],nX);
_.R(nX,"ytd-show-renderer",function(){if(sI3!==void 0)return sI3;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return sI3=q},{mode:1});_.JE("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Hb=function(){var q=_.Y.apply(this,arguments)||this;q.isRichGrid=!1;return q};
_.O(Hb,_.Y);Hb.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"}}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Hb.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Hb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Hb.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Hb.prototype,"isRichGrid",void 0);Hb=_.c([_.E({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],Hb);
_.R(Hb,"ytd-feed-entry-renderer",function(){if(HBX!==void 0)return HBX;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return HBX=q},{mode:1});var NFr;var Wb=function(){return _.Y.apply(this,arguments)||this};
_.O(Wb,_.Y);Wb.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.c([_.D(_.fU),_.h("design:type",Object)],Wb.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Wb.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Wb.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Wb.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.aO,value:3}),_.h("design:type",Number)],Wb.prototype,"itemsPerRow",void 0);
Wb=_.c([_.E({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Wb);
_.R(Wb,"ytd-link-card-renderer",function(){if(NFr!==void 0)return NFr;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return NFr=q},{mode:1});var QIj;var sd=function(){return _.Y.apply(this,arguments)||this};
_.O(sd,_.Y);_.k=sd.prototype;_.k.configureRendererStamper=function(){return{"data.menu":ti,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.k.onRendererTap=function(q){if(!this.ytdDismissibleItemBehavior.isDismissed){var w,u=(w=this.data)==null?void 0:w.navigationEndpoint;u&&!_.LT(_.SQ(q),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(u)?_.LT(_.SQ(q),this.hostElement,["A"])||_.t7(this.hostElement,"yt-navigate",{endpoint:u}):this.ytComponentBehavior.resolveCommand(u,{}))}};
_.k.maybeComputeHref=function(q){return this.ytComponentBehavior.computeHref_(q,!0)};
_.k.getNavigationCommand=function(q){return this.isNavigationCommand(q)?q:null};
_.k.isNavigationCommand=function(q){return q?_.C(q,_.Ii)||_.C(q,_.LN)||_.C(q,_.jw)?!0:!1:!1};
sd.prototype.onRendererTap=sd.prototype.onRendererTap;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],sd.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],sd.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],sd.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],sd.prototype,"ytComponentBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],sd.prototype,"data",void 0);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],sd.prototype,"onRendererTap",null);sd=_.c([_.E({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],sd);
_.R(sd,"ytd-lumiere-promo-item-image-renderer",function(){if(QIj!==void 0)return QIj;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return QIj=q},{mode:1});var I5T;var N8=function(){return _.Y.apply(this,arguments)||this};
_.O(N8,_.Y);N8.prototype.computeLandscapeThumbnail=function(){var q;return((q=this.data)==null?void 0:q.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],N8.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],N8.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],N8.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.za}),_.h("design:type",Boolean)],N8.prototype,"miniMode",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.aO}),_.h("design:type",Number)],N8.prototype,"itemsPerRow",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.h("design:type",Boolean)],N8.prototype,"landscapeThumbnail",void 0);N8=_.c([_.E({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],N8);
_.R(N8,"ytd-lumiere-shelf-details-renderer",function(){if(I5T!==void 0)return I5T;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return I5T=q},{mode:_.kB("kevlar_poly_si_batch_j076")?1:2});var iBj;var Qg=function(){return _.Y.apply(this,arguments)||this};
_.O(Qg,_.Y);Qg.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Qg.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Qg.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Qg.prototype,"data",void 0);Qg=_.c([_.E({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],Qg);
_.R(Qg,"ytd-primetime-promo-details-renderer",function(){if(iBj!==void 0)return iBj;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return iBj=q},{mode:1});var rCj;var Ie=function(){return _.Y.apply(this,arguments)||this};
_.O(Ie,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ie.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ie.prototype,"data",void 0);Ie=_.c([_.E({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],Ie);
_.R(Ie,"ytd-panel-show-style-metadata-renderer",function(){if(rCj!==void 0)return rCj;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return rCj=q},{mode:1});var UXk;var iX=function(){return _.Y.apply(this,arguments)||this};
_.O(iX,_.Y);_.k=iX.prototype;_.k.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.k.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.k.computeThumbnail=function(q){if(q)return q.smallFormFactorBackgroundThumbnail||q.largeFormFactorBackgroundThumbnail};
_.k.maybeComputeHref=function(q){return this.ytComponentBehavior.computeHref_(q,!0)};
_.k.isNavigationCommand=function(q){return q?_.C(q,_.Ii)||_.C(q,_.LN)||_.C(q,_.jw)?!0:!1:!1};
_.k.getNavigationCommand=function(q){return this.isNavigationCommand(q)?q:null};
iX.prototype.onPanelTap=iX.prototype.onPanelTap;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],iX.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],iX.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],iX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],iX.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],iX.prototype,"roundedContainer",void 0);_.c([_.v({reflectToAttribute:!0,value:_.T("web_modern_buttons")}),_.h("design:type",Boolean)],iX.prototype,"modernButtons",void 0);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],iX.prototype,"onPanelTap",null);iX=_.c([_.E({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],iX);
_.R(iX,"ytd-primetime-promo-panel-renderer",function(){if(UXk!==void 0)return UXk;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return UXk=q},{mode:1});_.q9(_.LL(function(q){q=_.lf(q,{data:{},useFullWidth:!1});var w=q.data,u=q.useFullWidth,y=function(){return w().caption},e=function(){return w().image},t=function(){return _.Zh(w().onTap)};
q={};q=_.HR("ytTeaserCardViewModelHost",(q.ytTeaserCardViewModelUseFullWidth=function(){return u()},q));
return _.W("teaser-card-view-model",{class:q},_.W(_.r,{cond:function(){return t()},
then:function(){return _.W(g5a,{className:"ytTeaserCardViewModelLink",command:t,forceNewState:!0,useATagConfig:!0},_.W("div",{class:"ytTeaserCardViewModelImageContainer"},_.W(_.r,{cond:e,then:function(X){return _.W(_.ln,{data:X,className:"ytTeaserCardViewModelImage",alt:""})}})),_.W("p",{class:"ytTeaserCardViewModelCaption"},y))}}))},"Ab"),"teaser-card-view-model",{props:{data:_.pK,
useFullWidth:_.pK}});var TFx=new _.MH("RICH_GRID_VIDEO_RENDERER_TOKEN");_.q9(_.LL(function(q){var w=q.data;var u=q.showYtInteractionInContent;var y=function(){return!!w().selectableFeedback};
q=_.P(_.r4(!1,void 0,"nblDw"));var e=q.next().value,t=q.next().value;_.p4(function(){var U=_.C(w().primaryButton,_.Vo);(U==null?0:U.isToggled)&&t(U.isToggled)});
q=_.QS(function(U){if(!y())return!1;if(e()){var d;var V=(d=w().selectableFeedback)==null?void 0:d.onDeselect}else{var J;V=(J=w().selectableFeedback)==null?void 0:J.onSelect}V&&_.bn(V,{form:{element:U.target}});t(!e());if(U=_.C(w().primaryButton,_.Vo))U.isToggled=e();return!1});
var X=function(){if(!y()){var U,d=(U=w().loggingDirectives)==null?void 0:U.trackingParams;d&&_.Xf(_.tG().resolve(_.WY),d)}},G=_.MTc(),n=function(){var U;
return y()?(U=w().selectableFeedback)==null?void 0:U.a11yLabel:void 0},N=function(){return y()?{toggled:e()}:{}},Q=_.tG().resolve(_.kF(TFx)),I={};
return _.W("yt-feedback-item-renderer",{class:_.HR("ytFeedbackItemRendererHost",(I.ytFeedbackItemRendererSelectableFeedback=y,I)),"on:click":q,"on:keydown":G,title:n,"aria-label":n,"aria-pressed":function(){return y()?e():void 0},
tabindex:function(){return y()?0:void 0},
role:function(){return y()?"button":void 0}},_.W("div",{class:"ytFeedbackItemRendererContentContainer"},_.W(_.OF,{data:function(){return w().content}},{videoRenderer:function(U){return _.W(Q,{data:U.data,
showYtInteraction:u})},
lockupViewModel:function(U){return _.W(_.Mw,{data:U.data,containerType:2})}})),_.W("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.W(_.OF,{data:function(){return w().primaryButton}},{toggleButtonViewModel:function(U){return _.W(_.fr,{data:U.data,
buttonShapeOverrides:N,disableExplicitClickLogging:!0,onToggle:X})}})))},"Bb"),"yt-feedback-item-renderer",{props:{data:_.pK,
showYtInteractionInContent:_.pK}});var rp=function(){var q=_.Y.apply(this,arguments)||this;q.isShortsGrid=!1;q.isCompactGrid=!1;q.isShortsPanelGrid=!1;q.renderedFromRichGrid=!1;q.isInFirstColumn=!1;q.noGutterMargins=!1;q.isInlineGroupItem=!1;q.insetMetadata=!1;q.noBottomMarginInAds=_.T("web_no_bottom_margin_for_home_ad_buttons");q.force16By9ThumbnailAspectRatio=!1;q.useCompactList=!1;q.containerType=2;q.thumbnailTargetWidth=9999;q.isResponsiveGrid=!1;q.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};q.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};q.hoverListener=q.hover.bind(q);q.leaveListener=q.leave.bind(q);q.highlighted=!1;q.JSC$13891_unsubscribeFromInlinePreviewIsActive=function(){};
return q};
_.O(rp,_.Y);_.k=rp.prototype;_.k.computeContainerType=function(){return this.useCompactList?3:2};
_.k.computeThumbnailTargetWidth=function(){var q;return(q=this.itemWidth)!=null?q:9999};
_.k.updateIsInFirstColumn=function(){var q;this.isInFirstColumn=((q=this.data)==null?void 0:q.colIndex)===0};
_.k.observerContainerType=function(){if(this.lockup){var q=this.lockup;q.containerType=this.containerType;q.sizing=this.sizing;q.typographyBump=this.typographyBump;q.itemWidth=this.itemWidth}this.richGridMedia&&_.T("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.T("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.k.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]]"}}}}}};
_.k.leave=function(q){q=q.relatedTarget;var w=document.querySelector("ytd-video-preview");q&&w&&_.y6(w).contains(q)||this.removeAndCleanupHighlight()};
_.k.hover=function(){var q;if(!this.highlighted&&(!_.T("web_enable_rich_item_on_focus_effect")||(q=this.data)!=null&&q.onFocusEffect)){var w,u;((w=this.data)==null?void 0:(u=w.onFocusEffect)==null?void 0:u.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(q=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:q,boxShadow:"0 0 0 10px "+q}));var y,e;((y=this.data)==null?void 0:(e=y.onFocusEffect)==null?void 0:
e.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.k.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};
_.k.registerHoverHighlightListeners=function(){var q=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$13891_unsubscribeFromInlinePreviewIsActive=_.se(_.Mt(),_.HG7,function(w){q.highlighted&&!w&&q.removeAndCleanupHighlight()})};
_.k.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$13891_unsubscribeFromInlinePreviewIsActive()};
_.k.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.k.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.k.getBackgroundColor=function(){var q,w,u=(q=this.data)==null?void 0:(w=q.onFocusEffect)==null?void 0:w.onFocusColor;if(u){if(document.documentElement.hasAttribute("dark")&&(u==null?0:u.darkTheme))return _.Ae(u==null?void 0:u.darkTheme);if(u==null?0:u.lightTheme)return _.Ae(u==null?void 0:u.lightTheme)}};
_.k.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var q=_.pN(),w,u,y;q&&((w=this.data)==null?0:w.trackingParams)&&((u=this.data)==null?void 0:u.colIndex)!=null&&((y=this.data)==null?void 0:y.rowIndex)!=null&&_.Lq(q,_.Tj(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.k.isSlimMediaRenderer=function(q){return!!_.C(q==null?void 0:q.content,_.TaP)||!!_.C(q==null?void 0:q.content,UH3)||!!_.C(q==null?void 0:q.content,_.zo)||!!_.C(q==null?void 0:q.content,E2r)};
_.k.isPostRenderer=function(){var q,w;return!!_.C((q=this.data)==null?void 0:q.content,fz6)||!!_.C((w=this.data)==null?void 0:w.content,mLT)};
_.k.computeIsGameCardShelf=function(){var q;return!!_.C((q=this.data)==null?void 0:q.content,mBG)};
_.k.computeIsMiniGameCardShelf=function(){var q,w;return!!_.C((q=this.data)==null?void 0:q.content,SbZ)||!!_.C((w=this.data)==null?void 0:w.content,h2j)};
_.k.computeIsTeaserCard=function(){var q;return!!_.C((q=this.data)==null?void 0:q.content,h2j)};
_.k.computeIsSelectableFeedbackItem=function(){var q,w;return!((w=_.C((q=this.data)==null?void 0:q.content,_.llx))==null||!w.selectableFeedback)};
_.k.computeContainsLumierePosters=function(){var q,w;return((w=_.C((q=this.data)==null?void 0:q.content,bCT))==null?void 0:w.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.k.computeIsExpandOnHoverCardShelf=function(){var q;return!!_.C((q=this.data)==null?void 0:q.content,vXF)};
_.k.computeIsLinkCardShelf=function(){var q;return!!_.C((q=this.data)==null?void 0:q.content,jBc)};
_.k.computeIsReelItemStyleAvatarCircle=function(q){var w;return((w=_.C(q==null?void 0:q.content,_.zo))==null?void 0:w.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.k.computeIsLinkCardFullWidth=function(q,w){var u;return((u=_.C(q==null?void 0:q.content,jBc))==null?void 0:u.useFullWidth)||w<=2};
_.x$.Object.defineProperties(rp.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&&_.T("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.T("web_enable_rich_item_on_focus_effect")||_.T("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.T("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.T("web_shorts_2_by_3_lockups_study")||_.T("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
rp.prototype.richGridHoverHighlightChanged=rp.prototype.richGridHoverHighlightChanged;rp.prototype.observerContainerType=rp.prototype.observerContainerType;rp.prototype.updateIsInFirstColumn=rp.prototype.updateIsInFirstColumn;_.c([_.D(_.fU),_.h("design:type",Object)],rp.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],rp.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],rp.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],rp.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.$p),_.h("design:type",Object)],rp.prototype,"ytdLockupBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],rp.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.h("design:type",Boolean)],rp.prototype,"isPost",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.h("design:type",Boolean)],rp.prototype,"containsLumierePosters",void 0);_.c([_.v({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.h("design:type",Boolean)],rp.prototype,"isSlimMedia",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.h("design:type",Boolean)],rp.prototype,"isGameCardShelf",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.h("design:type",Boolean)],rp.prototype,"isMiniGameCardShelf",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.h("design:type",Boolean)],rp.prototype,"isTeaserCard",void 0);_.c([_.v({computed:"computeIsSelectableFeedbackItem(data)"}),_.h("design:type",Boolean)],rp.prototype,"isSelectableFeedbackItem",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],rp.prototype,"isShortsGrid",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],rp.prototype,"isSlimGrid",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],rp.prototype,"isCompactGrid",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],rp.prototype,"isShortsPanelGrid",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.h("design:type",Boolean)],rp.prototype,"isExpandOnHoverCardShelf",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.h("design:type",Boolean)],rp.prototype,"isLinkCardShelf",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.aO,value:3}),_.h("design:type",Number)],rp.prototype,"itemsPerRow",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],rp.prototype,"renderedFromRichGrid",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],rp.prototype,"isInFirstColumn",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],rp.prototype,"noGutterMargins",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],rp.prototype,"isInlineGroupItem",void 0);_.c([_.v(),_.h("design:type",Object)],rp.prototype,"insetMetadata",void 0);
_.c([_.v(),_.h("design:type",Object)],rp.prototype,"noBottomMarginInAds",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],rp.prototype,"isShelfItem",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.h("design:type",Boolean)],rp.prototype,"isReelItemStyleAvatarCircle",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.h("design:type",Boolean)],rp.prototype,"isLinkCardFullWidth",void 0);
_.c([_.v(),_.h("design:type",Object)],rp.prototype,"force16By9ThumbnailAspectRatio",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],rp.prototype,"useCompactList",void 0);_.c([_.v(),_.h("design:type",String)],rp.prototype,"sizing",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],rp.prototype,"typographyBump",void 0);_.c([_.v(),_.h("design:type",Number)],rp.prototype,"itemWidth",void 0);_.c([_.v(),_.h("design:type",Boolean)],rp.prototype,"isHomeShelf",void 0);
_.c([_.v(),_.h("design:type",Boolean)],rp.prototype,"isHomeGrid",void 0);_.c([_.Wj("yt-lockup-view-model"),_.h("design:type",HTMLElement)],rp.prototype,"lockup",void 0);_.c([_.Wj("ytd-rich-grid-media"),_.h("design:type",HTMLElement)],rp.prototype,"richGridMedia",void 0);_.c([_.Wj("ytd-ad-slot-renderer"),_.h("design:type",HTMLElement)],rp.prototype,"adSlotRenderer",void 0);_.c([_.v({computed:"computeContainerType(useCompactList)"}),_.h("design:type",Object)],rp.prototype,"containerType",void 0);
_.c([_.v({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.h("design:type",Object)],rp.prototype,"thumbnailTargetWidth",void 0);_.c([_.Z("showYtInteractionOnRichItem"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rp.prototype,"showYtInteractionOnRichGridMedia",null);_.c([_.Z("isSelectableFeedbackItem","richGridHoverHighlight"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rp.prototype,"showYtInteractionOnRichItem",null);
_.c([_.Z("typographyBump","isHomeGrid"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rp.prototype,"richTypographyBump",null);_.c([_.v({reflectToAttribute:!0}),_.Z("isShortsGrid","isCompactGrid"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rp.prototype,"richGridHoverHighlight",null);_.c([_.Z("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.h("design:type",Number),_.h("design:paramtypes",[])],rp.prototype,"shortsLockupViewModelAspectRatio",null);
_.c([_.Z("isInlineGroupItem"),_.h("design:type",Number),_.h("design:paramtypes",[])],rp.prototype,"shortsLockupViewModelScrimStyle",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rp.prototype,"updateIsInFirstColumn",null);_.c([_.nL("containerType","sizing","typographyBump"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rp.prototype,"observerContainerType",null);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],rp.prototype,"isResponsiveGrid",void 0);_.c([_.v(),_.h("design:type",Object)],rp.prototype,"lockupExperiments",void 0);_.c([_.nL("richGridHoverHighlight"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rp.prototype,"richGridHoverHighlightChanged",null);rp=_.c([_.E({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],rp);
_.CFk=_.eD()(rp,"ytd-rich-item-renderer",function(){if(XZP===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);XZP=q}q=XZP;return q},{mode:_.kB("kevlar_poly_si_batch_j028")?1:2});var DWy={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var Elz=_.jN(_.ID("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var dX3;var Ud=function(){var q=_.Y.apply(this,arguments)||this;q.useResponsiveGrid=!1;q.hidden=!1;q.standardShelfMargins=_.T("web_rich_grid_standard_shelf_margins");q.isShowMoreHidden=!1;q.isExpanded=!1;q.isInnerShelf=!1;q.allVideosCount=0;q.allPlaylistCount=0;q.haveSmartDownloadsCompleted=!1;q.isShowLessHidden=!0;q.restrictContentsOverflow=!1;q.firstShownIndex=0;q.horizontalOffset=0;q.atEnd=!0;q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};q.nextClick=function(){var w;(w=q.data)!=null&&w.contents&&(q.firstShownIndex+=q.currentElementsPerRow,q.updateHorizontalOffset(),q.updateHorizontalItemVisibility())};
q.previousClick=function(){var w;(w=q.data)!=null&&w.contents&&(q.firstShownIndex-=q.currentElementsPerRow,q.updateHorizontalOffset(),q.updateHorizontalItemVisibility())};
return q};
_.O(Ud,_.Y);_.k=Ud.prototype;
_.k.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:_.Et("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.k.attached=function(){this.requestElementsPerRow()};
_.k.refreshGridLayoutNew=function(){var q;if((q=this.data)!=null&&q.contents&&this.containerWidth){var w;((w=this.data.responsiveContainerConfiguration)==null?0:w.responsiveSize)?(q=_.SxM(this.data.responsiveContainerConfiguration,this.containerWidth),q=_.hg(Object.assign({},q,{standardUnitMinWidth:this.standardUnitMinWidth}))):q=_.hg({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=q.typographyBump;if(this.elementsPerRow!==
q.numItems||this.gutter!==q.gutter)this.elementsPerRow=q.numItems,this.gutter=q.gutter,this.itemWidth=q.itemWidth,_.Pj(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":q.gutter+"px"})}};
_.k.computeSizing=function(){if(!this.isLumiere){var q=_.wP6(this.data);if(q)return q;if(_.T("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.k.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.k.computeButton=function(q){var w=_.C(q,_.aB);q=Object.assign({},_.C(q,_.aB));return w?(q.text||(q.text={simpleText:q.tooltip}),q.style="STYLE_MONO_OUTLINE",q.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",q):w};
_.k.onRowIndexChange=function(){var q=_.pN(),w,u;((w=this.data)==null?0:w.trackingParams)&&((u=this.data)==null?void 0:u.rowIndex)!=null&&q&&_.Lq(q,_.Tj(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.k.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var q,w=((q=this.getRichItemRenderers()[0])==null?void 0:q.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*w;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.k.requestElementsPerRow=function(){_.t7(this.hostElement,"yt-request-elements-per-row")};
_.k.onUpdateElementsPerRowAction=function(q,w,u,y,e,t){if(this.containerWidth!==t&&(this.containerWidth=t,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&q&&w&&u&&y&&e&&(this.elementsPerRow!==q||this.postsPerRow!==w||this.slimItemsPerRow!==u||this.gameCardsPerRow!==y||this.miniGameCardsPerRow!==e)&&(this.elementsPerRow=q,this.postsPerRow=w,this.slimItemsPerRow=u,this.gameCardsPerRow=y,this.miniGameCardsPerRow=e,this.updateItemVisibility())};
_.k.getRichItemRenderers=function(){return _.A(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.k.updateItemVisibility=function(){var q=this;if(this.data&&this.data.contents){var w=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(y,e){var t;((t=q.data)==null?0:t.isExpanded)?(y.hidden=e>w-1,y.ytRendererBehavior.markDirty()):y.hidden=e>q.currentElementsPerRow-1||e>w-1});
var u=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||u||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||u||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.k.setHeightToSingleRow=function(){var q=this.getRichItemRenderers(),w=Number.parseInt(getComputedStyle(q[0]).marginBottom,10)||0;q=q.slice(0,this.currentElementsPerRow).reduce(function(u,y){return Math.max(u,y.getBoundingClientRect().height+w)},0);
this.contents.style.height=q+"px"};
_.k.focusNextExpandedItem=function(){var q;((q=this.data)==null?0:q.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.k.focusItem=function(q,w){var u=this.getRichItemRenderers();if(u[q]&&(q=u[q].querySelector(".focus-on-expand"))){if(w){var y;(y=u[this.currentElementsPerRow])==null||y.scrollIntoView({behavior:"smooth",block:"center"})}q.focus({preventScroll:!0})}};
_.k.onDataChange=function(){var q=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.KJ(this,function(){q.updateItemVisibility()});
var w;if((w=this.data)==null?0:w.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Pj(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),w=0;w<this.data.contents.length;w++){var u=_.C(this.data.contents[w],_.V0)||{};u.colIndex=w;u.rowIndex=this.data.rowIndex}};
_.k.handleRerenderDownloadsData=function(){_.T("kevlar_modern_downloads_page")&&this.entityDrivenRichShelfData&&(this.set("data.contents",this.entityDrivenRichShelfData.contents),this.entityDrivenRichShelfData.subtitle&&this.set("data.subtitle",this.entityDrivenRichShelfData.subtitle),this.updateItemVisibility())};
_.k.blockInlinePreview=function(q){var w=this,u;return _.F(function(y){(u=w.inlinePreviewIsEnabled)&&w.ytdReduxBehavior.dispatch(_.JoZ(!1));return y.return(new Promise(function(e){q(function(){u&&w.ytdReduxBehavior.dispatch(_.JoZ(!0));e()})}))})};
_.k.expandShelf=function(){var q=this;if(this.data){var w,u=(w=_.C(this.data.showMoreButton,_.aB))==null?void 0:w.trackingParams;u&&_.Xf(_.Qz(),u);this.data.isExpanded=!0;this.blockInlinePreview(function(y){q.setHeightToSingleRow();q.updateItemVisibility();q.contents.style.height=q.contents.scrollHeight+"px";_.pi.addJob(function(){q.contents.style.height="auto";q.focusNextExpandedItem();y()},2,200)})}};
_.k.collapseShelf=function(){var q=this;return _.F(function(w){if(w.nextAddress==1){if(!q.data)return w.return();q.data.isExpanded=!1;return _.H(w,q.blockInlinePreview(function(u){q.contents.style.height=q.contents.scrollHeight+"px";q.setHeightToSingleRow();_.pi.addJob(function(){q.updateItemVisibility();q.contents.style.height="auto";u()},2,200)}),2)}_.t7(q.hostElement,"yt-rich-shelf-renderer-collapse",q.data.trackingParams);
q.focusItem(0,!1);_.HI(w)})};
_.k.updateArrowButtonStatus=function(){var q=this.getRichItemRenderers().length;if(!_.T("web_rich_shelf_renderer_use_data_contents_killswitch")){var w,u;q=((w=this.data)==null?void 0:(u=w.contents)==null?void 0:u.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=q};
_.k.onChildElementFocus=function(q){this.hasChevronButtons&&(q=q.target.closest("#contents > *"),this.contents.contains(q)&&(q.offsetLeft<this.horizontalOffset?this.previousClick():q.offsetLeft+q.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.k.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.Et("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.k.updateHorizontalOffset=function(){var q=this.getRichItemRenderers(),w=q.length;if(!_.T("web_rich_shelf_renderer_use_data_contents_killswitch")){var u,y;w=((u=this.data)==null?void 0:(y=u.contents)==null?void 0:y.length)||0}var e;q=((e=q[0])==null?void 0:e.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>w?this.firstShownIndex=w-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*q};
_.k.isSlimMediaShelfRenderer=function(){var q,w,u,y=(u=_.C((q=this.data)==null?void 0:(w=q.contents)==null?void 0:w[0],_.V0))==null?void 0:u.content;return!!(_.C(y,_.TaP)||_.C(y,UH3)||_.C(y,_.zo)||_.C(y,E2r))};
_.k.isGameCardShelf=function(){var q,w,u,y=(u=_.C((q=this.data)==null?void 0:(w=q.contents)==null?void 0:w[0],_.V0))==null?void 0:u.content;return!!_.C(y,mBG)};
_.k.isGnomeShelf=function(){var q,w,u,y=(u=_.C((q=this.data)==null?void 0:(w=q.contents)==null?void 0:w[0],_.V0))==null?void 0:u.content;return!!_.C(y,_.llx)};
_.k.isMiniGameCardShelf=function(){var q,w,u,y=(u=_.C((q=this.data)==null?void 0:(w=q.contents)==null?void 0:w[0],_.V0))==null?void 0:u.content;return!!_.C(y,SbZ)||!!_.C(y,h2j)};
_.k.hasGameBoxArtAvatarStyle=function(){var q;return((q=this.data)==null?void 0:q.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.k.hasRoundedGameBoxArtAvatarStyle=function(){var q;return((q=this.data)==null?void 0:q.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.k.isShortsShelf=function(){var q,w,u,y=(u=_.C((q=this.data)==null?void 0:(w=q.contents)==null?void 0:w[0],_.V0))==null?void 0:u.content;return!!_.C(y,_.zo)||!!_.C(y,E2r)};
_.k.isPostShelfRenderer=function(){var q,w,u,y=(u=_.C((q=this.data)==null?void 0:(w=q.contents)==null?void 0:w[0],_.V0))==null?void 0:u.content;return!(!_.C(y,fz6)&&!_.C(y,mLT))};
_.k.isLumiereShelf=function(){var q,w,u=_.C((q=this.data)==null?void 0:(w=q.contents)==null?void 0:w[0],_.V0);return!!_.C(u==null?void 0:u.content,bCT)};
_.k.isLumiereShelfWithPosters=function(){var q,w,u=_.C((q=this.data)==null?void 0:(w=q.contents)==null?void 0:w[0],_.V0),y;return((y=_.C(u==null?void 0:u.content,bCT))==null?void 0:y.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.k.isExpandOnHoverCardShelf=function(){var q,w,u,y=(u=_.C((q=this.data)==null?void 0:(w=q.contents)==null?void 0:w[0],_.V0))==null?void 0:u.content;return!!_.C(y,vXF)};
_.k.computeHasFeaturedBadge=function(){var q,w,u=_.C((q=this.data)==null?void 0:(w=q.badges)==null?void 0:w[0],_.jGk);return u?u.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.k.computeHasPaygatedFeaturedBadge=function(){var q,w,u=_.C((q=this.data)==null?void 0:(w=q.badges)==null?void 0:w[0],_.jGk);return u?(u==null?void 0:u.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.k.computeHeaderHidden=function(){var q,w,u,y,e,t;return!((q=this.data)==null?0:q.icon)&&!((w=this.data)==null?0:w.title)&&!((u=this.data)==null?0:u.subtitle)&&!((y=this.data)==null?0:y.thumbnail)&&!((e=this.data)==null?0:e.badges)&&!((t=this.data)==null?0:t.menu)};
_.k.showCtaButton=function(){var q;return!((q=this.data)==null||!q.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.k.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.k.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.k.computeForce16By9ThumbnailAspectRatio=function(){var q,w;return((q=this.data)==null?void 0:(w=q.responsiveContainerConfiguration)==null?void 0:w.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.k.onSectionReactiveDismissal=function(q,w,u){var y,e;var t=(y=this.data)==null?void 0:(e=y.targetingContext)==null?void 0:e.targetGroupId;this&&t&&w.targetGroupId&&t.includes(w.targetGroupId)?(y=this.rowIndex,q=y===void 0?!1:!(w.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&y<=q)):q=!1;q&&(this.hidden=u)};
_.x$.Object.defineProperties(Ud.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var q=this.elementsPerRow;this.isPostShelfRenderer()?q=this.postsPerRow:this.isSlimMediaShelfRenderer()?q=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?q=this.slimItemsPerRow-1:this.isGameCardShelf()?q=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(q=this.miniGameCardsPerRow);return q}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.T("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var q,w;return!((q=this.data)==null||!q.previousButton)&&!((w=this.data)==null||!w.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 q;return((q=_.tG().resolve(_.KT).getCurrentPage())==null?void 0:q.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var q,w,u,y;return!((q=this.data)==null?0:(w=q.thumbnail)==null?0:(u=w.accessibility)==null?0:(y=u.accessibilityData)==null?0:y.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
Ud.prototype.onChildElementFocus=Ud.prototype.onChildElementFocus;Ud.prototype.handleRerenderDownloadsData=Ud.prototype.handleRerenderDownloadsData;Ud.prototype.onDataChange=Ud.prototype.onDataChange;Ud.prototype.onRowIndexChange=Ud.prototype.onRowIndexChange;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ud.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ud.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.Ao),_.h("design:type",Object)],Ud.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Ud.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],Ud.prototype,"ytdReduxBehavior",void 0);_.c([_.v({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.h("design:type",Object)],Ud.prototype,"useResponsiveGrid",void 0);_.c([_.v(),_.h("design:type",Object)],Ud.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",Number)],Ud.prototype,"standardUnitMinWidth",void 0);_.c([_.v({reflectToAttribute:!0,value:3}),_.h("design:type",Number)],Ud.prototype,"elementsPerRow",void 0);_.c([_.v({value:3}),_.h("design:type",Number)],Ud.prototype,"postsPerRow",void 0);_.c([_.v({value:6}),_.h("design:type",Number)],Ud.prototype,"slimItemsPerRow",void 0);_.c([_.v({value:6}),_.h("design:type",Number)],Ud.prototype,"gameCardsPerRow",void 0);
_.c([_.v({value:6}),_.h("design:type",Number)],Ud.prototype,"miniGameCardsPerRow",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ud.prototype,"hidden",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ud.prototype,"standardShelfMargins",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ud.prototype,"isShowMoreHidden",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ud.prototype,"isExpanded",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ud.prototype,"isInnerShelf",void 0);_.c([_.v({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.h("design:type",Boolean)],Ud.prototype,"isShorts",void 0);_.c([_.v({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.h("design:type",Boolean)],Ud.prototype,"isLumiere",void 0);_.c([_.v({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.h("design:type",Boolean)],Ud.prototype,"hasBoxArtThumbnailStyle",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.h("design:type",Boolean)],Ud.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.h("design:type",Boolean)],Ud.prototype,"hasFeaturedBadge",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.h("design:type",Boolean)],Ud.prototype,"hasPaygatedFeaturedBadge",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.h("design:type",Boolean)],Ud.prototype,"isHeaderHidden",void 0);_.c([_.v({selector:_.rOl}),_.h("design:type",Object)],Ud.prototype,"allVideosCount",void 0);_.c([_.v({selector:cTJ}),_.h("design:type",Object)],Ud.prototype,"allPlaylistCount",void 0);_.c([_.v({selector:AOf}),_.h("design:type",Object)],Ud.prototype,"haveSmartDownloadsCompleted",void 0);
_.c([_.v({selectorArgs:["entitySelectorType"],selector:function(q,w){if(_.T("kevlar_modern_downloads_page")&&w&&w!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var u=q.entities;switch(w){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":w=_.fa(u);q=OK(w);var y=_.Ca(w);u=_.Jr(u);u=_.yU(pN7(y,u,w.length));return{contents:q,subtitle:u};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return u=_.fa(u),{contents:OK(u)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return u=
_.mO(u),{contents:OK(u)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return u=_.KFj(u),{contents:OK(u)};default:_.Y8(new _.fv("Error: entitySelectorType defined but not matched in selector.",q,w))}}}}),
_.h("design:type",Object)],Ud.prototype,"entityDrivenRichShelfData",void 0);_.c([_.v({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.h("design:type",Boolean)],Ud.prototype,"hasTopCtaButton",void 0);_.c([_.v({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.h("design:type",Boolean)],Ud.prototype,"hasBottomCtaButton",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.h("design:type",Boolean)],Ud.prototype,"force16By9ThumbnailAspectRatio",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ud.prototype,"isShowLessHidden",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ud.prototype,"restrictContentsOverflow",void 0);_.c([_.v({selector:_.WZf}),_.h("design:type",Boolean)],Ud.prototype,"inlinePreviewIsEnabled",void 0);
_.c([_.v({computed:"computeSizing(data)"}),_.h("design:type",String)],Ud.prototype,"sizing",void 0);_.c([_.v(),_.h("design:type",Boolean)],Ud.prototype,"typographyBump",void 0);_.c([_.v(),_.h("design:type",Number)],Ud.prototype,"itemWidth",void 0);_.c([_.v(),_.h("design:type",Object)],Ud.prototype,"firstShownIndex",void 0);_.c([_.v(),_.h("design:type",Object)],Ud.prototype,"horizontalOffset",void 0);_.c([_.v(),_.h("design:type",Object)],Ud.prototype,"atEnd",void 0);
_.c([_.Wj("#contents"),_.h("design:type",HTMLElement)],Ud.prototype,"contents",void 0);_.c([_.nL("data.rowIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ud.prototype,"onRowIndexChange",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ud.prototype,"onDataChange",null);
_.c([_.nL("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ud.prototype,"handleRerenderDownloadsData",null);_.c([_.Gm("focusin"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Ud.prototype,"onChildElementFocus",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data","isHomePage"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ud.prototype,"isTruncated",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ud.prototype,"hideBottomDivider",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ud.prototype,"hasChevronButtons",null);_.c([_.Z("firstShownIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ud.prototype,"previousButtonOverride",null);
_.c([_.Z("atEnd"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ud.prototype,"nextButtonOverride",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ud.prototype,"isHomePage",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ud.prototype,"thumbnailAriaHidden",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ud.prototype,"initiallyIsExpanded",null);
_.c([_.Z("data"),_.h("design:type",String),_.h("design:paramtypes",[])],Ud.prototype,"entitySelectorType",null);Ud=_.c([_.E({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Ud);
_.OB3=_.eD()(Ud,"ytd-rich-shelf-renderer",function(){if(dX3===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);dX3=q}q=dX3;return q},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.kB("kevlar_poly_si_batch_j028")?1:2});var o_a;_.q9(kb$,"yt-slimline-survey-view-model",{props:{data:_.pK}});var TN=function(){var q=_.Y.apply(this,arguments)||this;q.tileLottieAnimationRef={};q.backgroundLottieAnimationRef={};q.isOnHoverBehaviorForLottieEnabled=!0;q.useBiggerShowcaseImage=_.T("enable_desktop_search_bigger_thumbs");q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return q};
_.O(TN,_.Y);_.k=TN.prototype;_.k.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.k.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.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"}}}};
_.k.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var q=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);q!==this.hasTile&&this.set("hasTile",q);q=this.hasLogo(this.data)||!!this.data.badgeText;q!==this.hasMetadata&&this.set("hasMetadata",q);q=this.data.overflowButton?!1:q;q!==this.showLogoImage&&this.set("showLogoImage",q);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.k.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.k.currentColorChanged=function(){this.updateButtonPalette()};
_.k.computeBackgroundStyle=function(q){if(q&&this.data){var w=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var u=_.uv((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);u&&w.push('background-image: url("'+u+'");')}var y;((y=q.basicColorData)==null?void 0:y.backgroundColor)!==void 0&&w.push("background-color: "+_.Je(q.basicColorData.backgroundColor)+";");return w.join("")}};
_.k.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&this.set("isDarkTheme",q)};
_.k.getCurrentLogo=function(q,w){if(q)return w?q.darkLogoImage:q.lightLogoImage};
_.k.getCurrentStaticTileImage=function(q,w){if(this.hasStaticTile(q))return q.darkTileImage?w?q.darkTileImage:q.tileImage:q.tileImage};
_.k.computeTitleStyle=function(q){if(this.data&&this.data.title&&q&&q.basicColorData&&q.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.Ae(q.basicColorData.foregroundTitleColor)+";"};
_.k.computeSubtitleStyle=function(q){if(this.data&&this.data.subtitle&&q&&q.basicColorData&&q.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.Ae(q.basicColorData.foregroundBodyColor)+";"};
_.k.computeSupplementalStyle=function(q){if(this.data&&this.data.supplementalText&&q&&q.supplementalTextColor!==void 0)return q=_.Ae(q.supplementalTextColor),"color:"+q+";--yt-endpoint-color:"+q+";--yt-endpoint-hover-color:"+q+";--yt-endpoint-visited-color:"+q+";--yt-formatted-string-bold-font-weight:700;"};
_.k.computeBadgeStyle=function(q){if(this.data&&this.data.badgeText&&q&&q.basicColorData&&q.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.Ae(q.basicColorData.foregroundActivatedColor)+";"};
_.k.computeDismissIconStyle=function(q){var w,u;if((q==null?0:(w=q.dismissButtonColorData)==null?0:w.foregroundTitleColor)&&(q==null?0:(u=q.dismissButtonColorData)==null?0:u.backgroundColor))return"--yt-button-color:"+_.Je(q.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Je(q.dismissButtonColorData.backgroundColor)+";"};
_.k.computeOverflowIconStyle=function(q){var w,u;if((q==null?0:(w=q.dismissButtonColorData)==null?0:w.foregroundTitleColor)&&(q==null?0:(u=q.dismissButtonColorData)==null?0:u.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Je(q.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Je(q.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Je(q.dismissButtonColorData.foregroundTitleColor)+";"};
_.k.computeBannerStyle=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.k.computeLocation=function(q){switch(q==null?void 0:q.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.k.shouldShowTileSection=function(q,w,u){return!this.shouldExpandLogo(q,w,u)&&w};
_.k.shouldShowExpandedLogoSection=function(q,w,u){return this.shouldExpandLogo(q,w,u)&&q!==void 0&&this.hasLogo(q)};
_.k.shouldExpandLogo=function(q,w,u){return q&&w?!1:u>=2};
_.k.hasStaticTile=function(q){return!(q==null||!q.tileImage)};
_.k.hasTileLottie=function(q){var w;return!!(q==null?0:(w=q.tileLottie)==null?0:w.url)};
_.k.hasLogo=function(q){return this.getCurrentLogo(q,this.isDarkTheme)!==void 0};
_.k.getLogoHeight=function(q){return this.logoWithPadding(q)?"26":"20"};
_.k.getExpandedLogoHeight=function(q){return this.logoWithPadding(q)?"31":"24"};
_.k.getLogoImageId=function(q){return this.logoWithPadding(q)?"logo-image-with-padding":"logo-image"};
_.k.hasBackgroundLottie=function(q){var w;return!!(q==null?0:(w=q.backgroundLottie)==null?0:w.url)};
_.k.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var q,w;(q=this.tileLottieAnimationRef)==null||(w=q.lottieEl)==null||w.play();var u,y;(u=this.backgroundLottieAnimationRef)==null||(y=u.lottieEl)==null||y.play()}};
_.k.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var q,w;(q=this.tileLottieAnimationRef)==null||(w=q.lottieEl)==null||w.pause();var u,y;(u=this.backgroundLottieAnimationRef)==null||(y=u.lottieEl)==null||y.pause()}};
_.k.pauseLottie=function(){var q,w;(q=this.tileLottieAnimationRef)==null||(w=q.lottieEl)==null||w.pause();var u,y;(u=this.backgroundLottieAnimationRef)==null||(y=u.lottieEl)==null||y.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.k.performPrimaryButtonAction=function(){var q,w,u;((q=this.data)==null?0:(w=q.primaryButton)==null?0:(u=w.buttonRenderer)==null?0:u.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.k.requestElementsPerRow=function(){_.t7(this.hostElement,"yt-request-elements-per-row")};
_.k.updateButtonPalette=function(){if(this.data&&this.currentColorData){var q;((q=this.data.dismissButton)==null?0:q.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 w;if((w=this.data.primaryButton)==null?0:w.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 u;if((u=this.data.secondaryButton)==
null?0:u.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 y;((y=this.data.primaryButton)==null?0:y.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var e;((e=this.data.secondaryButton)==null?0:e.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.k.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var q=this.getTileLottieDataBasedOnTheme(),w,u;if(q.url!==((w=this.tileLottiePlayerProps)==null?void 0:(u=w.animationConfig)==null?void 0:u.path)){var y,e;(y=this.tileLottieAnimationRef)==null||(e=y.lottieEl)==null||e.destroy();var t;this.isOnHoverBehaviorForLottieEnabled=!((t=q.settings)==null?0:t.autoplay);var X,G;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(G=(X=q.settings)==null?void 0:X.autoplay)!=null?G:!1,loop:this.getLottieLoopValue(q.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof q.url==="string"?this.tileLottiePlayerProps.animationConfig.path=q.url:this.tileLottiePlayerProps.animationConfig.animationData=q.url}}};
_.k.getOverflowButton=function(q){return _.C(q.overflowButton,jyG)};
_.k.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var q=this.getBackgroundLottieDataBasedOnTheme(),w,u;if(q.url!==((w=this.backgroundLottiePlayerProps)==null?void 0:(u=w.animationConfig)==null?void 0:u.path)){var y,e;(y=this.backgroundLottieAnimationRef)==null||(e=y.lottieEl)==null||e.destroy();var t;this.isOnHoverBehaviorForLottieEnabled=!((t=q.settings)==null?0:t.autoplay);var X,G;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(G=(X=q.settings)==null?void 0:X.autoplay)!=null?G:!1,loop:this.getLottieLoopValue(q.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof q.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=q.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
q.url}}};
_.k.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var q;((q=this.tileLottieAnimationRef)==null?void 0:q.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var w;((w=this.backgroundLottieAnimationRef)==null?void 0:w.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.k.getTileLottieDataBasedOnTheme=function(){var q;if(this.isDarkTheme&&((q=this.data)==null?0:q.darkThemeTileLottie))return this.data.darkThemeTileLottie;var w;return((w=this.data)==null?0:w.tileLottie)?this.data.tileLottie:{}};
_.k.getBackgroundLottieDataBasedOnTheme=function(){var q;if(this.isDarkTheme&&((q=this.data)==null?0:q.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var w;return((w=this.data)==null?0:w.backgroundLottie)?this.data.backgroundLottie:{}};
_.k.onUpdateElementsPerRowAction=function(q){q&&this.elementsPerRow!==q&&(this.elementsPerRow=q)};
_.k.getLottieLoopValue=function(q){return q?q.loop!==void 0?q.loop:q.loopCount?q.loopCount-1:!0:!0};
_.k.logoWithPadding=function(q){var w,u,y;return(q=(w=this.getCurrentLogo(q,this.isDarkTheme))==null?void 0:(u=w.thumbnails)==null?void 0:(y=u[0])==null?void 0:y.height)&&q%31===0?!0:!1};
TN.prototype.currentColorChanged=TN.prototype.currentColorChanged;TN.prototype.themeChanged=TN.prototype.themeChanged;TN.prototype.dataChanged=TN.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],TN.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],TN.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],TN.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],TN.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],TN.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],TN.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],TN.prototype,"primaryButton",void 0);_.c([_.v(),_.h("design:type",Object)],TN.prototype,"secondaryButton",void 0);
_.c([_.v({reflectToAttribute:!0,value:3}),_.h("design:type",Number)],TN.prototype,"elementsPerRow",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],TN.prototype,"isDarkTheme",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],TN.prototype,"hasTile",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],TN.prototype,"hasMetadata",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],TN.prototype,"showLogoImage",void 0);_.c([_.v(),_.h("design:type",Object)],TN.prototype,"currentColorData",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.h("design:type",String)],TN.prototype,"bannerStyle",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.h("design:type",String)],TN.prototype,"location",void 0);
_.c([_.v(),_.h("design:type",Object)],TN.prototype,"tileLottiePlayerProps",void 0);_.c([_.v(),_.h("design:type",Object)],TN.prototype,"tileLottieAnimationRef",void 0);_.c([_.v(),_.h("design:type",Object)],TN.prototype,"backgroundLottiePlayerProps",void 0);_.c([_.v(),_.h("design:type",Object)],TN.prototype,"backgroundLottieAnimationRef",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],TN.prototype,"useBiggerShowcaseImage",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],TN.prototype,"isHideEnclosingAction",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],TN.prototype,"dataChanged",null);_.c([_.I9("isDarkTheme"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],TN.prototype,"themeChanged",null);
_.c([_.I9("currentColorData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],TN.prototype,"currentColorChanged",null);TN=_.c([_.E({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],TN);
_.R(TN,"ytd-statement-banner-renderer",function(){if(o_a!==void 0)return o_a;var q=document.createElement("template");_.f(q,'\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="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(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>\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="36" 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.overflowButton]]" 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>\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return o_a=q},{mode:1});var Vyr;var CX=function(){var q=_.Y.apply(this,arguments)||this;q.isSearch=!1;q.hideShelfHeader=!1;q.engagementPanel=!1;q.disableMouseScroll=!0;q.useFloorScrolling=!0;q.modernTypography=_.T("web_modern_typography");return q};
_.O(CX,_.Y);CX.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.ID("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.ID("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
CX.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
CX.prototype.onDataChanged=CX.prototype.onDataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],CX.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],CX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],CX.prototype,"isSearch",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],CX.prototype,"hideShelfHeader",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],CX.prototype,"engagementPanel",void 0);_.c([_.v(),_.h("design:type",Object)],CX.prototype,"disableMouseScroll",void 0);_.c([_.v(),_.h("design:type",Object)],CX.prototype,"useFloorScrolling",void 0);_.c([_.v(),_.h("design:type",Object)],CX.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],CX.prototype,"modernTypography",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"onDataChanged",null);CX=_.c([_.E({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],CX);
_.R(CX,"ytd-reel-shelf-renderer",function(){if(Vyr!==void 0)return Vyr;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Vyr=q},{mode:_.kB("kevlar_poly_si_batch_j028")?1:2});var f5P;var mXG=_.LL(function(q){var w=q.data;q=q.useSmallFont;var u={},y={};return _.W("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.W(_.r,{cond:function(){return w().favicon},
then:function(e){return _.W(_.ln,{data:e,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.W("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.W(_.Lr,{text:function(){return w().title},
className:_.HR("yt-channel-external-link-view-model-wiz__title",(u["yt-channel-external-link-view-model-wiz__title--title-small-font"]=q,u)),ellipsisTruncate:!0,userInput:!0}),_.W(_.Lr,{text:function(){return w().link},
className:_.HR("yt-channel-external-link-view-model-wiz__link",(y["yt-channel-external-link-view-model-wiz__link--link-small-font"]=q,y)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Cb");
mXG.idomCompat=!0;_.q9(mXG,"yt-channel-external-link-view-model",{props:{data:_.pK,useSmallFont:_.pK}});_.JE("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var dp=function(){var q=_.Y.apply(this,arguments)||this;q.revealButtonClass="button";q.businessEmailDisplayState="HIDE_SECTION";return q};
_.O(dp,_.Y);_.k=dp.prototype;_.k.refit=function(){var q=this;_.vj(function(){_.X4(q.hostElement,"yt-refit-popups-action")});
_.KJ(this,function(){_.X4(q.hostElement,"yt-refit-popups-action")})};
_.k.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.EM("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.k.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"};
_.k.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.k.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"}}}};
_.k.computeEmailHref=function(q){return"mailto:"+q};
_.k.computeSafeUrl=function(q){if(q)return _.UY(q)};
_.k.linkEndpoint=function(q){return _.C(q.onTap,_.Dh)};
_.k.linkEndpointToHref=function(q){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(q))};
_.k.onYtServiceRequestCompleted=function(q){var w;if((w=q.detail.data)==null?0:w.businessEmail)this.businessEmail=q.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var u;if((u=q.detail.data)==null?0:u.errorMessage)this.businessEmailErrorMessage=q.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.k.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var q=this.JSC$13994_captchaTextarea.value;if(q){q={recaptcha_response_token:q,channel_id:this.metadata.channelId};var w=_.C(this.metadata.onBusinessEmailRevealClickCommand,_.Dh);w&&this.ytComponentBehavior.resolveCommand(w,{form:q})}}};
_.k.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.x$.Object.defineProperties(dp.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var q;return _.C((q=this.data)==null?void 0:q.metadata,RGr)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.C(this.metadata.businessEmailRevealButton,_.oH)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var q=new URL(this.metadata.canonicalChannelUrl);return q.host+q.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 _.C(this.metadata.learnMoreOnTap,_.Dh)}}});
dp.prototype.onYtServiceRequestCompleted=dp.prototype.onYtServiceRequestCompleted;dp.prototype.businessEmailMetadataChanged=dp.prototype.businessEmailMetadataChanged;dp.prototype.refit=dp.prototype.refit;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],dp.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],dp.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],dp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.Wj("#g-recaptcha-response"),_.h("design:type",HTMLTextAreaElement)],dp.prototype,"JSC$13994_captchaTextarea",void 0);_.c([_.v(),_.h("design:type",Object)],dp.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],dp.prototype,"revealButtonClass",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],dp.prototype,"metadata",null);
_.c([_.Z("metadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],dp.prototype,"revealButton",null);_.c([_.Z("metadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],dp.prototype,"channelDisplayUrl",null);_.c([_.I9("metadata"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dp.prototype,"refit",null);_.c([_.Z("metadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],dp.prototype,"formattedDescription",null);
_.c([_.Z("metadata","learnMoreCommand"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],dp.prototype,"shouldRendereVerifiedPhoneStatus",null);_.c([_.Z("metadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],dp.prototype,"learnMoreCommand",null);_.c([_.v(),_.h("design:type",String)],dp.prototype,"businessEmailDisplayState",void 0);_.c([_.v(),_.h("design:type",String)],dp.prototype,"businessEmail",void 0);
_.c([_.v(),_.h("design:type",String)],dp.prototype,"businessEmailErrorMessage",void 0);_.c([_.I9("metadata"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dp.prototype,"businessEmailMetadataChanged",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],dp.prototype,"onYtServiceRequestCompleted",null);
dp=_.c([_.E({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],dp);
_.R(dp,"ytd-about-channel-renderer",function(){if(f5P!==void 0)return f5P;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return f5P=q},{mode:1});var ACr;var Od=function(){return _.Y.apply(this,arguments)||this};
_.O(Od,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Od.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Od.prototype,"data",void 0);Od=_.c([_.E({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Od);
_.R(Od,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(ACr!==void 0)return ACr;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return ACr=q},{mode:1});var JCa;var oe=function(){return _.Y.apply(this,arguments)||this};
_.O(oe,_.Y);oe.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],oe.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],oe.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],oe.prototype,"aligment",void 0);oe=_.c([_.E({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],oe);
_.R(oe,"ytd-channel-list-sub-menu-renderer",function(){if(JCa!==void 0)return JCa;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return JCa=
q},{mode:1});var zTF;var Vg=function(){return _.Y.apply(this,arguments)||this};
_.O(Vg,_.Y);Vg.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}}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Vg.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Vg.prototype,"data",void 0);Vg=_.c([_.E({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],Vg);
_.R(Vg,"ytd-channel-sub-menu-renderer",function(){if(zTF!==void 0)return zTF;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return zTF=q},{mode:1});var a5x;var DXT;var fX=function(){var q=_.Y.apply(this,arguments)||this;q.isCompact=!1;return q};
_.O(fX,_.Y);_.x$.Object.defineProperties(fX.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var q,w;return((w=_.C((q=this.data)==null?void 0:q.endpoint,_.jw))==null?void 0:w.target)==="TARGET_NEW_WINDOW"}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],fX.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],fX.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],fX.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],fX.prototype,"isCompact",void 0);_.c([_.Z("isCompact"),_.h("design:type",Number),_.h("design:paramtypes",[])],fX.prototype,"thumbnailWidth",null);
_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],fX.prototype,"openNewWindow",null);fX=_.c([_.E({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],fX);
_.R(fX,"ytd-media-lockup-renderer",function(){if(DXT!==void 0)return DXT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return DXT=q},{mode:1});var ZBF;var m8=function(){return _.Y.apply(this,arguments)||this};
_.O(m8,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],m8.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],m8.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],m8.prototype,"data",void 0);m8=_.c([_.E({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],m8);
_.R(m8,"ytd-structured-description-channel-lockup-renderer",function(){if(ZBF!==void 0)return ZBF;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return ZBF=q},{mode:1});var pZX;var A0=function(){var q=_.Y.apply(this,arguments)||this;q.isCompact=!1;q.collections=_.T("web_modern_collections_v2");q.collectionsStackColor=_.T("modernize_structured_description_playlist_lockups_v2");return q};
_.O(A0,_.Y);A0.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",params:{isCompact:!0}},thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer"}},initialRenderPriority:_.T("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.x$.Object.defineProperties(A0.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var q,w,u,y,e,t;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(q=this.data)==null?void 0:(w=q.thumbnail)==null?void 0:w.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(u=this.data)==null?void 0:(y=u.thumbnail)==null?void 0:y.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(e=this.data)==null?void 0:(t=e.thumbnail)==
null?void 0:t.vibrantColorPalette:void 0}}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],A0.prototype,"componentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],A0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],A0.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],A0.prototype,"showSidePanelThumbnailOverlay",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],A0.prototype,"isCompact",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],A0.prototype,"collections",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],A0.prototype,"collectionsStackColor",void 0);_.c([_.Z("data"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],A0.prototype,"twoLineTitle",null);
_.c([_.Z("data","collections","collectionsStackColor"),_.h("design:type",Object),_.h("design:paramtypes",[])],A0.prototype,"collectionStack",null);A0=_.c([_.E({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],A0);
_.R(A0,"ytd-structured-description-playlist-lockup-renderer",function(){if(pZX!==void 0)return pZX;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return pZX=q},{mode:1});var $XZ;var J0=function(){return _.Y.apply(this,arguments)||this};
_.O(J0,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],J0.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],J0.prototype,"data",void 0);J0=_.c([_.E({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],J0);
_.R(J0,"ytd-structured-description-video-lockup-renderer",function(){if($XZ!==void 0)return $XZ;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return $XZ=q},{mode:2});var zN=function(){return _.Y.apply(this,arguments)||this};
_.O(zN,_.Y);
zN.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}}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],zN.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],zN.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],zN.prototype,"data",void 0);zN=_.c([_.E({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],zN);
_.R(zN,"ytd-compact-infocard-renderer",function(){if(a5x!==void 0)return a5x;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return a5x=q},{mode:1});var v_Z;var ae=function(){var q=_.Y.apply(this,arguments)||this;q.useModernCollectionsV2=_.T("web_modern_collections_v2");return q};
_.O(ae,_.Y);ae.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.x$.Object.defineProperties(ae.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.T("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.T("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.T("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ae.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],ae.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],ae.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],ae.prototype,"ytdReduxBehavior",void 0);_.c([_.v({selector:_.$H}),_.h("design:type",Object)],ae.prototype,"isGridViewEnabled",void 0);
_.c([_.Z("isGridViewEnabled"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ae.prototype,"watchFeedBigThumbs",null);_.c([_.Z("isGridViewEnabled","data"),_.v({reflectToAttribute:!0,value:"168"}),_.h("design:type",String),_.h("design:paramtypes",[])],ae.prototype,"thumbnailWidth",null);_.c([_.Z("isGridViewEnabled","data"),_.v({reflectToAttribute:!0,value:"94"}),_.h("design:type",String),_.h("design:paramtypes",[])],ae.prototype,"customThumbnailSize",null);
_.c([_.v(),_.h("design:type",Object)],ae.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ae.prototype,"useModernCollectionsV2",void 0);ae=_.c([_.E({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],ae);
_.R(ae,"ytd-compact-playlist-renderer",function(){if(v_Z!==void 0)return v_Z;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return v_Z=q},{mode:1});var bBP;var DX=function(){var q=_.Y.apply(this,arguments)||this;q.darkerDarkTheme=_.T("web_darker_dark_theme");q.roundedContainer=!0;q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return q};
_.O(DX,_.Y);_.k=DX.prototype;_.k.attached=function(){this.requestElementsPerRow()};
_.k.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"}}}};
_.k.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.k.computeViewStyle=function(q){return q.style?q.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.k.onUpdateElementsPerRowAction=function(q){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&q===1};
_.k.requestElementsPerRow=function(){_.t7(this.hostElement,"yt-request-elements-per-row")};
DX.prototype.dataChanged=DX.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],DX.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],DX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],DX.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],DX.prototype,"actionHandlerBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],DX.prototype,"data",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],DX.prototype,"hideThumbnail",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.h("design:type",String)],DX.prototype,"viewStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],DX.prototype,"darkerDarkTheme",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],DX.prototype,"roundedContainer",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],DX.prototype,"dataChanged",null);DX=_.c([_.E({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],DX);
_.R(DX,"ytd-compact-promoted-item-renderer",function(){if(bBP!==void 0)return bBP;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return bBP=q},{mode:1});var YDk;var ZX=function(){var q=_.Y.apply(this,arguments)||this;q.collections=_.T("web_modern_collections_v2");return q};
_.O(ZX,_.Y);ZX.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
ZX.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
ZX.prototype.onYtNavigate=function(q,w){var u=this;if(w.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",w)){var y=this.get("watchEndpoint.videoId",w.endpoint),e=_.X4(this.hostElement,"yt-get-current-video-id-action")[0];_.T("kevlar_mix_handle_first_endpoint_different")&&y&&e&&y!==e||(q.stopPropagation(),_.qI().getPlayerPromise().then(function(t){if(t.getPlayerState()===0&&u.data.secondaryNavigationEndpoint)var X=u.data.secondaryNavigationEndpoint;else{X=
Object.assign({},w.endpoint);var G=_.C(X.commandMetadata,_.wk);G&&(t=Math.floor(t.getCurrentTime()),G.url=_.xw(G.url,{t:t}),!_.T("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(G=_.C(X,_.LN)))&&(G.startTimeSeconds=t)}_.t7(u.hostElement,"yt-navigate",{endpoint:X})}))}};
_.x$.Object.defineProperties(ZX.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.T("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.T("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var q,w,u,y,e,t;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(q=this.data)==null?void 0:(w=q.thumbnail)==null?void 0:w.sampledThumbnailColor,vibrantColorPalette:(u=this.data)==null?void 0:(y=u.thumbnail)==null?void 0:y.vibrantColorPalette,darkColorPalette:(e=this.data)==null?void 0:(t=e.thumbnail)==null?void 0:t.darkColorPalette,experimentEnabled:this.collections}}}});
ZX.prototype.onYtNavigate=ZX.prototype.onYtNavigate;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.yL.YtEndpointBehavior),_.h("design:type",Object)],ZX.prototype,"ytEndpointBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],ZX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],ZX.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.D(_.$p),_.h("design:type",Object)],ZX.prototype,"ytdLockupBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],ZX.prototype,"ytdReduxBehavior",void 0);_.c([_.v({selector:_.$H}),_.h("design:type",Object)],ZX.prototype,"isGridViewEnabled",void 0);_.c([_.Z("isGridViewEnabled"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ZX.prototype,"watchFeedBigThumbs",null);
_.c([_.Z("isGridViewEnabled"),_.v({reflectToAttribute:!0}),_.h("design:type",String),_.h("design:paramtypes",[])],ZX.prototype,"thumbnailWidth",null);_.c([_.v(),_.h("design:type",Object)],ZX.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],ZX.prototype,"collections",void 0);_.c([_.Z("data","collections"),_.h("design:type",Object),_.h("design:paramtypes",[])],ZX.prototype,"collectionStack",null);
_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],ZX.prototype,"onYtNavigate",null);ZX=_.c([_.E({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],ZX);
_.R(ZX,"ytd-compact-radio-renderer",function(){if(YDk!==void 0)return YDk;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return YDk=q},{mode:1});var g_a;var pX=function(){return _.Y.apply(this,arguments)||this};
_.O(pX,_.Y);pX.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
pX.prototype.computeRendererStyle=function(q){return q.style?q.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.c([_.v(),_.h("design:type",Object)],pX.prototype,"data",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],pX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],pX.prototype,"rendererBehavior",void 0);_.c([_.v({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.h("design:type",String)],pX.prototype,"rendererStyle",void 0);
pX=_.c([_.E({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],pX);
_.R(pX,"ytd-compact-text-promo-renderer",function(){if(g_a!==void 0)return g_a;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return g_a=q},{mode:1});var E_r;var $0=function(){var q=_.Y.apply(this,arguments)||this;q.isShortsStyle=!1;return q};
_.O($0,_.Y);_.k=$0.prototype;_.k.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"}}}};
_.k.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.t7(this.hostElement,"yt-disable-lockup-interaction"):_.t7(this.hostElement,"yt-enable-lockup-interaction"))};
_.k.isMetaBlockEmpty=function(q){return!q||!q.longBylineText&&!q.shortBylineText&&!q.shortViewCountText&&!q.viewCountText};
_.k.computeHasOneLineTitle=function(q){return this.forceOneLineTitle||!(q==null||!q.buttons)};
_.k.computeDisableInteraction=function(){var q;return!((q=this.data)==null?0:q.navigationEndpoint)};
_.k.hasSingularTopStandaloneBadge=function(){var q;return!((q=this.data)==null||!q.topStandaloneBadge)};
_.x$.Object.defineProperties($0.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.T("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.T("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}},
topBadges:{configurable:!0,enumerable:!0,get:function(){var q;return this.hasSingularTopStandaloneBadge()?[(q=this.data)==null?void 0:q.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var q;return this.shouldShowTopBadges?((q=this.data)==null?void 0:q.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
$0.prototype.disableInteractionChanged=$0.prototype.disableInteractionChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],$0.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],$0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],$0.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.D(_.$p),_.h("design:type",Object)],$0.prototype,"ytdLockupBehavior",void 0);
_.c([_.D(_.fU),_.h("design:type",Object)],$0.prototype,"ytdReduxBehavior",void 0);_.c([_.v({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.h("design:type",Boolean)],$0.prototype,"metaBlockEmpty",void 0);_.c([_.v({selector:_.$H}),_.h("design:type",Object)],$0.prototype,"isGridViewEnabled",void 0);_.c([_.Z("isGridViewEnabled"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$0.prototype,"watchFeedBigThumbs",null);
_.c([_.Z("isGridViewEnabled"),_.v({reflectToAttribute:!0}),_.h("design:type",String),_.h("design:paramtypes",[])],$0.prototype,"thumbnailWidth",null);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],$0.prototype,"isShortsStyle",void 0);_.c([_.v(),_.h("design:type",Object)],$0.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.h("design:type",Boolean)],$0.prototype,"hasOneLineTitle",void 0);
_.c([_.v(),_.h("design:type",Boolean)],$0.prototype,"hideThumbnail",void 0);_.c([_.v(),_.h("design:type",Boolean)],$0.prototype,"forceOneLineTitle",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.h("design:type",Boolean)],$0.prototype,"disableInteraction",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],$0.prototype,"musicMetadataVideoLockup",void 0);
_.c([_.nL("disableInteraction"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$0.prototype,"disableInteractionChanged",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$0.prototype,"shouldShowTopBadges",null);_.c([_.Z("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],$0.prototype,"topBadges",null);
_.c([_.Z("shouldShowTopBadges","data"),_.h("design:type",Array),_.h("design:paramtypes",[])],$0.prototype,"inlineMetadataBadges",null);_.c([_.Z("shouldShowTopBadges"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$0.prototype,"shouldShowBadgesBelowMetadata",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],$0.prototype,"compactTitleClass",null);$0=_.c([_.E({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],$0);
_.R($0,"ytd-compact-video-renderer",function(){if(E_r!==void 0)return E_r;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return E_r=q},{mode:_.kB("kevlar_poly_si_batch_j067")?1:2});var RTa;_.JE("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var vb=function(){return _.Y.apply(this,arguments)||this};
_.O(vb,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],vb.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],vb.prototype,"data",void 0);vb=_.c([_.E({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],vb);
_.R(vb,"ytd-counterfactual-renderer",function(){if(RTa!==void 0)return RTa;var q=document.createElement("template");_.f(q,"\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");q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return RTa=q},{mode:1});var cCj;var bX=function(){var q=_.Y.apply(this,arguments)||this;q.hidden=!1;return q};
_.O(bX,_.Y);bX.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.tG().resolve(_.PG).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
bX.prototype.computeHidden=function(q){return!!q};
_.x$.Object.defineProperties(bX.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}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],bX.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],bX.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.h("design:type",Object)],bX.prototype,"hidden",void 0);_.c([_.Z("data.label"),_.h("design:type",String),_.h("design:paramtypes",[])],bX.prototype,"label",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],bX.prototype,"value",null);
bX=_.c([_.E({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],bX);
_.R(bX,"ytd-dropdown-item-renderer",function(){if(cCj!==void 0)return cCj;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return cCj=q},{mode:1});var SDj;var hTj;var Y0=function(){return _.Y.apply(this,arguments)||this};
_.O(Y0,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Y0.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Y0.prototype,"data",void 0);_.c([_.v({computed:"getSimpleString(data.label)"}),_.h("design:type",String)],Y0.prototype,"label",void 0);Y0=_.c([_.E({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Y0);
_.R(Y0,"ytd-navigation-dropdown-item-renderer",function(){if(hTj!==void 0)return hTj;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return hTj=q},{mode:1});var gp=function(){var q=_.Y.apply(this,arguments)||this;q.disabled=!1;q.value="";q.noLabelFloat=!1;q.noUnderline=!1;q.usePrimaryColor=!1;q.hasBackground=!1;q.verticalAlign="top";q.autosize=!1;q.minAutosizeWidth=100;q.autosizeFont="14px Roboto";return q};
_.O(gp,_.Y);_.k=gp.prototype;_.k.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"}}}};
_.k.open=function(){this.inputEl.open()};
_.k.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.k.dataChanged=function(){this.reset()};
_.k.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.D1("value-changed",this.value))};
_.k.stopPropagation=function(q){q.stopPropagation()};
_.k.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var q=this.canvas.getContext("2d");q&&(q.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(q.measureText(this.inputEl.value).width)+24)+"px")}};
_.k.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var q=0,w=this.data.entries.length;q<w;q++){var u=this.data.entries[q],y;for(y in u)if(u.hasOwnProperty(y)){var e=u[y];if("isSelected"in e&&e.isSelected)return"stringValue"in e?e.stringValue||"":"int32Value"in e?e.int32Value||0:0}}return null};
_.k.updateValueFromBinding=function(q){this.value=q.detail.value};
_.x$.Object.defineProperties(gp.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 q=0,w=this.data.entries.length;q<w;q++){var u=this.data.entries[q],y;for(y in u)if(u.hasOwnProperty(y)){var e=u[y];if("isSelected"in e&&e.isSelected&&"label"in e)return this.ytRendererBehavior.getSimpleString(e.label)}}return null}}});
gp.prototype.autoSizeLabel=gp.prototype.autoSizeLabel;gp.prototype.stopPropagation=gp.prototype.stopPropagation;gp.prototype.valueChangedForBinding=gp.prototype.valueChangedForBinding;gp.prototype.dataChanged=gp.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],gp.prototype,"ytRendererStamperBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],gp.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],gp.prototype,"disabled",void 0);_.c([_.v(),_.h("design:type",Object)],gp.prototype,"value",void 0);_.c([_.v(),_.h("design:type",Object)],gp.prototype,"noLabelFloat",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],gp.prototype,"noUnderline",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],gp.prototype,"theme",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],gp.prototype,"usePrimaryColor",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],gp.prototype,"hasBackground",void 0);_.c([_.v(),_.h("design:type",Object)],gp.prototype,"verticalAlign",void 0);_.c([_.v(),_.h("design:type",Object)],gp.prototype,"autosize",void 0);_.c([_.v(),_.h("design:type",Object)],gp.prototype,"minAutosizeWidth",void 0);_.c([_.v(),_.h("design:type",Object)],gp.prototype,"autosizeFont",void 0);
_.c([_.Wj("#entries"),_.h("design:type",Object)],gp.prototype,"entries",void 0);_.c([_.Wj("#input"),_.h("design:type",Object)],gp.prototype,"inputEl",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gp.prototype,"dataChanged",null);_.c([_.I9("value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gp.prototype,"valueChangedForBinding",null);
_.c([_.Gm("iron-overlay-opened"),_.Gm("iron-overlay-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],gp.prototype,"stopPropagation",null);_.c([_.Gm("iron-select"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gp.prototype,"autoSizeLabel",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],gp.prototype,"label",null);
gp=_.c([_.E({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],gp);
_.R(gp,"ytd-dropdown-renderer",function(){if(SDj!==void 0)return SDj;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return SDj=q},{mode:1});var jIF;var Ed=function(){var q=_.Y.apply(this,arguments)||this;q.isConstrainedList=!1;return q};
_.O(Ed,_.Y);Ed.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"}}}};
Ed.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
Ed.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
Ed.prototype.computeViewAllHidden=function(q,w){return q||!w.viewAllEndpoint};
Ed.prototype.fillRestIfNoShowMore=Ed.prototype.fillRestIfNoShowMore;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ed.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ed.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.LU.YtLazyListBehavior),_.h("design:type",Object)],Ed.prototype,"ytLazyListBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ed.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ed.prototype,"isConstrainedList",void 0);_.c([_.I9("data","canShowMore"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ed.prototype,"fillRestIfNoShowMore",null);Ed=_.c([_.E({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],Ed);
_.R(Ed,"ytd-expanded-shelf-contents-renderer",function(){if(jIF!==void 0)return jIF;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return jIF=q},{mode:_.kB("kevlar_poly_si_batch_j025")?1:2});var l5r;var Re=function(){return _.Y.apply(this,arguments)||this};
_.O(Re,_.Y);Re.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}}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Re.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Re.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Re.prototype,"data",void 0);Re=_.c([_.E({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Re);
_.R(Re,"ytd-feed-channel-filter-header-renderer",function(){if(l5r!==void 0)return l5r;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return l5r=q},{mode:1});var Lyc;var MyP;var Kyx;var cb=function(){return _.Y.apply(this,arguments)||this};
_.O(cb,_.Y);_.k=cb.prototype;_.k.onClick=function(q){var w,u=(w=this.data)==null?void 0:w.sectionEndpoint;!_.LT(_.SQ(q),this.hostElement,["A".toString()])&&u&&_.t7(this.hostElement,"yt-navigate",{endpoint:u})};
_.k.computeHasSectionEndpoint=function(q){return(q==null?void 0:q.sectionEndpoint)!==void 0};
_.k.computeShowHeaderAsLink=function(q){return(q==null?void 0:q.header)!==void 0&&(q==null?void 0:q.sectionEndpoint)!==void 0};
_.k.computeShowSubheaderAsLink=function(q){return(q==null?void 0:q.subheader)!==void 0&&(q==null?void 0:q.sectionEndpoint)!==void 0&&(q==null?void 0:q.header)===void 0};
_.k.getHeaderAsLinkClass=function(q){var w=[],u;(q==null?0:(u=q.headerIcon)==null?0:u.iconType)&&w.push("header-link-active");return w.join(" ")};
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],cb.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],cb.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],cb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],cb.prototype,"data",void 0);
_.c([_.v({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],cb.prototype,"hasSectionEndpoint",void 0);_.c([_.v({computed:"computeShowHeaderAsLink(data)"}),_.h("design:type",Boolean)],cb.prototype,"showHeaderAsLink",void 0);_.c([_.v({computed:"computeShowSubheaderAsLink(data)"}),_.h("design:type",Boolean)],cb.prototype,"showSubheaderAsLink",void 0);cb=_.c([_.E({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],cb);
_.R(cb,"ytd-medical-panel-section-renderer",function(){if(Kyx!==void 0)return Kyx;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Kyx=q},{mode:1});var S1=function(){var q=_.Y.apply(this,arguments)||this;q.isExpanded=!1;q.roundedContainer=!0;q.skipRoundingTop=!1;q.toggleExpandableSection=function(){q.isExpanded=!q.isExpanded};
return q};
_.O(S1,_.Y);
S1.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]]"}}}}}};
S1.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
S1.prototype.dataChanged=S1.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],S1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],S1.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],S1.prototype,"isExpanded",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],S1.prototype,"roundedContainer",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],S1.prototype,"skipRoundingTop",void 0);_.c([_.v(),_.h("design:type",Object)],S1.prototype,"toggleExpandableSection",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],S1.prototype,"dataChanged",null);S1=_.c([_.E({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],S1);
_.R(S1,"ytd-medical-panel-content-renderer",function(){if(MyP!==void 0)return MyP;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return MyP=q},{mode:1});_.JE("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var h0=function(){var q=_.Y.apply(this,arguments)||this;q.roundedContainer=!0;q.amsterdamEnabled=_.T("enable_desktop_amsterdam_info_panels");q.hasTitle=!1;q.linkIcon="OPEN_IN_NEW";q.isDismissed=!1;return q};
_.O(h0,_.Y);
h0.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"}}}};
h0.prototype.computeHasTitle=function(q){return!(q==null||!q.title)};
h0.prototype.onClick=function(q){var w,u=(w=this.data)==null?void 0:w.headerEndpoint;!_.LT(_.SQ(q),this.hostElement,["BUTTON".toString()])&&u&&this.ytComponentBehavior.resolveCommand(u)};
_.x$.Object.defineProperties(h0.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 q;return((q=this.data)==null?void 0:q.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.data)==null?void 0:q.disableBottomDivider)||!((w=this.data)==null?0:w.title)}}});
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],h0.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],h0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],h0.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],h0.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],h0.prototype,"roundedContainer",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],h0.prototype,"amsterdamEnabled",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.h("design:type",Object)],h0.prototype,"hasTitle",void 0);
_.c([_.v({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Z("data.background"),_.h("design:type",Object),_.h("design:paramtypes",[])],h0.prototype,"background",null);_.c([_.v({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Z("data.titleStyle"),_.h("design:type",Object),_.h("design:paramtypes",[])],h0.prototype,"titleStyle",null);
_.c([_.v({type:_.T("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.Z("data.titleStyle"),_.h("design:type",Object),_.h("design:paramtypes",[])],h0.prototype,"showLinkIcon",null);_.c([_.v(),_.h("design:type",String)],h0.prototype,"linkIcon",void 0);_.c([_.v({type:_.T("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],h0.prototype,"hideDivider",null);
_.c([_.v({selectorArgs:["data.dismissStateEntityKey"],selector:function(q,w){q=_.HQ(q.entities,"dismissState",w);return(q==null?void 0:q.isDismissed)||(q==null?void 0:q.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(q==null?void 0:q.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.h("design:type",Object)],h0.prototype,"isDismissed",void 0);h0=_.c([_.E({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],h0);
_.R(h0,"ytd-info-panel-container-renderer",function(){if(Lyc!==void 0)return Lyc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Lyc=q},{mode:1});var BF$;_.JE("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var j1=function(){var q=_.Y.apply(this,arguments)||this;q.modernTypography=_.T("web_modern_typography");return q};
_.O(j1,_.Y);j1.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
j1.prototype.computeStyle=function(q){return q?q:""};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],j1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],j1.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.h("design:type",String)],j1.prototype,"titleStyle",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],j1.prototype,"modernTypography",void 0);j1=_.c([_.E({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],j1);
_.R(j1,"ytd-item-section-header-renderer",function(){if(BF$!==void 0)return BF$;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return BF$=q},{mode:1});var xX6;var q5Z,wE3=function(){return q5Z!==void 0?q5Z:q5Z=document.createElement("template")};
document.head.appendChild(wE3().content);var uPx;_.lX=new _.MH("VOTING_ANIMATION_CONTROLLER_TOKEN");var eLa=_.LL(function(q){var w=q.data;var u=_.Bm(),y=_.Bm();q=_.P(_.r4("VOTE_STATUS_NONE",void 0,"FVF7mc"));var e=q.next().value,t=q.next().value,X=_.Qo(hRM,function(){var U;return(U=w())==null?void 0:U.entityKey}),G=_.T("web_enable_voting_animation")||_.T("enable_music_web_cairo_voting_animation");
_.p4(function(){var U;((U=w().initialState)==null?0:U.status)&&t(w().initialState.status)});
var n=function(){var U,d,V=(d=(U=w().initialState)==null?void 0:U.votes)!=null?d:0,J;U=(J=w().initialState)==null?void 0:J.status;return U==="VOTE_STATUS_UPVOTED"?V-1:U==="VOTE_STATUS_DOWNVOTED"?V+1:V},N=function(){return e()==="VOTE_STATUS_UPVOTED"?n()+1:e()==="VOTE_STATUS_DOWNVOTED"?n()-1:n()},Q=function(U){var d=U?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
t(d);var V=N(),J=_.tG().resolve(_.kF(_.lX)),a=X();a&&(U&&(a==null?0:a.upvoteDefaultButtonOnTap)?_.bn(a.upvoteDefaultButtonOnTap,{form:{element:u.value},disableClickTracking:!0}):(a==null?0:a.upvoteToggledButtonOnTap)&&_.bn(a.upvoteToggledButtonOnTap,{form:{element:u.value},disableClickTracking:!0}));var b;U=(b=a==null?void 0:a.enableOptimisticReordering)!=null?b:w().enableOptimisticReordering;G&&J&&w().itemId&&U&&yjF(J,w().itemId,V,d)},I=function(U){var d=U?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
t(d);var V=N(),J=_.tG().resolve(_.kF(_.lX)),a=X();a&&(U&&(a==null?0:a.downvoteDefaultButtonOnTap)?_.bn(a.downvoteDefaultButtonOnTap,{form:{element:y.value},disableClickTracking:!0}):(a==null?0:a.downvoteToggledButtonOnTap)&&_.bn(a.downvoteToggledButtonOnTap,{form:{element:y.value},disableClickTracking:!0}));var b;U=(b=a==null?void 0:a.enableOptimisticReordering)!=null?b:w().enableOptimisticReordering;G&&J&&w().itemId&&U&&yjF(J,w().itemId,V,d)};
q={};q=_.HR("ytVotingViewModelVoteCount",(q.ytVotingViewModelVoteCountDisabled=function(){return w().isDisabled},q));
return _.W("voting-view-model",{class:"ytVotingViewModelHost"},_.W("div",{el:u},_.W(_.OF,{data:function(){var U=_.C(w().upvoteButton,_.Vo);return{toggleButtonViewModel:Object.assign({},U,{isToggled:e()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(U){return _.W(_.fr,{data:U.data,
onToggle:Q})}})),_.W("div",{class:q},function(){var U,d,V;
return e()==="VOTE_STATUS_UPVOTED"?(U=w().initialState)==null?void 0:U.compactVotesUpvoted:e()==="VOTE_STATUS_DOWNVOTED"?(d=w().initialState)==null?void 0:d.compactVotesDownvoted:(V=w().initialState)==null?void 0:V.compactVotes}),_.W("div",{el:y},_.W(_.OF,{data:function(){var U=_.C(w().downvoteButton,_.Vo);
return{toggleButtonViewModel:Object.assign({},U,{isToggled:e()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(U){return _.W(_.fr,{data:U.data,
onToggle:I})}})))},"Db");_.q9(_.LL(function(q){var w=q.data;return _.W("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.W("div",{class:_.HR("ytEngagementBarViewModelEngagementBarWrapper",q.className)},_.W(_.OF,{data:function(){return w().actions}},{votingViewModel:eLa})))},"Eb"),"engagement-bar-view-model",{props:{data:_.pK,
className:_.pK}});var LX=function(){var q=_.Y.apply(this,arguments)||this;q.amsterdamPostMvp=_.T("web_amsterdam_post_mvp_playlists");q.cairoCollabPlaylistPostMvp=_.T("web_collab_playlist_thumbnail_size");q.playlistVotingAnimationEnabled=_.T("web_enable_voting_animation");q.downloadProgress=0;q.transferState="TRANSFER_STATE_UNKNOWN";q.downloadState="DOWNLOAD_STATE_UNKNOWN";q.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";q.offlineVideoPolicyExpirationTimestamp=0;return q};
_.O(LX,_.Y);_.k=LX.prototype;_.k.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"}}}};
_.k.canReorderChanged=function(){this.persistentDragHandle=_.T("kevlar_playlist_drag_handles")&&this.canReorder};
_.k.onDrag=function(){if(this.thumbnail){var q=_.A(this.thumbnail).querySelector("yt-image");q&&(q.shouldRenderLazy=!1)}};
_.k.onMenuOverlayChanged=function(q,w){this.menuOpened=w};
_.k.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.k.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.k.onContentsTap=function(q){var w,u=(w=this.data)==null?void 0:w.serviceEndpoints;if(u&&u.length===1&&_.C(u[0],qRj)&&!_.LT(_.SQ(q),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(u[0]);else{var y;(w=(y=this.data)==null?void 0:y.navigationEndpoint)&&_.T("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?klG(_.tG().resolve(_.$X),w):(_.Hh().playlistSuggestionsShelfActivation=
!0,_.tdF(_.tG().resolve(_.$X),w)):w&&!_.LT(_.SQ(q),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.T("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.t7(this.hostElement,"yt-navigate",{endpoint:w}):this.ytComponentBehavior.resolveCommand(w))}};
_.k.computeStyle=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.k.computeThumbnailWidth=function(q){return q==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.k.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=Xhu(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))}};
_.k.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.k.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.k.dataChanged=function(){if(this.data){var q,w,u,y=((q=this.downloadRenderData)==null?void 0:q.badges)&&((w=this.downloadRenderData)==null?void 0:w.badges)!==((u=this.data)==null?void 0:u.badges),e,t,X;q=((e=this.downloadRenderData)==null?void 0:e.thumbnailOverlays)&&((t=this.downloadRenderData)==null?void 0:t.thumbnailOverlays)!==((X=this.data)==null?void 0:X.thumbnailOverlays);(!this.downloadRenderData||y||q)&&this.downloadStateChanged()}};
_.k.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var q,w,u=(q=this.data.menu)==null?void 0:(w=q.menuRenderer)==null?void 0:w.items;if(u)for(q=_.P(u),w=q.next();!w.done;w=q.next())if(w=w.value,u=void 0,_.C((u=w.menuServiceItemRenderer)==null?void 0:u.serviceEndpoint,_.AO)){var y=u=void 0,e=void 0;w=(u=w)==null?void 0:(y=u.menuServiceItemRenderer)==null?void 0:(e=y.serviceEndpoint)==null?void 0:e.playlistEditEndpoint;e=y=void 0;if(u=(y=w)==null?void 0:(e=y.actions)==null?void 0:
e[0])y=void 0,u.setVideoId=(y=this.data)==null?void 0:y.setVideoId;e=y=u=void 0;if(w=(u=w)==null?void 0:(y=u.clientActions)==null?void 0:(e=y[0])==null?void 0:e.playlistRemoveVideosAction)u=void 0,w.setVideoIds=[(u=this.data)==null?void 0:u.setVideoId]}}};
_.x$.Object.defineProperties(LX.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
LX.prototype.setVideoIdChanged=LX.prototype.setVideoIdChanged;LX.prototype.dataChanged=LX.prototype.dataChanged;LX.prototype.downloadStateChanged=LX.prototype.downloadStateChanged;LX.prototype.onMenuOverlayChanged=LX.prototype.onMenuOverlayChanged;LX.prototype.canReorderChanged=LX.prototype.canReorderChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],LX.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],LX.prototype,"ytdReduxBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],LX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.$p),_.h("design:type",Object)],LX.prototype,"ytdLockupBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],LX.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],LX.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],LX.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],LX.prototype,"amsterdamPostMvp",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],LX.prototype,"canReorder",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],LX.prototype,"menuOpened",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],LX.prototype,"handleIsHovered",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],LX.prototype,"persistentDragHandle",void 0);
_.c([_.v(),_.h("design:type",Object)],LX.prototype,"downloadRenderData",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],LX.prototype,"styleType",void 0);_.c([_.v({computed:"computeThumbnailWidth(data.style)"}),_.h("design:type",Number)],LX.prototype,"thumbnailWidth",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],LX.prototype,"isDownloads",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],LX.prototype,"cairoCollabPlaylistPostMvp",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],LX.prototype,"playlistVotingAnimationEnabled",void 0);_.c([_.v({selector:vQ,selectorArgs:["data.videoId"]}),_.h("design:type",Object)],LX.prototype,"downloadProgress",void 0);_.c([_.v(),_.h("design:type",Number)],LX.prototype,"relativeDateReference",void 0);
_.c([_.v({selector:_.pa,selectorArgs:["data.videoId"]}),_.h("design:type",Object)],LX.prototype,"transferState",void 0);_.c([_.v({selector:zIM,selectorArgs:["data.videoId"]}),_.h("design:type",Object)],LX.prototype,"downloadState",void 0);_.c([_.v({selector:IEf,selectorArgs:["data.videoId"]}),_.h("design:type",Object)],LX.prototype,"offlinePolicyAction",void 0);_.c([_.v({selector:iGM,selectorArgs:["data.videoId"]}),_.h("design:type",Object)],LX.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.c([_.v({selector:UYl,selectorArgs:["data.videoId"]}),_.h("design:type",Object)],LX.prototype,"entityInfo",void 0);_.c([_.v({selector:_.DV}),_.h("design:type",Boolean)],LX.prototype,"miniplayerIsActive",void 0);_.c([_.Z("data"),_.h("design:type",String),_.h("design:paramtypes",[])],LX.prototype,"playlistVideoId",null);_.c([_.Wj("#thumbnail"),_.h("design:type",Object)],LX.prototype,"thumbnail",void 0);
_.c([_.I9("canReorder"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LX.prototype,"canReorderChanged",null);_.c([_.Gm("yt-menu-overlay-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Boolean]),_.h("design:returntype")],LX.prototype,"onMenuOverlayChanged",null);
_.c([_.I9("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LX.prototype,"downloadStateChanged",null);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LX.prototype,"dataChanged",null);
_.c([_.I9("data.setVideoId"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LX.prototype,"setVideoIdChanged",null);LX=_.c([_.E({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],LX);
_.R(LX,"ytd-playlist-video-renderer",function(){if(uPx!==void 0)return uPx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);q.content.insertBefore(wE3().content.cloneNode(!0),q.content.firstChild);return uPx=q},{mode:1});var Pu6;var M8=function(){return _.Y.apply(this,arguments)||this};
_.O(M8,_.Y);_.c([_.v(),_.h("design:type",Object)],M8.prototype,"data",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],M8.prototype,"rendererBehavior",void 0);M8=_.c([_.E({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],M8);
_.R(M8,"ytd-premium-browse-footer-renderer",function(){if(Pu6!==void 0)return Pu6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Pu6=q},{mode:1});var XEG;var KX=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return q};
_.O(KX,_.Y);_.k=KX.prototype;_.k.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.k.handleDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.k.computeHeaderLogoThumbnail=function(q,w){if(q)return w?q.darkLogo:q.lightLogo};
_.k.computeHeaderLogoHeight=function(q,w){var u,y,e;return(q=(u=this.computeHeaderLogoThumbnail(q,w))==null?void 0:(y=u.thumbnails)==null?void 0:(e=y[0])==null?void 0:e.height)&&q%31===0?"31":"24"};
_.k.computeHeaderLogoMarginBottom=function(q,w){return this.computeHeaderLogoHeight(q,w)==="24"?"0":"-7"};
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],KX.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],KX.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],KX.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],KX.prototype,"isDarkTheme",void 0);_.c([_.v({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.h("design:type",Object)],KX.prototype,"themeLogo",void 0);
_.c([_.v({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.h("design:type",String)],KX.prototype,"logoHeight",void 0);_.c([_.v({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.h("design:type",String)],KX.prototype,"logoMarginBottom",void 0);KX=_.c([_.E({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],KX);
_.R(KX,"ytd-primetime-promo-header-renderer",function(){if(XEG!==void 0)return XEG;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return XEG=q},{mode:1});var FBr;_.t2(LzM);var Gl$=_.LL(function(q){var w=q.text;var u=q.className;var y=q.tagLevel;return _.W(_.zS,null,_.W(_.AP,{when:function(){return(y==null?void 0:y())===0}},function(){return _.W("h2",{class:u},w())}),_.W(_.AP,{when:function(){return(y==null?void 0:y())===1}},function(){return _.W("h3",{class:u},w())}),_.W(_.AP,{when:function(){return(y==null?void 0:y())===2}},function(){return _.W("h4",{class:u},w())}),_.W(_.JP,null,function(){return _.W("h2",{class:u},w())}))},"Fb"),nhr=_.LL(function(q){var w=_.QS(function(e){var t;
(t=q.onClick)==null||t.call(q,e)}),u={},y={};
return _.W("yt-shelf-header-layout",{class:_.HR("shelf-header-layout-wiz",(u["shelf-header-layout-wiz--disable-horizontal-padding"]=q.disableHorizontalPadding,u["shelf-header-layout-wiz--disable-vertical-padding"]=q.disableVerticalPadding,u["shelf-header-layout-wiz--responsive"]=q.useResponsiveLayout,u["shelf-header-layout-wiz--narrow"]=function(){var e,t;return((e=q.useResponsiveLayout)==null?void 0:e.call(q))&&((t=q.forceSmallLayout)==null?void 0:t.call(q))},u["shelf-header-layout-wiz--is-overlay"]=
q.isOverlay,u["shelf-header-layout-wiz--tappable"]=!!q.onClick,u)),
"on:click":w,tabindex:q.onClick?0:void 0},_.W(_.r,{cond:q.leadingIcon,then:function(e){return _.W("div",{class:"shelf-header-layout-wiz__leading-icon"},_.W(_.U3,{icon:e}))},
else:function(){return _.W(_.r,{cond:q.hasLeadingImage,then:function(){var e,t={};return _.W("div",{class:_.HR("shelf-header-layout-wiz__leading-image",(t["shelf-header-layout-wiz__leading-image--circular-image"]=q.circularImage,t))},(e=q.leadingImage)==null?void 0:e.call(q))}})}}),_.W("div",{class:"shelf-header-layout-wiz__label-container"},_.W(_.r,{cond:q.hasSuperlabel,
then:function(){var e;return _.W("div",{class:"shelf-header-layout-wiz__superlabel"},(e=q.superlabel)==null?void 0:e.call(q))}}),_.W("div",{class:"shelf-header-layout-wiz__title-row"},_.W(Gl$,{text:q.title,
className:_.HR("shelf-header-layout-wiz__title",(y["shelf-header-layout-wiz__title--small-title"]=q.forceSmallLayout,y)),tagLevel:q.tagLevel}),_.W(_.r,{cond:q.hasDetail,then:function(){var e;return _.W("div",{class:"shelf-header-layout-wiz__detail"},(e=q.detail)==null?void 0:e.call(q))}})),_.W(_.r,{cond:q.hasSublabel,
then:function(){var e;return _.W("div",{class:"shelf-header-layout-wiz__sublabel"},(e=q.sublabel)==null?void 0:e.call(q))}})),_.W(_.r,{cond:q.hasTrailingActions,
then:function(){var e;return _.W("div",{class:"shelf-header-layout-wiz__trailing-actions"},(e=q.trailingActions)==null?void 0:e.call(q))}}))},"Gb"),u_7=_.T("web_enable_sink_section_header")?nhr:LzM,HZa=_.T("web_enable_sink_section_header")?nhr:_.N9(LzM,{callbacks:{title:!0,
detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}});nhr.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};var wp6=_.UF({flexibleActionsViewModel:Svk});_.t2(ySl);var QtG;QtG=_.LL(function(q){var w=q.data;return _.W("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:_.rm({"background-color":function(){return jFf(w().backgroundColor)?_.Je(jFf(w().backgroundColor)):void 0}})},_.W(HZa,{hasDetail:!1,
title:function(){return _.W(_.Lr,{text:function(){return w().headline}})},
hasTitle:!0,sublabel:function(){return _.W(WBF,{data:w})},
hasSublabel:function(){return!!w().sublabel||!!w().bottomBadge},
superlabel:function(){return _.W(stP,{data:w})},
hasSuperlabel:function(){return!!w().superlabel||!!w().topBadge},
leadingImage:function(){return _.W(NwF,{leadingAccessory:function(){return w().leadingAccessory}})},
hasLeadingImage:function(){return!!w().leadingAccessory},
trailingActions:function(){return _.W(_.OF,{data:function(){return w().trailingActions}},{flexibleActionsViewModel:du})},
hasTrailingActions:function(){return!!w().trailingActions},
disableHorizontalPadding:q.disableHorizontalPadding,disableVerticalPadding:q.disableVerticalPadding,forceSmallLayout:q.forceSmallLayout,useResponsiveLayout:q.useResponsiveLayout,isOverlay:q.isOverlay,onClick:function(u){if(_.gE(w().rendererContext)){var y=_.YH(w().rendererContext);y&&_.px(y,{form:{element:u.target,event:u}})}}}))},"Hb");
_.Bb=_.T("web_enable_sink_section_header")?QtG:_.N9(ySl);QtG.idomCompat=!0;var NwF=_.LL(function(q){var w=q.leadingAccessory;return _.W(_.GS,null,_.W(_.r,{cond:function(){var u;return(u=w().image)!=null?u:_.lq(w().themedImage)},
then:function(u){return _.W(_.ln,{data:u,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.W(_.r,{cond:function(){return _.C(w().avatar,_.RH)},
then:function(u){return _.W(_.Vb,{data:u})}}))},"Ib"),WBF=_.LL(function(q){var w=q.data;
return _.W(_.GS,null,_.W(_.r,{cond:function(){return _.C(w().bottomBadge,Kzo)},
then:function(u){var y={};return _.W(_.hi,{data:u,class:_.HR((y.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!u()&&!!w().sublabel},y))})}}),_.W(_.r,{cond:function(){return w().sublabel},
then:function(u){return _.W(_.Lr,{text:u})}}))},"Jb"),stP=_.LL(function(q){var w=q.data;
return _.W(_.GS,null,_.W(_.r,{cond:function(){return _.C(w().topBadge,Kzo)},
then:function(u){var y={};return _.W(_.hi,{data:u,class:_.HR((y.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!u()&&!!w().superlabel},y))})}}),_.W(_.r,{cond:function(){return w().superlabel},
then:function(u){return _.W(_.Lr,{text:u})}}))},"Kb");_.q9(_.Bb,"yt-section-header-view-model",{props:{data:_.pK,className:_.pK,disableHorizontalPadding:_.pK,disableVerticalPadding:_.pK,forceSmallLayout:_.pK,useResponsiveLayout:_.pK,isOverlay:_.pK}});_.JE("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var x0=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return q};
_.O(x0,_.Y);_.k=x0.prototype;_.k.attached=function(){this.requestElementsPerRow()};
_.k.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"}}}};
_.k.onDataChange=function(){var q=this;_.KJ(this,function(){q.updateItemVisibility()})};
_.k.onUpdateElementsPerRowAction=function(q){q&&this.elementsPerRow!==q&&(this.elementsPerRow=q,this.updateItemVisibility())};
_.k.updateItemVisibility=function(){var q=this;this.data&&this.data.panels&&_.A(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(w,u){w.hidden=u>q.elementsPerRow-1})};
_.k.requestElementsPerRow=function(){_.t7(this.hostElement,"yt-request-elements-per-row")};
x0.prototype.onDataChange=x0.prototype.onDataChange;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],x0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],x0.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],x0.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],x0.prototype,"actionHandlerBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],x0.prototype,"data",void 0);_.c([_.v({value:3}),_.h("design:type",Number)],x0.prototype,"elementsPerRow",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],x0.prototype,"onDataChange",null);x0=_.c([_.E({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],x0);
_.R(x0,"ytd-primetime-promo-renderer",function(){if(FBr!==void 0)return FBr;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return FBr=q},{mode:1});var IoG;var qi=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return q};
_.O(qi,_.Y);qi.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
qi.prototype.handleButtonRefreshAction=function(q){if(q=_.C(q,nX6))this.set("data.button",q.membershipButton),this.notifyPath("data.button")};
_.x$.Object.defineProperties(qi.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.data)==null?void 0:(w=q.avatars)==null?void 0:w.slice(0,8))||[]}}});
_.c([_.v(),_.h("design:type",Object)],qi.prototype,"data",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],qi.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],qi.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],qi.prototype,"rendererBehavior",void 0);_.c([_.Z("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],qi.prototype,"avatars",null);
qi=_.c([_.E({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],qi);
_.R(qi,"ytd-recognition-shelf-renderer",function(){if(IoG!==void 0)return IoG;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return IoG=q},{mode:1});var iZP;var rjF;var w2=function(){var q=_.Y.apply(this,arguments)||this;q.modernButtons=_.T("web_modern_buttons");return q};
_.O(w2,_.Y);_.k=w2.prototype;
_.k.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]]"}},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]]"}}}}}};
_.k.dataChanged=function(){this.collapsed=!0};
_.k.computeVisibleItems=function(q,w){return q!==void 0&&q.items?w?q.items.slice(0,this.data.collapsedItemCount):q.items:[]};
_.k.computeHideShowMore=function(q,w,u){return q>=w||!u};
_.k.computeHideShowAll=function(q,w,u){return!(q&&w)||u};
_.k.onMoreClick=function(){this.collapsed=!1};
_.x$.Object.defineProperties(w2.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.T("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
w2.prototype.dataChanged=w2.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],w2.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],w2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],w2.prototype,"data",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],w2.prototype,"isSearch",void 0);
_.c([_.v({computed:"computeVisibleItems(data,collapsed)"}),_.h("design:type",Array)],w2.prototype,"visibleItems",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],w2.prototype,"collapsed",void 0);_.c([_.v({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.h("design:type",Boolean)],w2.prototype,"hideShowMore",void 0);
_.c([_.v({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.h("design:type",Boolean)],w2.prototype,"hideShowAll",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],w2.prototype,"modernButtons",void 0);_.c([_.Z("isSearch"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],w2.prototype,"typographyBump",null);
_.c([_.Z("isSearch"),_.h("design:type",String),_.h("design:paramtypes",[])],w2.prototype,"thumbnailWidth",null);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],w2.prototype,"dataChanged",null);w2=_.c([_.E({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],w2);
_.R(w2,"ytd-vertical-list-renderer",function(){if(rjF!==void 0)return rjF;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return rjF=q},{mode:1});var U3$=_.Sc(["#"]);_.JE("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var uK=function(){var q=_.Y.apply(this,arguments)||this;q.isConstrainedList=!1;q.modernTypography=_.T("web_modern_typography");return q};
_.O(uK,_.Y);_.k=uK.prototype;
_.k.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"}}}};
_.k.computeThumbnailStyle=function(q){return q||""};
_.k.computePlaceAnnotationUnderTitle=function(){var q;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((q=this.data)==null?void 0:q.thumbnailStyle)||"")};
_.k.computeHrefWithDefault=function(q){return this.ytComponentBehavior.computeHref_(q)||_.OY(U3$)};
_.k.computeIsPromoShelf=function(q){var w;return(q=q==null?void 0:(w=q[0])==null?void 0:w.metadataBadgeRenderer)?q.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.k.computePlaceBadgeBesideTitle=function(q){var w;return(q==null?0:(w=q[0])==null?0:w.metadataBadgeRenderer)?!this.computeIsPromoShelf(q):!1};
_.k.computeMenuIcon=function(q){return this.computeIsPromoShelf(q)?"yt-icons:more_vert":"yt-icons:more"};
_.k.onDataChange=function(){var q,w;((q=this.data)==null?0:(w=q.content)==null?0:w.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.k.onLockupRequested=function(q){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&q.detail&&q.detail.videoIds){for(var w=this.data.content.gridRenderer.items,u=new Set,y=_.P(q.detail.videoIds),e=y.next();!e.done;e=y.next())u.add(e.value);q.detail.returnValue=w.filter(function(t){return t.gridVideoRenderer&&t.gridVideoRenderer.videoId&&u.has(t.gridVideoRenderer.videoId)}).map(function(t){return t.gridVideoRenderer})}};
_.k.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
uK.prototype.onLockupRequested=uK.prototype.onLockupRequested;uK.prototype.onDataChange=uK.prototype.onDataChange;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],uK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],uK.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],uK.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],uK.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.mF),_.h("design:type",Object)],uK.prototype,"ironResizableBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],uK.prototype,"data",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],uK.prototype,"isSearch",void 0);_.c([_.v(),_.h("design:type",Object)],uK.prototype,"isConstrainedList",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.T("kevlar_fluid_dismiss")}}),
_.h("design:type",Boolean)],uK.prototype,"enableFluidDismiss",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.h("design:type",String)],uK.prototype,"thumbnailStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],uK.prototype,"modernTypography",void 0);_.c([_.v({computed:"computeMenuIcon(data.badges)"}),_.h("design:type",String)],uK.prototype,"menuIcon",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uK.prototype,"onDataChange",null);_.c([_.Gm("yt-lockup-requested"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],uK.prototype,"onLockupRequested",null);uK=_.c([_.E({is:"ytd-shelf-renderer",disableElementRegistration:!0})],uK);
_.R(uK,"ytd-shelf-renderer",function(){if(iZP!==void 0)return iZP;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return iZP=q},{mode:1});var TwT;var yT=function(){return _.Y.apply(this,arguments)||this};
_.O(yT,_.Y);yT.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.x$.Object.defineProperties(yT.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],yT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],yT.prototype,"data",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],yT.prototype,"isPlaylist",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],yT.prototype,"isClipList",void 0);
_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],yT.prototype,"isPlaylistPageWithFilters",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],yT.prototype,"hasTitle",null);_.c([_.v(),_.Z("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.h("design:type",Object),_.h("design:paramtypes",[])],yT.prototype,"isRightAligned",null);
yT=_.c([_.E({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],yT);
_.R(yT,"ytd-sort-filter-header-renderer",function(){if(TwT!==void 0)return TwT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return TwT=q},{mode:1});var CuX;var eC=function(){return _.Y.apply(this,arguments)||this};
_.O(eC,_.Y);
eC.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]]"}}}}}};
eC.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.x$.Object.defineProperties(eC.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.T("enable_creator_details_shelf_m2")){var q=[],w;((w=this.data)==null?0:w.creatorVideosButton)&&q.push(this.data.creatorVideosButton);var u;((u=this.data)==null?0:u.creatorAboutButton)&&q.push(this.data.creatorAboutButton);w=_.P(this.data.creatorCustomUrlButtons||[]);for(u=w.next();!u.done;u=w.next())q.push(u.value);return q}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.T("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],eC.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],eC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.MR.YtdHorizontalListBehavior),_.h("design:type",Object)],eC.prototype,"ytdHorizontalListBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],eC.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],eC.prototype,"engagementPanel",void 0);
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],eC.prototype,"creatorCustomUrlButtons",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data","creatorCustomUrlButtons"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],eC.prototype,"showCreatorCustomUrlButtons",null);_.c([_.Z("showCreatorCustomUrlButtons"),_.h("design:type",Number),_.h("design:paramtypes",[])],eC.prototype,"channelAvatarSize",null);
eC=_.c([_.E({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],eC);
_.R(eC,"ytd-video-description-infocards-section-renderer",function(){if(CuX!==void 0)return CuX;var q=document.createElement("template");_.f(q,'\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_">\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return CuX=q},{mode:_.kB("kevlar_poly_si_batch_j067")?1:2});var d3F;var kt=function(){return _.Y.apply(this,arguments)||this};
_.O(kt,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],kt.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],kt.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],kt.prototype,"data",void 0);_.c([_.v({computed:"computeIcon_(data.infoIcon)"}),_.h("design:type",Object)],kt.prototype,"infoIcon",void 0);kt=_.c([_.E({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],kt);
_.R(kt,"ytd-eom-settings-disclaimer-renderer",function(){if(d3F!==void 0)return d3F;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return d3F=q},{mode:1});var OZF;var t_=function(){return _.Y.apply(this,arguments)||this};
_.O(t_,_.Y);_.x$.Object.defineProperties(t_.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.suppressPaddingDisclaimer)}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],t_.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],t_.prototype,"componentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],t_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],t_.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],t_.prototype,"suppressPaddingDisclaimer",null);t_=_.c([_.E({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],t_);
_.R(t_,"ytd-product-list-header-renderer",function(){if(OZF!==void 0)return OZF;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return OZF=q},{mode:1});var ohG;var P9=function(){return _.Y.apply(this,arguments)||this};
_.O(P9,_.Y);P9.prototype.computeThumbnailStyle=function(q){if(q&&(q=_.Ae(q)))return"background-color:"+q+";"};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],P9.prototype,"rendererBehaviors",void 0);_.c([_.v(),_.h("design:type",Object)],P9.prototype,"data",void 0);P9=_.c([_.E({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],P9);
_.R(P9,"ytd-hashtag-tile-renderer",function(){if(ohG!==void 0)return ohG;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return ohG=q},{mode:1});var Vd$;var Xi=function(){return _.Y.apply(this,arguments)||this};
_.O(Xi,_.Y);Xi.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}}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Xi.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Xi.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Xi.prototype,"data",void 0);Xi=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Xi);
_.R(Xi,"ytd-sponsorships-alert-renderer",function(){if(Vd$!==void 0)return Vd$;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Vd$=q},{mode:1});var foc;var Fi=function(){return _.Y.apply(this,arguments)||this};
_.O(Fi,_.Y);Fi.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.x$.Object.defineProperties(Fi.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.T("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.T("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.c([_.D(_.Ao),_.h("design:type",Object)],Fi.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.D(_.$p),_.h("design:type",Object)],Fi.prototype,"ytdLockupBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Fi.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Fi.prototype,"ytRendererBehavior",void 0);_.c([_.v({selector:_.$H}),_.h("design:type",Object)],Fi.prototype,"isGridViewEnabled",void 0);
_.c([_.Z("isGridViewEnabled"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Fi.prototype,"watchFeedBigThumbs",null);_.c([_.Z("isGridViewEnabled"),_.v({reflectToAttribute:!0}),_.h("design:type",String),_.h("design:paramtypes",[])],Fi.prototype,"thumbnailWidth",null);_.c([_.v(),_.h("design:type",Object)],Fi.prototype,"data",void 0);Fi=_.c([_.E({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],Fi);
_.R(Fi,"ytd-compact-movie-renderer",function(){if(foc!==void 0)return foc;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return foc=q},{mode:1});var m3X;var Aj3;var JjT=_.Et("HTML_DIR")==="rtl",Gv=function(){var q=_.Y.apply(this,arguments)||this;q.engagementPanel=!1;q.maxLines=2;q.expandButtonOffset=0;q.showExpandButton=!1;q.isTruncated=!1;q.isExpanded=!1;q.currentSnippetType=2;q.alwaysShowExpandButton=!1;q.JSC$14145_lastWidth=NaN;q.observer=null;q.left=0;q.right=0;q.mid=0;q.longestSnippetLength=0;q.isFinalSnippet=!1;q.isFirstMutation=!1;q.isResetMutation=!1;q.OVERFLOW_THRESHOLD=5;return q};
_.O(Gv,_.Y);_.k=Gv.prototype;_.k.onClick=function(q){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.LT(_.SQ(q)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var w;if((w=window.getSelection())==null||!w.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.k.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.k.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.k.updateTextOnSnippetTypeChange=function(){_.T("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.k.setUpBinarySearch=function(q){q=q*this.maxLines/8;this.left=0;var w,u;this.right=Math.min(q*2,(u=(w=this.simpleText)==null?void 0:w.length)!=null?u:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.k.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.k.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Y8(new _.fv("AttributedSnippet is empty when the description is not empty",this.text))};
_.k.mutationCallback=function(){if(this.observer!=null){var q=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var w=Math.floor(q*this.maxLines/8);this.setSnippetText(this.text,w);w!==0||this.attributedTextIsEmpty()||_.Y8(new _.fv("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;q=q*this.maxLines/8;this.left=0;var u;this.right=Math.min(q*2,(u=(w=this.simpleText)==null?void 0:w.length)!=null?u: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)}}};
_.k.mutationObserve=function(q){var w=this;this.observer||(this.observer=new MutationObserver(function(){w.mutationCallback()}));
this.observer.observe(q,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.k.attached=function(){var q=this;_.KJ(this,function(){q.resize()})};
_.k.isExpandedChanged=function(){_.t7(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.k.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)};
_.k.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var q="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((JjT?"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",q);this.snippetContainer.style.setProperty("mask-image",
q)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(JjT?"right":"left",this.expandButtonOffset+"px")};
_.k.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.k.setSnippetText=function(q,w){q||(q={});if(_.c6(q)){var u=bX7(q,w);u.attachmentRuns||u.commandRuns||u.decorationRuns||u.styleRuns||u.alignment||u.lineBreakMode?this.attributedSnippetTextEl?(_.T("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=bX7(q,w),this.attributedSnippetTextEl.headerRuns=v06(w,this.headerRuns)):this.attributedSnippetText={data:bX7(q,w),headerRuns:v06(w,this.headerRuns)},this.currentSnippetType=0):_.Y8(new _.fv("Tried to set snippet text when HTML element was null",
q)):(this.plainSnippetText.textContent=gL(q.content||"",w),this.currentSnippetType=2)}else{a:{u=edu(q,w);if(u.runs){u=_.P(u.runs);for(var y=u.next();!y.done;y=u.next())if(y=y.value,y.bold||y.deemphasize||y.italics||y.strikethrough||y.textColor||y.navigationEndpoint||_.C(y,zj)){u=!0;break a}}u=!1}u?this.formattedSnippetText?(this.formattedSnippetText.text=edu(q,w),this.currentSnippetType=1):_.Y8(new _.fv("Tried to set snippet text when HTML element was null",q)):(this.plainSnippetText.textContent=
gL(_.lA(q),w),this.currentSnippetType=2)}};
_.k.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.k.attributedTextIsEmpty=function(){var q=this.text;if(!_.c6(q))return!0;var w;return((w=q.content)==null?void 0:w.length)===0?!0:!1};
_.k.resize=function(q){if(this.snippetText){if(q===void 0?0:q)this.JSC$14145_lastWidth=NaN;var w=this.hostElement.offsetWidth;if(w!==this.JSC$14145_lastWidth&&!this.isExpanded)if(this.JSC$14145_lastWidth=w,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;q=0;var u,y;w=Math.min(w*this.maxLines/8*2,(y=(u=this.simpleText)==null?void 0:u.length)!=null?y:0)-1;for(u=0;q<=w;)y=Math.floor(q+(w-q)/2),this.setSnippetText(this.text,y),this.isOverflowing()?w=y-1:(q=y+1,u=y);this.setSnippetText(this.text,u);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.k.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.k.onExpandClick=function(){var q=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.T("inline_expander_reset_focus_killswitch")||_.KJ(this,function(){var w;((w=_.tG().resolve(_.kF(_.LK)))==null?0:w.isKeyBoardInUse())&&_.xZ(q.hostElement)});
_.t7(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.k.onCollapseClick=function(){this.collapse();_.t7(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.k.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.k.computeExpandButtonOffset=function(){var q=this.expandSizer;return q?JjT?q.offsetParent?q.offsetParent.offsetWidth-q.offsetWidth-q.offsetLeft:0:q.offsetLeft:0};
_.x$.Object.defineProperties(Gv.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.c6(this.text)?this.text.content||"":_.lA(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 _.c6(this.text)?!0:this.text&&_.T("web_replace_formatted_with_attributed_string")&&t1H(this.text)?(this.text=_.JB(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}}});
Gv.prototype.onTextChanged=Gv.prototype.onTextChanged;Gv.prototype.updateMaskAndExpandButtonOffset=Gv.prototype.updateMaskAndExpandButtonOffset;Gv.prototype.updateSnippetContainerMaxHeight=Gv.prototype.updateSnippetContainerMaxHeight;Gv.prototype.isExpandedChanged=Gv.prototype.isExpandedChanged;Gv.prototype.updateTextOnSnippetTypeChange=Gv.prototype.updateTextOnSnippetTypeChange;Gv.prototype.updateIsFormattedExpanded=Gv.prototype.updateIsFormattedExpanded;Gv.prototype.updateIsAttributedExpanded=Gv.prototype.updateIsAttributedExpanded;
Gv.prototype.onClick=Gv.prototype.onClick;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Gv.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Gv.prototype,"text",void 0);_.c([_.v(),_.h("design:type",Array)],Gv.prototype,"headerRuns",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Gv.prototype,"engagementPanel",void 0);_.c([_.v(),_.h("design:type",Object)],Gv.prototype,"maxLines",void 0);
_.c([_.v(),_.h("design:type",String)],Gv.prototype,"expandLabel",void 0);_.c([_.v(),_.h("design:type",String)],Gv.prototype,"collapseLabel",void 0);_.c([_.v(),_.h("design:type",Object)],Gv.prototype,"expandCommand",void 0);_.c([_.v(),_.h("design:type",Object)],Gv.prototype,"expandButtonOffset",void 0);_.c([_.Z("text"),_.h("design:type",String),_.h("design:paramtypes",[])],Gv.prototype,"simpleText",null);
_.c([_.Gm("click"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Gv.prototype,"onClick",null);_.c([_.Z("text","isExpanded"),_.h("design:type",Object),_.h("design:paramtypes",[])],Gv.prototype,"expandedText",null);_.c([_.Z("headerRuns","isExpanded"),_.h("design:type",Object),_.h("design:paramtypes",[])],Gv.prototype,"expandedHeaderRuns",null);
_.c([_.Z("text"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Gv.prototype,"hasAttributedStringText",null);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Gv.prototype,"showExpandButton",void 0);_.c([_.Z("collapseLabel","isExpanded"),_.h("design:type",Object),_.h("design:paramtypes",[])],Gv.prototype,"showCollapseButton",null);_.c([_.v(),_.h("design:type",Object)],Gv.prototype,"isTruncated",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Gv.prototype,"isExpanded",void 0);_.c([_.v(),_.h("design:type",Boolean)],Gv.prototype,"isAttributedExpanded",void 0);_.c([_.nL("isExpanded","hasAttributedStringText"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gv.prototype,"updateIsAttributedExpanded",null);_.c([_.v(),_.h("design:type",Boolean)],Gv.prototype,"isFormattedExpanded",void 0);
_.c([_.nL("isExpanded","hasAttributedStringText"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gv.prototype,"updateIsFormattedExpanded",null);_.c([_.v(),_.h("design:type",Number)],Gv.prototype,"currentSnippetType",void 0);_.c([_.Z("currentSnippetType"),_.h("design:type",Object),_.h("design:paramtypes",[])],Gv.prototype,"useAttributedSnippet",null);
_.c([_.Z("currentSnippetType"),_.h("design:type",Object),_.h("design:paramtypes",[])],Gv.prototype,"useFormattedSnippet",null);_.c([_.Z("currentSnippetType"),_.h("design:type",Object),_.h("design:paramtypes",[])],Gv.prototype,"usePlainSnippet",null);_.c([_.v(),_.h("design:type",Object)],Gv.prototype,"alwaysShowExpandButton",void 0);_.c([_.nL("currentSnippetType"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gv.prototype,"updateTextOnSnippetTypeChange",null);
_.c([_.v(),_.h("design:type",Object)],Gv.prototype,"attributedSnippetText",void 0);_.c([_.Wj("#snippet"),_.h("design:type",HTMLElement)],Gv.prototype,"snippetContainer",void 0);_.c([_.Wj("#snippet-text"),_.h("design:type",HTMLElement)],Gv.prototype,"snippetText",void 0);_.c([_.Wj("#plain-snippet-text"),_.h("design:type",HTMLElement)],Gv.prototype,"plainSnippetText",void 0);_.c([_.Wj("#formatted-snippet-text"),_.h("design:type",Object)],Gv.prototype,"formattedSnippetText",void 0);
_.c([_.Wj("#attributed-snippet-text"),_.h("design:type",Object)],Gv.prototype,"attributedSnippetTextEl",void 0);_.c([_.Wj("#expand"),_.h("design:type",HTMLElement)],Gv.prototype,"expandButton",void 0);_.c([_.Wj("#expand-sizer"),_.h("design:type",HTMLElement)],Gv.prototype,"expandSizer",void 0);_.c([_.I9("isExpanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gv.prototype,"isExpandedChanged",null);
_.c([_.nL("isExpanded","maxLines"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gv.prototype,"updateSnippetContainerMaxHeight",null);_.c([_.nL("isTruncated","showExpandButton","expandButtonOffset"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gv.prototype,"updateMaskAndExpandButtonOffset",null);
_.c([_.I9("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gv.prototype,"onTextChanged",null);Gv=_.c([_.E({is:"ytd-text-inline-expander",disableElementRegistration:!0})],Gv);
_.R(Gv,"ytd-text-inline-expander",function(){if(Aj3===void 0){var q=document.createElement("template");_.f(q,'\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<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 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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);Aj3=q}q=Aj3;return q},{mode:2});var n6=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return q};
_.O(n6,_.Y);n6.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
n6.prototype.handleUpdateDescriptionAction=function(q){if(q=_.C(q,_.iGF))if(q.attributedDescription)this.set("data.attributedDescriptionBodyText",q.attributedDescription);else if(q.description){var w;((w=this.data)==null?0:w.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.JB(q.description)):this.set("data.descriptionBodyText",q.description)}};
_.x$.Object.defineProperties(n6.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var q,w;return!((q=this.data)==null||!q.attributedDescriptionBodyText)||!((w=this.data)==null||!w.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null?0:q.collapsedLineCount){var w;return(w=this.data)==null?void 0:w.collapsedLineCount}q=_.Fc("web_watch_description_collapsed_default_lines",12);if(_.T("ww_desc_line_page_size_ks"))return q;w=Math.round(_.UP().height*_.Fc("web_watch_description_screen_height_percentage",.5)/20);return Math.max(w,q)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return(u=(q=this.data)==null?void 0:q.descriptionBodyText)!=null?u:(w=this.data)==null?void 0:w.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.sourceAttributions}}});
n6.prototype.panelContentVisibleChanged=n6.prototype.panelContentVisibleChanged;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],n6.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],n6.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],n6.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],n6.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",Boolean)],n6.prototype,"panelContentVisible",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],n6.prototype,"engagementPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],n6.prototype,"shortsPanel",void 0);_.c([_.Wj("#inline-expander"),_.h("design:type",Object)],n6.prototype,"inlineExpander",void 0);
_.c([_.nL("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],n6.prototype,"panelContentVisibleChanged",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],n6.prototype,"hasDescriptionText",null);_.c([_.Z("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],n6.prototype,"collapsedLines",null);
_.c([_.Z("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.h("design:type",Object),_.h("design:paramtypes",[])],n6.prototype,"descriptionText",null);_.c([_.Z("data","data.headerRuns"),_.h("design:type",Object),_.h("design:paramtypes",[])],n6.prototype,"headerRuns",null);_.c([_.Z("data","data.sourceAttributions"),_.h("design:type",Object),_.h("design:paramtypes",[])],n6.prototype,"sourceAttributions",null);
n6=_.c([_.E({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],n6);
_.R(n6,"ytd-expandable-video-description-body-renderer",function(){if(m3X!==void 0)return m3X;var q=document.createElement("template");_.f(q,'\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]]" 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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return m3X=q},{mode:_.kB("kevlar_poly_si_batch_j028")?1:2});var zLk;var aor=_.LL(function(q){var w=q.data;return _.W("factoid-renderer",{class:"ytwFactoidRendererHost"},_.W("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return w().accessibilityText}},_.W("span",{class:"ytwFactoidRendererValue"},_.W(_.Lr,{text:function(){return w().value}})),_.W("span",{class:"ytwFactoidRendererLabel"},_.W(_.Lr,{text:function(){return w().label}}))))},"Lb");_.q9(aor,"factoid-renderer",{props:{data:_.pK}});_.q9(_.LL(function(q){var w=q.data;return _.W("upload-time-factoid-renderer",null,_.W(_.OF,{data:function(){return w().factoid}},{factoidRenderer:aor}))},"Mb"),"upload-time-factoid-renderer",{props:{data:_.xB}});_.q9(_.LL(function(q){var w=q.data;return _.W("view-count-factoid-renderer",null,_.W(_.OF,{data:function(){return w().factoid}},{factoidRenderer:aor}))},"Nb"),"view-count-factoid-renderer",{props:{data:_.xB}});var H9=function(){var q=_.Y.apply(this,arguments)||this;q.shortsPanel=!1;q.engagementPanel=!1;q.watchWhileSdp=_.T("shorts_desktop_watch_while_sdp");return q};
_.O(H9,_.Y);H9.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"}}}}};
_.x$.Object.defineProperties(H9.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var q;return(q=this.data)==null?void 0:q.channel}}});
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],H9.prototype,"componentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],H9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],H9.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],H9.prototype,"shortsPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],H9.prototype,"engagementPanel",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],H9.prototype,"watchWhileSdp",void 0);_.c([_.Z("shortsPanel","engagementPanel","data.channel"),_.h("design:type",Object),_.h("design:paramtypes",[])],H9.prototype,"showChannelInfo",null);H9=_.c([_.E({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],H9);
_.R(H9,"ytd-video-description-header-renderer",function(){if(zLk!==void 0)return zLk;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return zLk=q},{mode:1});var D3Z;var W9=function(){return _.Y.apply(this,arguments)||this};
_.O(W9,_.Y);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],W9.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],W9.prototype,"ytRendererBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],W9.prototype,"noPadding",void 0);_.c([_.v(),_.h("design:type",Object)],W9.prototype,"data",void 0);W9=_.c([_.E({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],W9);
_.R(W9,"ytd-list-item-view-model",function(){if(D3Z!==void 0)return D3Z;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return D3Z=q},{mode:1});var ZZx;var pE6;var $3P;var vhG;var s$=function(){var q=_.Y.apply(this,arguments)||this;q.adaptiveFullWidth=!1;q.modernButtons=_.T("web_modern_buttons");q.buttonOverrides={style:"call-to-action",type:"filled"};q.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return q};
_.O(s$,_.Y);s$.prototype.handleSetTimestamp_=function(q){this.data&&this.data.shortUrl&&(_.A(this.hostElement).querySelector("#share-url").value=q.isSet?_.vU(this.data.shortUrl,"t",q.timestamp):this.data.shortUrl)};
s$.prototype.handleSignalActionCopyShareUrl_=function(q,w){(_.T("killswitch_copy_link_target_check")||_.A(this.hostElement).querySelector("#copy-button")===w)&&this.copyUrlToClipboard()};
s$.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.A(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
s$.prototype.computeStyle_=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],s$.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],s$.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],s$.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.h("design:type",String)],s$.prototype,"rendererStyle",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],s$.prototype,"adaptiveFullWidth",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],s$.prototype,"modernButtons",void 0);_.c([_.v(),_.h("design:type",Object)],s$.prototype,"buttonOverrides",void 0);s$=_.c([_.JM({is:"yt-copy-link-renderer",disableElementRegistration:!0})],s$);
_.R(s$,"yt-copy-link-renderer",function(){if(vhG===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;$3P===void 0&&($3P=document.createElement("template"));var y=$3P;u.call(w,y.content.cloneNode(!0),q.content.firstChild);vhG=q}q=vhG;return q},{mode:2});_.JE("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var Ni=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return q};
_.O(Ni,_.Y);_.k=Ni.prototype;_.k.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.k.attached=function(){this.keyboardFocused=!1};
_.k.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var q=_.tG().resolve(_.kF(_.LK));q&&(this.keyboardFocused=q.isKeyBoardInUse())}};
_.k.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.k.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}};
_.k.onChange_=function(){if(this.data){var q=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;q&&this.ytComponentBehavior.resolveCommand(q);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.k.handleUpdateToggleAction_=function(q){(q=_.C(q,ofj))&&this.data&&q.targetId==this.data.targetId&&this.set("data.toggled",q.toggled)};
_.k.toBoolean_=function(q){return!!q};
_.k.reset=function(){};
_.k.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.D1("data-changed",this.data))};
_.k.updateDataToggledFromBinding=function(q){this.set("data.toggled",q.detail.value)};
Ni.prototype.dataChangedForBinding=Ni.prototype.dataChangedForBinding;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Ni.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ni.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Ni.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],Ni.prototype,"data",void 0);_.c([_.v({computed:"computeDescription_(data.*)"}),_.h("design:type",Object)],Ni.prototype,"description_",void 0);_.c([_.v({value:function(){return!!_.tG().resolve(_.kF(_.LK))&&_.T("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.h("design:type",Boolean)],Ni.prototype,"useKeyboardFocused",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Ni.prototype,"keyboardFocused",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ni.prototype,"dataChangedForBinding",null);Ni=_.c([_.JM({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],Ni);
_.R(Ni,"yt-toggle-form-field-renderer",function(){if(pE6===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;ZZx===void 0&&(ZZx=document.createElement("template"));var y=ZZx;u.call(w,y.content.cloneNode(!0),q.content.firstChild);pE6=q}q=pE6;return q},{mode:2});var bZX;var Y5k;var QT=function(){var q=_.Y.apply(this,arguments)||this;q.isDarkTheme=!1;q.isSearch=!1;q.darkerDarkTheme=_.T("web_darker_dark_theme");q.noTopMargin=_.T("kevlar_watch_no_top_margin");q.maskFade=_.T("web_watch_chips_mask_fade");q.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 q};
_.O(QT,_.Y);_.k=QT.prototype;_.k.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}}}}}};
_.k.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.k.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.k.dataChanged=function(){var q=this.getSelectedIndex();if(q>0)this.selected=q;else{this.selected=0;var w,u;(w=this.ytScrollableChipCloudBehavior)==null||(u=w.reset)==null||u.call(w)}};
_.k.getSelectedIndex=function(){var q;if((q=this.data)==null||!q.chips)return-1;q=-1;for(var w,u=0;u<((w=this.data)==null?void 0:w.chips.length);u++){var y=void 0,e=void 0;if((y=this.data)==null?0:(e=y.chips[u].chipCloudChipRenderer)==null?0:e.isSelected){q=u;break}}return q};
_.k.onResize=function(){var q=this.ytScrollableChipCloudBehavior;_.KJ(q,q.setContainerWidthDiff);q8(this.ytScrollableChipCloudBehavior)};
_.k.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.k.handleRelatedChipCommand=function(q,w){q=this.JSC$14172_chipsSelector.indexOf(w);q!==-1&&this.JSC$14172_chipsSelector.selectIndex(q)};
_.k.handleChipCloudChipSelectAction=function(q){q=this.JSC$14172_chipsSelector.indexOf(q);q>-1&&this.JSC$14172_chipsSelector.selectIndex(q)};
_.k.handleChipCloudChipDeselectAction=function(){var q=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14172_chipsSelector&&((q==null?0:q.continuationCommand)?_.GM(this.hostElement,[q]):(q==null?0:q.searchEndpoint)?this.ytComponentBehavior.resolveCommand(q):q&&_.nq(this.hostElement,[q],this.hostElement),this.JSC$14172_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.k.updateSelectedFromBinding=function(q){this.selected=q.detail.value};
QT.prototype.onResize=QT.prototype.onResize;QT.prototype.dataChanged=QT.prototype.dataChanged;QT.prototype.isSearchChanged=QT.prototype.isSearchChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],QT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],QT.prototype,"actionHandlerBehavior",void 0);
_.c([_.D(_.mF),_.h("design:type",Object)],QT.prototype,"ironResizableBehavior",void 0);_.c([_.D(),_.h("design:type",xa)],QT.prototype,"ytScrollableChipCloudBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],QT.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],QT.prototype,"data",void 0);_.c([_.v({value:0}),_.h("design:type",Number)],QT.prototype,"selected",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],QT.prototype,"isDarkTheme",void 0);_.c([_.v({value:160}),_.h("design:type",Number)],QT.prototype,"scrollDistance",void 0);_.c([_.v(),_.h("design:type",Object)],QT.prototype,"isSearch",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],QT.prototype,"darkerDarkTheme",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],QT.prototype,"noTopMargin",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],QT.prototype,"maskFade",void 0);_.c([_.Wj("#chips"),_.h("design:type",Object)],QT.prototype,"JSC$14172_chipsSelector",void 0);_.c([_.nL("isSearch"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QT.prototype,"isSearchChanged",null);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QT.prototype,"dataChanged",null);
_.c([_.Gm("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QT.prototype,"onResize",null);QT=_.c([_.JM({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],QT);
_.R(QT,"yt-chip-cloud-renderer",function(){if(Y5k===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;bZX===void 0&&(bZX=document.createElement("template"));var y=bZX;u.call(w,y.content.cloneNode(!0),q.content.firstChild);Y5k=q}q=Y5k;return q},{mode:2});var ghk,Eh3=function(){return ghk!==void 0?ghk:ghk=document.createElement("template")};
document.head.appendChild(Eh3().content);var RL$;var cjP=document.head,S5T=cjP.appendChild,hLk;if(RL$===void 0){var jtT=document.createElement("template");_.f(jtT,"");jtT.content.insertBefore(Eh3().content.cloneNode(!0),jtT.content.firstChild);RL$=jtT}hLk=RL$;S5T.call(cjP,hLk.content);var loF=_.LL(function(q){var w=q.data;return _.W("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.W("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.W("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.W(_.r,{cond:function(){return _.lq(w().image)},
then:function(u){return _.W("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.W(_.ln,{data:u,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.W("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.W(_.Lr,{text:function(){return w().title}})),_.W("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.W(_.Lr,{text:function(){return w().subtitle}})))),_.W(_.r,{cond:function(){var u;
return(u=w())==null?void 0:u.hasBottomDivider},
then:function(){return _.W("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Ob");var LBr=_.LL(function(q){var w=q.data;return _.W("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.W("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.W(_.OF,{data:function(){var u;return(u=w().offerPlanDetailsItem)!=null?u:[]}},{offerPlanDetailsItemViewModel:function(u){return _.W("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.W(loF,{data:u.data}))}})),_.W("div",null,_.W(_.r,{cond:function(){return w().hasBottomDivider},
then:function(){return _.W("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.W("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.W("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.W("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.W("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Pb");var MdF=_.LL(function(q){var w=q.data;q=_.P(_.r4(!1,void 0,"SpEGQd"));var u=q.next().value,y=q.next().value,e=_.QS(function(){y(!u());return!1}),t=function(){var X;
return(X=w().offerPlanDetailsContainer)!=null?X:[]};
return _.W("lp-complex-offer-card-details-view-model",null,_.W("div",null,_.W(_.r,{cond:function(){return u()},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.W("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":e,"aria-expanded":u},_.W(_.Lr,{text:function(){return w().expandedTitle}})),_.W("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.W(_.OF,{data:t},{offerPlanDetailsContainerViewModel:function(X){return _.W("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.W(LBr,{data:X.data}))}})),_.W("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.W(_.Lr,{text:function(){return w().legalText}})))},
else:function(){return _.W("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":e,"aria-expanded":u},_.W(_.Lr,{text:function(){return w().collapsedTitle}}),_.W("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.W(_.U3,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Qb");var KB3=_.LL(function(q){var w=q.data;return _.W("lp-complex-offer-card-option-view-model",null,_.W("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.W(_.r,{cond:function(){return w().topDividerText},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.W("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.W("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.W("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.W(_.Lr,{text:function(){return w().topDividerText}}))))}}),_.W(_.r,{cond:function(){return w().planPricingPrimary},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.W(_.Lr,{text:function(){return w().planPricingPrimary}}))}}),_.W(_.r,{cond:function(){return w().planPricingSecondary},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.W(_.Lr,{text:function(){return w().planPricingSecondary}}))}}),_.W(_.r,{cond:function(){return w().primaryButton},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.W(_.OF,{data:function(){return w().primaryButton}},{buttonViewModel:function(u){return _.W(_.Zs,{data:u.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Rb");var Bw6=_.LL(function(q){var w=q.data;var u=function(){var t;return((t=w())==null?void 0:t.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
q={};var y={},e={};return _.W("ytm-lp-complex-offer-card-view-model",null,_.W("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.W("div",{class:_.HR((q.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=u,q),"ytmLpComplexOfferCardViewModelCardContainer")},_.W(_.r,{cond:function(){var t;return(t=w())==null?void 0:t.bannerText},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.W("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.W(_.Lr,{text:function(){return w().bannerText}})))}}),_.W(_.r,{cond:function(){return _.lq(w().logo)},
then:function(t){var X={};return _.W("div",{class:_.HR((X.ytmLpComplexOfferCardViewModelLogoAlignLeft=u,X),"ytmLpComplexOfferCardViewModelLogo")},_.W(_.ln,{data:t,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.W("div",{class:_.HR((y.ytmLpComplexOfferCardViewModelTitleAlignLeft=u,y),"ytmLpComplexOfferCardViewModelTitle")},_.W(_.Lr,{text:function(){return w().title}})),_.W(_.r,{cond:function(){var t;
return(t=w())==null?void 0:t.subtitle},
then:function(){var t={};return _.W("div",{class:_.HR((t.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=u,t),"ytmLpComplexOfferCardViewModelSubtitle")},_.W(_.Lr,{text:function(){return w().subtitle}}))}}),_.W(_.r,{cond:function(){return w().planPricingPrimary},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.W(_.Lr,{text:function(){return w().planPricingPrimary}}))}}),_.W(_.r,{cond:function(){return w().planPricingSecondary},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.W(_.Lr,{text:function(){return w().planPricingSecondary}}))}}),_.W(_.r,{cond:function(){return w().purchaseButton},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.W(_.OF,{data:function(){return w().purchaseButton}},{buttonViewModel:function(t){return _.W(_.Zs,{data:t.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.W(_.r,{cond:function(){var t;
return(t=w())==null?void 0:t.offerOptions},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.W(_.OF,{data:function(){return w().offerOptions}},{lpComplexOfferCardOptionViewModel:KB3}))}}),_.W("div",{class:_.HR((e.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=u,e),"ytmLpComplexOfferCardViewModelLegalText")},_.W(_.Lr,{text:function(){return w().legalText}})),_.W(_.r,{cond:function(){var t;
return(t=w())==null?void 0:t.offerCardDetails},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.W(_.OF,{data:function(){return w().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:MdF}))}}))))},"Sb");var x3G=_.LL(function(q){var w=q.data;var u=function(){var X;return((X=w())==null?void 0:X.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
q={};var y={},e={},t={};return _.W("ytm-lp-complex-offer-card-section-view-model",null,_.W("div",{class:_.HR("ytmLpComplexOfferCardSectionViewModelHost")},_.W("div",{class:_.HR((q.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=u,q),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.W("div",{class:_.HR((y.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=u,y),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.W("h2",{class:_.HR((e.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
u,e),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.W(_.Lr,{text:function(){return w().title}}))),_.W(_.r,{cond:function(){var X;
return(X=w())==null?void 0:X.subtitle},
then:function(){var X={},G={};return _.W("div",{class:_.HR((X.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=u,X),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.W("div",{class:_.HR((G.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=u,G),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.W(_.Lr,{text:function(){return w().subtitle}})))}}),_.W("div",{class:_.HR((t.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=u,t),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.W(_.OF,{data:function(){var X;
return(X=w().offerPlans)!=null?X:[]}},{lpComplexOfferCardViewModel:function(X){return _.W("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.W(Bw6,{data:X.data}))}})))))},"Tb");_.Iu=gCc.getInstance();var qVk=_.LL(function(q){return _.W("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":q.shouldAriaHideContent},_.W("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:q.questionId},_.W(_.Lr,{text:q.question})))},"Ub"),wnT=_.LL(function(q){var w=q.data;
var u=q.themeOverride;q=_.P(_.r4(!1,void 0,"ljTVPd"));var y=q.next().value,e=q.next().value;q=_.QS(function(){e(!y());return!1});
var t=function(){return y()?"EXPAND_LESS":"EXPAND_MORE"},X=("faq-container"+_.mv(_.Iu)).toString(),G="faq-question-and-answers-section-question"+_.mv(_.Iu),n={},N={};
return _.W("faq-entry-view-model-c3",null,_.W("div",{class:_.HR("yt-lp-faq-entry-view-model",(n["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return u==null?void 0:u().useDarkTheme},n))},_.W("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":q,role:"button","aria-expanded":y,"aria-labelledby":G.toString(),"tab-index":"0"},_.W(qVk,{question:function(){return w().question},
questionId:G,shouldAriaHideContent:!0}),_.W(_.r,{cond:function(){return y()!==void 0},
then:function(){return _.W("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.W(_.U3,{icon:t,ariaHidden:!0}),_.W("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.W("div",{class:_.HR("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(N["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!y()},N))},_.W("div",{id:X},_.W(_.mL,{each:function(){return w().answers||[]}},function(Q){return _.W("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.W(_.Lr,{text:Q}))})))))},"Vb");
wnT.idomCompat=!0;var u0$=_.LL(function(q){var w=q.data;var u=q.themeOverride;q={};return _.W("lp-faq-section-view-model-c3",null,_.W("div",{class:_.HR("yt-lp-faq-section-view-model",(q["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return w().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},q["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(u==null||!u().useDarkTheme)},q))},_.W("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.W(_.r,{cond:function(){return w().header},
then:function(y){return _.W("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.W(_.Lr,{text:y}))}}),_.W("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.W(_.OF,{data:function(){return w().faqs}},{faqEntryViewModel:function(y){return _.W(wnT,{data:y.data,
themeOverride:u})}})),_.W("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.W(_.mL,{each:function(){return w().footers||[]}},function(y){return _.W(_.Lr,{text:y})})),_.W(_.r,{cond:function(){return w().legal},
then:function(y){return _.W("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.W(_.Lr,{text:y}))}}))))},"Wb");
u0$.idomCompat=!0;var yJj=_.LL(function(q){var w=q.data;var u=q.themeOverride;_.p4(function(){var X=w().gtmId;X&&_.Wd(X,_.Et("GL",""))});
var y={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var X,G,n;return(n=(X=w().logo)==null?void 0:(G=X.accessibilityData)==null?void 0:G.label)!=null?n:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},e=_.tG().resolve(_.kF(_.Rg)),t=function(){return e&&e()||(u==null?void 0:u().useDarkTheme)};
return _.W("lp-header-section-view-model",null,_.W("div",{class:function(){var X=w().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",G=w().marginType==="LP_SECTION_MARGIN_TYPE_TOP",n=u==null?void 0:u().useDarkTheme,N=["lp-header-section-view-model"];X&&N.push("lp-header-section-view-model--ptc-layout-type");G&&N.push("lp-header-section-view-model__lp-header-section-margin");n&&N.push("lp-header-section-view-model--premium-force-dark-mode");return N.join(" ")}},_.W(_.r,{cond:function(){return w().logo},
then:function(){return _.W("div",null,_.W(_.r,{cond:t,then:function(){return _.W(_.r,{cond:function(){var X;return(X=w().logo)==null?void 0:X.imageDark},
then:function(X){return _.W(_.ln,Object.assign({},{data:X},y))}})},
else:function(){return _.W(_.r,{cond:function(){var X;return(X=w().logo)==null?void 0:X.imageLight},
then:function(X){return _.W(_.ln,Object.assign({},{data:X},y))}})}}))}}),_.W(_.r,{cond:function(){return w().title},
then:function(X){return _.W("div",{class:"lp-header-section-view-model__lp-header-title"},_.W(_.Lr,{text:X}))}}),_.W("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.W(_.r,{cond:function(){return w().subtitles},
then:function(X){return _.W(_.mL,{each:X},function(G){return _.W("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.W(_.Lr,{text:G}))})}})),_.W(_.r,{cond:function(){return w().additionalInfo},
then:function(X){return _.W("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.W(_.Lr,{text:X}))}}),_.W("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.W(_.r,{cond:function(){return w().primaryButton},
then:function(X){return _.W("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.W(_.OF,{data:X},{buttonViewModel:_.Zs}))}}),_.W(_.r,{cond:function(){return w().secondaryButton},
then:function(X){return _.W("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.W(_.OF,{data:X},{buttonViewModel:_.Zs}))}})),_.W(_.r,{cond:function(){return w().otherOffersInfo},
then:function(X){return _.W("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.W(_.Lr,{text:X}))}}),_.W("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.W(_.r,{cond:function(){return w().billingInfo},
then:function(X){return _.W(_.mL,{each:X},function(G){return _.W("div",null,_.W(_.Lr,{text:G}))})}}))))},"Xb");
yJj.idomCompat=!0;var ee6=_.LL(function(q){var w=q.data;var u=_.jf(q.themeOverride,{useDarkTheme:!1});q={};q=_.HR("ytm-lp-headline-section-view-model",(q["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return u().useDarkTheme},q));
return _.W("lp-headline-section-view-model",null,_.W("div",{class:q},_.W("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.W(_.Lr,{text:function(){return w().title}})),_.W(_.r,{cond:function(){return w().subtitle},
then:function(y){return _.W("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.W(_.Lr,{text:y}))}})))},"Yb");var kzc=_.LL(function(q){var w=q.data;var u=q.themeOverride;var y=_.tG().resolve(_.kF(_.Rg)),e=function(){return y&&y()||(u==null?void 0:u().useDarkTheme)},t=function(){var N,Q;
var I=e()?(N=w().textBackgroundImage)==null?void 0:N.imageDark:(Q=w().textBackgroundImage)==null?void 0:Q.imageLight;return PKJ((I==null?void 0:I.sources)||[])},X=function(){var N,Q;
return e()?(N=w().featureImage)==null?void 0:N.imageDark:(Q=w().featureImage)==null?void 0:Q.imageLight},G=function(){return w().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},n=function(){var N,Q;
return e()?(N=w().logo)==null?void 0:N.imageDark:(Q=w().logo)==null?void 0:Q.imageLight};
return _.W("ytm-lp-large-feature-section-view-model",null,_.W("div",{class:function(){var N=w().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",Q=w().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",I=(w().index||0)%2===1,U=u==null?void 0:u().useDarkTheme,d=["yt-lp-large-feature-section-view-model"];N?d.push("yt-lp-large-feature-section-view-model--music-feature-type"):Q?d.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):I||d.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
U&&d.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return d.join(" ")}},_.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.W(_.r,{cond:X,
then:function(){return _.W(_.ln,{data:function(){return X()},
alt:function(){var N,Q,I;return(I=(N=w().featureImage)==null?void 0:(Q=N.accessibilityData)==null?void 0:Q.label)!=null?I:""},
contentMode:G})}})),_.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var N;return((N=t())==null?0:N.url)?"background-image: url("+_.UY(t().url)+");":""}},_.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.W(_.r,{cond:n,
then:function(){return _.W(_.ln,{data:function(){return n()},
alt:function(){var N,Q,I;return(I=(N=w().logo)==null?void 0:(Q=N.accessibilityData)==null?void 0:Q.label)!=null?I:""},
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"})}}),_.W(_.r,{cond:function(){return w().eyebrowText},
then:function(){return _.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.W(_.Lr,{text:function(){return w().eyebrowText}}))}}),_.W(_.r,{cond:function(){return w().title},
then:function(){return _.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.W(_.Lr,{text:function(){return w().title}}))}}),_.W(_.r,{cond:function(){return w().subtitles},
then:function(){return _.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.W(_.mL,{each:function(){return w().subtitles||[]}},function(N){return _.W(_.Lr,{text:N})}))}})))))},"Zb");
kzc.idomCompat=!0;var tkZ=_.LL(function(q){return _.W("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.W("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.W(_.U3,{icon:function(){var w;return(w=q.data())==null?void 0:w.iconType},
className:function(){var w;return((w=q.data())==null?void 0:w.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.W("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.W(_.Lr,{text:function(){var w;
return(w=q.data())==null?void 0:w.text}}))))},"$b");var PWZ=_.LL(function(q){q=_.lf(q,{config:void 0,themeOverride:void 0});var w=q.data,u=q.config,y=q.themeOverride;q={};q=_.HR("ytm-lp-offer-card-option-view-model",(q["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var n;return(n=y())==null?void 0:n.useDarkTheme},q));
var e=_.QS(function(){var n,N;(n=u())==null||(N=n.handleRadioButtonClick)==null||N.call(n,w());return!1}),t=function(){var n;
return(n=u())==null?void 0:n.shouldDisplayRadioButton},X=_.QS(function(){if(t()){var n,N;
(n=u())==null||(N=n.handleRadioButtonClick)==null||N.call(n,w())}return!1}),G=function(){var n;
return(n=w().featureListItems)!=null?n:[]};
return _.W("ytm-lp-offer-card-option-view-model",null,_.W("div",{class:q,"on:click":X},_.W(_.r,{cond:t,then:function(){return _.W("div",null,_.W("input",{type:"radio","on:click":e,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var n;return!((n=u())==null||!n.isOptionSelected)}}))}}),_.W("div",null,_.W("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.W(_.Lr,{text:function(){return w().eyebrowText}})),_.W("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.W(_.Lr,{text:function(){return w().title}})),_.W("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.W(_.Lr,{text:function(){return w().subtitle}})),_.W(_.r,{cond:function(){return G().length>0},
then:function(){return _.W("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.W(_.OF,{data:G},{lpFeatureListItemViewModel:tkZ}))}}),_.W("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.W(_.Lr,{text:function(){return w().description}})))))},"ac");
PWZ.idomCompat=!0;var Xn6=_.LL(function(q){var w=q.data;var u=q.themeOverride;q=_.P(_.iv(function(){var t,X=(t=w().offerOptions)==null?void 0:t[0];return _.C(X,p_x)||{}}));
var y=q.next().value,e=q.next().value;q={};return _.W("ytm-lp-offer-card-view-model",null,_.W("div",{class:_.HR("ytm-lp-offer-card-view-model",(q["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(u==null||!u().useDarkTheme)},q))},_.W("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.W(_.r,{cond:function(){return w().titleIconType},
then:function(){return _.W("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.W(_.U3,{icon:function(){var t;return((t=w().titleIconType)==null?void 0:t.toString())||""}}))}}),_.W("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.W(_.Lr,{text:function(){return w().title}})),_.W(_.OF,{data:function(){return w().titleBadge}},{badgeViewModel:function(t){return _.W("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.W(_.hi,{data:t.data}))}})),_.W("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.W(_.OF,{data:function(){return w().offerOptions}},{lpOfferCardOptionViewModel:function(t){var X=t.data;
return _.W(_.GS,null,_.W("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.W(PWZ,{data:X,config:function(){var G;return{shouldDisplayRadioButton:(w().offerOptions||[]).length>1,isOptionSelected:X().id===((G=y())==null?void 0:G.id),handleRadioButtonClick:function(n){return void e(n)}}},
themeOverride:u}))}})),_.W("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.W(_.OF,{data:function(){var t;
return(t=y())==null?void 0:t.purchaseButtonOverride}},{buttonViewModel:_.Zs}))))},"bc");
Xn6.idomCompat=!0;var Ff6=_.LL(function(q){var w=q.data;var u=q.themeOverride;q={};q=_.HR("ytm-lp-offer-card-section-view-model",(q["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var y;return u==null?void 0:(y=u())==null?void 0:y.useDarkTheme},q));
return _.W("ytm-lp-offer-card-section-view-model",null,_.W("div",{class:q},_.W(_.r,{cond:function(){return w().title!==void 0},
then:function(){return _.W("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.W("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.W(_.Lr,{text:function(){return w().title}})),_.W(_.r,{cond:function(){return w().subtitle},
then:function(){return _.W("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.W(_.Lr,{text:function(){return w().subtitle}}))}}))}}),_.W("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.W(_.OF,{data:function(){return w().offerCards}},{lpOfferCardViewModel:function(y){return _.W("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.W(Xn6,{data:y.data,
themeOverride:u}))}})),_.W(_.r,{cond:function(){return w().footer},
then:function(){return _.W("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.W(_.Lr,{text:function(){return w().footer}}))}})))},"cc");var Gza=_.LL(function(q){var w=q.data;return _.W("lp-offer-table-cell-content-view-model",null,_.W("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.W(_.zS,null,_.W(_.AP,{when:function(){return w().title}},function(){return _.W(_.Lr,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return w().title}})}),_.W(_.AP,{when:function(){return w().subTitle}},function(){return _.W(_.Lr,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return w().subTitle}})}),_.W(_.AP,{when:function(){return w().featureDescription}},function(){return _.W(_.Lr,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return w().featureDescription}})}),_.W(_.AP,{when:function(){return w().description}},function(){return _.W(_.Lr,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return w().description}})}),_.W(_.AP,{when:function(){return w().iconType}},function(){return _.W("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.W(_.U3,{icon:function(){return w().iconType.toString()}}))}),_.W(_.AP,{when:function(){return w().purchaseButton}},function(){return _.W(_.OF,{data:function(){return w().purchaseButton}},{buttonViewModel:function(u){return _.W("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.W(_.Zs,{data:u.data}))}})}),_.W(_.AP,{when:function(){return w().note}},function(){return _.W(_.Lr,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return w().note}})}),_.W(_.AP,{when:function(){return w().featureDetail}},function(){return _.W(_.Lr,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return w().featureDetail}})}),_.W(_.AP,{when:function(){return w().badge}},function(){return _.W(_.OF,{data:function(){return w().badge}},{badgeViewModel:_.hi})}))))},"dc");
Gza.idomCompat=!0;var nO3=_.LL(function(q){var w=q.data;return _.W("lp-offer-table-cell-view-model",null,_.W("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(w().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;"}}},_.W(_.OF,{data:function(){return w().contents}},{lpOfferTableCellContentViewModel:Gza})))},
"ec");
nO3.idomCompat=!0;var HwG=_.LL(function(q){var w=q.data;var u=q.lpTableIsFirstRow;var y=q.lpTableIsLastRow;var e=function(){return(u==null?0:u())?"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"},t=function(){return(u==null?0:u())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(y==null?0:y())?"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 _.W("ytm-lp-offer-table-row-view-model",null,_.W("div",{class:"yt-lp-offer-table-row-view-model"},_.W(_.OF,{data:function(){return w().rowHeaderCell}},{lpOfferTableCellViewModel:function(X){return _.W("div",{class:e},_.W(nO3,{data:X.data}))}}),_.W(_.OF,{data:function(){return w().contentCells}},{lpOfferTableCellViewModel:function(X){return _.W("div",{class:t},_.W(nO3,{data:X.data}))}})))},"fc");
HwG.idomCompat=!0;var Wfj=_.LL(function(q){var w=q.data;var u=q.themeOverride;var y=_.tG().resolve(_.kF(_.Rg)),e=function(){return _.C(w().logo,LZG)||{}};
q={};return _.W("ytm-lp-offer-table-section-view-model",null,_.W("div",{class:"yt-lp-offer-table-view-model"},_.W(_.r,{cond:function(){var t,X;return y&&y()||(u==null?0:u().useDarkTheme)?(t=e())==null?void 0:t.imageDark:(X=e())==null?void 0:X.imageLight},
then:function(t){return _.W(_.ln,{data:t,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var X,G,n;return(n=(X=e())==null?void 0:(G=X.accessibilityData)==null?void 0:G.label)!=null?n:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.W("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.W(_.Lr,{text:function(){return w().title}})),_.W("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.W(_.Lr,{text:function(){return w().subtitle}})),_.W(_.r,{cond:function(){return w().disclaimers},
then:function(t){return _.W("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.W(_.mL,{each:t},function(X){return _.W("div",null,_.W(_.Lr,{text:X}))}))}}),_.W("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.W(_.OF,{data:function(){return w().rows}},{lpOfferTableRowViewModel:function(t,X){return _.W(HwG,{data:t.data,
lpTableIsFirstRow:function(){return X()===0},
lpTableIsLastRow:function(){return X()===w().rows.length-1}})}})),_.W("div",{class:_.HR((q["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return w().hasFooterBackground},q))},_.W(_.r,{cond:function(){return w().footer},
then:function(){return _.W("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.W(_.Lr,{text:function(){return w().footer}}))}}),_.W(_.r,{cond:function(){return w().footerTitle},
then:function(){return _.W("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.W(_.Lr,{text:function(){return w().footerTitle}}))}}),_.W(_.r,{cond:function(){return w().footerDescription},
then:function(){return _.W("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.W(_.Lr,{text:function(){return w().footerDescription}}))}}))))},"gc");
Wfj.idomCompat=!0;var scF=_.LL(function(q){var w=q.data;var u=q.themeOverride;var y=_.tG().resolve(_.kF(_.Rg)),e=function(){var G;return u==null?void 0:(G=u())==null?void 0:G.useDarkTheme},t=function(){var G,n;
return y&&y()||e()?(G=w().image)==null?void 0:G.imageDark:(n=w().image)==null?void 0:n.imageLight};
q={};q=_.HR("ytm-lp-small-feature-section-view-model",(q["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=e,q));var X=function(){var G,n,N;return(N=(G=w().image)==null?void 0:(n=G.accessibilityData)==null?void 0:n.label)!=null?N:""};
return _.W("ytm-lp-small-feature-section-view-model",{class:q},_.W(_.r,{cond:function(){return t()&&!ols},
then:function(){return _.W("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.W(_.ln,{data:function(){return t()},
alt:X,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.W("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.W("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.W(_.r,{cond:function(){return w().title},
then:function(G){return _.W(_.Lr,{text:G})}})),_.W("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.W(_.Lr,{text:function(){return w().description}}))))},"hc");
scF.idomCompat=!0;var NJc=_.LL(function(q){var w=q.data;var u=q.themeOverride;q={};return _.W("ytm-lp-small-feature-section-group-view-model",null,_.W("div",{class:_.HR("ytm-lp-small-feature-section-group-view-model",(q["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(u==null||!u().useDarkTheme)},q))},_.W("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.W(_.OF,{data:function(){return w().smallFeatures}},{lpSmallFeatureSectionViewModel:function(y){return _.W("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.W(scF,{data:y.data,
themeOverride:u}))}}))))},"ic");
NJc.idomCompat=!0;_.q9(_.LL(function(q){var w=q.data;var u=function(){return w().forcedTheme==="USER_INTERFACE_THEME_DARK"},y=function(){return w().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},e=function(){var X="",G,n;
var N=_.tG().resolve(_.kF(_.Rg));N=u()||(N==null?0:N())?(G=w().themedImageViewModel)==null?void 0:G.imageDark:(n=w().themedImageViewModel)==null?void 0:n.imageLight;(G=PKJ((N==null?void 0:N.sources)||[]))&&G.url&&(X=y()?"background-image: linear-gradient(to bottom, transparent, "+(w().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.UY(G.url)+");":"background-image: url("+_.UY(G.url)+");");return X},t=function(){return{useDarkTheme:u()}};
q={};return _.W("yt-section-group-view-model",null,_.W("div",{class:_.HR("yt-lp-section-group-view-model",(q["yt-lp-section-group-view-model--premium-force-dark-mode"]=u,q["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return w().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},q))},_.W(_.r,{cond:function(){return e().length},
then:function(){var X={};return _.W("div",{class:_.HR("yt-lp-section-group-view-model__bg-image",(X["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=y,X)),style:e})}}),_.W("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.W(_.OF,{data:function(){return w().sections}},{lpFaqSectionViewModel:function(X){return _.W(u0$,{data:X.data,
themeOverride:t})},
lpHeaderSectionViewModel:function(X){return _.W(yJj,{data:X.data,themeOverride:t})},
lpHeadlineSectionViewModel:function(X){return _.W(ee6,{data:X.data,themeOverride:t})},
lpLargeFeatureSectionViewModel:function(X){return _.W(kzc,{data:X.data,themeOverride:t})},
lpOfferCardSectionViewModel:function(X){return _.W(Ff6,{data:X.data,themeOverride:t})},
lpComplexOfferCardSectionViewModel:function(X){return _.W(x3G,{data:X.data})},
lpOfferTableSectionViewModel:function(X){return _.W(Wfj,{data:X.data,themeOverride:t})},
lpSmallFeatureSectionGroupViewModel:function(X){return _.W(NJc,{data:X.data,themeOverride:t})}}))))},"jc"),"yt-section-group-view-model",{props:{data:_.pK}});var PNH=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.QcG=_.LL(function(q){function w(){if(PNH.has(q.data().displayType)){var N=!y(),Q;if((Q=q.disableDeselection)==null||!Q.call(q)||N){q.data().selected=N;Q=Object.assign({},X(),{selected:N});G(Q);var I;(I=q.callback)==null||I.call(q,Q,N)}}}
var u=_.Bm(),y=function(){var N,Q;return!!(((N=q.selected)==null?void 0:N.call(q))!==void 0?(Q=q.selected)==null?0:Q.call(q):X().selected)},e=_.P(_.iv(q.data)),t=e.next().value;
e=e.next().value;var X=t,G=e,n=_.Qo(txM,function(){return q.data().chipEntityKey||""});
return _.W("chip-view-model",{class:"ytChipViewModelHost",el:u},_.W(BlZ,{data:function(){var N,Q=Object.assign({},X(),{selected:y()}),I=n(),U=(N=q.disableDeselection)==null?void 0:N.call(q);a:switch(Q.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":N=1;break a;default:N=0}return{text:(I==null?void 0:I.text)||Q.text,state:Q.disabled?1:Q.selected?0:2,type:N,onTap:Xpl(Q,u,w,U),accessibilityLabel:Q.accessibilityLabel||Q.text}}}))},"kc");
_.QcG.idomCompat={callbacks:{callback:!0}};_.IgZ=_.LL(function(q){var w=_.Qo(k8M,function(){var X;return(X=q.data())==null?void 0:X.chipBarStateEntityKey}),u=function(){return q.data().disableDeselection},y=_.P(_.iv(function(){var X;
if(((X=w())==null?void 0:X.selectedIndex)!=void 0)return w().selectedIndex;var G,n;X=_.P(((G=q.data())==null?void 0:(n=G.chips)==null?void 0:n.entries())||[]);for(G=X.next();!G.done;G=X.next()){G=_.P(G.value);n=G.next().value;G=G.next().value;var N=void 0;if((N=_.C(G,_.$P))==null?0:N.selected)return n}return-1})),e=y.next().value,t=y.next().value;
return _.W("chip-bar-view-model",{class:_.HR("ytChipBarViewModelHost",q.className),role:"tablist"},_.W(_.OF,{data:function(){return q.data().chips}},{chipViewModel:function(X,G){return _.W("div",{class:"ytChipBarViewModelChipWrapper"},_.W(_.QcG,{data:X.data,
selected:function(){return G()===e()},
callback:function(n,N){n=!!N;N=G();t(n?N:-1);var Q,I=(Q=q.data())==null?void 0:Q.chipBarStateEntityKey;I&&n&&_.hM(_.IH("chipBarStateEntity",I,{key:I,selectedIndex:N}))},
disableDeselection:q.disableDeselection||u}))}}))},"lc");_.q9(_.IgZ,"chip-bar-view-model",{props:{data:_.xB,className:_.xB,disableDeselection:_.xB}});_.iwj=_.LL(function(q){var w=q.data;q={};return _.W("divider-view-model",{class:_.HR("divider-view-model-wiz",(q["divider-view-model-wiz__inset-thin-padding"]=function(){return w().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},q))},_.W("div",{class:_.HR("divider-view-model-wiz__base-divider",function(){return Fd4(w().dividerStyle)}),
style:_.rm({"background-color":function(){return w().backgroundColor?_.Ae(w().backgroundColor):void 0}})}))},"mc");
_.iwj.idomCompat=!0;_.q9(_.iwj,"divider-view-model",{props:{data:_.pK}});var m0=new Map,fV=new Map,HEM=0,AK;var rSl=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],CNc={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var rJG,UxF;rJG=function(q){return function(w){return function(){return String(w())+q}}};
_.iK=rJG("px");UxF=rJG("s");var CWc=_.LL(function(q){function w(S){return function(){var eH=d().numItemsPerGridRow,x=S()*eH;eH=x+eH;var P4,C7;return(C7=(P4=y().contents)==null?void 0:P4.slice(x,eH))!=null?C7:[]}}
var u=_.lf(q,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),y=u.data,e=u.layoutContainerWidth,t=u.shouldUseOwnContainerSize,X=u.marginSettings;u=_.P(_.r4(!0,void 0,"qgr2Je"));var G=u.next().value,n=u.next().value,N=function(){var S,eH=(S=_.C(y().showMoreButton,_.oH))==null?void 0:S.trackingParams;eH&&_.Xf(_.Qz(),eH);n(!1)},Q=function(){var S,eH=(S=_.C(y().showLessButton,_.oH))==null?void 0:S.trackingParams;
eH&&_.Xf(_.Qz(),eH);n(!0)};
u=_.Bm();var I=_.OEj(u,{canHaveZeroSize:!1}),U=function(){var S;return(S=y().contentAspectRatio)!=null?S:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},d=_.oR(function(){var S=_.hg({containerWidth:t()&&I.width()>0?I.width()||e():e(),
sizing:"EXTRA_COMPACT",marginSettings:X(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:S.maxContainerWidth,numItemsPerGridRow:S.numItems,contentPadding:t()?S.margin:S.contentMargin,itemWidth:S.itemWidth,itemMargin:S.gutter/2}},void 0,"pqVdjc"),V=function(){if(y().enableVerticalExpansion){if(G())return 1;
var S,eH,x=(eH=(S=y().contents)==null?void 0:S.length)!=null?eH:0;return Math.ceil(x/d().numItemsPerGridRow)}return d().numItemsPerGridRow<=2?2:1},J=function(){return y().enableVerticalExpansion&&y().showLessButton&&!G()&&V()>1},a=function(){var S,eH;
return y().enableVerticalExpansion&&y().showMoreButton&&G()&&((eH=(S=y().contents)==null?void 0:S.length)!=null?eH:0)>d().numItemsPerGridRow},b=function(){return!J()},g=function(){return!a()},l={};
return _.W("grid-shelf-view-model",{class:_.HR("ytGridShelfViewModelHost",q.className,(l.ytGridShelfViewModelHostHasBottomButton=function(){return J()||a()},l)),
el:u,style:_.rm({"margin-left":(0,_.iK)(function(){return d().contentPadding}),
"margin-right":(0,_.iK)(function(){return d().contentPadding})})},_.W(_.r,{cond:function(){return _.C(y().header,Pk6)},
then:function(S){return _.W(_.Bb,{data:S,disableHorizontalPadding:!0})}}),_.W("div",null,_.W(_.mL,{each:function(){return Array(V())}},function(S,eH){return _.W(TJG,{className:q.className,
items:w(eH),responsiveGridShelfLayout:d,contentAspectRatio:U})})),_.W("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.W(_.OF,{data:function(){return y().showMoreButton}},{buttonViewModel:function(S){return _.W("div",{hidden:g},_.W(_.Zs,{data:S.data,
onClick:N}))}}),_.W(_.OF,{data:function(){return y().showLessButton}},{buttonViewModel:function(S){return _.W("div",{hidden:b},_.W(_.Zs,{data:S.data,
onClick:Q}))}})))},"nc");
CWc.idomCompat=!0;var TJG=_.LL(function(q){var w=q.items;var u=q.responsiveGridShelfLayout;var y=q.contentAspectRatio;q=q.className;var e=_.Bm();n47(e,function(){a:{var X=e.value;for(var G=w(),n=[],N=0;N<G.length;N++){var Q=_.C(G[N],E2r);if(!Q||Q==null||!Q.inlinePlayerData){X=null;break a}var I=X.children.item(N);if(!I){X=null;break a}n.push({thumbnailElement:I,videoData:Q})}X={gridVideoPreviewData:{gridItems:n}}}return X});
var t=(0,_.iK)(function(){return-u().itemMargin});
return _.W("div",{el:e,class:_.HR("ytGridShelfViewModelGridShelfRow",q),style:_.rm({"margin-left":t,"margin-right":t})},_.W(_.OF,{data:w,replacementWrapper:function(X){return _.W(dxT,{responsiveGridShelfLayout:u},X)}},{shortsLockupViewModel:function(X){return _.W(dxT,{responsiveGridShelfLayout:u},_.W(XPc,{data:X.data,
aspectRatio:function(){return y()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"oc"),dxT=_.LL(function(q){return _.W("div",{style:_.rm({width:(0,_.iK)(function(){return q.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+q.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},q.children)},"pc");
CWc.idomCompat=!0;_.q9(CWc,"grid-shelf-view-model",{props:{data:_.pK,layoutContainerWidth:_.pK,shouldUseOwnContainerSize:_.pK,marginSettings:_.pK,className:_.pK}});_.Owx=_.LL(function(q){var w=_.P(_.r4(!1,void 0,"YYtxR")),u=w.next().value,y=w.next().value;w={};return _.W("yt-alert-banner-view-model",{class:_.HR("ytAlertBannerViewModelHost",q.className,function(){var e;a:switch((e=q.data())==null?void 0:e.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":e="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":e="ytAlertBannerViewModelWarning";break a;default:e="ytAlertBannerViewModelInformational"}return e},(w.ytAlertBannerViewModelDismissed=
u,w.ytAlertBannerViewModelFullbleed=q.fullbleed,w.ytAlertBannerViewModelNarrow=q.narrow,w.ytAlertBannerViewModelIsInRichGrid=q.isInRichGrid,w))},_.W(_.r,{cond:function(){var e;
return!((e=q.data())==null?0:e.hideIcon)},
then:function(){return _.W("div",{class:"ytAlertBannerViewModelIcon"},_.W(_.U3,{icon:function(){return"info_circle"}}))}}),_.W("div",{class:"ytAlertBannerViewModelOuterContainer"},_.W("div",{class:"ytAlertBannerViewModelContainer"},_.W("div",{class:"ytAlertBannerViewModelContent"},_.W("div",{class:"ytAlertBannerViewModelHeading"},_.W(_.Lr,{text:function(){var e;
return(e=q.data())==null?void 0:e.heading}})),_.W("div",{class:"ytAlertBannerViewModelBody"},_.W(_.Lr,{text:function(){var e;
return(e=q.data())==null?void 0:e.body}})))),_.W(_.OF,{data:function(){var e;
return(e=q.data())==null?void 0:e.actionButton}},{buttonViewModel:function(e){return _.W(_.Zs,{data:e.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.W(_.OF,{data:function(){var e;
return(e=q.data())==null?void 0:e.dismissButton}},{buttonViewModel:function(e){return _.W(_.Zs,{data:e.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var t;((t=q.data())==null?0:t.disableLocalDismissBehavior)||y(!0)}})}}))},"qc");_.q9(_.Owx,"yt-alert-banner-view-model",{props:{data:_.pK,fullbleed:_.pK,narrow:_.pK,isInRichGrid:_.pK,className:_.pK}});var o4u;o4u=_.UF({chipViewModel:_.QcG,buttonViewModel:_.Zs});_.oOP=_.N9(Vxy,{callbacks:{callback:!0}});_.t2(Vxy);_.q9(_.oOP,"chips-shelf-view-model",{props:{data:_.pK,callback:_.xB,enableSingleChipSelection:_.pK,disableChipsScrollAnimation:_.pK}});var VkX=_.LL(function(q){q=_.lf(q,{disabled:!1});var w=q.active,u=q.disabled;q={};q=_.HR("ytSwitchShapeTrack",(q.ytSwitchShapeTrackActive=function(){return w()},q.ytSwitchShapeTrackDisabled=function(){return u()},q));
var y={};y=_.HR("ytSwitchShapeKnob",(y.ytSwitchShapeKnobActive=function(){return w()},y));
return _.W("switch-shape",{class:"ytSwitchShapeHost"},_.W("div",{class:q}),_.W("div",{class:y}))},"rc");var fgk=_.LL(function(q){var w=_.lf(q,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),u=w.data;q=w.className;var y=w.handleOnTapEventInParent,e=w.parentActive;w=_.P(_.iv(function(){var I;return(I=e())!=null?I:u().switchedOnByDefault||!1}));
var t=w.next().value,X=w.next().value,G=function(){return u().isDisabled},n=_.Bm();
w=_.QS(function(I){return I.key==="Enter"?(I.preventDefault(),n.value.click(),!1):!0});
var N=_.QS(function(I){if(u().handleOnTapEventInParent||y())return!0;if(G())return!1;mmH(u(),t(),I);X(!t());return!1}),Q={};
Q=_.HR("ytSwitchButtonViewModelButton",(Q.ytSwitchButtonViewModelTappable=function(){return!G()},Q));
return _.W("switch-button-view-model",{class:_.HR("ytSwitchButtonViewModelHost",q)},_.W("button",{el:n,class:Q,"on:click":N,"on:keydown":w,"aria-label":function(){return t()?u().a11yLabelSwitchedOn:u().a11yLabelSwitchedOff},
"aria-pressed":t,"aria-disabled":G},_.W(VkX,{active:t,disabled:G})))},"sc");var AJc=_.LL(function(q){var w=_.lf(q,{checked:!1});q=w.name;var u=w.onChange,y=w.onClick,e=w.checked,t=w.labelRenderable,X=w.hasLeadingLabel,G=w.labelClass,n=w.isCompact,N=w.selectElementClass;w=w.disableHorizontalPadding;var Q="checkbox"+_.mv(_.Iu),I=_.QS(function(V){y==null||y(V);return!1}),U=_.QS(function(V){u==null||u(V);
return!1}),d={};
return _.W("checkbox-shape",null,_.W("label",{class:_.HR("checkbox-shape-wiz",G,(d["checkbox-shape-wiz--compact"]=n,d["checkbox-shape-wiz--disable-horizontal-padding"]=w,d))},_.W("input",{class:"checkbox-shape-wiz__input",id:Q,checked:e,name:q,type:"checkbox","prop:checked":e,"on:change":U,"on:click":I}),_.W(_.r,{cond:function(){return!(X==null?0:X())},
then:function(){return _.W(mxF,{isLeading:!0,selectElementClass:N})}}),_.W(_.r,{cond:function(){return!!t},
then:function(){return _.W("div",{class:"checkbox-shape-wiz__label"},t==null?void 0:t())}}),_.W(_.r,{cond:X,
then:function(){return _.W(mxF,{isLeading:!1,selectElementClass:N})}})))},"tc");
AJc.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var mxF=_.LL(function(q){var w=q.selectElementClass;q={};return _.W("div",{class:_.HR("checkbox-shape-wiz__checkbox",w,(q["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(w==null?0:w())},q)),
"aria-hidden":"true"},_.W(_.U3,{icon:_.T("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.W(_.U3,{icon:_.T("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"uc");_.r2=_.LL(function(q){var w=q.name;var u=q.onChange;var y=q.onClick;var e=q.checked;var t=q.labelRenderable;var X=q.useCheckIcon;var G=q.hasLeadingLabel;var n=q.labelClass;var N=q.isCompact;var Q=q.selectElementClass;var I=q.ariaLabel;q=q.className;var U="radio"+_.mv(_.Iu),d=_.QS(function(S){u==null||u(S);return!1}),V=_.QS(function(S){y==null||y(S);
return!1}),J=_.P(_.r4(!1,void 0,"DEwP5e")),a=J.next().value,b=J.next().value;
J=_.QS(function(){var S;((S=_.tG().resolve(_.kF(_.LK)))==null?0:S.isKeyBoardInUse())&&b(!0)});
var g=_.QS(function(){b(!1)}),l={};
return _.W("radio-shape",{class:_.HR("radio-shape-wiz",q)},_.W("input",{class:"radio-shape-wiz__input",id:U,"prop:checked":e,name:w,type:"radio","on:change":d,"on:click":V,"aria-label":I,"on:focusin":J,"on:focusout":g}),_.W("label",{class:_.HR("radio-shape-wiz__label-container",n,(l["radio-shape-wiz--compact"]=N,l["radio-shape-wiz__label-container--keyboard-focused"]=a,l)),for:U},_.W(_.r,{cond:function(){return!(G==null?0:G())},
then:function(){return _.W(JJZ,{checked:e,useCheckIcon:X,isLeading:!0,selectElementClass:Q})}}),_.W(_.r,{cond:function(){return!!t},
then:function(){return _.W("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(I==null?0:I())?"true":"false"}},t==null?void 0:t())}}),_.W(_.r,{cond:G,
then:function(){return _.W(JJZ,{checked:e,useCheckIcon:X,isLeading:!1,selectElementClass:Q})}})))},"vc");
_.r2.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var JJZ=_.LL(function(q){var w=q.useCheckIcon;var u=q.selectElementClass;q=function(){return(w==null?0:w())?"CHECK":_.T("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var y={};return _.W("div",{class:_.HR("radio-shape-wiz__radio",u,(y["radio-shape-wiz__radio--check-icon"]=w,y["radio-shape-wiz__radio--radio-default-style"]=function(){return!(u==null?0:u())},y)),
"aria-hidden":"true"},_.W(_.U3,{icon:q}),_.W(_.U3,{icon:q,active:function(){return!(w==null?0:w())}}))},"wc");_.U$=_.LL(function(q){function w(){var K7;((K7=_.tG().resolve(_.kF(_.LK)))==null?0:K7.isKeyBoardInUse())&&Ro(!0)}
function u(){Ro(!1)}
var y=q.data;var e=q.isMenuItem;var t=q.isCompact;var X=q.onTap;var G=q.trailingAccessory;var n=q.hideSelectionTextChevron;var N=q.disabled;var Q=q.inPopup;var I=q.disableHorizontalPadding;q=q.isOverlay;var U=_.T("apply_button_role_to_list_item"),d=_.aV(function(K7){a:{var gx=y();if((gx==null?0:gx.entitySelectorType)&&(gx==null?0:gx.entityKey))switch(gx.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":K7=_.jdc(K7,gx.entityKey);K7=K7==null?void 0:
K7.value;gx=!1;K7==="CAPTIONS_UNAVAILABLE"&&(gx=!0,K7="");K7=Object.assign({},!!K7&&{selectionText:{content:K7}},{isSelected:!!K7},!!K7&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:gx});break a;default:K7={}}else K7={}}return K7}),V=function(){return _.T("enable_web_shorts_captions_language_command")?Object.assign({},y(),d()):y()},J=function(){return!(V().isSelected===void 0||!V().selectionStyle||V().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
a=function(){return(_.gE(V().rendererContext)||X)&&!J()},b=function(){return _.gE(V().rendererContext)||J()},g={};
q=_.HR("yt-list-item-view-model-wiz",(g["yt-list-item-view-model-wiz--is-overlay"]=q,g["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!U&&bc()},g));
g={};var l=_.HR("yt-list-item-view-model-wiz__label",(g["yt-list-item-view-model-wiz__container"]=function(){return!J()},g["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!V().isDisabled||!(N==null||!N())},g["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!V().subtitle},g["yt-list-item-view-model-wiz__container--compact"]=t,g["yt-list-item-view-model-wiz__container--tappable"]=a,g["yt-list-item-view-model-wiz__container--in-popup"]=Q,g["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return U&&bc()},g["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(I==null?void 0:I())&&!J()},g));
g={};var S=_.HR("yt-list-item-view-model-wiz__container",(g["yt-list-item-view-model-wiz__container--tappable"]=b,g["yt-list-item-view-model-wiz__container--compact"]=t,g["yt-list-item-view-model-wiz__container--in-popup"]=Q,g["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(I==null?void 0:I())&&J()},g)),eH=function(){return V().leadingImage||V().leadingAccessory},x=_.HR("yt-list-item-view-model-wiz__image-container",function(){return eH()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"});
Q=_.Bm();var P4=_.Bm(),C7=U?P4:Q,mu=_.LL(function(){return _.W(_.r,{cond:function(){return U},
then:function(){return _.W("div",{class:l,el:P4,role:function(){return b()||a()?"button":void 0},
tabindex:function(){return X||a()?0:void 0},
"on:keydown":YJ,"on:click":Os},_.W(zeP,{data:V,hideSelectionTextChevron:n,trailingAccessory:G}))},
else:function(){return _.W("div",{class:l,el:P4},_.W(zeP,{data:V,hideSelectionTextChevron:n,trailingAccessory:G}))}})},"xc");
mu.idomCompat=!0;_.EF(Q,function(){return V().rendererContext});
var Os=_.QS(function(K7){return void(X==null?void 0:X(K7))}),YJ=_.LVl(),ao=_.P(_.r4(!1,void 0,"inP9Dc"));
g=ao.next().value;ao=ao.next().value;var bc=g,Ro=ao;_.p4(function(){a()&&(C7.value.addEventListener("focusin",w),C7.value.addEventListener("focusout",u));_.ZG(function(){C7.value&&a()&&(C7.value.removeEventListener("focusin",w),C7.value.removeEventListener("focusout",u))})});
g=_.QS(function(){return!1});
return _.W("yt-list-item-view-model",{el:Q,class:q,role:function(){return(e==null?0:e())?"menuitem":"listitem"},
tabindex:function(){var K7=a();K7=U?void 0:X||K7?0:void 0;return K7},
"on:keydown":U?g:YJ,"on:click":U?g:Os},_.W(_.r,{cond:J,then:function(){return _.W(_.zS,null,_.W(_.AP,{when:function(){return V().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.W(AJc,{labelRenderable:function(){return _.W(mu,null)},
isCompact:t,checked:function(){return V().isSelected},
hasLeadingLabel:function(){return!!eH()},
labelClass:S,selectElementClass:x,disableHorizontalPadding:I})}),_.W(_.AP,{when:function(){return V().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.W(_.r2,{labelRenderable:function(){return _.W(mu,null)},
isCompact:t,checked:function(){return V().isSelected},
hasLeadingLabel:function(){return!!eH()},
labelClass:S,selectElementClass:x})}),_.W(_.AP,{when:function(){return V().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.W(_.r2,{labelRenderable:function(){return _.W(mu,null)},
isCompact:t,checked:function(){return V().isSelected},
hasLeadingLabel:function(){return!!eH()},
labelClass:S,selectElementClass:x,useCheckIcon:!0})}),_.W(_.JP,null,function(){return _.W(mu,null)}))},
else:function(){return _.W(mu,null)}}))},"yc");
_.U$.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var zeP=_.LL(function(q){var w=q.data;var u=q.hideSelectionTextChevron;var y=q.trailingAccessory;return _.W(_.GS,null,_.W(agT,{data:w,isLeading:!0,hideSelectionTextChevron:function(){return!(u==null||!u())}}),_.W(Dxj,{data:w}),_.W(_.r,{cond:function(){return!!y},
then:function(){return _.W("div",{class:"yt-list-item-view-model-wiz__trailing"},y==null?void 0:y())},
else:function(){return _.W(agT,{data:w,isLeading:!1,hideSelectionTextChevron:function(){return!(u==null||!u())}})}}))},"zc"),agT=_.LL(function(q){var w=q.data;
var u=q.isLeading;var y=q.hideSelectionTextChevron;var e=_.HR("yt-list-item-view-model-wiz__button-container");q={};var t=_.HR("yt-list-item-view-model-wiz__image-container",(q["yt-list-item-view-model-wiz__leading"]=u,q["yt-list-item-view-model-wiz__trailing"]=function(){return!u()},q)),X=function(){return u()?w().leadingImage:w().trailingImage},G=_.HR("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
q={};var n=_.HR("yt-list-item-view-model-wiz__accessory",(q["yt-list-item-view-model-wiz__leading"]=u,q["yt-list-item-view-model-wiz__trailing"]=function(){return!u()},q)),N=function(){a:switch(w().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var Q="expand_more";
break a;default:Q="chevron_right"}return Q};
return _.W(_.r,{cond:function(){var Q=w(),I=u();return!!(I&&(Q.leadingImage||Q.leadingAccessory)||!I&&(Q.trailingImage||Q.trailingButton||Q.trailingButtons||Q.selectionText))},
then:function(){return _.W(_.GS,null,_.W(_.r,{cond:X,then:function(Q){return _.W("div",{class:t,"aria-hidden":"true"},_.W(_.ln,{data:Q,alt:"",preserveWidth:!0,preserveHeight:!0,className:G}))}}),_.W(_.r,{cond:function(){return u()&&w().leadingAccessory},
then:function(){return _.W("div",{class:t},_.W(_.OF,{data:function(){return w().leadingAccessory}},{avatarViewModel:function(Q){return _.W(_.Vb,{data:Q.data,
avatarButtonCustomClassName:G})},
collectionThumbnailViewModel:wer}))}}),_.W(_.r,{cond:function(){return!u()&&w().trailingButton},
then:function(){return _.W("div",{class:e},_.W(_.OF,{data:function(){return w().trailingButton}},{buttonViewModel:function(Q){return _.W(_.Zs,{data:Q.data,
className:n})}}))}}),_.W(_.r,{cond:function(){var Q;
return!u()&&((Q=w().trailingButtons)==null?void 0:Q.buttons)},
then:function(){return _.W("div",{class:e},_.W(_.OF,{data:function(){var Q;return(Q=w().trailingButtons)==null?void 0:Q.buttons}},{buttonViewModel:function(Q){return _.W(_.Zs,{data:Q.data,
className:n})},
accountLinkButtonViewModel:function(Q){return _.W(ay4,{data:Q.data,className:function(){return n()||""}})},
switchButtonViewModel:function(Q){return _.W(fgk,{data:Q.data,className:n})},
subscribeButtonViewModel:function(Q){return _.W(_.TK,{data:Q.data,isOverlay:!1,animateWidth:!1,className:n})},
toggleButtonViewModel:function(Q){return _.W(_.fr,{data:Q.data,className:n})}}))}}),_.W(_.r,{cond:function(){return!u()&&!!w().selectionText},
then:function(){return _.W(_.GS,null,_.W(_.Lr,{text:function(){return w().selectionText},
className:_.HR("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.W(_.r,{cond:function(){return!y()},
then:function(){return _.W(_.U3,{icon:N,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Ac"),Dxj=_.LL(function(q){var w=q.data;
return _.W(_.r,{cond:function(){return w().title||w().subtitle},
then:function(){return _.W("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.W("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.W(_.r,{cond:function(){return w().title},
then:function(u){return _.W(_.Lr,{text:u,className:"yt-list-item-view-model-wiz__title"})}})),_.W(_.r,{cond:function(){return w().subtitle},
then:function(u){return _.W(_.Lr,{text:u,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Bc");_.ZwG=_.LL(function(q){var w=q.data;var u=q.onTap;var y=q.onSwitch;var e=q.overrideDisabled;q=q.disableHorizontalPadding;var t=_.P(_.iv(function(){var I;return((I=JSj(Q()))==null?void 0:I.switchedOnByDefault)||!1})),X=t.next().value,G=t.next().value;
t=_.P(_.r4(!1,void 0,"ZHBkbb"));var n=t.next().value,N=t.next().value,Q=function(){var I;if(!(I=w().switchButton)){var U=w();I=e==null?void 0:e();U={switchOnCommand:U.switchOnCommand,switchOffCommand:U.switchOffCommand,switchedOnByDefault:U.switchedOnByDefault,isDisabled:U.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:U.a11yLabelSwitchedOn,a11yLabelSwitchedOff:U.a11yLabelSwitchedOff};I!==void 0&&(U.isDisabled=I);I={switchButtonViewModel:U}}return I};
return _.W("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.W(_.U$,{data:function(){return{title:w().title,subtitle:w().attributedSubtitle,leadingImage:w().leadingImage,leadingAccessory:w().leadingAccessory,isDisabled:w().isDisabled}},
onTap:function(I){var U=JSj(Q());!U||U.isDisabled||w().ignoreTapUntilCommandCompletes&&n()||(u==null||u(I),mmH(U,X(),I,w().ignoreTapUntilCommandCompletes,N),G(!X()),y==null||y(X()))},
trailingAccessory:function(){return _.W(_.OF,{data:Q},{switchButtonViewModel:function(I){return _.W(fgk,{data:I.data,parentActive:X,handleOnTapEventInParent:!!u})}})},
disableHorizontalPadding:q}))},"Cc");var pnP=_.ID("DOWNLOAD",{},"Download"),$xa=_.ID("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),vOT=_.ID("RETRY",{},"Retry"),bw6=_.ID("PAUSE_DOWNLOADING",{},"Pause downloading"),YVj=_.ID("RESUME_DOWNLOAD",{},"Resume download"),zdH={text:pnP,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},JK={text:$xa,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},ZE6={text:vOT,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
ad6={text:bw6,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},Dmo={text:YVj,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var gO6=_.LL(function(q){var w=function(){var G=q.data();G=_.YH(G.rendererContext);var n;return(n=_.C(G,_.WC))==null?void 0:n.videoId},u=_.aV(function(G){var n=w(),N=v4c(q.data());
return n?_.pa(G,n):N?_.$N(G,N):"TRANSFER_STATE_UNKNOWN"}),y=_.Qo(_.JOs,w),e=_.aV(function(G){return _.OGc(G,w(),v4c(q.data()))}),t=function(){return $m6(u(),y(),_.YH(q.data().rendererContext),!!v4c(q.data()))},X=function(){return e()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.W("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:X},_.W(_.r,{cond:function(){return!X()},
then:function(){return _.W(_.r,{cond:t,then:function(G){return _.W(_.mL,{each:G},function(n){return _.W(_.U$,{data:n,isCompact:q.isCompact,isMenuItem:q.isMenuItem,inPopup:q.inPopup,disableHorizontalPadding:q.disableHorizontalPadding})})}})}}))},"Dc");
gO6.idomCompat=!0;_.EOa=_.LL(function(q){var w=q.data;var u=q.isCompact;var y=q.hideSelectionTextChevron;var e=q.inPopup;var t=q.isOverlay;var X=q.disableHorizontalPadding;var G=function(){return bE6(w())&&(e==null?void 0:e())};
q={};return _.W("yt-list-view-model",{class:_.HR("yt-list-view-model-wiz",(q["yt-list-view-model-wiz--kaios-spat-nav"]=ols&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",q)),role:function(){return G()?"menu":"list"}},_.W(_.OF,{data:function(){return w().listItems}},{listItemViewModel:function(n){return _.W(_.U$,{data:n.data,
isMenuItem:G,isCompact:u,hideSelectionTextChevron:y,inPopup:e,isOverlay:t,disableHorizontalPadding:X})},
downloadListItemViewModel:function(n){return _.W(gO6,{data:n.data,isMenuItem:G,isCompact:u,inPopup:e,disableHorizontalPadding:X})},
switchListItemViewModel:function(n){return _.W(_.ZwG,{data:n.data,disableHorizontalPadding:X})}}))},"Ec");
_.EOa.idomCompat=!0;var Rea=_.LL(function(q){var w=q.data;var u=q.isOverlay;q={};return _.W("yt-course-perks-view-model",{class:_.HR("ytwCoursePerksViewModelHost",(q.ytwCoursePerksViewModelHostOverlay=u,q))},_.W("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.W(_.Lr,{text:function(){return w().title}})),_.W("div",null,_.W(_.r,{cond:function(){return w().perks},
then:function(y){return _.W(_.EOa,{data:function(){return{listItems:y()}},
isCompact:!0,isOverlay:u})}})))},"Fc");_.q9(Rea,"yt-course-perks-view-model",{props:{data:_.xB,isOverlay:_.xB}});_.q9(_.LL(function(q){var w=q.data;return _.W("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.W("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.W(_.Lr,{text:function(){return w().title}})),_.W("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.W(_.Lr,{text:function(){return w().progressSummary}})),_.W("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.W("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.rm({width:function(){return w().progressPercentage*100+"%"}})})))},"Gc"),"yt-course-progress-view-model",{props:{data:_.pK}});var cJk=_.LL(function(q){var w={};return _.W("yt-progress-view-model",{class:_.HR("ytwProgressViewModelHost",(w.ytwProgressViewModelHostOverlay=_.jf(q.isOverlay,!1),w))},_.W(_.r,{cond:function(){return q.data().progressSummary},
then:function(u){return _.W("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.W(_.Lr,{text:u}))}}),_.W("div",{class:"ytwProgressViewModelHostProgressContainer"},_.W(_.r,{cond:function(){return q.data().leadingLabel},
then:function(u){return _.W("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.W(_.Lr,{text:u}))}}),_.W("div",{class:"ytwProgressViewModelHostProgressBar"},_.W("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(q.data().progressPercentage||0)*100+"%"}}))))},"Hc");var Tv=_.LL(function(q){var w=q.starNumber;var u=q.data;var y=function(){var e;return((e=u())==null?void 0:e.rating)||0};
return _.W(_.r,{cond:function(){return w()},
then:function(e){return _.W(_.zS,null,_.W(_.AP,{when:function(){return y()>=e()-.25}},function(){return _.W("div",{class:"ytStarRatingViewModelHostStar"},_.W(_.U3,{icon:"STAR_FILLED"}))}),_.W(_.AP,{when:function(){return y()>=e()-.75}},function(){return _.W("div",{class:"ytStarRatingViewModelHostStar"},_.W(_.U3,{icon:"STAR_HALF"}))}),_.W(_.JP,null,function(){return _.W("div",{class:"ytStarRatingViewModelHostStar"},_.W(_.U3,{icon:"STAR_BORDER"}))}))}})},"Ic"),SVZ=_.LL(function(q){q=q.data;
return _.W("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.W(Tv,{starNumber:1,data:q}),_.W(Tv,{starNumber:2,data:q}),_.W(Tv,{starNumber:3,data:q}),_.W(Tv,{starNumber:4,data:q}),_.W(Tv,{starNumber:5,data:q}))},"Jc");_.q9(_.LL(function(q){var w=_.lf(q,{}).data;return _.W("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.W("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.W(_.Lr,{text:function(){var u;return(u=w())==null?void 0:u.title}})),_.W("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.W(_.r,{cond:function(){return w().starProgressViewModels},
then:function(u){return _.W("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.W(_.OF,{data:u},{progressViewModel:cJk}))}}),_.W("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.W("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.W(_.Lr,{text:function(){var u;
return(u=w())==null?void 0:u.averageRatingLabel}})),_.W(_.r,{cond:function(){return w().zeroStateText},
then:function(u){return _.W("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.W(_.Lr,{text:u}))}}),_.W(_.r,{cond:function(){return w().starRatingViewModel},
then:function(u){return _.W("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.W(_.OF,{data:u},{starRatingViewModel:SVZ}))}}),_.W("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.W(_.Lr,{text:function(){var u;
return(u=w())==null?void 0:u.totalRatingsCountLabel}})))))},"Kc"),"yt-course-ratings-view-model",{props:{data:_.xB}});var he6;he6={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.jcc=_.LL(function(q){var w=_.Bm(),u=_.nr();_.DR(function(){requestAnimationFrame(function(){var e;(e=u.lottieEl)==null||e.addEventListener("DOMLoaded",function(){var t;(t=q.onLottieLoaded)==null||t.call(q)})});
var y=q.data().browseEndpoint;y&&_.bn(y)});
return _.W("yt-learning-journey-loader-view-model",{class:_.HR("learningJourneyLoaderViewModelHost",q.className),"data-target-id":function(){var y;return((y=q.data)==null?void 0:y.call(q).targetId)||""},
el:w},_.W(_.WR,{className:_.HR("learningJourneyLoaderViewModelLoader",q.className),animationName:function(){return he6.animationConfig.name},
data:he6,animationRef:u}))},"Lc");_.q9(_.jcc,"yt-learning-journey-loader-view-model",{props:{data:_.pK,className:_.xB,onLottieLoaded:_.xB}});var lgG=_.LL(function(q){var w=function(){return q.data()},u=_.P(_.r4(-1,void 0,"GvxRR")),y=u.next().value,e=u.next().value,t=function(N){return y()===N},X=function(N){return w().correctAnswerIndex===N},G=function(){return y()!==-1},n=_.QS(function(){e(-1);
return!1});
return _.W("learning-journey-quiz-view-model",{class:_.HR("learningJourneyQuizViewModelHost",q.className),style:_.rm({background:function(){return D2(z3(w())).backgroundColor}})},_.W(_.r,{cond:function(){return!!w().video},
then:function(){return _.W("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.rm({background:function(){return D2(z3(w())).videoBackgroundColor}})},_.W(_.OF,{data:function(){return w().video}},{lockupViewModel:function(N){return _.W(_.Mw,{data:N.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.W("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.W("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.W("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.W("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.W("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.rm({color:function(){return D2(z3(w())).primaryTextColor}})},_.W(_.Lr,{text:function(){var N=w(),Q=G(),I=y()===w().correctAnswerIndex;
return Q?I?N.successTitle:N.failureTitle:N.questionHeaderText}})),_.W("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.W(_.r,{cond:G,
then:function(){return _.W("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":n,role:"button","aria-label":"Reset","tab-index":"0"},_.W("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.rm({fill:function(){return D2(z3(w())).primaryTextColor}})},_.W("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"})))}}),
_.W(_.OF,{data:function(){return w().overflowMenu}},{buttonViewModel:function(N){return _.W(_.Zs,{data:N.data})}}))),_.W("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.rm({color:function(){return D2(z3(w())).secondaryTextColor}})},_.W(_.Lr,{text:function(){var N=w();
return G()?N.explanationText:N.questionSubheaderText}}))),_.W("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.W(_.mL,{each:function(){return w().optionsData||[]}},function(N,Q){var I={};
return _.W("div",{class:_.HR("learningJourneyQuizViewModelHostQuizOptions",(I.learningJourneyQuizViewModelHostQuizHover=function(){return!G()},I.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return y()===w().correctAnswerIndex&&t(Q())},I.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return y()!==w().correctAnswerIndex&&t(Q())},I.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return G()&&!t(Q())},I)),
"on:click":_.QS(function(){if(G())return!1;e(Q());return!1}),
style:_.rm({background:function(){return G()&&t(Q())?"":D2(z3(w())).optionColor}}),
role:"button","aria-disabled":G,"tab-index":"0"},_.W(_.r,{cond:G,then:function(){return _.W("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var U=Q();return X(U)?"0 0 24 24":"0 -960 960 960"},
class:"learningJourneyQuizViewModelHostQuizOptionIcon",style:_.rm({fill:function(){return D2(z3(w())).primaryTextColor}})},_.W("path",{d:function(){var U=Q();
return X(U)?"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"}}))}}),_.W(_.Lr,{text:N.optionText}))})))))},"Mc");
lgG.idomCompat=!0;_.q9(lgG,"learning-journey-quiz-view-model",{props:{data:_.pK,className:_.pK}});var LfP=_.LL(function(q){var w=_.Bm();_.EF(w,function(){return q.data().rendererContext});
var u=_.lf(q,{palette:void 0,isLastItem:!1}),y=u.palette,e=u.isLastItem,t=function(){return q.data().isHighlighted},X=function(){var N;
return YBM((N=y())==null?void 0:N.iconDisabledColor)},G=function(){var N;
return YBM((N=y())==null?void 0:N.primaryTitleColor)},n=function(){var N;
return YBM((N=y())==null?void 0:N.secondaryTitleColor)};
u={};return _.W("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:w},_.W(_.OF,{data:function(){return q.data().thumbnail}},{thumbnailViewModel:_.EJ}),_.W("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.W("div",{class:_.HR("ytMacroMarkerListItemViewModelTimeDescription",(u.ytMacroMarkerListItemViewModelHighlighted=t,u)),
style:_.rm({"background-color":function(){return t()?G():X()},
color:function(){return t()?"":n()}})},_.W(_.Lr,{text:function(){return q.data().timestamp}})),_.W("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.rm({"background-color":function(){return e()?"transparent":X()}})}),_.W("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(t()?G():n())}},_.W(_.Lr,{text:function(){return q.data().title}}))))},"Nc");_.C6=_.LL(function(q){function w(Fa){b("transform:translateX("+(_.Et("HTML_DIR")==="rtl"?"":"-")+Fa+"px)")}
function u(Fa){return Math.min(Math.max(Fa,0),a()-x())}
function y(){var Fa=S()+Os();return e()?(Math.round(x()/Fa)||1)*Fa:0}
var e=function(){return q.data().items||[]},t=function(){return q.data().previousButton},X=function(){return q.data().nextButton},G=function(){var Fa,eq;
return(eq=(Fa=q.disableArrows)==null?void 0:Fa.call(q))!=null?eq:!1},n=function(){var Fa;
return!((Fa=q.forceNarrowLayout)==null||!Fa.call(q))},N=_.Bm(),Q=_.Bm(),I=_.P(_.r4(0,void 0,"Tceerd")),U=I.next().value,d=I.next().value;
I=_.P(_.r4(0,void 0,"x6hsgd"));var V=I.next().value,J=I.next().value,a=V;V=_.P(_.r4("",void 0,"YAz2xb"));I=V.next().value;var b=V.next().value;V=_.P(_.r4(0,void 0,"GKFlK"));var g=V.next().value,l=V.next().value,S=g;V=_.P(_.r4(0,void 0,"ATcv8b"));g=V.next().value;var eH=V.next().value,x=g;V=_.P(_.r4(!1,void 0,"eIrX3"));var P4=V.next().value,C7=V.next().value;V=_.P(_.r4(0,void 0,"dm6PFc"));g=V.next().value;var mu=V.next().value,Os=g;V=_.P(_.r4(0,void 0,"PxgULe"));var YJ=V.next().value,ao=V.next().value,
bc=function(){var Fa,eq=(Fa=q.data())==null?void 0:Fa.responsiveContainerConfiguration,Hk,W3;return eq?qH6(eq==null?void 0:eq.responsiveSize):(W3=(Hk=q.sizing)==null?void 0:Hk.call(q))!=null?W3:"STANDARD"};
V=_.oR(function(){return!G()&&U()>0},void 0,"pyrKJb");
g=_.oR(function(){return!G()&&U()<a()-x()},void 0,"MIv0ec");
var Ro=function(){d(u(U()-y()));w(U())},K7=function(){d(u(U()+y()));
w(U())},gx=function(){N.value!==null&&tc()},dx;
_.p4(function(){tc();window.ResizeObserver?(dx=new ResizeObserver(_.Qs(gx,0)),dx.observe(N.value)):window.addEventListener("resize",gx)});
_.ZG(function(){if(window.ResizeObserver){var Fa;(Fa=dx)==null||Fa.disconnect()}else window.removeEventListener("resize",gx)});
var tc=function(){var Fa=N.value.clientWidth,eq=q.includeMargin!==void 0?q.includeMargin():!1,Hk;var W3=q.hasPeek!==void 0?q.hasPeek():!((Hk=q.data())==null||!Hk.hasPeek);Fa=_.hg({containerWidth:Fa,hasPeek:W3,sizing:bc(),marginSettings:eq?n()?4:1:0});mu(Fa.gutter);ao(Fa.margin);l(Fa.itemWidth);C7(Fa.maxContainerWidth<528||n());eH(Fa.maxContainerWidth);e()&&J((Fa.itemWidth+Fa.gutter)*e().length-Fa.gutter)};
return _.W("horizontal-shelf-view-model",{class:_.HR("ytwHorizontalShelfViewModelHost",q.className),el:N},_.W(_.r,{cond:function(){return q.data().header},
then:function(){return _.W("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.rm({width:function(){return x()+"px"},
padding:function(){return"0 "+YJ()+"px"}})},_.W(_.OF,{data:function(){return q.data().header}},{sectionHeaderViewModel:function(Fa){return _.W(_.Bb,{data:Fa.data,
disableHorizontalPadding:!0,forceSmallLayout:P4,useResponsiveLayout:!0})}}))}}),_.W("div",{class:"ytwHorizontalShelfViewModelOuterContainer",
style:_.rm({"margin-top":function(){var Fa;return(((Fa=q.ensureMarginTop)==null?0:Fa.call(q))?q.data().header?0:12:0)+"px"}})},_.W("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.rm({width:function(){return x()+"px"},
padding:function(){return"0 "+YJ()+"px"},
overflow:function(){return G()?"auto":"hidden"}})},_.W("div",{class:"ytwHorizontalShelfViewModelItems",
el:Q,style:I},_.W(_.OF,{data:e},{macroMarkerListItemViewModel:function(Fa,eq){return _.W("div",{style:_.rm({width:function(){return S()+"px"},
"margin-right":function(){return(eq()===e().length-1?0:Os())+"px"}})},_.W(LfP,{data:Fa.data,
palette:_.jf(q.palette),isLastItem:function(){return eq()===e().length-1}}))},
lockupViewModel:function(Fa,eq){var Hk=Fa.data;return _.W("div",{style:_.rm({width:function(){return S()+"px"},
"margin-right":function(){return(eq()===e().length-1?0:Os())+"px"}})},_.W(_.Mw,{data:Hk,
containerType:4,sizing:bc,protectBackground:q.protectBackground,thumbnailFixedWidth:function(){return g4M(Hk())+"px"},
thumbnailTargetWidth:function(){return g4M(Hk())}}))}}))),_.W(_.r,{cond:V,
then:function(){return _.W("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.W(_.OF,{data:t},{buttonViewModel:function(Fa){return _.W(_.Zs,{data:Fa.data,onClick:Ro})}}))}}),_.W(_.r,{cond:g,
then:function(){return _.W("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.W(_.OF,{data:X},{buttonViewModel:function(Fa){return _.W(_.Zs,{data:Fa.data,onClick:K7})}}))}})))},"Oc");
_.C6.idomCompat=!0;var Mk3=_.LL(function(q){var w=function(){return q.data().targetId||""},u=function(){var U;
return((U=q.data())==null?void 0:U.expansionEntityKey)||""},y=_.Qo(_.jdc,u),e=function(){var U;
return((U=y())==null?void 0:U.value)===w()},t=function(U){_.hM(_.IH("stringEntity",u(),{key:u(),
value:U?w():""}))};
_.DR(function(){q.data().isExpanded&&t(!0)});
var X=function(){if(e()){var U=!0;q.onCollapse!==void 0&&(U=q.onCollapse());U&&t(!1)}else t(!0)},G=_.QS(X),n=function(){var U;
return(((U=q.accordionStyle)==null?void 0:U.call(q))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},N=_.Bm(),Q={},I={};
return _.W("yt-accordion-item-view-model",{class:_.HR("ytAccordionItemViewModelHost",q.className,(Q.ytAccordionItemViewModelExpanded=function(){return e()},Q.ytAccordionItemViewModelHidden=function(){var U;
return(U=q.hideIfNotExpanded)==null?void 0:U.call(q)},Q.ytAccordionItemViewModelMini=n,Q)),
"data-target-id":w},_.W("div",{class:"ytAccordionItemViewModelContainer"},_.W("div",{class:"ytAccordionItemViewModelLeftSection","on:click":G},_.W(_.Lr,{text:function(){return q.data().title},
className:"ytAccordionItemViewModelLabel"})),_.W("div",{class:"ytAccordionItemViewModelRightSection"},_.W(_.OF,{data:function(){return e()?q.data().expandButton:q.data().collapseButton}},{buttonViewModel:function(U){return _.W(_.Zs,{data:U.data,
className:"ytAccordionItemViewModelToggleButton",onClick:X})}}))),_.W("div",{class:"ytAccordionItemViewModelContainer"},_.W("div",{class:_.HR("ytAccordionItemViewModelContent",(I.ytAccordionItemViewModelExpandedSubtitle=function(){return e()},I)),
el:N,style:_.rm({"max-height":function(){return N.value?e()?N.value.scrollHeight+"px":"0":"auto"}})},_.W(_.r,{cond:function(){return!n()},
then:function(){return _.W(_.Lr,{text:function(){return q.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.W(_.OF,{data:function(){return q.data().content}},{horizontalShelfViewModel:function(U){return _.W(_.C6,{data:U.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Pc");_.Kf3=_.LL(function(q){var w=_.P((0,_.obP)(q.data)).next().value,u=function(){return q.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},y=function(){return u()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},e=_.P(_.r4(!0,void 0,"nJGZI")),t=e.next().value,X=e.next().value,G=function(){return y()&&t()},n=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){X(!t())}}},N=_.QS(function(){w().onTitleTap&&_.bn(w().onTitleTap||{})});
e={};return _.W("yt-accordion-view-model",{class:_.HR("ytAccordionViewModelHost",(e.ytAccordionViewModelMinimized=function(){return G()},e)),
"data-target-id":function(){return q.data().targetId||""}},_.W(_.r,{cond:function(){return y()||!!w().title},
then:function(){return _.W("div",{class:"ytAccordionViewModelHeader"},_.W("div",{class:"ytAccordionViewModelTitleSection"},_.W("div",{class:"ytAccordionViewModelTitleWrapper"},_.W(_.r,{cond:function(){return!!q.data().headerIcon},
then:function(){return _.W(_.U3,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var Q;return(Q=q.data().headerIcon)==null?void 0:Q.iconType}})}}),_.W("div",{class:"ytAccordionViewModelTitle",
"on:click":N},_.W(_.Lr,{className:"ytAccordionViewModelTitleText",text:function(){return w().title}})))),_.W("div",{class:"ytAccordionViewModelButtonSection"},_.W(_.r,{cond:y,
then:function(){return _.W(Kr,{data:n,iconName:function(){return G()?"chevron_down":"chevron_collapse"}})}})))}}),_.W("div",{class:"ytAccordionViewModelContent"},_.W(_.OF,{data:function(){return w().contents}},{accordionItemViewModel:function(Q){return _.W(Mk3,{data:Q.data,
className:"ytAccordionViewModelRow",accordionStyle:u,hideIfNotExpanded:G,onCollapse:function(){return y()?(X(!0),!1):!0}})}})),_.W("div",null,_.W(_.r,{cond:function(){return!y()},
then:function(){return _.W(_.Lr,{text:function(){return w().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"})}})))},"Qc");_.q9(_.Kf3,"yt-accordion-view-model",{props:{data:_.pK}});_.q9(_.LL(function(q){var w,u=(w=_.tG().resolve(_.kF(_.Rg)))==null?void 0:w(),y=_.P(_.r4(!1,void 0,"XM2Sxc"));w=y.next().value;var e=y.next().value;y=_.P(_.r4(!0,void 0,"Jgzg2d"));var t=y.next().value,X=y.next().value,G=_.Bm(),n=function(V){e(!0);V={learningJourneyFormData:{query:V}};_.bn(q.data().searchEndpoint||{},{form:{formData:V}});return!1},N=_.QS(function(V){V.target.closest("button-view-model")&&e(!0)});
y=_.QS(function(){X(G.value.value.length===0)});
var Q=_.QS(function(V){if(V.key==="Enter"&&!V.shiftKey&&!t()){var J=V.target;V.preventDefault();n(J.value)}}),I={},U={},d={};
return _.W("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.W("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.W(_.ln,{data:function(){return q.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.W("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.W("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.W("div",{class:_.HR("ytLearningJourneyZeroStateSearchBar",(I.ytLearningJourneyZeroStateSearchBarDark=u,I))},_.W("textarea",{class:_.HR("ytLearningJourneyZeroStateTextInput",(U.ytLearningJourneyZeroStateTextInputDark=u,U)),el:G,"on:keyup":y,"on:keydown":Q,placeholder:"What do you want to learn?",
rows:1})),_.W("div",{class:_.HR("ytLearningJourneyZeroStateSearchButtonContainer",(d.ytLearningJourneyZeroStateSearchButtonContainerDark=u,d))},_.W(_.Zs,{data:function(){return _.C(q.data().searchButton,_.oH)},
className:"search-button",onClick:function(){return n(G.value.value)},
buttonOverrides:function(){return{disabled:t(),style:u?"mono-inverse":"mono",size:"XL"}}}))),_.W(_.r,{cond:function(){return!!q.data().errorBanner},
then:function(){return _.W("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.W(_.OF,{data:function(){return q.data().errorBanner}},{alertBannerViewModel:_.Owx}))}})),_.W(_.r,{cond:w,
then:function(){return _.W("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.W(_.OF,{data:function(){return q.data().loader}},{learningJourneyLoaderViewModel:function(V){return _.W(_.jcc,{data:V.data})}}))},
else:function(){return _.W("div",null,_.W(_.r,{cond:function(){return!!q.data().learningJourneyShelf},
then:function(){return _.W("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.W("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return q.data().learningJourneySectionTitle}),_.W(_.OF,{data:function(){return q.data().learningJourneyShelf}},{horizontalShelfViewModel:_.C6}))}}),_.W("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.W("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return q.data().suggestedJourneySectionTitle}),
_.W("div",{"on:click":N},_.W(_.OF,{data:function(){return q.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(V){return _.W(du,{data:V.data,
layout:1})}}))))}}))},"Rc"),"yt-learning-journey-zero-state",{props:{data:_.pK}});var BJ$=_.LL(function(q){var w=q.data;return _.W("ytvl-live-leaderboard-item-action-content-view-model",{class:_.HR("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.W(_.Lr,{text:function(){var u;return(u=w())==null?void 0:u.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.W(_.OF,{data:function(){return w().actionButton}},{buttonViewModel:function(u){return _.W(_.Zs,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:u.data})}}))},"Sc");var xxF=_.LL(function(q){var w=q.data;return _.W("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.HR("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.W(_.Lr,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var u;return(u=w())==null?void 0:u.displayName},
ellipsisTruncate:!0}),_.W(_.OF,{data:function(){return w().badge}},{buttonViewModel:function(u){return _.W(_.Zs,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:u.data})}}))},"Tc");_.q9(_.LL(function(q){var w=q.data;return _.W("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.W("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.W(_.Lr,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var u;return(u=w())==null?void 0:u.rank}})),_.W("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.W(_.OF,{data:function(){return w().avatar}},{avatarViewModel:_.Vb})),_.W("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.W(_.OF,{data:function(){return w().content}},{liveLeaderboardItemChannelContentViewModel:xxF,
liveLeaderboardItemActionContentViewModel:BJ$})),_.W(_.Lr,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var u;return(u=w())==null?void 0:u.points}}))},"Uc"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.pK}});_.q9(_.LL(function(q){var w=q.data;return _.W("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.W(_.Lr,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var u,y;return(u=w())==null?void 0:(y=u.ranking)==null?void 0:y.rank}}),_.W("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.W(_.OF,{data:function(){return w().avatar}},{avatarViewModel:_.Vb})),_.W(_.Lr,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var u,y;return(u=w())==null?void 0:(y=u.channelContent)==null?void 0:y.channelName}}),_.W(_.Lr,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var u;return(u=w())==null?void 0:u.points}}))},"Vc"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.pK}});var q_T=_.LL(function(q){q=_.lf(q,{wrapper:!1}).wrapper;return _.W(_.r,{cond:q,then:function(){return _.W("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.W("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.W("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Wc");
q_T.idomCompat=!0;var wBP=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],utT=_.LL(function(q){var w=q.data;var u=_.Bm(),y=_.oR(function(){return w().command},void 0,"CGDtVe");
_.DG(function(){y()&&_.px(y(),{form:{element:u.value}})});
return _.W("div",{el:u,class:"YtQrCodeRendererHostContainer"},_.W(_.r,{cond:function(){return w().qrCodeImage},
then:function(e){return _.W(_.ln,{data:e,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.W(_.r,{cond:function(){return w().spinner},
then:function(){return _.W(q_T,null)}})}}),_.W(_.r,{cond:function(){return w().label},
then:function(e){return _.W(_.Lr,{text:e,className:"YtQrCodeRendererHostLabel"})}}),_.W(_.r,{cond:function(){return w().labels},
then:function(e){return _.W("div",{class:"YtQrCodeRendererHostLabels"},_.W(_.mL,{each:e},function(t){return _.W(_.Lr,{text:t})}))}}))},"Yc");_.q9(_.LL(function(q){var w=q.data;var u=_.oR(function(){return w().qrEntityKey},void 0,"joYCxd"),y=_.oR(function(){return w().deleteEntityOnDismiss},void 0,"x3yAde"),e=_.oR(function(){return w().command},void 0,"dJe1Re"),t=_.Qo(oxl,u);
q=_.oR(function(){return w().style&&wBP.includes(w().style)},void 0,"rGILzf");
var X=_.Bm();_.k$(X,{visibilityCallback:function(G){G&&e()&&_.px(e())},
showOption:{calledOnce:!0,state:"visible"}});_.p4(function(){_.ZG(function(){y()&&u()&&_.cj().dispatch(_.IH("qrCodeEntity",u()))})});
return _.W("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:X},_.W(_.r,{cond:q,then:function(){return _.W(_.r,{cond:t,then:function(G){return _.W(utT,{data:G})}})}}))},"Xc"),"yt-qr-code-renderer",{props:{data:_.pK}});_.ynx=_.LL(function(q){var w=q.data;var u=q.topbarOffset;var y,e=((y=_.tG().resolve(_.kF(_.Rg)))==null?void 0:y())||!1;return _.W("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var t=w();var X,G,n=e?(X=t.config)==null?void 0:X.darkThemeBackgroundColor:(G=t.config)==null?void 0:G.lightThemeBackgroundColor;t=n?_.Ae(n):void 0;t="background-color: "+t+";";u!==void 0&&(t+="top: -"+u()+"px;");return t},
"aria-hidden":!0},_.W(_.r,{cond:function(){var t,X,G;return!!((t=w().backgroundImageConfig)==null?0:(X=t.image)==null?0:(G=X.sources)==null?0:G.length)},
then:function(){return _.W(_.ln,{data:function(){var t;return(t=w().backgroundImageConfig)==null?void 0:t.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.W("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+E4y(e,w().gradientColorConfig)+";"}}))},"Zc");
_.ynx.idomCompat=!0;var d2=_.LL(function(q){var w=q.className;var u=q.data;var y=q.isOverlay;var e=q.maxLinesOverride;var t=q.useMediumText;q=_.Bm();var X=function(){return u().alwaysShowTruncationText},G=function(){return u().truncationText},n=function(){return t!==void 0&&t()?"medium":"small"},N=function(){return y!==void 0&&y()?"overlay":"default"},Q=function(){var J,a;
return(a=(J=_.C(u().rendererContext,_.ik))==null?void 0:J.label)!=null?a:""},I=_.P(_.r4(!1,void 0,"mkuWzb")),U=I.next().value,d=I.next().value;
_.EF(q,function(){return u().rendererContext});
I=_.QS(function(){u().expandOnTap&&d(!U());return!1});
var V={};return _.W("yt-description-preview-view-model",{el:q,class:_.HR("yt-description-preview-view-model-wiz",w,(V["yt-description-preview-view-model-wiz--clickable"]=function(){var J;return!((J=_.C(u().rendererContext,XeM))==null||!J.onTap)},V["yt-description-preview-view-model-wiz--is-overlay"]=y,V)),
"on:click":I},_.W(_.r,{cond:function(){return u().description},
then:function(J){return _.W(_.r,{cond:U,then:function(){var a={};return _.W("div",{class:_.HR("yt-description-preview-view-model-wiz__description",(a["yt-description-preview-view-model-wiz__description--medium-text"]=t,a))},_.W(_.Lr,{text:J}))},
else:function(){return _.W(fYa,{text:J,alwaysShowTruncationText:X,truncationText:G,maxLines:function(){var a;return(a=e==null?void 0:e())!=null?a:u().maxLines},
textStyle:N,accessibilityLabel:Q,textSize:n})}})}}))},"$c");
d2.idomCompat=!0;var ecF=_.LL(function(q){var w=q.data;var u=q.isOverlay;return _.W("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.W("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.W(_.OF,{data:function(){return w().header}},{sectionHeaderViewModel:function(y){return _.W(_.Bb,{data:y.data,
isOverlay:u})}})),_.W("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.W(_.OF,{data:function(){return w().channelInfoButtons}},{flexibleActionsViewModel:du})),_.W("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.W(_.OF,{data:function(){return w().description}},{descriptionPreviewViewModel:function(y){return _.W(d2,{data:y.data,
isOverlay:u})}})))},"ad");
ecF.idomCompat=!0;var kYF=_.LL(function(q){var w=q.data;var u={};return _.W("factoid-view-model",{class:_.HR("ytwFactoidViewModelHost",(u.ytwFactoidViewModelHostOverlay=q.isOverlay,u))},_.W(_.Lr,{text:function(){return w().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.W(_.Lr,{text:function(){return w().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"bd");
kYF.idomCompat=!0;var tuZ=_.LL(function(q){var w=q.data;var u=q.isOverlay;return _.W("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.W(_.OF,{data:function(){return w().factoids}},{factoidViewModel:function(y){return _.W(kYF,{data:y.data,
isOverlay:u})}}))},"cd");
tuZ.idomCompat=!0;_.PLx=_.LL(function(q){var w=q.data;var u=q.isOverlay;return _.W("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.W(_.OF,{data:function(){return w().items}},{channelInfoViewModel:function(y){return _.W("div",{class:"ytwCourseMetadataViewModelHostItem"},_.W(ecF,{data:y.data,
isOverlay:u}))},
coursePerksViewModel:function(y){return _.W("div",{class:"ytwCourseMetadataViewModelHostItem"},_.W(Rea,{data:y.data,isOverlay:u}))},
descriptionPreviewViewModel:function(y){return _.W("div",{class:"ytwCourseMetadataViewModelHostItem"},_.W(d2,{data:y.data,isOverlay:u}))},
factoidsRowViewModel:function(y){return _.W("div",{class:"ytwCourseMetadataViewModelHostItem"},_.W(tuZ,{data:y.data,isOverlay:u}))},
progressViewModel:function(y){return _.W("div",{class:"ytwCourseMetadataViewModelHostItem"},_.W(cJk,{data:y.data,isOverlay:u}))}}))},"dd");var XBX=_.LL(function(q){return _.W("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.W(_.OF,{data:function(){return q.data().content}},{courseMetadataViewModel:function(w){return _.W(_.PLx,{data:w.data,
isOverlay:q.isOverlay})},
progressViewModel:function(w){return _.W(cJk,{data:w.data})}}))},"ed");var FAX=_.LL(function(q){var w=q.data;q=q.className;var u=_.Bm(),y=function(){var t;return _.gE((t=w())==null?void 0:t.rendererContext)},e={};
e=(e["dynamic-text-view-model-wiz"]=!0,e["dynamic-text-view-model-wiz--tappable"]=function(){return y()},e);
_.EF(u,function(){var t;return(t=w())==null?void 0:t.rendererContext});
return _.W("yt-dynamic-text-view-model",{el:u,role:function(){return y()?"link":void 0},
tabindex:function(){return y()?0:void 0},
class:_.HR(q,e)},_.W("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var t,X,G;return(G=(X=_.C((t=w())==null?void 0:t.rendererContext,_.ik))==null?void 0:X.label)!=null?G:""}},_.W(_.Lr,{text:function(){return w().text},
userInput:!0})))},"fd");
FAX.idomCompat=!0;_.GYZ=_.LL(function(q){var w=q.data;var u=q.isPositionRelative;var y=_.x8(),e=_.cSJ("(max-width: 527.9px)"),t=function(){var X,G;return(G=(X=w())==null?void 0:X.style)!=null?G:"IMAGE_BANNER_STYLE_FULL_BLEED"};
q={};q=(q["yt-image-banner-view-model-wiz"]=!0,q["yt-image-banner-view-model-wiz--inset"]=function(){return SBJ(t())},q["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.$C(!0)&&!(u==null?0:u())},q["yt-image-banner-view-model-wiz--small-inset"]=function(){return SBJ(t())&&e()},q["yt-image-banner-view-model-wiz--tappable"]=function(){var X;
return _.$C(y.value)&&_.gE((X=w())==null?void 0:X.rendererContext)},q);
_.EF(y,function(){var X;return(X=w())==null?void 0:X.rendererContext});
return _.W("yt-image-banner-view-model",{el:y,class:_.HR(q)},_.W(_.r,{cond:function(){var X;return(X=w())==null?void 0:X.image},
then:function(){return _.W(_.ln,{data:function(){return w().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.W(_.OF,{data:function(){var X;
return(X=w())==null?void 0:X.overlays}},{thumbnailHoverOverlayViewModel:ry}))},"gd");
_.GYZ.idomCompat=!0;var n7j;n7j=_.LL(function(q){var w=q.condition;var u=q.content;return _.W(_.r,{cond:w,then:function(){return _.W("div",{class:"page-header-view-model-wiz__scroll-container"},u())},
else:function(){return u()}})},"hd");
_.H8x=_.LL(function(q){var w=q.data;var u=q.noPadding;var y=q.enableBanner;var e=q.cinematicContainerTopbarOffset;var t=q.allowCinematicContainerOverflow;var X=q.displayAsSidebar;var G=q.displayAsPanel;var n=hd6(),N=function(){return!!w().image||!!w().animatedImage},Q=function(){return!!w().background},I=function(){return(X==null?0:X())||(G==null?0:G())?1:n()},U=function(){return I()===1},d=function(){return U()||I()===2},V=function(){return I()===4},J=function(){var Os=w();
var YJ=!!w().heroImage;var ao=I(),bc=jbJ(w()),Ro=X==null?void 0:X(),K7=!Os.metadata,gx;if(gx=YJ?_.C(Os.heroImage,Mh6):_.C(Os.animatedImage||Os.image,Mh6)){Os=gx.style;var dx=gx.layoutMode;gx=IqM(QWf(gx));if(YJ)YJ=Rdy(ao,Os,dx,gx,Ro);else b:if(K7)YJ=ao===1?{size:48}:{size:72};else switch(ao){case 1:YJ={size:72};break b;case 2:YJ={size:120};break b;default:YJ=bc<4?{size:120}:{size:160}}}else YJ={size:0};return YJ};
q={};q=_.HR((q["page-header-view-model-wiz"]=!0,q["page-header-view-model-wiz--no-padding"]=function(){return!(u==null||!u())},q["page-header-view-model-wiz--small-top-padding"]=function(){return U()&&!w().actions||I()===2&&!(N()||w().heroImage)},q["page-header-view-model-wiz--small-bottom-padding"]=function(){return d()&&!w().actions},q["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(t==null?0:t())},q["page-header-view-model-wiz--display-as-sidebar"]=X,q["page-header-view-model-wiz--display-as-panel"]=
G,q));
var a={},b=_.HR((a["page-header-view-model-wiz__page-header-headline"]=!0,a["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){return J().allowFullWidth},a)),g=function(){return U()&&(!!w().heroImage||N())&&jbJ(w())>0},l=function(){return g()&&(G==null?void 0:G())};
a={};var S=_.HR((a["page-header-view-model-wiz__page-header-title"]=!0,a["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!g()},a["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return g()&&!l()},a["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=l,a["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=Q,a));
a={};var eH=_.HR((a["page-header-view-model-wiz__page-header-headline-image"]=!0,a["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!w().heroImage&&d()},a));
a={};var x=_.HR((a["page-header-view-model-wiz__page-header-banner-container"]=y,a["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var Os;return(y==null?void 0:y())&&((Os=_.C(w().banner,_.Bo$))==null?void 0:Os.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},a));
a={};var P4=_.HR((a["page-header-view-model-wiz__page-header-content-metadata"]=!0,a["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=Q,a));a={};var C7=_.HR((a["page-header-view-model-wiz__page-header-flexible-actions"]=!0,a["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!w().metadata||d()},a["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!d()},a));
a={};var mu=_.HR((a["page-header-view-model-wiz__page-header-attribution"]=!0,a["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=Q,a));return _.W("yt-page-header-view-model",{class:q},_.W(_.r,{cond:Q,then:function(){return _.W("div",{class:"page-header-view-model-wiz__page-header-background"},_.W(_.OF,{data:function(){return w().background}},{cinematicContainerViewModel:function(Os){return _.W(_.ynx,{data:Os.data,
topbarOffset:e})}}))}}),_.W(n7j,{condition:function(){return!(X==null||!X())},
content:function(){return _.W("div",{class:"page-header-view-model-wiz__page-header-content"},_.W(_.r,{cond:function(){return(y==null?void 0:y())&&w().banner},
then:function(){return _.W("div",{class:x},_.W(_.OF,{data:function(){return w().banner}},{imageBannerViewModel:_.GYZ}))}}),_.W("div",{class:b},_.W(_.r,{cond:N,
then:function(){return _.W(_.OF,{data:function(){var Os;if(!(Os=w().animatedImage)){Os=w();if(N()){var YJ=Os=Object.assign({},Os),ao=I(),bc=jbJ(w()),Ro=YJ.image,K7=_.C(Ro,KFx),gx=K7==null?void 0:K7.avatar,dx=_.C(gx,_.RH);if(Ro&&gx&&dx){switch(ao){case 1:dx.avatarImageSize="AVATAR_SIZE_XL";break;case 2:dx.avatarImageSize="AVATAR_SIZE_XXL";break;default:bc<4?dx.avatarImageSize="AVATAR_SIZE_XXL":dx.avatarImageSize="AVATAR_SIZE_XXXL"}_.T("web_enable_sink_page_header_view_model")&&(_.AB(gx,_.RH,Object.assign({},
dx)),K7.avatar=Object.assign({},gx),_.AB(Ro,KFx,Object.assign({},K7)),YJ.image=Object.assign({},Ro))}}Os=Os.image}return Os}},{contentPreviewImageViewModel:function(Os){return _.W(_.jj,{data:Os.data,
className:eH,imageSizeConfig:J})},
decoratedAvatarViewModel:function(Os){return _.W(_.UJ,{data:Os.data,className:eH})}})}}),_.W(_.r,{cond:function(){return!!w().heroImage&&!(d()&&!J().allowFullWidth)},
then:function(){return _.W(_.OF,{data:function(){return w().heroImage}},{contentPreviewImageViewModel:function(Os){return _.W(_.jj,{data:Os.data,
className:eH,imageSizeConfig:J})}})}}),_.W("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.W(_.r,{cond:function(){return!!w().heroImage&&d()&&!J().allowFullWidth},
then:function(){return _.W("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.W(_.OF,{data:function(){return w().heroImage}},{contentPreviewImageViewModel:function(Os){return _.W(_.jj,{data:Os.data,
className:eH,imageSizeConfig:J})}}))}}),_.W(_.OF,{data:function(){return w().title}},{dynamicTextViewModel:function(Os){return _.W(FAX,{data:Os.data,
className:S})}}),_.W(_.OF,{data:function(){return w().metadata}},{contentMetadataViewModel:function(Os){return _.W(_.QY3,{data:Os.data,
layout:function(){return U()?1:0},
className:P4,isOverlay:Q,useMediumText:V})}}),_.W(_.r,{cond:function(){return w().description&&!U()},
then:function(){return _.W(_.OF,{data:function(){return w().description}},{descriptionPreviewViewModel:function(Os){return _.W(d2,{data:Os.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:Q,maxLinesOverride:function(){return U()?void 0:1},
useMediumText:V})}})}}),_.W(_.r,{cond:function(){return w().attribution&&!d()},
then:function(){return _.W(_.OF,{data:function(){return w().attribution}},{attributionViewModel:function(Os){return _.W(FXT,{data:Os.data,
className:mu,useMediumText:V})}})}}),_.W(_.r,{cond:function(){return w().actions&&!d()},
then:function(){return _.W(_.OF,{data:function(){return w().actions}},{flexibleActionsViewModel:function(Os){return _.W(du,{data:Os.data,
layout:function(){return ldy(I())},
className:C7})}})}}))),_.W("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.W(_.r,{cond:function(){return w().description&&U()},
then:function(){return _.W(_.OF,{data:function(){return w().description}},{descriptionPreviewViewModel:function(Os){return _.W(d2,{data:Os.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:Q,maxLinesOverride:function(){return U()?void 0:1},
useMediumText:V})}})}}),_.W(_.r,{cond:function(){return w().attribution&&d()},
then:function(){return _.W(_.OF,{data:function(){return w().attribution}},{attributionViewModel:function(Os){return _.W(FXT,{data:Os.data,
className:mu,useMediumText:V})}})}}),_.W(_.r,{cond:function(){return w().actions&&d()},
then:function(){return _.W(_.OF,{data:function(){return w().actions}},{flexibleActionsViewModel:function(Os){return _.W(du,{data:Os.data,
layout:function(){return ldy(I())},
className:C7})}})}})),_.W("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.W(_.OF,{data:function(){return w().bottomMetadataFlexibleContainer}},{flexibleContainer:function(Os){return _.W(XBX,{data:Os.data,
isOverlay:Q})}})))}}))},"id");
_.H8x.idomCompat=!0;_.q9(_.LL(function(q){var w=_.P(_.r4(!1,void 0,"vVRl3b")),u=w.next().value,y=w.next().value;return _.W("yt-official-card-view-model",{class:_.HR("ytOfficialCardViewModelHost",q.className),style:_.rm({"background-color":function(){var e,t=jFf((e=q.data())==null?void 0:e.backgroundColor);return t?_.Je(t):void 0}})},_.W(_.OF,{data:function(){return q.data().header}},{pageHeaderViewModel:function(e){return _.W(_.H8x,{data:e.data,
noPadding:!0})}}),_.W(_.OF,{data:function(){return q.data().contents}},{horizontalShelfViewModel:function(e){return _.W(_.C6,{data:e.data,
ensureMarginTop:!0})}}),_.W(_.r,{cond:u,
then:function(){return _.W("div",{class:"ytOfficialCardViewModelExpandedContent"},_.W(_.OF,{data:function(){return q.data().expandedContents}},{horizontalShelfViewModel:function(e){return _.W(_.C6,{data:e.data,
sizing:"MINI"})}}),_.W("div",{class:"ytOfficialCardViewModelCollapseButton"},_.W(_.OF,{data:function(){return q.data().collapseButton}},{buttonViewModel:function(e){return _.W(_.Zs,{data:e.data,
onClick:function(){y(!u())}})}})))},
else:function(){return _.W("div",{class:"ytOfficialCardViewModelExpandButton"},_.W(_.OF,{data:function(){return q.data().expandButton}},{buttonViewModel:function(e){return _.W(_.Zs,{data:e.data,
onClick:function(){y(!u())}})}}))}}))},"jd"),"yt-official-card-view-model",{props:{data:_.pK,
className:_.pK}});var Ldc=_.UF({buttonViewModel:_.Zs});_.t2(Mxu);_.XK(Mxu,"ytw-search-friction-view-model",{propNames:["data"]});_.O$=_.LL(function(q){var w=_.Bm(),u,y=(u=_.tG().resolve(_.kF(_.Rg)))==null?void 0:u();_.DG(function(){var e=w.value;var t=new dM$,X=new Map(t.JSC$7204_sanitizerTable.globalAttributePolicies);X.set("style",{policyAction:4});t.JSC$7204_sanitizerTable=new IJ(t.JSC$7204_sanitizerTable.allowedElements,t.JSC$7204_sanitizerTable.elementPolicies,t.JSC$7204_sanitizerTable.allowedGlobalAttributes,X,t.JSC$7204_sanitizerTable.globallyAllowedAttributePrefixes);var G=["data-time"];if(G===void 0)X=new Set(t.JSC$7204_sanitizerTable.globallyAllowedAttributePrefixes),
X.add("data-"),t.JSC$7204_sanitizerTable=new IJ(t.JSC$7204_sanitizerTable.allowedElements,t.JSC$7204_sanitizerTable.elementPolicies,t.JSC$7204_sanitizerTable.allowedGlobalAttributes,t.JSC$7204_sanitizerTable.globalAttributePolicies,X);else{X=new Set(t.JSC$7204_sanitizerTable.allowedGlobalAttributes);G=_.P(G);for(var n=G.next();!n.done;n=G.next()){n=n.value;if(n.indexOf("data-")!==0)throw Error("qa`"+n);X.add(n)}t.JSC$7204_sanitizerTable=new IJ(t.JSC$7204_sanitizerTable.allowedElements,t.JSC$7204_sanitizerTable.elementPolicies,
X,t.JSC$7204_sanitizerTable.globalAttributePolicies,t.JSC$7204_sanitizerTable.globallyAllowedAttributePrefixes)}X=new Set(t.JSC$7204_sanitizerTable.allowedGlobalAttributes);X.add("class");t.JSC$7204_sanitizerTable=new IJ(t.JSC$7204_sanitizerTable.allowedElements,t.JSC$7204_sanitizerTable.elementPolicies,X,t.JSC$7204_sanitizerTable.globalAttributePolicies,t.JSC$7204_sanitizerTable.globallyAllowedAttributePrefixes);_.Ym(e,_.i76(t.build(),Bl6(q.text())));xmJ(w.value)});
u={};return _.W("div",null,_.W("markdown-div",{class:_.HR("ytwMarkdownDivHost",(u.ytwMarkdownDivDark=y,u.ytwMarkdownDivHostSmall=function(){var e;return((e=q.isSmallText)==null?void 0:e.call(q))||!1},u)),
el:w}))},"kd");
_.O$.idomCompat=!0;var WAG=_.LL(function(q){var w=q.imageData;var u=_.jf(q.isInList,!1),y=function(){return u()?{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 _.W("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.W(_.r,{cond:function(){return w().image},
then:function(e){return _.W(_.ln,{data:e,alt:function(){return y().alt},
contentMode:function(){return y().contentMode},
targetWidth:function(){return y().targetWidth},
targetHeight:function(){return y().targetHeight},
className:function(){return y().className}})}}),_.W("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.W("div",{class:_.HR("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.W(_.Lr,{text:function(){return w().title}})),_.W(_.mL,{each:function(){var e;
return(e=w().description)!=null?e:[]}},function(e){return _.W("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.W(ou,{content:e}))})))},"ld"),sjj=_.LL(function(q){var w=q.list;
var u=function(){var y;return(y=w().items)!=null?y:[]};
return _.W("div",{class:"ytwGenAiRichTextViewModelListContent"},_.W(_.r,{cond:function(){return w().title},
then:function(y){return _.W("div",{class:_.HR("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.W(_.Lr,{text:y}))}}),_.W(_.r,{cond:function(){return w().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.W("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.W(_.mL,{each:u},function(y){return _.W("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.W(ou,{content:y,isInList:!0}))}))}}),_.W(_.r,{cond:function(){return w().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.W("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.W(_.mL,{each:u},function(y){return _.W("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.W(ou,{content:y,isInList:!0}))}))}}),_.W(_.r,{cond:function(){return w().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.W("div",{class:"ytwGenAiRichTextViewModelImageList"},_.W(_.mL,{each:u},function(y){return _.W("div",{class:"ytwGenAiRichTextViewModelListItem"},_.W(ou,{content:y,isInList:!0}))}))}}))},"md"),NKP=_.LL(function(q){var w=q.table;
return _.W("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.W("thead",null,_.W("tr",null,_.W(_.mL,{each:function(){var u,y;return(y=(u=w().header)==null?void 0:u.cells)!=null?y:[]}},function(u){return _.W("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.W(_.mL,{each:function(){return u.contents}},function(y){return _.W(ou,{content:y})}))}))),_.W("tbody",null,_.W(_.mL,{each:function(){var u;
return(u=w().rows)!=null?u:[]}},function(u){return _.W("tr",null,_.W(_.mL,{each:function(){return u.cells}},function(y){return _.W("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.W(_.mL,{each:function(){return y.contents}},function(e){return _.W(ou,{content:e})}))}))})))},"nd"),ou=_.LL(function(q){var w=q.content;
var u=_.jf(q.isInList,!1),y=function(){var e,t;return(t=(e=w().contentBlock)==null?void 0:e.contents)!=null?t:[]};
return _.W("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.W(_.r,{cond:function(){return w().text},
then:function(e){return _.W(_.Lr,{className:"ytwGenAiRichTextViewModelText",text:e})}}),_.W(_.r,{cond:function(){return w().image},
then:function(e){return _.W(WAG,{imageData:e,isInList:u})}}),_.W(_.r,{cond:function(){return w().list},
then:function(e){return _.W(sjj,{list:e})}}),_.W(_.r,{cond:function(){return w().contentBlock},
then:function(){return _.W("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.W(_.mL,{each:y},function(e){return _.W(ou,{content:e,isInList:!1})}))}}),_.W(_.r,{cond:function(){return w().table},
then:function(e){return _.W(NKP,{table:e})}}))},"od"),Qjk=_.LL(function(q){var w={};
w=_.s3("ytwGenAiRichTextViewModelHost",(w.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.GQ("search_overview_link_style")),w));return _.W("gen-ai-rich-text-view-model",{class:w},_.W(ou,{content:function(){return q.data().content}}))},"pd");_.t2(qDu);_.t2(Z2);_.IAa=_.LL(function(q){var w=q.data;var u=function(){var J;return((J=w().loadingUi)!=null?J:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},y=function(){return w().isLoading&&(u()==="UNSPECIFIED"||u()==="GHOST_CARD")},e=function(){return!w().isLoading},t=function(){return!!w().content&&!w().contents},X=function(){return!!w().contents},G=function(){return!!w().nextQueryButtons},n=function(){return w().isLoading&&u()==="INVISIBLE"},N=function(){var J,a;
return(a=(J=w().headerIcon)==null?void 0:J.iconType)!=null?a:""},Q=function(){var J;
return(J=w().content)!=null?J:""},I=function(){return!!w().sourcesSection},U,d=!((U=_.tG().resolve(_.kF(_.Rg)))==null||!U()),V=_.oR(function(){var J=[],a=w().contents;
if(a)for(var b=0;b<a.length;b++){var g=_.C(a&&a[b],n9X);g&&J.push(g)}return J},void 0,"ycU97e");
_.p4(function(){w().isLoading||_.D_("so_re",void 0,"search_overview_answer")});
return _.W("ytd-overview-answer-view-model",{class:function(){var J={};J=(J.ytdOverviewAnswerViewModelHost=!0,J.ytdOverviewAnswerViewModelDarkBackground=d&&!n(),J.ytdOverviewAnswerViewModelLightBackground=!d&&!n(),J);return _.s3(J)}},_.W(_.r,{cond:function(){return!n()},
then:function(){return _.W(_.GS,null,_.W("h2",null,_.W("div",{class:"ytdOverviewAnswerViewModelHeader"},_.W(_.r,{cond:N,then:function(J){return _.W("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.W(_.U3,{icon:J}))}}),_.W("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.W("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return w().headerText}),_.W("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.W(_.Lr,{text:function(){return w().headerSubtext}}))))),_.W(_.r,{cond:y,
then:function(){return qDu()}}),_.W(_.r,{cond:e,
then:function(){return _.W(_.GS,null,_.W(_.r,{cond:t,then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelText"},_.W(_.O$,{text:Q,isSmallText:!0}))}}),_.W(_.r,{cond:X,
then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelRichText"},_.W(_.mL,{each:V},function(J){return _.W(Qjk,{data:J})}))}}),_.W(_.r,{cond:G,
then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.W(_.OF,{data:function(){return w().nextQueryButtons}},{buttonViewModel:function(J){return _.W(_.Zs,{data:J.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.C6}))}}),_.W("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.W("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.W(_.r,{cond:function(){return!!_.C(w().likeButtonViewModel,_.Ag)&&!!_.C(w().dislikeButtonViewModel,_.Jg)},
then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.W(_.op,{data:function(){return _.C(w().likeButtonViewModel,_.Ag)},
disableIconAnimation:!0}),_.W(_.Oi,{data:function(){return _.C(w().dislikeButtonViewModel,_.Jg)}}))}})),_.W(_.r,{cond:function(){var J;
return(J=w().sourcesSection)==null?void 0:J.headerText},
then:function(J){return _.W("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.W(_.Lr,{text:J}))}})),_.W(_.r,{cond:I,
then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelSources"},_.W(_.OF,{data:function(){var J;return(J=w().sourcesSection)==null?void 0:J.sourcesShelf}},{buttonViewModel:_.Zs,
horizontalShelfViewModel:function(J){return _.W(_.C6,{data:J.data,includeMargin:!0,hasPeek:!0})}}))}}),_.W(_.r,{cond:function(){return w().disclaimerText},
then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.W(_.Lr,{text:function(){return w().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"qd");var i8r=_.LL(function(q){var w=q.data;var u=q.active;var y=_.Bm();_.DG(function(){var e,t,X,G=((e=_.tG().resolve(_.kF(_.Rg)))==null?0:e())?(t=w())==null?void 0:t.darkThemeColorPalette:(X=w())==null?void 0:X.lightThemeColorPalette;G&&(G.additiveBackground&&y.value.style.setProperty("--timestamp-active-background-color",_.Je(G.additiveBackground)),G.textSecondary&&y.value.style.setProperty("--timestamp-active-color",_.Ae(G.textSecondary)))},"KHcbwb");
q={};return _.W("transcript-segment-view-model",{class:_.HR("ytwTranscriptSegmentViewModelHost",(q.ytwTranscriptSegmentViewModelHostActive=u,q.ytwTranscriptSegmentViewModelHostModern=_.T("enable_timeline_view_modern_transcript")||_.T("enable_timeline_view_modern_transcript_fe"),q)),el:y},_.W(_.r,{cond:function(){var e;return(e=w())==null?void 0:e.timestamp},
then:function(e){var t={};return _.W("div",{class:_.HR("ytwTranscriptSegmentViewModelTimestamp",(t.ytwTranscriptSegmentViewModelTimestampActive=u,t))},e)}}),_.W(_.Lr,{text:function(){var e,t,X;
return(X=(e=w())==null?void 0:e.attributedText)!=null?X:{content:(t=w())==null?void 0:t.simpleText}},
linkInheritColor:!0}))},"rd");var rnX=_.LL(function(q){var w=q.data;return _.W("div",{class:"yt-video-attributes-section-view-model__header"},_.W("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return w().headerTitle}),_.W(_.r,{cond:function(){return w().headerSubtitle},
then:function(){return _.W("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return w().headerSubtitle})}}))},"sd"),UyG=_.LL(function(q){function w(V){return Math.max(Math.min(V,0),N()-G())}
var u=q.data;var y=_.Bm(),e=_.Bm();q=_.P(_.r4(0,void 0,"ucDlDf"));var t=q.next().value,X=q.next().value,G=t;q=_.P(_.r4(0,void 0,"lHzSub"));t=q.next().value;var n=q.next().value,N=t;q=_.P(_.r4(0,void 0,"Q8fDIe"));var Q=q.next().value,I=q.next().value;_.p4(function(){var V=function(){X(e.value.scrollWidth);n(y.value.clientWidth)};
V();if(window.ResizeObserver){var J=new ResizeObserver(V);J.observe(y.value);_.ZG(function(){J.disconnect()})}});
var U=function(){I(w(Q()+N()))},d=function(){I(w(Q()-N()))};
return _.W("yt-video-attributes-section-view-model",null,_.W("div",{class:"yt-video-attributes-section-view-model"},_.W(_.r,{cond:function(){return u().headerTitle},
then:function(){return _.W(rnX,{data:u})}}),_.W("div",{class:_.HR("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:y},_.W("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.rm({transform:function(){var V=Q();_.Et("HTML_DIR")==="rtl"&&(V*=-1);return"translateX("+V+"px)"}}),
el:e},_.W(_.OF,{data:function(){return u().videoAttributeViewModels}},{videoAttributeViewModel:mhX}))),_.W(_.OF,{data:function(){return u().footerButton}},{buttonViewModel:function(V){return _.W(_.Zs,{data:V.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.W(_.r,{cond:function(){return Q()<0&&u().previousButton},
then:function(){return _.W("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.W(_.OF,{data:function(){return u().previousButton}},{buttonViewModel:function(V){return _.W(_.Zs,{data:V.data,
onClick:U})}}))}}),_.W(_.r,{cond:function(){return Q()>N()-G()&&u().nextButton},
then:function(){return _.W("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.W(_.OF,{data:function(){return u().nextButton}},{buttonViewModel:function(V){return _.W(_.Zs,{data:V.data,
onClick:d})}}))}})))},"td");
UyG.idomCompat=!0;var TKX=_.LL(function(q){var w=q.data;var u=q.active;var y={},e={};return _.W("timeline-item-view-model",{class:_.HR("ytwTimelineItemViewModelHost",(y.ytwTimelineItemViewModelHostChapterChild=q.chapterChild,y.ytwTimelineItemViewModelModern=_.T("enable_timeline_view_modern_transcript")||_.T("enable_timeline_view_modern_transcript_fe"),y))},_.W("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.W("div",{class:_.HR("ytwTimelineItemViewModelTimestamp",(e.ytwTimelineItemViewModelTimestampActive=
u,e))},function(){return w().timestamp})),_.W("div",{class:"ytwTimelineItemViewModelContentItems"},_.W(_.OF,{data:function(){return w().contentItems}},{transcriptSegmentViewModel:function(t){return _.W(i8r,{data:t.data,
active:u})},
videoAttributesSectionViewModel:UyG})))},"ud");var CLT=_.LL(function(q){var w=q.data;q={};return _.W("timeline-chapter-view-model",{class:_.HR("ytwTimelineChapterViewModelHost")},_.W("div",{class:_.HR("ytwTimelineChapterViewModelTitle",(q.ytwTimelineChapterViewModelModern=_.T("enable_timeline_view_modern_transcript")||_.T("enable_timeline_view_modern_transcript_fe"),q))},function(){return w().title}),_.W(_.OF,{data:function(){return w().contents}},{timelineItemViewModel:function(u){return _.W(TKX,{data:u.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(u){return _.W(UyG,{data:u.data})}}))},"vd");var dyT=_.LL(function(q){var w=q.data;var u=_.Bm(),y=_.Qo(_.UVo,function(){var t;return(t=w().markersEngagementPanelSyncEntityKey)!=null?t:""}),e=function(){var t;
return((t=y())==null?void 0:t.activeItemIndex)===w().index};
q=_.QS(function(t){var X,G,n,N,Q;return _.F(function(I){if(I.nextAddress==1)return t.stopPropagation(),_.KVM(_.bq(t),u.value,["A".toString(),"BUTTON".toString()])?I.return():(X=_.Zh(w().onTap))?_.H(I,_.Fu(),2):I.return();G=I.yieldResult;N=(n=_.C(X,_.LN))==null?void 0:n.startTimeSeconds;N===void 0||(Q=G)!=null&&Q.seekTo(N,!0);_.HI(I)})});
return _.W("macro-markers-panel-item-view-model",{class:_.HR("ytwMacroMarkersPanelItemViewModelHost",{"is-active":e}),el:u,"on:click":q,tabindex:0},_.W(_.OF,{data:function(){var t;return(t=w())==null?void 0:t.item}},{timelineChapterViewModel:function(t){return _.W(CLT,{data:t.data,
active:e})},
timelineItemViewModel:function(t){return _.W(TKX,{data:t.data,active:e})},
videoAttributeViewModel:mhX}))},"wd");
dyT.idomCompat=!0;_.q9(dyT,"macro-markers-panel-item-view-model",{props:{data:_.pK}});_.q9(UyG,"yt-video-attributes-section-view-model",{props:{data:_.pK}});var O83=_.LL(function(q){var w=function(){var u,y,e;return(e=(u=q.data().leadingLogoAccessibility)==null?void 0:(y=u.accessibilityData)==null?void 0:y.label)!=null?e:""};
return _.W("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.W(_.r,{cond:function(){return q.data().leadingLogo},
then:function(u){return _.W(_.ln,{className:"ytwFantasySectionHeaderViewModelLogo",data:u,alt:w})}}),_.W("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.W(_.Lr,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return q.data().title}}),_.W(_.Lr,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return q.data().subtitle}})),_.W(_.OF,{data:function(){return q.data().trailingButton}},{buttonViewModel:function(u){return _.W(_.Zs,{data:u.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"xd");var o7a=_.LL(function(q){var w={};w=_.HR("ytwFantasyTeamViewModelHost",(w.ytwFantasyTeamViewModelCompact=function(){var e;return!((e=q.compact)==null||!e.call(q))},w.ytwFantasyTeamViewModelUser=function(){return q.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},w.ytwFantasyTeamViewModelOpponent=function(){return q.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},w));
var u=function(){var e,t,X;return(X=(e=q.data().teamLogoAccessibility)==null?void 0:(t=e.accessibilityData)==null?void 0:t.label)!=null?X:""},y=_.Qo(CmM,function(){return q.data().teamEntityKey});
return _.W("ytw-fantasy-team-view-model",{class:w},_.W(_.r,{cond:function(){return q.data().teamLogo},
then:function(e){return _.W(_.ln,{className:"ytwFantasyTeamViewModelLogo",data:e,alt:u})}}),_.W("div",{class:"ytwFantasyTeamViewModelMetadata"},_.W("div",{class:"ytwFantasyTeamViewModelHeader"},_.W(_.Lr,{className:"ytwFantasyTeamViewModelScore",
text:function(){var e;return(e=y())==null?void 0:e.score}}),_.W(_.U3,{icon:function(){var e;
return(e=y())==null?void 0:e.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.W(_.Lr,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var e;return(e=y())==null?void 0:e.projectedScore}})),_.W(_.Lr,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return q.data().primaryText}}),_.W(_.Lr,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return q.data().secondaryText}}),_.W(_.Lr,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return q.data().tertiaryText}})),_.W(_.Lr,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var e;return(e=y())==null?void 0:e.score}}))},"yd");_.q9(_.LL(function(q){return _.W("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.W("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.W(_.OF,{data:function(){return q.data().summaryHeader}},{fantasySectionHeaderViewModel:O83})),_.W(_.OF,{data:function(){return q.data().userTeam}},{fantasyTeamViewModel:o7a}),_.W(_.OF,{data:function(){return q.data().opponentTeam}},{fantasyTeamViewModel:o7a}))},"zd"),"fantasy-league-summary-view-model",{props:{data:_.pK}});var VuG=_.LL(function(q){var w=_.lf(q,{shape:{},useCustomTabRenderable:!1}),u=w.shape;w=w.useCustomTabRenderable;var y=q.customTabRenderable,e=function(){return u().disabled},t=function(){return u().selected},X=function(){return u().title},G=function(){return u().icon},n=_.Bm();
q=_.QS(function(I){var U;if(!e()&&((U=u().aTagConfig)==null?0:U.onclick))u().aTagConfig.onclick(I);return!1});
var N=_.QS(function(I){if(I.key==="Enter"||I.key==="ArrowUp"||I.key==="ArrowDown")I.preventDefault(),n.value.click();return!1}),Q={};
return _.W("yt-tab-shape",{class:_.HR("yt-tab-shape-wiz",function(){return u().className},(Q["yt-tab-shape-wiz__tab--last-tab"]=function(){return u().isLastTab},Q["yt-tab-shape-wiz--host-disabled"]=e,Q["yt-tab-shape-wiz--host-clickable"]=!y,Q)),
role:y?void 0:"tab","aria-selected":t!=null?t:!1,"aria-disabled":e,tabindex:y?void 0:0,"on:click":q,"on:keydown":N,el:n,"tab-identifier":function(){return u().identifier},
"tab-title":X},_.W(_.r,{cond:w,then:function(){return y()},
else:function(){var I={},U={};return _.W(_.GS,null,_.W("div",{class:_.HR("yt-tab-shape-wiz__tab",(I["yt-tab-shape-wiz__tab--tab-selected"]=t,I))},_.W(_.r,{cond:G,then:function(d){return _.W(_.U3,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return d().iconType}})}}),X),_.W("div",{class:_.HR("yt-tab-shape-wiz__tab-bar",(U["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=t,U))}))}}))},"Ad");
VuG.idomCompat={callbacks:{customTabRenderable:!0}};_.my3=_.LL(function(q){var w=q.shape;q=_.P(_.r4(48,void 0,"r9IBlb"));var u=q.next().value,y=q.next().value;q=_.P(_.r4(0,void 0,"Bd7rmd"));var e=q.next().value,t=q.next().value,X=function(){return w().tabs},G=_.Bm(),n=function(){var N,Q;
return(Q=(N=X())==null?void 0:N.findIndex(function(I){return I.selected}))!=null?Q:-1};
_.p4(function(){var N=G.value.querySelectorAll("yt-tab-shape"),Q=n()>-1?N[n()]:void 0;_.pi.addJob(function(){y((Q==null?void 0:Q.getBoundingClientRect().width)||0)},8,0)});
_.DG(function(){var N=n(),Q=_.pi.addJob(function(){var I,U=((I=G.value)==null?void 0:I.querySelectorAll("yt-tab-shape"))||[],d;y(((d=N>-1?U[N]:void 0)==null?void 0:d.getBoundingClientRect().width)||0);for(d=I=0;d<N;d++)I+=U[d].offsetWidth+24;_.Et("HTML_DIR")==="rtl"&&(I=-I);t(I)},8,0);
_.ZG(function(){_.pi.cancelJob(Q)})});
q={};return _.W("yt-tab-group-shape",{class:_.HR("yt-tab-group-shape-wiz",(q["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return w().isOverflowHidden},q)),
el:G},_.W(_.r,{cond:X,then:function(N){return _.W(_.GS,null,_.W("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.W(_.mL,{each:N},function(Q,I){return _.W(VuG,{shape:function(){return Object.assign({},Q,{isLastTab:I()===N().length-1})},
customTabRenderable:Q.customTabRenderable,useCustomTabRenderable:!!Q.customTabRenderable})})),_.W(fA$,{width:u,
sliderOffset:e}))}}))},"Bd");
_.my3.idomCompat=!0;var fA$=_.LL(function(q){var w=_.jf(q.sliderOffset,0),u=q.width;return _.W("div",{class:"yt-tab-group-shape-wiz__slider",style:_.rm({width:function(){return u()+"px"},
transform:function(){return"translateX("+w()+"px)"}})})},"Cd");var AnF=_.LL(function(q){var w=function(){var t,X,G;return(G=(t=q.data().playerLogoAccessibility)==null?void 0:(X=t.accessibilityData)==null?void 0:X.label)!=null?G:""},u=_.Qo(dVu,function(){return q.data().playerEntityKey}),y={};
y=_.HR("ytwFantasyPlayerViewModelHost",(y.ytwFantasyPlayerViewModelPlaying=function(){var t;return!((t=u())==null||!t.isPlayerPlaying)},y.ytwFantasyPlayerViewModelOnField=function(){var t;
return((t=u())==null?void 0:t.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},y.ytwFantasyPlayerViewModelRedZone=function(){var t;
return((t=u())==null?void 0:t.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},y));
var e=function(){var t,X,G,n=((t=_.tG().resolve(_.kF(_.Rg)))==null?0:t())?(X=q.data().playerLogoBackgroundColor)==null?void 0:X.darkTheme:(G=q.data().playerLogoBackgroundColor)==null?void 0:G.lightTheme;return n===void 0?"":_.Je(n)};
return _.W("ytw-fantasy-player-view-model",{class:y},_.W(_.r,{cond:function(){return q.data().playerLogo},
then:function(t){return _.W("div",{class:"ytwFantasyPlayerViewModelLogo"},_.W("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.W(_.ln,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.rm({"background-color":e}),data:t,alt:w})),_.W("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.W(_.U3,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.W("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.W("div",{class:"ytwFantasyPlayerViewModelHeader"},_.W(_.Lr,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var t;return(t=q.data())==null?void 0:t.playerNameText}}),_.W(_.Lr,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var t;return(t=q.data())==null?void 0:t.playerDescriptionText}})),_.W("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.W(_.Lr,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var t;return(t=u())==null?void 0:t.gamePeriodText}}),_.W(_.Lr,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var t;return(t=q.data())==null?void 0:t.opponentTeamText}}),_.W(_.Lr,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var t;return(t=u())==null?void 0:t.gameStatusText}}),_.W(_.Lr,{className:_.HR("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var t;return(t=u())==null?void 0:t.playerStatusText}})),_.W("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.W(_.Lr,{text:function(){var t;
return(t=u())==null?void 0:t.playerStatsText}}))),_.W(_.Lr,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var t;return(t=u())==null?void 0:t.fantasyScore}}))},"Dd");var Jnj=_.LL(function(q){return _.W("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.W(_.r,{cond:function(){return q.data().players},
then:function(w){return _.W(_.OF,{data:w},{fantasyPlayerViewModel:AnF})}}))},"Ed");var zc3=_.LL(function(q){var w=_.P(_.iv(function(){var e;return(e=q.data().selectedTabIdentifierKey)!=null?e:""})),u=w.next().value,y=w.next().value;
_.DR(function(){var e;(e=q.setSelectedTabSignal)==null||e.call(q,u)});
return _.W("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.W("div",{class:"ytTabbedViewModelTabGroup"},_.W(_.my3,{shape:function(){var e=q.data(),t=[],X={tabs:t};if(!e.tabs)return X;e=_.P(e.tabs);for(var G=e.next(),n={};!G.done;n={tabViewModel:void 0},G=e.next())if(n.tabViewModel=_.C(G.value,Nfc),n.tabViewModel){var N=G=void 0;t.push({aTagConfig:{onclick:function(Q){return function(){var I;y((I=Q.tabViewModel.tabIdentifier)!=null?I:"")}}(n)},
identifier:n.tabViewModel.tabIdentifier,selected:u()===n.tabViewModel.tabIdentifier,title:(N=(G=n.tabViewModel.title)==null?void 0:G.content)!=null?N:""})}return X}})),_.W(_.OF,{data:function(){var e,t=_.P((e=q.data().tabs)!=null?e:[]);
for(e=t.next();!e.done;e=t.next())if((e=_.C(e.value,Nfc))&&e.tabIdentifier===u())return e.content}},{fantasyRosterViewModel:Jnj}))},"Fd");_.q9(_.LL(function(q){var w=_.P(wZo()),u=w.next().value,y=w.next().value;return _.W("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.W(_.Lr,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return q.data().title}}),_.W(_.r,{cond:function(){return q.data().tabbedViewModel},
then:function(e){return _.W(_.OF,{data:e},{tabbedViewModel:function(t){return _.W(zc3,{data:t.data,setSelectedTabSignal:y})}})}}),_.W(_.r,{cond:function(){var e,t=(e=_.C(q.data().tabbedViewModel,QBx))==null?void 0:e.tabs;
e=_.C(t==null?void 0:t[0],Nfc);t=_.C(t==null?void 0:t[1],Nfc);var X=e==null?void 0:e.tabIdentifier;if(u()===X){var G,n;if(!((G=_.C(e==null?void 0:e.content,QJX))==null?0:(n=G.players)==null?0:n.length))return q.data().noUserTeamPlayersText}else{var N,Q;if(!((N=_.C(t==null?void 0:t.content,QJX))==null?0:(Q=N.players)==null?0:Q.length))return q.data().noOpponentTeamPlayersText}},
then:function(e){return _.W(_.Lr,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:e})}}))},"Gd"),"ytw-fantasy-matchup-view-model",{props:{data:_.pK}});_.q9(_.LL(function(q){return _.W("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.W(_.Lr,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return q.data().title}}),_.W(_.r,{cond:function(){return q.data().matchupTeamPairs},
then:function(w){return _.W(_.mL,{each:w,keyBy:"INDEX"},function(u){return _.W("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.W(_.OF,{data:function(){return[u().firstTeam,u().secondTeam]}},{fantasyTeamViewModel:function(y){return _.W(o7a,{data:y.data,
compact:!0})}}))})}}))},"Hd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.pK}});_.q9(_.LL(function(q){var w=function(){var e,t,X;return(X=(e=q.data().userLogoAccessibility)==null?void 0:(t=e.accessibilityData)==null?void 0:t.label)!=null?X:""},u=function(){var e,t,X;
return(X=(e=q.data().opponentLogoAccessibility)==null?void 0:(t=e.accessibilityData)==null?void 0:t.label)!=null?X:""},y=_.Qo(T3l,function(){return q.data().entityKey});
return _.W("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.W("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.W(_.r,{cond:function(){return q.data().userLogo},
then:function(e){return _.W(_.ln,{className:"ytwFantasyWinProbabilityViewModelLogo",data:e,alt:w})}}),_.W("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.W(_.Lr,{text:function(){return q.data().title}})),_.W(_.r,{cond:function(){return q.data().opponentLogo},
then:function(e){return _.W(_.ln,{className:"ytwFantasyWinProbabilityViewModelLogo",data:e,alt:u})}})),_.W("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.W("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.W(_.Lr,{text:function(){var e;
return(e=y())==null?void 0:e.userWinNumberLabel}})),_.W("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.W("div",{class:_.HR("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.rm({flex:function(){var e,t;return(t=(e=y())==null?void 0:e.userWinNumber)!=null?t:50}})}),_.W("div",{class:_.HR("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.rm({flex:function(){var e,t;return(t=(e=y())==null?void 0:e.opponentWinNumber)!=null?t:50}})})),_.W("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.W(_.Lr,{text:function(){var e;
return(e=y())==null?void 0:e.opponentWinNumberLabel}}))))},"Id"),"fantasy-win-probability-view-model",{props:{data:_.pK}});_.JE("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var VT=function(){var q=_.Y.apply(this,arguments)||this;q.darkerPanels=_.T("web_watch_darker_panels");q.commentsHidePanelButton=!1;q.isWatchGrid=!1;q.continuationShowButton=!1;q.isSearch=!1;q.isConstrainedList=!1;q.isWatch=!1;q.eligibleToSwitchToGrid=!1;q.epRestyle=!1;q.isCarouselInFeed=!0;q.topSpacingZero=!1;q.continuationIsInitialLoad=!0;q.enableSqueezebackPanels=_.T("web_shorts_enable_squeezeback_panels");q.enableAnchoredPanel=_.T("desktop_shorts_v2_anchored_panel");q.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};q.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return q};
_.O(VT,_.Y);_.k=VT.prototype;_.k.updateLockupContainerTypes=function(q){if(this.eligibleToSwitchToGrid){var w;(w=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||w.forEach(function(u){u.containerType=q})}};
_.k.getItemsPath=function(){return"data.contents"};
_.k.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.k.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]]",
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",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:"ytd-channel-featured-content-renderer",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:"yt-section-header-view-model",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:_.T("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.T("kevlar_low_priority_continuation")}}};
_.k.created=function(){this.JSC$14370_cachedViewportHeight=_.Et("initialInnerHeight")||window.innerHeight};
_.k.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var q=_.A(this.hostElement).querySelector("ytd-comments-header-renderer");q&&(q.hidePanelButton=this.commentsHidePanelButton)}};
_.k.onRetrieveLocation=function(q,w){this.containsComments()&&(this.firstCommentsLoaded=w.hasComments=!0)};
_.k.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.k.onLoadReloadContinuation=function(q,w){var u=this;q.stopPropagation();this.isReloading=!0;_.t7(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(y){var e=_.tG().resolve(_.OP);y=w(y);e.postData(y).then(function(t){u.onReloadContinuationData(t)})}})};
_.k.onReloadContinuationData=function(q){if(q=this.get("response.continuationContents.itemSectionContinuation",q)||this.get("response.contents.itemSectionRenderer",q)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",q)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",q))this.set("data.contents",q.contents||q.results),q.header&&this.set("data.header",q.header),this.set("data.continuations",
q.continuations||[]);this.isReloading=!1};
_.k.computeContentsClass=function(q){return q?"reloading":""};
_.k.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.k.computeSectionIdentifier=function(q){return q==null?void 0:q.sectionIdentifier};
_.k.computeFitContainer=function(q){return(q==null?void 0:q.sectionIdentifier)==="youchat-item-section"};
_.k.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.T("kevlar_disable_comments_auto_load")};
_.k.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.k.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.k.computeHasDestinationShelfRenderer=function(q){var w,u;return!!(q==null?0:(w=q.contents)==null?0:(u=w[0])==null?0:u.destinationShelfRenderer)};
_.k.computeHasSectionGroupViewModel=function(q){var w,u;return!!(q==null?0:(w=q.contents)==null?0:(u=w[0])==null?0:u.sectionGroupViewModel)};
_.k.computeStaticCommentsHeader=function(q){return q&&this.containsComments()};
_.k.computeEpRestyle=function(q){return _.T("web_ep_restyling")&&q&&this.containsComments()};
_.k.computeIsContinuationCommentSection=function(q){return(q==null?void 0:q.targetId)==="shorts-engagement-panel-comments-section"||(q==null?void 0:q.targetId)==="comments-section"||(q==null?void 0:q.targetId)==="engagement-panel-comments-section"};
_.k.computeSuppressPaddingDisclaimer=function(){var q,w,u,y;return!!((q=this.data)==null?0:(w=q.contents)==null?0:(u=w[0])==null?0:(y=u.productListHeaderRenderer)==null?0:y.suppressPaddingDisclaimer)};
_.k.computeHeaderStyle=function(q){switch(q==null?void 0:q.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.k.dataChanged=function(){this.firstCommentsLoaded=!1};
_.k.observeDataContentsLength=function(){var q,w;((q=this.data)==null?0:(w=q.contents)==null?0:w.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.k.onYtDismissibleItemDismissedChange=function(q){this._setItemDismissed(q.type==="yt-dismissible-item-dismissed")};
_.k.triggerContinuations=function(){for(var q=_.A(this.hostElement).querySelector("#continuations").children,w=0;w<q.length;w++)q[w].trigger()};
_.k.triggerInitialContinuations=function(){for(var q=_.A(this.hostElement).querySelector("#continuations").children,w=0;w<q.length;w++)q[w].triggerIfNotPreviouslyTriggered()};
_.k.handleYtItemSectionContinuation=function(q,w){var u;w&&((u=this.data)==null?void 0:u.sectionIdentifier)!==w||(this.set("data.continuations",[q]),this.triggerContinuations())};
_.k.handleYtItemSectionReplace=function(q,w){var u;w&&((u=this.data)==null?void 0:u.sectionIdentifier)!==w||(this.set("data.contents",q),this.set("data.continuations",[]))};
_.k.computeUseHeightHack=function(q){return q&&!_.T("kevlar_disable_height_hack")};
_.k.computeTopSpacingZero=function(q){return q};
_.k.continuationShowButtonChanged=function(){var q=_.A(this.hostElement).querySelector("ytd-continuation-item-renderer");q&&(q.showButton=this.continuationShowButton)};
_.k.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.D1("data-changed",this.data))};
_.x$.Object.defineProperties(VT.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.T("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return!!((q=this.data)==null?0:(w=q.contents)==null?0:(u=w[0])==null?0:u.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var q,w,u,y,e,t,X;return!!((q=this.data)==null?0:(w=q.contents)==null?0:(u=w[0])==null?0:(y=u.shelfRenderer)==null?0:(e=y.content)==null?0:(t=e.gridRenderer)==null?0:(X=t.targetId)==null?0:X.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return!!((q=this.data)==null?0:(w=q.contents)==null?0:(u=w[0])==null?0:u.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return!!((q=this.data)==null?0:(w=q.contents)==null?0:(u=w[0])==null?0:u.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.GQ("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.T("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.T("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14370_cachedViewportHeight-130)/150)},
set:function(){}}});
VT.prototype.dataChangedForBinding=VT.prototype.dataChangedForBinding;VT.prototype.continuationShowButtonChanged=VT.prototype.continuationShowButtonChanged;VT.prototype.onYtDismissibleItemDismissedChange=VT.prototype.onYtDismissibleItemDismissedChange;VT.prototype.observeDataContentsLength=VT.prototype.observeDataContentsLength;VT.prototype.dataChanged=VT.prototype.dataChanged;VT.prototype.onServiceRequestCompleted=VT.prototype.onServiceRequestCompleted;VT.prototype.onLoadReloadContinuation=VT.prototype.onLoadReloadContinuation;
VT.prototype.onRetrieveLocation=VT.prototype.onRetrieveLocation;VT.prototype.commentsHidePanelButtonChanged=VT.prototype.commentsHidePanelButtonChanged;VT.prototype.updateLockupContainerTypes=VT.prototype.updateLockupContainerTypes;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],VT.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],VT.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],VT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.LU.YtLazyListBehavior),_.h("design:type",Object)],VT.prototype,"ytLazyListBehavior",void 0);_.c([_.D(_.zE.YtNextContinuationBehavior),_.h("design:type",Object)],VT.prototype,"ytNextContinuationBehavior",void 0);_.c([_.D(_.JR),_.h("design:type",Object)],VT.prototype,"ytContinuationHandlerBehavior",void 0);
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],VT.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],VT.prototype,"ytdReduxBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],VT.prototype,"darkerPanels",void 0);_.c([_.v(),_.h("design:type",Object)],VT.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],VT.prototype,"engagementPanel",void 0);
_.c([_.v(),_.h("design:type",Object)],VT.prototype,"commentsHidePanelButton",void 0);_.c([_.v(),_.h("design:type",Object)],VT.prototype,"isWatchGrid",void 0);_.c([_.v(),_.h("design:type",Object)],VT.prototype,"continuationShowButton",void 0);_.c([_.v({computed:"computeIsContinuationCommentSection(data)"}),_.h("design:type",Boolean)],VT.prototype,"continuationIsCommentsSection",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],VT.prototype,"autoFill",void 0);
_.c([_.v(),_.h("design:type",Boolean)],VT.prototype,"continuationDisablePrescanVisibility",void 0);_.c([_.v(),_.h("design:type",Boolean)],VT.prototype,"isReloading",void 0);_.c([_.v(),_.h("design:type",Object)],VT.prototype,"isSearch",void 0);_.c([_.v(),_.h("design:type",Object)],VT.prototype,"isConstrainedList",void 0);_.c([_.v(),_.h("design:type",Object)],VT.prototype,"isWatch",void 0);_.c([_.v(),_.h("design:type",Object)],VT.prototype,"eligibleToSwitchToGrid",void 0);
_.c([_.v({selector:_.$H}),_.h("design:type",Object)],VT.prototype,"isGridViewEnabled",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.h("design:type",Object)],VT.prototype,"epRestyle",void 0);_.c([_.Z("isWatch"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],VT.prototype,"hideShortsShelfHeader",null);
_.c([_.Z("isSearch","isWatch"),_.h("design:type",String),_.h("design:paramtypes",[])],VT.prototype,"thumbnailWidth",null);_.c([_.Z("isSearch","isWatch"),_.h("design:type",String),_.h("design:paramtypes",[])],VT.prototype,"sizing",null);_.c([_.Z("isWatch","isGridViewEnabled","data"),_.v({reflectToAttribute:!0}),_.h("design:type",Number),_.h("design:paramtypes",[])],VT.prototype,"lockupContainerType",null);
_.c([_.nL("lockupContainerType","data"),_.h("design:type",Function),_.h("design:paramtypes",[Number]),_.h("design:returntype")],VT.prototype,"updateLockupContainerTypes",null);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],VT.prototype,"pageSubtype",void 0);_.c([_.v({computed:"computeContainerWidth()"}),_.h("design:type",Number)],VT.prototype,"containerWidth",void 0);_.c([_.v(),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],VT.prototype,"isPlaylist",null);
_.c([_.v(),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],VT.prototype,"isClipList",null);_.c([_.v(),_.h("design:type",Object)],VT.prototype,"isCarouselInFeed",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],VT.prototype,"isPlaylistVideoContainer",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],VT.prototype,"isSearchFrictionPage",null);
_.c([_.v({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.h("design:type",Boolean)],VT.prototype,"useHeightHack",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.h("design:type",Object)],VT.prototype,"topSpacingZero",void 0);_.c([_.v({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.h("design:type",Boolean)],VT.prototype,"showButton",void 0);
_.c([_.v(),_.h("design:type",Boolean)],VT.prototype,"firstCommentsLoaded",void 0);_.c([_.v(),_.h("design:type",Object)],VT.prototype,"continuationIsInitialLoad",void 0);_.c([_.v(),_.h("design:type",Boolean)],VT.prototype,"isSearchDova",void 0);_.c([_.v({reflectToAttribute:!0,readOnly:!0}),_.h("design:type",Boolean)],VT.prototype,"itemDismissed",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.h("design:type",String)],VT.prototype,"sectionIdentifier",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.h("design:type",String)],VT.prototype,"fitContainer",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.h("design:type",Boolean)],VT.prototype,"hasDestinationShelfRenderer",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.h("design:type",Boolean)],VT.prototype,"staticCommentsHeader",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],VT.prototype,"enableSqueezebackPanels",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],VT.prototype,"enableAnchoredPanel",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.h("design:type",Boolean)],VT.prototype,"hasSectionGroupViewModel",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.h("design:type",Boolean)],VT.prototype,"suppressDisclaimerSeparator",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.h("design:type",String)],VT.prototype,"headerStyle",void 0);_.c([_.Z("isSearch"),_.h("design:type",Object),_.h("design:paramtypes",[])],VT.prototype,"lockupExperiments",null);
_.c([_.Z("isSearch"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],VT.prototype,"typographyBump",null);_.c([_.Wj("#header"),_.h("design:type",HTMLElement)],VT.prototype,"header",void 0);_.c([_.nL("commentsHidePanelButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],VT.prototype,"commentsHidePanelButtonChanged",null);
_.c([_.Gm("yt-retrieve-location"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],VT.prototype,"onRetrieveLocation",null);_.c([_.Gm("yt-load-reload-continuation"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Function]),_.h("design:returntype")],VT.prototype,"onLoadReloadContinuation",null);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],VT.prototype,"onServiceRequestCompleted",null);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],VT.prototype,"dataChanged",null);_.c([_.I9("data.contents.length"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],VT.prototype,"observeDataContentsLength",null);
_.c([_.Gm("yt-dismissible-item-dismissed"),_.Gm("yt-dismissible-item-undismissed"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],VT.prototype,"onYtDismissibleItemDismissedChange",null);_.c([_.nL("continuationShowButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],VT.prototype,"continuationShowButtonChanged",null);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],VT.prototype,"dataChangedForBinding",null);VT=_.c([_.E({is:"ytd-item-section-renderer",disableElementRegistration:!0})],VT);
_.R(VT,"ytd-item-section-renderer",function(){if(xX6!==void 0)return xX6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return xX6=q},{mode:1});var aAX;var tyJ=_.jN(_.ID("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var uLJ={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var Dyc={},kOM=(Dyc[0]={title:_.yU(_.ID("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.yU(_.ID("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:wG("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},Dyc[1]={title:_.yU(_.ID("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:wG("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},Dyc);_.JE("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var f6=function(){var q=_.Y.apply(this,arguments)||this;q.allVideosCount=0;q.allPlaylistCount=0;q.shouldRenderDownloadsBanner=!1;q.hasOptedIntoSmartDownloads=!1;q.areAllSmartDownloadsDeleted=!1;q.smartDownloadsCompleted=!1;return q};
_.O(f6,_.Y);f6.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
f6.prototype.attached=function(){this.downloadsToRenderChanged()};
f6.prototype.detached=function(){this.set("renderableData",{})};
f6.prototype.downloadsToRenderChanged=function(){var q=_.Mt().getState().entities,w=_.fa(q),u=_.T("kevlar_playlist_dl_page_killswitch")?tLc(q):_.mO(q),y=_.wiJ(q),e=_.Ca(w);q=_.Jr(q);this.set("renderableData",XZc(u,w,y,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,e,q))};
f6.prototype.downloadsToRenderChanged=f6.prototype.downloadsToRenderChanged;_.c([_.D(_.fU),_.h("design:type",Object)],f6.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],f6.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],f6.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],f6.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],f6.prototype,"renderableData",void 0);_.c([_.v({selector:_.rOl}),_.h("design:type",Object)],f6.prototype,"allVideosCount",void 0);_.c([_.v({selector:cTJ}),_.h("design:type",Object)],f6.prototype,"allPlaylistCount",void 0);_.c([_.v({selector:_.VLf}),_.h("design:type",Object)],f6.prototype,"shouldRenderDownloadsBanner",void 0);_.c([_.v({selector:_.fEu}),_.h("design:type",Object)],f6.prototype,"hasOptedIntoSmartDownloads",void 0);
_.c([_.v({selector:_.mYs}),_.h("design:type",Object)],f6.prototype,"areAllSmartDownloadsDeleted",void 0);_.c([_.v({selector:AOf}),_.h("design:type",Object)],f6.prototype,"smartDownloadsCompleted",void 0);_.c([_.I9("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],f6.prototype,"downloadsToRenderChanged",null);
f6=_.c([_.E({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],f6);
_.R(f6,"ytd-offline-item-section-renderer",function(){if(aAX!==void 0)return aAX;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return aAX=q},
{mode:1});var Z8Z;var pBP;var mt=function(){return _.Y.apply(this,arguments)||this};
_.O(mt,_.Y);
mt.prototype.onDataChanged=function(){if(this.JSC$14397_lastData){var q=this.getFilterClass(this.JSC$14397_lastData.status);q&&this.hostElement.classList.remove(q)}var w;(q=this.getFilterClass((w=this.data)==null?void 0:w.status))&&this.hostElement.classList.add(q);q==="selected"?_.A(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.A(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");q==="disabled"?_.A(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.A(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14397_lastData=this.data};
mt.prototype.getFilterClass=function(q){switch(q){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
mt.prototype.onDataChanged=mt.prototype.onDataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],mt.prototype,"data",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mt.prototype,"onDataChanged",null);mt=_.c([_.E({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],mt);
_.R(mt,"ytd-search-filter-renderer",function(){if(pBP!==void 0)return pBP;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return pBP=q},{mode:_.kB("kevlar_poly_si_batch_j075")?1:2});var A_=function(){return _.Y.apply(this,arguments)||this};
_.O(A_,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],A_.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],A_.prototype,"data",void 0);A_=_.c([_.E({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],A_);
_.R(A_,"ytd-search-filter-group-renderer",function(){if(Z8Z!==void 0)return Z8Z;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Z8Z=q},{mode:_.kB("kevlar_poly_si_batch_j075")?1:2});var $yj;var J_=function(){return _.Y.apply(this,arguments)||this};
_.O(J_,_.Y);J_.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.XJ());this.isCollapsed=!this.isCollapsed};
J_.prototype.navigateToAboutTheseResultsPage=function(){var q=Iw("https://www.youtube.com/howyoutubeworks/product-features/search/");q?_.aw(window,q,"_blank"):_.cl(Error("Qh"))};
J_.prototype.dataChanged=function(){this.isCollapsed=!0};
J_.prototype.computeShowBottomBorder=function(){var q,w,u;return!!((q=this.data)==null?0:(w=q.button)==null?0:w.toggleButtonRenderer)||!((u=this.data)==null||!u.aboutTheseResultsButton)};
J_.prototype.dataChanged=J_.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],J_.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],J_.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.h("design:type",Boolean)],J_.prototype,"showBottomBorder",void 0);_.c([_.v(),_.h("design:type",Boolean)],J_.prototype,"renderCollapsibleMenu",void 0);
_.c([_.v(),_.h("design:type",Boolean)],J_.prototype,"isCollapsed",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],J_.prototype,"dataChanged",null);J_=_.c([_.E({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],J_);
_.R(J_,"ytd-search-sub-menu-renderer",function(){if($yj!==void 0)return $yj;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return $yj=q},{mode:1});var v7r;var b8G=new _.MH("SECTION_LIST_RENDERER_TOKEN");var Y_x;var zv=function(){return _.Y.apply(this,arguments)||this};
_.O(zv,_.Y);zv.prototype.computeStyle=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],zv.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],zv.prototype,"headerStyle",void 0);zv=_.c([_.E({is:"ytd-text-header-renderer",disableElementRegistration:!0})],zv);
_.R(zv,"ytd-text-header-renderer",function(){if(Y_x!==void 0)return Y_x;var q=document.createElement("template");_.f(q,"\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");q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Y_x=q},{mode:1});var g7P;var au=function(){return _.Y.apply(this,arguments)||this};
_.O(au,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],au.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],au.prototype,"data",void 0);au=_.c([_.E({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],au);
_.R(au,"ytd-minor-moment-header-renderer",function(){if(g7P!==void 0)return g7P;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return g7P=q},{mode:1});var E76;var DP=function(){return _.Y.apply(this,arguments)||this};
_.O(DP,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],DP.prototype,"data",void 0);DP=_.c([_.E({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],DP);
_.R(DP,"ytd-minor-moment-setting-alert-renderer",function(){if(E76!==void 0)return E76;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return E76=q},{mode:1});var Rcc;var cnT;var ZP=function(){var q=_.Y.apply(this,arguments)||this;q.booleanSettingById=!1;q.smartDownloadsEnabledVE=_.oV(128287);q.smartDownloadsDisabledVE=_.oV(128286);q.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return q};
_.O(ZP,_.Y);_.k=ZP.prototype;_.k.attachSmartDownloadsSettingVes=function(){var q;this.activeVeForLogging||((q=this.data)==null?void 0:q.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.ku(_.Qz(),this.smartDownloadsEnabledVE),_.ku(_.Qz(),this.smartDownloadsDisabledVE))};
_.k.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.t7(this.hostElement,"yt-settings-switch-ready")};
_.k.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.k.onSwitchChange=function(q){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(q=_.he(q).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.T("kevlar_settings_switch_resolve_command_killswitch")?_.tG().resolve(_.PG).resolveCommand(q,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(q)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.k.handleUpdateSettingsSwitch=function(q){(q=_.C(q,$GZ))&&this.data&&this.data.id===q.id&&this.set("data.enabled",!!q.enabled)};
_.k.onToggleSettingsSwitch=function(q,w){this.data&&this.data.id===q&&this.set("data.enabled",w!=null?w:!this.data.enabled)};
_.k.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.lk.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.k.maybeLogSmartDownloadsSettingVisibility=function(){var q=_.pN(),w;q&&((w=this.data)==null?void 0:w.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.SB(q,[this.smartDownloadsEnabledVE]),_.h7(q,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.SB(q,[this.smartDownloadsDisabledVE]),_.h7(q,[this.smartDownloadsEnabledVE])))};
_.k.maybeLogSmartDownloadsSettingClick=function(){var q;((q=this.data)==null?void 0:q.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.Ph(_.Qz(),this.activeVeForLogging)};
_.k.updateDataEnabledFromBinding=function(q){this.set("data.enabled",q.detail.value)};
_.x$.Object.defineProperties(ZP.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var q=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!q&&(q=this.ytRendererBehavior.getSimpleString(this.data.title));return q}}});
ZP.prototype.dataChanged=ZP.prototype.dataChanged;_.c([_.D(_.fU),_.h("design:type",Object)],ZP.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ZP.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],ZP.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],ZP.prototype,"ytComponentBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],ZP.prototype,"data",void 0);_.c([_.v({selector:function(q,w){if(Object.keys(q==null?void 0:q.entities).length)switch(w){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return Pko(q.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.h("design:type",Object)],ZP.prototype,"booleanSettingById",void 0);_.c([_.v(),_.h("design:type",_.DB)],ZP.prototype,"activeVeForLogging",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ZP.prototype,"toggleAriaLabel",null);_.c([_.I9("data"),_.I9("booleanSettingById"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ZP.prototype,"dataChanged",null);
ZP=_.c([_.E({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],ZP);
_.R(ZP,"ytd-settings-switch-renderer",function(){if(cnT!==void 0)return cnT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return cnT=q},{mode:1});var p6=function(){return _.Y.apply(this,arguments)||this};
_.O(p6,_.Y);p6.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}}}}};
_.x$.Object.defineProperties(p6.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var q=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(q+=" remove-left-margin");this.data.extraBottomSpace&&(q+=" extra-bottom-space");return q}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],p6.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],p6.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],p6.prototype,"data",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],p6.prototype,"contentsClassName",null);p6=_.c([_.E({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],p6);
_.R(p6,"ytd-minor-moment-setting-section-renderer",function(){if(Rcc!==void 0)return Rcc;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Rcc=q},{mode:1});var S_k;var $t=function(){return _.Y.apply(this,arguments)||this};
_.O($t,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],$t.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],$t.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],$t.prototype,"data",void 0);$t=_.c([_.E({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],$t);
_.R($t,"ytd-empty-product-details-renderer",function(){if(S_k!==void 0)return S_k;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return S_k=q},{mode:1});var hcG;var jjP;var v9=function(){var q=_.Y.apply(this,arguments)||this;q.expanded=!0;return q};
_.O(v9,_.Y);v9.prototype.getBadgeRowClass=function(q,w,u){for(var y=_.P(this.hostElement.querySelectorAll("yt-img-shadow")),e=y.next();!e.done;e=y.next())e.value.onShow();q=q.selected;return u?q!==-1?q===w?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(q!==void 0?q:0)===w?"badge-line":"badge-hidden"};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],v9.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],v9.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],v9.prototype,"expanded",void 0);v9=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],v9);
_.R(v9,"ytd-sponsorships-loyalty-badges-renderer",function(){if(jjP!==void 0)return jjP;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return jjP=q},{mode:1});var lA$;var bK=function(){var q=_.Y.apply(this,arguments)||this;q.expanded=!0;return q};
_.O(bK,_.Y);bK.prototype.getContainerClasses=function(q,w){q=q?"expanded":"collapsed";w&&(q+=" item");return q};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],bK.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],bK.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],bK.prototype,"expanded",void 0);bK=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],bK);
_.R(bK,"ytd-sponsorships-perk-renderer",function(){if(lA$!==void 0)return lA$;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return lA$=q},{mode:1});var LAk;var Yt=function(){var q=_.Y.apply(this,arguments)||this;q.expanded=!0;return q};
_.O(Yt,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Yt.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Yt.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],Yt.prototype,"expanded",void 0);Yt=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Yt);
_.R(Yt,"ytd-sponsorships-perks-renderer",function(){if(LAk!==void 0)return LAk;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return LAk=q},{mode:1});var g2=function(){var q=_.Y.apply(this,arguments)||this;q.isCollapsed=!1;return q};
_.O(g2,_.Y);g2.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
g2.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
g2.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var q;this.expandCollapseButton=_.C((q=this.data)==null?void 0:q.expandButton,_.aB)}else{var w;this.expandCollapseButton=_.C((w=this.data)==null?void 0:w.collapseButton,_.aB)}};
g2.prototype.updateExpandCollapseButton=g2.prototype.updateExpandCollapseButton;g2.prototype.onDataChanged=g2.prototype.onDataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],g2.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],g2.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],g2.prototype,"isCollapsed",void 0);_.c([_.v(),_.h("design:type",Object)],g2.prototype,"expandCollapseButton",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g2.prototype,"onDataChanged",null);_.c([_.I9("data","isCollapsed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g2.prototype,"updateExpandCollapseButton",null);g2=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],g2);
_.R(g2,"ytd-sponsorships-expandable-perks-renderer",function(){if(hcG!==void 0)return hcG;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return hcG=q},{mode:1});var Mu6;var E$=function(){return _.Y.apply(this,arguments)||this};
_.O(E$,_.Y);E$.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],E$.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],E$.prototype,"data",void 0);E$=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],E$);
_.R(E$,"ytd-sponsorships-actionable-message-renderer",function(){if(Mu6!==void 0)return Mu6;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Mu6=q},{mode:1});var KAT;var Ru=function(){return _.Y.apply(this,arguments)||this};
_.O(Ru,_.Y);_.k=Ru.prototype;_.k.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.k.getExpansionIcon=function(q){return q?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.k.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.k.computeMessageContainerStyle=function(q){var w=q.expandableItems?" style-clickable":"";return q.messageContainerStyle?q.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+w:"style-unspecified"+w};
_.k.isSinglePerk=function(q){return!!q.messageContainerStyle&&(q.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||q.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.k.onExpandedChanged=function(){var q=this;if(this.expanded)for(var w=_.P(this.hostElement.querySelectorAll("yt-img-shadow")),u=w.next();!u.done;u=w.next())u.value.onShow();_.KJ(this,function(){_.t7(q.hostElement,"yt-refit")})};
_.k.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
Ru.prototype.onDataChanged=Ru.prototype.onDataChanged;Ru.prototype.onExpandedChanged=Ru.prototype.onExpandedChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ru.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ru.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ru.prototype,"data",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],Ru.prototype,"expanded",void 0);
_.c([_.nL("expanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ru.prototype,"onExpandedChanged",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ru.prototype,"onDataChanged",null);Ru=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],Ru);
_.R(Ru,"ytd-sponsorships-expandable-message-renderer",function(){if(KAT!==void 0)return KAT;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return KAT=q},{mode:_.kB("kevlar_poly_si_batch_j028")?1:2});var BK6;var c9=function(){return _.Y.apply(this,arguments)||this};
_.O(c9,_.Y);c9.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"}}}}};
c9.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.C(this.data.endButton,_.aB).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
c9.prototype.onDataChanged=c9.prototype.onDataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],c9.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],c9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],c9.prototype,"data",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],c9.prototype,"onDataChanged",null);
c9=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],c9);
_.R(c9,"ytd-sponsorships-heading-renderer",function(){if(BK6!==void 0)return BK6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return BK6=q},{mode:1});var xy6;var SC=function(){return _.Y.apply(this,arguments)||this};
_.O(SC,_.Y);_.c([_.v(),_.h("design:type",Object)],SC.prototype,"data",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],SC.prototype,"ytRendererBehavior",void 0);SC=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],SC);
_.R(SC,"ytd-sponsorships-links-renderer",function(){if(xy6!==void 0)return xy6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return xy6=q},{mode:1});var qmF;var h_=function(){return _.Y.apply(this,arguments)||this};
_.O(h_,_.Y);_.k=h_.prototype;_.k.onDataChanged=function(){if(this.data&&this.data.expandableItems){var q;(q=_.A(this.hostElement).querySelector("tp-yt-paper-button"))==null||q.setAttribute("role","button")}else{var w;(w=_.A(this.hostElement).querySelector("tp-yt-paper-button"))==null||w.removeAttribute("role")}};
_.k.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.k.getExpansionIcon=function(q){return q?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.k.getTileClasses=function(q){return q?"tile expandable-tile":"tile"};
_.k.getButtonDisabled=function(q){return q?void 0:""};
h_.prototype.onDataChanged=h_.prototype.onDataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],h_.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],h_.prototype,"data",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],h_.prototype,"expanded",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],h_.prototype,"onDataChanged",null);
h_=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],h_);
_.R(h_,"ytd-sponsorships-list-tile-renderer",function(){if(qmF!==void 0)return qmF;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return qmF=q},{mode:1});var wc6;var ux6;var jC=function(){return _.Y.apply(this,arguments)||this};
_.O(jC,_.Y);jC.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],jC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],jC.prototype,"data",void 0);jC=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],jC);
_.R(jC,"ytd-sponsorships-promotion-renderer",function(){if(ux6!==void 0)return ux6;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return ux6=q},{mode:1});var ykx;var lK=function(){return _.Y.apply(this,arguments)||this};
_.O(lK,_.Y);lK.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],lK.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],lK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],lK.prototype,"data",void 0);lK=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],lK);
_.R(lK,"ytd-sponsorships-purchase-option-renderer",function(){if(ykx!==void 0)return ykx;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return ykx=q},{mode:1});var emj;var k0F;var L6=function(){return _.Y.apply(this,arguments)||this};
_.O(L6,_.Y);_.c([_.v(),_.h("design:type",Object)],L6.prototype,"data",void 0);L6=_.c([_.E({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],L6);
_.R(L6,"ytd-ypc-offer-promo-renderer",function(){if(k0F!==void 0)return k0F;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return k0F=q},{mode:1});var Mi=function(){return _.Y.apply(this,arguments)||this};
_.O(Mi,_.Y);_.k=Mi.prototype;
_.k.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"}}}}};
_.k.expansionCTA=function(q,w){return q&&(w?q.collapseCallToAction:q.expansionCallToAction)};
_.k.getExpansionIcon=function(q){return q?"arrow_drop_up":"arrow_drop_down"};
_.k.expansionCallToActionTap=function(){var q=this;this.expanded=!this.expanded;_.KJ(this,function(){_.t7(q.hostElement,"yt-refit")})};
_.k.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var q,w=(q=this.data)==null?void 0:q.onVisible;w&&this.ytComponentBehavior.resolveCommand(w)};
_.k.computeDisplayTitle=function(q){return!(!q||this.titledisplaystatus!=="show")};
_.k.computeDisplaySeparator=function(){return!1};
_.k.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
Mi.prototype.onDataChanged=Mi.prototype.onDataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Mi.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Mi.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Mi.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Mi.prototype,"data",void 0);
_.c([_.v({value:!1}),_.h("design:type",Boolean)],Mi.prototype,"expanded",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],Mi.prototype,"purchaseButtonClicked",void 0);_.c([_.v({reflectToAttribute:!0,value:"show"}),_.h("design:type",String)],Mi.prototype,"titledisplaystatus",void 0);_.c([_.v({computed:"computeDisplayTitle(data.title)"}),_.h("design:type",Boolean)],Mi.prototype,"displayTitle",void 0);
_.c([_.v({computed:"computeDisplaySeparator(data)"}),_.h("design:type",Boolean)],Mi.prototype,"displaySeparator",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Mi.prototype,"onDataChanged",null);Mi=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],Mi);
_.R(Mi,"ytd-sponsorships-tier-renderer",function(){if(emj!==void 0)return emj;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return emj=q},{mode:2});var K6=function(){return _.Y.apply(this,arguments)||this};
_.O(K6,_.Y);
K6.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"}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],K6.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],K6.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],K6.prototype,"data",void 0);K6=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],K6);
_.R(K6,"ytd-sponsorships-management-renderer",function(){if(wc6!==void 0)return wc6;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return wc6=q},{mode:1});var tPr;var B9=function(){return _.Y.apply(this,arguments)||this};
_.O(B9,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],B9.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],B9.prototype,"data",void 0);B9=_.c([_.E({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],B9);
_.R(B9,"ytd-open-in-native-app-view-model",function(){if(tPr!==void 0)return tPr;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return tPr=q},{mode:_.kB("kevlar_poly_si_batch_j028")?1:2});var PST;var Xc3;var FCT=_.Sc(["top-"]),G0F=_.Sc(["bottom-"]),nq3=_.Sc(["left-"]),Hk6=_.Sc(["right-"]),WCZ={},sUj=function(q,w,u){q.removeAttribute("top-"+u);q.removeAttribute("bottom-"+u);q.removeAttribute("left-"+u);q.removeAttribute("right-"+u);w&&(w.top&&_.gB([_.BI(FCT)],q,"top-"+u,w.top),w.bottom&&_.gB([_.BI(G0F)],q,"bottom-"+u,w.bottom),w.left&&_.gB([_.BI(nq3)],q,"left-"+u,w.left),w.right&&_.gB([_.BI(Hk6)],q,"right-"+u,w.right))};
WCZ.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(q){var w,u=_.A((w=this.hostElement)!=null?w:this),y;w=this.cardItemBoxBehaviorMarginTargetId&&u?u.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(y=this.hostElement)!=null?y:this;sUj(w,q,"margin")},
cardItemContainerPaddingChanged_:function(q){var w,u=_.A((w=this.hostElement)!=null?w:this),y;w=this.cardItemBoxBehaviorPaddingTargetId&&u?u.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(y=this.hostElement)!=null?y:this;sUj(w,q,"padding")}}];var xt={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 N0j;var QUk;var qV=function(){return _.Y.apply(this,arguments)||this};
_.O(qV,_.Y);qV.prototype.textColorChanged_=function(){this.hostElement.style.color=xt[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
qV.prototype.textColorChanged_=qV.prototype.textColorChanged_;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);_.c([_.D(WCZ.YtCardItemBoxBehavior),_.h("design:type",Object)],qV.prototype,"ytCardItemBoxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],qV.prototype,"data",void 0);_.c([_.nL("data.textColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qV.prototype,"textColorChanged_",null);
qV=_.c([_.JM({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],qV);
_.R(qV,"yt-card-item-text-renderer",function(){if(QUk===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;N0j===void 0&&(N0j=document.createElement("template"));var y=N0j;u.call(w,y.content.cloneNode(!0),q.content.firstChild);QUk=q}q=QUk;return q},{mode:2});var I0r;var ikk;var w3=function(){return _.Y.apply(this,arguments)||this};
_.O(w3,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],w3.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],w3.prototype,"data",void 0);w3=_.c([_.JM({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],w3);
_.R(w3,"yt-card-item-badge-renderer",function(){if(ikk===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;I0r===void 0&&(I0r=document.createElement("template"));var y=I0r;u.call(w,y.content.cloneNode(!0),q.content.firstChild);ikk=q}q=ikk;return q},{mode:2});var rkF;var UNa;var um=function(){return _.Y.apply(this,arguments)||this};
_.O(um,_.Y);um.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],um.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],um.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],um.prototype,"data",void 0);um=_.c([_.JM({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],um);
_.R(um,"yt-card-item-text-collection-renderer",function(){if(UNa===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;rkF===void 0&&(rkF=document.createElement("template"));var y=rkF;u.call(w,y.content.cloneNode(!0),q.content.firstChild);UNa=q}q=UNa;return q},{mode:2});var T0r;var CSF;var yj=function(){return _.Y.apply(this,arguments)||this};
_.O(yj,_.Y);yj.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]]"}}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],yj.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],yj.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],yj.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Number)],yj.prototype,"iconSize",void 0);yj=_.c([_.JM({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],yj);
_.R(yj,"yt-card-item-text-with-button-renderer",function(){if(CSF===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;T0r===void 0&&(T0r=document.createElement("template"));var y=T0r;u.call(w,y.content.cloneNode(!0),q.content.firstChild);CSF=q}q=CSF;return q},{mode:2});var e2=function(){return _.Y.apply(this,arguments)||this};
_.O(e2,_.Y);e2.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"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],e2.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],e2.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],e2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],e2.prototype,"data",void 0);e2=_.c([_.E({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],e2);
_.R(e2,"ytd-commerce-cart-summary-line-item-renderer",function(){if(Xc3!==void 0)return Xc3;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Xc3=q},{mode:1});_.JE("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var kx=function(){var q=_.Y.apply(this,arguments)||this;q.hidden=!1;return q};
_.O(kx,_.Y);_.k=kx.prototype;_.k.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"}}}}};
_.k.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.k.updateSummary=function(){var q=this.commerceCartCheckoutButtonEntity,w;if(((w=this.data)==null?0:w.cartButton)&&q.checkoutSummaryText){var u,y=pV((u=this.data)==null?void 0:u.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+y+".cardItemTextRenderer.text",$D(q.checkoutSummaryText));if(q.checkoutDetailText){var e;u=pV((e=this.data)==null?void 0:e.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+u+".cardItemTextRenderer.text",$D(q.checkoutDetailText))}if(q.checkoutAdditionalMetadataText){var t;
e=pV((t=this.data)==null?void 0:t.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+e+".cardItemTextRenderer.text",$D(q.checkoutAdditionalMetadataText))}}else q.estimatedTotalPrice&&(t=pV((y=this.data)==null?void 0:y.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+t+".cardItemTextRenderer.text",$D(q.estimatedTotalPrice)))};
_.k.updateIsHidden=function(){var q,w=(q=this.commerceCartCheckoutButtonEntity)==null?void 0:q.isHidden;w!==void 0&&(this.hidden=w)};
_.k.updateCheckoutButton=function(){var q,w=(q=this.commerceCartCheckoutButtonEntity)==null?void 0:q.isDisabled;w!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",w);var u;q=(u=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:u.innertubeCommand;q!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",q);var y;u=(y=this.commerceCartCheckoutButtonEntity)==null?void 0:y.checkoutButtonText;u!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:u})};
kx.prototype.entityChanged=kx.prototype.entityChanged;_.c([_.D(_.fU),_.h("design:type",Object)],kx.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],kx.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],kx.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],kx.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],kx.prototype,"fullWidth",void 0);_.c([_.v(),_.h("design:type",Object)],kx.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],kx.prototype,"compact",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],kx.prototype,"hidden",void 0);
_.c([_.v({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:rlJ}),_.h("design:type",Object)],kx.prototype,"commerceCartCheckoutButtonEntity",void 0);_.c([_.nL("commerceCartCheckoutButtonEntity","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kx.prototype,"entityChanged",null);kx=_.c([_.E({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],kx);
_.R(kx,"ytd-commerce-cart-checkout-button-renderer",function(){if(PST!==void 0)return PST;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return PST=q},{mode:2});var dNa;_.Okr={};
_.Okr.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",_.Fj(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Fj(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(q){!this.tappableItemBehaviorTapEnabled||q.keyCode!==13&&q.keyCode!==32||q.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var q=this.data.onTap;q.ypcGetCartEndpoint?(_.GM(this.hostElement,[q]),this.tappableItemBehaviorTapEnabled=!1):q.ypcOffersEndpoint?_.GM(this.hostElement,[q]):_.nq(this.hostElement,[q],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(q){this.tappableItemBehaviorTapEnabled=!!q},
tappableItemBehaviorOnTapEnabledChanged_:function(){var q=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(q.setAttribute("tabIndex",0),q.setAttribute("role","button")):(q.removeAttribute("tabIndex"),q.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(q){q.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var oqZ;var VPr;var t9=function(){return _.Y.apply(this,arguments)||this};
_.O(t9,_.Y);t9.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.zW("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.zW("sharingToggleButtonAndDefaultButton")}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],t9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],t9.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],t9.prototype,"data",void 0);t9=_.c([_.JM({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],t9);
_.R(t9,"yt-card-item-actions-renderer",function(){if(VPr===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;oqZ===void 0&&(oqZ=document.createElement("template"));var y=oqZ;u.call(w,y.content.cloneNode(!0),q.content.firstChild);VPr=q}q=VPr;return q},{mode:2});var f03;var mNx;var Ak3;var Jk6;var zmx;var a0X;var Px=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return q};
_.O(Px,_.Y);Px.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
Px.prototype.handleDarkModeToggledAction_=function(q){this.isDarkTheme_=q};
Px.prototype.computeThemeImage_=function(q,w){if(!q||!q.imageLight)return!1;this.isCircular_=q.isCircular;q.imageWidth&&(this.hostElement.style.width=q.imageWidth+"px");q.imageHeight&&(this.hostElement.style.height=q.imageHeight+"px");q.borderWidth&&(this.image.style.borderWidth=q.borderWidth+"px",this.image.style.borderStyle="solid");q.borderColor&&(this.image.style.borderColor=_.Je(q.borderColor));return w&&q.imageDark?q.imageDark:q.imageLight};
Px.prototype.computeThemeIcon_=function(q){var w,u;if(!(q==null?0:(w=q.themedIcon)==null?0:(u=w.icon)==null?0:u.iconType))return!1;this.icon.style.color=xt[q.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(q.imageWidth||18)+"px";this.icon.style.height=(q.imageHeight||18)+"px";return _.Fy(q.themedIcon.icon.iconType)};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Px.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Px.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(WCZ.YtCardItemBoxBehavior),_.h("design:type",Object)],Px.prototype,"ytCardItemBoxBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Px.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Px.prototype,"data",void 0);
_.c([_.v({value:!1}),_.h("design:type",Boolean)],Px.prototype,"fit",void 0);_.c([_.v(),_.h("design:type",Boolean)],Px.prototype,"isDarkTheme_",void 0);_.c([_.v({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.h("design:type",Object)],Px.prototype,"themeImage_",void 0);_.c([_.v({computed:"computeThemeIcon_(data)"}),_.h("design:type",Object)],Px.prototype,"themeIcon_",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Object)],Px.prototype,"isCircular_",void 0);
_.c([_.Wj("#image"),_.h("design:type",Object)],Px.prototype,"image",void 0);_.c([_.Wj("#icon"),_.h("design:type",Object)],Px.prototype,"icon",void 0);Px=_.c([_.JM({is:"yt-themed-image-renderer",disableElementRegistration:!0})],Px);
_.R(Px,"yt-themed-image-renderer",function(){if(a0X===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;zmx===void 0&&(zmx=document.createElement("template"));var y=zmx;u.call(w,y.content.cloneNode(!0),q.content.firstChild);a0X=q}q=a0X;return q},{mode:2});var X9=function(){return _.Y.apply(this,arguments)||this};
_.O(X9,_.Y);X9.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"}}}}};
X9.prototype.computeImagePlacement_=function(q){return q||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],X9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],X9.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],X9.prototype,"data",void 0);_.c([_.v({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.h("design:type",String)],X9.prototype,"imagePlacement",void 0);
X9=_.c([_.JM({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],X9);
_.R(X9,"yt-card-item-text-with-image-renderer",function(){if(Jk6===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;Ak3===void 0&&(Ak3=document.createElement("template"));var y=Ak3;u.call(w,y.content.cloneNode(!0),q.content.firstChild);Jk6=q}q=Jk6;return q},{mode:2});var F9=function(){return _.Y.apply(this,arguments)||this};
_.O(F9,_.Y);F9.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"}}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],F9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],F9.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],F9.prototype,"data",void 0);F9=_.c([_.JM({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],F9);
_.R(F9,"yt-card-item-error-renderer",function(){if(mNx===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;f03===void 0&&(f03=document.createElement("template"));var y=f03;u.call(w,y.content.cloneNode(!0),q.content.firstChild);mNx=q}q=mNx;return q},{mode:2});var DNZ;var ZkG;_.JE("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var Gi=function(){return _.Y.apply(this,arguments)||this};
_.O(Gi,_.Y);_.k=Gi.prototype;
_.k.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"}}}}};
_.k.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.k.backgroundColorChanged_=function(){var q,w=(q=this.data)==null?void 0:q.backgroundColor;q=xt[w||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.A(this.hostElement).querySelector("#main-content").style.backgroundColor=q};
_.k.headerPromoBackgroundColorChanged_=function(){var q,w=(q=this.data)==null?void 0:q.headerPromoBackgroundColor;q=xt[w||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.A(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=q};
_.k.errorRendererVisibilityChanged_=function(){var q=this.isExpanded_,w;this.isErrorRendererVisible_=!((w=this.data)==null||!w.errorRenderer)&&!q};
_.k.onYtToggleButton_=function(q,w){this.isExpanded_=w.toggled};
Gi.prototype.onYtToggleButton_=Gi.prototype.onYtToggleButton_;Gi.prototype.errorRendererVisibilityChanged_=Gi.prototype.errorRendererVisibilityChanged_;Gi.prototype.headerPromoBackgroundColorChanged_=Gi.prototype.headerPromoBackgroundColorChanged_;Gi.prototype.backgroundColorChanged_=Gi.prototype.backgroundColorChanged_;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Gi.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Gi.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(WCZ.YtCardItemBoxBehavior),_.h("design:type",Object)],Gi.prototype,"ytCardItemBoxBehavior",void 0);_.c([_.D(_.Okr.YtTappableItemBehavior),_.h("design:type",Object)],Gi.prototype,"ytTappableItemBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Gi.prototype,"data",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],Gi.prototype,"isExpanded_",void 0);
_.c([_.v({value:!1}),_.h("design:type",Boolean)],Gi.prototype,"isErrorRendererVisible_",void 0);_.c([_.nL("data.backgroundColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gi.prototype,"backgroundColorChanged_",null);_.c([_.nL("data.headerPromoBackgroundColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gi.prototype,"headerPromoBackgroundColorChanged_",null);
_.c([_.nL("data.errorRenderer","isExpanded_"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gi.prototype,"errorRendererVisibilityChanged_",null);_.c([_.Gm("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[Event,Object]),_.h("design:returntype")],Gi.prototype,"onYtToggleButton_",null);Gi=_.c([_.JM({is:"yt-card-item-renderer",disableElementRegistration:!0})],Gi);
_.R(Gi,"yt-card-item-renderer",function(){if(ZkG===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;DNZ===void 0&&(DNZ=document.createElement("template"));var y=DNZ;u.call(w,y.content.cloneNode(!0),q.content.firstChild);ZkG=q}q=ZkG;return q},{mode:2});_.JE("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var nc=function(){var q=_.Y.apply(this,arguments)||this;q.hidden=!1;return q};
_.O(nc,_.Y);_.k=nc.prototype;_.k.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.k.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.k.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var q,w=(q=this.commerceCartHeaderEntity)==null?void 0:q.isHidden;w!==void 0&&(this.hidden=w)}};
_.k.updateTitle=function(){var q=this.commerceCartHeaderEntity.isDisabled,w,u,y=(u=_.C((w=this.data)==null?void 0:w.item,cOX))==null?void 0:u.headingRenderer;y&&(w=pV(y,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+w+".0.cardItemTextRenderer.textColor",q?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.k.updateSummaryText=function(){var q=this.commerceCartHeaderEntity;if(this.compact){var w,u,y=(u=_.C((w=this.data)==null?void 0:w.item,cOX))==null?void 0:u.headingRenderer;y&&(w=pV(y,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+w+".1.cardItemTextRenderer.text",q.shortHeaderSummaryText?$D(q.shortHeaderSummaryText):q.headerSummaryText?$D(q.headerSummaryText):""))}else{var e;if(w=(e=_.C((y=this.data)==null?void 0:y.item,cOX))==null?void 0:e.additionalInfoRenderer)w=pV(w,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+w+".text",q.headerSummaryText?$D(q.headerSummaryText):"")}};
_.k.updateCheckoutButton=function(){var q=this.commerceCartHeaderEntity,w,u,y=(u=_.C((w=this.data)==null?void 0:w.item,cOX))==null?void 0:u.additionalInfoRenderer;w=pV(y,"buttonRenderer");var e;u=(e=this.commerceCartHeaderEntity)==null?void 0:e.isButtonDisabled;var t;e=(t=this.commerceCartHeaderEntity)==null?void 0:t.isButtonHidden;u!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+w+".buttonRenderer.isDisabled",u);e!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
e);var X;q=(X=q.checkoutButtonCommand)==null?void 0:X.innertubeCommand;q!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+w+".buttonRenderer.command",q)};
nc.prototype.entityChanged=nc.prototype.entityChanged;_.c([_.D(_.fU),_.h("design:type",Object)],nc.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],nc.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],nc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],nc.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],nc.prototype,"compact",void 0);_.c([_.v({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(q,w){return _.HQ(q.entities,"commerceCartHeaderEntity",w)}}),
_.h("design:type",Object)],nc.prototype,"commerceCartHeaderEntity",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],nc.prototype,"hidden",void 0);_.c([_.nL("commerceCartHeaderEntity","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nc.prototype,"entityChanged",null);nc=_.c([_.E({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],nc);
_.R(nc,"ytd-commerce-cart-header-renderer",function(){if(dNa!==void 0)return dNa;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return dNa=q},{mode:1});var pcx;var $NF=_.Qs(function(q,w){var u;return(u=q.onChangeCallback)==null?void 0:u.call(q,w)},1E3),vq$=_.LL(function(q){var w=q.data;
var u=q.iconMinus;q=q.iconPlus;var y=function(){return!!w().disabled},e=_.P(_.r4(0,void 0,"r56zNb")),t=e.next().value,X=e.next().value;
e={};e=_.HR("yt-spec-quantity-incrementer-shape__icon",(e["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return y()||t()===(w().onRemoveCommand?0:1)},e));
var G={};G=_.HR("yt-spec-quantity-incrementer-shape__icon",(G["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return t()>=w().maxValue||y()},G));
var n={};n=_.HR("yt-spec-quantity-incrementer-shape__text",(n["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return t()>w().maxValue},n["yt-spec-quantity-incrementer-shape__text--text-disabled"]=y,n));
var N=_.QS(function(){if(t()===1){var I,U;(U=(I=w()).onRemoveCommand)==null||U.call(I)}I=t()>w().maxValue?w().maxValue:t()-1;X(I);$NF(w(),I);return!1}),Q=_.QS(function(){if(t()===w().maxValue)return!1;
var I=t()+1;X(I);$NF(w(),I);return!1});
_.DR(function(){X(w().value)});
return _.W("quantity-incrementer-shape",null,_.W("div",{class:"yt-spec-quantity-incrementer-shape"},_.W("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return t()===(w().onRemoveCommand?0:1)||y()},
"aria-label":function(){return t()!==1?w().minusLabel:w().minimumReachedLabel},
"on:click":N},_.W(_.dm,{model:{circular:!0}}),_.W("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.W("div",{class:e},u()))),_.W("div",{class:n},t),_.W("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return t()>=w().maxValue||y()},
"aria-label":function(){return t()!==w().maxValue?w().plusLabel:w().maximumReachedLabel},
"on:click":Q},_.W(_.dm,{model:{circular:!0}}),_.W("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.W("div",{class:G},q())))))},"Jd");_.q9(_.LL(function(q){function w(){u().onRemoveCommand&&_.bn(u().onRemoveCommand)}
var u=q.data;var y=_.Qo(fyH,function(){return u().quantityIncrementerEntityKey});
return _.W("yt-quantity-incrementer-view-model",null,_.W(vq$,{data:function(){var e=u(),t;var X=y()?!((t=y())==null||!t.disabled):!1;var G;t=y()?(G=y())==null?void 0:G.quantity:u().quantity;return n_M(e,X,w,t)},
iconMinus:function(){return _.W(_.U3,{icon:"BAR_HORIZONTAL",className:_.s3("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.W(_.U3,{icon:"ADD",className:_.s3("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Kd"),"yt-quantity-incrementer-view-model",{props:{data:_.pK}});var Hx=function(){var q=_.Y.apply(this,arguments)||this;q.compact=!1;q.hasQuantityIncrementer=!1;return q};
_.O(Hx,_.Y);Hx.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"}}}};
Hx.prototype.computeHasQuantityIncrementer=function(){var q;return!!_.C((q=this.data)==null?void 0:q.picker,lEG)};
Hx.prototype.onLabelClick=function(){var q;(q=this.dropdownEl)==null||q.open()};
_.c([_.Wj("ytd-dropdown-renderer"),_.h("design:type",Object)],Hx.prototype,"dropdownEl",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Hx.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Hx.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],Hx.prototype,"quantityColor",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Hx.prototype,"compact",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.h("design:type",Object)],Hx.prototype,"hasQuantityIncrementer",void 0);Hx=_.c([_.E({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],Hx);
_.R(Hx,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(pcx!==void 0)return pcx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return pcx=q},{mode:1});var bkc;var Ym6;var Wx=function(){return _.Y.apply(this,arguments)||this};
_.O(Wx,_.Y);Wx.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Wx.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
Wx.prototype.updateTitle=function(){var q=this.disabledCartItemEntity;q.disableActionName&&this.set("data.title",$D(q.disableActionName))};
Wx.prototype.updateButton=function(){var q,w=(q=this.disabledCartItemEntity.undoCommand)==null?void 0:q.innertubeCommand;w!==void 0&&(this.set("data.actionButton.buttonRenderer.command",w),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
Wx.prototype.entityChanged=Wx.prototype.entityChanged;_.c([_.D(_.fU),_.h("design:type",Object)],Wx.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Wx.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Wx.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(q,w){return _.HQ(q.entities,"disabledCartItemEntity",w)}}),
_.h("design:type",Object)],Wx.prototype,"disabledCartItemEntity",void 0);_.c([_.v(),_.h("design:type",Object)],Wx.prototype,"data",void 0);_.c([_.nL("disabledCartItemEntity","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Wx.prototype,"entityChanged",null);Wx=_.c([_.E({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],Wx);
_.R(Wx,"ytd-disabled-cart-item-renderer",function(){if(Ym6!==void 0)return Ym6;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Ym6=q},{mode:1});_.JE("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var s0=function(){var q=_.Y.apply(this,arguments)||this;q.compact=!1;q.hidden=!1;q.errorHidden=!1;q.noOnTap=!1;return q};
_.O(s0,_.Y);_.k=s0.prototype;
_.k.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"}}}};
_.k.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.k.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var q=this.firstButtonElement;q.alignByText=!0;q.iconAlignByText=!0}};
_.k.computeNoOnTap=function(q){return!q};
_.k.updateQuantityColor=function(){if(this.pickerElement){var q,w=(q=this.commerceCartItemEntity)==null?void 0:q.quantityColor;this.pickerElement.quantityColor=w}};
_.k.updateTotalPriceColor=function(){var q,w=(q=this.commerceCartItemEntity)==null?void 0:q.totalPriceColor;if(w){var u;q=_.C((u=this.data)==null?void 0:u.quantityPicker,hIP);if(u=_.C(q==null?void 0:q.price,SuP))u.textColor=w}};
_.k.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var q,w=(q=this.commerceCartItemEntity)==null?void 0:q.isHidden;w!==void 0&&(this.hidden=w)}};
_.k.updateHideErrorMessage=function(){var q,w=(q=this.commerceCartItemEntity)==null?void 0:q.hideErrorMessage;w!==void 0&&(this.errorHidden=w)};
_.k.updateQuantity=function(){var q=this,w,u=(w=this.commerceCartItemEntity)==null?void 0:w.quantity,y;w=(y=this.commerceCartItemEntity)==null?void 0:y.totalPrice;if(u){this.updateTotalPriceColor();this.updateQuantityColor();var e;y=_.C((e=this.data)==null?void 0:e.quantityPicker,hIP);if(e=_.C(y==null?void 0:y.price,SuP))e.text=w?{simpleText:w.content}:void 0;if(w=_.C(y==null?void 0:y.picker,lEG))w.quantity=u;var t;if(e=(t=_.C(y==null?void 0:y.picker,yUG))==null?void 0:t.entries){t=!1;w=void 0;e=
_.P(e);for(y=e.next();!y.done;y=e.next())y=y.value,y.dropdownItemRenderer&&(w||(w=y.dropdownItemRenderer),y.dropdownItemRenderer.isSelected=!1,u===y.dropdownItemRenderer.int32Value&&(t=!0,y.dropdownItemRenderer.isSelected=!0));!t&&w&&(w.isSelected=!0)}_.KJ(this,function(){var X;q.set("data.quantityPicker",_.db.unsafeClone((X=q.data)==null?void 0:X.quantityPicker))})}};
s0.prototype.onYtRendererstamperFinished=s0.prototype.onYtRendererstamperFinished;s0.prototype.entityChanged=s0.prototype.entityChanged;_.c([_.v(),_.h("design:type",Object)],s0.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],s0.prototype,"compact",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],s0.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],s0.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],s0.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],s0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(q,w){return _.HQ(q.entities,"commerceCartItemEntity",w)}}),
_.h("design:type",Object)],s0.prototype,"commerceCartItemEntity",void 0);_.c([_.v(),_.h("design:type",Object)],s0.prototype,"quantityPicker",void 0);_.c([_.v(),_.h("design:type",Object)],s0.prototype,"compactQuantityPicker",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],s0.prototype,"hidden",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],s0.prototype,"errorHidden",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.h("design:type",Object)],s0.prototype,"noOnTap",void 0);_.c([_.Wj("ytd-commerce-cart-item-quantity-picker-renderer"),_.h("design:type",Object)],s0.prototype,"pickerElement",void 0);_.c([_.Wj("yt-button-renderer"),_.h("design:type",Element)],s0.prototype,"firstButtonElement",void 0);
_.c([_.nL("commerceCartItemEntity","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],s0.prototype,"entityChanged",null);_.c([_.Gm("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],s0.prototype,"onYtRendererstamperFinished",null);s0=_.c([_.E({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],s0);
_.R(s0,"ytd-commerce-cart-item-renderer",function(){if(bkc!==void 0)return bkc;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return bkc=q},{mode:_.kB("kevlar_poly_si_batch_j028")?1:2});var gqk;var Eqa;var NV=function(){return _.Y.apply(this,arguments)||this};
_.O(NV,_.Y);NV.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}}}}}};
NV.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
NV.prototype.updateCheckoutLineItems=function(){var q,w=(q=this.commerceCartCheckoutButtonEntity)==null?void 0:q.checkoutLineItems;w&&(q=w.map(function(u){a:{var y=u.price,e=u.description;switch(u.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":u={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:$D(e),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:$D(y),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:u={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:$D(e),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:$D(y),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 u}),this.set("data.summaryLineItems",q))};
NV.prototype.updateIsHidden=function(){var q,w=(q=this.commerceCartCheckoutButtonEntity)==null?void 0:q.isHidden;w!==void 0&&(this.hostElement.hidden=w)};
NV.prototype.entityChanged=NV.prototype.entityChanged;_.c([_.D(_.fU),_.h("design:type",Object)],NV.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],NV.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],NV.prototype,"data",void 0);_.c([_.v({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:rlJ}),_.h("design:type",Object)],NV.prototype,"commerceCartCheckoutButtonEntity",void 0);_.c([_.nL("commerceCartCheckoutButtonEntity","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NV.prototype,"entityChanged",null);NV=_.c([_.E({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],NV);
_.R(NV,"ytd-commerce-cart-summary-renderer",function(){if(Eqa!==void 0)return Eqa;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Eqa=q},{mode:1});var RmF={};RmF.InjectBehavior=[MUM.InjectBehavior];var ckF;var Sm3;var Qj=function(){return _.Y.apply(this,arguments)||this};
_.O(Qj,_.Y);
Qj.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:_.zW("menuRenderer")}}};
Qj.prototype.onMenuTap=function(q){q.stopPropagation()};
_.x$.Object.defineProperties(Qj.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 q,w;return!(((q=this.data)==null||!q.sectionHeading)&&((w=this.data)==null?void 0:w.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var q,w;return!(((q=this.data)==null||!q.image)&&((w=this.data)==null?void 0:w.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var q,w;return!(((q=this.data)==null||!q.menu)&&((w=this.data)==null?void 0:w.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Qj.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Qj.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.Okr.YtTappableItemBehavior),_.h("design:type",Object)],Qj.prototype,"ytTappableItemBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Qj.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.Z("data.accessibilityData"),_.h("design:type",String),_.h("design:paramtypes",[])],Qj.prototype,"ariaLabel",null);_.c([_.Z("data.sectionHeading","data.layout"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Qj.prototype,"sectionHeadingVisible",null);_.c([_.Z("data.image","data.layout"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Qj.prototype,"imageVisible",null);
_.c([_.Z("data.menu","data.layout"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Qj.prototype,"menuVisible",null);Qj=_.c([_.JM({is:"yt-activity-item-renderer",disableElementRegistration:!0})],Qj);
_.R(Qj,"yt-activity-item-renderer",function(){if(Sm3===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;ckF===void 0&&(ckF=document.createElement("template"));var y=ckF;u.call(w,y.content.cloneNode(!0),q.content.firstChild);Sm3=q}q=Sm3;return q},{mode:2});var hmj;var jUr;var l0a;var LCX;var IM=function(){return _.Y.apply(this,arguments)||this};
_.O(IM,_.Y);
IM.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"}}}}};
IM.prototype.backgroundColorChanged_=function(){var q,w=(q=this.data)==null?void 0:q.backgroundColor;this.hostElement.style.backgroundColor=xt[w||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
IM.prototype.backgroundColorChanged_=IM.prototype.backgroundColorChanged_;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],IM.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],IM.prototype,"data",void 0);
_.c([_.nL("data.backgroundColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],IM.prototype,"backgroundColorChanged_",null);IM=_.c([_.JM({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],IM);
_.R(IM,"yt-offer-item-upsell-renderer",function(){if(LCX===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;l0a===void 0&&(l0a=document.createElement("template"));var y=l0a;u.call(w,y.content.cloneNode(!0),q.content.firstChild);LCX=q}q=LCX;return q},{mode:2});_.JE("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var im=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};q.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return q};
_.O(im,_.Y);_.k=im.prototype;
_.k.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:_.zW("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.k.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.k.computeContainerStyle_=function(q){return q};
_.k.computeContainerIsHidden_=function(q){return q&&!!q.isHidden};
_.k.computeShowSpinner_=function(q,w){return q&&w==="in-progress"};
_.k.computeShowMoreContentsButton_=function(q,w,u,y,e){return!(!(y&&y.length||e&&e.length&&u)||!q||w)};
_.k.onToggleButton_=function(q){var w=this;q.stopPropagation();this.isExpanded_=q.detail&&q.detail.toggled;var u,y;this.isExpanded_&&!this.data.continuationSection.length&&((u=this.data)==null?0:(y=u.continuation)==null?0:y.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.t7(this.hostElement,"yt-load-next-continuation",function(e){return w.getContinuationUrl_(w.data.continuation.onClickContinuationData,e)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.GM(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.k.onShowMoreContentsButtonClicked_=function(q){var w=this;q.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.t7(this.hostElement,"yt-load-next-continuation",function(u){return w.getContinuationUrl_(w.data.continuations[0].nextContinuationData,u)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.GM(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.k.getContinuationUrl_=function(q,w){var u=q.continuation;q=q.clickTrackingParams;var y=_.pN();q&&y&&_.jB(y,_.Tj(q));return _.xw(w,{continuation:u})};
_.k.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var q=_.A(this.hostElement).querySelector("#continuation-section");q&&(q=q.querySelectorAll("ytmusic-item-section-renderer"))&&q.forEach(function(w){return w.classList.add("memberships-and-purchases")})};
_.k.dataChanged_=function(){var q;this.isExpanded_=!((q=this.data)==null||!q.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.k.updateCardOnClickCommand_=function(q){q=_.C(q,pik);var w,u;this.data&&((w=this.data)==null?0:w.targetId)&&q&&q.targetId===((u=this.data)==null?void 0:u.targetId)&&q.onClickCommand&&(this.data.onClickCommand=q.onClickCommand,this.isOnClickCommand_=!0)};
_.k.backgroundColorChanged_=function(){var q,w=(q=this.data)==null?void 0:q.backgroundColor;this.hostElement.style.backgroundColor=xt[w||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
im.prototype.backgroundColorChanged_=im.prototype.backgroundColorChanged_;im.prototype.dataChanged_=im.prototype.dataChanged_;im.prototype.nextContinuationDataUpdated_=im.prototype.nextContinuationDataUpdated_;im.prototype.onToggleButton_=im.prototype.onToggleButton_;_.c([_.D(_.JR),_.h("design:type",Object)],im.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],im.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],im.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.zE.YtNextContinuationBehavior),_.h("design:type",Object)],im.prototype,"ytNextContinuationBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.c([_.D(RmF.InjectBehavior),_.h("design:type",Object)],im.prototype,"injectBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],im.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],im.prototype,"compact",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],im.prototype,"isExpanded_",void 0);_.c([_.v({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.h("design:type",String)],im.prototype,"containerStyle_",void 0);_.c([_.v({value:"not-started"}),_.h("design:type",String)],im.prototype,"continuationStatus_",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.h("design:type",Boolean)],im.prototype,"showSpinner_",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],im.prototype,"isOnClickCommand_",void 0);_.c([_.v({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.h("design:type",Boolean)],im.prototype,"showMoreContentsButton_",void 0);
_.c([_.v({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(q,w){return!w||q.entities?null:_.HQ(q.entities,"cardItemContainerEntity",w)}}),
_.h("design:type",Object)],im.prototype,"cardItemContainerEntity_",void 0);_.c([_.Gm("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],im.prototype,"onToggleButton_",null);_.c([_.Gm("yt-next-continuation-data-updated"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],im.prototype,"nextContinuationDataUpdated_",null);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],im.prototype,"dataChanged_",null);_.c([_.nL("data.backgroundColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],im.prototype,"backgroundColorChanged_",null);im=_.c([_.JM({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],im);
_.R(im,"yt-card-item-container-renderer",function(){if(jUr===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;hmj===void 0&&(hmj=document.createElement("template"));var y=hmj;u.call(w,y.content.cloneNode(!0),q.content.firstChild);jUr=q}q=jUr;return q},{mode:2});var r3=function(){return _.Y.apply(this,arguments)||this};
_.O(r3,_.Y);r3.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"}}}};
r3.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
r3.prototype.computeLoadingHidden=function(){var q;return!((q=this.commerceCartPageStateEntity)==null?0:q.cartActionInProgress)};
r3.prototype.updateNotification=function(){var q,w=(q=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:q.summaryText;w&&this.set("data.cartNotification",$D(w))};
r3.prototype.notificationEntityChanged=r3.prototype.notificationEntityChanged;_.c([_.D(_.fU),_.h("design:type",Object)],r3.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],r3.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],r3.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],r3.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],r3.prototype,"data",void 0);_.c([_.v({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(q,w){return _.HQ(q.entities,"commerceCartExpandableNotificationEntity",w)}}),
_.h("design:type",Object)],r3.prototype,"commerceCartExpandableNotificationEntity",void 0);_.c([_.v({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(q,w){return _.HQ(q.entities,"commerceCartPageStateEntity",w)}}),
_.h("design:type",Object)],r3.prototype,"commerceCartPageStateEntity",void 0);_.c([_.Wj("#spinner"),_.h("design:type",HTMLElement)],r3.prototype,"spinner",void 0);_.c([_.nL("commerceCartExpandableNotificationEntity","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],r3.prototype,"notificationEntityChanged",null);r3=_.c([_.E({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],r3);
_.R(r3,"ytd-commerce-cart-renderer",function(){if(gqk!==void 0)return gqk;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return gqk=q},{mode:1});var MPX;var U0=function(){var q=_.Y.apply(this,arguments)||this;q.bigImage=!1;return q};
_.O(U0,_.Y);_.x$.Object.defineProperties(U0.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.placeholderImageUrl}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],U0.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],U0.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],U0.prototype,"bigImage",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],U0.prototype,"placeholderImageUrl",null);U0=_.c([_.E({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],U0);
_.R(U0,"ytd-empty-product-shelf-renderer",function(){if(MPX!==void 0)return MPX;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return MPX=q},{mode:1});var KCZ;var Ti=function(){var q=_.Y.apply(this,arguments)||this;q.itemStyle="link-item";q.watchMetadataRefresh=!1;q.skinnyMode=!1;q.metaPanel=!1;q.inStructuredDescription=!1;q.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};q.updateOnResizeDebouncer=null;return q};
_.O(Ti,_.Y);_.k=Ti.prototype;_.k.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.k.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"}}}}};
_.k.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.k.attachVEs=function(q){q.trackingParams&&_.Qz().graftServerVe(q.trackingParams)};
_.k.handleUpdateMerchShelfAction=function(q){var w=this,u=_.C(q.updateMerchandiseShelfAction.merchandiseShelf,_.rYx);u&&(u.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){w.attachVEs(u);w.data=u},Number(u.renderDelayMs))):(this.attachVEs(u),this.data=u))};
_.k.updateOnResize=function(){if(this.JSC$14565_scrollContainer!==void 0&&this.JSC$14565_scrollContainer.clientWidth!==0&&this.items!==void 0){var q=this.JSC$14565_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-q));this.ytdHorizontalListBehavior.reposition_();var w;switch((w=this.data)==null?void 0:w.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var u,
y;((u=this.data)==null?void 0:(y=u.items)==null?void 0:y.length)===1?this.itemStyle="cta-item":this.itemStyle=q>=740?"large-item":"small-item"}}};
_.k.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.y5(this.updateOnResizeDebouncer,_.SF.after(100),this.updateOnResize)};
Ti.prototype.debouncedUpdateOnResize=Ti.prototype.debouncedUpdateOnResize;Ti.prototype.dataChanged=Ti.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ti.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ti.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.MR.YtdHorizontalListBehavior),_.h("design:type",Object)],Ti.prototype,"ytdHorizontalListBehavior",void 0);
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Ti.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Ti.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ti.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ti.prototype,"itemStyle",void 0);_.c([_.v({value:6}),_.h("design:type",Number)],Ti.prototype,"initialCount",void 0);
_.c([_.v({value:"data.items"}),_.h("design:type",String)],Ti.prototype,"itemsPath",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ti.prototype,"watchMetadataRefresh",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ti.prototype,"skinnyMode",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ti.prototype,"metaPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ti.prototype,"inStructuredDescription",void 0);
_.c([_.Wj("#items"),_.h("design:type",HTMLDivElement)],Ti.prototype,"items",void 0);_.c([_.Wj("#scroll-container"),_.h("design:type",HTMLDivElement)],Ti.prototype,"JSC$14565_scrollContainer",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ti.prototype,"dataChanged",null);_.c([_.Gm("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ti.prototype,"debouncedUpdateOnResize",null);
Ti=_.c([_.E({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],Ti);
_.R(Ti,"ytd-merch-shelf-renderer",function(){if(KCZ!==void 0)return KCZ;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return KCZ=q},{mode:2});var B0F;var Cc=function(){var q=_.Y.apply(this,arguments)||this;q.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 q};
_.O(Cc,_.Y);_.k=Cc.prototype;
_.k.addBackstagePostAction=function(q){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(q=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",q))&&(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:q}):this.set("data.contents",[{backstagePostThreadRenderer:q}]))};
_.k.addBackstageCommentAction=function(q){var w=this.get("addBackstageCommentAction.parentId",q);q=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",q);if(w&&q){w=this.postIdToIndices(w);for(var u=0;u<w.length;u++){var y=w[u];if(y<0)break;y="data.contents."+y+".backstagePostThreadRenderer.comments";this.get(y)&&(this.get(y+".backstageCommentsRenderer.contents")&&this.push(y+".backstageCommentsRenderer.contents",{commentThreadRenderer:q}),this.get(y+".backstageCommentsRenderer.teaserContents")?
this.push(y+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:q}):this.set(y+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:q}]))}}};
_.k.addBackstageReplyAction=function(q){var w=this.get("addBackstageReplyAction.parentId",q);q=this.get("addBackstageReplyAction.renderer.commentRenderer",q);w&&q&&this.setCreatorReply(w,q)};
_.k.banAuthorAction=function(q){var w=this.get("banAuthorAction.commentId",q);w&&(q=this.get("banAuthorAction.parentCommentId",q)||this.getParentPostId(w),this.removeFromStream(w,q))};
_.k.hideReportedCommentAction=function(q){var w=this.get("hideReportedCommentAction.commentId",q);w&&((q=this.get("hideReportedCommentAction.parentCommentId",q))||(q=this.getParentPostId(w)),this.removeFromStream(w,q))};
_.k.replaceBackstageCommentAction=function(q){var w=this.get("replaceBackstageCommentAction.commentId",q),u=this.get("replaceBackstageCommentAction.parentId",q);q=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",q);if(w&&u&&q){u=this.postIdToIndices(u);for(var y=0;y<u.length;y++){var e=u[y];if(e<0)break;var t=this.commentIdToIndex(w,e,!1);if(t>=0){var X=this.get("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+t+".commentThreadRenderer.replies.commentRepliesRenderer");
X&&(q.replies={commentRepliesRenderer:X});this.splice("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",t,1,{commentThreadRenderer:q})}t=this.commentIdToIndex(w,e,!0);if(t>=0){if(X=this.get("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(t+".commentThreadRenderer.replies.commentRepliesRenderer")))q.replies={commentRepliesRenderer:X};this.splice("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
t,1,{commentThreadRenderer:q})}}}};
_.k.replaceBackstagePostAction=function(q){var w=this.get("replaceBackstagePostAction.itemId",q);if(w){w=this.postIdToIndices(w);for(var u=0;u<w.length;u++){var y=w[u];if(y<0)break;var e=this.getPostRendererType(y),t=this.get("replaceBackstagePostAction.renderer."+e,q);if(!t&&e!=="sharedPostRenderer")break;var X=!1;t||(X=!0,t=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",q));if(!t)break;var G={};X?(_.AB(G,VcZ,t),this.set("data.contents."+y+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
G)):(_.AB(G,new _.M(e),t),this.set("data.contents."+y+".backstagePostThreadRenderer.post",G))}}};
_.k.replaceBackstageReplyAction=function(q){var w=this.get("replaceBackstageReplyAction.replyId",q),u=this.get("replaceBackstageReplyAction.parentId",q);q=this.get("replaceBackstageReplyAction.renderer.commentRenderer",q);w&&q&&u&&this.setCreatorReply(u,q)};
_.k.removeCommentAction=function(q){var w=this.get("removeCommentAction.commentId",q);if(w){var u=this.get("removeCommentAction.parentCommentId",q);u&&this.get("removeCommentAction.isCreatorReply",q)?this.setCreatorReply(u,void 0):(u||(u=this.getParentPostId(w)),this.removeFromStream(w,u))}};
_.k.setCreatorReply=function(q,w){var u=this.getParentPostId(q);if(u){u=this.postIdToIndices(u);for(var y=0;y<u.length;y++){var e=u[y];if(e<0)break;var t=this.commentIdToIndex(q,e,!1);if(t>=0){var X="data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+t;t=X+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";X+=".commentThreadRenderer.replies";w==void 0?(this.set(X,{}),this.set(t,!1)):(this.set(X,{commentRepliesRenderer:{teaserContents:[{commentRenderer:w}]}}),
this.set(X+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(t,!0))}t=this.commentIdToIndex(q,e,!0);t>=0&&(t="data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+t,e=t+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",t+=".commentThreadRenderer.replies",w==void 0?(this.set(t,{}),this.set(e,!1)):(this.set(t,{commentRepliesRenderer:{teaserContents:[{commentRenderer:w}]}}),this.set(e,!0)))}}};
_.k.removeFromStream=function(q,w){if(w){w=this.postIdToIndices(w);for(var u=0;u<w.length;u++){var y=w[u];if(y<0)break;var e=this.commentIdToIndex(q,y,!1);e>=0&&this.splice("data.contents."+y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",e,1);e=this.commentIdToIndex(q,y,!0);e>=0&&this.splice("data.contents."+y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",e,1);y="data.contents."+y+".backstagePostThreadRenderer.post.backstagePostRenderer";
e=y+".backstageAttachment.pollRenderer.votedCommentId";this.get(e)===q&&(this.set(e,null),this.set(y+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(w=this.postIdToIndices(q).reverse(),u=0;u<w.length;u++){y=w[u];if(y<0)break;e=this.getPostRendererType(y);var t=this.get("backstagePostThreadRenderer.post."+e,this.data.contents[y]);t.postId===q?this.splice("data.contents",y,1):e==="sharedPostRenderer"&&this.set("data.contents."+y+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);t.scheduledPublishTimeSec&&_.Pw(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.k.postIdToIndices=function(q){for(var w=[],u=0;u<this.data.contents.length;u++){var y=this.getPostRendererType(u);this.get("backstagePostThreadRenderer.post."+y+".postId",this.data.contents[u])===q&&w.push(u);if(y==="sharedPostRenderer"){var e=this.get("backstagePostThreadRenderer.post."+y+".originalPost.backstagePostRenderer.postId",this.data.contents[u]);y=this.get("backstagePostThreadRenderer.post."+y+".originalPost.postRenderer.postId",this.data.contents[u]);e!==q&&y!==q||w.push(u)}}return w};
_.k.commentIdToIndex=function(q,w,u){if(w<0)return-1;var y,e,t,X,G=_.C((y=this.data)==null?void 0:(e=y.contents)==null?void 0:(t=e[w])==null?void 0:(X=t.backstagePostThreadRenderer)==null?void 0:X.comments,OC3);return(w=u?G==null?void 0:G.teaserContents:G==null?void 0:G.contents)&&w.length?w.findIndex(function(n){return _.C(n,xL$).comment.commentRenderer.commentId===q}):-1};
_.k.getParentPostId=function(q){q=q.split(".");if(q[1])return q[0]};
_.k.getPostRendererType=function(q){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[q])?"sharedPostRenderer":"backstagePostRenderer"};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Cc.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Cc.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Cc.prototype,"data",void 0);Cc=_.c([_.E({disableElementRegistration:!0,is:"ytd-backstage-items"})],Cc);
_.R(Cc,"ytd-backstage-items",function(){if(B0F!==void 0)return B0F;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return B0F=
q},{mode:1});var xN$;_.o9({is:"ytd-comments",_template:function(){if(xN$!==void 0)return xN$;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return xN$=q},
behaviors:[_.xEs.YtHostElementBehavior,_.b7.YtPlayerListenerBehavior,_.B.YtRendererBehavior,_.hm.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,
value:!1}},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_"},listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)",
"headerChanged_(data.header)"],created:function(){this.RenderingPriority={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};this.initCommentsCsi_()},
contentsChanged_:function(q){q&&q.value&&q.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(q){q&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.aD("wn_comments");var q=_.pN();q&&_.zM({clientScreenNonce:q},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(q){q=HBs(q);var w,u,y;if(q=(w=q)==null?void 0:(u=w.createCommentAction)==null?void 0:(y=u.contents)==null?void 0:y.commentThreadRenderer){var e,t,X,G,n,N;!this.isBackstage&&((e=this.data)==null?0:(t=e.header)==null?0:(X=t.commentsHeaderRenderer)==null?0:(G=X.createRenderer)==null?0:(n=G.commentSimpleboxRenderer)==null?0:(N=n.zeroStep)==null?0:N.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var Q,I,U,d;this.isBackstage&&((Q=this.data)==null?0:(I=Q.header)==null?0:(U=I.commentsHeaderRenderer)==null?0:(d=U.zeroStateMessage)==null?0:d.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(q)}},
doReplyInsert_:function(q,w,u,y){y?this.splice(q,y,0,w):this.push(q,w)},
getRepliesPath_:function(q){return"data.contents."+q+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(q,w){q=this.getRepliesPath_(q);return w?q+".commentRepliesRenderer.teaserContents":q+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(q){q=HBs(q);var w,u,y=(w=q)==null?void 0:(u=w.createCommentReplyAction)==null?void 0:u.parentCommentId,e,t;if(w=(e=q)==null?void 0:(t=e.createCommentReplyAction)==null?void 0:t.contents)if(y=this.commentIdToIndex_(y),!(y<0))if(e=this.getRepliesPath_(y),this.get(e)){var X,G;q=(X=q)==null?void 0:(G=X.createCommentReplyAction)==null?void 0:G.replyToCommentId;X=this.getRepliesContentsPath_(y,!1);this.get(X)&&(G=this.get(X).length,e=X+"."+(G-1)+".continuationItemRenderer",
this.get(e+".button")?(e=this.replyIdToIndex_(q,y,!1),this.doReplyInsert_(X,w,e,G-1)):this.get(e)||(G=this.replyIdToIndex_(q,y,!1),this.doReplyInsert_(X,w,G,null)));X=this.getRepliesContentsPath_(y,!0);this.get(X)?(y=this.replyIdToIndex_(q,y,!0),(!q||y>=0)&&this.doReplyInsert_(X,w,y,null)):this.set(X,[w])}else this.set(e,{commentRepliesRenderer:{teaserContents:[w]}})},
hideReportedCommentAction_:function(q){var w,u=q==null?void 0:(w=q.hideReportedCommentAction)==null?void 0:w.commentId;if(u){var y;q=q==null?void 0:(y=q.hideReportedCommentAction)==null?void 0:y.parentCommentId;u=u.replace("#",".");q||(q=this.getParentCommentId_(u));this.remove_(u,q)}},
getParentCommentId_:function(q){q=q.split(".");if(q[1])return q[0]},
removeCommentAction_:function(q){var w,u=q==null?void 0:(w=q.removeCommentAction)==null?void 0:w.commentId;if(u){var y;q=q==null?void 0:(y=q.removeCommentAction)==null?void 0:y.parentCommentId;u=u.replace("#",".");q||(q=this.getParentCommentId_(u));this.remove_(u,q)}},
pinCommentAction_:function(q){q=HBs(q);var w,u,y=(w=q)==null?void 0:(u=w.pinCommentAction)==null?void 0:u.commentId;y&&(q=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",q))&&(this.remove_(y),this.insert_(q,!0))},
unpinCommentAction_:function(q){q=HBs(q);var w,u,y=(w=q)==null?void 0:(u=w.unpinCommentAction)==null?void 0:u.commentId;if(y){var e,t,X;if(q=(e=q.unpinCommentAction)==null?void 0:(t=e.actionResult)==null?void 0:(X=t.update)==null?void 0:X.commentThreadRenderer)this.remove_(y),this.insert_(q)}},
banAuthorAction_:function(q){var w,u=q==null?void 0:(w=q.banAuthorAction)==null?void 0:w.commentId;if(u){var y;q=q==null?void 0:(y=q.banAuthorAction)==null?void 0:y.parentCommentId;u=u.replace("#",".");q||(q=this.getParentCommentId_(u));this.remove_(u,q)}},
commentIdToIndex_:function(q){var w;return q&&(w=this.data)!=null&&w.contents?this.data.contents.findIndex(function(u){var y,e;return q===((u==null?void 0:(y=u.commentThreadRenderer)==null?void 0:y.commentViewModel)&&((e=_.C(u.commentThreadRenderer.commentViewModel,yvj))==null?void 0:e.commentId))}):-1},
insert_:function(q,w){var u,y;if((u=this.data)==null?0:(y=u.contents)==null?0:y.some(function(t){return!(t==null||!t.commentThreadRenderer)}))for(u=0,y=this.data.contents.length;u<y;u++){var e=this.data.contents[u].commentThreadRenderer;
if(this.RenderingPriority[q.renderingPriority]>=this.RenderingPriority[e.renderingPriority]){w&&this.RenderingPriority[q.renderingPriority]==this.RenderingPriority[e.renderingPriority]?this.splice("data.contents",u,1,{commentThreadRenderer:q}):this.splice("data.contents",u,0,{commentThreadRenderer:q});break}}else this.set("data.contents",[{commentThreadRenderer:q}])},
doReplyRemove_:function(q,w,u){q=this.replyIdToIndex_(q,w,u);q<0||(w=this.getRepliesContentsPath_(w,u),this.splice(w,q,1))},
remove_:function(q,w){w=this.commentIdToIndex_(w);w<0?(w=this.commentIdToIndex_(q),w<0||this.splice("data.contents",w,1)):(this.doReplyRemove_(q,w,!1),this.doReplyRemove_(q,w,!0))},
replyIdToIndex_:function(q,w,u){if(w<0)return-1;w=this.getRepliesContentsPath_(w,u);w=this.get(w);if(!w||!w.length)return-1;u=0;for(var y=w.length;u<y;u++){var e=void 0,t=void 0;if(((e=w[u])==null?void 0:(t=e.commentViewModel)==null?void 0:t.commentId)===q)return u}return-1},
computeIsBackstage_:function(q){return!!q},
tickForCommentsTimer_:function(q){_.Z_(q,void 0,"wn_comments")},
reloadComments_:function(q){q&&q.reloadCommentsCommand&&q.reloadCommentsCommand.command&&q.reloadCommentsCommand.command.continuationCommand&&_.GM(this,[q.reloadCommentsCommand.command])}});var d3=function(){return _.Na.apply(this,arguments)||this};
_.O(d3,_.Na);_.k=d3.prototype;_.k.bindIf=function(q,w,u){return q?w:u};
_.k.bindIfDefined=function(q,w){return q!==void 0?q:w};
_.k.booleanString=function(q){return(!!q).toString()};
_.k.equals=function(){for(var q=_.Cj.apply(0,arguments),w=q[0],u=1;u<q.length;u++)if(w!=q[u])return!1;return!0};
_.k.isGreaterThan=function(q,w){return q>w};
_.k.isLessThan=function(q,w){return q<w};
_.k.logicalAND=function(){for(var q=_.Cj.apply(0,arguments),w=!!q[0],u=1;u<q.length;u++)w=w&&!!q[u];return w};
_.k.logicalOR=function(){for(var q=_.Cj.apply(0,arguments),w=!!q[0],u=1;u<q.length;u++)w=w||!!q[u];return w};
_.k.toBool=function(q){return!!q};
d3.prototype.toBool=d3.prototype.toBool;d3.prototype.logicalOR=d3.prototype.logicalOR;d3.prototype.logicalAND=d3.prototype.logicalAND;d3.prototype.isLessThan=d3.prototype.isLessThan;d3.prototype.isGreaterThan=d3.prototype.isGreaterThan;d3.prototype.equals=d3.prototype.equals;d3.prototype.booleanString=d3.prototype.booleanString;d3.prototype.bindIfDefined=d3.prototype.bindIfDefined;d3.prototype.bindIf=d3.prototype.bindIf;d3=_.c([_.Q6()],d3);_.qnc=[d3.prototype];var wqP;var uYP;var O0=function(){return _.Y.apply(this,arguments)||this};
_.O(O0,_.Y);O0.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
O0.prototype.onBackIconTap_=function(){window.history.back()};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],O0.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],O0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],O0.prototype,"data",void 0);O0=_.c([_.JM({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],O0);
_.R(O0,"yt-header-with-back-renderer",function(){if(uYP===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;wqP===void 0&&(wqP=document.createElement("template"));var y=wqP;u.call(w,y.content.cloneNode(!0),q.content.firstChild);uYP=q}q=uYP;return q},{mode:2});var y4T;var eyF;var oM=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.O(oM,_.Y);_.k=oM.prototype;_.k.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.k.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&(this.isDarkTheme=q,this.setUrl())};
_.k.dataChanged=function(){var q=this;if(this.data){var w=this.setUrl();w&&_.MG({destination:window,iframe:this.iframe,origin:_.mT6(w.toString()),channelName:"yt-iframe",onMessage:function(u){(u=q.getCommunicationCommand(u.data))&&q.ytComponentBehavior.resolveCommand(u)},
onEstablished:function(){}})}};
_.k.setUrl=function(){if(this.data&&this.data.iframeUrl){var q=_.$Z(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(q)return _.Ja(this.iframe,q),q}};
_.k.getCommunicationCommand=function(q){var w;if((w=this.data)!=null&&w.onCommunicationCommandsMap){w=this.data.onCommunicationCommandsMap.find(function(e){return e.key===q});
if(w==null?0:w.value)return w==null?void 0:w.value;try{var u=VL3(_.sX(q)),y=this.data.onCommunicationCommandsMap.find(function(e){return e.key===(u==null?void 0:_.fy(u,1))});
if(y==null?0:y.value)return y==null?void 0:y.value}catch(e){}}};
oM.prototype.dataChanged=oM.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],oM.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],oM.prototype,"actionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],oM.prototype,"data",void 0);
_.c([_.v({value:!1}),_.h("design:type",Boolean)],oM.prototype,"isDarkTheme",void 0);_.c([_.Wj("#iframe"),_.h("design:type",HTMLIFrameElement)],oM.prototype,"iframe",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oM.prototype,"dataChanged",null);oM=_.c([_.JM({is:"yt-iframe-renderer",disableElementRegistration:!0})],oM);
_.R(oM,"yt-iframe-renderer",function(){if(eyF===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;y4T===void 0&&(y4T=document.createElement("template"));var y=y4T;u.call(w,y.content.cloneNode(!0),q.content.firstChild);eyF=q}q=eyF;return q},{mode:2});_.Vj=function(q){_.VG.call(this);this.callback=q;this.bezier=new tQc(0,0,.4,0,.2,1,1,1);this.delay=new _.u9(this.next,window,this);this.JSC$14596_animating=!1;_.sN(this,this.delay)};
_.O(_.Vj,_.VG);_.Vj.prototype.isAnimating=function(){return this.JSC$14596_animating};
_.Vj.prototype.start=function(q,w,u){this.config={from:q,to:w,duration:u,startTime:(0,_.eW)()};this.JSC$14596_animating=!0;this.next()};
_.Vj.prototype.stop=function(){this.delay.stop();this.JSC$14596_animating=!1;this.config=void 0};
_.Vj.prototype.next=function(){if(this.config){var q=this.config,w=q.from,u=q.to,y=q.duration;q=q.startTime;var e=(0,_.eW)()-q;q=this.bezier;y=XMc(q,e/y);if(y==0)q=q.y0;else if(y==1)q=q.y3;else{e=i6(q.y0,q.y1,y);var t=i6(q.y1,q.y2,y);q=i6(q.y2,q.y3,y);e=i6(e,t,y);t=i6(t,q,y);q=i6(e,t,y)}q=_.zT(q,0,1);this.callback(w+(u-w)*q);q<1?this.delay.start():this.JSC$14596_animating=!1}};_.fc=new _.MH("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var kAx={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},P0$=function(q,w,u,y){_.VG.call(this);this.JSC$14604_miniAppId=q;this.localReleaseId=w;this.derivedDeviceInterface=u;this.isForeground=y;this.JSC$14604_playNonceResolver=new _.Gt;this.playPingTimerId=NaN;this.playPingIntervalMs=_.Fc("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.Fc("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.T("enable_displaying_ppn");this.JSC$14604_miniAppClientDataProvider=_.tG().resolve(_.fc);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;tST(this);var e=setTimeout(function(){_.Y8(new _.fv("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14604_playNonceResolver.promise.then(function(){clearTimeout(e)})};
_.O(P0$,_.VG);var Fq3=function(q,w){q.JSC$14604_playNonceResolver.resolve(w!=null?w:ax(8));q.enableDisplayingPpn&&XqT(q).then(function(u){q.JSC$14604_miniAppClientDataProvider.clientData.set("post_play_nonce",u)})},XqT=function(q){return _.F(function(w){return w.nextAddress==1?_.H(w,q.JSC$14604_playNonceResolver.promise,2):w.return(w.yieldResult)})},tST=function(q){var w,u;
_.F(function(y){if(y.nextAddress==1)return _.H(y,q.JSC$14604_playNonceResolver.promise,2);w=y.yieldResult;u={miniAppInfo:{externalPostId:q.JSC$14604_miniAppId,localReleaseId:q.localReleaseId,postPlayNonce:w,derivedDeviceInterface:q.derivedDeviceInterface}};_.zM(u);_.HI(y)})},n3T=function(q){q.state!==0?_.Y8(new _.fv("[MiniAppPlayLogger] recordPlayStart failed with state "+kAx[q.state])):(q.state=1,mh(q,"ma_cl"),A9(q,"PLAY_EVENT_TYPE_PLAY_START"),GAj(q))},Her=function(q){q.isForeground=!1;
A9(q,"PLAY_EVENT_TYPE_PLAY_PAUSE")},WqP=function(q){q.state!==1&&q.state!==2?_.Y8(new _.fv("[MiniAppPlayLogger] recordPlayEnd failed with state "+kAx[q.state])):(q.state=3,window.clearInterval(q.playPingTimerId),q.playPingTimerId=NaN,BaM(),A9(q,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},sLG=function(q,w){q.state===2&&q.gameReady&&(q.firstClickRecorded?Date.now()-q.clickRecordedMs<q.playClickIntervalMs||(q.clickRecordedMs=Date.now(),A9(q,"PLAY_EVENT_TYPE_PLAY_CLICK")):w&&(mh(q,"ma_fua"),A9(q,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),q.firstClickRecorded=!0,q.clickRecordedMs=Date.now()))};
P0$.prototype.logError=function(q){var w=this,u;_.F(function(y){if(y.nextAddress==1)return q.metadata.externalPostId=w.JSC$14604_miniAppId,u=q.metadata,_.H(y,Promise.race([w.JSC$14604_playNonceResolver.promise,new Promise(function(e){setTimeout(function(){e("")},3E4)})]),2);
u.postPlayNonce=y.yieldResult;q.metadata.localReleaseId=w.localReleaseId;q.loggingError.level="WARNING";_.vm(q.loggingError,q.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:q.metadata});_.HI(y)})};
var NUr=function(q,w,u,y){var e,t,X,G,n,N;_.F(function(Q){if(Q.nextAddress==1)return _.H(Q,q.JSC$14604_playNonceResolver.promise,2);e=Q.yieldResult;t={externalPostId:q.JSC$14604_miniAppId,localReleaseId:q.localReleaseId,postPlayNonce:e,sdkVersion:u,api:w};y!==void 0&&(t.networkRequestsMeasurement={networkRequests:_.yG(y,1),cachedRequests:_.yG(y,2),transferredBytes:_.yG(y,3)},(X=y)==null?0:_.NG(X,LH,6))&&(t.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((G=_.PT(y,
LH,6))==null?void 0:Av(G,1))||"0",cacheHits:((n=_.PT(y,LH,6))==null?void 0:Av(n,2))||"0",cachedBytes:((N=_.PT(y,LH,6))==null?void 0:Av(N,3))||"0"});_.pn("miniAppSdkUsage",t);_.HI(Q)})},I4j=function(q,w,u){var y,e,t,X,G,n,N,Q,I,U,d,V,J,a,b,g;
_.F(function(l){if(l.nextAddress==1)return _.H(l,q.JSC$14604_playNonceResolver.promise,2);y=l.yieldResult;e={externalPostId:q.JSC$14604_miniAppId,localReleaseId:q.localReleaseId,postPlayNonce:y,sdkVersion:u,measurementWindow:{startTimestampMs:String(oG(w,1)),endTimestampMs:String(oG(w,2))},frameRate:{averageFrameTimeDeltaMs:VN(w,3),averageFrameIdleTimeMs:VN(w,4)}};_.NG(w,Ms,5)&&(e.networkRequests={networkRequests:(t=y0(w))==null?void 0:_.yG(t,1),cachedRequests:(X=y0(w))==null?void 0:_.yG(X,2),transferredBytes:(G=
y0(w))==null?void 0:_.yG(G,3),sameOriginStatusCodeToCounts:QLc((n=y0(w))==null?void 0:wV4(n,4)),crossOriginStatusCodeToCounts:QLc((N=y0(w))==null?void 0:wV4(N,5))},(Q=y0(w))==null?0:_.NG(Q,LH,6))&&(e.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((I=y0(w))==null?void 0:(U=_.PT(I,LH,6))==null?void 0:Av(U,1))||"0",cacheHits:((d=y0(w))==null?void 0:(V=_.PT(d,LH,6))==null?void 0:Av(V,2))||"0",cachedBytes:((J=y0(w))==null?void 0:(a=_.PT(J,LH,6))==null?void 0:Av(a,3))||"0"});_.NG(w,
UDT,7)&&(e.gameCapture={averageFrameTimeDeltaMs:(b=_.PT(w,UDT,7))==null?void 0:VN(b,1),averageFrameIdleTimeMs:(g=_.PT(w,UDT,7))==null?void 0:VN(g,2)});_.pn("miniAppPerformanceMetrics",e);_.HI(l)})},ieT=function(q,w,u){var y,e;
return _.F(function(t){if(t.nextAddress==1)return _.H(t,q.JSC$14604_playNonceResolver.promise,2);y=t.yieldResult;e={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:q.JSC$14604_miniAppId,postPlayNonce:y,miniAppReleaseId:q.localReleaseId},derivedDeviceInterface:q.derivedDeviceInterface,adTriggerType:w};e.rejectedReason=u||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.pn("miniAppAdEvent",e);_.HI(t)})};
P0$.prototype.disposeInternal=function(){_.VG.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var A9=function(q,w,u,y){u=u===void 0?{}:u;y=y===void 0?!1:y;var e,t,X,G;_.F(function(n){if(n.nextAddress==1)return e=q.isForeground,t=q.beforeReady,_.H(n,q.JSC$14604_playNonceResolver.promise,2);X=n.yieldResult;G={externalPostId:q.JSC$14604_miniAppId,localReleaseId:q.localReleaseId,derivedDeviceInterface:q.derivedDeviceInterface,postPlayNonce:X,type:w};u.sequenceGroup=X;G.playState=t?"PLAY_STATE_NOT_READY":e?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.pn("miniAppPlayEvent",G,u);
y&&_.$8();_.HI(n)})},mh=function(q,w){var u;
_.F(function(y){if(y.nextAddress==1)return u=(0,_.eW)(),_.H(y,q.JSC$14604_playNonceResolver.promise,2);_.D_(w,u);_.HI(y)})},GAj=function(q){isNaN(q.playPingTimerId)&&(q.playPingTimerId=_.s8(function(){q.state!==1&&q.state!==2?_.Y8(new _.fv("[MiniAppPlayLogger] reportPlayPing failed with state "+kAx[q.state])):A9(q,"PLAY_EVENT_TYPE_PLAY_PING")},q.playPingIntervalMs))},QLc=function(q){return Array.from(q.entries()).map(function(w){var u=_.P(w);
w=u.next().value;u=u.next().value;return{key:w,value:u}})};var r4T=_.Fc("show_mini_app_ad_frequency_cap_ms",0),Ufk=function(){this.showAdIntervalMs=r4T;this.isRateLimited=!0},TUr=function(q,w){setTimeout(function(){return q.isRateLimited=!1},q.showAdIntervalMs);
q.showMiniAppAdCommand=w.showMiniAppAdCommand;q.isEmbeddedInWebview=w.isEmbeddedInWebview;q.playLogger=w.playLogger},dfT=function(q,w){var u;
return _.F(function(y){if(y.nextAddress==1){if(!q.showMiniAppAdCommand||!q.isEmbeddedInWebview)return y.return(C0P(q,w,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(q.isRateLimited)return y.return(C0P(q,w,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));q.adResolver=new _.Gt;u=Ek$(new gk3,w);br(q.showMiniAppAdCommand,R2X(u));q.isRateLimited=!0;setTimeout(function(){return q.isRateLimited=!1},q.showAdIntervalMs);
return _.H(y,q.adResolver.promise,2)}return y.return(y.yieldResult)})};
Ufk.prototype.onAdFinished=function(q){q=BEG(q);var w;(w=this.adResolver)==null||w.resolve(q)};
var C0P=function(q,w,u){var y;return _.F(function(e){if(e.nextAddress==1)e=_.H(e,(y=q.playLogger)==null?void 0:ieT(y,iBu(w),u),2);else{var t=e.return;var X=new KG$;X=_.Xo(X,1,2);e=t.call(e,X)}return e})};var OeT=new _.MH("INNERTUBE_MANAGER_TOKEN");var o3G=function(){this.callbacks={}};
o3G.prototype.initialize=function(q){var w=this;this.callbacks=q;window.youtubewebview?window.youtubewebview.onmessage=function(u){VSa(w,u)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(u){VSa(w,u)})};
var VSa=function(q,w){if(w.data)try{var u=VL3(w.data);if(_.Y6(_.sL(u,1))!=null){var y=ZOZ(_.fy(u,2));switch(_.fy(u,1)){case "yt-mini-app-load-audio-state":var e,t;(t=(e=q.callbacks).onAudioStateLoaded)==null||t.call(e,_.OL(y,Ok(y,fG,1)));break;case "yt-mute-mini-app":var X,G;(G=(X=q.callbacks).onMuteMiniApp)==null||G.call(X);break;case "yt-unmute-mini-app":var n,N;(N=(n=q.callbacks).onUnmuteMiniApp)==null||N.call(n);break;case "yt-playable-exit":var Q,I;(I=(Q=q.callbacks).onExit)==null||I.call(Q);
break;case "yt-post-play-nonce":var U,d;(d=(U=q.callbacks).onPostPlayNonceReceived)==null||d.call(U,Jv(y,2,fG));break;case "yt-confirm-exit-mini-app":var V,J;(J=(V=q.callbacks).confirmExitMiniApp)==null||J.call(V);break;case "yt-confirm-exit-mini-app-edu":var a,b;(b=(a=q.callbacks).confirmExitMiniAppEdu)==null||b.call(a);break;case "yt-benchmarking-response":var g,l;(l=(g=q.callbacks).onNativeBenchmarkingMessageReceived)==null||l.call(g,Jv(y,2,fG));break;case "yt-mini-app-load-3p-consent-state":var S,
eH;(eH=(S=q.callbacks).multiplayer3pAckStateLoaded)==null||eH.call(S,_.OL(y,Ok(y,fG,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var x,P4;(P4=(x=q.callbacks).exitMiniAppSeenStateLoaded)==null||P4.call(x,_.OL(y,Ok(y,fG,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var C7,mu;(mu=(C7=q.callbacks).onNavigateToNewMiniApp)==null||mu.call(C7);break;case "yt-game-data-available":var Os,YJ;(YJ=(Os=q.callbacks).onGameDataAvailable)==null||YJ.call(Os,Jv(y,2,fG));break;case "yt-pause-mini-app":var ao,
bc;(bc=(ao=q.callbacks).onPauseMiniApp)==null||bc.call(ao);break;case "yt-resume-mini-app":var Ro,K7;(K7=(Ro=q.callbacks).onResumeMiniApp)==null||K7.call(Ro);break;case "yt-playable-ad-finished":var gx,dx;(dx=(gx=q.callbacks).onAdFinished)==null||dx.call(gx,Jv(y,2,fG))}}else _.Y8(Error("Rh"))}catch(tc){_.vm(Error("Sh"))}else _.Y8(Error("Th"))};var UX4=function(q){this.rpcErrorCode=q};var J9=function(q,w,u){this.intervalMs=q;this.apiFunc=w;this.type=u;this.schedulerReady=!0};
J9.prototype.call=function(q){var w=this,u;return _.F(function(y){if(y.nextAddress==1){if(w.type!==1&&q===w.cachedValue)return y.return();w.pendingApiRequestResolver||(w.pendingApiRequestResolver=new _.Gt);u=w.pendingApiRequestResolver.promise;w.cachedValue=q;return _.H(y,f4T(w),2)}return y.return(u)})};
J9.prototype.flush=function(q){q=q===void 0?!1:q;var w=this;return _.F(function(u){return w.cachedValue===void 0?u.return():_.H(u,w.apiFunc(w.cachedValue,q),0)})};
var f4T=function(q){var w,u,y;return _.F(function(e){switch(e.nextAddress){case 1:if(!q.schedulerReady||!q.pendingApiRequestResolver)return e.return();q.schedulerReady=!1;w=q.pendingApiRequestResolver;q.pendingApiRequestResolver=void 0;_.tD(e,2);if(q.cachedValue===void 0){e.jumpTo(4);break}return _.H(e,q.apiFunc(q.cachedValue),5);case 5:u=e.yieldResult,w.resolve(u);case 4:_.jv(e,3);break;case 2:y=_.nm(e),w.reject(y);case 3:setTimeout(function(){return _.F(function(t){q.schedulerReady=!0;return _.H(t,
f4T(q),0)})},q.intervalMs),_.HI(e)}})};var dXf=window.location.origin+"/miniapp_cloudsaves",TFj=[400,401],mfj=_.Fc("cloud_save_game_data_rate_limit_ms",3E3),zyZ=function(q){var w=this;this.JSC$14648_miniAppId=q;this.loadAttempts=0;this.cloudSaveIntervalMs=mfj;this.initialDownloadDataSucceeded=!1;this.JSC$14648_playNonceResolver=new _.Gt;this.scottyUploadRateLimiter=new J9(this.cloudSaveIntervalMs,function(u,y){return A4P(w,u,y)},2);
this.downloadDataPromise=J4x(this);this.downloadDataPromise.then(function(){w.initialDownloadDataSucceeded=!0}).catch(function(){})},a4F=function(q,w){w.then(function(u){return q.JSC$14648_playNonceResolver.resolve(u)})},Dfj=function(q){return _.F(function(w){return q.cachedData===void 0?w.return(q.downloadDataPromise):w.return(q.cachedData)})},ZeX=function(q,w){return _.F(function(u){q.cachedData=w;
if(!q.initialDownloadDataSucceeded)throw Error("Uh");return _.H(u,q.scottyUploadRateLimiter.call(w),0)})},pq$=function(){return new Promise(function(q){setTimeout(q,1E3,"")})},$fc=function(q,w){var u,y;
return _.F(function(e){if(e.nextAddress==1)return u=q.JSC$14648_miniAppId,_.H(e,Promise.race([q.JSC$14648_playNonceResolver.promise,pq$()]),2);y={"X-YouTube-MiniAppId":u,"X-YouTube-PostPlayNonce":e.yieldResult};"DELEGATED_SESSION_ID"in _.Yw&&DbM(w,y);return e.return(y)})},A4P=function(q,w,u){u=u===void 0?!1:u;
return _.F(function(y){return rCu()?_.T("enable_cloud_save_error_popup_after_retry")?y.return(new Promise(function(e,t){var X,G,n,N,Q;return _.F(function(I){switch(I.nextAddress){case 1:X=0,G=!0,N=n=null;case 2:if(!(G&&X++<2)){I.jumpTo(4);break}_.tD(I,5);return _.H(I,v3c(q,w,u),7);case 7:n=I.yieldResult;G=n.ok?!1:!TFj.includes(n.status);_.jv(I,2);break;case 5:N=Q=_.nm(I);G=CF4(N);I.jumpTo(2);break;case 4:n?n.ok?(zi(q,mfj),e()):(zi(q,q.cloudSaveIntervalMs*2),t(Error("Vh`"+String(n.status),{cause:{rpcErrorCode:n.status}}))):
(zi(q,q.cloudSaveIntervalMs*2),t(N||Error("Wh"))),_.HI(I)}})})):y.return(new Promise(function(e,t){var X,G;
return _.F(function(n){if(n.nextAddress==1){if(q.JSC$14648_miniAppId==="")return t(Error("Xh")),n.return();_.tD(n,2);return _.H(n,v3c(q,w,u),4)}if(n.nextAddress!=2)return X=n.yieldResult,X.ok?(zi(q,mfj),e()):(zi(q,q.cloudSaveIntervalMs*2),t(Error("Vh`"+String(X.status),{cause:{rpcErrorCode:X.status}}))),_.jv(n,0);G=_.nm(n);zi(q,q.cloudSaveIntervalMs*2);t(G);_.HI(n)})})):y.return()})},v3c=function(q,w,u){u=u===void 0?!1:u;
var y,e,t;return _.F(function(X){if(X.nextAddress==1)return y=_.wV((new TextEncoder).encode(w)),e=OBf(),_.H(X,$fc(q,e),2);t=X.yieldResult;return X.return(fetch(e,{method:"POST",body:new Blob([y]),headers:t,keepalive:u}))})},J4x=function(q){var w,u;
return _.F(function(y){if(y.nextAddress==1){if(!rCu())return y.return("");if(q.JSC$14648_miniAppId==="")throw Error("Xh");if(q.loadAttempts>2)return y.return(q.downloadDataPromise);_.tD(y,2);return _.H(y,bex(q),4)}if(y.nextAddress!=2)return w=y.yieldResult,y.return(w);u=_.nm(y);if(CF4(u)&&++q.loadAttempts<2)return y.return(J4x(q));throw u;})},bex=function(q){var w,u,y,e,t;
return _.F(function(X){switch(X.nextAddress){case 1:return _.tD(X,2),w=OBf(),_.H(X,$fc(q,w),4);case 4:return u=X.yieldResult,_.H(X,fetch(w,{method:"GET",headers:u}),5);case 5:return y=X.yieldResult,y.ok?_.H(X,y.text(),6):X.return(Promise.reject(Error("Yh`"+String(y.status),{cause:new UX4(y.status)})));case 6:return e=X.yieldResult,X.return((new TextDecoder).decode(_.sX(e)));case 2:return t=_.nm(X),X.return(Promise.reject(t))}})},zi=function(q,w){q.cloudSaveIntervalMs=w;
q.scottyUploadRateLimiter.intervalMs=q.cloudSaveIntervalMs};
zyZ.prototype.flush=function(){var q=this;return _.F(function(w){return q.initialDownloadDataSucceeded?_.H(w,q.scottyUploadRateLimiter.flush(!0),0):w.return()})};var Yn3=wf(qY(1),B8(1)),g3r=wf(qY(1),B8(3)),aM=function(q){this.callbacks=q};
_.k=aM.prototype;_.k.onAudioToggled=function(q,w){(w===void 0||w)&&_.tm("yt-mini-app-is-audio-enabled",q,2592E3)};
_.k.onPause=function(){this.onAudioToggled(!1,!1)};
_.k.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.k.returnNativeBenchmarkingMessage=function(){};
_.k.sendGameData=function(){};
_.k.sendStartGameFrameCapture=function(){};
var o_l=function(q,w,u){this.callbacks=q;var y=this;this.sdkVersion=new _.Gt;this.channel=new bIH(_.MG({destination:window,iframe:w,origin:(new URL(u.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var e=DF;var t=qY(5);var X=new Prc;X=_.aG(X,1,1E4);t=_.km(t,4,NIF,X);e(y,t);y.onAudioToggled(y.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){y.sdkVersion.resolve("")},1E4)};
_.O(o_l,aM);_.k=o_l.prototype;_.k.onAudioToggled=function(q,w){aM.prototype.onAudioToggled.call(this,q,w===void 0?!0:w);w=DF;var u=qY(2),y=new k3x;q=_.P2(y,1,q);q=_.km(u,3,NIF,q);w(this,q)};
_.k.onPause=function(){aM.prototype.onPause.call(this);DF(this,qY(3))};
_.k.onResume=function(){aM.prototype.onResume.call(this);DF(this,qY(4))};
_.k.returnNativeBenchmarkingMessage=function(q){var w=DF,u=qY(6);var y=B8(_.NG(q,RJ,1)?1:2);q=_.NG(q,RJ,1)?q:null;y=_.km(y,5,x9,q);w(this,wf(u,y))};
_.k.sendGameData=function(q){var w=DF,u=qY(7);q=_.km(u,5,NIF,q);w(this,q)};
_.k.sendStartGameFrameCapture=function(){DF(this,qY(9))};
var ZF=function(q,w,u){var y,e,t;return _.F(function(X){if(X.nextAddress==1)return y=q.callbacks,e=y.onSdkCalled,t=w,_.H(X,q.sdkVersion.promise,2);e.call(y,t,X.yieldResult,u);_.HI(X)})};
o_l.prototype.onMessage=function(){var q=this;return EnJ(eL,function(w){var u,y,e,t,X,G,n,N,Q,I,U,d,V,J,a,b,g,l,S,eH,x,P4,C7,mu,Os,YJ,ao,bc,Ro,K7,gx,dx,tc,Fa,eq,Hk,W3,gV,Fl,C$,ZZ,EA,mj,hc,jR,QF;return _.F(function(lc){switch(lc.nextAddress){case 1:if(!OVP(w.data))return _.Y8(Error("Zh")),lc.return();u=_.mw(w.data,1);_.T("enable_iframe_message_get_type_via_fields")&&(y=w.data,u=e=_.mw(y,1));switch(u){case 8:if(w.data.hasMetadata()){var TG=q.sdkVersion,G4=TG.resolve;var OX=w.data.getMetadata();OX=_.fy(OX,
1);G4.call(TG,OX);clearTimeout(q.sdkVersionTimeoutId)}break;case 6:return lc.jumpTo(2);case 16:if(!_.QN(w.data,iVT,14,kP))return lc.return();t=_.zs(w.data,iVT,14,kP);(G=(X=q.callbacks).onGameFrameReceived)==null||G.call(X,t);return lc.return();case 17:if(!_.QN(w.data,I2k,15,kP))return lc.return();(N=(n=q.callbacks).onGameAudioReceived)==null||N.call(n,_.zs(w.data,I2k,15,kP));return lc.return();case 1:if(TG=_.zs(w.data,G36,2,kP))switch(_.mw(TG,1)){case 1:q.callbacks.onFirstFrameReady();if(_.T("enable_network_request_logging_on_game_events")&&
_.NG(TG,Ms,4)){ZF(q,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.PT(TG,Ms,4));break}ZF(q,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(OX=(G4=q.callbacks).onGameReady)==null||OX.call(G4);if(_.T("enable_network_request_logging_on_game_events")&&_.NG(TG,Ms,4)){ZF(q,"MINI_APP_SDK_API_GAME_READY",_.PT(TG,Ms,4));break}ZF(q,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.QN(TG,KH,3,nDF))q.callbacks.onResourceLoaded(_.zs(TG,KH,3,nDF))}return lc.return();case 3:return lc.jumpTo(3);case 4:return lc.jumpTo(4);
case 2:return lc.jumpTo(5);case 9:return lc.jumpTo(6);case 10:return q.callbacks.onClick(),lc.return();case 5:return lc.jumpTo(7);case 11:if(!_.QN(w.data,jh,9,kP))return lc.return();Q=_.zs(w.data,jh,9,kP);(U=(I=q.callbacks).onBenchmarkingMessageReceived)==null||U.call(I,Q);TG=w.reply;G4=qY(1);OX=B8(1);var ij=new jh;var nA=new Uint8Array(XWM(Q,Ok(Q,qKX,6))|0);ij=iD(ij,5,qKX,_.EX(nA,!1));OX=_.km(OX,5,x9,ij);TG.call(w,wf(G4,OX));return lc.return();case 12:return lc.jumpTo(8);case 13:return lc.jumpTo(9);
case 15:if(!_.T("enable_open_yt_content"))return w.reply(g3r),lc.return();if(!_.QN(w.data,QSP,12,kP))return w.reply(wf(qY(1),B8(2))),lc.return();TG=_.zs(w.data,QSP,12,kP);d=_.fy(TG,1);q.callbacks.onOpenYTContent(d);w.reply(Yn3);return lc.return();case 14:return lc.jumpTo(10);default:return lc.return()}lc.jumpTo(0);break;case 2:if(!_.QN(w.data,uk,5,kP))return lc.return();G4=w.data;TG=Ok(G4,kP,5);G4=G4.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(TG=Jh(G4,G4[_.f$]|0,uk,TG))||(TG=uk[hx])||
(TG=new uk,zG(TG.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),TG=uk[hx]=TG);V=TG;TG=_.wg(V,lG,1,_.uI());J=_.P(TG);a=J.next();case 12:if(a.done){lc.jumpTo(14);break}b=a.value;g=new _.fv;g.level=_.mw(b,2)===1?"WARNING":"ERROR";l=f5c(b.getSource());return _.H(lc,q.sdkVersion.promise,15);case 15:S={source:l,sdkVersion:lc.yieldResult};_.Ch(_.sL(b,6))!=null?(g.message=b.getMessage(),g.stack=_.fy(b,5),S.sdkErrorType=mXy(_.mw(b,6)),_.Ch(_.sL(b,7))!=null&&(S.sdkApi=ACH(_.mw(b,7)))):g.stack=void 0;
x=eH=void 0;(x=(eH=q.callbacks).onError)==null||x.call(eH,{loggingError:g,metadata:S});a=J.next();lc.jumpTo(12);break;case 14:return lc.return();case 3:return _.tD(lc,16),TG=q.callbacks,G4=TG.onSave,OX=_.zs(w.data,ts3,4,kP),OX=_.fy(OX,1),_.H(lc,G4.call(TG,OX),18);case 18:w.reply(Yn3);_.jv(lc,17);break;case 16:return P4=_.nm(lc),C7=YD,mu=P4,Os=q.callbacks,YJ="MINI_APP_SDK_API_SAVE_DATA",_.H(lc,q.sdkVersion.promise,19);case 19:C7(mu,Os,YJ,lc.yieldResult),w.reply(g3r);case 17:return _.H(lc,ZF(q,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return lc.return();case 4:return _.tD(lc,21),_.H(lc,q.callbacks.onLoad(),23);case 23:ao=lc.yieldResult;TG=w.reply;G4=qY(1);OX=B8(1);ij=new ts3;ij=_.sf(ij,1,ao);OX=_.km(OX,3,x9,ij);TG.call(w,wf(G4,OX));_.jv(lc,22);break;case 21:return bc=_.nm(lc),Ro=YD,K7=bc,gx=q.callbacks,dx="MINI_APP_SDK_API_LOAD_DATA",_.H(lc,q.sdkVersion.promise,24);case 24:Ro(K7,gx,dx,lc.yieldResult),w.reply(g3r);case 22:return _.H(lc,ZF(q,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return lc.return();case 5:_.tD(lc,
26);q.callbacks.onSendHighScore($s(_.zs(w.data,CrG,3,kP).getValue()));w.reply(wf(qY(1),B8(1)));_.jv(lc,27);break;case 26:return tc=_.nm(lc),Fa=YD,eq=tc,Hk=q.callbacks,W3="MINI_APP_SDK_API_SEND_SCORE",_.H(lc,q.sdkVersion.promise,28);case 28:Fa(eq,Hk,W3,lc.yieldResult),w.reply(g3r);case 27:return _.H(lc,ZF(q,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return lc.return();case 6:if(!_.QN(w.data,dDG,8,kP)){lc.jumpTo(30);break}TG=_.zs(w.data,dDG,8,kP);TG=_.mw(TG,1);return _.H(lc,ZF(q,ACH(TG)),30);case 30:return lc.return();
case 7:return TG=w.reply,G4=qY(1),OX=B8(1),ij=q.callbacks.getLanguage(),OX=iD(OX,4,x9,bj(ij)),TG.call(w,wf(G4,OX)),_.H(lc,ZF(q,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return lc.return();case 8:if(!_.QN(w.data,TIa,10,kP))return lc.return();gV=_.zs(w.data,TIa,10,kP);Fl=q.callbacks;C$=Fl.onSdkPerformanceUpdate;return _.H(lc,q.sdkVersion.promise,33);case 33:return C$.call(Fl,gV,lc.yieldResult),lc.return();case 9:TG=w.data;G4=Ok(TG,kP,11);if(_.Y6(_.sL(TG,G4))==null)return w.reply(wf(qY(1),B8(2))),
lc.return();ZZ=Jv(w.data,11,kP);q.callbacks.onShareInviteCode(ZZ);w.reply(Yn3);return _.H(lc,ZF(q,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return lc.return();case 10:if(_.QN(w.data,eOx,13,kP)){lc.jumpTo(35);break}return _.H(lc,q.callbacks.onShowMiniAppAd(2),36);case 36:return EA=lc.yieldResult,w.reply(wf(qY(1),W0Z(EA))),_.H(lc,ZF(q,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return lc.return();case 35:TG=_.zs(w.data,eOx,13,kP);a:switch(_.mw(TG,1)){case 1:TG={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:TG={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:TG={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}mj=TG;hc=mj.adType;jR=mj.sdkApi;TG=q.callbacks;G4=TG.onShowMiniAppAd;OX=_.zs(w.data,eOx,13,kP);OX=_.fy(OX,2);return _.H(lc,G4.call(TG,hc,OX||void 0),38);case 38:return QF=lc.yieldResult,w.reply(wf(qY(1),W0Z(QF))),_.H(lc,ZF(q,jR),39);case 39:return lc.return()}})})};
var DF=function(q,w){_.F(function(u){q.channel.send(w);_.HI(u)})},cy=function(q,w,u){this.callbacks=q;
var y=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;q=PE7(w,(new URL(u.toString())).origin);this.gameSnacks=new wLH(q);this.gameSnacks.page.onReady(function(){y.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){y.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var e,t;(t=(e=y.callbacks).onGameReady)==null||t.call(e)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(e,t){try{y.callbacks.onSendHighScore(t)}catch(X){YD(X,y.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(e,t){var X;return _.F(function(G){if(G.nextAddress==1)return _.tD(G,2),_.H(G,y.callbacks.onSave(y.decoder.decode(t)),4);if(G.nextAddress!=2)return _.jv(G,0);X=_.nm(G);YD(X,y.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return G.return()})});
this.gameSnacks.storage.onLoad(function(){var e,t;return _.F(function(X){if(X.nextAddress==1)return _.tD(X,2),_.H(X,y.callbacks.onLoad(),4);if(X.nextAddress!=2)return e=X.yieldResult,X.return(y.encoder.encode(e));t=_.nm(X);YD(t,y.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return X.return(y.encoder.encode(""))})});
this.gameSnacks.init()};
_.O(cy,aM);cy.prototype.onAudioToggled=function(q,w){aM.prototype.onAudioToggled.call(this,q,w===void 0?!0:w);var u;(u=this.gameSnacks)==null||u.audio.update(q)};
cy.prototype.onPause=function(){aM.prototype.onPause.call(this);var q;(q=this.gameSnacks)==null||q.game.pause()};
cy.prototype.onResume=function(){aM.prototype.onResume.call(this);var q;(q=this.gameSnacks)==null||q.game.resume()};var E3$=JCl,Ryc=_.LL(function(q){var w=q.data;var u=q.loadingProgress;q=_.P(_.r4("",void 0,"LYYTdd"));var y=q.next().value,e=q.next().value;q=_.P(_.r4(!1,void 0,"K0waae"));var t=q.next().value,X=q.next().value,G=[],n=function(){return"transform: scaleX("+(_.$C(u)||0)+")"},N=null,Q=function(){var V;
return(V=w()&&N)!=null?V:N=w().showAnniversaryAnimation?6:E3$()};
_.DG(function(){var V;if(w().timeOutMessages&&((V=w().timeOutMessages)==null?0:V.length)){N=null;V=_.P(G);for(var J=V.next();!J.done;J=V.next())clearTimeout(J.value);G.length=0;zTM(w().timeOutMessages,G,e,X)}});
var I=function(){return!!w().persistentErrorMessageTitle},U=function(){return u!==void 0},d=function(){return w().title};
return _.W("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.W("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.W("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.W("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var V,J=(V=w().backgroundImage)==null?void 0:V.sources,a;return(J==null?0:J.length)?"background-image: url("+((a=J[0])==null?void 0:a.url)+")":
""}}),_.W("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.W(_.r,{cond:function(){return!I()},
then:function(){var V={};return _.W("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.W("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.W(_.WR,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+Q()},
data:function(){var J="loading_animation_"+Q();return{animationConfig:{name:J,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+J+".json",loop:!0,autoplay:!0}}}})),_.W("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.W(_.r,{cond:d,
then:function(){return _.W("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},d)}}),_.W("p",{class:_.HR("mini-app-splash-screen-view-model-wiz__timeout-message",(V["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return t()},V)),
"aria-live":"polite"},y),_.W(_.r,{cond:U,then:function(){return _.W("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.W("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:n}))}})))}}),_.W(_.r,{cond:I,
then:function(){return _.W("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.W("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return w().persistentErrorMessageTitle}),_.W(_.r,{cond:function(){return!!w().persistentErrorMessageDescription},
then:function(){return _.W("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return w().persistentErrorMessageDescription})}}))}})))},"Ld");var c4r=new _.MH("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var SnF=eZ;eZ=function(q){function w(u){if(u){var y,e;(y=u.__spec)==null||(e=y.didUnmount)==null||e.call(y);for(y=0;y<u.childNodes.length;y++)w(u.childNodes[y])}}
SnF==null||SnF(q);Vz(function(){for(var u=0;u<q.length;u++)w(q[u])})};var hyc=_.LL(function(q){var w=q.data;var u=q.score;var y=q.formattedScore;var e=q.onScoreChanged;var t=q.isEmbeddedInWebview;var X=_.x8(),G=function(){var d;return _.C(w==null?void 0:(d=w())==null?void 0:d.buttonViewModel,_.oH)},n=function(){var d;
return(u==null?void 0:u())||Number(w==null?void 0:(d=w())==null?void 0:d.lastScore)||0},N=function(){var d;
return(y==null?void 0:y())||((d=G())==null?void 0:d.title)||""},Q,I=1;
if(q=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))q=Number(q),I=isNaN(q)?1:q/100;_.DG(function(){e==null||e(n());var d;var V=_.Zh((d=G())==null?void 0:d.onTap);if(V){d=_.C(V,hSZ);var J,a,b;d=_.C(d==null?void 0:(J=d.panelLoadingStrategy)==null?void 0:(a=J.inlineContent)==null?void 0:(b=a.dialogViewModel)==null?void 0:b.customContent,ctk)}else d=void 0;if(J=d)J.score=N()});
q=_.QS(function(){var d,V,J=w==null?void 0:(d=w())==null?void 0:(V=d.loggingDirectives)==null?void 0:V.trackingParams;J&&_.Xf(_.tG().resolve(_.WY),J);return!1});
_.p4(function(){if(X.value){var d=X.value.querySelector("button"),V=G();d&&V&&a5j(d,V);y1("yt-share-playable-with-high-score",function(){var J=n().toString(),a=w==null?void 0:w().onShareHighScoreCommand,b=w==null?void 0:w().highScoreShareClientParamIdentifier,g=t==null?void 0:t();a&&(g?(b=new ZHG,J=_.sf(b,2,J),br(a,J.JSC$10172_serializeBinary())):b&&(_.tG().resolve(c4r).clientParams.set(b,{miniAppClientParams:{highScore:J}}),NFH(a,!1)))})}});
var U=function(){var d=G();d&&(u==null?0:u())&&d.accessibilityText&&(d.accessibilityText=d.accessibilityText.replace(Q,N()));Q=N();return{numberValue:n(),numberText:N(),heightPx:36,fontSizeMultiplier:I,shouldAnimate:!(u==null||!u())&&!0}};
return _.W("yt-mini-app-score-button-view-model",{class:function(){var d={};return _.s3("mini-app-score-button-view-model-wiz",(d["mini-app-score-button-view-model-wiz--is-visible"]=n()!==0,d))},
el:X,"on:click":q},uO(!1,function(){return _.W("span",{style:"display:none;"},n)}),_.W(_.OF,{data:function(){var d;
return w==null?void 0:(d=w())==null?void 0:d.buttonViewModel}},{buttonViewModel:function(d){return _.W(_.Zs,{data:d.data,
animatedTextProps:U})}}))},"Md");var Kqx=_.LL(function(q){var w,u=(w=_.Pd("yt-mini-app-is-theater-mode-enabled"))!=null?w:!1,y=_.T("enable_playable_container_save_button"),e=_.T("enable_play_next_destination_page_in_toolbar");w={};return _.W("ytm-mini-app-top-bar-view-model",null,_.W("div",{class:_.HR("yt-mini-app-top-bar-view-model",(w["yt-mini-app-top-bar-view-model--mobile"]=!1,w["yt-mini-app-top-bar-view-model--desktop"]=!0,w))},_.W("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.W(_.r,{cond:function(){var t;
return!!q.data().backButtonEdu&&!((t=q.isExitMiniAppSeen)==null?0:t.call(q))},
then:function(){return _.W(_.OF,{data:function(){return q.data().backButtonEdu}},{buttonViewModel:_.Zs})},
else:function(){return _.W(_.OF,{data:function(){return q.data().backButton}},{buttonViewModel:_.Zs})}}),_.W(_.r,{cond:function(){return q.data().viewAllButton&&!0},
then:function(){return _.W(_.OF,{data:function(){return q.data().viewAllButton}},{buttonViewModel:_.Zs})}}),_.W(_.r,{cond:function(){return q.data().title&&!0},
then:function(){return _.W("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return q.data().title})}})),_.W("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.W(_.r,{cond:function(){var t;
return(t=q.isDesktopPlayPage)==null?void 0:t.call(q)},
then:function(){return _.W(_.GS,null,_.W(jLF,{highScoreButton:function(){return q.data().highScoreButton},
score:q.score,formattedScore:q.formattedScore,onScoreChanged:q.onScoreChanged,isEmbeddedInWebview:q.isEmbeddedInWebview}),_.W(l4F,{enableSaveButton:function(){return _.$C(y)},
saveButton:function(){return q.data().saveButton},
isSaved:q.isSaved,onSaveToggled:function(){return q.onSaveToggled}}),_.W(Lq6,{menuButton:function(){return q.data().menuButton}}))},
else:function(){return _.W(_.r,{cond:function(){return!1},
then:function(){return _.W(_.OF,{data:function(){return q.data().playPageButton}},{buttonViewModel:function(t){return _.W(_.Zs,{data:t.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.W(jLF,{highScoreButton:function(){return q.data().highScoreButton},
score:q.score,formattedScore:q.formattedScore,onScoreChanged:q.onScoreChanged,isEmbeddedInWebview:q.isEmbeddedInWebview})}})}})),_.W("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.W(_.OF,{data:function(){return q.data().muteButton}},{toggleButtonViewModel:function(t){var X=t.data;
return _.W(_.fr,{data:function(){var G,n;return Object.assign({},X(),{isToggled:(n=(G=q.isAudioEnabled)==null?void 0:G.call(q))!=null?n:!0})},
onToggle:q.onAudioToggled,useOutlinedIcon:!0})}}),_.W(_.OF,{data:function(){return q.data().theatreModeButton}},{toggleButtonViewModel:function(t){var X=t.data;
return _.W("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.W(_.fr,{data:function(){return Object.assign({},X(),{isToggled:u})},
useOutlinedIcon:!0}))}}),_.W(MS3,{fullscreenButton:function(){return q.data().fullscreenButton}}),_.W(_.r,{cond:function(){return _.$C(e)&&q.data().viewAllButton&&!1},
then:function(){return _.W(_.OF,{data:function(){return q.data().viewAllButton}},{buttonViewModel:_.Zs})}}),_.W(_.r,{cond:function(){var t;
return!((t=q.isDesktopPlayPage)==null?0:t.call(q))},
then:function(){return _.W(_.GS,null,_.W(l4F,{enableSaveButton:function(){return _.$C(y)},
saveButton:function(){return q.data().saveButton},
isSaved:q.isSaved,onSaveToggled:function(){return q.onSaveToggled}}),_.W(Lq6,{menuButton:function(){return q.data().menuButton}}))}}))))},"Nd");
Kqx.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var Lq6=_.LL(function(q){return _.W(_.OF,{data:q.menuButton},{buttonViewModel:_.Zs})},"Od"),l4F=_.LL(function(q){var w=q.enableSaveButton;
var u=q.saveButton;var y=q.isSaved;var e=q.onSaveToggled;return _.W(_.r,{cond:function(){return w()&&!(u==null||!u())},
then:function(){return _.W(_.OF,{data:function(){var t=_.C(u==null?void 0:u(),_.Vo),X;return{toggleButtonViewModel:Object.assign({},t,{isToggled:(X=y==null?void 0:y())!=null?X:!(t==null||!t.isToggled)})}}},{toggleButtonViewModel:function(t){return _.W(_.fr,{data:t.data,
onToggle:e})}})}})},"Pd"),jLF=_.LL(function(q){var w=q.highScoreButton;
var u=q.score;var y=q.formattedScore;var e=q.onScoreChanged;var t=q.isEmbeddedInWebview;return _.W(_.OF,{data:w},{miniAppScoreButtonViewModel:function(X){return _.W(hyc,{data:X.data,score:u,formattedScore:y,onScoreChanged:e,isEmbeddedInWebview:t})}})},"Qd"),MS3=_.LL(function(q){q=q.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.W(_.GS,null):_.W(_.OF,{data:q},{buttonViewModel:_.Zs})},"Rd");_.BUx=new _.MH("DESKTOP_CURRENT_PAGE");var ev$=_.LL(function(q){var w=q.data;var u=_.T("force_active_time_logging_webview"),y=_.T("skip_logs_after_end_event"),e=!1,t=new o3G,X=void 0,G=void 0,n=_.tG().resolve(OeT),N=new Ufk,Q=void 0,I=void 0,U=[],d=void 0,V=void 0,J=!1,a=!1,b=!1,g=!1,l=new _.Gt,S=_.tG().resolve(c4r),eH=_.tG().resolve(_.fc),x=_.tG().resolve(_.kF(F8)),P4,C7=(P4=_.tG().resolve(_.kF(_.BUx)))==null?void 0:P4.getCurrentPage(),mu=!1,Os=0,YJ=function(B4){B4.preventDefault();return B4.returnValue=""},ao;
q=_.P(_.r4(!((ao=_.Pd("yt-mini-app-is-audio-enabled"))!=null&&!ao),void 0,"HPBZTb"));var bc=q.next().value,Ro=q.next().value,K7;ao=_.P(_.r4(!((K7=_.Pd("exit-mini-app-seen-state"))==null||!K7),void 0,"kLuFyc"));var gx=ao.next().value,dx=ao.next().value;K7=_.P(_.r4(!1,void 0,"o1PbLc"));var tc=K7.next().value,Fa=K7.next().value;K7=_.P(_.r4(void 0,void 0,"YlqNme"));var eq=K7.next().value,Hk=K7.next().value;K7=_.P(_.r4(void 0,void 0,"AeYJne"));var W3=K7.next().value,gV=K7.next().value;K7=_.P(_.r4(!0,void 0,
"aEz9qb"));var Fl=K7.next().value,C$=K7.next().value;K7=_.P(_.r4(!1,void 0,"bcquyc"));var ZZ=K7.next().value,EA=K7.next().value;K7=_.P(_.r4(void 0,void 0,"FMAC5b"));var mj=K7.next().value,hc=K7.next().value;K7=_.P(_.r4(0,void 0,"HUGJEb"));var jR=K7.next().value,QF=K7.next().value,lc=_.Bm(),TG=function(){return w().isEmbeddedInWebview},G4=function(){return w().hasPlayNextShelf};
y1("yt-page-type-changed",function(B4){if(_.T("enable_is_mini_app_page_active_bugfix"))B4.detail.newPageSubtype!=="mini_app"&&Fl()&&nA();else if(B4=_.wgf()==="mini_app",B4!==Fl())if(C$(B4),B4){var N6;B4=(N6=w().playableId)==null?void 0:N6.toString();B4!==void 0&&window.location.href.includes(B4)&&!a&&(g=!0,OX(),Pk(HV.value))}else B4||nA()});
y1("yt-action",function(B4){B4.detail.actionName==="yt-engagement-panel-visible-changed"&&B4.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&B4.detail.args[2]==="PAmini_app_panel"&&nA();_.T("enable_is_mini_app_page_active_bugfix")?B4.detail.actionName==="yt-history-load"&&!Fl()&&(C7==null?0:C7.active)?(C$(!0),OX(),Pk(HV.value)):B4.detail.actionName==="yt-history-load"&&Fl()&&!w().isEmbeddedInWebview&&TC():Fl()&&B4.detail.actionName==="yt-history-load"&&(g?g=!1:w().isEmbeddedInWebview||TC())});
_.ZG(function(){ij()});
_.DG(function(){OX()});
var OX=function(){var B4=w().playableId,N6=w().localReleaseId,OA=w().derivedDeviceInterface;if(a)_.Y8(new _.fv("[MiniAppContainerViewModel] onEnter was called more than once"));else{a=!0;X=new P0$(B4,N6,OA,document.visibilityState==="visible");n3T(X);G=new zyZ(B4);xfj(n,B4);TUr(N,{showMiniAppAdCommand:w().showMiniAppAdCommand,isEmbeddedInWebview:w().isEmbeddedInWebview,playLogger:X});rp7()&&(V=document.body.style.backgroundColor,_.zk(document.body,"background-color","black"));pA();I6();l=new _.Gt;
if(w().isEmbeddedInWebview){if(B4=(new URLSearchParams(window.location.search)).get("postPlayNonce"))Fq3(X,B4),mu=!0;t.initialize({onAudioStateLoaded:function(z_){Uq(z_)},
onMuteMiniApp:function(){Uq(!1)},
onUnmuteMiniApp:function(){Uq(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(z_){mu||(Fq3(X,z_),mu=!0)},
confirmExitMiniApp:function(){var z_,EY,th;return _.F(function(c1){if(c1.nextAddress==1)return w().confirmExitMiniAppCommand?_.H(c1,Promise.race([l.promise,Promise.resolve(!1)]),2):c1.return();(z_=c1.yieldResult)?!w().confirmExitMiniAppCommandEdu||(th=(EY=gx)==null?void 0:EY())!=null&&th?vX(w().confirmExitMiniAppCommand):(vX(w().confirmExitMiniAppCommandEdu),_.tm("exit-mini-app-seen-state","true",2592E6)):vX(w().closeMiniAppCommand);_.HI(c1)})},
onNativeBenchmarkingMessageReceived:function(z_){z_=uDP(_.stc(z_));if(_.QN(z_,_.vy,3,xIk)){var EY=_.zs(z_,_.vy,3,xIk),th=QIu();var c1=$s(th.getSeconds())-$s(EY.getSeconds());EY=_.yG(th,2)-_.yG(EY,2);c1<0&&EY>0?(c1+=1,EY-=1E9):c1>0&&EY<0&&(--c1,EY+=1E9);c1=(new RJ).setSeconds(c1);c1=_.Va(c1,2,_.dc(EY),0);_.e9(z_,1,c1)}var i8;(i8=I)==null||i8.returnNativeBenchmarkingMessage(z_)},
multiplayer3pAckStateLoaded:function(z_){TC(z_)},
exitMiniAppSeenStateLoaded:function(z_){w().confirmExitMiniAppCommandEdu&&dx(z_)},
onNavigateToNewMiniApp:function(){vX(w().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(z_){z_=new URLSearchParams(z_);var EY=void 0;z_.has("invite_code")&&(EY=new F03,z_=z_.get("invite_code"),EY=_.sf(EY,1,z_));if(z_=EY){var th;(th=I)==null||th.sendGameData(z_)}},
onPauseMiniApp:function(){e=!0;WT()},
onResumeMiniApp:function(){e=!0;RK()},
onAdFinished:function(z_){N.onAdFinished(z_)}});
w().showMultiplayer3pConsentDialogCommand||l.resolve(!0);vX(w().onContainerReadyCommand)}else Fq3(X),l.resolve(!0);a4F(G,XqT(X));XqT(X).then(function(z_){z_={miniAppPlayData:{postPlayNonce:z_}};var EY,th=(EY=w().loggingDirectives)==null?void 0:EY.trackingParams;th&&_.Qz().stateChanged(th,z_)});
B4=w().showSignInDialogCommand;!rCu()&&B4&&(_.tm("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),vX(B4));w().confirmExitMiniAppCommand&&x&&(B4=WyM(w().confirmExitMiniAppCommand))&&(x.customConfirmationCommand=B4)}},ij=function(){if(!y||a)V&&_.zk(document.body,"background-color",V),J=!1,d&&d.release(),G.flush().catch(function(B4){_.Y8(B4)}),n.flush().catch(function(B4){_.Y8(B4)}),WqP(X),LY(),I=void 0,y&&(a=!1),qar(S)},nA=function(){C$(!1);
ij();Fa(!1);hc(void 0);Hk(void 0);gV(void 0);Os=0;QF(0);y||(a=!1)},WT=function(){var B4;
(B4=I)==null||B4.onPause();d&&d.release();G.flush().catch(function(N6){_.Y8(N6)});
n.flush().catch(function(N6){_.Y8(N6)});
Her(X)},RK=function(){var B4;
(B4=I)==null||B4.onResume();I6();B4=X;B4.isForeground=!0;A9(B4,"PLAY_EVENT_TYPE_PLAY_RESUME")},Uq=function(B4){var N6;
(N6=I)==null||N6.onAudioToggled(B4);Ro(B4)},TC=function(B4){w().showMultiplayer3pConsentDialogCommand&&(w().isEmbeddedInWebview&&B4!==void 0&&l.resolve(B4),!B4&&_.wgf()==="mini_app"&&vX(w().showMultiplayer3pConsentDialogCommand))},R6=function(){var B4,N6,OA,z_;
return _.F(function(EY){if(EY.nextAddress==1){if(y&&!a)return EY.return();!w().isLivestream||w().disableVideoCapture||(B4=I)!=null&&B4.sendStartGameFrameCapture();N6=(new URL(window.location.href)).searchParams;if(N6.has("invite_code")){var th=new F03,c1=N6.get("invite_code");OA=_.sf(th,1,c1);(z_=I)==null||z_.sendGameData(OA)}tc()||(Fa(!0),th=X,th.state!==1?_.Y8(new _.fv("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+kAx[th.state])):(_.nv("mini_app_ids_without_game_ready").includes(th.JSC$14604_miniAppId)&&
(th.gameReady=!0),th.state=2,th.beforeReady=!1,mh(th,"ma_ffr"),A9(th,"PLAY_EVENT_TYPE_PLAY_READY")));return _.H(EY,l.promise,2)}vX(w().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();w().isEmbeddedInWebview||TC();_.HI(EY)})},mT=function(){var B4=X;
B4.gameReady=!0;mh(B4,"ma_gr")},qz=function(B4){var N6;
return _.F(function(OA){if(OA.nextAddress==1)return _.tD(OA,2),_.H(OA,ZeX(G,B4),4);if(OA.nextAddress!=2)return _.jv(OA,0);N6=_.nm(OA);vX(w().showSavingErrorPopupCommand);throw N6;})},M6=function(){var B4,N6;
return _.F(function(OA){if(OA.nextAddress==1)return _.tD(OA,2),_.H(OA,Dfj(G),4);if(OA.nextAddress!=2)return B4=OA.yieldResult,OA.return(B4);N6=_.nm(OA);vX(w().showLoadingErrorDialogCommand);throw N6;})},IR=function(B4){X.logError(B4)},W2=function(B4,N6,OA){NUr(X,B4,N6,OA)},iO=function(B4,N6){I4j(X,B4,N6)},EZ=function(){!u&&w().isEmbeddedInWebview||_.tq();
sLG(X,!0);J||(window.addEventListener("beforeunload",YJ,{capture:!0}),J=!0)},xm=function(B4){var N6,OA,z_,EY,th,c1,i8;
return _.F(function(pT){if(pT.nextAddress==1)return n&&(!Q||Q<B4)&&B4>0?_.H(pT,w7x(n,B4),3):pT.jumpTo(0);N6=pT.yieldResult;OA=_.P(N6);z_=OA.next().value;EY=OA.next().value;th=z_;c1=EY;((i8=th)==null?0:i8.displayString)&&c1&&(Hk(c1),gV(th.displayString));_.HI(pT)})},o2=function(B4){var N6=w().onBenchmarkingMessageReceivedCommand;
if(N6){var OA=QIu();_.km(B4,3,xIk,OA);br(N6,yK6(B4))}},Us=function(B4){var N6=w().onGameFrameReceivedCommand;
if(N6){var OA=new gk3;var z_=new $Bc;var EY=oG(B4,1);z_=_.VR(z_,1,EY);B4=_.fy(B4,2);B4=_.sf(z_,2,B4);OA=_.e9(OA,2,B4);br(N6,R2X(OA))}},p7=function(B4){var N6=w().onGameAudioDataReceivedCommand;
if(N6){var OA=new gk3;var z_=new bO6;B4=_.fy(B4,1);z_=_.sf(z_,1,B4);OA=_.e9(OA,4,z_);br(N6,R2X(OA))}},Es=function(){var B4=new URLSearchParams(window.location.search);
if(w().isEmbeddedInWebview&&B4&&B4.get("override_hl")==="true"&&B4.get("hl"))return B4.get("hl");B4=document.documentElement.lang;return B4!==""?B4:_.YN},NT=function(B4){var N6=w().onShareInviteCodeCommand;
if(N6)if(w().isEmbeddedInWebview){var OA=new ZHG;B4=_.sf(OA,1,B4);br(N6,$s6(B4))}else OA=w().inviteCodeShareClientParamIdentifier,S.clientParams.set(OA,{miniAppClientParams:{inviteCode:B4}}),vX(N6)},k6=function(B4){var N6,OA,z_;
return _.F(function(EY){if(EY.nextAddress==1)return N6=w().onMiniAppOpenYtContentRequested,n&&_.T("enable_open_yt_content")&&N6?_.H(EY,uGG(n,B4),3):EY.jumpTo(0);OA=EY.yieldResult;if(OA==="OK")if(w().isEmbeddedInWebview){var th=new alP;z_=iD(th,2,fG,bj(B4));br(N6,pUF(z_))}else eH.clientData.set("video_id",B4),vX(N6);_.HI(EY)})},ma=function(B4){Os+=_.yG(B4,3);
B4=Math.min(Math.log(1+Os/15E6*9)/Math.log(10),.99);QF(B4);nh(B4)},nh=_.Qs(function(B4){var N6=w().updateLoadingProgressCommand;
if(N6){var OA=new alP;B4=iD(OA,3,fG,_.Fm(B4));br(N6,pUF(B4))}},100),rx=function(B4){return dfT(N,B4)},I6=function(){var B4,N6;
((B4=_.gOo())==null?void 0:(N6=B4.wakeLock)==null?void 0:N6.request)!=null&&_.gOo().wakeLock.request("screen").then(function(OA){d=OA}).catch(function(){})},HV=_.Bm();
_.DG(function(){w().isSupportedCountry&&(rCu()||_.T("enable_sign_in_promo")||!w().showSignInDialogCommand?Pk(HV.value):vX(w().onMiniAppReadyCommand))});
var dV=function(){return _.W("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return tc()?0:-1},
el:HV})},Pk=function(B4,N6){N6=N6===void 0?!1:N6;
var OA=rB();OA&&(N6||OA.toString()!==B4.getAttribute("src"))&&(I=VyH(w().source,{isAudioEnabled:bc,onFirstFrameReady:R6,onGameReady:mT,onSave:qz,onLoad:M6,onError:IR,onSdkCalled:W2,onSdkPerformanceUpdate:iO,onClick:EZ,onSendHighScore:xm,onBenchmarkingMessageReceived:o2,getLanguage:Es,onShareInviteCode:NT,onResourceLoaded:ma,onOpenYTContent:k6,onShowMiniAppAd:rx,onGameFrameReceived:Us,onGameAudioReceived:p7},B4,OA),rL(B4,"load",function(){mh(X,"ma_il");rL(B4,"load",function(){Pk(B4,!0)})}),_.Ja(B4,
OA))},rB=function(){var B4=w().url;
if(B4&&(B4=_.$Z(B4),B4!==null)){if(w().source&&w().source==="MINI_APP_SOURCE_GAMESNACKS")B4=_.wb(B4,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.T("enable_origin_query_parameter_bugfix")){var N6=_.o5(_.xnM(B4.toString()));N6=new URLSearchParams(N6||"");N6.set("origin",window.location.origin);N6=N6.toString();B4=_.G2(B4).toString();B4=_.FE(O7Z.exec(B4)[0]+(N6.trim()?"#"+N6:""))}return B4}},RR=function(){var B4={};
B4=_.HR("yt-mini-app-container-view-model__loading-screen",(B4["yt-mini-app-container-view-model__loading-screen--fade-out"]=tc,B4));var N6=function(){return tc()?1:jR()};
return _.W("div",{class:B4},_.W(_.OF,{data:function(){return w().splashScreen}},{miniAppSplashScreenViewModel:function(OA){return _.W(Ryc,{data:OA.data,
loadingProgress:N6})}}))},pA=function(){U=[];
U.push(_.dL(window,"visibilitychange",function(){b||e&&TG()||(document.visibilityState==="visible"?RK():WT())}));
U.push(_.dL(window,"pagehide",function(){ij()}));
U.push(_.dL(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&lc.value.dispatchEvent(new Event("tap"))},0)}));
U.push(_.dL(lc.value,"pointerdown",function(){sLG(X,!1)},!0));
U.push(_.dL(lc.value,"pause",function(){b=!0;WT()}));
U.push(_.dL(lc.value,"play",function(){b=!1;RK()}));
U.push(_.dL(lc.value,"exit",function(){ij()}));
var B4=navigator.keyboard,N6=B4&&B4.lock;U.push(_.dL(window,OqP,function(){EA(VBF());VBF()?(w().hasPlayNextShelf&&ba("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),oS("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),N6&&B4.lock(["Escape"])):(w().hasPlayNextShelf&&oS("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),ba("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),N6&&B4.unlock())}));
w().showMultiplayer3pConsentDialogCommand&&U.push(_.dL(window,"yt-playables-ack-3p-data-usage",function(){yFk(n)}));
w().confirmExitMiniAppCommandEdu&&U.push(_.dL(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.tm("exit-mini-app-seen-state","true",2592E6)}))},LY=function(){U.forEach(function(B4){UO(B4)});
window.removeEventListener("beforeunload",YJ,{capture:!0})},vX=function(B4){B4&&NFH(B4,w().isEmbeddedInWebview||!1)},oS=function(B4,N6){B4=_.P(lc.value.getElementsByClassName(B4));
for(var OA=B4.next();!OA.done;OA=B4.next())OA.value.classList.add(N6)},ba=function(B4,N6){B4=_.P(lc.value.getElementsByClassName(B4));
for(var OA=B4.next();!OA.done;OA=B4.next())OA.value.classList.remove(N6)};
return function(){var B4={};B4=_.HR("yt-mini-app-container-view-model",(B4["yt-mini-app-container-view-model--desktop"]=!0,B4["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return w().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},B4["yt-mini-app-container-view-model--ios-web-view"]=rp7(),B4["yt-mini-app-container-view-model--no-top-bar"]=function(){return!w().topBar},B4["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return w().hasPlayNextShelf},B4["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return w().hasPlayNextShelf},B4["yt-mini-app-container-view-model--show-peek-below"]=function(){return!ZZ()&&w().hasPlayNextShelf},B4));
var N6={};N6=_.HR("yt-mini-app-container-view-model__content",(N6["yt-mini-app-container-view-model__content--desktop-content"]=!0,N6["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return w().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},N6["yt-mini-app-container-view-model--desktop-play-page"]=function(){return w().hasPlayNextShelf},N6));
return _.W("mini-app-container-view-model",{el:lc},_.W("div",{class:B4},_.W(_.r,{cond:function(){return w().topBar&&!ZZ()},
then:function(){return _.W(_.OF,{data:function(){return w().topBar}},{miniAppTopBarViewModel:function(OA){return _.W(Kqx,{data:OA.data,
isAudioEnabled:bc,onAudioToggled:function(z_){Uq(z_)},
score:eq,formattedScore:W3,onScoreChanged:function(z_){Q=z_},
isEmbeddedInWebview:TG,isSaved:mj,onSaveToggled:function(z_){hc(z_)},
isExitMiniAppSeen:gx,isDesktopPlayPage:G4})}})}}),_.W("div",{class:N6},_.W(_.r,{cond:Fl,
then:function(){return dV()}}),_.W(_.r,{cond:function(){return!w().isEmbeddedInWebview},
then:function(){return RR()}}))))}()},"Sd");
ev$.idomCompat=!0;_.q9(ev$,"mini-app-container-view-model",{props:{data:_.pK}});var kBa=_.LL(function(q){var w=q.data;return _.W("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.W("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.QS(function(){var u=w().onTap;u&&_.bn(u)})},_.W(_.r,{cond:function(){return w().icon},
then:function(u){return _.W(_.U3,{icon:function(){return u().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.W("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return w().title})))},"Td");
kBa.idomCompat=!0;var tG$=_.LL(function(q){var w=_.Bm(),u=_.P(_.r4(void 0,void 0,"kFCJ0c")),y=u.next().value,e=u.next().value;u=_.P(_.r4(void 0,void 0,"PIPgWd"));var t=u.next().value,X=u.next().value;u=_.P(_.r4(void 0,void 0,"rV66ob"));var G=u.next().value,n=u.next().value,N=function(){var b=y();return b!==void 0?Math.abs(b):void 0},Q=function(){var b=N();
return b===void 0||b<=3},I=function(){var b=N();
var g=t(),l=G();b=b!==void 0&&g!==void 0&&l!==void 0?g-l-b:void 0;return b===void 0||b<=3},U=function(b){w.value&&w.value.scrollBy({top:0,
left:(_.Et("HTML_DIR")==="rtl"?-1:1)*b*w.value.clientWidth,behavior:"smooth"})},d=function(){var b;
e((b=w.value)==null?void 0:b.scrollLeft);var g;X((g=w.value)==null?void 0:g.scrollWidth);var l;n((l=w.value)==null?void 0:l.clientWidth)},V=function(){U(-.5)},J=function(){U(.5)};
u=_.QS(function(){d()});
_.DR(function(){d();if(w.value){var b=new ResizeObserver(d);b.observe(w.value);_.ZG(function(){b.disconnect()})}});
var a={};return _.W("yt-sponsorships-scrollable-shelf",{class:_.HR("ytdSponsorshipsScrollableShelfHost",q.className)},_.W("div",{class:_.HR("ytdSponsorshipsScrollableShelfContent",(a.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return q.data().previousButton&&q.data().nextButton&&!Q()&&!I()},a.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return q.data().previousButton&&!Q()&&I()},a.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return q.data().nextButton&&
Q()&&!I()},a)),
el:w,"on:scroll":u},q.children),_.W(_.r,{cond:function(){return!Q()},
then:function(){return _.W(_.OF,{data:function(){return q.data().previousButton}},{buttonViewModel:function(b){return _.W(_.Zs,{data:b.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:V})}})}}),_.W(_.r,{cond:function(){return!I()},
then:function(){return _.W(_.OF,{data:function(){return q.data().nextButton}},{buttonViewModel:function(b){return _.W(_.Zs,{data:b.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:J})}})}}))},"Ud");
tG$.idomCompat=!0;var X7j=_.LL(function(q){var w=q.data;q={};return _.W("yt-sponsorships-hub",{class:_.HR("ytdSponsorshipsHubHost",(q.ytdSponsorshipsHubHostIndented=function(){return w().indented},q))},_.W("div",{class:"ytdSponsorshipsHubHeader"},_.W("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.W("div",{class:"ytdSponsorshipsHubAvatar"},_.W(_.OF,{data:function(){return w().avatar}},{avatarViewModel:_.Vb})),_.W(_.r,{cond:function(){return w().badgeImage},
then:function(u){return _.W("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.W("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.W("div",{class:"ytdSponsorshipsHubBadge"},_.W(_.ln,{data:u,targetWidth:24,targetHeight:24,alt:""}))))}})),_.W("div",{class:"ytdSponsorshipsHubDetails"},_.W("div",{class:"ytdSponsorshipsHubTierName"},function(){return w().tierName}),_.W("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return w().membershipType}),_.W("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return w().membershipDurationOrExpiry})),_.W("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.W(_.OF,{data:function(){return w().manageButton}},{buttonViewModel:function(u){return _.W(_.Zs,{data:u.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.W(_.OF,{data:function(){return w().actionMenuButton}},{buttonViewModel:function(u){return _.W(_.Zs,{data:u.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.W("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return w().perksTitle}),_.W(tG$,{data:function(){return{previousButton:w().previousPerkButton,
nextButton:w().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.W("div",{class:"ytdSponsorshipsHubPerkCards"},_.W(_.OF,{data:function(){return w().perkCards}},{sponsorshipsHubPerkCardViewModel:kBa}),_.W(_.r,{cond:function(){return w().viewAllPerksButton},
then:function(u){return _.W(Pzj,{data:u})}}))))},"Vd");
X7j.idomCompat=!0;var Pzj=_.LL(function(q){var w=q.data;return _.W("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.W(_.OF,{data:function(){return w().button}},{buttonViewModel:_.Zs}),_.W("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.W("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return w().title}),_.W("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return w().subtitle})))},"Wd");
Pzj.idomCompat=!0;_.q9(X7j,"yt-sponsorships-hub",{props:{data:_.pK}});_.FiF=_.LL(function(q){var w=q.data;return _.W("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.rm({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var u;return((u=w().badgeCutoutRadius)!=null?u:14)+"px"}})},_.W("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.W(_.OF,{data:function(){return w().startAvatar}},{avatarViewModel:_.Vb}),_.W(_.OF,{data:function(){return w().endAvatar}},{avatarViewModel:_.Vb})),_.W(_.OF,{data:function(){return w().badge}},{contentPreviewImageViewModel:function(u){return _.W("div",
{class:"ytDualAvatarViewModelBadge"},_.W(_.jj,{data:u.data}))}}))},"Xd");
_.FiF.idomCompat=!0;var nR$=_.LL(function(q){var w=q.data;var u,y=!((u=_.tG().resolve(_.kF(_.Rg)))==null||!u());q=_.oR(function(){var Q,I,U=y?(Q=w().header)==null?void 0:Q.backgroundColorDarkMode:(I=w().header)==null?void 0:I.backgroundColorLightMode;if(U!==void 0)return _.Je(U)},void 0,"UX2G6c");
u=_.oR(function(){var Q,I;return y?(Q=w().header)==null?void 0:Q.backgroundImagePart1Dark:(I=w().header)==null?void 0:I.backgroundImagePart1Light},void 0,"GPAi1d");
var e=_.oR(function(){var Q,I;return y?(Q=w().header)==null?void 0:Q.backgroundImagePart2Dark:(I=w().header)==null?void 0:I.backgroundImagePart2Light},void 0,"nboJld"),t=_.oR(function(){return _.Et("HTML_DIR")==="rtl"},void 0,"LGJceb"),X=_.Bm(),G=!1,n=function(){var Q=X.value;
if(Q&&!G){var I,U=(I=Q.parentElement)==null?void 0:I.parentElement;if(U)for(Q=Q.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),I=0;I<Q.length;++I){var d=Q[I];if(d instanceof HTMLElement){U.scrollTo({top:d.offsetTop+d.clientHeight/2-U.clientHeight/2,behavior:"smooth"});G=!0;break}}}};
_.p4(function(){var Q=X.value;if(Q){var I=new ResizeObserver(n);I.observe(Q);_.ZG(function(){I.disconnect()})}});
var N={};return _.W("yt-sponsorships-perks-list",{el:X,class:_.HR("ytdSponsorshipsPerksListHost",(N.ytdSponsorshipsPerksListHorizontalPadding=function(){return w().horizontalPaddingEnabled},N))},_.W("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.W("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.rm({"background-color":q})},_.W("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.W(_.r,{cond:u,then:function(Q){var I={};return _.W("div",{class:_.HR((I.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=y,I.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!y,I.ytdSponsorshipsPerksListFlipped=t,I))},_.W(_.ln,{data:Q,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.W("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.W(_.r,{cond:e,
then:function(Q){var I={};return _.W("div",{class:_.HR((I.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=y,I.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!y,I.ytdSponsorshipsPerksListFlipped=t,I))},_.W(_.ln,{data:Q,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.W("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.W(_.OF,{data:function(){var Q;
return(Q=w().header)==null?void 0:Q.dualAvatar}},{dualAvatarViewModel:_.FiF})))),_.W("div",{class:"ytdSponsorshipsPerksListBody"},_.W("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return w().title}),_.W(_.r,{cond:function(){return w().perks},
then:function(Q){return _.W(_.mL,{each:Q},function(I,U){var d={};return _.W("div",{class:_.HR("ytdSponsorshipsPerksListPerkContainer",(d.ytdSponsorshipsPerksListSelectedPerk=function(){var V=U(),J=w().selectedPerkIndex;return V===J},d))},_.W(_.r,{cond:function(){return U()>0},
then:function(){return _.W("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.W("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.W(_.r,{cond:function(){return I.icon},
then:function(V){return _.W(_.U3,{icon:function(){return V().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.W("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.W("div",{class:"ytdSponsorshipsPerksListPerkTitle"},I.title),_.W("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.W(_.Lr,{text:I.description})),_.W(_.r,{cond:function(){return I.instructions},
then:function(){var V,J;return _.W("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.W("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(V=I.instructions)==null?void 0:V.title),_.W("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.W(_.Lr,{text:(J=I.instructions)==null?void 0:J.text})))}}))),_.W(_.r,{cond:function(){return I.emoji},
then:function(V){return _.W("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.W(_.mL,{each:function(){return V()}},function(J){return _.W(_.ln,{data:J,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.W(GBG,{data:I}))})}})))},"Yd");
nR$.idomCompat=!0;var GBG=_.LL(function(q){var w=q.data;var u=function(X,G){return X===G},y=function(){var X=w();
X=_.C(X==null?void 0:X.badgesShelf,g9c);return X!==void 0&&X!==null?X:{previousButton:{},nextButton:{}}},e=_.x8(),t=function(){var X=e.value;
if(X){var G=X.parentElement;if(G){X=X.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var n=0;n<X.length;++n){var N=X[n];if(N instanceof HTMLElement){G.scrollTo({left:N.offsetLeft+N.clientWidth/2-G.clientWidth/2,behavior:"instant"});break}}}}};
_.p4(function(){var X=e.value;if(X){var G=new ResizeObserver(t);G.observe(X);_.ZG(function(){G.disconnect()})}});
return _.W("div",null,_.W(_.r,{cond:function(){return w().badges},
then:function(X){return _.W(tG$,{data:y},_.W("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:e},_.W(_.mL,{each:function(){return X()}},function(G,n){var N={},Q={},I={};
return _.W("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.W(_.r,{cond:function(){return n()>0},
then:function(){return _.W("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.W("div",{class:_.HR("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(N.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return u(n(),w().currentBadgeIndex)},N.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!u(n(),w().currentBadgeIndex)},N))},_.W("div",{class:_.HR("ytdSponsorshipsPerksListLoyaltyBadge",(Q.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return u(n(),
w().currentBadgeIndex)},Q.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!u(n(),w().currentBadgeIndex)},Q))},_.W(_.r,{cond:function(){return G.image},
then:function(U){var d={};return _.W("div",{class:_.HR((d.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return u(n(),w().currentBadgeIndex)},d.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!u(n(),w().currentBadgeIndex)},d))},_.W(_.ln,{data:U,
alt:""}))}})),_.W("div",{class:_.HR("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(I.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return u(n(),w().currentBadgeIndex)},I))},G.title)))})))}}))},"Zd");
GBG.idomCompat=!0;_.q9(nR$,"yt-sponsorships-perks-list",{props:{data:_.pK}});_.q9(_.LL(function(q){return _.W("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.W(_.r,{cond:function(){return q.data().image},
then:function(w){return _.W(_.ln,{className:"ytwFantasyEmptyStateViewModelImage",data:w,ariaHidden:!0,alt:""})}}),_.W(_.Lr,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return q.data().title}}),_.W(_.Lr,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return q.data().subtitle}}),_.W(_.OF,{data:function(){return q.data().primaryButton}},{buttonViewModel:function(w){return _.W(_.Zs,{data:w.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"$d"),"ytw-fantasy-empty-state-view-model",{props:{data:_.pK}});var Hsa;var DXJ=_.UF({buttonRenderer:_.pz});_.t2(ZBM);_.XK(ZBM,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var pc=function(){var q=_.Y.apply(this,arguments)||this;q.hideJoinButtonBeforeSubscribed=_.T("hide_join_button_before_subscribed");q.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return q};
_.O(pc,_.Y);_.k=pc.prototype;
_.k.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"}}}};
_.k.updateJoinButtonOverrides=function(){var q,w;(q=_.A(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(w=q.polymerController)==null||w.set("overrides",this.joinButtonOverrides);if(q=_.A(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))q.overrides=this.joinButtonOverrides};
_.k.handleButtonRefreshAction=function(q){if(q=_.C(q,nX6))this.set("data.membershipButton",q.membershipButton),this.notifyPath("data.membershipButton")};
_.k.onYtServiceRequestError=function(q){_.xH(this.hostElement,q.detail.error.message)};
_.k.handleUnsubscribeAction=function(){var q,w,u;((q=this.data)==null?void 0:(w=q.membershipButton)==null?void 0:(u=w.buttonRenderer)==null?void 0:u.style)==="STYLE_PRIMARY"&&_.A(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.x$.Object.defineProperties(pc.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.subscriptionStateEntity)==null||!q.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var q,w=(q=this.data)==null?void 0:q.membershipButton,u;q=(w==null?void 0:w.buttonRenderer)||_.C(w==null?void 0:(u=w.timedAnimationButtonRenderer)==null?void 0:u.buttonRenderer,_.aB);return(q==null?void 0:q.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(q==null?void 0:q.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(q==null?void 0:q.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
pc.prototype.onYtServiceRequestError=pc.prototype.onYtServiceRequestError;pc.prototype.updateJoinButtonOverrides=pc.prototype.updateJoinButtonOverrides;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],pc.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],pc.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.fU),_.h("design:type",Object)],pc.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],pc.prototype,"data",void 0);_.c([_.Z("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.h("design:type",Object),_.h("design:paramtypes",[])],pc.prototype,"hideJoin",null);_.c([_.v(),_.h("design:type",String)],pc.prototype,"subscribeKey",void 0);_.c([_.v({selectorArgs:["subscribeKey"],selector:sks}),_.h("design:type",Object)],pc.prototype,"subscriptionStateEntity",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],pc.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.c([_.Z("subscriptionStateEntity"),_.v({reflectToAttribute:!0}),_.h("design:type",Object),_.h("design:paramtypes",[])],pc.prototype,"subscribed",null);_.c([_.Z("subscribed","data.membershipButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],pc.prototype,"joinButtonOverrides",null);
_.c([_.nL("joinButtonOverrides"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pc.prototype,"updateJoinButtonOverrides",null);_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],pc.prototype,"onYtServiceRequestError",null);pc=_.c([_.E({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],pc);
var Wik=_.eD()(pc,"ytd-video-owner-renderer",function(){if(Hsa===void 0){var q=document.createElement("template");_.f(q,'\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]]" 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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);Hsa=q}q=Hsa;return q},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.q9(_.LL(function(q){var w=q.data;var u;q=_.P(_.r4(!((u=_.Pd("yt-mini-app-is-theater-mode-enabled"))==null||!u),void 0,"IXxLcc"));var y=q.next().value,e=q.next().value,t;u=(t=_.tG().resolve(_.kF(b8G)))!=null?t:function(){return _.W("div",null)};
_.Kn("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){e(!0);_.tm("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.Kn("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){e(!1);_.tm("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
t={};q={};var X={};return _.W("mini-app-play-page-renderer",{class:_.HR("miniAppPlayPageRendererHost",(t.miniAppPlayPageRendererHostDetailsView=function(){return!y()},t))},_.W("div",{class:_.HR("miniAppPlayPageRendererGameContainer",(q.miniAppPlayPageRendererGameContainerDetailsView=function(){return!y()},q))},_.W(_.OF,{data:function(){return w().containerViewModel}},{miniAppContainerViewModel:ev$}),_.W(_.OF,{data:function(){return w().channel}},{videoOwnerRenderer:function(G){return _.W("div",{class:"miniAppPlayPageRendererVideoOwnerRenderer"},
_.W(Wik,{data:G.data}))}}),_.W(_.r,{cond:function(){return!y()&&w().description},
then:function(){return _.W("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.W("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return w().description}))}})),_.W("div",{class:_.HR("miniAppPlayPageRendererPlayNextContainer",(X.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!y()},X))},_.W(_.OF,{data:function(){return w().sectionList}},{sectionListRenderer:u})))},"ae"),"mini-app-play-page-renderer",{props:{data:_.pK}});var $x=function(){var q=_.Y.apply(this,arguments)||this;q.isSearch=!1;q.isConstrainedList=!1;q.hasChipsBar=!1;q.inReplyPanel=!1;q.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"}};q.monitorScroll=!0;q.SCROLL_ANIMATION_DURATION_MS=300;q.nextContinuation={continuationType:"sectionListContinuation"};return q};
_.O($x,_.Y);_.k=$x.prototype;
_.k.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(q){switch(q.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",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},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.T("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.T("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.k.created=function(){var q=this;this.JSC$14742_scrollAnimation=new _.Vj(function(w){q.hostElement.scrollTop=w})};
_.k.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.k.getItemsPath=function(){return"data.contents"};
_.k.replacePrimaryContent=function(q){this.set("data.contents",q)};
_.k.computeHasSortFilter=function(q){return!!q&&!!q.sortFilterSubMenuRenderer};
_.k.computeShouldScrollInPanel=function(q){var w;return!!(q==null?0:(w=q.scrollPaneStyle)==null?0:w.scrollable)};
_.k.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.ef(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.k.scrollToTop=function(){this.hostElement.scrollTop=0};
_.k.scrollToItemSection=function(q){if(q=this.getItemByIdentifier(q))q=this.getScrollPositionForItem(q),this.hostElement.scrollTop!==q&&this.JSC$14742_scrollAnimation.start(this.hostElement.scrollTop,q,this.SCROLL_ANIMATION_DURATION_MS)};
_.k.getItemByIdentifier=function(q){var w=this.contents.querySelectorAll("ytd-item-section-renderer");if(w&&w.length!==0){var u=Array.from(w).findIndex(function(y){return y.sectionIdentifier===q});
return w[u===-1?0:u]}};
_.k.getScrollPositionForItem=function(q){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===q)return 0;q=_.Jw(q).y+this.hostElement.scrollTop-_.Jw(this.hostElement).y;return Math.min(q,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.x$.Object.defineProperties($x.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.targetId)==="browse-feedFEclips"}}});
$x.prototype.onScroll=$x.prototype.onScroll;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],$x.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],$x.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.LU.YtLazyListBehavior),_.h("design:type",Object)],$x.prototype,"ytLazyListBehavior",void 0);_.c([_.D(_.zE.YtNextContinuationBehavior),_.h("design:type",Object)],$x.prototype,"ytNextContinuationBehavior",void 0);
_.c([_.D(_.qnc),_.h("design:type",Object)],$x.prototype,"ytBooleanLogicBehavior",void 0);_.c([_.D(_.JR),_.h("design:type",Object)],$x.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],$x.prototype,"data",void 0);_.c([_.v({value:2}),_.h("design:type",Number)],$x.prototype,"initialCount",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],$x.prototype,"autoFill",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.h("design:type",Boolean)],$x.prototype,"hasSortFilter",void 0);_.c([_.v({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.h("design:type",Boolean)],$x.prototype,"hideBottomSeparator",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.h("design:type",Boolean)],$x.prototype,"shouldScrollInPanel",void 0);
_.c([_.v(),_.h("design:type",Object)],$x.prototype,"isSearch",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],$x.prototype,"isConstrainedList",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],$x.prototype,"responsiveSizing",void 0);_.c([_.v(),_.h("design:type",Object)],$x.prototype,"hasChipsBar",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],$x.prototype,"pageSubtype",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],$x.prototype,"engagementPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],$x.prototype,"liveChatEngagementPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],$x.prototype,"inReplyPanel",void 0);_.c([_.Wj("#action-button"),_.h("design:type",HTMLElement)],$x.prototype,"actionButton",void 0);_.c([_.v(),_.h("design:type",Object)],$x.prototype,"scrollUpButtonData",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],$x.prototype,"engagementPanelDropdown",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],$x.prototype,"engagementPanelDialog",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],$x.prototype,"isClipList",null);_.c([_.Wj("#contents"),_.h("design:type",HTMLElement)],$x.prototype,"monitorScrollElement",void 0);_.c([_.Wj("#contents"),_.h("design:type",HTMLElement)],$x.prototype,"contents",void 0);
_.c([_.Gm("scroll"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$x.prototype,"onScroll",null);$x=_.c([_.E({is:"ytd-section-list-renderer",disableElementRegistration:!0})],$x);
var s_T=_.eD()($x,"ytd-section-list-renderer",function(){if(v7r===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);v7r=q}q=v7r;return q},{mode:1});var Nzx;var Q_Z;var Ip6;var isk;var vx=function(){return _.Y.apply(this,arguments)||this};
_.O(vx,_.Y);vx.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
vx.prototype.onLikeButtonClick=function(q){q.stopPropagation();q.preventDefault()};
_.x$.Object.defineProperties(vx.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)!=null&&q.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)})}}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],vx.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],vx.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],vx.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],vx.prototype,"ytRendererStamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],vx.prototype,"data",void 0);
_.c([_.v({selectorArgs:["data.likeStatusEntityKey"],selector:DK}),_.h("design:type",Object)],vx.prototype,"likeStatusEntity",void 0);_.c([_.Z("data","likeStatusEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],vx.prototype,"likeButtonRenderer",null);vx=_.c([_.E({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],vx);
_.R(vx,"ytd-slim-metadata-toggle-button-renderer",function(){if(isk!==void 0)return isk;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);
return isk=q},{mode:1});var bm=function(){var q=_.Y.apply(this,arguments)||this;q.minimizePipBreakages=_.T("web_pip_minimize_breakages");q.showEqualizer=_.T("web_enable_playlist_video_lockup_equalizer");q.watchColorUpdate=_.T("kevlar_watch_color_update");q.actionMap={};return q};
_.O(bm,_.Y);_.k=bm.prototype;_.k.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"}}}};
_.k.computeEditableClass=function(q){return q&&q.menu?"editable":""};
_.k.computeSelected=function(q){return!(q==null||!q.selected)};
_.k.computeUseColorPalette=function(q){return!!((q==null?0:q.lightColorPalette)&&(q==null?0:q.darkColorPalette))};
_.k.computeLargerPlaylistThumbs=function(q,w){return _.T("web_enable_playlist_bigger_thumbnails")&&!w};
_.k.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.k.onYtServiceRequestSent=function(q,w){w.endpoint&&this.isHideEnclosingAction(w.endpoint)&&!this.selected&&FlP(_.$u(),this.data.videoId)};
_.k.isHideEnclosingAction=function(q){var w=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",q);q=this.get("likeEndpoint.status",q)==="INDIFFERENT";return w||q};
_.k.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.k.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.x$.Object.defineProperties(bm.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.T("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 q;return!!(this.withinMiniplayer&&((q=this.data)==null?0:q.actionButtons))}}});
bm.prototype.onYtServiceRequestSent=bm.prototype.onYtServiceRequestSent;bm.prototype.canReorderChanged=bm.prototype.canReorderChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],bm.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],bm.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],bm.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.$p),_.h("design:type",Object)],bm.prototype,"ytdLockupBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],bm.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],bm.prototype,"withinMiniplayer",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],bm.prototype,"minimizePipBreakages",void 0);_.c([_.v({computed:"computeSelected(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],bm.prototype,"selected",void 0);
_.c([_.v({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],bm.prototype,"useColorPalette",void 0);_.c([_.v({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.h("design:type",Boolean)],bm.prototype,"largerPlaylistThumbs",void 0);_.c([_.v(),_.h("design:type",Object)],bm.prototype,"showEqualizer",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],bm.prototype,"canReorder",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],bm.prototype,"touchPersistentDragHandle",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],bm.prototype,"handleIsHovered",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],bm.prototype,"watchColorUpdate",void 0);_.c([_.v(),_.h("design:type",String),_.h("design:paramtypes",[])],bm.prototype,"reorderIcon",null);
_.c([_.Z("largerPlaylistThumbs"),_.h("design:type",Number),_.h("design:paramtypes",[])],bm.prototype,"thumbnailWidth",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],bm.prototype,"showActionButtons",null);_.c([_.I9("canReorder"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bm.prototype,"canReorderChanged",null);
_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],bm.prototype,"onYtServiceRequestSent",null);bm=_.c([_.E({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],bm);
_.R(bm,"ytd-playlist-panel-video-renderer",function(){if(Ip6!==void 0)return Ip6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Ip6=q},{mode:2});var Yx=function(){return _.Y.apply(this,arguments)||this};
_.O(Yx,_.Y);Yx.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Yx.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Yx.prototype,"data",void 0);Yx=_.c([_.E({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],Yx);
_.R(Yx,"ytd-playlist-panel-supported-items",function(){if(Q_Z!==void 0)return Q_Z;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Q_Z=
q},{mode:1});oNT=!0;EB6("\\P{N}");var pZs;var rF$=_.ID("END_OF_PLAYLIST",void 0,"End of playlist"),UgT=_.ID("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),g3=function(){var q=_.Y.apply(this,arguments)||this;q.minimizePipBreakages=_.T("web_pip_minimize_breakages");q.updatedCoursePanel=_.T("move_three_dot_menu_to_playlist_panel_header_for_courses");q.reducedPlaylistHeight=_.T("web_playlist_mini_playlist_height");q.hideHeaderText=!1;q.useColorPalette=!1;q.collapsed=!1;q.collapsedPreServerOverride="not_tracked";
q.isHovered=!1;q.modernPanels=_.T("kevlar_watch_modern_panels");q.expandLabel=_.ID("MINIPLAYER_EXPAND_LABEL");q.collapseLabel=_.ID("MINIPLAYER_COLLAPSE_LABEL");q.isFloating=!1;q.metaPanel=!1;q.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};q.currentIndex=void 0;return q};
_.O(g3,_.Y);_.k=g3.prototype;
_.k.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"}}}};
_.k.created=function(){this.scrollThrottle=new _.MI(this.onThrottledScroll,1E3,this)};
_.k.onMouseEnter=function(){this.isHovered=!0};
_.k.onMouseLeave=function(){this.isHovered=!1};
_.k.computeOverflowMenuData=function(q){return q&&q.menu?q.menu:null};
_.k.computeCollapsible=function(q){return!q};
_.k.computeHasPlaylistButtons=function(q){return!(!q||!q.playlistButtons)};
_.k.computeHasSeparateSaveButton=function(q){return!(!q||!q.saveButton)};
_.k.computeHasToolbarButton=function(q,w){return!(!q||!(w||q.saveButton||q.menu))};
_.k.computePlaylistType=function(q){if(q&&q.playlistId)return q.playlistId.substring(0,4)};
_.k.computeCanReorder=function(q){return q?q.playlistId&&q.playlistId.startsWith("TLPQ")?!0:!!q.isEditable&&!q.isInfinite:!1};
_.k.attached=function(){var q=this;try{_.tG().resolve(_.z5).setPlaylistComponent(this.hostElement)}catch(w){if(_.T("kevlar_park_on_playlist_token_killswitch"))throw w;_.DU().parkOrScheduleJob(function(){_.tG().resolve(_.z5).setPlaylistComponent(q.hostElement)},2,"ci")}_.eB(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.k.detached=function(){_.k1(this.hostElement)};
_.k.computeTrailingIcon=function(q,w,u){return u?w?"yt-icons:collapse":"yt-icons:close":w?"yt-icons:expand":_.T("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.k.computeIndexMessage=function(q,w){return bBc(q+1)+" / "+bBc(w)};
_.k.onRenderStamperFinished=function(){if(this.scrollForStampDom){var q=!0;this.isHovered&&(q=!1);if(this.collapsed||this.hidden)q=!1;q&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.k.collapseChanged=function(){var q=this;this.collapsed||(_.dE(this.ytTaskEmitterBehavior.getTaskManager(),function(){q.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.k.hiddenChanged=function(){var q=this;this.hidden||_.dE(this.ytTaskEmitterBehavior.getTaskManager(),function(){q.scrollToCurrentVideo()})};
_.k.setupReordering=function(){var q=_.A(this.hostElement).querySelector("#items");Jik?_.Ib$(this.ytReorderableBehavior,q,q,"playlist-drag-handle"):_.Ib$(this.ytReorderableBehavior,q,q)};
_.k.scrollToCurrentVideo=function(){var q=this;_.pi.addJob(function(){var w=_.A(q.hostElement).querySelector("#items");if(w){w.style.setProperty("padding-bottom","");var u=_.A(q.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(u){w=u.parentElement||_.Tk(document);var y=w||_.Tk(document);var e=_.Jw(u),t=_.Jw(y),X=_.NxP(y);if(y==_.Tk(document)){var G=e.x-y.scrollLeft;e=e.y-y.scrollTop}else G=e.x-t.x-X.left,e=e.y-t.y-X.top;u=nTX(u);t=y.clientHeight-
u.height;X=y.scrollLeft;var n=y.scrollTop;X+=G-(y.clientWidth-u.width)/2;y=new _.Vx(X,n+(e-t/2));w.scrollLeft=y.x;w.scrollTop=y.y}}},8)};
_.k.dataChanged=function(){var q=this;_.Q0j(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.KJ(this,function(){_.mg(q.ytTaskEmitterBehavior.getTaskManager(),function(){q.ytRendererBehavior.markDirty();q.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.k.updateNowPlayingOverlay=function(){_.T("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.k.onPlaylistLockupNowPlaying=function(q,w){w&&(this.activeNowPlayingRenderer=w);this.updateNowPlayingOverlay()};
_.k.onScroll=function(){this.scrollThrottle.fire()};
_.k.onThrottledScroll=function(){var q=this;_.mg(this.ytTaskEmitterBehavior.getTaskManager(),function(){q.ytRendererBehavior.markDirty()})};
_.k.onToggleExpanded=function(q){this.collapsible&&_.he(q).tagName!=="A"&&!_.LT(_.SQ(q),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.k.setCollapsed=function(q){this.collapsible&&(this.collapsed=q,_.X4(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.k.handleCollapsedFromData=function(q){if(q){var w=q.playlistPanelCollapseState;w==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||w==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),w=w==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==w&&this.setCollapsed(w)):this.currentPlaylistId!==q.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(w=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==w&&this.setCollapsed(w),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=q.playlistId}};
_.k.handleDrop=function(q){var w=q.currDragItem;q=w.data.playlistSetVideoId;var u=_.c4(w.parentNode.childNodes,w),y=void 0;u>0&&(y=w.parentNode.childNodes[u-1].data.playlistSetVideoId);w=_.$u();if(w.responsePlaylistData&&w.responsePlaylistData.contents){var e=lUj(q,w.responsePlaylistData);w.responsePlaylistData=(0,_.db.unsafeClone)(w.responsePlaylistData);dM7(w.responsePlaylistData.contents,e,u);w.queueProxy?bUr(w.queueProxy,e,u,q,y):w.playlistProxy&&bUr(w.playlistProxy,e,u,q,y);_.vh(w,_.bs(w,w.response?
w.response.autoplayRenderer:void 0))}};
_.k.handleDarkModeChange=function(q){q!==this.isDarkTheme&&(this.isDarkTheme=q)};
_.k.colorPaletteChanged=function(){var q,w=((q=this.data)==null?void 0:q.contents)||[],u;q=_.P(w);for(w=q.next();!w.done;w=q.next()){w=w.value;var y=void 0;if((y=w.playlistPanelVideoRenderer)==null?0:y.selected){q=w.playlistPanelVideoRenderer;y=w=void 0;(u=this.isDarkTheme?(w=q)==null?void 0:w.darkColorPalette:(y=q)==null?void 0:y.lightColorPalette)&&_.ms(this.hostElement,u);break}}this.useColorPalette=!!u};
_.x$.Object.defineProperties(g3.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var q,w;return!((q=this.data)==null||!q.playlistId)&&!((w=this.data)==null||!w.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var q=_.tG().resolve(_.kF(_.z5)),w;if(((w=this.data)==null?0:w.contents)&&(q==null?0:q.hasAutoplayData())){var u;if(((u=this.playlistLoopStateEntity)==null?void 0:u.state)==="PLAYLIST_LOOP_STATE_ONE"){if(q=this.data.currentIndex,q!==void 0){var y,e;var t=(y=this.data.contents[q])==null?void 0:(e=y.playlistPanelVideoRenderer)==null?void 0:e.title}}else{var X,G=(X=_.C(q.getAutoplayEndpoint(),_.LN))==null?void 0:X.videoId,n,N;t=(n=this.data.contents.find(function(Q){var I;
return((I=Q.playlistPanelVideoRenderer)==null?void 0:I.videoId)===G}))==null?void 0:(N=n.playlistPanelVideoRenderer)==null?void 0:N.title}return t}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)!=null&&q.nextVideoLabel?this.nextVideoTitle?_.lA(this.data.nextVideoLabel)+":":rF$:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var q;if(((q=this.data)==null?0:q.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.jN(UgT);var w;return(w=this.data)==null?void 0:w.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var q,w,u,y=(q=this.data)==null?void 0:(w=q.playlistButtons)==null?void 0:(u=w.menuRenderer)==null?void 0:u.topLevelButtons;if(y)for(q=_.P(y),w=q.next();!w.done;w=q.next())if(w=w.value,w.playlistLoopButtonRenderer)return w.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var q;return!!(this.collapsed&&((q=this.data)==null?0:q.nextVideoLabel))}}});
g3.prototype.colorPaletteChanged=g3.prototype.colorPaletteChanged;g3.prototype.onPlaylistLockupNowPlaying=g3.prototype.onPlaylistLockupNowPlaying;g3.prototype.updateNowPlayingOverlay=g3.prototype.updateNowPlayingOverlay;g3.prototype.dataChanged=g3.prototype.dataChanged;g3.prototype.hiddenChanged=g3.prototype.hiddenChanged;g3.prototype.collapseChanged=g3.prototype.collapseChanged;g3.prototype.onRenderStamperFinished=g3.prototype.onRenderStamperFinished;g3.prototype.onMouseLeave=g3.prototype.onMouseLeave;
g3.prototype.onMouseEnter=g3.prototype.onMouseEnter;_.c([_.D(_.mF),_.h("design:type",Object)],g3.prototype,"ironResizableBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],g3.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],g3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(s0x.YtPlaylistPanelBehavior),_.h("design:type",Object)],g3.prototype,"ytPlaylistPanelBehavior",void 0);
_.c([_.D(_.gd.YtTaskEmitterBehavior),_.h("design:type",Object)],g3.prototype,"ytTaskEmitterBehavior",void 0);_.c([_.D(_.iPj),_.h("design:type",Object)],g3.prototype,"ytReorderableBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],g3.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],g3.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],g3.prototype,"actionHandlerBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],g3.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],g3.prototype,"autoplayData",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],g3.prototype,"withinMiniplayer",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],g3.prototype,"minimizePipBreakages",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],g3.prototype,"updatedCoursePanel",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],g3.prototype,"reducedPlaylistHeight",void 0);_.c([_.v({computed:"setMenuData_(data)"}),_.h("design:type",Object)],g3.prototype,"menuRendererData",void 0);_.c([_.v({computed:"computeOverflowMenuData(data)"}),_.h("design:type",Object)],g3.prototype,"overflowMenuDataTopRow",void 0);_.c([_.v({computed:"computeOverflowMenuData(data)"}),_.h("design:type",Object)],g3.prototype,"overflowMenuData",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],g3.prototype,"hideHeaderText",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],g3.prototype,"useColorPalette",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.h("design:type",Boolean)],g3.prototype,"collapsible",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],g3.prototype,"collapsed",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],g3.prototype,"hidden",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.h("design:type",Boolean)],g3.prototype,"hasPlaylistButtons",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.h("design:type",Boolean)],g3.prototype,"hasSeparateSaveButton",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.h("design:type",Boolean)],g3.prototype,"hasToolbar",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.h("design:type",String)],g3.prototype,"playlistType",void 0);_.c([_.v(),_.h("design:type",Object)],g3.prototype,"isHovered",void 0);_.c([_.v({selectorArgs:["playlistLoopStateEntityKey"],selector:_.UeM}),_.h("design:type",Object)],g3.prototype,"playlistLoopStateEntity",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],g3.prototype,"modernPanels",void 0);_.c([_.v({value:56}),_.h("design:type",Number)],g3.prototype,"scrollMargin",void 0);_.c([_.v({computed:"computeCanReorder(data)"}),_.h("design:type",Boolean)],g3.prototype,"canReorder",void 0);_.c([_.v(),_.h("design:type",Object)],g3.prototype,"expandLabel",void 0);_.c([_.v(),_.h("design:type",Object)],g3.prototype,"collapseLabel",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],g3.prototype,"isFloating",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],g3.prototype,"metaPanel",void 0);_.c([_.v({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.h("design:type",String)],g3.prototype,"trailingIcon",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],g3.prototype,"isDarkTheme",void 0);
_.c([_.v({selector:_.DV}),_.h("design:type",Boolean)],g3.prototype,"miniplayerIsActive",void 0);_.c([_.v({selector:function(q){return q.watch.playerState}}),
_.h("design:type",Number)],g3.prototype,"playerState",void 0);_.c([_.v(),_.h("design:type",Object)],g3.prototype,"activeNowPlayingRenderer",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],g3.prototype,"moveThreeDotMenuToTopRow",null);_.c([_.Z("data","autoplayData","playlistLoopStateEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],g3.prototype,"nextVideoTitle",null);
_.c([_.Z("data","nextVideoTitle"),_.h("design:type",String),_.h("design:paramtypes",[])],g3.prototype,"nextVideoLabel",null);_.c([_.Z("collapsed"),_.h("design:type",String),_.h("design:paramtypes",[])],g3.prototype,"buttonAriaLabel",null);_.c([_.Z("data","playlistId","longBylineText"),_.h("design:type",Object),_.h("design:paramtypes",[])],g3.prototype,"mixLongByLine",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],g3.prototype,"playlistLoopStateEntityKey",null);
_.c([_.Gm("mouseenter"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g3.prototype,"onMouseEnter",null);_.c([_.Gm("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g3.prototype,"onMouseLeave",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data","collapsed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],g3.prototype,"showNextVideoHeader",null);
_.c([_.Gm("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g3.prototype,"onRenderStamperFinished",null);_.c([_.nL("collapsed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g3.prototype,"collapseChanged",null);_.c([_.nL("hidden"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g3.prototype,"hiddenChanged",null);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g3.prototype,"dataChanged",null);_.c([_.nL("playerState","miniplayerIsActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g3.prototype,"updateNowPlayingOverlay",null);_.c([_.Gm("yt-playlist-lockup-now-playing-active"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],g3.prototype,"onPlaylistLockupNowPlaying",null);
_.c([_.nL("data","isDarkTheme"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g3.prototype,"colorPaletteChanged",null);g3=_.c([_.E({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],g3);
_.Tzx=_.eD()(g3,"ytd-playlist-panel-renderer",function(){if(Nzx===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);Nzx=q}q=Nzx;return q},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var Czk;var E0=function(){var q=_.Y.apply(this,arguments)||this;q.modern=_.T("web_button_rework");return q};
_.O(E0,_.Y);E0.prototype.computeShouldButtonBeVertical=function(q,w){return q||w};
E0.prototype.onYtServiceRequestSent=function(q,w){(q=_.C(w.endpoint,_.Ss))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.IH("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:q.status})):this.handleLikeEndpoint(q))};
E0.prototype.computelikeStatusEntityKey=function(q){return q==null?void 0:q.likeStatusEntityKey};
E0.prototype.handleLikeEndpoint=function(q){q.status==="LIKE"?this.JSC$14767_ytdDislikeToggleButtonRenderer.toggle(!1):q.status==="DISLIKE"?this.JSC$14767_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14767_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14767_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.x$.Object.defineProperties(E0.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var q;return RTl(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(q=this.likeStatusEntity)==null?void 0:q.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var q;if(this.data&&((q=this.data)==null||!q.hideDislikeButton)){var w;return RTl(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(w=this.likeStatusEntity)==null?void 0:w.likeStatus)}}}});
E0.prototype.onYtServiceRequestSent=E0.prototype.onYtServiceRequestSent;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],E0.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],E0.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],E0.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],E0.prototype,"vertical",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],E0.prototype,"textTransform",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],E0.prototype,"useShortsIcon",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],E0.prototype,"underIconLabel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],E0.prototype,"modern",void 0);_.c([_.v({value:"left"}),_.h("design:type",String)],E0.prototype,"buttonTooltipPosition",void 0);
_.c([_.v(),_.h("design:type",Object)],E0.prototype,"overrides",void 0);_.c([_.Wj("#like-button"),_.h("design:type",Object)],E0.prototype,"JSC$14767_ytdLikeToggleButtonRenderer",void 0);_.c([_.Wj("#dislike-button"),_.h("design:type",Object)],E0.prototype,"JSC$14767_ytdDislikeToggleButtonRenderer",void 0);_.c([_.Z("data","likeStatusEntity.likeStatus"),_.h("design:type",Object),_.h("design:paramtypes",[])],E0.prototype,"likeButton",null);
_.c([_.Z("data","likeStatusEntity.likeStatus"),_.h("design:type",Object),_.h("design:paramtypes",[])],E0.prototype,"dislikeButton",null);_.c([_.v({computed:"computelikeStatusEntityKey(data)"}),_.h("design:type",String)],E0.prototype,"likeStatusEntityKey",void 0);_.c([_.v({selectorArgs:["likeStatusEntityKey"],selector:DK}),_.h("design:type",Object)],E0.prototype,"likeStatusEntity",void 0);
_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],E0.prototype,"onYtServiceRequestSent",null);E0=_.c([_.E({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],E0);
var dgX=_.eD()(E0,"ytd-like-button-renderer",function(){if(Czk===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);Czk=q}q=Czk;return q},{mode:1});_.Osc={};
_.Osc.YtConditionalRendererBehavior=[_.B.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(q,w){var u=this,y,e;return _.F(function(t){switch(t.nextAddress){case 1:if(!w)return u.hidden=!0,u.showSpinner=!1,t.return();if((y=q)==null?0:(e=y.visibilityCondition)==null?0:e.mode)switch(q.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return t.jumpTo(5);default:return t.jumpTo(6)}u.showSpinner=
!1;u.hidden=!0;return _.H(t,u.shouldShow_(q),4);case 4:u.hidden=!t.yieldResult;t.jumpTo(0);break;case 5:return _.H(t,u.shouldShow_(q),8);case 8:u.showSpinner=t.yieldResult;u.hidden=!1;t.jumpTo(0);break;case 6:return u.showSpinner=!1,_.H(t,u.shouldShow_(q),9);case 9:u.hidden=!t.yieldResult,_.HI(t)}})},
shouldShow_:function(q){return q&&q.supportedDatas&&q.supportedDatas.rendererVisibilityConditionData&&q.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(q.supportedDatas.rendererVisibilityConditionData.showIf):q&&q.visibilityCondition&&q.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(q.visibilityCondition.showIf):q&&q.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(q.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(q){switch(q){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(q){switch(q){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var q=_.Pw(this.hostElement,"yt-get-mdx-status");return q.length==1&&q[0].connected},
isLocationPermissionGranted_:function(){var q;return _.F(function(w){return w.nextAddress==1?navigator.permissions?_.H(w,navigator.permissions.query({name:"geolocation"}),3):w.jumpTo(2):w.nextAddress!=2?(q=w.yieldResult,w.return(Promise.resolve(q.state==="granted"))):w.return(Promise.resolve(!1))})}}];var oR$=function(q,w){w=w===void 0?{}:w;return function(u){var y=document.createElement(q),e;var t=(e=y.polymerController)!=null?e:y;YWo(y,t,u,w);return y}}("yt-icon");var VGa=function(q){var w=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];EMf();_.wr("ytglobal.ytUtilActivityCallback_",function(){_.X4(q,"yt-user-activity")});
new k8(function(){return w.JSC$14779_onMouseMove});
document.addEventListener("scroll",function(){return w.onScroll});
window.addEventListener("resize",function(){return w.onResize})},fpc=function(q,w,u){w in q.eventJobIds||(u=_.Vk().addLowPriorityJob(function(){_.tq();
delete q.eventJobIds[w]},u),q.eventJobIds[w]=u)};
VGa.prototype.onScroll=function(q){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):q.target===document&&fpc(this,"scroll",200)};
VGa.prototype.onResize=function(){fpc(this,"resize",200)};
VGa.prototype.JSC$14779_onMouseMove=function(){fpc(this,"mousemove",100)};
_.ho=function(q){q.scrollEventsToIgnore+=1;q.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){q.scrollEventsToIgnore--},500))};var mga=function(q){this.element=q;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
mga.prototype.showFeedbackDialog=function(q,w,u,y){var e=AFk();if(!e)return!1;var t=wEf();t.productId=e;w&&(t.flow="submit",t.report={description:w});u&&(AFk()==="59"?t.callback=_.SZ(function(){_.pn("userFeedbackEvent",{});u()}):t.callback=_.SZ(u));
t.bucket=y||_.Et("GOOGLE_FEEDBACK_BUCKET","Other");JFk(t);q=zvT(this,"GFEEDBACK",q);try{_.xDk(t,q)}catch(X){return _.cl(X),!1}return!0};
mga.prototype.showHelpDialog=function(q,w,u){var y=this,e=AFk();if(!e)return!1;var t={helpCenterPath:"/youtube",productData:zvT(this,"GUIDED_HELP",u)};JFk(t);var X=wEf();X.context=q||t.productData.context||"default";X.defaultHelpArticleId=w;X.enableSendFeedback=!0;(_.hP("gapi.load")||function(G,n){return n()})("client",function(){try{var G=YqF(e,t);
if(_.T("web_always_load_chat_support")&&!y.chatSupportLoaded)try{G.JSC$7875_loadChatSupport(X),y.chatSupportLoaded=!0}catch(n){}G.startHelp(X)}catch(n){_.cl(n)}})};
var AFk=function(){var q=_.Et("GOOGLE_FEEDBACK_PRODUCT_ID");q||_.cl(Error("ci"));return q},JFk=function(q){q&&(q.locale=_.T("kevlar_help_use_locale")?_.Et("INNERTUBE_CONTEXT_HL","en"):_.Et("HTML_LANG","en"))},zvT=function(q,w,u){var y=q.productData;
delete y.origin;y.device=_.QM();var e;a:{if(e=document.createElement("canvas")){var t=e.getContext("experimental-webgl",{stencil:!0});if(t){var X=t.getExtension("WEBGL_debug_renderer_info");if(X){e=t.getParameter(X.UNMASKED_RENDERER_WEBGL);break a}}if(t=e.getContext("webgl")){e=t.getParameter(t.RENDERER);break a}}e=null}y.gpu=e;y.isSDC=!!_.Et("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(e=_.Et("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.db.extend(y,e);_.xXo(w,y);_.q56(y);(q=_.X4(q.element,"yt-get-autonav-pause-debug-state"))&&
q.length&&(y.autonav_pause_state=q[0]);q=_.Gc();y.browser_resolution=q.width+"\u00d7"+q.height+"@"+(window.devicePixelRatio||1)+"x";u&&_.db.extend(y,u);return y};
mga.prototype.resetProductData=function(){this.productData={}};var apP=function(q){this.feedbackManager=new mga(q)};
apP.prototype.showFeedbackDialog=function(q,w,u,y){return this.feedbackManager.showFeedbackDialog(q,w,u,y)};
apP.prototype.showHelpDialog=function(q,w,u){return this.feedbackManager.showHelpDialog(q,w,u)};var Dg6=function(){this.baseUrl="";this.aTag=document.createElement("a")},ot$=function(q,w,u){u=u===void 0?{}:u;
u.pbj||(u.pbj=1);u=_.VDf(w,u);q.baseUrl&&u&&!_.qu(u)[1]&&!_.w$(u)&&(w=q.baseUrl,Xl(w,"/")&&(w=w.slice(0,-1)),_.tz(u,"/")&&(u=u.slice(1)),u=w+"/"+u);VE(q.aTag,Iw(u||""));return q.aTag.href};
Dg6.prototype.fetchData=function(q){return _.jIM(q)};
Dg6.prototype.postData=function(q,w){var u={method:"POST"};if(w){for(var y=_.P(Object.keys(w)),e=y.next();!e.done;e=y.next()){e=e.value;var t=w[e];_.er(t)&&(w[e]=JSON.stringify(t))}u.postParams=w}return _.jIM(q,u)};
_.VCT=function(q,w,u,y,e){q=ot$(q,w,u);if(!q)throw y=Error("di"),Object.assign(y,{params:w}),y;return _.jIM(q,e,y)};
Dg6.prototype.requestDataForServiceEndpoint=function(q,w){if(_.C(q,_.FKo))return this.fetchData("/getAccountSwitcherEndpoint");w=w||{};var u=_.C(q,No6);u?w.se=u.base64EncodedServiceEndpoint:w.sej=JSON.stringify(q);(u=_.pN())&&_.T("enable_service_ajax_csn")&&(w.csn=u);w.theme=_.$M();_.C(q,Pwc)&&_.Et("DELEGATION_CONTEXT")&&(w.delegation_context=JSON.stringify(_.Et("DELEGATION_CONTEXT")));u=null;for(var y in q)if(Xl(y,"Endpoint")||Xl(y,"Command")){u=y;break}if(!u){var e=Error("ei");Object.assign(e,{params:q});
_.d2l(e,"WARNING");return new _.IA(function(X,G){G(e)})}y={name:u};
var t;(u=(t=_.C(q,_.NU))==null?void 0:t.signal)&&(y.signal=u);(t=_.K4(window.location.href))&&t.internalcountrycode&&(y.internalcountrycode=t.internalcountrycode);t="/service_ajax";_.T("debug_forward_web_query_parameters")&&(t=_.v$l(t,window.location.search));t=_.xw(t,y);q.clickTrackingParams&&_.xG(t,{itct:q.clickTrackingParams});return this.postData(t,w)};_.Zsx=new _.MH("GFEEDBACK_TOKEN");var p7T;var $g6;var vRX;var bs$;var RM=function(){var q=_.Y.apply(this,arguments)||this;q.compact=!1;return q};
_.O(RM,_.Y);RM.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
RM.prototype.computeHasIcon_=function(q){return!!q};
RM.prototype.isSignInIcon_=function(q){return q=="yt-icons:prompted_sign_in"};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],RM.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.Osc.YtConditionalRendererBehavior),_.h("design:type",Object)],RM.prototype,"ytConditionalRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],RM.prototype,"data",void 0);
_.c([_.v({computed:"computeIcon_(data.icon)"}),_.h("design:type",Object)],RM.prototype,"icon_",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.h("design:type",Boolean)],RM.prototype,"hasIcon_",void 0);_.c([_.v({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.h("design:type",Boolean)],RM.prototype,"signInIcon_",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],RM.prototype,"compact",void 0);
RM=_.c([_.JM({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],RM);
_.R(RM,"yt-player-error-message-renderer",function(){if(bs$===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;vRX===void 0&&(vRX=document.createElement("template"));var y=vRX;u.call(w,y.content.cloneNode(!0),q.content.firstChild);bs$=q}q=bs$;return q},{mode:2});var Yar;var gRG;var cx=function(){return _.Y.apply(this,arguments)||this};
_.O(cx,_.Y);cx.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
cx.prototype.computeIcon_=function(q){return q?"yt-icons:"+q.iconType.toLowerCase():"error_outline"};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],cx.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],cx.prototype,"data",void 0);_.c([_.v({computed:"computeIcon_(data.icon)"}),_.h("design:type",Object)],cx.prototype,"icon_",void 0);cx=_.c([_.JM({is:"yt-player-kav-renderer",disableElementRegistration:!0})],cx);
_.R(cx,"yt-player-kav-renderer",function(){if(gRG===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;Yar===void 0&&(Yar=document.createElement("template"));var y=Yar;u.call(w,y.content.cloneNode(!0),q.content.firstChild);gRG=q}q=gRG;return q},{mode:2});_.q9(_.LL(function(q){var w=_.Bm(),u=_.P(_.r4(0,void 0,"gCmSbf")),y=u.next().value,e=u.next().value;u=_.P(_.r4(null,void 0,"Rj9zMe"));var t=u.next().value,X=u.next().value;_.p4(function(){eLl(w.value,e,X);w.value.scrollIntoView()});
u=kly.bind(null,q.data,y);y1("resize",function(){var G=t();if(y()===1&&G!==null){var n;(n=window.grecaptcha)==null||n.reset(G)}});
return _.W("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.W("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.W("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var G,n;return(G=q.data().accessibility)==null?void 0:(n=G.accessibilityData)==null?void 0:n.label}),_.W(_.Lr,{text:u,
className:_.HR("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.W("div",{el:w,class:"ytwPlayerCaptchaViewModelGridItem"})))},"be"),"yt-player-captcha-view-model",{props:{data:_.xB}});var tdM=!1;_.ERj=_.LL(function(q){var w=q.data;return _.W("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.W(_.r,{cond:function(){return w().icon},
then:function(u){return _.W("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.W(_.ln,{data:u,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.W(_.r,{cond:function(){return w().title},
then:function(u){return _.W("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.W(_.Lr,{text:u}))}}),_.W(_.r,{cond:function(){return w().description},
then:function(u){return _.W("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.W(_.Lr,{text:u}))}}),_.W(_.OF,{data:function(){return w().primaryButton}},{buttonViewModel:function(u){return _.W(_.Zs,{data:u.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.W(_.OF,{data:function(){return w().secondaryButton}},{buttonViewModel:function(u){return _.W(_.Zs,{data:u.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"ce");
_.ERj.idomCompat=!0;var Rvk=_.LL(function(q){var w=q.data;_.LV();return _.W("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.W("div",{class:"player-interstitial-renderer-wiz__scrim"},_.W(_.OF,{data:function(){return w().content}},{interstitialViewModel:_.ERj})))},"de");
Rvk.idomCompat=!0;_.q9(Rvk,"yt-player-interstitial-renderer",{props:{data:_.pK}});var S2=function(){var q=_.Y.apply(this,arguments)||this;q.noBackground=!1;q.compact=!1;q.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return q};
_.O(S2,_.Y);S2.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"}}}};
S2.prototype.onUpdatePlayerErrorMessageCommand_=function(q){if(_.C(q,o2F)){var w;if(q=(w=_.C(q,o2F))==null?void 0:w.newPlayerErrorMessageRenderer)this.data=q}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],S2.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],S2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],S2.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],S2.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],S2.prototype,"status",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],S2.prototype,"noBackground",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],S2.prototype,"compact",void 0);S2=_.c([_.JM({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],S2);
var cFk=_.eD()(S2,"yt-playability-error-supported-renderers",function(){if($g6===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;p7T===void 0&&(p7T=document.createElement("template"));var y=p7T;u.call(w,y.content.cloneNode(!0),q.content.firstChild);$g6=q}q=$g6;return q},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var Puo=void 0,FBH=void 0;var HZl=new OmT;var FN=new _.MH("ENTITY_STATE_TOKEN"),h9=new _.MH("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Sa3=function(q){this.store=q;this.fyl=new _.fCX},ieM=function(q,w,u){var y,e;
if(!(e=((y=w.playabilityStatus)==null?void 0:y.status)!=="OK")){q=q.store;var t;e=w.offlineState&&((t=w.videoDetails)==null?0:t.videoId)?_.T("enable_pl_r_c_cd")?OHs(q.getState().entities,w.videoDetails.videoId):!!Bo7(q.getState().entities,w.videoDetails.videoId):!1}if(e)return!0;e=Ioy(w);if(e===1){if(_.T("ab_v_vid_sig")){var X,G=(X=w.videoDetails)==null?void 0:X.videoId;if(!G||!u||G!==u){var n;w=new _.fv("282054944_vid",{rK8:u,xl7:(n=w.videoDetails)==null?void 0:n.videoId});_.vm(w)}}return!0}mqJ=
0;var N,Q;n=(G=w.auxiliaryUi)==null?void 0:(N=G.messageRenderers)==null?void 0:(Q=N.bkaEnforcementMessageViewModel)==null?void 0:Q.displayType;if(e!==3&&(n==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||n==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;n={reason:_.yU(_.ID("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.T("ks_something_wrong_learn_more")?AT4("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.yU(_.ID("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:_.yU("282054944")};hvx(w,{playerErrorMessageRenderer:n});return!1},r4J=function(q,w){if(li4(w)){_.sP(1,!0);
var u=(u=li4(w))&&_.XEy()?u:void 0;u?(hvx(w,{enforcementMessageViewModel:u}),q.fyl.increment("IN_PLAYER"),_.sP(5)):(q.fyl.increment("SKIP_DISPLAY"),_.sP(2))}},hvx=function(q,w){q.playabilityStatus=Object.assign({},q.playabilityStatus,{status:"ERROR",
errorScreen:w});q.videoDetails=void 0};
Sa3.prototype.handleResponse=function(q,w){if(q.playabilityStatus){var u,y,e,t=(w==null?void 0:(u=w.innerTubeRequest)==null?void 0:u.videoId)||(w==null?void 0:(y=w.innerTubeRequest)==null?void 0:(e=y.playerRequest)==null?void 0:e.videoId);ieM(this,q,t)&&r4J(this,q)}};
Sa3[Ld]=[FN];var QLz=new _.MH("ADBLOCK_DETECTION_SERVICE_TOKEN");var xD=function(q){this.bj7=q};
xD.prototype.bindInnertubeChallengeFetcher=function(q){this.bj7.bicf(q)};
xD.prototype.registerChallengeFetchedCallback=function(q){this.bj7.bcr(q)};
xD.prototype.getLatestChallengeResponse=function(){return this.bj7.blc()};var MGj;_.j2=function(q,w,u){var y=this;this.network=q;this.options=w;this.networkStatusManager=u;this.eK=null;if(w.useBotguardEverywhere){var e=new _.Gt;this.eK=e.promise;_.uc.ytAtRC&&_.iq(_.pi,function(){var t,X;return _.F(function(G){if(G.nextAddress==1){if(!_.uc.ytAtRC)return G.return();t=j_r(null);return _.H(G,y.gY(t),2)}X=G.yieldResult;_.uc.ytAtRC&&_.uc.ytAtRC(JSON.stringify(X));_.HI(G)})});
Cus().then(function(t){var X,G,n,N;return _.F(function(Q){if(Q.nextAddress==1)return t.bindInnertubeChallengeFetcher(function(I){return y.gY(j_r(I))}),_.H(Q,A16(),2);
X=Q.yieldResult;G=t.getLatestChallengeResponse();n=G.challenge;if(!n)throw Error("fi");N={challenge:n,vX:By(n),d3:X,bgChallenge:new MD};e.resolve(N);t.registerChallengeFetchedCallback(function(I){I=I.challenge;if(!I)throw Error("gi");I={challenge:I,vX:By(I),d3:X,bgChallenge:new MD};y.eK=Promise.resolve(I)});
_.HI(Q)})})}else w.preload&&lpT(this,new Promise(function(t){_.mg(_.pi,function(){t(Lir(y))},0)}))};
MGj=function(q){var w={preload:!0,useBotguardEverywhere:_.T("attmusi")},u=!1;if(typeof w==="boolean")var y={preload:w};else typeof w==="undefined"?y={preload:!0}:(y=w,u=!!w.uux);w=u?void 0:new _.MQ;_.j2.instance=new _.j2(q,y,w);return _.j2.instance};
_.j2.prototype.hpL=function(){var q=this;return _.F(function(w){return w.nextAddress==1?_.H(w,Promise.race([q.eK,null]),2):w.return(!!w.yieldResult)})};
_.j2.prototype.nWc=function(q,w,u){var y=this,e,t,X;return _.F(function(G){y.eK===null&&lpT(y,Lir(y));e=!1;t={};X=function(){var n,N,Q;return _.F(function(I){switch(I.nextAddress){case 1:return _.H(I,y.eK,2);case 2:n=I.yieldResult;t.challenge=n.challenge;if(!n.d3){"c1a"in n.vX&&(t.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");I.jumpTo(3);break}N=Object.assign({},{c:n.challenge,e:q},w);_.tD(I,4);e=!0;if(_.T("attbs")&&!_.T("attmusi")){Q=_.om3(n.d3,{kG:N});I.jumpTo(6);break}return _.H(I,n.d3.snapshot({kG:N}),
7);case 7:Q=I.yieldResult;case 6:Q?t.webResponse=Q:t.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.jv(I,3);break;case 4:_.nm(I),t.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(q==="ENGAGEMENT_TYPE_PLAYBACK"){var U=n.vX,d={};if(U.c6a){var V=Number(_.Et("DCLKSTAT",0));d.reportingStatus=String(Number(U.c)^(isNaN(V)?0:V))}U.c6b&&(d.broadSpectrumDetectionResult=String(Number(U.c)^Number(_.Et("CATSTAT",0))));t.adblockReporting=d}return I.return(t)}})};
return G.return(Promise.race([X(),KiF(u,function(){var n=Object.assign({},t);e&&(n.error="ATTESTATION_ERROR_VM_TIMEOUT");return n})]))})};
var j_r=function(q){var w={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};q&&(w.interpreterHash=q);return w},Lir=function(q,w){w=w===void 0?0:w;
var u,y,e,t,X,G,n,N,Q,I,U,d;return _.F(function(V){switch(V.nextAddress){case 1:u=j_r(fDX().yhy);if(_.T("att_fet_ks"))return _.tD(V,7),_.H(V,q.gY(u),9);_.tD(V,4);return _.H(V,Bzc(q,u),6);case 6:X=V.yieldResult;e=X.fRn;t=X.bQZ;y=X;_.jv(V,3);break;case 4:return _.nm(V),_.Y8(Error("hi`"+w)),xgk(q,864E5),V.return({challenge:"",vX:{},d3:void 0,bgChallenge:void 0});case 9:y=V.yieldResult;if(!y)throw Error("ii");if(!y.challenge)throw Error("ji");e=y.challenge;t=By(e);if("c1a"in t&&(!y.bgChallenge||!y.bgChallenge.program))throw Error("ki");
_.jv(V,3);break;case 7:G=_.nm(V);_.Y8(G);w++;if(w>=5)return _.Y8(Error("hi`"+w)),xgk(q,864E5),V.return({challenge:"",vX:{},d3:void 0,bgChallenge:void 0});n=1E3*Math.pow(2,w-1)+Math.random()*1E3;return V.return(new Promise(function(J){_.mg(_.pi,function(){J(Lir(q,w))},n)}));
case 3:N=TwM(t);xgk(q,N*1E3);Q=void 0;if(!("c1a"in t&&y.bgChallenge)){V.jumpTo(10);break}I=U37(y.bgChallenge);_.tD(V,11);return _.H(V,AaT(fDX(),I),13);case 13:_.jv(V,12);break;case 11:return U=_.nm(V),_.Y8(U),V.return({challenge:e,vX:t,d3:Q,bgChallenge:I});case 12:return _.tD(V,14),Q=new _.mo({challenge:I,bR:{i3:"aGIf"}}),_.H(V,Q.mTS,16);case 16:_.jv(V,10);break;case 14:d=_.nm(V),_.Y8(d),Q=void 0;case 10:return V.return({challenge:e,vX:t,d3:Q,bgChallenge:I})}})};
_.j2.prototype.gY=function(q){var w=this,u;return _.F(function(y){u=w.networkStatusManager;if(!u||u.isNetworkAvailable())return y.return(w.network.gY(q));_.pq("att_pna",void 0,"attestation_challenge_fetch");return y.return(new Promise(function(e){u.listenOnce("publicytnetworkstatus-online",function(){w.network.gY(q).then(e)})}))})};
var qTj=function(q){if(!q)throw Error("ii");if(!q.challenge)throw Error("ji");var w=q.challenge,u=By(w);if("c1a"in u&&(!q.bgChallenge||!q.bgChallenge.program))throw Error("ki");return Object.assign({},q,{fRn:w,bQZ:u})},Bzc=function(q,w){var u,y,e,t,X;
return _.F(function(G){switch(G.nextAddress){case 1:u=void 0,y=0,e={};case 2:if(!(y<5)){G.jumpTo(4);break}if(!(y>0)){G.jumpTo(5);break}e.uFz=1E3*Math.pow(2,y-1)+Math.random()*1E3;return _.H(G,new Promise(function(n){return function(N){_.mg(_.pi,function(){N(void 0)},n.uFz)}}(e)),5);
case 5:return _.tD(G,7),_.H(G,q.gY(w),9);case 9:return t=G.yieldResult,G.return(qTj(t));case 7:u=X=_.nm(G),X instanceof Error&&_.Y8(X);case 8:y++;e={uFz:void 0};G.jumpTo(2);break;case 4:throw u;}})},lpT=function(q,w){q.eK=w},wWF=function(q){var w,u,y;
return _.F(function(e){if(e.nextAddress==1)return _.H(e,Promise.race([q.eK,null]),2);w=e.yieldResult;var t=Lir(q);q.eK=t;(u=w)==null||(y=u.d3)==null||y.dispose();_.HI(e)})},xgk=function(q,w){var u=Date.now()+w,y=function(){var e;
return _.F(function(t){e=u-Date.now();return e<1E3?_.H(t,wWF(q),0):(_.mg(_.pi,y,Math.min(e,6E4)),t.jumpTo(0))})};
y()},KiF=function(q,w){return new Promise(function(u){_.mg(_.pi,function(){u(w())},q)})};var unr=function(){};
unr.prototype.processContext=function(q){var w=_.j2.instance;if(!w)return _.Eu();var u=foz(q);return u?new gf(w.nWc(u,ohy(q),500).then(function(y){var e;(q==null?0:(e=q.innerTubeRequest)==null?0:e.context)||(q.innerTubeRequest.context={});e=q.innerTubeRequest.context;e.request||(e.request={});e.request.attestationResponseData=y})):_.Eu()};var y$F=function(q){this.innertubeTransportService=q};
y$F.prototype.gY=function(q){_.pq("att_fsr",void 0,"attestation_challenge_fetch");return _.Jb(this.innertubeTransportService,q,_.Ka(_.dk$)).then(function(w){_.pq("att_frr",void 0,"attestation_challenge_fetch");return w})};_.ear=function(q){this.innertubeTransportService=q};var kuP=new _.MH("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var tEP=function(){},XWF=function(q,w,u,y,e){var t=_.Et("YPC_MB_URL");
_.tk6(t).then(function(){Ptj(t,q,w,u,y,e)})},Ptj=function(q,w,u,y,e,t){try{var X=payments.business.integration,G=payments.business.integration.Style.create().withMaterialDesignStyle(),n=X.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.T("enable_window_constrained_buy_flow_dialog")&&(n=n.usingPopupStyle("windowConstrained"));t&&(n=n.usingCloseCallback(t));var N=u?u:_.Et("YPC_GB_LANGUAGE"),Q=_.Et("SESSION_INDEX");X.bootstrap.fromPaymentsUrl(q);X.bootstrap.asMashupMode(n).usingGaiaIndex(Q).usingLocale(N).usingStyle(G).usingDefaultActivityStatusChangeHandler().inStandaloneContext(X.standaloneContextAuthId.forGaia()).purchaseManager(w,function(I){y&&y(I)}).load(void 0,e)}catch(I){throw e&&e(I),_.vm(I),I;
}};var F1X=new _.MH("PURCHASE_MANAGER_TOKEN");var Guk=function(){var q=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return q.videos},
getContinuationsPresent:function(){return q.continuationsPresent},
setVideos:function(w){q.videos=w},
getRecommendedVideos:function(){return q.recommendedVideos},
setRecommendedVideos:function(w){q.recommendedVideos=w}}};
Guk.prototype.addVideos=function(q){q&&(this.videos=q.filter(function(w){return!!_.Ajf(w)}).map(function(w){var u=_.Ajf(w);
a:{var y;if(w.playlistVideoRenderer&&((y=w.playlistVideoRenderer)==null?0:y.voteSortTiebreaker))var e=w.playlistVideoRenderer.voteSortTiebreaker;else{if(_.C(w,wZ)){var t;if(y=(e=_.C(w,wZ))==null?void 0:(t=e.playlistItemData)==null?void 0:t.voteSortTiebreaker){e=y;break a}}e=""}}return{itemId:u,videoId:_.aoH(w),voteCount:_.D36(w),voteSortTiebreaker:e}}),this.continuationsPresent=!!_.C(q[q.length-1],_.ec))};
var nyX=function(q,w){return q.videos.findIndex(function(u){return u.itemId===w})},Hbj=function(q,w){return q.recommendedVideos.findIndex(function(u){return u.itemId===w})},W1c=function(q){q={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:q}}}}};_.tG().resolve(_.PG).resolveCommand(q)};var ss6=function(){Guk.apply(this,arguments)};
_.O(ss6,Guk);
var yjF=function(q,w,u,y){if(!q.parentElem)throw Error("pi");var e=nyX(q,w);e===-1&&(e=Hbj(q,w),e=e!==-1?e+q.videos.length:-1);if(e===-1)throw Error("qi");var t=e>=q.videos.length?q.recommendedVideos[e-q.videos.length]:q.videos[e];t.voteCount=u;t.voteSortTiebreaker=Date.now().toString();e>=q.videos.length?q.recommendedVideos.splice(e-q.videos.length,1):q.videos.splice(e,1);var X=q.videos;for(var G=0,n=X.length-1;G<=n;){var N=Math.floor((G+n)/2);if(X[N].voteCount<t.voteCount)n=N-1;else if(X[N].voteCount>t.voteCount)G=
N+1;else{a:{var Q=t.voteSortTiebreaker;var I=X[N].voteSortTiebreaker;if(Q.length!==I.length)Q=Q.length>I.length;else{for(var U=0;U<Q.length;U++){var d=Q.charCodeAt(U),V=I.charCodeAt(U);if(d>V){Q=!0;break a}if(d<V)break}Q=!1}}Q?n=N-1:G=N+1}}X=G;if(X===-1)throw Error("ri");q.videos.splice(X,0,t);e!==X&&Nnc(q,e,X,w,u,y)},Nnc=function(q,w,u,y,e,t){var X,G=(X=q.parentElem)==null?void 0:X.children,n=Math.min(w,u),N=Math.max(w,u);
if(G)for(X=n;X<=N;X++)G[X].style.viewTransitionName="item-"+String(X);document.startViewTransition(function(){if(q.parentElem){var Q=q.parentElem.children;if(!(!Q||w<0||w>=Q.length||u<0||u>=Q.length)){var I=Q[w];if(I){I.remove();q.showRefreshPill=u>=q.videos.length-1&&q.continuationsPresent;if(!q.showRefreshPill){Q=Q[u]||null;var U;(U=q.parentElem)==null||U.insertBefore(I,Q)}_.t7(q.parentElem,"yt-update-video-data-voting-animation",{toIdx:u,itemId:y,newVoteCount:e,voteStatus:t,hideItem:q.showRefreshPill})}}}}).finished.then(function(){if(G)for(var Q=
n;Q<=N;Q++)G[Q].style.viewTransitionName="";
if(q.showRefreshPill)W1c(_.ID("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var I;if(I=Q=(I=q.parentElem)==null?void 0:I.children[u])I=Q.getBoundingClientRect(),Q=I.bottom,I=!(I.top>=0&&Q<=q.clientHeight);I&&(I=_.iy(w>u?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(w-u)),W1c(I))}})};var ibr=function(q,w){var u=this;q?this.innertubeTransportServicePromise=Promise.resolve(q):w&&(this.innertubeTransportServicePromise=w(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new J9(3E3,function(y){return Qsj(u,y)},0);
this.validateMiniAppVideoIdRateLimiter=new J9(3E3,function(y){return IkT(u,y)},1)},xfj=function(q,w){q.JSC$14893_miniAppId=w;
q.reportMiniAppValueRateLimiter=new J9(3E3,function(u){return Qsj(q,u)},0);
q.validateMiniAppVideoIdRateLimiter=new J9(3E3,function(u){return IkT(q,u)},1)},w7x=function(q,w){var u;
return _.F(function(y){if(y.nextAddress==1)return _.H(y,q.reportMiniAppValueRateLimiter.call(w),2);u=y.yieldResult;return y.return([u,w])})},Qsj=function(q,w){var u,y,e,t,X,G,n;
return _.F(function(N){switch(N.nextAddress){case 1:return _.H(N,q.innertubeTransportServicePromise,2);case 2:return u=N.yieldResult,y=_.Ka(JmP),e=Date.now(),t={externalPostId:q.JSC$14893_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(e/1E3),nanos:Math.round(e%1E3*1E6)},intValue:""+w}},_.tD(N,3),_.H(N,_.Jb(u,t,y),5);case 5:X=N.yieldResult;_.jv(N,4);break;case 3:throw G=_.nm(N),G;case 4:if(X){if("error"in X&&X.error)throw X.error;if(X.errorMetadata)throw Error("si`"+
X.errorMetadata.status);if(n=X.userStatResult)return N.return(n);throw Error("ti");}throw Error("ui");}})},yFk=function(q){var w,u,y,e,t;
_.F(function(X){switch(X.nextAddress){case 1:return _.H(X,q.innertubeTransportServicePromise,2);case 2:return w=X.yieldResult,u=_.Ka(JmP),y={externalPostId:q.JSC$14893_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.tD(X,3),_.H(X,_.Jb(w,y,u),5);case 5:e=X.yieldResult;_.jv(X,4);break;case 3:throw t=_.nm(X),t;case 4:if(e==null)throw Error("ui");if("error"in e&&e.error)throw e.error;if(e.errorMetadata)throw Error("si`"+e.errorMetadata.status);_.HI(X)}})};
ibr.prototype.flush=function(){var q=this;return _.F(function(w){return w.nextAddress==1?_.H(w,q.reportMiniAppValueRateLimiter.flush(),2):_.H(w,q.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var uGG=function(q,w){return _.F(function(u){return u.nextAddress==1?_.H(u,q.validateMiniAppVideoIdRateLimiter.call(w),2):u.return(u.yieldResult)})},IkT=function(q,w){var u,y,e,t,X,G;
return _.F(function(n){switch(n.nextAddress){case 1:return _.H(n,q.innertubeTransportServicePromise,2);case 2:return u=n.yieldResult,y=_.Ka(C1k),e={videoId:w},_.tD(n,3),_.H(n,_.Jb(u,e,y),5);case 5:t=n.yieldResult;_.jv(n,4);break;case 3:throw X=_.nm(n),X;case 4:if(t){if("error"in t&&t.error)throw t.error;if(t.errorMetadata)throw Error("si`"+t.errorMetadata.status);if(G=t.playabilityStatus)return n.return(G.status);throw Error("vi");}throw Error("ui");}})};
ibr[Ld]=[_.kF(_.oi),_.kF(qiP)];var r$P=function(){this.clientData=new Map};
r$P.prototype.getData=function(q){return this.clientData.get(q)};var UoT=function(q){this.store=q};
UoT.prototype.handleResponse=function(q){(q=_.C(q.frameworkUpdates,j6))&&_.IO(q,this.store)};
UoT[Ld]=[_.dd];var TnT=new _.MH("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var CtF={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_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[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_list:[[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 doG=new _.MH("ICON_SET_TOKEN"),ObZ=new _.MH("ICON_URL_PROVIDER_TOKEN"),oya=new _.MH("PREFETCH_ICONS_TOKEN"),VET=new _.MH("ICON_MAP_FN_TOKEN");var lm={},fkX=(lm.ACCESS_TIME="clock",lm.ACCOUNT_BOX="person_account",lm.ACCOUNT_BOX_CAIRO="person_account_cairo",lm.ACCOUNT_CIRCLE="person_circle",lm.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",lm.ACCOUNT_LINKED="account_link_success",lm.ACCOUNT_UNLINKED="account_link",lm.ADD_FRIEND="people",lm.ADD_TO_LIBRARY=yk("add"),lm.ADD_TO_PLAYLIST="add",lm.ADD_TO_QUEUE_TAIL="list_queue",lm.ADD_TO_REMOTE_QUEUE="list_music",lm.ADD_TO_WATCH_LATER="clock",lm.ADD_VIDEO_LINK="film_strip_add",lm.ALERT_WARN_RED="alert_triangle",
lm.ARROW_BACK="arrow_left",lm.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",lm.ARROW_DROP_DOWN="chevron_down",lm.ARROW_DROP_UP="chevron_up",lm.ARROW_FORWARD="arrow_right",lm.AUDIOTRACK="audio",lm.AUTO_AWESOME="sparkle",lm.AVATAR_ANONYMOUS="person_circle",lm.AVATAR_LOGGED_OUT="person_circle",lm.BACK="arrow_left",lm.BAR_CHART="bar_graph",lm.BLOCK="slash_circle_left",lm.BLOCK_USER="slash_circle_left",lm.BOOKMARK_BORDER="bookmark",lm.BREAKING_NEWS_ALT_1="article_alert",lm.BROADCAST_CAIRO="podcast_cairo",
lm.BUG_REPORT="bug",lm.CAMERA_ALT="camera",lm.CAMPAIGN="megaphone",lm.CANCEL="x_circle",lm.CAPTIONS="closed_caption",lm.CAST_OUTLINE="chromecast",lm.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",lm.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",lm.CHAT="message_bubble_left",lm.CHAT_BUBBLE="message_bubble_empty",lm.CHAT_SPARK="spark_message_bubble_left",lm.CHECK_BOX_OUTLINE_BLANK="box_empty",lm.CHECK_CIRCLE_OUTLINE="check_circle",lm.CHECK_CIRCLE_THICK="check_circle",lm.CLARIFY="article_clarify",lm.CLOSED_CAPTION_SELECTED=
"closed_caption",lm.CLOSE="x_mark",lm.CLOUD_UPLOAD="cloud_arrow_up",lm.COLLAPSE="chevron_up",lm.COLLAPSE_CAIRO="chevron_up_cairo",lm.COLLECTION="layers",lm.COLOR_LENS="palette",lm.COMMENT="message_bubble_right",lm.CONSENT_SHIELD="person_shield",lm.CONTENT_CUT="scissors",lm.CONTENT_CUT_CAIRO="scissors_cairo",lm.COURSE=_.T("web_enable_course_icon_update")?"creator_academy":"lightbulb",lm.COURSE_CAIRO=_.T("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",lm.CREATION_LIVE="radar_live",
lm.CREATION_UPLOAD="my_videos",lm.CREATION_UPLOAD_RED="upload",lm.CREATOR_STUDIO="youtube_studio",lm.DASHBOARD="grid_asymmetrical",lm.DELETE="trash_can",lm.DELETE_SWEEP="trash_can",lm.DESKTOP="laptop",lm.DISLIKE="thumb_down",lm.DISLIKE_SELECTED="thumb_down",lm.DISMISSAL="x_mark",lm.DISMISS_QUEUE="list_remove",lm.DOWN_ARROW="arrow_down",lm.DO_NOT_DISTURB="slash_circle_left",lm.DRAFT="paper_corner_folded",lm.DRAG_HANDLE="bars_2",lm.EDIT="pencil",lm.EMOJI="face_very_happy",lm.EMOJI_FLAGS="flag",lm.EMOJI_OBJECTS=
"lightbulb",lm.EMOJI_PEOPLE="face_very_happy",lm.EMOJI_RECENT="clock",lm.EMPTY_HEART="heart",lm.EMPTY_LIKE="thumb_up",lm.ERROR_BLACK="alert_circle",lm.ERROR_OUTLINE="alert_circle",lm.EXIT_APP="arrow_in",lm.EXIT_TO_APP="arrow_in",lm.EXPAND="chevron_down",lm.EXPAND_ALL="chevron_expand",lm.EXPAND_CAIRO="chevron_down_cairo",lm.EXPAND_LESS="chevron_up",lm.EXPAND_MORE="chevron_down",lm.EXPLORE="compass",lm.EXPLORE_DESTINATION="compass",lm.EXTERNAL_LINK="open_new",lm.FAB_UPLOAD="upload",lm.FACE_HAPPY_OUTLINE=
"face_happy",lm.FACT_CHECK="article_check",lm.FASHION_LOGO="fashion",lm.FASHION_LOGO_CAIRO="fashion_cairo",lm.FAVORITE="heart",lm.FEEDBACK="message_bubble_alert",lm.FEEDBACK_CAIRO="message_bubble_alert_cairo",lm.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",lm.FILL_ARROW_SOLID_UP_16="arrow_solid_up",lm.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",lm.FLAG="flag",lm.FULL_HEART="heart",lm.GAME_CONSOLE_DPAD="game_console_dpad",lm.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",lm.GAMING_LOGO="gaming",
lm.GAMING_LOGO_CAIRO="gaming_cairo",lm.GO_TO_PAGE="arrow_right",lm.GROUPS="people_group",lm.HAPPY="face_happy",lm.HEALTH_AND_SAFETY="shield_plus",lm.HELP="question_circle",lm.HELP_CAIRO="question_circle_cairo",lm.HELP_OUTLINE="question_circle",lm.HIDE="slash_circle_left",lm.IMAGE="image",lm.INFINITY_ICON="infinity",lm.INFO="info_circle",lm.INFO_OUTLINE="info_circle",lm.INSERT_CHART_OUTLINED="bar_graph_box_vertical",lm.INSERT_PHOTO="image",lm.KEEP="pin",lm.KEEP_OFF="pin_off",lm.KEYBOARD="keyboard",
lm.KEYBOARD_ARROW_DOWN="chevron_down",lm.KEYBOARD_ARROW_UP="chevron_up",lm.KIDS_BLOCK="slash_circle_left",lm.LANGUAGE="globe",lm.LAUNCH="open_new",lm.LEARNING="lightbulb",lm.LEARNING_CAIRO="lightbulb_cairo",lm.LIBRARY_ADD=yk("library_add"),lm.LIBRARY_OUTLINE="library",lm.LIBRARY_REMOVE=yk(),lm.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",lm.LIKES_PLAYLIST="thumb_up",lm.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",lm.LIKE="thumb_up",lm.LIKE_SELECTED="thumb_up",lm.LIVE="radar_live",lm.LIVE_CAIRO="radar_live_cairo",
lm.LIVE_UNLISTED="link",lm.LOCATION_ON="location_point",lm.LOCATION_PIN="location_point",lm.LOOP="arrow_repeat",lm.LOOP_ACTIVE="arrow_repeat",lm.LOOP_ONE="arrow_repeat_1",lm.LOOP_ONE_ACTIVE="arrow_repeat_1",lm.MEH="face_meh",lm.MEMBERS_ONLY_MODE_OFF="message_bubble_left",lm.MESSAGE="message_bubble_left",lm.MICROPHONE_ON="mic",lm.MIX="youtube_mix",lm.MONETIZATION_ON="dollar_sign_circle",lm.MONEY_FILL="dollar_sign_container",lm.MONEY_FILL_JPY="yen_sign_container",lm.MONEY_HEART="dollar_sign_heart",
lm.MORE_HORIZ="overflow_horizontal",lm.MORE_VERT="overflow_vertical",lm.MUSIC="audio",lm.MUSIC_CAIRO="audio_cairo",lm.MUSIC_NOTE_SYMBOL="music",lm.MUSIC_SHUFFLE="arrow_shuffle",lm.MY_CHANNEL="person_circle",lm.MY_LOCATION="location_point",lm.NEWS_STORY="news",lm.NEXT="chevron_right",lm.NOTIFICATIONS="bell",lm.NOTIFICATIONS_ACTIVE="bell_on",lm.NOTIFICATIONS_CAIRO="bell_cairo",lm.NOTIFICATIONS_DONE_CHECKMARK="check",lm.NOTIFICATIONS_INBOX="bell",lm.NOTIFICATIONS_NONE="bell",lm.NOTIFICATIONS_OFF="bell_off",
lm.NOT_INTERESTED="slash_circle_left",lm.OFFICIAL_ARTIST_BADGE="audio",lm.OFFLINE_CLOUD="cloud_off",lm.OFFLINE_DOWNLOAD="download",lm.OFFLINE_DOWNLOAD_CAIRO="download_cairo",lm.OFFLINE_PAUSE="pause",lm.OPEN_IN_NEW="open_new",lm.OUTLINE_ADJUST="adjust",lm.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",lm.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",lm.OUTLINE_BAG="bag",lm.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",lm.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",lm.OUTLINE_OVERFLOW_VERTICAL=
"overflow_vertical",lm.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",lm.PAID="dollar_sign",lm.PAUSE_OUTLINED="pause",lm.PAYMENT="credit_card",lm.PERSON_RADAR_FILLED="person_radar",lm.PHONE_DOWNLOAD="mobile_download",lm.PLAYABLES_LOGO="tic_tac_toe",lm.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",lm.PLAYLISTS="list_play_arrow",lm.PLAYLISTS_CAIRO="list_play_arrow_cairo",lm.PLAYLIST_ADD=yk("list_add"),lm.PLAYLIST_ADD_CHECK=yk("list_check"),lm.PLAYLIST_PLAY="list_play_arrow",lm.PLAY_ALL="play_arrow",lm.PLAY_CIRCLE=
"play_arrow_circle",lm.PLAY_OUTLINED="play_arrow_circle",lm.PRIVACY_INFO="shield",lm.PRIVACY_PRIVATE="lock",lm.PRIVACY_PUBLIC="earth",lm.PRIVACY_UNLISTED="link",lm.PROMOTE="megaphone",lm.PURCHASES="price_tag",lm.PURCHASE_SUPER_CHAT="super_chat",lm.PURCHASE_SUPER_STICKER="super_sticker",lm.QUESTION_ANSWER="message_bubble_question",lm.QUEUE_PLAY_LAST="list_queue_last",lm.QUEUE_PLAY_NEXT="list_play_arrow",lm.REMIX_FILLED="youtube_shorts_remix",lm.REMOVE="bar_circle",lm.REMOVE_CIRCLE="bar_circle",lm.REMOVE_CIRCLE_OUTLINE=
"bar_circle",lm.REMOVE_FROM_HISTORY="bar_circle",lm.REMOVE_FROM_PLAYLIST="bar_circle",lm.REPLAY="arrow_circle",lm.REPORT_PROBLEM="alert_triangle",lm.SAD="face_sad",lm.SAVE_PLAYLIST=yk("library_add"),lm.SCHEDULE="clock",lm.SCHOOL="creator_academy",lm.SCREEN_FULLSCREEN="screen_full",lm.SEARCH_HISTORY="arrow_time",lm.SELL="price_tag",lm.SETTINGS="gear",lm.SETTINGS_CAIRO="gear_cairo",lm.SETTINGS_LIGHT="gear",lm.SETTINGS_MATERIAL="gear",lm.SHARE_ARROW="share",lm.SHIELD_WITH_AVATAR="person_shield",lm.SHOPPING_BAG=
"bag",lm.SHOPPING_BAG_CAIRO="bag_cairo",lm.SHOPPING_CART="cart",lm.SHORTS_COMMENT="youtube_shorts_message_bubble_right",lm.SHORTS_DISLIKE="youtube_shorts_thumb_down",lm.SHORTS_LIKE="youtube_shorts_thumb_up",lm.SHORTS_SHARE="youtube_shorts_share",lm.SHUFFLE="arrow_shuffle",lm.SLOW_MODE_OFF="message_bubble_left",lm.SOCIAL="people",lm.SORT="menu_sort",lm.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",lm.SPEED_1X="1x",lm.SPEED_1_POINT_2X="1_point_2x",lm.SPEED_1_POINT_5X="1_point_5x",lm.SPEED_1_POINT_8X="1_point_8x",
lm.SPEED_2X="2x",lm.SPEED_POINT_2X="point_2x",lm.SPEED_POINT_8X="point_8x",lm.SPONSORSHIP_STAR=_.T("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",lm.STAFF_PICK="spotlight",lm.START_DVR="add",lm.STAR_BORDER="star",lm.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",lm.STICKER_EMOTICON="face_happy",lm.STOP_DVR="stop",lm.SUBSCRIBE="youtube_logo_icon",lm.SUBSCRIBE_PLUS="add_cairo",lm.SUBSCRIPTION_MANAGER="gear",lm.SUPERVISOR_ACCOUNT="people",lm.SWAP_HORIZ="arrow_swap_horizontal",lm.SWITCH_ACCOUNTS=
"person_account",lm.TAB_ACCOUNT="person",lm.TAB_ACTIVITY="bell",lm.TAB_BOOKMARK="bookmark",lm.TAB_EXPLORE="compass",lm.TAB_HOME="home",lm.TAB_HOME_CAIRO="home_cairo",lm.TAB_INBOX="mail",lm.TAB_LIKED="thumb_up",lm.TAB_MUSIC_PREMIUM="youtube_music",lm.TAB_SHORTS="youtube_shorts",lm.TAB_SHORTS_CAIRO="youtube_shorts_cairo",lm.TAB_SUBSCRIPTIONS="subscriptions",lm.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",lm.TAB_TRENDING="fire",lm.TIMER="stopwatch",lm.TRENDING="fire",lm.TRENDING_CAIRO="fire_cairo",
lm.TRENDING_UP="rating_up",lm.TROPHY="trophy",lm.TROPHY_CELEBRATIONS="fireworks",lm.TUNE="adjust",lm.UNBLOCK_USER="bar_circle",lm.UNLIMITED="youtube_logo_icon",lm.UNPLUGGED_LIVE_GUIDE="radar_live",lm.UNPLUGGED_SPORTS="eye_off",lm.UPLOADS="library",lm.UP_ARROW="arrow_up",lm.VERTICAL_ALIGN_BOTTOM="download",lm.VERY_HAPPY="face_very_happy",lm.VERY_SAD="face_very_sad",lm.VIDEOGAME_ASSET="gaming",lm.VIDEOS="play_arrow_circle",lm.VIDEO_CALL="video_camera_add",lm.VIDEO_LIBRARY_WHITE="library",lm.VIDEO_YOUTUBE=
"youtube_logo_icon",lm.VIEW_LIST="list_view",lm.VIEW_LIST_CAIRO="list_view_cairo",lm.VISIBILITY="eye",lm.VISIBILITY_OFF="eye_off",lm.VOLUME_MUTE="volume_off",lm.VOLUME_UP="volume_on",lm.WALLPAPER="image",lm.WARNING="alert_triangle",lm.WATCH_HISTORY="arrow_time",lm.WATCH_HISTORY_CAIRO="arrow_time_cairo",lm.WATCH_LATER="clock",lm.WATCH_LATER_CAIRO="clock_cairo",lm.WATCH_RELATED_MIX="youtube_mix",lm.WHAT_TO_WATCH="home",lm.YOUTUBE_MUSIC_MONOCHROME="youtube_music",lm.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",
lm.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",lm.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",lm.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",lm.YT_OUTLINE_MUSIC_24="music",lm);var Lc={},mo6=(Lc.ACCESS_TIME="clock",Lc.ACCOUNT_BOX="person2_rectangle",Lc.ACCOUNT_BOX_CAIRO="person_square_stack",Lc.ACCOUNT_CIRCLE="person_circle",Lc.ACCOUNT_CIRCLE_CAIRO="person_circle",Lc.ACCOUNT_UNLINKED="account_link",Lc.ADD_CIRCLE="add_circle",Lc.ADD_FRIEND="person_child",Lc.ADD_TO_LIBRARY="bookmark",Lc.ADD_TO_PLAYLIST="add",Lc.ADD_TO_QUEUE_TAIL="queue",Lc.ADD_TO_REMOTE_QUEUE="playlist_audio",Lc.ADD_TO_WATCH_LATER="clock",Lc.ADD_VIDEO_LINK="film_strip_add",Lc.ADMIN_PANEL_SETTINGS="gear",Lc.ALERT_WARN_RED=
"alert_triangle",Lc.ALIGN_LEFT="text_align_left",Lc.ARROWS_ALERT="arrow_split_alert",Lc.ARROW_BACK="arrow_left",Lc.ARROW_CIRCLE="arrow_counterclockwise",Lc.ARROW_CIRCLE_PLAY="replay",Lc.ARROW_CIRCLE_RIGHT="arrow_clockwise",Lc.ARROW_DIAGONAL="arrow_up_left",Lc.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",Lc.ARROW_DROP_DOWN="chevron_down",Lc.ARROW_DROP_UP="chevron_up",Lc.ARROW_FORWARD="arrow_right",Lc.ARROW_PAUSE="pause_history",Lc.ARROW_UNDO="undo",Lc.ARTICLE="text_page",Lc.ARTICLE_ALERT="text_page_alert",
Lc.ARTICLE_CHECK="text_page_check",Lc.ARTICLE_CLARIFY="text_page_info",Lc.AUDIOTRACK="audio",Lc.AUDIO_BADGE="audio_badge",Lc.AUDIO_SURROUND="surround_sound",Lc.AVATAR_ANONYMOUS="person_circle",Lc.AVATAR_LOGGED_OUT="person_circle",Lc.BACK="arrow_left",Lc.BAR_CHART="chart_bar",Lc.BAR_CIRCLE="minus_circle",Lc.BAR_HORIZONTAL="minus",Lc.BLOCK="circle_slash",Lc.BLOCK_USER="circle_slash",Lc.BOOKMARK_BORDER="bookmark",Lc.BOX_OPEN_CHECK="quiz",Lc.BOX_PENCIL="square_pencil",Lc.BREAKING_NEWS_ALT_1="text_page_alert",
Lc.BROADCAST="podcast",Lc.BROADCAST_CAIRO="podcast",Lc.BUG_REPORT="bug",Lc.CAMERA_ALT="camera",Lc.CAMPAIGN="megaphone",Lc.CANCEL="x_circle",Lc.CAPTIONS="closed_captions",Lc.CAST_OUTLINE="chromecast",Lc.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Lc.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",Lc.CHAT="text_bubble",Lc.CHAT_BUBBLE="bubble",Lc.CHECK_CIRCLE_OUTLINE="check_circle",Lc.CHECK_CIRCLE_THICK="check_circle",Lc.CHECK_DOUBLE="check_done",Lc.CHECK_DOUBLE_OFF="check_done_slash",Lc.CHEVRON_RIGHT_CAIRO=
"chevron_right",Lc.CIRCLES_OVERLAP="account_link",Lc.CLAPPERBOARD_CAIRO="clapperboard",Lc.CLARIFY="text_page_info",Lc.CLOCK_ARROWS="clock_split",Lc.CLOCK_ARROWS_ALERT="clock_split_alert",Lc.CLOSED_CAPTION="closed_captions",Lc.CLOSED_CAPTION_SELECTED="closed_captions",Lc.CLOSE="x",Lc.CLOUD_UPLOAD="cloud_arrow_up",Lc.COLLAPSE="chevron_up",Lc.COLLAPSE_CAIRO="chevron_up",Lc.COLLECTION="square3d_stack",Lc.COLOR_LENS="paint_palette",Lc.COMMENT="text_bubble",Lc.CONSENT_SHIELD="person_shield",Lc.CONTENT_CUT=
"scissors",Lc.CONTENT_CUT_CAIRO="scissors",Lc.COURSE="graduation_cap",Lc.COURSE_CAIRO="graduation_cap",Lc.CREATION_LIVE="live",Lc.CREATION_POST="square_pencil",Lc.CREATION_UPLOAD="video",Lc.CREATION_UPLOAD_RED="upload",Lc.CREATOR_ACADEMY="graduation_cap",Lc.CREATOR_STUDIO="youtube_studio",Lc.DARK_THEME="theme",Lc.DELETE="trash_can",Lc.DELETE_SWEEP="trash_can",Lc.DESKTOP="laptop",Lc.DISLIKE="thumb_down",Lc.DISLIKE_SELECTED="thumb_down",Lc.DISMISSAL="x",Lc.DOGFOOD="pawprint",Lc.DOLLAR_SIGN="dollar_sign_circle",
Lc.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",Lc.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",Lc.DOWN_ARROW="arrow_down",Lc.DO_NOT_DISTURB="circle_slash",Lc.DRAFT="document",Lc.EARTH="globe",Lc.EDIT="pencil",Lc.EMOJI="face_very_happy",Lc.EMOJI_FLAGS="flag",Lc.EMOJI_OBJECTS="lightbulb",Lc.EMOJI_PEOPLE="face_very_happy",Lc.EMOJI_RECENT="clock",Lc.EMPTY_HEART="heart",Lc.EMPTY_LIKE="thumb_up",Lc.ERROR_BLACK="alert_circle",Lc.ERROR_OUTLINE="alert_circle",Lc.EXIT_APP="arrow_in",Lc.EXIT_TO_APP="arrow_in",
Lc.EXPAND="chevron_down",Lc.EXPAND_ALL="chevron_expand",Lc.EXPAND_CAIRO="chevron_down",Lc.EXPAND_LESS="chevron_up",Lc.EXPAND_MORE="chevron_down",Lc.EXPLORE="compass",Lc.EXPLORE_DESTINATION="compass",Lc.EXTERNAL_LINK="arrow_up_right",Lc.EYE_OFF="eye_slash",Lc.FAB_UPLOAD="upload",Lc.FACE_HAPPY_OUTLINE="face_happy",Lc.FACE_MEH="face_neutral",Lc.FACT_CHECK="text_page_check",Lc.FASHION_LOGO="fashion",Lc.FASHION_LOGO_CAIRO="fashion",Lc.FEEDBACK="alert_bubble",Lc.FEEDBACK_CAIRO="alert_bubble",Lc.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",Lc.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Lc.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Lc.FLAG_CAIRO="flag",Lc.FLASH_OFF="flash_slash",Lc.FLASH_ON="flash",Lc.FULL_HEART="heart",Lc.GAMING_LOGO="gaming",Lc.GAMING_LOGO_CAIRO="gaming",Lc.GO_TO_PAGE="arrow_right",Lc.GROUPS="person3",Lc.HAND_SWIPE_LEFT="gesture_swipe_left",Lc.HAND_SWIPE_RIGHT="gesture_swipe_right",Lc.HAPPY="face_happy",Lc.HEALTH_AND_SAFETY="shield_health",Lc.HEART_BOX="heart_cube",Lc.HELP="help_circle",Lc.HELP_CAIRO=
"help_circle",Lc.HELP_OUTLINE="help_circle",Lc.HIDE="circle_slash",Lc.INCOGNITO_CAIRO="incognito",Lc.INFINITY_ICON="infinity",Lc.INFO="info_circle",Lc.INFO_OUTLINE="info_circle",Lc.INSERT_PHOTO="image",Lc.KEEP="pin",Lc.KEEP_OFF="pin_slash",Lc.KEYBOARD="keyboard",Lc.KEYBOARD_ARROW_DOWN="chevron_down",Lc.KEYBOARD_ARROW_UP="chevron_up",Lc.KIDS_BLOCK="circle_slash",Lc.LANGUAGE="globe",Lc.LAUNCH="arrow_up_right",Lc.LEARNING="lightbulb",Lc.LEARNING_CAIRO="lightbulb",Lc.LIBRARY_ADD="bookmark",Lc.LIBRARY_IMAGE=
"image_stack",Lc.LIBRARY_MUSIC="audio_square_stack",Lc.LIBRARY_OUTLINE="play_square_stack",Lc.LIBRARY_REMOVE="bookmark",Lc.LIKES_PLAYLIST="thumb_up",Lc.LIKES_PLAYLIST_CAIRO="thumb_up",Lc.LIKE="thumb_up",Lc.LIKE_SELECTED="thumb_up",Lc.LIST_QUEUE="queue",Lc.LIVE_CAIRO="live",Lc.LIVE_UNLISTED="link",Lc.LOCATION_ON="location_pin",Lc.LOCATION_PIN="location_pin",Lc.LOCATION_POINT="location_pin",Lc.LOOP="repeat",Lc.LOOP_ACTIVE="repeat",Lc.LOOP_ONE="repeat1",Lc.LOOP_ONE_ACTIVE="repeat1",Lc.MEET="google_meet",
Lc.MEH="face_neutral",Lc.MEMBERSHIPS="memberships",Lc.MEMBERS_ONLY_MODE_OFF="text_bubble",Lc.MENU_FILTER="filter",Lc.MESSAGE="text_bubble",Lc.MESSAGE_BUBBLE_GEAR="bubble_gear",Lc.MESSAGE_BUBBLE_LEFT="text_bubble",Lc.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",Lc.MESSAGE_BUBBLE_OVERLAP="bubble_stack",Lc.MESSAGE_BUBBLE_QUESTION="help_bubble",Lc.MICROPHONE_ON="mic",Lc.MONETIZATION_ON="dollar_sign_circle",Lc.MONEY_FILL="dollar_sign_rectangle",Lc.MONEY_FILL_JPY="yen_sign_rectangle",Lc.MONEY_HAND="dollar_sign_circle_hand",
Lc.MONEY_HEART="dollar_sign_heart",Lc.MOON_Z="sleep_timer",Lc.MORE_HORIZ="overflow_horizontal",Lc.MORE_VERT="overflow_vertical",Lc.MUSIC="audio",Lc.MUSIC_CAIRO="audio",Lc.MUSIC_NOTE_SYMBOL="audio",Lc.MUSIC_SCISSORS="audio_scissors",Lc.MUSIC_SHUFFLE="shuffle",Lc.MY_CHANNEL="person_circle",Lc.MY_LOCATION="location_pin",Lc.MY_VIDEOS="video",Lc.MY_VIDEOS_CAIRO="video",Lc.NEWS_CAIRO="news",Lc.NEWS_STORY="news",Lc.NEXT="chevron_right",Lc.NOTE_ADD="bubble_pencil",Lc.NOTIFICATIONS="bell",Lc.NOTIFICATIONS_ACTIVE=
"bell_waves",Lc.NOTIFICATIONS_CAIRO="bell",Lc.NOTIFICATIONS_DONE_CHECKMARK="check",Lc.NOTIFICATIONS_INBOX="bell",Lc.NOTIFICATIONS_NONE="bell",Lc.NOTIFICATIONS_OFF="bell_slash",Lc.NOT_INTERESTED="circle_slash",Lc.OFFICIAL_ARTIST_BADGE="audio",Lc.OFFLINE_CLOUD="cloud_slash",Lc.OFFLINE_DOWNLOAD="download",Lc.OFFLINE_DOWNLOAD_CAIRO="download",Lc.OFFLINE_PAUSE="pause",Lc.OPEN_IN_NEW="arrow_up_right",Lc.OUTLINE_ADJUST="adjust",Lc.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Lc.OUTLINE_ARROW_SOLID_UP_16=
"arrow_solid_up",Lc.OUTLINE_BAG="bag",Lc.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",Lc.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Lc.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Lc.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Lc.PAID="dollar_sign_circle",Lc.PAUSE_OUTLINED="pause",Lc.PAYMENT="credit_card",Lc.PEOPLE="person_child",Lc.PEOPLE_2="person2_rectangle",Lc.PEOPLE_GROUP="person3",Lc.PEOPLE_NOTE="bubble_asterisk",Lc.PERSON_2="person2",Lc.PERSON_ACCOUNT="person_square_stack",Lc.PERSON_MINUS=
"person_x",Lc.PERSON_MUSIC="person_audio",Lc.PERSON_RADAR="person_waves",Lc.PERSON_RADAR_FILLED="person_waves",Lc.PERSON_SETTING="person_gear",Lc.PHONE="phone",Lc.PHONE_DOWNLOAD="mobile_arrow_down",Lc.PICTURE_IN_PICTURE="picture_in_picture",Lc.PLAYABLES_LOGO="playables",Lc.PLAYABLES_LOGO_CAIRO="playables",Lc.PLAYLISTS="playlist",Lc.PLAYLISTS_CAIRO="playlist",Lc.PLAYLIST_ADD="bookmark",Lc.PLAYLIST_ADD_CHECK="bookmark",Lc.PLAY_ALL="play",Lc.PLAY_ARROW="play",Lc.PLAY_ARROW_CIRCLE="play_circle",Lc.PLAY_ARROW_HALF_CIRCLE=
"play_circle_half_dashed",Lc.PLAY_CIRCLE="play_circle",Lc.PLAY_OUTLINED="play_circle",Lc.PODCAST_ADD="podcast_add",Lc.PODCAST_CHECK="podcast_check",Lc.PRIVACY_PRIVATE="lock",Lc.PRIVACY_PUBLIC="globe",Lc.PRIVACY_UNLISTED="link",Lc.PROMOTE="megaphone",Lc.PURCHASES="price_tag",Lc.PURCHASE_SUPER_CHAT="super_chat",Lc.PURCHASE_SUPER_STICKER="super_sticker",Lc.QUESTION_ANSWER="help_bubble",Lc.QUESTION_CIRCLE="help_circle",Lc.QUEUE_PLAY_LAST="queue_last",Lc.QUOTATION_MARK="quote",Lc.RADAR_LIVE="live",Lc.REMOVE=
"minus_circle",Lc.REMOVE_CIRCLE="minus_circle",Lc.REMOVE_CIRCLE_OUTLINE="minus_circle",Lc.REMOVE_FROM_HISTORY="minus_circle",Lc.REMOVE_FROM_PLAYLIST="minus_circle",Lc.REPLAY="arrow_counterclockwise",Lc.REPLAY_ARROW="replay",Lc.REPORT_PROBLEM="alert_triangle",Lc.RSS_OFF="rss_slash",Lc.SAD="face_sad",Lc.SAVE_PLAYLIST="bookmark",Lc.SCHEDULE="clock",Lc.SCHOOL="graduation_cap",Lc.SCREEN_DEFAULT="player_default",Lc.SCREEN_FULLSCREEN="player_full_enter",Lc.SCREEN_LIGHT="ambient_mode",Lc.SCREEN_SWITCH="player_switch",
Lc.SEARCH_CAIRO="search",Lc.SEARCH_HISTORY="history",Lc.SELL="price_tag",Lc.SETTINGS="gear",Lc.SETTINGS_CAIRO="gear",Lc.SETTINGS_LIGHT="gear",Lc.SETTINGS_MATERIAL="gear",Lc.SETTINGS_REMOTE="remote_waves",Lc.SHARE="share",Lc.SHARE_ARROW="share",Lc.SHARE_CAIRO="share",Lc.SHIELD="shield_x",Lc.SHIELD_OFF="shield_slash",Lc.SHIELD_WITH_AVATAR="person_shield",Lc.SHOPPING_BAG="bag",Lc.SHOPPING_BAG_CAIRO="bag",Lc.SHOPPING_CART="cart",Lc.SHORTS_COMMENT="text_bubble",Lc.SHORTS_DISLIKE="thumb_down",Lc.SHORTS_LIKE=
"thumb_up",Lc.SHORTS_SHARE="share",Lc.SLASH_CIRCLE_RIGHT="circle_slash",Lc.SLOW_MODE_OFF="text_bubble",Lc.SOCIAL="person_child",Lc.SPARKLE="sparkles",Lc.SPARK_IMAGE="image_spark",Lc.SPARK_RADAR="spark_waves",Lc.SPARK_VIDEO="video_spark",Lc.SPEAKER_GROUP="speaker_stack",Lc.SPEAKER_OFF="speaker_slash",Lc.SPEED_1X="n1x",Lc.SPEED_1_POINT_2X="n1point2x",Lc.SPEED_1_POINT_5X="n1point5x",Lc.SPEED_1_POINT_8X="n1point8x",Lc.SPEED_2X="n2x",Lc.SPONSORSHIP_STAR="memberships",Lc.SPORTS="basketball",Lc.SPOTLIGHT=
"spotlight",Lc.STAFF_PICK="spotlight",Lc.START_DVR="add",Lc.STAR_BORDER="star",Lc.STAR_HALF="star_half_filled",Lc.STAR_SHOOTING="hype",Lc.STICKER="sticker",Lc.STICKER_EMOTICON="face_happy",Lc.STOP_DVR="stop",Lc.SUBSCRIBE="youtube",Lc.SUBSCRIBE_PLUS="add",Lc.SUBSCRIPTION_MANAGER="gear",Lc.SUPERSTAR="super_star",Lc.SUPERVISOR_ACCOUNT="person_child",Lc.SWAP_HORIZ="arrow_swap_horizontal",Lc.SWITCH_ACCOUNTS="person_square_stack",Lc.TAB_ACCOUNT="person",Lc.TAB_ACTIVITY="bell",Lc.TAB_BOOKMARK="bookmark",
Lc.TAB_EXPLORE="compass",Lc.TAB_HOME="home",Lc.TAB_HOME_CAIRO="home",Lc.TAB_INBOX="mail",Lc.TAB_LIKED="thumb_up",Lc.TAB_MUSIC_PREMIUM="youtube_music",Lc.TAB_SHORTS="shorts",Lc.TAB_SHORTS_CAIRO="shorts",Lc.TAB_SUBSCRIPTIONS="subscriptions",Lc.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Lc.TAB_TRENDING="trending",Lc.TARGET="target",Lc.TARGET_ADD="target_add",Lc.TEMPLATE_ADD="template_add",Lc.TEXT="font",Lc.TIMER="stopwatch",Lc.TRENDING_CAIRO="trending",Lc.TRENDING_UP="arrow_trend_up",Lc.TROPHY_CAIRO="trophy",
Lc.TROPHY_CELEBRATIONS="fireworks",Lc.TROPHY_STAR="star_trophy",Lc.TUNE="adjust",Lc.UNBLOCK_USER="minus_circle",Lc.UNLIMITED="youtube",Lc.UNPLUGGED_LIVE_GUIDE="live",Lc.UNPLUGGED_SPORTS="eye_slash",Lc.UPLOADS="play_square_stack",Lc.UP_ARROW="arrow_up",Lc.VERTICAL_ALIGN_BOTTOM="download",Lc.VERY_HAPPY="face_very_happy",Lc.VERY_SAD="face_very_sad",Lc.VIDEOS="play_circle",Lc.VIDEO_CALL="video_camera_add",Lc.VIDEO_LIBRARY_WHITE="play_square_stack",Lc.VIDEO_QUALITY_4K="n4k",Lc.VIDEO_QUALITY_8K="n8k",Lc.VIDEO_YOUTUBE=
"youtube",Lc.VIEW_LIST_CAIRO="view_list",Lc.VIEW_MODULE="view_column3_row2",Lc.VISIBILITY="eye",Lc.VISIBILITY_OFF="eye_slash",Lc.VOLUME_DOWN="volume_min",Lc.VOLUME_MUTE="volume_mute",Lc.VOLUME_OFF="volume_mute",Lc.VOLUME_STABLE="stable_volume",Lc.VOLUME_UP="volume_max",Lc.WALLPAPER="image",Lc.WARNING="alert_triangle",Lc.WATCH_HISTORY="history",Lc.WATCH_HISTORY_CAIRO="history",Lc.WATCH_LATER="clock",Lc.WATCH_LATER_CAIRO="clock",Lc.WATCH_RELATED_MIX="mix",Lc.WHAT_TO_WATCH="home",Lc.YOUTUBE_LINKED_TV=
"tv_mobile",Lc.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Lc.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",Lc.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",Lc.YOUTUBE_SHORTS_ARROW_UP="arrow_up",Lc.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",Lc.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Lc.YOUTUBE_SHORTS_OUTLINE_24="shorts",Lc);var A$T={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,8,16],[1,8,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,5,24],
[1,5,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,4,24],[1,4,20],[1,4,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_circle:[[0,9,24],[1,9,16],[1,9,24]],alert_triangle:[[0,8,12],[0,8,24],[1,8,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,1,24]],arrow_in:[[0,7,24],[1,7,24]],arrow_left:[[1,
7,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,3,16],[0,3,24],[1,3,16],[1,3,24]],arrow_solid_up:[[0,3,16],[0,3,24],[1,3,16],[1,3,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,9,12],[0,9,16],[0,9,24],[1,9,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,9,24],[1,9,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,10,
12],[0,10,16],[0,10,24],[1,10,16],[1,10,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,8,18],[1,8,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,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
6,16,!0],[0,6,18,!0],[0,6,24,!0],[1,6,16,!0],[1,6,18,!0],[1,6,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,8,24],[1,8,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,3,24],[1,3,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,9,24],[1,9,16],[1,9,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,4,16],[0,4,24],[1,4,12],[1,4,16],[1,4,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,21,12],[0,21,24],[1,21,16],[1,21,24]],dollar_sign_off:[[1,3,24]],download:[[0,10,24],[1,10,16],[1,10,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,5,24],[1,5,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,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,9,24],[0,9,36],[1,9,24],[1,9,36]],face_unhappy:[[0,8,24],[0,8,36],[1,8,24],[1,8,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,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:[[1,2,24]],fast_forward:[[0,5,24]],film_strip:[[0,6,24],[1,6,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,3,24],[1,3,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:[[1,3,24]],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,17,13],[0,17,24],[1,17,16],[1,17,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,2,16],[1,2,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,9,16],[1,9,18],[1,9,20],[1,9,24]],journey:[[1,1,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,7,18],[1,7,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]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,11,12],[0,11,24],[1,11,12],[1,11,16],[1,11,18],[1,11,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,8,12],[0,8,16],[0,8,18],[0,8,24],[1,8,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,10,24],[1,10,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_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,5,24],[1,5,32]],overflow_vertical:[[1,11,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,7,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,9,24],[1,9,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]],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,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,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,8,16],[1,8,24],[1,8,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,7,12],[0,7,24],[1,7,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,1,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,7,12],[0,7,24],[1,7,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,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,10,24],[1,10,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,10,24,!0],[0,10,32,!0],[1,10,16,!0],[1,10,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_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,5,24]],skip_previous:[[0,5,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,8,12],[0,8,16],[0,8,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,3,12],[0,3,16],[0,3,18],[0,3,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,3,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,10,24],[1,10,18],[1,10,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,21,16],[0,21,24],[0,21,36],[1,21,16],[1,21,24],[1,21,36]],thumb_up:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],[1,19,24],[1,19,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,2,24],[1,2,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,2,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,7,12],[0,7,16],[0,7,24],[1,7,16],
[1,7,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,8,24],[1,8,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,4,16],[1,4,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,2,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],wrench:[[0,2,24],[1,2,24]],x:[[1,9,18],[1,9,24]],x_cairo:[[1,1,24]],x_circle:[[1,7,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 J$r={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,8,24]],add_circle:[[0,5,24],[1,5,24]],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,4,24],[1,4,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,9,24],[1,9,24]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,8,24],[1,8,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,1,24]],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,7,24,!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,3,24],[1,3,24]],
arrow_solid_up:[[0,3,24],[1,3,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,1,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,1,24]],audio:[[0,9,24],[1,9,24]],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]],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_gear:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],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,9,24],[1,9,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,10,24]],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,8,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_right:[[1,6,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,8,24],[1,8,24]],chromecast_mobile:[[1,3,24]],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,9,24],[1,9,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,1,24]],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,4,24],[1,4,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:[[1,21,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],download:[[1,10,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,5,24],[1,5,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,9,24],[1,9,24]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,2,24],[1,2,24]],face_paintbrush:[[1,
2,24]],face_sad:[[0,9,24],[1,9,24]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,8,24],[1,8,24]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,9,24],[1,9,24]],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,6,24],[1,6,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,3,24],[1,3,24]],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,3,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,2,24],[1,2,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_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]],heart:[[0,17,24],[1,17,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,2,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,9,24]],info_circle_spark:[[1,1,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,7,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,11,24],[1,11,24]],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,8,24],[1,8,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,
1,24]],minus:[[1,1,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_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]],node_left:[[1,2,24]],node_right:[[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,5,24]],overflow_vertical:[[1,11,24]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,7,24],[1,7,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,1,24],[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[1,9,24]],person_circle_slash:[[1,2,24]],person_gear:[[1,1,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,
1,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,1,24],[1,1,24]],play_circle:[[0,1,24],[1,1,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,1,24],[1,1,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_portrait:[[1,1,24]],player_full_exit:[[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,1,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,1,24],[1,1,24]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,1,24]],playlist_x:[[1,1,24]],podcast:[[0,3,24],[1,3,24]],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,8,24]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,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,1,24]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,1,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,7,24],[1,7,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,10,24],[1,10,24]],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:[[1,10,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,2,24],[1,2,24]],shorts_empty:[[0,2,24],[1,2,24]],shuffle:[[0,2,24],[1,2,24]],skip10_back:[[1,1,24]],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,1,24]],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,5,24],[1,5,24]],skip_previous:[[0,5,24],[1,5,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,1,
24]],spacebar:[[1,2,24]],spark:[[0,8,24],[1,8,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,3,24],[1,3,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,3,24],[1,3,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,10,24],[1,10,24]],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,2,24],[1,2,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,21,24],[1,21,24]],thumb_up:[[0,19,24],[1,19,24]],thumb_up_down:[[0,2,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,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,7,24],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[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:[[1,8,24]],video_camera_add:[[1,2,24]],video_link:[[1,4,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,2,24]],waveform_spark:[[1,1,24]],wrench:[[1,2,24]],x:[[1,9,24]],x_circle:[[0,7,24],[1,7,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 zac={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",PLAYER_FULL_ENTER_DELHI_PLAYER:"PLAYER_FULL_ENTER",PLAYER_FULL_EXIT_DELHI_PLAYER:"PLAYER_FULL_EXIT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},MV=function(q){this.iconUrlProvider=q};
MV.prototype.resolveIcon=function(q,w){var u=zac[q.iconName.toUpperCase()];u&&(q.iconName=u);var y=q.iconName;y=y.replace(/-/g,"_");q=Object.assign({},q,{iconName:this.mapIconTypeToStandardName(y,!!u)||y.toLowerCase()});if(_.T("enable_web_delhi_icons")||u){var e;return pEo(J$r,q,((e=this.iconUrlProvider)==null?void 0:e.getYtStandardUrl)||bZs,w)}var t;return pEo(A$T,q,((t=this.iconUrlProvider)==null?void 0:t.getYtStandardUrl)||vhy,w)};
MV.prototype.mapIconTypeToStandardName=function(q,w){return _.T("enable_web_delhi_icons")||w?mo6[q.toUpperCase()]:fkX[q.toUpperCase()]};
MV[Ld]=[_.kF(ObZ)];var akx=function(q){this.urlProvider=this.iconUrlProvider=q};
_.O(akx,MV);
akx.prototype.resolveIcon=function(q,w){q.iconName==="youtube_logo"&&(q.iconName="yt-logo-updated");if(q.iconName==="youtube_premium_logo"||q.iconName==="youtube_red_logo")q.iconName="yt-logo-red-updated";var u=Object.assign({},q);q.iconName==="menu"&&(_.T("enable_web_delhi_icons")||(u.iconName="bars_3"),u.iconStyle="youtube_outline");q.iconName==="youtube_music"&&(u.iconStyle="youtube_fill");q.iconName==="mail"&&q.iconSetName==="socialNetworksRound"&&(u.iconName="email");q.iconName==="more"&&(u.iconName=
"overflow_horizontal");q.iconName==="fullscreen"&&(u.iconName="screen_full");if(q.iconName==="play_all"||q.iconName==="play_arrow")u.iconStyle="youtube_fill";q.iconName==="premium_standalone"&&(u.iconName="premium_standalone_cairo");_.T("enable_connect_icon_update_web")&&q.iconName==="account_linked"&&(u.iconName="circles_overlap_check",u.iconStyle="youtube_fill");_.T("enable_connect_icon_update_web")&&q.iconName==="account_unlinked"&&(u.iconName="circles_overlap",u.iconStyle="youtube_outline");q=
Object.assign({},u,{iconName:(MV.prototype.mapIconTypeToStandardName.call(this,u.iconName)||u.iconName).toLowerCase()});var y;return(q=pEo(CtF,q,((y=this.urlProvider)==null?void 0:y.getUrl)||Y54,w))?q:MV.prototype.resolveIcon.call(this,u,w)};
akx[Ld]=[_.kF(ObZ)];_.DoT=1;var Kc=function(){};
_.O(Kc,Vh);Kc.prototype.resolveCommand=function(q){var w,u;return _.F(function(y){w=_.C(q,HCT);if(!w)return y.return();u=Number(w.enableDelayedPacfLoggingTvMs);if(isNaN(u)){var e=xV();Gq3(e,w,0)}else Gq3(xV(),w,u);_.HI(y)})};_.Bx=function(){};
_.O(_.Bx,Vh);
_.Bx.prototype.resolveCommand=function(q,w){var u=this,y,e,t,X,G,n,N;return _.F(function(Q){y=_.C(q,WpP);t=(e=w.form)==null?void 0:e.element;G=(X=t)==null?void 0:X.closest("ytd-enforcement-message-view-model");if(!y||!G)return Q.return();u.allowAdsAction||(n=y.fundingChoiceInstructionPageUrl,u.allowAdsAction=new ESF(window,_.$Z(n)));var I=u.allowAdsAction;I.wallElement=G;I.allowAdsPopup.style.setProperty("display","flex","important");var U=I.scrollManager;U.originalBodyOverflow=U.JSC$7899_domHelper.JSC$7229_document_.body.style.overflow;U.JSC$7899_domHelper.JSC$7229_document_.body.style.overflow=
"hidden";I.wallElement.style.setProperty("display","none","important");qfj(I.accessibilityManager,I.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((N=u.allowAdsAction.allowAdsPopup)&&N instanceof HTMLElement)for(I=_.P(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),U=I.next();!U.done;U=I.next()){var d=_.P(U.value);U=d.next().value;d=d.next().value;N.style.setProperty(U,d)}_.HI(Q)})};
_.Bx.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var xx=function(){};
_.O(xx,Vh);xx.prototype.resolveCommand=function(q){var w;return _.F(function(u){w=_.C(q,OHX);if(!w)return u.return();d8z(q);_.HI(u)})};var qJ=function(q){this.JSC$14933_commandHandler=q};
_.O(qJ,Vh);
qJ.prototype.resolveCommand=function(q){var w=this,u,y,e,t,X,G,n,N;return _.F(function(Q){if(Q.nextAddress==1){u=_.C(q,M4j);if((y=u)==null||!y.text||!navigator.clipboard)return Q.return();_.tD(Q,2);return _.H(Q,navigator.clipboard.writeText(u.text),4)}if(Q.nextAddress!=2){if(!u.successActions||u.successActions.length===0)return Q.return();e=_.P(u.successActions);for(t=e.next();!t.done;t=e.next())X=t.value,w.JSC$14933_commandHandler.resolveCommand(X);return _.jv(Q,0)}_.nm(Q);if(!u.failureActions||u.failureActions.length===
0)return Q.return();G=_.P(u.failureActions);for(n=G.next();!n.done;n=G.next())N=n.value,w.JSC$14933_commandHandler.resolveCommand(N);_.HI(Q)})};
qJ[Ld]=[_.PG];var wh=function(q){this.JSC$14937_commandHandler=q};
_.O(wh,Vh);
wh.prototype.resolveCommand=function(q,w){var u=this,y,e,t,X,G,n,N,Q,I,U;return _.F(function(d){switch(d.nextAddress){case 1:y=_.C(q,zST);if(!y)return d.return();_.tD(d,2);if(!y.imageBytes&&!y.imageUrl)throw Error("wi");if(!y.imageUrl){if(y.imageBytes){t=y.imageBytes;X=t.replace(/-/g,"+").replace(/_/g,"/");var V=Ehf(X);e=_.T2(V)}d.jumpTo(4);break}return _.H(d,fetch(y.imageUrl),5);case 5:return G=d.yieldResult,_.H(d,G.blob(),6);case 6:n=d.yieldResult,e=_.T2(n);case 4:I=(N=w)==null?void 0:(Q=N.form)==
null?void 0:Q.element;U=document.createElement("a");VE(U,e);I.appendChild(U);U.download="";U.click();I.removeChild(U);URL.revokeObjectURL(_.NC(e));y.successCommand&&u.JSC$14937_commandHandler.resolveCommand(y.successCommand);_.jv(d,0);break;case 2:_.nm(d),y.errorCommand&&u.JSC$14937_commandHandler.resolveCommand(y.errorCommand),_.HI(d)}})};
wh[Ld]=[_.PG];var uH=function(q){this.store=q};
_.O(uH,Vh);uH.prototype.resolveCommand=function(q){var w=this,u,y,e;return _.F(function(t){y=(u=_.C(q,_.F_r))==null?void 0:u.entityBatchUpdate;if(!y)return t.jumpTo(0);e=Object.assign({},y,{mutations:[].concat(_.Cm(y.mutations||[]))});return _.H(t,_.IO(e,w.store),0)})};var Zba=function(q){this.JSC$14944_commandHandler=q;this.feedbackDialogMap=new Map};
Zba.prototype.openDialog=function(q,w){(q=this.feedbackDialogMap.get(q))&&this.JSC$14944_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:q}},w)};
Zba[Ld]=[_.PG];var yD=new _.MH("FEEDBACK_CONTROLLER_TOKEN");var eb=new _.MH("APP_STORE_TOKEN");var kA=function(q,w){this.store=q;this.controller=w};
_.O(kA,Vh);kA.prototype.resolveCommand=function(q,w){var u=this,y,e,t,X,G,n,N,Q,I,U,d,V,J,a,b,g,l;return _.F(function(S){if(S.nextAddress==1){y=_.C(q,_.JI);if(t=(e=y)==null?void 0:e.contentId)for(G=_.P(((X=y)==null?void 0:X.actions)||[]),n=G.next();!n.done;n=G.next())N=n.value,pW3(u,N,t);U=(Q=w)==null?void 0:(I=Q.form)==null?void 0:I.element;return _.H(S,_.GM(U,[q]).catch(function(){}),2)}d=S.yieldResult;
((V=d)==null?0:(J=V.data)==null?0:(a=J.feedbackResponses)==null?0:a.length)&&(g=(b=d.data.feedbackResponses[0])==null?void 0:b.followUpDialog)&&t&&(l=u.controller)!=null&&l.feedbackDialogMap.set(t,g);_.HI(S)})};
var pW3=function(q,w,u){var y=_.C(w,_.Ww);if(y){y=_.P(y.commands||[]);for(var e=y.next();!e.done;e=y.next())pW3(q,e.value,u)}_.C(w,_.rf)&&q.store.dispatch(_.IH("commandEntity",Juc(u),{key:u,command:w}));_.C(w,GTj)&&q.store.dispatch(_.IH("commandEntity",Juc(u),{key:u,command:w}))};
kA[Ld]=[eb,yD];var t8=function(q){this.controller=q};
_.O(t8,Vh);t8.prototype.resolveCommand=function(q,w){var u=this,y,e,t,X;return _.F(function(G){y=_.C(q,_.Sw);t=(e=y)==null?void 0:e.targetId;if(((X=y)==null?void 0:X.signal)!=="TELL_US_WHY"||!t)return G.return();u.controller.openDialog(t,w);_.HI(G)})};
t8[Ld]=[yD];var P5=function(q){this.store=q};
_.O(P5,Vh);P5.prototype.resolveCommand=function(q,w){var u=this,y,e,t,X,G,n,N;return _.F(function(Q){y=_.C(q,qmM);t=(e=y)==null?void 0:e.contentId;n=(X=w)==null?void 0:(G=X.form)==null?void 0:G.element;N=_.GM(n,[q]);t&&u.undo(t);return _.H(Q,N,0)})};
P5.prototype.undo=function(q){this.store.dispatch(_.IH("commandEntity",Juc(q),{key:q,command:void 0}))};
P5[Ld]=[eb];var XA=function(q){this.JSC$14959_commandHandler=q};
_.O(XA,Vh);XA.prototype.resolveCommand=function(q){var w=this,u,y,e,t,X,G,n,N;return _.F(function(Q){u=_.C(q,okT);y=u.flowStateKey;e=u.validationFailureCommand;t=u.submitValidFormCommand;X=Sf(_.uU,[y||""]);G=_.C(X,flF);((n=G)==null?0:n.isValid)&&t&&w.JSC$14959_commandHandler.resolveCommand(t);((N=G)==null?0:N.isValid)||!e||w.JSC$14959_commandHandler.resolveCommand(e);_.HI(Q)})};
XA[Ld]=[_.PG];var FA=function(q){this.innertubeTransportService=q};
_.O(FA,Vh);FA.prototype.resolveCommand=function(q,w){var u=this,y;return _.F(function(e){return _.H(e,_.cR(u.innertubeTransportService,q,(y=w)==null?void 0:y.form).then(function(t){var X,G;w==null||(X=w.commandController)==null||(G=X.onSuccess)==null||G.call(X,q,t)},function(t){var X,G;
w==null||(X=w.commandController)==null||(G=X.onServerError)==null||G.call(X,q,t)}),0)})};
FA[Ld]=[_.oi];var Gg=function(){};
_.O(Gg,Vh);Gg.prototype.resolveCommand=function(q){var w,u,y,e;return _.F(function(t){if(w=_.C(q,_.ZGk)){if(u=w.gtmId)y=_.Et("GL",""),_.Wd(u,y);(e=w.gtmData)&&_.s7(e)}_.HI(t)})};var nt=function(q,w){this.innertubeTransportService=q;this.JSC$14970_actionRouter=w};
_.O(nt,Vh);nt.prototype.resolveCommand=function(q){var w=this,u,y;return _.F(function(e){u=_.C(q,DLG);if(!u)return e.return();y=u.command;if(!y)return e.return();w.JSC$14970_actionRouter.triggerAction("yt-insert-rich-section-action",u);return _.H(e,_.cR(w.innertubeTransportService,y,{disableCache:!0}),0)})};
nt[Ld]=[_.oi,jL];cjc.bind(null,f0);var $o$=cjc.bind(null,fqX);hL4.bind(null,f0);var vy3=hL4.bind(null,fqX);loM.bind(null,f0);var bbk=loM.bind(null,fqX);var H5=function(){};
_.O(H5,Vh);
H5.prototype.resolveCommand=function(q){var w,u,y,e,t,X,G,n,N,Q;return _.F(function(I){w=_.C(q,Fwr);if(!w)return I.return();y=((u=w.operations)==null?void 0:u.operations)||[];e=_.P(y);for(t=e.next();!t.done;t=e.next())if(X=t.value,X.insertItemSectionContent){var U=X.insertItemSectionContent,d=U.contents||[];U.insertByPositionInSection?$o$(U.insertByPositionInSection.sectionTargetId,d,U.insertByPositionInSection.position):U.insertByRelativePositionInSection&&U.insertByRelativePositionInSection.sectionTargetId&&U.insertByRelativePositionInSection.itemTargetId&&
vy3(U.insertByRelativePositionInSection.sectionTargetId,U.insertByRelativePositionInSection.itemTargetId,d,U.insertByRelativePositionInSection.relativePosition)}else X.replaceSection?(U=X.replaceSection,d={},U.replaceByTargetId?d=U.replaceByTargetId:U.replaceByGroupId&&(d={targetId:U.replaceByGroupId.groupId,newContent:U.replaceByGroupId.newContent,undoKey:""}),d.newContent&&JuP(d.targetId,{continuationItems:[d.newContent]})):X.removeItem?(U=X.removeItem,U.removeByTargetId&&U.sectionTargetId&&bbk(U.sectionTargetId,
U.removeByTargetId.targetIds||[])):X.removeSection&&(X.removeSection.removeByTargetId?(G=void 0,YTr(((G=X.removeSection)==null?void 0:G.removeByTargetId.targetIds)||[])):X.removeSection.removeByGroupId&&(n=void 0,YTr(((n=X.removeSection)==null?void 0:n.removeByGroupId.groupIds)||[])));Q=((N=w.operations)==null?void 0:N.scrollConfig)||{};gyZ(Q);_.HI(I)})};
var YTr=function(q){q=_.P(q);for(var w=q.next();!w.done;w=q.next())JuP(w.value,{continuationItems:[]})},gyZ=function(q){if(q.scrollToItem){var w=q.scrollToItem.item||{},u=w.itemTargetId;
w=w.sectionTargetId;if(u&&w){var y=document.querySelector("[data-target-id="+w+"]"),e=y==null?void 0:y.querySelector("[data-target-id="+u+"]");y&&e&&setTimeout(function(){var t=e.offsetTop-y.offsetTop,X;if(((X=q.scrollToItem)==null?void 0:X.scrollPosition)==="SCROLL_POSITION_CENTER")t-=y.offsetHeight/2,t+=e.offsetHeight/2;else{var G;((G=q.scrollToItem)==null?void 0:G.scrollPosition)==="SCROLL_POSITION_END"&&(t-=y.offsetHeight,t+=e.offsetHeight)}y.scroll({top:t,behavior:"smooth"})},100)}}};var W5=new _.MH("CLIENT_NAME_TOKEN");var EyT=new _.MH("DEFAULT_STORE_EXPIRATION_TOKEN");var I4u=new _.MH("CLIENT_LOCATION_SERVICE_TOKEN");var so=function(q,w,u){this.clientName=q||_.Et("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=w||_.YM.getInstance();this.JSC$14998_commandHandler=u||_.nx.instance};
_.O(so,Vh);so.prototype.resolveCommand=function(q){var w=this,u,y;return _.F(function(e){y=(u=_.C(q,iMP))==null?void 0:u.onComplete;w.clientLocationService.clearLocationPlayabilityToken(w.clientName);y&&w.JSC$14998_commandHandler.resolveCommand(y);_.HI(e)})};
so[Ld]=[W5,I4u,_.PG];var NJ=function(q){this.innertubeTransportService=q};
_.O(NJ,Vh);NJ.prototype.resolveCommand=function(q,w){var u=this,y,e,t,X;return _.F(function(G){t=(y=w)==null?void 0:(e=y.form)==null?void 0:e.element;return _.H(G,_.cR(u.innertubeTransportService,q,(X=w)==null?void 0:X.form).then(function(n){oA7(t,new CustomEvent("yt-service-request-completed"),{data:n},_.Et("openPopupConfig"))}),0)})};
NJ[Ld]=[_.oi];var QD=function(){};
_.O(QD,Vh);QD.prototype.resolveCommand=function(q){var w,u;return _.F(function(y){w=_.C(q,z23);u=document.querySelector("mini-app-container-view-model");if(!w||!u)return y.return();w.isPlaying?u.dispatchEvent(new Event("play")):u.dispatchEvent(new Event("pause"));_.HI(y)})};var Id=function(){};
_.O(Id,Vh);Id.prototype.resolveCommand=function(q){var w,u,y,e,t,X,G;return _.F(function(n){w=_.C(q,mYX);if((u=w)==null||!u.paramKeys)return n.return();y=w.paramKeys;e=_.h1(window.location.href);t=_.P(y);for(X=t.next();!X.done;X=t.next())G=X.value,e.JSC$7931_queryData_.remove(G);window.history.replaceState(window.history.state,document.title,e.toString());_.HI(n)})};var Raj=function(){this.dropdownMap=new Map};_.c$$=new _.MH("DROPDOWN_CONTROLLER_TOKEN");var iH=function(q){this.controller=q};
_.O(iH,Vh);iH.prototype.resolveCommand=function(q){var w=this,u,y,e,t;return _.F(function(X){u=_.C(q,Xic);if(!u)return X.return();y=u;e=y.dropdownId;t=y.selectedOptionIndex;if(e===void 0||t===void 0)return X.return();var G=w.controller.dropdownMap.get(e);G&&G(t);_.HI(X)})};
iH[Ld]=[_.c$$];var rh=function(q){this.controller=q};
_.O(rh,Vh);rh.prototype.resolveCommand=function(q){var w=this,u;return _.F(function(y){return(u=_.C(q,VnT))?_.H(y,w.controller.closeDialog(),0):y.return()})};
rh[Ld]=[_.Ui];var Uo=function(q){this.controller=q};
_.O(Uo,Vh);Uo.prototype.resolveCommand=function(q){var w=this,u,y;return _.F(function(e){u=_.C(q,Xza);if(!u)return e.return();var t,X=u.panelIdentifier||((t=u.identifier)==null?void 0:t.tag);if(!X)throw Error("xi");return(y=X)?_.H(e,w.controller.hidePanel(y),0):e.jumpTo(0)})};
Uo[Ld]=[_.ib];var Tg=function(q,w){this.innertubeTransportService=q;this.controller=w};
_.O(Tg,Vh);Tg.prototype.resolveCommand=function(q){var w=this,u,y,e,t;return _.F(function(X){if(X.nextAddress==1)return u=_.C(q,FvP),(y=u)!=null&&y.panelId?_.H(X,w.controller.getReloadContinuation(u.panelId),2):X.return();if(X.nextAddress!=3)return(e=X.yieldResult)?_.H(X,_.cR(w.innertubeTransportService,q,{continuation:e}),3):X.return();t=X.yieldResult;return _.H(X,w.controller.updatePanel(u.panelId,t.content,!1),0)})};
Tg[Ld]=[_.oi,_.ib];var Ct=function(q,w,u){this.innertubeTransportService=q;this.JSC$15034_screenManager=w;this.JSC$15034_commandHandler=u};
_.O(Ct,Vh);
Ct.prototype.resolveCommand=function(q){var w=this,u,y,e,t,X,G;return _.F(function(n){if(n.nextAddress==1){u=_.C(q,_.xH3);if(!u)return n.return();if(u.commands)for(y=_.P(u.commands),e=y.next();!e.done;e=y.next())t=e.value,w.JSC$15034_commandHandler.resolveCommand(t,{disableClickTracking:!0});X=_.Tj(q.clickTrackingParams);_.e$(w.JSC$15034_screenManager,21760,X,{layer:7,parentLayer:0});return _.H(n,_.cR(w.innertubeTransportService,q),2)}G=n.yieldResult;if(!G)return n.return();w.JSC$15034_screenManager.graftServerVe(G.trackingParams,X,
7);_.HI(n)})};
Ct[Ld]=[_.oi,_.WY,_.PG];var dh=new _.MH("PANEL_LOADING_STRATEGY_TOKEN");var Oo=function(q,w){this.controller=q;this.panelLoadingStrategy=w};
_.O(Oo,Vh);
Oo.prototype.resolveCommand=function(q,w){var u=this,y,e,t;return _.F(function(X){y=_.C(q,hSZ);if((e=y)==null||!e.panelLoadingStrategy)return X.return();t=function(G){var n,N,Q,I,U,d,V,J,a;return _.F(function(b){N=_.C((n=G.dialogViewModel)==null?void 0:n.header,FZZ);Q={viewModel:G.dialogViewModel};I={};if(V=_.T("web_enable_dialog_header_label")?(U=N)==null?void 0:(d=U.headline)==null?void 0:d.content:void 0)I.ariaLabel=V;y.dismissOnBackgroundTap===!1&&(I.isModal=!0);return G.dialogViewModel?_.H(b,
u.controller.openDialog(Q,(J=w)==null?void 0:(a=J.form)==null?void 0:a.element,I),0):b.return()})};
return _.H(X,u.panelLoadingStrategy.execute({command:q,data:y.panelLoadingStrategy,renderFn:t,createScreenConfig:{layer:4}}),0)})};
Oo[Ld]=[_.Ui,dh];var od=function(q,w,u){this.innertubeTransportService=q;this.controller=w;this.JSC$15054_screenManager=u};
_.O(od,Vh);
od.prototype.resolveCommand=function(q,w){var u=this,y,e,t,X,G,n,N,Q,I,U,d,V;return _.F(function(J){switch(J.nextAddress){case 1:y=_.C(q,_.AI);if(!y)return J.return();var a,b=y.panelIdentifier||((a=y.identifier)==null?void 0:a.tag);if(!b)throw Error("xi");e=b;return _.H(J,u.controller.isVisible(e,!0),2);case 2:if((t=J.yieldResult)&&y.blockIfPanelOpen)return J.return();n=(G=(X=u.controller).getPanelContent)==null?void 0:G.call(X,e);if(!(a=n))if(y){var g;a=((g=y.globalConfiguration)==null?void 0:g.initialState)||
y.engagementPanel;if(g=!a)g=!!(y==null?0:(b=y.engagementPanelPresentationConfigs)==null?0:b.engagementPanelPopupPresentationConfig);g&&(a=_.LBH(y.panelIdentifier,y.identifier))}else a=void 0;N=a;Q=y.engagementPanelPresentationConfigs;I=y.engagementPanelExtras;return _.H(J,u.controller.showPanel(e,N,Q,I,(U=w)==null?void 0:(d=U.form)==null?void 0:d.element),3);case 3:if(!y.globalConfiguration){J.jumpTo(0);break}_.e$(u.JSC$15054_screenManager,32633);return _.H(J,_.cR(u.innertubeTransportService,q),5);
case 5:return V=J.yieldResult,u.JSC$15054_screenManager.graftServerVe(V.trackingParams),_.H(J,u.controller.updatePanel(e,V.content,!0,I,void 0,V.updatePanelContinuationData),0)}})};
od[Ld]=[_.oi,_.ib,_.WY];var VD=function(q,w){this.controller=q;this.panelLoadingStrategy=w};
_.O(VD,Vh);VD.prototype.resolveCommand=function(q,w){var u=this,y,e,t,X,G,n;return _.F(function(N){y=_.C(q,_.VYc);if((e=y)==null||!e.panelLoadingStrategy)return N.return();G=STx(u.controller,(t=w)==null?void 0:(X=t.form)==null?void 0:X.element);n=function(Q){return _.F(function(I){return Q.sheetViewModel?_.H(I,u.controller.openSheet({viewModel:Q.sheetViewModel},G),0):I.return()})};
return _.H(N,u.panelLoadingStrategy.execute({command:q,data:y.panelLoadingStrategy,renderFn:n,createScreenConfig:{layer:0}}),0)})};
VD[Ld]=[_.ru,dh];var ft=function(q,w){this.controller=q;this.JSC$15062_commandHandler=w};
_.O(ft,Vh);ft.prototype.resolveCommand=function(q,w){var u=this,y,e,t;return _.F(function(X){if(X.nextAddress==1){y=_.C(q,Wvx);var G=_.C(y.showCommand,_.AI),n,N,Q=(N=G==null?void 0:G.panelIdentifier)!=null?N:G==null?void 0:(n=G.identifier)==null?void 0:n.tag;if(!Q)throw Error("yi");e=Q;return _.H(X,u.controller.isVisible(e),2)}return(t=X.yieldResult)?_.H(X,u.controller.hidePanel(e),0):_.H(X,u.JSC$15062_commandHandler.resolveCommand(y.showCommand,w),0)})};
ft[Ld]=[_.ib,_.PG];var mW=function(q,w,u){this.innertubeTransportService=q;this.controller=w;this.JSC$15065_screenManager=u};
_.O(mW,Vh);
mW.prototype.resolveCommand=function(q){var w=this,u,y,e,t,X,G,n,N,Q,I,U,d,V,J,a,b,g,l,S,eH,x,P4;return _.F(function(C7){switch(C7.nextAddress){case 1:return y=u=_.C(q,syx),e=y.targetPanelIdentifier,t=y.contentSourcePanelIdentifier,X=y.globalConfiguration,((G=e)==null?0:G.tag)&&((n=t)==null?0:n.tag)?X?_.H(C7,w.controller.showPanel(e.tag,_.LBH(e.tag,e),void 0,void 0,void 0),5):_.H(C7,(U=(I=w.controller).getPanel)==null?void 0:U.call(I,t.tag),4):C7.return();case 4:d=C7.yieldResult;N=(V=d)==null?void 0:
(a=(J=V).getPanelContent)==null?void 0:a.call(J);C7.jumpTo(3);break;case 5:return _.H(C7,_.cR(w.innertubeTransportService,q),6);case 6:b=C7.yieldResult,((g=b)==null?0:g.trackingParams)&&w.JSC$15065_screenManager.graftServerVe(b.trackingParams),N=(l=b)==null?void 0:l.content,Q=(S=b)==null?void 0:S.updatePanelContinuationData;case 3:if(x=(eH=N)==null?void 0:eH.engagementPanelSectionListRenderer)return _.H(C7,w.controller.showPanel(e.tag,void 0,void 0,void 0,void 0,{content:x.content,secondaryHeaderContent:(P4=
x.header)!=null?P4:{},targetId:x.targetId},Q),0);C7.jumpTo(0)}})};
mW[Ld]=[_.oi,_.ib,_.WY];var A8=function(q,w){this.JSC$15073_commandHandler=q;this.store=w};
_.O(A8,Vh);A8.prototype.resolveCommand=function(q){var w=this,u,y,e,t,X;return _.F(function(G){if(G.nextAddress==1)return(u=_.C(q,OMF))?_.H(G,_.Fu(),2):G.return();y=G.yieldResult;if(!y)return G.return();Bwo(y,w.store,(e=u)==null?void 0:e.languageCode);t=y.isSubtitlesOn()?_.ID("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.ID("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");X=_.xN(t);w.JSC$15073_commandHandler.resolveCommand(X);_.HI(G)})};
A8[Ld]=[_.PG,FN];var J8=function(q,w){this.shortsPlayerPromise=q;this.JSC$15077_commandHandler=w};
_.O(J8,Vh);
J8.prototype.resolveCommand=function(q){var w=this,u,y,e,t,X,G,n,N;return _.F(function(Q){if(Q.nextAddress==1)return(u=_.C(q,gQX))?_.H(Q,w.shortsPlayerPromise,2):Q.return();y=Q.yieldResult;var I=x3y(y);I!=null&&I.length||(y.loadModule("captions"),I=x3y(y));e=I;if((t=e)==null||!t.length)return X=_.ID("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),G=_.xN(X),w.JSC$15077_commandHandler.resolveCommand(G),Q.return();y.toggleSubtitles();n=y.isSubtitlesOn()?_.ID("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.ID("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");N=_.xN(n);w.JSC$15077_commandHandler.resolveCommand(N);_.HI(Q)})};
J8[Ld]=[_.OUa,_.PG];var zg=function(q){this.JSC$15080_playerPromise=q};
_.O(zg,Vh);zg.prototype.resolveCommand=function(q){var w=this,u,y,e,t;return _.F(function(X){if(X.nextAddress==1)return(u=_.C(q,nQX))?_.H(X,w.JSC$15080_playerPromise,2):X.return();y=X.yieldResult;e=y.getVideoData().video_id;u.videoId===e&&(t=Number(u.offsetFromVideoStartMilliseconds),t>=0&&y.seekTo(t/1E3));_.HI(X)})};
zg[Ld]=[_.kH];var haX=_.na("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),ad=function(q){this.store=q};
_.O(ad,Vh);
var jsk=function(q){var w,u,y,e;return _.F(function(t){if(t.nextAddress==1)return w=_.Et("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,u=_.Et("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,y=w||u,q.mainAppPlayer=new gt(y),_.H(t,q.mainAppPlayer.api,2);e=t.yieldResult;e.addEventListener("onStateChange",q.JSC$15084_playerStateChangeListener.bind(q));document.addEventListener("yt-page-data-updated",q.pauseOnNavigation.bind(q));window.addEventListener("state-navigatestart",
q.pauseOnNavigation.bind(q));_.HI(t)})};
ad.prototype.JSC$15084_playerStateChangeListener=function(q){switch(q){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"}lkT(this)};
var lkT=function(q){q.store.dispatch(_.IH("sfvAudioItemCurrentlyPlayingEntity",haX,{key:haX,externalVideoId:q.externalVideoId,sfvAudioItemPlaybackState:q.playbackState,nowPlayingEntityValue:q.nowPlayingEntityValue}))};
ad.prototype.pauseOnNavigation=function(){var q=this,w,u,y,e;return _.F(function(t){if(t.nextAddress==1){if(!q.mainAppPlayer){var X=new _.fv("Error: mainAppPlayer is unavailable",q.mainAppPlayer);_.vm(X);return t.return()}return _.H(t,q.mainAppPlayer.api,2)}w=t.yieldResult;y=(u=w)==null?void 0:u.getPlayerState();y!==1||(e=w)!=null&&e.pauseVideo();_.HI(t)})};
ad.prototype.playVideo=function(q,w,u){var y=this,e,t;return _.F(function(X){if(X.nextAddress==1)return _.H(X,(e=y.mainAppPlayer)==null?void 0:e.api,2);t=X.yieldResult;if(!y.mainAppPlayer||!t){var G=new _.fv("Error: mainAppPlayer is unavailable",y.mainAppPlayer);_.vm(G);return X.return()}return _.H(X,y.mainAppPlayer.loadVideoWithPlayerVars({videoId:y.externalVideoId,audio_only:"1",start:q/1E3,end:q/1E3+w,player_params:u}),0)})};
ad.prototype.pauseVideo=function(){var q=this,w,u;return _.F(function(y){if(y.nextAddress==1){if(!q.mainAppPlayer){var e=new _.fv("Error: mainAppPlayer is unavailable",q.mainAppPlayer);_.vm(e);return y.return()}return _.H(y,q.mainAppPlayer.api,2)}w=y.yieldResult;(u=w)==null||u.pauseVideo();_.HI(y)})};
ad.prototype.resolveCommand=function(q){var w=this,u,y,e,t,X,G,n,N,Q,I,U,d,V,J,a,b,g,l,S;return _.F(function(eH){if(eH.nextAddress==1)return u=_.C(q,$dT),e=(y=u)==null?void 0:y.nowPlayingEntityValue,X=(t=u)==null?void 0:t.externalVideoId,I=Number((Q=(G=u)==null?void 0:(n=G.defaultStartPoints)==null?void 0:(N=n[0])==null?void 0:N.offsetMs)!=null?Q:"0"),b=Number((a=(U=u)==null?void 0:(d=U.defaultStartPoints)==null?void 0:(V=d[0])==null?void 0:(J=V.duration)==null?void 0:J.seconds)!=null?a:"15"),S=(l=
(g=u)==null?void 0:g.playerParams)!=null?l:"",e&&X?w.mainAppPlayer?eH.jumpTo(2):_.H(eH,jsk(w),2):eH.return();if(eH.nextAddress!=6){if(w.nowPlayingEntityValue&&e===w.nowPlayingEntityValue)return w.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.H(eH,w.pauseVideo(),0):_.H(eH,w.playVideo(I,b,S),0);w.externalVideoId=X;w.nowPlayingEntityValue=e;w.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.H(eH,w.playVideo(I,b,S),6)}lkT(w);return eH.jumpTo(0)})};
ad[Ld]=[FN];var Dv=function(q){this.JSC$15101_commandHandler=q};
_.O(Dv,Vh);Dv.prototype.resolveCommand=function(q,w){var u=this,y,e,t,X,G;return _.F(function(n){if(n.nextAddress==1)return(y=_.C(q,orx))?_.H(n,_.Fu(),2):n.return();e=n.yieldResult;if(!e)return n.return();(t=yJu(e))?u.JSC$15101_commandHandler.resolveCommand(t,w):(X=_.ID("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),G=_.xN(X),u.JSC$15101_commandHandler.resolveCommand(G));_.HI(n)})};
Dv[Ld]=[_.PG];var Zv=function(q){this.JSC$15104_playerPromise=q};
_.O(Zv,Vh);Zv.prototype.resolveCommand=function(q){var w=this,u,y,e,t,X;return _.F(function(G){if(G.nextAddress==1){u=_.C(q,HdP);if(!u)return G.return();y=u.overlayRenderer;return y?(e=_.C(y,dY3))?_.H(G,w.JSC$15104_playerPromise,3):G.jumpTo(0):G.return()}t=G.yieldResult;t.renderChapterSeekingAnimation(1,_.lA(e.text),(X=e.icon)==null?void 0:X.iconType);_.HI(G)})};
Zv[Ld]=[_.kH];var pt=function(q){this.store=q};
_.O(pt,Vh);
pt.prototype.resolveCommand=function(q){var w=this,u,y,e;return _.F(function(t){if(t.nextAddress==1){u=_.C(q,fSZ);if(!u)return t.return();y="";(e=w.store.getState().collabInviteLink)&&u.id===e.playlistId?y=e.inviteLinkURL:u.shortUrl&&(y=u.shortUrl);return y?_.H(t,navigator.clipboard.writeText(y),3):t.jumpTo(0)}var X={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.ID("COPY_LINK_SUCCESS_TOAST")}}}}};_.tG().resolve(_.PG).resolveCommand(X);_.HI(t)})};
pt[Ld]=[eb];var $A=function(q,w){this.innertubeTransportService=q;this.JSC$15114_commandHandler=w};
_.O($A,Vh);$A.prototype.resolveCommand=function(q,w){var u=this,y,e,t,X,G,n,N,Q,I,U;return _.F(function(d){if(d.nextAddress==1)return(y=_.C(q,_.pG))?_.H(d,_.cR(u.innertubeTransportService,q,(e=w)==null?void 0:e.form),2):d.return();(t=d.yieldResult)&&t.errorMetadata&&(X=t,G=_.xN(X.error.message),u.JSC$15114_commandHandler.resolveCommand(G));n=t;if((N=n)==null?0:N.actions)for(Q=_.P(n.actions),I=Q.next();!I.done;I=Q.next())U=I.value,u.JSC$15114_commandHandler.resolveCommand(U);_.HI(d)})};
$A[Ld]=[_.oi,_.PG];var v5=function(){};
_.O(v5,Vh);v5.prototype.resolveCommand=function(q){var w;return _.F(function(u){w=_.C(q,iyT);if(!w)return u.return();(new s1x(w)).show();_.HI(u)})};_.bH=new _.MH("PLAYLIST_EDIT_CONTROLLER_TOKEN");var YA=function(q,w,u,y){this.store=q;this.innertubeTransportService=w;this.controller=u;this.JSC$15122_commandHandler=y};
_.O(YA,Vh);
YA.prototype.resolveCommand=function(q,w){var u=this,y,e,t,X,G,n,N,Q,I,U,d,V,J,a,b,g,l,S,eH,x,P4,C7,mu,Os,YJ,ao;return _.F(function(bc){if(bc.nextAddress==1){y=_.C(q,_.AO);if(!y)return bc.return();if(y.clientActions){e=_.P(y.clientActions);for(t=e.next();!t.done;t=e.next())X=t.value,u.JSC$15122_commandHandler.resolveCommand(X);var Ro,K7=w==null?void 0:(Ro=w.form)==null?void 0:Ro.element;K7&&_.t7(K7,"yt-dismissible-item-action",y.clientActions)}return _.H(bc,_.cR(u.innertubeTransportService,q,(G=w)==
null?void 0:G.form),2)}if(n=bc.yieldResult)n.errorMetadata?(N=n,Q=_.xN(N.error.message),u.JSC$15122_commandHandler.resolveCommand(Q),"error"in n&&((I=w)==null?0:(U=I.commandController)==null?0:U.onServerError)&&((d=w)==null||(V=d.commandController)==null||V.onServerError(q,n))):(J=w)==null||(a=J.commandController)==null||(g=(b=a).onSuccess)==null||g.call(b,q,n);l=n;((S=l)==null?0:S.collaborationInviteLink)&&y.playlistId&&(_.T("web_enable_invite_collaborators_link")||_.T("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
u.store.dispatch(_.tr({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:y.playlistId,inviteLinkUrl:l.collaborationInviteLink}}));((eH=l)==null?0:eH.redirectEndpoint)&&u.JSC$15122_commandHandler.resolveCommand(l.redirectEndpoint);((x=l)==null?0:(P4=x.newHeader)==null?0:P4.playlistHeaderRenderer)?L1G(u.controller,l.newHeader.playlistHeaderRenderer):((C7=l)==null?0:(mu=C7.newHeader)==null?0:mu.musicEditablePlaylistDetailHeaderRenderer)&&L1G(u.controller,l.newHeader.musicEditablePlaylistDetailHeaderRenderer);
u.controller.playlistVideoListElement&&((Os=l)==null?0:(YJ=Os.playlistEditResults)==null?0:(ao=YJ[0])==null?0:ao.playlistEditVideoAddedResultData)&&((K7=u.controller.playlistVideoListElement)==null||K7.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:l.playlistEditResults[0].playlistEditVideoAddedResultData})));_.HI(bc)})};
YA[Ld]=[eb,_.oi,_.bH,_.PG];var gh=function(q,w){this.controller=q;this.JSC$15132_commandHandler=w};
_.O(gh,Vh);gh.prototype.resolveCommand=function(q,w){var u=this,y,e,t;return _.F(function(X){y=_.C(q,mGk);u.controller.showRefreshPill&&((e=y)==null?0:e.command)&&(u.JSC$15132_commandHandler.resolveCommand((t=y)==null?void 0:t.command,w),u.controller.showRefreshPill=!1);_.HI(X)})};
gh[Ld]=[_.lX,_.PG];var Eo=function(q,w){this.store=q;this.JSC$15136_commandHandler=w||_.nx.instance};
_.O(Eo,Vh);Eo.prototype.resolveCommand=function(q,w){var u=this,y,e,t,X,G,n,N,Q,I,U;return _.F(function(d){y=_.C(q,EfX);e=u.store.getState().radioButtonGroup;if((t=y)==null?0:t.command)u.JSC$15136_commandHandler.resolveCommand((X=y)==null?void 0:X.command,w);else if(((G=y)==null?void 0:G.formId)===e.currentFormId)for(n=Object.values(e.commandsMap),N=_.P(n),Q=N.next();!Q.done;Q=N.next()){I=Q.value;U=_.Zh(I);if(!U)return d.return();u.JSC$15136_commandHandler.resolveCommand(U,w)}_.HI(d)})};
Eo[Ld]=[eb];var Rd=new _.MH("USER_PREFS");var c5=function(q){this.JSC$15140_prefCookie=q};
_.O(c5,Vh);c5.prototype.resolveCommand=function(q){var w=this,u;return _.F(function(y){(u=_.C(q,Gsr))&&typeof u.useListView==="boolean"&&(_.TM(0,155,u.useListView),w.JSC$15140_prefCookie.save());_.HI(y)})};
c5[Ld]=[Rd];var Sb=function(q){this.JSC$15144_prefCookie=q};
_.O(Sb,Vh);Sb.prototype.resolveCommand=function(q){var w=this,u,y,e,t,X;return _.F(function(G){u=_.C(q,UG6);if((y=u)==null||!y.gl)return G.return();e=u.gl;t={persist_gl:"1",gl:e};w.JSC$15144_prefCookie.set("gl",e);w.JSC$15144_prefCookie.save();X=pka(t);_.Zu(X);_.HI(G)})};
Sb[Ld]=[Rd];var h8=function(q){this.JSC$15148_prefCookie=q};
_.O(h8,Vh);h8.prototype.resolveCommand=function(q){var w=this,u,y;return _.F(function(e){u=_.C(q,Jvk);if(!u)return e.return();y=!1;u.flagNum&&typeof u.value==="boolean"?(_.TM(0,u.flagNum,u.value),y=!0):u.key&&typeof u.stringValue==="string"&&(w.JSC$15148_prefCookie.set(u.key,u.stringValue),y=!0);y&&w.JSC$15148_prefCookie.save();_.HI(e)})};
h8[Ld]=[Rd];var jb=new _.MH("PREF_STORAGE_PROMISE_TOKEN");var lH=function(q){this.JSC$15152_prefStoragePromise=q};
_.O(lH,Vh);lH.prototype.resolveCommand=function(q){var w=this,u,y;return _.F(function(e){if(e.nextAddress==1)return(u=_.C(q,aS3))?_.H(e,w.JSC$15152_prefStoragePromise,2):e.return();y=e.yieldResult;return y===void 0||u.key===void 0||u.value===void 0?e.return():_.H(e,y.set(u.key,u.value),0)})};
lH[Ld]=[jb];var MEX=function(q){this.innertubeTransportService=q};
_.O(MEX,Vh);MEX.prototype.resolveCommand=function(q,w){var u=this,y,e;return _.F(function(t){(y=_.C(q,_.Gwr))&&y&&y.isFirstRequest&&(_.aD("search_overview_answer"),_.D_("so_rq",void 0,"search_overview_answer"));return _.H(t,_.cR(u.innertubeTransportService,q,(e=w)==null?void 0:e.form),0)})};
MEX[Ld]=[_.oi];var K1r=function(){};
_.O(K1r,Vh);
K1r.prototype.resolveCommand=function(q){var w,u,y,e,t,X,G,n,N;return _.F(function(Q){w=_.C(q,GI6);if((u=w)==null?0:u.sectionIdentifier){if(w.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(e=(y=document.getElementsByTagName(w.sectionIdentifier))==null?void 0:y.item(0))e.scrollIntoView({behavior:"smooth"}),(t=D_s(e))&&t.focus({preventScroll:!0});return Q.return()}X=document.querySelector("[section-identifier="+w.sectionIdentifier+"]");G=document.querySelector("[section-identifier="+w.referenceSectionIdentifier+
"]");if(!X)return Q.return();n=w.verticalScrollOffsetDp?w.verticalScrollOffsetDp:0;G&&(n-=G.offsetTop);window.scrollTo({top:X.offsetTop+n,behavior:"smooth"});(N=D_s(X))&&N.focus({preventScroll:!0})}_.HI(Q)})};var Lt=function(){};
_.O(Lt,Vh);
Lt.prototype.resolveCommand=function(q){var w,u,y,e,t,X,G;return _.F(function(n){if(n.nextAddress==1){w=_.C(q,at$);if(!w||!w.imageBytes||!navigator.clipboard)return n.return();if(w.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.vm(Error("zi")),n.return();_.tD(n,2);y=(u=w)==null?void 0:u.imageBytes;e=y.replace(/-/g,"+").replace(/_/g,"/");t=Ehf(e);X={};G=[new ClipboardItem((X[t.type]=t,X))];return _.H(n,navigator.clipboard.write(G),4)}if(n.nextAddress!=2)return _.jv(n,0);
_.nm(n);_.HI(n)})};var MJ=function(q,w){this.innertubeTransportService=q;this.JSC$15167_commandHandler=w};
_.O(MJ,Vh);MJ.prototype.resolveCommand=function(q,w){var u=this,y,e,t,X,G;return _.F(function(n){if(n.nextAddress==1)return(y=_.C(q,DsF))?_.H(n,_.cR(u.innertubeTransportService,q,(e=w)==null?void 0:e.form),2):n.return();(t=n.yieldResult)&&t.errorMetadata&&y.onFailureCommand&&u.JSC$15167_commandHandler.resolveCommand(y.onFailureCommand);X=t;((G=X)==null?0:G.shareCommand)&&u.JSC$15167_commandHandler.resolveCommand(X.shareCommand,w);_.HI(n)})};
MJ[Ld]=[_.oi,_.PG];var Kt=function(){};
_.O(Kt,Vh);Kt.prototype.resolveCommand=function(q){var w,u;return _.F(function(y){w=_.C(q,VVa);if(!w||!navigator.share)return y.return();u={url:w.url};try{return y.return(navigator.share(u))}catch(e){}_.HI(y)})};var B5=function(){};
_.O(B5,Vh);B5.prototype.resolveCommand=function(){return _.F(function(q){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.HI(q)})};var xA=function(q){this.JSC$15177_navigationConfirmationService=q};
_.O(xA,Vh);xA.prototype.resolveCommand=function(){var q=this;return _.F(function(w){q.JSC$15177_navigationConfirmationService.cancelPendingNavigation();_.HI(w)})};
xA[Ld]=[F8];var qn=function(q){this.JSC$15180_screenManager=q};
_.O(qn,Vh);qn.prototype.resolveCommand=function(q,w){var u=this,y,e,t,X,G,n,N;return _.F(function(Q){e=(y=w.form)==null?void 0:y.event;X=(t=w.form)==null?void 0:t.element;if(!e)throw new _.fv("Event not passed in when resolving command");G=_.P(e.composedPath());for(n=G.next();!n.done;n=G.next())if(N=n.value,N.tagName==="YT-COPY-LINK-RENDERER")return N.copyUrlToClipboard(),X&&_.gm(u.JSC$15180_screenManager,X),Q.return();_.HI(Q)})};
qn[Ld]=[_.WY];var wv=function(){this.JSC$15184_miniAppClientDataProvider=_.tG().resolve(_.fc)};
_.O(wv,Vh);wv.prototype.resolveCommand=function(){var q=this,w,u;return _.F(function(y){if(q.JSC$15184_miniAppClientDataProvider.clientData.has("video_id")){var e=q.JSC$15184_miniAppClientDataProvider,t=e.clientData.get("video_id");t&&e.clientData.delete("video_id");w="https://youtube.com/watch?v="+t;u=Iw(w);if(u===void 0)throw Error("Ai`"+w);_.aw(window,u)}_.HI(y)})};var uw=function(){};
_.O(uw,Vh);uw.prototype.resolveCommand=function(){return _.F(function(q){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.HI(q)})};var yC=function(){};
_.O(yC,Vh);yC.prototype.resolveCommand=function(){var q;return _.F(function(w){if(w.nextAddress==1)return _.H(w,_.yY6(window.document.documentElement),2);(q=document.querySelector("mini-app-container-view-model iframe"))&&q.focus();_.HI(w)})};var ez=function(q){this.JSC$15191_navigationConfirmationService=q};
_.O(ez,Vh);
ez.prototype.resolveCommand=function(){var q=this;return _.F(function(w){var u=q.JSC$15191_navigationConfirmationService,y=_.tG().resolve(_.yA),e;if(((e=u.navigateParams)==null?void 0:e.data)!==void 0){var t;_.nIr(y,u.navigateParams.endpoint,u.navigateParams.data,(t=u.navigateParams.navigationType)!=null?t:1,u.navigateParams.tempData,u.navigateParams.isMiniplayer,void 0,!0);u.navigateParams=void 0;u.customConfirmationCommand=void 0}else u.navigateParams&&(y.navigate(u.navigateParams.endpoint,u.navigateParams.reload,
u.navigateParams.params,u.navigateParams.tempData,u.navigateParams.requestType,u.navigateParams.createScreenConfig,!0),u.navigateParams=void 0,u.customConfirmationCommand=void 0);_.HI(w)})};
ez[Ld]=[F8];var kU=function(){};
_.O(kU,Vh);kU.prototype.resolveCommand=function(){return _.F(function(q){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.HI(q)})};var tZ=function(q){this.JSC$15196_prefStorage=q};
_.O(tZ,Vh);tZ.prototype.resolveCommand=function(){var q=this,w,u;return _.F(function(y){switch(y.nextAddress){case 1:return _.H(y,q.JSC$15196_prefStorage,2);case 2:return(w=y.yieldResult)?_.H(y,w.set("sfvle",!1),3):y.return();case 3:return _.H(y,w.set("sfvles",!0),4);case 4:u=_.UC(),_.TM(0,203,!1),_.TM(0,204,!0),u.save(),_.HI(y)}})};
tZ[Ld]=[jb];var PO=function(q){this.JSC$15199_prefStorage=q};
_.O(PO,Vh);PO.prototype.resolveCommand=function(){var q=this,w,u;return _.F(function(y){switch(y.nextAddress){case 1:return _.H(y,q.JSC$15199_prefStorage,2);case 2:return(w=y.yieldResult)?_.H(y,w.set("sfvle",!0),3):y.return();case 3:return _.H(y,w.set("sfvles",!0),4);case 4:u=_.UC(),_.TM(0,203,!0),_.TM(0,204,!0),u.save(),_.HI(y)}})};
PO[Ld]=[jb];var BnT=new _.MH("SNACKBAR_CONTROLLER_TOKEN");var X2=function(q){this.controller=q};
_.O(X2,Vh);X2.prototype.resolveCommand=function(q){var w=this,u,y,e;return _.F(function(t){u=_.C(q,jZF);if(!u)return t.return();y=_.C(u.content,eI$);if(!y)return t.return();var X=w.controller,G=y,n=(e=u.animationStyle)!=null?e:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(X.showSnackbarFn)X.showSnackbarFn({snackbarViewModel:G,animationStyle:n,durationMs:u.durationSeconds*1E3});else throw Error("ij");_.HI(t)})};
X2[Ld]=[BnT];var F2=function(){};
_.O(F2,Vh);F2.prototype.resolveCommand=function(q){var w;return _.F(function(u){w=_.C(q,zDk);if(!w||typeof w.key!=="string"||typeof w.value!=="string")return u.return();window.localStorage.setItem(w.key,w.value);_.HI(u)})};var GU=function(q){this.store=q};
_.O(GU,Vh);GU.prototype.resolveCommand=function(q){var w=this,u;return _.F(function(y){u=_.C(q,xyo);if(!u||!u.stepId||!u.token)return y.return();w.store.dispatch(V8j({stepId:u.stepId,token:u.token,isSelected:!1}));_.HI(y)})};
GU[Ld]=[eb];var nP=function(q,w,u){this.innertubeTransportService=q;this.store=w;this.JSC$15215_screenManager=u};
_.O(nP,Vh);
nP.prototype.resolveCommand=function(q){var w=this,u,y,e,t,X,G,n,N,Q,I,U,d,V,J,a,b,g,l,S,eH,x,P4,C7;return _.F(function(mu){u=_.C(q,ZCX);if(!u||(y=u.stepIds)==null||!y.length)return mu.return();e=w.store.getState().talkToRecs;t=[];X=[];G=_.P(u.stepIds);for(n=G.next();!n.done;n=G.next())for(N=n.value,Q=void 0,(I=(Q=e.stepStates[N])==null?void 0:Q.userQuery)&&X.push({userQuery:I.userQuery,userQueryToken:I.token}),U=void 0,d=(U=e.stepStates[N])==null?void 0:U.selectionStates,V=_.P(Object.entries(d)),J=
V.next();!J.done;J=V.next())a=J.value,b=_.P(a),g=b.next().value,l=b.next().value,S=g,eH=l,eH.isSelected&&t.push(S);x={selectedChipTokens:t,userQueries:X,submittedStepIds:u.stepIds};P4={browseTalk2recsFormData:x};u.browseEndpoint?(C7=q,_.AB(C7,_.Ii,u.browseEndpoint)):u.command&&(C7=u.command);return C7?_.H(mu,_.cR(w.innertubeTransportService,C7,{formData:P4,disableCache:!0}).then(function(Os){(Os==null?0:Os.trackingParams)&&w.JSC$15215_screenManager.graftServerVe(Os==null?void 0:Os.trackingParams)}),
0):mu.return()})};
nP[Ld]=[_.oi,eb,_.WY];var HO=function(q){this.store=q};
_.O(HO,Vh);HO.prototype.resolveCommand=function(q){var w=this,u;return _.F(function(y){u=_.C(q,BKo);if(!u||!u.stepId||!u.token)return y.return();w.store.dispatch(V8j({stepId:u.stepId,token:u.token,isSelected:!0}));_.HI(y)})};
HO[Ld]=[eb];var WO=function(q){this.store=q};
_.O(WO,Vh);WO.prototype.resolveCommand=function(q,w){var u=this,y,e,t,X,G;return _.F(function(n){y=_.C(q,prr);if(!y||!y.stepId||!y.userQueryToken)return n.return();G=(X=(e=w)==null?void 0:(t=e.form)==null?void 0:t.userQuery)!=null?X:"";u.store.dispatch(_.tr({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:y.stepId,userQueryToken:y.userQueryToken,userQuery:G}}));_.HI(n)})};
WO[Ld]=[eb];_.xoj=new _.MH("TIMELY_ACTIONS_CONTROLLER_TOKEN");var sw=function(q){this.controller=q};
_.O(sw,Vh);sw.prototype.resolveCommand=function(q){var w=this,u,y,e,t;return _.F(function(X){u=_.C(q,P5P);if(!u)return X.return();y=u;e=y.id;t=y.isVisible;if(e===void 0||t===void 0)return X.return();var G;(G=w.controller.timelyActionsMap.get(e))==null||G(e,t);_.HI(X)})};
sw[Ld]=[_.xoj];var qUP=function(){this.timelyActionsMap=new Map};var Nn=function(q){this.JSC$15242_commandHandler=q};
_.O(Nn,Vh);Nn.prototype.resolveCommand=function(q){var w=this,u,y,e,t,X;return _.F(function(G){u=_.C(q,_.Fpa);if(!u)return G.return();t=(y=u.item)==null?void 0:(e=y.notificationTextRenderer)==null?void 0:e.successResponseText;if(!t)return G.return();X=_.BQ(t);w.JSC$15242_commandHandler.resolveCommand(X);_.HI(G)})};
Nn[Ld]=[_.PG];var QC=function(q,w){this.innertubeTransportService=q;this.JSC$15247_playerApiPromise=w};
_.O(QC,Vh);
QC.prototype.resolveCommand=function(q){var w=this,u,y,e,t,X,G,n,N,Q;return _.F(function(I){if(I.nextAddress==1)return _.H(I,w.JSC$15247_playerApiPromise,2);u=I.yieldResult;y=u.getOption("captions","track");e=Object.assign({},_.C(q,_.xGF));(X=(t=u.getVideoData())==null?void 0:t.video_id)?e.externalVideoId=X:_.jZ(Error("Bi"));if((G=y)==null?0:G.languageCode)e.languageCode=y.languageCode;if((n=y)==null?0:n.kind)e.kind=y.kind;if((N=y)==null?0:N.name)e.name=y.name;Q=Object.assign({},q,{getTranscriptEndpoint:e});return _.H(I,
_.cR(w.innertubeTransportService,Q),0)})};
QC[Ld]=[_.oi,_.kH];var I0=function(){};
_.O(I0,Vh);I0.prototype.resolveCommand=function(q){var w,u,y,e,t,X,G,n;return _.F(function(N){w=_.C(q,gfk);if((u=w)==null||!u.paramKeyValuePairs)return N.return();y=window.location.href;e=_.P(w.paramKeyValuePairs);for(t=e.next();!t.done;t=e.next())X=t.value,X.key&&X.value&&(G={},y=_.Bl(y,(G[X.key]=X.value,G)));n=_.tG().resolve(_.tH);_.kz(n,y);_.HI(N)})};var iw=function(q,w){this.JSC$15254_commandHandler=q;this.innertubeTransportService=w};
_.O(iw,Vh);
iw.prototype.resolveCommand=function(q,w){var u=this,y,e,t,X,G,n,N,Q,I,U,d,V,J,a,b,g,l;return _.F(function(S){switch(S.nextAddress){case 1:return(t=(y=w)==null?void 0:(e=y.form)==null?void 0:e.element)&&_.js(t),X=_.UC().get("hl"),G="",_.tD(S,2),_.H(S,PW6(X),4);case 4:G=S.yieldResult;_.jv(S,3);break;case 2:return _.nm(S),t&&_.lr(t),_.vm(Error("Di"),"ERROR"),S.return();case 3:n=_.C(q,zIT);if(!n)return t&&_.lr(t),S.return();(I=(N=n.commerceActionConfig)==null?void 0:(Q=N.commandLifeCycleConfig)==null?
void 0:Q.onStartCommand)&&u.JSC$15254_commandHandler.resolveCommand(I);return _.H(S,_.cR(u.innertubeTransportService,q,{client_data:{paymentsClientToken:{token:G}}}),5);case 5:(U=S.yieldResult)?(t&&_.lr(t),((a=U)==null?0:a.command)&&u.JSC$15254_commandHandler.resolveCommand(U.command),(l=(b=n.commerceActionConfig)==null?void 0:(g=b.commandLifeCycleConfig)==null?void 0:g.onSuccessCommand)&&u.JSC$15254_commandHandler.resolveCommand(l)):(t&&_.lr(t),_.vm(Error("Ei")),(J=(d=n.commerceActionConfig)==null?
void 0:(V=d.commandLifeCycleConfig)==null?void 0:V.onFailureCommand)&&u.JSC$15254_commandHandler.resolveCommand(J)),_.HI(S)}})};
iw[Ld]=[_.PG,_.oi];var rv=function(q,w,u){this.store=q;this.JSC$15270_commandHandler=w;this.innertubeTransportService=u};
_.O(rv,Vh);
rv.prototype.resolveCommand=function(q,w){var u=this,y,e,t,X,G,n,N,Q,I;return _.F(function(U){y=_.C(q,aEX);e=y.googlePaymentPayload;y.onStartCommand&&u.JSC$15270_commandHandler.resolveCommand(y.onStartCommand);t=e.encryptedPurchaseParams;X=e.ypcLogWalletAnalyticDataEndpoint;G=y.serializedTransactionFlowLoggingParams;n=e.serializedPaymentsClientParams;N=y.ypcCujContext;I=Gzl(u.innertubeTransportService,(Q=w)==null?void 0:Q.form,t,X,G,n,N);return U.return(I.then(function(d){Xno(w==null?void 0:w.form,
!1);var V=u.store,J=u.JSC$15270_commandHandler,a=d.integratorData;a==null||a===""||d.error!=null?(String(d.error)==="-1"&&y.onDismissCommand?J.resolveCommand(y.onDismissCommand):String(d.error)!=="-1"&&y.onFailureCommand&&J.resolveCommand(y.onFailureCommand),String(d.error)!=="-1"&&String(d.error)!=="132"&&_.vm(Error("Fi"),"ERROR")):(y.googlePaymentEntityKey&&V.dispatch(_.IH("commerceAcquisitionClientPayloadEntity",y.googlePaymentEntityKey,{key:y.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:a,
fundsGuaranteeCallbackClientData:d.integratorClientCallbackData}}})),y.onSuccessCommand&&J.resolveCommand(y.onSuccessCommand));_.Hw()},function(d){Xno(w==null?void 0:w.form,!1);
_.vm(d,"ERROR");y.onFailureCommand&&u.JSC$15270_commandHandler.resolveCommand(y.onFailureCommand)}))})};
rv[Ld]=[FN,_.PG,_.oi];var Uw=function(q,w){this.JSC$15274_commandHandler=q;this.purchaseManager=w};
_.O(Uw,Vh);
Uw.prototype.resolveCommand=function(q){var w=this,u,y,e,t,X,G,n,N,Q;return _.F(function(I){u=_.C(q,DYx);((y=u)==null?0:(e=y.commandLifeCycleConfig)==null?0:e.onStartCommand)&&w.JSC$15274_commandHandler.resolveCommand(u.commandLifeCycleConfig.onStartCommand);if(!((t=u)==null?0:(X=t.googlePaymentPurchaseManagerPayload)==null?0:X.securePayloadBytes))return _.vm(Error("Gi"),"ERROR"),I.return();G=x4F(_.sX(u.googlePaymentPurchaseManagerPayload.securePayloadBytes));n=_.UC().get("hl");N=_.S6();XWF(G.serialize(),
n,function(U){N.resolve(U)},function(U){N.reject(U)},N.resolve);
Q=N.promise;return I.return(Q.then(function(U){if(U)if(U==null?0:U.errorCode){_.vm(Error("Hi`"+U.errorCode),"ERROR");var d,V;((d=u)==null?0:(V=d.commandLifeCycleConfig)==null?0:V.onFailureCommand)&&w.JSC$15274_commandHandler.resolveCommand(u.commandLifeCycleConfig.onFailureCommand)}else if(U==null?0:U.isCancelled){var J,a;((J=u)==null?0:(a=J.commandLifeCycleConfig)==null?0:a.onCancelCommand)&&w.JSC$15274_commandHandler.resolveCommand(u.commandLifeCycleConfig.onCancelCommand)}else{var b,g;((b=u)==
null?0:(g=b.commandLifeCycleConfig)==null?0:g.onSuccessCommand)&&w.JSC$15274_commandHandler.resolveCommand(u.commandLifeCycleConfig.onSuccessCommand)}},function(U){_.vm(U,"ERROR");
var d,V;((d=u)==null?0:(V=d.commandLifeCycleConfig)==null?0:V.onFailureCommand)&&w.JSC$15274_commandHandler.resolveCommand(u.commandLifeCycleConfig.onFailureCommand)}))})};
Uw[Ld]=[_.PG,F1X];var wox=function(q,w){this.JSC$15282_commandHandler=q;this.commandAllowlistOverride=w;var u;this.commandAllowlist=(u=this.commandAllowlistOverride)!=null?u:hE};
wox.prototype.handleResponse=function(q,w,u){var y,e=w==null?void 0:(y=w.config)==null?void 0:y.command;if(!e||this.commandAllowlist.some(function(t){return!!_.C(e,t)})){w=void 0;
u!==void 0&&(w={form:{element:u}});q.onResponseReceivedCommand&&this.JSC$15282_commandHandler.resolveCommand(q.onResponseReceivedCommand,w);q.onResponseReceivedAction&&this.JSC$15282_commandHandler.resolveCommand(q.onResponseReceivedAction,w);q.onResponseReceivedEndpoint&&this.JSC$15282_commandHandler.resolveCommand(q.onResponseReceivedEndpoint,w);q.command&&this.JSC$15282_commandHandler.resolveCommand(q.command,w);if(q.onResponseReceivedCommands)for(u=_.P(q.onResponseReceivedCommands),y=u.next();!y.done;y=
u.next())this.JSC$15282_commandHandler.resolveCommand(y.value,w);if(q.onResponseReceivedActions)for(u=_.P(q.onResponseReceivedActions),y=u.next();!y.done;y=u.next())this.JSC$15282_commandHandler.resolveCommand(y.value,w);if(q.onResponseReceivedEndpoints)for(u=_.P(q.onResponseReceivedEndpoints),y=u.next();!y.done;y=u.next())this.JSC$15282_commandHandler.resolveCommand(y.value,w);if(q.actions)for(q=_.P(q.actions),u=q.next();!u.done;u=q.next())this.JSC$15282_commandHandler.resolveCommand(u.value,w)}};
wox[Ld]=[_.PG,_.kF(WKs)];var uv3=new _.MH("INNERTUBE_TOKEN_SERVICE");var yyP=new _.MH("SCHEDULER_TOKEN");var epk=function(q){this.scheduler=q;q={};this.tokenMap=(q.app={},q.user={},q)};
epk.prototype.handleResponse=function(q,w){if(!w)throw Error("Ii");var u;if(q=(u=q.responseContext)==null?void 0:u.innertubeTokenJar){if(q.appTokens){var y,e,t;u=(y=w.innerTubeRequest.context)==null?void 0:(e=y.request)==null?void 0:(t=e.innertubeTokenJar)==null?void 0:t.appTokens;k1c(this,q.appTokens,this.tokenMap.app,u)}if(q.userTokens){var X,G,n;w=(X=w.innerTubeRequest.context)==null?void 0:(G=X.request)==null?void 0:(n=G.innertubeTokenJar)==null?void 0:n.userTokens;k1c(this,q.userTokens,this.tokenMap.user,
w)}}};
epk.prototype.processContext=function(q){q.request||(q.request={});var w=Object.keys(this.tokenMap.app).length,u=Object.keys(this.tokenMap.user).length;if(w||u)q.request.innertubeTokenJar={},w&&(q.request.innertubeTokenJar.appTokens=[].concat(_.Cm(Object.values(this.tokenMap.app).flat()))),u&&(q.request.innertubeTokenJar.userTokens=[].concat(_.Cm(Object.values(this.tokenMap.user).flat())))};
var k1c=function(q,w,u,y){w=_.P(w);for(var e=w.next(),t={};!e.done;t={token$jscomp$137:void 0},e=w.next()){t.token$jscomp$137=e.value;if(t.token$jscomp$137.type===void 0)throw new _.fv("InnerTube token has no type",t.token$jscomp$137);if(t.token$jscomp$137.clearTokens)u[t.token$jscomp$137.type]=[];else if(t.token$jscomp$137.value!==void 0){u[t.token$jscomp$137.type]||(u[t.token$jscomp$137.type]=[]);if(y!==void 0&&y.length){e=_.P(y);for(var X=e.next(),G={};!X.done;G={requestToken:void 0},X=e.next())G.requestToken=
X.value,X=u[t.token$jscomp$137.type].findIndex(function(n){return function(N){return N===n.requestToken||(0,_.db.equals)(N,n.requestToken)}}(G)),X>-1&&u[t.token$jscomp$137.type].splice(X,1)}u[t.token$jscomp$137.type].push(t.token$jscomp$137);
t.token$jscomp$137.maxAgeSeconds&&Number(t.token$jscomp$137.maxAgeSeconds)>0&&q.scheduler.addLowPriorityJob(function(n){return function(){var N=u[n.token$jscomp$137.type].indexOf(n.token$jscomp$137);N>-1&&u[n.token$jscomp$137.type].splice(N,1)}}(t),Number(t.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.fv("InnerTube token has no value",t.token$jscomp$137);
}};
epk[Ld]=[yyP];var t5T=new _.MH("LOCAL_INNERTUBE_ROUTER_TOKEN"),PiZ=new _.MH("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var TU=function(q){this.serviceMap=q};
TU.prototype.shouldPreferLocalResponse=function(q,w){return(q=XoG(this,q))?q.shouldPreferLocalResponse(w):!1};
TU.prototype.localInnertubeResponse=function(q,w){var u=this,y;return _.F(function(e){return(y=XoG(u,q))?e.return(y.localInnertubeResponse(w)):e.return(Promise.reject(Error("Ji")))})};
TU.prototype.canProvideFallbackResponse=function(q,w){return(q=XoG(this,q))?q.canProvideFallbackResponse(w):!1};
TU.prototype.localFallbackInnertubeResponse=function(q,w){var u=this,y;return _.F(function(e){return(y=XoG(u,q))?e.return(y.localFallbackInnertubeResponse(w)):e.return(Promise.reject(Error("Ji")))})};
var XoG=function(q,w){w=_.QV(w);return w?(q=q.serviceMap[w])?q:null:null};
TU[Ld]=[PiZ];var TT=function(){};
TT.prototype.shouldPreferLocalResponse=function(){return!1};
TT.prototype.localInnertubeResponse=function(){return _.F(function(q){return q.return(Promise.reject(Error("Ki")))})};
TT.prototype.canProvideFallbackResponse=function(){return!0};
TT.prototype.localFallbackInnertubeResponse=function(){var q,w,u;return _.F(function(y){q=dI("CLOSE_POPUP");w={openPopupAction:Hwy()};u={actions:[q,w]};return y.return(u)})};var Rcz=function(q,w){this.JSC$15332_upliftPromise=q;this.store=w};
_.k=Rcz.prototype;_.k.shouldPreferLocalResponse=function(q){var w=q.videoId,u;if(u=w)u=OHs(this.store.getState().entities,q.videoId);return u&&o9M(this.store.getState().entities,w)?scM(this.store.getState().entities,q.playlistId):!1};
_.k.localInnertubeResponse=function(q){var w=this,u;return _.F(function(y){return(u=w.getPlayerResponse(q))?y.return(Promise.resolve(u)):y.return(Promise.reject(Error("Li")))})};
_.k.canProvideFallbackResponse=function(q){return!!q.videoId};
_.k.localFallbackInnertubeResponse=function(q){var w=this,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,w.JSC$15332_upliftPromise,2);u=w.getPlayerResponse(q);var e;u?e=y.return(Promise.resolve(u)):e=O1(w.store.getState().entities,q.videoId)?y.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.yU(_.ID("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:JTc()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
y.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.yU(_.ID("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:AT4()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return e})};
_.k.getPlayerResponse=function(q){return Bo7(this.store.getState().entities,q.videoId)};var UI=function(q,w){this.localPlayerService=q;this.localWatchNextService=w};
UI.prototype.shouldPreferLocalResponse=function(q){var w=q.playerRequest;q=q.watchNextRequest;return!!(w&&this.localPlayerService.shouldPreferLocalResponse(w)&&q&&this.localWatchNextService.shouldPreferLocalResponse(q))};
UI.prototype.localInnertubeResponse=function(q){var w=this,u,y,e,t;return _.F(function(X){if(X.nextAddress==1){u=q.playerRequest;y=q.watchNextRequest;if(!u||!y)throw new _.fv("Missing streaming request",q);return _.H(X,w.localPlayerService.localInnertubeResponse(u),2)}if(X.nextAddress!=3)return e=X.yieldResult,_.H(X,w.localWatchNextService.localInnertubeResponse(y),3);t=X.yieldResult;return X.return({playerResponse:e,watchNextResponse:t})})};
UI.prototype.canProvideFallbackResponse=function(q){var w=q.playerRequest;q=q.watchNextRequest;return!!(w&&this.localPlayerService.canProvideFallbackResponse(w)&&q&&this.localWatchNextService.canProvideFallbackResponse(q))};
UI.prototype.localFallbackInnertubeResponse=function(q){var w=this,u,y,e,t;return _.F(function(X){if(X.nextAddress==1)return u=q.playerRequest,y=q.watchNextRequest,u&&y?_.H(X,w.localPlayerService.localFallbackInnertubeResponse(u),2):X.return(Promise.reject(new _.fv("Missing streaming request",q)));if(X.nextAddress!=3)return e=X.yieldResult,_.H(X,w.localWatchNextService.localFallbackInnertubeResponse(y),3);t=X.yieldResult;return X.return({playerResponse:e,watchNextResponse:t})})};var I5=function(q){this.JSC$15342_persistentStorePromiseAccessor=q};
I5.prototype.shouldPreferLocalResponse=function(){return!1};
I5.prototype.localInnertubeResponse=function(){return _.F(function(q){return q.return(Promise.reject(Error("Mi")))})};
I5.prototype.canProvideFallbackResponse=function(){return!0};
I5.prototype.localFallbackInnertubeResponse=function(){var q=this,w,u;return _.F(function(y){return y.nextAddress==1?_.H(y,q.JSC$15342_persistentStorePromiseAccessor(),2):y.nextAddress!=3?(w=y.yieldResult)?_.H(y,w.get("service:guide:fallback"),3):y.return(Promise.reject(Error("Ni"))):(u=y.yieldResult)&&_.Pr(u)?y.return(NJz(_.Pr(u))):y.return(Promise.reject(Error("Oi")))})};var CC=function(){};
CC.prototype.shouldPreferLocalResponse=function(){return!1};
CC.prototype.localInnertubeResponse=function(){return _.F(function(q){return q.return(Promise.reject(Error("Pi")))})};
CC.prototype.canProvideFallbackResponse=function(){return!0};
CC.prototype.localFallbackInnertubeResponse=function(){var q,w,u;return _.F(function(y){q=dI("CLOSE_POPUP");w={openPopupAction:Hwy()};u={actions:[q,w]};return y.return(u)})};var Qk=function(){this.urlMap=FST;this.fallbackCommand=_.Wh};
Qk.prototype.shouldPreferLocalResponse=function(q){return(q=q.url)?!!G1j(this,q):!1};
Qk.prototype.localInnertubeResponse=function(q){var w=this,u;return _.F(function(y){return(u=q.url)?y.return(nnZ(q,G1j(w,u))):y.return(Promise.reject(Error("Qi")))})};
Qk.prototype.canProvideFallbackResponse=function(){return!0};
Qk.prototype.localFallbackInnertubeResponse=function(q){var w=this,u,y,e,t,X,G,n;return _.F(function(N){u=q.url;if(!u)return N.return(nnZ(q,w.fallbackCommand));if(y=G1j(w,u))return N.return(nnZ(q,y));e=void 0;t=_.QV(u);t==="/watch"&&(X=_.c2(u,"v"))&&(n=(G=_.c2(u,"list"))!=null?G:void 0,e=_.uA(X,n));e||(e=w.fallbackCommand);return N.return(nnZ(q,e))})};
var G1j=function(q,w){if(w)return q.urlMap[_.cf(w)]},nnZ=function(q,w){w&&q.parentTrackingParams&&(w.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:q.parentTrackingParams}},w.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:w})};var iU=function(q,w,u){this.JSC$15352_upliftPromise=q;this.store=w;this.JSC$15352_persistentStorePromiseAccessor=u};
iU.prototype.shouldPreferLocalResponse=function(){return!1};
iU.prototype.localInnertubeResponse=function(){return _.F(function(q){return q.return(Promise.reject(Error("Ri")))})};
iU.prototype.canProvideFallbackResponse=function(){return!0};
iU.prototype.localFallbackInnertubeResponse=function(){var q=this;return _.F(function(w){return w.return(HIj(q))})};
var HIj=function(q){var w,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,tI(q.JSC$15352_upliftPromise,q.store),2);w=y.yieldResult;u={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[Wfu(w)]}}}};return y.return(WS6(q,u))})},WS6=function(q,w){var u,y;
return _.F(function(e){if(e.nextAddress==1)return _.H(e,q.JSC$15352_persistentStorePromiseAccessor(),2);if(e.nextAddress!=3)return u=e.yieldResult,_.H(e,XN(u),3);y=e.yieldResult;return e.return({responseContext:{},contents:w,topbar:y})})};var sI=function(q,w,u){this.JSC$15359_upliftPromise=q;this.store=w;this.JSC$15359_persistentStorePromiseAccessor=u};
sI.prototype.shouldPreferLocalResponse=function(q){var w=q.videoId;return w&&OHs(this.store.getState().entities,w)&&o9M(this.store.getState().entities,w)?scM(this.store.getState().entities,q.playlistId):!1};
sI.prototype.localInnertubeResponse=function(q){var w=this,u,y;return _.F(function(e){if(e.nextAddress==1)return(u=q.videoId)?_.H(e,w.JSC$15359_upliftPromise,2):e.return(Promise.reject(Error("Si")));if(e.nextAddress!=3)return _.H(e,shk(w,q,u),3);y=e.yieldResult;return e.return(N7j(w,y,u))})};
sI.prototype.canProvideFallbackResponse=function(q){return q.videoId?!0:!1};
sI.prototype.localFallbackInnertubeResponse=function(q){var w=this,u,y,e,t;return _.F(function(X){switch(X.nextAddress){case 1:return(u=q.videoId)?_.H(X,w.JSC$15359_upliftPromise,2):X.return(Promise.reject(Error("Si")));case 2:return _.H(X,shk(w,q,u),3);case 3:y=X.yieldResult;if(O1(w.store.getState().entities,u)){X.jumpTo(4);break}return _.H(X,tI(w.JSC$15359_upliftPromise,w.store),5);case 5:return e=X.yieldResult,X.return(QhX(y,e));case 4:return OHs(w.store.getState().entities,u)&&o9M(w.store.getState().entities,
u)?X.return(N7j(w,y,u)):(t={title:_.yU(_.ID("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:JTc()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},X.return(QhX(y,t)))}})};
var shk=function(q,w,u){var y,e,t,X,G;return _.F(function(n){if(n.nextAddress==1)return y=w.playlistId,e=_.uA(u,y),_.H(n,q.JSC$15359_persistentStorePromiseAccessor(),2);if(n.nextAddress!=3)return t=n.yieldResult,_.H(n,XN(t),3);X=n.yieldResult;G={responseContext:{},currentVideoEndpoint:e,topbar:X};return n.return(G)})},N7j=function(q,w,u){if(q=O1(q.store.getState().entities,u)){var y;
u=q.videoEntity;var e,t={title:eN(u.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.kN((y=u.localizedStrings)==null?void 0:y.viewCount),viewCount:_.kN((e=u.localizedStrings)==null?void 0:e.viewCount)}}};u.publishedTimestampMillis&&(t.dateText=_.kN(Yul(new Date(Number(u.publishedTimestampMillis)))));y={videoPrimaryInfoRenderer:t};e=q.videoEntity;q=q.channelEntity;q={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:eN(_.ID("SHOW_MORE",void 0,"Show more")),
showLessText:eN(_.ID("SHOW_LESS",void 0,"Show less")),description:e.formattedDescription,owner:{videoOwnerRenderer:{title:eN(q.title),thumbnail:q.avatar}}}};w.contents={twoColumnWatchNextResults:{results:{results:{contents:[y,q]}}}}}return w},QhX=function(q,w){q.contents={singleColumnWatchNextResults:{results:{results:{contents:[Wfu(w)]}}}};
return q};var rZ=function(q,w,u){this.JSC$15365_upliftPromise=q;this.store=w;this.JSC$15365_persistentStorePromiseAccessor=u};
rZ.prototype.shouldPreferLocalResponse=function(){return!1};
rZ.prototype.localInnertubeResponse=function(){return _.F(function(q){return q.return(Promise.reject(Error("Ti")))})};
rZ.prototype.canProvideFallbackResponse=function(){return!0};
rZ.prototype.localFallbackInnertubeResponse=function(){var q=this,w,u,y,e;return _.F(function(t){switch(t.nextAddress){case 1:return _.H(t,q.JSC$15365_persistentStorePromiseAccessor(),2);case 2:return w=t.yieldResult,_.H(t,XN(w),3);case 3:return u=t.yieldResult,y={responseContext:{},topbar:u},_.H(t,q.JSC$15365_upliftPromise,4);case 4:return _.H(t,tI(q.JSC$15365_upliftPromise,q.store),5);case 5:return e=t.yieldResult,y.watchStatus={backgroundPromoRenderer:e},t.return(y)}})};var IeX=new _.MH("ENDPOINT_MAP");var iI$=function(){var q=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return q.sequenceMap}}},ntT=function(q,w,u){var y,e=(y=w.config)==null?void 0:y.sequenceStrategy;
if(!e)return u();q.sequenceMap.has(e.sequenceKey)||q.sequenceMap.set(e.sequenceKey,[]);q=q.sequenceMap.get(e.sequenceKey);switch(e.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return ry6(q,w,u);case "REQUEST_SEQUENCE_TYPE_REPLACE":return U0k(q,w,u);default:throw new _.fv("Request could not be sequenced",w);}},ry6=function(q,w,u){var y,e,t;
return _.F(function(X){q.length>0?(e=q[q.length-1],y=e.responsePromise.then(function(){return u()})):y=u();
t={request:w,responsePromise:y};q.push(t);T7G(q,t);return X.return(t.responsePromise)})},U0k=function(q,w,u){u=u();
if(q.length>0)for(var y=_.P(q),e=y.next();!e.done;e=y.next())e.value.responsePromise=u;var t={request:w,responsePromise:u};q.push(t);T7G(q,t);return Promise.resolve().then(function(){return q.indexOf(t)>0?t.responsePromise.then(function(X){return Object.assign({},X,{sequenceMetaData:{skipProcessing:!0}})}):t.responsePromise})},T7G=function(q,w){w.responsePromise.then(function(){var u=q.indexOf(w);
u>-1&&q.splice(u,1)})};var CiG=new _.MH("REQUEST_SEQUENCING");var CP=function(){};
_.O(CP,dS);CP.prototype.getApiPaths=function(){return[]};
CP.prototype.getExtension=function(q){return _.C(q,wrj)};
CP.prototype.JSC$11807_buildRequest=function(q,w){q.recaptchaToken=w.recaptchaToken};
CP.prototype.getApiUrl=function(){return"/das_captcha"};var dv=function(){};
_.O(dv,dS);dv.prototype.getApiPaths=function(){return JbP};
dv.prototype.getExtension=function(q){return _.C(q,AI3)};
dv.prototype.JSC$11807_buildRequest=function(q,w,u){u=u===void 0?{}:u;w.createBackstagePostParams&&(q.createBackstagePostParams=w.createBackstagePostParams);u.comment_text&&(q.commentText=u.comment_text);if(u.attached_video_id)q.videoAttachment={videoId:u.attached_video_id};else if(u.image_poll_options)q.pollAttachmentData={options:u.image_poll_options};else if(u.poll_options)q.pollAttachment={choices:u.poll_options};else if(u.quiz_options)q.quizAttachmentData={options:u.quiz_options};else if(u.image_blob_id)q.imageAttachment=
{encryptedBlobId:u.image_blob_id},u.source_video_id&&(q.imageAttachment.sourceExternalVideoId=u.source_video_id),u.image_preview_coordinates&&(q.imageAttachment.previewCoordinates=JSON.parse(u.image_preview_coordinates));else if(u.images_data)q.imagesAttachment={imagesData:u.images_data};else if(u.clip_external_video_id!==void 0||u.clip_offset_ms!==void 0||u.clip_duration_ms!==void 0){var y,e,t,X,G;q.clipAttachment={externalVideoId:(t=u.clip_external_video_id)!=null?t:"",offsetMs:(X=(y=u.clip_offset_ms)==
null?void 0:y.toString())!=null?X:"",durationMs:(G=(e=u.clip_duration_ms)==null?void 0:e.toString())!=null?G:""}}else u.shared_post_id&&(q.sharedPostAttachment={postId:u.shared_post_id});u.tagged_video_id&&(q.postCreationData={taggedVideoId:u.tagged_video_id});u.access_restrictions&&(typeof u.access_restrictions==="number"&&(w=u.access_restrictions,q.accessRestrictions={restriction:w!==1&&w===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof u.access_restrictions==="string"&&
(q.accessRestrictionsParams=u.access_restrictions));u.scheduled_publish_time_sec&&(q.scheduledPublishTimeSec=u.scheduled_publish_time_sec.toString())};var Ow=function(){};
_.O(Ow,dS);Ow.prototype.getApiPaths=function(){return vu3};
Ow.prototype.getExtension=function(q){return _.C(q,Z9j)};
Ow.prototype.JSC$11807_buildRequest=function(q,w,u){u=u===void 0?{}:u;w.decorateMessageParams&&(q.params=w.decorateMessageParams);u.text&&(q.text=u.text)};var o0=function(){};
_.O(o0,dS);o0.prototype.getApiPaths=function(){return exP};
o0.prototype.getExtension=function(q){return _.C(q,JIG)};
o0.prototype.JSC$11807_buildRequest=function(q,w,u){u=u===void 0?{}:u;u.video_id&&(q.videoId=u.video_id)};var VC=function(){};
_.O(VC,dS);VC.prototype.getApiPaths=function(){return GVT};
VC.prototype.getExtension=function(q){return _.C(q,_.NU)};
VC.prototype.JSC$11807_buildRequest=function(q,w,u){u.suggestions_query&&(q.input=u.suggestions_query)};var fP=function(){};
_.O(fP,dS);fP.prototype.getApiPaths=function(){return RxF};
fP.prototype.getExtension=function(q){return _.C(q,zGk)};
fP.prototype.JSC$11807_buildRequest=function(q,w,u){u.comment_text!==void 0&&(q.commentText=u.comment_text);u.scheduled_publish_time_sec&&(q.scheduledPublishTimeSec=u.scheduled_publish_time_sec.toString());q.updateBackstagePostParams=w.updateBackstagePostParams};var mK=function(){};
_.O(mK,dS);mK.prototype.getApiPaths=function(){return qL};
mK.prototype.getExtension=function(q){return _.C(q,_.ZK)};
mK.prototype.JSC$11807_buildRequest=function(q,w,u){u.formData&&(q.formData=u.formData);w.token?q.continuation=w.token:w.continuationTokenKey&&(u=_.Mt().getState(),w=_.HQ(u.entities,"continuationTokenEntity",w.continuationTokenKey))&&(q.continuation=String(w.continuationToken))};
var d0G=function(){};
_.O(d0G,dS);_.k=d0G.prototype;_.k.getApiPaths=function(){return qL};
_.k.getExtension=function(q){return _.C(q,_.Ii)};
_.k.isNavigationCommand=function(){return!0};
_.k.JSC$11814_getStoreKey=function(q){if((q=this.getExtension(q))&&q.browseId){var w={browseId:q.browseId};q.browseEndpointContextSupportedConfigs&&(w.browseEndpointContextSupportedConfigs=JSON.stringify(q.browseEndpointContextSupportedConfigs));q.params&&(w.params=q.params);q.query&&(w.query=q.query);return _.l9("browse",w)}};
_.k.JSC$11807_buildRequest=function(q,w,u){w.browseId&&(q.browseId=w.browseId);w.params&&(q.params=w.params);w.query&&(q.query=w.query);u.formData?q.formData=u.formData:w.formData&&(q.formData=w.formData);w.browseId==="FEsubscriptions"&&_.UC().getFlag(155)&&(q.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");w.browseId==="SPaccount_playback"&&(u=_.UC(),q.formData||(q.formData={}),q.formData.accountSettingsFormData={flagCaptionsDefaultOff:u.getFlag(65),flagAutoCaptionsDefaultOn:u.getFlag(66),
flagDisableInlinePreview:u.getFlag(186),flagAudioDescriptionDefaultOn:u.getFlag(198)});if(w.browseId==="FEwhat_to_watch"){u=_.UC();var y=u.getFlag(196);u.getFlag(197)&&(q.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:y}}})}w.browseId==="FEwhat_to_watch"&&(w=_.UC().getFlag(186),q.inlineSettingStatus=w?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.k.getRequestConfig=function(q,w){w=w===void 0?{}:w;var u={};if(q=this.JSC$11814_getStoreKey(q,w))u.storeStrategy={storeKey:q,disableCache:w.disableCache};_.T("web_log_browse_ticks_ks")||(u.requestTick="br_s",u.responseTick="br_r");return u};var AZ=function(){};
_.O(AZ,dS);AZ.prototype.getApiPaths=function(){return OF6};
AZ.prototype.getExtension=function(q){return _.C(q,MVa)};
AZ.prototype.JSC$11807_buildRequest=function(q,w,u){q.legacyYoutubeChannelUsername=u.legacyYouTubeChannelUsername||"";q.legacyYoutubeChannelPassword=u.legacyYouTubeChannelPassword||""};var JZ=function(){};
_.O(JZ,dS);JZ.prototype.getApiPaths=function(){return ai3};
JZ.prototype.getExtension=function(q){return _.C(q,YIZ)};
JZ.prototype.JSC$11807_buildRequest=function(q,w,u){u.recaptcha_response_token&&(q.recaptchaResponseToken=u.recaptcha_response_token);u.channel_id&&(q.channelId=u.channel_id)};var zU=function(){};
_.O(zU,dS);zU.prototype.getApiPaths=function(){return cmG};
zU.prototype.getExtension=function(q){return _.C(q,hGX)};
zU.prototype.JSC$11807_buildRequest=function(q,w,u){w.externalChannelId&&(q.externalChannelId=w.externalChannelId);u.handle&&(q.handleUpdate={handle:u.handle},w.handleEditSource&&(q.handleUpdate.handleEditSource=w.handleEditSource))};var a0=function(){};
_.O(a0,dS);a0.prototype.getApiPaths=function(){return lik};
a0.prototype.getExtension=function(q){return _.C(q,tV3)};
a0.prototype.JSC$11807_buildRequest=function(q,w,u){w.request&&(q.channelId=w.request.channelId);var y;if(u==null?0:(y=u.uploadDefaults)==null?0:y.emojiReactionSet)q.uploadDefaultsRequest||(q.uploadDefaultsRequest={}),q.uploadDefaultsRequest.emojiReactionSet=u.uploadDefaults.emojiReactionSet};var Db=function(){};
_.O(Db,dS);Db.prototype.getApiPaths=function(){return Kkc};
Db.prototype.getExtension=function(q){return _.C(q,gXr)};
Db.prototype.JSC$11807_buildRequest=function(q,w,u){w.externalChannelId&&(q.externalChannelId=w.externalChannelId);w.channelHandleEntityKey&&(q.channelHandleEntityKey=w.channelHandleEntityKey);w.handleEditSource&&(q.handleEditSource=w.handleEditSource);u.handle?q.handle=u.handle:u.name&&(q.name=u.name)};var Zb=function(){};
_.O(Zb,dS);Zb.prototype.getApiPaths=function(){return fUG};
Zb.prototype.getExtension=function(q){return _.C(q,iHc)};
Zb.prototype.JSC$11807_buildRequest=function(q,w){w.actions?q.actions=w.actions:w.action&&(q.actions=[w.action])};var pP=function(){};
_.O(pP,dS);pP.prototype.getApiPaths=function(){return mka};
pP.prototype.getExtension=function(q){return _.C(q,_.ZK)};
pP.prototype.JSC$11807_buildRequest=function(q,w){w.token&&(q.continuation=w.token)};var $U=function(){};
_.O($U,dS);$U.prototype.getApiPaths=function(){return uS$};
$U.prototype.getExtension=function(q){return _.C(q,_.ZK)};
$U.prototype.JSC$11807_buildRequest=function(q,w){q.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";w.token&&(q.fetchCommentsParams={continuation:w.token})};var vO=function(){};
_.O(vO,dS);vO.prototype.getApiPaths=function(){return Dkk};
vO.prototype.getExtension=function(q){return _.C(q,ItT)};
vO.prototype.JSC$11807_buildRequest=function(q,w,u){u=u===void 0?{}:u;w.createReplyParams&&(q.createReplyParams=w.createReplyParams);w.commentText&&(q.commentText=_.lA(w.commentText));u.comment_text&&(q.commentText=u.comment_text);u.image_blob_id&&(q.imageAttachment={encryptedBlobId:u.image_blob_id});u.botguard_response&&(q.botguardResponse=u.botguard_response)};
_.x$.Object.defineProperties(vO.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bw=function(){};
_.O(bw,dS);bw.prototype.getApiPaths=function(){return ZF$};
bw.prototype.getExtension=function(q){return _.C(q,_.QZa)};
bw.prototype.JSC$11807_buildRequest=function(q,w,u){u=u===void 0?{}:u;w.createCommentParams&&(q.createCommentParams=w.createCommentParams);w.commentText&&(q.commentText=_.lA(w.commentText));w.videoPositionMention&&(q.videoPositionMention=w.videoPositionMention);w.sources&&(q.sources=w.sources);u.comment_text&&(q.commentText=u.comment_text);u.attached_video_id?q.videoAttachment={videoId:u.attached_video_id}:u.poll_options?q.pollAttachment={choices:u.poll_options}:u.image_blob_id?q.imageAttachment=
{encryptedBlobId:u.image_blob_id}:u.shared_post_id&&(q.sharedPostAttachment={postId:u.shared_post_id});u.access_restrictions&&typeof u.access_restrictions==="number"&&(w=u.access_restrictions,q.accessRestrictions={restriction:w!==1&&w===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});u.botguard_response&&(q.botguardResponse=u.botguard_response)};
_.x$.Object.defineProperties(bw.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var YU=function(){};
_.O(YU,dS);YU.prototype.getApiPaths=function(){return S7F};
YU.prototype.getExtension=function(q){return _.C(q,Usj)};
YU.prototype.JSC$11807_buildRequest=function(q,w,u){w.commentText&&(q.replyText=_.lA(w.commentText));u.comment_text&&(q.replyText=u.comment_text);q.updateReplyParams=w.updateReplyParams};
_.x$.Object.defineProperties(YU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var gv=function(){};
_.O(gv,dS);gv.prototype.getApiPaths=function(){return hxX};
gv.prototype.getExtension=function(q){return _.C(q,rUP)};
gv.prototype.JSC$11807_buildRequest=function(q,w,u){w.commentText&&(q.commentText=_.lA(w.commentText));u.comment_text&&(q.commentText=u.comment_text);q.updateCommentParams=w.updateCommentParams};
_.x$.Object.defineProperties(gv.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ew=function(){};
_.O(Ew,dS);Ew.prototype.getApiPaths=function(){return jNF};
Ew.prototype.getExtension=function(q){return _.C(q,u1x)};
Ew.prototype.JSC$11807_buildRequest=function(q,w){w.settings&&(q.settings=w.settings)};var R0=function(){};
_.O(R0,dS);R0.prototype.getApiPaths=function(){return LEx};
R0.prototype.getExtension=function(q){return _.C(q,EXa)};
R0.prototype.JSC$11807_buildRequest=function(q,w){w.channelCreationToken&&(q.channelCreationToken=w.channelCreationToken);w.source&&(q.source=w.source)};var cO=function(){};
_.O(cO,dS);cO.prototype.getApiPaths=function(){return aU3};
cO.prototype.getExtension=function(q){return _.C(q,SIk)};
cO.prototype.JSC$11807_buildRequest=function(q,w,u){u=u===void 0?{}:u;if(u.name&&(u.given_name||u.family_name))q=new _.fv("channel creation cannot set both GAIA and YouTube names",w),_.vm(q);else{if(w.zeroStepChannelCreationParams){if(!u.comment_text){q=new _.fv("zero_step_create_comment_params but no zero_step_texts",w);_.vm(q);return}q.zeroStepChannelCreationParams=w.zeroStepChannelCreationParams;q.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(q.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
u.comment_text,u.botguard_response&&(q.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=u.botguard_response))}q.channelCreationToken=w.channelCreationToken;u.given_name&&(q.givenName=u.given_name);u.family_name&&(q.familyName=u.family_name);w.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(q.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(u.name||u.handle||u.avatar_url||u.encryptedBlobId||u.isNameChanged!==void 0||u.isHandleChanged!==void 0||u.isDefaultProfilePhoto!==
void 0||u.obakeImageSource)q.overrideChannelCreationParams={},u.name&&(q.overrideChannelCreationParams.name=u.name),u.handle&&(q.overrideChannelCreationParams.handle=u.handle),u.avatar_url&&(q.overrideChannelCreationParams.avatarUrl=u.avatar_url),u.encryptedBlobId&&(q.overrideChannelCreationParams.blobEncryptionId=u.encryptedBlobId),u.enableIdentityForAllChannelCreationDialog&&(u.encryptedBlobId?q.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
u.isDefaultProfilePhoto!==void 0&&(q.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=u.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),u.isNameChanged!==void 0&&(q.overrideChannelCreationParams.identityForAllChannelCreationNameTag=u.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),u.isHandleChanged!==
void 0&&(q.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=u.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),u.obakeImageSource&&(q.overrideChannelCreationParams.obakeImageSourceType=u.obakeImageSource))}};var Sz=function(){};
_.O(Sz,dS);Sz.prototype.getApiPaths=function(q){return(q=this.getExtension(q))&&q.status==="DISLIKE"?Eu$:q&&q.status==="INDIFFERENT"?fiP:Ndj};
Sz.prototype.getExtension=function(q){return _.C(q,_.Ss)};
Sz.prototype.JSC$11807_buildRequest=function(q,w){w.target&&(q.target=w.target);if(w=this.getParams(w))q.params=w};
Sz.prototype.getParams=function(q){switch(q==null?void 0:q.status){case "DISLIKE":return q.dislikeParams;case "INDIFFERENT":return q.removeLikeParams;default:return q==null?void 0:q.likeParams}};var hZ=function(){};
_.O(hZ,dS);hZ.prototype.getApiPaths=function(){return vYF};
hZ.prototype.getExtension=function(q){return _.C(q,Vhr)};
hZ.prototype.JSC$11807_buildRequest=function(q,w){w.settingItemId&&(q.settingItemId=w.settingItemId);w.stringValue!=null&&w.stringValue!==void 0?q.newValue={stringValue:w.stringValue}:w.intValue?q.newValue={intValue:w.intValue}:w.boolValue!==null&&w.boolValue!==void 0?q.newValue={boolValue:w.boolValue}:(q=new _.fv("Unknown value type for SetSettingEndpoint.",w),_.vm(q))};var jz=function(){};
_.O(jz,dS);jz.prototype.getApiPaths=function(){return Y7T};
jz.prototype.getExtension=function(q){return _.C(q,cUG)||void 0};
jz.prototype.JSC$11807_buildRequest=function(q,w,u){u=u===void 0?{}:u;w.channelIds&&(q.channelIds=w.channelIds);w.siloName&&(q.siloName=w.siloName);w.params&&(q.params=w.params);u.botguardResponse&&(q.botguardResponse=u.botguardResponse);u.feature&&(q.clientFeature=u.feature)};
_.x$.Object.defineProperties(jz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var lw=function(){};
_.O(lw,dS);lw.prototype.getApiPaths=function(){return EYZ};
lw.prototype.getExtension=function(q){return _.C(q,ftk)||void 0};
lw.prototype.JSC$11807_buildRequest=function(q,w){w.channelIds&&(q.channelIds=w.channelIds);w.siloName&&(q.siloName=w.siloName);w.params&&(q.params=w.params)};
_.x$.Object.defineProperties(lw.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var LP=function(q){this.shareClientParamsProvider=q};
_.O(LP,dS);LP.prototype.getApiPaths=function(){return t0j};
LP.prototype.getExtension=function(q){return _.C(q,BaT)||_.C(q,_.xH3)||_.C(q,KvP)};
LP.prototype.JSC$11807_buildRequest=function(q,w){w.serializedShareEntity&&(q.serializedSharedEntity=w.serializedShareEntity);if(w.clientParamIdentifier){var u;if((u=this.shareClientParamsProvider)==null?0:u.clientParams.has(w.clientParamIdentifier)){u=this.shareClientParamsProvider;w=w.clientParamIdentifier;var y=u.clientParams.get(w);y&&u.clientParams.delete(w);q.clientParams=y}}};
LP[Ld]=[c4r];var Mn=function(){};
_.O(Mn,dS);Mn.prototype.getApiPaths=function(){return T6Z};
Mn.prototype.getExtension=function(q){return _.C(q,tK3)};
Mn.prototype.JSC$11807_buildRequest=function(q,w){w.params&&(q.params=w.params)};var KP=function(){};
_.O(KP,dS);KP.prototype.getApiPaths=function(){return R5F};
KP.prototype.getExtension=function(q){return _.C(q,yta)};
KP.prototype.JSC$11807_buildRequest=function(q,w){w.dismissal&&(q.items=[w.dismissal])};
_.x$.Object.defineProperties(KP.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var BO=function(){};
_.O(BO,dS);BO.prototype.getApiPaths=function(){return Wk$};
BO.prototype.getExtension=function(q){return _.C(q,_.JI)||void 0};
BO.prototype.JSC$11807_buildRequest=function(q,w,u){q.feedbackTokens=[];w.feedbackToken&&q.feedbackTokens.push(w.feedbackToken);if(w=w.cpn||u.cpn)q.feedbackContext={cpn:w};q.isFeedbackTokenUnencrypted=!!u.is_feedback_token_unencrypted;q.shouldMerge=!1;u.extra_feedback_tokens&&(q.shouldMerge=!0,q.feedbackTokens=q.feedbackTokens.concat(u.extra_feedback_tokens))};
_.x$.Object.defineProperties(BO.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var xU=function(){};
_.O(xU,dS);xU.prototype.getApiPaths=function(){return Wk$};
xU.prototype.getExtension=function(q){return _.C(q,_.NU)};
xU.prototype.JSC$11807_buildRequest=function(q,w,u){u.feedback_tokens&&(q.feedbackTokens=u.feedback_tokens,q.shouldMerge=!0)};
_.x$.Object.defineProperties(xU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var qe=function(){};
_.O(qe,dS);qe.prototype.getApiPaths=function(){return Wk$};
qe.prototype.getExtension=function(q){return _.C(q,qmM)};
qe.prototype.JSC$11807_buildRequest=function(q,w){w.undoToken&&(q.feedbackTokens=[w.undoToken]);w.isUndoTokenUnencrypted&&(q.isFeedbackTokenUnencrypted=w.isUndoTokenUnencrypted)};
_.x$.Object.defineProperties(qe.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var wX=function(){};
_.O(wX,dS);wX.prototype.getApiPaths=function(){return Bd$};
wX.prototype.getExtension=function(q){return _.C(q,qb6)};
wX.prototype.JSC$11807_buildRequest=function(q,w){w.nextEndpoint&&_.C(w.nextEndpoint,_.jw)?q.nextEndpoint={urlEndpoint:_.C(w.nextEndpoint,_.jw)}:w.nextEndpoint&&_.C(w.nextEndpoint,_.LN)&&(q.nextEndpoint={watchEndpoint:_.C(w.nextEndpoint,_.LN)});w.setRacy&&(q.setRacy=w.setRacy);w.setControvercy&&(q.setControvercy=w.setControvercy)};var u3=function(q){this.JSC$15547_storeWithEntities=q};
_.O(u3,dS);u3.prototype.getApiPaths=function(){return SeZ};
u3.prototype.getExtension=function(q){return _.C(q,OO$)};
u3.prototype.JSC$11807_buildRequest=function(q,w){w.flowId&&(q.flowId=w.flowId);w.targetId&&(q.targetId=w.targetId);w.continuation&&(q.continuation=w.continuation);var u=w.flowStateEntityKey;if(w.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&u&&this.JSC$15547_storeWithEntities){var y;if(w=(y=this.JSC$15547_storeWithEntities.getState())==null?void 0:y.entities)if(y=_.XX(u).entityType,y=_.HQ(w,y,u))q.flowState=y,q.flowStateEntityKey=u}};
_.x$.Object.defineProperties(u3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
u3[Ld]=[FN];var OIF=function(){};
_.O(OIF,dS);_.k=OIF.prototype;_.k.getApiPaths=function(){return HKc};
_.k.JSC$11814_getStoreKey=function(){return _.l9("guide")};
_.k.getRequestConfig=function(){var q=this.JSC$11814_getStoreKey(),w;q&&(w={storeStrategy:{storeKey:q}});return w};
_.k.isNavigationCommand=function(){return!0};
_.k.getExtension=function(q){return _.C(q,_.NU)};
_.k.JSC$11807_buildRequest=function(q){q.fetchLiveState=!0};var yW=function(){};
_.O(yW,dS);yW.prototype.getApiPaths=function(){return ouT};
yW.prototype.getExtension=function(q){return _.C(q,WFj)};
yW.prototype.JSC$11807_buildRequest=function(){};var nR=function(){};
_.O(nR,dS);nR.prototype.getApiPaths=function(){return V$F};
nR.prototype.getExtension=function(q){return _.C(q,sZP)};
nR.prototype.JSC$11807_buildRequest=function(){};var HK=function(){};
_.O(HK,dS);HK.prototype.getApiPaths=function(){return Ukx};
HK.prototype.getExtension=function(q){return _.C(q,_.ZK)};
HK.prototype.JSC$11807_buildRequest=function(q,w){w.token&&(q.continuation=w.token);var u,y;q==null||(u=q.context)==null||(y=u.user)==null||delete y.onBehalfOfUser};
HK.prototype.getRequestConfig=function(q){var w={},u;if(((u=this.getExtension(q))==null?void 0:u.sessionIndex)!==void 0){var y;w={authStrategy:{sessionIndex:(y=this.getExtension(q))==null?void 0:y.sessionIndex}}}return w};var WK=function(){};
_.O(WK,dS);WK.prototype.JSC$11807_getRequest=function(q){var w=this.getExtension(q),u=q="";if(w==null?0:w.popup)q="true";if(w==null?0:w.disableSignout)u="true";w={};return{input:"/getAccountSwitcherEndpoint",requestShell:jp("/getAccountSwitcherEndpoint","GET",(w["X-YouTube-Delegation-Context"]=_.Et("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),w["X-YouTube-Account-Switcher-Popup"]=q,w["X-YouTube-Account-Switcher-Disable-Signout"]=u,w)),innerTubeRequest:{}}};
WK.prototype.getApiPaths=function(){return[]};
WK.prototype.getExtension=function(q){return _.C(q,_.FKo)};
WK.prototype.JSC$11807_buildRequest=function(){};var sv=function(){};
_.O(sv,dS);sv.prototype.JSC$11807_getRequest=function(q){var w="/cross_account_channel_transfer";(q=this.getExtension(q))&&(w=NAJ(w,{target_session:q.targetSessionIndex,source_rapt:q.sourceRapt,rapt:q.targetRapt}));return{input:w,requestShell:jp(w,"GET"),innerTubeRequest:{}}};
sv.prototype.getApiPaths=function(){return[]};
sv.prototype.getExtension=function(q){return _.C(q,PUc)};
sv.prototype.JSC$11807_buildRequest=function(){};var Ne=function(){};
_.O(Ne,dS);Ne.prototype.getApiPaths=function(){return h5F};
Ne.prototype.isNavigationCommand=function(){return!0};
Ne.prototype.getExtension=function(q){return _.C(q,_.NU)};
Ne.prototype.JSC$11807_buildRequest=function(q){var w=_.UC().get("gsml","");w&&(q.safetyModeLockerObfuscatedGaiaId=w);q.userInterfaceTheme=_.$M(!0);_.vM()?q.deviceTheme="DEVICE_THEME_SELECTED":_.npJ()?q.deviceTheme="DEVICE_THEME_SUPPORTED":q.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var QW=function(){};
_.O(QW,dS);QW.prototype.getApiPaths=function(){return Ukx};
QW.prototype.getExtension=function(q){return _.C(q,Xr6)};
QW.prototype.JSC$11807_buildRequest=function(q,w){if(w&&w.requestType&&(q.requestType=w.requestType,w.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||w.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var u=w.nextUrl;u&&(_.IOs(u)||yV(u))&&(q.nextNavendpoint={urlEndpoint:{url:u}})}w&&w.channelSwitcherQuery&&(q.channelSwitcherQuery=w.channelSwitcherQuery);w&&w.triggerChannelCreation&&(q.triggerChannelCreation=w.triggerChannelCreation);var y;if(w==null?0:(y=w.contentOwnerConfig)==
null?0:y.externalContentOwnerId)q.contentOwnerConfig=w.contentOwnerConfig;q.callCircumstance=w&&w.requestType&&w.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var e,t;w=q==null?void 0:(e=q.context)==null?void 0:(t=e.user)==null?void 0:t.onBehalfOfUser;if(w!==void 0){q.obfuscatedSelectedGaiaId=w;var X,G;q==null||(X=q.context)==null||(G=X.user)==null||delete G.onBehalfOfUser}var n,N;if(e=q==null?void 0:(n=q.context)==null?void 0:(N=n.user)==null?
void 0:N.serializedDelegationContext)q.selectedSerializedDelegationContext=e};var Ik=function(){};
_.O(Ik,dS);Ik.prototype.getApiPaths=function(){return kVa};
Ik.prototype.getExtension=function(q){return _.C(q,yIx)};
Ik.prototype.JSC$11807_buildRequest=function(q,w){w.profileOwnerExternalChannelId&&(q.profileOwnerExternalChannelId=w.profileOwnerExternalChannelId);w.profileCardContext&&(q.profileCardContext=w.profileCardContext)};var i3=function(){};
_.O(i3,dS);i3.prototype.getApiPaths=function(){return Cs6};
i3.prototype.getExtension=function(q){return _.C(q,qGr)};
i3.prototype.JSC$11807_buildRequest=function(q,w){w.params&&(q.params=w.params)};var rX=function(){};
_.O(rX,dS);rX.prototype.getApiPaths=function(){return z5T};
rX.prototype.getExtension=function(q){return _.C(q,_.sqr)};
rX.prototype.JSC$11807_buildRequest=function(q,w){if(w=w.createBroadcastRequest)q.useMasks=w.useMasks,q.broadcastType=w.broadcastType,q.broadcastSource=w.broadcastSource,q.broadcastMetadata=w.broadcastMetadata,q.broadcastMetadataMask=w.broadcastMetadataMask,q.videoMetadata=w.videoMetadata,q.videoMetadataMask=w.videoMetadataMask,q.liveChatSettingsUpdate=w.liveChatSettingsUpdate,q.liveChatSettingsUpdateMask=w.liveChatSettingsUpdateMask,q.cloneVideoId=w.cloneVideoId,q.cloneWithOverrides=w.cloneWithOverrides,
q.targetEntity=w.targetEntity,q.scheduledRedirectMetadata=w.scheduledRedirectMetadata};var Uv=function(){};
_.O(Uv,dS);Uv.prototype.getApiPaths=function(){return ph$};
Uv.prototype.getExtension=function(q){return _.C(q,Woa)};
Uv.prototype.JSC$11807_buildRequest=function(q,w,u){u=u===void 0?{}:u;w.params&&(q.params=w.params);u.questionText&&(q.questionText=u.questionText);u.optionText&&u.optionText.length>0&&(q.optionText=u.optionText)};var TF=function(){};
_.O(TF,dS);TF.prototype.getApiPaths=function(){return bFF};
TF.prototype.getExtension=function(q){return _.C(q,nr6)};
TF.prototype.JSC$11807_buildRequest=function(q,w){w.params&&(q.params=w.params)};var CR=function(){};
_.O(CR,dS);CR.prototype.getApiPaths=function(){return KEa};
CR.prototype.getExtension=function(q){return _.C(q,PhF)};
CR.prototype.JSC$11807_buildRequest=function(q,w){w.params&&(q.params=w.params)};var dX=function(){};
_.O(dX,dS);dX.prototype.getApiPaths=function(){return xk$};
dX.prototype.getExtension=function(q){return _.C(q,XJc)};
dX.prototype.JSC$11807_buildRequest=function(q,w,u){w.params&&(q.params=w.params);w.continuation&&(q.continuation=w.continuation);u.currentPlayerState&&u.currentPlayerState.playerOffsetMs&&(q.currentPlayerState={playerOffsetMs:u.currentPlayerState.playerOffsetMs.toString()})};var Ov=function(){};
_.O(Ov,dS);Ov.prototype.getApiPaths=function(){return q7G};
Ov.prototype.getExtension=function(q){return _.C(q,tnx)};
Ov.prototype.JSC$11807_buildRequest=function(q,w,u){w.params&&(q.params=w.params);u.continuation&&(q.continuation=u.continuation);"hidden"in u&&(q.webClientInfo={isDocumentHidden:u.hidden});u.isInvalidationTimeoutRequest&&(q.isInvalidationTimeoutRequest=u.isInvalidationTimeoutRequest);u.invalidationPayload&&(w=kxa(_.sX(ev(u.invalidationPayload))),q.invalidationPayloadLastPublishAtUsec=Av(w,2));u.reloadActionPanel&&(q.reloadActionPanel=u.reloadActionPanel);u.fullReload&&(q.fullReload=u.fullReload);
u.currentPlayerState&&(q.currentPlayerState=u.currentPlayerState)};var ok=function(){};
_.O(ok,dS);ok.prototype.getApiPaths=function(){return QN6};
ok.prototype.getExtension=function(q){return _.C(q,HM$)};
ok.prototype.JSC$11807_buildRequest=function(q,w){q.params=w.params};var VW=function(){};
_.O(VW,dS);VW.prototype.getApiPaths=function(){return B6a};
VW.prototype.getExtension=function(q){return _.C(q,Qyr)};
VW.prototype.JSC$11807_buildRequest=function(q,w){w.params&&(q.params=w.params)};var fR=function(){};
_.O(fR,dS);fR.prototype.getApiPaths=function(){return wdZ};
fR.prototype.getExtension=function(q){return _.C(q,IrG)};
fR.prototype.JSC$11807_buildRequest=function(q,w){w.params&&(q.params=w.params)};var m7=function(){};
_.O(m7,dS);m7.prototype.getApiPaths=function(){return IiG};
m7.prototype.getExtension=function(q){return _.C(q,sfT)};
m7.prototype.JSC$11807_buildRequest=function(q,w){w.params&&(q.params=w.params)};var Al=function(){};
_.O(Al,dS);Al.prototype.getApiPaths=function(){return rm3};
Al.prototype.getExtension=function(q){return _.C(q,NDj)};
Al.prototype.JSC$11807_buildRequest=function(q,w){w.params&&(q.params=w.params)};var Jl=function(){};
_.O(Jl,dS);Jl.prototype.getApiPaths=function(){return mqT};
Jl.prototype.getExtension=function(q){return _.C(q,yLZ)};
Jl.prototype.JSC$11807_buildRequest=function(q,w){w.params&&(q.params=w.params)};var zF=function(){};
_.O(zF,dS);zF.prototype.getApiPaths=function(){return pdX};
zF.prototype.getExtension=function(q){return _.C(q,_.QfZ)};
zF.prototype.JSC$11807_buildRequest=function(q,w,u){u=u===void 0?{}:u;w.params&&(q.params=w.params);u.client_message_id&&(q.clientMessageId=u.client_message_id);u.recaptcha_token&&(q.recaptchaToken=u.recaptcha_token);u.rich_message&&u.rich_message.text_segments?(w=u.rich_message.text_segments.map(function(y){var e={};y.text&&(e.text=y.text);y.emoji_id&&(e.emojiId=y.emoji_id);return e}),q.richMessage={textSegments:w}):u.message&&(q.message=u.message);
u.currentPlayerState&&(q.currentPlayerState=u.currentPlayerState)};var ak=function(){};
_.O(ak,dS);ak.prototype.getApiPaths=function(){return $qr};
ak.prototype.getExtension=function(q){return _.C(q,I9T)};
ak.prototype.JSC$11807_buildRequest=function(q,w){w.params&&(q.params=w.params)};var DJ=function(){};
_.O(DJ,dS);DJ.prototype.getApiPaths=function(){return gYk};
DJ.prototype.getExtension=function(q){return _.C(q,r5P)};
DJ.prototype.JSC$11807_buildRequest=function(q,w,u){w.isUserInitiated&&(q.isUserInitiated=w.isUserInitiated);w.initiationSource&&(q.initiationSource=w.initiationSource);u.locationInfo&&(q.context.client.locationInfo=u.locationInfo)};var ZJ=function(){};
_.O(ZJ,dS);ZJ.prototype.getApiPaths=function(){return iKr};
ZJ.prototype.getExtension=function(q){return _.C(q,NaG)};
ZJ.prototype.JSC$11807_buildRequest=function(q,w,u){w.metadataUpdateRequest&&(w=w.metadataUpdateRequest,q.encryptedVideoId=w.encryptedVideoId,w.liveChat&&(w=w.liveChat,q.liveChat||(q.liveChat={}),w.performAsExternalChannelId&&(q.liveChat.performAsExternalChannelId=w.performAsExternalChannelId),w.source&&(q.liveChat.source=w.source)));var y;if(u==null?0:(y=u.liveChat)==null?0:y.liveChatSettings)q.liveChat||(q.liveChat={}),u=u.liveChat.liveChatSettings,q.liveChat.newLiveChatSettings=u,q.liveChat.newLiveChatSettingsMask||
(q.liveChat.newLiveChatSettingsMask={}),u.emojiReactionSet&&(q.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var pR=function(){};
_.O(pR,dS);pR.prototype.getApiPaths=function(){return M0Z};
pR.prototype.getExtension=function(q){return _.C(q,_.msk)};
pR.prototype.JSC$11807_buildRequest=function(q,w,u){u.continuation?q.continuation=u.continuation:w.videoId&&(q.videoId=w.videoId);u.clientParams&&(q.clientParams=u.clientParams)};var $I=function(){};
_.O($I,dS);$I.prototype.getApiPaths=function(){return uS$};
$I.prototype.getExtension=function(q){return _.C(q,_.mZ)};
$I.prototype.JSC$11807_buildRequest=function(q,w){q.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";q.fetchCommentsParams={};w.videoId&&(q.fetchCommentsParams.encryptedVideoId=w.videoId);w.postId&&(q.fetchCommentsParams.postId=w.postId);w.externalChannelId&&(q.fetchCommentsParams.externalChannelId=w.externalChannelId);w.linkedCommentId&&(q.fetchCommentsParams.linkedCommentId=w.linkedCommentId);(0,_.db.isEmpty)(q.fetchCommentsParams)&&delete q.fetchCommentsParams};var vK=function(){};
_.O(vK,dS);vK.prototype.getApiPaths=function(){return qL};
vK.prototype.JSC$11807_buildRequest=function(q){q.browseId="FEnotifications_inbox"};
vK.prototype.getExtension=function(q){return _.C(q,_.NU)};var b3=function(){};
_.O(b3,dS);b3.prototype.getApiPaths=function(){return uS$};
b3.prototype.JSC$11807_buildRequest=function(q,w){w.signal==="GET_NOTIFICATIONS_MENU"&&(q.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");w.ctoken&&(q.ctoken=w.ctoken)};
var onx=function(){};
_.O(onx,b3);onx.prototype.getExtension=function(q){return _.C(q,_.NU)};
var V5a=function(){};
_.O(V5a,b3);V5a.prototype.getExtension=function(q){return _.C(q,KwX)};var YI=function(){};
_.O(YI,dS);YI.prototype.getApiPaths=function(){return FkF};
YI.prototype.getExtension=function(q){return _.C(q,_.NU)};
YI.prototype.JSC$11807_buildRequest=function(){};var gX=function(){};
_.O(gX,dS);gX.prototype.getApiPaths=function(){return Uqc};
gX.prototype.getExtension=function(q){return _.C(q,dsF)||void 0};
gX.prototype.JSC$11807_buildRequest=function(q,w){w.params&&(q.params=w.params);w.secondaryParams&&(q.secondaryParams=w.secondaryParams)};var Ev=function(){};
_.O(Ev,dS);Ev.prototype.getApiPaths=function(){return TdF};
Ev.prototype.getExtension=function(q){return _.C(q,w_3)};
Ev.prototype.JSC$11807_buildRequest=function(q,w){w.undo&&(q.undo=w.undo);w.serializedOptOut&&(q.serializedOptOut=w.serializedOptOut);w.serializedRecordInteractionsRequest&&(q.serializedRecordInteractionsRequest=w.serializedRecordInteractionsRequest)};var Rk=function(){};
_.O(Rk,dS);Rk.prototype.getApiPaths=function(){return OK$};
Rk.prototype.getExtension=function(q){return _.C(q,u7$)};
Rk.prototype.JSC$11807_buildRequest=function(q,w){w.serializedInteractionsRequest&&(q.serializedRecordNotificationInteractionsRequest=w.serializedInteractionsRequest)};var cK=function(){};
_.O(cK,dS);cK.prototype.getApiPaths=function(){return Vd7};
cK.prototype.getExtension=function(q){return _.C(q,Ib7)};
cK.prototype.JSC$11807_buildRequest=function(q,w,u){w=w===void 0?{}:w;u=u===void 0?{}:u;w.videoId?q.videoId=w.videoId:w.playlistId&&(q.playlistId=w.playlistId);var y,e=(y=w.offlineWebClientEligibility)!=null?y:u.offlineWebClientEligibility;e&&(q.offlineWebClientEligibility=e);var t;if(y=(t=w.preferredFormatType)!=null?t:u.preferredFormatType)q.preferredFormatType=y;var X;if(t=(X=w.lastOfflineQualitySettingsSavedMs)!=null?X:u.lastOfflineQualitySettingsSavedMs)q.lastOfflineQualitySettingsSavedMs=t;
w.params&&(q.params=w.params)};var S_=function(){};
_.O(S_,dS);S_.prototype.getApiPaths=function(){return hO};
S_.prototype.getExtension=function(q){return _.C(q,_.ZK)};
S_.prototype.JSC$11807_buildRequest=function(q,w,u){u=u===void 0?{}:u;w.token&&(q.continuation=w.token);u.formData&&(q.formData=u.formData)};var hl=function(){};
_.O(hl,dS);hl.prototype.getApiPaths=function(){return hO};
hl.prototype.getExtension=function(q){return _.C(q,FvP)};
hl.prototype.JSC$11807_buildRequest=function(q,w,u){u=u===void 0?{}:u;q.continuation=u.continuation};var j_=function(){};
_.O(j_,dS);j_.prototype.getApiPaths=function(){return hO};
j_.prototype.getExtension=function(q){return _.C(q,_.AI)};
j_.prototype.JSC$11807_buildRequest=function(q,w){var u,y=w.panelIdentifier||((u=w.identifier)==null?void 0:u.tag);y&&(q.panelId=y);var e;if((e=w.globalConfiguration)==null?0:e.params){var t;q.params=(t=w.globalConfiguration)==null?void 0:t.params}};
_.x$.Object.defineProperties(j_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var l3=function(){};
_.O(l3,dS);l3.prototype.getApiPaths=function(){return hO};
l3.prototype.getExtension=function(q){return _.C(q,hSZ)};
l3.prototype.JSC$11807_buildRequest=function(q,w){w.panelLoadingStrategy&&rJy(q,w.panelLoadingStrategy)};var LR=function(){};
_.O(LR,dS);LR.prototype.getApiPaths=function(){return hO};
LR.prototype.getExtension=function(q){return _.C(q,WnX)};
LR.prototype.JSC$11807_buildRequest=function(q,w){w.loadingStrategy&&rJy(q,w.loadingStrategy)};var Me=function(){};
_.O(Me,dS);Me.prototype.getApiPaths=function(){return hO};
Me.prototype.getExtension=function(q){return _.C(q,_.VYc)};
Me.prototype.JSC$11807_buildRequest=function(q,w){w.panelLoadingStrategy&&rJy(q,w.panelLoadingStrategy)};var KR=function(){};
_.O(KR,dS);KR.prototype.getApiPaths=function(){return hO};
KR.prototype.getExtension=function(q){return _.C(q,syx)};
KR.prototype.JSC$11807_buildRequest=function(q,w){var u,y=(u=w.contentSourcePanelIdentifier)==null?void 0:u.tag;y&&(q.panelId=y);var e;if((e=w.globalConfiguration)==null?0:e.params){var t;q.params=(t=w.globalConfiguration)==null?void 0:t.params}};var BK=function(){};
_.O(BK,dS);BK.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
BK.prototype.getExtension=function(q){return _.C(q,NMr)};
BK.prototype.JSC$11807_buildRequest=function(q,w){w.params&&(q.params=w.params)};var xI=function(){};
_.O(xI,dS);xI.prototype.getApiPaths=function(){return Lk6};
xI.prototype.getExtension=function(q){return _.C(q,i9P)};
xI.prototype.JSC$11807_buildRequest=function(q,w){w.externalChannelId&&(q.externalChannelId=w.externalChannelId);w.superChatAction&&(q.superChatAction=w.superChatAction);w.superStickersAction&&(q.superStickersAction=w.superStickersAction)};var ql=function(){};
_.O(ql,dS);ql.prototype.getApiPaths=function(){return j4k};
ql.prototype.getExtension=function(q){return _.C(q,HHG)||_.C(q,rZl)};
ql.prototype.JSC$11807_buildRequest=function(q,w){w.videoIds?q.videoIds=w.videoIds:w.videoId&&(q.videoIds=[w.videoId]);w.playlistId&&(q.playlistId=w.playlistId);w.params&&(q.params=w.params);q.excludeWatchLater=!1};var wq=function(){};
_.O(wq,dS);wq.prototype.getApiPaths=function(){return $kG};
wq.prototype.getExtension=function(q){return _.C(q,_.pG)};
wq.prototype.JSC$11807_buildRequest=function(q,w,u){u.create_playlist_title?q.title=u.create_playlist_title:w.title&&(q.title=w.title);if(u.create_playlist_privacy_status&&typeof u.create_playlist_privacy_status==="number"){a:{var y=u.create_playlist_privacy_status;if(y!==0){if(y===1){y="PUBLIC";break a}if(y===2){y="UNLISTED";break a}}y="PRIVATE"}q.privacyStatus=y}else w.privacyStatus&&(q.privacyStatus=w.privacyStatus);u.create_playlist_description&&(q.description=u.create_playlist_description);w.videoIds&&
(q.videoIds=w.videoIds);w.params&&(q.params=w.params);w.sourcePlaylistId&&(q.sourcePlaylistId=w.sourcePlaylistId)};var u$=function(){};
_.O(u$,dS);u$.prototype.getApiPaths=function(){return Yec};
u$.prototype.getExtension=function(q){return _.C(q,Toc)};
u$.prototype.JSC$11807_buildRequest=function(q,w){q.playlistId=w.playlistId};var y7=function(){};
_.O(y7,dS);y7.prototype.getApiPaths=function(){return ymT};
y7.prototype.getExtension=function(q){return _.C(q,Lv3)};
y7.prototype.JSC$11807_buildRequest=function(q,w){w.playlistId&&(q.playlistId=w.playlistId);w.params&&(q.params=w.params)};var eY=function(){};
_.O(eY,dS);eY.prototype.getApiPaths=function(){return dq$};
eY.prototype.getExtension=function(q){return _.C(q,_.AO)||void 0};
eY.prototype.JSC$11807_buildRequest=function(q,w){w.actions&&(q.actions=w.actions);w.params&&(q.params=w.params);w.playlistId&&(q.playlistId=w.playlistId)};var kW=function(){};
_.O(kW,dS);_.k=kW.prototype;_.k.getApiPaths=function(){return oY3};
_.k.getExtension=function(q){return _.C(q,_.Tt)};
_.k.JSC$11807_buildRequest=function(q,w){w.videoId&&(q.playerRequest={videoId:w.videoId},w.playerParams&&(q.playerRequest.params=w.playerParams),w.racyCheckOk&&(q.playerRequest.racyCheckOk=!!w.racyCheckOk),w.contentCheckOk&&(q.playerRequest.contentCheckOk=!!w.contentCheckOk));w.params&&(q.params=w.params);w.inputType&&(q.inputType=w.inputType);q.disablePlayerResponse=!0};
_.k.getRequestConfig=function(q){var w;(q=this.JSC$11814_getStoreKey(q))&&(w={storeStrategy:{storeKey:q}});_.T("web_log_reels_ticks")&&(w=w||{},w.requestTick="r_wrs",w.responseTick="r_wrr");return w};
_.k.JSC$11814_getStoreKey=function(q){q=this.getExtension(q);if(_.T("shorts_controller_retrieve_seedless_sequence_v2")){if((q==null?void 0:q.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.l9("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.T("web_prefetch_riw_for_next_video")||_.T("web_shorts_prefetch_service_enabled"))&&q!=null&&q.videoId){var w={videoId:q.videoId};q.params&&(w.params=q.params);return _.l9("reel_item_watch",w)}};var td=function(){};
_.O(td,dS);_.k=td.prototype;_.k.getApiPaths=function(){return V0r};
_.k.getExtension=function(q){return _.C(q,_.Tt)};
_.k.JSC$11807_buildRequest=function(q,w,u){u=u===void 0?{}:u;q.sequenceParams=w.sequenceParams;var y;((y=u)==null?0:y.contentPlaybackContext)&&_.T("web_shorts_prefetch_service_enabled")&&(q.playbackContext={contentPlaybackContext:u.contentPlaybackContext})};
_.k.JSC$11814_getStoreKey=function(q){if(_.T("shorts_controller_retrieve_seedless_sequence_v2")&&(q=this.getExtension(q),q==null?0:q.sequenceParams))return _.l9("reel_watch_sequence",{sequenceParams:q.sequenceParams})};
_.k.getRequestConfig=function(q){q=this.JSC$11814_getStoreKey(q);var w;q&&(w={storeStrategy:{storeKey:q}});_.T("reel_watch_sequence_request_log_ticks")&&(w=w||{},w.requestTick="r_wsrs",w.responseTick="r_wsrr",w.processorTick="r_wsrp");return w};
var P$=function(){};
_.O(P$,dS);P$.prototype.getApiPaths=function(){return V0r};
P$.prototype.getExtension=function(q){return _.C(q,_.ZK)};
P$.prototype.JSC$11807_buildRequest=function(q,w,u){u=u===void 0?{}:u;w.token&&(q.continuation=w.token);var y;((y=u)==null?0:y.contentPlaybackContext)&&_.T("web_shorts_prefetch_service_enabled")&&(q.playbackContext={contentPlaybackContext:u.contentPlaybackContext})};
P$.prototype.getRequestConfig=function(q){q=this.JSC$11814_getStoreKey(q);var w;q&&(w={storeStrategy:{storeKey:q}});_.T("reel_watch_sequence_request_log_ticks")&&(w=w||{},w.requestTick="r_wsrs",w.responseTick="r_wsrr",w.processorTick="r_wsrp");return w};var FR=function(){};
_.O(FR,dS);FR.prototype.getApiPaths=function(){return cbk};
FR.prototype.getExtension=function(q){return _.C(q,_.dBa)};
FR.prototype.JSC$11807_buildRequest=function(q,w,u){u=u===void 0?{}:u;w.flagAction&&(q.action=w.flagAction);w.flagRequestType&&(q.flagRequestType=w.flagRequestType);w.additionalDetailCheckboxChecked&&(q.additionalDetailCheckboxChecked=w.additionalDetailCheckboxChecked);w.legalCheckboxChecked&&(q.legalCheckboxChecked=w.legalCheckboxChecked);w={};u.flag_issue_type!==void 0&&(w.issue=u.flag_issue_type);u.flag_affiliation!==void 0&&(w.affiliation=u.flag_affiliation);u.flag_full_name&&(w.fullName=u.flag_full_name);
Object.keys(w).length&&(q.legalReportDetails=w);if(u.flag_description||u.text)q.userComments=u.flag_description||u.text;w={};u.minutes!==void 0&&u.seconds!==void 0&&(w.minutes=u.minutes,w.seconds=u.seconds);u.vss_id&&(w.vssId=u.vss_id);Object.keys(w).length&&(q.videoReportDetails=w);w={};u.video_ids&&(w.videoIds=u.video_ids);u.impersonated_channel_url&&(w.impersonatedChannelUrl=u.impersonated_channel_url);Object.keys(w).length&&(q.channelAbuseReportDetails=w)};
_.x$.Object.defineProperties(FR.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var GR=function(){};
_.O(GR,dS);GR.prototype.getApiPaths=function(){return M$k};
GR.prototype.getExtension=function(q){return _.C(q,K_T)};
GR.prototype.JSC$11807_buildRequest=function(q,w){w.blockedForKidsContent&&(q.blockedForKidsContent=w.blockedForKidsContent)};var n3=function(){};
_.O(n3,dS);n3.prototype.getApiPaths=function(){return Am$};
n3.prototype.getExtension=function(q){return _.C(q,iPu)};
n3.prototype.JSC$11807_buildRequest=function(q,w,u){q.params=w.params;u.impersonated_channel_url&&(q.impersonatedChannelUrl=u.impersonated_channel_url)};var H$=function(){};
_.O(H$,dS);H$.prototype.getApiPaths=function(){return sNk};
H$.prototype.getExtension=function(q){return _.C(q,_.BPj)};
H$.prototype.JSC$11807_buildRequest=function(q,w){w.items&&(q.items=w.items);w.kidGaiaId&&(q.kidGaiaId=w.kidGaiaId)};var W$=function(){};
_.O(W$,dS);W$.prototype.getApiPaths=function(){return lUx};
W$.prototype.getExtension=function(q){return _.C(q,_.Gwr)};
W$.prototype.JSC$11807_buildRequest=function(q,w){w.params&&(q.params=w.params);w.targetId&&(q.targetId=w.targetId)};var s2=function(){};
_.O(s2,dS);s2.prototype.getApiPaths=function(){return Dq6};
s2.prototype.getExtension=function(q){return _.C(q,B9G)};
s2.prototype.JSC$11807_buildRequest=function(q,w){w.externalVideoId&&(q.externalVideoId=w.externalVideoId);w.query&&(q.query=w.query);w.sourceTimelines&&(q.sourceTimelines=w.sourceTimelines)};var Nl=function(){};
_.O(Nl,dS);Nl.prototype.getApiPaths=function(){return ZKk};
Nl.prototype.getExtension=function(q){return _.C(q,_.ZK)||void 0};
Nl.prototype.JSC$11807_buildRequest=function(q,w){w.token&&(q.continuation=w.token)};
_.feG=function(){};
_.O(_.feG,dS);_.k=_.feG.prototype;_.k.getApiPaths=function(){return ZKk};
_.k.getExtension=function(q){return _.C(q,_.ip)||void 0};
_.k.isNavigationCommand=function(){return!0};
_.k.JSC$11814_getStoreKey=function(q,w){w=w===void 0?{}:w;if(!w.disableCache&&(q=this.getExtension(q))&&q.query)return w={query:q.query},q.params&&(w.params=q.params),_.l9("search",w)};
_.k.JSC$11807_buildRequest=function(q,w,u){w.query&&(q.query=w.query);w.params&&(q.params=w.params);if(!_.T("web_forward_suggest_stats_killswitch")){var y=_.C(w,EQ3);y&&(q.suggestStats=y)}var e;!_.T("kevlar_searchbox_stats_killswitch")&&((e=u.tempData)==null?0:e.gs_l)&&!_.C(w,EQ3)&&(q.webSearchboxStatsUrl="/search?oq="+(u.tempData.oq||"")+"&gs_l="+u.tempData.gs_l);var t;if((t=u.tempData)==null?0:t.entityMid)w=q.suggestionSearchParams||{},w.entityMid=u.tempData.entityMid,q.suggestionSearchParams=w};
_.k.getRequestConfig=function(q,w){w=w===void 0?{}:w;q=this.JSC$11814_getStoreKey(q,w);var u;q&&(u={storeStrategy:{storeKey:q}});_.T("web_log_search_ticks_ks")||(u=u||{},u.requestTick="sr_s",u.responseTick="sr_r");return u};var Q7=function(){};
_.O(Q7,dS);Q7.prototype.getApiPaths=function(){return P1P};
Q7.prototype.getExtension=function(q){return _.C(q,DsF)};
Q7.prototype.JSC$11807_buildRequest=function(q,w){w.serializedGetSharingProviderDataParams&&(q.serializedGetSharingProviderDataParams=w.serializedGetSharingProviderDataParams)};var IC=function(){};
_.O(IC,dS);IC.prototype.getApiPaths=function(){return XdT};
IC.prototype.getExtension=function(q){return _.C(q,iOZ)};
IC.prototype.JSC$11807_buildRequest=function(q,w){w.endpoint&&(q.endpoint=w.endpoint);w.action&&(q.action=w.action)};var i$=function(){};
_.O(i$,dS);i$.prototype.getApiPaths=function(){return gu6};
i$.prototype.getExtension=function(q){return _.C(q,CGG)};
i$.prototype.JSC$11807_buildRequest=function(q,w){q.videoId=w.videoId;w.scheduledRedirectMetadataSourceVideoId&&(q.scheduledRedirectMetadata={sourceVideoId:w.scheduledRedirectMetadataSourceVideoId})};var m03=XMLHttpRequest.prototype.fetch,Ayk=m03&&m03.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!xF?!0:!1;var rq=function(q){this.JSC$15815_storeWithEntities=q};
_.O(rq,dS);_.k=rq.prototype;_.k.getApiPaths=function(){return C1k};
_.k.getExtension=function(q){return _.C(q,_.LN)||_.C(q,_.Tt)||_.C(q,O9F)};
_.k.isNavigationCommand=function(){return!0};
_.k.JSC$11814_getStoreKey=function(q){if((_.T("kevlar_cache_on_ttl_player")||_.T("mweb_enable_shorts_innertube_player_prefetch")||_.T("mweb_use_new_history_manager")||_.T("web_shorts_prefetch_service_enabled"))&&(q=this.getExtension(q))&&q.videoId){var w={videoId:q.videoId};q.playlistId&&(w.playlistId=q.playlistId);q.playerParams&&(w.params=q.playerParams);return _.l9("player",w)}};
_.k.JSC$11807_getClientScreen=function(q){var w;return((w=q.contentPlaybackContext)==null?void 0:w.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.k.JSC$11807_buildRequest=function(q,w,u){if(_.T("enable_interstitial_entity_check")){var y=this.JSC$15815_storeWithEntities;if(w.videoId)for(var e=_.P(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),t=e.next();!t.done;t=e.next()){t=t.value;var X;var G=void 0,n=void 0,N=w.videoId,Q=t;(X=y)?(N=_.na(N+Q,"interstitialInteractionStateEntity"),X=(G=(n=_.HQ(X.getState().entities,"interstitialInteractionStateEntity",N))==null?void 0:n.primaryButtonClicked)!=null?G:!1):X=!1;if(X)switch(t){case "CONTENT_CHECK_REQUIRED":w.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":w.racyCheckOk=!0}}}w.videoId&&(q.videoId=w.videoId);w.playlistId&&(q.playlistId=w.playlistId);w.index!==void 0&&(q.playlistIndex=w.index+1);w.playerParams&&(q.params=w.playerParams);"startTimeSeconds"in w&&w.startTimeSeconds&&(_.T("enable_player_request_builder_start_time_floor")?q.startTimeSecs=Math.floor(w.startTimeSeconds):q.startTimeSecs=w.startTimeSeconds);u.contentPlaybackContext&&(q.playbackContext={contentPlaybackContext:u.contentPlaybackContext});u.prefetchPlaybackContext&&
(q.playbackContext=Object.assign({},q.playbackContext,{prefetchPlaybackContext:u.prefetchPlaybackContext}),q.context.request||(q.context.request={}),q.context.request.isPrefetch=!0);q.playbackContext||(q.playbackContext={});y=lW$();q.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!y,supportXhr:Ayk};u.overrideMutedAtStart&&(q.overrideMutedAtStart=u.overrideMutedAtStart);q.racyCheckOk=!!w.racyCheckOk;q.contentCheckOk=!!w.contentCheckOk;!_.T("captions_prefs_killswitch")&&(u=(u=_.Pd("yt-player-caption-language-preferences"))?
u:[],u==null?0:u.length)&&(q.captionParams={viewerSelectedCaptionLangs:u})};
_.k.getRequestConfig=function(q){q=this.JSC$11814_getStoreKey(q);var w;q&&(w={storeStrategy:{storeKey:q}});_.T("web_log_player_watch_next_ticks")&&(w=w||{},w.requestTick="ps_s",w.responseTick="ps_r");return w};
rq[Ld]=[FN];var U2=function(){};
_.O(U2,dS);U2.prototype.getApiPaths=function(){return bKk};
U2.prototype.getExtension=function(q){return _.C(q,_.WZ3)};
U2.prototype.JSC$11807_buildRequest=function(q,w){q.params=w.params;q.correctionText=w.correctionText};var TR=function(){};
_.O(TR,dS);TR.prototype.getApiPaths=function(){return OZM};
TR.prototype.getExtension=function(q){return _.C(q,_.xGF)};
TR.prototype.JSC$11807_buildRequest=function(q,w){w.params&&(q.params=w.params);q.searchQuery=w.searchQuery;q.languageCode=w.languageCode;q.kind=w.kind;q.name=w.name;q.externalVideoId=w.externalVideoId};var C3=function(){};
_.O(C3,dS);_.k=C3.prototype;_.k.getApiPaths=function(){return xqc};
_.k.getExtension=function(q){return _.C(q,_.LN)};
_.k.isNavigationCommand=function(){return!0};
_.k.JSC$11814_getStoreKey=function(q){if((q=this.getExtension(q))&&q.videoId){var w={videoId:q.videoId};q.playlistId&&(w.playlistId=q.playlistId);q.index&&(w.index=q.index);q.params&&(w.params=q.params);return _.l9("next",w)}};
_.k.JSC$11807_getClientScreen=function(q){var w;return((w=q.contentPlaybackContext)==null?void 0:w.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.k.JSC$11807_buildRequest=function(q,w,u){w.videoId&&(q.videoId=w.videoId);w.playlistId&&(q.playlistId=w.playlistId);w.params&&(q.params=w.params);w.index!==void 0&&(q.playlistIndex=w.index);q.racyCheckOk=!(!u.racyCheckOk&&!w.racyCheckOk);q.contentCheckOk=!!w.contentCheckOk;u.contentPlaybackContext&&(q.autonavState=u.contentPlaybackContext.autonavState,q.playbackContext={vis:u.contentPlaybackContext.vis,lactMilliseconds:u.contentPlaybackContext.lactMilliseconds});u.prefetchPlaybackContext&&(q.context.request||
(q.context.request={}),q.context.request.isPrefetch=!0);_.T("captions_hats_killswitch")||(w=_.UC().getFlag(65),w=w!=null?!w:!1,u=!!_.Pd("yt-player-sticky-caption"),q.captionsRequested=w&&u)};
_.k.getRequestConfig=function(q){q=this.JSC$11814_getStoreKey(q);var w;q&&(w={storeStrategy:{storeKey:q}});_.T("web_log_player_watch_next_ticks")&&(w=w||{},w.requestTick="wn_s",w.responseTick="wn_r");return w};
var dq=function(){};
_.O(dq,dS);dq.prototype.getApiPaths=function(){return xqc};
dq.prototype.getExtension=function(q){return _.C(q,_.ZK)};
dq.prototype.JSC$11807_buildRequest=function(q,w){w.token&&(q.continuation=w.token)};var O2=function(q,w){this.playerRequestBuilder=q;this.watchNextRequestBuilder=w};
_.O(O2,dS);O2.prototype.getApiPaths=function(){return nY6};
O2.prototype.getExtension=function(q){return _.C(q,_.LN)};
O2.prototype.isNavigationCommand=function(){return!0};
O2.prototype.JSC$11807_buildRequest=function(q,w,u){q.playerRequest={};this.playerRequestBuilder.JSC$11807_buildRequest(q.playerRequest,w,u);_.T("web_streaming_watch")&&(q.watchNextRequest={},this.watchNextRequestBuilder.JSC$11807_buildRequest(q.watchNextRequest,w,u))};
O2[Ld]=[rq,C3];var oC=function(){};
_.O(oC,dS);oC.prototype.getApiPaths=function(){return qhj};
oC.prototype.getExtension=function(q){return _.C(q,fEj)};
oC.prototype.JSC$11807_buildRequest=function(q,w){w.params&&(q.params=w.params)};var V7=function(q){this.JSC$15842_storeWithEntities=q};
_.O(V7,dS);V7.prototype.getApiPaths=function(){return Abj};
V7.prototype.getExtension=function(q){return _.C(q,AO3)||_.C(q,zIT)};
V7.prototype.JSC$11807_buildRequest=function(q,w,u){u.client_data&&(q.clientData=u.client_data);if(w.commerceActionConfig){var y=w.commerceActionConfig;w=y.actionId;y=y.commerceActionParams;w&&(q.actionId=w);y&&(q.commerceActionParams=y)}else{var e=w.actionId,t=w.commerceActionParams;u=w.entityKeys;e&&(q.actionId=e);t&&(q.commerceActionParams=t);var X;w=(y=this.JSC$15842_storeWithEntities)==null?void 0:(X=y.getState())==null?void 0:X.entities;if(u&&w){y=[];X=_.P(u);for(u=X.next();!u.done;u=X.next())if(e=
u.value,u=_.XX(e).entityType,e=_.HQ(w,u,e))t={},y.push((t[u]=e,t));q.entityMutationPayloads=y}}};
V7.prototype.getRequestConfig=function(q){var w,u=(w=_.C(q,AO3))==null?void 0:w.requestSequenceType;if(u&&q.clickTrackingParams&&u!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:q.clickTrackingParams,sequenceType:u}}};
V7[Ld]=[FN];var f3=function(){};
_.O(f3,dS);f3.prototype.getApiPaths=function(){return wYk};
f3.prototype.getExtension=function(q){return _.C(q,_.MLG)};
f3.prototype.JSC$11807_buildRequest=function(q,w){w.feedbackData&&(q.feedbackData=w.feedbackData);w.params&&(q.itemParams=w.params)};
_.x$.Object.defineProperties(f3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var me=function(){};
_.O(me,dS);me.prototype.getApiPaths=function(){return u5$};
me.prototype.getExtension=function(q){return _.C(q,KZX)};
me.prototype.JSC$11807_buildRequest=function(q,w,u){u.payments_payload&&(q.paymentsPayload=u.payments_payload);u.offer_params&&(q.offerParams=u.offer_params);w.transactionParams&&(q.transactionParams=w.transactionParams)};var Ad=function(){};
_.O(Ad,dS);Ad.prototype.getApiPaths=function(){return yV$};
Ad.prototype.getExtension=function(q){return _.C(q,_.BfT)};
Ad.prototype.JSC$11807_buildRequest=function(q,w,u){u=u===void 0?{}:u;w.buybucketParams&&(q.buybucketData={params:w.buybucketParams},w.stickerParams?q.buybucketData.stickerParams=w.stickerParams:(u.rich_chat_message?q.buybucketData.richChatMessage=u.rich_chat_message:u.chat_message_text&&(q.buybucketData.chatMessageText=u.chat_message_text),u.purchase_price_micros&&(q.buybucketData.purchasePriceMicros=u.purchase_price_micros.toString())));w.donationAmountMicros&&(q.tipAmountMicros=w.donationAmountMicros,
w.tipParams&&(q.tipParams=w.tipParams));w.offerParams&&(q.offerParams=w.offerParams);w.productData&&(q.productData=w.productData);w.transactionParams&&(q.transactionParams=w.transactionParams)};var Jd=function(){};
_.O(Jd,dS);Jd.prototype.getApiPaths=function(){return eFr};
Jd.prototype.getExtension=function(q){return _.C(q,whr)};
Jd.prototype.JSC$11807_buildRequest=function(q,w){w.updateFopParams&&(q.updateFopParams=w.updateFopParams)};var zR=function(){};
_.O(zR,dS);zR.prototype.getApiPaths=function(){return kDT};
zR.prototype.getExtension=function(q){return _.C(q,_.ur)};
zR.prototype.JSC$11807_buildRequest=function(q,w){w.couponCode&&(q.couponCode=w.couponCode);w.params&&(q.itemParams=w.params)};var aC=function(){};
_.O(aC,dS);aC.prototype.getApiPaths=function(){return tXr};
aC.prototype.getExtension=function(q){return _.C(q,_.JOX)};
aC.prototype.JSC$11807_buildRequest=function(q,w,u){u=u===void 0?{}:u;w.params&&(q.params=w.params);u.ctk&&(q.clientToken=u.ctk)};var Dw=function(q){this.JSC$15877_storeWithEntities=q};
_.O(Dw,dS);Dw.prototype.getApiPaths=function(){return Pxj};
Dw.prototype.getExtension=function(q){return _.C(q,_.vi)};
Dw.prototype.JSC$11807_buildRequest=function(q,w,u){u.purchase_price_micros&&(q.productData={pdgData:{purchasePriceMicros:u.purchase_price_micros.toString()}},u.rich_chat_message&&(q.productData.pdgData.richChatMessage=u.rich_chat_message),u.currency_code&&(q.productData.pdgData.currencyCode=u.currency_code));w.transactionParams&&(q.transactionParams=w.transactionParams);w.clientLocationContext&&(q.clientLocationContext=w.clientLocationContext);u.payments_payload&&(q.paymentsPayload=u.payments_payload);
u.funds_guarantee_callback_client_data&&(q.fundsGuaranteeCallbackClientData=u.funds_guarantee_callback_client_data);var y,e;u=(y=this.JSC$15877_storeWithEntities)==null?void 0:(e=y.getState())==null?void 0:e.entities;if(w.entityKeys&&u){y=[];w=_.P(w.entityKeys);for(e=w.next();!e.done;e=w.next()){var t=e.value;e=_.XX(t).entityType;if(t=_.HQ(u,e,t)){var X={};y.push((X[e]=t,X))}}q.entityMutationPayloads=y}};
Dw[Ld]=[FN];var Zw=function(){};
_.O(Zw,dS);Zw.prototype.getApiPaths=function(){return XYa};
Zw.prototype.getExtension=function(q){return _.C(q,xYG)};
Zw.prototype.JSC$11807_buildRequest=function(q,w,u){u=u===void 0?{}:u;u.backend_analytics&&(q.serializedBackendAnalyticsEvent=u.backend_analytics);w.offerParams&&(q.offerParams=w.offerParams)};var p3=function(){};
_.O(p3,dS);p3.prototype.getApiPaths=function(){return kDT};
p3.prototype.getExtension=function(q){return _.C(q,qRj)};
p3.prototype.JSC$11807_buildRequest=function(q,w){w.params&&(q.itemParams=w.params)};var $W=function(){};
_.O($W,dS);$W.prototype.getApiPaths=function(){return FDG};
$W.prototype.getExtension=function(q){return _.C(q,_.$YF)};
$W.prototype.JSC$11807_buildRequest=function(q,w,u){u.resume_time_ms&&(q.resumeTimeMs=u.resume_time_ms);w.pauseParams&&(q.pauseParams=w.pauseParams)};var v$=function(){};
_.O(v$,dS);v$.prototype.getApiPaths=function(){return GDG};
v$.prototype.getExtension=function(q){return _.C(q,_.qeT)};
v$.prototype.JSC$11807_buildRequest=function(q,w,u){u=u===void 0?{}:u;u.c&&(q.redeemCode=u.c);u.rd&&(q.riskData=u.rd);u.ctk&&(q.clientToken=u.ctk)};var b$=function(){};
_.O(b$,dS);b$.prototype.getApiPaths=function(){return nEX};
b$.prototype.getExtension=function(q){return _.C(q,_.vPF)};
b$.prototype.JSC$11807_buildRequest=function(q,w){w.resumeParams&&(q.resumeParams=w.resumeParams)};var YW=function(q,w){this.clientName=q;this.defaultExpirationDelayMs=w};
YW.prototype.put=function(q,w){var u=this,y;return _.F(function(e){y=Object.assign({},w.data);y.key=q;y.clientName=u.clientName;y.expireTimestampMs===void 0&&(y.expireTimestampMs=(Math.round((0,_.eW)())+u.defaultExpirationDelayMs).toString());return e.return(u.putInternal(q,y))})};
YW[Ld]=[W5,EyT];var JyT=function(){YW.apply(this,arguments);this.JSC$15907_responseStore=new Map};
_.O(JyT,YW);_.k=JyT.prototype;_.k.get=function(q){var w=this;return _.F(function(u){return u.return(y$(w,q))})};
_.k.putInternal=function(q,w){var u=this,y,e,t;return _.F(function(X){y=u.defaultExpirationDelayMs;w.expireTimestampMs&&(y=Number(w.expireTimestampMs)-Math.round((0,_.eW)()),e=_.Fc("mweb_override_response_store_expiration_ms"),e>0&&e<y&&(y=e));t=setTimeout(function(){u.remove(q)},y);
u.JSC$15907_responseStore.set(q,{entryData:w,timer:t});_.HI(X)})};
_.k.remove=function(q){var w=this;return _.F(function(u){zpc(w,q);_.HI(u)})};
_.k.removeAll=function(){var q=this;return _.F(function(w){q.JSC$15907_responseStore.forEach(function(u){clearTimeout(u.timer)});
q.JSC$15907_responseStore.clear();_.HI(w)})};
_.k.has=function(q){return!!this.JSC$15907_responseStore.get(q)};
_.k.getKeys=function(){return this.JSC$15907_responseStore.keys()};
var y$=function(q,w){if(q=q.JSC$15907_responseStore.get(w))return new _.ub(q.entryData)},zpc=function(q,w){var u=q.JSC$15907_responseStore.get(w);
u&&(clearTimeout(u.timer),q.JSC$15907_responseStore.delete(w))};var UxM;var dxM=function(q,w,u){YW.call(this,q,w);this.token=u};
_.O(dxM,YW);_.k=dxM.prototype;_.k.get=function(q){var w=this,u,y;return _.F(function(e){return e.nextAddress==1?_.H(e,CWz(w.token),2):e.nextAddress!=3?(u=e.yieldResult,_.H(e,u.get("ResponseStore",[q,w.clientName]),3)):(y=e.yieldResult)?e.return(new _.ub(y)):e.return(void 0)})};
_.k.putInternal=function(q,w){var u=this,y;return _.F(function(e){if(e.nextAddress==1)return _.H(e,CWz(u.token),2);y=e.yieldResult;return _.H(e,y.put("ResponseStore",w),0)})};
_.k.remove=function(q){var w=this,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,CWz(w.token),2);u=y.yieldResult;return y.return(u.delete("ResponseStore",[q,w.clientName]))})};
_.k.removeAll=function(){var q=this,w;return _.F(function(u){if(u.nextAddress==1)return _.H(u,CWz(q.token),2);w=u.yieldResult;return _.H(u,qEP(w,IDBKeyRange.only(q.clientName)),0)})};
_.k.has=function(){throw Error("Ui");};_.gq=new _.MH("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var aea=function(q){var w;this.stateTagsData=(w=q.responseContext)==null?void 0:w.stateTags},D0x=function(q){var w;
return((w=q.stateTagsData)==null?void 0:w.stateTagsModified)||[]};var ZIk;ZIk=function(q){this.JSC$15920_responseStore=q};
_.gZ=function(q,w,u){if(!_.T("state_tags_killswitch")){var y=new aea(w);if(D0x(y).length>0){var e=q.JSC$15920_responseStore.getKeys();e=_.P(e);for(var t=e.next();!t.done;t=e.next()){t=t.value;var X=y$(q.JSC$15920_responseStore,t);if(X){var G=_.Pr(X);a:{var n=void 0;X=D0x(y);G=((n=(new aea(G)).stateTagsData)==null?void 0:n.relevantStateTags)||[];n=_.P(G);for(G=n.next();!G.done;G=n.next())if(G=G.value,G.stateTag!=null&&X.includes(G.stateTag)&&G.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){X=
!0;break a}X=!1}X&&zpc(q.JSC$15920_responseStore,t)}}}}var N;y=(N=w.responseContext)==null?void 0:N.maxAgeSeconds;_.T("web_prefetch_riw_for_next_video")&&!y&&w.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(y=3600);u&&y&&Number(y)>0&&(w=PC(w,y),q.JSC$15920_responseStore.put(u,new _.ub(w)))};
ZIk.prototype.handleResponse=function(q,w){if(!w)throw Error("Vi");var u,y;w=(u=w.config)==null?void 0:(y=u.storeStrategy)==null?void 0:y.storeKey;_.gZ(this,q,w)};
ZIk[Ld]=[_.wu];_.Wqc=new _.MH("STORE_RESPONSE_PROCESSOR_TOKEN");var poT=function(q){this.JSC$15923_responseStore=q};
poT.prototype.handleResponse=function(q,w){if(w.input.match(_.Ka(V0r))){var u;if(q==null?0:(u=q.entries)==null?0:u.length)for(q=_.P(q.entries),w=q.next();!w.done;w=q.next()){u=w.value.command;var y=void 0;w=(y=_.C(u,_.Tt))==null?void 0:y.unserializedPrefetchData;if(!u||!w)break;y=(new kW).JSC$11814_getStoreKey(u);var e=_.C(w,cLT),t=void 0,X=void 0,G=void 0,n=_.Fc("web_shorts_prefetch_service_ttl_seconds")>0?_.Fc("web_shorts_prefetch_service_ttl_seconds"):Number((G=(t=e)==null?void 0:(X=t.responseContext)==
null?void 0:X.maxAgeSeconds)!=null?G:3600);y&&n>0&&(e=PC(e,n),this.JSC$15923_responseStore.put(y,new _.ub(e)));u=(new rq).JSC$11814_getStoreKey(u);w=_.C(w,fr6);t=e=y=void 0;X=_.Fc("web_shorts_prefetch_service_ttl_seconds")>0?_.Fc("web_shorts_prefetch_service_ttl_seconds"):Number((t=(y=w)==null?void 0:(e=y.responseContext)==null?void 0:e.maxAgeSeconds)!=null?t:3600);u&&X>0&&(w=PC(w,X),this.JSC$15923_responseStore.put(u,new _.ub(w)))}}};
poT[Ld]=[_.wu];var $0G=function(q){this.innertubeTransportService=q};
$0G[Ld]=[_.oi];var vn3=new _.MH("SUBMIT_API_SERVICE_TOKEN");var E2=function(){this.scheduler=_.Vk()},bIr;
E2.prototype.pause=function(){throw Error("Wi");};
E2.prototype.resume=function(){throw Error("Wi");};
E2.prototype.queue=function(q){var w=this,u=_.S6(),y=_.mg(this.scheduler,function(){try{var e;if(_.nx.instance)var t=_.nx.instance;else{var X=new _.fv("Error: Unexpected uninitialized CommandHandler.");_.vm(X);t=void 0}(e=t)==null||e.resolveCommand(q.command);u.resolve()}catch(G){u.reject(G)}});
u.promise.thenCatch(function(e){e instanceof _.hK&&w.scheduler.cancelJob(y)});
return u.promise};
E2.prototype.queueAll=function(q){var w=new Map;q=_.P(q);for(var u=q.next();!u.done;u=q.next())u=u.value,w.set(u.id,this.queue(u));return w};var gnk=function(q,w){var u=this;this.taskModel=q;this.onTaskCancelledCallback=w;this.resolver=_.S6();q=q.proto.prefetchConfig;if(!q)throw Error("Xi");if(!q.prefetchAction)throw Error("Yi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(y){y instanceof _.hK&&(YUF(u,u.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),u.onTaskCancelledCallback(u.taskModel.id,u.jobId),u.tick("pcc"));
throw y;});
this.timerName=this.taskModel.id;_.aD(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},EnT=function(q){switch(q.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},YUF=function(q,w){_.zM({prefetchInfo:{cancellationReason:w}},q.timerName)};
gnk.prototype.tick=function(q){_.D_(q,void 0,this.timerName)};var c$=function(){var q=this;this.scheduler=_.Vk();this.maxInflightTasks=_.Fc("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.Fc("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new Cp3;this.onTaskCancelled=function(w,u){u&&q.scheduler.cancelJob(u);Rpr(q,w);RC(q,3)}},cyk=function(){c$.instance||(c$.instance=new c$);
return c$.instance};
c$.prototype.pause=function(){this.prefetchCoordinatorState=0};
c$.prototype.resume=function(){RC(this,0)};
c$.prototype.queue=function(q){q=SU6(this,q);RC(this,1);return q};
c$.prototype.queueAll=function(q){var w=new Map;q=_.P(q);for(var u=q.next();!u.done;u=q.next())u=u.value,w.set(u.id,SU6(this,u));RC(this,1);return w};
var SU6=function(q,w){var u=q.allPrefetchTasks.get(w.id);if(u)return u.cancellablePromise;try{var y=new gnk(w,q.onTaskCancelled)}catch(t){return _.og(t)}u=y;u.tick("pcq");var e={prefetchInfo:{taskId:u.taskModel.id,isPrefetch:!0,fetchAction:u.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:u.taskModel.command.clickTrackingParams}};u.taskModel.csn&&(e.clientScreenNonce=u.taskModel.csn);_.zM(e,u.timerName);q.allPrefetchTasks.set(w.id,y);q.drainingHeap.insert(-EnT(y),y);return y.cancellablePromise},
RC=function(q,w){q.prefetchCoordinatorState===w&&(q.prefetchCoordinatorState=2,hpj(q))},hpj=function(q){for(var w={};q.prefetchCoordinatorState!==0;w={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(q.inflightPrefetchTasks.size>=q.maxInflightTasks){q.prefetchCoordinatorState=3;break}w.prefetchTask$jscomp$1=q.drainingHeap.remove();if(!w.prefetchTask$jscomp$1){q.prefetchCoordinatorState=1;break}w.taskId$jscomp$3=w.prefetchTask$jscomp$1.taskModel.id;if(q.allPrefetchTasks.has(w.taskId$jscomp$3)){var u=-1;q.coordinatorTimeoutMs>0&&(u=_.mg(q.scheduler,function(y){return function(){SY(q,y.taskId$jscomp$3,Error("Zi"))}}(w),q.coordinatorTimeoutMs));
q.inflightPrefetchTasks.set(w.taskId$jscomp$3,u);if(!q.JSC$15941_commandHandler){if(!_.nx.instance){SY(q,w.taskId$jscomp$3,Error("$i"));continue}q.JSC$15941_commandHandler=_.nx.instance}a:switch(w.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":u=1;break a;default:u=0}w.prefetchTask$jscomp$1.jobId=q.scheduler.addJob(function(y){return function(){y.prefetchTask$jscomp$1.tick("pcr");try{q.JSC$15941_commandHandler.resolveCommand(y.prefetchTask$jscomp$1.taskModel.command)||
SY(q,y.taskId$jscomp$3,Error("aj"))}catch(e){SY(q,y.taskId$jscomp$3,e)}}}(w),u,0)}}},jh3=function(q,w){(w=Rpr(q,w))!=null&&(w.resolver.resolve(),w.tick("pce"));
RC(q,3)},SY=function(q,w,u){(w=Rpr(q,w,u))!=null&&(w.resolver.reject(u),w.tick("pcc"),YUF(w,"CANCELLATION_REASON_ERROR"),Math.random()<=_.Fc("prefetch_coordinator_error_logging_sampling_rate")&&(u=new _.fv("Prefetch Command failed.",w.taskModel.id,u.message),_.vm(u)));
RC(q,3)},Rpr=function(q,w,u){var y=q.allPrefetchTasks.get(w);
y?((u=q.inflightPrefetchTasks.get(w))&&u!==-1&&q.scheduler.cancelJob(u),q.inflightPrefetchTasks.delete(w),q.allPrefetchTasks.delete(w)):_.Y8(new _.fv("Unexpected missing prefetch task when deleting task.",w,u==null?void 0:u.message));return y};var lej=function(q,w,u,y,e){this.id=q;this.triggerOn=w;this.cancelOn=u;this.command=y;this.proto=e};
_.x$.Object.defineProperties(lej.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var LSZ=function(){this.JSC$15946_prefetchCoordinator=cyk();bIr||(bIr=new E2);this.defaultCoordinator=bIr},M5T;
LSZ.getInstance=function(){M5T||(M5T=new LSZ);return M5T};
LSZ.prototype.get=function(q){switch(q){case 0:return this.JSC$15946_prefetchCoordinator;default:return this.defaultCoordinator}};var hd=function(){this.coordinatorSupplier=LSZ.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},x06=function(q){var w=_.pN()||void 0,u=Object.keys(KSZ)[0];
if(u){var y=q.taskIdByTriggerId.get(u);if(y!=null){q.taskIdByTriggerId.delete(u);u=[];y=_.P(y);for(var e=y.next();!e.done;e=y.next())if(e=q.tasks.get(e.value))w!=="UNDEFINED_CSN"&&(e.csn=w),u.push(e);u=Vks(u);w=[];u=_.P(u);for(y=u.next();!y.done;y=u.next()){e=_.P(y.value);y=e.next().value;e=e.next().value;y=q.coordinatorSupplier.get(y).queueAll(e);y=_.P(y);var t=y.next();for(e={};!t.done;e={taskId$jscomp$9:void 0},t=y.next()){var X=_.P(t.value);t=X.next().value;X=X.next().value;e.taskId$jscomp$9=
t;t=X;w.push(e.taskId$jscomp$9);q.queuedPromisesByTask.set(e.taskId$jscomp$9,_.Uj(t,function(G){return function(){B7G(q,G.taskId$jscomp$9)}}(e)))}}}}else _.Y8(new _.fv("Unexpected malformed TriggerEvent."))};
hd.prototype.trigger=function(q,w){var u=this,y=this.tasks.get(q);if(!y||this.queuedPromisesByTask.has(q))return!1;q9Z(this,q,y.triggerOn);w!=="UNDEFINED_CSN"&&(y.csn=w);w=this.coordinatorSupplier.get(y.taskType).queue(y);this.queuedPromisesByTask.set(q,_.Uj(w,function(){B7G(u,q)}));
return!0};
hd.prototype.cancel=function(q){var w=this.queuedPromisesByTask.get(q);if(w)w.cancel();else return B7G(this,q)};
var B7G=function(q,w){q.queuedPromisesByTask.delete(w);var u=q.tasks.get(w);if(!u)return!1;q.tasks.delete(w);q9Z(q,w,u.triggerOn);(u=oOc(u.cancelOn))&&(q=q.taskIdByCancelId.get(u))&&q.delete(w);return!0},q9Z=function(q,w,u){(u=Object.keys(u)[0])&&(q=q.taskIdByTriggerId.get(u))&&q.delete(w)};var KSZ={taskRegistered:{}},jY=function(){hd.instance||(hd.instance=new hd);this.JSC$15955_taskManager=hd.instance};
_.O(jY,Vh);
jY.prototype.resolveCommand=function(q){var w=this,u,y;return _.F(function(e){u=_.C(q,Sl3);if((y=u)==null||!y.tasks){var t=new _.fv("RegisterTasksCommand is missing tasks.");_.vm(t);return e.return()}t=w.JSC$15955_taskManager;for(var X=_.P(u.tasks),G=X.next();!G.done;G=X.next())if(G=G.value,G=G.id&&G.triggerOn&&G.cancelOn&&G.command?new lej(G.id,G.triggerOn,G.cancelOn,G.command,G):void 0,G){var n=Object.keys(G.triggerOn)[0];if(n){var N=oOc(G.cancelOn);N?(t.tasks.set(G.id,G),t.taskIdByTriggerId.has(n)||t.taskIdByTriggerId.set(n,
new Set),t.taskIdByTriggerId.get(n).add(G.id),t.taskIdByCancelId.has(N)||t.taskIdByCancelId.set(N,new Set),t.taskIdByCancelId.get(N).add(G.id)):_.Y8(new _.fv("Unexpected malformed cancelOn field."))}else _.Y8(new _.fv("Unexpected malformed triggerOn field."))}else _.Y8(new _.fv("Unexpected malformed Task proto."));x06(w.JSC$15955_taskManager);_.HI(e)})};var wLr={},uzP=(wLr.rendered={priority:0,callback:function(){var q={};q.numCpu=navigator.hardwareConcurrency;var w={};w.ramGb=_.uc.navigator.deviceMemory;var u={staticContext:{}};w.ramGb&&fg4(w.ramGb)&&(u.staticContext.memoryTotalKbytes=(w.ramGb*1048576).toString());q.numCpu&&fg4(q.numCpu)&&(u.staticContext.cpuCores=q.numCpu);if(_.T("web_enable_adaptive_appl_signal")){q={};w=_.$1("rses_dpj");var y=_.$1("rsef_dpj");w&&w>0&&y&&y>0&&(w=Math.ceil(y-w),w>0&&(q.loadLatency=w));q.loadLatency&&fg4(q.loadLatency)&&
(u.appL=q.loadLatency.toString())}_.pn("applicationStarted",u)}},wLr);var yf$=new _.MH("WINDOW_ON_ERROR"),e6T=new _.MH("ERROR_WEIGHT_MAPS"),kJT=new _.MH("INIT_ERROR");var tek={},PCT=(tek.initialized={priority:10,callback:function(q){q.injector.resolve(kJT)()}},tek);var XLj=function(){},FcG=function(){var q=_.hP("meta_logger_impl");
q||(q=new XLj,_.wr("meta_logger_impl",q));return q},GJT=function(){FcG().csiSubscriptionKey=GaH("meta_logging_csi_event",function(q){var w=q.timerName;
if(q=q.timelineData){_.aD(w,{startTime:q.startTime},w);q.infos&&_.zM(q.infos,w);for(var u=_.P(Object.keys(q.ticks)),y=u.next();!y.done;y=u.next())y=y.value,_.D_(y,q.ticks[y],w)}})};
XLj.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&WOf(this.csiSubscriptionKey)};var nvT={},HuG=(nvT.initialized={priority:10,callback:function(){GJT()}},nvT);var Wcx=function(q,w){this.innertubeClientName=q;this.JSC$15971_prefCookie=w};
Wcx.prototype.record=function(){if(_.T("web_li_record_binary_eval_tick")){var q=_.$1("rsef_dpj");var w=_.$1("rses_dpj");q=q!==void 0&&w!==void 0?Math.round(q-w):void 0;if(q!==void 0&&q>0){w=_.Pd(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var u=this.poolSize;if(!(w.valuesSeen>=1E9)){if(w.valuesSample.length<u)w.valuesSample.push(q);else{var y=Math.floor(Math.random()*(w.valuesSeen+1));y<u&&(w.valuesSample[y]=q)}w.valuesSeen+=1}_.tm(this.storagePrefix+"-"+this.innertubeClientName,
w,2592E3);q=w.valuesSample;w=mxM(q);q=q.length<5?void 0:w<400?1:w<1700?2:3;q!==void 0&&(this.JSC$15971_prefCookie.set(this.cookiePrefix+this.innertubeClientName,q),this.JSC$15971_prefCookie.save())}}else _.XS(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$15971_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$15971_prefCookie.save()};
Wcx[Ld]=[W5,Rd];var s7x=function(){Wcx.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.O(s7x,Wcx);var NRZ=new _.MH("PAGE_LOAD_TIME_TOKEN");var Q7T=new _.MH("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var l$=function(q,w){this.JSC$15992_storeWithEntities=q;this.JSC$15992_commandHandler=w;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
l$.prototype.start=function(){this.JSC$15992_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
l$.prototype.observeDownloadingEntities=function(){var q=_.rUc(this.JSC$15992_storeWithEntities.getState().entities).map(function(y){return Usu(y)});
if(q.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var w={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:zRJ()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.yU(_.ID("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$15992_commandHandler.resolveCommand(w)}this.downloadingEntities=q}else if(this.downloadingEntities.length){var u=iHz(this.JSC$15992_storeWithEntities.getState().entities).map(function(y){return Usu(y)});
this.downloadingEntities.filter(function(y){return u.includes(y)}).length&&(q={openPopupAction:nOf()},this.JSC$15992_commandHandler.resolveCommand(q));
this.downloadingEntities=[]}};
l$[Ld]=[FN,_.PG];var I3x;_.L3=function(q,w,u,y,e,t,X,G){this.JSC$15995_playerApiPromise=q;this.JSC$15995_commandHandler=w;this.JSC$15995_screenManager=u;this.offlineWebClientEligibility=y;this.JSC$15995_prefStorage=e;this.JSC$15995_actionRouter=t;this.entityTypeMap=X;this.JSC$15995_persistentStorePromiseAccessor=G;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
I3x=function(){var q=_.tG().resolve(_.L3),w;_.F(function(u){if(u.nextAddress==1)return q.downloadFailureListenerBound?u.return():_.H(u,q.JSC$15995_playerApiPromise,2);w=u.yieldResult;w.addEventListener("onOfflineOperationFailure",function(y){if(y.failureReason&&y.entityKey&&y.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(y.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var e=_.XX(y.entityKey).entityId;e&&q.JSC$15995_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
e)}else if(_.T("kevlar_woffle")){e=q.JSC$15995_commandHandler;var t=e.resolveCommand;y=y.failureReason;var X=_.ID("TRANSFER_FAILED",void 0,"Download failed");y==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(X=_.ID("STORAGE_FULL",void 0,"Storage full"));t.call(e,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.yU(X),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
q.downloadFailureListenerBound=!0;_.HI(u)})};
_.L3.prototype.deleteVideo=function(q,w){var u=this,y,e,t;return _.F(function(X){if(X.nextAddress==1)return _.H(X,u.JSC$15995_playerApiPromise,2);y=X.yieldResult;t={offlineLoggingData:{offlineDeleteReason:(e=w)!=null?e:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.H(X,y.queueOfflineAction(q,u.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",t),0)})};
_.L3.prototype.pauseVideoDownload=function(q){var w=this,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,w.JSC$15995_playerApiPromise,2);u=y.yieldResult;u.pauseVideoDownload(q);_.HI(y)})};
_.L3.prototype.resumeVideoDownload=function(q){var w=this,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,w.JSC$15995_playerApiPromise,2);u=y.yieldResult;return _.H(y,u.resumeVideoDownload(q),0)})};
_.L3[Ld]=[_.kH,_.PG,_.WY,Q7T,jb,jL,Nt3,h9];var iuG=new _.MH("DOWNLOAD_STATE_STORE_TOKEN");var rfP=function(q,w){this.JSC$16014_persistentStorePromiseAccessor=q;this.store=w;this.upliftCompletionResolver=new _.Gt},CC3=function(){var q=_.tG().resolve(UvT),w;
_.F(function(u){switch(u.nextAddress){case 1:if(q.upliftImplPromise)return u.return(q.upliftImplPromise);_.tD(u,2);q.upliftImplPromise=TR$(q);return _.H(u,q.upliftImplPromise,4);case 4:q.upliftCompletionResolver.resolve();_.jv(u,3);break;case 2:throw w=_.nm(u),q.upliftCompletionResolver.reject(w),w;case 3:return u.return(q.upliftImplPromise)}})},TR$=function(q){var w,u,y;
return _.F(function(e){switch(e.nextAddress){case 1:return _.RX("LOGGED_IN")?_.H(e,q.JSC$16014_persistentStorePromiseAccessor(),2):e.return();case 2:w=e.yieldResult;if(!w)return _.D_("vdeur"),e.return();_.D_("vdeus");_.tD(e,3);return _.H(e,dvT(w),5);case 5:u=e.yieldResult;q.store.dispatch(fNJ(u));w.observe(function(t){mAu(q.store,t)});
_.jv(e,4);break;case 3:throw y=_.nm(e),_.D_("vdeur"),y;case 4:_.D_("vdeuc"),_.HI(e)}})},dvT=function(q){var w;
return _.F(function(u){if(u.nextAddress==1)return _.H(u,pnc(q),2);w=u.yieldResult;return u.return(w.reduce(function(y,e){if(!e.data||!e.key||!e.entityType)return y;y[e.entityType]||(y[e.entityType]={});y[e.entityType][e.key]=e.data;return y},{}))})};
rfP[Ld]=[h9,_.dd];var UvT;UvT=new _.MH("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.Ml=new _.MH("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var K3=function(q,w){this.JSC$16017_persistentStorePromiseAccessor=q;this.transportService=w};
K3.prototype.refresh=function(){var q=this,w,u,y,e;return _.F(function(t){if(t.nextAddress==1)return _.RX("LOGGED_IN")?_.H(t,q.JSC$16017_persistentStorePromiseAccessor(),2):t.return();if(t.nextAddress!=3)return(w=t.yieldResult)?_.H(t,Ig6(w),3):t.return();if((u=t.yieldResult)&&!(Number(u.data.refreshTimestampMs||0)<(0,_.eW)()))return t.return();y={browseId:"SPaccount_downloads"};e=_.Ka(qL);_.Jb(q.transportService,y,e).then(function(X){var G;if(w&&(X==null?void 0:(G=X.responseContext)==null?void 0:
G.maxAgeSeconds)!==0){var n;G=(X==null?void 0:(n=X.responseContext)==null?void 0:n.maxAgeSeconds)||604800;n=String(Math.floor((0,_.eW)())+G*1E3);w.put("service:downloads_settings:fallback",new _.ub({innertubeResponse:X,refreshTimestampMs:n}))}});
_.HI(t)})};
K3[Ld]=[_.gq,_.oi];var B$=function(q,w){this.JSC$16021_playerPromise=q;this.store=w;this.started=!1};
B$.prototype.start=function(){var q=this,w;return _.F(function(u){if(u.nextAddress==1)return q.started?u.return():_.H(u,q.JSC$16021_playerPromise,2);w=u.yieldResult;w.addEventListener("onOrchestrationBecameLeader",q.updateIsLeader.bind(q,!0));w.addEventListener("onOrchestrationLostLeader",q.updateIsLeader.bind(q,!1));if(w.isOrchestrationLeader)q.updateIsLeader(w.isOrchestrationLeader());else{var y=new _.fv("Function isOrchestrationLeader is undefined",{"player.isReady":w.isReady(),"player.playVideo":w.playVideo?
"defined":"undefined"});_.vm(y);q.updateIsLeader(!1)}q.started=!0;_.HI(u)})};
B$.prototype.updateIsLeader=function(q){this.store.dispatch(_.tr({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:q}}))};
B$[Ld]=[_.kH,_.dd];var Oux=function(q,w){this.networkStatusManager=q;this.JSC$16024_prefStoragePromise=w;this.redirectsToPreload=["https://youtube.com"]},ov$=function(){var q=_.tG().resolve(Oux),w,u,y,e,t,X;
_.F(function(G){switch(G.nextAddress){case 1:return _.H(G,q.JSC$16024_prefStoragePromise,2);case 2:w=G.yieldResult;if(!(u=w)){G.jumpTo(3);break}return _.H(G,w.get("yt-redirect-prefetch-id"),4);case 4:u=G.yieldResult;case 3:if(u||!q.networkStatusManager.isNetworkAvailable())return G.return();y={cache:"reload",redirect:"manual"};e=_.P(q.redirectsToPreload);t=e.next();case 5:if(t.done){if(!w){G.jumpTo(0);break}return _.H(G,w.set("yt-redirect-prefetch-id",!0,86400),0)}X=t.value;_.tD(G,8);return _.H(G,
_.uc.fetch(X,y),10);case 10:_.jv(G,6);break;case 8:_.nm(G);case 6:t=e.next(),G.jumpTo(5)}})};var xW=function(q){q?(this.container=q,this.containerWasInjected=!0):this.containerWasInjected=!1};
xW.prototype.openDialog=function(q,w,u){var y=this,e;return _.F(function(t){(e=y.container)==null||e.openDialog(q,w,u);_.HI(t)})};
xW.prototype.closeDialog=function(){var q=this,w;return _.F(function(u){(w=q.container)==null||w.closeDialog();_.HI(u)})};
xW.prototype.isDialogOpen=function(){var q=this,w,u;return _.F(function(y){return y.return((u=(w=q.container)==null?void 0:w.isDialogOpen())!=null?u:!1)})};
xW[Ld]=[_.kF(aJX)];_.VeX=new _.MH("POPUP_CONTROLLER_TOKEN");var f3X=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
f3X.prototype.registerPanel=function(q,w){if(q){this.panelMap.set(q,w);var u=this.pendingPanelResolvers.get(q);u&&(u.resolve(w),this.pendingPanelResolvers.delete(q))}};
f3X.prototype.getPanel=function(q){var w=this,u;return _.F(function(y){return(u=w.panelMap.get(q))?y.return(u):y.return(mvF(w,q))})};
var mvF=function(q,w){var u,y;return _.F(function(e){if(u=q.pendingPanelResolvers.get(w))return e.return(u.promise);y=new _.Gt;q.pendingPanelResolvers.set(w,y);return e.return(y.promise)})},Afj=function(q){f3X.call(this);
var w=this;this.popupController=q;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return w.panelMap.size}}};
_.O(Afj,f3X);_.k=Afj.prototype;_.k.getReloadContinuation=function(q){var w=this,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,w.getPanel(q),2);u=y.yieldResult;return y.return(u.getReloadContinuation())})};
_.k.showPanel=function(q,w,u,y,e,t,X){var G=this,n,N,Q,I;return _.F(function(U){if(U.nextAddress==1){X&&G.updatePanelContinuationDatas.set(q,X);if((n=u)==null?0:(N=n.engagementPanelPopupPresentationConfig)==null?0:N.popupType){Q=u.engagementPanelPopupPresentationConfig.popupType;e===void 0&&(e=document.body);var d=U.return,V=G.popupController,J=V.openPopup;a:switch(Q){case "PANEL_POPUP_TYPE_DIALOG":var a="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":a="DROPDOWN";break a;default:throw Error("cj`"+
Q);}return d.call(U,J.call(V,q,w,a,e))}return _.H(U,G.getPanel(q),2)}I=U.yieldResult;(w||t)&&I.updatePanel(w,!1,y,t);I.showPanel(y);_.HI(U)})};
_.k.hidePanel=function(q){var w=this,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,w.getPanel(q),2);u=y.yieldResult;u.hidePanel();w.popupController.closePopup(q);_.HI(y)})};
_.k.isVisible=function(q,w){var u=this,y;return _.F(function(e){if(e.nextAddress==1)return w&&!u.panelMap.has(q)?e.return(!1):_.H(e,u.getPanel(q),2);y=e.yieldResult;return e.return(y.isVisible())})};
_.k.updatePanel=function(q,w,u,y,e,t){u=u===void 0?!1:u;var X=this,G;return _.F(function(n){if(n.nextAddress==1){if(!w&&!e)return n.return();t&&X.updatePanelContinuationDatas.set(q,t);return _.H(n,X.getPanel(q),2)}G=n.yieldResult;G.updatePanel(w,u,y,e);_.HI(n)})};
_.k.registerPanelContent=function(q,w){q&&this.panelContentMap.set(q,w)};
_.k.getPanelContent=function(q){return this.panelContentMap.get(q)};
_.k.getUpdatePanelContinuationData=function(q){return this.updatePanelContinuationDatas.get(q)};
Afj[Ld]=[_.VeX];var qj=function(q,w){this.innertubeTransportService=q;this.JSC$16040_screenManager=w},JfG=function(q){var w;
return!((w=q.panelLoadingStrategy)==null||!w.requestTemplate)};
qj.prototype.makeRequest=function(q){var w=this,u,y;return _.F(function(e){switch(e.nextAddress){case 1:if(!JfG(w)){e.jumpTo(2);break}_.tD(e,3);return _.H(e,_.cR(w.innertubeTransportService,q),5);case 5:return u=e.yieldResult,u?e.return(u.content):(_.vm(Error("dj")),e.return(void 0));case 3:y=_.nm(e),_.vm(y);case 2:return e.return(void 0)}})};
qj.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
qj.prototype.execute=function(q){var w=this,u,y,e,t,X,G,n,N,Q,I;return _.F(function(U){if(U.nextAddress==1){u=q;y=u.data;e=u.fallbackVe;t=u.parentVe;X=u.createScreenConfig;G=u.renderFn;n=u.command;w.panelLoadingStrategy=y;var d,V,J=((d=w.panelLoadingStrategy)==null?0:d.screenVe)?(V=w.panelLoadingStrategy)==null?void 0:V.screenVe:e;J&&_.e$(w.JSC$16040_screenManager,J,t,X);return(N=w.getContent())?_.H(U,G(N),2):U.jumpTo(2)}return U.nextAddress!=4?JfG(w)?_.H(U,w.makeRequest(n),4):U.return():(I=Q=U.yieldResult)?
_.H(U,G(I),0):U.return()})};
qj[Ld]=[_.oi,_.WY];var we=function(){};
we.prototype.getContainer=function(){return _.uy()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
we.prototype.openSheet=function(q,w){var u=this,y,e,t,X,G,n;return _.F(function(N){switch(N.nextAddress){case 1:return y={stack:[],error:void 0,hasError:!1},_.tD(N,2,3),e=yy,_.H(N,u.isSheetOpen(),5);case 5:t=N.yieldResult;ukl(y,owM(e));if(t&&!_.T("delay_sheet_open_killswitch")){if(w&&u.currentTarget===w)return(X=u.getContainer())==null||X.closeSheet(),N.return();u.pendingData={data:q,target:STx(u,w)};return N.return()}q.viewModel&&(q={viewModel:q.viewModel});(G=u.getContainer())==null||G.openSheet(q,
w);u.currentTarget=w;case 3:_.Xg(N);to4(y);_.G7(N,0);break;case 2:n=_.nm(N),y.error=n,y.hasError=!0,N.jumpTo(3)}})};
we.prototype.closeSheet=function(){var q=this,w;return _.F(function(u){if(u.nextAddress==1)return _.H(u,(w=q.getContainer())==null?void 0:w.closeSheet(),2);if(u.nextAddress!=4)return q.currentTarget=void 0,!q.pendingData||_.T("delay_sheet_open_killswitch")?u.jumpTo(0):_.H(u,q.openSheet(q.pendingData.data,q.pendingData.target),4);q.pendingData=void 0;_.HI(u)})};
we.prototype.isSheetOpen=function(){var q=this,w,u;return _.F(function(y){return y.return((u=(w=q.getContainer())==null?void 0:w.isSheetOpen())!=null?u:!1)})};
var STx=function(q,w){if(!_.T("web_parent_target_for_sheets"))return w;var u,y;return(y=(u=q.getContainer())==null?void 0:u.getParentTarget(w))!=null?y:w};var GT=window.documentPictureInPicture;var lgy=_.Sc(["dark"]),Lfc=_.Sc(["system-icons"]),Mkf=_.Sc(["typography"]),Kff=_.Sc(["lang"]),BJ7=_.Sc(["style"]),cJ4=_.Sc(["dir"]),SV6=_.Sc(["rounded-container"]),heo=_.Sc(["style"]),q_J=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],ud=function(q){this.JSC$16052_clientRoot=q;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
ud.prototype.openWindow=function(q){var w=this,u,y;return _.F(function(e){if(e.nextAddress==1)return window.documentPictureInPicture&&_.Jz()&&!w.currentPipWindow?_.H(e,(u=GT?GT:null)==null?void 0:u.requestWindow(q),2):e.return(!1);if(e.nextAddress!=3){y=e.yieldResult;if(!y)return e.return(!1);y.addEventListener("pagehide",function(){z6X(w)});
y.addEventListener("resize",w.handlePipWindowResize);w.pipWindowResizeDelay=new _.u9(function(){w.currentPipWindow&&_.Pw(w.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.FO(w.currentPipWindow.innerWidth,w.currentPipWindow.innerHeight)])},y);
xxM(y);utJ(y);return _.H(e,Rel(y),3)}if(!YVu())return e.return(!1);w.currentPipWindow=y;w.JSC$16052_eventForwarder=wBc(y,w.JSC$16052_clientRoot);w.pipWindowResizeDelay.start();return e.return(!0)})};
ud.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var z6X=function(q){if(q.currentPipWindow){var w,u;(w=GT?GT:null)==null||(u=w.window)==null||u.close();q.currentPipWindow.removeEventListener("resize",q.handlePipWindowResize);var y;(y=q.pipWindowResizeDelay)==null||y.dispose();q.pipWindowResizeDelay=void 0;var e;(e=q.JSC$16052_eventForwarder)==null||e.stop();q.JSC$16052_eventForwarder=void 0;w=_.P(q.onCloseCallbacks);for(u=w.next();!u.done;u=w.next())u=u.value,u();q.onCloseCallbacks=[];q.currentPipWindow=null}};
ud.prototype.getWindow=function(){return this.currentPipWindow};
var a3X=function(q,w){var u;(u=q.onCloseCallbacks)==null||u.push(w)};
ud.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.Jz()};
_.x$.Object.defineProperties(ud.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
ud[Ld]=[qv6];var Dvc=new _.MH("PICTURE_IN_PICTURE_CONTROLLER");var ynj=function(q,w){this.lengthY=this.lengthX=0;this.lengthX=w.x-q.x;this.lengthY=w.y-q.y};var Zu$=function(){},L1G=function(q,w){var u;
(u=q.headerElement)==null||u.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:w}))};var pLF=function(){};
pLF.prototype.openPopup=function(q,w,u,y){var e=this,t;return _.F(function(X){if(!e.container)return X.return();t={openPopupAction:{popup:w,popupType:u,uniqueId:q}};return X.return(e.container.handleOpenPopupAction(t,y))})};
pLF.prototype.closePopup=function(q){this.container&&this.container.closePopup(q)};var $vZ=function(){this.openTunnels=new Map},kFs=function(q,w,u){if(FAs(u)){var y=_.c2(u,"gclid");
u={handleEvent:function(G){w&&!w.closed&&typeof w.postMessage==="function"&&G&&G.origin&&G.source===w&&G.data&&G.data.action==="gcl_setup"&&w.postMessage(Object.assign({},{action:"gcl_transfer"},y&&{gclid:y},{gadSource:2}),G.origin)}};
for(var e=_.P(q.openTunnels),t=e.next();!t.done;t=e.next()){var X=_.P(t.value);t=X.next().value;X=X.next().value;if(t.closed)try{window.removeEventListener("message",X),q.openTunnels.delete(t)}catch(G){_.vm(G)}}w&&q.openTunnels.size<15&&(q.openTunnels.set(w,u),window.addEventListener("message",u))}};var vvc=function(){this.clientParams=new Map},qar=function(q){for(var w=_.P(q.clientParams.keys()),u=w.next();!u.done;u=w.next())u=u.value,u.startsWith("yt-mini-app-share")&&q.clientParams.delete(u)};var buF=function(q,w){_.VG.call(this);var u=this;this.shortsController=q;this.storeWithShorts=w;q=_.se(this.storeWithShorts,_.ANo,function(y){if(y){var e,t=(e=u.shortsController.getRoot())==null?void 0:e.getPlayer(),X;(e=(X=u.shortsController.alternativePlayerContainerElement)==null?void 0:X.getPlayerContainer())&&(t==null||t.appendTo(e))}else{var G;X=(G=u.shortsController.alternativePlayerContainerElement)==null?void 0:G.getPlayerContainer().querySelector("#player");e=u.shortsController.activeIndex;
(G=(t=u.shortsController.getRoot())==null?void 0:t.querySelector('ytd-reel-video-renderer[id="'+e+'"] #player-container'))&&(X==null||X.appendTo(G,void 0,!0))}});
this.addOnDisposeCallback(q)};
_.O(buF,_.VG);var y8=function(q,w,u,y,e){var t=this;this.storeWithShorts=q;this.ephemeralResponseStore=w;this.store=u;this.innertubeTransportService=y;this.innertubeTransportLoader=e;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.aV(_.Hy);this.isShortsPipActive=_.aV(_.Wy);this.nextReelVe=_.oV(56921);this.prevReelVe=_.oV(56922);this.backButtonVe=_.oV(22156);this.TEST_ONLY={getActiveModules:function(){return t.activeModules}}},GL$,nLc,Y9j;
y8.prototype.initOrDisposeActiveModules=function(q){q?this.activeModules.push(new buF(this,this.storeWithShorts)):(_.xS(this.activeModules),this.activeModules.length=0)};
y8.prototype.getRoot=function(){return this.rootElement};
y8.prototype.setActiveIndex=function(q){this.activeIndex=q};
_.esF=function(q,w){var u,y,e,t,X,G,n;return _.F(function(N){switch(N.nextAddress){case 1:return u=new kW,(y=u.JSC$11814_getStoreKey(w))&&q.ephemeralResponseStore.has(y)?_.H(N,q.ephemeralResponseStore.get(y),7):_.H(N,Y9j(q,w),4);case 4:e=N.yieldResult;if(!y){N.jumpTo(3);break}t=PC(e,3600);return _.H(N,q.ephemeralResponseStore.put(y,new _.ub(t)),3);case 7:e=(X=N.yieldResult)==null?void 0:_.Pr(X);case 3:return((G=e)==null?0:G.replacementEndpoint)&&(n=_.C(e.replacementEndpoint,_.Tt))&&e.sequenceContinuation&&
(n.sequenceParams=e.sequenceContinuation),N.return(e)}})};
GL$=function(q,w){w=(new td).JSC$11814_getStoreKey(w);return!!w&&q.ephemeralResponseStore.has(w)};
nLc=function(q,w,u){var y,e,t,X,G;_.F(function(n){if(n.nextAddress==1){y=new td;e=y.JSC$11814_getStoreKey(w);if(!e)return n.return();if(u.reelWatchSequenceResponse)return t=PC(u.reelWatchSequenceResponse,3600),q.ephemeralResponseStore.put(e,new _.ub(t)),n.jumpTo(0);if(!q.ephemeralResponseStore.has(e))return n.jumpTo(0);G=u;return _.H(n,q.ephemeralResponseStore.get(e),4)}G.reelWatchSequenceResponse=(X=n.yieldResult)==null?void 0:_.Pr(X);_.HI(n)})};
Y9j=function(q,w){var u=u===void 0?{}:u;var y,e,t;return _.F(function(X){switch(X.nextAddress){case 1:if(q.innertubeTransportService){y=q.innertubeTransportService;X.jumpTo(2);break}if(!q.innertubeTransportLoader){_.cl(Error("fj"));X.jumpTo(2);break}return _.H(X,q.innertubeTransportLoader(),4);case 4:y=X.yieldResult;case 2:return _.H(X,(e=y)==null?void 0:_.cR(e,w,u),5);case 5:return t=X.yieldResult,X.return(t)}})};
_.x$.Object.defineProperties(y8.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
y8[Ld]=[LlT,_.wu,FN,_.kF(_.oi),_.kF(qiP)];_.gvX=new _.MH("STORAGE_MANAGER_TOKEN");var NKc=new Set(["touchmove","scroll"]);var Ev6=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},R6P;
Ev6.prototype.enqueue=function(q,w){w===1?this.currentPersistentToast=q:this.queue.push(q);this.openToast()};
Ev6.prototype.openToast=function(){var q;(q=this.currentToast)!=null&&q.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.cf6=new _.MH("TOAST_MANAGER_TOKEN");var S9G;_.h6P=_.LL(function(q){return _.W("basic-content-view-model",{class:_.HR("ytBasicContentViewModelHost",_.jf(q.className))},_.W(_.r,{cond:function(){return q.data().headline},
then:function(w){return _.W("div",{class:"ytBasicContentViewModelHeadline"},_.W(_.Lr,{text:w}))}}),_.W(_.mL,{each:function(){return q.data().paragraphs||[]},
keyBy:"INDEX"},function(w){return _.W("div",{class:"ytBasicContentViewModelParagraph"},_.W(_.r,{cond:function(){var u=w();return!!(u.header||u.customHeader||u.headline)},
then:function(){return _.W(S9G,{paragraph:w})}}),_.W(_.r,{cond:function(){return w().asset||w().text},
then:function(){return _.W("div",{class:"ytBasicContentViewModelParagraphContent"},_.W(_.r,{cond:function(){return w().asset},
then:function(u){return _.W("div",{class:"ytBasicContentViewModelParagraphAsset"},_.W(_.OF,{data:u},{contentPreviewImageViewModel:_.jj}))}}),_.W(_.r,{cond:function(){return w().text},
then:function(u){return _.W("div",{class:"ytBasicContentViewModelParagraphText"},_.W(_.Lr,{text:u}))}}))}}))}))},"ee");
S9G=_.LL(function(q){var w=q.paragraph;return _.W(_.GS,null,_.W(_.r,{cond:function(){return w().headline},
then:function(u){return _.W(_.Lr,{text:u,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.W(_.OF,{data:function(){return w().header||w().customHeader}},{sectionHeaderViewModel:function(u){return _.W(_.Bb,{data:u.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"fe");var l3T=_.LL(function(q){return _.W("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.W(_.r,{cond:function(){return q.expanded()},
then:function(){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.W("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.W(_.r,{cond:function(){return q.data().expandedTitleImage},
then:function(w){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.W(_.ln,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:w}))}}),_.W("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.W("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.W(_.Lr,{text:function(){return q.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.W(_.Lr,{text:function(){return q.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.W(_.Lr,{text:function(){return q.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.W("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.W(_.OF,{data:function(){return q.data().infoButton}},{buttonViewModel:_.Zs}),_.W(_.OF,{data:function(){return q.data().collapseButton}},{buttonViewModel:function(w){return _.W(_.Zs,{data:w.data,
onClick:function(){var u;(u=q.expandedCallback)==null||u.call(q,!1)}})}})))},
else:function(){return _.W(j7F,Object.assign({},q))}}))},"ge"),Lc$=_.LL(function(q){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.W(_.r,{cond:function(){return q.data().collapsedLabelImage},
then:function(w){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.W(_.ln,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:w,alt:""}))}}),_.W(_.Lr,{text:function(){return q.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"he"),j7F=_.LL(function(q){var w=_.QS(function(){var u;
return void((u=q.expandedCallback)==null?void 0:u.call(q,!0))});
return _.W("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":w},_.W("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.W(_.r,{cond:function(){return q.data().collapsedImage},
then:function(u){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.W(_.ln,{width:16,height:16,data:u,alt:""}))}}),_.W(_.r,{cond:function(){return q.data().showLeadingCollapsedLabel},
then:function(){return _.W(Lc$,Object.assign({},q))}}),_.W("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.W(_.Lr,{text:function(){return q.data().collapsedTitle}}))),_.W("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.W(_.r,{cond:function(){return!q.data().showLeadingCollapsedLabel},
then:function(){return _.W(Lc$,Object.assign({},q))}}),_.W(_.OF,{data:function(){return q.data().infoButton}},{buttonViewModel:_.Zs}),_.W(_.OF,{data:function(){return q.data().expandButton}},{buttonViewModel:function(u){return _.W(_.Zs,{data:u.data,
onClick:function(){var y;(y=q.expandedCallback)==null||y.call(q,!0)}})}})))},"ie");var Mer=_.LL(function(q){var w=_.P(_.iv(function(){return q.data().initiallyExpanded})),u=w.next().value,y=w.next().value,e,t=(e=_.tG().resolve(_.kF(_.Rg)))==null?void 0:e(),X=function(){var G=q.data().colorData;
if(G)return t?G==null?void 0:G.darkColorPalette:G==null?void 0:G.lightColorPalette};
return _.W("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.rm({"background-color":function(){var G=X();return(G==null?0:G.section2Color)?_.Je(G.section2Color):""}})},_.W(_.OF,{data:function(){return q.data().header}},{expandableMetadataHeaderViewModel:function(G){return _.W(l3T,{data:G.data,
expanded:function(){return!!u()},
expandedCallback:function(n){y(n)}})}}),_.W(_.r,{cond:function(){return u()},
then:function(){return _.W("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.W(_.OF,{data:function(){return q.data().expandedContent}},{horizontalShelfViewModel:function(G){return _.W(_.C6,{data:G.data,
includeMargin:!0,forceNarrowLayout:!0,palette:X})},
videoSummaryContentViewModel:function(G){return _.W(Asr,{data:G.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(G){return _.W(_.Mw,{data:G.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(G){return _.W(_.h6P,{data:G.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.W(_.OF,{data:function(){return q.data().expandedBottomButtons}},{buttonViewModel:function(G){return _.W("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.W(_.Zs,{data:G.data}))}}))}}))},"je");var Kca=_.LL(function(q){var w=q.text;var u=q.marqueeSpacing;var y=q.scrollDelay;var e=q.scrollDuration;var t=q.enableMarqueeScroll;q=q.large;var X=_.P(_.r4(!1,void 0,"kfNqfd")),G=X.next().value,n=X.next().value,N=_.P(_.r4(0,void 0,"bYgZbf"));X=N.next().value;var Q=N.next().value,I=_.Bm();N=_.Bm();var U=_.Bm(),d=_.tG().resolve(_.SD);_.DG(function(){if(t()){var a=U.value.getBoundingClientRect().width,b=I.value.getBoundingClientRect().width;if(a>b){var g=(d==="ltr"?-1:1)*(a+(u?u():16));Promise.resolve().then(function(){n(!0);
Q(g)})}}});
var V={},J={};return _.W("marquee-scroll",{class:_.HR("ytMarqueeScrollHost",(V.ytMarqueeScrollHostLarge=q,V)),el:I},_.W("div",{id:"marquee-scroll-inner-container",class:_.HR("ytMarqueeScrollInnerContainer",(J.ytMarqueeScrollAnimationEnabled=function(){return G()},J)),
el:N,style:_.rm({gap:u?(0,_.iK)(u):"16px","animation-duration":e?UxF(e):"16s","animation-delay":y?UxF(y):"3s","--marquee-translate":(0,_.iK)(X)})},_.W("span",{el:U,dir:"auto"},_.W(_.Lr,{text:w,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.W(_.r,{cond:G,then:function(){return _.W("span",{"aria-hidden":"true",dir:"auto"},_.W(_.Lr,{text:w,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"ke");_.BRT=_.LL(function(q){var w=q.data;var u=q.overlayDensity;q=_.QS(function(){w().onTapCommand&&_.bn(w().onTapCommand);return!1});
var y=_.LVl(),e={};return _.W("reel-sound-metadata-view-model",{class:_.HR("ytReelSoundMetadataViewModelHost",(e.ytReelSoundMetadataViewModelHostLarge=function(){return(u==null?void 0:u())===1},e)),
"on:click":q,tabindex:0,role:"button","on:keydown":y},_.W("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.W(_.r,{cond:function(){return w().musicIcon},
then:function(t){return _.W(_.ln,{data:t,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.W("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.W(Kca,{text:function(){return w().soundMetadata},
enableMarqueeScroll:function(){return!!w().enableMarqueeScroll},
large:function(){return(u==null?void 0:u())===1}}))))},"le");var xvr,qsq,eT,efx,tHm,yz4,FuB,X4V;xvr=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];qsq=_.Fc("wil_icon_max_concurrent_fetches",Infinity);
eT=function(q,w,u){var y=this;this.iconSet=q;this.appDirection=w;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.uc.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.T("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.T("wil_icon_network_first");this.renderWhenIdle=_.T("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.T("wil_icon_load_immediately");this.isPurging=!1;q=function(){y.cacheStorageAvailable&&(y.cacheStorageAsync=_.uc.caches.open("yt-icons").then(function(t){return y.cacheStorageSync=t}).catch(function(){y.cacheStorageAvailable=!1}))};
u=(u==null?void 0:u())||{};u=_.P(Object.entries(u));for(w=u.next();!w.done;w=u.next()){var e=_.P(w.value);w=e.next().value;e=e.next().value;e=C4(e);w4c(e);this.iconCache[w]=e.cloneNode(!0)}this.isPurging=ulK(this);this.isPurging instanceof Promise?this.isPurging.then(q):q()};
_.$Vf=function(q,w){var u=q.resolveIcon(w);return u?q.renderingMode===1?yz4(q,u,q.renderingMode):(w=q.iconCache[u.url])?(w=w.cloneNode(!0),efx(q,w),yz4(q,u,q.renderingMode,w)):_.kyq(q,u).then(function(y){var e=y?0:1;efx(q,y);return yz4(q,u,e,y)}):(_.bD(new _.fv("Icon not found",{iconShape:w})),function(){})};
efx=function(q,w){if(w){q.counter+=1;q="_yt"+q.counter;w=[w].concat(_.Cm(w.getElementsByTagName("*")));w=_.P(w);for(var u=w.next();!u.done;u=w.next())if(u=u.value,u.tagName==="style"&&u.textContent)u.textContent=tHm(u.textContent,q,!0);else for(var y=_.P(u.attributes),e=y.next();!e.done;e=y.next()){e=e.value;e.name==="id"&&(e.value+=q);["mask","fill","clip-path"].includes(e.name)&&(e.value=tHm(e.value,q));if(e.name==="style"){var t=u.style;try{t.cssText=tHm(t.cssText,q,!0)}catch(Q){var X=void 0,G=
void 0,n=void 0,N=void 0;k5({error:((X=Q)==null?void 0:(n=(G=X).toString)==null?void 0:n.call(G))||"",el:u.outerHTML,style:!!t,cssText:(N=t)==null?void 0:N.cssText})}}e.name==="xlink:href"&&(e.value=e.value.replace(/#(.*)/,"#$1"+q))}}};
tHm=function(q,w,u){var y=/url\(["']?#(.*?)["']?\)/;(u===void 0?0:u)&&(y=/url\(["']?#(.*?)["']?\)/g);return q.replace(y,"url(#$1"+w+")")};
yz4=function(q,w,u,y){return function(e,t){var X=Object.assign({},{iconColor:"currentcolor",iconWidth:w.size+"px",iconHeight:w.size+"px",iconDisplay:"block"},t);t=_.rg("DIV");var G=X.iconColor,n=X.iconFilter;X="width: "+X.iconWidth+"; height: "+X.iconHeight+"; display: "+X.iconDisplay+";";n&&(X+=" filter: "+n+";");u===0&&(X+=" fill: "+G+";");u===1&&(n=w.url,X+=" -webkit-mask: url("+n+") no-repeat center / cover; mask: url("+(n+") no-repeat center / cover; background-color: ")+G);w.allowMirroring&&
q.appDirection==="rtl"&&(X+=" transform: scale(-1, 1); transform-origin: center center;");t.setAttribute("style",X);u===0&&y&&t.appendChild(y);e.appendChild(t)}};
_.kyq=function(q,w){var u,y,e;return _.F(function(t){u=function(X){return mx(X)};
y=w.url;if(!Pcc(y))throw Error("gj");e=X4V(q,y);return t.return(e.then(function(X){return X.clone().text()}).then(function(X){var G=u(X);
X=w.size;var n=_.rg("DIV");_.Ym(n,G);G=_.UN(n.firstElementChild!==void 0?n.firstElementChild:_.Ssk(n.firstChild,!0));X=w4c(G,X);q.iconCache[y]=X.cloneNode(!0);delete q.responsePromises[y];return X}).catch(function(){}))})};
FuB=function(q){var w,u=(w=q.requestAninmationFrameResolver)==null?void 0:w.promise;u||(q.requestAninmationFrameResolver=new _.Gt,u=q.requestAninmationFrameResolver.promise,_.uc.requestAnimationFrame(function(){var y;(y=q.requestAninmationFrameResolver)==null||y.resolve();q.requestAninmationFrameResolver=null}));
return u};
X4V=function(q,w){var u,y;return _.F(function(e){if(e.nextAddress==1)return q.waitForAnimationFrame?_.H(e,FuB(q),2):e.jumpTo(2);u=q.responsePromises[w];u||(y=function(){var t,X,G;return _.F(function(n){switch(n.nextAddress){case 1:if(!q.cacheStorageAvailable){t=void 0;n.jumpTo(2);break}if(X=q.cacheStorageSync){n.jumpTo(3);break}return _.H(n,q.cacheStorageAsync,4);case 4:X=n.yieldResult;case 3:t=X;case 2:return G=t,q.isNetworkFirstStrategy?n.return(q.fetchAndUpdateCache(w,G).catch(q.getCacheStorageResponse.bind(q,
w,G))):n.return(q.getCacheStorageResponse(w,G).catch(q.fetchAndUpdateCache.bind(q,w,G)))}})},u=q.renderWhenIdle?new Promise(function(t,X){_.mg(_.pi,function(){y().then(t).catch(X)},10)}):y(),q.responsePromises[w]=u);
return e.return(u.catch(function(t){delete q.responsePromises[w];k5({error:(t==null?0:t.toString)?t.toString():"",url:w});throw t;}))})};
eT.prototype.fetchAndUpdateCache=function(q,w){var u=this;return _.F(function(y){return y.return(Gyh(u,q).then(function(e){nJx(u,q,e,w);return e}))})};
var Gyh=function(q,w){var u;return _.F(function(y){if(q.numFetches<qsq)return q.numFetches+=1,y.return(H7H(q,w).finally(function(){--q.numFetches;if(Object.keys(q.queuedResponseResolvers).length){var e=Object.keys(q.queuedResponseResolvers)[0],t=q.queuedResponseResolvers[e];delete q.queuedResponseResolvers[e];t.resolve(Gyh(q,e))}}));
u=new _.Gt;q.queuedResponseResolvers[w]=u;return y.return(u.promise)})},H7H=function(q,w,u){u=u===void 0?2:u;
var y;return _.F(function(e){y={credentials:"same-origin",priority:"low"};return e.return(_.uc.fetch(w,y).then(function(t){return t.ok?t:Promise.reject(Error("hj`"+t.status+"`"+t.statusText))}).catch(function(t){if(u>0)return H7H(q,w,u-1);
throw t;}))})},nJx=function(q,w,u,y){_.F(function(e){return y?e.return(new Promise(function(t){_.mg(_.pi,function(){var X,G;
return _.F(function(n){switch(n.nextAddress){case 1:if(!q.isNetworkFirstStrategy){X=void 0;n.jumpTo(2);break}return _.H(n,y.match(w).catch(function(){}),3);
case 3:X=n.yieldResult;case 2:if(G=X){n.jumpTo(4);break}return _.H(n,y.put(w,u.clone()).catch(function(N){k5({error:(N==null?0:N.toString)?N.toString():"",url:w})}),4);
case 4:t(),_.HI(n)}})},50)})):e.return()})};
eT.prototype.getCacheStorageResponse=function(q,w){return _.F(function(u){return w?u.return(w.match(q).then(function(y){return y&&y.ok?y:Promise.reject()})):u.return(Promise.reject())})};
var w4c=function(q,w){w===void 0||q.getAttribute("viewBox")||q.setAttribute("viewBox","0 0 "+w+" "+w);q.setAttribute("focusable","false");q.setAttribute("aria-hidden","true");try{q.style.pointerEvents="none",q.style.display="inherit",q.style.width="100%",q.style.height="100%"}catch(e){var u;k5({error:((u=e)==null?0:u.toString)?e.toString():""});try{q.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(t){var y;k5({error:((y=t)==null?0:y.toString)?t.toString():
""})}}return q},Pcc=function(q){for(var w=_.P(xvr),u=w.next();!u.done;u=w.next())if(q.startsWith(u.value)&&q.endsWith(".svg"))return!0;
return!1};
eT.prototype.resolveIcon=function(q){return this.iconSet.resolveIcon(q)};
var k5=function(q){_.Y8(new _.fv("Error in IconManager",q))},ulK=function(q){if(_.T("wil_icons_cache_purge_killswitch"))return!1;
try{var w=_.uc.localStorage}catch(t){return!1}if(!w||!q.cacheStorageAvailable)return!1;var u=function(t){try{var X;(X=w)==null||X.setItem("yt-icons-last-purged",t.toString())}catch(n){var G;k5({error:((G=n)==null?0:G.toString)?n.toString():""})}},y=Number(w.getItem("yt-icons-last-purged"));
if(!y)return y=new Date,y=y.setDate(y.getDate()-Math.floor(Math.random()*90+1)),u(y),!1;if(function(t,X){t=new Date(t);X=new Date(X);return X.getMonth()-t.getMonth()+12*(X.getFullYear()-t.getFullYear())}(y,Date.now())<3)return!1;
try{return _.uc.caches.delete("yt-icons").then(function(t){t&&u(Date.now());return t}).catch(function(){return!1}).finally(function(){q.isPurging=!1})}catch(t){var e;
k5({error:((e=t)==null?0:e.toString)?t.toString():""});return!1}};
eT[Ld]=[doG,_.SD,_.kF(VET)];_.tQ=function(q,w){this.iconManager=q;this.iconsToFetch=w};
_.tQ[Ld]=[_.Gj,_.kF(oya)];var WuV=function(){};var so4=function(q,w,u){this.requestKey=q;this.ko3=w;this.mva=u;this.zSZ=function(){return new XMLHttpRequest};
this.wT6=void 0;this.cPC=[]};
so4.prototype.getLatestChallengeResponse=function(){return this.mva};
var Rh3=function(q,w,u){var y,e,t,X;return _.F(function(G){if(G.nextAddress==1){_.aD("attestation_challenge_fetch");_.D_("att_fs",void 0,"attestation_challenge_fetch");if(!q.wT6)throw new _.CM(9,"Missing fetcher");return _.H(G,q.wT6(w,u),2)}y=G.yieldResult;t=(e=y)==null?void 0:e.bgChallenge;if(!t)throw new _.CM(15,"Missing field");q.mva=y;q.cPC.forEach(function(n){n(y)});
X=U37(t);_.D_("att_fc",void 0,"attestation_challenge_fetch");Kvc("attestation_challenge_fetch");return G.return(X)})},Hmj=function(q,w){var u,y,e,t,X;
return _.F(function(G){switch(G.nextAddress){case 1:u=new F3(100,3E5,.25,2),y=void 0;case 2:if(!(u.currBackoffCount_<10)){G.jumpTo(4);break}_.tD(G,5);if(!(u.currBackoffCount_>0)){G.jumpTo(7);break}return _.H(G,Qj4(u.getValue()),7);case 7:return _.H(G,Njh(q,w),9);case 9:return e=G.yieldResult,G.return(e);case 5:t=_.nm(G);t instanceof _.CM?y=t:(X=t instanceof Error?t.message:"Unknown",y=new _.CM(9,X));x6X(u);G.jumpTo(2);break;case 4:if(y)throw y;throw new _.CM(9,"Unknown error");}})},Njh=function(q,
w){w=zhc(aDr(new Jac,w),q.requestKey);
var u=new _.Gt,y=q.zSZ();y.open("POST",q.ko3);y.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");y.setRequestHeader("Content-Type","application/json+protobuf");y.onload=function(){if(_.A2j(y)){var e=Ejk(y.responseText);u.resolve(e)}else u.reject(new _.CM(_.nY(_.HG(y)),y.statusText))};
y.onerror=function(){u.reject(new _.CM(_.nY(_.HG(y)),y.statusText))};
y.send(w.serialize());return u.promise};var I6V=function(q){this.networkStatusManager=q;this.isDownloaded=iwu===void 0?function(){return!1}:iwu;
this.isReady=!1;this.xhx=QoB(this)},QoB=function(q){var w;
return _.F(function(u){if(u.nextAddress==1)return _.H(u,A16(),2);if(u.nextAddress!=3)return w=u.yieldResult,_.H(u,XVZ(w),3);q.ju=u.yieldResult;i8H(q.ju).then(function(){q.isReady=!0});
return u.return(q.ju)})},i7K=function(q,w,u){q.ju?(q=q.ju.v6({kG:u,
fz1:!0,bIl:!0}),w.serviceIntegrityDimensions={poToken:q}):_.vm(Error("jj"))};
I6V.prototype.processContext=function(q){var w=this;if(!q.input.match(_.Ka(C1k)))return _.Eu();var u=q.innerTubeRequest,y=u.videoId;return!y||this.isDownloaded(u)||this.networkStatusManager&&!this.ju&&!this.networkStatusManager.isNetworkAvailable()?_.Eu():this.ju?this.isReady?(i7K(this,u,y),_.Eu()):new gf(i8H(this.ju).then(function(){i7K(w,u,y)})):new gf(this.xhx.then(function(e){return _.F(function(t){if(t.nextAddress==1)return _.H(t,i8H(e),2);
i7K(w,u,y);_.HI(t)})}))};var rzA=new _.MH("WEB_PO_CONTEXT_PROCESSOR");var UMA=function(q,w){var u=this;this.uz6=0;var y;this.nXS=(y=w==null?void 0:w.nXS)!=null?y:window;this.networkStatusManagerPromise=w==null?void 0:w.networkStatusManagerPromise;var e;this.requestKey=(e=w==null?void 0:w.requestKey)!=null?e:_.GQ("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var t;this.azi=(t=w==null?void 0:w.azi)!=null?t:function(n){return new A5(n)};
var X;y=(X=w==null?void 0:w.b37)!=null?X:function(n,N,Q){return new so4(n,N,Q)};
this.bgChallenge=U37(q.bgChallenge);this.ttlSeconds=TwM(By(q.challenge||""));this.lO=y(this.requestKey,_.T("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.uc.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",q);IAl(this.lO);var G;this.xE6=(G=w==null?void 0:w.xE6)!=null?G:function(n){_.dL(u.nXS.document,"visibilitychange",function(){u.nXS.document.visibilityState===
"visible"&&n()})}},Ccm=function(q){if(!q.d3){var w={maxAttempts:5,
vQ1:q.ttlSeconds*1E3};rns(q.nXS);q.d3=q.azi({lO:q.lO,bR:{disable:_.T("html5_web_po_disable_remote_logging"),i3:"aGIf",cJT:OJJ("html5_web_po_experiment_ids"),wdZ:_.T("wpo_dis_lfdms")?0:1E3,bb:_.T("wpo_gel_strz")?function(y){var e=UEX.get(y);e||(e=new rHc(y),e=new N1(e),UEX.set(y,e));return e}:void 0},
qY2:w,vw6:q.bgChallenge,p5f:Uyy});q.uz6=Date.now();vmc(q.d3,function(){q.uz6=Date.now()});
D17(q.d3,function(){return _.F(function(y){return y.return(TjK(q))})});
var u=q.uP3.bind(q);q.networkStatusManagerPromise&&q.ttlSeconds>0&&q.networkStatusManagerPromise.then(function(y){y.listen("publicytnetworkstatus-online",u)});
q.xE6(u)}};
UMA.prototype.uP3=function(){if(Date.now()>this.uz6+this.ttlSeconds*1E3){var q;(q=this.d3)==null||$Cc(q)}};
var TjK=function(q){if(q.jHy)return q.jHy;if(!q.d3)throw Error("kj");q.jHy=new D9({d3:q.d3,lO:q.lO,m4a:!0,onError:Uyy});return q.jHy},CLM=function(q,w){q=new UMA(q,w);
Ccm(q);TjK(q)};var PD=function(q,w){this.store=q;this.queue=[];this.supportsFocus=_.T("web_ephemeral_actions_focus");w==null||w.addEventListener("yt-navigate-start",this.reset.bind(this))};
PD.prototype.enqueue=function(q){var w=q.command,u=q.durationMs,y=q.elementToFocus;var e=q.label;var t=q.elementToFocus;q.command?e=_.ID("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:e,shortcut:_.ID("SHIFT_PLUS_ENTER")}):t&&this.supportsFocus&&(q=e+". "+_.ID("SHIFT_PLUS_ENTER")+" for more information.",e=_.ID("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:e,shortcut:_.ID("SHIFT_PLUS_ENTER")},q));u={announcement:e,durationMs:u!=null?u:this.supportsFocus?8E3:void 0};w?u.command=w:y&&this.supportsFocus&&(y.classList.add("ephemeral-action-focusable-element"),
u.selector=y.tagName+".ephemeral-action-focusable-element");this.queue.push(u);dMh(this)};
PD.prototype.activate=function(q){var w=_.agJ(this.store.getState());if(w){if(w==null?0:w.command)_.px(w.command),this.store.dispatch(I$X(null));(w==null?0:w.selector)&&this.supportsFocus&&(w=document.querySelector(w.selector),_.x$4(w));q.preventDefault()}};
var dMh=function(q){if(!_.agJ(q.store.getState())&&q.queue.length){var w=q.queue.shift();w&&(q.previousAnnouncement===w.announcement&&(w.announcement+="\u00a0"),q.store.dispatch(I$X(w)),q.previousAnnouncement=w.announcement,q.timeoutId=setTimeout(function(){if(w.selector&&q.supportsFocus){var u;(u=document.querySelector(w.selector))==null||u.classList.remove("ephemeral-action-focusable-element")}q.store.dispatch(I$X(null));dMh(q)},w.durationMs))}};
PD.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(I$X(null));this.queue.length=0;this.timeoutId=void 0};
PD[Ld]=[_.dd,_.yA];_.XH=new _.MH("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var O7a=new _.MH("AUTH_SERVICE_TOKEN");var o7l=_.Sc(["about:blank"]),O8f;var oJq=new _.MH("API_IFRAME_TOKEN"),VHj=new _.MH("FETCH_FN_TOKEN"),f6m=new _.MH("PARSE_FN_TOKEN"),mMx=new _.MH("WINDOW_REQUEST_TOKEN");var cDX;cDX=new _.MH("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.AzT=new _.MH("MISC_UI_SHARED_FLAGS_TOKEN");var JzK=function(){};
JzK.prototype.getFlag=function(q){if(q.configType!==2)throw Error("lj");return zfx(q)};
var zfx=function(q){switch(q.flagType){case "bool":return _.T(q.flagName);case "int":return _.K$(_.Fc(q.flagName));case "double":return _.Fc(q.flagName);case "string":return _.GQ(q.flagName);case "int32_list":return OJJ(q.flagName);case "int64_list":return OJJ(q.flagName).map(function(w){return _.K$(w)});
case "string_list":return _.nv(q.flagName);default:throw Error("mj");}};var FH=function(q,w,u){w=w===void 0?{}:w;mn.call(this,u===void 0?"uninitialized":u);this.env=q;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}];w.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=w.shouldWaitOnAsyncImmediate)};
_.O(FH,mn);FH.prototype.init=function(q){var w=this,u;return _.F(function(y){if(y.nextAddress==1)return w.processPluginOptions.shouldWaitOnAsyncImmediate?_.H(y,q(w.env),2):(q(w.env),y.jumpTo(2));if(y.nextAddress!=4)return w.jobSet?_.H(y,w.jobSet.completedResolver.promise,4):y.jumpTo(4);u=_.DU();u.parkOrScheduleJob(function(){w.transition("rendering")},10,"ci");
_.HI(y)})};
FH.prototype.initialRender=function(q){var w=this,u;return _.F(function(y){if(y.nextAddress==1)return w.processPluginOptions.shouldWaitOnAsyncImmediate?_.H(y,q(w.env),2):(q(w.env),y.jumpTo(2));if(y.nextAddress!=4)return w.jobSet?_.H(y,w.jobSet.completedResolver.promise,4):y.jumpTo(4);u=_.DU();u.parkOrScheduleJob(function(){w.transition("rendered")},10,"cr");
_.HI(y)})};
FH.prototype.afterRenderImmediate=function(q){var w=this,u;return _.F(function(y){if(y.nextAddress==1)return w.processPluginOptions.shouldWaitOnAsyncImmediate?_.H(y,q(w.env),2):(q(w.env),y.jumpTo(2));if(y.nextAddress!=4)return w.jobSet?_.H(y,w.jobSet.completedResolver.promise,4):y.jumpTo(4);u=_.DU();u.parkOrScheduleJob(function(){w.transition("after-render-deferred")},10,"carml");
_.HI(y)})};
FH.prototype.afterRenderDeferred=function(q){var w=this;return _.F(function(u){q(w.env);_.HI(u)})};var a6A={},DMc=(a6A.rendered={priority:0,callback:function(q){UQT(q.injector.resolve(zC))}},a6A);var Z7q=!1,Z86=0,Jnu=null,Dyz=null;var p4x=new _.MH("NETWORK_SLI_TOKEN");var $M4=function(q,w,u,y){this.networkSli=q;this.fetchFn=w;this.parseFn=u;this.requestFn=y};
$M4.prototype.fetch=function(q,w,u){var y=this,e,t,X;return _.F(function(G){e=vJK(y,q,w);X=(t=y.fetchFn)!=null?t:fetch;return G.return(X(e).then(function(n){return y.handleResponse(n,u)}).catch(function(n){_.Y8(n);
if((u==null?0:u.expectJsonStrict)&&n instanceof qq&&n.errorType===1)return Promise.reject(n)}))})};
var Gvr=function(q,w,u,y){var e,t,X,G,n,N;return _.F(function(Q){switch(Q.nextAddress){case 1:return e=vJK(q,w,u),_.tD(Q,2),_.H(Q,fetch(e),4);case 4:t=Q.yieldResult;_.jv(Q,3);break;case 2:throw _.nm(Q),new qq(2,"Failed to parse streaming response",e.url);case 3:if(!t.redirected&&!t.ok)throw(X=q.networkSli)==null||X.failure(),new _.fv("Streaming fetch request not ok",e.url);if(!t.body)throw new _.fv("No response body in streaming response",e.url);G=t.body.pipeThrough(new TextDecoderStream).getReader();
n=new _.wo;N={};return Q.return(b76(q,G,n,Bhl,N,y))}})},vJK=function(q,w,u){if(q.networkSli){var y=_.QV(_.qU(w,"key"))||"/UNKNOWN_PATH";
q.networkSli.start(y)}y=u;_.T("wug_networking_gzip_request")&&(y=vN7(u));var e;return new ((e=q.requestFn)!=null?e:window.Request)(w,y)},b76=function(q,w,u,y,e,t){var X,G,n,N,Q,I,U,d,V;
return _.F(function(J){if(J.nextAddress==1)return _.H(J,w.read(),2);X=J.yieldResult;G=X.value;if(n=X.done)return(N=q.networkSli)==null||N.success(),J.return(e);try{Q=u.parse(G)}catch(a){throw new qq(1,"Failed to parse streaming response",G);}if(Q!=null)for(I=_.P(Q),U=I.next();!U.done;U=I.next())d=U.value,y(e,d),V=void 0,(V=t)==null||V(e,d);return J.return(b76(q,w,u,y,e,t))})};
$M4.prototype.handleResponse=function(q,w){var u,y=(u=this.parseFn)!=null?u:JSON.parse;u=q.text().then(function(e){if((w==null?0:w.jspbResponseCtor)&&q.ok)return yhz(w.jspbResponseCtor,e);e=e.replace(")]}'","");if((w==null?0:w.expectJsonStrict)&&e)try{var t=y(e)}catch(G){throw new qq(1,"JSON parsing failed after fetch");}var X;return(X=t)!=null?X:y(e)});
q.redirected||q.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),u=u.then(function(e){_.Y8(new _.fv("Error: API fetch failed",q.status,q.url,e));return Object.assign({},e,{errorMetadata:{status:q.status}})}));
return u};
$M4[Ld]=[_.kF(p4x),_.kF(VHj),_.kF(f6m),_.kF(mMx)];var YsB=new _.MH("NETWORK_MANAGER_TOKEN");var gJa=[1,2,4,8,16,30],RfK=function(q){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=q.maxTimeMs;this.maxFrameCount=q.maxFrameCount===void 0?Math.ceil(60*q.maxTimeMs/1E3):q.maxFrameCount;q=_.P(gJa);for(var w=q.next();!w.done;w=q.next())this.brokenFrameSummarizers.push(new EJB(w.value/60*1E3))},czj=function(q){var w=q.frameCountInternal>=q.maxFrameCount;
return q.elapsedTimeMs>=q.maxTimeMs||w},SsV=function(q){for(var w=[],u=_.P(q.brokenFrameSummarizers),y=u.next();!y.done;y=u.next())y=y.value,y=y.brokenFrameCount!==0?{severityMs:Math.round(y.targetFrameTimeMs),
eventCount:y.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(y.averageDurationBetweenEventsMs)}:void 0,y&&w.push(y);return{summaries:w,monitoringDurationMs:Math.round(q.elapsedTimeMs)}};
_.x$.Object.defineProperties(RfK.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 EJB=function(q){this.targetFrameTimeMs=q;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.x$.Object.defineProperties(EJB.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var hfK=function(){};
hfK.prototype.start=function(q,w){var u=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var y=new RfK({maxTimeMs:q});this.monitor=y;this.lastSummaryInternal=void 0;this.metadataToLog=w;return new Promise(function(e){var t=function(X){if(X===void 0)u.stop(),e(void 0);else if(u.monitor!==y)X=Object.assign({},SsV(y),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),e(X);else{var G=u.monitor;if(!czj(G)){G.frameCountInternal++;if(G.prevTime===void 0)G.startTime=
X;else for(var n=X-G.prevTime,N=_.P(G.brokenFrameSummarizers),Q=N.next();!Q.done;Q=N.next()){Q=Q.value;var I=Q.currTimeMs;Q.currTimeMs+=n;n>Q.targetFrameTimeMs+2&&(Q.brokenFrameCount++,Q.timeOfFirstBrokenFrameMs===void 0&&(Q.timeOfFirstBrokenFrameMs=I),Q.timeOfLastBrokenFrameMs=I)}G.prevTime=X}czj(u.monitor)?e(u.stop()):_.pi.addJob(t,5,0)}};
_.pi.addJob(t,5,0)})};
hfK.prototype.stop=function(q){if(!this.monitor)return this.lastSummaryInternal;var w=Object.assign({},SsV(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(w.monitoringDurationMs){q=q!=null?q:this.metadataToLog;var u={droppedFramesSummary:w,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};q&&(u[q.type]=q.data);_.pn("manualSmoothnessMeasurement",u)}this.monitor=void 0;this.lastSummaryInternal=w;this.metadataToLog=void 0;return w};_.jox=new _.MH("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var l6K;l6K=function(q){this.JSC$16176_expiringStorage=new AG(q)};
_.Lua=function(q){if(_.pBc()&&(q=_.WHu(_.O8()+"::"+q)))return new l6K(q)};
l6K.prototype.set=function(q,w,u){u=u!==void 0?Date.now()+u:void 0;this.JSC$16176_expiringStorage.set(q,w,u)};
l6K.prototype.get=function(q){return this.JSC$16176_expiringStorage.get(q)};
l6K.prototype.remove=function(q){this.JSC$16176_expiringStorage.remove(q)};var MHV=new _.MH("SESSION_STORAGE");_.G$=function(){};
_.G$.getInstance=function(){var q=_.hP("ytglobal.storage_");q||(q=new _.G$,_.wr("ytglobal.storage_",q));return q};
_.G$.prototype.estimate=function(){var q,w,u;return _.F(function(y){q=navigator;return((w=q.storage)==null?0:w.estimate)?y.return(q.storage.estimate()):((u=q.webkitTemporaryStorage)==null?0:u.queryUsageAndQuota)?y.return($yu()):y.return()})};
_.wr("ytglobal.storageClass_",_.G$);var KuH=!1;var Bjq=_.Sc(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),xMq=_.Sc(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var FST={"/":_.Wh,"/?feature=ytca":_.Wh,"/feed/downloads":_.fjl};var NL=function(q,w,u){this.JSC$16189_upliftPromise=q;this.store=w;this.JSC$16189_persistentStorePromiseAccessor=u};
NL.prototype.shouldPreferLocalResponse=function(q){return q.browseId==="FEdownloads"||q.browseId==="FEsmart_downloads"&&_.T("kevlar_modern_downloads_page")?!0:!1};
NL.prototype.localInnertubeResponse=function(q){var w=this;return _.F(function(u){return q.browseId==="FEdownloads"?_.T("kevlar_modern_downloads_page")?u.return(qXT(w)):u.return(wkh(w)):q.browseId==="FEsmart_downloads"&&_.T("kevlar_modern_downloads_page")?u.return(uaq(w)):u.return(Promise.reject(Error("oj")))})};
NL.prototype.canProvideFallbackResponse=function(){return!0};
NL.prototype.localFallbackInnertubeResponse=function(q){var w=this,u,y,e;return _.F(function(t){switch(t.nextAddress){case 1:return _.H(t,w.JSC$16189_persistentStorePromiseAccessor(),2);case 2:u=t.yieldResult;if(q.browseId!=="SPaccount_downloads"||!u){t.jumpTo(3);break}return _.H(t,Ig6(u),4);case 4:if(y=t.yieldResult)return t.return(_.Pr(y));case 3:return q.browseId==="FEwhat_to_watch"?t.return(yc6(w)):(e=_.T("web_offline_continuation_automatic_retry")||_.T("web_offline_continuation_retry_button"))&&
q.continuation?t.return(e3c(w)):t.return(kGm(w))}})};
var yc6=function(q){var w;return _.F(function(u){if(u.nextAddress==1)return _.H(u,q.JSC$16189_upliftPromise,2);w=_.KFj(q.store.getState().entities);return w.length?u.return(trK(q,w)):u.return(kGm(q))})},wkh=function(q){var w,u;
return _.F(function(y){if(y.nextAddress==1)return _.H(y,q.JSC$16189_upliftPromise,2);if(y.nextAddress!=3)return w=PPa([{offlineItemSectionRenderer:{}}]),_.H(y,Xk4(q,w),3);u=y.yieldResult;u.onResponseReceivedActions=[dI("REFRESH_DOWNLOADS")];return y.return(u)})},qXT=function(q){var w,u,y,e,t,X,G,n,N,Q,I,U,d;
return _.F(function(V){if(V.nextAddress==1)return _.H(V,q.JSC$16189_upliftPromise,2);if(V.nextAddress!=3)return w=q.store.getState(),u=w.entities,y=_.fa(u),e=_.mO(u),t=_.fEu(w),X=_.VLf(w),G=_.mYs(w),n=_.wiJ(u),N=_.Ca(y),Q=_.Jr(u),I={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.vlj(y,e,n,t,X,N,Q,G),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},U=_.ID("DOWNLOADS",void 0,"Downloads"),_.H(V,FjH(q,I,U),3);d=V.yieldResult;
d.onResponseReceivedActions=[dI("REFRESH_DOWNLOADS")];return V.return(d)})},uaq=function(q){var w,u,y,e,t,X,G,n,N;
return _.F(function(Q){if(Q.nextAddress==1)return _.H(Q,q.JSC$16189_upliftPromise,2);if(Q.nextAddress!=3)return w=q.store.getState(),u=w.entities,y=_.fa(u),e=_.Ca(y),t=_.Jr(u),X={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Yxj(y),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},G=_.ID("SMART_DOWNLOADS",void 0,"Smart downloads"),n=pN7(e,t),_.H(Q,FjH(q,X,G,n),3);N=Q.yieldResult;N.onResponseReceivedActions=[dI("REFRESH_DOWNLOADS")];
return Q.return(N)})},kGm=function(q){var w,u;
return _.F(function(y){if(y.nextAddress==1)return _.H(y,tI(q.JSC$16189_upliftPromise,q.store),2);w=y.yieldResult;u=PPa([Wfu(w)]);return y.return(Xk4(q,u))})},e3c=function(q){var w,u,y,e;
return _.F(function(t){if(t.nextAddress==1)return w={},u=q.store.getState().continuation.continuationCommand,_.AB(w,_.ZK,u),_.H(t,tI(q.JSC$16189_upliftPromise,q.store,w,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);y=t.yieldResult;e={};_.AB(e,_.P8X,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:y}}}],targetId:"browse-feedFEwhat_to_watch"});return t.return({responseContext:{},onResponseReceivedActions:[e]})})},PPa=function(q){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:q}}}}]}}},trK=function(q,w){var u,y;
return _.F(function(e){var t={contents:OK(w)};u=t&&t.contents?t:{};_.T("kevlar_modern_downloads_page")&&(u=Object.assign({},_.gll(w),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));y={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:u}}}]}};return e.return(Xk4(q,y))})},Xk4=function(q,w){var u,y;
return _.F(function(e){if(e.nextAddress==1)return _.H(e,q.JSC$16189_persistentStorePromiseAccessor(),2);if(e.nextAddress!=3)return u=e.yieldResult,_.H(e,XN(u),3);y=e.yieldResult;return e.return({responseContext:{},contents:w,topbar:y})})},FjH=function(q,w,u,y){var e,t;
return _.F(function(X){if(X.nextAddress==1)return _.H(X,q.JSC$16189_persistentStorePromiseAccessor(),2);if(X.nextAddress!=3)return e=X.yieldResult,_.H(X,XN(e),3);t=X.yieldResult;var G=X.return;var n=y;n=n===void 0?"":n;n={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:u}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.ID("SETTINGS",void 0,"Settings"),accessibilityText:_.ID("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:wG("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:n}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:u};
return G.call(X,{responseContext:{},contents:w,topbar:t,header:{pageHeaderRenderer:n}})})};var GGj=function(){this.moduleRegistry={};this.fetchCount=0};
GGj.prototype.isFetching=function(){return this.fetchCount>0};
var vr=function(q,w){q.moduleRegistry[w.toString()]={asyncId:w,isFetching:!1};return q};
GGj.prototype.JSC$16200_loadModules=function(){for(var q=this,w=new Map,u=[],y=_.P(_.Cj.apply(0,arguments)),e=y.next();!e.done;e=y.next()){e=e.value;var t=this.moduleRegistry[e];t?t.resolver?w.set(e,t.resolver):(t.resolver=new _.Gt,w.set(e,t.resolver),u.push(t.asyncId),t.isFetching=!0):(t=new _.Gt,w.set(e,t),t.resolve(void 0))}u.length&&(this.fetchCount+=1,_.Uj(_.Co.getMultipleAsync.apply(_.Co,_.Cm(u)).then(function(X){for(var G=0;G<u.length;G++){var n=X[G],N=q.moduleRegistry[u[G].toString()];N.isFetching=
!1;N.resolver.resolve(n)}}).catch(function(X){for(var G=_.P(u),n=G.next();!n.done;n=G.next()){n=n.value;
var N=q.moduleRegistry[n.toString()];N.resolver=void 0;N.isFetching=!1;w.get(n.toString()).reject(X)}}),function(){--q.fetchCount}));
return Promise.all([].concat(_.Cm(w.values())).map(function(X){return X.promise}))};_.bU=new _.MH("MODULE_REGISTRY_TOKEN");var nTA={},H$m=(nTA.rendered={priority:0,callback:function(q){a:{var w=void 0;try{var u;b:{if(_.ja6()){var y=_.HN4(_.O8()+"::pom");if(y){var e=new FS(y);break b}}e=void 0}var t=(u=e)==null?void 0:u.get("role_text");if(!t)break a;w={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:t}]}}}}}}catch(n){}w&&q.injector.resolve(_.PG).resolveCommand(w)}try{var X=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(X){var G=JSON.parse(X);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
G&&q.injector.resolve(_.PG).resolveCommand(G)}}catch(n){}}},nTA);var WjV,s66={},Nxj=(s66.initialized={priority:10,callback:function(){WjV=OI()}},s66.rendering={callback:function(q){var w;
return _.F(function(u){if(u.nextAddress==1)return _.H(u,WjV,2);w=u.yieldResult;if(!w.endpoint)throw Error("qj`"+_.uc.location.href);mp(q,w);_.HI(u)})}},s66);var Q6T={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(_.Cm(_.T("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,weight:500},{messageRegExp:/MutationObserver is not defined/,
weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,
weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,
weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,
weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},
{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,
weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},
{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,
weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,
weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,
weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(q){var w=q.stack;if(w.includes("chrome://")||w.includes("chrome-extension://")||q.message.includes("chrome-extension://")||w.includes("moz-extension://")||w.includes("local.adguard.org")||w.includes("auctioneer3.50million.club")||w.includes("youtubedownloader")||w.includes("youtube_home_page")||w.includes("is_youtube_video_no_longer_available")||
w.includes("switchScreenSizeHack")||w.includes("yt_main_big_banner.js")||w.includes("YouTubeCenter.js")||w.includes("/mytube.js")||w.includes("JSON.parseWrapper")||w.includes("/inj_js/common.js")||w.includes("firebug-lite")||w.includes(".repl.co/")||w.includes("linkfix")||w.includes("playAfterAd")||q.message.includes("Access is denied for this document")&&w.includes("<anonymous>")||q.fileName==="user-script"||q.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
w.includes("<anonymous>"))return!0;if(w.includes("https://www.youtube.com"))return!1;q=w.split("\n");if(!q.length)return!1;if(q.length<=3&&w.includes("s.onloadeddata"))return!0;w=0;for(var u=_.P(q),y=u.next();!y.done;y=u.next())y=y.value,(y.includes("https://")||y.includes("http://"))&&w++;return w/q.length>.95},
weight:0},{callback:function(q){return q.message==="Unknown Error"&&q.name.indexOf("NS_")===0},
weight:100},{callback:function(q){if(!_.kf)return!1;var w=q.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||q.message.includes("available to complete this operation"),u=q.stack.includes("webcomponents")&&q.message==="Object doesn't support this action";q=q.message.includes("object that does not implement interface Element");return w||u||q},
weight:0},{callback:function(q){return q.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(q){return q.message==="Operation is not supported"&&(q.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(q){return q.stack.includes("eval code (eval (code:1:1)")||q.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(q){return q.message.includes("Permission denied")&&q.stack.includes("this.domHandler")?!0:q.name.includes("TypeError")&&q.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(q){if(!q.stack)return!1;var w=q.stack.trim().split("\n");w.length&&w[0].endsWith("Error: "+q.message)&&w.shift();w.length&&w[w.length-1].includes("at window.onerror (")&&w.pop();if(!w.length)return!0;if(q.message==="Script error.")return w[0].includes("www.youtube.com")||w.length>=2&&w[0].startsWith("at new")&&w[1].startsWith("at window.onerror");if(q.message==="Unexpected token")return!0;q=_.P(w);for(w=q.next();!w.done;w=q.next())if(w=w.value,!(w.includes("<anonymous>")||
w.startsWith("load@")||w.startsWith("global code@")||w.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(q){return q.message==="Cannot read property 'experiments'"&&q.stack.includes("/s/player/")},
weight:500},{callback:function(q){return q.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(q){return q.stack.includes("/embed.js")?(q.params&&q.params&&(q.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.T("use_error_suppression"))var q=_.Et("SUPPRESS_CLIENT_ERRORS",!1);else{if(q=_.Gs)q=/Chrome\/(\d+)/.exec(_.QM()),q=(q?parseFloat(q[1]):NaN)>=66;q=!(q||_.F1&&_.X1(65)||_.g$&&_.X1(12.1)||xF&&_.X1(79))}return q},
weight:500}]};var IZ4={},i$T=(IZ4.initialized={priority:10,callback:function(q){q.injector.addProvider({provide:qv6,useValue:q.root});q.injector.addProvider({provide:yf$,useValue:F6l});q.injector.addProvider({provide:e6T,useValue:Q6T});var w={};q.injector.addProvider((w.provide=kJT,w.useFactory=function(u,y){return function(){zec(u,y)}},w[Ld]=[yf$,
e6T],w));q.injector.addProvider({provide:PA,useClass:PA})}},IZ4);var rc6={},UTA=(rc6.initialized={priority:3,callback:function(){var q;if(q=k6s()){q=q.replace("/",".");var w=_.UC();w.set("tz",q);w.save();q=!0}else q=!1;q||(q=_.UC(),q.set("utco",-Math.floor((new Date).getTimezoneOffset())),q.save())}},rc6);var Txh={},CPA=(Txh.initialized={priority:10,callback:function(q){q.injector.resolve(PA).start();q=_.gC();var w=_.RX("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.RX("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.RX("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.RX("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Hr(_.mFj(),{mainAppWeb:Object.assign({},q,{pageType:w})});_.Hr(J5y(),{mainAppWeb:Object.assign({},q,{pageType:w})});
_.Hr(zzz(),{mainAppWeb:q});_.Hr(a9j(),{mainAppWeb:q});a7$(function(){_.Wr(zzz(),"FAILURE");_.Wr(a9j(),"FAILURE")});
Muo();KAM();$cc()}},Txh);var dTj={},O$6=(dTj.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.D_("dl"),_.DU().processSignal("pcl");else{var q=function(){_.D_("dl");_.DU().processSignal("pcl");window.removeEventListener("load",q)};
window.addEventListener("load",q)}}},dTj);var oTH={},VrT=(oTH.rendering={priority:0,callback:function(){var q=_.DU();q.parkOrScheduleJob(function(){q.processSignal("eocs")},10,"eor",5E3)}},oTH);var fZ4=function(){};
_.O(fZ4,Vh);
fZ4.prototype.resolveCommand=function(q,w){var u,y,e,t,X,G,n,N;return _.F(function(Q){e=(u=_.C(q,_.Sc$))==null?void 0:(y=u.dialog)==null?void 0:y.commentReplyDialogRenderer;if(!e)throw new _.fv("No dialog in createCommentReplyDialogEndpoint");X=(t=w.form)==null?void 0:t.event;if(!X)throw new _.fv("Event not passed in when resolving command");G=_.P(X.composedPath());for(n=G.next();!n.done;n=G.next())if(N=n.value,N.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||N.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return N.showReplyDialog(e),Q.return();
_.HI(Q)})};var nl=function(q){this.pageRequestService=q;this.JSC$16215_prefetchCoordinator=cyk()};
_.O(nl,Vh);nl.prototype.resolveCommand=function(q){var w=this,u,y,e,t;return _.F(function(X){if(X.nextAddress==1){u=_.C(q,O9F);if((y=u)==null||!y.taskId)throw Error("rj");e=u.taskId;_.tD(X,2);return _.H(X,_.Xtr(w.pageRequestService,q,{},"").then(function(G){if(!G)throw Error("sj");},function(G){throw Error("tj`"+G);
}),4)}if(X.nextAddress!=2)return jh3(w.JSC$16215_prefetchCoordinator,e),_.jv(X,0);
t=_.nm(X);SY(w.JSC$16215_prefetchCoordinator,e,t);_.HI(X)})};
nl[Ld]=[dZ];var HD=function(q){this.innertubeTransportService=q};
_.O(HD,Vh);HD.prototype.resolveCommand=function(q){var w=this,u,y;return _.F(function(e){u=_.C(q,Vhr);if(u.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||u.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")y=u.boolValue?2:1,_.lk.getInstance().setState(y,!0,!0);return _.H(e,_.cR(w.innertubeTransportService,q),0)})};
HD[Ld]=[_.oi];var WD={},mTK=(WD.addToPlaylistEndpoint=qt(NJ),WD.addToToastAction=qt(Nn),WD.adsControlFlowOpportunityReceivedCommand=qt(Kc),WD.captionLanguageSelectActionCommand=qt(A8),WD.captionPickerEndpoint=qt(J8),WD.changeMiniAppPlayStateCommand=qt(QD),WD.changeTimelyActionVisibilityCommand=qt(sw),WD.channelCreationFormEndpoint=qt(FA),WD.clearLocationCommand=qt(so),WD.clearUrlParamCommand=qt(Id),WD.copyLinkCommand=qt(pt),WD.copyTextEndpoint=qt(qJ),WD.createCommentReplyDialogEndpoint=p_j(fZ4),WD.createPlaylistServiceEndpoint=
qt($A),WD.dismissDialogEndpoint=qt(rh),WD.entityUpdateCommand=qt(uH),WD.feedbackEndpoint=qt(kA),WD.getAnswerCommand=qt(MEX),WD.getPaymentsClientTokenCommand=qt(iw),WD.getTranscriptEndpoint=qt(QC),WD.googlePaymentBillingCommand=qt(rv),WD.googlePaymentPurchaseManagerCommand=qt(Uw),WD.hideEngagementPanelEndpoint=qt(Uo),WD.insertRichSectionCommand=qt(nt),WD.listMutationCommand=qt(H5),WD.logGtmCommand=qt(Gg),WD.notifyDropdownOptionSelectedCommand=qt(iH),WD.openAdAllowlistInstructionCommand=qt(_.Bx),WD.openOnePickAddVideoModalCommand=
qt(v5),WD.persistSubscriptionsDisplayPreferencesCommand=qt(c5),WD.pingingEndpoint=qt(xx),WD.playlistEditEndpoint=qt(YA),WD.playlistVotingRefreshPopupCommand=qt(gh),WD.refreshPanelEndpoint=qt(Tg),WD.saveImageToDeviceEndpoint=qt(wh),WD.scrollToSectionEndpoint=p_j(K1r),WD.seekToVideoTimestampCommand=qt(zg),WD.selectCountryCommand=qt(Sb),WD.setCookieCommand=qt(h8),WD.setLocalStorageCommand=qt(F2),WD.setPrefStorageEntryCommand=qt(lH),WD.setSettingEndpoint=qt(HD),WD.sfvAudioItemPlaybackCommand=qt(ad),WD.shareImageCommand=
qt(Lt),WD.sharingProviderDataCommand=qt(MJ),WD.showCaptionLanguageSelectActionCommand=qt(Dv),WD.showDialogCommand=qt(Oo),WD.showEngagementPanelEndpoint=qt(od),WD.showSheetCommand=qt(VD),WD.showSnackbarCommand=qt(X2),WD.showTransientPlayerScrimOverlayCommand=qt(Zv),WD.submitFormWithValidationFlowCommand=qt(XA),WD.talkToRecsDeselectCommand=qt(GU),WD.talkToRecsNextCommand=qt(nP),WD.talkToRecsSelectCommand=qt(HO),WD.talkToRecsUpdateTextCommand=qt(WO),WD.toggleEngagementPanelCommand=qt(ft),WD.undoFeedbackEndpoint=
qt(P5),WD.updateEngagementPanelContentCommand=qt(mW),WD.updateUrlParamCommand=qt(I0),WD.verifyCommand=qt(FA),WD.webNativeShareCommand=qt(Kt),WD.webSubmitFormCommand=qt(Eo),WD.ACK_PLAYABLES_3P_DATA_CONSENT=qt(B5),WD.CANCEL_NAVIGATION=qt(xA),WD.COPY_SHARE_URL=qt(qn),WD.MINI_APP_EXIT_DIALOG_SEEN=qt(uw),WD.MINI_APP_OPEN_URL=qt(wv),WD.REQUEST_MINI_APP_FULLSCREEN=qt(yC),WD.RESUME_NAVIGATION=qt(ez),WD.SHARE_PLAYABLE_WITH_HIGH_SCORE=qt(kU),WD.TELL_US_WHY=qt(t8),WD);
_.T("web_enable_prefetching_videos_on_home")&&(mTK.prefetchWatchCommand=qt(nl),mTK.registerTasksCommand=qt(jY));_.T("enable_share_panel_navigation_logging_fix_on_web")&&(mTK.shareEntityServiceEndpoint=qt(Ct));var oEc=Object.assign({},mTK);var AcV={},Jc4=(AcV.initialized={priority:10,callback:uxo},AcV);var z3h={},aZj=(z3h.initialized={callback:function(q){var w={},u={};Swl().install((w.document_disposed={callback:function(){_.T("finalize_all_timelines")?BaM():J7();zcf("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.u6u();var y=q.injector.resolve(PA);y.intervalId!==void 0&&(y.intervalId&&_.pi.cancelJob(y.intervalId),y.intervalId=void 0,--y.currentPartitionIndex,y=EUj(y),y>0&&HFk({mainAppWeb:_.gC(),survivalSli:{partitionMinute:y,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));ybX(bk);YP!=null&&
YP.flush();kM&&kM.snapshotAndFlush();y=_.P(UEX.values());for(var e=y.next();!e.done;e=y.next())e.value.snapshotAndFlush()}},w),(u.flush_logs={callback:function(){_.$8()}},u))}},z3h);var DT6={},Z$x=(DT6.rendered={priority:0,callback:function(){var q=new CBj;q.increment("STARTED");if(_.Et("LOGGED_IN")&&_.Et("SERVER_VERSION")!=="test"&&_.Et("SERVER_VERSION")!=="dev"&&!Pcx()&&!tHa()){q.increment("EXECUTING");var w=document.createElement("iframe");w.style.display="none";_.rhf(w,2,_.UY("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Et("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(w);q.increment("DONE")}}},DT6);var pkm={},$T4=(pkm.rendered={callback:function(){cyk().resume()}},pkm);var vTV={acknowledgeChannelTouStrikeCommand:$o(Mn),addToPlaylistServiceEndpoint:$o(ql),addToPlaylistEndpoint:$o(ql),addUpcomingEventReminderEndpoint:$o(i3),browseEndpoint:$o(d0G),channelCreationFormEndpoint:$o(R0),channelCreationServiceEndpoint:$o(cO),claimLegacyYoutubeChannelEndpoint:$o(AZ),clearSearchHistoryEndpoint:$o(yW),clearWatchHistoryEndpoint:$o(nR),commerceActionCommand:vR(V7),createBackstagePostEndpoint:$o(dv),createBroadcastCommand:$o(rX),createCommentEndpoint:$o(bw),createCommentReplyEndpoint:$o(vO),
createLiveChatPollEndpoint:$o(Uv),createPlaylistServiceEndpoint:$o(wq),crossAccountChannelTransferEndpoint:$o(sv),deleteLiveChatMessageCommand:$o(TF),deletePlaylistEndpoint:$o(u$),deleteVideoEndpoint:$o(i$),dismissalEndpoint:$o(KP),feedbackEndpoint:$o(BO),flagEndpoint:$o(FR),getAccountSwitcherEndpoint:$o(WK),verifyCommand:$o(CP),getAccountsListInnertubeEndpoint:$o(QW),getCommentsFromInboxCommand:$o($I),getDownloadActionCommand:$o(cK),getFlowCommand:vR(u3),getKidsBlocklistPickerCommand:$o(GR),getNotificationMenuEndpoint:$o(V5a),
getPaymentInstrumentsParamsCommand:$o(aC),getPaymentsClientTokenCommand:vR(V7),getPdgBuyFlowCommand:$o(BK),getReportFormEndpoint:$o(n3),getSearchInVideoCommand:$o(s2),getAnswerCommand:$o(W$),getSurveyCommand:$o(IC),getTranscriptEndpoint:$o(TR),getPostVideoPreviewEndpoint:$o(o0),decorateMessageEndpoint:$o(Ow),likeEndpoint:$o(Sz),liveChatActionEndpoint:$o(ok),liveChatEndpoint:$o(Ov),liveChatItemContextMenuEndpoint:$o(CR),liveChatPurchaseMessageEndpoint:$o(VW),liveChatReplayEndpoint:$o(dX),manageLiveChatUserEndpoint:$o(m7),
metadataUpdateCommand:$o(ZJ),moderateLiveChatEndpoint:$o(Al),modifyChannelNotificationPreferenceEndpoint:$o(gX),notificationOptOutEndpoint:$o(Ev),openSuperStickerBuyFlowCommand:$o(fR),performCommentActionEndpoint:$o(Zb),playlistEditEndpoint:$o(eY),playlistEditorEndpoint:$o(y7),profileCardCommand:$o(Ik),recordNotificationInteractionsEndpoint:$o(Rk),reelWatchEndpoint:$o(kW),refreshPanelEndpoint:$o(hl),removeUpcomingEventReminderEndpoint:$o(Jl),resolveLocationCommand:$o(DJ),revealBusinessEmailCommand:$o(JZ),
searchEndpoint:$o(_.feG),sendLiveChatMessageEndpoint:$o(zF),sendLiveChatVoteEndpoint:$o(ak),setSettingEndpoint:$o(hZ),shareEntityServiceEndpoint:vR(LP),sharingProviderDataCommand:$o(Q7),showEngagementPanelEndpoint:$o(j_),showMoreDrawerCommand:$o(LR),showSheetCommand:$o(Me),showDialogCommand:$o(l3),subscribeEndpoint:$o(jz),transcriptSubmitCaptionCorrectionCommand:$o(U2),undoFeedbackEndpoint:$o(qe),unsubscribeEndpoint:$o(lw),updateBackstagePostEndpoint:$o(fP),updateCommentEndpoint:$o(gv),updateCommentReplyEndpoint:$o(YU),
updateCommentsSettingsEndpoint:$o(Ew),updateCreatorChannelInnertubeCommand:$o(a0),updateKidsBlacklistEndpoint:$o(H$),updateEngagementPanelContentCommand:$o(KR),updatePdgFeatureEnablementCommand:$o(xI),updatedMetadataEndpoint:$o(pR),validateChannelHandleCommand:$o(Db),updateChannelPageSettingsEndpoint:$o(zU),verifyAgeEndpoint:$o(wX),watchEndpoint:vR(rq),whitelistEditEndpoint:$o(oC),ypcCancelRecurrenceEndpoint:$o(f3),ypcCompleteTransactionEndpoint:$o(me),ypcFixInstrumentEndpoint:$o(Jd),ypcGetCartEndpoint:$o(Ad),
ypcGetOffersEndpoint:$o(zR),ypcHandleTransactionEndpoint:vR(Dw),ypcLogWalletAnalyticDataEndpoint:$o(Zw),ypcOffersEndpoint:$o(p3),ypcPauseSubscriptionCommand:$o($W),ypcRedeemCodeEndpoint:$o(v$),ypcResumeSubscriptionCommand:$o(b$),ypcUpdateFopEndpoint:$o(Jd)},sy={},b$K=(sy.GET_ACCOUNT_MENU=$o(Ne),sy.GET_NOTIFICATIONS_MENU=$o(onx),sy.GET_NOTIFICATIONS_INBOX=$o(vK),sy.GET_UNSEEN_NOTIFICATION_COUNT=$o(YI),sy.GET_USER_MENTION_SUGGESTIONS=$o(VC),sy.LOAD_GUIDE=$o(OIF),sy.SUBMIT_FEEDBACK=$o(xU),sy),Nj={},
YXB=(Nj.CONTINUATION_REQUEST_TYPE_BROWSE=$o(mK),Nj.CONTINUATION_REQUEST_TYPE_SEARCH=$o(Nl),Nj.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=$o(dq),Nj.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=$o(HK),Nj.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=$o($U),Nj.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=$o(pP),Nj.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=$o(P$),Nj.CONTINUATION_REQUEST_TYPE_GET_PANEL=$o(S_),Nj),gTK={player:_.T("web_streaming_player")?vR(O2):vR(rq),watchNext:$o(C3)},ETH={player:vR(rq),reelItemWatch:$o(kW),
reelWatchSequence:$o(td)},R34={watchEndpoint:vR(O2)},ccV={commandEndpointMap:vTV,signalEndpointMap:b$K,continuationEndpointMap:YXB,watchEndpointMap:gTK,reelWatchEndpointMap:ETH,streamingEndpointMap:R34};var SXA,h3H,j6j,lZx={disableAllTransitions:(h3H=(SXA=window).matchMedia)==null?void 0:(j6j=h3H.call(SXA,"(prefers-reduced-motion: reduce)"))==null?void 0:j6j.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var Ljq=new _.MH("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.Q8=new _.MH("VIEW_TRANSITION_MANAGER_TOKEN");var Mr6=function(q){this.config=q;this.transitionTasksMap=new Map;q=_.P(q.transitionConfigs);for(var w=q.next();!w.done;w=q.next())w=_.P(w.value).next().value,this.transitionTasksMap.set(w,[])};
Mr6[Ld]=[Ljq];var ykj={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 k0M=["videoPrimaryInfoRenderer","title"],tPH=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var Kj6;Kj6=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.Bxq=_.LL(function(q){q=_.lf(q,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var w=q.data,u=q.playlistData,y=q.expanded,e=q.onExpandClick,t=q.isReadyToResume,X=function(){var Q;return!((Q=u())==null||!Q.contents)},G=function(){var Q=u();
return Q&&Q.totalVideos&&Q.currentIndex!==void 0?Q.currentIndex+1+" / "+Q.totalVideos:""};
q=_.QS(function(){_.In(_.tG().resolve(_.$X))});
var n=_.QS(function(){X()&&e&&e()}),N={};
return _.W("ytd-miniplayer-info-bar",{class:_.HR("ytdMiniplayerInfoBarHost",(N.ytdMiniplayerInfoBarHasPlaylistData=X,N)),"on:click":n},_.W("div",{class:"ytdMiniplayerInfoBarContent"},_.W("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":q},_.W(_.Lr,{text:function(){var Q=w();var I=u();if(I==null?0:I.contents){var U;Q=(U=_.KEl(I))==null?void 0:U.title}else Q=Q==null?void 0:Q.miniplayerTitle;return Xcf(Q)},
noEndpoints:!0,ellipsisTruncate:!0})),_.W("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.W(_.r,{cond:t,then:function(){return _.W(q26,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:Kj6})}}),_.W("h1",null,_.W(_.Lr,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var Q=w();var I=u();Q=t()?{simpleText:_.ID("CONTINUE_WATCHING",void 0,"Continue watching")}:(I==null?0:I.contents)?I.titleText:Q==null?void 0:Q.miniplayerSubtitle;return Xcf(Q)},
noEndpoints:!0,ellipsisTruncate:!0})),_.W(_.r,{cond:function(){return!!G()&&!t()},
then:function(){return _.W("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.W("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.W("span",null,G))}}))),_.W(_.r,{cond:X,
then:function(){return _.W("div",{class:"ytdMiniplayerInfoBarExpand"},_.W(Kr,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(Q){e&&(e(),Q.stopPropagation())}}},
iconName:function(){return y()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"me");var xTc;xTc=_.LL(function(q){return _.W("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.W(Kr,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:q.onTap}},
iconName:"yt-icons:close"}))},"ne");
_.qAh=_.LL(function(q){q=_.lf(q,{playabilityStatus:void 0,isDisabled:!1});var w=q.size,u=q.playabilityStatus,y=q.isDisabled,e=_.Bm();q=_.P(_.r4(void 0,void 0,"bJr0Se"));var t=q.next().value,X=q.next().value;q=_.aV(_.Wy);var G=!1,n=function(){return w().height<=0};
_.DG(function(){var U=w(),d=n(),V=t();V&&!d&&V.setInternalSize(U.width,U.height)});
_.DR(function(){var U,d,V;return _.F(function(J){if(J.nextAddress==1){U=_.tG().resolve(_.$X);d=U.getPlayerElement();if(!U.isMiniplayerActive()||!d||!e.value)return J.return();d.appendTo(e.value);return _.H(J,d.getPlayerPromise(),2)}V=J.yieldResult;V.setSizeStyle(!1,!0);X(V);_.HI(J)})});
_.ZG(function(){N()});
_.DG(function(){var U=t();if(U)if(y()){var d=U.getPlayerState();(G=d===-1||d===1||d===3)&&U.pauseVideo()}else N()});
var N=function(){if(G){G=!1;var U;(U=t())==null||U.playVideo()}},Q=_.QS(function(){_.In(_.tG().resolve(_.$X))}),I={};
return _.W("ytd-miniplayer-player-container",{class:_.HR("ytdMiniplayerPlayerContainerHost",(I.ytdMiniplayerPlayerContainerHidden=n,I.ytdMiniplayerPlayerContainerHostShortsPip=q,I)),style:_.rm({width:function(){return w().width+"px"},
height:function(){return w().height+"px"}})},_.W("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:e}),_.W(_.r,{cond:function(){return!!u()&&!_.tu6(u())},
then:function(){return _.W(cFk,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var U;return((U=u())==null?void 0:U.errorScreen)||null},
status:function(){var U;return((U=u())==null?void 0:U.status)||null}})}}),_.W(_.r,{cond:y,
then:function(){return _.W("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":Q},_.W(xTc,{onTap:function(){_.tG().resolve(_.$X).close()}}))}}))},"oe");_.wVV=_.LL(function(q){var w=q.toastData;var u=_.Bm();q=_.P(_.iv(function(){return!!w()}));
var y=q.next().value,e=q.next().value;q=_.P(_.r4(!1,void 0,"xkrBze"));var t=q.next().value,X=q.next().value,G=function(){var Q;return _.lA((Q=w())==null?void 0:Q.data.title)};
_.p4(function(){_.v8.requestAvailability();w()&&e(!1)});
var n,N;_.DG(function(){y()&&(_.t7(u.value,"iron-announce",{text:w().label+" "+G()}),n&&_.pi.cancelJob(n),n=_.pi.addLowPriorityJob(function(){X(!0)},2500))});
_.DG(function(){t()&&(N&&_.pi.cancelJob(N),N=_.pi.addLowPriorityJob(function(){e(!1);X(!1)},300))});
q={};return _.W("ytd-miniplayer-toast",{el:u,class:_.HR("ytdMiniplayerToastHost",(q.ytdMiniplayerToastOpening=function(){return y()},q.ytdMiniplayerToastClosing=function(){return t()},q))},_.W(_.r,{cond:function(){var Q;
return(Q=w())==null?void 0:Q.data},
then:function(Q){return _.W(Pdk,{className:"ytdMiniplayerToastThumbnail",data:Q,width:78})}}),_.W("div",{class:"ytdMiniplayerToastInfo"},_.W("div",{class:"ytdMiniplayerToastLabel"},function(){var Q;
return(Q=w())==null?void 0:Q.label}),_.W("div",{class:"ytdMiniplayerToastTitle"},G)))},"pe");var ik4;var CSM=new Set,T0H=null;var OkH=null;var yxm=_.LL(function(q){var w=q.progressState;var u=q.multiMarkersPlayerBarRenderer;var y=q.progressBarWidth;var e=function(){return mNj(u())},t=function(){return zmj(w())},X=function(){return y()*(w().playedTime/w().videoDuration)};
return _.W("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.W(_.mL,{each:e},function(G,n){return _.W(umh,{modifiedProps:t,chapters:e,index:n,playedProgressWidth:X,backgroundGradientPosition:function(){var N=t(),Q=e(),I=n(),U=X();return(N.playedTime-Zz(_.C(Q[I],Dz)))/N.playedTime*U}})}))},"qe"),umh=_.LL(function(q){var w=q.modifiedProps;
var u=q.chapters;var y=q.index;var e=q.playedProgressWidth;var t=q.backgroundGradientPosition;q={};q=_.HR("ytChapteredProgressBarChapteredPlayerBarChapter",(q.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return X().isScrubbing},q.ytChapteredProgressBarHoveredMacroMarker=function(){return X().scrubberHovering},q.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return X().videoPosition==="seen"},q));
var X=function(){return a0s(w(),u(),y())},G=function(){var n=w();
var N=u(),Q=y();if(a0s(n,N,Q).videoPosition!=="active")n=0;else{var I=Zz(_.C(N[Q],Dz));n=(n.playedTime-I)/((Zz(_.C(N[Q+1],Dz))||n.videoDuration)-I)}return n};
return _.W("div",{class:q,style:_.rm({width:function(){var n=w(),N=u(),Q=y(),I=_.C(N[Q],Dz);N=_.C(N[Q+1],Dz);return(N?Zz(N)-Zz(I):n.videoDuration-Zz(I))/n.videoDuration*100+"%"},
"background-color":function(){a:{var n=X();switch(n.videoPosition){case "pending":n=n.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":n=n.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:n=""}}return n},
"background-size":function(){return(DN6(X())?e():"")+"px"},
"background-position-x":function(){return(DN6(X())?t():"")+"px"}})},_.W("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var n=w(),N=u(),Q=y();if(a0s(n,N,Q).videoPosition==="seen")var I=0;else I=Zz(_.C(N[Q],Dz)),N=Zz(_.C(N[Q+1],Dz))||n.videoDuration,n=n.videoDuration*n.percentLoaded,I=N<=n?1:I>=n?0:(n-I)/(N-I);return"width: "+I*100+"%"}}),_.W("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.rm({width:function(){return G()*100+"%"},
"background-size":function(){return(DN6(X(),G())?e():"")+"px"},
"background-position-x":function(){return(DN6(X(),G())?t():"")+"px"}})}))},"re");var eBh=function(q,w){w=w===void 0?gd$:w;var u,y=[],e,t=!1;return function(){var X=_.Cj.apply(0,arguments);if(t&&u===this&&w(X,y))return e;e=q.apply(this,X);t=!0;u=this;y=X;return e}}(function(q){var w=q.heatMarkers,u=q.minHeightDp===void 0?0:q.minHeightDp,y=q.maxHeightDp===void 0?60:q.maxHeightDp;
var e=e===void 0?!1:e;var t=1E3/w.length;q=[];q.push({x:0,y:100});for(var X=0;X<w.length;X++){var G=void 0,n=((G=_.C(w[X],CkP))==null?void 0:G.heatMarkerIntensityScoreNormalized)||0;G=(X+.5)*t;n=100-_.zT(n*100,u/321*100,y/321*100);X!==0||e||q.push({x:0,y:n});q.push({x:G,y:n});X===w.length-1&&q.push({x:1E3,y:n})}q.push({x:1E3,y:100});w="";for(u=0;u<q.length;u++)e=q[u],u===0?e="M "+e.x.toFixed(1)+","+e.y.toFixed(1):(y=ecM(q[u-1],q[u-2],e),t=ecM(e,q[u-1],q[u+1],!0),e=" C "+(y.x.toFixed(1)+","+y.y.toFixed(1)+
" "+t.x.toFixed(1)+","+t.y.toFixed(1)+" "+e.x.toFixed(1)+","+e.y.toFixed(1))),w+=e;return w});var k46=_.LL(function(q){var w=q.progressBarProps;var u=q.config;var y={};q=_.HR("ytHeatSeekerHost",(y.ytHeatSeekerHighContrast=q.highContrast,y));var e=function(){return WC6(u().chapterData)};
return _.W("yt-progress-bar-heatseeker",{class:q,style:function(){var t;return"height: 320px; display: "+(w().isDragging&&((t=e())==null?0:t.heatMarkers)?"block":"none")}},_.W(_.r,{cond:e,
then:function(t){return _.W(_.r,{cond:function(){return t().heatMarkers},
then:function(){return _.W("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.W("path",{d:function(){return eBh(t())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"se");var tqh=_.LL(function(q){var w=q.progressBarProps;var u=q.config;q={};q=_.HR("ytProgressBarLineProgressBarLine",(q.ytProgressBarLineProgressBarLineRounded=function(){return u().rounded},q.ytProgressBarLineProgressBarLineBottomInset=function(){return u().position===2},q));
return _.W("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.W("div",{class:q},_.W("div",{class:"ytProgressBarLineProgressBarBackground"}),_.W("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+w().percentLoaded*100+"%"}}),_.W("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var y=w();return"width: "+(y.videoDuration?_.zT(y.hoveredTime/y.videoDuration,0,1):0)*100+"%"}}),_.W("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+G0M(w())*100+"%"}})))},"te");
tqh.idomCompat=!0;var Pjq=_.LL(function(q){var w=q.progressBarProps;var u=q.playheadData;var y=q.interpolateDotPosition;var e=q.hidePlayhead;q={};var t=_.HR("ytProgressBarPlayheadProgressBarPlayheadDot",(q.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return w().isDragging},q.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!w().isDragging&&e()},q));
return _.W("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.rm({"margin-left":function(){return nqf(w())*100+"%"},
transform:function(){return"translateX(-"+(y()?nqf(w())*12:6)+"px)"}})},_.W(_.r,{cond:function(){var X;
return(X=_.jf(u)())==null?void 0:X.playheadImage},
then:function(X){var G={};return _.W("div",{class:_.HR("ytProgressBarPlayheadProgressBarPlayheadCustom",(G.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return w().isDragging},G.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!w().isDragging&&e()},G)),
style:_.rm({"transform-origin":function(){return(y()?nqf(w())*20:10)+"px center"}})},_.W(_.ln,{data:X,
alt:"","aria-hidden":"true"}))},
else:function(){return _.W("div",{class:t,style:_.rm({"transform-origin":function(){return(y()?nqf(w())*12:6)+"px center"}})})}}))},"ue");
Pjq.idomCompat=!0;var id=function(q,w,u,y,e,t){this.getProgressBarRect=q;this.updateProgressBarRect=w;this.getFilmstripYPosition=u;this.setFineScrubbingDraggedTime=y;this.updateFilmStripDraggedYDistance=e;this.resetFilmStripYOffset=t;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.MI(this.onThrottledSeek,100,this)},XVa=function(q,w,u){return function(y){q.handleClick(y,w(),u())}},n6m=function(q,w){return function(u){FTh(q,
u,G4T(u),w())}},HhA=function(q,w){return function(u){FTh(q,u,{x:u.clientX,
y:u.clientY},w())}},sKx=function(q,w,u){return function(y){var e=w(),t=u();
WTm(q,y,G4T(y),e,t,!0);if(t.onTouchMove)t.onTouchMove(e)}},QKj=function(q,w,u){return function(y){NcB(q,y,w(),u())}},Ia6=function(q,w){return function(){q.handleMouseLeave(w())}},ihK=function(q,w,u){return function(){var y=w(),e=u();
re(q,y,e);if(e.onTouchEnd)e.onTouchEnd(y)}},rx6=function(q,w,u){return function(){var y=w(),e=u();
re(q,y,e);if(e.onTouchEnd)e.onTouchEnd(y)}},U6K=function(q,w,u){return function(){re(q,w(),u())}},Tcx=function(q){return function(w){if(w.keyCode===39){var u,y;
(u=q())==null||(y=u.playerApi)==null||y.seekBy(5,void 0,void 0,72)}else if(w.keyCode===37){var e,t;(e=q())==null||(t=e.playerApi)==null||t.seekBy(-5,void 0,void 0,71)}}},Cj6=function(q,w,u){return function(y){!u().disableScrubbing&&q.startPosition&&NcB(q,y,w(),u())}},d6c=function(q,w,u){return function(){if(!u().disableScrubbing)if(q.startPosition){var y=w(),e=u();
re(q,w(),u());if(e.onTouchEnd)e.onTouchEnd(y)}else w().setState({isDragging:!1})}},G4T=function(q){q=q.touches[0];
return{x:q.clientX,y:q.clientY}},NcB=function(q,w,u,y){if(w.buttons!==1){if(w.movementX||w.movementY)w.preventDefault(),w.stopPropagation(),q=Ohc(q,u,w.clientX),u.setState({isHovering:!0,
hoveredTime:q*u.videoDuration})}else o6A(u),WTm(q,w,{x:w.clientX,y:w.clientY},u,y,!1)};
id.prototype.handleMouseLeave=function(q){o6A(q)};
var o6A=function(q){q.isHovering&&q.setState({isHovering:!1,hoveredTime:0})},FTh=function(q,w,u,y){q.startPosition||(q.startPosition=u,q.updateProgressBarRect(),q.controlsWereVisibleBeforeDragging=y.controlsVisible,w.stopPropagation(),_.T("medium_progress_bar_modification")||w.preventDefault())},WTm=function(q,w,u,y,e,t){if(q.startPosition)if(t&&e.isInlinePlayback&&q.startPosition&&!q.hasDraggedTheMinimumDistance&&Math.abs(u.y-q.startPosition.y)>Math.abs(u.x-q.startPosition.x))re(q,y,e);
else if(w.preventDefault(),w.stopPropagation(),y.videoDuration&&(q.startPosition&&!q.hasDraggedTheMinimumDistance&&(q.hasDraggedTheMinimumDistance=Math.abs(u.x-q.startPosition.x)>=1),e.enableFineScrubbing&&(q.startPosition&&(q.isDraggedForFineScrubbing=-(u.y-q.startPosition.y)>=60),!q.startPosition||u.y>=q.startPosition.y||(y.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:Zky(y.draggedTime,y,e.chapterData)}),q.setFineScrubbingDraggedTime(y.draggedTime),q.updateFilmStripDraggedYDistance(q.startPosition.y,
u.y,y))),q.hasDraggedTheMinimumDistance)){w=Ohc(q,y,u.x);if(q.isDraggedForFineScrubbing){var X;(X=y.playerApi)==null||X.pauseVideo();y.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:y.draggedTime,filmStripXDistance:Zky(w*y.videoDuration,y,e.chapterData)})}e.enableFineScrubbing&&(!e.enableFineScrubbing||q.getFilmstripYPosition(y)<68)||y.setState({draggedTime:w*y.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:q.controlsWereVisibleBeforeDragging});var G;(G=
e.cancelAutohideControlsFn)==null||G.call(e)}},re=function(q,w,u){var y=u.enableFineScrubbing&&w.fineScrubbingActiveState!=="off";
if(w.isDragging||y){y={isDragging:!1,playedTime:w.draggedTime,controlsVisible:q.controlsWereVisibleBeforeDragging};u.enableFineScrubbing&&w.fineScrubbingActiveState!=="on"&&(q.resetFilmStripYOffset(),y.fineScrubbingActiveState="off");var e=e===void 0?OkH:e;var t=_.pN(0);t&&e&&_.ly(t,e,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(w.playedTime*1E3),endMediaTimeMs:Math.round(w.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});w.setState(y);
q.seekThrottle.fire(w.draggedTime,w,7);_.T("mweb_new_progress_bar_play_on_seek")&&q.resumeVideo(w);u.unmuteOnSeek&&(u=w.playerApi,w.volumeMuted&&(u==null||u.unMute()))}else w.setState({controlsVisible:!w.controlsVisible}),(t=u.triggerAutohideControlsAfterDelayFn)==null||t.call(u);q.startPosition=null;q.hasDraggedTheMinimumDistance=!1;q.isDraggedForFineScrubbing=!1;q.controlsWereVisibleBeforeDragging=!1};
id.prototype.handleClick=function(q,w,u){this.updateProgressBarRect();q.stopPropagation();q=Ohc(this,w,q.clientX)*w.videoDuration;w.setState({playedTime:q});if(w.playerState!==2){var y;(y=u.triggerAutohideControlsAfterDelayFn)==null||y.call(u)}this.seekThrottle.fire(q,w,7)};
var Ohc=function(q,w,u){q=q.getProgressBarRect(w);return _.zT(0,(u-q.left)/q.width,1)};
id.prototype.resumeVideo=function(q){if(q.draggedTime<q.videoDuration){var w;(w=q.playerApi)==null||w.playVideo()}};
id.prototype.onThrottledSeek=function(q,w,u){if(w=w.playerApi){var y;if((y=w.getVideoData())==null?0:y.isLive)y=this.getProgressState(w),q+=(y==null?void 0:y.seekableStart)||0;w.seekTo(q,void 0,void 0,void 0,u)}};
id.prototype.getProgressState=function(q){var w=q==null?void 0:q.getPresentingPlayerType();return q==null?void 0:q.getProgressState(w)};var m6A,fax,Axq,zBh,VqB,aaj,D6j,Zhh,pVB;m6A=_.LL(function(q){var w=q.progressBarProps;var u=q.config;var y=q.progressBarWidthPx;var e=q.chapterData;var t=Ymo(w,function(){return u().isShortsPage}),X=function(){return!w().isHovering&&!u().isShortsPage};
q={};var G=_.HR("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(q.ytPlayerStoryboardHostMwebShorts=function(){return u().isShortsPage&&!1},q));
return _.W("yt-player-storyboard",null,_.W(_.r,{cond:function(){return w().isDragging||w().isHovering},
then:function(){return _.W(_.r,{cond:t,then:function(n){return _.W(_.r,{cond:X,then:function(){return _.W("div",{class:G,"aria-hidden":"true"},_.W(VqB,{props:w,config:u,isBigboard:!0,chapterData:e}))},
else:function(){return _.W(fax,{props:w,frame:n,config:u,progressBarWidthPx:y,chapterData:e})}})}})}}))},"ve");
_.Jx4=_.LL(function(q){var w=q.progressBarProps;var u=Ymo(w,q.isShortsPage);return _.W("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.W(_.r,{cond:function(){return w().isDragging||w().isHovering},
then:function(){return _.W(_.r,{cond:u,then:function(y){return _.W(Axq,{frame:y,props:w,isBigboard:!0})}})}}))},"we");
fax=_.LL(function(q){var w=q.props;var u=q.frame;var y=q.config;var e=q.progressBarWidthPx;q=q.chapterData;var t={};t=_.HR("ytPlayerStoryboardHost",(t.ytPlayerStoryboardHostMwebShorts=function(){return y().isShortsPage&&!1},t.ytPlayerStoryboardHostInlinePlayer=function(){return y().isInlinePlayer},t.ytPlayerStoryboardHostFadeIn=function(){return y().useFadeInAnimation},t));
return _.W("div",{class:t,"aria-hidden":"true",style:function(){var X=w(),G=pcj(u()),n=e();X=$NM(X)/X.videoDuration;var N=n*X,Q=G/2+6;G=n-(G/2+6);return"left: "+(N<=Q?Q/n*100:N>=G?G/n*100:X*100)+"%"}},_.W(_.r,{cond:function(){var X=w();
return!(y().isShortsPage&&X.videoDuration<15)},
then:function(){return _.W(Axq,{frame:u,props:w,isBigboard:!1})}}),_.W(VqB,{props:w,
config:y,isBigboard:!1,chapterData:q}))},"xe");
Axq=_.LL(function(q){var w=q.frame;var u=q.props;var y=q.isBigboard;var e=function(){var G,n;return(n=(G=u().playerApi)==null?void 0:G.getVideoContentRect())!=null?n:{width:0,height:0}},t=function(){return pcj(w())},X=function(){var G=w();
return G?G.height/G.rows:0};
q={};q=_.HR((q.ytPlayerStoryboardBigboardImageWrapper=y,q.ytPlayerStoryboardStoryboardImageWrapper=function(){return!y()},q));
return _.W("div",{class:q,style:function(){return"width: "+(y()?e().width:t())+"px; height: "+(y()?e().height:X())+"px;"}},_.W(zBh,{frame:w,
storyboardWidth:t,storyboardHeight:X,storyboardScale:function(){return(y()?e().width:t())/t()}}))},"ye");
zBh=_.LL(function(q){var w=q.frame;var u=q.storyboardWidth;var y=q.storyboardHeight;var e=q.storyboardScale;var t=function(){var X=w().row,G=w().column,n=u(),N=y(),Q=e();return{left:-G*n*Q,top:-X*N*Q}};
return _.W("img",{src:function(){return w().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+t().left+"px; top: "+t().top+"px; width: "+w().width*e()+"px; height: "+w().height*e()+"px;"}})},"ze");
VqB=_.LL(function(q){var w=q.props;var u=q.config;var y=q.isBigboard;var e=q.chapterData;q={};q=_.HR("ytPlayerStoryboardMetadata",(q.ytPlayerStoryboardMetadataBigboard=y,q));return _.W("div",{class:q},_.W(_.r,{cond:y,then:function(){return _.W(_.GS,null,_.W(aaj,{props:w,config:u}),_.W(_.r,{cond:function(){a:{var t=w();var X=u(),G=e(),n;if((X==null?0:X.activeChapter)&&((n=_.C(X==null?void 0:X.activeChapter,Dz))==null?0:n.title))t=!0;else{X=_.P(sUu(G));for(X=X.next();!X.done;X=X.next()){t=(X=_.C(X.value,
OGP))&&vq7(t,X);break a}t=!1}}return t},
then:function(){return _.W(D6j,{props:w,config:u,isBigboard:!0,chapterData:e})}}))},
else:function(){return _.W(_.GS,null,_.W(D6j,{props:w,config:u,isBigboard:!0,chapterData:e}),_.W(aaj,{props:w,config:u}))}}))},"Ae");
aaj=_.LL(function(q){var w=q.props;var u=q.config;q={};q=_.HR("ytPlayerStoryboardTimestamp",(q.ytPlayerStoryboardTimestampShorts=function(){return u().isShortsPage},q.ytPlayerStoryboardTimestampIsHovering=function(){return w().isHovering||u().isShortsPage&&!0},q));
return _.W("div",{class:q},_.W(_.GS,null,function(){return _.bkz($NM(w()))}))},"Be");
D6j=_.LL(function(q){var w=q.props;var u=q.config;var y=q.isBigboard;var e=q.chapterData;q={};y=_.HR("ytPlayerStoryboardTitle",(q.ytPlayerStoryboardTitleBigboard=y,q));return _.W("div",{class:y},_.W(_.r,{cond:function(){return!u().isShortsPage},
then:function(){return _.W(Zhh,{props:w,activeChapter:function(){return u().activeChapter},
chapterData:e})}}))},"Ce");
Zhh=_.LL(function(q){var w=q.props;var u=q.activeChapter;var y=q.chapterData;return _.W(_.GS,null,_.W(_.mL,{each:function(){return sUu(y())},
keyBy:"INDEX"},function(e){return _.W(_.GS,null,_.W(_.r,{cond:function(){return _.C(e(),OGP)&&vq7(w(),_.C(e(),OGP))},
then:function(){return _.W(pVB,{timedMarker:function(){return _.C(e(),OGP)}})}}))}),_.W(_.r,{cond:function(){var e;
return u()&&((e=_.C(u(),Dz))==null?void 0:e.title)},
then:function(e){return _.W(_.Lr,{text:e,noPreWrap:!0})}}))},"De");
pVB=_.LL(function(q){var w=q.timedMarker;return _.W(_.GS,null,_.W("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.W(_.U3,{icon:function(){return w().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.W(_.Lr,{text:function(){return w().label},
noPreWrap:!0}))},"Ee");_.$6m=_.LL(function(q){var w=q.progressBarProps;var u=q.playheadData;var y=q.config;q=_.Bm();var e=_.Bm(),t=_.Bm(),X=_.P(_.r4({width:0,left:0},void 0,"NcXsUb")),G=X.next().value,n=X.next().value,N=function(){t.value&&n(t.value.getBoundingClientRect())},Q=function(){G().width<=0&&N();
return G()};
y1("resize",N);var I=new id(Q,function(){},function(){return 0},function(){},function(){},function(){}),U=function(){return w()};
X=_.P(_.r4(!1,void 0,"ZsF6Xc"));var d=X.next().value,V=X.next().value;X=_.QS(function(){V(!0);y().position===2?setTimeout(function(){N()},100):N()});
var J=_.QS(function(){V(!1);Ia6(I,U)()}),a=_.QS(function(Ro){y().doSeekOnClick&&XVa(I,U,y)(Ro);
return!1}),b=_.QS(function(Ro){n6m(I,U)(Ro);
return!1}),g=_.QS(function(Ro){HhA(I,U)(Ro);
return!1}),l=_.QS(function(Ro){sKx(I,U,y)(Ro);
return!1}),S=_.QS(function(Ro){QKj(I,U,y)(Ro);
return!1}),eH=_.QS(function(){ihK(I,U,y)();
return!1}),x=_.QS(function(){rx6(I,U,y)();
return!1}),P4=_.QS(function(){U6K(I,U,y)();
return!1}),C7=_.QS(function(Ro){Tcx(U)(Ro);
return!1});
y1("mousemove",Cj6(I,U,y));y1("mouseup",d6c(I,U,y));_.p4(function(){oq6(e.value);V(!1);N();d6c(I,U,y)()});
var mu={};mu=_.HR("ytPlayerProgressBarHost",function(){return y().className},(mu.ytPlayerProgressBarHostReadOnly=function(){return y().disableScrubbing},mu.ytPlayerProgressBarHostHidden=function(){return y().hideProgressBar&&!d()},mu.ytPlayerProgressBarHostLowerPlayer=function(){return y().position===0},mu.ytPlayerProgressBarHostBottomEdge=function(){return y().position===1},mu.ytPlayerProgressBarHostBottomInset=function(){return y().position===2},mu.ytPlayerProgressBarHostCustom=function(){return y().position===
3},mu));
var Os={},YJ=_.HR("ytPlayerProgressBarBackground",(Os.ytPlayerProgressBarBackgroundHide=function(){return y().position===2&&!d()&&!w().isDragging},Os));
Os={};Os=_.HR("ytPlayerProgressBarDragContainer",(Os.ytPlayerProgressBarDragContainerBottomEdge=function(){return y().position===1},Os));
var ao={};ao=_.HR("ytPlayerProgressBarProgressBar",(ao.ytPlayerProgressBarProgressBarInset=function(){return y().position===2},ao.ytPlayerProgressBarProgressBarInsetMinimized=function(){return y().position===2&&!d()&&!w().isDragging},ao));
var bc=function(){return Math.floor(G0M(w())*100)};
return _.W("yt-progress-bar",{el:q,class:mu},_.W(_.r,{cond:function(){return y().position===2},
then:function(){return _.W("div",{class:YJ})}}),_.W("div",{el:e,
"on:click":a,"on:touchstart":b,"on:touchmove":l,"on:mouseenter":X,"on:mousedown":g,"on:mouseleave":J,"on:mousemove":S,"on:mouseup":x,"on:touchend":eH,"on:touchcancel":P4,"on:keydown":C7,class:Os,role:"slider","aria-valuenow":bc,"aria-valuetext":function(){return bc()+"%"},
tabindex:0,"aria-label":_.ID("SEEK_SLIDER")},_.W("div",{el:t,class:ao},_.W(k46,{progressBarProps:w,config:y,highContrast:function(){return!!y().isInlinePlayback}}),_.W(_.r,{cond:function(){return y().chapterData&&N0u(y().chapterData)},
then:function(){return _.W(yxm,{progressState:w,multiMarkersPlayerBarRenderer:function(){return y().chapterData},
progressBarWidth:function(){return G().width}})},
else:function(){return _.W(tqh,{progressBarProps:w,config:y})}}),_.W(Pjq,{progressBarProps:w,
playheadData:u,interpolateDotPosition:function(){return y().position!==2},
hidePlayhead:function(){return y().playheadDotBehavior===1&&!d()}}))),_.W(m6A,{progressBarProps:w,
config:function(){return{activeChapter:Jko(w(),y().chapterData),getProgressBarWidthPx:function(){return Q().width},
isShortsPage:!!y().isShortsPage,isInlinePlayer:!!y().isInlinePlayback,useFadeInAnimation:!!y().isInlinePlayback}},
progressBarWidthPx:function(){return G().width},
chapterData:function(){return y().chapterData}}))},"Fe");
_.$6m.idomCompat=!0;Object.assign({},_.QU4(),{setState:function(){},
domMeasurements:{},appApi:_.FCM(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var v6T;
_.bha=_.LL(function(){var q,w=(q=_.pC(gq4().playerApi))!=null?q:void 0;q=_.P(_.r4(!1,void 0,"HLFBmb"));var u=q.next().value,y=q.next().value;q=_.P(_.r4(!1,void 0,"lHH9bc"));var e=q.next().value,t=q.next().value;q=_.P(_.r4(!1,void 0,"zsY7yd"));var X=q.next().value,G=q.next().value;q=_.P(_.r4(!1,void 0,"KeHQgc"));var n=q.next().value,N=q.next().value;q=_.P(_.r4(0,void 0,"gLLCj"));var Q=q.next().value,I=q.next().value;q=_.P(_.r4(0,void 0,"s3RYkf"));var U=q.next().value,d=q.next().value;q=_.P(_.r4(!1,void 0,
"Dn608e"));var V=q.next().value,J=q.next().value;q=_.P(_.r4(0,void 0,"AnkH1b"));var a=q.next().value,b=q.next().value;q=_.P(_.r4(0,void 0,"QYNL0b"));var g=q.next().value,l=q.next().value;q=_.P(_.r4("",void 0,"Yzw45d"));var S=q.next().value,eH=q.next().value;q=_.P(_.r4(-1,void 0,"iiVI0c"));var x=q.next().value,P4=q.next().value,C7=_.oR(function(){var mu={controlsVisible:u(),isOverlayHidden:e(),shouldWaitToHideControls:X(),isDragging:n(),isHovering:V(),videoDuration:a(),playedTime:g(),videoId:S(),draggedTime:U(),
hoveredTime:Q(),playerState:x()};return Object.assign({},_.QU4(),mu,{domMeasurements:{},setState:function(Os){Os.controlsVisible!==void 0&&y(Os.controlsVisible);Os.isOverlayHidden!==void 0&&t(Os.isOverlayHidden);Os.shouldWaitToHideControls!==void 0&&G(Os.shouldWaitToHideControls);Os.isDragging!==void 0&&N(Os.isDragging);Os.isHovering!==void 0&&J(Os.isHovering);Os.draggedTime!==void 0&&d(Os.draggedTime);Os.hoveredTime!==void 0&&I(Os.hoveredTime);Os.videoDuration!==void 0&&b(Os.videoDuration);Os.playedTime!==
void 0&&l(Os.playedTime);Os.videoId!==void 0&&eH(Os.videoId);Os.playerState!==void 0&&P4(Os.playerState)},
appApi:_.FCM(),playerApi:w})},void 0,"ZW7y9");
_.DR(function(){w==null||w.addEventListener("onVideoProgress",UNl(C7));w==null||w.addEventListener("onVideoDataChange",rkM(C7));w==null||w.addEventListener("onStateChange",I0H(C7))});
_.ZG(function(){if(w==null?0:w.isReady())w==null||w.removeEventListener("onVideoProgress",UNl(C7)),w==null||w.removeEventListener("onVideoDataChange",rkM(C7)),w==null||w.removeEventListener("onStateChange",I0H(C7))});
return _.W("desktop-shorts-player-controls",null,_.W(v6T,{playerControlsProps:C7}))},"Ge");
v6T=_.LL(function(q){var w=q.playerControlsProps;return _.W("div",{class:"desktopShortsPlayerControlsWizHost"},_.W(_.$6m,{progressBarProps:w,config:function(){return{isShortsPage:!0,hideProgressBar:w().videoDuration<30&&w().playerState!==2&&!w().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"He");_.t2(_.hmu);_.YAa=_.LL(function(q){var w=q.data;return _.W("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.W(_.Mq,{command:function(){return w().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.W(_.r,{cond:function(){return w().iconName},
then:function(u){return _.W(_.U3,{icon:u})}}),_.W("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return w().text}),_.W(_.r,{cond:function(){return w().showEndChevron},
then:function(){return _.W(_.U3,{icon:"CHEVRON_RIGHT"})}})))},"Ie");var g6q=_.LL(function(q){var w=q.data;var u=q.overlayDensity;q={};return _.W("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.W(_.OF,{data:function(){return w().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(y){var e=y.data;
return _.W(_.UJ,{data:function(){return(u==null?void 0:u())===1?Object.assign({},e(),{avatar:{avatarViewModel:Object.assign({},_.C(e().avatar,_.RH),{avatarImageSize:"AVATAR_SIZE_48"})}}):e()}})}}),_.W(_.OF,{data:function(){return w().avatarStackViewModel}},{avatarStackViewModel:function(y){return _.W(_.TL,{data:y.data})}}),_.W(_.Lr,{className:_.HR("ytReelChannelBarViewModelChannelName",(q.ytReelChannelBarViewModelChannelNameLarge=function(){return(u==null?void 0:u())===1},q)),
text:function(){return w().channelName},
linkInheritColor:!0,userInput:!0}),_.W("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.W(_.OF,{data:function(){return w().subscribeButtonViewModel}},{subscribeButtonViewModel:function(y){var e=y.data;
return _.W(_.TK,{data:function(){return(u==null?void 0:u())===1?Object.assign({},e(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},e().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):e()},
isOverlay:!1})},
buttonViewModel:_.Zs})),_.W("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.W(_.OF,{data:function(){var y,e;return(e=_.C((y=w())==null?void 0:y.sponsorButtonViewModel,R_3))==null?void 0:e.sponsorButton}},{buttonViewModel:function(y){return _.W(_.Zs,{data:y.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Je");var E6x=_.LL(function(q){var w={};return _.W("yt-reel-multi-format-link-view-model",{class:_.HR("ytReelMultiFormatLinkViewModelHost",(w.ytReelMultiFormatLinkViewModelHostTall=!0,w.ytReelMultiFormatLinkViewModelHostLarge=function(){var u;return((u=q.overlayDensity)==null?void 0:u.call(q))===1},w))},_.W(_.Mq,{ariaLabel:function(){return q.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.Zh(q.data().command)},
dangerousStopPropagation:!1},_.W("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.W(_.r,{cond:function(){return q.data().icon},
then:function(u){return _.W(_.ln,{data:u,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.W(_.Lr,{text:function(){return q.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Ke");
E6x.idomCompat=!0;var RB4=_.LL(function(q){var w=q.data;var u=q.overlayDensity;var y=_.Bm();q=_.P(_.r4(!1,void 0,"xDqzhe"));var e=q.next().value,t=q.next().value;q=_.P(_.r4(!1,void 0,"LI9CFd"));var X=q.next().value,G=q.next().value,n=function(){return w().isMultiLineSa},N=_.Qo(Ocy,function(){var l,S;
return(S=(l=w().toggleableContent)==null?void 0:l.entityKey)!=null?S:""}),Q=function(){var l,S,eH;
return(eH=w().toggleableContent)!=null&&eH.entityKey?(S=(l=N())==null?void 0:l.value)!=null?S:!1:!1},I=function(){var l,S,eH,x,P4,C7,mu,Os,YJ,ao,bc;
return w().toggleableContent?Q()?(l=w().toggleableContent)==null?void 0:l.toggledData:(S=w().toggleableContent)==null?void 0:S.untoggledData:{primaryText:(Os=(eH=w().defaultContent)==null?void 0:eH.primaryText)!=null?Os:w().text,secondaryText:(x=w().defaultContent)==null?void 0:x.secondaryText,onTapCommand:(YJ=(P4=w().defaultContent)==null?void 0:P4.onTapCommand)!=null?YJ:w().onTapCommand,icon:(ao=(C7=w().defaultContent)==null?void 0:C7.icon)!=null?ao:w().icon,image:(bc=(mu=w().defaultContent)==null?
void 0:mu.image)!=null?bc:w().image}},U=function(){return n()?w().trailingTapTarget:void 0};
q=function(l,S){return function(){return e()?S:l}};
var d={leadingSection:q("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:q("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:q("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:q("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};q={};q=_.HR((q.ytShortsSuggestedActionViewModelStaticHost=function(){return!n()},q.ytShortsSuggestedActionViewModelDynamicHost=n,q.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return n()&&X()},q.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return n()&&!X()},q));
_.p4(function(){if(n()){var l=0,S;if((S=w().animationParams)==null?0:S.shouldExpand){var eH,x;l=((x=(eH=w().animationParams)==null?void 0:eH.expansionDelaySecs)!=null?x:0)*1E3}var P4,C7=((P4=w().animationParams)==null?0:P4.shouldExpand)?setTimeout(function(){t(!0)},l):void 0,mu,Os;
l=((mu=w().animationParams)==null?0:mu.visibilityDelaySecs)?((Os=w().animationParams)==null?NaN:Os.visibilityDelaySecs)*1E3:0;var YJ=setTimeout(function(){G(!0)},l);
_.ZG(function(){C7&&clearTimeout(C7);clearTimeout(YJ)})}});
var V=function(l){_.bn(l,Object.assign({},{form:{element:y.value}}))},J=_.QS(function(){var l,S=(l=I())==null?void 0:l.onTapCommand;
S&&V(S)}),a=_.QS(function(){var l,S;
if(l=(S=U())==null?void 0:S.onTapCommand)return V(l),!1}),b=_.rm({"vertical-align":"bottom",
"border-radius":function(){var l;return n()?((l=w().defaultContent)==null?0:l.isCircleImage)?"50%":"4px":"0px"},
width:function(){var l,S,eH;return n()&&((l=w().defaultContent)==null?0:l.imageSize)?((eH=(S=w().defaultContent)==null?void 0:S.imageSize)!=null?eH:24)+"px":null},
height:function(){var l,S,eH;return n()&&((l=w().defaultContent)==null?0:l.imageSize)?((eH=(S=w().defaultContent)==null?void 0:S.imageSize)!=null?eH:24)+"px":null}}),g={};
return _.W("yt-shorts-suggested-action-view-model",{class:q,el:y},_.W("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.W("button",{class:_.HR(function(){return n()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var l;
return(l=w().useFullRoundedBorder)!=null&&l?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!U()&&n()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":n()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var l;
return(l=w().disableFixedHeight)!=null&&l?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(g.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(u==null?void 0:u())===1},g)),
"on:click":J},_.W(_.dm,{model:{color:4}}),_.W("div",{class:_.HR(function(){return n()?d.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.W(_.r,{cond:function(){var l;
return(l=I())==null?void 0:l.image},
then:function(l){return _.W(_.ln,{data:l,alt:"",className:function(){return n()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:b})}}),_.W(_.r,{cond:function(){var l,S;
return(l=I())==null?void 0:(S=l.icon)==null?void 0:S.iconType},
then:function(l){return _.W(_.U3,{icon:l,active:Q,className:function(){return n()?e()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.W("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.W(_.r,{cond:function(){var l;
return(l=I())==null?void 0:l.primaryText},
then:function(l){return _.W("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.W(_.Lr,{text:l}))}}),_.W(_.r,{cond:function(){var l;
return(l=I())==null?void 0:l.secondaryText},
then:function(l){return _.W("div",{class:d.secondaryText},_.W(_.Lr,{text:l}))}}))),_.W(_.r,{cond:U,
then:function(l){return _.W("div",{class:d.trailingSection,"aria-label":function(){var S;return(S=l().a11yLabel)!=null?S:""},
"on:click":a,role:"button",tabindex:0},_.W(_.dm,{model:{color:4}}),_.W(_.U3,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Le");var cxB=_.LL(function(q){var w=q.data;var u=q.overlayDensity;var y=_.Bm();q=_.QS(function(X){if(_.KVM(_.bq(X),y.value,["A".toString()]))return!1;(X=w().truncatedTextOnTapCommand)&&_.bn(X);return!1});
var e={},t={};return _.W("yt-shorts-video-title-view-model",{el:y,class:_.HR("ytShortsVideoTitleViewModelHost",(e.ytShortsVideoTitleViewModelHostClickable=function(){return!!w().truncatedTextOnTapCommand},e)),
"on:click":q},_.W("h2",{class:_.HR("ytShortsVideoTitleViewModelShortsVideoTitle",(t.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(u==null?void 0:u())===1},t))},_.W(_.Lr,{text:function(){return w().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Me");_.SAa=_.LL(function(q){var w=q.data;var u=q.overlayDensity;return _.W("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.W(_.OF,{data:function(){return w().metadataItems}},{badgeViewModel:function(y){return _.W("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.W(_.hi,{data:y.data}))},
playerDisclosureViewModel:function(y){return _.W("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.W(_.YAa,{data:y.data}))},
shortsSuggestedActionViewModel:function(y){return _.W("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.W(RB4,{data:y.data,overlayDensity:u}))},
reelChannelBarViewModel:function(y){return _.W("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.W(g6q,{data:y.data,overlayDensity:u}))},
reelMultiFormatLinkViewModel:function(y){return _.W("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.W(E6x,{data:y.data,overlayDensity:u}))},
shortsVideoTitleViewModel:function(y){return _.W("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.W(cxB,{data:y.data,overlayDensity:u}))},
reelSoundMetadataViewModel:function(y){return _.W("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.W(_.BRT,{data:y.data,overlayDensity:u}))}}))},"Ne");var hBT=_.LL(function(q){var w=_.lf(q,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),u=w.size,y=w.onTap,e=w.disabled,t=w.tooltipText;return _.W("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.W(Kr,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:u(),disabled:e(),tooltipText:t(),onTap:y}},
iconName:q.iconType}))},"Oe"),jKa=_.LL(function(q){function w(Q){Q.stopPropagation();
Q.code==="ArrowUp"?(Q.preventDefault(),MPs(G.value)):Q.code==="ArrowDown"?(Q.preventDefault(),KC6(G.value)):Q.code==="KeyM"?l0l():(Q.code==="KeyK"||Q.code==="Space")&&LCs(n())}
var u=_.lf(q,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});q=u.previousButtonDisabled;var y=u.nextButtonDisabled,e=u.data,t=u.playabilityStatus,X=u.previewThumbnail,G=_.Bm(),n=_.aV(_.sBc),N;_.DR(function(){(N=_.mN(G.value))&&N.addEventListener("keydown",w)});
_.ZG(function(){var Q;(Q=N)==null||Q.removeEventListener("keydown",w)});
u=function(){var Q,I,U;return(Q=e())==null?void 0:(I=Q.reelPlayerOverlayRenderer)==null?void 0:(U=I.likeButton)==null?void 0:U.likeButtonRenderer};
return _.W("ytd-shorts-miniplayer-overlay",{el:G,class:"ytdShortsMiniplayerOverlayHost"},_.W("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.rm({"background-image":function(){var Q=X();return Q?'url("'+_.uv(Q.thumbnails)+'")':""}})}),_.W("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.W("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.W(hBT,{iconType:function(){var Q=n();
return Q===2||Q===-1||Q===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){LCs(n())},
tooltipText:function(){var Q=n();return Q===1||Q===3?_.ID("PLAYER_LABEL_PAUSE"):_.ID("PLAYER_LABEL_PLAY")}}),_.W(_.hmu,null)),_.W("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.W(hBT,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:q,onTap:function(){MPs(G.value)},
tooltipText:_.ID("PREVIOUS_VIDEO_LABEL")}),_.W(hBT,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:y,onTap:function(){KC6(G.value)},
tooltipText:_.ID("NEXT_VIDEO_LABEL")}),_.T("web_shorts_pip_like_button")?_.W("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.W(dgX,{buttonTooltipPosition:"left",data:u,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.W("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.W(_.r,{cond:function(){var Q,I;return _.C((Q=e())==null?void 0:(I=Q.reelPlayerOverlayRenderer)==null?void 0:I.metapanel,
_.b9T)},
then:function(Q){return _.W("div",{class:_.HR("ytdShortsMiniplayerOverlayInteractive")},_.W(_.SAa,{data:Q}))}})),_.W("div",{class:_.HR("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var Q;return!((Q=e())==null||!Q.adsOverlay)||t()&&!kYM(t())}},_.W("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.W(_.bha,null)))),_.W(_.r,{cond:function(){var Q=e(),I,U;
Q=_.C(Q==null?void 0:(I=Q.adsOverlay)==null?void 0:(U=I.fulfillmentContent)==null?void 0:U.fulfilledLayout,IzG);return _.C(Q==null?void 0:Q.renderingContent,CUT)},
then:function(Q){return _.W("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.W(VJT,{data:Q}))}}))},"Pe");var B0M=_.LL(function(){var q=_.P(_.r4(new _.FO(NaN,NaN),void 0,"HSMFk")),w=q.next().value,u=q.next().value;q=_.P(_.r4(!1,void 0,"uaAxwf"));var y=q.next().value,e=q.next().value,t=_.P(_.r4(!1,void 0,"nVSwef"));q=t.next().value;var X=t.next().value,G=_.tG().resolve(_.$X).miniplayerPropSignalMap[0],n=G.data,N=G.shortsData,Q=G.nextButtonDisabled,I=G.shortsPreviewThumbnail,U=G.previousButtonDisabled,d=G.externalPlaylistData;t=G.toastData;var V=G.playabilityStatus,J=G.isDisabled,a=G.playerVe,b=G.closeVe;
G=_.aV(_.Wy);_.Kn("yt-pip-window-resized",function(eH){u(eH)});
_.Kn("yt-activate-pip-miniplayer",function(){return _.F(function(eH){X(!0);_.HI(eH)})});
var g=function(){var eH;return!((eH=d())==null||!eH.contents)&&y()},l=function(){var eH=w(),x=!!n(),P4=g();
eH=eH.clone();x&&(eH.height-=76);P4&&(eH.height-=285);return eH},S=function(){e(!y())};
_.DG(function(){var eH=a(),x=_.pN(11),P4=_.ZB(11);x&&P4&&eH&&(_.EC(x,P4,eH),P4=b())&&(_.RD(x,eH,[P4]),_.SB(x,[P4]))});
return _.W("ytd-pip-container",{class:"ytdPipContainerHost"},_.W(_.r,{cond:q,then:function(){return _.W(_.qAh,{isDisabled:J,playabilityStatus:V,size:l})}}),_.W(_.r,{cond:n,
then:function(){return _.W(_.Bxq,{data:n,expanded:y,onExpandClick:S,playlistData:d})}}),_.W(_.r,{cond:g,
then:function(){return _.W("div",{class:"ytdPipContainerPlaylistPanel"},_.W(_.Tzx,{data:d,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.W(_.r,{cond:G,
then:function(){return _.W(jKa,{data:N,nextButtonDisabled:Q,previousButtonDisabled:U,playabilityStatus:V,previewThumbnail:I})}}),_.W("div",{class:"ytdPipContainerToast"},_.W(_.wVV,{toastData:t})))},"Qe");var Uy=function(q,w){var u=this;this.pipController=q;this.JSC$16359_clientRoot=w;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=emu();this.watchPipEnabled=_.T("web_watch_pip");this.shortsPipEnabled=_.T("web_shorts_pip");this.JSC$16359_watchWhileEnabled=_.T("kevlar_watch_while_v2");this.miniplayerServiceActionMap={"yt-downloaded-video-deleted":this.onDownloadedVideoDeleted.bind(this),"yt-show-miniplayer-command":this.onShowMiniplayerCommand.bind(this)};
this.watchPipMode=this.shortsPipMode=this.watchWhileMode=this.miniplayerToPipMode=this.userDeactivatedWatchWhile=this.isReadyToResume=this.hasPlaylistData=this.isSingleOptionSurveyActive=!1;_.se(_.Mt(),_.Gof,function(y){u.isSingleOptionSurveyActive=y});
this.JSC$16359_onPlayerPlayVideo=this.JSC$16359_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);_.Ln(_.lD.getInstance(),this.miniplayerServiceActionMap,this.JSC$16359_clientRoot);q.pictureInPictureSupported()&&_.pn("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},ylc,yhx,x6A,eXV,k_x,klG;
Uy.prototype.handleMediaSessionPipActivation=function(){var q=this,w;return _.F(function(u){_.Hh().mediaSessionPipActivation=!0;w=_.tG().resolve(_.KT);return w.isOnWatch()&&q.watchPipEnabled?(_.Hh().watchPipActivation=!0,_.laT(q,w.data),u.jumpTo(0)):w.isOnShorts()&&q.shortsPipEnabled?(_.Hh().shortsPipActivation=!0,_.LT4(q),u.jumpTo(0)):q.isMiniplayerActive()&&q.watchPipEnabled&&!q.watchWhileMode?_.H(u,MqB(q),0):u.jumpTo(0)})};
var MqB=function(q){var w,u,y,e;return _.F(function(t){if(t.nextAddress==1)return w=!q.miniplayerToPipMode,u=q.playerElement,y=q.miniplayerData,e=q.watchResponse,_.H(t,q.deactivate(),2);if(t.nextAddress!=3)return w?(_.Hh().mediaSessionPipActivation=!0,_.Hh().watchPipActivation=!0):_.Hh().miniplayerButtonActivation=!0,_.H(t,q.activate(u,y,e),3);q.miniplayerToPipMode=w;_.HI(t)})};
Uy.prototype.onDownloadedVideoDeleted=function(q){var w,u=_.C((w=this.miniplayerData)==null?void 0:w.watchEndpoint,_.LN),y,e;u&&((y=this.watchResponse)==null?void 0:(e=y.playerResponse)==null?void 0:e.offlineState)!==void 0&&(w=u.videoId)&&q&&w===q&&this.close()};
Uy.prototype.onShowMiniplayerCommand=function(q){var w=this,u,y,e,t,X,G,n,N,Q,I,U,d,V;return _.F(function(J){switch(J.nextAddress){case 1:return u=_.C(q,mFx),e=(y=u)==null?void 0:y.miniplayerCommand,t=_.C(e,_.LN),e&&t&&!w.active?_.H(J,_.T5.getInstance(),2):J.return();case 2:return X=J.yieldResult,_.H(J,(G=X)==null?void 0:G.get("yt-miniplayer-shown-video-id"),3);case 3:n=J.yieldResult;N=t.videoId;if(!N||n===N)return J.return();Q=_.tG().resolve(_.KT);if(Q.isOnWatch())return _.Y8(Error("Cj")),J.return();
I={channelItem:{externalId:btoa(N)}};w.readyToResumeVe=_.oV(121253,void 0,void 0,I);_.Hh().showMiniplayerCommandActivation=!0;return _.H(J,_.tdF(w,e,!0),4);case 4:return w.active?(_.T$(w,{readyToResumeVe:w.readyToResumeVe,continueWatching:!0,premiumBranding:!((U=u)==null||!U.showPremiumBranding)}),_.T("ytd_miniplayer_to_wiz")&&_.T$(w,{isReadyToResume:!0}),w.isReadyToResume=!0):_.T$(w,{continueWatching:!0,premiumBranding:!((d=u)==null||!d.showPremiumBranding)}),_.H(J,(V=X)==null?void 0:V.set("yt-miniplayer-shown-video-id",
t.videoId),5);case 5:w.readyToResumeVe=void 0,_.HI(J)}})};
Uy.prototype.init=function(q){this.miniplayerEl?_.Y8(new _.fv("MiniplayerService already initialized.")):this.miniplayerEl=q};
Uy.prototype.isInitialized=function(){var q=!!this.miniplayerEl;q||_.Y8(new _.fv("MiniplayerService used before initialized."));return q};
_.laT=function(q,w){if(q.isInitialized()){var u=_.PSJ(w.response,w.playerResponse),y=_.tG().resolve(_.KT).getPlayerFromWatch();_.Hh().currentEndpoint=u.watchEndpoint||null;q.activate(y,u,w)}};
_.LT4=function(q){if(q.isInitialized()){var w=_.tG().resolve(_.KT).getPlayerFromShorts();q.activate(w)}};
ylc=function(q,w){var u;(u=!q.isInitialized())||(u=_.tG().resolve(_.KT).isOnWatch()&&q.watchPipMode,u=!(q.isMiniplayerActive()&&(_.Hh().userActivation||_.Hh().lockupActivation||u)));if(u)return!1;KT6(q,w)?_.In(q):klG(q,w);return q.watchPipMode?!_.tG().resolve(_.KT).isOnWatch():!0};
Uy.prototype.isMiniplayerActive=function(){return this.active};
var KT6=function(q,w){var u;w=(u=_.C(w,_.LN))==null?void 0:u.videoId;var y,e;q=(e=_.C((y=q.miniplayerData)==null?void 0:y.watchEndpoint,_.LN))==null?void 0:e.videoId;return w!=null&&w===q};
Uy.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.t7(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.Pw(this.miniplayerEl,"yt-navigate-home-action"))};
_.tdF=function(q,w,u,y){u=u===void 0?!1:u;var e,t,X;return _.F(function(G){switch(G.nextAddress){case 1:if(q.active){G.jumpTo(2);break}e=_.tG().resolve(_.KT);if(X=(t=q.playerElement)!=null?t:e.getPlayerFromWatch()){G.jumpTo(3);break}return _.H(G,_.tG().resolve(_.kH),4);case 4:X=e.getPlayerFromWatch();case 3:if(!X){_.Y8(Error("Ej"));G.jumpTo(2);break}return _.H(G,q.activate(X,y),2);case 2:return q.active?_.H(G,klG(q,w,u),0):G.return()}})};
Uy.prototype.activate=function(q,w,u){var y=this,e,t,X,G,n,N,Q,I,U;return _.F(function(d){switch(d.nextAddress){case 1:if(!y.isInitialized())return d.return();if(!q)return _.Y8(Error("Ej")),d.return();if(_.Zoa()||y.isMiniplayerActive())var V=!0;else V=_.Hh().watchPipActivation||_.Hh().watchWhileActivation,_.tG().resolve(_.KT).isOnWatch()&&!V?(_.Y8(new _.fv("miniplayer activated on watch page")),V=!0):V=_.Hh().watchWhileActivation?y.userDeactivatedWatchWhile||!!document.pictureInPictureElement||YVu():
!1;if(V)return DcZ(),d.return();e=_.Hh().mediaSessionPipActivation;t=_.Hh().shortsPipActivation;X=_.Hh().watchPipActivation;n=(G=_.Hh().watchWhileActivation)||X;N=X||t;if(!y.pictureInPictureEnabled()||!N){d.jumpTo(2);break}return _.H(d,Bca(y,e),3);case 3:if(!d.yieldResult)return _.Y8(Error("Dj")),DcZ(),d.return();case 2:return y.setActive(!0),y.watchResponse=u,y.playerElement=q,y.updateMiniplayerData(w),_.H(d,x6A(y,q),4);case 4:if(!y.active)return _.Y8(new _.fv("miniplayer deactivated during activation")),
y.removePlayerListeners(),d.return();V=_.tG().resolve(_.z5);V.addEventListener("yt-navigate",_.Fj(y,y.onPlaylistNavigate));V.addEventListener("yt-playlist-data-updated",_.Fj(y,y.JSC$16359_onPlaylistDataUpdated));y.JSC$16359_onPlaylistDataUpdated();DcZ();y.JSC$16359_watchWhileEnabled&&_.qgA(y,G);y.pictureInPictureEnabled()&&y.shortsPipEnabled&&(y.shortsPipMode=t,_.Mt().dispatch(URk(y.shortsPipMode)));y.pictureInPictureEnabled()&&y.watchPipEnabled&&(y.watchPipMode=X,_.EOl(y.handleMediaSessionPipActivation));
y.player&&(Q=y.player.getPlayerState(),I=Q===1,_.Mt().dispatch(Ao$(Q)),_.X4(y.miniplayerEl,"yt-miniplayer-play-state-changed",[I]),_.Hh().isVideoPlaying=I);_.X4(y.miniplayerEl,"yt-miniplayer-endpoint-changed");w36(y);_.uF6(y);return y.shortsPipMode||y.watchPipMode?_.H(d,_.F4(y.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.T("ytd_miniplayer_to_wiz")?_.H(d,_.F4(y.miniplayerEl,"yt-activate-miniplayer",[n]),6):_.H(d,_.F4(y.miniplayerEl,"yt-activate-miniplayer-action",[q,n]),6);case 6:if(y.watchResponse&&
!_.T("miniplayer_copy_screen_on_activation_killswitch")){V=y.getScreenLayer();var J=_.pN(0),a=Wol(0);J&&a&&(_.vf(J,a,V),V===0&&nro(void 0,0))}yhx(y);eXV(y,!0);(U=y.getPlayerElement())==null||U.focusOnPlayer();_.HI(d)}})};
Uy.prototype.updateMiniplayerData=function(q){this.miniplayerData=q;_.T$(this,{data:q})};
_.uF6=function(q){var w,u,y=((w=q.miniplayerData)==null?void 0:(u=w.miniplayerRenderer)==null?void 0:u.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";w=q.watchWhileMode||q.watchPipMode?y&&!_.tG().resolve(_.KT).isOnWatch():y;_.T$(q,{isDisabled:w});var e,t;u=_.C((e=q.miniplayerData)==null?void 0:(t=e.miniplayerRenderer)==null?void 0:t.minimizedEndpoint,_.Ou);w&&u&&_.tG().resolve(_.ru).openSheet({openPopupActionCommand:{openPopupAction:u}},q.miniplayerEl)};
yhx=function(q){if(q.watchResponse&&!k_x(q)){var w,u=(w=q.watchResponse.playerResponse)==null?void 0:w.trackingParams;u&&(_.T$(q,{expandVe:_.oV(35989),closeVe:_.oV(34699),readyToResumeCloseVe:_.oV(131070),repositionVe:_.oV(226204),resizeVe:_.oV(226205)}),_.T$(q,{playerVe:_.Tj(u)}))}};
x6A=function(q,w){return _.F(function(u){if(u.nextAddress==1)return w.preparePlayer(),_.H(u,w.getPlayerPromise(),2);q.player=u.yieldResult;q.player&&(q.player.addEventListener("onPlayVideo",q.JSC$16359_onPlayerPlayVideo),q.player.addEventListener("onCloseMiniplayer",q.onPlayerCloseMiniplayer),q.player.addEventListener("onExpandMiniplayer",q.onPlayerExpandMiniplayer),q.player.addEventListener("onStateChange",q.onPlayerStateChange));_.HI(u)})};
_.k=Uy.prototype;_.k.JSC$16359_onPlayerPlayVideo=function(q){var w=q.sessionData&&"autonav"in q.sessionData,u;q.sessionData&&q.sessionData.itct&&(u=q.sessionData.itct);var y=q.watchEndpoint;w=y&&w?_.mnl(y,u):_.uA(q.videoId,q.listId||void 0,u);q.sessionData&&_.xG(_.C(w.commandMetadata,_.wk).url,q.sessionData);klG(this,w)};
_.k.onPlayerExpandMiniplayer=function(){_.In(this)};
_.k.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.k.onPlayerStateChange=function(){if(this.player){var q=this.player.getPlayerState(),w=q===1;_.Mt().dispatch(Ao$(q));_.Mt().dispatch(_.zNG(q));_.X4(this.miniplayerEl,"yt-miniplayer-play-state-changed",[w]);_.Hh().isVideoPlaying=w;if(q===0){w=!_.lk.getInstance().isAutoplaySetExplicitly();var u,y,e,t,X,G,n=(u=this.watchResponse.response)==null?void 0:(y=u.contents)==null?void 0:(e=y.twoColumnWatchNextResults)==null?void 0:(t=e.autoplay)==null?void 0:(X=t.autoplay)==null?void 0:(G=X.autoplayExplicitChoiceDialogRenderer)==
null?void 0:G.confirmDialogRenderer;w&&n&&this.player.setAutonavState(1)}q===0&&this.watchWhileMode&&this.deactivate()}};
_.k.onPlaylistNavigate=function(q,w){var u=this,y,e,t,X,G,n,N;return _.F(function(Q){if(Q.nextAddress==1){if(!_.C(w.endpoint,_.LN))return Q.return();_.Hh().currentEndpoint=w.endpoint;_.X4(u.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.tG().resolve(_.KT).isOnWatch()&&(u.watchWhileMode||u.watchPipMode))return Q.return();q.stopPropagation();(t=(e=_.C((y=w.endpoint)==null?void 0:y.commandMetadata,_.wk))==null?void 0:e.url)&&w.tempData&&!_.db.isEmpty(w.tempData)&&_.xG(t,w.tempData);X={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};G=new DEP(function(){return u.getPlayerElement()},X,{layer:u.getScreenLayer()});
n=function(I){G.processChunk({endpoint:w.endpoint,data:I})};
taK(u);u.miniplayerFetchRequest=PEh(u,w.endpoint,n);_.tD(Q,2);return _.H(Q,u.miniplayerFetchRequest,4)}if(Q.nextAddress!=2)return N=Q.yieldResult,X3T(u,N),_.jv(Q,0);_.nm(Q);_.HI(Q)})};
_.k.JSC$16359_onPlaylistDataUpdated=function(){var q=_.tG().resolve(_.z5).getPlaylistData();this.hasPlaylistData=!!q;_.T$(this,{externalPlaylistData:q||{}})};
_.k.close=function(q){if(this.isInitialized())if(q){if(!((this.watchWhileMode||this.watchPipMode)&&_.tG().resolve(_.KT).isOnWatch()||this.shortsPipMode)){var w;(w=this.getPlayerElement())==null||w.stop()}this.deactivate()}else _.$u().closeMiniplayer(this.miniplayerEl)};
_.k.deactivate=function(q){var w=this,u,y,e,t;return _.F(function(X){if(X.nextAddress==1){if(!w.isInitialized()||!w.active)return X.return();w.setActive(!1);taK(w);(u=!!q&&KT6(w,q))&&w.isSingleOptionSurveyActive&&_.Pw(w.miniplayerEl,"yt-show-watch-page-survey",[w.isSingleOptionSurveyActive]);return _.H(X,FaB(w),2)}if(X.nextAddress!=3){eXV(w,!1);w.isReadyToResume=!1;w.watchResponse=void 0;w.updateMiniplayerData(void 0);w.shortsPipMode&&(w.shortsPipMode=!1,_.Mt().dispatch(URk(w.shortsPipMode)),z6X(w.pipController),
(y=w.player)==null||y.setInternalSize(NaN,NaN));w.watchPipMode&&(w.watchPipMode=!1,z6X(w.pipController));(e=w.watchWhileMode)&&_.qgA(w,!1);w.removePlayerListeners();var G=_.tG().resolve(_.z5);G.removeEventListener("yt-navigate",_.Fj(w,w.onPlaylistNavigate));G.removeEventListener("yt-playlist-data-updated",_.Fj(w,w.JSC$16359_onPlaylistDataUpdated));_.Hh().currentEndpoint=null;_.X4(w.miniplayerEl,"yt-miniplayer-endpoint-changed");w.playerElement=null;DcZ();return w.shortsPipMode||w.watchPipMode?X.jumpTo(3):
_.H(X,_.F4(w.miniplayerEl,_.T("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[u,e]),3)}(t=w.player)==null||t.setInternalSize(NaN,NaN);w.player=null;_.HI(X)})};
var FaB=function(q){var w;return _.F(function(u){w=_.tG().resolve(_.KT);return q.shortsPipMode?_.H(u,w.movePlayerToShorts(q.playerElement),0):_.H(u,w.movePlayerToWatch(q.playerElement),0)})};
Uy.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16359_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
Uy.prototype.setActive=function(q){this.active=q;this.isSingleOptionSurveyActive?_.Pw(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.Pw(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Mt().dispatch(_.tr({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.qgA=function(q,w){q.watchWhileMode=w;_.T$(q,{watchWhile:w})};
eXV=function(q,w){if(!k_x(q))if(q.shortsPipMode||q.watchPipMode){var u;(u=q.player)==null||u.setDocumentPictureInPicture(w)}else{var y;(y=q.player)==null||y.setMinimized(w)}};
k_x=function(q){return q.watchWhileMode&&_.T("kevlar_watch_while_counterfactual")};
_.In=function(q){var w;return _.F(function(u){switch(u.nextAddress){case 1:if(!q.isInitialized())return u.return();_.tD(u,2);return _.H(u,q.miniplayerFetchRequest,4);case 4:_.jv(u,3);break;case 2:_.nm(u);case 3:q.watchResponse&&q.miniplayerData&&q.miniplayerData.watchEndpoint?(w={url:q.watchResponse.url,endpoint:q.miniplayerData.watchEndpoint,data:q.watchResponse,miniplayer:!0},_.t7(q.miniplayerEl,"yt-navigate-cache",w)):q.miniplayerData&&q.miniplayerData.watchEndpoint&&_.t7(q.miniplayerEl,"yt-navigate",
{endpoint:q.miniplayerData.watchEndpoint}),_.HI(u)}})};
klG=function(q,w,u){var y,e,t,X;return _.F(function(G){if(G.nextAddress==1){if(KT6(q,w))return G.return();_.Hh().currentEndpoint=w;_.X4(q.miniplayerEl,"yt-miniplayer-endpoint-changed");_.X4(q.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.Hh().isVideoPlaying=!1;y={clientParams:{miniplayer:!0,autoSaveToQueue:!u}};e=new DEP(function(){return q.getPlayerElement()},y,{layer:q.getScreenLayer(),
parentLayer:0},void 0,q.readyToResumeVe);t=function(n){var N,Q,I=Object.assign({},(N=n.playerResponse)==null?void 0:(Q=N.playerConfig)==null?void 0:Q.playbackStartConfig,{startPaused:!0}),U;u&&((U=n.playerResponse)==null?0:U.playerConfig)&&(n.playerResponse.playerConfig.playbackStartConfig=I);e.processChunk({endpoint:w,data:n})};
taK(q);q.miniplayerFetchRequest=PEh(q,w,t);_.tD(G,2);return _.H(G,q.miniplayerFetchRequest,4)}if(G.nextAddress!=2)return X=G.yieldResult,X3T(q,X),_.jv(G,0);_.nm(G);_.HI(G)})};
Uy.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var taK=function(q){q.miniplayerFetchRequest&&(q.miniplayerFetchRequest.cancel&&q.miniplayerFetchRequest.cancel("Active request obsolete"),q.miniplayerFetchRequest=null)},PEh=function(q,w,u){var y=_.wd.instance,e,t=(e=_.C(w.commandMetadata,_.wk))==null?void 0:e.url,X;
e=!t||_.T("disable_miniplayer_tempdata")?{}:(X=qcH(t))!=null?X:{};return YX(y,w,e,window.location.href,"watch",function(G,n){u(n)},function(G){return G!==q.miniplayerFetchRequest})},X3T=function(q,w){var u;
_.F(function(y){if(!w)return y.return();q.watchResponse=w;yhx(q);w36(q);u=_.PSJ(w.response,w.playerResponse);if(q.isMiniplayerActive()){w.response&&(q.playerElement.watchNextData=w.response);var e=_.db.getValueByKeys.apply(_.db,[w].concat(_.Cm(cok)));_.db.getValueByKeys.apply(_.db,[w].concat(_.Cm(LJ3)))&&e&&_.tG().resolve(_.z5).setAutoplayRenderer(e);if(e)if(_.T("kevlar_is_pupi_enabled")){var t,X,G,n,N,Q=((t=w.response)==null?0:(X=t.playerOverlays)==null?0:(G=X.playerOverlayRenderer)==null?0:(n=G.autonavToggle)==
null?0:(N=n.autoplaySwitchButtonRenderer)==null?0:N.enabled)?2:1;_.lk.getInstance().setState(Q,!1,!1)}else t=Wvj()?2:1,(Q=q.player)==null||Q.setAutonavState(t);q.updateMiniplayerData(u);_.uF6(q)}_.HI(y)})},w36=function(q){var w,u,y=(w=q.watchResponse)==null?void 0:(u=w.playerResponse)==null?void 0:u.playabilityStatus,e;
w=y==null?void 0:(e=y.miniplayer)==null?void 0:e.miniplayerRenderer;(w==null?void 0:w.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&w.minimizedEndpoint&&_.GM(q.miniplayerEl,[w.minimizedEndpoint]);_.T$(q,{miniplayerRenderer:w,playabilityStatus:y})};
Uy.prototype.openToast=function(q,w){_.T$(this,{toastData:{data:q,label:w}})};
_.T$=function(q,w){var u=q.miniplayerEl,y;for(y in w)u[y]=w[y];(0,q.miniplayerPropSignalMap[1])(w)};
Uy.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var q;return this.playerElement?this.playerElement:(q=_.A(this.miniplayerEl).querySelector("#player-container"))==null?void 0:q.firstElementChild};
Uy.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var Bca=function(q,w){w=w===void 0?!1:w;var u,y,e,t,X,G,n;return _.F(function(N){if(N.nextAddress==1){u=navigator.userActivation.isActive||w;if(!u||!q.pictureInPictureSupported())return N.return(!1);y=G_c(q);e=y.width;t=y.height;return _.H(N,q.pipController.openWindow({width:e,height:t}),2)}X=N.yieldResult;G=q.pipController.getWindow();if(!G||!X)return N.return(!1);G.document.body.style.overflow="hidden";n=xN7(G);a3X(q.pipController,function(){nK6(q);n()});
return N.return(!0)})},G_c=function(q){var w=_.Hh().shortsPipActivation,u,y;
q=w?.5625:(y=(u=q.player)==null?void 0:u.getVideoAspectRatio())!=null?y:16/9;u=Math.min(window.innerWidth,window.innerHeight)/2;w=w?0:76;return q>1?new _.FO(u,w+u/q):new _.FO(u*q,w+u)},nK6=function(q){var w;
_.F(function(u){w=_.tG().resolve(_.KT);return w.isOnWatch()&&q.watchPipMode||w.isOnShorts()&&q.shortsPipMode?_.H(u,q.deactivate(),0):q.miniplayerToPipMode?_.H(u,MqB(q),0):q.watchPipMode?_.H(u,_.In(q),0):u.jumpTo(0)})};
Uy.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.x$.Object.defineProperties(Uy.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Uy[Ld]=[Dvc,qv6];var HAh="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(" "),
WaA="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(" "),smj="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
NVa="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var QmB=null;var II4={},iAA=(II4.initialized={priority:10,callback:function(q){var w=_.tG();w.addProvider({provide:cDX,useClass:JzK});w.addProvider({provide:_.AzT,useFactory:function(){return new Sq3}});
w.addProvider({provide:W5,useValue:_.Et("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});w.addProvider({provide:EyT,useValue:5184E6});w.addProvider({provide:yyP,useValue:_.Vk()});w.addProvider({provide:NRZ,useClass:HS6});w.addProvider({provide:mY,useClass:mY});w.addProvider({provide:_.kH,useFactory:function(){return C73.promise}});
w.addProvider({provide:_.OUa,useFactory:function(){return _.dRF.promise}});
w.addProvider({provide:oIc,useValue:function(){var G;return((G=_.xo())==null?void 0:G.getPlayer())||null}});
var u={};w.addProvider((u.provide=_.gq,u.useFactory=function(G,n){return function(){return Owj(G,n)}},u[Ld]=[W5,
EyT],u));u={};w.addProvider((u.provide=_.wu,u.useClass=JyT,u[Ld]=[W5,EyT],u));u={};w.addProvider((u.provide=_.Wqc,u.useClass=ZIk,u[Ld]=[_.wu],u));w.addProvider({provide:eb,useFactory:_.Mt});w.addProvider({provide:FN,useFactory:_.Mt});w.addProvider({provide:iuG,useFactory:_.Mt});w.addProvider({provide:LlT,useFactory:_.Mt});w.addProvider({provide:_.dd,useFactory:_.Mt});w.addProvider({provide:h9,useValue:_.Nt});w.addProvider({provide:O7a,useClass:I_s});w.addProvider({provide:TnT,useClass:UoT});w.addProvider({provide:V7,
useClass:V7});w.addProvider({provide:rq,useClass:rq});w.addProvider({provide:C3,useClass:C3});w.addProvider({provide:O2,useClass:O2});w.addProvider({provide:Dw,useClass:Dw});w.addProvider({provide:u3,useClass:u3});w.addProvider({provide:LP,useClass:LP});w.addProvider({provide:IeX,useValue:ccV});w.addProvider({provide:_.WY,useFactory:_.Qz});w.addProvider({provide:Rd,useFactory:_.UC});u={};w.addProvider((u.provide=jjc,u.useFactory=function(G){return function(n){var N=N===void 0?{}:N;var Q,I,U=(I=_.C((Q=
n.endpoint)==null?void 0:Q.commandMetadata,_.wk))==null?void 0:I.rootVe;if(U){var d,V;if(Q=n.previousCsn||((V=_.C((d=n.endpoint)==null?void 0:d.commandMetadata,X8T))==null?void 0:V.parentCsn)){var J=J===void 0?{}:J;if(Q!==_.pN(J.layer)||U!==Wol(J.layer))iMc(Q,J.cttAuthInfo,J.layer||0),nro(Q,J.layer||0),d=J.layer||0,_.g_(HM7(d===void 0?0:d),U);N.parentCsn=Q}n.endpoint&&Q?rVX(G,n.endpoint,N):_.e$(G,U,void 0,N);var a;((a=n.response)==null?0:a.trackingParams)&&G.graftServerVe(n.response.trackingParams);
var b;((b=n.playerResponse)==null?0:b.trackingParams)&&G.graftServerVe(n.playerResponse.trackingParams);var g;((g=n.reelWatchSequenceResponse)==null?0:g.trackingParams)&&G.graftServerVe(n.reelWatchSequenceResponse.trackingParams)}}},u[Ld]=[_.WY],u));
u={};w.addProvider((u.provide=UvT,u.useClass=rfP,u[Ld]=[h9,_.dd],u));u={};w.addProvider((u.provide=B$,u.useClass=B$,u[Ld]=[_.kH,_.dd],u));u={};w.addProvider((u.provide=l$,u.useClass=l$,u[Ld]=[FN,_.PG],u));w.addProvider({provide:_.VeX,useClass:pLF});u={};w.addProvider((u.provide=_.ib,u.useClass=Afj,u[Ld]=[_.VeX],u));w.addProvider({provide:_.ru,useClass:we});w.addProvider({provide:BnT,useClass:WuV});w.addProvider({provide:_.Ui,useClass:xW});u={};w.addProvider((u.provide=_.bH,u.useClass=Zu$,u[Ld]=[_.bH],
u));w.addProvider({provide:_.lX,useClass:ss6});w.addProvider({provide:FA,useClass:FA});w.addProvider({provide:NJ,useClass:NJ});w.addProvider({provide:dh,useClass:qj});u={};w.addProvider((u.provide=VD,u.useClass=VD,u[Ld]=[_.ru,dh],u));_.T("web_enable_feedback_endpoint_resolver")&&(u={},w.addProvider((u.provide=kA,u.useClass=kA,u[Ld]=[eb,yD],u)),w.addProvider({provide:yD,useClass:Zba}));_.T("web_enable_feedback_endpoint_resolver_batch_2")&&(u={},w.addProvider((u.provide=P5,u.useClass=P5,u[Ld]=[eb],
u)),u={},w.addProvider((u.provide=t8,u.useClass=t8,u[Ld]=[yD],u)));u={};w.addProvider((u.provide=Oo,u.useClass=Oo,u[Ld]=[_.Ui,dh],u));u={};w.addProvider((u.provide=rh,u.useClass=rh,u[Ld]=[_.Ui],u));u={};w.addProvider((u.provide=od,u.useClass=od,u[Ld]=[_.oi,_.ib],u));u={};w.addProvider((u.provide=Ct,u.useClass=Ct,u[Ld]=[_.oi,_.WY],u));w.addProvider({provide:Lt,useClass:Lt});u={};w.addProvider((u.provide=Eo,u.useClass=Eo,u[Ld]=[eb],u));w.addProvider({provide:X2,useClass:X2});u={};w.addProvider((u.provide=
GU,u.useClass=GU,u[Ld]=[eb],u));u={};w.addProvider((u.provide=nP,u.useClass=nP,u[Ld]=[_.oi,eb],u));u={};w.addProvider((u.provide=HO,u.useClass=HO,u[Ld]=[eb],u));u={};w.addProvider((u.provide=WO,u.useClass=WO,u[Ld]=[eb],u));u={};w.addProvider((u.provide=Uo,u.useClass=Uo,u[Ld]=[_.ib],u));u={};w.addProvider((u.provide=qn,u.useClass=qn,u[Ld]=[_.WY],u));u={};w.addProvider((u.provide=tZ,u.useClass=tZ,u[Ld]=[jb],u));u={};w.addProvider((u.provide=PO,u.useClass=PO,u[Ld]=[jb],u));w.addProvider({provide:yC,
useClass:yC});w.addProvider({provide:ez,useClass:ez});w.addProvider({provide:xA,useClass:xA});u={};w.addProvider((u.provide=ft,u.useClass=ft,u[Ld]=[_.ib,_.PG],u));w.addProvider({provide:H5,useClass:H5});u={};w.addProvider((u.provide=Tg,u.useClass=Tg,u[Ld]=[_.oi,_.ib],u));w.addProvider({provide:QD,useClass:QD});u={};w.addProvider((u.provide=YA,u.useClass=YA,u[Ld]=[eb,_.oi,_.bH],u));u={};w.addProvider((u.provide=$A,u.useClass=$A,u[Ld]=[_.oi,_.PG],u));w.addProvider({provide:Roj,useValue:gh4});w.addProvider({provide:lyT,
useValue:q0y});w.addProvider({provide:v5,useClass:v5});u={};w.addProvider((u.provide=pt,u.useClass=pt,u[Ld]=[eb],u));u={};w.addProvider((u.provide=gh,u.useClass=gh,u[Ld]=[_.lX,_.PG],u));u={};w.addProvider((u.provide=XA,u.useClass=XA,u[Ld]=[_.PG],u));w.addProvider({provide:uH,useFactory:function(){return new uH(_.Mt())}});
w.addProvider({provide:I4u,useFactory:_.YM.getInstance});u={};w.addProvider((u.provide=so,u.useClass=so,u[Ld]=[W5,I4u,_.PG],u));w.addProvider({provide:Gg,useClass:Gg});w.addProvider({provide:Kc,useClass:Kc});w.addProvider({provide:xx,useClass:xx});w.addProvider({provide:_.Bx,useClass:_.Bx});w.addProvider({provide:QC,useClass:QC});u={};w.addProvider((u.provide=ad,u.useClass=ad,u[Ld]=[FN],u));u={};w.addProvider((u.provide=Dv,u.useClass=Dv,u[Ld]=[_.PG],u));_.T("web_enable_prefetching_videos_on_home")&&
(w.addProvider({provide:jY,useClass:jY}),w.addProvider({provide:nl,useClass:nl}));u={};w.addProvider((u.provide=Nn,u.useClass=Nn,u[Ld]=[_.PG],u));w.addProvider({provide:qJ,useClass:qJ});u={};w.addProvider((u.provide=MJ,u.useClass=MJ,u[Ld]=[_.oi,_.PG],u));u={};w.addProvider((u.provide=wh,u.useClass=wh,u[Ld]=[_.PG],u));w.addProvider({provide:HD,useClass:HD});w.addProvider({provide:J8,useClass:J8});u={};w.addProvider((u.provide=A8,u.useClass=A8,u[Ld]=[FN,_.PG],u));u={};w.addProvider((u.provide=rv,u.useClass=
rv,u[Ld]=[FN,_.PG,_.oi],u));u={};w.addProvider((u.provide=Uw,u.useClass=Uw,u[Ld]=[_.PG],u));u={};w.addProvider((u.provide=iw,u.useClass=iw,u[Ld]=[_.PG,_.oi],u));u={};w.addProvider((u.provide=Zv,u.useClass=Zv,u[Ld]=[_.kH],u));u={};w.addProvider((u.provide=zg,u.useClass=zg,u[Ld]=[_.kH],u));w.addProvider({provide:h8,useClass:h8});w.addProvider({provide:lH,useClass:lH});w.addProvider({provide:F2,useClass:F2});w.addProvider({provide:Kt,useClass:Kt});w.addProvider({provide:Sb,useClass:Sb});w.addProvider({provide:Id,
useClass:Id});w.addProvider({provide:c5,useClass:c5});_.T("kevlar_enable_mss_lazy_load")&&w.addProvider({provide:_.bU,useClass:GGj});w.addProvider({provide:_.xu,useClass:y8});w.addProvider({provide:jL,useFactory:function(){return _.lD.getInstance()}});
w.addProvider({provide:Q7T,useFactory:bwo});w.addProvider({provide:jb,useFactory:function(){return _.T5.getInstance()}});
w.addProvider({provide:Nt3,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});u={};w.addProvider((u.provide=_.L3,u.useClass=_.L3,u[Ld]=[_.kH,_.PG,_.WY,Q7T,jb,jL,Nt3,h9],u));w.addProvider({provide:_.tH,useClass:vUZ});w.addProvider({provide:_.c$$,useClass:Raj});u={};w.addProvider((u.provide=iH,u.useClass=iH,u[Ld]=[_.c$$],u));u={};w.addProvider((u.provide=_.Ml,u.useFactory=function(G){return G.upliftCompletionResolver.promise},u[Ld]=[UvT],u));
u=_.RX("IS_SHELL_LOAD")?"aa":"eocs";var y=_.RX("IS_SHELL_LOAD")?3:2;_.DU().parkOrScheduleJob(function(){CC3()},y,u);
_.DU().parkOrScheduleJob(function(){_.tG().resolve(B$).start()},2,"eocs");
_.DU().parkOrScheduleJob(function(){I3x()},2,"eocs");
_.DU().parkOrScheduleJob(function(){_.tG().resolve(l$).start()},2,"eocs");
_.T("kevlar_debug_data_app_registration_ks")||KK7();w.addProvider({provide:_.fT,useValue:new VGa(q.root)});w.addProvider({provide:hq,useValue:new p6f});w.addProvider({provide:_.Zsx,useValue:new apP(q.root)});w.addProvider({provide:_.OP,useValue:new Dg6});w.addProvider({provide:_.yA,useClass:GK});w.addProvider({provide:Dvc,useClass:ud});_.T("kevlar_network_sli_killswitch")||w.addProvider({provide:p4x,useValue:xwT});w.addProvider({provide:oJq,useFactory:Vuy});_.T("web_bind_fetch")&&(u={},w.addProvider((u.provide=
VHj,u.useFactory=fA7,u[Ld]=[_.kF(oJq)],u)));_.T("web_bind_parse")&&(u={},w.addProvider((u.provide=f6m,u.useFactory=myf,u[Ld]=[_.kF(oJq)],u)));_.T("web_bind_window_request")&&(u={},w.addProvider((u.provide=mMx,u.useFactory=AnM,u[Ld]=[_.kF(oJq)],u)));u={};w.addProvider((u.provide=PiZ,u.useFactory=cnJ,u[Ld]=[_.Ml,eb,_.gq],u));u={};w.addProvider((u.provide=t5T,u.useClass=TU,u[Ld]=[PiZ],u));w.addProvider({provide:CiG,useClass:iI$});w.addProvider({provide:uv3,useClass:epk});u=[].concat(_.Cm(hE));_.T("web_continuation_response_processing")&&
u.push(_.ZK);u.push(AO3);_.T("enable_share_panel_navigation_logging_fix_on_web")&&u.push(_.xH3);w.addProvider({provide:WKs,useValue:u});w.addProvider({provide:Uf4,useClass:wox});w.addProvider({provide:YsB,useClass:$M4});u={};w.addProvider((u.provide=QLz,u.useClass=Sa3,u[Ld]=[FN],u));_.pi.addLowPriorityJob(function(){nhH()});
u={};w.addProvider((u.provide=BuF,u.useFactory=function(G){return function(n){var N,Q=(N=_.C(n.commandMetadata,_.wk))==null?void 0:N.url;if(!Q)throw new _.fv("No URL for PBJ Command",n);Q=NAJ(Q,{pbj:"1"});N=DbM(Q,{})||{};N=Object.assign({},N,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Et("STS").toString()});n=_.i4({command:JSON.stringify(n),session_token:_.Et("XSRF_TOKEN")});return G.fetch(Q,{method:"POST",headers:N,body:n})}},u[Ld]=[YsB],u));
u=[];u.push(w.resolve(uv3));y={};y=(y.client_location=_.YM.getInstance(),y.consistency=_.Ntf(),y.entities=w.resolve(TnT),y.response_received_commands=w.resolve(Uf4),y.store=w.resolve(_.Wqc),y.tokens=w.resolve(uv3),y);if(_.T("web_shorts_prefetch_service_enabled")){var e=new poT(w.resolve(_.wu));y.shorts_prefetch=e}y.adblock_detection=w.resolve(QLz);w.addProvider({provide:_.MQ,useClass:_.MQ});e=w.resolve(IeX);var t=[];if(_.T("PremiumClientSharedConfig__enable_att_context_processor")||_.T("enable_att_for_transcript_request_on_web_client"))w.addProvider({provide:kuP,
useClass:unr}),t.push(w.resolve(kuP));if(_.T("owl_pl_await")){var X={};w.addProvider((X.provide=rzA,X.useFactory=function(G){return new I6V(G)},X[Ld]=[_.MQ],X));
t.push(w.resolve(rzA))}tCa(e,w.resolve(YsB),w.resolve(O7a),y,w.resolve(_.wu),u,t,w.resolve(t5T),w.resolve(CiG));w.addProvider({provide:_.oi,useValue:_.E3.instance});_.T("start_client_gcf")&&w.addProvider({provide:zC,useValue:IT$()});w.addProvider({provide:Oux,useFactory:function(){return new Oux(_.tG().resolve(_.MQ),_.T5.getInstance())}});
_.DU().parkOrScheduleJob(function(){ov$()},1,"eocs");
u={};w.addProvider((u.provide=K3,u.useClass=K3,u[Ld]=[_.gq,_.oi],u));w.addProvider({provide:_.gvX,useFactory:_.G$.getInstance});_.DU().parkOrScheduleJob(function(){_.tG().resolve(K3).refresh()},0,"eocs");
xEX(ccV.watchEndpointMap||{},e.reelWatchEndpointMap||{},q.injector.resolve(_.oi));w.addProvider({provide:dZ,useValue:_.wd.instance});_.T("kevlar_signal_collection_killswitch")||(u={},w.addProvider((u.provide=s7x,u.useClass=s7x,u[Ld]=[W5,Rd],u)),_.DU().parkOrScheduleJob(function(){_.tG().resolve(s7x).record()},1,"eocs"));
_.T("web_debug_handler_registration_killswitch")||_.DU().parkOrScheduleJob(function(){LKH("DOWNLOAD_PES",vOJ);_.T("offline_client_state_export_ks")||LKH("OFFLINE_CLIENT_STATE",Zwy)},0,"eocs");
_.T("kevlar_prevent_polymer_dynamic_font_load")&&_.DU().parkOrScheduleJob(function(){var G=[_.qK(Bjq),_.qK(xMq)];G=_.P(G);for(var n=G.next();!n.done;n=G.next()){n=n.value;var N=document.createElement("link");_.Rw(N,n,"stylesheet");document.head.appendChild(N)}},1,"eocs");
u=q.injector.resolve(_.oi);_.ear.instance=new _.ear(u);d3M(MGj(new y$F(u)));u={};q.injector.addProvider((u.provide=el,u.useFactory=function(G){(G=G==null?void 0:G.getCurrentPage())?G=G.visibilityObserver:(QmB||(QmB=Qac()),G=QmB);return G},u[Ld]=[_.kF(_.KT)],u.skipCache=!0,u));
w.addProvider({provide:_.$X,useClass:Uy});w.addProvider({provide:F8,useClass:Swa});w.addProvider({provide:K3r,useValue:cCu});q.injector.addProvider({provide:BHa,useValue:oR$});w.addProvider({provide:fyr,useValue:YD4});w.addProvider({provide:_.Rg,useValue:BF7});q=w.addProvider;R6P||(R6P=new Ev6);q.call(w,{provide:_.cf6,useValue:R6P});w.addProvider({provide:_.SD,useValue:_.Et("HTML_DIR")==="rtl"?"rtl":"ltr"});w.addProvider({provide:doG,useClass:akx});w.addProvider({provide:_.Gj,useClass:eT});_.tG().addProvider({provide:oya,
useValue:_.T("enable_web_delhi_icons")?WaA.concat(NVa):HAh.concat(smj)});w.addProvider({provide:_.tQ,useClass:_.tQ});w.addProvider({provide:_.jox,useValue:new hfK});w.addProvider({provide:OeT,useClass:ibr});w.addProvider({provide:B5,useClass:B5});w.addProvider({provide:wv,useClass:wv});q={};w.addProvider((q.provide=mW,q.useClass=mW,q[Ld]=[_.oi,_.ib],q));w.addProvider({provide:I0,useClass:I0});w.addProvider({provide:c4r,useClass:vvc});w.addProvider({provide:kU,useClass:kU});w.addProvider({provide:TFx,
useValue:tyT});w.addProvider({provide:_.fc,useClass:r$P});_.T("enable_payments_purchase_manager")&&w.addProvider({provide:F1X,useClass:tEP});w.addProvider({provide:MHV,useFactory:function(){return function(G){return _.Lua(G)}}});
w.addProvider({provide:_.xoj,useClass:qUP});q={};w.addProvider((q.provide=sw,q.useClass=sw,q[Ld]=[_.xoj],q));w.addProvider({provide:uw,useClass:uw});w.addProvider({provide:b8G,useValue:s_T});w.addProvider({provide:ue6,useValue:Mer});w.addProvider({provide:t_l,useClass:$vZ});w.addProvider({provide:Ljq,useValue:lZx});q={};w.addProvider((q.provide=_.Q8,q.useClass=Mr6,q[Ld]=[Ljq],q));_.T("web_ephemeral_actions")&&(q={},w.addProvider((q.provide=_.XH,q.useClass=PD,q[Ld]=[_.dd,_.yA],q)));if(_.T("web_explore_hub_on_hover")||
_.T("web_client_explore_hub_on_hover"))q={},w.addProvider((q.provide=nt,q.useClass=nt,q[Ld]=[_.oi,jL],q));w.addProvider({provide:pxM,useValue:mVu});q={};w.addProvider((q.provide=vn3,q.useClass=$0G,q[Ld]=[_.oi],q))}},II4);var rhB={},Uzj=(rhB.initialized={priority:10,callback:function(){if(!Z7q){EMf();zcf("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.s8(_.rk(zcf,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.T("log_heartbeat_with_lifecycles")){var q={};cv.instance||(cv.instance=new cv);cv.instance.install((q.document_visible={callback:aAs,priority:10},q.document_hidden={callback:aAs,priority:10},q))}else _.ew(document,"visibilitychange",aAs);Z7q=!0}(q=_.pN())&&q!=="UNDEFINED_CSN"&&Foc(q)}},rhB);var TVm={},CEB=(TVm.initialized={callback:function(q){var w=_.oV(232091),u=q.injector.resolve(_.WY);_.ku(u,w);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?qnz()&&_.Ph(u,w):(q=q.injector.resolve(MHV)("refresh_detector"))&&(q.get("first_tab_load")?_.Ph(u,w):q.set("first_tab_load","1"))}},TVm);var dzx={},OAH=(dzx.initialized={priority:10,callback:XqJ},dzx);var oK6={},Vaj=(oK6.initialized={priority:0,callback:function(){var q=new TYc,w="other";_.Gs?w="chrome":_.F1?w="firefox":_.g$?w="safari":xF&&(w="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(u){q.increment(_.d$(),u,w)}).catch(function(){q.increment(_.d$(),!1,w)}):q.increment(_.d$(),!1,w)}},oK6);var fIh={},mz4=(fIh.rendering={priority:8,callback:Fqf},fIh);var AhH={},Jhc=(AhH.rendering={priority:10,callback:C0c},AhH.rendered={callback:TUH},AhH),zXm={},aIV=(zXm.rendering={callback:C0c},zXm.rendered={callback:TUH},zXm);var Dza=!1,ZAm={},p3B=(ZAm.initialized={priority:10,callback:function(){Dza||(sA6({didPatch:function(q){q.el&&Qnl(q.el,q.props)},
didUnmount:function(q){sno(q.el)}}),Dza=!0)}},ZAm);var $z6=/^\/shorts\/?$/;_.g_("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(_.T("kevlar_enable_mss")){_.wlf(new uQa);var vK4=!0,bAK,Cl;vK4=vK4===void 0?!1:vK4;bAK=bAK===void 0?!1:bAK;Cl=Cl===void 0?{}:Cl;var YgH=Cl.cssRowKey||"",gKh=Cl.combinedSignature||"";!YgH&&window&&window._F_cssRowKey&&(YgH=window._F_cssRowKey,!gKh&&window._F_combinedSignature&&(gKh=window._F_combinedSignature));if(YgH&&typeof window._F_installCss!=="function")throw Error("vd");var EKK=Cl.loaderClass||_.p9,de=b47("base-js"),RXc,chx=gwH("",de);RXc=_.FE(chx);var Oy=new EKK(RXc,YgH,gKh,vK4,bAK),Sg6=
Cl.useCors||de&&de.hasAttribute("crossorigin"),hXA=Cl.corsMode||de&&de.getAttribute("crossorigin");Sg6&&(Oy.useCors_=Sg6);hXA&&(Oy.corsMode_=hXA);Cl.urlMaxLength&&(Oy.urlMaxLength=Cl.urlMaxLength);Cl.fetchPriority&&(Oy.fetchPriority=Cl.fetchPriority);var jmm=DH();jmm.JSC$7953_loader_=Oy;jmm.setBatchModeEnabled(!0)}
(function(){var q=document.querySelector("ytd-app");if(!q)throw Error("Fj");q=new FH({root:q,injector:_.tG()});q.install(Uzj);var w={};q.install((w.initialized={priority:10,callback:P7s},w));_.T("wp_lat_b")&&(w={},q.install((w.initialized={priority:10,callback:function(){dyM()}},w)));
w={};q.install((w.rendered={priority:0,callback:eN7},w));w={};q.install((w.rendered={priority:0,callback:function(){_.pi.addLowPriorityJob(function(){_.DoT>1&&(KD6(),upJ())},4E4)}},w));
q.install(O$6);q.install(CEB);q.install(p3B);KuH||(KuH=!0,Object.assign(XZ,{handleError:v7H,enableComponentStacksInErrorMessages:!1}),d5s=NsG,Hnj=b8y,m5M=Mof,o8c=K3H,_.T("ytwiz_enable_debug_component_props")&&ZnM());q.install(aZj);q.install(i$T);q.install(CPA);q.install(PCT);q.install(HuG);q.install(Jc4);q.install(iAA);_.T("kevlar_enable_mss_lazy_load")&&q.install(OAH);q.install(UTA);q.install(Vaj);if(!_.RX("IS_SHELL_LOAD")||_.T("kevlar_fetch_initial_data_promise_client")||_.T("sw_nav_preload_pbj")){var u=
_.QV(window.location.href);w=u&&u==="/watch";u=u&&u.match($z6);w?q.install(aIV):u?q.install(mz4):q.install(Jhc)}else q.install(Nxj);q.install(VrT);_.T("web_enable_prefetching_videos_on_home")&&q.install($T4);_.T("start_client_gcf")&&q.install(DMc);q.install(uzP);(new CBj).increment("INSTALLED");q.install(Z$x);q.install(H$m);q.transition("initialized");sju()})();
_.FT=[[["bmQjeHY3MzU1dGF1cXdma2k=","d2s4ank1MmlrZXd2YWx1ZSMy"],"ZGp5eWxsOWY5ZmFBRF9QTEFDRU1FTlRfS0lORF9TVEFSVCN4"]];_.XT=["bG9iYWxDYWxsYmFja3MjbWFpMmo3d3JscWY0Zw==","ZWQjNzl0YTExdHVwcnVjb25BYm5vcm1hbGl0eURldGVjdA==","bkFkU2tpcCNxbmh6a3V5eDJ2dmJv","c3BvbnNlI2hpbHo1a214YmxsbnJhd19wbGF5ZXJfcmU=","ZXR6YWRTbG90cyNwY2s5Zm1tazU="];_.Yu="bG9iYWxDYWxsYmFja3MjbWFpMmo3d3JscWY0Zw== ZWQjNzl0YTExdHVwcnVjb25BYm5vcm1hbGl0eURldGVjdA== bkFkU2tpcCNxbmh6a3V5eDJ2dmJv c3BvbnNlI2hpbHo1a214YmxsbnJhd19wbGF5ZXJfcmU= ZXVlX211bHRpcGxlX3NraXBzX2tzIzUwY2RxYWdnZ2p3c3dlYl9wbGF5bGlzdF9xdQ== Yl9zYV9lZiNmcGdheHFncTRhNGth ZXR6YWRTbG90cyNwY2s5Zm1tazU=".split(" ");
_._ModuleManager_initialize=function(q,w){if(!_.J1){if(!_.a3)return;_.wlf(_.a3())}_.J1.setAllModuleInfoString(q,w)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/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','sy8','syc','sya','sy6','sy3','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.AQ=function(q,w,u,y,e){var t={};w&&(t[w]=u);y?t.errorType=y:e&&(t.errorReason=e);_.pn(q,t);_.$8()};
_.JQ=function(q){var w=_.DU();return _.u8G(w,q,1)};
_.o9({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 q=this.query;q&&(this.full||q[0]==="("||(q="("+q+")"),this._mq=window.matchMedia(q),this._add(),this.queryHandler(this._mq))},
queryHandler:function(q){this._setQueryMatches(q.matches)}});var yaH;var eh6;var k2A=function(){};
_.k=k2A.prototype;_.k.addOwnKeyBinding=function(){};
_.k.removeOwnKeyBindings=function(){};
_.k.keyboardEventMatchesKeys=function(){};
_.k._collectKeyBindings=function(){};
_.k._prepKeyBindings=function(){};
_.k._addKeyBinding=function(){};
_.k._resetKeyEventListeners=function(){};
_.k._listenKeyEventListeners=function(){};
_.k._unlistenKeyEventListeners=function(){};
_.k._onKeyBindingEvent=function(){};
_.k._triggerKeyHandler=function(){};
_.k._tapHandler=function(){};
_.k._focusChanged=function(){};
_.k._detectKeyboardFocus=function(){};
_.k._userActivate=function(){};
_.k._upHandler=function(){};
_.k._spaceKeyDownHandler=function(){};
_.k._spaceKeyUpHandler=function(){};
_.k._asyncClick=function(){};
_.k._pressedChanged=function(){};
_.k._ariaActiveAttributeChanged=function(){};
_.k._activeChanged=function(){};
_.k._controlStateChanged=function(){};
_.k._changedButtonState=function(){};
_.k._focusBlurHandler=function(){};
_.k._disabledChanged=function(){};
_.k._changedControlState=function(){};
_.k._downHandler=function(){};
_.k.ensureRipple=function(){};
_.k.getRipple=function(){};
_.k.hasRipple=function(){};
_.k._noinkChanged=function(){};
_.k._focusedChanged=function(){};
_.k._createRipple=function(){};
_.k.registered=function(){};
_.k._invalidChanged=function(){};
_.k.hasValidator=function(){};
_.k.validate=function(){};
_.k._getValidity=function(){};
_.k._requiredChanged=function(){};
_.k._valueChanged=function(){};
_.k._checkedChanged=function(){};
_.k._buttonStateChanged=function(){};
_.k._setPressed=function(){};
_.k._setPointerDown=function(){};
_.k._setReceivedFocusFromKeyboard=function(){};
_.k._setFocused=function(){};
k2A=_.o9({is:"tp-yt-paper-radio-button",_template:function(){if(eh6!==void 0)return eh6;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;yaH===void 0&&(yaH=document.createElement("template"));var y=yaH;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return eh6=q},
behaviors:[_.goa],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(){_.KJ(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var q=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),w=Math.floor(3*q);w%2!==q%2&&w++;this.updateStyles({"--paper-radio-button-ink-size":w+"px"})}})}});var t9m;var PZm;_.o9({_template:function(){if(PZm!==void 0)return PZm;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;t9m===void 0&&(t9m=document.createElement("template"));var y=t9m;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return PZm=q},
is:"tp-yt-paper-radio-group",behaviors:[_.w6$],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(q){var w=this._valueToItem(q);if(!w||!w.hasAttribute("disabled")){if(this.selected){w=this._valueToItem(this.selected);if(this.selected==q)if(this.allowEmptySelection)q="";else{w&&(w.checked=!0);return}w&&
(w.checked=!1)}_.gN.select.apply(this,[q]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(q){this._focusPrevious();q.preventDefault();this._activateFocusedItem()},
_onDownKey:function(q){this._focusNext();q.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(q){_.qOT._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(q){_.qOT._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.gN._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.Vc._resetTabindices.apply(this,arguments);this.items.forEach(function(q){q.removeAttribute("aria-selected")},this)}});var Xs6;_.JE("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var z$=function(){return _.Y.apply(this,arguments)||this};
_.O(z$,_.Y);_.k=z$.prototype;_.k.computeHasPrimaryIcon=function(q){return!(!q.icon&&!q.thumbnail)};
_.k.computeHasSecondary=function(q){return!(!q.secondaryIcon&&!q.secondaryNotificationText)};
_.k.computeHideSecondaryString=function(q){return!_.T("disable_hide_empty_secondary_string")&&!q.secondaryNotificationText};
_.k.computeCompactLinkStyle=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.k.computeHasFitHeight=function(q){return q==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.k.isActiveEndpoint=function(q){return(q=this.get("commandMetadata.webCommandMetadata.url",q))?_.QV(window.location.href)!=="/account_transfer_channel"&&_.QV(window.location.href)!=="/gaia_link"&&_.QV(window.location.href)!=="/channel_switcher"||q!=="/account"?_.QV(window.location.href)===q:!0:!1};
_.k.onTap=function(){var q;((q=this.data)==null?0:q.serviceEndpoint)&&_.GM(this.hostElement,[this.data.serviceEndpoint])};
z$.prototype.onTap=z$.prototype.onTap;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],z$.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.h("design:type",Boolean)],z$.prototype,"active",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.h("design:type",String)],z$.prototype,"compactLinkStyle",void 0);
_.c([_.v({computed:"computeIcon_(data.icon)"}),_.h("design:type",Object)],z$.prototype,"icon",void 0);_.c([_.v({computed:"computeIcon_(data.secondaryIcon)"}),_.h("design:type",Object)],z$.prototype,"secondaryIcon",void 0);_.c([_.v({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],z$.prototype,"hasSecondary",void 0);_.c([_.v({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],z$.prototype,"hideSecondaryString",void 0);
_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],z$.prototype,"onTap",null);z$=_.c([_.E({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],z$);
_.R(z$,"ytd-compact-link-renderer",function(){if(Xs6!==void 0)return Xs6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Xs6=q},{mode:1});var Fxa;_.JE("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var an=function(){var q=_.Y.apply(this,arguments)||this;q.role="link";q.tabindex="0";q.actionMap=_.T("kevlar_move_theme_action_handlers_killswitch")?{"yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice"}:{};return q};
_.O(an,_.Y);_.k=an.prototype;_.k.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.$M()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.k.getCurrentTheme=function(){return _.vM()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.$M()};
_.k.onThemeSelected=function(q,w){var u=q||w?q:_.pp(),y=(u&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!u&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.HUz(_.QV(window.location.href));_.TM(0,165,q);_.TM(0,174,w);this.prefs.save();y&&_.Pw(this.hostElement,"yt-dark-mode-toggled-action",[u]);_.Pw(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.k.onTap=function(){this.data.serviceEndpoint&&_.GM(this.hostElement,[this.data.serviceEndpoint])};
_.k.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.k.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.k.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
an.prototype.onTap=an.prototype.onTap;an.prototype.dataChanged=an.prototype.dataChanged;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],an.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],an.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hU),_.h("design:type",Object)],an.prototype,"paperItemBehaviors",void 0);_.c([_.v(),_.h("design:type",Object)],an.prototype,"data",void 0);_.c([_.v({value:function(){return _.UC()}}),
_.h("design:type",_.Bz)],an.prototype,"prefs",void 0);_.c([_.v(),_.h("design:type",Object)],an.prototype,"label",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],an.prototype,"role",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],an.prototype,"tabindex",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],an.prototype,"dataChanged",null);
_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],an.prototype,"onTap",null);an=_.c([_.E({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],an);
_.R(an,"ytd-toggle-theme-compact-link-renderer",function(){if(Fxa!==void 0)return Fxa;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Fxa=q},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.l2=function(q){return function(w,u){var y=q||u.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(w,u,{get:function(){var e;return this.$?this.$[y]:(e=_.Hj(this))==null?void 0:e.querySelector("#"+y)},
enumerable:!0,configurable:!0})}};_.L2=function(q){q=q===void 0?!1:q;_.VG.call(this);this.pubSub_=new _.r$(q);_.sN(this,this.pubSub_)};
_.w9(_.L2,_.VG);_.L2.prototype.subscribe=function(q,w,u){return this.isDisposed()?0:this.pubSub_.subscribe(q,w,u)};
_.L2.prototype.unsubscribe=function(q,w,u){return this.isDisposed()?!1:this.pubSub_.unsubscribe(q,w,u)};
_.L2.prototype.unsubscribeByKey=function(q){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(q)};
_.L2.prototype.publish=function(q,w){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var Swm=function(){_.AQ("ypcRedeemFlowStarted")},nk=function(q){_.AQ("ypcRedeemFlowFailed",void 0,void 0,void 0,q)},hlx=function(q,w,u){w&&u&&(q.videos.forEach(function(y){y.videoId===w&&(y.itemId=u)}),q.recommendedVideos.forEach(function(y){y.videoId===w&&(y.itemId=u)}))};var j0j;var lbT;/*

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
*/
_.o9({_template:function(){if(lbT!==void 0)return lbT;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;j0j===void 0&&(j0j=document.createElement("template"));var y=j0j;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return lbT=q},
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(q,w){var u=this._resolveSrc(q);u!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",q===""||w?this._setLoading(!1):(this._resolvedSrc=u,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 q=this.$.sizedImgDiv.style,w=this.$.placeholder.style;q.backgroundSize=w.backgroundSize=this.sizing;q.backgroundPosition=w.backgroundPosition=this.sizing?this.position:"";q.backgroundRepeat=w.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(q){q=_.FQ(q,this.$.baseURIAnchor.href);q.length>=2&&q[0]==="/"&&q[1]!=="/"&&(q=(location.origin||location.protocol+"//"+location.host)+q);return q}});var LKq;var Mzx;_.o9({_template:function(){if(Mzx!==void 0)return Mzx;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;LKq===void 0&&(LKq=document.createElement("template"));var y=LKq;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return Mzx=q},
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(q){return q?"false":"true"},
_headingChanged:function(q){var w=this.getAttribute("heading"),u=this.getAttribute("aria-label");typeof u==="string"&&u!==w||this.setAttribute("aria-label",q)},
_computeHeadingClass:function(q){return q?" over-image":""},
_computeAnimated:function(q){return q}});var KKh=new _.M("addRendererToItemSectionAction");var Bvh;var Hc=function(){return _.Y.apply(this,arguments)||this};
_.O(Hc,_.Y);Hc.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Hc.prototype,"rendererBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],Hc.prototype,"dismissibleItemBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Hc.prototype,"rendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Hc.prototype,"data",void 0);Hc=_.c([_.E({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],Hc);
_.R(Hc,"ytd-comment-history-entry-renderer",function(){if(Bvh!==void 0)return Bvh;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Bvh=q},{mode:1});var xnH;_.JE("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.JE("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var Wc=function(){return _.Y.apply(this,arguments)||this};
_.O(Wc,_.Y);_.k=Wc.prototype;_.k.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.k.onKeyUp=function(q){if(q.keyCode===13)this.onTap()};
_.k.onTap=function(){this.data.recordClickEndpoint&&_.tG().resolve(_.PG).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var q=this.data.navigationEndpoint;q&&_.C(q,_.mZ)&&_.tG().resolve(_.PG).resolveCommand(q,{form:{element:this.hostElement}})};
_.k.readChanged=function(){var q;_.ef(this.hostElement,"unread",!((q=this.data)==null?0:q.read))};
_.k.dataChanged=function(){this.data&&_.ef(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.k.computeThumbnailSize=function(){var q;return((q=this.data)==null?0:q.highPriorityNotification)?32:48};
_.k.getEndpointURL=function(q){return q&&!_.C(q,_.mZ)?this.componentBehavior.computeHref_(q):null};
_.k.getEndpointData=function(q){return q&&!_.C(q,_.mZ)?q:null};
Wc.prototype.computeThumbnailSize=Wc.prototype.computeThumbnailSize;Wc.prototype.dataChanged=Wc.prototype.dataChanged;Wc.prototype.readChanged=Wc.prototype.readChanged;Wc.prototype.onKeyUp=Wc.prototype.onKeyUp;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Wc.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Wc.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Wc.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Wc.prototype,"data",void 0);_.c([_.v({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.h("design:type",Number)],Wc.prototype,"thumbnailSize",void 0);_.c([_.Gm("keyup"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],Wc.prototype,"onKeyUp",null);
_.c([_.nL("data.read"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Wc.prototype,"readChanged",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Wc.prototype,"dataChanged",null);_.c([_.nL("data.highPriorityNotification"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Wc.prototype,"computeThumbnailSize",null);
Wc=_.c([_.E({is:"ytd-notification-renderer",disableElementRegistration:!0})],Wc);
_.R(Wc,"ytd-notification-renderer",function(){if(xnH!==void 0)return xnH;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return xnH=q},{mode:1});var qvK;var sm=function(){return _.Y.apply(this,arguments)||this};
_.O(sm,_.Y);sm.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"}}}};
sm.prototype.computeActionButtonClass=function(q){return!q.actionButtons||q.actionButtons.length<=1?"single-button":q.description?"vertical-buttons":"horizontal-buttons"};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],sm.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],sm.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],sm.prototype,"data",void 0);sm=_.c([_.E({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],sm);
_.R(sm,"ytd-playlist-show-metadata-renderer",function(){if(qvK!==void 0)return qvK;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return qvK=q},{mode:1});var wKH;_.JE("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var NN=function(){return _.Y.apply(this,arguments)||this};
_.O(NN,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],NN.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],NN.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],NN.prototype,"data",void 0);NN=_.c([_.E({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],NN);
_.R(NN,"ytd-purchase-item-renderer",function(){if(wKH!==void 0)return wKH;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return wKH=q},{mode:1});var u6T;var ylx={};ylx.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(q){if(q)return q.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(q){if(q==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.JE("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var Ql=function(){return _.Y.apply(this,arguments)||this};
_.O(Ql,_.Y);Ql.prototype.onYtNavigate=function(q){var w=this.openPopupBehavior.getNavigationEndpointPopupAction(q.detail.endpoint);w&&(q.stopPropagation(),this.openPopupBehavior.openPopup(w))};
Ql.prototype.onYtNavigate=Ql.prototype.onYtNavigate;_.c([_.D(ylx.YtSimpleTextSectionBehavior),_.h("design:type",Object)],Ql.prototype,"ytSimpleTextSectionBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ql.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.YE),_.h("design:type",Object)],Ql.prototype,"openPopupBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ql.prototype,"data",void 0);
_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ql.prototype,"onYtNavigate",null);Ql=_.c([_.E({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],Ql);
_.R(Ql,"ytd-simple-text-section-renderer",function(){if(u6T!==void 0)return u6T;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return u6T=q},{mode:1});var e4A;_.JE("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var IU=function(){return _.Y.apply(this,arguments)||this};
_.O(IU,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],IU.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],IU.prototype,"data",void 0);IU=_.c([_.E({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],IU);
_.R(IU,"ytd-unlimited-page-feature-info-renderer",function(){if(e4A!==void 0)return e4A;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return e4A=q},{mode:1});var kFA;var t_m;var iS=function(){return _.Y.apply(this,arguments)||this};
_.O(iS,_.Y);iS.prototype.dataChanged=function(){if(this.data){var q=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);q&&(q=_.wm(q,screen.width),this.hostElement.style.backgroundImage="url("+q+")")}};
iS.prototype.dataChanged=iS.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],iS.prototype,"data",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],iS.prototype,"dataChanged",null);iS=_.c([_.E({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],iS);
_.R(iS,"ytd-post-redemption-section-renderer",function(){if(t_m!==void 0)return t_m;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return t_m=q},{mode:1});var P3a;var r0=function(){return _.Y.apply(this,arguments)||this};
_.O(r0,_.Y);r0.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],r0.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],r0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],r0.prototype,"data",void 0);r0=_.c([_.E({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],r0);
_.R(r0,"ytd-ypc-post-redemption-renderer",function(){if(P3a!==void 0)return P3a;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return P3a=q},{mode:1});_.JE("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Um=function(){var q=_.Y.apply(this,arguments)||this;q.MIN_CODE_LENGTH=12;q.MAX_CODE_LENGTH=24;return q};
_.O(Um,_.Y);_.k=Um.prototype;_.k.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.k.created=function(){this.riskService=new _.eeo;this.loadPaymentThenable=_.tk6(_.Et("YPC_MB_URL"))};
_.k.ready=function(){var q=this;this.code.addEventListener("keypress",function(w){q.onCodeInputKeypress(w)})};
_.k.dataChanged=function(){var q=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(w){w=_.P(w);for(var u=w.next();!u.done;u=w.next())u=u.value,u.type==="attributes"&&u.attributeName==="dark"&&q.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.k.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var q=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+q+")")}};
_.k.computeRedeemButton=function(q){(q=this.get("redeemButton.buttonRenderer",q))&&(q=Object.assign({},q,{serviceEndpoint:void 0}));return q};
_.k.onRedeemButtonTap=function(q){q.stopPropagation();Swm();this.redeemCode()};
_.k.redeemCode=function(){var q=this;this.isLoading=!0;var w=this.riskService.init();_.rD([w,this.loadPaymentThenable]).then(function(){var u=q.data.redeemButton.buttonRenderer.serviceEndpoint,y=_.kzz(),e=payments.business.integration.ClientTokenFactory.createClientToken(_.C(u,_.qeT).countryCode,y);y={c:q.code.value.trim(),rd:window.btoa(y),ctk:e};u&&_.tG().resolve(_.PG).resolveCommand(u,{form:Object.assign({},y,{element:q.hostElement})})},function(){q.showGenericError();
nk("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.cl(Error("Tl"))})};
_.k.onYtServiceRequestCompleted=function(q){q.stopPropagation();this.isLoading=!1;var w,u;this.errorMessage=(w=q.detail)==null?void 0:(u=w.data)==null?void 0:u.errorMessage;var y,e;this.postRedemptionRenderer=(y=q.detail)==null?void 0:(e=y.data)==null?void 0:e.renderer;var t,X;if(q=(t=q.detail)==null?void 0:(X=t.data)==null?void 0:X.redirectEndpoint)this.isLoading=!0,_.t7(this.hostElement,"yt-navigate",{endpoint:q});this.errorMessage?nk("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
q)&&_.AQ("ypcRedeemFlowSucceeded")};
_.k.onYtServiceRequestError=function(q){q.stopPropagation();this.isLoading=!1;if(q=this.get("detail.error.message",q))this.errorMessage=_.jN(q);nk("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.k.onInvokeInstrumentManagerActionCompleted=function(q){q.stopPropagation();this.redeemCode()};
_.k.onInvokeInstrumentManagerActionError=function(q){q.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",q)){case "instrumentManagerLoadError":this.showGenericError();nk("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();nk("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.AQ("ypcRedeemFlowCancelled")}};
_.k.onInput=function(){var q=this;_.bf(this,"onInput",function(){var w=q.code.value.trim();q.redeemButtonDisabled=w.length<q.MIN_CODE_LENGTH||w.length>q.MAX_CODE_LENGTH},200)};
_.k.onCodeInputKeypress=function(q){q.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(Swm(),this.redeemCode())};
_.k.computeImageUrl=function(q){return q?_.wm(q.thumbnails,600):null};
_.k.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Um.prototype.onInvokeInstrumentManagerActionError=Um.prototype.onInvokeInstrumentManagerActionError;Um.prototype.onInvokeInstrumentManagerActionCompleted=Um.prototype.onInvokeInstrumentManagerActionCompleted;Um.prototype.onYtServiceRequestError=Um.prototype.onYtServiceRequestError;Um.prototype.onYtServiceRequestCompleted=Um.prototype.onYtServiceRequestCompleted;Um.prototype.dataChanged=Um.prototype.dataChanged;
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Um.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Um.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Um.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Um.prototype,"isLoading",void 0);_.c([_.v(),_.h("design:type",Boolean)],Um.prototype,"redeemButtonDisabled",void 0);
_.c([_.v(),_.h("design:type",Object)],Um.prototype,"errorMessage",void 0);_.c([_.v(),_.h("design:type",Object)],Um.prototype,"postRedemptionRenderer",void 0);_.c([_.v(),_.h("design:type",Object)],Um.prototype,"observer",void 0);_.c([_.Wj("#code"),_.h("design:type",HTMLInputElement)],Um.prototype,"code",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Um.prototype,"dataChanged",null);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Um.prototype,"onYtServiceRequestCompleted",null);_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Um.prototype,"onYtServiceRequestError",null);
_.c([_.Gm("yt-invoke-instrument-manager-action-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Um.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.c([_.Gm("yt-invoke-instrument-manager-action-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Um.prototype,"onInvokeInstrumentManagerActionError",null);Um=_.c([_.E({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Um);
_.R(Um,"ytd-redeem-code-renderer",function(){if(kFA!==void 0)return kFA;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return kFA=q},{mode:1});var XK6;_.JE("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var T0=function(){var q=_.Y.apply(this,arguments)||this;q.businessEmailDisplayState="HIDE_SECTION";return q};
_.O(T0,_.Y);_.k=T0.prototype;_.k.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}}}}}};
_.k.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"};
_.k.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.k.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.EM("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.k.onYtServiceRequestCompleted=function(q){var w;if((w=q.detail.data)==null?0:w.businessEmail)this.businessEmail=q.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var u;if((u=q.detail.data)==null?0:u.errorMessage)this.businessEmailErrorMessage=q.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.k.computeEmailHref=function(q){return"mailto:"+q};
_.k.computeSafeUrl=function(q){if(q)return _.UY(q)};
_.k.onBusinessEmailCaptchaSubmit=function(){var q;(q=this.data)!=null&&q.onBusinessEmailRevealClickCommand&&(q=this.JSC$18971_captchaTextarea.value)&&(q={recaptcha_response_token:q,channel_id:this.data.channelId},_.tG().resolve(_.PG).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},q,{element:this.hostElement})}))};
_.k.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.x$.Object.defineProperties(T0.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 q,w;return!((q=this.data)==null||!q.primaryLinks)&&!((w=this.data)==null?0:w.links)&&this.data.primaryLinks.every(function(u){return u.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var q,w;return!((q=this.data)==null||!q.primaryLinks)&&!((w=this.data)==null?0:w.links)&&!this.shouldShowNewLinks}}});
T0.prototype.onYtServiceRequestCompleted=T0.prototype.onYtServiceRequestCompleted;T0.prototype.dataChanged=T0.prototype.dataChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],T0.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],T0.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],T0.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.Wj("#g-recaptcha-response"),_.h("design:type",HTMLTextAreaElement)],T0.prototype,"JSC$18971_captchaTextarea",void 0);_.c([_.v(),_.h("design:type",Object)],T0.prototype,"data",void 0);_.c([_.v(),_.h("design:type",String)],T0.prototype,"businessEmailDisplayState",void 0);_.c([_.v(),_.h("design:type",String)],T0.prototype,"businessEmail",void 0);_.c([_.v(),_.h("design:type",String)],T0.prototype,"businessEmailErrorMessage",void 0);
_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],T0.prototype,"hideDetailsSection",null);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],T0.prototype,"dataChanged",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],T0.prototype,"shouldShowNewLinks",null);_.c([_.Z("data","shouldShowLinks"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],T0.prototype,"shouldShowLegacyLinks",null);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],T0.prototype,"onYtServiceRequestCompleted",null);T0=_.c([_.E({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],T0);
_.R(T0,"ytd-channel-about-metadata-renderer",function(){if(XK6!==void 0)return XK6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return XK6=q},{mode:1});var F76;_.JE("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Ck=function(){return _.Y.apply(this,arguments)||this};
_.O(Ck,_.Y);Ck.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"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ck.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ck.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ck.prototype,"data",void 0);Ck=_.c([_.E({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Ck);
_.R(Ck,"ytd-channel-featured-content-renderer",function(){if(F76!==void 0)return F76;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return F76=q},{mode:1});var GFK;_.JE("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var d0=function(){var q=_.Y.apply(this,arguments)||this;q.roundContainer=!0;q.amsterdamEnabled=_.T("enable_desktop_amsterdam_info_panels");return q};
_.O(d0,_.Y);_.k=d0.prototype;_.k.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.k.dataChanged=function(){this.imageWidth=this.imageHeight=24;var q=this.data;q.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!q.style&&q.image&&q.image.thumbnails.length&&(q=q.image.thumbnails[0],this.imageWidth=q.width||0,this.imageHeight=q.height||0)};
_.k.computeSource=function(q){return q.secondarySource?_.lA(q.secondarySource):_.lA(q.source)};
_.k.computeClarifyStyle=function(q){return q?q.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.k.isLargeStyle=function(q){return q==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.k.computeBackgroundStyle=function(q){return q?q.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.k.computeHasActionButton=function(q){return!!q.actionButton};
_.k.computeHasBottomSection=function(q){return!!q.ctaHasBottomSection};
_.k.computeIsSourceMissing=function(q){return q.ctaHasBottomSection===!1?!0:q&&this.computeSource(q)?!1:!0};
_.k.computeSecondaryEndpoint=function(q){return q.secondaryEndpoint||q.endpoint};
d0.prototype.dataChanged=d0.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],d0.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],d0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],d0.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Number)],d0.prototype,"imageWidth",void 0);_.c([_.v(),_.h("design:type",Number)],d0.prototype,"imageHeight",void 0);
_.c([_.v({computed:"computeSecondaryEndpoint(data)"}),_.h("design:type",Object)],d0.prototype,"secondaryEndpoint",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.h("design:type",Boolean)],d0.prototype,"hasActionButton",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.h("design:type",Boolean)],d0.prototype,"hasBottomSection",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.h("design:type",Boolean)],d0.prototype,"missingSource",void 0);_.c([_.v({computed:"computeIcon_(data.icon)"}),_.h("design:type",String)],d0.prototype,"icon",void 0);_.c([_.v({computed:"computeIcon_(data.secondaryIcon)"}),_.h("design:type",String)],d0.prototype,"secondaryIcon",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.h("design:type",String)],d0.prototype,"clarifyStyle",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.h("design:type",String)],d0.prototype,"backgroundStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],d0.prototype,"roundContainer",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],d0.prototype,"amsterdamEnabled",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],d0.prototype,"dataChanged",null);
d0=_.c([_.E({is:"ytd-clarification-renderer",disableElementRegistration:!0})],d0);
_.R(d0,"ytd-clarification-renderer",function(){if(GFK!==void 0)return GFK;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return GFK=q},{mode:1});var nIq;var HRc;var Om=function(){var q=_.Y.apply(this,arguments)||this;q.amsterdamEnabled=_.T("enable_desktop_amsterdam_info_panels");return q};
_.O(Om,_.Y);_.k=Om.prototype;_.k.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.k.computeIcon=function(q){return q?"yt-icons:"+q.toLowerCase():null};
_.k.computeUseContacts=function(q){return!!q.contacts&&q.contacts.length>0};
_.k.computePhoneContact=function(q){var w,u;return(w=q.contacts)==null?void 0:(u=w.find(function(y){var e;return(y==null?void 0:(e=y.icon)==null?void 0:e.iconType)==="PHONE"}))==null?void 0:u.actionText};
_.k.computeSmsContact=function(q){var w,u;return(w=q.contacts)==null?void 0:(u=w.find(function(y){var e;return(y==null?void 0:(e=y.icon)==null?void 0:e.iconType)==="SMS"}))==null?void 0:u.actionText};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Om.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Om.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Om.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Om.prototype,"amsterdamEnabled",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.h("design:type",Boolean)],Om.prototype,"useContacts",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.h("design:type",String)],Om.prototype,"phoneContact",void 0);Om=_.c([_.E({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Om);
_.R(Om,"ytd-single-action-emergency-support-renderer",function(){if(HRc!==void 0)return HRc;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return HRc=q},{mode:1});_.JE("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var oU=function(){var q=_.Y.apply(this,arguments)||this;q.roundedContainer=!0;q.amsterdamEnabled=_.T("enable_desktop_amsterdam_info_panels");return q};
_.O(oU,_.Y);oU.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"}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],oU.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],oU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],oU.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],oU.prototype,"roundedContainer",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],oU.prototype,"amsterdamEnabled",void 0);
oU=_.c([_.E({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],oU);
_.R(oU,"ytd-emergency-onebox-renderer",function(){if(nIq!==void 0)return nIq;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return nIq=q},{mode:1});var W7q;_.JE("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Vl=function(){return _.Y.apply(this,arguments)||this};
_.O(Vl,_.Y);Vl.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"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Vl.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Vl.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Vl.prototype,"data",void 0);Vl=_.c([_.E({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Vl);
_.R(Vl,"ytd-exploratory-results-renderer",function(){if(W7q!==void 0)return W7q;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return W7q=q},{mode:1});var skA;_.JE("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var fk=function(){var q=_.Y.apply(this,arguments)||this;q.messageData=null;return q};
_.O(fk,_.Y);_.k=fk.prototype;_.k.onServiceRequestCompleted=function(q,w){q=w.actions||[];w=0;for(var u=q.length;w<u;w++){var y=q[w],e=void 0,t=void 0;if((e=_.C(y,_.rf))==null?0:(t=e.item)==null?0:t.messageRenderer)this.messageData=_.C(y,_.rf).item.messageRenderer}};
_.k.dataChanged=function(){var q=this.data;this.hostElement.hidden=!1;_.ef(this.hostElement,"is-channel",q&&!q.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.k.computeThumbnailWidth=function(q){return q?126:56};
_.k.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.k.onSubmitTap=function(){var q=this.data,w=this.selectedResponseIndex;q!==void 0&&w!==void 0&&(q=q.responses[w],q.responseData&&_.tG().resolve(_.PG).resolveCommand(q.responseData,{form:{element:this.hostElement}}))};
_.k.onDismissTap=function(){this.hostElement.hidden=!0;var q=this.data;q!==void 0&&q.dismissalEndpoint&&_.tG().resolve(_.PG).resolveCommand(q.dismissalEndpoint,{form:{element:this.hostElement}})};
_.k.updateSelectedResponseIndexFromBinding=function(q){this.selectedResponseIndex=q.detail.value};
fk.prototype.onSelectedResponseIndexChange=fk.prototype.onSelectedResponseIndexChange;fk.prototype.dataChanged=fk.prototype.dataChanged;fk.prototype.onServiceRequestCompleted=fk.prototype.onServiceRequestCompleted;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],fk.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],fk.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],fk.prototype,"messageData",void 0);
_.c([_.v(),_.h("design:type",Number)],fk.prototype,"selectedResponseIndex",void 0);_.c([_.Wj("#submit-button"),_.h("design:type",HTMLButtonElement)],fk.prototype,"submitButton",void 0);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],fk.prototype,"onServiceRequestCompleted",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fk.prototype,"dataChanged",null);
_.c([_.nL("selectedResponseIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fk.prototype,"onSelectedResponseIndexChange",null);fk=_.c([_.E({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],fk);
_.R(fk,"ytd-feedback-elicitation-single-question-renderer",function(){if(skA!==void 0)return skA;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return skA=q},{mode:1});var NXm;var mC=function(){return _.Y.apply(this,arguments)||this};
_.O(mC,_.Y);mC.prototype.computeThumbnailWidth=function(q){return q?602:428};
mC.prototype.updateWideFromBinding=function(q){this.wide=q.detail.value};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],mC.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],mC.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],mC.prototype,"wide",void 0);mC=_.c([_.E({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],mC);
_.R(mC,"ytd-newspaper-hero-video-renderer",function(){if(NXm!==void 0)return NXm;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return NXm=q},{mode:1});var Qk4;var Ak=function(){return _.Y.apply(this,arguments)||this};
_.O(Ak,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ak.prototype,"rendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ak.prototype,"data",void 0);Ak=_.c([_.E({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],Ak);
_.R(Ak,"ytd-newspaper-mini-video-renderer",function(){if(Qk4!==void 0)return Qk4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Qk4=q},{mode:1});var IJq;_.JE("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Jk=function(){return _.Y.apply(this,arguments)||this};
_.O(Jk,_.Y);Jk.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"}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Jk.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Jk.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Jk.prototype,"data",void 0);Jk=_.c([_.E({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],Jk);
_.R(Jk,"ytd-newspaper-renderer",function(){if(IJq!==void 0)return IJq;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return IJq=q},{mode:1});var iRV;_.JE("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var z0=function(){var q=_.Y.apply(this,arguments)||this;q.isSegment=!1;q.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};q.nextContinuation={continuationType:"playlistVideoListContinuation"};return q};
_.O(z0,_.Y);_.k=z0.prototype;_.k.attached=function(){_.tG();var q;(q=_.tG().resolve(_.kF(_.bH)))!=null&&(q.playlistVideoListElement=this.hostElement)};
_.k.detached=function(){var q;(q=_.tG().resolve(_.kF(_.bH)))!=null&&(q.playlistVideoListElement=void 0);q=_.tG().resolve(_.kF(_.lX));_.T("web_enable_voting_animation")&&q&&(q.parentElem=void 0,q.videos=[],q.continuationsPresent=!1,q.showRefreshPill=!1)};
_.k.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"}}}}}};
_.k.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.k.dataChanged=function(){var q=_.tG().resolve(_.kF(_.lX));if(_.T("web_enable_voting_animation")&&this.data&&q){var w=_.A(this.hostElement).querySelector("#contents");w&&(q.parentElem=w);q.addVideos(this.data.contents)}_.Q0j(this.ytReorderableBehavior)};
_.k.onRendererstamperFinished=function(){this.canReorder&&_.Ib$(this.ytReorderableBehavior,_.A(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.k.onPlaylistReloading=function(){this.isReloading=!0};
_.k.onUpdateSetVideoId=function(q){if(q.detail&&this.data&&this.data.contents){var w=q.detail;q=this.data.contents.findIndex(function(e){var t;return((t=e.playlistVideoRenderer)==null?void 0:t.videoId)===w.videoId});
if(!(q<0)&&w.setVideoId&&(this.set("data.contents."+q+".playlistVideoRenderer.setVideoId",w.setVideoId),_.T("web_enable_voting_animation"))){var u;if(q=_.C((u=this.data.contents[q].playlistVideoRenderer)==null?void 0:u.engagementBar,_.JjJ)){var y;(y=q.actions)==null||y.forEach(function(e){if(e=_.C(e,_.zL4))e.itemId=w.setVideoId})}(u=_.tG().resolve(_.kF(_.lX)))&&hlx(u,w.videoId,w.setVideoId)}}};
_.k.computeContentsClass=function(q){return q?"reloading":""};
_.k.computeIsSortable=function(q,w){return q&&w>0&&!this.isSegment&&!_.T("shorts_in_playlists_web")};
_.k.computeIsEditable=function(q){return q};
_.k.computeCanReorder=function(q){return q};
_.k.handlePlaylistRemoveVideosAction=function(q){if(this.get("playlistRemoveVideosAction.setVideoIds",q)&&this.data&&this.data.contents){q=_.C(q,_.nfP).setVideoIds;for(var w=this.data.contents.length-1;w>=0;){var u=this.data.contents[w].playlistVideoRenderer;u&&u.setVideoId&&q.includes(u.setVideoId)&&this.splice("data.contents",w,1);w--}_.Pw(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.k.updateIndices=function(){if(this.data&&this.data.contents)for(var q=0;q<this.data.contents.length;q++)this.set("data.contents."+q+".playlistVideoRenderer.index",_.jN(String(q+1)))};
_.k.handleDrop=function(q){q=q.currDragItem;var w=_.c4(q.parentNode.childNodes,q),u=this.data.contents.splice(Number(_.lA(q.data.index))-1,1)[0];this.data.contents.splice(w,0,u);w=w?this.get("contents."+(w-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();q=this.buildReorderServiceEndpoint(q.data.setVideoId,w);this.ytComponentBehavior.resolveCommand(q)};
_.k.buildReorderServiceEndpoint=function(q,w){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",q),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",w),this.data.onReorderEndpoint):null};
_.k.handleUpdatePlaylistAction=function(q){var w;(q=_.C((w=_.C(q,_.Hyr))==null?void 0:w.updatedRenderer,_.AL6))&&this.canReorder!==q.canReorder&&this.set("data.canReorder",q.canReorder);q&&q.contents&&(this.set("data.contents",q.contents),this.isReloading=!1);q&&q.continuations&&this.set("data.continuations",q.continuations)};
_.k.handleAddRendererToItemSectionAction=function(q){var w,u=(w=_.C(q,KKh))==null?void 0:w.renderer,y;u&&((y=_.C(q,KKh))==null?void 0:y.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,u),q=_.tG().resolve(_.kF(_.lX)),_.T("web_enable_voting_animation")&&q&&(u&&(w=_.Ajf(u))&&q.recommendedVideos.push({itemId:w,videoId:_.aoH(u),voteCount:_.D36(u),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.k.isVotingEnabledOnPlaylist=function(q){if(!q)return!1;q=_.P(q);for(q=q.next();!q.done;q=q.next()){var w=void 0;return!!_.C((w=q.value.playlistVideoRenderer)==null?void 0:w.engagementBar,_.JjJ)}return!1};
_.k.onAppendContinuationItemsActionFinished=function(){var q;this.isVotingEnabledOnPlaylist((q=this.data)==null?void 0:q.contents)&&(this.updateIndices(),q=_.tG().resolve(_.kF(_.lX)),_.T("web_enable_voting_animation")&&q&&this.data&&q.addVideos(this.data.contents))};
_.k.updateVideoData=function(q){if(q.detail&&this.data&&this.data.contents){var w=q.detail;q=w.toIdx;var u=w.itemId,y=w.newVoteCount,e=w.voteStatus;w=w.hideItem;var t,X,G=(t=this.data)==null?void 0:(X=t.contents)==null?void 0:X.findIndex(function(I){return _.Ajf(I)===u});
if(!(G<0)){t=this.data.contents[G];var n;if((n=t.playlistVideoRenderer)==null?0:n.voteCount)t.playlistVideoRenderer.voteCount=y;var N;if(n=_.C((N=t.playlistVideoRenderer)==null?void 0:N.engagementBar,_.JjJ)){var Q;(Q=n.actions)==null||Q.forEach(function(I){(I=_.C(I,_.zL4))&&I.initialState&&(I.initialState.votes=y,I.initialState.status=e)})}this.data.contents.splice(G,1);
w||this.data.contents.splice(q,0,t);this.updateIndices()}}};
z0.prototype.updateVideoData=z0.prototype.updateVideoData;z0.prototype.onAppendContinuationItemsActionFinished=z0.prototype.onAppendContinuationItemsActionFinished;z0.prototype.onUpdateSetVideoId=z0.prototype.onUpdateSetVideoId;z0.prototype.onPlaylistReloading=z0.prototype.onPlaylistReloading;z0.prototype.onRendererstamperFinished=z0.prototype.onRendererstamperFinished;z0.prototype.dataChanged=z0.prototype.dataChanged;
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],z0.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],z0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],z0.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.zE.YtNextContinuationBehavior),_.h("design:type",Object)],z0.prototype,"ytNextContinuationBehavior",void 0);
_.c([_.D(_.iPj),_.h("design:type",Object)],z0.prototype,"ytReorderableBehavior",void 0);_.c([_.D(_.JR),_.h("design:type",Object)],z0.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],z0.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],z0.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],z0.prototype,"isReloading",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],z0.prototype,"isSegment",void 0);_.c([_.v({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.h("design:type",Boolean)],z0.prototype,"isSortable",void 0);_.c([_.v({computed:"computeIsEditable(data.isEditable)"}),_.h("design:type",Boolean)],z0.prototype,"isEditable",void 0);_.c([_.v({computed:"computeCanReorder(data.canReorder)"}),_.h("design:type",Boolean)],z0.prototype,"canReorder",void 0);
_.c([_.v({value:101}),_.h("design:type",Number)],z0.prototype,"scrollMargin",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],z0.prototype,"dataChanged",null);_.c([_.Gm("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],z0.prototype,"onRendererstamperFinished",null);
_.c([_.Gm("yt-playlist-reloading"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],z0.prototype,"onPlaylistReloading",null);_.c([_.Gm("yt-update-set-video-id"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],z0.prototype,"onUpdateSetVideoId",null);
_.c([_.Gm("yt-append-continuation-items-action-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],z0.prototype,"onAppendContinuationItemsActionFinished",null);_.c([_.Gm("yt-update-video-data-voting-animation"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],z0.prototype,"updateVideoData",null);z0=_.c([_.E({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],z0);
_.R(z0,"ytd-playlist-video-list-renderer",function(){if(iRV!==void 0)return iRV;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return iRV=q},{mode:_.kB("kevlar_poly_si_batch_j047")?1:2});var rl6;var aU=function(){return _.Y.apply(this,arguments)||this};
_.O(aU,_.Y);aU.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"}}}}};
aU.prototype.onTextWrapperTap=function(q){var w=this.data&&this.data.navigationEndpoint;w&&!_.LT(_.SQ(q),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.t7(this.hostElement,"yt-navigate",{endpoint:w})};
aU.prototype.dataChanged=function(){var q=this.get("data.offerButton.buttonRenderer.serviceEndpoint");q&&q.commandMetadata&&_.C(q.commandMetadata,_.oB)&&_.C(q.commandMetadata,_.oB).fireAutomatically&&_.tG().resolve(_.PG).resolveCommand(q,{form:{element:this.hostElement}})};
aU.prototype.dataChanged=aU.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],aU.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],aU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.$p),_.h("design:type",Object)],aU.prototype,"ytdLockupBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],aU.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],aU.prototype,"useBiggerThumbs",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.GQ("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],aU.prototype,"biggerThumbsStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],aU.prototype,"leftAligned",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],aU.prototype,"dataChanged",null);aU=_.c([_.E({disableElementRegistration:!0,is:"ytd-movie-renderer"})],aU);
_.R(aU,"ytd-movie-renderer",function(){if(rl6!==void 0)return rl6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return rl6=q},{mode:1});var UeH;var D0=function(){var q=_.Y.apply(this,arguments)||this;q.rounded=!0;q.pageAttachedTo=void 0;q.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return q};
_.O(D0,_.Y);D0.prototype.attached=function(){this.pageAttachedTo=_.tG().resolve(_.KT).getCurrentPage();_.t7(this.hostElement,"yt-player-attached",this.player)};
D0.prototype.detached=function(){var q;if((q=this.pageAttachedTo)==null?0:q.hostElement)_.t7(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
D0.prototype.dataChanged=function(){var q;if((q=this.data)==null?0:q.videoId)q={video_id:this.data.videoId,autoplay:!0},!_.T("miniplayer_stop_channel_video_autoplay_killswitch")&&_.tG().resolve(_.$X).isMiniplayerActive()&&(q.pause_at_start=!0,q.autoplay=!1),this.player.loadVideoWithPlayerVars(q)};
D0.prototype.handleSignalActionPausePlayer=function(){_.qI().pause()};
D0.prototype.dataChanged=D0.prototype.dataChanged;_.c([_.v(),_.h("design:type",Object)],D0.prototype,"data",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],D0.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],D0.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],D0.prototype,"rounded",void 0);_.c([_.Wj("#player"),_.h("design:type",Object)],D0.prototype,"player",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],D0.prototype,"dataChanged",null);D0=_.c([_.E({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],D0);
_.R(D0,"ytd-channel-video-player-renderer",function(){if(UeH!==void 0)return UeH;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return UeH=q},{mode:1});var TXB;var C3c;var dej;var Z0=function(){var q=_.Y.apply(this,arguments)||this;q.playing=!1;q.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.kT(q);q.active=!1;return q};
_.O(Z0,_.Y);_.k=Z0.prototype;_.k.detached=function(){this.stop()};
_.k.play=function(){var q=this,w,u,y,e,t;return _.F(function(X){if(X.nextAddress==1)return q.active=!0,w=q.get("data.inlinePlaybackEndpoint.watchEndpoint"),u=w.videoId||q.data.videoId,y=w.startTimeSeconds||0,e=w.playerParams||null,_.T("kevlar_player_update_killswitch")?_.H(X,q.playerEl.update({args:{video_id:u,startSeconds:y,player_params:e}}),2):(q.playerEl.loadVideoWithPlayerVars({video_id:u,startSeconds:y,player_params:e,autoplay:!0}),X.jumpTo(2));if(X.nextAddress!=4)return _.H(X,q.playerEl.getPlayerPromise(),
4);t=X.yieldResult;t.unloadModule("annotations_module");t.addEventListener("onStateChange",function(G){q.onPlayerStateChange(G)});
_.HI(X)})};
_.k.onPlayerStateChange=function(q){if(this.active)switch(this.playing=q===1,q){case 1:_.t7(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.t7(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.k.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.k.resize=function(){var q=this,w;return _.F(function(u){if(u.nextAddress==1)return _.H(u,q.playerEl.getPlayerPromise(),2);w=u.yieldResult;w.setSize(NaN,NaN);_.HI(u)})};
_.c([_.v(),_.h("design:type",Object)],Z0.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Z0.prototype,"playing",void 0);_.c([_.v(),_.h("design:type",Object)],Z0.prototype,"playerId",void 0);_.c([_.Wj("#player"),_.h("design:type",Object)],Z0.prototype,"playerEl",void 0);Z0=_.c([_.E({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],Z0);
_.R(Z0,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(dej!==void 0)return dej;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return dej=q},{mode:1});var ORq;var oIj;var pk=function(){var q=_.Y.apply(this,arguments)||this;q.width=0;return q};
_.O(pk,_.Y);_.k=pk.prototype;_.k.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Fj(this,this.onEnded));this.mp4El.addEventListener("error",_.Fj(this,this.onError))};
_.k.detached=function(){this.videoEl.removeEventListener("ended",_.Fj(this,this.onEnded));this.mp4El.removeEventListener("error",_.Fj(this,this.onError))};
_.k.play=function(){var q=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var w=this.videoEl.play();w?w.then(function(){q.handleVideoStartPlaying()}).catch(function(){_.t7(q.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.t7(this.hostElement,"yt-video-thumbnail-not-playing")};
_.k.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.k.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.k.dataChanged=function(){var q;if((q=this.data)==null?0:q.thumbnailPlaceholder)q=_.wm(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+q+")";this.stop();this.autoplay&&this.play()};
_.k.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.k.onEnded=function(){this.stop();_.t7(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.k.onError=function(){_.t7(this.hostElement,"yt-video-thumbnail-error")};
_.k.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.k.getVideoThumbnail=function(q){if(q&&q.length)return q[0]};
pk.prototype.dataChanged=pk.prototype.dataChanged;_.c([_.v(),_.h("design:type",Object)],pk.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],pk.prototype,"animatePlaceholderOnEntrance",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],pk.prototype,"autoplay",void 0);_.c([_.v({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.h("design:type",Object)],pk.prototype,"videoThumbnail",void 0);
_.c([_.v(),_.h("design:type",Boolean)],pk.prototype,"loop",void 0);_.c([_.v(),_.h("design:type",Boolean)],pk.prototype,"isVideoPlaying",void 0);_.c([_.v(),_.h("design:type",Object)],pk.prototype,"width",void 0);_.c([_.Wj("#mp4"),_.h("design:type",HTMLElement)],pk.prototype,"mp4El",void 0);_.c([_.Wj("#placeholder"),_.h("design:type",HTMLElement)],pk.prototype,"placeholderEl",void 0);_.c([_.Wj("#video"),_.h("design:type",HTMLVideoElement)],pk.prototype,"videoEl",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pk.prototype,"dataChanged",null);pk=_.c([_.JM({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],pk);
_.R(pk,"yt-video-as-thumbnail-details",function(){if(oIj===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;ORq===void 0&&(ORq=document.createElement("template"));var y=ORq;u.call(w,y.content.cloneNode(!0),q.content.firstChild);oIj=q}q=oIj;return q},{mode:2});var $q=function(){var q=_.Y.apply(this,arguments)||this;q.disableGridStateAware=!1;q.animationEnabled=_.T("enable_web_ketchup_hero_animation");q.transitioningOut=!1;q.narrow=!1;q.narrower=!1;q.isCarouselInFeed=!1;q.videoTimeoutJobId=0;q.panelTimeoutJobId=0;q.panelTimeoutJobStartMs=0;q.actionMap={"yt-window-resized":"onWindowResized"};return q};
_.O($q,_.Y);_.k=$q.prototype;_.k.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.k.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.k.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var q;this.player&&((q=this.data)==null?0:q.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.k.attached=function(){this.onWindowResized()};
_.k.detached=function(){this.clearTimeouts()};
_.k.onWindowResized=function(){this.updateSize()};
_.k.computePanelLayout=function(q){return q&&q.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.k.playVideo=function(){var q;this.video&&((q=this.data)==null?0:q.videoThumbnail)&&this.video.play();var w;this.player&&((w=this.data)==null?0:w.inlinePlaybackRenderer)&&this.player.play()};
_.k.stopVideo=function(){var q;this.video&&((q=this.data)==null?0:q.videoThumbnail)&&this.video.stop();var w;this.player&&((w=this.data)==null?0:w.inlinePlaybackRenderer)&&this.player.stop()};
_.k.transitionOut=function(){var q=this;this.transitioningOut=!0;return new Promise(function(w){var u=function(){_.A(q.hostElement).querySelector("#action-button").removeEventListener("animationend",u);_.pi.cancelJob(y);w();q.transitioningOut=!1};
var y=_.mg(_.pi,u,1E3);_.A(q.hostElement).querySelector("#action-button").addEventListener("animationend",u);q.player&&(q.player.playing=!1)})};
_.k.computeMetadataOrder=function(q){return q&&q.metadataOrder&&q.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?q.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.k.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.k.computeAvatarSize=function(q){return q&&q.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.k.onContentClick=function(q){if(!_.LT(_.SQ(q),this.hostElement,["A".toString(),"BUTTON".toString()])){var w;if((w=this.data)==null?0:w.navigationEndpoint){var u;this.componentBehavior.resolveCommand((u=this.data)==null?void 0:u.navigationEndpoint)}}};
_.k.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.k.setBackgroundImage=function(q){if(q=this.getBackgroundImageUrl(q))_.A(this.hostElement).querySelector("#hero").style.backgroundImage="url("+q+")"};
_.k.setScrimLayer=function(q){var w=this.getScrimLayerColorStops(q);q=((q==null?void 0:q.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(q=180);_.Et("HTML_DIR")==="rtl"&&(q=-q);w&&(_.A(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+q+"deg, "+w+")")};
_.k.isNarrower=function(){return this.hostElement.clientWidth<$q.NARROW_VERSION_SIZE};
_.k.getScrimLayerColorStops=function(){var q,w=(q=this.data)==null?void 0:q.scrimColorValues;if(!w)return null;if(w.length===1)return q=_.Je(w[0]),q+" 0%, "+q+" 100%";if(w.length===3){var u=[0,72,98];return w.map(function(y,e){return _.Je(y)+" "+u[e]+"%"}).join(",")}return null};
_.k.getBackgroundImageUrl=function(q){return q&&q.largeFormFactorBackgroundThumbnail?_.wm((q.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||q.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.k.onPlaying=function(){this.startVideoTimeout()};
_.k.onEnded=function(){this.rotate()};
_.k.startPanelTimeout=function(){var q=this;if(!this.panelTimeoutJobId){var w=this.get("data.minPanelDisplayDurationMs");w&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.mg(_.pi,function(){q.rotate()},w))}};
_.k.startVideoTimeout=function(){var q=this;if(!this.videoTimeoutJobId){_.pi.cancelJob(this.panelTimeoutJobId);var w=Date.now()-this.panelTimeoutJobStartMs;w=Math.max(0,this.get("data.minPanelDisplayDurationMs")-w);w=Math.max(this.get("data.minVideoPlayDurationMs")||0,w);this.videoTimeoutJobId=_.mg(_.pi,function(){q.rotate()},w)}};
_.k.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.pi.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.pi.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.k.rotate=function(){this.clearTimeouts();_.t7(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.x$.Object.defineProperties($q.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.A(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.A(this.hostElement).querySelector("#video")}}});
_.x$.Object.defineProperties($q,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
$q.prototype.onEnded=$q.prototype.onEnded;$q.prototype.onPlaying=$q.prototype.onPlaying;$q.prototype.dataChanged=$q.prototype.dataChanged;_.c([_.D(_.zr),_.h("design:type",Object)],$q.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],$q.prototype,"componentBehavior",void 0);_.c([_.D(_.D$.YtdGuideStateAwareBehavior),_.h("design:type",Object)],$q.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.D(_.qnc),_.h("design:type",Object)],$q.prototype,"ytBooleanLogicBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],$q.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],$q.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],$q.prototype,"disableGridStateAware",void 0);_.c([_.v(),_.h("design:type",Object)],$q.prototype,"data",void 0);_.c([_.v({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.h("design:type",String)],$q.prototype,"panelLayout",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],$q.prototype,"animationEnabled",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],$q.prototype,"transitioningOut",void 0);
_.c([_.v({computed:"computeMetadataOrder(data)"}),_.h("design:type",Boolean)],$q.prototype,"metadataOrder",void 0);_.c([_.v({computed:"computeByline(data)"}),_.h("design:type",Object)],$q.prototype,"byline",void 0);_.c([_.v({computed:"computeAvatarSize(data)"}),_.h("design:type",Number)],$q.prototype,"avatarSize",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],$q.prototype,"narrow",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],$q.prototype,"narrower",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],$q.prototype,"layoutStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],$q.prototype,"isCarouselInFeed",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$q.prototype,"dataChanged",null);_.c([_.Gm("yt-default-promo-panel-renderer-playing"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$q.prototype,"onPlaying",null);
_.c([_.Gm("yt-default-promo-panel-renderer-ended"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$q.prototype,"onEnded",null);$q=_.c([_.E({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],$q);
_.R($q,"ytd-default-promo-panel-renderer",function(){if(C3c!==void 0)return C3c;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return C3c=q},{mode:1});_.JE("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var vc=function(){var q=_.Y.apply(this,arguments)||this;q.narrower=!1;q.dotMenuVisible=!1;q.paginationThumbnailsVisible=!1;q.active=!0;q.disableGridStateAware=!1;q.actionMap={"yt-window-resized":"onWindowResized"};return q};
_.O(vc,_.Y);_.k=vc.prototype;_.k.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]]"}}}}}};
_.k.attached=function(){document.addEventListener("yt-page-type-changed",_.Fj(this,this.onPageTypeChange));this.currentPageSubtype=_.N_(location.pathname);this.onWindowResized()};
_.k.detached=function(){this.jobId&&_.pi.cancelJob(this.jobId);this.updateSizeJobId&&_.pi.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Fj(this,this.onPageTypeChange))};
_.k.onPageTypeChange=function(q){this.active=q.detail.newPageSubtype===this.currentPageSubtype};
_.k.onWindowResized=function(){this.updateSize()};
_.k.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.k.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.k.setCarouselItem=function(q){q>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.pi.cancelJob(this.jobId);var w=this.getCurrentPanelElement();w&&w.stopVideo();this.currentItemIndex=q%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(w||(w=this.getCurrentPanelElement()),w.playVideo()):this.startRotationJob()};
_.k.scrollThumbnails=function(q){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var w=this.getCurrentPaginationElement();if(w){var u=_.A(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?u.style.transform="translateX(0)":(w=w.offsetWidth+8,u.style.transform="translateX(-"+w*(q-Math.ceil(Math.floor(this.overlay.offsetWidth/w)/2)+1)+"px)")}}};
_.k.onDataChanged=function(){var q=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.dE(_.pi,function(){q.getCurrentPanelElement().updateSize();q.updateSize()}))};
_.k.getCurrentPanelElement=function(){return _.A(_.A(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.k.getCurrentPaginationElement=function(){return _.A(_.A(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.k.getNavigationClass=function(q,w){return q===w?"selected":""};
_.k.getNavigationDurationStyle=function(q){return"animation-duration:"+(this.get("data.carouselItems."+q+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.k.onNavigationTap=function(q){var w=this,u=q.model.index;u!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){w.setCarouselItem(u)}),this.autorotateActive=!1)};
_.k.onVideoThumbnailEnded=function(){var q=this;if(this.shouldRotate()){var w=this.getCurrentPaginationElement();w&&(w.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){w.classList.remove("finished");q.setNextCarouselItem()}))}};
_.k.onVideoThumbnailError=function(){this.startRotationJob()};
_.k.onVideoNotPlaying=function(){this.startRotationJob()};
_.k.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.k.startRotationJob=function(){var q=this;_.pi.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.pi.addLowPriorityJob(function(){q.getCurrentPanelElement().transitionOut().then(function(){q.setNextCarouselItem()})},this.rotationTimeout))};
_.k.computeDotMenuVisible=function(q,w){return!!q&&!!q.carouselItems&&q.carouselItems.length>1&&!q.paginationThumbnails||!!w};
_.k.computePaginationThumbnailsVisible=function(q,w){var u,y;return((y=q==null?void 0:(u=q.paginationThumbnails)==null?void 0:u.length)!=null?y:0)>1&&!w};
_.k.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.k.computePaginatorAlignment=function(q){return(q==null?void 0:q.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.k.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.k.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.k.isNarrower=function(q){return(q!=null?q:0)<$q.NARROW_VERSION_SIZE};
vc.prototype.activeChanged=vc.prototype.activeChanged;vc.prototype.onVideoNotPlaying=vc.prototype.onVideoNotPlaying;vc.prototype.onVideoThumbnailError=vc.prototype.onVideoThumbnailError;vc.prototype.onVideoThumbnailEnded=vc.prototype.onVideoThumbnailEnded;vc.prototype.onDataChanged=vc.prototype.onDataChanged;_.c([_.D(_.zr),_.h("design:type",Object)],vc.prototype,"ytdGridStateAwareBehavior",void 0);
_.c([_.D(_.D$.YtdGuideStateAwareBehavior),_.h("design:type",Object)],vc.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],vc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],vc.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],vc.prototype,"currentItem",void 0);
_.c([_.v(),_.h("design:type",Number)],vc.prototype,"currentItemIndex",void 0);_.c([_.v(),_.h("design:type",Number)],vc.prototype,"rotationTimeout",void 0);_.c([_.v(),_.h("design:type",Number)],vc.prototype,"loopCount",void 0);_.c([_.v({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.h("design:type",String)],vc.prototype,"paginatorAlignment",void 0);_.c([_.v(),_.h("design:type",Number)],vc.prototype,"jobId",void 0);
_.c([_.v(),_.h("design:type",Number)],vc.prototype,"updateSizeJobId",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],vc.prototype,"isCarouselInFeed",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],vc.prototype,"narrower",void 0);_.c([_.v({computed:"computeDotMenuVisible(data, narrower)"}),_.h("design:type",Object)],vc.prototype,"dotMenuVisible",void 0);
_.c([_.v({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.h("design:type",Object)],vc.prototype,"paginationThumbnailsVisible",void 0);_.c([_.v({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.h("design:type",String)],vc.prototype,"layoutType",void 0);_.c([_.v({value:!0,reflectToAttribute:!0}),_.h("design:type",Boolean)],vc.prototype,"autorotateActive",void 0);_.c([_.v(),_.h("design:type",Object)],vc.prototype,"active",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],vc.prototype,"disableGridStateAware",void 0);_.c([_.Wj("#overlay"),_.h("design:type",HTMLElement)],vc.prototype,"overlay",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vc.prototype,"onDataChanged",null);
_.c([_.Gm("yt-video-thumbnail-ended"),_.Gm("yt-default-promo-panel-renderer-rotate"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vc.prototype,"onVideoThumbnailEnded",null);_.c([_.Gm("yt-video-thumbnail-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vc.prototype,"onVideoThumbnailError",null);
_.c([_.Gm("yt-video-thumbnail-not-playing"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vc.prototype,"onVideoNotPlaying",null);_.c([_.I9("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vc.prototype,"activeChanged",null);vc=_.c([_.E({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],vc);
_.R(vc,"ytd-carousel-item-renderer",function(){if(TXB!==void 0)return TXB;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return TXB=q},{mode:2});var V_6;var fJq;var meq;var AlV;var bS=function(){var q=_.Y.apply(this,arguments)||this;q.originalQuery=null;q.originalEndpoint=null;return q};
_.O(bS,_.Y);bS.prototype.computeShowOriginalQueryWithoutEndpoint_=function(q,w){return!(!q||w)};
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],bS.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],bS.prototype,"correctedText",void 0);_.c([_.v(),_.h("design:type",Object)],bS.prototype,"correctedQuery",void 0);_.c([_.v(),_.h("design:type",Object)],bS.prototype,"correctedEndpoint",void 0);_.c([_.v(),_.h("design:type",Object)],bS.prototype,"originalText",void 0);_.c([_.v(),_.h("design:type",Object)],bS.prototype,"originalQuery",void 0);
_.c([_.v(),_.h("design:type",Object)],bS.prototype,"originalEndpoint",void 0);_.c([_.v({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.h("design:type",Boolean)],bS.prototype,"showOriginalQueryWithoutEndpoint",void 0);bS=_.c([_.JM({is:"yt-search-query-correction",disableElementRegistration:!0})],bS);
_.R(bS,"yt-search-query-correction",function(){if(AlV===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;meq===void 0&&(meq=document.createElement("template"));var y=meq;u.call(w,y.content.cloneNode(!0),q.content.firstChild);AlV=q}q=AlV;return q},{mode:2});_.JE("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var Yq=function(){return _.Y.apply(this,arguments)||this};
_.O(Yq,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Yq.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Yq.prototype,"data",void 0);Yq=_.c([_.JM({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],Yq);
_.R(Yq,"yt-did-you-mean-renderer",function(){if(fJq===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;V_6===void 0&&(V_6=document.createElement("template"));var y=V_6;u.call(w,y.content.cloneNode(!0),q.content.firstChild);fJq=q}q=fJq;return q},{mode:2});var JlK;var z4A;_.JE("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var g0=function(){return _.Y.apply(this,arguments)||this};
_.O(g0,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],g0.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],g0.prototype,"data",void 0);g0=_.c([_.JM({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],g0);
_.R(g0,"yt-including-results-for-renderer",function(){if(z4A===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;JlK===void 0&&(JlK=document.createElement("template"));var y=JlK;u.call(w,y.content.cloneNode(!0),q.content.firstChild);z4A=q}q=z4A;return q},{mode:2});var aJA;var De4;_.JE("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var Em=function(){return _.Y.apply(this,arguments)||this};
_.O(Em,_.Y);Em.prototype.computeExtraClasses_=function(q,w){var u="";q&&(u+=" "+q.toLowerCase().replace(/_/g,"-"));w&&(u+=" "+w.toLowerCase().replace(/_/g,"-"));return u};
Em.prototype.computeUrlImg_=function(){var q=this.data;q.image&&(_.A(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.wm(q.image.thumbnails,Number.MAX_VALUE)+")")};
Em.prototype.computeUrlImg_=Em.prototype.computeUrlImg_;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Em.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Em.prototype,"data",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Em.prototype,"computeUrlImg_",null);Em=_.c([_.JM({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],Em);
_.R(Em,"yt-music-pass-feature-info-renderer",function(){if(De4===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;aJA===void 0&&(aJA=document.createElement("template"));var y=aJA;u.call(w,y.content.cloneNode(!0),q.content.firstChild);De4=q}q=De4;return q},{mode:2});var ZRj;var pKc;_.JE("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var RU=function(){return _.Y.apply(this,arguments)||this};
_.O(RU,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],RU.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],RU.prototype,"data",void 0);RU=_.c([_.JM({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],RU);
_.R(RU,"yt-no-results-found-showing-results-for-renderer",function(){if(pKc===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;ZRj===void 0&&(ZRj=document.createElement("template"));var y=ZRj;u.call(w,y.content.cloneNode(!0),q.content.firstChild);pKc=q}q=pKc;return q},{mode:2});var $eq;var vI4;_.JE("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var cc=function(){return _.Y.apply(this,arguments)||this};
_.O(cc,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],cc.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],cc.prototype,"data",void 0);cc=_.c([_.JM({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],cc);
_.R(cc,"yt-results-without-quotes-renderer",function(){if(vI4===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;$eq===void 0&&($eq=document.createElement("template"));var y=$eq;u.call(w,y.content.cloneNode(!0),q.content.firstChild);vI4=q}q=vI4;return q},{mode:2});var bRA;var Yvh;_.JE("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var SP=function(){return _.Y.apply(this,arguments)||this};
_.O(SP,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],SP.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],SP.prototype,"data",void 0);SP=_.c([_.JM({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],SP);
_.R(SP,"yt-search-no-results-renderer",function(){if(Yvh===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;bRA===void 0&&(bRA=document.createElement("template"));var y=bRA;u.call(w,y.content.cloneNode(!0),q.content.firstChild);Yvh=q}q=Yvh;return q},{mode:2});var gI6;var EIA;_.JE("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var hk=function(){return _.Y.apply(this,arguments)||this};
_.O(hk,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],hk.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],hk.prototype,"data",void 0);hk=_.c([_.JM({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],hk);
_.R(hk,"yt-showing-results-for-renderer",function(){if(EIA===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;gI6===void 0&&(gI6=document.createElement("template"));var y=gI6;u.call(w,y.content.cloneNode(!0),q.content.firstChild);EIA=q}q=EIA;return q},{mode:2});var R46;var clH;var SvV;var h4H;var jP=function(){var q=_.Y.apply(this,arguments)||this;q.answerExpanded=!1;return q};
_.O(jP,_.Y);jP.prototype.toggleAnswer_=function(q){var w=_.he(q);w&&w.classList.contains("yt-simple-endpoint")||(q.preventDefault(),q.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
jP.prototype.toggleAnswer_=jP.prototype.toggleAnswer_;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],jP.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],jP.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],jP.prototype,"answerExpanded",void 0);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],jP.prototype,"toggleAnswer_",null);
jP=_.c([_.JM({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],jP);
_.R(jP,"yt-generic-faq-question-renderer",function(){if(h4H===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;SvV===void 0&&(SvV=document.createElement("template"));var y=SvV;u.call(w,y.content.cloneNode(!0),q.content.firstChild);h4H=q}q=h4H;return q},{mode:2});_.JE("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var lS=function(){return _.Y.apply(this,arguments)||this};
_.O(lS,_.Y);lS.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],lS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],lS.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],lS.prototype,"data",void 0);lS=_.c([_.JM({is:"yt-faq-section-renderer",disableElementRegistration:!0})],lS);
_.R(lS,"yt-faq-section-renderer",function(){if(clH===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;R46===void 0&&(R46=document.createElement("template"));var y=R46;u.call(w,y.content.cloneNode(!0),q.content.firstChild);clH=q}q=clH;return q},{mode:2});var jkm;var lJ6;_.JE("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var Lk=function(){return _.Y.apply(this,arguments)||this};
_.O(Lk,_.Y);
Lk.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"}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Lk.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Lk.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Lk.prototype,"data",void 0);Lk=_.c([_.JM({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],Lk);
_.R(Lk,"yt-offer-item-expanded-renderer",function(){if(lJ6===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;jkm===void 0&&(jkm=document.createElement("template"));var y=jkm;u.call(w,y.content.cloneNode(!0),q.content.firstChild);lJ6=q}q=lJ6;return q},{mode:2});var L7x;var M_A;_.JE("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var MN=function(){return _.Y.apply(this,arguments)||this};
_.O(MN,_.Y);
MN.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"}}}}};
MN.prototype.computeFullWidthMode=function(q){return!(!q||!q.fullWidthMode)};
MN.prototype.computeBorderlessMode=function(q){return!(!q||!q.borderlessMode)};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],MN.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],MN.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],MN.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.h("design:type",Boolean)],MN.prototype,"fullWidthMode",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.h("design:type",Boolean)],MN.prototype,"borderlessMode",void 0);MN=_.c([_.JM({is:"yt-offer-item-renderer",disableElementRegistration:!0})],MN);
_.R(MN,"yt-offer-item-renderer",function(){if(M_A===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;L7x===void 0&&(L7x=document.createElement("template"));var y=L7x;u.call(w,y.content.cloneNode(!0),q.content.firstChild);M_A=q}q=M_A;return q},{mode:2});var K76;var BXh;_.JE("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var Kk=function(){return _.Y.apply(this,arguments)||this};
_.O(Kk,_.Y);Kk.prototype.computeAriaLevel_=function(q){return this.getLevelID_(q)};
Kk.prototype.getLevelID_=function(q){return(q=q.match(/[0-9]+$/))&&q.length==1?q[0]:"1"};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Kk.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Kk.prototype,"data",void 0);_.c([_.v({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.h("design:type",String)],Kk.prototype,"ariaLevel",void 0);_.c([_.v({value:"heading",reflectToAttribute:!0}),_.h("design:type",String)],Kk.prototype,"role",void 0);
_.c([_.v({value:-1,reflectToAttribute:!0}),_.h("design:type",Number)],Kk.prototype,"tabindex",void 0);Kk=_.c([_.JM({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],Kk);
_.R(Kk,"yt-subscription-product-header-renderer",function(){if(BXh===void 0){var q=document.createElement("template");_.f(q,"\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");q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;K76===void 0&&(K76=document.createElement("template"));var y=K76;u.call(w,y.content.cloneNode(!0),q.content.firstChild);BXh=q}q=BXh;return q},{mode:2});var xec;var q2K;_.JE("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Bc=function(){return _.Y.apply(this,arguments)||this};
_.O(Bc,_.Y);Bc.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:_.zW("menuRenderer"),events:!0}}};
Bc.prototype.onStampFinished_=function(){_.A(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Bc.prototype.onStampFinished_=Bc.prototype.onStampFinished_;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Bc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Bc.prototype,"data",void 0);_.c([_.Gm("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Bc.prototype,"onStampFinished_",null);
Bc=_.c([_.JM({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Bc);
_.R(Bc,"yt-subscription-product-renderer",function(){if(q2K===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;xec===void 0&&(xec=document.createElement("template"));var y=xec;u.call(w,y.content.cloneNode(!0),q.content.firstChild);q2K=q}q=q2K;return q},{mode:2});var w$4;var uRc;_.JE("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var xq=function(){return _.Y.apply(this,arguments)||this};
_.O(xq,_.Y);xq.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
xq.prototype.imageScrimColorValuesChanged_=function(){var q,w=(q=this.data)==null?void 0:q.imageScrimColorValues;_.A(this.hostElement).querySelector("#scrim").style.backgroundColor=w?_.Je(w[0]):"transparent"};
xq.prototype.imageScrimColorValuesChanged_=xq.prototype.imageScrimColorValuesChanged_;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],xq.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],xq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],xq.prototype,"data",void 0);
_.c([_.nL("data.imageScrimColorValues"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xq.prototype,"imageScrimColorValuesChanged_",null);xq=_.c([_.JM({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],xq);
_.R(xq,"yt-subscription-product-upsell-offer-renderer",function(){if(uRc===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;w$4===void 0&&(w$4=document.createElement("template"));var y=w$4;u.call(w,y.content.cloneNode(!0),q.content.firstChild);uRc=q}q=uRc;return q},{mode:2});var yd4;var e8A;var kRT;var tYx;var P$K;var X$6;var qf=function(){return _.Y.apply(this,arguments)||this};
_.O(qf,_.Y);qf.prototype.onYtServiceRequestError_=function(q){_.xH(this.hostElement,q.detail.error.message)};
qf.prototype.onYtServiceRequestError_=qf.prototype.onYtServiceRequestError_;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],qf.prototype,"data",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],qf.prototype,"collapsible",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],qf.prototype,"isManageRed",void 0);
_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],qf.prototype,"onYtServiceRequestError_",null);qf=_.c([_.JM({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],qf);
_.R(qf,"yt-single-ypc-offer-renderer",function(){if(X$6===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;P$K===void 0&&(P$K=document.createElement("template"));var y=P$K;u.call(w,y.content.cloneNode(!0),q.content.firstChild);X$6=q}q=X$6;return q},{mode:2});var wU=function(){return _.Y.apply(this,arguments)||this};
_.O(wU,_.Y);wU.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],wU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],wU.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],wU.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],wU.prototype,"isManageRed",void 0);wU=_.c([_.JM({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],wU);
_.R(wU,"yt-single-ypc-offer-list-renderer",function(){if(tYx===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;kRT===void 0&&(kRT=document.createElement("template"));var y=kRT;u.call(w,y.content.cloneNode(!0),q.content.firstChild);tYx=q}q=tYx;return q},{mode:2});var Fej;var GRK;_.JE("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var u0=function(){return _.Y.apply(this,arguments)||this};
_.O(u0,_.Y);u0.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],u0.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],u0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],u0.prototype,"data",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],u0.prototype,"isManageRed",void 0);u0=_.c([_.JM({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],u0);
_.R(u0,"yt-ypc-offers-list-renderer",function(){if(GRK===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;Fej===void 0&&(Fej=document.createElement("template"));var y=Fej;u.call(w,y.content.cloneNode(!0),q.content.firstChild);GRK=q}q=GRK;return q},{mode:2});_.JE("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var yf=function(){return _.Y.apply(this,arguments)||this};
_.O(yf,_.Y);
yf.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}}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],yf.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],yf.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],yf.prototype,"data",void 0);yf=_.c([_.JM({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],yf);
_.R(yf,"yt-unlimited-manage-subscription-page-renderer",function(){if(e8A===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;yd4===void 0&&(yd4=document.createElement("template"));var y=yd4;u.call(w,y.content.cloneNode(!0),q.content.firstChild);e8A=q}q=e8A;return q},{mode:2});var nW6;var H3K;var eS=function(){return _.Y.apply(this,arguments)||this};
_.O(eS,_.Y);_.k=eS.prototype;_.k.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.k.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.k.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.k.onKeypress_=function(q){q.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.k.handleHeaderTap_=function(q){q.preventDefault();q.stopPropagation();this.expandOffers_()};
_.k.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.k.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
eS.prototype.dataChanged_=eS.prototype.dataChanged_;_.c([_.D(_.IZ),_.h("design:type",Object)],eS.prototype,"ironA11yKeysBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],eS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],eS.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],eS.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],eS.prototype,"offersVisible_",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eS.prototype,"dataChanged_",null);eS=_.c([_.JM({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],eS);
_.R(eS,"yt-collapsible-ypc-offer-renderer",function(){if(H3K===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;nW6===void 0&&(nW6=document.createElement("template"));var y=nW6;u.call(w,y.content.cloneNode(!0),q.content.firstChild);H3K=q}q=H3K;return q},{mode:2});var Wea;var sCm;_.JE("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var k3=function(){return _.Y.apply(this,arguments)||this};
_.O(k3,_.Y);_.k=k3.prototype;_.k.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.k.dataChanged_=function(){if(this.data.backgroundImage){var q=_.wm(this.data.backgroundImage.thumbnails,screen.width),w=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=w?"linear-gradient(180deg, "+w+"), url("+q+")":"url("+q+")";this.data.gtmId&&_.Wd(this.data.gtmId,_.Et("GL",""))}};
_.k.onYtServiceRequestError_=function(q){_.xH(this.hostElement,q.detail.error.message)};
_.k.getScrimLayerColorStops_=function(){var q,w,u=(q=this.data.unlimitedHeaderV2Data)==null?void 0:(w=q.unlimitedHeaderV2Data)==null?void 0:w.scrimLayerColors;if(!u)return null;var y=100/u.length;return u.map(function(e,t){t*=y;return _.Je(e)+" "+t+"%"}).join(",")};
_.k.computeLogoWithPadding=function(q){var w,u,y;return(q=(w=q.unlimitedLogoImage)==null?void 0:(u=w.thumbnails)==null?void 0:(y=u[0])==null?void 0:y.height)&&q%31===0?!0:!1};
k3.prototype.onYtServiceRequestError_=k3.prototype.onYtServiceRequestError_;k3.prototype.dataChanged_=k3.prototype.dataChanged_;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],k3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],k3.prototype,"ytRendererBehavior",void 0);_.c([_.v({computed:"computeLogoWithPadding(data)"}),_.h("design:type",Boolean)],k3.prototype,"logoWithPadding",void 0);
_.c([_.v(),_.h("design:type",Object)],k3.prototype,"data",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],k3.prototype,"dataChanged_",null);_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],k3.prototype,"onYtServiceRequestError_",null);k3=_.c([_.JM({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],k3);
_.R(k3,"yt-unlimited-page-header-renderer",function(){if(sCm===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;Wea===void 0&&(Wea=document.createElement("template"));var y=Wea;u.call(w,y.content.cloneNode(!0),q.content.firstChild);sCm=q}q=sCm;return q},{mode:2});var NqK;var QC6;_.JE("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var t4=function(){return _.Y.apply(this,arguments)||this};
_.O(t4,_.Y);t4.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],t4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],t4.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],t4.prototype,"data",void 0);t4=_.c([_.JM({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],t4);
_.R(t4,"yt-unlimited-user-notification-renderer",function(){if(QC6===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;NqK===void 0&&(NqK=document.createElement("template"));var y=NqK;u.call(w,y.content.cloneNode(!0),q.content.firstChild);QC6=q}q=QC6;return q},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.fR6=_.LL(function(q){var w=_.lf(q,{numberOfChips:5}).numberOfChips;return _.W("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.W(_.mL,{each:function(){return Array(w==null?void 0:w())}},function(){return _.W("div",{class:"ytGhostChipShelfChip"})}))},"cg");_.mZ4=_.LL(function(q){var w=_.nr(),u=_.tG().resolve(_.SD);_.DR(function(){requestAnimationFrame(function(){var e;(e=w.lottieEl)==null||e.addEventListener("DOMLoaded",function(){var t;(t=q.onLottieLoaded)==null||t.call(q)})})});
var y={};return _.W("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var e;return((e=q.data)==null?void 0:e.call(q).targetId)||""}},_.W(_.WR,{className:_.HR((y.ytChatLoadingViewModelRtl=u==="rtl",y)),
animationName:"YOUCHAT_LOADER",data:function(){var e;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((e=q.data)==null?void 0:e.call(q).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:w}))},"dg");
}catch(e){_._DumpException(e)}
try{
var M94,Kxq,BBh,xCj,qqV,wIa,ugB,Mj,Kl,e1K,k7c,tR4,XIV,QQx,BD,NY6,nja,sQB,W$H,HmT,G7q,ICm,imc,rDV,UrA,x5,TYx,CBT,drB,mrH,fCA,VRH,Om6,ojA,ADK,JDq,z1h,aCH,DrV,vjA,gja,EjV,R1V,SqB,jQ4,L$6,MRh,K$H,BY6,qfT,wXB,uO6,ywT,eqa,kcm,t3K,XXm,HgV,nSc,FNj,WNq,GcK,sr6,igh,IL6,Nb4,Qrm,u2,rwK,UKj,Caq,oSm,zqA,aLT,DKH,ZgB,pXc,$K6,vSh,bg6,Yfx,gSA,Rq6,cwV,SfH,yDh,mKB;
_.ld=function(q){var w=new _.fv("Error accessing DB");return _.TSs().then(function(u){return new Promise(function(y,e){try{var t=u.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(q);t.onsuccess=function(){var X=t.result;y(X?X.value:null)};
t.onerror=function(){w.params={key:q,source:"onerror"};e(w)}}catch(X){w.params={key:q,
thrownError:String(X)},e(w)}})},function(){return null})};
_.Lx6=function(q,w){var u=_.Qmf(w);u!=="javascript:"&&u!=="data:"&&q.setAttribute("href",w)};
M94=function(q,w){return _.HQ(q.entities,"flowStateEntity",w)};
Kxq=function(q){return(q=q.getOption("captions","track"))?!!q.displayName:!1};
BBh=function(q,w){w=w.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(w==null||!w.length)return q;var u=w.filter(function(X){return X});
w=q.filter(function(X){return X.languageCode.startsWith("en")});
u=_.P(u);for(var y=u.next();!y.done;y=u.next())if(y=y.value,w.length){var e=w[0],t=Object.assign({},e);e.languageCode!==y.languageCode&&(t.displayName=e.languageName+" >> "+y.languageName,t.translationLanguage=y,q.push(t))}return q};
xCj=function(q){var w,u=(w=q.getOption("captions","tracklist",{includeAsr:!0}))!=null?w:[];_.T("mweb_watch_captions_enable_auto_translate")&&(u=BBh(u,q));return u};
qqV=function(q){return _.v4(q,function(w){return w.languageCode==="en"})};
wIa=function(q){var w=Ll;if(Kxq(q))q.setOption("captions","stickyLoading",{}),q.setOption("captions","track",{});else{var u=_.v4(xCj(q),function(y){return y.displayName===w});
q.setOption("captions","track",u)}};
ugB=function(q){if(!q)return 0;var w=q.getPresentingPlayerType(),u=q.getVideoData();return u&&u.isLive?(q=q.getProgressState(w),q.seekableEnd-q.seekableStart):q.getDuration(w)};
Mj=function(q,w){_.a5(w,q,function(){return yDh[w]},function(u){yDh[w]=u;
if(!_.T("mweb_player_ve_show_ks")){var y=_.pN(0);y&&u&&_.cw(y,u)}})};
Kl=function(q){(q=yDh[q])&&_.Ph(_.Qz(),q)};
e1K=function(q,w){for(var u=_.P(Object.keys(q)),y=u.next();!y.done;y=u.next())if(y=y.value,q[y]!==w[y])return!1;return!0};
k7c=function(){return document.getElementById("player-control-overlay")};
tR4=function(q){q!==-1&&!_.T("player_controls_log_creation_killswitch")&&k7c()&&(_.D_("pcu_cs",q),_.D_("pcu_ce"))};
XIV=function(q){return _.W("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(q.subscribeButton?[q.subscribeButton,q.channelAccess]:[q.channelAccess]).map(function(w){return _.W("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.W("div",{class:"yt-profile-identity-info-view-model-wiz--button"},PBT(w)))}))};
_.F$j=function(q){var w=q.data;q=q.hideDivider;var u={};u=(u["yt-profile-identity-info-view-model-wiz__frame"]=!0,u["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!w.channelBanner,u);u={class:_.s3(u)};var y,e={imageBannerViewModel:{image:(y=w.channelBanner)==null?void 0:y.image,style:"IMAGE_BANNER_STYLE_INSET"}};y=_.W("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},w.channelBanner?_.W("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
PBT(e,{imageBannerViewModel:{isPositionRelative:!0}})):null);e=_.W("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},PBT(w.avatar));var t;var X=_.W("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.W("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},w.channelDisplayName),w.verifiedOrOacBadge?_.W("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.W(_.ln,{data:{thumbnails:[{url:(t=w.verifiedOrOacBadge)==null?void 0:t.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);t=_.W("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},X,PBT(w.threeDotMenu));X=_.W("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.W("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.W("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},w.channelHandle),w.channelPronouns&&w.channelHandle?_.W("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.W("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},w.channelPronouns)),_.W("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.W("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},w.leftOfBulletInfo),w.leftOfBulletInfo&&w.rightOfBulletInfo?_.W("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.W("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},w.rightOfBulletInfo)));t=_.W("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},t,X);return _.W("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.W("div",u,y,_.W("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},e,t),w.channelDescription?_.W("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},w.channelDescription):
null,XIV(w),q?null:_.W("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
QQx=function(q,w){var u=_.jf(q,{}),y=G7q("top",w),e=G7q("bottom",w),t=G7q("left",w),X=G7q("right",w);return _.rm({top:function(){return BD(u().position,y)},
bottom:function(){return BD(u().position,e)},
left:function(){return BD(u().position,t)},
right:function(){return BD(u().position,X)},
position:function(){return BD(u().positionType,nja)},
height:function(){return BD(u().height,x5)},
width:function(){return BD(u().width,x5)},
"min-width":function(){return BD(u().minWidth,x5)},
"min-height":function(){return BD(u().minHeight,x5)},
"max-width":function(){return BD(u().maxWidth,x5)},
"max-height":function(){return BD(u().maxHeight,x5)},
"aspect-ratio":function(){return BD(u().aspectRatio,String)},
"margin-top":function(){return BD(u().margin,y)},
"margin-bottom":function(){return BD(u().margin,e)},
"margin-left":function(){return BD(u().margin,t)},
"margin-right":function(){return BD(u().margin,X)},
"padding-top":function(){return BD(u().padding,y)},
"padding-bottom":function(){return BD(u().padding,e)},
"padding-left":function(){return BD(u().padding,t)},
"padding-right":function(){return BD(u().padding,X)},
"flex-direction":function(){return BD(u().flexDirection,HmT)},
"justify-content":function(){return BD(u().justifyContent,W$H)},
"align-items":function(){return BD(u().alignItems,sQB)},
"flex-grow":function(){return BD(u().flexGrow,String)},
"flex-shrink":function(){return BD(u().flexShrink,String)},
"flex-basis":function(){return BD(u().flexBasis,x5)},
"align-self":function(){return BD(u().alignSelf,sQB)},
"flex-wrap":function(){return BD(u().flexWrap,NY6)},
"align-content":function(){return BD(u().alignContent,sQB)}})};
BD=function(q,w){return q!==void 0?w(q):void 0};
NY6=function(q){switch(q){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
nja=function(q){switch(q){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
sQB=function(q){switch(q){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"}};
W$H=function(q){switch(q){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"}};
HmT=function(q){switch(q){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"}};
G7q=function(q,w){var u=w==="rtl";switch(q){case "top":var y=ICm;break;case "bottom":y=imc;break;case "left":y=rDV;break;default:y=UrA}return function(e){return BD(y(e,u),x5)}};
ICm=function(q){var w=q.top;var u=q.vertical;q=q.all;var y;return(y=w!=null?w:u)!=null?y:q};
imc=function(q){var w=q.bottom;var u=q.vertical;q=q.all;var y;return(y=w!=null?w:u)!=null?y:q};
rDV=function(q,w){var u=q.left;var y=q.end;var e=q.start;var t=q.horizontal;q=q.all;var X,G;return(G=(X=u!=null?u:w?y:e)!=null?X:t)!=null?G:q};
UrA=function(q,w){var u=q.right;var y=q.end;var e=q.start;var t=q.horizontal;q=q.all;var X,G;return(G=(X=u!=null?u:w?e:y)!=null?X:t)!=null?G:q};
x5=function(q){var w=q.value;switch(q.unit){case "YPC_DIMENSION_UNIT_POINT":return w+"px";case "YPC_DIMENSION_UNIT_FRACTION":return w+"%";default:return""+w}};
TYx=function(q){switch(q){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"}};
CBT=function(q){var w=q!=null?q:{};q=w.fontRole;var u=w.fontSize;w=w.fontWeight;if(q!==null&&u!==null)switch(q){case "YPC_FONT_ROLE_DISPLAY":switch(u){case "YPC_FONT_SIZE_L":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(u){case "YPC_FONT_SIZE_L":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return w===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(u){case "YPC_FONT_SIZE_XL":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
drB=function(q,w){return _.HQ(q.entities,"pdpStateEntity",w)};
mrH=function(q,w,u){function y(N){return Object.values(N).map(function(Q){var I=Q.productId;Q=Q.pricingOptionIndex;return Om6(e(I).pricingOptions,Q).pricingOptionId})}
function e(N){return G().get(N)}
function t(N){N=y(N);u(N)}
var X=ojA([q,w],function(N,Q){var I=N==null?void 0:N.selectedPricingOptions;N={};var U=!0;if(I&&Q.length)for(var d=_.P(Q),V=d.next();!V.done;V=d.next()){V=V.value;var J=VRH(V.pricingOptions,function(a){a:{a=a.pricingOptionId;for(var b=_.P(I),g=b.next();!g.done;g=b.next())if(g.value===a){a=!0;break a}a=!1}return a});
J>=0&&(U=!1,N[V.groupId]={productId:V.productId,pricingOptionIndex:J})}U&&Q.length&&(N[Q[0].groupId]={productId:Q[0].productId,pricingOptionIndex:0});return N}),G=ojA([w],function(N){return new Map(N.map(function(Q){return[Q.productId,
Q]}))}),n=ojA([w],function(N){var Q=new Map;
N=_.P(N);for(var I=N.next();!I.done;I=N.next()){var U=I.value;I=U.groupId;var d=U.productId;U=_.P(fCA(U.pricingOptions));for(var V=U.next();!V.done;V=U.next()){var J=_.P(V.value);V=J.next().value;J=J.next().value;Q.set(J.pricingOptionId,{groupId:I,productId:d,index:V,pricingOption:J})}}return Q});
return{getProductById:e,isProductSelected:function(N){var Q=e(N);if(!Q)return!1;var I;return((I=X()[Q.groupId])==null?void 0:I.productId)===N},
getSelectedPricingOptions:function(){return Object.values(X()).map(function(N){var Q=N.productId;N=N.pricingOptionIndex;return Om6(e(Q).pricingOptions,N)})},
getSelectedProductByGroupId:function(N){var Q;return(N=(Q=X()[N])==null?void 0:Q.productId)?e(N):void 0},
onProductSelected:function(N){var Q=e(N);if(Q){var I=X(),U;if(((U=I[Q.groupId])==null?void 0:U.productId)!==N){var d,V;U=(V=(d=I[Q.groupId])==null?void 0:d.pricingOptionIndex)!=null?V:0;d=0;for(V=Q.pricingOptions[Symbol.iterator]();!V.next().done;)++d;d<=U&&(U=0);d={};t(Object.assign({},I,(d[Q.groupId]={productId:N,pricingOptionIndex:U},d)))}}},
onPricingOptionSelected:function(N){var Q=n().get(N);if(Q){N=Q.groupId;var I=Q.productId;Q=Q.index;var U=X(),d,V;if(((d=U[N])==null?void 0:d.productId)!==I||((V=U[N])==null?void 0:V.pricingOptionIndex)!==Q)d={},t(Object.assign({},U,(d[N]={productId:I,pricingOptionIndex:Q},d)))}},
onClearGroupSelected:function(N){var Q=X();Q[N]&&(Q=Object.fromEntries(Object.entries(Q).filter(function(I){return _.P(I).next().value!==N})),t(Q))}}};
fCA=function(q){return function u(){var y,e,t,X,G;return _.GY6(u,function(n){switch(n.nextAddress){case 1:_.Fg(n,2),y=0,e=_.P(q),t=e.next();case 4:if(t.done){n.jumpTo(2);break}X=t.value;G=_.n7u;return _.H(n,[y++,X],7);case 7:G(n.yieldResult);t=e.next();n.jumpTo(4);break;case 2:_.Xg(n),_.G7(n,0)}})}()};
VRH=function(q,w){q=_.P(fCA(q));for(var u=q.next();!u.done;u=q.next()){var y=_.P(u.value);u=y.next().value;y=y.next().value;if(w(y))return u}return-1};
Om6=function(q,w){q=_.P(fCA(q));for(var u=q.next();!u.done;u=q.next()){var y=_.P(u.value);u=y.next().value;y=y.next().value;if(u===w)return y}};
ojA=function(q,w){var u,y;return function(){for(var e=q.map(function(X){return X()}),t=0;t<e.length;t++)if(!u||e[t]!==u[t]){u=e;
y=w.apply(null,_.Cm(e));break}return y}};
ADK=function(q){var w;return!!(q.productId&&q.groupId&&((w=q.pricingOptions)==null?0:w.length)&&q.pricingOptions.every(function(u){return u.pricingOptionId}))};
JDq=function(q,w,u){return mrH(q,ojA([w],function(y){return y.filter(ADK)}),u)};
z1h=function(q,w){return w.length===0?[q]:[q.slice(0,w[0]),q.slice(w[0])].filter(function(u){return u.length>0})};
aCH=function(q){switch(q){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""}};
DrV=function(q,w,u,y){y=Object.assign({},y);_.AB(y,qh,{selectedOptionId:q,primaryButtonOverride:u});_.cj().dispatch(_.IH("flowStateEntity",w,y))};
_.$rB=function(){if(!Zmm){var q=_.P(_.r4(new Map,void 0,"UJImUe"));Zmm=q.next().value;pI6=q.next().value}return Zmm};
vjA=function(q){if(q)return _.$rB()().get(q)};
_.bmm=function(q,w){if(q&&w){var u=_.$rB();u().set(q,w);q=u();pI6(new Map(q))}};
_.YqH=function(q){return{onSubmit:function(){var w;(w=vjA(q()))==null||w.onSubmit()},
isValid:function(){var w=vjA(q());return w?w.isValid():!0},
isSubmitting:function(){var w,u;return!!((w=vjA(q()))==null?0:(u=w.isSubmitting)==null?0:u.call(w))}}};
gja=function(q,w){return _.HQ(q.entities,"contextNoteFeedEntityPayload",w)};
EjV=function(q){q.style.height="auto";q.style.height=q.scrollHeight+"px"};
R1V=function(q){return[q.syncStep,q.asyncStep].filter(function(w){return w!==void 0})};
SqB=function(q){var w,u,y;if(q=(w=q.structuredContextNoteFormSchema)==null?void 0:(u=w.fieldSchemas)==null?void 0:(y=u.noteBody)==null?void 0:y.validationSchema)for(w=_.P(R1V(q)),u=w.next();!u.done;u=w.next()){u=u.value.rules;if(!u)break;u=_.P(u);for(u=u.next();!u.done;u=u.next())return _.C(u.value,_.cDA)}};
jQ4=function(q){if(q){q=_.P(R1V(q));for(var w=q.next();!w.done;w=q.next()){w=w.value.rules;if(!w)break;w=_.P(w);for(w=w.next();!w.done;w=w.next())return _.C(w.value,h1j)}}};
L$6=function(q){if(q){q=_.P(R1V(q));for(var w=q.next();!w.done;w=q.next()){w=w.value.rules;if(!w)break;w=_.P(w);for(w=w.next();!w.done;w=w.next())return _.C(w.value,lCq)}}};
MRh=function(q){q=/^https?:\/\//.test(q)?q:"http://"+q;try{var w=_.h1(q)}catch(u){return!1}if(w.toString()!==q)return!1;q=w.JSC$7931_domain_.split(".");return q.length>1&&q.every(function(u){return!!u})};
K$H=function(q,w,u,y){var e;y=(e=y.structuredContextNoteData)==null?void 0:e.createCommentEndpoint;if(e=_.C(y,_.QZa))return e.commentText=_.jN(q),e.videoPositionMention=w,e.sources=u,y};
BY6=function(q){return q==null?void 0:q.stringValue};
qfT=function(q,w,u){q=q.map(function(y,e){return{listItemViewModel:{title:y.title,subtitle:y.subtitle,leadingImage:y.leadingImage,trailingImage:e===w?xrh:void 0,rendererContext:{commandContext:{onTap:y.onTap}}}}});
return Object.assign({},u&&{header:{panelHeaderViewModel:{title:u}}},{content:{listViewModel:{listItems:q}}})};
wXB=function(q,w){if(q&&w)switch(w){case "SELECTION_TYPE_BOOL":return q.boolValue;case "SELECTION_TYPE_INT":return q.intValue;case "SELECTION_TYPE_STRING":return q.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return q.privacyStatusValue}};
uO6=function(q){var w;q=(w=q.options)==null?void 0:w.findIndex(function(u){return u.isSelected});
return q===void 0?-1:q};
ywT=function(q,w,u){var y=function(){return q().label},e={},t=_.HR("ytDropdownViewModelLabel",(e.ytDropdownViewModelLabelError=w,e));
return _.W(_.r,{cond:function(){return q().label&&!(u()===-1&&q().label&&!q().placeholderText)},
then:function(){return _.W("div",{class:t},_.W(_.Lr,{text:y}))}})};
eqa=function(q,w){var u={};u=_.HR("ytDropdownViewModelTitle",(u.ytDropdownViewModelTitlePlaceholder=function(){return w()===-1},u));
return _.W("div",{class:u},_.W(_.Lr,{text:function(){var y=q();var e=w();if(e===-1)y=y.placeholderText?y.placeholderText:y.label;else{var t,X;y=(t=y.options)==null?void 0:(X=t[e])==null?void 0:X.title}return y}}))};
kcm=function(q,w){var u=function(){return q().hint};
return _.W(_.GS,null,_.W(_.r,{cond:function(){return u()&&!w()},
then:function(){return _.W("div",{class:_.HR("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.W(_.Lr,{text:u,className:"ytDropdownViewModelSupportText"}))}}),_.W(_.r,{cond:w,
then:function(){return _.W("div",{id:"dropdown-view-model-error",role:"alert",class:_.HR("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.W(_.U3,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.W(_.Lr,{text:w,className:"ytDropdownViewModelSupportText"}))}}))};
t3K=function(q,w){var u=_.tG().resolve(_.c$$);_.p4(function(){var y=q().id;y&&u!=null&&u.dropdownMap.set(y,w)})};
XXm=function(q){q=_.C(q.scheduleButton,Paj);q=_.C(q==null?void 0:q.primaryButton,_.oH);q=_.C(q==null?void 0:q.onTap,_.Dh);var w,u,y=((u=_.C(q,_.Ww))==null?void 0:u.commands)||[q];u=_.P(y);for(q=u.next();!q.done&&!(w=_.C(q.value,_.sqr));q=u.next());var e;w=(e=w)==null?void 0:e.createBroadcastRequest;if(!w)throw Error("Hj");return w};
HgV=function(q,w,u){u=u===void 0?{}:u;var y,e;return _.F(function(t){if(y=FNj(w))return t.return(y);(e=GcK(q,w,u))&&nSc(w,e);return t.return(e)})};
nSc=function(q,w){var u=WNq(q);u&&w.then(function(y){_.tG().resolve(_.wu).put(u,new _.ub({innertubeResponse:y}))})};
FNj=function(q){if(q=WNq(q)){var w=_.tG().resolve(_.wu);if(w.has(q))return w.get(q).then(function(u){return u==null?void 0:_.Pr(u)})}return null};
WNq=function(q){var w=_.C(q.endpoint,_.LN);if(w!=null&&w.videoId)return w={videoId:w.videoId},_.T("web_imp_player_mute_params")&&(w.mutedAtStart=q.startPlaybackInMutedState),_.l9("inline_playback",w)};
GcK=function(q,w,u){q=_.cR(q,w.endpoint,sr6(w,u)).then(function(y){return y});
return Promise.resolve(q)};
sr6=function(q,w){w=_.T("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!q.startPlaybackInMutedState},w):Object.assign({},{vis:5,autonav:"1"},w);var u;w={contentPlaybackContext:_.Cp(w,(u=_.C(q.endpoint.commandMetadata,_.wk))==null?void 0:u.url,window.location.href)};_.T("web_imp_player_mute_params")&&(w.overrideMutedAtStart=!q.startPlaybackInMutedState);return w};
igh=function(q,w){var u=window.MutationObserver;u&&(w5=new u(function(y,e){y=_.P(y);for(var t=y.next();!t.done;t=y.next()){t=t.value;var X;if(X=t.type==="childList"&&t.target)a:{X=q;t=Nb4(t.target);X=Nb4(X);for(var G=null,n=0;n<t.length;n++)if(X.includes(t[n])){if(n===0){X=!1;break a}G=t[n];break}G?(t=Qrm(t,G),X=Qrm(X,G),X=t<X):X=!1}if(X){w();e.disconnect();break}}}),(u=IL6())&&w5.observe(u,{childList:!0,
subtree:!0}))};
IL6=function(){var q=document.getElementsByTagName("ytd-rich-grid-renderer");if(q.length>0)return q[0];q=document.getElementsByTagName("ytd-section-list-renderer");return q.length>0?q[0]:null};
Nb4=function(q){for(var w=[];q;)w.push(q),q=q.parentElement;return w};
Qrm=function(q,w){var u=Array.from(w.children);w=q.indexOf(w);return w>0?u.indexOf(q[w-1]):-1};
u2=function(q,w,u){u=u===void 0?{}:u;return _.ID(q,u,w)};
rwK=function(q){switch(q){case "MUSIC":return!0;default:return!1}};
UKj=function(q){return q==null?void 0:q.filter(function(w){return w.premiereTrailerBadgeRenderer})};
Caq=function(q){var w,u=q==null?void 0:(w=q.find(function(I){return I.thumbnailOverlayTimeStatusRenderer}))==null?void 0:w.thumbnailOverlayTimeStatusRenderer,y,e;
if((u==null?0:(y=u.icon)==null?0:y.iconType)&&rwK(u==null?void 0:(e=u.icon)==null?void 0:e.iconType)){var t;return{icon:u==null?void 0:(t=u.icon)==null?void 0:t.iconType}}var X,G;var n=(q=(X=q==null?void 0:(n=q.find(function(I){return I.thumbnailBottomOverlayViewModel}))==null?void 0:n.thumbnailBottomOverlayViewModel)==null?void 0:(G=X.badges)==null?void 0:G.find(function(I){var U,d;
return((U=_.C(I,Tb6))==null?void 0:(d=U.inlinePlaybackBadgeData)==null?void 0:d.replicateAsTimestamp)===!0}))?_.C(q,Tb6):void 0;
if(n==null?0:n.icon){var N,Q;if((n=(N=_.Ftl(n==null?void 0:n.icon))==null?void 0:(Q=N.clientResource)==null?void 0:Q.imageName)&&rwK(n))return{icon:n}}return{}};
oSm=function(q,w){var u="",y="";switch(q){case -1:case 0:u=w?"VOLUME_OFF":"VOLUME_OFF_FILLED";y=dK4;break;case 1:u=w?"VOLUME_UP_OUTLINE":"VOLUME_UP";y=Og6;break;default:_.Xm(q)}return{iconName:u,ariaLabel:y}};
zqA=function(q,w){var u=V3H,y=_.P(_.r4(fLB(new mKB(function(){},u,w)),void 0,"PAnyd")),e=y.next().value,t=y.next().value,X=new mKB(function(G){t(G)},u,w);
_.DG(function(){Promise.resolve().then(function(){var G,n=(G=q())!=null?G:{};X.playerControlsData=n;_.T("player_controls_skip_double_signal_old")&&(X.lastSeenPlayerApi=_.pC(n.playerApi));_.T("player_controls_skip_double_signal_old")||(X.lastSeenPlayerApi=_.pC(n.playerApi));Awq(X)});
_.ZG(function(){Jw6(X)})});
_.ZG(function(){Jw6(X)});
return function(){return e()}};
aLT=function(q){return function(w){var u=q(),y={playerState:w};if(w===1){var e;(e=u.playerApi)==null||e.loadModule("captions")}if(w===0){var t;(t=u.playerApi)==null||t.unloadModule("captions")}(w!==-1||_.T("web_imp_controls_set_player_state_killswitch"))&&u.setState(y)}};
DKH=function(q){return function(w){q().setState({playbackRate:w})}};
ZgB=function(q){return function(w){var u=q(),y=u.playerApi,e=y==null?void 0:y.getVideoData(),t=(e==null?void 0:e.isLive)||!1;e=e==null?void 0:e.video_id;t={videoDuration:ugB(y||void 0),isLive:t,videoId:e};t.videoId!==u.videoId&&(t=Object.assign({},_.QU4(y),t));if(w==null?0:w.playertype)t.playerType=w.playertype;if(y){t.captionsAvailable=!!y.getOptions("captions");w=t;var X;e=(X=y.getStoryboardLevel(y.getNumberOfStoryboardLevels()-1))==null?void 0:X.intervalMs;w.storyboardInterval=e?e/1E3:void 0;t.captionsAvailable&&
(t.captionsEnabled=Kxq(y))}t.volumeMuted=!(y==null||!y.isMuted());u.setState(t)}};
pXc=function(q){return function(w){var u=q(),y=u.playerApi;if(y){var e=y.getPresentingPlayerType();w={playedTime:w||0,percentLoaded:y.getVideoLoadedFraction(),playerType:e};u.playerState===0&&(w.playedTime=u.videoDuration);u.isLive&&(e=y.getProgressState(e),w.playedTime-=e.seekableStart,w.videoDuration=ugB(y));if(u.playerType===1)y=!1;else{var t;if((t=u.uxConfig)==null?0:t.showCuedOverlay){var X;y=!((X=u.playerApi)==null?0:X.getPlayerStateObject(u.playerType).isDomPaused)}else y=!0}y&&delete w.playedTime;
u.setState(w)}}};
$K6=function(q){return function(){var w=q(),u,y,e,t={volume:(e=(u=w.playerApi)==null?void 0:u.getVolume())!=null?e:0,volumeMuted:!((y=w.playerApi)==null||!y.isMuted())};w.setState(t)}};
vSh=function(q){return function(){var w=q(),u=w.playerApi;if(u){var y={captionsAvailable:!!u.getOptions("captions")};y.captionsAvailable&&(y.captionsEnabled=Kxq(u));w.setState(y)}}};
bg6=function(q){return function(){var w=q();if(w.playerApi&&!(w.volumeMuted||w.controlsVisible&&w.isProbablyAScreenreaderUser)){w.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var u;(u=document.querySelector(".player-control-play-pause-icon"))==null||u.focus()}}};
Yfx=function(q){return{appApi:Object.assign({},_.FCM(),{showCaptionsToggleToast:function(w){var u,y;(y=(u=q()).showCaptionsToggleToast)==null||y.call(u,w)},
openInMiniplayer:function(){var w,u;(u=(w=q()).openInMiniplayer)==null||u.call(w)}})}};
gSA=function(q,w){var u,y,e;return!!(q==null?0:(u=q.playerResponse)==null?0:(y=u.playerConfig)==null?0:(e=y.inlinePlaybackConfig)==null?0:e.showScrubbingControls)&&!(w==null?0:w.hideScrubbingControls)};
_.ESH=function(q){var w=!q.miniplayerIsActive;return[5,2,0].includes(q.miniplayerPlaybackState)||w};
Rq6={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};cwV=function(q,w){var u,y,e,t,X;_.F(function(G){if(!w.length)return G.return([]);u=[];y=_.P(w);for(e=y.next();!e.done;e=y.next())t=e.value,(X=q.resolveIcon(t))&&!q.iconCache[X.url]&&u.push(_.kyq(q,X).then(function(){}).catch(function(){}));
return G.return(Promise.all(u))})};
SfH=function(q,w){var u=[];w=(new Set(w)).values();w=_.P(w);for(var y=w.next();!y.done;y=w.next()){y=y.value;for(var e=_.P(Object.values(Rq6)),t=e.next();!t.done;t=e.next())u.push({iconName:y,iconStyle:t.value})}cwV(q.iconManager,u)};
_.hqm=function(q,w,u){var y=u!=null?u:q.iconsToFetch;y!=null&&y.length?w!==void 0&&w>=0?_.mg(_.pi,function(){SfH(q,y)},w):SfH(q,y):Promise.resolve()};
yDh={};
mKB=function(q,w,u){var y=this;this.renderFn=q;this.listeners=w;this.context=u;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var e;this.lastSeenPlayerApi=_.pC((e=this.playerControlsData)==null?void 0:e.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.QU4(),void 0);_.T("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){fLB(y).setState({playerState:-1});y.resetRecentlyNavigatedJobId&&_.pi.cancelJob(y.resetRecentlyNavigatedJobId);y.recentlyNavigated=
!0;y.resetRecentlyNavigatedJobId=_.pi.addJob(function(){y.recentlyNavigated=!1},8,1E4)})};
mKB.prototype.setState=function(q){if(!_.T("mweb_player_skip_no_op_state_changes")||!e1K(q,this.state))if(this.state=Object.assign({},this.state,q),!_.T("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)q=-1,_.T("player_controls_log_creation_killswitch")||k7c()||(q=(0,_.eW)()),_.D_("pcu_s"),_.D_("pcu_se"),_.D_("pcu_rs"),this.renderFn(fLB(this)),_.D_("pcu_re"),tR4(q),_.pi.addJob(function(){_.D_("pcu_ap")},8)};
var fLB=function(q){var w;var u=_.pC((w=q.playerControlsData)==null?void 0:w.playerApi);return Object.assign({},q.state,{setState:q.boundSetState,domMeasurements:{progressBarLineRect:q.progressBarLineRect},playerApi:u,appApi:q.context.appApi,playerContainer:q.context.playerContainer,playerControlContainer:q.context.playerControlContainer,uxConfig:q.context.uxConfig})},Awq=function(q){q.listeners.forEach(function(w){q.eventListenerCleanupFunctions.push(w.register(function(){return fLB(q)},function(){return q.getData()}))})},
Jw6=function(q){q.eventListenerCleanupFunctions.forEach(function(w){w()});
q.eventListenerCleanupFunctions.length=0};
mKB.prototype.getData=function(){return this.playerControlsData};
var yK=new _.M("abuseReportFlowState");var jr6=new _.M("feedbackFormFlowState");var lLm=new _.M("inputBoxViewModel");var LNK=new _.M("flowNextStepCommand");var M3j=new _.M("flowPrevStepCommand");var KNh=new _.M("updateFlowCommand");_.Bbm=new _.M("flowStepRenderer");_.cDA=new _.M("lengthValidationRule");var h1j=new _.M("regexValidationRule");var lCq=new _.M("selectedValidationRule");var xKa=new _.M("talkToRecsViewModel");var qNV=new _.M("creatorGoalSetUpFlowDropdownItemViewModel");var w26=new _.M("creatorGoalSetUpFlowDropdownViewModel");var Tb6=new _.M("thumbnailBadgeViewModel");_.u3j=new _.M("radioButtonGroupViewModel");var Paj=new _.M("panelFooterViewModel");var y1m=new _.M("ypcCancelRecurrenceCommand");var eVq=new _.M("cancellationFlowState");var qh=new _.M("premiumPurchaseFlowState");var k9x=new _.M("surveyAnswerCardRenderer");var tiT=new _.M("showMoreButtonRenderer");var PIK;var X2c,F2V=function(){if(X2c!==void 0)return X2c;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;PIK===void 0&&(PIK=document.createElement("template"));var y=PIK;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return X2c=q};var eA=function(){var q=_.Y.apply(this,arguments)||this;q.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";q.goalDescription="";q.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";q.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";q.startButtonId="start-button";q.exampleButtonId="example-button";return q};
_.O(eA,_.Y);_.k=eA.prototype;_.k.getGoalDropdownItems=function(){var q,w;return(w=_.C((q=this.data)==null?void 0:q.purchaseTargetDropdown,w26))==null?void 0:w.dropdownItems};
_.k.getTimerDropdownItems=function(){var q,w;return(w=_.C((q=this.data)==null?void 0:q.timerDropdown,w26))==null?void 0:w.dropdownItems};
_.k.getColorDropdownItems=function(){var q,w;return(w=_.C((q=this.data)==null?void 0:q.colorDropdown,w26))==null?void 0:w.dropdownItems};
_.k.getDropdownItemText=function(q){var w;return(w=_.C(q,qNV))==null?void 0:w.itemLabel};
_.k.getDropdownItemValue=function(q){q=_.C(q,qNV);return(q==null?void 0:q.timeLimit)||(q==null?void 0:q.purchaseTarget)||(q==null?void 0:q.eligiblePurchaseType)};
_.k.updateFlowState=function(q){_.Pw(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:q}])};
_.k.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.k.updateGoalValue=function(q){this.goal=q.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.k.onTextValueChanged=function(q){this.goalDescription=q.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.k.updateTimerValue=function(q){this.timer=q.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.k.updateTierValue=function(q){this.tier=q.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.k.getButtonViewModel=function(q){q=(q==null?void 0:q.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var w,u=_.C((w=this.data)==null?void 0:w.startGoalButton,_.oH);return Object.assign({},u,{state:q})};
_.x$.Object.defineProperties(eA,{template:{configurable:!0,enumerable:!0,get:function(){return F2V()}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],eA.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],eA.prototype,"goal",void 0);_.c([_.v(),_.h("design:type",Object)],eA.prototype,"goalDescription",void 0);_.c([_.v(),_.h("design:type",Object)],eA.prototype,"timer",void 0);_.c([_.v(),_.h("design:type",Object)],eA.prototype,"tier",void 0);
_.c([_.v(),_.h("design:type",Object)],eA.prototype,"startButtonId",void 0);_.c([_.v(),_.h("design:type",Object)],eA.prototype,"exampleButtonId",void 0);eA=_.c([_.JM({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],eA);_.R(eA,"yt-creator-goal-set-up-flow-view-model",function(){return F2V()},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var G9A;var ns4;var HYj;var ki=function(){return _.Y.apply(this,arguments)||this};
_.O(ki,_.Y);_.c([_.v(),_.h("design:type",Object)],ki.prototype,"data",void 0);ki=_.c([_.JM({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],ki);
_.R(ki,"yt-survey-answer-card-renderer",function(){if(HYj===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;ns4===void 0&&(ns4=document.createElement("template"));var y=ns4;u.call(w,y.content.cloneNode(!0),q.content.firstChild);HYj=q}q=HYj;return q},{mode:2});var W2A;var s3h;var ts=function(){return _.Y.apply(this,arguments)||this};
_.O(ts,_.Y);_.k=ts.prototype;_.k.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.k.selectedItemChanged=function(q){_.Pw(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[q.feedbackToken||""]}])};
_.k.surveyAnswerCardRendererClicked=function(q){if(q.target&&_.C(q.model.item,k9x)){var w=q.target;q=_.C(q.model.item,k9x);q.onTapCommand?_.nq(w,[q.onTapCommand],w):this.data.onTapCommand&&_.nq(w,[this.data.onTapCommand],w);this.selectedItemChanged(q)}};
_.k.checkIsCancellationStyle=function(q){return q==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.k.updateSelectedItemFromBinding=function(q){this.selectedItem=q.detail.value};
ts.prototype.onSelectedItemChanged=ts.prototype.onSelectedItemChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ts.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ts.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],ts.prototype,"selectedItem",void 0);_.c([_.v({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.h("design:type",Boolean)],ts.prototype,"isCancellationStyle",void 0);
_.c([_.nL("selectedItem"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ts.prototype,"onSelectedItemChanged",null);ts=_.c([_.JM({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],ts);
_.R(ts,"yt-survey-flow-step-renderer",function(){if(s3h===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;W2A===void 0&&(W2A=document.createElement("template"));var y=W2A;u.call(w,y.content.cloneNode(!0),q.content.firstChild);s3h=q}q=s3h;return q},{mode:2});var Pe=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return q};
_.O(Pe,_.Y);Pe.prototype.handleSurveyFlowStepOptionChanged=function(q){this.ytdReduxBehavior.dispatch(_.tr({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:q}));_.Pw(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:q}}])};
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Pe.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],Pe.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Pe.prototype,"data",void 0);Pe=_.c([_.E({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],Pe);
_.R(Pe,"ytd-survey-flow-step-renderer",function(){if(G9A!==void 0)return G9A;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return G9A=q},{mode:1});var PBT;PBT=_.UF({avatarViewModel:_.Vb,buttonViewModel:_.Zs,subscribeButtonViewModel:_.TK,imageBannerViewModel:_.GYZ});_.NgA=_.N9(_.F$j);_.t2(_.F$j);var Q3a;var Xe=function(){return _.Y.apply(this,arguments)||this};
_.O(Xe,_.Y);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Xe.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Xe.prototype,"data",void 0);Xe=_.c([_.E({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],Xe);
_.R(Xe,"ytd-channel-history-renderer",function(){if(Q3a!==void 0)return Q3a;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Q3a=q},{mode:1});var IHx;var Fe=function(){return _.Y.apply(this,arguments)||this};
_.O(Fe,_.Y);_.c([_.v(),_.h("design:type",Object)],Fe.prototype,"data",void 0);Fe=_.c([_.E({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],Fe);
_.R(Fe,"ytd-feature-enablement-info-renderer",function(){if(IHx!==void 0)return IHx;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return IHx=q},{mode:1});var iYV;var r1c;var Gb=function(){var q=_.Y.apply(this,arguments)||this;q.textBoxMaxLength=_.T("enable_tvod_campaign_code_integration")?15:12;return q};
_.O(Gb,_.Y);_.k=Gb.prototype;_.k.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.k.onSubmit=function(){var q=this.data.serviceEndpoint,w=_.C(q,_.ur);w&&q&&(w.couponCode=this.userInput,_.tG().resolve(_.PG).resolveCommand(q,{form:{element:this.hostElement}}))};
_.k.validate=function(){var q=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=q&&!this.data.errorMessage;this.showErrorMessage=q&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.T("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.k.computeStyle=function(q){return q};
_.k.computeShowValidationBelowInput=function(q){return q!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.k.updateUserInputFromBinding=function(q){this.userInput=q.currentTarget.value};
_.k.updateShowErrorMessageFromBinding=function(q){this.showErrorMessage=q.detail.value};
_.x$.Object.defineProperties(Gb.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
Gb.prototype.dataChanged=Gb.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Gb.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Gb.prototype,"data",void 0);_.c([_.v(),_.h("design:type",String)],Gb.prototype,"userInput",void 0);_.c([_.v(),_.h("design:type",Boolean)],Gb.prototype,"disableApplyButton",void 0);_.c([_.v(),_.h("design:type",Boolean)],Gb.prototype,"hideApplyButton",void 0);
_.c([_.v(),_.h("design:type",Boolean)],Gb.prototype,"hideErrorMessage",void 0);_.c([_.v(),_.h("design:type",Boolean)],Gb.prototype,"showTick",void 0);_.c([_.v(),_.h("design:type",Boolean)],Gb.prototype,"showErrorMessage",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],Gb.prototype,"couponStyle",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.h("design:type",Boolean)],Gb.prototype,"showValidationBelowInput",void 0);_.c([_.v(),_.h("design:type",Object)],Gb.prototype,"textBoxMaxLength",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gb.prototype,"dataChanged",null);
_.c([_.Z("showTick","showErrorMessage","userInput"),_.h("design:type",String),_.h("design:paramtypes",[])],Gb.prototype,"validationState",null);Gb=_.c([_.E({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],Gb);
_.R(Gb,"ytd-ypc-coupon-renderer",function(){if(r1c!==void 0)return r1c;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return r1c=q},{mode:1});var n2=function(){return _.Y.apply(this,arguments)||this};
_.O(n2,_.Y);n2.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"}}}};
n2.prototype.computeStyle=function(q){return q};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],n2.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],n2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],n2.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],n2.prototype,"buttonStyle",void 0);n2=_.c([_.E({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],n2);
_.R(n2,"ytd-flow-bottom-bar-renderer",function(){if(iYV!==void 0)return iYV;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return iYV=q},{mode:1});var U16;var Tgx;var CIV;var He=function(){return _.Y.apply(this,arguments)||this};
_.O(He,_.Y);He.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
He.prototype.focus=function(q){this.title&&_.xZ(this.title,q)};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],He.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],He.prototype,"data",void 0);_.c([_.Wj("#title"),_.h("design:type",HTMLElement)],He.prototype,"title",void 0);He=_.c([_.E({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],He);
_.R(He,"ytd-flow-top-bar-renderer",function(){if(CIV!==void 0)return CIV;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return CIV=q},{mode:1});var d16;var OYH;var osx;var We=function(){return _.Y.apply(this,arguments)||this};
_.O(We,_.Y);We.prototype.freeTextValueChanged=function(){_.Pw(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
We.prototype.updateFreeTextValueFromBinding=function(q){this.freeTextValue=q.detail.value};
_.x$.Object.defineProperties(We.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var q,w,u=(w=(q=this.data)==null?void 0:q.responseMaxLength)!=null?w:500,y;return((y=this.freeTextValue)!=null?y:"").length>=u?"maxed-out":""}}});
We.prototype.freeTextValueChanged=We.prototype.freeTextValueChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],We.prototype,"data",void 0);_.c([_.v(),_.h("design:type",String)],We.prototype,"freeTextValue",void 0);_.c([_.Wj("#user-input"),_.h("design:type",HTMLTextAreaElement)],We.prototype,"input",void 0);
_.c([_.Z("freeTextValue"),_.h("design:type",Object),_.h("design:paramtypes",[])],We.prototype,"characterLimitClass",null);_.c([_.nL("freeTextValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],We.prototype,"freeTextValueChanged",null);We=_.c([_.JM({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],We);
_.R(We,"yt-free-text-input-flow-step-renderer",function(){if(osx===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;OYH===void 0&&(OYH=document.createElement("template"));var y=OYH;u.call(w,y.content.cloneNode(!0),q.content.firstChild);osx=q}q=osx;return q},{mode:2});var sQ=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return q};
_.O(sQ,_.Y);sQ.prototype.handleFreeTextFlowStepInputChanged=function(q){_.Pw(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:q}}])};
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],sQ.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],sQ.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],sQ.prototype,"data",void 0);sQ=_.c([_.E({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],sQ);
_.R(sQ,"ytd-free-text-input-flow-step-renderer",function(){if(d16!==void 0)return d16;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return d16=q},{mode:1});var Vi4;var fH4;var Nh=function(){return _.Y.apply(this,arguments)||this};
_.O(Nh,_.Y);_.c([_.v(),_.h("design:type",Object)],Nh.prototype,"data",void 0);Nh=_.c([_.E({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],Nh);
_.R(Nh,"ytd-metadata-line-renderer",function(){if(fH4!==void 0)return fH4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return fH4=q},{mode:1});var QK=function(){return _.Y.apply(this,arguments)||this};
_.O(QK,_.Y);QK.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],QK.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],QK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],QK.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],QK.prototype,"isMasthead",void 0);QK=_.c([_.E({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],QK);
_.R(QK,"ytd-media-product-renderer",function(){if(Vi4!==void 0)return Vi4;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Vi4=q},{mode:1});var m1q;var IY=function(){return _.Y.apply(this,arguments)||this};
_.O(IY,_.Y);IY.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
IY.prototype.onBillboardImageLoaded=function(){_.t7(this.hostElement,"yt-refit")};
IY.prototype.onBillboardImageLoaded=IY.prototype.onBillboardImageLoaded;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],IY.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],IY.prototype,"data",void 0);_.c([_.Wj("#billboardImage"),_.h("design:type",Object)],IY.prototype,"billboardImage",void 0);_.c([_.Gm("yt-img-shadow-loaded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],IY.prototype,"onBillboardImageLoaded",null);
IY=_.c([_.E({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],IY);
_.R(IY,"ytd-billboard-masthead-renderer",function(){if(m1q!==void 0)return m1q;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return m1q=q},{mode:1});var A1a;var i2=function(){var q=_.Y.apply(this,arguments)||this;q.smallSize=!1;return q};
_.O(i2,_.Y);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],i2.prototype,"ytComponentBehaviorType",void 0);_.c([_.v(),_.h("design:type",Object)],i2.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],i2.prototype,"smallSize",void 0);i2=_.c([_.E({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],i2);
_.R(i2,"ytd-bullet-formatted-string",function(){if(A1a!==void 0)return A1a;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return A1a=q},{mode:1});var J1V;var r5=function(){return _.Y.apply(this,arguments)||this};
_.O(r5,_.Y);r5.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],r5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],r5.prototype,"data",void 0);r5=_.c([_.E({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],r5);
_.R(r5,"ytd-offer-detail-renderer",function(){if(J1V!==void 0)return J1V;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return J1V=q},{mode:1});var zV6;var UQ=function(){return _.Y.apply(this,arguments)||this};
_.O(UQ,_.Y);UQ.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"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],UQ.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],UQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],UQ.prototype,"data",void 0);UQ=_.c([_.E({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],UQ);
_.R(UQ,"ytd-offer-detail-step-renderer",function(){if(zV6!==void 0)return zV6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return zV6=q},{mode:1});var aHq;var Tb=function(){var q=_.Y.apply(this,arguments)||this;q.isInOfferModule=!1;return q};
_.O(Tb,_.Y);_.k=Tb.prototype;_.k.computeHasEndpoint=function(){var q;return!((q=this.data)==null||!q.onClickCommand)};
_.k.dataChanged=function(){var q;if((q=this.data)==null?0:q.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")};
_.k.detached=function(){var q;if((q=this.data)==null?0:q.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.k.handleClickEvent=function(){var q;if((q=this.data)==null?0:q.onClickCommand){var w;this.componentBehavior.resolveCommand((w=this.data)==null?void 0:w.onClickCommand)}};
_.k.onContentKeyDown=function(q){q.key==="Enter"?this.handleClickEvent(q):q.key===" "&&q.preventDefault()};
_.k.onContentKeyUp=function(q){q.key===" "&&this.handleClickEvent(q)};
Tb.prototype.dataChanged=Tb.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Tb.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Tb.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Tb.prototype,"data",void 0);_.c([_.v({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Tb.prototype,"hasEndpoint",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Tb.prototype,"isInOfferModule",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Tb.prototype,"dataChanged",null);Tb=_.c([_.E({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Tb);
_.R(Tb,"ytd-channel-masthead-renderer",function(){if(aHq!==void 0)return aHq;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return aHq=q},{mode:1});var D1h;var C2=function(){var q=_.Y.apply(this,arguments)||this;q.thumbnailObjectFit="CONTAIN";q.thumbnailObjectPosition="LEFT";q.isExpanded=!1;return q};
_.O(C2,_.Y);_.k=C2.prototype;_.k.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.k.dataChanged=function(){this.resetStates()};
_.k.computeisTapOnOfferInfoContainerEnabled=function(){var q;return((q=this.data)==null?void 0:q.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.k.onExpandBtnClick=function(){var q,w=_.C((q=this.data)==null?void 0:q.showMoreButtonRenderer,tiT);w&&_.Xf(_.Qz(),w.trackingParams);this.isExpanded=!this.isExpanded};
_.k.onOfferInfoClick=function(q){this.isTapOnOfferInfoContainerEnabled&&(_.LT(_.SQ(q)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.M9(_.SQ(q)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.k.onBottomBarClick=function(){this.executeTapCommand()};
_.k.executeTapCommand=function(){var q,w=(q=this.data)==null?void 0:q.tapCommand;w&&this.ytComponentBehavior.resolveCommand(w)};
_.k.resetStates=function(){this.isExpanded=!1};
_.x$.Object.defineProperties(C2.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var q=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),w,u,y;return((w=this.data)==null?void 0:w.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&q&&!!((u=this.data)==null?0:(y=u.benefits)==null?0:y.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return((w=_.C((q=this.data)==null?void 0:q.showMoreButtonRenderer,tiT))==null?void 0:w.showMoreButtonTitle)||((u=this.data)==null?void 0:u.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return((w=_.C((q=this.data)==null?void 0:q.showMoreButtonRenderer,tiT))==null?void 0:w.showLessButtonTitle)||((u=this.data)==null?void 0:u.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var q;return(q=this.showLessButtonTitle)!=null?q:""}var w;return(w=this.showMoreButtonTitle)!=null?w:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return((q=this.data)==null?void 0:q.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((w=this.data)==null?0:w.footerTitle)||((u=this.data)==null?0:u.footerSubtitle))}}});
C2.prototype.dataChanged=C2.prototype.dataChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],C2.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],C2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",String)],C2.prototype,"thumbnailObjectFit",void 0);
_.c([_.v(),_.h("design:type",String)],C2.prototype,"thumbnailObjectPosition",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.h("design:type",Boolean)],C2.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.c([_.v(),_.h("design:type",Object)],C2.prototype,"isExpanded",void 0);_.c([_.v(),_.h("design:type",Object)],C2.prototype,"data",void 0);_.c([_.v({computed:"computeIcon_(data.footerIcon)"}),_.h("design:type",String)],C2.prototype,"icon",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],C2.prototype,"dataChanged",null);_.c([_.Z("data.thumbnail"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],C2.prototype,"hasThumbnail",null);_.c([_.Z("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],C2.prototype,"enableExpandButton",null);
_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],C2.prototype,"enableOfferContentIcon",null);_.c([_.Z("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.h("design:type",Object),_.h("design:paramtypes",[])],C2.prototype,"showMoreButtonTitle",null);_.c([_.Z("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.h("design:type",Object),_.h("design:paramtypes",[])],C2.prototype,"showLessButtonTitle",null);
_.c([_.Z("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.h("design:type",String),_.h("design:paramtypes",[])],C2.prototype,"expandedBtnText",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],C2.prototype,"enableBottomBar",null);C2=_.c([_.E({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],C2);
_.R(C2,"ytd-offer-card-renderer",function(){if(D1h!==void 0)return D1h;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return D1h=q},{mode:1});var ZYK;var d5=function(){return _.Y.apply(this,arguments)||this};
_.O(d5,_.Y);d5.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"}}}};
d5.prototype.onClick=function(q){if(!_.LT(q.composedPath()||[],this.hostElement,["A".toString()])){var w,u;if((q=(u=_.C((w=this.data)==null?void 0:w.actionButton,_.aB))==null?void 0:u.command)&&!this.ytComponentBehavior.resolveCommand(q)){var y;(y=_.Qz())==null||y.clickCommand(q);_.tG().resolve(_.PG).resolveCommand(q,{form:{element:this.hostElement}})}}};
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],d5.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],d5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],d5.prototype,"data",void 0);d5=_.c([_.E({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],d5);
_.R(d5,"ytd-offer-content-renderer",function(){if(ZYK!==void 0)return ZYK;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return ZYK=q},{mode:1});var p2H;var OQ=function(){return _.Y.apply(this,arguments)||this};
_.O(OQ,_.Y);OQ.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.x$.Object.defineProperties(OQ.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var q,w;return!((q=this.data)==null||!q.title)||!((w=this.data)==null||!w.description)}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],OQ.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],OQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],OQ.prototype,"data",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],OQ.prototype,"hasHeaderData",null);OQ=_.c([_.E({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],OQ);
_.R(OQ,"ytd-offer-section-renderer",function(){if(p2H!==void 0)return p2H;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return p2H=q},{mode:1});var $1K;var oY=function(){return _.Y.apply(this,arguments)||this};
_.O(oY,_.Y);
oY.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"}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],oY.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],oY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],oY.prototype,"data",void 0);oY=_.c([_.E({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],oY);
_.R(oY,"ytd-offer-selection-step-renderer",function(){if($1K!==void 0)return $1K;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return $1K=q},{mode:1});var vsH;var VK=function(){return _.Y.apply(this,arguments)||this};
_.O(VK,_.Y);VK.prototype.computeStyle=function(q){return q};
VK.prototype.computeImageWidth=function(q){return q==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.c([_.v({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.h("design:type",String)],VK.prototype,"containerStyle",void 0);_.c([_.v({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.h("design:type",String)],VK.prototype,"imageWidth",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],VK.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],VK.prototype,"data",void 0);
VK=_.c([_.E({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],VK);
_.R(VK,"ytd-confirmation-masthead-renderer",function(){if(vsH!==void 0)return vsH;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return vsH=q},{mode:1});var bYc;var f2=function(){return _.Y.apply(this,arguments)||this};
_.O(f2,_.Y);f2.prototype.computeStyle=function(q){return q};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],f2.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],f2.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.h("design:type",String)],f2.prototype,"containerStyle",void 0);f2=_.c([_.E({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],f2);
_.R(f2,"ytd-purchase-complete-detail-renderer",function(){if(bYc!==void 0)return bYc;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return bYc=q},{mode:1});var YNV;var mX=function(){var q=_.Y.apply(this,arguments)||this;q.scriptsAppended=!1;return q};
_.O(mX,_.Y);mX.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"}}}};
mX.prototype.onDataChanged=function(){var q=this.get("data.gtmId");q&&(_.Wd(q,_.Et("GL","")),this.setupConversionTracking())};
mX.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var q=document.createElement("noscript");q.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(q);this.scriptsAppended=!0}};
mX.prototype.onDataChanged=mX.prototype.onDataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],mX.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],mX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],mX.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],mX.prototype,"scriptsAppended",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mX.prototype,"onDataChanged",null);mX=_.c([_.E({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],mX);
_.R(mX,"ytd-purchase-complete-step-renderer",function(){if(YNV!==void 0)return YNV;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return YNV=q},{mode:1});var gsT;var As=function(){var q=_.Y.apply(this,arguments)||this;q.darkerDarkTheme=_.T("web_darker_dark_theme");return q};
_.O(As,_.Y);As.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],As.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],As.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],As.prototype,"darkerDarkTheme",void 0);As=_.c([_.E({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],As);
_.R(As,"ytd-ypc-transaction-error-message-renderer",function(){if(gsT!==void 0)return gsT;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return gsT=q},{mode:1});var EsV;var RVT;var Js=function(){var q=_.Y.apply(this,arguments)||this;q.handlePhoneVerificationSuccess=function(w){if(q.isValidPhoneVerificationCompletionMessageEvent(w)){var u;((u=q.data)==null?0:u.nextStepCommand)&&q.ytComponentBehavior.resolveCommand(q.data.nextStepCommand)}};
return q};
_.O(Js,_.Y);Js.prototype.isValidPhoneVerificationCompletionMessageEvent=function(q){if(q.data!=="yt-phone-verification-complete")return!1;q=_.w$(q.origin);return q!==null&&q.includes("youtube.com")};
Js.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Js.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Js.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Js.prototype,"data",void 0);Js=_.c([_.JM({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Js);
_.R(Js,"yt-feature-enablement-soft-entry-renderer",function(){if(RVT===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;EsV===void 0&&(EsV=document.createElement("template"));var y=EsV;u.call(w,y.content.cloneNode(!0),q.content.firstChild);RVT=q}q=RVT;return q},{mode:1});var c1K;var SNj;var hVK;var j3c;var zb=function(){return _.Y.apply(this,arguments)||this};
_.O(zb,_.Y);_.c([_.v(),_.h("design:type",Object)],zb.prototype,"data",void 0);zb=_.c([_.JM({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],zb);
_.R(zb,"yt-benefits-item-renderer",function(){if(j3c===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;hVK===void 0&&(hVK=document.createElement("template"));var y=hVK;u.call(w,y.content.cloneNode(!0),q.content.firstChild);j3c=q}q=j3c;return q},{mode:2});var lHm;var L2B;var aY=function(){return _.Y.apply(this,arguments)||this};
_.O(aY,_.Y);aY.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
aY.prototype.computeisWithoutPadding=function(){var q;return((q=this.data)==null?void 0:q.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],aY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],aY.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.h("design:type",Boolean)],aY.prototype,"isWithoutPadding",void 0);aY=_.c([_.JM({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],aY);
_.R(aY,"yt-benefits-section-renderer",function(){if(L2B===void 0){var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;lHm===void 0&&(lHm=document.createElement("template"));var y=lHm;u.call(w,y.content.cloneNode(!0),q.content.firstChild);L2B=q}q=L2B;return q},{mode:2});var DY=function(){return _.Y.apply(this,arguments)||this};
_.O(DY,_.Y);DY.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
DY.prototype.computeisUsingLargeWidth=function(){var q;return((q=this.data)==null?void 0:q.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],DY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],DY.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.h("design:type",Boolean)],DY.prototype,"isUsingLargeWidth",void 0);DY=_.c([_.JM({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],DY);
_.R(DY,"yt-benefits-flow-step-renderer",function(){if(SNj===void 0){var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;c1K===void 0&&(c1K=document.createElement("template"));var y=c1K;u.call(w,y.content.cloneNode(!0),q.content.firstChild);SNj=q}q=SNj;return q},{mode:2});var Mi6;var K2q;var ZY=function(){return _.Y.apply(this,arguments)||this};
_.O(ZY,_.Y);ZY.prototype.checkIsUsingLargeWidth=function(){var q;return((q=this.data)==null?void 0:q.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.c([_.v(),_.h("design:type",Object)],ZY.prototype,"data",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ZY.prototype,"ytRendererBehavior",void 0);_.c([_.v({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.h("design:type",Boolean)],ZY.prototype,"isUsingLargeWidth",void 0);ZY=_.c([_.JM({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],ZY);
_.R(ZY,"yt-confirmation-flow-step-renderer",function(){if(K2q===void 0){var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;Mi6===void 0&&(Mi6=document.createElement("template"));var y=Mi6;u.call(w,y.content.cloneNode(!0),q.content.firstChild);K2q=q}q=K2q;return q},{mode:2});var Bgc;var x1q;var p2=function(){return _.Y.apply(this,arguments)||this};
_.O(p2,_.Y);_.c([_.v(),_.h("design:type",Object)],p2.prototype,"data",void 0);p2=_.c([_.JM({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],p2);
_.R(p2,"yt-info-flow-step-renderer",function(){if(x1q===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;Bgc===void 0&&(Bgc=document.createElement("template"));var y=Bgc;u.call(w,y.content.cloneNode(!0),q.content.firstChild);x1q=q}q=x1q;return q},{mode:2});var qZh;var w1T;var $i=function(){return _.Y.apply(this,arguments)||this};
_.O($i,_.Y);_.c([_.v(),_.h("design:type",Object)],$i.prototype,"data",void 0);$i=_.c([_.JM({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],$i);
_.R($i,"yt-info-list-flow-step-renderer",function(){if(w1T===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;qZh===void 0&&(qZh=document.createElement("template"));var y=qZh;u.call(w,y.content.cloneNode(!0),q.content.firstChild);w1T=q}q=w1T;return q},{mode:2});var uZ4=_.LL(function(q){var w=q.data;return _.W("styled-text-view-model",{class:_.HR("ytStyledTextViewModelHost",function(){return CBT(w().fontAttributes)},function(){return TYx(w().color)})},_.W(_.Lr,{text:function(){return w().text},
ariaLabel:function(){var u,y,e;return(e=(u=w().accessibility)==null?void 0:(y=u.accessibilityData)==null?void 0:y.label)!=null?e:""}}))},"Re");
uZ4.idomCompat=!0;var yXB=_.LL(function(q){var w=function(){var e,t,X,G;return(G=(X=(e=q.alt)==null?void 0:e.call(q))!=null?X:(t=q.data().accessibilityData)==null?void 0:t.label)!=null?G:""},u=function(){return q.data().imageWidth},y=function(){return q.data().imageHeight};
return _.W("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.W(_.r,{cond:function(){var e=q.data();if(e){var t,X,G;var n=((t=_.tG().resolve(_.kF(_.Rg)))==null?0:t())?(X=e.imageDark)!=null?X:e.imageLight:(G=e.imageLight)!=null?G:e.imageDark}else n=void 0;return n},
then:function(e){return _.W(_.ln,Object.assign({},q,{data:e,alt:w,targetWidth:u,targetHeight:y,preserveHeight:!0,preserveWidth:!0}))}}))},"Se");
yXB.idomCompat=!0;var ve=_.LL(function(q){var w=q.data;q=_.jf(function(){return w().slots},[]);
var u=_.jf(function(){return w().layoutProperties},{}),y=_.tG().resolve(_.SD);
return _.W("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:QQx(u,y)},_.W(_.mL,{each:q,keyBy:"INDEX"},function(e){return _.W("div",{class:"ytContainerLayoutViewModelSlot",style:QQx(function(){return e().layoutProperties},y)},_.W(_.OF,{data:function(){return e().contents}},{containerLayoutViewModel:ve,
badgeViewModel:_.hi,buttonViewModel:_.Zs,styledTextViewModel:uZ4,contentPreviewImageViewModel:function(t){return _.W(_.jj,{data:t.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(t){return _.W(yXB,{data:t.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Te");
ve.idomCompat=!0;var eP6=_.LL(function(q){var w=q.data;var u=q.stateFns;var y=function(){var N=w(),Q=N.productId;return!(!N.clearGroupId&&!Q)},e=function(){var N=w(),Q=N.clearGroupId;
return(N=N.productId)?u().isProductSelected(N):Q?u().getSelectedProductByGroupId(Q)==null:!1},t=function(){var N=w(),Q=N.clearGroupId;
if(N=N.productId)u().onProductSelected(N);else if(Q)u().onClearGroupSelected(Q)},X=function(){var N=w(),Q=N.clearGroupId;
if(N=N.productId){var I;return"group:"+(((I=u().getProductById(N))==null?void 0:I.groupId)||"")}return Q?"group:"+Q:""},G=_.jf(function(){return w().header},[]),n=_.jf(function(){return w().body},[]);
return _.W("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.W(_.r,{cond:function(){return G().length>0||y()},
then:function(){return _.W("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.W("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.W(_.OF,{data:G},{containerLayoutViewModel:function(N){return _.W("div",{class:"ytPdpCardSectionViewModelContentItem"},_.W(ve,{data:N.data}))},
styledTextViewModel:function(N){return _.W("div",{class:"ytPdpCardSectionViewModelContentItem"},_.W(uZ4,{data:N.data}))}})),_.W(_.r,{cond:y,
then:function(){return _.W("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.W(_.r2,{checked:e,name:X,onChange:t}))}}))}}),_.W(_.r,{cond:function(){return n().length>0},
then:function(){return _.W("div",null,_.W(_.OF,{data:n},{containerLayoutViewModel:function(N){return _.W("div",{class:"ytPdpCardSectionViewModelContentItem"},_.W(ve,{data:N.data}))}}))}}))},"Ue");
eP6.idomCompat=!0;var kZH=_.LL(function(q){var w=q.data;var u=q.stateFns;return _.W("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.W(_.r,{cond:function(){return w().banner},
then:function(y){return _.W("div",{class:"ytPdpCardViewModelBanner"},_.W(_.Lr,{text:y}))}}),_.W(_.OF,{data:function(){return w().sections}},{pdpCardSectionViewModel:function(y){y=y.data;
var e={};return _.W("div",{class:_.HR("ytPdpCardViewModelSectionContainer",(e.ytPdpCardViewModelShowDividers=function(){return w().showDividers},e))},_.W(eP6,{data:y,
stateFns:u}))}}))},"Ve");
kZH.idomCompat=!0;var t7T=_.LL(function(q){var w=q.data;var u=q.isOverlay;q={};return _.W("pdp-masthead-view-model",{class:_.HR("ytPdpMastheadViewModelHost",(q.ytPdpMastheadViewModelIsOverlay=u,q))},_.W(_.OF,{data:function(){return w().image}},{contentPreviewImageViewModel:_.jj,
themedImageViewModel:function(y){return _.W(yXB,{data:y.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.W(_.r,{cond:function(){return w().title},
then:function(y){return _.W("h1",{class:"ytPdpMastheadViewModelHeading"},_.W(_.Lr,{text:y,isOverlay:u}))}}),_.W(_.mL,{each:function(){var y;
return(y=w().finePrint)!=null?y:[]}},function(y){return _.W("div",{class:"ytPdpMastheadViewModelFinePrint"},_.W(_.Lr,{text:y,
isOverlay:u}))}))},"We");
t7T.idomCompat=!0;var POh=_.LL(function(q){var w=q.data;var u=q.stateFns;return _.W("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.W(_.mL,{each:function(){var y=u().getSelectedPricingOptions().map(function(t){return t.pricingOptionId}),e=u().getSelectedProductByGroupId(w().groupId);
return e?e.pricingOptions.map(function(t){return{pricingOption:t,isSelected:y.includes(t.pricingOptionId)}}):(_.bD(Error("Gj`"+w().groupId)),[])},
keyBy:"INDEX"},function(y){return _.W("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.W("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.W(_.OF,{data:function(){return y().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:ve})),_.W("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.W(_.r2,{checked:function(){return y().isSelected},
onClick:function(){u().onPricingOptionSelected(y().pricingOption.pricingOptionId);var e=y().pricingOption.onSelectPricingOption;if(e=_.Zh(e)){var t;(t=_.tG().resolve(_.PG))==null||t.resolveCommand(e)}}})))}))},"Xe");
POh.idomCompat=!0;var X16=_.LL(function(q){var w=q.data;var u=q.stateFns;return _.W("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.W(_.OF,{data:function(){var y,e;return(e=(y=u().getSelectedPricingOptions()[0])==null?void 0:y.primaryButton)!=null?e:w().emptyStateButton}},{buttonViewModel:_.Zs}))},"Ye");
X16.idomCompat=!0;var Fb4=_.LL(function(q){var w=q.stateFns;return _.W("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.W(_.OF,{data:function(){return w().getSelectedPricingOptions().flatMap(function(u){return u.summaryLines}).filter(function(u){return!!u})}},{containerLayoutViewModel:function(u){return _.W("div",{class:"ytPdpSummaryViewModelLineItem"},_.W(ve,{data:u.data}))}}))},"Ze");
Fb4.idomCompat=!0;var GZj=_.LL(function(q){function w(a){var b=X();_.hM(_.mG("pdpStateEntity",b,{key:b,selectedPricingOptions:a}))}
var u=q.data;var y=q.internalScrolling;var e=q.stateFnsForTesting;var t=_.jf(function(){return u().allProducts},[]),X=_.jf(function(){return u().pdpStateEntityKey},""),G=_.Qo(drB,X),n=_.oR(function(){_.$C(!0);
var a;return(a=e==null?void 0:e())!=null?a:JDq(G,t,w)},void 0,"POBqwe"),N=_.jf(function(){return u().body},[]),Q=_.jf(function(){return u().columnBreakHints},[]),I=function(){return u().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},U=function(){return I()||u().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},d=_.oR(function(){var a=_.lq(u().background),b;
if(a==null?0:(b=a.sources)==null?0:b.length){var g=g===void 0?!0:g;a=_.H67(void 0,a.sources,void 0,g,g?1E3:void 0,g?void 0:1E3)}else a=null;return a},void 0,"BkCmEd");
q=_.rm({"--pdp-view-model-background":function(){return d()?"url("+d()+")":void 0}});
var V={};y=_.HR("ytPdpViewModelHost",(V.ytPdpViewModelHasBackground=function(){return U()||!!d()},V.ytPdpViewModelHasDarkBackground=U,V.ytPdpViewModelHasScrim=I,V.ytPdpViewModelInternalScrolling=_.jf(y,!1),V));
var J=function(a){var b={};return _.HR("ytPdpViewModelItem",(b.ytPdpViewModelFullBleed=function(){return _.gW7(a())==="dividerViewModel"||_.gW7(a())==="sectionHeaderViewModel"},b.ytPdpViewModelNoVerticalPadding=function(){return _.gW7(a())==="sectionHeaderViewModel"},b))};
_.p4(function(){var a=u().onStartCommand;if(a&&(a=_.Zh(a))){var b;(b=_.tG().resolve(_.PG))==null||b.resolveCommand(a)}});
return _.W("pdp-view-model",{class:y,style:q},_.W("div",{class:"ytPdpViewModelColumnContainer"},_.W(_.mL,{each:function(){return z1h(N(),Q())},
keyBy:"INDEX"},function(a){return _.W("div",{class:"ytPdpViewModelColumn"},_.W(_.OF,{data:a},{containerLayoutViewModel:function(b,g){b=b.data;return _.W("div",{class:J(function(){return a()[g()]})},_.W(ve,{data:b}))},
dividerViewModel:function(b,g){b=b.data;return _.W("div",{class:J(function(){return a()[g()]})},_.W(_.iwj,{data:b}))},
pdpCardViewModel:function(b,g){b=b.data;return _.W("div",{class:J(function(){return a()[g()]})},_.W(kZH,{data:b,
stateFns:n}))},
pdpMastheadViewModel:function(b,g){b=b.data;return _.W("div",{class:J(function(){return a()[g()]})},_.W(t7T,{data:b,
isOverlay:U}))},
pdpPricingOptionSelectorViewModel:function(b,g){b=b.data;return _.W("div",{class:J(function(){return a()[g()]})},_.W(POh,{data:b,
stateFns:n}))},
pdpPrimaryButtonViewModel:function(b,g){b=b.data;return _.W("div",{class:J(function(){return a()[g()]})},_.W(X16,{data:b,
stateFns:n}))},
pdpSummaryViewModel:function(b,g){b=b.data;return _.W("div",{class:J(function(){return a()[g()]})},_.W(Fb4,{data:b,
stateFns:n}))},
sectionHeaderViewModel:function(b,g){b=b.data;return _.W("div",{class:J(function(){return a()[g()]})},_.W(_.Bb,{data:b}))}}))})))},"$e");
GZj.idomCompat=!0;_.q9(GZj,"pdp-view-model",{props:{data:_.pK,stateFnsForTesting:_.xB,internalScrolling:_.xB}});var nCA=_.LL(function(q){var w=q.data;var u=q.className;var y=_.Qo(_.uU,function(){return w().flowStateEntityKey});
return _.W("ytm-premium-purchase-button-renderer",{class:_.HR("yt-premium-purchase-button-renderer",u)},_.W(_.OF,{data:function(){var e;return(e=_.C(y(),qh))==null?void 0:e.primaryButtonOverride}},{buttonRenderer:function(e){return _.W(_.pz,{data:e.data,
className:u})},
buttonViewModel:function(e){return _.W(_.Zs,{data:e.data,className:u})}}))},"af");
nCA.idomCompat=!0;var HDm=_.LL(function(q){var w=q.data;var u=function(){return aCH(w().style)},y=_.HR("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",u),e=_.HR("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",u);
return _.W("yt-flow-bottom-bar-renderer",{class:_.HR("yt-flow-bottom-bar-renderer",q.className,u)},_.W(_.OF,{data:function(){return w().secondaryButton}},{buttonRenderer:function(t){return _.W(_.pz,{data:t.data,
className:e})},
buttonViewModel:function(t){return _.W(_.Zs,{data:t.data,className:e})},
premiumPurchaseButtonRenderer:function(t){return _.W(nCA,{data:t.data,className:e})}}),_.W(_.OF,{data:function(){return w().primaryButton}},{buttonRenderer:function(t){return _.W(_.pz,{data:t.data,
className:y})},
buttonViewModel:function(t){return _.W(_.Zs,{data:t.data,className:y})},
premiumPurchaseButtonRenderer:function(t){return _.W(nCA,{data:t.data,className:y})}}))},"bf");
HDm.idomCompat=!0;_.q9(HDm,"yt-flow-bottom-bar-renderer",{props:{data:_.pK,className:_.pK}});var WbB=_.LL(function(q){return _.W("yt-offer-summary-renderer",{class:_.HR(q.className,"ytOfferSummaryRendererHost")},_.W("div",{class:"ytOfferSummaryRendererTextContainer"},_.W("div",{class:"ytOfferSummaryRendererEyebrowText"},_.W(_.Lr,{text:function(){return q.data().eyebrowText}})),_.W("div",{class:"ytOfferSummaryRendererTitle"},_.W(_.Lr,{text:function(){return q.data().title}})),_.W("div",{class:"ytOfferSummaryRendererSubtitle"},_.W(_.Lr,{text:function(){return q.data().subtitle}})),_.W("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.W(_.mL,{each:function(){var w;
return(w=q.data().featureListData)!=null?w:[]}},function(w){var u;
return _.W("div",{class:"ytOfferSummaryRendererFeatureList"},_.W(_.U3,{icon:(u=w.icon)==null?void 0:u.iconType,className:w.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.W("div",{class:"ytOfferSummaryRendererFeatureListText"},_.W(_.Lr,{text:w.text})))})),_.W("div",{class:"ytOfferSummaryRendererDescription"},_.W(_.Lr,{text:function(){return q.data().description}}))))},"cf");_.q9(_.LL(function(q){var w={};w=_.HR("ytOfferSummaryFlowStepRendererHost",(w.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=q.shouldDisableHeaderTopMargin,w));return _.W("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:w},_.W("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.W("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.W(_.Lr,{text:function(){return q.data().header}})),_.W("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.W(_.Lr,{text:function(){return q.data().subtitle}}))),_.W("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.W(_.OF,{data:function(){return q.data().offerSummary}},{offerSummaryRenderer:function(u){return _.W(WbB,{data:u.data,
className:q.flowClassName})}})))},"df"),"yt-offer-summary-flow-step-renderer",{props:{data:_.xB,
flowClassName:_.xB,flowStateEntityKey:_.xB,shouldDisableHeaderTopMargin:_.xB}});var sRq=_.LL(function(q){var w=q.data;var u=q.className;var y=q.flowStateEntityKey;var e=q.selectionStepStyle;q=_.QS(function(n){var N=w(),Q=y==null?void 0:y();n.target&&(n.stopPropagation(),n=Q||"",Q=_.uU(_.cj().getState(),n),N=Object.assign({},Q,{premiumPurchaseFlowState:{selectedOptionId:N.optionId,primaryButtonOverride:N.primaryButtonOverride}}),_.cj().dispatch(_.IH("flowStateEntity",n,N)));return!1});
var t=function(){return(y==null?void 0:y())||""},X=_.Qo(_.uU,t);
_.p4(function(){var n=w(),N=t(),Q=X();!_.C(Q,qh)&&n.defaultSelected&&N!==""&&n.primaryButtonOverride&&DrV(n.optionId||"",N,n.primaryButtonOverride,Q)});
var G={};return _.W("ytm-option-item-renderer",{"on:click":q,class:_.HR(u,"ytm-option-item-renderer",(G["ytm-option-item-renderer--lp2-style"]=function(){return(e==null?void 0:e())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},G))},_.W("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.W("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var n=w(),N=t(),Q=X();Q=_.C(Q,qh);return(Q?(Q==null?void 0:Q.selectedOptionId)||"":n.defaultSelected&&N!==""?(n==null?void 0:n.optionId)||"":"")===w().optionId},
name:("input"+_.mv(_.Iu)).toString()})),_.W("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.W(_.r,{cond:function(){return w().eyebrowText},
then:function(){return _.W("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.W(_.Lr,{text:function(){return w().eyebrowText}}))}}),_.W("div",{class:"ytm-option-item-renderer__option-item-title"},_.W(_.Lr,{text:function(){return w().title}})),_.W("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.W(_.Lr,{text:function(){return w().subtitle}})),_.W("div",{class:"ytm-option-item-renderer__option-item-description"},_.W(_.Lr,{text:function(){return w().description}}))))},
"ef");var N4m=_.LL(function(q){var w=q.data;var u=q.flowClassName;var y=q.flowStateEntityKey;var e=q.selectionStepStyle;return _.W("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.W("div",{class:"yt-option-section-renderer__option-section-header-section"},_.W("div",{class:"yt-option-section-renderer__option-section-header"},_.W(_.Lr,{text:function(){return w().title}}),_.W(_.OF,{data:function(){return w().titleBadge}},{badgeViewModel:function(t){return _.W(_.hi,
{data:t.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.W(_.r,{cond:function(){return w().subtitle},
then:function(){return _.W("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.W(_.Lr,{text:function(){return w().subtitle}}))}}),_.W(_.r,{cond:function(){return w().featureListData},
then:function(t){return _.W("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.W(_.mL,{each:t},function(X){var G;return _.W("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.W(_.U3,{icon:(G=X.icon)==null?void 0:G.iconType,className:X.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.W("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.W(_.Lr,{text:X.text})))}))}}),_.W(_.mL,{each:function(){return w().sectionDisclaimers||[]}},function(t){return _.W("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.W(_.Lr,{text:t}))})),_.W(_.OF,{data:function(){return w().optionItems}},{optionItemRenderer:function(t){return _.W("div",{class:"yt-option-section-renderer__option-item"},_.W(sRq,{data:t.data,
className:u,flowStateEntityKey:y,selectionStepStyle:e}))}}),_.W(_.r,{cond:function(){return w().offerText},
then:function(){return _.W("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.W(_.Lr,{text:function(){return w().offerText}}))}}))},"ff");
N4m.idomCompat=!0;var QRB=_.LL(function(q){var w=q.data;var u=q.flowClassName;var y=q.flowStateEntityKey;q=q.isDesktop;var e=function(){var N;return(N=w().flowStateEntityKey)!=null?N:y==null?void 0:y()},t=function(){return(e==null?void 0:e())||""},X=function(){return w().style},G=_.Qo(_.uU,t);
_.p4(function(){var N=w(),Q=t(),I=G();!_.C(I,qh)&&N.noPreselect&&Q!==""&&N.defaultButtonOverride&&DrV("default",Q,N.defaultButtonOverride,I)});
var n={};return _.W("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.HR("ytm-option-selection-flow-step-renderer",(n["ytm-option-selection-flow-step-renderer--desktop"]=q,n["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return w().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},n))},_.W("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"},
_.W("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.W(_.Lr,{text:function(){return w().header}})),_.W("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.W(_.Lr,{text:function(){return w().subtitle}}))),_.W(_.OF,{data:function(){return w().optionItems||[]}},{optionItemRenderer:function(N){return _.W("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.W(sRq,{data:N.data,
className:u,flowStateEntityKey:e,selectionStepStyle:X}))},
optionSectionRenderer:function(N){return _.W("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.W(N4m,{data:N.data,flowClassName:u,flowStateEntityKey:e,selectionStepStyle:X}))}}))},"gf");
QRB.idomCompat=!0;_.q9(QRB,"yt-option-selection-flow-step-renderer",{props:{data:_.pK,flowClassName:_.pK,flowStateEntityKey:_.pK,isDesktop:_.pK}});var Zmm,pI6;_.b2=_.LL(function(q){var w=_.lf(q,{type:1,disablePadding:!1,disablePrimaryButton:!1}),u=w.data,y=w.type;q=w.disablePadding;var e=w.disablePrimaryButton,t=w.onClickPrimaryButton,X=function(){return u().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},G=function(){return{disabled:e(),
state:e()?"disabled":"active"}},n=function(){return u().leadingLabel||u().trailingLabel};
w={};return _.W("yt-panel-footer-view-model",{class:_.HR("yt-panel-footer-view-model-wiz",(w["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return u().shouldHideDivider},w["yt-panel-footer-view-model-wiz--disable-padding"]=q,w))},_.W(_.r,{cond:n,
then:function(){var N={},Q={};return _.W("div",{class:_.HR("yt-panel-footer-view-model-wiz__text-row",(N["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var I=u();return!(!I.leadingLabel&&!I.trailingLabel||!I.primaryButton&&!I.secondaryButton)},N))},_.W(_.Lr,{text:function(){return u().leadingLabel},
className:_.HR((Q["yt-panel-footer-view-model-wiz--text-padding"]=n,Q))}),_.W(_.Lr,{text:function(){return u().trailingLabel}}))}}),_.W(_.r,{cond:X,
then:function(){var N={};return _.W("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.W("div",{class:_.HR("yt-panel-footer-view-model-wiz__primary-button",(N["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return u().secondaryButton},N))},_.W(_.OF,{data:function(){return u().primaryButton}},{buttonViewModel:function(Q){return _.W(_.Zs,{data:Q.data,
buttonOverrides:G,onClick:t})}})),_.W(_.OF,{data:function(){return u().secondaryButton}},{buttonViewModel:_.Zs}))}}),_.W(_.r,{cond:function(){return!X()},
then:function(){var N={},Q={},I={};return _.W("div",{class:_.HR("yt-panel-footer-view-model-wiz__button-row",(N["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===y()},N))},_.W("div",{class:_.HR("yt-panel-footer-view-model-wiz__button-row--left-button",(Q["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===y()},Q["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!u().secondaryButton||0===y()},Q["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===y()},Q))},_.W(_.OF,{data:function(){return u().secondaryButton}},{buttonViewModel:_.Zs})),_.W("div",{class:_.HR("yt-panel-footer-view-model-wiz__primary-button",(I["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===y()||1===y()},I["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===y()},I))},_.W(_.OF,{data:function(){return u().primaryButton}},{buttonViewModel:function(U){return _.W(_.Zs,{data:U.data,
buttonOverrides:G,onClick:t})}})))}}))},"hf");
_.b2.idomCompat=!0;_.IGA=_.LL(function(q){q=_.lf(q,{disablePadding:!1});var w=q.data,u=q.disablePadding;q=_.YqH(function(){return w().formId});
var y=q.onSubmit,e=q.isValid,t=q.isSubmitting;return _.W("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.W(_.OF,{data:function(){return w().panelFooter}},{panelFooterViewModel:function(X){return _.W(_.b2,{data:X.data,
onClickPrimaryButton:function(){y()},
disablePrimaryButton:function(){return!e()||t()},
disablePadding:u})}}))},"jf");_.q9(_.IGA,"yt-form-footer-view-model",{props:{data:_.pK,disablePadding:_.pK}});_.q9(_.LL(function(q){return _.W("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.W("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.W(_.r,{cond:function(){var w;return(w=q.data())==null?void 0:w.image},
then:function(w){return _.W(_.ln,{data:w,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.W("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.W(_.Lr,{text:function(){var w;
return(w=q.data())==null?void 0:w.title}})),_.W("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.W(_.Lr,{text:function(){var w;
return(w=q.data())==null?void 0:w.subtitle}})),_.W("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.W(_.OF,{data:function(){var w;
return(w=q.data())==null?void 0:w.viewTipsButton}},{buttonViewModel:_.Zs}))))},"kf"),"yt-contributor-zero-state-view-model",{props:{data:_.pK}});var iDT=_.LL(function(q){var w=_.Qo(gja,_.jf(function(){var u;return(u=q.data())==null?void 0:u.noteFeedEntityKey},""));
return _.W("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.W("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.W("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.W(_.r,{cond:function(){var u,y;return(u=q.data())==null?void 0:(y=u.noteData)==null?void 0:y.isPinned},
then:function(){return _.W(_.U3,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.W(_.Lr,{text:function(){var u,y;
return(u=q.data())==null?void 0:(y=u.noteData)==null?void 0:y.headerText}}),_.W("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.W(_.Lr,{text:function(){var u,y;
return(u=q.data())==null?void 0:(y=u.noteData)==null?void 0:y.delimiter}})),_.W(_.Lr,{text:function(){var u,y;
return(u=w())==null?void 0:(y=u.contributorNote)==null?void 0:y.publishedTimeText}})),_.W(_.OF,{data:function(){var u,y,e,t=(u=q.data())==null?void 0:u.noteData;
u=(y=w())==null?void 0:(e=y.contributorNote)==null?void 0:e.deleteAction;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:t.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:t.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:t.deleteDialogTitle}]},dialogMessages:[{runs:[{text:t.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:t.deleteActionText}]},command:{performCommentActionEndpoint:{action:u}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:t.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(u){return _.W(_.Zs,{data:u.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.W("div",{class:"ytNoteViewModelNoteContent"},_.W(_.Lr,{text:function(){var u,y;
return(u=w())==null?void 0:(y=u.contributorNote)==null?void 0:y.text}})))},"lf");
iDT.idomCompat=!0;_.q9(iDT,"yt-note-view-model",{props:{data:_.pK}});var Yi=_.LL(function(q){var w=_.lf(q,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),u=w.label,y=w.text,e=w.placeholder,t=w.hint;q=w.rows;var X=w.overflowStyle,G=w.outline,n=w.disabled,N=w.disableNewLines,Q=w.characterLimit,I=w.validation,U=w.onInput,d=_.Bm();w=_.P(_.iv(function(){return y()}));
var V=w.next().value,J=w.next().value;w=_.P(_.r4(!1,void 0,"fXvinf"));var a=w.next().value,b=w.next().value,g=function(){b(!0)},l=function(){b(!1)};
_.p4(function(){var bc=d.value,Ro=X(),K7=V();Ro==="expand-vertically"&&K7&&EjV(bc);d.value.addEventListener("focusin",g);d.value.addEventListener("focusout",l)});
_.ZG(function(){d.value.removeEventListener("focusin",g);d.value.removeEventListener("focusout",l)});
var S=function(){var bc;return(bc=I())==null?void 0:bc.validate(V())},eH=function(){return Q()&&!S()&&V().length>Q().maxChars},x=function(){return!!S()||eH()};
w=_.QS(function(bc){if(!bc.currentTarget)return!1;bc=bc.currentTarget;J(bc.value);X()==="expand-vertically"&&EjV(bc);U==null||U(bc.value);return!0});
var P4=_.QS(function(bc){N()&&bc.key==="Enter"&&bc.preventDefault();return!1}),C7=_.QS(function(){d.value.focus()}),mu=function(){return e()||u()},Os={},YJ={},ao={};
return _.W("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.W("div",{class:_.HR("ytStandardsTextareaShapeTextareaContainer",(Os.ytStandardsTextareaShapeTextareaContainerOutline=G,Os.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=n,Os.ytStandardsTextareaShapeTextareaContainerOutlineError=x,Os)),"on:click":C7},_.W("label",{class:_.HR("ytStandardsTextareaShapeLabel",(YJ.ytStandardsTextareaShapeLabelFocused=a,YJ.ytStandardsTextareaShapeLabelDisabled=n,YJ.ytStandardsTextareaShapeLabelError=
function(){return x()&&!n()},YJ.ytStandardsTextareaShapeLabelHidden=function(){return!a()&&!V()&&!!mu()},YJ))},u),_.W("div",{class:_.HR("ytStandardsTextareaShapePlaceholder",(ao.ytStandardsTextareaShapePlaceholderVisible=function(){return!a()&&!V()},ao)),
"aria-hidden":"true"},mu),_.W("textarea",{el:d,class:"ytStandardsTextareaShapeTextarea",rows:q,disabled:n,placeholder:mu,"on:input":w,"on:keydown":P4},V)),_.W(_.r,{cond:function(){return t()&&!x()},
then:function(){var bc={};return _.W("div",{class:_.HR("ytStandardsTextareaShapeHint",(bc.ytStandardsTextareaShapeHintDisabled=n,bc))},_.W("div",{class:"ytStandardsTextareaShapeHintHintMessage"},t))}}),_.W(_.r,{cond:S,
then:function(){return _.W(rXK,{disabled:n},_.W("div",{class:"ytStandardsTextareaShapeErrorMessage"},S))}}),_.W(_.r,{cond:Q,
then:function(bc){return _.W(_.r,{cond:eH,then:function(){return _.W(rXK,{disabled:n},_.W("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return bc().errorMessage}),_.W("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return V().length+"/"+bc().maxChars}))}})}}))},"mf");
Yi.idomCompat={callbacks:{onInput:!0}};var rXK=_.LL(function(q){var w={};return _.W("div",{class:_.HR("ytStandardsTextareaShapeError",(w.ytStandardsTextareaShapeErrorDisabled=q.disabled,w)),role:"alert"},_.W(_.U3,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),q.children)},"nf");_.U$q=_.LL(function(q){var w=q.data;return _.W("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.W(Yi,{text:q.text,label:function(){var u;return(u=w().contentProperties)==null?void 0:u.labelText},
placeholder:function(){var u;return(u=w().contentProperties)==null?void 0:u.placeholderText},
hint:function(){var u;return(u=w().contentProperties)==null?void 0:u.hintText},
outline:function(){var u;return!((u=w().displayProperties)==null?0:u.hideBorder)},
overflowStyle:function(){var u;return((u=w().displayProperties)==null?0:u.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:q.disabled,disableNewLines:function(){var u;return(u=w().displayProperties)==null?void 0:u.disableNewLines},
onInput:q.onInput,characterLimit:q.characterLimit,validation:q.validation,rows:function(){var u;return(u=w().displayProperties)==null?void 0:u.rows}}))},"of");_.T46=_.LL(function(q){var w=q.data;return _.W("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.W(Yi,{text:q.text,label:function(){var u;return(u=w().contentProperties)==null?void 0:u.labelText},
placeholder:function(){var u;return(u=w().contentProperties)==null?void 0:u.placeholderText},
hint:function(){var u;return(u=w().contentProperties)==null?void 0:u.hintText},
outline:function(){var u;return!((u=w().displayProperties)==null?0:u.hideBorder)},
overflowStyle:function(){var u;return((u=w().displayProperties)==null?0:u.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var u;return(u=w().displayProperties)==null?void 0:u.disableNewLines},
onInput:q.onInput,characterLimit:q.characterLimit,validation:q.validation,rows:function(){var u;return(u=w().displayProperties)==null?void 0:u.rows}}))},"pf");var COH=_.LL(function(q){var w=_.P(_.iv(function(){var mu,Os;return((mu=q.data().structuredContextNoteFormSchema)==null?0:(Os=mu.initialValues)==null?0:Os.noteBody)?q.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),u=w.next().value,y=w.next().value;
w=_.P(_.iv(function(){q.data();return!1}));
var e=w.next().value,t=w.next().value;w=_.P(_.iv(function(){q.data();return!1}));
var X=w.next().value,G=w.next().value;w=_.P(_.iv(function(){var mu,Os;return((mu=q.data().structuredContextNoteFormSchema)==null?0:(Os=mu.initialValues)==null?0:Os.timestamp)?q.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var n=w.next().value,N=w.next().value;w=_.P(_.iv(function(){q.data();return!1}));
var Q=w.next().value,I=w.next().value;w=_.P(_.iv(function(){var mu,Os;return((mu=q.data().structuredContextNoteFormSchema)==null?0:(Os=mu.initialValues)==null?0:Os.sources)?[q.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var U=w.next().value,d=w.next().value;w=_.P(_.iv(function(){q.data();return!1}));
var V=w.next().value,J=w.next().value;w=_.P(_.iv(function(){return!1}));
var a=w.next().value,b=w.next().value;_.p4(function(){var mu;_.bmm((mu=q.data().structuredContextNoteFormSchema)==null?void 0:mu.id,{isSubmitting:a,onSubmit:function(){b(!0);var Os=K$H(u(),n(),U(),q.data()),YJ=_.tG().resolve(_.PG);Os&&YJ&&YJ.resolveCommand(Os,{commandController:{onSuccess:function(){b(!1)}}})},
isValid:function(){return e()&&!X()&&!Q()&&!V()}})});
var g=function(mu){if(mu!==void 0&&(y(mu),!e()&&mu.length>0&&t(!0),e())){var Os=SqB(q.data());if(Os){var YJ=Os.minLength;Os=Os.maxLength;YJ&&mu.length<YJ?G(!0):Os&&mu.length>Os?G(!0):G(!1)}}},l=function(mu){if(mu!==void 0){N(mu);
if(mu.length>0){var Os,YJ,ao,bc,Ro=jQ4((Os=q.data())==null?void 0:(YJ=Os.structuredContextNoteFormSchema)==null?void 0:(ao=YJ.fieldSchemas)==null?void 0:(bc=ao.timestamp)==null?void 0:bc.validationSchema);if(Ro&&(Os=Ro.regex)&&!(new RegExp(Os)).test(mu)){I(!0);return}}I(!1)}},S=function(mu){if(mu!==void 0){var Os=mu.split(/[ \n]/).map(function(YJ){return YJ.trim()});
d(Os);if(mu.length>0)for(mu=_.P(Os),Os=mu.next();!Os.done;Os=mu.next())if(!MRh(Os.value)){J(!0);return}J(!1)}},eH=function(){return{validate:function(mu){if(e()){var Os=SqB(q.data());
if(Os){var YJ=Os.minLength;Os=Os.translations;if(YJ&&mu.length<YJ)return Os==null?void 0:Os.minLengthErrorMessage}}}}},x=function(){var mu=SqB(q.data()),Os=mu==null?void 0:mu.maxLength,YJ;
mu=mu==null?void 0:(YJ=mu.translations)==null?void 0:YJ.maxLengthErrorMessage;if(Os&&mu)return{maxChars:Os,errorMessage:mu}},P4=function(){return{validate:function(mu){if(mu){var Os,YJ,ao,bc,Ro=jQ4((Os=q.data())==null?void 0:(YJ=Os.structuredContextNoteFormSchema)==null?void 0:(ao=YJ.fieldSchemas)==null?void 0:(bc=ao.timestamp)==null?void 0:bc.validationSchema);
if(Ro&&(Os=Ro.regex,Ro=Ro.translations,Os&&!(new RegExp(Os)).test(mu)))return Ro==null?void 0:Ro.regexErrorMessage}}}},C7=function(){return{validate:function(mu){if(mu){var Os,YJ,ao,bc,Ro=L$6((Os=q.data())==null?void 0:(YJ=Os.structuredContextNoteFormSchema)==null?void 0:(ao=YJ.fieldSchemas)==null?void 0:(bc=ao.sources)==null?void 0:bc.validationSchema);
if(Ro&&(Os=Ro.translations,Os==null?0:Os.selectedErrorMessage))for(mu=mu.split(/[ \n]/).map(function(K7){return K7.trim()}),mu=_.P(mu),YJ=mu.next();!YJ.done;YJ=mu.next())if(!MRh(YJ.value))return mu=void 0,(mu=Os)==null?void 0:mu.selectedErrorMessage}}}};
return _.W("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.W("div",{class:"ytStructuredContextNoteViewModelTextField"},_.W(_.OF,{data:function(){var mu;return(mu=q.data())==null?void 0:mu.noteContents}},{textFormFieldViewModel:function(mu){return _.W(_.T46,{data:mu.data,
onInput:g,validation:eH,characterLimit:x})},
textFieldViewModel:function(mu){return _.W(_.U$q,{data:mu.data,onInput:g,validation:eH,characterLimit:x})}})),_.W("div",{class:"ytStructuredContextNoteViewModelTextField"},_.W(_.OF,{data:function(){var mu;
return(mu=q.data())==null?void 0:mu.noteTimestamp}},{textFormFieldViewModel:function(mu){return _.W(_.T46,{data:mu.data,
onInput:l,validation:P4})},
textFieldViewModel:function(mu){return _.W(_.U$q,{data:mu.data,onInput:l,validation:P4})}})),_.W("div",{class:"ytStructuredContextNoteViewModelTextField"},_.W(_.OF,{data:function(){var mu;
return(mu=q.data())==null?void 0:mu.noteSources}},{textFormFieldViewModel:function(mu){return _.W(_.T46,{data:mu.data,
onInput:S,validation:C7})},
textFieldViewModel:function(mu){return _.W(_.U$q,{data:mu.data,onInput:S,validation:C7})}})))},"qf");
COH.idomCompat=!0;_.q9(COH,"yt-structured-context-note-view-model",{props:{data:_.pK}});var d$T=_.LL(function(q){var w=_.P(_.iv(function(){var t;if((t=q.controlled)==null?0:t.call(q))return[];var X;return(((X=q.data())==null?void 0:X.chips)||[]).map(function(G){G=_.C(G,_.$P);if(G==null?0:G.selected)return BY6(G.chipValue)}).filter(function(G){return G!==void 0})})),u=w.next().value,y=w.next().value,e=function(t){var X=BY6(t.chipValue);
if(X!==void 0){var G;if((G=q.controlled)==null?0:G.call(q))return void q.controlled().onTap(X);t=u().includes(X)?[].concat(_.Cm(u().filter(function(N){return N!==X}))):[].concat(_.Cm(u()),[X]);
y(t);var n;if((n=q.uncontrolled)==null?0:n.call(q))q.uncontrolled().onUpdate(t)}};
return _.W("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.W(_.mL,{each:function(){return q.data().chips||[]}},function(t){return _.W("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.W(_.QcG,{data:function(){return _.C(t,_.$P)},
selected:function(){var X;if(X=_.C(t,_.$P)){var G=BY6(X.chipValue);if(G!==void 0){var n;X=((n=q.controlled)==null?0:n.call(q))?q.controlled().selectedValues.includes(G):u().includes(G)}else X=void 0}else X=!1;return X},
callback:e}))}))},"rf");var ODj=_.LL(function(q){var w=q.data;var u=function(){var G;return((G=w())==null?void 0:G.flowStateKey)||""},y=_.Qo(_.uU,u),e=function(){var G;
return(G=_.C(y(),jr6))==null?void 0:G.chips},t=function(G){if(G!==void 0){var n=e()||[];
n=n.find(function(N){return N===G})?n.filter(function(N){return N!==G}):[].concat(_.Cm(n),[G]);
n=Object.assign({},y(),{feedbackFormFlowState:Object.assign({},_.C(y(),jr6),{chips:n})});_.hM(_.IH("flowStateEntity",u(),n))}},X=function(){var G;
return _.C((G=w())==null?void 0:G.inputBox,lLm)};
q=_.Qs(function(G){var n=X();n=!(n==null?0:n.maxChars)||G.length<=n.maxChars;G=Object.assign({},y(),{feedbackFormFlowState:Object.assign({},_.C(y(),jr6),{detail:G}),abuseReportFlowState:Object.assign({},_.C(y(),yK),{navigationEnabled:n})});_.hM(_.IH("flowStateEntity",u(),G))},150);
return _.W("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.W("div",{class:"ytFeedbackFormViewModelChips"},_.W(_.OF,{data:function(){var G;return(G=w())==null?void 0:G.chipSelection}},{chipSelectionFormFieldViewModel:function(G){return _.W(d$T,{data:G.data,
controlled:function(){return{selectedValues:e()||[],onTap:t}}})}})),_.W("div",{class:"ytFeedbackFormViewModelInputBox"},_.W(Yi,{text:function(){var G;
return(G=_.C(y(),jr6))==null?void 0:G.detail},
placeholder:function(){var G;return((G=X())==null?void 0:G.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var G=X();if(G&&G.maxChars)return{maxChars:G.maxChars,errorMessage:G.maxCharsExceededErrorMessage||""}},
onInput:q})),_.W("div",{class:"ytFeedbackFormViewModelFooterText"},_.W(_.Lr,{text:function(){return w().footerText}})))},"sf");
ODj.idomCompat=!0;_.q9(ODj,"yt-feedback-form-view-model",{props:{data:_.pK}});var oC6=_.LL(function(q){var w=q.data;var u=function(){return w().flowStateKey||""},y=_.Qo(M94,u),e=function(){return _.C(y(),yK)},t=function(){if(_.T("enable_gff_accessibility_fix")){var X=!0,G;
if((G=e())==null?0:G.navigationEnabled){var n;_.bn((n=e())==null?void 0:n.navigationCommand);X=!1}G=Object.assign({},y(),{abuseReportFlowState:Object.assign({},e(),{isReportFormDirty:X})});_.hM(_.IH("flowStateEntity",u(),G))}else _.bn((X=e())==null?void 0:X.navigationCommand)};
return _.W("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.W("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.W(_.OF,{data:function(){return w().cancelButton}},{buttonViewModel:function(X){return _.W(_.Zs,{data:X.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:t})}}),_.W(_.OF,{data:function(){var X;
if(w().navButton){var G=Object;var n=G.assign,N=_.C(w().navButton,_.oH),Q=((X=e())==null?0:X.navigationEnabled)||_.T("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",I,U;X=_.C((I=e())==null?void 0:I.navigationCommand,_.Dh);I=(U=_.C(X,_.jw))==null?void 0:U.url;G={buttonViewModel:n.call(G,{},N,{state:Q,iconName:I?"OPEN_IN_NEW":""})}}else G=void 0;return G}},{buttonViewModel:function(X){return _.W(_.Zs,{data:X.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:t})}})))},"tf");
oC6.idomCompat=!0;_.q9(oC6,"yt-report-form-bottom-bar-view-model",{props:{data:_.pK}});var V7T=_.LL(function(q){var w=q.nextStep;return _.W("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.W("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.W(_.U3,{icon:function(){return w().iconName||""}})),_.W("div",null,_.W(_.Lr,{text:function(){return w().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"uf"),fGT=_.LL(function(q){var w=q.data;
var u,y=(u=_.tG().resolve(_.kF(_.Rg)))==null?void 0:u(),e=_.Qo(_.uU,function(){return w().flowStateKey||""});
return _.W("yt-report-form-confirmation-page-view-model",{class:function(){var t;return((t=_.C(e(),yK))==null?void 0:t.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.W("div",{class:function(){var t;
return((t=_.C(e(),yK))==null?void 0:t.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.W(_.ln,{data:function(){return y&&w().imageDark?w().imageDark:w().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.W("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.W("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return w().confirmationHeader}),_.W("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.W(_.Lr,{text:function(){return w().confirmationText}})),_.W("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.W(_.Lr,{text:function(){return w().lawEnforcementText}})),
_.W("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return w().whatToExpectHeader}),_.W(_.r,{cond:function(){return w().nextSteps},
then:function(t){return _.W("div",null,_.W(_.mL,{each:t},function(X){return _.W(V7T,{nextStep:X})}))}}),_.W(_.r,{cond:function(){return w().legalReportText},
then:function(t){return _.W("div",null,_.W(_.Lr,{text:t,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"vf");
fGT.idomCompat=!0;_.q9(fGT,"yt-report-form-confirmation-page-view-model",{props:{data:_.pK}});var m$T=_.LL(function(q){var w=q.data;var u=function(){var t;return((t=_.C(w().inputBox,lLm))==null?void 0:t.maxChars)||500},y=function(){return w().flowStateKey||""},e=_.Qo(_.uU,y);
q=_.Qs(function(t){t=Object.assign({},e(),{flowFormState:{isValid:t.length<=u()},abuseReportFlowState:{userComments:t,navigationEnabled:!(t.length>u()),isReportFormDirty:!0}});_.cj().dispatch(_.mG("flowStateEntity",y(),t))},150);
_.p4(function(){var t=Object.assign({},e(),{flowFormState:{isValid:!0}});_.cj().dispatch(_.mG("flowStateEntity",y(),t))});
return _.W("yt-report-form-details-page-view-model",{class:function(){var t;return((t=_.C(e(),yK))==null?void 0:t.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.W("h1",{class:function(){var t;
return((t=_.C(e(),yK))==null?void 0:t.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return w().detailsPageHeader}),_.W("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.W(_.Lr,{text:function(){return w().bodyText}})),_.W("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.W(Yi,{label:function(){var t;
return((t=_.C(w().inputBox,lLm))==null?void 0:t.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var t;return{errorMessage:((t=_.C(w().inputBox,lLm))==null?void 0:t.maxCharsExceededErrorMessage)||"",maxChars:u()}},
onInput:q})))},"wf");
m$T.idomCompat=!0;_.q9(m$T,"yt-report-form-details-page-view-model",{props:{data:_.pK}});var AXj=_.LL(function(q){var w=q.data;var u=q.selectedKey;var y=q.onSelected;var e=q.groupName;var t=function(){return w().text},X=function(){return w().attributedText},G=function(){return w().subtext},n=function(){return w().attributedSubtext},N=_.W("div",{class:"ytRadioButtonItemViewModelLabel"},_.W(_.r,{cond:t,
then:function(){return _.W("div",null,t)}}),_.W(_.r,{cond:X,
then:function(){return _.W(_.Lr,{text:X})}}),_.W(_.r,{cond:G,
then:function(){return _.W("div",{class:"ytRadioButtonItemViewModelSubText"},G)}}),_.W(_.r,{cond:n,
then:function(){return _.W("div",{class:"ytRadioButtonItemViewModelSubText"},_.W(_.Lr,{text:n}))}})),Q=function(){if(X()){var U;
return(U=X())==null?void 0:U.content}return t()},I=function(){if(n()){var U;
return(U=n())==null?void 0:U.content}return G()};
q={};return _.W("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.W(_.r2,{name:e,checked:function(){return!(u==null||!u()||w().key!==(u==null?void 0:u()))},
onChange:function(U){y==null||y(U.target,w(),e==null?void 0:e())},
labelRenderable:function(){return N},
ariaLabel:function(){return I()?Q()+", "+I():Q()},
className:_.HR((q.ytRadioButtonItemViewModelSubTitle=function(){return!!w().subtext},q))}))},"xf");_.JXT=_.LL(function(q){var w=q.data;var u=q.onSelected;var y=q.selectedKey;var e=q.groupName;return _.W("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.W("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.W(_.OF,{data:function(){return w().radioButtons}},{radioButtonItemViewModel:function(t){return _.W(AXj,{data:t.data,
onSelected:u,selectedKey:y,groupName:function(){return(e==null?void 0:e())||w().key}})}})))},"yf");var zPq=_.LL(function(q){var w=q.data;var u=_.x8(),y=function(){return w().flowStateKey||""},e=_.Qo(_.uU,y),t=function(){return _.C(e(),yK)};
_.DG(function(){var X,G;if(((X=t())==null?0:X.isReportFormDirty)&&((G=t())==null||!G.navigationEnabled)&&_.T("enable_gff_accessibility_fix")){var n;if(((n=t())==null?void 0:n.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var N;(N=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||N.scrollIntoView()}else{var Q;(Q=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||Q.scrollIntoView()}}});
return _.W("yt-report-form-reason-select-page-view-model",{class:function(){var X;return((X=t())==null?void 0:X.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.W("h1",{class:function(){var X;
return((X=t())==null?void 0:X.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return w().pageHeader}),_.W("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.W(_.Lr,{text:function(){return w().bodyText}})),_.W("div",{class:function(){var X;
return((X=t())==null?void 0:X.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.W(_.r,{cond:function(){var X,G;
return((X=t())==null?void 0:X.isReportFormDirty)&&!((G=t())==null?0:G.navigationEnabled)&&_.T("enable_gff_accessibility_fix")},
then:function(){return _.W("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:u},_.W(_.U3,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.W("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return w().emptyReasonSelectErrorMessage}))}}),_.W(_.JXT,{data:function(){return _.C(w().radioButtonGroup,_.u3j)},
onSelected:function(X,G){X=Object.assign({},e(),{abuseReportFlowState:Object.assign({},t(),{reasonKey:G.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:G.command})});_.hM(_.IH("flowStateEntity",y(),X))},
selectedKey:function(){var X;return(X=t())==null?void 0:X.reasonKey},
groupName:"report-form-reason-select-page"})))},"zf");
zPq.idomCompat=!0;_.q9(zPq,"yt-report-form-reason-select-page-view-model",{props:{data:_.pK}});var aGa=_.LL(function(q){var w=q.data;var u,y=(u=_.tG().resolve(_.kF(_.Rg)))==null?void 0:u();return _.W("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.W("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.W(_.ln,{data:function(){return y&&w().imageDark?w().imageDark:w().image},
alt:""})),_.W("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.W("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return w().header}),_.W(_.Lr,{text:function(){return w().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Af");
aGa.idomCompat=!0;_.q9(aGa,"yt-report-form-sign-in-page-view-model",{props:{data:_.pK}});_.q9(_.LL(function(q){var w=q.data;var u=function(){var N;return(N=w().textInputPlaceholder)==null?void 0:N.content},y=function(N){N=N.target.value.trim();
var Q=w().onUpdateText;Q&&_.bn(Q,{form:{userQuery:N}});w().userQuery=N},e=_.Qs(function(N){y(N)},150),t=_.QS(function(N){e(N);
return!1}),X=_.QS(function(N){N.key==="Enter"&&(y(N),(N=w().onNextStepCommand)&&_.bn(N,{}));
return!1}),G=_.Bm(),n=function(){if(_.T("web_hide_explore_hub_until_user_navigates_back_to_home")){var N,Q,I;
(I=(Q=(N=G.value)==null?void 0:N.closest("ytd-flow-step-renderer"))==null?void 0:Q.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||I.click()}};
return _.W("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:G},_.W("div",{class:"ytwTalkToRecsTopCornerButton"},_.W(_.OF,{data:function(){return w().topCornerButton}},{buttonViewModel:_.Zs})),_.W("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.W("div",{class:"ytwTalkToRecsTitle"},_.W(_.Lr,{text:function(){return w().title}})),_.W("div",{class:"ytwTalkToRecsSubtitle"},_.W(_.Lr,{text:function(){return w().subtitle}})),_.W("div",{class:"ytwTalkToRecsChipsShelf"},_.W(_.OF,{data:function(){return w().answersShelf}},
{chipsShelfViewModel:function(N){return _.W(_.oOP,{data:N.data,
callback:n})}})),_.W(_.r,{cond:function(){return w().showOpenTextInput&&!_.T("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.W("div",{class:"ytwTalkToRecsUserInputBox"},_.W("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:u,value:function(){return w().userQuery},
"on:input":t,"on:keyup":X}))}})))},"Bf"),"yt-talk-to-recs-view-model",{props:{data:_.pK}});var xrh={sources:[{clientResource:{imageName:"CHECK"}}]};_.D$c=_.LL(function(q){var w=_.Bm();q=_.lf(q,{error:void 0});var u=q.data,y=q.error,e=q.onSelected;q=_.P(_.iv(function(){return uO6(u())}));
var t=q.next().value,X=q.next().value;t3K(u,function(I){X(I);var U,d,V=wXB((U=u().options)==null?void 0:(d=U[I])==null?void 0:d.value,u().type);e==null||e(V);w.value.focus()});
q=_.QS(function(){if(!u().disabled){var I=u(),U=t(),d=w.value;I.options&&(I=qfT(I.options,U,I.label),_.tG().resolve(_.ru).openSheet({viewModel:I},d))}});
var G=_.MTc(),n=function(){return!!y()},N=function(){return!!u().disabled},Q={};
Q=_.HR("ytDropdownViewModelDropdownContainer",(Q.ytDropdownViewModelDropdownContainerErrorBorder=n,Q.ytDropdownViewModelDropdownContainerDisabled=N,Q));return _.W("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.W("div",{class:Q,"on:click":q,el:w,role:"combobox",tabindex:0,"on:keydown":G,"aria-invalid":n,"aria-disabled":N,"aria-describedby":function(){return n()?"dropdown-view-model-error":void 0}},_.W("div",{class:"ytDropdownViewModelText"},ywT(u,n,t),eqa(u,t)),_.W("div",{class:"ytDropdownViewModelChevronDown"},
_.W(_.U3,{icon:"CHEVRON_DOWN"}))),kcm(u,y))},"Cf");_.q9(_.LL(function(q){var w=q.data;var u=function(e){var t=XXm(w());t.videoMetadata||(t.videoMetadata={});t.videoMetadata.sponsorshipsMetadata||(t.videoMetadata.sponsorshipsMetadata={});t.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(e)},y=function(e){var t=XXm(w());
t.scheduledRedirectMetadata||(t.scheduledRedirectMetadata={});t.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(e)};
return _.W("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.W("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.W("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.W(_.Lr,{text:function(){return w().title}}),_.W(_.U3,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.W(_.Lr,{text:function(){return w().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.W(_.OF,{data:function(){return w().tierChoices}},{dropdownViewModel:function(e){return _.W("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.W(_.D$c,{data:e.data,
onSelected:u}))}}),_.W(_.OF,{data:function(){return w().startTimeChoices}},{dropdownViewModel:function(e){return _.W("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.W(_.D$c,{data:e.data,
onSelected:y}))}}),_.W(_.Lr,{text:function(){return w().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.W("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.W(_.OF,{data:function(){return w().scheduleButton}},{panelFooterViewModel:_.b2})))},"Df"),"ytfz-schedule-fanzone-view-model",{props:{data:_.pK}});_.q9(_.LL(function(q){var w=q.data;q=q.className===void 0?"":q.className;var u=_.Qo(M94,function(){return w().flowStateEntityKey||""}),y={};
y=_.HR("ytFlowBottomBarViewModelFlowBottomBarButtons",(y.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return w().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||w().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},y));
var e={},t=_.HR("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",y,(e.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return w().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},e.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return w().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},e));
e={};var X=_.HR("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",y,(e.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return w().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},e.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return w().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},e));
y={};y=_.HR("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(y.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return w().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},y.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return w().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},y.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return w().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
y));
return _.W("yt-flow-bottom-bar-view-model",{class:_.HR("ytFlowBottomBarViewModelHost",q)},_.W(_.r,{cond:function(){var G;return(G=w())==null?void 0:G.textSection},
then:function(G){return _.W("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.W(_.Lr,{text:G}))}}),_.W("div",{class:y},_.W(_.OF,{data:function(){return w().secondaryButton}},{buttonViewModel:function(G){return _.W(_.Zs,{data:G.data,
className:X})}}),_.W(_.OF,{data:function(){return w().primaryButton}},{buttonViewModel:function(G){return _.W(_.Zs,{data:G.data,
className:t,buttonOverrides:function(){var n;return{disabled:!((n=u())==null||!n.primaryButtonDisabled)}}})}})))},"Ef"),"yt-flow-bottom-bar-view-model",{props:{data:_.pK,
className:_.xB}});var ZDB="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),g5=function(){var q=_.Y.apply(this,arguments)||this;q.enableScrollingFix=!0;q.bottomBar=!1;q.hideBottomBar=!1;q.fitContent=!1;return q};
_.O(g5,_.Y);_.k=g5.prototype;_.k.ready=function(){_.T("enable_pdp_icon_prefetch")&&_.hqm(_.tG().resolve(_.tQ),0,ZDB)};
_.k.focus=function(q){this.topBar?_.xZ(this.topBar,q):this.paperDialog.focus(q)};
_.k.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16714_scroller&&(this.JSC$16714_scroller.dialogElement=this.paperDialog,this.JSC$16714_scroller.attached&&typeof this.JSC$16714_scroller.attached==="function"&&this.JSC$16714_scroller.attached())};
_.k.onDataChanged=function(){var q;this.fitContent=!((q=this.data)==null||!q.fitContent);var w;this.bottomBar=!((w=this.data)==null||!w.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.k.onProgressChanged=function(){var q,w,u=((w=(q=this.data)==null?void 0:q.progress)!=null?w:0)*100;this.progressElement.style.width=u+"%"};
_.k.isProgressHidden=function(){var q;return!((q=this.data)==null?0:q.progress)};
_.k.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",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(q){return _.T("enable_wiz_next_lp2_msof")&&q&&!q.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.x$.Object.defineProperties(g5.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var q;return _.T("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.C((q=this.data)==null?void 0:q.content,xKa)}}});
g5.prototype.onProgressChanged=g5.prototype.onProgressChanged;g5.prototype.onDataChanged=g5.prototype.onDataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],g5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],g5.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],g5.prototype,"enableScrollingFix",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],g5.prototype,"bottomBar",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],g5.prototype,"hideBottomBar",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],g5.prototype,"containsExploreHub",null);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],g5.prototype,"fitContent",void 0);_.c([_.Wj("#progress"),_.h("design:type",HTMLElement)],g5.prototype,"progressElement",void 0);
_.c([_.Wj("#scroller"),_.h("design:type",Object)],g5.prototype,"JSC$16714_scroller",void 0);_.c([_.Wj("ytd-flow-top-bar-renderer"),_.h("design:type",HTMLElement)],g5.prototype,"topBar",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g5.prototype,"onDataChanged",null);_.c([_.nL("data.progress"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g5.prototype,"onProgressChanged",null);
g5=_.c([_.E({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],g5);
_.R(g5,"ytd-flow-step-renderer",function(){if(Tgx!==void 0)return Tgx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Tgx=q},{mode:1});var p16=function(q){this.resolveCommand=q;this.steps={}},$$6=function(q,w){w=_.P(w||[]);
for(var u=w.next();!u.done;u=w.next()){u=u.value;var y=Object.values(u)[0],e=void 0;if((e=y)==null?0:e.stepId)q.steps[y.stepId]=u}},YZa=function(q,w){var u,y,e,t,X;
return _.F(function(G){if((u=q.state)==null||!u.currentStepId)return G.return(void 0);y=vCT(q);if(!y)return G.return(bDK(q));if(e=_.C(y,_.Bbm)){var n;((n=e.screenLoggingData)==null?0:n.screenVeType)&&_.e$(_.Qz(),e.screenLoggingData.screenVeType);((t=e)==null?0:t.onStepStartCommand)&&q.resolveCommand((X=e)==null?void 0:X.onStepStartCommand,{})}if(e&&w){n=e;var N,Q,I,U;((N=w.flowLoggingData)==null?0:N.eventNamespace)&&((Q=n.flowEventData)==null?0:Q.eventType)&&((I=n.flowEventData)==null?0:I.eventMetadata)&&
((U=w.flowLoggingData)==null?0:U.flowType)&&(N=_.np(w.flowLoggingData.eventNamespace,n.flowEventData.eventType,n.flowEventData.eventMetadata),_.HM(_.WM(),N,w.flowLoggingData.flowType));w.steps&&!w.steps.includes(y)&&w.steps.push(y)}return G.return(y)})};
p16.prototype.back=function(){var q;(q=this.state)!=null&&q.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
p16.prototype.handleUpdateFlowCommand=function(q){q.steps&&$$6(this,q.steps);q.entityUpdateCommand&&this.resolveCommand(q.entityUpdateCommand,{});q.flowContinuationCommand&&(q=q.flowContinuationCommand)&&(this.getFlowContinuationCommand=q);this.awaitFlowContinuation&&(this.awaitFlowContinuation(vCT(this)),this.awaitFlowContinuation=void 0)};
p16.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var bDK=function(q){return _.F(function(w){return q.getFlowContinuationCommand?w.return(new Promise(function(u){q.awaitFlowContinuation=u;q.getFlowContinuationCommand&&q.resolveCommand(q.getFlowContinuationCommand,{flow_state:q.state})})):w.return(Promise.resolve(void 0))})},vCT=function(q){var w;
if((w=q.state)!=null&&w.currentStepId)return q.steps[q.state.currentStepId]};var EQ=function(){var q=_.Y.apply(this,arguments)||this;q.flowState=new p16(function(w,u){u=u===void 0?{}:u;_.nx.instance.resolveCommand(w,{form:{form:u,element:q.hostElement}})});
q.initialState=!0;q.isLoading=!1;q.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 q};
_.O(EQ,_.Y);_.k=EQ.prototype;_.k.onPopupClosed=function(q){q&&this.hostElement!==q.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.k.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"}}}};
_.k.focus=function(q){var w=this;_.vj(function(){var u=_.A(w.hostElement).querySelector("ytd-flow-step-renderer");(u==null?0:u.topBar)?u.focus(q):w.topBar&&_.xZ(w.topBar,q)},1)};
_.k.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.k.computeTopBarHidden=function(q){var w;return!((w=_.C(q,_.Bbm))==null||!w.topBarOverride)};
_.k.dataChanged=function(){var q=this,w,u;return _.F(function(y){if(y.nextAddress==1){((w=q.data)==null?0:w.steps)&&$$6(q.flowState,q.data.steps);if((u=q.data)==null?0:u.flowContinuationCommand){var e=q.flowState,t=q.data.flowContinuationCommand;t&&(e.getFlowContinuationCommand=t)}return _.H(y,YZa(q.flowState,q.data),2)}q.currentFlowStep=y.yieldResult;_.HI(y)})};
_.k.flowChanged=function(){var q=this,w;return _.F(function(u){if(u.nextAddress==1){if(!q.flow)return u.return();q.flowState.state=q.flow;q.isLoading=!0;return _.H(u,YZa(q.flowState,q.data),2)}w=u.yieldResult;if(!w||q.flow.isLoading)return u.return();q.currentFlowStep=w;q.initialState=!1;q.isLoading=!1;q.autofocusAndRefit();_.HI(u)})};
_.k.autofocusAndRefit=function(){var q=this,w=_.tG().resolve(_.kF(_.LK)),u=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),y=document.querySelector("yt-report-form-confirmation-page-view-model"),e=document.querySelector("yt-report-form-details-page-view-model"),t=document.querySelector("yt-report-form-reason-select-page-view-model"),X=document.querySelector("yt-contributor-zero-state-view-model"),
G=document.querySelector("yt-structured-context-note-view-model"),n=document.querySelector("yt-note-view-model");(!u&&w&&w.isKeyBoardInUse()||y||!u&&e||!u&&t||X||G||n)&&_.q5(this.hostElement);_.KJ(this,function(){_.t7(q.hostElement,"yt-refit")})};
_.k.handleUpdateFlowCommand=function(q){this.data&&(q=_.C(q,KNh),q.targetId===this.data.targetId&&(q.flowContinuationCommand&&(this.data.flowContinuationCommand=q.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(q),this.autofocusAndRefit()))};
_.k.handleFlowNextStepCommand=function(q){this.data&&this.flow&&this.flow.key&&(q=_.C(q,LNK),q.targetId===this.data.targetId&&(q=q.stepId||"",this.ytdReduxBehavior.dispatch(_.mG("flowStateEntity",this.flow.key,{currentStepId:q,stepIdStack:(this.flow.stepIdStack||[]).concat(q)}))))};
_.k.handleFlowPrevStepCommand=function(q){if(this.data&&this.flow&&this.flow.key&&(q=_.C(q,M3j),q.targetId===this.data.targetId)){var w=[].concat(_.Cm(this.flow.stepIdStack||[]));w.length>1?(w.pop(),this.ytdReduxBehavior.dispatch(_.mG("flowStateEntity",this.flow.key,{currentStepId:w[w.length-1],stepIdStack:w}))):q.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(q.onFirstStepCommand)}};
_.k.handleYpcCancelRecurrenceCommand=function(q){if(this.data&&this.flow&&this.flow.key&&(q=_.C(q,y1m),q.targetId===this.data.targetId&&q.endpointCommand)){var w=_.C(this.flow,eVq);w&&_.C(q.endpointCommand,_.MLG)&&(_.C(q.endpointCommand,_.MLG).feedbackData=w.surveyFeedback);this.ytComponentBehavior.resolveCommand(q.endpointCommand)}};
_.k.handlePartialUpdateFlowStateEntity=function(q){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.mG("flowStateEntity",this.flow.key,q,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
EQ.prototype.flowChanged=EQ.prototype.flowChanged;EQ.prototype.dataChanged=EQ.prototype.dataChanged;EQ.prototype.onPopupClosed=EQ.prototype.onPopupClosed;_.c([_.D(_.fU),_.h("design:type",Object)],EQ.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],EQ.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],EQ.prototype,"ytComponentBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],EQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],EQ.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],EQ.prototype,"initialState",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],EQ.prototype,"isLoading",void 0);_.c([_.v(),_.h("design:type",Object)],EQ.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",Object)],EQ.prototype,"currentFlowStep",void 0);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],EQ.prototype,"onPopupClosed",null);_.c([_.v({selectorArgs:["data.flowStateEntityKey"],selector:M94}),_.h("design:type",Object)],EQ.prototype,"flow",void 0);_.c([_.Wj("ytd-flow-top-bar-renderer"),_.h("design:type",HTMLElement)],EQ.prototype,"topBar",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],EQ.prototype,"dataChanged",null);_.c([_.I9("flow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],EQ.prototype,"flowChanged",null);EQ=_.c([_.E({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],EQ);
_.gCx=_.eD()(EQ,"ytd-flow-root-renderer",function(){if(U16!==void 0)return U16;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return U16=q},{mode:_.kB("kevlar_poly_si_batch_j025")?1:2});var ECj;var w5=null;_.q9(_.LL(function(q){return _.W("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.W("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.W(_.Lr,{text:function(){return q.data().text}}),_.W("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Ff"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.pK}});var RPx=_.LL(function(q){var w=q.playerControlsProps;var u=q.isShortsPage;return _.W("yt-bigboard",null,_.W(_.r,{cond:function(){return w().isDragging},
then:function(){return _.W("div",{class:"ytBigboardStoryboardHost"},_.W(_.Jx4,{progressBarProps:w,isShortsPage:u}))}}))},"Gf");
RPx.idomCompat=!0;_.RY={ACCOUNT_LABEL:u2("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:u2("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:u2("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:u2("AD_BADGE_HINT"),AD_BADGE_TEXT:u2("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:u2("ALL_CHANNELS_LABEL"),AMBIENT_MODE:u2("AMBIENT_MODE"),AMBIENT_MODE_OFF:u2("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:u2("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:u2("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:u2("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:u2("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:u2("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:u2("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:u2("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:u2("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:u2("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:u2("AUTOPLAY_UP_NEXT_IN"),BACK:u2("BACK"),CANCEL:u2("CANCEL"),CHANNEL_SWITCHER_LABEL:u2("CHANNEL_SWITCHER_LABEL"),CLOSE:u2("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:u2("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:u2("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:u2("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:u2("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:u2("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:u2("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:u2("COMMENT_MODAL_CONTENT"),CONFIRM_OK:u2("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:u2("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:u2("COPIED_TO_CLIPBOARD"),COPY:u2("COPY"),COPY_DEBUG_INFO:u2("COPY_DEBUG_INFO"),COPY_EMBED_CODE:u2("COPY_EMBED_CODE"),COPY_LINK_LABEL:u2("COPY_LINK_LABEL"),
COPY_VIDEO_URL:u2("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:u2("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:u2("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:u2("DELETE_FROM_DOWNLOADS"),DIALOG:u2("DIALOG"),DONE:u2("DONE"),DOWNLOAD:u2("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:u2("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:u2("FLAG_CONFIRM"),FLAG_CONTENT:u2("FLAG_CONTENT"),FLAG_LABEL:u2("FLAG_LABEL"),FLAG_TITLE:u2("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:u2("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:u2("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:u2("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:u2("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:u2("HIDE_SEARCH_FILTERS_LABEL"),HOME:u2("HOME","Home"),INVALID_RESPONSE_RECEIVED:u2("INVALID_RESPONSE_RECEIVED"),LIBRARY:u2("LIBRARY","Library"),LISTENING:u2("LISTENING"),LOADING:u2("LOADING"),LONG_PRESS_MIC_TO_SPEAK:u2("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:u2("LOOP"),MENU_DESKTOP:u2("MENU_DESKTOP"),MENU_EXIT:u2("MENU_EXIT"),
MENU_FEEDBACK:u2("MENU_FEEDBACK"),MENU_HELP:u2("MENU_HELP"),MENU_IMPRESSUM:u2("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:u2("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:u2("MENU_SETTINGS"),MENU_SIGN_IN:u2("MENU_SIGN_IN"),MENU_TITLE:u2("MENU_TITLE"),MENU_YOUR_DATA:u2("MENU_YOUR_DATA"),MORE_INFO:u2("MORE_INFO"),MORE_OPTIONS:u2("MORE_OPTIONS"),MUTE_VOLUME:u2("MUTE_VOLUME"),NEW_PLAYLIST:u2("NEW_PLAYLIST"),NEXT_VIDEO:u2("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:u2("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:u2("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:u2("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:u2("NOT_FOUND_TITLE"),NO_DOWNLOADS:u2("NO_DOWNLOADS"),NO_MIC_INPUT:u2("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:u2("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:u2("OOPS_MESSAGE"),OPEN_APP:u2("OPEN_APP"),OPEN_YOUTUBE:u2("OPEN_YOUTUBE"),PAUSE:u2("PAUSE"),PLAY:u2("PLAY"),PLAYER_CAPTION:u2("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:u2("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:u2("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:u2("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:u2("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:u2("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:u2("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:u2("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:u2("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:u2("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:u2("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:u2("PLAYER_MINIMIZE"),PLAYER_NEXT:u2("PLAYER_NEXT"),PLAYER_PAUSE:u2("PLAYER_PAUSE"),PLAYER_PLAY:u2("PLAYER_PLAY"),
PLAYER_PREVIOUS:u2("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:u2("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:u2("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:u2("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:u2("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:u2("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:u2("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:u2("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:u2("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:u2("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:u2("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:u2("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:u2("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:u2("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:u2("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:u2("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:u2("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:u2("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:u2("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:u2("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:u2("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:u2("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:u2("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:u2("PLAY_ALL"),PLEASE_FIX_ERRORS:u2("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:u2("PREVIOUS_VIDEO"),PRIVACY_POLICY:u2("PRIVACY_POLICY"),RELOAD:u2("RELOAD"),REQUIRED_LABEL:u2("REQUIRED_LABEL"),SAVE_PLAYLIST:u2("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:u2("SCRUB_SLIDE_USER_EDU"),SEARCH:u2("SEARCH","Search"),SEARCH_APPEND_LABEL:u2("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:u2("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:u2("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:u2("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:u2("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:u2("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:u2("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:u2("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:u2("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:u2("SEARCH_PPP_PLACEHOLDER_TEXT"),
SEEK_SLIDER:u2("SEEK_SLIDER"),SETTINGS_LABEL:u2("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:u2("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:u2("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:u2("SHOW_LESS"),SHOW_MORE:u2("SHOW_MORE"),SHOW_PLAYER_CONTROLS:u2("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:u2("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:u2("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:u2("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:u2("SIGN_IN_ON_WEB"),STABLE_VOLUME:u2("STABLE_VOLUME"),
STABLE_VOLUME_OFF:u2("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:u2("STABLE_VOLUME_ON"),STATS_FOR_NERDS:u2("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:u2("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:u2("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:u2("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:u2("SUGGESTION_THUMBNAIL_LABEL"),TERMS_OF_SERVICE:u2("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:u2("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:u2("TIMESTAMP_SECONDS"),TOGGLE_OFF:u2("TOGGLE_OFF"),
TOGGLE_ON:u2("TOGGLE_ON"),TRENDING:u2("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:u2("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:u2("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:u2("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:u2("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:u2("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),TURN_OFF_AUTOPLAY_DIALOG_TITLE:u2("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:u2("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:u2("VIDEO_LINK_LABEL")};var cXK=_.LL(function(q){var w=q.playerApi;q=_.Bm(function(e){Mj(e,36843)});
var u=u2("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),y=_.QS(function(){Kl(36843);w&&w().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.W("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.W("button",{el:q,class:"ytPlayerControlsJumpForwardButtonButton",title:u,"aria-label":u,"on:click":y},_.W("span",null,_.W(_.U3,{icon:"FAST_FORWARD"}))))},"Hf");var SZA=_.LL(function(q){var w=q.appApi;q=_.Bm(function(e){Mj(e,62946)});
var u=u2("OPEN_IN_MINIPLAYER"),y=_.QS(function(){Kl(62946);var e,t;(t=(e=w()).openInMiniplayer)==null||t.call(e);return!1});
return _.W("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.W("button",{el:q,class:"ytMiniplayerButtonButton",title:u,"aria-label":u,"on:click":y},_.W(_.U3,{icon:"PICTURE_IN_PICTURE",active:!1})))},"If");var hPH=_.LL(function(q){var w=q.playerApi;q=_.Bm(function(X){Mj(X,142812)});
var u=_.P(_.r4(!1,void 0,"I3VCyb")),y=u.next().value,e=u.next().value;u=function(){return u2("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(y()?1:2)})};
var t=_.QS(function(){Kl(142812);if(w){var X=w(),G=y();X.setPlaybackRate(G?1:2);e(!y())}return!1});
return _.W("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.W("button",{el:q,class:"ytPlaybackSpeedButtonButton",title:u,"aria-label":u,"on:click":t},_.W("span",null,_.W(_.U3,{icon:function(){return y()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Jf");var jRV=_.LL(function(q){var w=q.title;var u=q.ariaLabel;var y=q.icon;var e=q.command;var t=q.veType;q=_.Bm(function(G){t&&Mj(G,t())});
var X=_.QS(function(){t&&Kl(t());e&&_.tG().resolve(_.PG).resolveCommand(e())});
return _.W("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.W("button",{el:q,class:"ytdThumbnailOverlayButtonButton",title:w,"aria-label":u,"on:click":X},_.W(_.U3,{icon:y})))},"Kf");var lGA=["en-CA","en","es-MX","fr-CA"];var LbA=_.LL(function(q){var w=_.lf(q,{isOverlay:!1}),u=w.captionIconType,y=w.onClick;q=w.ariaLabel;var e=w.ariaPressed,t=w.isOverlay;w=_.Bm(function(n){Mj(n,127299)});
var X=_.QS(function(n){Kl(127299);y==null||y(n);return!1}),G={};
return _.W("ytm-closed-captioning-button",{class:_.HR("ytmClosedCaptioningButtonHost",(G.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return u()===-1&&t()},G.ytmClosedCaptioningButtonIconDisabled=function(){return u()===-1&&!t()},G))},_.W("button",{el:w,
class:"ytmClosedCaptioningButtonButton",title:q,"aria-label":q,"aria-pressed":e,"on:click":X},_.W(_.U3,{icon:function(){var n="";var N=_.UC().get("hl");N=!N||lGA.includes(N)?"CLOSED_CAPTION":"SUBTITLES";var Q=u();switch(Q){case -1:case 0:n=N;break;case 1:n=N+"_FILLED";break;default:_.Xm(Q)}return n}})))},"Lf");
LbA.idomCompat={callbacks:{onClick:!0}};var Ll="";var M7h=_.LL(function(q){var w=q.playerControlsProps,u=q.onClickFn;q=_.oR(function(){var t=w(),X=-1;t.captionsAvailable&&(X=t.captionsEnabled?1:0);return X},void 0,"WecR8e");
var y=_.oR(function(){var t=w();return t.captionsAvailable?_.ID(t.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.ID("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),e=_.oR(function(){var t=w();
t=t.captionsAvailable?t.captionsEnabled:void 0;return t},void 0,"Q17ly");
return _.W("yt-closed-captions-toggle-button",null,_.W(LbA,{captionIconType:q,ariaLabel:y,ariaPressed:e,onClick:function(t){var X=w();if(X.captionsAvailable){var G=X.playerApi;if(G){var n=X.playerApi;if(n){var N=Ll;if(N){n=n.getOption("captions","track");var Q;Ll=(Q=n?n.displayName:null)!=null?Q:N}else n.getOptions("captions")?(N=xCj(n),Ll=N.length?(Q=qqV(N))?Q.displayName:N[0].displayName:""):Ll=""}wIa(G);_.T("mweb_disable_set_state_captions_killswitch")&&X.setState({captionsEnabled:!X.captionsEnabled})}}var I,
U;(U=(I=X.appApi).showCaptionsToggleToast)==null||U.call(I,X);u==null||u(t)},
isOverlay:!0}))},"Mf");var KbA=_.LL(function(q){var w=q.data;return _.W("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.W(_.jg,{data:function(){return{type:16,text:_.rTM(w().label)}}}))},"Nf");var B4q=_.LL(function(q){var w=_.HR("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return q.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return q.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return q.size()==="small"?q.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
q.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.W("animated-seek-arrows",{class:_.HR("ytPlayerControlsAnimatedSeekArrowsHost")},_.W("span",{class:w}),_.W("span",{class:w}),_.W("span",{class:w}))},"Of");
B4q.idomCompat=!0;var x$V=_.LL(function(){var q=_.ID("PLAYER_SECONDS",{seconds_placeholder:"30"}),w=_.P(_.r4(!1,void 0,"Yj8msb")),u=w.next().value,y=w.next().value,e=_.P(_.r4(!1,void 0,"r9Z50e"));w=e.next().value;var t=e.next().value;e={};var X=_.HR("jumpForwardOverlayOverlay",(e.jumpForwardOverlayOverlayHidden=w,e));_.p4(function(){var G=null,n=null,N=function(){G!==null&&_.Vk().cancelJob(G);n!==null&&_.Vk().cancelJob(n);t(!0);y(!0);_.ko(_.Vk(),function(){t(!1)});
G=_.ko(_.Vk(),function(){t(!0);n=_.ko(_.Vk(),function(){y(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",N);_.ZG(function(){window.removeEventListener("jump-forward-clicked",N)})});
return _.W("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.W(_.r,{cond:u,then:function(){return _.W("div",{class:X},_.W(B4q,{direction:1,size:"large"}),_.W("div",null,q))}}))},"Pf");var Og6=_.RY.MUTE_VOLUME,dK4=_.RY.UNMUTE_VOLUME,qt4=_.LL(function(q){var w=q.muteIconType;var u=q.onClick;var y=q.useOutlineIcon;q=_.Bm(function(X){Mj(X,28662)});
var e=function(){return oSm(w(),y==null?void 0:y()).ariaLabel},t=_.QS(function(X){Kl(28662);
u==null||u(X);return!1});
return _.W("ytm-mute-button",{class:"ytmMuteButtonHost"},_.W("button",{el:q,class:"ytmMuteButtonButton",title:e,"aria-label":e,"on:click":t},_.W("span",null,_.W(_.U3,{icon:function(){return oSm(w(),y==null?void 0:y()).iconName}}))))},"Qf");var wlB=_.LL(function(q){var w=q.volumeProps;var u=q.onClickFn;var y=q.useOutlineIcon;return _.W("yt-mute-toggle-button",null,_.W(qt4,{muteIconType:function(){var e=w(),t=!_.T("mweb_treat_zero_volume_as_muted_killswitch")&&e.volume===0;return e.volumeMuted||t?0:1},
onClick:function(e){var t=w().playerApi;t&&(t.isMuted()?t.unMute():t.mute(!1));u==null||u(e)},
useOutlineIcon:function(){return!(y==null||!y())}}))},"Rf");
wlB.idomCompat=!0;var udV=_.LL(function(q){var w=q.data;var u=_.Bm();q=_.QS(function(){u.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.W("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:u,"on:animationend":q},_.W(_.Mq,{command:function(){return w().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.W(_.r,{cond:function(){var y;return(y=w().icon)==null?void 0:y.iconType},
then:function(){return _.W("span",null,_.W(_.U3,{icon:function(){var y;return(y=w().icon)==null?void 0:y.iconType}}))}}),_.W("div",{class:"ytmPaidContentOverlayText"},_.W(_.Lr,{text:function(){return w().text}})),_.W(_.r,{cond:function(){return w().navigationEndpoint},
then:function(){return _.W(_.U3,{icon:"CHEVRON_RIGHT"})}})))},"Sf");
udV.idomCompat=!0;var V3H=[].concat(_.Cm([{register:function(q){var w=$K6(q),u;(u=q().playerApi)==null||u.addEventListener("onVolumeChange",w);return function(){}}},
{register:function(q){var w=vSh(q);q=q().playerApi;q==null||q.addEventListener("captionschanged",w);q==null||q.addEventListener("captionssettingschanged",w);q==null||q.addEventListener("onCaptionsTrackListChanged",w);return function(){}}},
{register:function(q){if(!_.T("mweb_screenreader_accessible_player"))return function(){};
var w=bg6(q),u=document.querySelector("video");u==null||u.addEventListener("touchend",w);return function(){u==null||u.removeEventListener("touchend",w)}}},
{register:function(q){if(!_.T("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var w=bg6(q),u=document.querySelector("video");u==null||u.addEventListener("focus",w);return function(){u==null||u.removeEventListener("focus",w)}}}]),[{register:function(q){var w=aLT(q),u;
(u=q().playerApi)==null||u.addEventListener("onStateChange",w);return function(){}}},
{register:function(q){var w=DKH(q),u;(u=q().playerApi)==null||u.addEventListener("onPlaybackRateChange",w);return function(){}}},
{register:function(q){var w=ZgB(q),u;(u=q().playerApi)==null||u.addEventListener("onVideoDataChange",w);return function(){}}},
{register:function(q){var w=pXc(q),u,y;(u=q())==null||(y=u.playerApi)==null||y.addEventListener("onVideoProgress",w);return function(){}}}]);var yPH=_.LL(function(q){var w=q.data;var u=function(){return _.ID("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+w().playbackRate})};
return _.W(_.r,{cond:function(){return w().playbackRate&&w().playbackRate!==1},
then:function(){return _.W("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.W("div",{class:"ytPlaybackRateOverlayOverlay"},_.W(B4q,{direction:1,size:"small"}),_.W("div",{class:"ytPlaybackRateOverlayLabel"},u)))}})},"Tf");var eCq=_.LL(function(q){var w=q.data;return _.W("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.W(_.r,{cond:function(){var u,y=(u=w())==null?void 0:u.playerResponse,e;return y==null?void 0:(e=y.paidContentOverlay)==null?void 0:e.paidContentOverlayRenderer},
then:function(u){return _.W(udV,{data:u})}}))},"Vf"),kSH=_.LL(function(q){var w=q.props;
var u=q.data;var y=q.options;var e=function(){var N,Q,I,U;return(N=u())==null?void 0:(Q=N.playerResponse)==null?void 0:(I=Q.playerConfig)==null?void 0:(U=I.inlinePlaybackConfig)==null?void 0:U.showAudioControls},t=function(){var N,Q;
if(e()&&((N=y())==null?void 0:(Q=N.additionalButton)==null?void 0:Q.button)!==void 0){var I,U,d;N=(I=u())==null?void 0:(U=I.playerApi)==null?void 0:(d=U.getSize())==null?void 0:d.height;if(!(N===void 0||N<180)){var V,J;return(V=y())==null?void 0:(J=V.additionalButton)==null?void 0:J.button}}},X=function(){var N,Q;
return(N=y())==null?void 0:(Q=N.additionalButton)==null?void 0:Q.thumbnailOverlayButtonRenderers},G=function(){var N,Q;
return(N=y())==null?void 0:(Q=N.additionalButton)==null?void 0:Q.thumbnailOverlayButtonViewModels},n=function(){var N=[_.W(wlB,{volumeProps:w}),
_.W(M7h,{playerControlsProps:w})];t()===1&&N.push(_.W(cXK,{playerApi:function(){return w().playerApi}}));
t()===2&&N.push(_.W(SZA,{appApi:function(){return w().appApi}}));
t()===3&&N.push(_.W(hPH,{playerApi:function(){return w().playerApi}}));
var Q=X();if(t()===4&&Q){Q=_.P(Q);for(var I=Q.next(),U={};!I.done;U={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$568:void 0},I=Q.next()){I=I.value;U.tooltip$jscomp$2=I.tooltip;var d=void 0,V=void 0;U.ariaLabel$jscomp$20=((d=I.accessibility)==null?void 0:(V=d.accessibilityData)==null?void 0:V.label)||U.tooltip$jscomp$2;d=void 0;U.icon$jscomp$51=(d=I.icon)==null?void 0:d.iconType;U.command$jscomp$568=I.command;U.tooltip$jscomp$2&&U.ariaLabel$jscomp$20&&U.icon$jscomp$51&&
N.push(_.W(jRV,{title:function(J){return function(){return J.tooltip$jscomp$2}}(U),
ariaLabel:function(J){return function(){return J.ariaLabel$jscomp$20}}(U),
icon:function(J){return function(){return J.icon$jscomp$51}}(U),
command:function(J){return function(){return J.command$jscomp$568}}(U)}))}}Q=G();
if(t()===4&&Q)for(Q=_.P(Q),I=Q.next(),U={};!I.done;U={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$52:void 0,command$jscomp$569:void 0},I=Q.next())I=I.value,U.tooltip$jscomp$3=I.title,U.ariaLabel$jscomp$21=I.accessibilityText||U.tooltip$jscomp$3,U.icon$jscomp$52=I.iconName,U.command$jscomp$569=_.Zh(I.onTap),U.tooltip$jscomp$3&&U.ariaLabel$jscomp$21&&U.icon$jscomp$52&&N.push(_.W(jRV,{title:function(J){return function(){return J.tooltip$jscomp$3}}(U),
ariaLabel:function(J){return function(){return J.ariaLabel$jscomp$21}}(U),
icon:function(J){return function(){return J.icon$jscomp$52}}(U),
command:function(J){return function(){return J.command$jscomp$569}}(U)}));
return N};
return _.W(_.r,{cond:e,then:function(){return _.W("div",{class:"ytInlinePlayerControlsTopRightControls"},_.W(_.mL,{each:n},function(N){return _.W("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.W("div",{class:"ytInlinePlayerControlsButtonIcon"},N))}))}})},"Wf"),XlA=_.LL(function(q){var w=q.props;
var u=q.data;var y=q.options;q={};q=_.HR("ytInlinePlayerControlsBottomRightControls",(q.ytInlinePlayerControlsBottomRightControlsHidden=function(){var e;return gSA(u(),y())&&((e=y())==null?void 0:e.insetProgressBar)&&(w().isHovering||w().isDragging)},q));
return _.W("div",{class:q},_.W(tZB,{data:u}),_.W(_.r,{cond:function(){var e;return!((e=y())==null?0:e.hideTimeDisplay)},
then:function(){return _.W(Pom,{props:w,data:u})}}))},"Xf"),tZB=_.LL(function(q){var w=q.data;
return _.W(_.OF,{data:function(){var u;return UKj((u=w())==null?void 0:u.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:KbA})},"Yf"),Pom=_.LL(function(q){var w=q.props;
var u=q.data;return _.W(_.r,{cond:function(){return w().isLive},
then:function(){return _.W(FLq,null)},
else:function(){return _.W(GSA,{props:w,data:u})}})},"Zf"),GSA=_.LL(function(q){var w=q.props;
var u=q.data;var y=_.oR(function(){var e;return Caq((e=u())==null?void 0:e.thumbnailOverlays)},void 0,"kUmuA");
return _.W("div",{class:_.HR("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.RY.PLAYER_TIME_ELAPSED+" "+_.bkz(w().playedTime)}},_.W(_.jg,{data:function(){var e=_.bkz(w().videoDuration-w().playedTime);
return Object.assign({},{type:16,text:e},y())}}))},"$f"),FLq=_.LL(function(){return _.W("div",{class:_.HR("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.W(_.jg,{data:{type:17,
text:_.RY.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"ag"),nwc=_.LL(function(q){var w=q.props;
var u=q.data;var y=q.options;return _.W(_.$6m,{progressBarProps:w,config:function(){var e,t=_.C((e=u())==null?void 0:e.multiMarkersPlayerBar,_.Tf6),X;e=((X=y())==null?0:X.insetProgressBar)?2:1;var G;X=(G=y())==null?void 0:G.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:e,chapterData:t,isInlinePlayback:!0,doSeekOnClick:X,playheadDotBehavior:X?1:0}}})},"bg");_.q9(_.LL(function(q){var w=q.data;var u=q.appApi;var y=q.options;var e=zqA(w,Yfx(u));q={};u={};return _.W("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.W("div",{class:_.HR("ytInlinePlayerControlsDarkenedOverlay",(q.ytInlinePlayerControlsDarkenedOverlayShow=function(){return e().isHovering},q))}),_.W(x$V,null),_.W(yPH,{data:e}),_.W(eCq,{data:w}),_.W(RPx,{playerControlsProps:e,
isShortsPage:!1}),_.W("div",{class:_.HR((u.ytInlinePlayerControlsControlsHidden=function(){return e().isDragging},u))},_.W(kSH,{props:e,
data:w,options:y}),_.W(XlA,{props:e,data:w,options:y})),_.W(_.r,{cond:function(){return gSA(w(),y())},
then:function(){return _.W(nwc,{props:e,data:w,options:y})}}))},"Uf"),"yt-inline-player-controls",{props:{data:_.pK,
appApi:_.xB,options:_.pK}});var ce=function(){var q=_.Y.apply(this,arguments)||this;q.opts=null;q.playerControlsData=null;q.playerControlsAppApi={openInMiniplayer:function(){q.openInMiniplayer()}};
q.playerControlsOptions={};q.noAnimation=!1;q.playbackIntentTriggered=!1;q.positionData=null;q.hidden=!0;q.active=!1;q.playing=!1;q.videoPreviewDataIndex=0;q.JSC$16772_playerPromise=null;q.player=null;q.enableAudioControls=!1;q.hasBeenUnmuted=!1;q.captionsHaveBeenTurnedOff=!1;q.JSC$16772_playerEvents=new Map;q.videoPreviewFetchRequest=null;q.scheduledPreviewEndJobId=null;q.JSC$16772_preventProgressSaveTimer=null;q.watchEndpointStartTimeUpdaterInterval=null;q.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};q.windowOnBlurFn=function(){q.deactivate()};
return q};
_.O(ce,_.Y);_.k=ce.prototype;
_.k.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.T("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"}}}};
_.k.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16772_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16772_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16772_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16772_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Fj(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Fj(this,this.onScroll))};
_.k.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Fj(this,this.onScroll))};
_.k.onPageTypeChange=function(){this.deactivate()};
_.k.onWindowResized=function(){this.deactivate()};
_.k.onCaptionsChanged=function(q){q=!!q.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!q);this.setCaptionSize()};
_.k.setCaptionSize=function(){var q;if(this.active&&!this.captionsHaveBeenTurnedOff&&((q=this.player)==null?0:q.getCaptionWindowContainerId())){var w;(w=this.player)==null||w.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.k.currentPageAllowed=function(){return!this.isWatchPage};
_.k.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var q=this.positionData,w=q.initialTopPosition,u=q.initialHorizontalPosition;_.Pj(this.hostElement,{"--ytd-video-preview-translate-left":q.finalHorizontalPosition-u+"px","--ytd-video-preview-translate-top":q.finalTopPosition-w+"px","--ytd-video-preview-original-top-position":w+"px","--ytd-video-preview-original-horizontal-position":u+"px",
"--ytd-video-preview-initial-scale":"scale("+q.initialScale+")","--ytd-video-preview-width":q.videoPreviewWidth+"px","--ytd-video-preview-height":q.videoPreviewHeight+"px"});return!0};
_.k.handleOpenVideoPreviewAction=function(q){var w=this,u;return _.F(function(y){if(!w.currentPageAllowed())return y.return(0);w.opts=q;return(u=w.alignVideoPreviewForAnimation(q.thumbnail))?y.return(w.activate()):y.return(0)})};
_.k.onMouseLeave=function(q){this.shouldDeactivateOnMouseLeave(q)&&this.deactivate()};
_.k.onScroll=function(){var q,w;((q=this.opts)==null?0:q.isAutoplay)&&((w=this.opts)==null?0:w.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.k.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.pi.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.k.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.k.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",ce.JSC$16771_DEFAULT_CLICK_LOCATION_BEHAVIOR,ce.JSC$16771_CLICK_LOCATION_ID_MAP)};
_.k.shouldDeactivateOnMouseLeave=function(q){q=q.relatedTarget;if(!q)return!0;var w;return(w=this.opts)!=null&&w.mediaRenderer?!_.y6(this.opts.mediaRenderer).contains(q):!0};
_.k.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.k.onPlaybackStart=function(){var q=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$16772_preventProgressSaveTimer=
_.ko(_.pi,function(){q.resetPreventProgressSaveTimer()},1E4);
var w;if((w=this.opts)==null?0:w.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.ko(_.pi,function(){q.hasMultipleVideoPreviews()?q.startPlaybackForNextVideo():q.deactivate()},this.opts.videoPreviewDurationMs);
var u;this.player.setGlobalCrop(((u=this.opts)==null?0:u.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.k.getRoundedCornersSize=function(){var q;if((q=this.opts)==null?0:q.roundedCornersSize){var w;return(w=this.opts)==null?void 0:w.roundedCornersSize}var u;if((u=this.opts)==null?0:u.enableRounding){var y;if(((y=this.opts)==null?void 0:y.thumbnailSize)==="small")return 1;var e;if(((e=this.opts)==null?void 0:e.thumbnailSize)==="medium")return 2;var t;if(((t=this.opts)==null?void 0:t.thumbnailSize)==="large")return 3}return _.T("web_imp_inset_progress_bar")?3:0};
_.k.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.k.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.k.onMediaContainerClick=function(q){this.isShortcutClick(q)||(this.navigateToWatch(q),q.preventDefault(),q.stopPropagation())};
_.k.activate=function(){var q=this,w,u,y,e,t,X,G,n,N;return _.F(function(Q){switch(Q.nextAddress){case 1:if(!q.currentPageAllowed())return Q.return(0);u=(w=q.videoPreviewData)==null?void 0:w.inlinePlaybackEndpoint;y=_.E3.instance;if(!u||!y)return Q.return(0);q.playbackIntentTriggered=!0;((e=q.opts)==null?0:e.mediaRenderer)&&((t=q.opts)==null||!t.isAutoplay)&&igh(q.opts.mediaRenderer,function(){q.deactivate()});
_.KJ(q,function(){q.revealPreviewUi()});
X={};_.T("enable_unknown_lact_fix_on_html5")&&(_.tG().resolve(_.fT),X.lact=_.Pm());q.videoPreviewFetchRequest=HgV(y,q.getInlinePlaybackRequestData(q.videoPreviewData),X);_.tD(Q,2);return _.H(Q,q.videoPreviewFetchRequest,4);case 4:G=Q.yieldResult;if(((n=G)==null?void 0:(N=n.playabilityStatus)==null?void 0:N.status)==="OK")return Q.return(q.handlePlayerResponse(G));throw Error("Ij");case 2:_.nm(Q),q.deactivate();case 3:return Q.return(1)}})};
_.k.getInlinePlaybackRequestData=function(q){var w,u=_.T("web_imp_player_mute_params")?((w=this.opts)==null?void 0:w.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:q.inlinePlaybackEndpoint,startPlaybackInMutedState:u}};
_.k.handlePlayerResponse=function(q){var w=this,u,y,e,t,X,G,n,N,Q,I;return _.F(function(U){if(U.nextAddress==1){u=w.getInlinePlaybackVideoId();if(!(((y=q)==null?0:(e=y.videoDetails)==null?0:e.videoId)&&w.currentPageAllowed()&&w.playbackIntentTriggered&&w.opts&&u))return w.deactivate(),U.return(0);if(q.videoDetails.videoId!==u)return U.return(0);w.enableAudioControls=!!((t=q.playerConfig)==null?0:(X=t.inlinePlaybackConfig)==null?0:X.showAudioControls);q.trackingParams=w.getInlinePlaybackTrackingParams();
if(!w.inlinePlayer)return U.return(0);G={};if(N=_.C((n=w.videoPreviewData)==null?void 0:n.inlinePlaybackEndpoint,_.LN))G.watch_endpoint=N;if(w.videoPreviewData){var d,V=(d=_.C(w.videoPreviewData.inlinePlaybackEndpoint,_.LN))==null?void 0:d.startTimeSeconds;V!==void 0&&(q.playerConfig||(q.playerConfig={}),q.playerConfig.playbackStartConfig||(q.playerConfig.playbackStartConfig={}),q.playerConfig.playbackStartConfig.startPosition||(q.playerConfig.playbackStartConfig.startPosition={}),q.playerConfig.playbackStartConfig.startSeconds=
V,q.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(V*1E3))}w.inlinePlayer.loadVideoWithPlayerResponse(q,G);if(w.JSC$16772_playerPromise)return U.jumpTo(2);w.JSC$16772_playerPromise=w.inlinePlayer.getPlayerPromise();return _.H(U,w.JSC$16772_playerPromise,3)}U.nextAddress!=2&&(Q=U.yieldResult,Q.setInlinePreview(!0),Q.setSizeStyle(!1,!0),w.ytPlayerListenerBehavior.listenToPlayerEvents(Q,w.JSC$16772_playerEvents),w.player=Q,_.t7(w.hostElement,"player-api-ready"));((I=w.opts)==
null?0:I.showPlayerControls)&&w.videoPreviewData&&w.player&&(w.playerControlsData={playerResponse:q,isInlinePlayback:!0,thumbnailOverlays:w.videoPreviewData.thumbnailOverlays,playerApi:w.player},w.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!w.unroundCornersForPlayback,additionalButton:w.getAdditionalButtonType(w.videoPreviewData.thumbnailOverlays)});return U.return(2)})};
_.k.revealPreviewUi=function(){var q=this;this.playbackIntentTriggered&&_.f2M(this,function(){q.hasThumbnailPositionChangedSinceTriggered()||(q.updateActiveState(!0),q.noAnimation=!1)})};
_.k.hasThumbnailPositionChangedSinceTriggered=function(){var q=this.positionData,w=this.getThumbnailPositionData();return(q==null?void 0:q.initialTopPosition)!==(w==null?void 0:w.initialTopPosition)||(q==null?void 0:q.initialHorizontalPosition)!==(w==null?void 0:w.initialHorizontalPosition)};
_.k.getThumbnailPositionData=function(){var q,w;if((w=this.opts)==null||!w.thumbnail)return null;w=this.opts.thumbnail;var u=((q=this.opts)==null?0:q.cropPlayerToFillThumbnailHorizontally)?!1:!0;var y=w.getBoundingClientRect();q=y.width;w=y.height;var e=y.top+window.scrollY;y=y.left+window.scrollX;var t=u?Math.ceil(q):q;u=u?Math.ceil(w):w;var X=q/t;q={initialScale:X,initialTopPosition:e-12*X,finalTopPosition:e-12-(u-w)/2,initialHorizontalPosition:y-(12+(t-q)/2),finalHorizontalPosition:y-12-(t-q)/
2,videoPreviewWidth:t,videoPreviewHeight:u};return q};
_.k.updateActiveState=function(q){this.active=q;this.ytdReduxBehavior.dispatch(_.tr({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:q}))};
_.k.stopPlayer=function(q){q=q.resetWatchEndpointStartTime===void 0?!1:q.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(q)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.pi.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.k.deactivate=function(q){q=q===void 0?{}:q;q=q.resetWatchEndpointStartTime===void 0?!1:q.resetWatchEndpointStartTime;w5&&(w5.disconnect(),w5=null);this.stopPlayer({resetWatchEndpointStartTime:q});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.k.isValidThumbnailOverlayButton=function(q,w){q=q.thumbnailOverlayButtonRenderer;var u;return!!q&&!!q.tooltip&&!((u=q.icon)==null||!u.iconType)&&w.includes(q.icon.iconType)};
_.k.isValidThumbnailOverlayButtonViewModel=function(q,w){var u;q=_.C((u=q.thumbnailOverlayButtonViewModel)==null?void 0:u.overlayButton,_.oH);return!!q&&!!q.title&&!!q.iconName&&w.includes(q.iconName)};
_.k.getAdditionalButtonType=function(q){var w=this;if(_.T("web_imp_fastforward_button"))return{button:1};if(_.T("web_imp_miniplayer_button"))return{button:2};if(_.T("web_imp_playback_speed_button"))return{button:3};var u=["AUTO_AWESOME"],y=(q||[]).filter(function(t){return w.isValidThumbnailOverlayButton(t,u)}).map(function(t){return t.thumbnailOverlayButtonRenderer});
if(y.length)return{button:4,thumbnailOverlayButtonRenderers:y};var e=["AUTO_AWESOME"];q=(q||[]).filter(function(t){return w.isValidThumbnailOverlayButtonViewModel(t,e)}).map(function(t){return _.C(t.thumbnailOverlayButtonViewModel.overlayButton,_.oH)});
if(q.length)return{button:4,thumbnailOverlayButtonViewModels:q}};
_.k.allowCaptions=function(){var q;return!((q=this.opts)==null?0:q.forceCaptionsOff)};
_.k.allowUnmuting=function(){var q;return this.enableAudioControls&&!((q=this.opts)==null?0:q.forceMutedVolume)};
_.k.beginStartTimeUpdater=function(){var q=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.s8(function(){q.updateWatchEndpointStartTime()},1E3)};
_.k.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.k.resetPreventProgressSaveTimer=function(){this.JSC$16772_preventProgressSaveTimer!==null&&(_.pi.cancelJob(this.JSC$16772_preventProgressSaveTimer),this.JSC$16772_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.k.updateWatchEndpointStartTime=function(q){var w=this.videoPreviewData;if(this.player&&w!=null&&w.inlinePlaybackEndpoint&&!this.JSC$16772_preventProgressSaveTimer){q=q?0:Math.floor(this.player.getCurrentTime());var u=_.C(w.navigationEndpoint,_.LN);u&&(u.startTimeSeconds=q);if(w=_.C(w.inlinePlaybackEndpoint,_.LN))w.startTimeSeconds=q}};
_.k.isShortcutClick=function(q){return!!q&&(q.ctrlKey||q.shiftKey||q.metaKey)};
_.k.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.k.openInMiniplayer=function(){var q=this,w,u;return _.F(function(y){if(y.nextAddress==1){u=(w=q.videoPreviewData)==null?void 0:w.navigationEndpoint;if(!u)return y.return();_.Hh().lockupActivation=!0;return _.H(y,_.tdF(_.tG().resolve(_.$X),u),2)}_.Hh().userActivation=!0;_.HI(y)})};
_.k.navigateToWatch=function(q){var w,u=(w=this.videoPreviewData)==null?void 0:w.navigationEndpoint;if(u){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(u,q,!0);else{if(_.T("web_thumbnail_to_watch_transition")){var y,e;(y=this.opts)==null||(e=y.onNavigateToWatchCallback)==null||e.call(y)}_.t7(this.hostElement,"yt-navigate",{endpoint:u})}this.deactivate()}};
_.k.getInlinePlaybackVideoId=function(){var q,w;return(w=_.C((q=this.videoPreviewData)==null?void 0:q.inlinePlaybackEndpoint,_.LN))==null?void 0:w.videoId};
_.k.getInlinePlaybackTrackingParams=function(){var q,w;return(q=this.videoPreviewData)==null?void 0:(w=q.inlinePlaybackEndpoint)==null?void 0:w.clickTrackingParams};
_.k.hasMultipleVideoPreviews=function(){var q;return!!(((q=this.opts)==null?0:q.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.k.startPlaybackForNextVideo=function(){var q;(q=this.opts)!=null&&q.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())};
_.x$.Object.defineProperties(ce.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.opts)==null?0:q.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.opts)==null||!q.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 q;if(Array.isArray((q=this.opts)==null?void 0:q.videoPreviewData)){var w;return(w=this.opts)==null?void 0:w.videoPreviewData[this.videoPreviewDataIndex]}var u;return(u=this.opts)==null?void 0:u.videoPreviewData}}});
ce.prototype.onIsAdsVideoChange=ce.prototype.onIsAdsVideoChange;ce.prototype.onInlinePreviewIsEnabledChange=ce.prototype.onInlinePreviewIsEnabledChange;ce.prototype.optsChanged=ce.prototype.optsChanged;ce.prototype.onMouseLeave=ce.prototype.onMouseLeave;ce.JSC$16771_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);ce.JSC$16771_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"}];
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],ce.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],ce.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.b7.YtPlayerListenerBehavior),_.h("design:type",_.Yp)],ce.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],ce.prototype,"componentBehavior",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],ce.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.l7.YtSparklesClickLocationBehavior),_.h("design:type",Object)],ce.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ce.prototype,"opts",void 0);_.c([_.v(),_.h("design:type",Object)],ce.prototype,"playerControlsData",void 0);
_.c([_.v(),_.h("design:type",Object)],ce.prototype,"playerControlsAppApi",void 0);_.c([_.v(),_.h("design:type",Object)],ce.prototype,"playerControlsOptions",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ce.prototype,"noAnimation",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ce.prototype,"hidden",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ce.prototype,"active",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ce.prototype,"playing",void 0);_.c([_.v({selector:_.WZf}),_.h("design:type",Boolean)],ce.prototype,"inlinePreviewIsEnabled",void 0);_.c([_.v(),_.h("design:type",String)],ce.prototype,"pagePath",void 0);_.c([_.v({selector:_.ZV}),_.h("design:type",Boolean)],ce.prototype,"isWatchPage",void 0);_.c([_.Z("videoPreviewData"),_.h("design:type",Object),_.h("design:paramtypes",[])],ce.prototype,"thumbnailData",null);
_.c([_.Z("opts","active"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ce.prototype,"hidePlayerControls",null);_.c([_.Z("opts"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ce.prototype,"isAdsVideo",null);_.c([_.Z("opts"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ce.prototype,"roundedCornersSmall",null);
_.c([_.Z("opts"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ce.prototype,"roundedCornersMedium",null);_.c([_.Z("opts"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ce.prototype,"roundedCornersLarge",null);_.c([_.Z("opts"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ce.prototype,"unroundCornersForPlayback",null);
_.c([_.Z("opts","videoPreviewDataIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],ce.prototype,"videoPreviewData",null);_.c([_.v(),_.h("design:type",Object)],ce.prototype,"videoPreviewDataIndex",void 0);_.c([_.Wj("#inline-player"),_.h("design:type",Object)],ce.prototype,"inlinePlayer",void 0);_.c([_.Gm("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[MouseEvent]),_.h("design:returntype")],ce.prototype,"onMouseLeave",null);
_.c([_.I9("opts"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ce.prototype,"optsChanged",null);_.c([_.I9("inlinePreviewIsEnabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ce.prototype,"onInlinePreviewIsEnabledChange",null);_.c([_.nL("isAdsVideo"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ce.prototype,"onIsAdsVideoChange",null);
ce=_.c([_.E({is:"ytd-video-preview",disableElementRegistration:!0})],ce);
_.R(ce,"ytd-video-preview",function(){if(ECj!==void 0)return ECj;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return ECj=q},{mode:2});
}catch(e){_._DumpException(e)}
try{
var G2a;var nmm;/*

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
*/
_.o9({_template:function(){if(nmm!==void 0)return nmm;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;G2a===void 0&&(G2a=document.createElement("template"));var y=G2a;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return nmm=q},
is:"tp-yt-paper-checkbox",behaviors:[_.goa],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.KJ(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var q=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),w="px",u=q.match(/[A-Za-z]+$/);u!==null&&(w=u[0]);q=parseFloat(q);u=8/3*q;w==="px"&&(u=Math.floor(u),u%2!==q%2&&u++);this.updateStyles({"--paper-checkbox-ink-size":u+
w})}})},
_computeCheckboxClass:function(q,w){var u="";q&&(u+="checked ");w&&(u+="invalid");return u},
_computeCheckmarkClass:function(q){return q?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.bTX._createRipple.call(this)}});var Hjx=new _.M("radioButtonSurveyOptionRenderer"),Wxm=new _.M("checkboxSurveyOptionRenderer");var sw6;var NBm;var Qw6=0,Dy=function(){var q=_.Y.call(this)||this;q.selected=!1;q.isOverlay=!1;q.inputId="toggle-option-"+Qw6;Qw6++;return q};
_.O(Dy,_.Y);Dy.prototype.onTap=function(){_.t7(this.hostElement,"ytd-toggle-option-clicked")};
_.c([_.v(),_.h("design:type",String)],Dy.prototype,"label",void 0);_.c([_.v(),_.h("design:type",String)],Dy.prototype,"inputId",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Dy.prototype,"selected",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Dy.prototype,"isOverlay",void 0);Dy=_.c([_.E({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.h("design:paramtypes",[])],Dy);
_.R(Dy,"ytd-toggle-option-renderer",function(){if(NBm!==void 0)return NBm;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return NBm=q},{mode:1});var Zy=function(){var q=_.Y.apply(this,arguments)||this;q.isToggleOption=!1;q.isOverlay=!1;return q};
_.O(Zy,_.Y);Zy.prototype.onTap=function(q){q.preventDefault();this.data&&(q=!this.data.checked,this.set("data.checked",q),_.t7(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:q,value:this.data.value}))};
_.x$.Object.defineProperties(Zy.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
Zy.prototype.onTap=Zy.prototype.onTap;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Zy.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Zy.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],Zy.prototype,"isToggleOption",void 0);_.c([_.v(),_.h("design:type",Object)],Zy.prototype,"isOverlay",void 0);_.c([_.Z("data.responseText"),_.h("design:type",String),_.h("design:paramtypes",[])],Zy.prototype,"label",null);
_.c([_.Gm("ytd-toggle-option-clicked"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Zy.prototype,"onTap",null);Zy=_.c([_.E({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],Zy);
_.R(Zy,"ytd-checkbox-survey-option-renderer",function(){if(sw6!==void 0)return sw6;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return sw6=q},{mode:1});var IDm;var ijK;var pl=function(){var q=_.Y.apply(this,arguments)||this;q.checked=!1;q.isToggleOption=!1;return q};
_.O(pl,_.Y);pl.prototype.onTap=function(){this.data&&(this.checked?_.Pw(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.Pw(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
pl.prototype.onTap=pl.prototype.onTap;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],pl.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],pl.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],pl.prototype,"checked",void 0);_.c([_.v(),_.h("design:type",Object)],pl.prototype,"isToggleOption",void 0);_.c([_.Gm("ytd-toggle-option-clicked"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],pl.prototype,"onTap",null);
pl=_.c([_.E({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],pl);
_.R(pl,"ytd-radio-button-survey-option-renderer",function(){if(ijK!==void 0)return ijK;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return ijK=q},{mode:1});var $5=function(){var q=_.Y.apply(this,arguments)||this;q.disableAnimation=!1;q.isToggleOption=!0;q.followUpSurveyCommand=null;q.selectedRatingEndpoint=null;q.isSlimlineSurveyFollowUp=!1;q.isShortsStyle=!1;q.styleOverrideAttribute=!0;q.isDarkMode=!1;q.isSubmitted=!1;q.roundedContainer=!0;q.improveShortsResponseRate=_.T("web_improve_shorts_response_rate");q.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 q};
_.O($5,_.Y);_.k=$5.prototype;
_.k.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"}}}}};
_.k.attached=function(){var q=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(u){var y;if((y=u[0])!=null&&y.isIntersecting){_.sO().reportShown(q.hostElement);var e;(e=q.intersectionObserver)==null||e.unobserve(q.hostElement)}},{rootMargin:"0px",
threshold:.6});var w;(w=this.intersectionObserver)==null||w.observe(this.hostElement)};
_.k.onDarkModeToggledAction=function(q){this.isDarkMode=q};
_.k.dataChanged=function(){var q;if(((q=this.data)==null?void 0:q.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var w;((w=this.data)==null?void 0:w.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var u,y,e,t;this.darkColorPalette=(u=this.data)==null?void 0:(y=u.inlineContent)==null?void 0:(e=y.compactVideoRenderer)==null?void 0:(t=e.thumbnail)==null?
void 0:t.darkColorPalette;var X,G,n,N;this.lightColorPalette=(X=this.data)==null?void 0:(G=X.inlineContent)==null?void 0:(n=G.compactVideoRenderer)==null?void 0:(N=n.thumbnail)==null?void 0:N.lightColorPalette;var Q,I;if(((Q=this.data)==null?0:(I=Q.inlineContent)==null?0:I.compactVideoRenderer)&&this.isShortsStyle){var U,d,V,J;q=_.uv((U=this.data)==null?void 0:(d=U.inlineContent)==null?void 0:(V=d.compactVideoRenderer)==null?void 0:(J=V.thumbnail)==null?void 0:J.thumbnails);_.Pj(this.hostElement,
{"--yt-background-url":"url("+q+")"})}};
_.k.handleRequestCompletion=function(){this.hostElement.hidden&&_.t7(this.hostElement,"yt-dismissible-item-dismissed")};
_.k.onPopupClosed=function(q){var w;((w=q.detail)==null?void 0:w.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.Pw(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.k.handleInlineSurveyRatingSelect=function(q,w){var u=this;this.selectedRatingEndpoint=q;this.followUpSurveyCommand=w;this.expanded=!!q;this.getOptionRenderers().forEach(function(y,e){u.notifyPath("followUpSurveyCommand.followUpOptions."+e+".checkboxSurveyOptionRenderer.checked");u.set("followUpSurveyCommand.followUpOptions."+e+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),q=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.Pw(this.hostElement,"yt-reel-non-video-content-dismissal-command",[q]))};
_.k.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.Pw(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var q,w=(q=this.data)==null?void 0:q.dismissalEndpoint;w&&this.ytComponentBehavior.resolveCommand(w)}};
_.k.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.Pw(this.hostElement,"yt-close-popup-action"))};
_.k.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var q=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{q=this.getOptionRenderers().filter(function(y){return y.checked});
if(q.length===0)return;q=q.map(function(y){return y.responseEndpoint})}var w=[];
q.forEach(function(y,e){e!==0&&(y=_.C(y,_.JI))&&y.feedbackToken&&w.push(y.feedbackToken)});
if(q=q[0]){var u={};w.length>0&&(u.extra_feedback_tokens=w);this.ytComponentBehavior.resolveCommand(q,{form:u})}}};
_.k.getOptionRenderers=function(){var q=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(w){q.isSingleSelect=!!_.C(w,Hjx);return q.isSingleSelect?_.C(w,Hjx):_.C(w,Wxm)}):[]};
_.k.handleInlineSurveyOptionSelect=function(q){q=this.optionSelector.indexOf(q);q!==-1&&this.optionSelector.selectIndex(q)};
_.k.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.k.maybeGetBackgroundColor=function(q){return this.isDarkMode?q.section2Color:q.section3Color};
_.k.colorPaletteChanged=function(){var q=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;q=q&&this.maybeGetBackgroundColor(q);this.dismissibleEl.style.backgroundColor=!q||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.Ae(q)};
_.x$.Object.defineProperties($5.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
$5.prototype.colorPaletteChanged=$5.prototype.colorPaletteChanged;$5.prototype.onPopupClosed=$5.prototype.onPopupClosed;$5.prototype.handleRequestCompletion=$5.prototype.handleRequestCompletion;$5.prototype.dataChanged=$5.prototype.dataChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],$5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],$5.prototype,"actionHandlerBehavior",void 0);
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],$5.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],$5.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],$5.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.Wj("#follow-up-survey-options"),_.h("design:type",Object)],$5.prototype,"optionSelector",void 0);_.c([_.v(),_.h("design:type",Object)],$5.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",Object)],$5.prototype,"disableAnimation",void 0);_.c([_.v(),_.h("design:type",Object)],$5.prototype,"isToggleOption",void 0);_.c([_.v(),_.h("design:type",Object)],$5.prototype,"followUpSurveyCommand",void 0);_.c([_.v(),_.h("design:type",Object)],$5.prototype,"selectedRatingEndpoint",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],$5.prototype,"expanded",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],$5.prototype,"isSlimlineSurveyFollowUp",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],$5.prototype,"isShortsStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],$5.prototype,"styleOverrideAttribute",void 0);_.c([_.v(),_.h("design:type",Boolean)],$5.prototype,"isSingleSelect",void 0);_.c([_.v(),_.h("design:type",Object)],$5.prototype,"isDarkMode",void 0);
_.c([_.v(),_.h("design:type",Object)],$5.prototype,"lightColorPalette",void 0);_.c([_.v(),_.h("design:type",Object)],$5.prototype,"darkColorPalette",void 0);_.c([_.Z("selectedRatingEndpoint","isShortsStyle"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$5.prototype,"isOptionSelected",null);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],$5.prototype,"roundedContainer",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],$5.prototype,"improveShortsResponseRate",void 0);_.c([_.Wj("#dismissible"),_.h("design:type",HTMLElement)],$5.prototype,"dismissibleEl",void 0);_.c([_.Wj("#dismiss-button yt-icon-button"),_.h("design:type",HTMLElement)],$5.prototype,"dismissButtonEl",void 0);_.c([_.Wj("#inline-survey-header yt-icon-button"),_.h("design:type",HTMLElement)],$5.prototype,"inlineHeaderDismissButtonEl",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$5.prototype,"dataChanged",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$5.prototype,"handleRequestCompletion",null);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],$5.prototype,"onPopupClosed",null);
_.c([_.nL("darkColorPalette","lightColorPalette","isDarkMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$5.prototype,"colorPaletteChanged",null);$5=_.c([_.E({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],$5);
_.R($5,"ytd-inline-survey-renderer",function(){if(IDm!==void 0)return IDm;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return IDm=q},{mode:1});
}catch(e){_._DumpException(e)}
try{
var lqh,LQ6,MIj;lqh=function(q){return _.T("kevlar_watch_cinematics_invisible")||q.fullscreen&&_.T("kevlar_watch_cinematics_invisible_in_fullscreen")||q.theater&&!q.fullscreen&&_.T("kevlar_watch_cinematics_invisible_in_theater")};
LQ6=function(){var q=document.createElement("canvas"),w=q.getContext("2d");if(!w)throw Error("Xl");_.zk(q,{position:"absolute",width:"100%",height:"100%"});return{element:q,context:w}};
MIj=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.T("kevlar_watch_cinematics_css_blur")};
_.KQ6=function(q,w,u){return Math.abs(q-w)<=(u||1E-6)};
_.BWH=function(q,w){return q==w?!0:q&&w?q.width==w.width&&q.height==w.height:!1};_.xpA=new _.M("notificationActionRenderer");var qRc=function(q){var w=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.Gt;this.element.addEventListener("load",function(){w.loaded=!0;w.resolver.resolve(w.element)});
this.element.addEventListener("error",function(){w.failed=!0});
this.element.src=q};var wgB=function(q,w){this.image=q;this.frame=w};
wgB.prototype.drawToCanvas=function(q,w){var u=this.frame.width/this.frame.columns,y=this.frame.height/this.frame.rows,e=w.offsetX,t=w.offsetY;lqh(w)?(q.fillStyle=w.fullscreen?"#000":"#0f0f0f",q.fillRect(e,t,(w==null?void 0:w.width)||u,(w==null?void 0:w.height)||y)):q.drawImage(this.image,this.frame.column*u,this.frame.row*y,u,y,e,t,(w==null?void 0:w.width)||u,(w==null?void 0:w.height)||y)};
var uqh=function(q){this.color=q};
uqh.prototype.drawToCanvas=function(q,w){var u=w.offsetX,y=w.offsetY,e=w.width,t=w.height;q.fillStyle=lqh(w)?w.fullscreen?"#000":"#0f0f0f":this.color;q.fillRect(u,y,e,t)};var xR=function(q,w){_.L2.call(this);this.playerApi=w;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.FO(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();yNq(this,q);et6(this);this.update()};
_.O(xR,_.L2);xR.prototype.addEventListeners=function(){var q=this,w=function(){q.update()},u=function(e){q.paused||(e.type==="newdata"&&(q.mosaics.clear(),kqB(q),qo(q)),et6(q),q.update())},y=function(){q.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",w);this.playerApi.addEventListener("onVideoDataChange",u);this.playerApi.addEventListener("onStateChange",y);this.addOnDisposeCallback(function(){q.playerApi.removeEventListener("onVideoProgress",w);q.playerApi.removeEventListener("onVideoDataChange",u);q.playerApi.removeEventListener("onStateChange",y)})};
var yNq=function(q,w){q.cinematicContainerRenderer!==w&&(q.cinematicContainerRenderer=w,kqB(q),qo(q),q.colorStoreUpdateJobId=_.pi.addLowPriorityJob(function(){var u;if((u=q.cinematicContainerRenderer.colorStore)!=null&&u.sampledColors){u=Infinity;for(var y=_.P(q.cinematicContainerRenderer.colorStore.sampledColors),e=y.next();!e.done;e=y.next()){e=e.value;var t=Number(e.key);t!==0&&t<u&&(u=t);t=_.Je(e.value);q.colorStore.set(e.key,t)}q.colorStoreTimeInterval=u}}))},kqB=function(q){q.colorStoreUpdateJobId&&
(_.pi.cancelJob(q.colorStoreUpdateJobId),q.colorStoreUpdateJobId=void 0);
q.colorStore.clear();q.currentStoryboardColor=void 0},tJT=function(q,w){var u;
return(u=q.getStoryboardFrame(w))==null?void 0:u.url};
xR.prototype.onPlayerStateChange=function(){this.update()};
xR.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var et6=function(q){var w=q.getStoryboardFrame(0);w&&(w=new _.FO(w.width/w.columns,w.height/w.rows),_.BWH(q.currentStoryboardSize,w)||(q.currentStoryboardSize=w,q.publish("STORYBOARD_SIZE_CHANGED",q.currentStoryboardSize)))},PJB=function(q,w){q.currentStoryboardIndex=w;
q.pendingStoryboardIndex=NaN;w=q.getStoryboardFrame(q.currentStoryboardIndex);q.currentStoryboard=new wgB(q.mosaics.get(w.url).element,w);q.publish("STORYBOARD_CHANGED",q.currentStoryboard);q.lastUpdateTime=(0,_.eW)()};
xR.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var qo=function(q){q.currentStoryboardIndex=NaN;q.pendingStoryboardIndex=NaN;q.currentStoryboard&&(q.currentStoryboard=void 0,q.publish("STORYBOARD_CHANGED",void 0));q.lastUpdateTime=NaN};
xR.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)qo(this);else{var q=this.playerApi.getPlayerState(1);if(q===-1||q===5||q===0)qo(this);else if(isNaN(this.lastUpdateTime)||!((0,_.eW)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(q=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){q=""+Math.round(q*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var w=this.colorStore.get(q);w?w!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=w,this.currentStoryboard=new uqh(w),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.eW)()):(_.Y8(new _.fv("Could not find color for timestamp: "+q,this.cinematicContainerRenderer)),qo(this))}else qo(this);else Xgm(this,q)}};
var Xgm=function(q,w){var u=q.getStoryboardFrameIndex(w);if(u!==q.currentStoryboardIndex&&u!==q.pendingStoryboardIndex){w=tJT(q,u);var y=q.mosaics.get(w);y?y.loaded&&PJB(q,u):(q.pendingStoryboardIndex=u,u=new qRc(w),q.mosaics.set(w,u),u.resolver.promise.then(function(){if(!q.isDisposed()&&!q.paused&&!isNaN(q.pendingStoryboardIndex)){var e=tJT(q,q.pendingStoryboardIndex);if(e){var t;(t=q.mosaics.get(e))!=null&&t.loaded&&PJB(q,q.pendingStoryboardIndex)}else qo(q)}}))}};
xR.prototype.getStoryboardFrameIndex=function(q){var w=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(q,w)};
xR.prototype.getStoryboardFrame=function(q){var w=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,u,y;return((y=(u=this.playerApi).getStoryboardFrame)==null?void 0:y.call(u,q,w))||null};
xR.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var ut=function(q,w,u,y){y=y===void 0?!1:y;_.VG.call(this);this.cinematicContainerRenderer=w;this.playerApi=u;this.theater=this.fullscreen=!1;var e;this.ambientLightThemeEnabled=!y&&!!(w==null?0:(e=w.config)==null?0:e.enableInLightTheme);this.ambientFullscreenEnabled=y&&_.T("web_cinematic_fullscreen");this.container=document.createElement("div");q.appendChild(this.container);var t;if(_.T("web_cinematic_theater_mode")||_.T("web_cinematic_fullscreen")||(w==null?0:(t=w.config)==null?0:t.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);F9q(this);q=this.ambientV2Container||this.container;this.backCanvas=LQ6();this.frontCanvas=LQ6();q.appendChild(this.backCanvas.element);q.appendChild(this.frontCanvas.element);this.storyboardManager=new xR(w,this.playerApi);_.sN(this,this.storyboardManager);this.addEventListeners();GqB(this)?ngm(this,100+wn(this)*3*2,100+wn(this)*3*2):HWh(this);W9V(this,this.storyboardManager.currentStoryboard)};
_.O(ut,_.VG);var F9q=function(q){q.ambientV2Container?s$6(q):(_.zk(q.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+NiT(q)+", "+Q$6(q)+")"}),MIj()&&_.zk(q.container,"filter","blur("+_.Fc("cinematic_watch_css_filter_blur_strength",40)+"px)"))},s$6=function(q){if(q.ambientV2Container){var w=q.playerApi.getVideoAspectRatio();
_.zk(q.container,{"aspect-ratio":""+w,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.zk(q.ambientV2Container,{"aspect-ratio":""+w,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+NiT(q)+", "+Q$6(q)+")"});MIj()&&_.zk(q.ambientV2Container,"filter","blur("+_.Fc("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
ut.prototype.setFullscreen=function(q,w){this.fullscreen=q;this.theater=!!w;F9q(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),q=this.storyboardManager.currentStoryboard,Ix6(this),q&&iWT(this,q)};
ut.prototype.addEventListeners=function(){var q=this,w=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(e){W9V(q,e)}),u=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){HWh(q)});
this.addOnDisposeCallback(function(){q.storyboardManager.unsubscribeByKey(w);q.storyboardManager.unsubscribeByKey(u)});
if(this.ambientV2Container){var y=function(){s$6(q)};
this.playerApi.addEventListener("onVideoDataChange",y);this.addOnDisposeCallback(function(){q.playerApi.removeEventListener("onVideoDataChange",y)})}};
var HWh=function(q){if(!GqB(q)){var w=q.storyboardManager.currentStoryboardSize;isNaN(w.width)||isNaN(w.height)||ngm(q,Number(w.width)+wn(q)*3*2,Number(w.height)+wn(q)*3*2)}},ngm=function(q,w,u){q.backCanvas.element.width=w;
q.backCanvas.element.height=u;q.frontCanvas.element.width=w;q.frontCanvas.element.height=u},GqB=function(q){return q.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},W9V=function(q,w,u){u=u===void 0?!1:u;
var y=q.frontCanvas.element.getAnimations()[0];y?(y.pause(),q.backCanvas.context.globalAlpha=Number(getComputedStyle(q.frontCanvas.element).opacity),q.frontCanvas.element.style.opacity="0",y.finish()):q.backCanvas.context.globalAlpha=1;q.backCanvas.context.drawImage(q.frontCanvas.element,0,0,q.backCanvas.element.width,q.backCanvas.element.height);Ix6(q);w&&iWT(q,w);w=w?q.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.Fc("cinematic_watch_fade_out_duration",500);y=_.Fc("cinematic_watch_transition_frame_rate")/
1E3;var e={};y&&(e={easing:"steps("+Math.round(w*y)+")"});(u===void 0?0:u)||q.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:w,iterations:1},e));q.frontCanvas.element.style.opacity="1"},Ix6=function(q){var w=q.ambientLightThemeEnabled,u=q.ambientLightThemeEnabled||q.ambientFullscreenEnabled&&!_.T("web_cinematic_fullscreen_v2");
q.frontCanvas.context.fillStyle=q.theater&&w||q.fullscreen&&u?"#000":"#0f0f0f";MIj()||(q.frontCanvas.context.filter="blur(0)");q.frontCanvas.context.fillRect(0,0,q.frontCanvas.element.width,q.frontCanvas.element.height)},iWT=function(q,w){MIj()||(q.frontCanvas.context.filter="blur("+wn(q)+"px)");
q.frontCanvas.context.globalAlpha=_.Fc("cinematic_watch_effect_opacity",.4);var u={offsetX:wn(q)*3,offsetY:wn(q)*3,theater:q.theater,fullscreen:q.fullscreen};GqB(q)&&(u.width=100,u.height=100);w.drawToCanvas(q.frontCanvas.context,u);q.frontCanvas.context.globalAlpha=1},wn=function(q){var w;
return(w=q.cinematicContainerRenderer.config.blurStrength)!=null?w:5},NiT=function(q){var w,u;
if((q.fullscreen||q.theater)&&((w=q.cinematicContainerRenderer.config)==null?0:(u=w.watchFullscreenConfig)==null?0:u.colorSourceWidthMultiplier))return q.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var y;return(y=q.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?y:q.cinematicContainerRenderer.config.colorSourceSizeMultiplier},Q$6=function(q){var w,u;
if((q.fullscreen||q.theater)&&((w=q.cinematicContainerRenderer.config)==null?0:(u=w.watchFullscreenConfig)==null?0:u.colorSourceHeightMultiplier))return q.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var y;return(y=q.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?y:q.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
ut.prototype.disposeInternal=function(){_.VG.prototype.disposeInternal.call(this);this.container.remove()};
ut.prototype.clear=function(){W9V(this,void 0,!0)};
ut.prototype.pause=function(){this.storyboardManager.pause()};var rNj;rNj=_.NB(function(){var q,w,u=!((w=(q=document.createElement("canvas")).getContext)==null||!w.call(q,"2d")),y;q=!((y=CSS)==null||!y.supports("filter: blur(0)"));y=!!Element.prototype.animate&&!!Element.prototype.getAnimations;w=_.T("web_cinematic_fullscreen")||_.T("web_cinematic_theater_mode")||_.T("web_cinematic_light_theme")||!1;var e;return u&&q&&y&&(!w||!((e=CSS)==null||!e.supports("aspect-ratio: 1 / 1")))});
_.yd=function(q,w){_.L2.call(this);this.container=q;this.playerApi=w;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=U7T(this);this.update()};
_.O(_.yd,_.L2);_.Ti6=function(q){var w=document.documentElement.hasAttribute("dark");q.isDarkModeEnabled=w;q.update()};
_.CJx=function(q,w){q.settingEnabled=w;q.update()};
_.yd.prototype.setFullscreen=function(q,w){this.fullscreen=q;this.theater=!!w;this.update()};
_.d7j=function(q,w){q.cinematicContainerRenderer=w;q.cinematicContainerRenderer&&(q.cinematicsVe=_.oV(q.isShorts()?227858:159022),_.ku(_.Qz(),q.cinematicsVe),q.loggingClientData={watchCinematicContainerData:{presentationStyle:q.cinematicContainerRenderer.presentationStyle}});q.update()};
_.yd.prototype.isShorts=function(){var q,w;return((q=this.cinematicContainerRenderer)==null?void 0:(w=q.config)==null?void 0:w.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.yd.prototype.isAllowed=function(){var q;if(q=rNj()){var w,u,y;q=((u=this.cinematicContainerRenderer)==null?void 0:u.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((y=this.cinematicContainerRenderer)==null||!y.colorStore)||((w=this.cinematicContainerRenderer)==null?void 0:w.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(q)if(_.T("web_cinematics_pausing")){var e,t;q=this.isDarkModeEnabled||!!((e=this.cinematicContainerRenderer)==
null?0:(t=e.config)==null?0:t.enableInLightTheme)}else{var X,G;e=!!((X=this.cinematicContainerRenderer)==null?0:(G=X.config)==null?0:G.enableInLightTheme)&&(_.Et("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);q=this.isDarkModeEnabled||e}if(X=q){var n,N;X=!((N=(n=this.prefersReducedMotionQuery)==null?void 0:n.matches)!=null&&N)}return X};
_.OWh=function(q){(q=q.currentCinematicEffect)!=null&&(q=q.storyboardManager,q.paused=!1,et6(q),q.update())};
_.yd.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var U7T=function(q){if(!_.T("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var w=window.matchMedia("(prefers-reduced-motion: reduce)"),u=function(){q.update()};
w.addListener(u);q.addOnDisposeCallback(function(){w.removeListener(u)});
return w}};
_.yd.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var q=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new ut(this.container,q,this.playerApi,this.isDarkModeEnabled),_.sN(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var w=this.currentCinematicEffect;w.cinematicContainerRenderer!==
q&&(w.cinematicContainerRenderer=q,yNq(w.storyboardManager,q),F9q(w));q=_.UC();_.TM(0,194,!0);q.save();q=_.pN();this.cinematicsVe&&q&&_.SB(q,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(q=_.pN(),this.cinematicsVe&&q&&_.h7(q,[this.cinematicsVe],!1,this.loggingClientData),_.BX(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.x$.Object.defineProperties(_.yd.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var dpH;var O_c;_.o9({_template:function(){if(O_c!==void 0)return O_c;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=
q.content,u=w.insertBefore;dpH===void 0&&(dpH=document.createElement("template"));var y=dpH;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return O_c=q},
is:"tp-yt-iron-pages",behaviors:[_.mF,_.gN],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var ilx;_.rQq=function(){if(_.T("kevlar_home_skeleton")&&!ilx){var q=document.querySelector("#home-page-skeleton");q&&(_.D_("hgcr"),_.UN(q),ilx=!0)}};
ilx=!1;_.TA=new _.M("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var i3V,rdc,UlK,TqV,C$A,dlV,VYj,ml6,Adq,fwH,O3B,oW6,awT,Dlq;_.Iwj=function(q,w,u){w=w===void 0?5:w;if(w!==0){var y=typeof q==="function"?q():document.querySelector(q);y?(u==null?0:u.enableSmartFocus)?_.x$4(y):y.focus():setTimeout(function(){_.Iwj(q,w-1,u)},500)}};
i3V=function(q){return _.hFM(_.ShH(q&16777215))<.5};
rdc=function(q,w,u){var y=u.minimumRowsOfVideosBetweenSections===void 0?1:u.minimumRowsOfVideosBetweenSections;return q<(u.minimumRowsOfVideosAtStart===void 0?2:u.minimumRowsOfVideosAtStart)||w!==null&&q-w<=y?!1:!0};
UlK=function(q,w){var u=0,y=0;q=_.P(q);for(var e=q.next();!e.done;e=q.next()){var t=e.value;if(t.richItemRenderer)t.richItemRenderer.rowIndex=y,t.richItemRenderer.colIndex=u++,u===w&&(u=0,y++);else if(t.richGroupRenderer&&t.richGroupRenderer.numColumns!==void 0)t.richGroupRenderer.rowIndex=y,t.richGroupRenderer.colIndex=u,u+=t.richGroupRenderer.numColumns,u===w&&(u=0,y++);else if(t.richSectionRenderer){var X=e=void 0;if(t=_.C((e=t)==null?void 0:(X=e.richSectionRenderer)==null?void 0:X.content,_.hDZ))t.rowIndex=
y++}}};
TqV=function(q,w){var u=w.contentElement;w=w.rendererToTagNameMap;if(u&&w&&w.size!==0){for(var y=new Map,e=_.P(u.children),t=e.next();!t.done;t=e.next()){t=t.value;var X=t.tagName.toLowerCase(),G=y.get(X);G||(G=[],y.set(X,G));G.push(t)}if(y.size!==0)for(e=Math.min(q.length,u.children.length),t=new Map,X=0;X<e;X++){G=Object.keys(q[X])[0];G=w.get(G);if(!G)break;var n=t.get(G);n===void 0&&(n=0,t.set(G,n));var N=y.get(G);if(!N||n>=N.length)break;t.set(G,n+1);G=N[n];n=u.children[X];n!==G&&(_.c_4=!0,_.S$l.set(G,
!0),u.insertBefore(G,n),_.S$l.delete(G),_.c_4=!1)}}};
C$A=function(q,w,u,y,e,t,X){y=y===void 0?{}:y;if(!q||!q.length)return[];q=q.slice();var G=[],n=[];e=null;for(var N=0,Q=function(b){n.sort(function(S,eH){return eH.skippedOnRow-S.skippedOnRow});
for(var g,l=(g=n.shift())==null?void 0:g.content;l;)!l.richSectionRenderer&&b||G.push(l),g=void 0,l=(g=n.shift())==null?void 0:g.content},I=[];q.length>0||n.length>0;){for(var U=[],d=w;d>0;){var V=void 0,J=void 0,a=(J=n[0]&&n[0].skippedOnRow<N?(V=n.shift())==null?void 0:V.content:void 0)!=null?J:q.shift();
if(!a)break;if(a.richItemRenderer)V=a.richItemRenderer.targetId,J=void 0,V&&((J=X)==null?0:J.has(V))&&I.push(X.get(V)),U.push(a),d--;else if(a.richGroupRenderer&&a.richGroupRenderer.numColumns!==void 0)a.richGroupRenderer.numColumns<=d?(U.push(a),d-=a.richGroupRenderer.numColumns):d===w&&a.richGroupRenderer.numColumns>w?(U.push({richGroupRenderer:Object.assign({},a.richGroupRenderer,{numColumns:w})}),d=0):n.push({content:a,skippedOnRow:N});else if(a.richSectionRenderer)if(rdc(N,e,y)&&d===w){G.push(a);
e=N;N++;continue}else n.push({content:a,skippedOnRow:N});else if(a.continuationItemRenderer){Q(!0);G.push(a);d=0;break}if(d===0)G.push.apply(G,_.Cm(U));else if(!u&&q.length===0){Q(!1);G.push.apply(G,_.Cm(U));d=0;break}}N++;I=_.P(I);for(U=I.next();!U.done;U=I.next())G.push(U.value),N++;I=[]}UlK(G,w);t&&TqV(G,t);return G};
dlV=function(q){return q.talkToRecs};
VYj=function(q,w){if(w){var u=_.Mt().getState().entities.flowStateEntity,y=O3B(q),e=[w];y&&y!==w&&e.push(y);var t=!0,X;if(u&&q.flowStateEntityKey&&((X=u[q.flowStateEntityKey])==null?void 0:X.primaryButtonDisabled)!==void 0){var G;t=!((G=u[q.flowStateEntityKey])==null||!G.primaryButtonDisabled)}oW6(q,y!=null?y:w,e,t)}};
ml6=function(q){return _.se(_.Mt(),function(w){return w.entities.flowStateEntity},function(w,u){if(q.flowStateEntityKey){var y,e=w==null?void 0:(y=w[q.flowStateEntityKey])==null?void 0:y.currentStepId,t;
u=u==null?void 0:(t=u[q.flowStateEntityKey])==null?void 0:t.currentStepId;t=_.Mt().getState().talkToRecs;if(e&&e!==u){var X;w=(w==null?void 0:(X=w[q.flowStateEntityKey])==null?void 0:X.stepIdStack)||Object.keys(t.stepStates);X=!fwH(t==null?void 0:t.stepStates[e]);oW6(q,e,w,X)}}})};
Adq=function(q){return _.se(_.Mt(),dlV,function(w){var u=O3B(q);if(u){var y=Object.keys(w.stepStates);w=!fwH(w==null?void 0:w.stepStates[u]);oW6(q,u,y,w)}})};
fwH=function(q){var w=Object.keys((q==null?void 0:q.selectionStates)||{}).reduce(function(t,X){return t||(q==null?void 0:q.selectionStates[X].isSelected)},!1),u,y,e=!!(q==null?0:(u=q.userQuery)==null?0:(y=u.userQuery)==null?0:y.trim());
return w||e};
O3B=function(q){if(q.flowStateEntityKey){var w,u,y=(w=_.Mt().getState().entities.flowStateEntity)==null?void 0:(u=w[q.flowStateEntityKey])==null?void 0:u.currentStepId;if(y)return y}};
oW6=function(q,w,u,y){_.Mt().dispatch(_.IH("flowStateEntity",q.flowStateEntityKey,{currentStepId:w,stepIdStack:u,key:q.flowStateEntityKey,primaryButtonDisabled:y}))};
_.Jd4=function(q,w){return _.HQ(q.entities,"youchatPendingResponseEntity",w)};
_.z86=function(q){return function(w){_.hM(_.IH("youchatPendingResponseEntity",q,{entityKey:q,isPendingResponse:w}))}};
awT=function(q){q==null||q.addEventListener("DOMLoaded",function(){q.goToAndPlay(q.totalFrames-48,!0)})};var Z3x;_.o9({_template:function(){if(Z3x!==void 0)return Z3x;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);
var w=q.content,u=w.insertBefore;Dlq===void 0&&(Dlq=document.createElement("template"));var y=Dlq;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return Z3x=q},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var p$q=new _.M("talkToRecsFlowRenderer");var $lH=new _.M("flowRootRenderer");var vWa=new _.M("chipsShelfViewModel");var b3B=new _.M("horizontalShelfViewModel");_.Y2T=new _.M("engagementPanelSectionListRenderer");var gWh=new _.M("conversationResourceViewModel");var EWV=function(){this.horizontal=!1},R8K=function(q,w){q.horizontal=w};
EWV.prototype.position=function(q,w,u,y){y=y===void 0?1:y;q=this.delta(q)*y+w;y=Math.max(w,u);return q>=Math.min(w,u)&&q<=y?q:u};
EWV.prototype.axis=function(q){q=this.direction(q);return q==="up"||q==="down"?"Y":"X"};var Pq=function(q,w,u){w=w===void 0?_.kY():w;this.target=q;this.manager=w;this.touchAction=u;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Pq.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(_.Cm(this.events)));for(var q=_.P(this.events),w=q.next();!w.done;w=q.next())this.listen(w.value)}};
Pq.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.Cm(this.events)));for(var q=_.P(this.events),w=q.next();!w.done;w=q.next())this.unlisten(w.value)}};
Pq.prototype.listen=function(q){this.eventMap[q]&&this.target.addEventListener(q,this.eventMap[q])};
Pq.prototype.unlisten=function(q){this.eventMap[q]&&this.target.removeEventListener(q,this.eventMap[q])};var XY=function(){EWV.apply(this,arguments)};
_.O(XY,EWV);XY.prototype.direction=function(q){var w=q.detail;q=w.deltaY;w=w.deltaX;return q&&!this.horizontal?q>0?"down":"up":w&&this.horizontal?w>0?"right":"left":"none"};
XY.prototype.distance=function(q){return Math.abs(this.delta(q))};
XY.prototype.delta=function(q){var w=this.direction(q),u=q.detail;q=u.deltaX;u=u.deltaY;return w==="up"||w==="down"?u||0:q||0};
XY.prototype.velocity=function(q){var w=this.direction(q),u=q.detail;q=u.velocityX;u=u.velocityY;return Math.abs(w==="up"||w==="down"?u||0:q||0)};_.FY=function(q,w,u,y,e,t){e=e===void 0?new XY:e;t=t===void 0?_.kY():t;Pq.call(this,w,t,y);var X=this;this.element=q;this.target=w;this.config=u;this.input=e;this.manager=t;this.events=["panstart","panmove","panend"];this.onPanStart=function(){X.config.draggingClass&&X.element.classList.add(X.config.draggingClass);X.config.startAction&&X.config.startAction()};
this.onPanMove=function(G){var n=cdj(X,G);if(n){X.move(G,n);n.fade&&X.fade(G,n);var N=X.input.direction(G);n.moveAction&&n.moveAction(S24(X,G,n),N)}};
this.onPanEnd=function(G){var n,N,Q,I,U,d;return _.F(function(V){if(V.nextAddress==1){X.animationRequestId&&cancelAnimationFrame(X.animationRequestId);X.animationRequestId=void 0;n=cdj(X,G);if(!n)return V.return();N=n;Q=N.triggerAction;I=N.fade;U=N.disableFinish;d=N.translateBack;var J=X.input.velocity(G),a=X.input.distance(G),b=X.threshold(n);return J>.3&&a>10||a>b?U?V.jumpTo(6):I?_.H(V,h8B(X,G),6):_.H(V,jCm(X,G,n),6):d?_.H(V,X.translateBack(G),3):V.jumpTo(3)}V.nextAddress!=3&&Q&&Q();X.config.draggingClass&&
X.element.classList.remove(X.config.draggingClass);X.reset();_.HI(V)})};
q=Object.keys(u.triggers);this.directions=new Set(q);R8K(this.input,this.directions.has("right")||this.directions.has("left"))};
_.O(_.FY,Pq);_.FY.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var cdj=function(q,w){w=q.input.direction(w);return q.config.triggers[w]};
_.FY.prototype.move=function(q,w){var u=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var y=u.input.axis(q),e=u.input.position(q,u.config.startPosition,w.endPosition,w.moveRatio||1);u.element.style.transform="translate"+y+"("+e+"px)";u.animationRequestId=void 0}))};
var S24=function(q,w,u){var y=u.moveRatio||1;u=Math.abs(q.config.startPosition-u.endPosition);return Math.min(q.input.distance(w)*y,u)/u};
_.FY.prototype.fade=function(q,w){var u=w.endOpacity;q=S24(this,q,w);q>0&&(this.element.style.opacity=""+(((u||0)-1)*q+1))};
_.FY.prototype.threshold=function(q){return q.threshold?q.threshold:Math.abs(q.endPosition-this.config.startPosition)/3};
var jCm=function(q,w,u){var y,e,t,X,G,n,N;return _.F(function(Q){if(Q.nextAddress==1)return y=q.input.delta(w)+q.config.startPosition,e=q.input.axis(w),t=u,X=t.endPosition,G=t.transitionEndPosition,N=(n=G)!=null?n:X,_.H(Q,q.element.animate([{transform:"translate"+e+"("+y+"px)"},{transform:"translate"+e+"("+N+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);q.element.style.transform="translate"+e+"("+N+"px)";_.HI(Q)})};
_.FY.prototype.translateBack=function(q){var w=this,u,y;return _.F(function(e){if(e.nextAddress==1){if(!w.element.style.transform)return e.return();u=w.input.axis(q);y=w.config.startPosition;return _.H(e,w.element.animate([{transform:w.element.style.transform},{transform:"translate"+u+"("+y+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}w.element.style.transform="translate"+u+"("+y+"px)";_.HI(e)})};
var h8B=function(q,w){var u,y,e,t;return _.F(function(X){if(X.nextAddress==1)return u=q.input.delta(w)+q.config.startPosition,y=q.input.axis(w),e=u+70,t=q.element.style.opacity===""?1:q.element.style.opacity,_.H(X,q.element.animate([{transform:"translate"+y+"("+u+"px)",opacity:t},{transform:"translate"+y+"("+e+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);q.element.style.transform="translate"+y+"("+e+"px)";q.element.style.opacity="0";_.HI(X)})};var GA=function(){var q=_.Na.apply(this,arguments)||this;q._noAccessors=!0;q.scrollRate=3;q.autoScrollAnimationStart=0;q.autoScrollPaused=!1;q.autoScrollRafId=0;return q};
_.O(GA,_.Na);_.k=GA.prototype;_.k.created=function(){var q=this;this.boundAutoScrollHandler=function(w){q.autoScroll(w)}};
_.k.detached=function(){this.hostElement.removeEventListener("mouseout",_.Fj(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Fj(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Fj(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.k.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Fj(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Fj(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Fj(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Fj(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Fj(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Fj(this,this.endAutoScroll)),this.endAutoScroll())};
_.k.autoScroll=function(q){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=q);var w;if(w=!this.autoScrollPaused&&this.scrollTarget)w=this.scrollTarget,w=w.scrollHeight-w.scrollTop!==w.clientHeight;w&&(w=1E3/this.scrollRate,q-=this.autoScrollAnimationStart,q>w&&(this.scrollTarget.scrollTop+=Math.ceil(q/w),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.k.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.k.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
GA.prototype.autoScrollEnabledChanged=GA.prototype.autoScrollEnabledChanged;_.c([_.v(),_.h("design:type",Object)],GA.prototype,"scrollRate",void 0);_.c([_.v(),_.h("design:type",Object)],GA.prototype,"scrollTarget",void 0);_.c([_.v(),_.h("design:type",Boolean)],GA.prototype,"autoScrollEnabled",void 0);_.c([_.nL("autoScrollEnabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GA.prototype,"autoScrollEnabledChanged",null);GA=_.c([_.Q6()],GA);_.lwV=[GA.prototype];var Leq;var ne=function(){var q=_.Y.apply(this,arguments)||this;q.buttonUpdate=_.T("web_button_rework");q.dismissButtonOverrides=_.T("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;q.forceDarkTheme=!1;q.forceLightTheme=!1;q.dynamicTextHeight=94;q.hasOverflowButton=!1;q.isInfeedModernization=!1;return q};
_.O(ne,_.Y);_.k=ne.prototype;_.k.computeUrlImg=function(q){if(q)return _.uv(q.thumbnails)};
_.k.getLogoHeight=function(q){return this.logoWithPadding(q)?"31":"24"};
_.k.getLogoClassName=function(q){return this.logoWithPadding(q)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.k.logoWithPadding=function(q){var w,u;return(q=(w=q.thumbnails)==null?void 0:(u=w[0])==null?void 0:u.height)&&q%31===0?!0:!1};
_.k.sendImpressionEndpoints=function(q){q.impressionEndpoints&&_.GM(this.hostElement,q.impressionEndpoints)};
_.k.observeBasicPalette=function(){var q,w,u=(q=this.data)==null?void 0:(w=q.colorData)==null?void 0:w.basicColorPaletteData;u?_.ms(this.hostElement,u):_.ms(this.hostElement,{})};
_.k.observeDataChanged=function(){var q;this.dynamicTextHeight=((q=this.data)==null?0:q.supplementalText)?74:94;var w;this.hasSupplementalText=!((w=this.data)==null||!w.supplementalText);if(_.T("web_button_rework")){var u,y,e,t;q=(u=this.data)==null?void 0:(y=u.actionButton)==null?void 0:(e=y.buttonRenderer)==null?void 0:(t=e.colorData)==null?void 0:t.basicColorPaletteData;var X,G,n;if(!((X=this.data)==null?0:(G=X.actionButton)==null?0:(n=G.buttonRenderer)==null?0:n.style)&&q){this.computeIsInfeedModernization(this.data)||
(q.borderColor=q.foregroundTitleColor);var N,Q;this.set("data.actionButton.buttonRenderer",_.db.unsafeClone((N=this.data)==null?void 0:(Q=N.actionButton)==null?void 0:Q.buttonRenderer))}}};
_.k.observeDataForCounterfactual=function(){if(_.T("kevlar_banner_cf_extra_logging")){var q;((q=this.data)==null?0:q.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.k.computeSupplementalStyle=function(){var q;if((q=this.data)!=null&&q.supplementalText){var w,u,y;if((w=this.data)==null?0:(u=w.colorData)==null?0:(y=u.basicColorPaletteData)==null?0:y.foregroundActivatedColor)return q=_.Ae(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+q+"; --yt-endpoint-hover-color:"+q+"; --yt-endpoint-visited-color:"+q+"; --yt-formatted-string-bold-font-weight:700;"}};
_.k.computeForcedDarkTheme=function(){var q,w,u,y=(q=this.data)==null?void 0:(w=q.actionButton)==null?void 0:(u=w.buttonRenderer)==null?void 0:u.style,e,t,X;q=i3V(((e=this.data)==null?void 0:(t=e.colorData)==null?void 0:(X=t.basicColorPaletteData)==null?void 0:X.backgroundColor)||0);return y&&q};
_.k.computeForcedLightTheme=function(){var q,w,u,y=(q=this.data)==null?void 0:(w=q.actionButton)==null?void 0:(u=w.buttonRenderer)==null?void 0:u.style,e,t,X;q=!i3V(((e=this.data)==null?void 0:(t=e.colorData)==null?void 0:(X=t.basicColorPaletteData)==null?void 0:X.backgroundColor)||0);return y&&q};
_.k.computeHasOverflowButton=function(q){return!!q.overflowButton};
_.k.computeHasTitle=function(q){return!!q.title};
_.k.computeTitleMaxFontSize=function(q){return this.computeHasOverflowButton(q)?28:64};
_.k.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.k.computeIsInfeedModernization=function(){var q,w,u,y,e=(q=this.data)==null?void 0:(w=q.actionButton)==null?void 0:(u=w.buttonRenderer)==null?void 0:(y=u.colorData)==null?void 0:y.basicColorPaletteData;return(e==null?void 0:e.backgroundColor)===452984831||(e==null?void 0:e.backgroundColor)===218103808};
ne.prototype.observeDataForCounterfactual=ne.prototype.observeDataForCounterfactual;ne.prototype.observeDataChanged=ne.prototype.observeDataChanged;ne.prototype.observeBasicPalette=ne.prototype.observeBasicPalette;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ne.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],ne.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.D(_.D$.YtdGuideStateAwareBehavior),_.h("design:type",Object)],ne.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ne.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ne.prototype,"buttonUpdate",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],ne.prototype,"hasSupplementalText",void 0);_.c([_.v(),_.h("design:type",Object)],ne.prototype,"dismissButtonOverrides",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.h("design:type",Boolean)],ne.prototype,"hasTitle",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.h("design:type",Object)],ne.prototype,"forceDarkTheme",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.h("design:type",Object)],ne.prototype,"forceLightTheme",void 0);_.c([_.v(),_.h("design:type",Object)],ne.prototype,"dynamicTextHeight",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.h("design:type",Object)],ne.prototype,"hasOverflowButton",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.h("design:type",Object)],ne.prototype,"isInfeedModernization",void 0);_.c([_.nL("data.colorData.basicColorPaletteData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ne.prototype,"observeBasicPalette",null);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ne.prototype,"observeDataChanged",null);_.c([_.nL("data.isVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ne.prototype,"observeDataForCounterfactual",null);ne=_.c([_.E({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],ne);
_.R(ne,"ytd-banner-promo-renderer",function(){if(Leq!==void 0)return Leq;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Leq=q},{mode:1});var MYB;var KeK;var Bqc;var Hq=function(){return _.Y.apply(this,arguments)||this};
_.O(Hq,_.Y);_.c([_.v(),_.h("design:type",Object)],Hq.prototype,"data",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Hq.prototype,"ytRendererBehavior",void 0);Hq=_.c([_.E({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],Hq);
_.R(Hq,"ytd-hashtag-grid-tile-renderer",function(){if(Bqc!==void 0)return Bqc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Bqc=q},{mode:1});var Wq=function(){return _.Y.apply(this,arguments)||this};
_.O(Wq,_.Y);Wq.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Wq.prototype.updateRichGridTrendingHashtagsVisibility=function(){var q,w;if(((q=this.data)==null||!q.isExpanded)&&(w=this.data)!=null&&w.tiles){q=this.data.tiles.length;w=q>this.richGridItemsPerRow?this.richGridItemsPerRow+1:q;var u=Math.ceil(q/w);this.fullyVisibleRows=q%w===1&&u===2?1:Math.min(u,2);this.isShowMoreVisible=this.fullyVisibleRows<u}};
Wq.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Wq.prototype.updateRichGridTrendingHashtagsVisibility=Wq.prototype.updateRichGridTrendingHashtagsVisibility;_.c([_.v(),_.h("design:type",Object)],Wq.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Number)],Wq.prototype,"fullyVisibleRows",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Wq.prototype,"isShowMoreVisible",void 0);_.c([_.v({selector:_.aO,value:0}),_.h("design:type",Number)],Wq.prototype,"richGridItemsPerRow",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Wq.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Wq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],Wq.prototype,"ytdReduxBehavior",void 0);_.c([_.nL("data","richGridItemsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Wq.prototype,"updateRichGridTrendingHashtagsVisibility",null);
Wq=_.c([_.E({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Wq);
_.R(Wq,"ytd-hashtag-grid-shelf-renderer",function(){if(KeK!==void 0)return KeK;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return KeK=q},{mode:1});var xlB;var qyH;var sn=function(){var q=_.Y.apply(this,arguments)||this;q.visibleVideos=[];q.hiddenVideos=[];q.modern=_.T("web_modern_buttons");q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.O(sn,_.Y);_.k=sn.prototype;_.k.attached=function(){var q=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",q);this.onDarkModeToggledAction(q)};
_.k.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"}}}};
_.k.dataChanged=function(){var q=this;this.requestElementsPerRow();var w,u;this.currentColorPalette=this.isDarkTheme?(w=this.data)==null?void 0:w.darkColorData:(u=this.data)==null?void 0:u.lightColorData;var y;if((y=this.currentColorPalette)==null?0:y.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.KJ(this,function(){q.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.k.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.k.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.k.computeIsFirstFeedItem=function(q){return q};
_.k.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&this.set("isDarkTheme",q);this.data&&(this.currentColorPalette=q?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.k.getCurrentLogo=function(q,w){if(q)return w?q.darkLogoImage:q.lightLogoImage};
_.k.computeTitleStyle=function(q){var w;if((w=this.data)!=null&&w.title&&q&&q.textPrimary!==void 0)return"color:"+_.Ae(q.textPrimary)+";"};
_.k.computeSubtitleStyle=function(q){var w;if((w=this.data)!=null&&w.subtitle&&q&&q.textSecondary!==void 0)return"color:"+_.Ae(q.textSecondary)+";"};
_.k.computeDismissIconStyle=function(q){if(this.data&&this.data.dismissButton&&q&&q.textPrimary!==void 0)return"--yt-button-color:"+_.Ae(q.textPrimary)+";"};
_.k.computeOverflowButtonStyle=function(q){if(this.data&&this.data.overflowButton&&q&&q.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Ae(q.textPrimary)+";--yt-spec-icon-active-other:"+_.Ae(q.textPrimary)+";"};
_.k.computeBackgroundStyle=function(q){if(q&&this.data){var w="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var u=_.uv((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);u&&(w+='background-image:url("'+u+'");')}q.backgroundColor!==void 0&&(w+="background-color:"+_.Je(q.backgroundColor)+";");return w}};
_.k.computeButton=function(){var q,w=Object.assign({},_.C((q=this.data)==null?void 0:q.showMoreButton,_.aB));if(this.modern&&w){w.style="STYLE_MONO_OUTLINE";var u;if(q=(u=this.currentColorPalette)==null?void 0:u.textPrimary)w.colorData={basicColorPaletteData:{foregroundTitleColor:q,borderColor:q}}}return w};
_.k.shouldShowBottomButton=function(q,w){return!(q==null?0:q.header)&&!(q==null||!q.primaryButton)&&w<3};
_.k.checkExpanded=function(q){this.isExpanded=q&&q.content?this.hiddenVideos.length===0:!0};
_.k.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.k.getLogoHeight=function(q){return this.logoWithPadding(q)?"26":"20"};
_.k.getLogoImageId=function(q){return this.logoWithPadding(q)?"logo-image-with-padding":"logo-image"};
_.k.computeHasSectionHeader=function(q){return!!q.header};
_.k.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var q;if((q=this.data.primaryButton)==null?0:q.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 w;((w=this.data.dismissButton)==null?0:w.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var u,y;((u=this.data)==null?0:(y=u.primaryButton)==null?0:y.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.k.setVisibleVideos=function(q){if(this.data&&this.data.content)if(this.data.content.length){var w=this.data.content.length;this.data.header?q?(this.visibleVideos=this.data.content.slice(0,Math.min(w,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(w,this.slimItemsPerRow),w)):(this.visibleVideos=this.data.content.slice(0,Math.min(w,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(w,this.elementsPerRow),w)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(w,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(w,this.elementsPerRow),w)):(this.visibleVideos=this.data.content.slice(0,Math.min(w,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(w,this.elementsPerRow-1),w))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.k.setHasMovieRenderer=function(){var q;if((q=this.data)!=null&&q.content){var w;this.hasMovieRenderer=!!_.C((w=this.data)==null?void 0:w.content[0],_.TaP)}else this.hasMovieRenderer=!1};
_.k.requestElementsPerRow=function(){_.t7(this.hostElement,"yt-request-elements-per-row")};
_.k.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var q=_.P(this.hiddenMediaRenderers),w=q.next();!w.done;w=q.next())w.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(q=_.A(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&q.focus()}};
_.k.updateTitleSpec=function(){var q;(q=this.data)!=null&&q.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.k.logoWithPadding=function(q){var w,u,y;return(q=(w=this.getCurrentLogo(q,this.isDarkTheme))==null?void 0:(u=w.thumbnails)==null?void 0:(y=u[0])==null?void 0:y.height)&&q%31===0?!0:!1};
_.k.onUpdateElementsPerRowAction=function(q,w,u){q&&this.elementsPerRow!==q&&(this.elementsPerRow=q);u&&this.slimItemsPerRow!==u&&(this.slimItemsPerRow=u)};
sn.prototype.slimItemsPerRowChanged=sn.prototype.slimItemsPerRowChanged;sn.prototype.elementsPerRowChanged=sn.prototype.elementsPerRowChanged;sn.prototype.dataChanged=sn.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],sn.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],sn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],sn.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],sn.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],sn.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],sn.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],sn.prototype,"currentColorPalette",void 0);_.c([_.v(),_.h("design:type",Array)],sn.prototype,"visibleVideos",void 0);_.c([_.v(),_.h("design:type",Array)],sn.prototype,"hiddenVideos",void 0);
_.c([_.v(),_.h("design:type",Object)],sn.prototype,"primaryButton",void 0);_.c([_.v({reflectToAttribute:!0,value:3}),_.h("design:type",Number)],sn.prototype,"elementsPerRow",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],sn.prototype,"isDarkTheme",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],sn.prototype,"isExpanded",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],sn.prototype,"largeTitle",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],sn.prototype,"hasMovieRenderer",void 0);_.c([_.v(),_.h("design:type",Number)],sn.prototype,"slimItemsPerRow",void 0);_.c([_.v(),_.h("design:type",Boolean)],sn.prototype,"showLightVideoMetadata",void 0);_.c([_.v(),_.h("design:type",Boolean)],sn.prototype,"showDarkVideoMetadata",void 0);_.c([_.v(),_.h("design:type",Number)],sn.prototype,"videoMetadataColor",void 0);
_.c([_.v({reflectToAttribute:!0,selector:_.za}),_.h("design:type",Boolean)],sn.prototype,"miniMode",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.h("design:type",Boolean)],sn.prototype,"isFirstFeedItem",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.h("design:type",Boolean)],sn.prototype,"hasSectionHeader",void 0);
_.c([_.v({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],sn.prototype,"roundedContainer",void 0);_.c([_.s6("#visible-video-container ytd-rich-grid-media"),_.h("design:type",Array)],sn.prototype,"visibleMediaRenderers",void 0);_.c([_.s6("#hidden-video-container ytd-rich-grid-media"),_.h("design:type",Array)],sn.prototype,"hiddenMediaRenderers",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],sn.prototype,"modern",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sn.prototype,"dataChanged",null);_.c([_.nL("elementsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sn.prototype,"elementsPerRowChanged",null);_.c([_.nL("slimItemsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sn.prototype,"slimItemsPerRowChanged",null);
sn=_.c([_.E({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],sn);
_.R(sn,"ytd-brand-video-shelf-renderer",function(){if(qyH!==void 0)return qyH;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return qyH=q},{mode:1});var wD6;var Nf=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.O(Nf,_.Y);_.k=Nf.prototype;_.k.attached=function(){var q=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",q);this.onDarkModeToggledAction(q)};
_.k.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"}}}};
_.k.dataChanged=function(){this.requestElementsPerRow();var q,w;this.currentColorPalette=this.isDarkTheme?(q=this.data)==null?void 0:q.darkColorData:(w=this.data)==null?void 0:w.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.k.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.k.computeIsFirstFeedItem=function(q){return q};
_.k.onDarkModeToggledAction=function(q){q!==this.isDarkTheme&&this.set("isDarkTheme",q);this.data&&(this.currentColorPalette=q?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(q),this.updateButtonPalette())};
_.k.shouldShowThumbnailInMetadata=function(q){return q<=1};
_.k.computeVideoMetadataColor=function(){if(this.data){var q;if((q=this.currentColorPalette)==null?0:q.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.k.computeTitleStyle=function(q){var w;if((w=this.data)!=null&&w.title&&q&&q.textPrimary!==void 0)return"color:"+_.Ae(q.textPrimary)+";"};
_.k.computeSubtitleStyle=function(q){var w;if((w=this.data)!=null&&w.subtitle&&q&&q.textSecondary!==void 0)return"color:"+_.Ae(q.textSecondary)+";"};
_.k.computeOverflowButtonStyle=function(q){var w;if(this.data&&this.data.overflowButton&&(q==null?0:(w=q.dismissButtonColorData)==null?0:w.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.Ae(q.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.Ae(q.dismissButtonColorData.foregroundTitleColor)+";"};
_.k.computeBackgroundStyle=function(q){if(q&&this.data){var w="";q.backgroundColor!==void 0&&(w+="background-color:"+_.Je(q.backgroundColor)+";");return w}};
_.k.computeHasOverflowButton=function(q){return!!q.overflowButton};
_.k.updateButtonPalette=function(){if(this.data){var q;if((q=this.data.primaryButton)==null?0:q.buttonRenderer){var w;if((w=this.currentColorPalette)==null?0:w.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var u;((u=this.currentColorPalette)==null?0:u.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)})}}};
_.k.requestElementsPerRow=function(){_.t7(this.hostElement,"yt-request-elements-per-row")};
_.k.updateTitleSpec=function(){var q;(q=this.data)!=null&&q.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")};
_.k.onUpdateElementsPerRowAction=function(q){q&&this.elementsPerRow!==q&&(this.elementsPerRow=q)};
Nf.prototype.elementsPerRowChanged=Nf.prototype.elementsPerRowChanged;Nf.prototype.dataChanged=Nf.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Nf.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Nf.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],Nf.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Nf.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],Nf.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Nf.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],Nf.prototype,"currentColorPalette",void 0);_.c([_.v(),_.h("design:type",Object)],Nf.prototype,"primaryButton",void 0);
_.c([_.v({reflectToAttribute:!0,value:3}),_.h("design:type",Number)],Nf.prototype,"elementsPerRow",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Nf.prototype,"isDarkTheme",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],Nf.prototype,"titleSize",void 0);_.c([_.v(),_.h("design:type",Number)],Nf.prototype,"videoMetadataColor",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.za}),_.h("design:type",Boolean)],Nf.prototype,"miniMode",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.h("design:type",Boolean)],Nf.prototype,"isFirstFeedItem",void 0);_.c([_.v({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],Nf.prototype,"roundedContainer",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.h("design:type",Boolean)],Nf.prototype,"hasOverflowButton",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Nf.prototype,"dataChanged",null);_.c([_.nL("elementsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Nf.prototype,"elementsPerRowChanged",null);Nf=_.c([_.E({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],Nf);
_.R(Nf,"ytd-brand-video-singleton-renderer",function(){if(wD6!==void 0)return wD6;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return wD6=q},{mode:_.kB("kevlar_poly_si_batch_j070")?1:2});var uHB;var yQa=_.LL(function(q){var w=q.data;return _.W(_.ln,{data:function(){return w().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(w().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var u=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":u=88;break a;default:u=88}return u},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return w().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"fi"),k$4=_.LL(function(q){var w=q.metadataRow;
var u=q.delimiter;return _.W(_.mL,{each:function(){return w().textParts||[]},
keyBy:"INDEX"},function(y,e){return _.W(_.GS,null,_.W(_.Lr,{text:y,noWrap:!0,userInput:!0}),_.W(eoa,{delimiter:u,max:function(){return w().textParts.length},
index:e}))})},"gi"),eoa=_.LL(function(q){var w=q.delimiter;
var u=q.max;var y=q.index;return _.W(_.r,{cond:function(){return(w==null?void 0:w())&&u()-1>y()},
then:function(){return _.W("span",null,w)}})},"hi"),tTA=_.LL(function(q){var w=q.data;
q={};return _.W("yt-profile-page-header-information-view-model",{class:_.HR("profile-page-header-information-view-model-wiz",(q["profile-page-header-information-view-model-wiz--mobile"]=!1,q))},_.W(_.r,{cond:function(){return w().onTap},
then:function(){return _.W(_.Mq,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.Zh(w().onTap)}},_.W(_.OF,{data:function(){return w().thumbnail}},{profilePageHeaderThumbnailViewModel:yQa}))},
else:function(){return _.W("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.W(_.OF,{data:function(){return w().thumbnail}},{profilePageHeaderThumbnailViewModel:yQa}))}}),_.W("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.W(_.r,{cond:function(){return w().onTap},
then:function(){return _.W(_.OF,{data:function(){return w().title}},{profilePageHeaderTitleViewModel:function(u){var y=u.data;
return _.W(_.Mq,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.Zh(y().onTap)}},_.W(_.Lr,{text:function(){return y().title}}))}})},
else:function(){return _.W(_.OF,{data:function(){return w().title}},{profilePageHeaderTitleViewModel:function(u){var y=u.data;
return _.W(_.Lr,{text:function(){return y().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.W(_.OF,{data:function(){return w().metadata}},{profilePageHeaderMetadataViewModel:function(u){var y=u.data;
return _.W(_.r,{cond:function(){return y().metadataRows},
then:function(e){return _.W("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.W(_.mL,{each:e,keyBy:"INDEX"},function(t,X){return _.W(_.GS,null,_.W(k$4,{metadataRow:t,delimiter:" \u2022 "}),_.W(eoa,{delimiter:" \u2022 ",max:function(){return e().length},
index:X}))}))}})}})))},"ii");
tTA.idomCompat=!0;_.q9(tTA,"yt-profile-page-header-information-view-model",{props:{data:_.pK}});var Qf=function(){return _.Y.apply(this,arguments)||this};
_.O(Qf,_.Y);Qf.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Qf.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Qf.prototype,"data",void 0);Qf=_.c([_.E({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Qf);
_.R(Qf,"ytd-effect-pivot-header-view-model",function(){if(uHB!==void 0)return uHB;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return uHB=
q},{mode:1});var PdV;var IL=function(){return _.Y.apply(this,arguments)||this};
_.O(IL,_.Y);IL.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],IL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],IL.prototype,"data",void 0);IL=_.c([_.E({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],IL);
_.R(IL,"ytd-source-pivot-header-renderer",function(){if(PdV!==void 0)return PdV;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return PdV=q},{mode:1});_.XD6=_.LL(function(q){var w=q.data;q=_.Bm();_.EF(q,function(){return w().rendererContext});
var u=function(){var y;return _.gE((y=w())==null?void 0:y.rendererContext)};
return _.W("content-list-item-view-model",{el:q,class:"ytContentListItemViewModelHost",role:function(){return u()?"listitem":void 0},
tabindex:function(){return u()?0:void 0}},_.W("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.W("div",{class:"ytContentListItemViewModelImageContainer"},_.W(_.r,{cond:function(){return w().image},
then:function(y){return _.W(_.ln,{data:y,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.W(_.OF,{data:function(){var y;
return(y=w())==null?void 0:y.avatar}},{avatarViewModel:_.Vb})),_.W("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.W("div",{class:"ytContentListItemViewModelTitle"},_.W(_.Lr,{text:function(){return w().title}})),_.W("div",{class:"ytContentListItemViewModelMetadata"},_.W(_.OF,{data:function(){return w().metadata}},{contentMetadataViewModel:function(y){return _.W(_.QY3,{data:y.data,
layout:1})}})))),_.W("div",{class:"ytContentListItemViewModelActionButton"},_.W(_.OF,{data:function(){var y;
return(y=w())==null?void 0:y.actionButton}},{buttonViewModel:_.Zs,
toggleButtonViewModel:_.fr})))},"ji");_.q9(_.LL(function(q){var w={},u={},y={},e={};return _.W("yt-card-view-model",{class:_.HR("ytCardViewModelHost",q.className,(w.ytCardViewModelOutline=function(){return q.data().cardStyle==="CARD_STYLE_OUTLINE"},w),(u.ytCardViewModelRaised=function(){return q.data().cardStyle==="CARD_STYLE_RAISED"||q.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},u),(y.ytCardViewModelTonal=function(){return q.data().cardStyle==="CARD_STYLE_TONAL"},y),(e.ytCardViewModelInverted=function(){return q.data().cardStyle===
"CARD_STYLE_INVERSE"},e))},_.W(_.OF,{data:function(){return q.data().background}},{cinematicContainerViewModel:function(t){return _.W(_.ynx,{data:t.data})}}),_.W("div",{class:"ytCardViewModelContentWrapper"},_.W(_.OF,{data:function(){return q.data().content}},{contentListItemViewModel:function(t){return _.W(_.XD6,{data:t.data})}})),_.W(_.OF,{data:function(){return q.data().dismissAction}},{buttonViewModel:function(t){return _.W(_.Zs,{data:t.data})}}))},"ki"),"yt-card-view-model",{props:{data:_.pK,
className:_.pK}});_.q9(_.LL(function(q){var w=function(){return _.C(q.data().flowRoot,$lH)};
_.p4(function(){var u=w(),y=function(){},e=function(){};
if(u){var t,X,G=(X=_.C((t=u.steps)==null?void 0:t[0],_.Bbm))==null?void 0:X.stepId;VYj(u,G||"");y=ml6(u);e=Adq(u)}_.ZG(function(){y();y=function(){};
e();e=function(){}})});
return _.W("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.W(_.UhF,{contentId:function(){return q.data().contentId}},function(){return _.W("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.W(_.r,{cond:w,
then:function(u){return _.W(_.gCx,{data:u})}}))}))},"li"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.pK}});_.q9(_.LL(function(){return _.W("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.W("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.W("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.W(_.fR6,null)),_.W(_.TWT,{data:{rows:1},isExploreHub:!0}))},"mi"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.q9(_.LL(function(q){var w=q.data;var u=q.standardUnitMinWidth;q=_.Bm();var y=_.P((0,_.obP)(w)),e=y.next().value,t=y.next().value,X=function(){var n,N=(n=e())==null?void 0:n.contents;return N==null||N.length===0},G=function(){t(Object.assign({},e(),{contents:[]}))};
_.k$(q,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var n=_.C(w().chipsShelf,vWa);if(n!=null&&n!=null&&n.autoselectChipOnVisible){var N,Q,I=_.C(n==null?void 0:(N=n.contents)==null?void 0:N[(Q=n.autoselectedChipIndex)!=null?Q:0],_.$P);I&&I.tapCommand&&_.bn(I.tapCommand)}}});
return _.W("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:q},_.W(_.UhF,{contentId:function(){return w().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.W("div",null,_.W("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.W(_.OF,{data:function(){return w().header}},{sectionHeaderViewModel:function(n){return _.W(_.Bb,{data:n.data,
disableHorizontalPadding:!0})}})),_.W("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.W(_.OF,{data:function(){return w().chipsShelf}},{chipsShelfViewModel:function(n){return _.W(_.oOP,{data:n.data,
callback:G,enableSingleChipSelection:!0})}})),_.W("div",null,_.W(_.r,{cond:X,
then:function(){return _.W("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.W(_.TWT,{data:{rows:1},isExploreHub:!0}))}}),_.W(_.OF,{data:function(){var n;
return(n=e())==null?void 0:n.contents}},{richShelfRenderer:function(n){return _.W(_.OB3,{data:n.data,
isInnerShelf:!0,standardUnitMinWidth:u})}})))}))},"ni"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.pK,
standardUnitMinWidth:_.pK}});var i0=function(){return _.Y.apply(this,arguments)||this};
_.O(i0,_.Y);
i0.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}}};
i0.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.c([_.D(_.fU),_.h("design:type",Object)],i0.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],i0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.JR),_.h("design:type",Object)],i0.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],i0.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],i0.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",Number)],i0.prototype,"standardUnitMinWidth",void 0);i0=_.c([_.E({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],i0);
_.R(i0,"ytd-rich-section-renderer",function(){if(xlB!==void 0)return xlB;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return xlB=q},{mode:_.kB("kevlar_poly_si_batch_j029")?
1:2});_.q9(_.NgA,"yt-profile-identity-info-view-model",{props:{data:_.pK,hideDivider:_.pK}});_.q9(_.H8x,"yt-page-header-view-model",{props:{data:_.pK,noPadding:_.pK,enableBanner:_.pK,cinematicContainerTopbarOffset:_.pK,allowCinematicContainerOverflow:_.pK,displayAsSidebar:_.pK,displayAsPanel:_.pK}});_.q9(_.LL(function(q){var w=q.data;var u=function(){var e;return(e=w().numColumns)!=null?e:2},y=function(){return u()>1?3:2};
q={};return _.W("ytd-rich-grid-group",{class:_.HR("ytdRichGridGroupHost",(q.ytdRichGridGroupHostFirstColumn=function(){return w().colIndex===0},q)),
style:_.rm({"--ytd-rich-grid-group-num-columns":u,"--ytd-rich-grid-items-per-group":y})},_.W("div",{class:"ytdRichGridGroupContents"},_.W(_.OF,{data:function(){var e;return(e=w().contents)==null?void 0:e.slice(0,y())}},{richItemRenderer:function(e){return _.W(_.CFk,{data:e.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"oi"),"ytd-rich-grid-group",{props:{data:_.pK}});var rU=function(){var q=_.Y.apply(this,arguments)||this;q.resizeOnObserverInit=!1;q.isInlinePreviewDisabled=_.T("web_disable_inline_preview");q.disableStickyFilterBar=!1;q.transparentBackgroundChipsBar=!1;q.hideChipsBar=!1;q.isWatchDefaultLayout=!0;q.continuationShowButton=!1;q.rowReducedHorizontalMargin=!1;q.useCompactList=!1;q.manualDownloadsPresent=!1;q.smartDownloadsPresent=!1;q.shouldRenderDownloadsBanner=!1;q.hasOptedIntoSmartDownloads=!1;q.elementsPerRow=4;q.typographyBump=!1;q.showGnomeContents=
!1;q.showExploreHubContents=!1;q.slimItemsPerRow=1;q.pageLoadingFromNavigation=!1;q.loggingRefactor=_.T("kevlar_rich_grid_logging_fix");q.resizeObserver=null;q.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"};q.rendererToTagNameMap=
new Map(Object.entries(q.contentMapping()).map(function(w){var u=_.P(w);w=u.next().value;u=u.next().value;return[w,u.component]}));
q.insertedContent=new Map;return q};
_.O(rU,_.Y);_.k=rU.prototype;_.k.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var q=_.P(_.A(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),w=q.next();!w.done;w=q.next())w.value.useCompactList=this.useCompactList};
_.k.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var q=_.P(_.A(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),w=q.next();!w.done;w=q.next())w=w.value,w.sizing=this.sizing,w.typographyBump=this.typographyBump};
_.k.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.k.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]]"}}}};
_.k.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}}};
_.k.attached=function(){document.addEventListener("yt-page-type-changed",_.Fj(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.MI(this.resizeObserved,_.Fc("rich_grid_resize_delay_ms",50),this)};
_.k.detached=function(){var q;(q=this.resizeObserver)==null||q.disconnect();document.removeEventListener("yt-page-type-changed",_.Fj(this,this.onPageChange))};
_.k.insertRichSection=function(q){var w=q.richItemTargetId;q=q.richSectionRendererToInsert;w&&q&&(this.insertedContent.set(w,q),this.reflowContent())};
_.k.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.k.computeIsInlinePreviewEnabled=function(q,w,u){return _.T("web_disable_inline_preview")?!1:!u&&_.ESH({miniplayerIsActive:q,miniplayerPlaybackState:w})};
_.k.computeSizing=function(){var q=_.wP6(this.data);if(q||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return q?this.useCompactList?"COMPACT":q:this.miniMode?"COMPACT":_.T("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.k.updateItemMinAndMaxWidth=function(){var q=_.Fc("rich_grid_max_item_width",500);q>0&&_.Pj(this.hostElement,{"--ytd-rich-grid-item-max-width":q+"px"});var w;q=this.getRichItemMinWidth((w=this.hostElement)==null?void 0:w.clientWidth);q>0&&_.Pj(this.hostElement,{"--ytd-rich-grid-item-min-width":q+"px"})};
_.k.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.k.resizeObserved=function(){_.X4(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.k.navigateBackToHome=function(){_.T("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.T("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var q=_.tG().resolve(_.KT).isOnWatch(),w,u=((w=_.N_(location.pathname))==null?void 0:w.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(u)||q)&&this.gnomeContents&&_.T("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);q&&this.exploreHubContents&&_.T("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.Mt().dispatch(_.tr({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.k.onPageChange=function(){var q=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.T("disable_chip_select_on_nav")||_.X4(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.pi.addJob(function(){q.pageLoadingFromNavigation=!1;_.T("disable_chip_select_on_nav")&&_.T("h5_reset_cache_and_filter_before_update_masthead")&&q.resetCacheAndIsFilteredFeed();q.setMasthead();q.maybeSetBigYoodle();q.forceRefreshAndLog();q.terminateVideoPreview();_.T("web_hide_gnome_until_user_navigates_back_to_home")&&
(q.dataChanged(),_.KJ(q,function(){if(q.showGnomeContents){var w=Array.from(_.A(q.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(y){y=_.A(y).querySelector("ytd-rich-shelf-renderer");return!!y&&y.isGnomeShelf()});
if(w){w=w.offsetTop-q.contentsElement.offsetTop;var u=_.tG().resolve(_.KT).getCurrentPage();u&&u.getPageScrollingElement().scrollTo({top:w,behavior:"smooth"})}}}));
_.T("web_hide_explore_hub_until_user_navigates_back_to_home")&&(q.dataChanged(),_.KJ(q,function(){if(q.showExploreHubContents&&!_.T("web_explore_hub_no_scroll")){var w=Array.from(_.A(q.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(y){return!!y.querySelector("ytd-talk-to-recs-flow-renderer")});
if(w){w=w.offsetTop-q.contentsElement.offsetTop;var u=_.tG().resolve(_.KT).getCurrentPage();u&&u.getPageScrollingElement().scrollTo({top:w,behavior:"smooth"})}}}))},8)):((_.T("web_hide_gnome_until_user_navigates_back_to_home")||_.T("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.k.dataChanged=function(){var q=this,w=_.Fc("web_rich_grid_row_margin",0);w>0&&_.Pj(this.hostElement,{"--ytd-rich-grid-row-margin":w+"px"});_.X4(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.KJ(this,function(){q.updateRichItemGridPositions();q.contentsElement&&_.Pj(q.hostElement,{"--ytd-rich-grid-content-offset-top":q.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.k.initResizeObserver=function(){var q=this;if(window.ResizeObserver){var w;(w=this.resizeObserver)==null||w.disconnect();var u=!1;this.resizeObserver=new ResizeObserver(function(){if(u){var y;(y=q.resizeObserver)==null||y.disconnect();var e;(e=q.throttledOnResize)==null||e.fire();requestAnimationFrame(function(){var X;(X=q.throttledOnResize)==null||X.fire();q.initResizeObserver()})}else if(u=!0,q.resizeOnObserverInit){var t;
(t=q.throttledOnResize)==null||t.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.k.contentLengthChanged=function(){if(_.T("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.X4(this.hostElement,"ytd-rich-item-index-update-action")};
_.k.updateElementsPerRow=function(){_.X4(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.tr({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.tr({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.k.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.k.onRichShelfRendererCollapse=function(q){if(this.shownItems){var w=q.detail;q=this.shownItems.findIndex(function(y){var e,t;return((t=_.C(y==null?void 0:(e=y.richSectionRenderer)==null?void 0:e.content,_.hDZ))==null?void 0:t.trackingParams)===w});
var u=q+1;q<0||u>=this.contentsElement.children.length||!this.shownItems[u].richItemRenderer||this.contentsElement.children[u].scrollIntoView({behavior:"smooth",block:"start"})}};
_.k.onSoftReloadPage=function(){this.scrollUpToTop()};
_.k.handleRerenderDownloadsData=function(){_.T("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.k.handlePlaylistRemoveVideosAction=function(q){var w;if(((w=_.C(q,_.nfP))==null?0:w.setVideoIds)&&this.data&&this.data.contents){q=_.C(q,_.nfP).setVideoIds;for(w=this.data.contents.length-1;w>=0;){var u=_.C(this.data.contents[w],_.V0);(u=u&&_.C(u.content,_.zo))&&u.setVideoId&&q.includes(u.setVideoId)&&this.splice("data.contents",w,1);w--}this.updateIndices()}};
_.k.updateIndices=function(){if(this.data&&this.data.contents)for(var q=0;q<this.data.contents.length;q++)this.set("data.contents."+q+".richItemRenderer.index",_.jN(String(q+1)))};
_.k.hasTopRowInlinePlayableVideoWithEndorsement=function(q){var w;return!((w=q.slice(0,this.getItemsPerRow()))==null||!w.some(function(u){var y;u=_.C(u==null?void 0:(y=u.richItemRenderer)==null?void 0:y.content,_.ZE);var e;return(u==null?void 0:u.inlinePlaybackEndpoint)&&(u==null?void 0:(e=u.thumbnailOverlays)==null?void 0:e.some(function(t){return t.thumbnailOverlayEndorsementRenderer}))}))};
_.k.refreshGridLayoutNew=function(q,w,u,y){var e=y.postsPerRow;var t=y.slimItemsPerRow;var X=y.gameCardsPerRow;y=y.miniGameCardsPerRow;var G;if((G=this.data)==null||!G.contents||!this.containerWidth)return!1;var n;if((n=this.data.responsiveContainerConfiguration)==null?0:n.responsiveSize){var N=_.SxM(this.data.responsiveContainerConfiguration,this.containerWidth),Q;G=_.hg(Object.assign({},N,{standardUnitMinWidth:(Q=this.data)==null?void 0:Q.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&N.isCompactList)}else G=_.hg({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(N=this.data)==null?void 0:N.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=G.typographyBump;Q=!1;if(q||this.elementsPerRow!==G.numItems||this.postsPerRow!==e||this.slimItemsPerRow!==t||this.gameCardsPerRow!==
X||this.miniGameCardsPerRow!==y||this.gutter!==G.gutter)Q=this.elementsPerRow!==G.numItems,this.elementsPerRow=G.numItems,this.postsPerRow=e,this.slimItemsPerRow=t,this.gameCardsPerRow=X,this.miniGameCardsPerRow=y,this.gutter=G.gutter,this.itemWidth=G.itemWidth,this.reflowContent(w),_.Pj(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":G.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(u);this.ytdReduxBehavior.dispatch(_.tr({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:G.maxContainerWidth}));return Q};
_.k.refreshGridLayout=function(q,w){var u,y=(u=this.hostElement)==null?void 0:u.clientWidth;this.containerWidth=this.adjustRichGridWidth(y,!0);var e;if((e=this.data)==null||!e.contents||!this.containerWidth)return q&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.T("rg_pending_reflow_ks")&&(q=!0,this.pendingForceReflow=!1);u=this.getRichItemMinWidth(y);var t=this.isShortsPanel?146:194,X=this.getMiniGameCardMinWidth(),G=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
y=u=this.calcElementsPerRow(u,G);(e=u<=3&&this.miniModeAllowed())&&(u=this.calcElementsPerRow(240,4));var n=this.calcMaxSlimElementsPerRow(u,G,this.isDefaultGrid);G=this.calcElementsPerRow(t,n);var N=this.calcElementsPerRow(this.isCompactGrid?t:154,n);t=this.calcElementsPerRow(this.isCompactGrid?t:X,n);X=!1;if(this.sizing)return this.refreshGridLayoutNew(q,w,e,{postsPerRow:y,slimItemsPerRow:G,gameCardsPerRow:N,miniGameCardsPerRow:t});if(q||this.elementsPerRow!==u||this.postsPerRow!==y||this.slimItemsPerRow!==
G||this.gameCardsPerRow!==N||this.miniGameCardsPerRow!==t)X=this.elementsPerRow!==u,this.elementsPerRow=u,this.postsPerRow=y,this.slimItemsPerRow=G,this.gameCardsPerRow=N,this.miniGameCardsPerRow=t,this.reflowContent(w),this.updateElementsPerRow(),_.Pj(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)&&_.Pj(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(e);_.X4(this.hostElement,"yt-rich-grid-layout-refreshed");return X};
_.k.getRichItemMinWidth=function(q){var w=_.Fc("rich_grid_min_item_width",310);if(!_.T("kevlar_disable_min_width_override")){var u,y;w=(y=(u=this.data)==null?void 0:u.minItemWidth)!=null?y:w}return w+_.lYl(q)};
_.k.calcMaxSlimElementsPerRow=function(q,w,u){return(u===void 0?0:u)?q===1?2:q%2===0?_.T("web_shorts_2_by_3_reduce_items_per_row")&&q>=4?q/2*3-1:q/2*3:_.T("web_shorts_2_by_3_reduce_items_per_row")&&q>=3?q+1:q+2:w*2};
_.k.adjustRichGridWidth=function(q,w){var u=_.T("disable_rich_grid_guide_compensation");if(!this.isWatch&&!u){u=_.tG().resolve(_.kF(_.aT));var y=u==null?void 0:u.guideElement;if(!(!u||u.getData()||y!=null&&y.opened||u.getMiniGuideVisible()))if(u.canFitPersistentGuide(q)&&u.getGuideExpandsAutomatically()){var e,t,X=Number((e=window.getComputedStyle(this.hostElement))==null?void 0:(t=e.getPropertyValue("--app-drawer-width"))==null?void 0:t.replace("px",""));q-=X||0}else if(u.canFitMiniGuide(q)){var G;
e=Number((X=window.getComputedStyle(this.hostElement))==null?void 0:(G=X.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:G.replace("px",""));q-=e||0}}q>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(q-=w?32:48));return q};
_.k.calcElementsPerRow=function(q,w){var u=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),y=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((u+y)/(q+y))||1,w)};
_.k.reflowContent=function(q){var w=this;if(!this.isReflowing){this.isReflowing=!0;var u,y,e=!!((u=this.data)==null?0:(y=u.contents)==null?0:y.some(function(d){return _.C(d,_.ec)}));
u=this.getItemsPerRow();var t;y=(t=this.data)==null?void 0:t.reflowOptions;q&&(_.D_("rgr_s"),_.KJ(this,function(){_.D_("rgr_nrf")}));
q={};(t=_.A(this.hostElement).querySelector("#contents"))&&(q={contentElement:t,rendererToTagNameMap:this.rendererToTagNameMap});t=(t=this.data.contents)?t.slice():[];var X=(_.T("web_hide_gnome_behind_feed_filter_chip")||_.T("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,G=_.T("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,n=-1,N=-1;if(this.isHomePage&&G){for(G=0;G<t.length;G++){var Q=void 0,I=void 0;_.C((Q=t[G])==null?void 0:
(I=Q.richSectionRenderer)==null?void 0:I.content,p$q)&&(N=G)}N>-1&&(this.exploreHubContents=t.splice(N,1))}if(this.isHomePage&&X){for(N=0;N<t.length;N++)I=Q=void 0,(G=_.C((Q=t[N])==null?void 0:(I=Q.richSectionRenderer)==null?void 0:I.content,_.hDZ))&&X&&(I=Q=void 0,G=_.C((Q=G)==null?void 0:(I=Q.contents)==null?void 0:I[0],_.V0),Q=void 0,_.C((Q=G)==null?void 0:Q.content,_.llx)&&(n=N));n>-1&&(this.gnomeContents=t.splice(n,1))}var U=C$A(t,u,e,y,this.getRichGridStyle(),q,this.insertedContent);e=function(){w.shownItems=
U;w.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(U),_.KJ(this,e)):e()}};
_.k.getFirstRowItems=function(q){for(var w=[],u=0;u<q.length;u++){var y=void 0,e=void 0,t=void 0,X=void 0,G=void 0,n=void 0;if(((y=q[u])==null?void 0:(e=y.richItemRenderer)==null?void 0:e.rowIndex)===0||((t=q[u])==null?void 0:(X=t.richGroupRenderer)==null?void 0:X.rowIndex)===0||((G=q[u])==null?void 0:(n=G.richSectionRenderer)==null?void 0:n.rowIndex)===0)w.push(q[u]);else break}return w};
_.k.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.k.handleChipCloudChipSelectAction=function(q,w){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.T("web_hide_gnome_behind_feed_filter_chip")&&(w?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.k.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.T("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.k.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.T("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.k.terminateVideoPreview=function(){_.X4(this.hostElement,"yt-terminate-video-preview-action")};
_.k.updateRichItemGridPositions=function(){var q={gridData:{gridColumnCount:this.elementsPerRow}},w;if((w=this.data)==null?0:w.trackingParams)this.loggingRefactor?_.Qz().stateChanged(this.data.trackingParams,q):(w=_.pN())&&_.Lq(w,_.Tj(this.data.trackingParams),q);_.X4(this.hostElement,"ytd-rich-item-index-update-action")};
_.k.miniModeAllowed=function(){return _.T("disable_channels_mini_mode")?!1:this.isChannelPage};
_.k.getMiniGameCardMinWidth=function(){return 154};
_.k.updateMiniMode=function(q){this.miniMode=this.miniModeAllowed()&&q;this.ytdReduxBehavior.dispatch(_.tr({type:"SET_RICH_GRID_MINI_MODE",payload:q}))};
_.k.isCurrentPage=function(){return location.pathname===this.pagePath};
_.k.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var q=_.tG().resolve(_.KT).getCurrentPage();q&&q.setScrollTop(0)}};
_.k.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.k.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.k.maybeSetBigYoodle=function(){var q,w=(q=this.data)==null?void 0:q.bigYoodle;this.bigYoodleData!==w&&(this.bigYoodleData=w)};
_.k.setMasthead=function(){var q;((q=this.data)==null?0:q.masthead)?this.mastheadData=this.data.masthead:_.T("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.k.getRichGridStyle=function(){var q,w;return(w=(q=this.data)==null?void 0:q.style)!=null?w:"RICH_GRID_STYLE_UNKNOWN"};
_.k.onIsShortsGridChange=function(){var q=this.ytdReduxBehavior,w=q.dispatch,u=this.getRichGridStyle();w.call(q,_.tr({type:"SET_RICH_GRID_STYLE",payload:u}))};
_.x$.Object.defineProperties(rU.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var q;return(((q=this.data)==null?void 0:q.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var q;return(((q=this.data)==null?void 0:q.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var q=_.tG().resolve(_.KT).getCurrentPage(),w,u,y;return(((w=this.data)==null?void 0:w.targetId)==="browse-feedFEsfv_audio_pivot"||_.T("web_enable_channel_pivot_panel")&&((u=this.data)==null?void 0:u.targetId)==="browse-feedFEsfv_channel_pivot"||_.T("web_enable_effect_pivot_panel")&&((y=this.data)==null?void 0:y.targetId)==="browse-feedFEsfv_effect_pivot")&&(q==null?void 0:q.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.T("kevlar_watch_grid_reduced_top_margin_rich_grid")}},
noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}},
topRowEndorsement:{configurable:!0,enumerable:!0,get:function(){return this.isInlinePreviewEnabled&&this.hasTopRowInlinePlayableVideoWithEndorsement(this.shownItems)}},
hideHeader:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null?0:q.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var q;return((q=_.tG().resolve(_.KT).getCurrentPage())==null?void 0:q.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var q;return((q=_.tG().resolve(_.KT).getCurrentPage())==null?void 0:q.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 q;return this.hideChipsBar||(((q=this.data)==null?void 0:q.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.T("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var q;return(((q=this.data)==null?void 0:q.targetId)||"")==="watch-next-feed"&&!_.T("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return((q=this.data)==null?0:q.enableContentSpecificAspectRatio)||((w=this.data)==null?0:(u=w.responsiveContainerConfiguration)==null?0:u.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.Fc("web_continuation_handler_margin",0):0}}});
rU.prototype.onIsShortsGridChange=rU.prototype.onIsShortsGridChange;rU.prototype.onReloadContinuationFinish=rU.prototype.onReloadContinuationFinish;rU.prototype.reflowContent=rU.prototype.reflowContent;rU.prototype.handleRerenderDownloadsData=rU.prototype.handleRerenderDownloadsData;rU.prototype.onRichShelfRendererCollapse=rU.prototype.onRichShelfRendererCollapse;rU.prototype.onRequestElementsPerRow=rU.prototype.onRequestElementsPerRow;rU.prototype.contentLengthChanged=rU.prototype.contentLengthChanged;
rU.prototype.dataChanged=rU.prototype.dataChanged;rU.prototype.onSizingChange=rU.prototype.onSizingChange;rU.prototype.onUseCompactListChange=rU.prototype.onUseCompactListChange;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],rU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],rU.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.mF),_.h("design:type",Object)],rU.prototype,"ironResizableBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],rU.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.JR),_.h("design:type",Object)],rU.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],rU.prototype,"componentBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],rU.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],rU.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0,selector:_.za}),_.h("design:type",Boolean)],rU.prototype,"miniMode",void 0);_.c([_.v({value:[]}),_.h("design:type",Array)],rU.prototype,"shownItems",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],rU.prototype,"isReflowing",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],rU.prototype,"isFilteredFeed",void 0);_.c([_.v({selector:_.FZ6}),_.h("design:type",Boolean)],rU.prototype,"guideIsExpanded",void 0);
_.c([_.v({selectorArgs:["entitySelectorType"],selector:function(q,w){if(_.T("kevlar_modern_downloads_page")&&w&&w!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(w){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var u=q.entities;w=_.fa(u);var y=_.mO(u),e=_.fEu(q),t=_.VLf(q);q=_.mYs(q);var X=_.wiJ(u),G=_.Ca(w);u=_.Jr(u);return _.vlj(w,y,X,e,t,G,u,q);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return w=_.fa(q.entities),_.Yxj(w);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return w=
_.KFj(q.entities),_.gll(w);default:_.Y8(new _.fv("Error: entitySelectorType defined but not matched in selector.",q,w))}}}),
_.h("design:type",Object)],rU.prototype,"entityDrivenRichGridData",void 0);_.c([_.v(),_.h("design:type",Object)],rU.prototype,"resizeOnObserverInit",void 0);_.c([_.v(),_.h("design:type",Object)],rU.prototype,"bigYoodleData",void 0);_.c([_.v(),_.h("design:type",Object)],rU.prototype,"mastheadData",void 0);_.c([_.v(),_.h("design:type",Boolean)],rU.prototype,"isInlinePreviewDisabled",void 0);_.c([_.v(),_.h("design:type",Object)],rU.prototype,"disableStickyFilterBar",void 0);
_.c([_.v(),_.h("design:type",Object)],rU.prototype,"transparentBackgroundChipsBar",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],rU.prototype,"hideChipsBar",void 0);_.c([_.v(),_.h("design:type",Object)],rU.prototype,"isWatchDefaultLayout",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],rU.prototype,"continuationShowButton",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],rU.prototype,"rowReducedHorizontalMargin",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],rU.prototype,"useCompactList",void 0);_.c([_.v({selector:function(q){return _.mO(q.entities).length>0}}),
_.h("design:type",Object)],rU.prototype,"manualDownloadsPresent",void 0);_.c([_.v({selector:function(q){return _.fa(q.entities).length>0}}),
_.h("design:type",Object)],rU.prototype,"smartDownloadsPresent",void 0);_.c([_.v({selector:_.VLf}),_.h("design:type",Object)],rU.prototype,"shouldRenderDownloadsBanner",void 0);_.c([_.v({selector:_.fEu}),_.h("design:type",Object)],rU.prototype,"hasOptedIntoSmartDownloads",void 0);_.c([_.nL("useCompactList"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rU.prototype,"onUseCompactListChange",null);
_.c([_.nL("sizing","typographyBump"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rU.prototype,"onSizingChange",null);_.c([_.v({selector:_.sBc}),_.h("design:type",Number)],rU.prototype,"miniplayerPlaybackState",void 0);_.c([_.v({selector:_.DV}),_.h("design:type",Boolean)],rU.prototype,"miniplayerIsActive",void 0);
_.c([_.v({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.h("design:type",Boolean)],rU.prototype,"isInlinePreviewEnabled",void 0);_.c([_.v({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.h("design:type",String)],rU.prototype,"sizing",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],rU.prototype,"elementsPerRow",void 0);
_.c([_.v(),_.h("design:type",Object)],rU.prototype,"typographyBump",void 0);_.c([_.v(),_.h("design:type",Number)],rU.prototype,"itemWidth",void 0);_.c([_.Wj("#header"),_.h("design:type",HTMLElement)],rU.prototype,"headerElement",void 0);_.c([_.Wj("#contents"),_.h("design:type",HTMLElement)],rU.prototype,"contentsElement",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rU.prototype,"dataChanged",null);
_.c([_.I9("data.contents.length"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rU.prototype,"contentLengthChanged",null);_.c([_.Gm("yt-request-elements-per-row"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rU.prototype,"onRequestElementsPerRow",null);
_.c([_.Gm("yt-rich-shelf-renderer-collapse"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],rU.prototype,"onRichShelfRendererCollapse",null);_.c([_.I9("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rU.prototype,"handleRerenderDownloadsData",null);
_.c([_.Z("data"),_.h("design:type",String),_.h("design:paramtypes",[])],rU.prototype,"entitySelectorType",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data.targetId"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rU.prototype,"isSub",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data.targetId"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rU.prototype,"isWatch",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("data.targetId"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rU.prototype,"isShortsPanel",null);_.c([_.v({reflectToAttribute:!0}),_.Z("isWatch"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rU.prototype,"reducedTopMargin",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data","isWatch","isWatchDefaultLayout"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rU.prototype,"noTopMargin",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("isInlinePreviewEnabled","shownItems"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rU.prototype,"topRowEndorsement",null);_.c([_.Z("data.header"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rU.prototype,"hideHeader",null);_.c([_.Gm("yt-rich-grid-reflow"),_.h("design:type",Function),_.h("design:paramtypes",[Boolean]),_.h("design:returntype")],rU.prototype,"reflowContent",null);
_.c([_.Gm("yt-reload-continuation-finish"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rU.prototype,"onReloadContinuationFinish",null);_.c([_.Z("data"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rU.prototype,"isSlimGrid",null);_.c([_.Z("data"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rU.prototype,"isShortsGrid",null);
_.c([_.Z("data","isSlimGrid","isShortsGrid"),_.v(),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rU.prototype,"noRichItemGutterMargins",null);_.c([_.Z("data"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rU.prototype,"isShortsGridSlim",null);_.c([_.Z("data"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rU.prototype,"isCompactGrid",null);
_.c([_.Z("data"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rU.prototype,"isDefaultGrid",null);_.c([_.Z("data.targetId"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rU.prototype,"hideChipsBarOnHome",null);_.c([_.Z("data.targetId"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rU.prototype,"hideChipsBarOnWatch",null);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rU.prototype,"onIsShortsGridChange",null);_.c([_.Z("data.enableContentSpecificAspectRatio"),_.v(),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rU.prototype,"force16By9ThumbnailAspectRatio",null);_.c([_.Z("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],rU.prototype,"continuationTriggerOffset",null);rU=_.c([_.E({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],rU);
_.R(rU,"ytd-rich-grid-renderer",function(){if(MYB!==void 0)return MYB;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return MYB=q},{mode:2});var FVq=_.LL(function(q){var w=q.thumbsUp;q=q.thumbsDown;var u=_.P(_.r4(!1,void 0,"OxPsH")),y=u.next().value,e=u.next().value;u=_.P(_.r4(!1,void 0,"V5vWne"));var t=u.next().value,X=u.next().value;return _.W("div",{class:"ytwThumbsUpDownThumbs"},_.W(_.fr,{data:w,onToggle:function(G){e(G);t()&&X(!1)},
buttonShapeOverrides:function(){return{toggled:y()}}}),_.W(_.fr,{data:q,
onToggle:function(G){X(G);y()&&e(!1)},
buttonShapeOverrides:function(){return{toggled:t()}}}))},"pi");
FVq.idomCompat=!0;var n5H=_.LL(function(q){var w=function(){return q.data().pendingStateEntityKey||""},u=_.Qo(_.Jd4,w),y=function(){var e;
if(!(e=q.disabled())){var t;e=!((t=u())==null||!t.isPendingResponse)}return e};
return _.W("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.W(_.mL,{each:function(){return q.data().chipData||[]},
keyBy:"REFERENCE"},function(e){return _.W(G$H,{data:e,disabled:y,pendingStateKey:w,onError:q.onError})}))},"qi"),G$H=_.LL(function(q){var w=_.Bm(),u=_.P(_.r4(!0,void 0,"HBREAe")),y=u.next().value,e=u.next().value,t=function(){return q.data().text.content},X=_.QS(function(G){var n,N,Q,I,U,d,V,J;
return _.F(function(a){switch(a.nextAddress){case 1:G.stopPropagation();if(q.disabled())return a.return();N=String(Math.floor(((n=_.Gn())==null?void 0:n.getCurrentTime())||0)*1E3);Q="youchat-"+Date.now();I=function(){_.px(q.data().onClick||{});var b={continuationCommand:{token:q.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},g={inputComposerFormData:{clientMessageId:Q,playerOffsetMs:N}};return new Promise(function(l,S){_.px(b,{form:{formData:g},commandController:{onSuccess:function(eH,
x){l(x)},
onServerError:function(eH,x){S(x.error)}}})})};
U=_.z86(q.pendingStateKey());U(!0);_.Iwj("#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");e(!1);_.tD(a,2);return _.H(a,I(),4);case 4:_.jv(a,3);break;case 2:d=_.nm(a),(J=(V=q).onError)==null||J.call(V,d);case 3:U(!1),_.HI(a)}})});
return _.W(_.r,{cond:y,then:function(){return _.W("div",{class:"ytwYouChatChipsDataChipWrapper"},_.W("button",{el:w,class:"ytwYouChatChipsDataChip","data-disabled":q.disabled,"on:click":X,tabindex:0},t))}})},"ri");var HlK=_.LL(function(q){var w=q.data;return _.W("yt-conversation-resource-view-model",{class:_.HR("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.W(_.r,{cond:function(){var u;return(u=w().conversationResourceData)==null?void 0:u.learningGuideData},
then:function(u){return _.W(_.mL,{each:function(){return u().sectionData||[]}},function(y){return _.W("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.W(_.Lr,{text:function(){return y.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.W("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.W(_.Lr,{text:function(){return y.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.W(_.Lr,{text:function(){return y.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))},"si");
HlK.idomCompat=!0;var WVc=_.LL(function(q){var w=function(){var b;return(b=q.data().text)==null?void 0:b.content},u=function(){var b,g;
return(b=q.data().webData)==null?void 0:(g=b.textResult)==null?void 0:g.content},y=_.tG().resolve(_.SD),e=_.nr(),t=function(){return q.data().chatResponseStyle},X=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:q.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},G=function(){var b;
return q.data().webData||((b=q.data().text)==null?void 0:b.content)||q.data().videoResultsData||q.data().conversationResourceViewModel},n=function(){var b;
return(b=q.data().videoResultsData)==null?void 0:b.videoShelf},N=function(){var b;
return _.C(((b=q.data().videoResultsData)==null?void 0:b.videoShelf)||{},b3B)},Q=function(){var b;
return(b=q.data().webData)==null?void 0:b.sourcesShelf},I=function(){var b;
return _.C(((b=q.data().webData)==null?void 0:b.sourcesShelf)||{},b3B)},U=function(){return _.C(q.data().conversationResourceViewModel||{},gWh)},d=function(){return t()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||t()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:q.data().thumbsDownViewModel&&q.data().thumbsUpViewModel},V=function(){return _.C(q.data().thumbsUpViewModel,_.Vo)},J=function(){return _.C(q.data().thumbsDownViewModel,_.Vo)};
_.DR(function(){requestAnimationFrame(function(){var b;(b=q.shouldAnimateIcon)!=null&&b.call(q)&&awT(e.lottieEl)})});
var a={};return _.W("you-chat-item-view-model",{class:_.HR("ytwYouChatItemViewModelYouChatItemViewModel",(a.ytwYouChatItemViewModelHostNoPadding=function(){return!1},a)),
"data-target-id":function(){return q.data().id||""}},_.W(_.r,{cond:G,
then:function(){var b={};return _.W("div",{"aria-hidden":"true"},_.W(_.WR,{className:_.HR("ytwYouChatItemViewModelIcon",(b.ytwYouChatItemViewModelRtl=y==="rtl",b.ytwYouChatItemViewModelHidden=function(){return!(q.data().hideIcon||t()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||t()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:G())},b)),
animationName:"YOUCHAT_ICON",data:X,animationRef:e}))}}),_.W(_.r,{cond:G,
then:function(){var b={};return _.W("div",{class:_.HR("ytwYouChatItemViewModelHost",(b.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return t()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},b.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return t()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},b.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return t()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},b)),
role:"alert"},_.W(_.r,{cond:w,then:function(g){return _.W(_.O$,{text:g})}}),_.W(_.r,{cond:u,
then:function(g){return _.W(_.O$,{text:g})}}),_.W(_.r,{cond:n,
then:function(){return _.W("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.W(_.C6,{data:N,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.W(_.r,{cond:Q,
then:function(){return _.W("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.W(_.C6,{data:I,hasPeek:!0,disableArrows:!1}))}}),_.W(_.r,{cond:U,
then:function(){return _.W(HlK,{data:U})}}),_.W(_.r,{cond:d,
then:function(){return _.W(FVq,{thumbsUp:V,thumbsDown:J})}}))}}),_.W(_.r,{cond:function(){return q.data().chipsData},
then:function(b){return _.W(n5H,{data:b,disabled:q.pending,onError:q.onError})}}))},"ti");
WVc.idomCompat={callbacks:{onError:!0,onSend:!0}};var snK=_.LL(function(q){var w=function(){return q.data().choiceSelectedText};
return _.W("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.W(_.r,{cond:w,then:function(){return _.W("div",{class:"ytYouChatUserTurnChoiceSelected"},_.W(_.Lr,{text:w}))}}),_.W("div",{class:"ytYouChatUserTurnUserMessage"},function(){return q.data().text}))},"ui");var Ne6=_.LL(function(q){var w=_.P((0,_.mpF)(q.data)).next().value;return _.W("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return q.data().targetId||""}},_.W(_.OF,{data:function(){return q.data().header}},{chipBarViewModel:_.IgZ}),_.W(_.OF,{data:function(){return w().contents}},{accordionViewModel:_.Kf3,
alertBannerViewModel:_.Owx,chatLoadingViewModel:_.mZ4,chatUserTurnViewModel:snK,learningJourneyLoaderViewModel:_.jcc,lockupViewModel:_.Mw,youChatItemViewModel:function(u){return _.W(WVc,{data:u.data,pending:!1})}}))},"vi");_.q9(_.LL(function(q){var w=_.P((0,_.mpF)(q.data)).next().value;return _.W("yt-section-list-renderer",{class:_.HR("ytSectionListRendererHost",q.className),"data-target-id":function(){return q.data().targetId||""}},_.W(_.OF,{data:function(){return w().contents}},{itemSectionRenderer:Ne6}))},"wi"),"yt-section-list-renderer",{props:{data:_.pK,
className:_.xB}});var Qnm;var IyA;var Un=function(){return _.Y.apply(this,arguments)||this};
_.O(Un,_.Y);_.c([_.v(),_.h("design:type",Object)],Un.prototype,"data",void 0);Un=_.c([_.JM({is:"yt-alert-renderer",disableElementRegistration:!0})],Un);
_.R(Un,"yt-alert-renderer",function(){if(IyA===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;Qnm===void 0&&(Qnm=document.createElement("template"));var y=Qnm;u.call(w,y.content.cloneNode(!0),q.content.firstChild);IyA=q}q=IyA;return q},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.BVq=function(q,w){var u,y;w=w===void 0?{}:w;var e,t,X,G,n,N,Q,I,U,d,V,J;return _.F(function(a){switch(a.nextAddress){case 1:e=w;t=e.shouldWrap===void 0?!0:e.shouldWrap;X=e.skipTransitionTimeoutMs===void 0?300:e.skipTransitionTimeoutMs;G=e.beforeTransition;n=e.afterTransition;if(!t||!document.startViewTransition||document.visibilityState==="hidden")return a.return(q());u=window.innerWidth;y=window.innerHeight;N=!1;(Q=G)==null||Q();_.tD(a,2);I=document.startViewTransition(q);U=setTimeout(function(){I.skipTransition();
N=!0},X);
return _.H(a,I.ready,4);case 4:return clearTimeout(U),_.H(a,I.finished,5);case 5:clearTimeout(U);(d=n)==null||d();_.jv(a,0);break;case 2:V=_.nm(a),(J=n)==null||J(),V&&!N&&document.visibilityState!=="hidden"&&u===window.innerWidth&&y===window.innerHeight&&_.vm(V),_.HI(a)}})};
_.on=function(q){return q!=null&&q.watch?q.watch.isTheaterMode:!1};
_.V8=function(){for(var q=Array(36),w=0,u,y=0;y<36;y++)y==8||y==13||y==18||y==23?q[y]="-":y==14?q[y]="4":(w<=2&&(w=33554432+Math.random()*16777216|0),u=w&15,w>>=4,q[y]=_.F6a[y==19?u&3|8:u]);return q.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 xzc=_.Sc(['<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>']),
qYT=_.KMX(xzc);qYT.setAttribute("style","display: none;");document.head.appendChild(qYT.content);_.fl=_.rPl(function(q){var w=_.rg("DIV");q&&(w.className=q);w.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";q=_.rg("DIV");_.XkG(q,"200px","200px");w.appendChild(q);document.body.appendChild(w);q=w.offsetWidth-w.clientWidth;_.UN(w);return q});var wsx;var uEA;var mV=function(){var q=_.Y.apply(this,arguments)||this;q.icon=null;return q};
_.O(mV,_.Y);mV.prototype.dismiss=function(){_.t7(this.hostElement,"yt-live-chat-error-message-dismiss")};
mV.prototype.computeIcon=function(q){return q&&q.iconType?"yt-icons:"+q.iconType.toLowerCase():"yt-icons:close"};
_.c([_.v(),_.h("design:type",Object)],mV.prototype,"data",void 0);_.c([_.v({computed:"computeIcon(data.icon)"}),_.h("design:type",Object)],mV.prototype,"icon",void 0);mV=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],mV);
_.R(mV,"yt-live-chat-error-message-renderer",function(){if(uEA===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;wsx===void 0&&(wsx=document.createElement("template"));var y=wsx;u.call(w,y.content.cloneNode(!0),q.content.firstChild);uEA=q}q=uEA;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var Ijx,i5m,rTH,UWm,VOc,fjm,mWH,ATV,JTj,Vd,zR6,ajB,fb,DW4,Z5K,pNh,$Wa,vlc,b5h,Yxc,glm,Elx,RRc,cT6,Sx6,hRH,jFB,ljm,Lz6,MO6,KzK,B86,m1,xW6,qBx,wpa,edT,k86,txH,PNq,Xpm,FdV,u_h,ySm,n4h,HEH,Wdx,sbc,Nlm,G8m,Id6;Ijx=function(q,w){return _.HQ(q.entities,"timedMarkersListSyncEntity",w)};
i5m=function(q,w){return _.HQ(q.entities,"liveReactionsDataEntity",w)};
rTH=function(q,w){q=_.HQ(q.entities,"booleanEntity",w);return!(!q||!q.value)};
UWm=function(q,w){var u=_.pN();u&&q&&_.EC(u,_.Tj(q),w)};
_.T8m=function(){_.T("web_watch_log_theater_mode")&&_.v5M("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.Cgh=function(q,w,u){if(!q.includes("START_TIME_PLACEHOLDER")||!q.includes("END_TIME_PLACEHOLDER"))return q;var y=new Date(0),e=new Date(0);y.setUTCMilliseconds(w);e.setUTCMilliseconds(u);return q.replace("START_TIME_PLACEHOLDER",_.RO(y,7)).replace("END_TIME_PLACEHOLDER",_.RO(e,7))};
_.dWB=function(q){return q.watch.isWatchActive};
_.OT=function(q){return q!=null&&q.watch?q.watch.isWatchFullscreen:!1};
_.O5h=function(q){return _.on(q)||_.OT(q)||_.E5H(q)};
_.olA=function(q){return!_.O5h(q)};
_.os=function(q){return q.watch.watchScrollTop};
VOc=function(q){return q.watch.isLiveChatCollapsed};
fjm=function(q){return q.watch.openEngagementPanels};
mWH=function(q,w){return _.HQ(q.entities,"booleanEntity",w)};
ATV=function(){return function(q){_.hM(_.IH("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:q}))}};
JTj=function(q){switch(q){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}};
Vd=function(q,w,u){var y=_.Zh(u);q&&w&&y&&q.getPlayerPromise().then(function(e){_.W7H(y)&&_.$8();(new _.HF(e)).executeCommand(y,w);_.T("continue_playback_on_desktop_companion_click")||e.pauseVideo()})};
zR6=function(q){var w=_.xo(),u;if(u=_.hP("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var y;u=(y=u())==null?void 0:y.layoutId}else u=null;Vd(w,u,q)};
ajB=function(q){var w=_.xo(),u;if(u=_.hP("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var y;u=(y=u())==null?void 0:y.layoutId}else u=null;Vd(w,u,q)};
fb=function(q,w){var u=q<0?"-":"";q=Math.abs(q);var y=Math.floor(q/3600),e=Math.floor(q)%3600,t=Math.floor(e/60);e=Math.floor(e)%60;var X="";(w===void 0?0:w)&&(X="."+Math.round((q-Math.floor(q))*10));return y>0?u+y+":"+(t<10?"0"+t:""+t)+":"+(e<10?"0"+e:""+e)+X:u+t+":"+(e<10?"0"+e:""+e)+X};
DW4=function(q){var w=q.match(/[^0-9:\.]/g);if(w&&w.length>0)return null;q=q.split(":");if(q.length===0||q.length>3)return null;w=1;for(var u=0;q.length>0;){var y=q.pop();if(y===void 0)break;var e=Number(y);if(y===""||isNaN(e))return null;u+=e*w;w*=60}return u};
Z5K=function(q,w,u,y){q=Math.max(u,q);w=Math.min(w,y-u);q+w>y?(u=y,q=u-w):u=q+w;return{start:q,end:u}};
pNh=function(q,w,u,y,e,t){q<u?q=u:q+e>y&&(q=y-e);w>y&&(w=y);w=Math.min(q+t,Math.max(q+e,w));return{start:q,end:w}};
$Wa=function(q,w,u,y,e,t){w>y?w=y:w-e<u&&(w=u+e);q<u&&(q=u);q=Math.min(w-e,Math.max(w-t,q));return{start:q,end:w}};
vlc=function(q){return _.T("web_transcript_cue_id_killswitch")?String(q):"ytd-transcript-renderer_"+q};
b5h=function(q){return _.T("web_transcript_cue_id_killswitch")?!0:q.startsWith("ytd-transcript-renderer")};
Yxc=function(q){var w=_.xo(),u;if(u=_.hP("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var y;u=(y=u())==null?void 0:y.layoutId}else u=null;Vd(w,u,q)};
glm=function(q){q.style.height="auto";q.style.height=Math.min(q.scrollHeight||20,80)+"px"};
Elx=function(q,w){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:w}}],insertByPositionInSection:{sectionTargetId:q,position:"INSERTION_POSITION_LAST"}}}]}}}};
RRc=function(q){var w=_.xo(),u;u=(u=_.hP("yt.www.ads.eventcache.getLastCompanionData"))?(u=u())&&u.layoutId:null;Vd(w,u,q)};
cT6=function(q){var w=_.xo(),u;u=(u=_.hP("yt.www.ads.eventcache.getLastCompanionData"))?(u=u())&&u.layoutId:null;Vd(w,u,q)};
Sx6=function(q,w){w=w===void 0?!1:w;if(q.simpleText)q=[{text:q.simpleText}];else{var u;q=((u=q.runs)!=null?u:[]).map(function(y){return Object.assign({},y)})}if(w)for(w=_.P(q),u=w.next();!u.done;u=w.next())u.value.bold=!0;
return q};
hRH=function(q){var w=q.startEndTimeTemplate,u=q.startTimeUtcMillis;q=q.endTimeUtcMillis;if(w&&u&&q)return _.jN(_.Cgh(_.lA(w),Number(u),Number(q)))};
jFB=function(q,w){var u,y,e=q==null?void 0:(u=q.viewCount)==null?void 0:(y=u.videoViewCountRenderer)==null?void 0:y.shortViewCount;if(!w&&e)return e;var t,X;return q==null?void 0:(t=q.viewCount)==null?void 0:(X=t.videoViewCountRenderer)==null?void 0:X.viewCount};
ljm=function(q,w){var u=q==null?void 0:q.relativeDateText;return!w&&u?[u,!0]:[q==null?void 0:q.dateText,!1]};
Lz6=function(q,w,u,y,e){y=y===void 0?!0:y;e=e===void 0?"":e;var t=jFB(q,w),X=_.P(ljm(q,w)),G=X.next().value;X=X.next().value;w=w?q==null?void 0:q.sponsorsOnlyFirstTimeLongText:q==null?void 0:q.sponsorsOnlyFirstTimeShortText;var n=[];u&&t&&n.push(t);!u&&X||!G||n.push(G);q=[].concat(_.Cm(n),[w,q==null?void 0:q.stationName,q==null?void 0:q.rating,q?hRH(q):void 0,q==null?void 0:q.upNextProgramText,q==null?void 0:q.superTitleLink]).filter(function(N){return!!N});
u={runs:[]};for(t=0;t<q.length;t++)u.runs.push.apply(u.runs,_.Cm(Sx6(q[t],y))),t<q.length-1&&u.runs.push({text:" "+e+" ",bold:y});return u};
MO6=function(q){if(q)return{runs:[{text:q,bold:!0}]}};
KzK=function(q){var w,u,y,e;if(q=q==null?void 0:(w=q.contents)==null?void 0:(u=w.twoColumnWatchNextResults)==null?void 0:(y=u.results)==null?void 0:(e=y.results)==null?void 0:e.contents){var t,X;return(X=(t=q.find(function(G){return!!G.videoPrimaryInfoRenderer}))==null?void 0:t.videoPrimaryInfoRenderer)==null?void 0:X.updatedMetadataEndpoint}};
B86=function(q,w){var u;return(u=q.sourceConfigs)==null?void 0:u.find(function(y){return y.videoId===w})};
m1=function(q){return q==="End of video"||q==="End of playlist"};
xW6=function(q){var w,u,y,e;return(w=q.getWatchNextResponse())==null?void 0:(u=w.contents)==null?void 0:(y=u.twoColumnWatchNextResults)==null?void 0:(e=y.playlist)==null?void 0:e.playlist};
qBx=function(q){var w,u,y,e,t,X;return(w=xW6(q))==null?void 0:(u=w.playlistButtons)==null?void 0:(y=u.menuRenderer)==null?void 0:(e=y.topLevelButtons)==null?void 0:(t=e[0])==null?void 0:(X=t.playlistLoopButtonRenderer)==null?void 0:X.playlistLoopStateEntityKey};
wpa=function(q){var w=_.tG().resolve(_.z5),u;return(w=(u=_.C(w.getAutoplayEndpoint(),_.LN))==null?void 0:u.playlistId)&&w===q};
edT=function(q,w,u,y,e){function t(){_.pi.cancelJob(A$);var X=u_h(w,u/q.getPlaybackRate()),G=X.hours,n=X.minutes;X=(X.seconds*1E3||6E4)/q.getPlaybackRate();q.setVideoTimeLeft(ySm(G,n));y&&q.getPlayerState()!==0&&q.setSleepTimerTimeLeft(ySm(G,n,!0));(G>0||n>0)&&!e&&(A$=_.iq(_.pi,t,X))}
_.pi.cancelJob(A$);A$=_.iq(_.pi,t)};
k86=function(q,w,u){function y(){_.pi.cancelJob(J$);var e=u_h(w,u),t=e.hours;e=e.minutes;var X=6E4/q.getPlaybackRate();if(t>0||e>0)q.setSleepTimerTimeLeft(ySm(t,e,!0)),J$=_.iq(_.pi,y,X)}
_.pi.cancelJob(J$);J$=_.iq(_.pi,y)};
txH=function(q,w){var u=q.getVolume()/(w/500),y=function(e){_.pi.cancelJob(zu);var t=Math.floor(e-u);q.setVolume(t,!1);t>0&&(zu=_.iq(_.pi,function(){y(t)},500))};
_.pi.cancelJob(zu);zu=_.iq(_.pi,function(){y(q.getVolume())})};
PNq=function(q,w){_.pi.cancelJob(zu);w&&q.syncVolume()};
Xpm=function(){var q={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.ID("SLEEP_TIMER_DISRUPTED")}}}}};_.tG().resolve(_.PG).resolveCommand(q)};
FdV=function(q){return(q.getDuration()-q.getProgressState().current)*1E3};
u_h=function(q,w){q=q+w-(0,_.eW)();if(q<=0)return{hours:0,minutes:0,seconds:0};var u=new G8m(0,0,0,0,0,0,q);q=u.getHours();w=u.getMinutes();u=u.getSeconds();u!==0&&w++;w!==0&&w%60===0&&(q++,w=0);return{hours:q,minutes:w,seconds:u}};
ySm=function(q,w,u){return q>0&&w>0?u?_.ID("TIME_LEFT_HOURS_MINUTES",{hours:q.toString(),minutes:w.toString()}):_.ID("TIME_HOURS_MINUTES",{hours:q.toString(),minutes:w.toString()}):q>0?u?_.iy("TIME_LEFT_HOURS",q):_.iy("TIME_HOURS",q):u?_.ID("TIME_LEFT_MINUTES",{minutes:w.toString()}):_.ID("TIME_MINUTES",{minutes:w.toString()})};
n4h=function(q,w){if(q.timelyActions)return q.timelyActions.find(function(u){var y;return((y=_.C(u,as))==null?void 0:y.cueRangeId)===w})};
HEH=function(q){var w=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.yr(q);q.keyMap_.forEach(function(u,y){_.SH(w,y)||this.remove(y)},q)};
Wdx=function(q,w){q.reloadContinuationItemsCommandMatcher=w};
_.Dk=function(q,w){q.insertBefore(w,q.childNodes[0]||null)};
sbc=function(q){if(q>=48&&q<=57||q>=96&&q<=106||q>=65&&q<=90||_.PS&&q==0)return!0;switch(q){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 _.tv;default:return!1}};
Nlm=function(q){if(q.altKey&&!q.ctrlKey||q.metaKey||q.keyCode>=112&&q.keyCode<=123)return!1;if(sbc(q.keyCode))return!0;switch(q.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!_.tv;default:return q.keyCode<166||q.keyCode>183}};
G8m=function(q,w,u,y,e,t,X){this.date=typeof q==="number"?new Date(q,w||0,u||1,y||0,e||0,t||0,X||0):new Date(q&&q.getTime?q.getTime():_.qG())};
_.w9(G8m,_.rQ);_.k=G8m.prototype;_.k.getHours=function(){return this.date.getHours()};
_.k.getMinutes=function(){return this.date.getMinutes()};
_.k.getSeconds=function(){return this.date.getSeconds()};
_.k.getMilliseconds=function(){return this.date.getMilliseconds()};
_.k.getUTCDay=function(){return this.date.getUTCDay()};
_.k.getUTCHours=function(){return this.date.getUTCHours()};
_.k.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.k.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.k.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.k.setHours=function(q){this.date.setHours(q)};
_.k.setMinutes=function(q){this.date.setMinutes(q)};
_.k.setSeconds=function(q){this.date.setSeconds(q)};
_.k.setMilliseconds=function(q){this.date.setMilliseconds(q)};
_.k.setUTCHours=function(q){this.date.setUTCHours(q)};
_.k.setUTCMinutes=function(q){this.date.setUTCMinutes(q)};
_.k.setUTCSeconds=function(q){this.date.setUTCSeconds(q)};
_.k.setUTCMilliseconds=function(q){this.date.setUTCMilliseconds(q)};
_.k.add=function(q){_.rQ.prototype.add.call(this,q);q.hours&&this.setUTCHours(this.date.getUTCHours()+q.hours);q.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+q.minutes);q.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+q.seconds)};
_.k.JSC$9133_toIsoString=function(q){var w=_.rQ.prototype.JSC$9133_toIsoString.call(this,q);return q?w+"T"+_.xf(this.getHours(),2)+":"+_.xf(this.getMinutes(),2)+":"+_.xf(this.getSeconds(),2):w+"T"+_.xf(this.getHours(),2)+_.xf(this.getMinutes(),2)+_.xf(this.getSeconds(),2)};
_.k.equals=function(q){return this.getTime()==q.getTime()};
_.k.toString=function(){return this.JSC$9133_toIsoString()};
_.k.clone=function(){var q=new G8m(this.date);q.firstDayOfWeek_=this.firstDayOfWeek_;q.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return q};
_.QbA=function(q){return _.tr({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:q}})};
Id6=new _.M("imageTileRenderer");var iEK=new _.M("adGridCardCollectionViewModel");var rSm=new _.M("carouselTitleViewModel");var Umj=new _.M("ctaCarouselItemViewModel");var Tlx=new _.M("textFieldViewModel");_.CNj=new _.M("engagementPanelHeaderShowNavigationButtonCommand");var dmm=new _.M("hideEngagementPanelScrimAction");var OEc=new _.M("setActivePanelItemAction");var o4T=new _.M("showEngagementPanelScrimAction");var Vx4=new _.M("updateEngagementPanelAction");var fd4=new _.M("updateSearchInVideoResultsAction");var mmq=new _.M("transcriptCueGroupRenderer");var ASj=new _.M("transcriptCueRenderer");var JSc=new _.M("transcriptFooterRenderer");var zdq=new _.M("engagementPanelAdSubtitleRenderer");var ada=new _.M("videoDescriptionFantasySectionViewModel");var DmK=new _.M("deleteClipEngagementPanelCommand");var ZEa=new _.M("loopCommand");var ppT=new _.M("changeCreatorEndscreenVisibilityCommand");var $ma=new _.M("liveChatCallForQuestionsRenderer");var v4j=new _.M("updateTimedMarkersSyncObserverCommand");var as=new _.M("timelyActionViewModel");var bEa=new _.M("timelyActionsOverlayViewModel");var YB6=new _.M("repeatChapterCommand");var g4H=new _.M("watchPlayerOverflowMenuCommand");var E44=new _.M("compositeVideoOverlayRenderer");var Rd4=new _.M("sortFilterSubMenuRenderer");var cS6=new _.M("switchListItemViewModel");var SB6=new _.M("inputComposerViewModel");var hda=new _.M("transcriptEditSegmentCommand");var jb6=new _.M("transcriptUpdateSegmentTextCommand");var ld4=new _.M("transcriptSearchBoxRenderer");var Ldj=new _.M("transcriptSegmentListRenderer");var MxT=new _.M("transcriptSegmentRenderer");_.Kd6=new _.M("updateDateTextAction");var Bla=new _.M("updateTitleAction");var xm6=new _.M("updateViewershipAction");var qDT=new _.M("carouselLockupRenderer");var wZK=new _.M("expandableVideoDescriptionBodyRenderer");var uL6=new _.M("videoDescriptionYouchatSectionViewModel");_.Zk=_.Fc("kevlar_watch_page_horizontal_margin",24);_.yCm=_.Fc("kevlar_watch_page_columns_top_padding",24);_.eTm=426+_.Zk*2;_.pb=_.Fc("kevlar_watch_two_column_width_threshold",1E3);_.kO6=_.Zk*2;_.ty6=_.Fc("kevlar_watch_secondary_width",402);_.PFm=_.Fc("kevlar_watch_max_player_width",1280);_.XZj=_.Fc("kevlar_watch_flexy_metadata_height",136);_.Fym=_.kO6+310+_.Zk;_.GO4=_.kO6+360+_.Zk;var n_H={PAUSE_CHAT:18};var HBA;var WyH;var $y=function(){return _.Y.apply(this,arguments)||this};
_.O($y,_.Y);$y.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
$y.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var q=_.C(this.data.button,_.oH);q&&(q.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.x$.Object.defineProperties($y,{template:{configurable:!0,enumerable:!0,get:function(){if(WyH===void 0){var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;HBA===void 0&&(HBA=document.createElement("template"));var y=HBA;u.call(w,y.content.cloneNode(!0),q.content.firstChild);WyH=q}q=WyH;return q}}});
_.c([_.D(_.oN),_.h("design:type",Object)],$y.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],$y.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v({selectorArgs:["data.enabledEntityKey"],selector:rTH,observer:"onEnabledChange"}),_.h("design:type",Boolean)],$y.prototype,"enabled",void 0);_.c([_.v(),_.h("design:type",Object)],$y.prototype,"data",void 0);$y=_.c([_.JM({is:"yt-disableable-button-view-model",noInjection:!0})],$y);var sIB;var NFq;var QIT=["transVert01","transVert02","transVert03"],I56="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),vW=function(){var q=_.Y.apply(this,arguments)||this;q.emojiManager=_.AV;q.isDarkTheme=document.documentElement.hasAttribute("dark");q.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};q.reactionBuckets=[];q.noEmojiIdentifier="NO_EMOJI";return q};
_.O(vW,_.Y);_.k=vW.prototype;_.k.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.k.desktopFountainEmojiSizePxChanged=function(){_.Pj(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.k.createUserReactionAnimation=function(q){this.createEmojiAnimation(q,!0)};
_.k.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var q;((q=this.data)==null?0:q.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.IH("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.Cm(this.emojiContainer.children)).forEach(function(w){w.remove()})};
_.k.detached=function(){this.cleanupFountain()};
_.k.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var q;this.reactionBuckets=_.db.unsafeClone((q=this.emojiFountainData)==null?void 0:q.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.k.processEmojiBucket=function(q){var w=this;if(this.reactionBuckets&&!(q>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var u=this.reactionBuckets[q];this.generateEmojiAnimations(u);if(q<this.reactionBuckets.length-1){var y;if(u==null?0:(y=u.duration)==null?0:y.seconds)this.emojiBucketTimerId=setTimeout(function(){w.processEmojiBucket(q+1)},Number(u.duration.seconds)*1E3)}}};
_.k.generateEmojiAnimations=function(q){var w=this,u=this.getRandomEmojiIdFromBucketWithOverride(q);if(u&&u!==this.noEmojiIdentifier){var y=0;q.targetEps?(y=this.linearInterpolateBounded(1,20,100,12,q.emojiSizeIndex||0),this.createEmojiAnimation(u,!1,q.emojiAnimationMs,y),y=this.getEmojiDelayMsFromTargetEps(q.targetEps)):(this.createEmojiAnimation(u),y=this.getEmojiDelayMsFromDistribution(q.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){w.generateEmojiAnimations(q)},y)}};
_.k.getRandomEmojiIdFromBucketWithOverride=function(q){if(!(q&&q.reactionsData&&q.reactionsData.length&&q.totalReactions))return this.noEmojiIdentifier;for(var w=q.totalReactions,u=1,y=_.P(q.reactionsData),e=y.next();!e.done;e=y.next())e=e.value,(e.reactionWeightOverride||e.reactionWeightOverride===0)&&e.reactionCount&&(w-=e.reactionCount,u-=e.reactionWeightOverride);y=!0;u<0&&(y=!1,w=q.totalReactions,u=1);if(y&&u>0&&w===0)if(u===1){e=0;for(var t=_.P(q.reactionsData),X=t.next();!X.done;X=t.next())X=
X.value,X.reactionCount&&X.reactionCount>0&&e++;e=1/e;t=_.P(q.reactionsData);for(X=t.next();!X.done;X=t.next())X.value.reactionWeightOverride=e}else for(e=1/(1-u),t=_.P(q.reactionsData),X=t.next();!X.done;X=t.next())X=X.value,X.reactionWeightOverride&&(X.reactionWeightOverride*=e);e=Math.random();t=0;X=_.P(q.reactionsData);for(var G=X.next();!G.done;G=X.next())if(G=G.value,G.reactionCount&&(t=(G.reactionWeightOverride||G.reactionWeightOverride===0)&&y?t+G.reactionWeightOverride:t+u*G.reactionCount/
w,t>e&&(G.reactionCount--,q.totalReactions--,G=this.reactionItemToEmojiString(G),G!==this.noEmojiIdentifier)))return G;return this.noEmojiIdentifier};
_.k.reactionItemToEmojiString=function(q){if(q.unicodeEmojiId)return q.unicodeEmojiId;if(q.emoteId)return q.emoteId;if(q.videoReactionType)switch(q.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.k.createEmojiAnimation=function(q,w,u,y){w=w===void 0?!1:w;this.lastEmojiRequestedForTesting=q;var e=q.startsWith("yt-icons:"),t=_.fo(this.emojiManager,q);if(t||e){var X=document.createElement("emoji");X.classList.add("yt-emoji-fountain-view-model");X.classList.add(QIT[Math.floor(Math.random()*QIT.length)]);var G=document.createElement("div");G.classList.add("yt-emoji-fountain-view-model");G.classList.add("horizontal-container");G.classList.add(I56[Math.floor(Math.random()*I56.length)]);w?(u=document.createElement("div"),
u.classList.add("user-reaction-bubble"),u.classList.add("yt-emoji-fountain-view-model"),G.appendChild(u)):(u&&(X.style.animationDuration=u+"ms",G.style.animationDuration=u+"ms"),y&&(X.style.width=y+"px",X.style.height=y+"px"));e?(e=document.createElement("yt-icon"),e.polymerController.icon=q,y&&(e.style.width=y+"px",e.style.height=y+"px"),q=e):q=this.emojiManager.createEmoji(t,!1);q.classList.add("yt-emoji-fountain-view-model");G.appendChild(q);X.appendChild(G);this.emojiContainer.appendChild(X);
X.addEventListener("animationend",function(){X.remove()});
var n,N;if((n=this.data)==null?0:(N=n.loggingDirectives)==null?0:N.trackingParams)w=w?_.oV(183501):_.oV(183500),UWm(this.data.loggingDirectives.trackingParams,w),_.Thz(w);setTimeout(function(){X&&X.remove()},2E3)}};
_.k.getEmojiDelayMsFromDistribution=function(q){return Math.random()*(q||1)*1E3};
_.k.getEmojiDelayMsFromTargetEps=function(q){return Math.random()*2*(1/q)*1E3};
_.k.linearInterpolateBounded=function(q,w,u,y,e){e=Math.min(Math.max(e,q),u);return(w*(u-e)+y*(e-q))/(u-q)};
vW.prototype.onEmojiFountainDataEntityUpdate=vW.prototype.onEmojiFountainDataEntityUpdate;vW.prototype.desktopFountainEmojiSizePxChanged=vW.prototype.desktopFountainEmojiSizePxChanged;vW.prototype.isActiveChanged=vW.prototype.isActiveChanged;_.c([_.v(),_.h("design:type",_.VL)],vW.prototype,"emojiManager",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],vW.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.oN),_.h("design:type",Object)],vW.prototype,"ytLiveChatReduxBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],vW.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],vW.prototype,"data",void 0);_.c([_.v({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(q,w){return _.HQ(q.entities,"emojiFountainDataEntity",w)}}),
_.h("design:type",Object)],vW.prototype,"emojiFountainData",void 0);_.c([_.v(),_.h("design:type",Boolean)],vW.prototype,"isActive",void 0);_.c([_.nL("isActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vW.prototype,"isActiveChanged",null);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],vW.prototype,"isDarkTheme",void 0);_.c([_.v(),_.h("design:type",String)],vW.prototype,"lastEmojiRequestedForTesting",void 0);
_.c([_.v({value:function(){return _.Fc("desktop_fountain_emoji_size_px",20)}}),
_.h("design:type",Number)],vW.prototype,"desktopFountainEmojiSizePx",void 0);_.c([_.nL("desktopFountainEmojiSizePx"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vW.prototype,"desktopFountainEmojiSizePxChanged",null);_.c([_.Wj("#emoji-container"),_.h("design:type",HTMLElement)],vW.prototype,"emojiContainer",void 0);
_.c([_.nL("emojiFountainData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vW.prototype,"onEmojiFountainDataEntityUpdate",null);vW=_.c([_.JM({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],vW);
_.R(vW,"yt-emoji-fountain-view-model",function(){if(NFq===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;sIB===void 0&&(sIB=document.createElement("template"));var y=sIB;u.call(w,y.content.cloneNode(!0),q.content.firstChild);NFq=q}q=NFq;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var iBT;var rCT;var bt=function(){return _.Y.apply(this,arguments)||this};
_.O(bt,_.Y);bt.prototype.onChoiceChanged=function(){this.data&&_.Pj(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
bt.prototype.onChoiceChanged=bt.prototype.onChoiceChanged;_.c([_.v(),_.h("design:type",Object)],bt.prototype,"data",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bt.prototype,"onChoiceChanged",null);bt=_.c([_.E({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],bt);
_.R(bt,"yt-live-chat-banner-poll-choice",function(){if(rCT===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;iBT===void 0&&(iBT=document.createElement("template"));var y=iBT;u.call(w,y.content.cloneNode(!0),q.content.firstChild);rCT=q}q=rCT;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var UXV;var TFc;var Yy=function(){var q=_.Y.apply(this,arguments)||this;q.modern=_.T("web_button_rework_with_live");q.small=!1;return q};
_.O(Yy,_.Y);Yy.prototype.computeIsSmall=function(){var q;return((q=this.buttonOverrides)==null?void 0:q.size)==="S"};
Yy.prototype.computeId=function(){return this.data&&this.data.targetId};
_.c([_.D(_.VA.YtLiveChatTooltipTargetingBehavior),_.h("design:type",Object)],Yy.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.c([_.v({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.h("design:type",String)],Yy.prototype,"id",void 0);_.c([_.v(),_.h("design:type",Object)],Yy.prototype,"buttonOverrides",void 0);_.c([_.v(),_.h("design:type",Object)],Yy.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Yy.prototype,"modern",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.h("design:type",Object)],Yy.prototype,"small",void 0);Yy=_.c([_.E({disableElementRegistration:!0,is:"yt-live-chat-button"})],Yy);
_.R(Yy,"yt-live-chat-button",function(){if(TFc===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;UXV===void 0&&(UXV=document.createElement("template"));var y=UXV;u.call(w,y.content.cloneNode(!0),q.content.firstChild);TFc=q}q=TFc;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var CFV;var dXB;var gn=function(){var q=_.Y.apply(this,arguments)||this;q.inCollapsedBanner=!1;q.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};q.questionButtonOverrides={style:"mono",type:"filled"};return q};
_.O(gn,_.Y);_.k=gn.prototype;_.k.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]]"}}}}}};
_.k.onContextMenuButtonClick=function(q){this.ytLiveChatItemBehavior.showContextMenu(q)};
_.k.onYtRendererstamperFinished=function(){this.menuButton=_.A(this.hostElement).querySelector("#menu-button")};
_.k.dataChanged=function(){var q,w;if((w=_.C((q=this.data)==null?void 0:q.overflowMenuButton,_.aB))==null?0:w.command)this.data.contextMenuEndpoint=_.C(this.data.overflowMenuButton,_.aB).command};
_.k.onButtonClick=function(){var q,w=_.C((q=this.data)==null?void 0:q.askQuestionButton,_.aB);if(w){if(w.trackingParams&&(q=_.Tj(w.trackingParams))){var u=_.pN();u&&_.jB(u,q)}_.t7(this.hostElement,"innertube-command",w.command)}};
gn.prototype.onYtRendererstamperFinished=gn.prototype.onYtRendererstamperFinished;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],gn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.oN),_.h("design:type",Object)],gn.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.D(_.JV.YtLiveChatItemBehavior),_.h("design:type",_.zD)],gn.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.v({observer:"dataChanged"}),_.h("design:type",Object)],gn.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],gn.prototype,"inCollapsedBanner",void 0);_.c([_.v(),_.h("design:type",Object)],gn.prototype,"buttonOverrides",void 0);_.c([_.v(),_.h("design:type",Object)],gn.prototype,"questionButtonOverrides",void 0);_.c([_.Gm("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gn.prototype,"onYtRendererstamperFinished",null);
gn=_.c([_.E({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],gn);
_.R(gn,"yt-live-chat-call-for-questions-renderer",function(){if(dXB===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;CFV===void 0&&(CFV=document.createElement("template"));var y=CFV;u.call(w,y.content.cloneNode(!0),q.content.firstChild);dXB=q}q=dXB;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var OBB={};OBB.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 q=this;window.requestAnimationFrame(function(){q.restoreFocusNode_||(q.restoreFocusNode_=document.activeElement);var w=_.rEj(q.hostElement);w.length&&w[w.length-1].focus()})},
isAttachedChanged_:function(q,w){q?this.focusChild_():w&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(q){this.hidden||_.SQ(q).indexOf(this.hostElement)!==-1||(q.stopPropagation(),this.focusChild_())}};var o_m;var Vyq;var ET=function(){return _.Y.apply(this,arguments)||this};
_.O(ET,_.Y);ET.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
ET.prototype.onClick=function(q){q.target!==this.confirmButton&&q.target!==this.cancelButton&&(this.hidden=!0)};
_.c([_.Wj("#confirm_button"),_.h("design:type",Object)],ET.prototype,"confirmButton",void 0);_.c([_.Wj("#cancel_button"),_.h("design:type",Object)],ET.prototype,"cancelButton",void 0);_.c([_.v(),_.h("design:type",f5j)],ET.prototype,"data",void 0);_.c([_.v({value:!0,reflectToAttribute:!0}),_.h("design:type",Boolean)],ET.prototype,"hidden",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],ET.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(OBB.YtLiveChatDialogBehavior),_.h("design:type",Object)],ET.prototype,"ytLiveChatDialogBehavior",void 0);ET=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],ET);
var f5j=_.R(ET,"yt-live-chat-dialog-renderer",function(){if(Vyq===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;o_m===void 0&&(o_m=document.createElement("template"));var y=o_m;u.call(w,y.content.cloneNode(!0),q.content.firstChild);Vyq=q}q=Vyq;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var mX4;var ACq,JCm=function(){if(ACq!==void 0)return ACq;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;mX4===void 0&&(mX4=document.createElement("template"));var y=mX4;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return ACq=q};var zTH;var a5c;var Rs=function(){var q=_.Y.apply(this,arguments)||this;q.tooltip=null;q.data=null;q.id="";q.active=!1;q.icon="";q.disabled=!1;q.showTooltip=!1;q.useToggledActiveState=!0;q.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return q};
_.O(Rs,_.Y);_.k=Rs.prototype;
_.k.dataChanged=function(){var q;((q=this.data)==null?0:q.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,_.tM)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var w;if((w=this.data)==null?0:w.disabled)this.disabled=!0};
_.k.computeId=function(q){return q};
_.k.computeIcon=function(q,w){if(!q)return"";if(this.useToggledActiveState)return"yt-icons:"+q.toLowerCase();var u,y;return w&&((u=this.data)==null?0:(y=u.toggledIcon)==null?0:y.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+q.toLowerCase()};
_.k.logPDGEntryPoint=function(){_.Kkz(_.np("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")};
_.k.immediatelyShowTooltip=function(){var q=_.A(this.hostElement).querySelector("#tooltip");q.animationDelay=0;q.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};q.show()};
_.k.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.k.onClick=function(q){var w;((w=this.data)==null?0:w.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(),q.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.t7(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.k.computeShowTooltip=function(q,w){return!!(q&&q.tooltip&&w)};
_.k.maybeUpdateTooltipText=function(){var q=this,w;if((w=this.data)==null?0:w.tooltip){var u=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.tM)(q.tooltip).textContent=u},250)}};
_.k.handleLiveChatActions=function(q){var w=this;q.length&&(this.id!=="creator"&&this.id!=="product-picker"||q.forEach(function(u){(u=w.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",u))&&u.durationSec===u.fullDurationSec&&w.startBubble(w.colorFromDecimal(u.startBackgroundColor))}))};
_.k.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.k.startBubble=function(q){_.Pj(this.hostElement,{"--yt-live-chat-monetization-button-glow":q});this.hostElement.setAttribute("bubble","")};
_.k.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.k.colorFromDecimal=function(q){typeof q==="string"&&(q=Number(q));return"rgba("+[q>>16&255,q>>8&255,q&255,(q>>24&255)/255].join()+")"};
Rs.prototype.onAnimationEnd=Rs.prototype.onAnimationEnd;Rs.prototype.disabledChanged=Rs.prototype.disabledChanged;Rs.prototype.dataChanged=Rs.prototype.dataChanged;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Rs.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Rs.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.VA.YtLiveChatTooltipTargetingBehavior),_.h("design:type",Object)],Rs.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Rs.prototype,"data",void 0);_.c([_.v({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.h("design:type",Object)],Rs.prototype,"id",void 0);_.c([_.v({notify:!0,reflectToAttribute:!0}),_.h("design:type",Object)],Rs.prototype,"active",void 0);
_.c([_.v({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.h("design:type",Object)],Rs.prototype,"icon",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Rs.prototype,"disabled",void 0);_.c([_.v({computed:"computeShowTooltip(data, disabled)"}),_.h("design:type",Object)],Rs.prototype,"showTooltip",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Rs.prototype,"useToggledActiveState",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Rs.prototype,"dataChanged",null);_.c([_.nL("disabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Rs.prototype,"disabledChanged",null);_.c([_.Gm("animationend"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Rs.prototype,"onAnimationEnd",null);
Rs=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Rs);
_.R(Rs,"yt-live-chat-icon-toggle-button-renderer",function(){if(a5c===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;zTH===void 0&&(zTH=document.createElement("template"));var y=zTH;u.call(w,y.content.cloneNode(!0),q.content.firstChild);a5c=q}q=a5c;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var DX6;var ZBH;var cW=function(){return _.Y.apply(this,arguments)||this};
_.O(cW,_.Y);cW.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.c([_.v(),_.h("design:type",Object)],cW.prototype,"data",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],cW.prototype,"ytRendererstamperBehavior",void 0);cW=_.c([_.E({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],cW);
_.R(cW,"yt-live-chat-message-input-prompt-header-renderer",function(){if(ZBH===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;DX6===void 0&&(DX6=document.createElement("template"));var y=DX6;u.call(w,y.content.cloneNode(!0),q.content.firstChild);ZBH=q}q=ZBH;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var pZA;var $Xa;var v_a;var bBj;var YDV;var g_m;var SE=function(){return _.Y.apply(this,arguments)||this};
_.O(SE,_.Y);_.c([_.v(),_.h("design:type",Object)],SE.prototype,"data",void 0);SE=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],SE);
_.R(SE,"yt-live-chat-message-subtext-renderer",function(){if(g_m===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;YDV===void 0&&(YDV=document.createElement("template"));var y=YDV;u.call(w,y.content.cloneNode(!0),q.content.firstChild);g_m=q}q=g_m;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var h$=function(){var q=_.Y.apply(this,arguments)||this;q.subtextOnBottom=!1;q.buttonOverrides={style:"mono",type:"tonal"};return q};
_.O(h$,_.Y);h$.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"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],h$.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],h$.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],h$.prototype,"subtextOnBottom",void 0);_.c([_.v(),_.h("design:type",Object)],h$.prototype,"buttonOverrides",void 0);
h$=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],h$);
_.R(h$,"yt-live-chat-message-renderer",function(){if(bBj===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;v_a===void 0&&(v_a=document.createElement("template"));var y=v_a;u.call(w,y.content.cloneNode(!0),q.content.firstChild);bBj=q}q=bBj;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var E_q;var RTm;var jE=function(){var q=_.Y.apply(this,arguments)||this;q.isRemovable=!1;q.hasPrefilledText=!1;q.isInputDirty=!1;q.overCharacterLimit=!1;q.underCharacterLimit=!1;q.showErrorMessage=!1;return q};
_.O(jE,_.Y);_.k=jE.prototype;_.k.computeId=function(){return this.data.id};
_.k.computeInputData=function(){return this.data.inputData};
_.k.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.k.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.k.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.k.getLiveChatRichMessageInput=function(){return _.A(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.k.clearInput=function(){_.A(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.k.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.k.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.k.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.k.handleTextInputCharCountChanged=function(q){q=q.detail&&q.detail.characterCount;q!==void 0&&(this.characterCount=q,q!==0&&(this.isInputDirty=!0))};
_.k.onInputFocusOut=function(){this.isInputDirty=!0};
_.k.onClickCloseButton=function(){_.t7(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
jE.prototype.handleTextInputCharCountChanged=jE.prototype.handleTextInputCharCountChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],jE.prototype,"data",void 0);_.c([_.v({computed:"computeId(data.id)"}),_.h("design:type",String)],jE.prototype,"id",void 0);_.c([_.v({computed:"computeInputData(data.inputData)"}),_.h("design:type",Object)],jE.prototype,"inputData",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.h("design:type",Object)],jE.prototype,"isRemovable",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.h("design:type",Object)],jE.prototype,"hasPrefilledText",void 0);_.c([_.v({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.h("design:type",Number)],jE.prototype,"charactersRemaining",void 0);
_.c([_.v(),_.h("design:type",Number)],jE.prototype,"characterCount",void 0);_.c([_.v(),_.h("design:type",Object)],jE.prototype,"isInputDirty",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.h("design:type",Object)],jE.prototype,"overCharacterLimit",void 0);_.c([_.v({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.h("design:type",Object)],jE.prototype,"underCharacterLimit",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.h("design:type",Object)],jE.prototype,"showErrorMessage",void 0);_.c([_.Gm("yt-live-chat-text-input-field-renderer-character-count-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],jE.prototype,"handleTextInputCharCountChanged",null);
jE=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],jE);
_.R(jE,"yt-live-chat-poll-editor-input",function(){if(RTm===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;E_q===void 0&&(E_q=document.createElement("template"));var y=E_q;u.call(w,y.content.cloneNode(!0),q.content.firstChild);RTm=q}q=RTm;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var cCT;var SDT;var hTT={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},lt=function(){var q=_.Y.apply(this,arguments)||this;q.modern=_.T("web_button_rework_with_live");q.closeButtonOverrides={iconPosition:"icon-only"};q.startButtonOverrides={style:"mono",type:"filled"};q.addOptionButtonOverrides={style:"mono",type:"text"};return q};
_.O(lt,_.Y);_.k=lt.prototype;
_.k.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"}}}}};
_.k.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var q;_.C((q=this.data)==null?void 0:q.startButton,_.aB)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.k.computeId=function(){return this.data&&this.data.id||""};
_.k.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.k.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.k.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.k.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.k.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var q=0;q<this.pollEditorInfoWithDefaults.minPollOptions;q++)this.addPollOptionData()};
_.k.getIsValidPoll=function(){var q=this;if(!this.pollEditorInfoWithDefaults)return!1;var w=this.pollEditorInfoWithDefaults,u=w.minPollOptionChars,y=w.maxPollOptionChars,e=w.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>w.maxPollQuestionChars)return!1;w=_.A(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(w).every(function(t,X){t=t.characterCount;!t&&e[X]&&(t=q.ytRendererBehavior.getSimpleString(e[X]).length);return t!==void 0&&t>=u&&t<=y})};
_.k.isValidPollChanged=function(){var q;_.C((q=this.data)==null?void 0:q.startButton,_.aB)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.k.addPollOptionData=function(){var q=this.pollEditorInfoWithDefaults,w=q.maxPollOptionChars,u=q.optionPlaceholderText,y=q.customOptionPlaceholderText,e=q.pollOptionData;this.currentNumPollOptions>=q.maxPollOptions||(q={liveChatPollOptionInput:{inputData:{placeholder:y[this.currentNumPollOptions]||u,maxCharacterLimit:w},maxCharacterLimit:w,minCharacterLimit:q.minPollOptionChars,hasPrefilledText:!!y[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=q.minPollOptions}},e.charCountErrorText&&
(q.liveChatPollOptionInput.charCountErrorText=e.charCountErrorText),e.charsRemainingAltLabel&&(q.liveChatPollOptionInput.charsRemainingAltLabel=e.charsRemainingAltLabel),e.removeOptionAltText&&(q.liveChatPollOptionInput.removeOptionAltText=e.removeOptionAltText),this.push("pollOptionsData",q),e=Array.from(_.A(_.A(this.hostElement).querySelector("#poll-options")).children),e.forEach(function(t,X){t.polymerController.set("data.id",X)}),_.A(e[e.length-1]).querySelector("#input").focus())};
_.k.getPollOptionInputValues=function(){var q=this,w=[],u=_.A(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),y=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(u).forEach(function(e,t){var X=null;e=e.getLiveChatRichMessageInput();var G;(e==null?0:(G=e.textSegments)==null?0:G.length)?X=_.bv(e):y[t]&&(X=q.formattedStringToLiveChatRichMessageInput(y[t]));w.push(X)});
return w};
_.k.requestCreateAndStartPoll=function(q){var w=this.getPollOptionInputValues();if(!w.some(function(y){return!y})){w={optionText:w};
var u=_.A(_.A(this.hostElement).querySelector("#poll-question")).firstChild;u&&u.liveChatRichMessageInput&&(w.questionText=_.bv(u.liveChatRichMessageInput));_.GM(this.hostElement,[q,w])}};
_.k.selectedChanged=function(){if(this.selected){var q=_.A(_.A(this.hostElement).querySelector("#start-button")).firstElementChild;if(q){var w;(w=_.A(q).querySelector("#button")||_.y6(q).querySelector("button"))==null||w.focus()}}};
_.k.handleTextInputChanged=function(q){var w;((w=q.target)==null?void 0:w.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=q.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.k.handleStartButtonAction=function(q){q.detail.actionName==="yt-service-request"&&(q.stopPropagation(),(q=q.detail.args[1])&&this.requestCreateAndStartPoll(q))};
_.k.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.k.handleServiceRequestCompleted=function(q){this.createPollRequestInFlight=!1;(q=q.detail&&q.detail.data)&&q.success&&(_.t7(this.hostElement,"picker-cancelled"),_.Pw(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.k.onCloseClick=function(){_.t7(this.hostElement,"picker-cancelled");_.Pw(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.k.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.k.handlePollEditorInputClosed=function(q){var w=this.pollOptionsData.findIndex(function(u){return u.liveChatPollOptionInput.id===q.detail.id});
this.splice("pollOptionsData",w,1);this.isValidPoll=this.getIsValidPoll()};
_.k.onPickerCancelled=function(){this.reset()};
_.k.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var q=_.A(_.A(this.hostElement).querySelector("#poll-question")).firstChild;q&&q.setLiveChatRichMessageInput(null);if(q=_.A(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){q=_.P(Array.from(q));for(var w=q.next();!w.done;w=q.next())w.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.k.formattedStringToLiveChatRichMessageInput=function(q){return q.simpleText?{text_segments:[q.simpleText]}:{text_segments:q.runs}};
_.x$.Object.defineProperties(lt.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(hTT,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
lt.prototype.onPickerCancelled=lt.prototype.onPickerCancelled;lt.prototype.handlePollEditorInputClosed=lt.prototype.handlePollEditorInputClosed;lt.prototype.handleServiceRequestCompleted=lt.prototype.handleServiceRequestCompleted;lt.prototype.handleServiceRequestSent=lt.prototype.handleServiceRequestSent;lt.prototype.handleTextInputChanged=lt.prototype.handleTextInputChanged;lt.prototype.selectedChanged=lt.prototype.selectedChanged;lt.prototype.isValidPollChanged=lt.prototype.isValidPollChanged;
lt.prototype.shouldInitializePollChanged=lt.prototype.shouldInitializePollChanged;lt.prototype.dataChanged=lt.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],lt.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],lt.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],lt.prototype,"modern",void 0);
_.c([_.v(),_.h("design:type",Object)],lt.prototype,"closeButtonOverrides",void 0);_.c([_.v(),_.h("design:type",Object)],lt.prototype,"startButtonOverrides",void 0);_.c([_.v(),_.h("design:type",Object)],lt.prototype,"addOptionButtonOverrides",void 0);_.c([_.v({computed:"computeId(data.id)",reflectToAttribute:!0}),_.h("design:type",String)],lt.prototype,"id",void 0);_.c([_.v({value:function(){return[]}}),
_.h("design:type",Array)],lt.prototype,"pollOptionsData",void 0);_.c([_.Z("pollEditorInfoWithDefaults"),_.h("design:type",Object),_.h("design:paramtypes",[])],lt.prototype,"pollQuestionData",null);_.c([_.v({value:0}),_.h("design:type",Number)],lt.prototype,"pollQuestionCharacterCount",void 0);_.c([_.Z("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.h("design:type",Object),_.h("design:paramtypes",[])],lt.prototype,"pollQuestionCharactersRemaining",null);
_.c([_.v({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.h("design:type",Boolean)],lt.prototype,"overQuestionCharacterLimit",void 0);_.c([_.Z("data.pollEditorInfo"),_.h("design:type",Object),_.h("design:paramtypes",[])],lt.prototype,"pollEditorInfoWithDefaults",null);_.c([_.v({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.h("design:type",Number)],lt.prototype,"currentNumPollOptions",void 0);
_.c([_.v({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.h("design:type",Boolean)],lt.prototype,"hasMaxNumPollOptions",void 0);_.c([_.Z("pollEditorInfoWithDefaults","pollOptionsData"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],lt.prototype,"shouldInitializePoll",null);_.c([_.v(),_.h("design:type",Object)],lt.prototype,"isValidPoll",void 0);
_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],lt.prototype,"createPollRequestInFlight",void 0);_.c([_.v(),_.h("design:type",Object)],lt.prototype,"selected",void 0);_.c([_.v({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.h("design:type",Boolean)],lt.prototype,"showQuestionErrorMessage",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lt.prototype,"dataChanged",null);_.c([_.nL("shouldInitializePoll"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lt.prototype,"shouldInitializePollChanged",null);_.c([_.nL("isValidPoll"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lt.prototype,"isValidPollChanged",null);
_.c([_.nL("selected"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lt.prototype,"selectedChanged",null);_.c([_.Gm("yt-live-chat-text-input-field-renderer-character-count-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],lt.prototype,"handleTextInputChanged",null);
_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lt.prototype,"handleServiceRequestSent",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],lt.prototype,"handleServiceRequestCompleted",null);
_.c([_.Gm("yt-live-chat-poll-editor-input-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],lt.prototype,"handlePollEditorInputClosed",null);_.c([_.Gm("picker-cancelled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lt.prototype,"onPickerCancelled",null);lt=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],lt);
_.R(lt,"yt-live-chat-poll-editor-panel-renderer",function(){if(SDT===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;cCT===void 0&&(cCT=document.createElement("template"));var y=cCT;u.call(w,y.content.cloneNode(!0),q.content.firstChild);SDT=q}q=SDT;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var jIH;var l5q;var Lb=function(){return _.Y.apply(this,arguments)||this};
_.O(Lb,_.Y);Lb.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Lb.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.x$.Object.defineProperties(Lb.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var q,w;return(q=this.data)==null?void 0:(w=q.title)==null?void 0:w.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var q;return _.Zh((q=this.data)==null?void 0:q.onTapCommand)}}});
_.c([_.D(_.yL.YtEndpointBehavior),_.h("design:type",Object)],Lb.prototype,"ytEndpointBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Lb.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Lb.prototype,"itemId",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Lb.prototype,"hasPromotion",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Lb.prototype,"innertubeCommand",null);Lb=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Lb);
_.R(Lb,"yt-live-chat-product-picker-panel-item-view-model",function(){if(l5q===void 0){var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;jIH===void 0&&(jIH=document.createElement("template"));var y=jIH;u.call(w,y.content.cloneNode(!0),q.content.firstChild);l5q=q}q=l5q;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var Lyx;var Myj;var Mo=function(){var q=_.Y.apply(this,arguments)||this;q.id="product-picker";q.selected=!1;q.closeButtonId="close-button";q.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return q};
_.O(Mo,_.Y);_.k=Mo.prototype;_.k.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.k.observeSelected=function(){this.selected&&this.hostElement.focus();var q=_.A(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");q.length&&q[0].focus()};
_.k.onCloseBuyFlow=function(){_.t7(this.hostElement,"picker-cancelled")};
_.k.onCloseClick=function(){_.t7(this.hostElement,"picker-cancelled");var q;((q=this.data)==null?0:q.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.C(this.data.closeButton,_.oH))};
_.k.onCloseEngageWithAudienceEditorPanels=function(){_.t7(this.hostElement,"picker-cancelled")};
Mo.prototype.observeSelected=Mo.prototype.observeSelected;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Mo.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Mo.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Mo.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Mo.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Mo.prototype,"id",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Mo.prototype,"selected",void 0);_.c([_.v(),_.h("design:type",Object)],Mo.prototype,"closeButtonId",void 0);_.c([_.nL("selected"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Mo.prototype,"observeSelected",null);
Mo=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],Mo);
_.R(Mo,"yt-live-chat-product-picker-panel-view-model",function(){if(Myj===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;Lyx===void 0&&(Lyx=document.createElement("template"));var y=Lyx;u.call(w,y.content.cloneNode(!0),q.content.firstChild);Myj=q}q=Myj;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var Kyc;var BFh;var Kb=function(){var q=_.Y.apply(this,arguments)||this;q.iconId="";q.icon="";q.disabled=!1;q.systemIcons=_.T("kevlar_system_icons");return q};
_.O(Kb,_.Y);_.k=Kb.prototype;_.k.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.k.computeIconId=function(q){return q&&q.icon&&q.icon.iconType?q.icon.iconType.toLowerCase():""};
_.k.computeIcon=function(q){return q&&q.icon&&q.icon.iconType?(q=q.icon.iconType.toLowerCase(),(q.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+q):""};
_.k.computeDisabled=function(q){return!!q};
_.k.computeCommand=function(q,w){return w?void 0:q};
_.k.computeTooltip=function(q,w){return w&&q?q:""};
_.k.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.c([_.D(_.yL.YtEndpointBehavior),_.h("design:type",Object)],Kb.prototype,"ytEndpointBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Kb.prototype,"data",void 0);_.c([_.v({computed:"computeIconId(data)",reflectToAttribute:!0}),_.h("design:type",Object)],Kb.prototype,"iconId",void 0);
_.c([_.v({computed:"computeIcon(data)",reflectToAttribute:!0}),_.h("design:type",Object)],Kb.prototype,"icon",void 0);_.c([_.v({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.h("design:type",Object)],Kb.prototype,"disabled",void 0);_.c([_.v({computed:"computeCommand(data.command, disabled)"}),_.h("design:type",Object)],Kb.prototype,"command",void 0);_.c([_.v({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.h("design:type",String)],Kb.prototype,"tooltip",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Kb.prototype,"systemIcons",void 0);Kb=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],Kb);
_.R(Kb,"yt-live-chat-product-button-renderer",function(){if(BFh===void 0){var q=document.createElement("template");_.f(q,'\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" disabled$="[[disabled]]" 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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;Kyc===void 0&&(Kyc=document.createElement("template"));var y=Kyc;u.call(w,y.content.cloneNode(!0),q.content.firstChild);BFh=q}q=BFh;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var xXK;var q5a;var BW=function(){var q=_.Y.apply(this,arguments)||this;q.selected=!1;q.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-panels":"onCloseEngageWithAudienceEditorPanels"};return q};
_.O(BW,_.Y);_.k=BW.prototype;_.k.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"}}}};
_.k.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.k.computeId=function(q){return q.id||""};
_.k.onCloseClick=function(){_.t7(this.hostElement,"picker-cancelled")};
_.k.observeSelected=function(){this.selected&&this.hostElement.focus();var q=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");q.length&&q[0].focus()};
_.k.onCloseBuyFlow=function(){_.t7(this.hostElement,"picker-cancelled")};
_.k.onCloseEngageWithAudienceEditorPanels=function(){_.t7(this.hostElement,"picker-cancelled")};
BW.prototype.observeSelected=BW.prototype.observeSelected;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],BW.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],BW.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],BW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],BW.prototype,"data",void 0);
_.c([_.v({computed:"computeId(data)",reflectToAttribute:!0}),_.h("design:type",String)],BW.prototype,"id",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],BW.prototype,"selected",void 0);_.c([_.nL("selected"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BW.prototype,"observeSelected",null);BW=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],BW);
_.R(BW,"yt-live-chat-product-picker-renderer",function(){if(q5a===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;xXK===void 0&&(xXK=document.createElement("template"));var y=xXK;u.call(w,y.content.cloneNode(!0),q.content.firstChild);q5a=q}q=q5a;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var wEB;var uPc;var yjH;var eLm;var xy=function(){return _.Y.apply(this,arguments)||this};
_.O(xy,_.Y);xy.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()};
xy.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
xy.prototype.created=function(){this.ids={background:_.V8(),maskOne:_.V8(),maskTwo:_.V8(),gradient:_.V8(),largeBackground:_.V8(),largeGradientOne:_.V8(),largeGradientTwo:_.V8(),largeGradientPath:_.V8()}};
xy.prototype.maybeLoadAnimationBackground=xy.prototype.maybeLoadAnimationBackground;_.c([_.v({value:!1}),_.h("design:type",Boolean)],xy.prototype,"useLargeBackground",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],xy.prototype,"useAnimationBackground",void 0);_.c([_.v({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.h("design:type",Boolean)],xy.prototype,"useRegularBackground",void 0);
_.c([_.v(),_.h("design:type",Object)],xy.prototype,"ids",void 0);_.c([_.v(),_.h("design:type",Object)],xy.prototype,"lottieAnimation",void 0);_.c([_.Wj("#animation-background"),_.h("design:type",HTMLDivElement)],xy.prototype,"animationBackground",void 0);_.c([_.nL("useAnimationBackground"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xy.prototype,"maybeLoadAnimationBackground",null);
xy=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],xy);
_.R(xy,"yt-live-interactivity-component-background",function(){if(eLm===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;yjH===void 0&&(yjH=document.createElement("template"));var y=yjH;u.call(w,y.content.cloneNode(!0),q.content.firstChild);eLm=q}q=eLm;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var q0=function(){var q=_.Y.apply(this,arguments)||this;q.characterCount=0;q.showInputErrorMessage=!1;q.startQnaRequestInFlight=!1;q.modern=_.T("web_button_rework_with_live");q.buttonOverrides={style:"mono",type:"filled"};q.closeButtonOverrides={iconPosition:"icon-only"};q.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return q};
_.O(q0,_.Y);_.k=q0.prototype;
_.k.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]]"}}}}}};
_.k.onCharacterCountChanged=function(q){var w,u,y,e,t=(u=_.C(this==null?void 0:(w=this.data)==null?void 0:w.creatorCallForQuestions,$ma))==null?void 0:(y=u.inputField)==null?void 0:(e=y.liveChatTextInputFieldRenderer)==null?void 0:e.maxCharacterLimit,X,G;t!=null&&(q==null?void 0:(X=q.detail)==null?void 0:X.characterCount)!=null&&_.C(this==null?void 0:(G=this.data)==null?void 0:G.startButton,_.aB)&&(w=q.detail.characterCount>t,this.set("data.startButton.buttonRenderer.isDisabled",q.detail.characterCount===
0||w),this.showInputErrorMessage=w)};
_.k.onCloseClick=function(){_.t7(this.hostElement,"picker-cancelled");_.Pw(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.k.onPickerCancelled=function(){var q=_.A(this.hostElement).querySelector("#qna-creator-text-input-field");q&&q.setLiveChatRichMessageInput(null)};
_.k.handleOpenQnaStartPanel=function(){var q=_.A(this.hostElement).querySelector("#qna-creator-text-input-field");q&&q.focus()};
_.k.handleStartButtonAction=function(q){var w=this;if(q.detail.actionName==="yt-service-request"&&(q.stopPropagation(),q=q.detail.args[1])){var u=_.A(this.hostElement).querySelector("#qna-creator-text-input-field"),y;(u==null?0:(y=u.liveChatRichMessageInput)==null?0:y.textSegments)&&u.liveChatRichMessageInput.textSegments.length!==0&&(y={rich_message:_.bv(u.liveChatRichMessageInput)},_.GM(this.hostElement,[q,y]).then(function(){_.t7(w.hostElement,"picker-cancelled")}))}};
_.k.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.k.handleServiceRequestCompleted=function(q){var w;q=q==null?void 0:(w=q.detail)==null?void 0:w.data;(q==null?0:q.actions)&&q.actions.length>0?this.startQnaRequestInFlight=!1:_.Pw(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.k.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
q0.prototype.handleServiceRequestError=q0.prototype.handleServiceRequestError;q0.prototype.handleServiceRequestCompleted=q0.prototype.handleServiceRequestCompleted;q0.prototype.handleServiceRequestSent=q0.prototype.handleServiceRequestSent;q0.prototype.onPickerCancelled=q0.prototype.onPickerCancelled;q0.prototype.onCharacterCountChanged=q0.prototype.onCharacterCountChanged;_.c([_.v(),_.h("design:type",Object)],q0.prototype,"characterCount",void 0);
_.c([_.v(),_.h("design:type",Object)],q0.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],q0.prototype,"showInputErrorMessage",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],q0.prototype,"startQnaRequestInFlight",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],q0.prototype,"modern",void 0);_.c([_.v(),_.h("design:type",Object)],q0.prototype,"buttonOverrides",void 0);
_.c([_.v(),_.h("design:type",Object)],q0.prototype,"closeButtonOverrides",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],q0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.oN),_.h("design:type",Object)],q0.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.D(_.JV.YtLiveChatItemBehavior),_.h("design:type",_.zD)],q0.prototype,"ytLiveChatItemBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],q0.prototype,"ytActionHandlerBehavior",void 0);_.c([_.Gm("yt-live-chat-text-input-field-renderer-character-count-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],q0.prototype,"onCharacterCountChanged",null);_.c([_.Gm("picker-cancelled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],q0.prototype,"onPickerCancelled",null);
_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],q0.prototype,"handleServiceRequestSent",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],q0.prototype,"handleServiceRequestCompleted",null);
_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],q0.prototype,"handleServiceRequestError",null);q0=_.c([_.E({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],q0);
_.R(q0,"yt-live-chat-qna-start-panel-renderer",function(){if(uPc===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;wEB===void 0&&(wEB=document.createElement("template"));var y=wEB;u.call(w,y.content.cloneNode(!0),q.content.firstChild);uPc=q}q=uPc;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var kl4;var tdH;var w7=function(){return _.Y.apply(this,arguments)||this};
_.O(w7,_.Y);w7.prototype.dismiss=function(){_.t7(this.hostElement,"yt-live-chat-error-message-dismiss")};
w7.prototype.edit=function(){_.t7(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.c([_.v(),_.h("design:type",Object)],w7.prototype,"data",void 0);w7=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],w7);
_.R(w7,"yt-live-chat-text-actions-error-message-renderer",function(){if(tdH===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;kl4===void 0&&(kl4=document.createElement("template"));var y=kl4;u.call(w,y.content.cloneNode(!0),q.content.firstChild);tdH=q}q=tdH;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var PuK;var XE4;var FBq;var Glh;var ui=function(){var q=_.Y.apply(this,arguments)||this;q.isDarkTheme=document.documentElement.hasAttribute("dark");q.newnessDotEligible=!1;return q};
_.O(ui,_.Y);ui.prototype.sendReaction=function(){var q,w,u=((q=this.data)==null?void 0:q.emojiId)||((w=this.data)==null?void 0:w.emoteId),y;u&&((y=this.data)==null?0:y.shouldTriggerAnimation)&&_.Pw(this.hostElement,"yt-create-user-reaction-animation",[u]);var e;(q=_.Zh((e=this.data)==null?void 0:e.onTap))&&_.H6(q,this.hostElement);this.showNewnessDot&&_.Pw(this.hostElement,"yt-hide-newness-dot")};
ui.prototype.onClick=function(q){(!q||q.clientX||q.clientY)&&this.sendReaction()};
ui.prototype.onKeyDown=function(q){q.key!=="Enter"&&q.key!==" "||q.repeat||this.sendReaction()};
_.x$.Object.defineProperties(ui.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var q,w;return!!(((q=this.data)==null?0:q.emojiId)||((w=this.data)==null?0:w.emoteId))}}});
_.c([_.v(),_.h("design:type",Object)],ui.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ui.prototype,"isDarkTheme",void 0);_.c([_.v(),_.h("design:type",Object)],ui.prototype,"newnessDotEligible",void 0);_.c([_.Z("data.maybeShowNewnessDot"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ui.prototype,"showNewnessDot",null);_.c([_.Z("data.emojiId","data.emoteId"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ui.prototype,"useYtImage",null);
ui=_.c([_.JM({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],ui);
_.R(ui,"yt-reaction-control-panel-button-view-model",function(){if(Glh===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;FBq===void 0&&(FBq=document.createElement("template"));var y=FBq;u.call(w,y.content.cloneNode(!0),q.content.firstChild);Glh=q}q=Glh;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var nhq;var HZm;var yO=function(){var q=_.Y.apply(this,arguments)||this;q.reactionControlPanelExpanded=!1;q.isDarkTheme=document.documentElement.hasAttribute("dark");q.newnessDotEligible=!1;return q};
_.O(yO,_.Y);_.k=yO.prototype;_.k.expandedButtonsChanged=function(){var q,w;_.Pj(this.hostElement,{"--expanded-buttons-height":((w=(q=this.expandedButtonsData)==null?void 0:q.length)!=null?w:0)*36+"px"})};
_.k.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}}};
_.k.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.k.onMouseLeave=function(){var q=this;this.collapseTimer=setTimeout(function(){q.reactionControlPanelExpanded=!1},500)};
_.k.onFocusIn=function(){this.onMouseEnter()};
_.k.onFocusOut=function(){this.onMouseLeave()};
_.k.onCollapsedButtonFocusIn=function(){var q=this;setTimeout(function(){var w;(w=q.expandedButtons.querySelector("button"))==null||w.focus()},100)};
_.k.onCollapsedButtonFocusOut=function(q){q.stopPropagation()};
_.x$.Object.defineProperties(yO.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var q,w;return _.db.unsafeClone((q=this.liveReactionsData)==null?void 0:q.emojiButtonData)||((w=this.data)==null?void 0:w.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var q;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((q=this.data)==null||!q.maybeShowNewnessDot)}}});
yO.prototype.expandedButtonsChanged=yO.prototype.expandedButtonsChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],yO.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],yO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.oN),_.h("design:type",Object)],yO.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],yO.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],yO.prototype,"reactionControlPanelExpanded",void 0);_.c([_.v({selectorArgs:["data.liveReactionsDataEntityKey"],selector:i5m}),_.h("design:type",Object)],yO.prototype,"liveReactionsData",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],yO.prototype,"isDarkTheme",void 0);_.c([_.v(),_.h("design:type",Object)],yO.prototype,"newnessDotEligible",void 0);
_.c([_.Z("liveReactionsData","data.expandedButtons"),_.h("design:type",Object),_.h("design:paramtypes",[])],yO.prototype,"expandedButtonsData",null);_.c([_.Z("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.v({reflectToAttribute:!0}),_.h("design:type",Object),_.h("design:paramtypes",[])],yO.prototype,"showNewnessDot",null);_.c([_.Wj("#expanded-buttons"),_.h("design:type",HTMLElement)],yO.prototype,"expandedButtons",void 0);
_.c([_.nL("expandedButtonsData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yO.prototype,"expandedButtonsChanged",null);yO=_.c([_.JM({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],yO);
_.R(yO,"yt-reaction-control-panel-view-model",function(){if(HZm===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;nhq===void 0&&(nhq=document.createElement("template"));var y=nhq;u.call(w,y.content.cloneNode(!0),q.content.firstChild);HZm=q}q=HZm;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var e5=new _.gr("yt-live-chat"),WBH=Date.parse("2024-7-24"),kn=function(){var q=_.Y.apply(this,arguments)||this;q.emojiManager=_.AV;q.newnessDotEligible=!1;q.newnessDotImpressionCounted=!1;q.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return q};
_.O(kn,_.Y);_.k=kn.prototype;_.k.emojiCustomizationEnabledChanged=function(){var q;((q=this.data)==null?0:q.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((q=e5.getCreationTime("emoji-customization-count"))&&q<WBH&&e5.set("emoji-customization-count","0"),q=Number(e5.get("emoji-customization-count"))||0,q<3&&(this.newnessDotEligible=!0,e5.set("emoji-customization-count",(q+1).toString())),this.newnessDotImpressionCounted=!0)};
_.k.hideNewnessDot=function(){this.newnessDotEligible=!1;e5.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.k.handleReactionsMute=function(q){var w=_.pN(),u=_.oV(206221),y={checkboxData:{state:q?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};w&&_.jB(w,u,y);this.reactionsMuted=q};
_.k.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.k.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}}};
_.x$.Object.defineProperties(kn.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var q;return(!((q=this.liveReactionsData)==null||!q.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
kn.prototype.liveReactionsSettingChanged=kn.prototype.liveReactionsSettingChanged;kn.prototype.emojiCustomizationEnabledChanged=kn.prototype.emojiCustomizationEnabledChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],kn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.oN),_.h("design:type",Object)],kn.prototype,"ytLiveChatReduxBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],kn.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],kn.prototype,"data",void 0);_.c([_.v(),_.h("design:type",_.VL)],kn.prototype,"emojiManager",void 0);_.c([_.v(),_.h("design:type",Object)],kn.prototype,"newnessDotEligible",void 0);_.c([_.v(),_.h("design:type",Object)],kn.prototype,"newnessDotImpressionCounted",void 0);
_.c([_.v({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:rTH}),_.h("design:type",Boolean)],kn.prototype,"liveReactionsSetting",void 0);_.c([_.v({selectorArgs:["data.liveReactionsDataEntityKey"],selector:i5m}),_.h("design:type",Object)],kn.prototype,"liveReactionsData",void 0);_.c([_.v({value:function(){var q=_.T("enable_lwe_web_mute"),w=e5.get("allow-reactions");return w===void 0?!1:!w&&q}}),
_.h("design:type",Boolean)],kn.prototype,"reactionsMuted",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],kn.prototype,"liveReactionsEnabled",null);_.c([_.nL("data.emojiCustomizationEnabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kn.prototype,"emojiCustomizationEnabledChanged",null);
_.c([_.nL("liveReactionsEnabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kn.prototype,"liveReactionsSettingChanged",null);kn=_.c([_.JM({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],kn);
_.R(kn,"yt-reaction-control-panel-overlay-view-model",function(){if(XE4===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;PuK===void 0&&(PuK=document.createElement("template"));var y=PuK;u.call(w,y.content.cloneNode(!0),q.content.firstChild);XE4=q}q=XE4;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var stj={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(q){var w=this.$.pickers.selected;if(w){_.A(this.hostElement).removeAttribute(w+"-open");var u="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(u="#picker-buttons",w==="emoji"&&_.A(this.hostElement).querySelector("#emoji-picker-button")&&(u="#emoji-picker-button"));if(u=_.A(this.hostElement).querySelector(u).querySelector("#"+w))u.active=!1}u=q;w==q&&(u=null);w!=q&&
_.A(this.hostElement).setAttribute(q+"-open","");this.$.pickers.selected=u;_.Pw(this.hostElement,"yt-live-chat-picker-changed",[u])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var ty=function(){var q=_.Y.apply(this,arguments)||this;q.numSentMessages=0;q.timeoutDurationMs=0;q.timeoutMs=0;q.lastTimeoutTimeMs=0;q.pendingMessageId="";q.hasFiredInitialFocusActions=!1;q.isBeforeFocusEnabled=!0;q.id="";q.characterCount=0;q.maxCharacterLimit=0;q.remainingCharacterCount=0;q.inputExpanded=!1;q.buttonOverrides={iconPosition:"icon-only"};q.inReplyPanel=!1;q.countdownRatio=0;q.isTooltipVisible=!1;q.tooltipTimeout=1E4;q.systemIcons=_.T("kevlar_system_icons");q.tallerEmojiPicker=_.T("live_chat_taller_emoji_picker");
q.blockSendMessageWithCountdown=!_.T("live_chat_enable_send_button_in_slow_mode");q.sendReplyMessageInFlight=!1;q.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"};q.onResize=function(){q.maybeToggleCharacterCount()};
return q};
_.O(ty,_.Y);_.k=ty.prototype;
_.k.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"}}}};
_.k.attached=function(){window.addEventListener("resize",this.onResize)};
_.k.detached=function(){window.removeEventListener("resize",this.onResize)};
_.k.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.k.sendMessage=function(){var q=this,w,u,y,e;return _.F(function(t){if(q.sendDisabled)return t.return();q.isTooltipVisible&&_.Pw(q.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(q.data.sendButton&&q.data.sendButton.buttonRenderer){q.input.completeEmojis();w=q.data.sendButton.buttonRenderer.serviceEndpoint;if(!w)return t.return();y=((u=_.C(w,_.QfZ))==null?void 0:u.clientIdPrefix)||"";e={client_message_id:y+String(q.numSentMessages++),rich_message:_.bv(q.input.liveChatRichMessageInput)};
q.pendingMessageId=e.client_message_id;q.inReplyPanel&&(q.sendReplyMessageInFlight=!0);_.GM(q.hostElement,[w,e]);q.input.setLiveChatRichMessageInput(null)}_.HI(t)})};
_.k.handleSendButtonAction=function(q){q.detail.actionName==="yt-service-request"&&(q.stopPropagation(),this.sendMessage())};
_.k.onSendCompleted=function(q,w){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(q=this.get("timeoutDurationUsec",w.data))&&this.handleTimeout(Number(q)/1E3);this.errorMessage=this.get("errorMessage",w.data);this.pendingMessageId=""};
_.k.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.Pw(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.k.handlePickerButtonToggle=function(q){q=q.detail.targetId;this.ytPickerBehavior.togglePicker_(q);if(q==="emoji")this.input.focus();else if(q==="qna-start-panel"){var w,u;(w=_.A(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(u=w.querySelector("#qna-creator-text-input-field"))==null||u.focus()}};
_.k.onComponentReplaced=function(q){var w,u;q.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((w=q.replacement.liveChatMessageInputRenderer)==null?0:(u=w.headerRenderer)==null?0:u.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.k.onEmojiSelect=function(q){this.input.focus();this.input.insertEmoji(q.detail)};
_.k.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.k.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.Pw(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.Pw(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.k.onOpenPopupAction=function(q,w){var u=this;w===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.Pw(u.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.k.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.k.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.k.focusChanged=function(){this.maybeToggleCharacterCount()};
_.k.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var q=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",q>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.k.computeId=function(){return this.data&&this.data.targetId||""};
_.k.computeSendDisabled=function(q,w,u,y){q=!!(this.blockSendMessageWithCountdown&&u||!q||w&&q>w||y);(w=_.A(this.hostElement).querySelector("#send-button"))&&w.children.length&&(w.children[0].disabled=q);return q};
_.k.handleTimeout=function(q){this.timeoutDurationMs=this.timeoutMs=q;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.k.updateTimeout=function(q){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(q-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=q,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.k.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.k.onErrorMessageEdit=function(q){this.input.setLiveChatRichMessageInput(q.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.k.errorMessageChanged=function(){var q=this;_.vj(function(){_.Pw(q.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.k.computeAuthorNameColor=function(q){var w;if(_.T("live_chat_author_name_color_usernames")&&(q==null?0:(w=q.authorName)==null?0:w.simpleText))return _.W56(_.slJ(q.authorName.simpleText));if(_.T("live_chat_seed_color_usernames")&&(q==null?0:q.authorSeedColorArgb))return _.W56(_.P6(q.authorSeedColorArgb));if(_.T("live_chat_colored_usernames"))return"#cc0000";var u;return _.T("live_chat_simple_color_usernames")&&(q==null?0:(u=q.authorName)==null?0:u.simpleText)&&(q==null?0:q.authorUsernameColorLight)&&
(q==null?0:q.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.P6(q.authorUsernameColorDark):_.P6(q.authorUsernameColorLight):""};
_.k.onIsTooltipVisibleChanged=function(){var q=_.A(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){q.hidden=!1;q.setAttribute("role","alert")},0):(q.hidden=!0,q.removeAttribute("role"))};
_.k.onFocusedChanged=function(q){this.inputFocused=q.detail.value};
_.x$.Object.defineProperties(ty.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 q;return!((q=this.data)==null||!q.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.data)==null?void 0:(w=q.pickers)==null?void 0:w.find(function(u){return u.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var q=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return q?this.ytRendererBehavior.getSimpleString(q):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
ty.prototype.onIsTooltipVisibleChanged=ty.prototype.onIsTooltipVisibleChanged;ty.prototype.errorMessageChanged=ty.prototype.errorMessageChanged;ty.prototype.onErrorMessageEdit=ty.prototype.onErrorMessageEdit;ty.prototype.onErrorMessageDismiss=ty.prototype.onErrorMessageDismiss;ty.prototype.focusChanged=ty.prototype.focusChanged;ty.prototype.characterCountChanged=ty.prototype.characterCountChanged;ty.prototype.onEmojiSelect=ty.prototype.onEmojiSelect;ty.prototype.handlePickerButtonToggle=ty.prototype.handlePickerButtonToggle;
ty.prototype.onSendError=ty.prototype.onSendError;ty.prototype.onSendCompleted=ty.prototype.onSendCompleted;ty.prototype.sendMessage=ty.prototype.sendMessage;ty.prototype.dataChanged=ty.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ty.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],ty.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.D(stj.YtPickerBehavior),_.h("design:type",Object)],ty.prototype,"ytPickerBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],ty.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.VA.YtLiveChatTooltipTargetingBehavior),_.h("design:type",Object)],ty.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ty.prototype,"hasFiredInitialFocusActions",void 0);
_.c([_.v(),_.h("design:type",Object)],ty.prototype,"isBeforeFocusEnabled",void 0);_.c([_.v(),_.h("design:type",Object)],ty.prototype,"data",void 0);_.c([_.v({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.h("design:type",Object)],ty.prototype,"id",void 0);_.c([_.v(),_.h("design:type",Object)],ty.prototype,"characterCount",void 0);_.c([_.v(),_.h("design:type",Object)],ty.prototype,"maxCharacterLimit",void 0);
_.c([_.v(),_.h("design:type",Object)],ty.prototype,"remainingCharacterCount",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ty.prototype,"inputExpanded",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],ty.prototype,"inputFocused",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],ty.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.c([_.v(),_.h("design:type",_.Z1)],ty.prototype,"participantsManager",void 0);
_.c([_.v(),_.h("design:type",Object)],ty.prototype,"buttonOverrides",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ty.prototype,"inReplyPanel",void 0);_.c([_.Z("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ty.prototype,"sendDisabled",null);_.c([_.v(),_.h("design:type",Object)],ty.prototype,"countdownRatio",void 0);
_.c([_.Z("countdownRatio"),_.h("design:type",Number),_.h("design:paramtypes",[])],ty.prototype,"countdownStrokeDashOffset",null);_.c([_.Z("countdownRatio"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ty.prototype,"countdownActive",null);_.c([_.Z("data.interactionMessage"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ty.prototype,"hasInteractionMessage",null);
_.c([_.Z("data.emojiPickerButton"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ty.prototype,"hasEmojiPickerButton",null);_.c([_.Z("data, characterCount"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ty.prototype,"showAvatar",null);_.c([_.Z("data.pickers"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ty.prototype,"hasProductPickerPanelViewModel",null);
_.c([_.v(),_.h("design:type",Object)],ty.prototype,"errorMessage",void 0);_.c([_.v(),_.h("design:type",Object)],ty.prototype,"genericErrorMessage",void 0);_.c([_.v(),_.h("design:type",Object)],ty.prototype,"isTooltipVisible",void 0);_.c([_.v(),_.h("design:type",Object)],ty.prototype,"tooltipTimeout",void 0);_.c([_.Z("data.onInitialFocusCommand"),_.h("design:type",String),_.h("design:paramtypes",[])],ty.prototype,"tooltipMessage",null);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ty.prototype,"systemIcons",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ty.prototype,"tallerEmojiPicker",void 0);_.c([_.Z("data"),_.h("design:type",String),_.h("design:paramtypes",[])],ty.prototype,"authorNameColor",null);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ty.prototype,"blockSendMessageWithCountdown",void 0);_.c([_.v(),_.h("design:type",Object)],ty.prototype,"sendReplyMessageInFlight",void 0);
_.c([_.Wj("#input"),_.h("design:type",_.p9P)],ty.prototype,"input",void 0);_.c([_.Wj("#count"),_.h("design:type",HTMLElement)],ty.prototype,"count",void 0);_.c([_.Wj("#input-container"),_.h("design:type",HTMLElement)],ty.prototype,"inputContainer",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ty.prototype,"dataChanged",null);
_.c([_.Gm("yt-live-chat-send-message"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],ty.prototype,"sendMessage",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[Event,_.lv]),_.h("design:returntype")],ty.prototype,"onSendCompleted",null);_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ty.prototype,"onSendError",null);
_.c([_.Gm("yt-live-chat-icon-toggle-button-renderer-toggle"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],ty.prototype,"handlePickerButtonToggle",null);_.c([_.Gm("yt-emoji-select"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],ty.prototype,"onEmojiSelect",null);
_.c([_.nL("characterCount"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ty.prototype,"characterCountChanged",null);_.c([_.nL("inputFocused"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ty.prototype,"focusChanged",null);_.c([_.Gm("yt-live-chat-error-message-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ty.prototype,"onErrorMessageDismiss",null);
_.c([_.Gm("yt-live-chat-error-message-edit"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],ty.prototype,"onErrorMessageEdit",null);_.c([_.nL("errorMessage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ty.prototype,"errorMessageChanged",null);_.c([_.nL("isTooltipVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ty.prototype,"onIsTooltipVisibleChanged",null);
ty=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],ty);
_.R(ty,"yt-live-chat-message-input-renderer",function(){if($Xa===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;pZA===void 0&&(pZA=document.createElement("template"));var y=pZA;u.call(w,y.content.cloneNode(!0),q.content.firstChild);$Xa=q}q=$Xa;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var NwH;var Qt4;var Po=function(){var q=_.Y.apply(this,arguments)||this;q.systemIcons=_.T("kevlar_system_icons");q.firedOnClickCommand=!1;q.inReplyPanel=!1;return q};
_.O(Po,_.Y);
Po.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"}}}};
Po.prototype.onButtonToggle=function(q){q.target.disabled||this.ytPickerBehavior.togglePicker_(q.detail.targetId)};
Po.prototype.onClick=function(){var q=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.Pw(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return q.firedOnClickCommand=!1},5E3))};
_.x$.Object.defineProperties(Po.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.data)==null?void 0:(w=q.panels)==null?void 0:w.find(function(u){return u.liveChatProductPickerPanelViewModel}))!==void 0}}});
Po.prototype.onButtonToggle=Po.prototype.onButtonToggle;_.c([_.D(stj.YtPickerBehavior),_.h("design:type",Object)],Po.prototype,"ytPickerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Po.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Po.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Po.prototype,"systemIcons",void 0);_.c([_.v({reflectToAttribute:!1}),_.h("design:type",Object)],Po.prototype,"firedOnClickCommand",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Po.prototype,"inReplyPanel",void 0);_.c([_.Z("data.pickers"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Po.prototype,"hasProductPickerPanelViewModel",null);
_.c([_.Gm("yt-live-chat-icon-toggle-button-renderer-toggle"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Po.prototype,"onButtonToggle",null);Po=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],Po);
_.R(Po,"yt-live-chat-restricted-participation-renderer",function(){if(Qt4===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;NwH===void 0&&(NwH=document.createElement("template"));var y=NwH;u.call(w,y.content.cloneNode(!0),q.content.firstChild);Qt4=q}q=Qt4;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var Xv=function(){var q=_.Y.apply(this,arguments)||this;q.genericErrorMessage=_.jN("Error, try again.");q.inReplyPanel=!1;q.hideBorder=!1;return q};
_.O(Xv,_.Y);Xv.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}}}}}};
_.x$.Object.defineProperties(Xv,{template:{configurable:!0,enumerable:!0,get:function(){return JCm()}}});
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Xv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Xv.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],Xv.prototype,"genericErrorMessage",void 0);_.c([_.v(),_.h("design:type",Object)],Xv.prototype,"inReplyPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Xv.prototype,"hideBorder",void 0);
Xv=_.c([_.JM({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],Xv);_.R(Xv,"yt-live-chat-engagement-panel-input-renderer",function(){return JCm()},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var Io4,iZj;Io4=_.oV(115994);iZj=_.oV(115993);_.Fv=function(q,w,u){var y=this;var e=u.dragDownAction;this.layer=0;this.JSC$19805_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return y.dragDownAction()}}}};
this.JSC$19805_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return y.dragDownAction()}}}};
this.fullscreen=!1;var t=_.Qz();_.tb(t,Io4,this.layer);_.tb(t,iZj,this.layer);this.dragDownAction=function(){e();_.gm(t,{visualElement:y.fullscreen?Io4:iZj})};
this.gesture=new _.FY(q,w,this.JSC$19805_watchConfig,"pandown");this.attach()};
_.Fv.prototype.attach=function(){this.gesture.attach()};
_.Fv.prototype.detach=function(){this.gesture.detach()};
_.Fv.prototype.update=function(q){this.fullscreen=q;this.gesture.config=q?this.JSC$19805_watchFullScreenConfig:this.JSC$19805_watchConfig};var rjH={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(q){if(q&&q.length==1&&Array.isArray(q[0].loggingUrls)){q=_.db.unsafeClone(q[0]);var w=this.macros||{},u=this.getAdModuleClient_();if(!u)return _.Hw();q.loggingUrls.forEach(function(y){if(y.baseUrl){var e=y.baseUrl;var t=w;t=t===void 0?{}:t;e=u.getOptions().includes("replaceUrlMacros")?_.jYZ(u,"replaceUrlMacros",{url:e,additionalMapping:t}):e;y.baseUrl=e}},this);
q=[q]}return _.GM(this.hostElement,q)},
getAdModuleClient_:function(){var q=_.xo(this);return q?(q=q.getPlayer())?new _.HF(q):null:null}}]};var U3h;var G1=function(){var q=_.Y.apply(this,arguments)||this;q.isCollapsed=!1;q.modernPanels=_.T("kevlar_watch_modern_panels");q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return q};
_.O(G1,_.Y);_.k=G1.prototype;_.k.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.k.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.k.onDonateTap=function(){var q=this.get("data.donateButton.buttonRenderer.command");if(q){var w=_.pN(),u=this.get("data.donateButton.buttonRenderer.trackingParams");w&&u&&_.jB(w,_.Tj(u));this.ytOpenPopupBehavior.openPopup(q)}};
_.k.onShowMore=function(){this.isCollapsed=!1;var q=_.pN(),w=this.get("data.expandButton.buttonRenderer.trackingParams");q&&w&&_.jB(q,_.Tj(w))};
_.k.onShowLess=function(){this.isCollapsed=!0};
_.k.dataChanged=function(){_.Pj(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.k.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.k.handleUpdate=function(q){if(q=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",q))this.set("data.startLabel",q.startLabel),this.set("data.endLabel",q.endLabel),this.set("data.progress",q.progress),this.set("data.amountRaisedLabel",q.amountRaisedLabel),this.dataChanged()};
_.k.handleOpenPopupAction=function(q){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",q)&&_.Pw(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.k.computeHeaderBackgroundUrl=function(q,w){if(q)return w?q.headerBackgroundDarkUrl:q.headerBackgroundUrl};
_.k.isProgressBarVisible=function(q){return!(!q||q.progress===void 0)};
_.k.headerBackgroundClass=function(){return _.Et("HTML_DIR")==="rtl"?"flip":""};
G1.prototype.dataChanged=G1.prototype.dataChanged;_.c([_.D(_.ux.YtOpenPopupBehavior),_.h("design:type",Object)],G1.prototype,"ytOpenPopupBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],G1.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],G1.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],G1.prototype,"isCollapsed",void 0);_.c([_.v({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.h("design:type",String)],G1.prototype,"headerBackgroundUrl",void 0);_.c([_.v(),_.h("design:type",Boolean)],G1.prototype,"isDarkTheme",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],G1.prototype,"modernPanels",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],G1.prototype,"dataChanged",null);G1=_.c([_.E({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],G1);
_.R(G1,"ytd-donation-shelf-renderer",function(){if(U3h!==void 0)return U3h;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return U3h=q},{mode:1});var Tw6;var nI=function(){return _.Y.apply(this,arguments)||this};
_.O(nI,_.Y);_.c([_.v(),_.h("design:type",Object)],nI.prototype,"data",void 0);nI=_.c([_.E({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],nI);
_.R(nI,"ytd-donation-unavailable-renderer",function(){if(Tw6!==void 0)return Tw6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Tw6=q},{mode:1});var CuA;var Ho=function(){return _.Y.apply(this,arguments)||this};
_.O(Ho,_.Y);Ho.prototype.computeIconType=function(q){return q?"yt-icons:"+q.toLowerCase():null};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ho.prototype,"data",void 0);Ho=_.c([_.E({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Ho);
_.R(Ho,"ytd-limited-state-message-renderer",function(){if(CuA!==void 0)return CuA;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return CuA=q},{mode:1});var d3H;var Wo=function(){return _.Y.apply(this,arguments)||this};
_.O(Wo,_.Y);Wo.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Wo.prototype.onTap=function(q){var w=this.data&&this.data.endpoint;w&&!_.LT(_.SQ(q),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.t7(this.hostElement,"yt-navigate",{endpoint:w})};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Wo.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Wo.prototype,"data",void 0);Wo=_.c([_.E({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Wo);
_.R(Wo,"ytd-autotagging-metadata-renderer",function(){if(d3H!==void 0)return d3H;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return d3H=q},{mode:1});var OZH;var sU=function(){return _.Y.apply(this,arguments)||this};
_.O(sU,_.Y);sU.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],sU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],sU.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],sU.prototype,"data",void 0);sU=_.c([_.E({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],sU);
_.R(sU,"ytd-autotagging-metadata-row-renderer",function(){if(OZH!==void 0)return OZH;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return OZH=q},{mode:1});var oh4;var Vdh;var N0=function(){var q=_.Y.apply(this,arguments)||this;q.engagementPanelContent=!1;return q};
_.O(N0,_.Y);N0.prototype.computeHasDividerLine=function(q,w){return q&&!w};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],N0.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.h("design:type",Boolean)],N0.prototype,"hasDividerLine",void 0);_.c([_.v(),_.h("design:type",Object)],N0.prototype,"engagementPanelContent",void 0);
N0=_.c([_.E({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],N0);
_.R(N0,"ytd-metadata-row-header-renderer",function(){if(Vdh!==void 0)return Vdh;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Vdh=q},{mode:1});var fox;var QO=function(){return _.Y.apply(this,arguments)||this};
_.O(QO,_.Y);QO.prototype.computeHasDividerLine=function(q){return q};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],QO.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],QO.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.h("design:type",Boolean)],QO.prototype,"hasDividerLine",void 0);QO=_.c([_.E({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],QO);
_.R(QO,"ytd-metadata-row-renderer",function(){if(fox!==void 0)return fox;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return fox=q},{mode:1});var m3A;var Ih=function(){return _.Y.apply(this,arguments)||this};
_.O(Ih,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ih.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ih.prototype,"data",void 0);Ih=_.c([_.E({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],Ih);
_.R(Ih,"ytd-metadata-with-image-row-renderer",function(){if(m3A!==void 0)return m3A;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return m3A=q},{mode:1});var AjB;var ii=function(){var q=_.Y.apply(this,arguments)||this;q.rounded=!0;q.fixie=!1;q.fullWidth=!1;return q};
_.O(ii,_.Y);_.k=ii.prototype;_.k.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.k.onDataChanged=function(){var q=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(w){q.onEndpointLinkKeyPress(w)}))};
_.k.onEndpointLinkKeyPress=function(q){q.target===this.endpointLink&&q.keyCode===13&&_.t7(this.hostElement,"click")};
_.k.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var q;if((q=this.data)==null?0:q.endpoint)_.nq(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.k.onYtNavigate=function(q){this.endpointHref||(q.stopPropagation(),q.preventDefault())};
_.k.onInformationButtonContainerClick=function(q){q.target.id!=="information-button-container"&&(q.stopPropagation(),q.preventDefault())};
_.k.computeStyle=function(q){return q};
_.k.computeIsThumbnailStyle=function(q){return q==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.k.computeThumbnailWidth=function(q){switch(q){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}};
_.k.computeThumbnailObjectFit=function(q){switch(q){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.x$.Object.defineProperties(ii.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?0:q.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
ii.prototype.onYtNavigate=ii.prototype.onYtNavigate;ii.prototype.onClick=ii.prototype.onClick;ii.prototype.onDataChanged=ii.prototype.onDataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],ii.prototype,"componentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],ii.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],ii.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],ii.prototype,"componentStyle",void 0);_.c([_.v({computed:"computeIsThumbnailStyle(data.style)"}),_.h("design:type",Boolean)],ii.prototype,"isThumbnailStyle",void 0);_.c([_.v({computed:"computeThumbnailObjectFit(data.style)"}),_.h("design:type",String)],ii.prototype,"thumbnailObjectFit",void 0);
_.c([_.v({computed:"computeThumbnailWidth(data.style)"}),_.h("design:type",Number)],ii.prototype,"thumbnailWidth",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ii.prototype,"rounded",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ii.prototype,"fixie",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ii.prototype,"fullWidth",void 0);_.c([_.Wj("#endpoint-link"),_.h("design:type",HTMLAnchorElement)],ii.prototype,"endpointLink",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ii.prototype,"onDataChanged",null);_.c([_.Z("data.endpoint"),_.h("design:type",Object),_.h("design:paramtypes",[])],ii.prototype,"endpointHref",null);_.c([_.Gm("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],ii.prototype,"onClick",null);
_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],ii.prototype,"onYtNavigate",null);ii=_.c([_.E({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],ii);
_.R(ii,"ytd-rich-metadata-renderer",function(){if(AjB!==void 0)return AjB;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return AjB=q},{mode:_.kB("kevlar_poly_si_batch_j075")?1:2});var Jj6;var r7=function(){var q=_.Y.apply(this,arguments)||this;q.fixie=!1;q.fullWidth=!1;return q};
_.O(r7,_.Y);r7.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
r7.prototype.computeHasDividerLine=function(q){return q};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],r7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],r7.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.h("design:type",Boolean)],r7.prototype,"hasDividerLine",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],r7.prototype,"fixie",void 0);_.c([_.v(),_.h("design:type",Object)],r7.prototype,"fullWidth",void 0);
r7=_.c([_.E({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],r7);
_.R(r7,"ytd-rich-metadata-row-renderer",function(){if(Jj6!==void 0)return Jj6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Jj6=q},{mode:1});var UU=function(){var q=_.Y.apply(this,arguments)||this;q.engagementPanelContent=!1;q.fixie=!1;q.fullWidth=!1;return q};
_.O(UU,_.Y);
UU.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"}}}};
UU.prototype.computeCollapsibleItems=function(q,w,u){return q===void 0||w===void 0||u===void 0||u?[]:q.slice(w)};
UU.prototype.computeAlwaysShownItems=function(q,w){return q&&q.length?q.slice(0,w):[]};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],UU.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],UU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],UU.prototype,"data",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],UU.prototype,"collapsed",void 0);
_.c([_.v({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.h("design:type",Array)],UU.prototype,"alwaysShownItems",void 0);_.c([_.v({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.h("design:type",Array)],UU.prototype,"collapsibleItems",void 0);_.c([_.v(),_.h("design:type",Object)],UU.prototype,"engagementPanelContent",void 0);_.c([_.v(),_.h("design:type",Object)],UU.prototype,"fixie",void 0);
_.c([_.v(),_.h("design:type",Object)],UU.prototype,"fullWidth",void 0);UU=_.c([_.E({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],UU);
_.R(UU,"ytd-metadata-row-container-renderer",function(){if(oh4!==void 0)return oh4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return oh4=q},{mode:1});var zLV;var T1=function(){var q=_.Y.apply(this,arguments)||this;q.currentPageUrl="";q.baseUrl="";q.isHiddenByUser=null;q.hidden=!1;q.showAboveScrim=!1;q.watchNextGrid=_.T("kevlar_watch_grid");q.modernButtons=_.T("web_modern_buttons");q.roundedContainer=!0;q.noBorder=!1;q.roundBackground=!_.T("live_chat_round_background_killswitch");q.overflowHideChat=_.T("live_chat_overflow_hide_chat");q.forceDarkTheme=!1;q.theaterWatchWhile=!1;q.isListeningForPlayerProgress=!1;q.JSC$19841_playerEvents=new Map;q.isFrameReady=
!1;q.player=null;q.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 q};
_.O(T1,_.Y);_.k=T1.prototype;_.k.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.X4(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.k.created=function(){var q=this;this.handleIframeEventListener=function(w){q.handleIframeEvent(w)};
this.handleKeyboardEventListener=function(w){q.handleKeyboardEvent(w)};
this.JSC$19841_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19841_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19841_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19841_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19841_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.k.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()};
_.k.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};
_.k.computeBaseUrl=function(q){var w="/live_chat";this.isChatReplay()&&(w="/live_chat_replay");return _.BJ(_.KM(_.MF(_.h1(q),w),null),"").toString()};
_.k.dataChanged=function(){_.T("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.k.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var q=this.url;if(this.isChatReplay()&&this.player){var w=Math.floor(this.player.getProgressState().current*1E3);q=_.lI(_.h1(q),"playerOffsetMs",w.toString()).toString()}w=this.chatframe;try{var u=q==="about:blank"?_.nvJ:_.UY(q),y=w.contentDocument.location,e=_.ow(u);e!==void 0&&y.replace(e)}catch(t){w.src=q}}};
_.k.collapsedChanged=function(){_.t7(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.k.handleIframeEvent=function(q){if(q&&this.baseUrl.startsWith(q.origin)&&q.source===this.chatframe.contentWindow&&_.er(q.data))if(q.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(q);else if(q.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(q.data["yt-show-feedback-dialog"]){var w=_.tG().resolve(_.kF(_.Zsx));if(w){var u=q.ports,y;u&&u.length&&(y=function(){u[0].postMessage({})});
q=q.data["yt-show-feedback-dialog"];w.showFeedbackDialog(q.customProductData,q.feedbackContent,y,q.bucket)}}else if(q.data["yt-show-survey"])_.t7(this.hostElement,"yt-show-survey",q.data["yt-show-survey"]);else if(q.data["yt-purchase-membership"])_.tG().resolve(_.PG).resolveCommand(q.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(q.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(q.data["yt-tunnel-out-live-service-request"]);else if(q.data["yt-user-activity"])_.tq();
else if(q.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(q.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(q.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(q.data["yt-open-popup"]);else if(q.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(q.data["yt-log-flow-logging-event-command"]);else if(q.data["yt-hide-live-chat"])this.onShowHideChat();else q.data["yt-report-moderation-state-log"]&&
this.player&&(w={cpn:this.player.getVideoData().cpn},_.pn("liveChatBeingModerated",w))};
_.k.attachLiveChatResponseVeTrackingParams=function(q){q=_.Tj(q);var w=_.pN(),u=_.hP("liveChatRenderer.trackingParams",this.data);w&&u&&_.EC(w,_.Tj(u),q)};
_.k.handleBuyflowMessages=function(q){var w=q.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,u=q.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,y=q.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.Ffo(_.kX(_.cM),w.replace(/-/g,"+").replace(/_/g,"/"),function(e){q.ports[0].postMessage({success:!0,buyFlowResponse:e})},void 0,function(e){q.ports[0].postMessage({success:!1,
error:e&&e.message||"Buyflow rejected without error."})},_.UC().get("hl"),void 0,function(){q.ports[0].postMessage({closed:!0})},u,y)};
_.k.setupPlayerProgressRelay=function(){var q=this;if(!this.isListeningForPlayerProgress){var w=_.qI();w!=null&&w.getPlayerPromise&&(w.getPlayerPromise().then(function(u){q.playerApiReady(u)}),this.isListeningForPlayerProgress=!0)}};
_.k.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.k.playerApiReady=function(q){this.setPlayer(q)};
_.k.playerProgressHandler=function(){if(this.player){var q=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":q.current})}};
_.k.playerAdStartHandler=function(q){this.postToContentWindow({"yt-player-ad-start":q})};
_.k.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.k.playerStateChangeHandler=function(q){this.postToContentWindow({"yt-player-state-change":q})};
_.k.setPlayer=function(q){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19841_playerEvents);q&&(this.player=q,this.ytPlayerListenerBehavior.listenToPlayerEvents(q,this.JSC$19841_playerEvents),_.t7(this.hostElement,"player-api-ready"))};
_.k.liveChatPageUrl=function(q,w,u,y){return!u||w?"about:blank":u.liveChatRenderer?(w=_.h1(this.currentPageUrl).JSC$7931_queryData_,HEH(w),q=_.h1(q),w.add("continuation",u.liveChatRenderer.continuations[0].reloadContinuationData.continuation),u=_.$M()==="USER_INTERFACE_THEME_DARK",(y||u)&&w.add("dark_theme","true"),_.KM(q,w),y=_.h1(q.toString()),u=y.JSC$7931_queryData_,"SESSION_INDEX"in _.Yw&&(u.add("authuser",_.Et("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.Yw&&u.add("pageId",_.Et("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.Yw&&u.add("sdc",_.Et("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),y.toString()):""};
_.k.isCollapsed=function(q,w){return w!==null?w:this.isChatReplay()||q&&q.conversationBarRenderer&&q.conversationBarRenderer.availabilityMessage?!0:q?q.liveChatRenderer?q.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.T("live_chat_hide_premiere_replay_message")||q.conversationBarRenderer&&q.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.k.isHidden=function(q,w,u){var y=w&&w.conversationBarRenderer&&w.conversationBarRenderer.availabilityMessage,e=w&&w.liveChatRenderer&&w.liveChatRenderer.showHideButton,t=w&&w.liveChatRenderer&&w.liveChatRenderer.showButton;return u&&q&&!y&&!t||!u&&q&&!y&&!e?!0:w&&w.liveChatRenderer&&w.liveChatRenderer.initialDisplayState?w.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.k.computeButtonOverride=function(q,w){if(q&&w)return{type:"outline"}};
_.k.setCollapsedState=function(q){_.C(q,_.usj)&&(this.isHiddenByUser=!!_.C(q,_.usj).collapsed,!this.isHiddenByUser&&_.T("enable_teaser_framework_web_client")&&_.Pw(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.k.forwardReduxActionToIframe=function(q){this.postToContentWindow({"yt-live-chat-forward-redux-action":q})};
_.k.onLoopRangeChange=function(q){this.showAboveScrim=!(q==null||!q.postId)};
_.k.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.k.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.k.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.k.sendDarkThemePostMessage=function(q){this.postToContentWindow({"yt-live-chat-set-dark-theme":q})};
_.k.onLiveChatBuyFlowCallback=function(q){this.postToContentWindow({"yt-live-chat-buy-flow-callback":q})};
_.k.handleKeyboardEvent=function(q){(0,_.db.containsValue)(n_H,q.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:q.type,keyCode:q.keyCode}})};
_.k.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.k.postToContentWindow=function(q){if(this.isFrameReady)try{var w=window.location.protocol+"//"+window.location.host,u;(u=this.chatframe)!=null&&u.contentWindow?this.chatframe.contentWindow.postMessage(q,w):_.Y8(new _.fv("Tried posting a message to an iframe with no content window",q))}catch(y){_.vm(y)}};
_.k.shouldHideChatFrame=function(q){return q&&_.T("hide_live_chat_button_when_collapsed")};
_.x$.Object.defineProperties(T1.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.T("live_chat_overflow_hide_chat")||_.T("web_watch_chat_hide_button_killswitch"))return _.T("live_chat_overflow_hide_chat");var q,w,u,y;return!!((q=this.data)==null?0:(w=q.liveChatRenderer)==null?0:(u=w.header)==null?0:(y=u.liveChatHeaderRenderer)==null?0:y.collapseButton)}}});
T1.prototype.collapsedChanged=T1.prototype.collapsedChanged;T1.prototype.urlChanged=T1.prototype.urlChanged;T1.prototype.dataChanged=T1.prototype.dataChanged;T1.prototype.onShowHideChat=T1.prototype.onShowHideChat;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],T1.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],T1.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.b7.YtPlayerListenerBehavior),_.h("design:type",_.Yp)],T1.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.D(_.ux.YtOpenPopupBehavior),_.h("design:type",Object)],T1.prototype,"ytOpenPopupBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],T1.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],T1.prototype,"currentPageUrl",void 0);
_.c([_.v({computed:"computeBaseUrl(currentPageUrl,data)"}),_.h("design:type",Object)],T1.prototype,"baseUrl",void 0);_.c([_.v({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.h("design:type",String)],T1.prototype,"url",void 0);_.c([_.v(),_.h("design:type",Object)],T1.prototype,"isHiddenByUser",void 0);_.c([_.v({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.h("design:type",Object)],T1.prototype,"hidden",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.h("design:type",Boolean)],T1.prototype,"collapsed",void 0);_.c([_.v({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.h("design:type",Boolean)],T1.prototype,"hideChatFrame",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],T1.prototype,"showAboveScrim",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],T1.prototype,"watchNextGrid",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],T1.prototype,"modernButtons",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],T1.prototype,"roundedContainer",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],T1.prototype,"noBorder",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],T1.prototype,"roundBackground",void 0);
_.c([_.v({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.h("design:type",Object)],T1.prototype,"toggleButtonOverride",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],T1.prototype,"overflowHideChat",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],T1.prototype,"forceDarkTheme",void 0);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],T1.prototype,"enableShowWithoutHideChatButton",null);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],T1.prototype,"theaterWatchWhile",void 0);_.c([_.Wj("#chatframe"),_.h("design:type",HTMLIFrameElement)],T1.prototype,"chatframe",void 0);_.c([_.Gm("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],T1.prototype,"onShowHideChat",null);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],T1.prototype,"dataChanged",null);
_.c([_.nL("url"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],T1.prototype,"urlChanged",null);_.c([_.nL("collapsed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],T1.prototype,"collapsedChanged",null);T1=_.c([_.E({is:"ytd-live-chat-frame",disableElementRegistration:!0})],T1);
_.R(T1,"ytd-live-chat-frame",function(){if(zLV!==void 0)return zLV;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return zLV=q},{mode:1});var aoq;var CI=function(){var q=_.Y.apply(this,arguments)||this;q.modern=_.T("web_modern_buttons");q.buttonOverrides={style:"call-to-action",type:"filled"};return q};
_.O(CI,_.Y);CI.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=_.Ae(this.data.backgroundColor)))};
CI.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var q=this.getFormattedStringLoggingDirectives(this.data.headline);q&&this.rendererBehavior.logExplicitClick(q)}};
CI.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var q=this.getFormattedStringLoggingDirectives(this.data.description);q&&this.rendererBehavior.logExplicitClick(q)}};
CI.prototype.getFormattedStringLoggingDirectives=function(q){return q&&q.runs&&q.runs.length>0&&q.runs[0]&&q.runs[0].loggingDirectives?q.runs[0].loggingDirectives:null};
CI.prototype.dataChanged=CI.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],CI.prototype,"rendererBehavior",void 0);_.c([_.D(rjH.YtMacroReplacementBehavior),_.h("design:type",Object)],CI.prototype,"macroReplacementBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],CI.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],CI.prototype,"navigationEndpoint",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],CI.prototype,"enableColors",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],CI.prototype,"modern",void 0);_.c([_.v(),_.h("design:type",Object)],CI.prototype,"buttonOverrides",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CI.prototype,"dataChanged",null);CI=_.c([_.E({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],CI);
_.R(CI,"ytd-action-basic-immersive-content-renderer",function(){if(aoq!==void 0)return aoq;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return aoq=q},{mode:1});var D3a;var ZZc;var d7=function(){return _.Y.apply(this,arguments)||this};
_.O(d7,_.Y);d7.prototype.dataChanged=function(){var q;((q=this.data)==null?void 0:q.backgroundColor)!==void 0&&_.Pj(this.hostElement,{"--bgu-color":_.Ae(this.data.backgroundColor)})};
d7.prototype.onImageTileClick=function(){var q;((q=this.data)==null?0:q.navigationEndpoint)&&_.t7(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var w;((w=this.data)==null?0:w.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.x$.Object.defineProperties(d7.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var q;if(((q=this.data)==null?void 0:q.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 q;return((q=this.data)==null?void 0:q.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var q,w,u;if(((q=this.data)==null?void 0:(w=q.detailsLine)==null?void 0:w.texts)!=null&&((u=this.data)==null?void 0:u.detailsLine.texts.length)>0){var y;return(y=this.data)==null?void 0:y.detailsLine.texts.map(function(e){return e.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var q,w,u;if(((q=this.data)==null?void 0:(w=q.optionalDetailsLine)==null?void 0:w.texts)!=null&&((u=this.data)==null?void 0:u.optionalDetailsLine.texts.length)>0){var y;return(y=this.data)==null?void 0:y.optionalDetailsLine.texts.map(function(e){return e.text}).join("")}return null}}});
d7.prototype.dataChanged=d7.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],d7.prototype,"rendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],d7.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],d7.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("data.backgroundColor"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],d7.prototype,"hasBackgroundColor",null);
_.c([_.Z("data.objectFit"),_.h("design:type",Object),_.h("design:paramtypes",[])],d7.prototype,"getObjectFit",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data.tileRenderingStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],d7.prototype,"hasTileMetadata",null);_.c([_.Z("data.detailsLine"),_.h("design:type",Object),_.h("design:paramtypes",[])],d7.prototype,"getSecondaryDetails",null);
_.c([_.Z("data.optionalDetailsLine"),_.h("design:type",Object),_.h("design:paramtypes",[])],d7.prototype,"getOptionalDetails",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],d7.prototype,"dataChanged",null);d7=_.c([_.E({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],d7);
_.R(d7,"ytd-image-tile-renderer",function(){if(ZZc!==void 0)return ZZc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return ZZc=q},{mode:1});var pEK;var OU=function(){return _.Y.apply(this,arguments)||this};
_.O(OU,_.Y);OU.prototype.getOpenLinkIcon=function(){return _.T("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
OU.prototype.onSitelinkTap=function(){_.t7(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.T("kevlar_command_handler_migration_killswitch"))_.nq(this.hostElement,this.data.clickCommands,this.hostElement);else for(var q=_.P(this.data.clickCommands),w=q.next();!w.done;w=q.next())this.ytComponentBehavior.resolveCommand(w.value)};
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],OU.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],OU.prototype,"rendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],OU.prototype,"data",void 0);OU=_.c([_.E({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],OU);
_.R(OU,"ytd-sitelink-renderer",function(){if(pEK!==void 0)return pEK;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return pEK=q},{mode:1});var oh=function(){var q=_.Y.apply(this,arguments)||this;q.paddingFix=_.T("enable_ads_web_ep_buenos_aires_and_padding_fix");return q};
_.O(oh,_.Y);oh.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"}}}};
oh.prototype.dataChanged=function(){var q=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(w){w.clickTrackingParams&&delete w.clickTrackingParams;q.ytMacroReplacementBehavior.sendServiceRequestAction([w])})};
oh.prototype.shouldHideFooter=function(q){return!(q&&_.T("use_ads_engagement_panel_desktop_footer_cta"))};
_.x$.Object.defineProperties(oh.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.data)==null?void 0:q.imageTileRenderers)===void 0||((w=this.data)==null?void 0:w.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(u){var y;return(y=_.C(u,Id6))==null?void 0:y.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.data)==null?void 0:q.imageTileRenderers)===void 0||((w=this.data)==null?void 0:w.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(u){var y;return((y=_.C(u,Id6))==null?void 0:y.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
oh.prototype.dataChanged=oh.prototype.dataChanged;_.c([_.D(rjH.YtMacroReplacementBehavior),_.h("design:type",Object)],oh.prototype,"ytMacroReplacementBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],oh.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],oh.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],oh.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],oh.prototype,"paddingFix",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("data.imageTileRenderers"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],oh.prototype,"removeBorderFromImageTiles",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data.imageTileRenderers"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],oh.prototype,"useFooteredMetadataRenderingStyle",null);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oh.prototype,"dataChanged",null);oh=_.c([_.E({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],oh);
_.R(oh,"ytd-action-engagement-panel-content-renderer",function(){if(D3a!==void 0)return D3a;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return D3a=q},{mode:1});var $3j;var vh4=_.LL(function(q){var w=q.data;var u=q.customCommandResolver;q=_.Bm();_.Sg(q,function(){return w().interaction},u);
_.k$(q,{visibilityCallback:function(y){var e,t=(e=w().interaction)==null?void 0:e.onFirstVisible;y&&t&&_.bn(t)},
showOption:_.R1});return _.W("ad-grid-card-image-full-metadata-view-model",{class:function(){var y;return((y=w().interaction)==null?0:y.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:q,"aria-label":function(){var y,e;return(y=w().interaction)==null?void 0:(e=y.accessibility)==null?void 0:e.label}},_.W("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.W(_.OF,{data:function(){return w().adImage}},{adImageViewModel:function(y){return _.W(_.u_,{data:y.data,
customCommandResolver:u})}})),_.W("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.W(_.r,{cond:function(){return w().headline},
then:function(y){return _.W(_.Lr,{text:y,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.W(_.r,{cond:function(){return w().detailsLine},
then:function(y){return _.W("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.W(_.OF,{data:y},{adDetailsLineViewModel:function(e){return _.W(_.Lz,{data:e.data,customCommandResolver:u,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.W(_.r,{cond:function(){return w().secondaryDetailsLine},
then:function(y){return _.W("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.W(_.OF,{data:y},{adDetailsLineViewModel:function(e){return _.W(_.Lz,{data:e.data,customCommandResolver:u,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Ci");var bZA=_.LL(function(q){var w=q.data;var u=q.customCommandResolver;q=_.Bm();_.Sg(q,function(){return w().interaction},u);
_.k$(q,{visibilityCallback:function(y){var e,t=(e=w().interaction)==null?void 0:e.onFirstVisible;y&&t&&_.bn(t)},
showOption:_.R1});return _.W("ad-grid-card-image-view-model",{class:function(){var y;return((y=w().interaction)==null?0:y.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:q,"aria-label":function(){var y,e;return(y=w().interaction)==null?void 0:(e=y.accessibility)==null?void 0:e.label}},_.W(_.OF,{data:function(){return w().adImage}},{adImageViewModel:function(y){return _.W(_.u_,{data:y.data,
customCommandResolver:u})}}),_.W("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.W(_.OF,{data:function(){return w().adCardBadge}},{adCardBadgeViewModel:_.Nij})))},"Di");var Y5V=_.LL(function(q){var w=q.data;var u=q.customCommandResolver;q=_.Bm();_.Sg(q,function(){return w().interaction},u);
_.k$(q,{visibilityCallback:function(y){var e,t=(e=w().interaction)==null?void 0:e.onFirstVisible;y&&t&&_.bn(t)},
showOption:_.R1});return _.W("ad-grid-card-text-view-model",{class:function(){var y;return((y=w().interaction)==null?0:y.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:q,"aria-label":function(){var y,e;return(y=w().interaction)==null?void 0:(e=y.accessibility)==null?void 0:e.label}},_.W("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.W(_.r,{cond:function(){return w().title},
then:function(y){return _.W(_.Lr,{text:y,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.W("div",{class:function(){return _.T("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.W(_.mL,{each:function(){var y;
return((y=w())==null?void 0:y.descriptions)||[]},
keyBy:"INDEX"},function(y){return _.W(_.Lr,{text:y,className:function(){return _.T("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.W("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.W(_.OF,{data:function(){return w().moreInfoButton}},{adButtonViewModel:function(y){return _.W(_.Sj,{data:y.data,
customCommandResolver:u})}})))},"Ei");var ghV=_.LL(function(q){var w=q.data;var u=q.customCommandResolver;var y=q.adGridCardCollectionStyle;q=_.Bm();_.k$(q,{visibilityCallback:function(e){var t,X=(t=w().interaction)==null?void 0:t.onFirstVisible;e&&X&&_.bn(X)},
showOption:_.R1});return _.W("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:q,style:function(){return"grid-template-columns: repeat("+JTj(y?y():w().style)+", minmax(0, 1fr));"}},_.W(_.OF,{data:function(){var e;
return(e=w())==null?void 0:e.gridCards}},{adGridCardImageViewModel:function(e){return _.W(bZA,{data:e.data,
customCommandResolver:u})},
adGridCardImageFullMetadataViewModel:function(e){return _.W(vh4,{data:e.data,customCommandResolver:u})},
adGridCardTextViewModel:function(e){return _.W(Y5V,{data:e.data,customCommandResolver:u})}}))},"Fi");_.q9(_.LL(function(q){var w=q.data;q=_.Bm();_.Sg(q,function(){return w().interaction},zR6);
_.k$(q,{visibilityCallback:function(u){var y,e=(y=w().interaction)==null?void 0:y.onFirstVisible;u&&e&&_.bn(e)},
showOption:_.R1});return _.W("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:q},_.W("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.W(_.r,{cond:_.cSJ("(min-width: "+((0,_.fl)()+_.pb)+"px)"),then:function(){return _.W(_.OF,{data:function(){return w().adGridCardCollection}},{adGridCardCollectionViewModel:function(u){return _.W(ghV,{data:u.data,
customCommandResolver:zR6})}})},
else:function(){return _.W(_.OF,{data:function(){return w().adGridCardCollection}},{adGridCardCollectionViewModel:function(u){return _.W(ghV,{data:u.data,
customCommandResolver:zR6,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.W("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.W(_.OF,{data:function(){return w().adButton}},{adButtonViewModel:function(u){return _.W(_.Sj,{data:u.data,
customCommandResolver:zR6})}})))},"Gi"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.pK}});_.q9(_.LL(function(q){var w=q.data;q=_.Bm();_.Sg(q,function(){return w().interaction},ajB);
_.k$(q,{visibilityCallback:function(u){var y,e=(y=w().interaction)==null?void 0:y.onFirstVisible;u&&e&&_.bn(e)},
showOption:_.R1});return _.W("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:q},_.W("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.W(_.OF,{data:function(){if(_.cSJ("(min-width: "+((0,_.fl)()+_.pb)+"px)")())var u=w().adGridCardCollection;else{u=Object.assign({},_.C(w().adGridCardCollection,iEK));var y;u.gridCards!==void 0&&((y=u.gridCards)==null?void 0:y.length)>1?u.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":u.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";u={adGridCardCollectionViewModel:u}}return u}},{adGridCardCollectionViewModel:function(u){return _.W(ghV,{data:u.data,
customCommandResolver:ajB})}})),_.W("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.W(_.OF,{data:function(){return w().adButton}},{adButtonViewModel:function(u){return _.W(_.Sj,{data:u.data,
customCommandResolver:ajB})}})))},"Hi"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.pK}});var VO=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return q};
_.O(VO,_.Y);_.k=VO.prototype;_.k.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"}}}};
_.k.attached=function(){this.getDataFromPlayerAndRender()};
_.k.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.k.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.k.getDataFromPlayerAndRender=function(){var q=this,w=_.xo(this.hostElement);w&&w.getPlayerPromise().then(function(u){q.getCachedDataAndListen(u)})};
_.k.getCachedDataAndListen=function(q){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(q,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(q,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=q)};
_.k.resolveCachedActions=function(){var q=_.hP("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(q=q&&q())&&!_.db.isEmpty(q)&&this.sendUpdateEngagementPanelAction(q);(q=(q=_.hP("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&q())&&!_.db.isEmpty(q)&&this.sendChangeEngagementPanelVisibilityAction(q);(q=(q=_.hP("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&q())&&!_.db.isEmpty(q)&&this.sendScrollToEngagementPanelCommand(q)};
_.k.sendUpdateEngagementPanelAction=function(q){var w;_.Pw(this.hostElement,"yt-update-engagement-panel-action",[(w=_.db.get(q,"action"))!=null?w:q])};
_.k.sendChangeEngagementPanelVisibilityAction=function(q){_.Pw(this.hostElement,"yt-change-engagement-panel-visibility-action",[q])};
_.k.sendScrollToEngagementPanelCommand=function(q){_.Pw(this.hostElement,"yt-scroll-to-engagement-panel-command",[q])};
_.k.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.T("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Y8(Error("gm"))};
VO.prototype.dataChanged=VO.prototype.dataChanged;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],VO.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],VO.prototype,"componentBehavior",void 0);_.c([_.D(_.b7.YtPlayerListenerBehavior),_.h("design:type",_.Yp)],VO.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],VO.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],VO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],VO.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],VO.prototype,"player",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],VO.prototype,"dataChanged",null);VO=_.c([_.E({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],VO);
_.R(VO,"ytd-ads-engagement-panel-content-renderer",function(){if($3j!==void 0)return $3j;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);
return $3j=q},{mode:1});var EhB;var fI=function(){var q=_.Y.apply(this,arguments)||this;q.player=null;q.JSC$19878_playerEvents=new Map;q.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return q};
_.O(fI,_.Y);_.k=fI.prototype;_.k.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]]"}}}}}};
_.k.created=function(){this.player=null;this.JSC$19878_playerEvents=new Map;this.JSC$19878_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19878_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19878_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19878_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.k.attached=function(){var q=this,w=_.xo();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));w&&w.getPlayerPromise().then(function(u){q.setPlayer(u);q.set("isPageLoad",!1)})};
_.k.setPlayer=function(q){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19878_playerEvents);this.set("player",q);q&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(q,this.JSC$19878_playerEvents),q.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.k.onLoopRangeChange=function(q){var w=_.tG().resolve(_.kF(_.KT));if((!w||w.isOnWatch())&&this.hostElement.clientHeight){var u;!q&&((u=this.data)==null?0:u.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.k.onVideoProgress=function(q){var w,u,y=((w=this.player)==null?void 0:(u=w.getPresentingPlayerType)==null?void 0:u.call(w))===2;this.isAdPlaying!==y&&this.set("isAdPlaying",y);var e;if(!y&&(e=this.player)!=null&&e.getLoopRange()){u=this.player.getLoopRange();w=u.startTimeMs;u=u.endTimeMs;y=this.player.getProgressState(1).seekableStart;var t;w<y*1E3&&((t=this.data)==null?0:t.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
q=u<q*1E3;var X;((X=this.player)==null?0:X.getLoopRange())&&q&&this.player.seekTo(w/1E3)}};
_.k.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.k.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.k.onYtDeleteClipEngagementPanelCommand=function(q){_.C(q,DmK).command&&this.ytComponentBehavior.resolveCommand(_.C(q,DmK).command)};
_.x$.Object.defineProperties(fI.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.voteCount)||_.jN("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],fI.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],fI.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],fI.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],fI.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.b7.YtPlayerListenerBehavior),_.h("design:type",_.Yp)],fI.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],fI.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],fI.prototype,"isAdPlaying",void 0);_.c([_.v({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],fI.prototype,"isPageLoad",void 0);_.c([_.v({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],fI.prototype,"isDarkTheme",void 0);
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],fI.prototype,"voteCount",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],fI.prototype,"channelEndpoint",null);_.c([_.Z("channelEndpoint"),_.h("design:type",Object),_.h("design:paramtypes",[])],fI.prototype,"channelHref",null);fI=_.c([_.E({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],fI);
_.R(fI,"ytd-clip-attribution-renderer",function(){if(EhB!==void 0)return EhB;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return EhB=q},{mode:1});var RLh;var mS=function(){var q=_.Y.apply(this,arguments)||this;q.player=null;q.JSC$19883_playerEvents=new Map;return q};
_.O(mS,_.Y);_.k=mS.prototype;_.k.created=function(){this.player=null;this.JSC$19883_playerEvents=new Map;this.JSC$19883_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19883_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19883_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.k.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.k.attached=function(){var q=this,w=_.xo();w&&w.getPlayerPromise().then(function(u){q.setPlayer(u);q.set("isPageLoad",!1)})};
_.k.setPlayer=function(q){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19883_playerEvents);this.set("player",q);if(q){this.ytPlayerListenerBehavior.listenToPlayerEvents(q,this.JSC$19883_playerEvents);var w;(q==null?void 0:(w=q.getPresentingPlayerType)==null?void 0:w.call(q))===2&&this.playerAdStartHandler()}};
_.k.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.k.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.k.onVideoProgress=function(){var q,w,u=((q=this.player)==null?void 0:(w=q.getPresentingPlayerType)==null?void 0:w.call(q))===2;this.isAdPlaying!==u&&this.set("isAdPlaying",u)};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],mS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.b7.YtPlayerListenerBehavior),_.h("design:type",_.Yp)],mS.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],mS.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],mS.prototype,"isAdPlaying",void 0);
_.c([_.v({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],mS.prototype,"isPageLoad",void 0);mS=_.c([_.E({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],mS);
_.R(mS,"ytd-clip-section-footer-renderer",function(){if(RLh!==void 0)return RLh;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return RLh=q},{mode:1});var cjj;var S56;var Ay=function(){return _.Y.apply(this,arguments)||this};
_.O(Ay,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ay.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ay.prototype,"data",void 0);Ay=_.c([_.E({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],Ay);
_.R(Ay,"ytd-clip-ad-state-renderer",function(){if(S56!==void 0)return S56;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return S56=q},{mode:1});var hLV;var Jy=function(){var q=_.Y.apply(this,arguments)||this;q.value="";q.valid=!1;q.userChangedValue=!1;q.disabled=!1;q.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return q};
_.O(Jy,_.Y);_.k=Jy.prototype;_.k.detached=function(){this.userChangedValue=!1};
_.k.handleKeyDown=function(q){if(_.tv)var w=13;else _.Cz4&&_.PS?w=13:w=13;q.keyCode===w&&q.preventDefault()};
_.k.handleInput=function(){var q=_.A(this.hostElement).querySelector("#title");if(q){var w=(q.value||"").replace(/\r|\n/g," ");this.set("value",w);q.value=w;this.valid=q.validate();this.userChangedValue=!0}};
_.k.handleBlur=function(){this.valid=_.A(this.hostElement).querySelector("#title").validate()};
_.k.onValueChanged=function(){_.t7(this.hostElement,"title-changed",{title:this.value})};
_.k.onValidChanged=function(){_.t7(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.k.setInput=function(q,w){var u=_.A(this.hostElement).querySelector("#title");u&&(u.value=q,this.handleInput(),w&&(u.invalid=!1,this.valid=!0))};
_.k.onClipCreationDisable=function(){this.set("disabled",!0)};
_.k.onClipCreationEnable=function(){this.set("disabled",!1)};
_.k.onClipCreationVisibilityChange=function(q){var w=this;q.visible?requestAnimationFrame(function(){var u;((u=_.A(w.hostElement).querySelector("#title"))==null?void 0:u.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Jy.prototype.onValidChanged=Jy.prototype.onValidChanged;Jy.prototype.onValueChanged=Jy.prototype.onValueChanged;Jy.prototype.handleBlur=Jy.prototype.handleBlur;Jy.prototype.handleInput=Jy.prototype.handleInput;Jy.prototype.handleKeyDown=Jy.prototype.handleKeyDown;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Jy.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Jy.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],Jy.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],Jy.prototype,"value",void 0);_.c([_.v(),_.h("design:type",Object)],Jy.prototype,"valid",void 0);_.c([_.v(),_.h("design:type",Object)],Jy.prototype,"userChangedValue",void 0);_.c([_.v(),_.h("design:type",Object)],Jy.prototype,"disabled",void 0);_.c([_.Gm("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],Jy.prototype,"handleKeyDown",null);
_.c([_.Gm("input"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jy.prototype,"handleInput",null);_.c([_.Gm("blur"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jy.prototype,"handleBlur",null);_.c([_.nL("value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jy.prototype,"onValueChanged",null);
_.c([_.nL("valid"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jy.prototype,"onValidChanged",null);Jy=_.c([_.E({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Jy);
_.R(Jy,"ytd-clip-creation-text-input-renderer",function(){if(hLV!==void 0)return hLV;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return hLV=q},{mode:1});var jt6;var loH;var LBq;var MdH;var KBB;var z1=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};q.pendingStoryboardImages_={};q.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];q.tickLabelInterval=30;q.mediumTickInterval=5;q.largeTickInterval=15;q.aboveRulerHeight=32;q.rulerHeight=50;q.smallTickHeight=4;q.mediumTickHeight=8;q.largeTickHeight=16;q.mediaListeners_=
{};return q};
_.O(z1,_.Y);_.k=z1.prototype;_.k.attached=function(){var q=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(w){w=_.P(["screen and (min-resolution: "+w+")","screen and (max-resolution: "+w+")"]);for(var u=w.next();!u.done;u=w.next()){u=u.value;var y=window.matchMedia(u);y&&(q.mediaListeners_[u]=q.updatePixelRatio_.bind(q),y.addEventListener?y.addEventListener("change",q.mediaListeners_[u]):y.addListener?y.addListener(q.mediaListeners_[u]):delete q.mediaListeners_[u])}})};
_.k.detached=function(){this.setPlayer(null);for(var q=_.P(Object.keys(this.mediaListeners_)),w=q.next();!w.done;w=q.next()){var u=w.value;w=this.mediaListeners_[u];(u=window.matchMedia(u))&&(u.removeEventListener?u.removeEventListener("change",w):u.removeListener&&u.removeListener(w))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.k.onVisibilityChangedAction_=function(q){var w=this;q.visible&&!this.player_&&(q=_.xo())&&q.getPlayerPromise().then(function(u){w.setPlayer(u)})};
_.k.setPlayer=function(q){q&&this.set("player_",q)};
_.k.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.k.setUpCanvas_=function(){var q=this.rulerWidth,w=this.devicePixelRatio_,u=this.visible;this.set("canvasReady_",!1);if(u&&w!==0){u=this.aboveRulerHeight+this.rulerHeight;var y=_.A(this.hostElement).querySelector("#ticks");y.width=q*w;y.height=u*w;y.style.width=q+"px";y.style.height=u+"px";y.getContext("2d").scale(w,w);this.set("canvasReady_",!0)}};
_.k.drawRuler_=function(q,w,u,y,e,t,X,G,n,N,Q,I){q&&u&&w&&(q=_.A(this.hostElement).querySelector("#ticks"),w=q.getContext("2d"),w.clearRect(0,0,q.width,q.height),w.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),w.lineWidth=2,w.beginPath(),w.moveTo(0,this.aboveRulerHeight),w.lineTo(q.width,this.aboveRulerHeight),w.moveTo(0,q.height),w.lineTo(q.width,q.height),w.stroke(),this.drawRulerTicks_(q,t,e,y),this.drawStoryboardImages_(q,u,t,e,y),w.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
w.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(X-t,y,!1),this.rulerHeight),u=this.timeToPixels_(G-t,y,!1),w.fillRect(u,this.aboveRulerHeight,q.width-u,this.rulerHeight),this.drawSpeedLines_(q,t,I))};
_.k.drawRulerTicks_=function(q,w,u,y){var e=q.getContext("2d");e.save();e.lineWidth=1;for(var t=Math.floor(Math.max(0,w-this.tickLabelInterval));t<w+u;t++){e.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var X=(t-w)*y;e.beginPath();e.moveTo(X,q.height);var G=this.smallTickHeight;t%this.largeTickInterval===0?G=this.largeTickHeight:t%this.mediumTickInterval===0&&(G=this.mediumTickHeight);e.lineTo(X,q.height-G);e.stroke();t%this.tickLabelInterval===0&&(e.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),e.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),e.fillText(fb(t),X+4,12),e.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),e.moveTo(X,0),e.lineTo(X,this.aboveRulerHeight),e.stroke())}e.restore()};
_.k.percentToHex_=function(q){q=Math.round(q*255).toString(16);q.length<2&&(q="0"+q);return q};
_.k.drawSpeedLines_=function(q,w,u){var y=q.getContext("2d");y.save();var e=Math.min(25,Math.abs(u)-15)/25,t=q.width*.3*e,X=q.width*-.3,G=q.width*1.3,n=this.aboveRulerHeight;q=q.height;var N=Math.round(4*e),Q=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");Q.length<7&&(Q="#"+Q.substring(1,4).repeat(2));var I=this.percentToHex_(.5+e/2);I=Q+I;Q+="00";if(e>0)for(e=0;e<N;e++){var U=X+Math.random()*(G-X),d=n+Math.random()*(q-n),V=t+w%t,J=y.createLinearGradient(U,d,U+V,d);
u<0?(J.addColorStop(0,I),J.addColorStop(.4,I),J.addColorStop(.9,Q)):(J.addColorStop(.1,Q),J.addColorStop(.6,I),J.addColorStop(1,I));y.strokeStyle=J;y.lineWidth=1;y.beginPath();y.moveTo(U,d);y.lineTo(U+V,d);y.stroke()}y.restore()};
_.k.getStoryboardForTime_=function(q,w,u){u===void 0&&(u=w.getNumberOfStoryboardLevels()-1);q=w.getStoryboardFrameIndex(q,u);return w.getStoryboardFrame(q,u)};
_.k.drawStoryboardImages_=function(q,w,u,y,e){if(!this.disabled){q=q.getContext("2d");var t=this.getStoryboardForTime_(0,w);if(t){var X=t.width/t.columns;t=t.height/t.rows;var G=X/t,n=this.rulerHeight*G;n=this.tickLabelInterval*(G<this.tickLabelInterval*e/this.rulerHeight?1/Math.floor(this.tickLabelInterval*e/n):Math.round(n/(this.tickLabelInterval*e)));var N=n*e,Q=this.rulerHeight,I=N/this.rulerHeight,U=Math.floor(Math.max(0,u-n));for(U-=U%n;U<u+y;U+=n){var d=this.getStoryboardForTime_(U,w),V=this.getPreloadedStoryboard_(d.url);
if(V){var J=(U-u)*e,a=this.aboveRulerHeight,b=d.column*X,g=d.row*t;if(G<I){var l=Q/(N/G);d=X;l*=t;g+=(t-l)/2}else d=N/(Q*G)*X,l=t,b+=(X-d)/2;q.drawImage(V,b,g,d,l,J,a,N,Q)}else this.fetchStoryboardImage_(d)}}}};
_.k.getPreloadedStoryboard_=function(q){return this.storyboardImages_.find(function(w){if(w.src==q)return!0;var u=w.src.indexOf(q);return u!=-1&&u==w.src.length-q.length})};
_.k.fetchStoryboardImage_=function(q){var w=this,u=this.getPreloadedStoryboard_(q.url),y=this.pendingStoryboardImages_[q.url];u||y!==void 0||(u=new Promise(function(e){var t=new Image(q.width,q.height);t.src=q.url;t.onload=function(){e(t)};
t.onerror=function(){e(null)}}),this.pendingStoryboardImages_[q.url]=u,u.then(function(e){e&&w.push("storyboardImages_",e);
return e}).finally(function(){delete w.pendingStoryboardImages_[q.url]}))};
_.k.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.k.timeToPixels_=function(q,w,u){q*=w;return u===void 0||u?q+"px":q};
_.k.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
z1.prototype.drawRuler_=z1.prototype.drawRuler_;z1.prototype.setUpCanvas_=z1.prototype.setUpCanvas_;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],z1.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);_.c([_.v({value:0}),_.h("design:type",Number)],z1.prototype,"start",void 0);_.c([_.v({value:30}),_.h("design:type",Number)],z1.prototype,"end",void 0);
_.c([_.v({value:!1}),_.h("design:type",Boolean)],z1.prototype,"visible",void 0);_.c([_.v(),_.h("design:type",Object)],z1.prototype,"player_",void 0);_.c([_.v(),_.h("design:type",Number)],z1.prototype,"tickSpacing",void 0);_.c([_.v(),_.h("design:type",Number)],z1.prototype,"windowSizeSec",void 0);_.c([_.v({value:0}),_.h("design:type",Number)],z1.prototype,"rulerWidth",void 0);_.c([_.v({value:0}),_.h("design:type",Number)],z1.prototype,"rulerShift",void 0);
_.c([_.v({value:!1}),_.h("design:type",Boolean)],z1.prototype,"canvasReady_",void 0);_.c([_.v({value:function(){return[]}}),
_.h("design:type",Array)],z1.prototype,"storyboardImages_",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],z1.prototype,"disabled",void 0);_.c([_.v({value:0}),_.h("design:type",Number)],z1.prototype,"forceRender_",void 0);_.c([_.v({value:1}),_.h("design:type",Number)],z1.prototype,"devicePixelRatio_",void 0);_.c([_.v({value:0}),_.h("design:type",Number)],z1.prototype,"windowSpeed",void 0);
_.c([_.nL("visible","devicePixelRatio_","rulerWidth"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],z1.prototype,"setUpCanvas_",null);
_.c([_.nL("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.h("design:type",Function),_.h("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.h("design:returntype")],z1.prototype,"drawRuler_",null);z1=_.c([_.JM({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],z1);
_.R(z1,"yt-clip-creation-scrubber-canvas",function(){if(KBB===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);KBB=q}q=KBB;return q},
{mode:2});var BwK;var x34;var ah=function(){var q=_.Y.apply(this,arguments)||this;q.start=0;q.end=30;q.visible=!1;q.draggingLeft_=!1;q.draggingRight_=!1;q.draggingRuler_=!1;q.draggingWindow_=!1;q.seekableStart=0;q.seekableEnd=0;q.rulerWidth_=0;q.rulerShift_=0;q.windowSlideSpeed=0;q.disabled=!1;q.initialized=!1;q.durationAccessibilityLabel="";q.activeLoopRange_=!1;q.rulerDragMouseStart_=0;q.rulerDragRulerStart_=0;q.rulerDragStartTime_=0;q.rulerDragEndTime_=0;q.dragMouseLastX_=0;q.scrollInterval_=null;q.scrubberVe_=null;q.boundHandlers_=
{};q.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return q};
_.O(ah,_.Y);_.k=ah.prototype;
_.k.created=function(){var q=this;this.JSC$19896_playerEvents=new Map;this.JSC$19896_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19896_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19896_playerEvents.set("onStateChange",this.onStateChange_);var w={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(w).forEach(function(u){q.boundHandlers_[u]=w[u].bind(q)})};
_.k.attached=function(){this.activeLoopRange_=!1;_.A(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.A(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.oV(156731)};
_.k.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.A(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.A(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.k.onVisibilityChangedAction_=function(q){var w=this;q.visible&&!this.player_&&(q=_.xo())&&q.getPlayerPromise().then(function(u){w.setPlayer(u)})};
_.k.setPlayer=function(q){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19896_playerEvents);q&&(this.set("player_",q),this.ytPlayerListenerBehavior.listenToPlayerEvents(q,this.JSC$19896_playerEvents))};
_.k.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.k.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.k.beginHandleDrag_=function(q){this.disabled||(q.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=q.clientX,q.target===_.A(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():q.target===_.A(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.k.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.k.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.k.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.k.beginRulerDrag_=function(q){this.disabled||(q.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=q.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.k.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.k.beginWindowScroll_=function(){var q=this;this.scrollInterval_=setInterval(function(){var w=q.windowSlideSpeed;if(w=_.KQ6(q.start,q.boundedRulerStartLimit_())?w-.1:_.KQ6(q.end,q.boundedRulerEndLimit_())?w+.1:0){var u=q.capRulerOffset_(q.rulerShift_+w);u==q.rulerShift_?w=0:(q.set("rulerShift_",u),_.t7(q.hostElement,"set-fixed-length-range",{start:q.start+w,duration:q.end-q.start}))}q.set("windowSlideSpeed",w)},33)};
_.k.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.k.endDrag_=function(){this.logClick();var q=void 0;this.draggingRight_?q=this.end-1:this.draggingLeft_&&(q=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,q);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))};
_.k.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.k.updateRulerSize_=function(){this.set("rulerWidth_",_.A(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.k.handleMouseDrag_=function(q){q.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(q):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(q):this.draggingWindow_&&this.handleWindowDrag_(q))};
_.k.handleRulerDrag_=function(q){q=this.pixelsToTime_(q.clientX-this.rulerDragMouseStart_);q=this.capRulerOffset_(this.rulerDragRulerStart_-q);this.set("rulerShift_",q);var w=this.rulerDragStartTime_-(this.rulerDragRulerStart_-q);_.t7(this.hostElement,"set-fixed-length-range",{start:w,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-q)-w})};
_.k.handleWindowDrag_=function(q){var w=q.clientX-this.dragMouseLastX_;this.dragMouseLastX_=q.clientX;q=this.pixelsToTime_(w);_.t7(this.hostElement,"set-fixed-length-range",{start:this.start+q,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.k.capRulerOffset_=function(q){var w=this.seekableStart-this.pixelsToTime_(16),u=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(w,q),u)};
_.k.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.k.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.k.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.k.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.k.handleWindowHandleDrag_=function(q){var w=q.clientX-this.dragMouseLastX_;this.dragMouseLastX_=q.clientX;q=this.pixelsToTime_(w);if(this.draggingLeft_){var u=this.start+q;var y=this.end}else this.draggingRight_&&(u=this.start,y=this.end+q);_.t7(this.hostElement,"set-range",{start:u,end:y,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.k.onVideoProgress_=function(q){this.disabled||(q=this.timeToPixels_(q-this.rulerShift_,this.tickSpacing_),_.A(this.hostElement).querySelector("#playhead").style.transform="translateX("+q+")")};
_.k.onClipCreationDisable_=function(){this.endDrag_()};
_.k.timeToPixels_=function(q,w,u){q*=w;return u===void 0||u?q+"px":q};
_.k.pixelsToTime_=function(q){return q/this.tickSpacing_};
_.k.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.k.centerRuler_=function(q,w,u){this.set("rulerShift_",this.capRulerOffset_(q+(w-q)/2-u/2))};
_.k.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.k.updateLoopRange_=function(q,w,u,y,e,t,X){q&&(w&&y&&!u?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(q.pauseVideo(),q.seekTo(e,!1,void 0,void 0,50)):this.draggingRight_?(q.pauseVideo(),q.seekTo(t-.1,!1,void 0,void 0,50)):(X!==void 0?q.seekTo(X,!0,void 0,void 0,50):(w=q.getCurrentTime(),w<e||w>t?q.seekTo(e,!0,void 0,void 0,50):q.seekTo(w,!0,void 0,void 0,50)),q.playVideo()),q.setLoopRange({startTimeMs:e*1E3,endTimeMs:t*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(q.getCurrentTime())):
this.activeLoopRange_&&(q.setLoopRange(null),this.activeLoopRange_=!1))};
_.k.updateHandles_=function(){_.A(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.A(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.k.updateRuler_=function(){var q=this.end,w=this.start,u=this.draggableStartLimit_(),y=this.draggableEndLimit_();(w<u-.001||q>y+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.k.computeDurationLabel_=function(q,w){return q?q.replace("$clip_length",parseFloat(w).toFixed(1)):""};
_.k.computeDuration_=function(q,w){return this.isValidTime_(q)&&this.isValidTime_(w)&&q<w?w-q:0};
_.k.isValidTime_=function(q){return isNaN(parseFloat(q))||q<0?!1:this.player_?q>=this.seekableStart&&q<=this.seekableEnd:!0};
_.k.computeWindowSizeSec_=function(q,w,u){return Math.min((q||12E4)/1E3,u-w)};
_.k.computeTickSpacing_=function(q,w){return w?w/q:1};
_.k.onDragStateChanged_=function(){_.t7(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.k.centerRangeOnTime_=function(q){var w=this.duration;q=Z5K(q-w/2,w,this.seekableStart,this.seekableEnd);_.t7(this.hostElement,"set-fixed-length-range",{start:q.start,duration:q.end-q.start})};
_.k.nearlyLessThan_=function(q,w,u){return q+(u===void 0?1E-6:u)<w};
_.k.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var q=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(q,this.start)||this.nearlyLessThan_(this.end,q))&&this.centerRangeOnTime_(q)}};
_.k.onStateChange_=function(q){this.visible&&!this.disabled&&q==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.k.computeDragState_=function(q,w,u,y){return q?"left":w?"right":u?"ruler":y?"window":"none"};
_.k.logClick=function(){var q=_.pN(),w=_.ZB();q&&w&&this.scrubberVe_&&(_.T("combine_ve_grafts")?_.ku(_.Qz(),this.scrubberVe_,w):_.EC(q,w,this.scrubberVe_),_.jB(q,this.scrubberVe_))};
ah.prototype.onDragStateChanged_=ah.prototype.onDragStateChanged_;ah.prototype.updateRuler_=ah.prototype.updateRuler_;ah.prototype.updateHandles_=ah.prototype.updateHandles_;ah.prototype.onUpdateLoopRange=ah.prototype.onUpdateLoopRange;ah.prototype.onInitializedChanged_=ah.prototype.onInitializedChanged_;ah.prototype.onVisibleChanged_=ah.prototype.onVisibleChanged_;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],ah.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.D(_.b7.YtPlayerListenerBehavior),_.h("design:type",Object)],ah.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ah.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ah.prototype,"start",void 0);_.c([_.v(),_.h("design:type",Object)],ah.prototype,"end",void 0);_.c([_.v({computed:"computeDuration_(start, end)"}),_.h("design:type",Number)],ah.prototype,"duration",void 0);
_.c([_.v(),_.h("design:type",String)],ah.prototype,"lengthTemplate",void 0);_.c([_.v({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.h("design:type",String)],ah.prototype,"durationLabel",void 0);_.c([_.v(),_.h("design:type",Object)],ah.prototype,"visible",void 0);_.c([_.v(),_.h("design:type",Object)],ah.prototype,"player_",void 0);_.c([_.v(),_.h("design:type",Object)],ah.prototype,"draggingLeft_",void 0);_.c([_.v(),_.h("design:type",Object)],ah.prototype,"draggingRight_",void 0);
_.c([_.v(),_.h("design:type",Object)],ah.prototype,"draggingRuler_",void 0);_.c([_.v({value:!1}),_.h("design:type",Object)],ah.prototype,"draggingWindow_",void 0);_.c([_.v({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.h("design:type",Number)],ah.prototype,"tickSpacing_",void 0);_.c([_.v(),_.h("design:type",Object)],ah.prototype,"seekableStart",void 0);_.c([_.v(),_.h("design:type",Object)],ah.prototype,"seekableEnd",void 0);
_.c([_.v(),_.h("design:type",Number)],ah.prototype,"windowSizeMs",void 0);_.c([_.v({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.h("design:type",Number)],ah.prototype,"windowSizeSec_",void 0);_.c([_.v(),_.h("design:type",Object)],ah.prototype,"rulerWidth_",void 0);_.c([_.v(),_.h("design:type",Object)],ah.prototype,"rulerShift_",void 0);_.c([_.v(),_.h("design:type",Object)],ah.prototype,"windowSlideSpeed",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ah.prototype,"disabled",void 0);_.c([_.v(),_.h("design:type",Object)],ah.prototype,"initialized",void 0);_.c([_.v(),_.h("design:type",Object)],ah.prototype,"durationAccessibilityLabel",void 0);_.c([_.v({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.h("design:type",String)],ah.prototype,"dragState",void 0);
_.c([_.nL("visible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ah.prototype,"onVisibleChanged_",null);_.c([_.nL("initialized"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ah.prototype,"onInitializedChanged_",null);_.c([_.nL("player_","visible","disabled","initialized","start","end"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ah.prototype,"onUpdateLoopRange",null);
_.c([_.nL("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ah.prototype,"updateHandles_",null);_.c([_.nL("start","end"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ah.prototype,"updateRuler_",null);
_.c([_.nL("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ah.prototype,"onDragStateChanged_",null);ah=_.c([_.JM({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],ah);
_.R(ah,"yt-clip-creation-scrubber-view",function(){if(x34===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;BwK===void 0&&(BwK=document.createElement("template"));var y=BwK;u.call(w,y.content.cloneNode(!0),q.content.firstChild);x34=q}q=x34;return q},{mode:2});var De=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};q.startHighlightTimeout=0;q.endHighlightTimeout=0;return q};
_.O(De,_.Y);_.k=De.prototype;_.k.attached=function(){var q=this;this.startInput.addEventListener("input",function(w){return q.handleStartInput_(w)});
this.endInput.addEventListener("input",function(w){return q.handleEndInput_(w)});
this.startInput.addEventListener("focusout",function(w){return q.handleStartBlur_(w)});
this.endInput.addEventListener("focusout",function(w){return q.handleEndBlur_(w)})};
_.k.setPlayer=function(q){this.set("player_",q)};
_.k.onSetFixedLengthRange_=function(q){var w=q.detail;q=w.start;var u=w.duration,y=w.startLimit;w=w.endLimit;y||(y=this.seekableStart_);w||(w=this.seekableEnd_);q=Z5K(q,u,y,w);this.start=q.start;this.end=q.end};
_.k.onSetRange_=function(q){var w=q.detail;q=w.start;var u=w.end,y=w.startLimit;w=w.endLimit;y||(y=this.seekableStart_);w||(w=this.seekableEnd_);if(q=pNh(q,u,y,w,this.minLengthSec,this.maxLengthSec))this.start=q.start,this.end=q.end};
_.k.updateInputs_=function(){var q=this.end,w=this.start;this.startInput.focused||(this.startInput.value=fb(w,!0));this.endInput.focused||(this.endInput.value=fb(q,!0))};
_.k.handleStartInput_=function(q){q=DW4(q.target.value);if(q===null)this.set("startValid",!1);else{var w=this.end,u=pNh(q,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);u?(this.set("endWillUpdate",u.end!==w),this.set("startValid",u.start===q)):this.set("startValid",!1)}};
_.k.handleEndInput_=function(q){q=DW4(q.target.value);if(q===null)this.set("endValid",!1);else{var w=this.start,u=$Wa(this.start,q,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);u?(this.set("startWillUpdate",u.start!==w),this.set("endValid",u.end===q)):this.set("endValid",!1)}};
_.k.handleStartBlur_=function(q){q=DW4(q.target.value);q===null?this.startInput.value=fb(this.start,!0):this.forceUpdateInputs_(pNh(q,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.k.handleEndBlur_=function(q){q=DW4(q.target.value);q===null?this.endInput.value=fb(this.end,!0):this.forceUpdateInputs_($Wa(this.start,q,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.k.forceUpdateInputs_=function(q){q&&(this.start=q.start,this.end=q.end);this.startInput.value=fb(this.start,!0);this.endInput.value=fb(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.k.initializeClipRange_=function(){var q=this.seekableEnd_,w=this.seekableStart_,u=this.visible_,y=this.player_;if(!y||!u||w===null||!q)this.set("initialized",!1);else if(!this.initialized){var e=y.getCurrentTime(),t=this.getDefaultLengthSec_();u=y.getVideoData();var X=y.getPlayerState()==1,G=u.isLive;t=Math.min(t,q-w);e=Math.max(0,e);q=G?$Wa(e-t,e,w,q,this.minLengthSec,this.maxLengthSec):X?Z5K(e-t/2,t,w,q):Z5K(e,t,w,q);this.start=q.start;this.end=q.end;this.set("initialized",!0);u.isLive&&y.seekTo(q.start);
this.startInput.value=fb(this.start,!0);this.endInput.value=fb(this.end,!0)}};
_.k.onStartChanged_=function(){var q=this;_.t7(this.hostElement,"start-changed",{start:this.start});var w;isNaN((w=this.oldStart)!=null?w:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){q.set("highlightStart",!1);q.startHighlightTimeout=0;q.oldStart=q.start},3E3))};
_.k.onEndChanged_=function(){var q=this;_.t7(this.hostElement,"end-changed",{end:this.end});var w;isNaN((w=this.oldEnd)!=null?w:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){q.set("highlightEnd",!1);q.endHighlightTimeout=0;q.oldEnd=q.end},3E3))};
_.k.onVisibilityChangedAction_=function(q){var w=this;this.set("visible_",q.visible);this.visible_&&!this.player_&&(q=_.xo())&&q.getPlayerPromise().then(function(u){w.setPlayer(u)})};
_.k.computeMinLengthSec_=function(q){return q/1E3||5};
_.k.computeMaxLengthSec_=function(q){return q/1E3||60};
_.k.computeDefaultLengthSec_=function(q){return q/1E3};
_.k.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.k.computeSeekableStart_=function(q,w){return q&&w?q.getProgressState(1).seekableStart:0};
_.k.computeSeekableEnd_=function(q,w){return q&&w?q.getProgressState(1).seekableEnd:0};
_.k.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.k.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.k.onDragState_=function(q){this.set("highlightStart",q.detail.startChanging);this.set("highlightEnd",q.detail.endChanging)};
De.prototype.onDragState_=De.prototype.onDragState_;De.prototype.onEndChanged_=De.prototype.onEndChanged_;De.prototype.onStartChanged_=De.prototype.onStartChanged_;De.prototype.initializeClipRange_=De.prototype.initializeClipRange_;De.prototype.updateInputs_=De.prototype.updateInputs_;De.prototype.onSetRange_=De.prototype.onSetRange_;De.prototype.onSetFixedLengthRange_=De.prototype.onSetFixedLengthRange_;
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],De.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],De.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],De.prototype,"data",void 0);_.c([_.v({value:0}),_.h("design:type",Number)],De.prototype,"start",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],De.prototype,"startValid",void 0);
_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],De.prototype,"startWillUpdate",void 0);_.c([_.v({value:30}),_.h("design:type",Number)],De.prototype,"end",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],De.prototype,"endValid",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],De.prototype,"endWillUpdate",void 0);_.c([_.v({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.h("design:type",Number)],De.prototype,"minLengthSec",void 0);
_.c([_.v({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.h("design:type",Number)],De.prototype,"maxLengthSec",void 0);_.c([_.v({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.h("design:type",Number)],De.prototype,"defaultLengthSec",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],De.prototype,"visible_",void 0);_.c([_.v(),_.h("design:type",Object)],De.prototype,"player_",void 0);
_.c([_.v({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.h("design:type",Number)],De.prototype,"seekableStart_",void 0);_.c([_.v({computed:"computeSeekableEnd_(player_, visible_)"}),_.h("design:type",Number)],De.prototype,"seekableEnd_",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],De.prototype,"initialized",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],De.prototype,"disabled",void 0);
_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],De.prototype,"highlightStart",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],De.prototype,"highlightEnd",void 0);_.c([_.Wj("#start"),_.h("design:type",HTMLInputElement)],De.prototype,"startInput",void 0);_.c([_.Wj("#end"),_.h("design:type",HTMLInputElement)],De.prototype,"endInput",void 0);
_.c([_.Gm("set-fixed-length-range"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],De.prototype,"onSetFixedLengthRange_",null);_.c([_.Gm("set-range"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],De.prototype,"onSetRange_",null);_.c([_.nL("start","end"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],De.prototype,"updateInputs_",null);
_.c([_.nL("player_","visible_","seekableStart_","seekableEnd_"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],De.prototype,"initializeClipRange_",null);_.c([_.nL("start"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],De.prototype,"onStartChanged_",null);_.c([_.nL("end"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],De.prototype,"onEndChanged_",null);
_.c([_.Gm("clips-drag-state"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],De.prototype,"onDragState_",null);De=_.c([_.JM({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],De);
_.R(De,"yt-clip-creation-scrubber-renderer",function(){if(MdH===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;LBq===void 0&&(LBq=document.createElement("template"));var y=LBq;u.call(w,y.content.cloneNode(!0),q.content.firstChild);MdH=q}q=MdH;return q},{mode:2});var Ze=function(){var q=_.Y.apply(this,arguments)||this;q.player_=null;q.JSC$19910_playerEvents=new Map;q.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return q};
_.O(Ze,_.Y);_.k=Ze.prototype;_.k.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"}}}};
_.k.created=function(){this.JSC$19910_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$19910_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$19910_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$19910_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.k.detached=function(){this.setPlayer(null)};
_.k.onVisibilityChangedAction_=function(q){var w=this,u;if((u=this.data)==null?0:u.externalVideoId){var y;this.videoId=(y=this.data)==null?void 0:y.externalVideoId}this.getPlayer().then(function(e){if(q.visible)w.returnTime=e.getCurrentTime(),w.isAtLiveHead=e.getProgressState().isAtLiveHead;else{var t=w.returnTime;w.isAtLiveHead&&(t=Number.POSITIVE_INFINITY);e.seekTo(t,void 0,void 0,void 0,51)}})};
_.k.getPlayer=function(){var q=this;if(!this.player_){var w=_.xo();if(w)return w.getPlayerPromise().then(function(u){q.setPlayer(u);return u})}return Promise.resolve(this.player_)};
_.k.setPlayer=function(q){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19910_playerEvents);if(q){this.player_=q;var w;((w=this.data)==null?0:w.externalVideoId)||this.set("videoId",q.getVideoData().video_id||"");var u;(q==null?void 0:(u=q.getPresentingPlayerType)==null?void 0:u.call(q))===2&&(this.set("isAdPlaying",!0),_.Pw(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(q,this.JSC$19910_playerEvents)}};
_.k.ready=function(){_.A(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.k.onTitleChanged_=function(q){this.set("titleValue",q.detail.title)};
_.k.onStartChanged_=function(q){this.set("start",q.detail.start)};
_.k.onEndChanged_=function(q){this.set("end",q.detail.end)};
_.k.onTitleValidChanged_=function(q){this.set("titleValid",q.detail.valid)};
_.k.onStartValidChanged_=function(q){this.set("startValid",q.detail.valid)};
_.k.onEndValidChanged_=function(q){this.set("endValid",q.detail.valid)};
_.k.onVideoDataChange_=function(){var q;if((q=this.data)==null||!q.externalVideoId){var w;this.set("videoId",((w=this.player_)==null?void 0:w.getVideoData().video_id)||"")}};
_.k.computeFormValid_=function(q,w,u,y){return!!(q&&w&&u&&y)};
_.k.computeCancelButton_=function(q,w,u){return q&&_.C(q,_.aB)?{buttonRenderer:Object.assign({},_.C(q,_.aB),{isDisabled:w||u})}:null};
_.k.computeSubmitButton_=function(q,w,u){return q&&_.C(q,_.aB)?{buttonRenderer:Object.assign({},_.C(q,_.aB),{command:void 0,isDisabled:!this.formValid||w||u})}:null};
_.k.computeSubmitCommand_=function(q){return q||null};
_.k.onSubmit_=function(q){var w=this;q.stopPropagation();q.preventDefault();this.submitCommand_&&(q={},q.comment_text=this.titleValue,q.clip_external_video_id=this.videoId,q.clip_offset_ms=parseInt(this.start*1E3,10),q.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.GM(this.hostElement,[this.submitCommand_,q]).then(function(){w.set("isLoading_",!1)},function(){w.set("isLoading_",!1)}))};
_.k.playerAdStartHandler_=function(){_.Pw(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.k.playerAdEndHandler_=function(){_.Pw(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.k.onVideoProgress_=function(){var q=this;this.getPlayer().then(function(w){var u,y=(w==null?void 0:(u=w.getPresentingPlayerType)==null?void 0:u.call(w))===2;q.isAdPlaying!==y&&(y?q.playerAdStartHandler_():q.playerAdEndHandler_())})};
Ze.prototype.onEndValidChanged_=Ze.prototype.onEndValidChanged_;Ze.prototype.onStartValidChanged_=Ze.prototype.onStartValidChanged_;Ze.prototype.onTitleValidChanged_=Ze.prototype.onTitleValidChanged_;Ze.prototype.onEndChanged_=Ze.prototype.onEndChanged_;Ze.prototype.onStartChanged_=Ze.prototype.onStartChanged_;Ze.prototype.onTitleChanged_=Ze.prototype.onTitleChanged_;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Ze.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.D(_.b7.YtPlayerListenerBehavior),_.h("design:type",Object)],Ze.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ze.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ze.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ze.prototype,"data",void 0);_.c([_.v({value:""}),_.h("design:type",String)],Ze.prototype,"titleValue",void 0);
_.c([_.v({value:!1}),_.h("design:type",Boolean)],Ze.prototype,"titleValid",void 0);_.c([_.v({value:0}),_.h("design:type",Number)],Ze.prototype,"start",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],Ze.prototype,"startValid",void 0);_.c([_.v({value:0}),_.h("design:type",Number)],Ze.prototype,"end",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],Ze.prototype,"endValid",void 0);_.c([_.v({value:""}),_.h("design:type",String)],Ze.prototype,"videoId",void 0);
_.c([_.v({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.h("design:type",Boolean)],Ze.prototype,"formValid",void 0);_.c([_.v({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.h("design:type",Object)],Ze.prototype,"submitButton_",void 0);_.c([_.v({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.h("design:type",Object)],Ze.prototype,"submitCommand_",void 0);
_.c([_.v({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.h("design:type",Object)],Ze.prototype,"cancelButton_",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],Ze.prototype,"isLoading_",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Ze.prototype,"isAdPlaying",void 0);_.c([_.v({value:0}),_.h("design:type",Number)],Ze.prototype,"returnTime",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],Ze.prototype,"isAtLiveHead",void 0);
_.c([_.Gm("title-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ze.prototype,"onTitleChanged_",null);_.c([_.Gm("start-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ze.prototype,"onStartChanged_",null);_.c([_.Gm("end-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ze.prototype,"onEndChanged_",null);
_.c([_.Gm("title-valid-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ze.prototype,"onTitleValidChanged_",null);_.c([_.Gm("start-valid-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ze.prototype,"onStartValidChanged_",null);_.c([_.Gm("end-valid-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ze.prototype,"onEndValidChanged_",null);
Ze=_.c([_.JM({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Ze);
_.R(Ze,"yt-clip-creation-renderer",function(){if(loH===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;jt6===void 0&&(jt6=document.createElement("template"));var y=jt6;u.call(w,y.content.cloneNode(!0),q.content.firstChild);loH=q}q=loH;return q},{mode:2});var pI=function(){return _.Y.apply(this,arguments)||this};
_.O(pI,_.Y);pI.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"}}}};
pI.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(q){return q.hasOwnProperty("clipCreationRenderer")})&&_.Pw(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
pI.prototype.onPanelContentVisibleChanged=pI.prototype.onPanelContentVisibleChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],pI.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],pI.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.Jm.YtVisibilityBehavior),_.h("design:type",Object)],pI.prototype,"ytVisibilityBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],pI.prototype,"ytdReduxBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],pI.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],pI.prototype,"panelContentVisible",void 0);_.c([_.nL("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pI.prototype,"onPanelContentVisibleChanged",null);pI=_.c([_.E({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],pI);
_.R(pI,"ytd-clip-section-renderer",function(){if(cjj!==void 0)return cjj;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return cjj=q},{mode:1});var qVV;var $n=function(){return _.Y.apply(this,arguments)||this};
_.O($n,_.Y);_.k=$n.prototype;
_.k.onKeyDown=function(q){if(this.snippetElements.length!==0&&(q=q.keyCode,q===38||q===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);q===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.zT(this.highlightedIndex,-1,this.snippetElements.length);q=this.snippetElements.length;var w=this.highlightedIndex%q;this.highlightedIndex=w*q<0?w+q:w;q=this.snippetElements[this.highlightedIndex];this.highlightSnippet(q);this.ensureVisible(q)}};
_.k.onKeyUp=function(q){var w=this;Nlm(q)&&(q.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.pi.cancelJob(this.inputTimerId),this.inputTimerId=_.pi.addLowPriorityJob(function(){w.typedValue&&(w.fetchSnippets(w.typedValue),w.logInputGesture(w.data))},1E3))};
_.k.onClick=function(q){(q=_.e3x(q.target,null,"snippet-item"))&&this.selectSnippet(q)};
_.k.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.k.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.k.ready=function(){var q=this;this.inputElement.addEventListener("focus",function(){q.snippetsWrapper.style.removeProperty("display")})};
_.k.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.k.getSourceTimelines=function(){if(!this.data)return[];var q=[];if(this.data.searchInVideoSources)for(var w=_.P(this.data.searchInVideoSources),u=w.next();!u.done;u=w.next())u=u.value,u==="SEARCH_IN_VIDEO_SOURCE_ASR"?q.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):u==="SEARCH_IN_VIDEO_SOURCE_OCR"&&q.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return q};
_.k.fetchSnippets=function(q){var w=_.Pw(this.hostElement,"yt-get-current-video-id-action")[0],u=this.getSourceTimelines();q={getSearchInVideoCommand:{externalVideoId:w,query:q!=null?q:"",sourceTimelines:u},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.tG().resolve(_.PG).resolveCommand(q,{form:{element:this.hostElement}})};
_.k.filterSnippets=function(q,w){var u=this;if(w){this.filteredSnippets=(0,_.db.unsafeClone)(q);var y=RegExp(_.Zyu(w),"i");this.filteredSnippets=this.filteredSnippets.filter(function(X){return y.test(u.ytRendererBehavior.getSimpleString(X.snippet))});
q=_.P(this.filteredSnippets);for(var e=q.next();!e.done;e=q.next()){e=e.value;var t=this.ytRendererBehavior.getSimpleString(e.snippet);e.snippet={runs:[{text:t.substring(0,t.toLowerCase().indexOf(w))},{text:t.substring(t.toLowerCase().indexOf(w),t.toLowerCase().indexOf(w)+w.length),bold:!0},{text:t.substring(t.toLowerCase().indexOf(w)+w.length,t.length)}]}}}else this.filteredSnippets=q};
_.k.onUpdateSearchInVideoResults=function(q){if(!(this.snippets.length>0)){var w,u,y;if((y=(w=_.C(q,fd4))==null?void 0:(u=w.results)==null?void 0:u.length)!=null&&y){var e;this.filteredSnippets=this.snippets=((e=_.C(q,fd4))==null?void 0:e.results).map(function(t){var X,G,n;return{startMs:t==null?void 0:(X=t.searchInVideoResultRenderer)==null?void 0:X.startMs,startTimeText:t==null?void 0:(G=t.searchInVideoResultRenderer)==null?void 0:G.startTimeText,snippet:t==null?void 0:(n=t.searchInVideoResultRenderer)==
null?void 0:n.snippet}})}}};
_.k.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};
_.k.highlightSnippet=function(q){q.classList.add("highlighted")};
_.k.removeSnippetHighlight=function(q){q.classList.remove("highlighted")};
_.k.selectSnippet=function(q){this.typedValue=String(q.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(q);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.k.ensureVisible=function(q){var w=this.snippetsWrapper.scrollTop,u=w+this.snippetsWrapper.clientHeight,y=q.offsetTop-this.snippetsWrapper.offsetTop;q=y+q.clientHeight;y<w?this.snippetsWrapper.scrollTop-=w-y:q>u&&(this.snippetsWrapper.scrollTop+=q-u)};
_.k.seekPlayer=function(q){var w,u;return _.F(function(y){if(y.nextAddress==1){if(!q)return y.jumpTo(0);w=Number(q.dataset.startOffset);return _.H(y,_.qI().getPlayerPromise(),3)}u=y.yieldResult;u.seekTo(w/1E3,!0);u.wakeUpControls();_.HI(y)})};
_.k.logInputGesture=function(q){var w=_.pN();w&&(q==null?0:q.trackingParams)&&_.ly(w,_.Tj(q.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.k.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.D1("typed-value-changed",this.typedValue))};
_.k.updateTypedValueFromBinding=function(q){this.typedValue=q.currentTarget.value};
$n.prototype.typedValueChangedForBinding=$n.prototype.typedValueChangedForBinding;$n.prototype.dataChanged=$n.prototype.dataChanged;$n.prototype.panelContentVisibleChanged=$n.prototype.panelContentVisibleChanged;$n.prototype.onClick=$n.prototype.onClick;$n.prototype.onKeyUp=$n.prototype.onKeyUp;$n.prototype.onKeyDown=$n.prototype.onKeyDown;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],$n.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],$n.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],$n.prototype,"data",void 0);_.c([_.v({value:[]}),_.h("design:type",Array)],$n.prototype,"snippets",void 0);_.c([_.v({value:[]}),_.h("design:type",Array)],$n.prototype,"filteredSnippets",void 0);_.c([_.v({value:[]}),_.h("design:type",Array)],$n.prototype,"snippetElements",void 0);
_.c([_.Wj("#siv-input"),_.h("design:type",HTMLElement)],$n.prototype,"inputElement",void 0);_.c([_.Wj("#siv-snippets-wrapper"),_.h("design:type",HTMLElement)],$n.prototype,"snippetsWrapper",void 0);_.c([_.v(),_.h("design:type",String)],$n.prototype,"typedValue",void 0);_.c([_.v({value:-1}),_.h("design:type",Number)],$n.prototype,"highlightedIndex",void 0);_.c([_.Gm("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[_.HJ]),_.h("design:returntype")],$n.prototype,"onKeyDown",null);
_.c([_.Gm("keyup"),_.h("design:type",Function),_.h("design:paramtypes",[_.HJ]),_.h("design:returntype")],$n.prototype,"onKeyUp",null);_.c([_.Gm("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],$n.prototype,"onClick",null);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],$n.prototype,"panelContentVisible",void 0);
_.c([_.nL("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$n.prototype,"panelContentVisibleChanged",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$n.prototype,"dataChanged",null);_.c([_.nL("typedValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$n.prototype,"typedValueChangedForBinding",null);
$n=_.c([_.E({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],$n);
_.R($n,"ytd-search-in-video-renderer",function(){if(qVV!==void 0)return qVV;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return qVV=q},{mode:1});var wn6;var vo=function(){return _.Y.apply(this,arguments)||this};
_.O(vo,_.Y);vo.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
vo.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]]"}}}}}};
vo.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var q,w,u,y,e=(w=_.C((q=this.data)==null?void 0:q.onClickCommand,_.Fpa))==null?void 0:(u=w.item)==null?void 0:(y=u.notificationTextRenderer)==null?void 0:y.successResponseText;e&&_.lq7(this.hostElement,e)}};
_.x$.Object.defineProperties(vo.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var q,w,u,y;return this.isProductPlaceholder&&((q=this.data)==null?void 0:(w=q.hiddenProductOptions)==null?void 0:w.showDropCountdown)&&!!((u=this.data)==null?0:(y=u.hiddenProductOptions)==null?0:y.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var q;return!this.isProductPlaceholder&&!((q=this.data)==null?0:q.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var q,w;return!((q=this.data)==null?0:q.priceReplacementText)&&!((w=this.data)==null||!w.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],vo.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],vo.prototype,"componentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],vo.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],vo.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.Z("isProductPlaceholder"),_.h("design:type",Object),_.h("design:paramtypes",[])],vo.prototype,"useCenterLayoutContainer",null);_.c([_.v({computed:"computeButtonOverride(data)"}),_.h("design:type",Object)],vo.prototype,"buttonOverride",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],vo.prototype,"isProductPlaceholder",null);
_.c([_.Z("isProductPlaceholder"),_.h("design:type",Object),_.h("design:paramtypes",[])],vo.prototype,"showDropCountdown",null);_.c([_.Z("isProductPlaceholder","data"),_.h("design:type",Object),_.h("design:paramtypes",[])],vo.prototype,"showBrandName",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],vo.prototype,"showPriceReplacementText",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],vo.prototype,"showPrice",null);
_.c([_.Z("isProductPlaceholder"),_.h("design:type",Object),_.h("design:paramtypes",[])],vo.prototype,"showMetadata",null);vo=_.c([_.E({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],vo);
_.R(vo,"ytd-product-list-item-renderer",function(){if(wn6!==void 0)return wn6;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return wn6=q},{mode:1});var u0h;var bi=function(){return _.Y.apply(this,arguments)||this};
_.O(bi,_.Y);bi.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
bi.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
bi.prototype.panelContentVisibleChanged=function(){var q=this,w;return _.F(function(u){if(u.nextAddress==1)return q.playerApi?u.jumpTo(2):_.H(u,_.qI().getPlayerPromise(),3);u.nextAddress!=2&&(q.playerApi=u.yieldResult);(w=q.playerApi)==null||w.productsInVideoVisibilityUpdated(!!q.panelContentVisible);_.HI(u)})};
bi.prototype.panelContentVisibleChanged=bi.prototype.panelContentVisibleChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],bi.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],bi.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],bi.prototype,"panelContentVisible",void 0);_.c([_.v(),_.h("design:type",Object)],bi.prototype,"data",void 0);
_.c([_.nL("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],bi.prototype,"panelContentVisibleChanged",null);bi=_.c([_.E({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],bi);
_.R(bi,"ytd-product-list-renderer",function(){if(u0h!==void 0)return u0h;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return u0h=q},{mode:1});var yJT;var Yn=function(){var q=_.Y.apply(this,arguments)||this;q.hideTimestamps=!!_.Pd("hide-transcript-timestamps");q.currentCueIndex=-1;q.flatCues=[];q.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};q.TEST_ONLY={getFlatCues:function(){return q.flatCues}};
return q};
_.O(Yn,_.Y);_.k=Yn.prototype;_.k.hideTimestampsChanged=function(){_.tm("hide-transcript-timestamps",this.hideTimestamps)};
_.k.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.k.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.k.dataChanged=function(){var q;if((q=this.data)!=null&&q.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;q=_.P(this.data.cueGroups);for(var w=q.next();!w.done;w=q.next()){w=_.P(_.C(w.value,mmq).cues);for(var u=w.next();!u.done;u=w.next())this.flatCues.push(Number(_.C(u.value,ASj).startOffsetMs))}}};
_.k.onYtPlayerTimeChanged=function(q){if(!(q<0)){for(var w=this.currentCueIndex,u=w;;){var y=u>=0?this.flatCues[u]/1E3:-1;if(q+.5<y)--u;else if(y=u+1<this.flatCues.length?this.flatCues[u+1]/1E3:Infinity,q+.5>y)u+=1;else break}u!==w&&(w>=0&&((q=this.getCueElement(w))&&q.classList.remove("active"),(w=this.getCueGroupElement(w))&&w.classList.remove("active")),(w=this.getCueElement(u))&&w.classList.add("active"),(w=this.getCueGroupElement(u))&&w.classList.add("active"),this.currentCueIndex=u,this.isHovered||
this.scrollElementToTop(u))}};
_.k.scrollElementToTop=function(q){q=this.getCueElement(q>=3?q-3:0);this.hostElement.scrollTop=Math.min(q.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.k.getCueElement=function(q){return _.A(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[q]+'"]')};
_.k.getCueGroupElement=function(q){return(q=this.getCueElement(q))&&q.parentElement?q.parentElement.parentElement:null};
_.k.onTap=function(q){var w=_.he(q);q.target.classList.contains("cue")&&this.seekCueElement(w)};
_.k.onKeyPress=function(q){q.keyCode==13&&(q=_.e3x(q.target,null,"cue"))&&this.seekCueElement(q)};
_.k.seekCueElement=function(q){q=Number(q.getAttribute("start-offset"));_.Pw(this.hostElement,"yt-transcript-player-seek",[q/1E3])};
_.k.onMouseEnter=function(){this.isHovered=!0};
_.k.onMouseLeave=function(){this.isHovered=!1};
Yn.prototype.onMouseLeave=Yn.prototype.onMouseLeave;Yn.prototype.onMouseEnter=Yn.prototype.onMouseEnter;Yn.prototype.onKeyPress=Yn.prototype.onKeyPress;Yn.prototype.onTap=Yn.prototype.onTap;Yn.prototype.dataChanged=Yn.prototype.dataChanged;Yn.prototype.hideTimestampsChanged=Yn.prototype.hideTimestampsChanged;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Yn.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Yn.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Yn.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Yn.prototype,"hideTimestamps",void 0);_.c([_.v(),_.h("design:type",Boolean)],Yn.prototype,"isHovered",void 0);_.c([_.nL("hideTimestamps"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Yn.prototype,"hideTimestampsChanged",null);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Yn.prototype,"dataChanged",null);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Yn.prototype,"onTap",null);_.c([_.Gm("keypress"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Yn.prototype,"onKeyPress",null);
_.c([_.Gm("mouseenter"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Yn.prototype,"onMouseEnter",null);_.c([_.Gm("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Yn.prototype,"onMouseLeave",null);Yn=_.c([_.E({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],Yn);
_.R(Yn,"ytd-transcript-body-renderer",function(){if(yJT!==void 0)return yJT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return yJT=q},{mode:1});var eeK;var g7=function(){var q=_.Y.apply(this,arguments)||this;q.darkerPanels=_.T("web_watch_darker_panels");return q};
_.O(g7,_.Y);g7.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],g7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],g7.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],g7.prototype,"darkerPanels",void 0);g7=_.c([_.E({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],g7);
_.R(g7,"ytd-transcript-footer-renderer",function(){if(eeK!==void 0)return eeK;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return eeK=q},{mode:1});var kzx;var tka;var EU=function(){var q=_.Y.apply(this,arguments)||this;q.systemIcons=_.T("kevlar_system_icons");q.showClearButton=!1;return q};
_.O(EU,_.Y);_.k=EU.prototype;_.k.handleInput=function(q){var w=this;q.target.value.length?_.bf(this,"ytdTranscriptSearchBoxSearch",function(){w.emitSearchEvent(q)},500):(_.UP4(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=q.target.value.length>0};
_.k.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.k.handleClick=function(){var q,w=(q=this.data)==null?void 0:q.trackingParams;w&&_.Xf(_.Qz(),w)};
_.k.handleClear=function(){_.UP4(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var q,w,u=(w=_.C((q=this.data)==null?void 0:q.clearButton,_.aB))==null?void 0:w.trackingParams;u&&_.Xf(_.Qz(),u);this.clear()};
_.k.emitSearchEvent=function(q){_.t7(this.hostElement,"yt-transcript-search-box-search",{query:q.target.value});var w,u;(q=(u=_.C((w=this.data)==null?void 0:w.searchButton,_.aB))==null?void 0:u.trackingParams)&&_.Xf(_.Qz(),q)};
_.k.emitClearEvent=function(){_.t7(this.hostElement,"yt-transcript-search-box-clear")};
_.x$.Object.defineProperties(EU.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.A(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],EU.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],EU.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],EU.prototype,"systemIcons",void 0);EU=_.c([_.E({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],EU);
_.R(EU,"ytd-transcript-search-box-renderer",function(){if(tka!==void 0)return tka;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return tka=q},{mode:1});var PWa;var XnK;var Rh=function(){return _.Y.apply(this,arguments)||this};
_.O(Rh,_.Y);Rh.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var q,w;this.sectionHeaderAriaLabel=(q=this.data)==null?void 0:(w=q.accessibility)==null?void 0:w.accessibilityData.label}};
Rh.prototype.fireSelectedEvent=function(q){_.t7(this.hostElement,"ytd-transcript-section-header",{startMs:q})};
Rh.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
Rh.prototype.handleKeyPress=function(q){this.data&&q.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.x$.Object.defineProperties(Rh.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var q,w;return(w=(q=this.data)==null?void 0:q.enableTappableTranscriptHeader)!=null?w:!1}}});
Rh.prototype.dataChanged=Rh.prototype.dataChanged;_.c([_.v(),_.h("design:type",Object)],Rh.prototype,"data",void 0);_.c([_.v(),_.h("design:type",String)],Rh.prototype,"sectionHeaderAriaLabel",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Rh.prototype,"enableTappableTranscriptHeader",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Rh.prototype,"dataChanged",null);
Rh=_.c([_.E({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],Rh);
_.R(Rh,"ytd-transcript-section-header-renderer",function(){if(XnK!==void 0)return XnK;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return XnK=q},{mode:1});var FfK;var Gzm;var co=function(){var q=_.Y.apply(this,arguments)||this;q.isEditMode=!1;q.touchCaptionsEnabled=!1;q.deleteCaptionCorrectionPopupCommand=null;q.voteCaptionCorrectionPopupCommand=null;q.roundedContainer=!0;q.mouseOver=!1;q.textChanged=!1;q.messages={suggest_correction:_.ID("suggest_correction",void 0,"Edit caption"),suggested_caption:_.ID("suggested_caption",void 0,"Suggested caption"),submit_correction:_.ID("submit_correction",void 0,"Submit for review"),cancel_correction:_.ID("cancel_correction",
void 0,"Cancel"),replay_segment:_.ID("replay_segment",void 0,"Re-play segment"),delete_correction:_.ID("delete_correction",void 0,"Delete correction")};q.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return q};
_.O(co,_.Y);_.k=co.prototype;_.k.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)};
_.k.handleDelete=function(q){if(this.deleteCaptionCorrectionPopupCommand){var w=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);w&&this.ytdOpenPopupBehavior.openPopup(w);q.stopPropagation()}};
_.k.handleSubmit=function(q){if(this.data&&this.data.submitCaptionCorrectionCommand&&(q.stopPropagation(),this.textChanged)){var w;q=(w=_.C(this.data.submitCaptionCorrectionCommand,_.WZ3))==null?void 0:w.params;w=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:q,correctionText:String(this.ironTextAreaElement.value),originalText:_.lA(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(w);this.isEditMode=!1}};
_.k.handleUpdateSegmentText=function(q){(q=_.C(q,jb6))&&q.targetId&&this.data&&q.targetId===this.data.targetId&&(q.userCorrection&&(this.editedText=q.userCorrection),q.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.lA(this.data.snippet)),q.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=q.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=q.voteCaptionCorrectionPopupCommand?
q.voteCaptionCorrectionPopupCommand:null,q.accessibility&&(this.segmentAriaLabel=q.accessibility.accessibilityData.label))};
_.k.handleCancel=function(q){this.isEditMode=!1;q.stopPropagation();this.logClientVe(159409)};
_.k.handleEditSegmentCommand=function(q){(q=_.C(q,hda))&&q.targetId&&this.data&&q.targetId===this.data.targetId&&this.handleEdit()};
_.k.handleEditButtonClick=function(q){this.data&&(this.handleEdit(),q.stopPropagation())};
_.k.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var q;(q=this.ironTextAreaElement.textarea)==null||q.focus();this.logClientVe(159407)}};
_.k.handleMouseEnter=function(){this.mouseOver=!0};
_.k.handleMouseLeave=function(){this.mouseOver=!1};
_.k.handleReplay=function(q){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),q.stopPropagation(),this.logClientVe(159408))};
_.k.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()))};
_.k.handleKeypress=function(q){this.data&&(this.isEditMode?q.stopPropagation():this.isEnterPress(q)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(q)&&this.logClientVe(138758))};
_.k.handleTextboxClick=function(q){q.stopPropagation()};
_.k.handleTextboxKeydown=function(q){this.isControlEnterPress(q)?this.handleSubmit(q):q.key==="Escape"&&this.handleCancel(q)};
_.k.handleTextboxKeyup=function(){this.textChanged=_.lA(this.latestText)!==String(this.ironTextAreaElement.value)};
_.k.fireSelectedEvent=function(q){_.t7(this.hostElement,"yt-transcript-segment-selected",{startMs:q})};
_.k.fireReplayEvent=function(q,w){_.t7(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(q-100,0),endMs:w})};
_.k.fireEditEvent=function(q,w){_.t7(this.hostElement,"yt-transcript-segment-edit",{startMs:q,endMs:w})};
_.k.isEnterPress=function(q){return q.key==="Enter"||q.code==="Enter"||q.code==="NumpadEnter"||q.keyCode===13?!0:!1};
_.k.isControlEnterPress=function(q){var w=q.key==="Enter"||q.code==="Enter"||q.code==="NumpadEnter"||q.keyCode===13;return(q.ctrlKey||q.metaKey)&&w};
_.k.isCopyPress=function(q){var w=q.ctrlKey;return q.key==="c"&&w};
_.k.logClick=function(){var q,w=(q=this.data)==null?void 0:q.trackingParams;w&&_.Xf(_.Qz(),w)};
_.k.logClientVe=function(q){_.Ph(_.Qz(),_.oV(q))};
_.x$.Object.defineProperties(co.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}}});
co.prototype.handleMouseLeave=co.prototype.handleMouseLeave;co.prototype.handleMouseEnter=co.prototype.handleMouseEnter;co.prototype.dataChanged=co.prototype.dataChanged;_.c([_.D(_.hm.YtActionHandlerBehavior),_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],co.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.YE),_.h("design:type",Object)],co.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],co.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],co.prototype,"isEditMode",void 0);_.c([_.v(),_.h("design:type",Object)],co.prototype,"touchCaptionsEnabled",void 0);_.c([_.v(),_.h("design:type",Object)],co.prototype,"editedText",void 0);_.c([_.v(),_.h("design:type",Object)],co.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.c([_.v(),_.h("design:type",Object)],co.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.c([_.v(),_.h("design:type",String)],co.prototype,"segmentAriaLabel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],co.prototype,"roundedContainer",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],co.prototype,"mouseOver",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],co.prototype,"textChanged",void 0);_.c([_.v(),_.h("design:type",Object)],co.prototype,"messages",void 0);
_.c([_.Wj("#suggestion"),_.h("design:type",Object)],co.prototype,"ironTextAreaElement",void 0);_.c([_.Z("data","editedText"),_.h("design:type",Object),_.h("design:paramtypes",[])],co.prototype,"latestText",null);_.c([_.Z("touchCaptionsEnabled","isEditMode"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],co.prototype,"enableEditButton",null);
_.c([_.Z("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],co.prototype,"enableUndoButton",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],co.prototype,"dataChanged",null);_.c([_.Gm("mouseenter"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],co.prototype,"handleMouseEnter",null);
_.c([_.Gm("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],co.prototype,"handleMouseLeave",null);co=_.c([_.E({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],co);
_.R(co,"ytd-transcript-segment-renderer",function(){if(Gzm!==void 0)return Gzm;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Gzm=q},{mode:1});var S5=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};q.isError=!1;q.darkerPanels=_.T("web_watch_darker_panels");q.segmentOffsets=[];q.segmentIndex=-1;return q};
_.O(S5,_.Y);_.k=S5.prototype;_.k.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"}}}}};
_.k.segmentsChanged=function(){this.updateOffsets()};
_.k.onYtPlayerTimeChanged=function(q){for(var w=this.segmentIndex,u=w;;){if(u>=0){var y=this.segmentOffsets[u].start;var e=this.segmentOffsets[u].isAutoScrollable}else y=-1,e=!0;var t=q+.5;if(!e){y=u+1<this.segmentOffsets.length?this.segmentOffsets[u+1].start:Infinity;if(t>=y){u+=1;continue}u=-1;break}if(t<y)y=u-1>=0&&this.segmentOffsets[u-1].isAutoScrollable,e=u===0||y?1:2,u-=e;else if(e=u+1<this.segmentOffsets.length&&this.segmentOffsets[u+1].isAutoScrollable?1:2,y=u+e<this.segmentOffsets.length?
this.segmentOffsets[u+e].start:Infinity,t>y)u+=e;else{if(u<0)break;u<this.segmentOffsets.length&&t>this.segmentOffsets[u].end&&(u=-1);break}}if(w!==u){if(w>=0){var X;(X=this.getSegmentElement(w))==null||X.classList.remove("active")}this.segmentIndex=u;if(!(u<0)){var G;(G=this.getSegmentElement(u))==null||G.classList.add("active");this.isHovered||this.scrollElementToTop(u)}}};
_.k.handleSegmentEdit=function(q){q.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=q.target,_.Pw(this.hostElement,"yt-transcript-player-edit",[q.detail.startMs/1E3,q.detail.endMs/1E3]))};
_.k.handleSegmentSelected=function(q){_.Pw(this.hostElement,"yt-transcript-player-seek",[q.detail.startMs/1E3])};
_.k.handleSegmentReplay=function(q){_.Pw(this.hostElement,"yt-transcript-player-replay",[q.detail.startMs/1E3,q.detail.endMs/1E3])};
_.k.handleSectionHeaderSelected=function(q){_.Pw(this.hostElement,"yt-transcript-player-seek",[q.detail.startMs/1E3])};
_.k.onMouseEnter=function(){this.isHovered=!0};
_.k.onMouseLeave=function(){this.isHovered=!1};
_.k.onRetryButtonClick=function(){_.t7(this.hostElement,"transcript-retry-button-click")};
_.k.getSegmentElement=function(q){return _.A(this.hostElement).querySelector(":nth-child("+(q+1)+")")};
_.k.scrollElementToTop=function(q){q=this.getSegmentElement(q>=2?q-2:0);this.hostElement.scrollTop=Math.min(q.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.k.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(q){var w,u=(w=q.transcriptSegmentRenderer)!=null?w:q.transcriptSectionHeaderRenderer;return{start:Number(u.startMs)/1E3,end:Number(u.endMs)/1E3,isAutoScrollable:q.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.k.clearHighlightedSegments=function(){var q=_.A(this.hostElement);q=_.P(q.querySelectorAll("ytd-transcript-segment-renderer"));for(var w=q.next();!w.done;w=q.next())w.value.classList.remove("active")};
_.x$.Object.defineProperties(S5.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.data)==null?void 0:q.searchResultSegments)||((w=this.data)==null?void 0:w.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
S5.prototype.onMouseLeave=S5.prototype.onMouseLeave;S5.prototype.onMouseEnter=S5.prototype.onMouseEnter;S5.prototype.handleSectionHeaderSelected=S5.prototype.handleSectionHeaderSelected;S5.prototype.handleSegmentReplay=S5.prototype.handleSegmentReplay;S5.prototype.handleSegmentSelected=S5.prototype.handleSegmentSelected;S5.prototype.handleSegmentEdit=S5.prototype.handleSegmentEdit;S5.prototype.segmentsChanged=S5.prototype.segmentsChanged;
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],S5.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],S5.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],S5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],S5.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],S5.prototype,"isError",void 0);
_.c([_.v(),_.h("design:type",Object)],S5.prototype,"noResultLabel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],S5.prototype,"darkerPanels",void 0);_.c([_.Z("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],S5.prototype,"segments",null);_.c([_.Z("segments","noResultLabel"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],S5.prototype,"displayNoResults",null);
_.c([_.nL("segments"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],S5.prototype,"segmentsChanged",null);_.c([_.Gm("yt-transcript-segment-edit"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],S5.prototype,"handleSegmentEdit",null);_.c([_.Gm("yt-transcript-segment-selected"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],S5.prototype,"handleSegmentSelected",null);
_.c([_.Gm("yt-transcript-segment-replay"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],S5.prototype,"handleSegmentReplay",null);_.c([_.Gm("ytd-transcript-section-header"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],S5.prototype,"handleSectionHeaderSelected",null);_.c([_.Gm("mouseenter"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],S5.prototype,"onMouseEnter",null);
_.c([_.Gm("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],S5.prototype,"onMouseLeave",null);S5=_.c([_.E({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],S5);
_.R(S5,"ytd-transcript-segment-list-renderer",function(){if(FfK!==void 0)return FfK;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return FfK=q},{mode:1});var hy=function(){var q=_.Y.apply(this,arguments)||this;q.hideTimestamps=!!_.Pd("hide-transcript-timestamps");q.isLoadingTranscripts=!1;q.darkerPanels=_.T("web_watch_darker_panels");q.isError=!1;q.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return q};
_.O(hy,_.Y);_.k=hy.prototype;_.k.headerChanged=function(){var q,w;this.baseGetTranscriptsCommand=(w=_.C((q=this.data)==null?void 0:q.header,ld4))==null?void 0:w.onTextChangeCommand};
_.k.bodyChanged=function(){var q=this.getBodyRenderer();q&&(q.initialSegments&&(this.initialTranscriptsRenderer=q),q.noResultLabel&&(this.noResultLabel=q.noResultLabel),q.retryLabel&&(this.retryLabel=q.retryLabel))};
_.k.detached=function(){this.clearSearchBoxText()};
_.k.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.k.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"}}}};
_.k.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.k.fireSearch=function(q){var w=this;if(q){var u=q.detail.query;if(this.baseGetTranscriptsCommand){var y;q=(y=_.C(this.baseGetTranscriptsCommand,_.xGF))==null?void 0:y.params;var e;y=_.C((e=this.data)==null?void 0:e.footer,JSc);var t;if((e=(t=_.C(y==null?void 0:y.languageMenu,Rd4))==null?void 0:t.subMenuItems)&&e.length>0&&(t=e.find(function(n){return n.selected}))){var X,G;
q=(X=t.continuation)==null?void 0:(G=X.reloadContinuationData)==null?void 0:G.continuation}X=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:q,searchQuery:u}});this.ytComponentBehavior.resolveCommand(X,{commandController:{onServerError:function(){w.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});Wdx(this.ytContinuationHandlerBehavior,function(){return u===w.getCurrentSearchBoxText()})}}};
_.k.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.k.onRetryButtonClick=function(){this.isError=!1;var q={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:q}))};
_.k.hideTimestampsChanged=function(){_.tm("hide-transcript-timestamps",this.hideTimestamps)};
_.k.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.k.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.k.handleSignalActionCopyTranscript=function(){var q=this,w=this.getBodyRenderer();w&&(w=((w==null?void 0:w.searchResultSegments)||(w==null?void 0:w.initialSegments)||[]).map(function(u){return _.C(u,MxT)}).filter(function(u){return!!u}).map(function(u){return{snippet:u.snippet||{runs:[{text:""}]},
startTimeText:u.startTimeText||{simpleText:""}}}).map(function(u){var y=(u.snippet.runs||[]).reduce(function(e,t){return e+t.text},"");
return q.hideTimestamps?y:u.startTimeText.simpleText+" "+y}).join("\n"),this.copyToClipboard(w))};
_.k.copyToClipboard=function(q){navigator.clipboard&&navigator.clipboard.writeText(q)};
_.k.getCurrentSearchBoxText=function(){var q;return(q=this.searchBox)==null?void 0:q.value};
_.k.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.k.getBodyRenderer=function(){var q;return _.C((q=this.data)==null?void 0:q.body,Ldj)};
_.k.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.x$.Object.defineProperties(hy.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.A(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
hy.prototype.hideTimestampsChanged=hy.prototype.hideTimestampsChanged;hy.prototype.searchCleared=hy.prototype.searchCleared;hy.prototype.fireSearch=hy.prototype.fireSearch;hy.prototype.onReloadContinuationFinish=hy.prototype.onReloadContinuationFinish;hy.prototype.bodyChanged=hy.prototype.bodyChanged;hy.prototype.headerChanged=hy.prototype.headerChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],hy.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],hy.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],hy.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.JR),_.h("design:type",Object)],hy.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],hy.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],hy.prototype,"hideTimestamps",void 0);
_.c([_.v(),_.h("design:type",Object)],hy.prototype,"isLoadingTranscripts",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],hy.prototype,"darkerPanels",void 0);_.c([_.v(),_.h("design:type",Object)],hy.prototype,"isError",void 0);_.c([_.nL("data.header"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hy.prototype,"headerChanged",null);
_.c([_.I9("data.body"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hy.prototype,"bodyChanged",null);_.c([_.Gm("yt-reload-continuation-finish"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hy.prototype,"onReloadContinuationFinish",null);_.c([_.Gm("yt-transcript-search-box-search"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],hy.prototype,"fireSearch",null);
_.c([_.Gm("yt-transcript-search-box-clear"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hy.prototype,"searchCleared",null);_.c([_.nL("hideTimestamps"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hy.prototype,"hideTimestampsChanged",null);hy=_.c([_.E({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],hy);
_.R(hy,"ytd-transcript-search-panel-renderer",function(){if(PWa!==void 0)return PWa;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return PWa=q},{mode:1});var j5=function(){var q=_.Y.apply(this,arguments)||this;q.player=null;q.playerPollJobId=0;return q};
_.O(j5,_.Y);_.k=j5.prototype;_.k.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.k.onLoadReloadContinuation=function(q){_.T("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:q.target.data.continuation}}):(q={clickTrackingParams:q.target.data.clickTrackingParams,getTranscriptEndpoint:{params:q.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.tG().resolve(_.PG).resolveCommand(q,{form:{element:this.hostElement}}))};
_.k.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"}}}};
_.k.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.k.attached=function(){this.updatePlayerListening()};
_.k.detached=function(){this.updatePlayerListening()};
_.k.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.k.startPlayerListening=function(){var q=this,w;return _.F(function(u){if(u.nextAddress==1)return(w=_.xo())?_.H(u,w.getPlayerPromise(),2):u.return();q.player=u.yieldResult;q.playerPollJobId=_.pi.addLowPriorityJob(function(){q.getPlayerVideoProgress()},1E3);
q.player.addEventListener("onCueRangeEnter",function(y){q.onCueRangeEnter(y)});
q.player.addEventListener("onCueRangeExit",function(y){q.onCueRangeExit(y)});
q.player.addEventListener("onStateChange",function(y){q.onPlayerStateChange(y)});
q.player.addEventListener("SEEK_TO",function(y){q.onPlayerSeek(y)});
_.HI(u)})};
_.k.getPlayerVideoProgress=function(){var q=this;_.pi.cancelJob(this.playerPollJobId);if(this.player){var w=this.player.getCurrentTime();_.Pw(this.hostElement,"yt-player-time-changed",[w])}this.playerPollJobId=_.pi.addLowPriorityJob(function(){q.getPlayerVideoProgress()},1E3)};
_.k.stopPlayerListening=function(){this.player=null;_.pi.cancelJob(this.playerPollJobId)};
_.k.onPlayerStateChange=function(q){q===2&&this.removePendingCue()};
_.k.onPlayerSeek=function(q){var w;if(w=this.pendingReplayCueId)w=this.pendingReplayCueId,w=q===(_.T("web_transcript_cue_id_killswitch")?Number(w):Number(w.split("_")[1]));w||this.removePendingCue()};
_.k.onCueRangeEnter=function(q){b5h(q)&&(this.pendingReplayCueId=q)};
_.k.onCueRangeExit=function(q){b5h(q)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.k.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.k.onYtTranscriptPlayerSeek=function(q){this.player&&this.player.seekTo(q,!0)};
_.k.onYtTranscriptPlayerReplay=function(q,w){this.player&&(this.player.addCueRange(vlc(q),q,w),this.player.seekTo(q,!0),this.player.playVideo())};
_.k.onYtTranscriptPlayerEdit=function(q,w){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(vlc(q),q,w),this.player.seekTo(q,!0))};
j5.prototype.onLoadReloadContinuation=j5.prototype.onLoadReloadContinuation;j5.prototype.panelContentVisibleChanged=j5.prototype.panelContentVisibleChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],j5.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],j5.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],j5.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],j5.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],j5.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],j5.prototype,"panelContentVisible",void 0);_.c([_.nL("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],j5.prototype,"panelContentVisibleChanged",null);
_.c([_.Gm("yt-load-reload-continuation"),_.h("design:type",Function),_.h("design:paramtypes",[Object]),_.h("design:returntype")],j5.prototype,"onLoadReloadContinuation",null);j5=_.c([_.E({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],j5);
_.R(j5,"ytd-transcript-renderer",function(){if(kzx!==void 0)return kzx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return kzx=q},{mode:1});var nOB;var Hw4;var li=function(){return _.Y.apply(this,arguments)||this};
_.O(li,_.Y);li.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.t7(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.nq(this.hostElement,[this.data.clickCommand],this.hostElement))};
li.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.fl)()+_.pb)+"px)"};
li.prototype.updateShouldHideFromBinding=function(q){this.shouldHide=q.detail.value};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],li.prototype,"rendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],li.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],li.prototype,"shouldHide",void 0);li=_.c([_.E({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],li);
_.R(li,"ytd-ad-engagement-panel-banner-renderer",function(){if(Hw4!==void 0)return Hw4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Hw4=q},{mode:_.kB("kevlar_poly_si_batch_j070")?1:2});var WfT;var LI=function(){var q=_.Y.apply(this,arguments)||this;q.modernPanels=_.T("kevlar_watch_modern_panels");q.buttonUpdate=_.T("web_modern_buttons");q.adsSemanticText=_.T("enable_ads_web_ep_buenos_aires_and_padding_fix");return q};
_.O(LI,_.Y);LI.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.c([_.v(),_.h("design:type",Object)],LI.prototype,"data",void 0);_.c([_.v({computed:"computeHideDefaultAdBadge(data)"}),_.h("design:type",Boolean)],LI.prototype,"hideDefaultAdBadge",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],LI.prototype,"modernPanels",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],LI.prototype,"buttonUpdate",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],LI.prototype,"adsSemanticText",void 0);
LI=_.c([_.E({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],LI);
_.R(LI,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(WfT!==void 0)return WfT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return WfT=q},{mode:1});var scH;var M0=function(){var q=_.Y.apply(this,arguments)||this;q.darkerPanels=_.T("web_watch_darker_panels");q.enableSqueezebackPanels=_.T("web_shorts_enable_squeezeback_panels");q.enableAnchoredPanel=_.T("desktop_shorts_v2_anchored_panel");q.modernPanels=_.T("kevlar_watch_modern_panels");q.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return q};
_.O(M0,_.Y);_.k=M0.prototype;_.k.computeAdsInfoButton=function(){if(_.T("web_modern_buttons")){var q,w;return(w=_.C((q=this.data)==null?void 0:q.subtitleComplex,zdq))==null?void 0:w.adInfoRenderer}};
_.k.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}}}}}};
_.k.collapsedChanged=function(){var q;(q=this.data)!=null&&q.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.T("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.k.focus=function(q){this.titleElement&&_.xZ(this.titleElement,q)};
_.k.computeTitleAriaLabel=function(q){var w=[];if(q.title){var u,y;w.push(this.ytRendererBehavior.getSimpleString(q.title)||((u=q.title.accessibility)==null?void 0:(y=u.accessibilityData)==null?void 0:y.label))}q.contextualInfo&&w.push(this.ytRendererBehavior.getSimpleString(q.contextualInfo));return w.join(" ")};
_.k.onHeaderClick=function(q){this.shouldTriggerHeaderClick(q)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.t7(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.nq(this.hostElement,[this.data.onClickCommand],this.hostElement)):(q=this.getVisibilityToggleButton())&&q.click())};
_.k.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var q=_.C(this.data.visibilityButton,_.aB)||_.C(this.data.visibilityButton,_.DE);q&&this.ytRendererBehavior.logExplicitClick(q)}};
_.k.getVisibilityToggleButton=function(){var q=_.A(this.hostElement).querySelector("#visibility-button").firstElementChild;return(q==null?void 0:q.is)==="ytd-toggle-button-renderer"?q:null};
_.k.shouldTriggerHeaderClick=function(q){return!_.LT(_.SQ(q),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.k.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(q){q=_.C(q,_.CNj);this.targetId&&(q==null?void 0:q.targetId)===this.targetId&&(q=q.navigationButton)&&this.set("data.navigationButton",q)};
_.x$.Object.defineProperties(M0.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.T("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var q;return!!(((q=this.entity)==null?0:q.isActionButtonHidden)||this.hideActionButton)}}});
M0.prototype.collapsedChanged=M0.prototype.collapsedChanged;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],M0.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],M0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],M0.prototype,"ytdReduxBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],M0.prototype,"data",void 0);_.c([_.v(),_.h("design:type",String)],M0.prototype,"targetId",void 0);_.c([_.v(),_.h("design:type",Boolean)],M0.prototype,"collapsed",void 0);_.c([_.v(),_.h("design:type",Boolean)],M0.prototype,"hideActionButton",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],M0.prototype,"shortsPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],M0.prototype,"liveChatEngagementPanel",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],M0.prototype,"darkerPanels",void 0);_.c([_.Wj("#title"),_.h("design:type",HTMLElement)],M0.prototype,"titleElement",void 0);_.c([_.v({computed:"computeAdsInfoButton(data)"}),_.h("design:type",Object)],M0.prototype,"adsInfoButton",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],M0.prototype,"enableSqueezebackPanels",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],M0.prototype,"enableAnchoredPanel",void 0);_.c([_.v({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(q,w){return _.HQ(q.entities,"engagementPanelTitleHeaderEntity",w)}}),
_.h("design:type",Object)],M0.prototype,"entity",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],M0.prototype,"modernPanels",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("targetId"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],M0.prototype,"adsSemanticText",null);_.c([_.I9("collapsed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],M0.prototype,"collapsedChanged",null);
_.c([_.Z("entity","hideActionButton"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],M0.prototype,"isActionButtonHidden",null);M0=_.c([_.E({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],M0);
_.R(M0,"ytd-engagement-panel-title-header-renderer",function(){if(scH!==void 0)return scH;var q=document.createElement("template");_.f(q,'\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" on-click="onHeaderClick" 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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return scH=q},{mode:1});var NJx;var KI=function(){return _.Y.apply(this,arguments)||this};
_.O(KI,_.Y);KI.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],KI.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],KI.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],KI.prototype,"data",void 0);KI=_.c([_.E({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],KI);
_.R(KI,"ytd-macro-markers-info-item-renderer",function(){if(NJx!==void 0)return NJx;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return NJx=q},{mode:1});var Qc4;var rJ4=function(q,w,u,y,e,t){_.VG.call(this);var X=this;this.JSC$20012_containerElement=q;this.hostElement=w;this.supportedSyncItems=u;this.syncEntityKey=y;this.options=e;this.renderLazyListItems=t;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;Iga(this);iwT(this);this.JSC$20012_scrollAnimation=new _.Vj(function(G){q.scrollTop=G});
_.sN(this,this.JSC$20012_scrollAnimation);this.addOnDisposeCallback(function(){X.exitBrowsingMode(!1);X.activeItem&&X.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.O(rJ4,_.VG);var Iga=function(q){var w=_.se(_.tG().resolve(_.dd),function(u){return u.entities.markersEngagementPanelSyncEntity||{}},function(u,y){var e;
u[q.syncEntityKey]!==y[q.syncEntityKey]&&((e=u[q.syncEntityKey])==null?void 0:e.activeItemIndex)!==void 0&&q.updatePanelActiveItem(u[q.syncEntityKey].activeItemIndex)});
q.unsubscribeFromTimedMarkersListSyncEntity=w;q.addOnDisposeCallback(w);UxH(q)},UxH=function(q){var w=_.tG().resolve(_.dd);
w=_.UVo(w.getState(),q.syncEntityKey);(w==null?void 0:w.activeItemIndex)!==void 0&&(w=q.getItemByIndex(w.activeItemIndex))&&q.setActiveItem(w)},iwT=function(q){var w=new _.MI(q.onScroll,50,q);
_.sN(q,w);var u=function(){w.fire()};
q.JSC$20012_containerElement.addEventListener("scroll",u);q.addOnDisposeCallback(function(){q.JSC$20012_containerElement.removeEventListener("scroll",u)})};
_.k=rJ4.prototype;
_.k.updatePanelActiveItem=function(q){var w=this.getItemByIndex(q);if(w){if(this.setActiveItem(w),this.contentVisible)if(this.browsingMode){var u;((u=this.options)==null?void 0:u.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(q=TJ4(this),w.offsetTop<this.JSC$20012_containerElement.clientHeight+this.JSC$20012_containerElement.scrollTop&&q&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));CWx(this)}else this.scrollToItem(w)}else _.Y8(new _.fv("Could not find "+this.supportedSyncItems+
" sync child to set active.",q,this.JSC$20012_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.k.getItemByIndex=function(q){var w;(w=this.renderLazyListItems)==null||w.call(this,q);w=this.JSC$20012_containerElement.querySelectorAll(this.supportedSyncItems);if(w.length>q)return w[q]};
_.k.setActiveItem=function(q){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));q.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=q};
_.k.scrollToItem=function(q){q=this.getScrollPositionForItem(q);this.JSC$20012_containerElement.scrollTop!==q&&this.JSC$20012_scrollAnimation.start(this.JSC$20012_containerElement.scrollTop,q,300)};
_.k.getScrollPositionForItem=function(q){if(this.JSC$20012_containerElement.querySelectorAll(this.supportedSyncItems)[0]===q)return 0;var w,u=((w=this.options)==null?0:w.percentOffset)?this.JSC$20012_containerElement.clientHeight*this.options.percentOffset:0;q=_.Jw(q).y+this.JSC$20012_containerElement.scrollTop-(_.Jw(this.JSC$20012_containerElement).y+u);return Math.max(0,Math.min(q,this.JSC$20012_containerElement.scrollHeight-this.JSC$20012_containerElement.offsetHeight))};
_.k.onScroll=function(){this.activeItemBelowSyncPosition=TJ4(this);if(this.activeItem&&!this.JSC$20012_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20012_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var q;switch((q=this.options)==null?void 0:q.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!dx6(this));CWx(this);break;default:this.enterBrowsingMode(!0)}}};
_.k.enterBrowsingMode=function(q){var w=this,u,y;return _.F(function(e){if(e.nextAddress==1){if(w.browsingMode)return e.return();w.browsingMode=!0;q&&w.hostElement.classList.add("browsing-mode");w.playerExitBrowsingModeListener=function(){w.exitBrowsingMode(!1)};
return _.H(e,_.Fu(),2)}u=e.yieldResult;(y=u)==null||y.addEventListener("SEEK_TO",w.playerExitBrowsingModeListener);_.HI(e)})};
_.k.exitBrowsingMode=function(q){q=q===void 0?!0:q;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),q&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.k.removePlayerSeekListener=function(){var q=this,w,u;return _.F(function(y){if(y.nextAddress==1)return q.playerExitBrowsingModeListener?_.H(y,_.Fu(),3):y.jumpTo(0);w=y.yieldResult;(u=w)==null||u.removeEventListener("SEEK_TO",q.playerExitBrowsingModeListener);q.playerExitBrowsingModeListener=void 0;_.HI(y)})};
var CWx=function(q){var w;((w=q.options)==null?void 0:w.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(dx6(q)?q.hostElement.classList.remove("browsing-mode"):q.activeItem&&q.hostElement.classList.add("browsing-mode"))},TJ4=function(q){if(!q.activeItem)return!1;
var w,u=((w=q.options)==null?0:w.percentOffset)?q.JSC$20012_containerElement.clientHeight*q.options.percentOffset:0;return q.activeItem.offsetTop>=q.JSC$20012_containerElement.scrollTop+u},dx6=function(q){if(!q.activeItem)return!1;
var w=q.activeItem.offsetTop+14<=q.JSC$20012_containerElement.scrollTop+q.JSC$20012_containerElement.clientHeight;return q.activeItem.offsetTop+q.activeItem.clientHeight-14>=q.JSC$20012_containerElement.scrollTop&&w};
rJ4.prototype.panelContentVisibleChanged=function(q){(this.contentVisible=q)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var Owc=function(q,w){q.syncEntityKey=w;var u;(u=q.unsubscribeFromTimedMarkersListSyncEntity)==null||u.call(q);Iga(q)},oOj=function(q,w){q.options=w};var Bo=function(){var q=_.Y.apply(this,arguments)||this;q.browsingMode=!1;q.modern=_.T("web_button_rework");q.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return q};
_.O(Bo,_.Y);_.k=Bo.prototype;_.k.activeItemChanged=function(){if(!_.T("synced_panel_scrolling_controller")){var q;((q=this.syncEntity)==null?void 0:q.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.k.created=function(){var q=this;_.T("synced_panel_scrolling_controller")||(this.JSC$20016_scrollAnimation=new _.Vj(function(w){q.contents.scrollTop=w}),this.boundExitBrowsingMode=function(){q.exitBrowsingMode(!1)})};
_.k.detached=function(){if(_.T("synced_panel_scrolling_controller")){var q;(q=this.scrollController)==null||q.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.k.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"}}}};
_.k.dataChanged=function(){var q=this;_.T("synced_panel_scrolling_controller")?_.KJ(this,function(){if(q.scrollController){var w;(w=q.scrollController)==null||w.exitBrowsingMode(!1);var u,y,e;(y=q.scrollController)==null||Owc(y,(e=(u=q.data)==null?void 0:u.syncModelEntityKey)!=null?e:"default-macro-markers-list-renderer-entity-key");var t,X,G;(G=q.scrollController)==null||oOj(G,{percentOffset:(t=q.data)==null?void 0:t.selectedItemAlignmentPercentOffset,floatingPillType:(X=q.data)==null?void 0:X.floatingPillType})}else{var n,
N,Q,I;q.scrollController=new rJ4(q.contents,q.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(I=(n=q.data)==null?void 0:n.syncModelEntityKey)!=null?I:"default-macro-markers-list-renderer-entity-key",{percentOffset:(N=q.data)==null?void 0:N.selectedItemAlignmentPercentOffset,floatingPillType:(Q=q.data)==null?void 0:Q.floatingPillType},function(U){q.renderLazyListItems(U)})}q.scrollController.panelContentVisibleChanged(!!q.panelContentVisible)}):this.exitBrowsingMode()};
_.k.computeButtonShape=function(){var q=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){q.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.k.computeSyncEnabled=function(q){return!(q==null||!q.syncButtonLabel)};
_.k.renderLazyListItems=function(q){for(var w=this.contents.children,u=0,y=0;y<w.length;y++){var e=void 0;(e=w[y].ytLazyListBehavior)==null||e.fillRemainingListItems();var t=void 0,X=void 0;e=_.C((t=this.data)==null?void 0:(X=t.contents)==null?void 0:X[y],_.kwX);X=t=void 0;if((t=e)==null?0:(X=t.contents)==null?0:X.length)u+=e.contents.length;if(u>=q)break}};
_.k.getItemByIndex=function(q){this.renderLazyListItems(q);var w=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(w.length>q)return w[q]};
_.k.setActiveItem=function(q){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);q.active!==void 0&&(q.active=!0);this.currentActiveItem=q};
_.k.handleSetActivePanelItemAction=function(q){if((q=_.C(q,OEc))&&this.panelTargetId===q.panelTargetId){q=q.itemIndex;if(_.T("synced_panel_scrolling_controller")){var w,u;var y=(u=(w=this.data)==null?void 0:w.syncModelEntityKey)!=null?u:"default-macro-markers-list-renderer-entity-key"}else{var e;y=(e=this.data)==null?void 0:e.syncModelEntityKey}if(y){var t;((t=this.syncEntity)==null?void 0:t.activeItemIndex)!==q&&this.ytdReduxBehavior.dispatch(_.IH("markersEngagementPanelSyncEntity",y,{key:y,activeItemIndex:q}))}else this.updatePanelActiveItem(q)}};
_.k.updatePanelActiveItem=function(q){var w=this.getItemByIndex(q);w?(this.setActiveItem(w),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(w)):_.Y8(new _.fv("Could not find ytd-macro-markers-list-renderer sync child to set active.",q,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.k.scrollToItem=function(q){q=this.getScrollPositionForItem(q);this.contents.scrollTop!==q&&this.JSC$20016_scrollAnimation.start(this.contents.scrollTop,q,300)};
_.k.getScrollPositionForItem=function(q){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===q)return 0;q=_.Jw(q).y+this.contents.scrollTop-_.Jw(this.contents).y-this.getStickyHeaderHeight(q);return Math.min(q,this.contents.scrollHeight-this.contents.offsetHeight)};
_.k.getStickyHeaderHeight=function(q){if(q.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var w,u,y;return(y=(w=q.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(u=w.header)==null?void 0:u.offsetHeight)!=null?y:0}return 0};
_.k.onScroll=function(){_.T("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20016_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.k.enterBrowsingMode=function(){var q=this;return _.F(function(w){if(w.nextAddress==1){if(q.browsingMode)return w.return();q.browsingMode=!0;return _.H(w,_.qI().getPlayerPromise(),2)}q.player=w.yieldResult;q.player.addEventListener("SEEK_TO",q.boundExitBrowsingMode);_.HI(w)})};
_.k.exitBrowsingMode=function(q){this.browsingMode&&(this.browsingMode=!1,(q===void 0||q)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.k.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.k.onSyncClick=function(){if(_.T("synced_panel_scrolling_controller")){var q;(q=this.scrollController)==null||q.exitBrowsingMode()}else this.exitBrowsingMode()};
_.k.panelContentVisibleChanged=function(){if(_.T("synced_panel_scrolling_controller")){var q;(q=this.scrollController)==null||q.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
Bo.prototype.panelContentVisibleChanged=Bo.prototype.panelContentVisibleChanged;Bo.prototype.dataChanged=Bo.prototype.dataChanged;Bo.prototype.activeItemChanged=Bo.prototype.activeItemChanged;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Bo.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Bo.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Bo.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],Bo.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Bo.prototype,"data",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Bo.prototype,"useCustomColors",void 0);_.c([_.v({computed:"computeSyncEnabled(data)"}),_.h("design:type",Boolean)],Bo.prototype,"syncEnabled",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],Bo.prototype,"panelTargetId",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Bo.prototype,"panelContentVisible",void 0);_.c([_.Wj("#contents"),_.h("design:type",HTMLElement)],Bo.prototype,"contents",void 0);_.c([_.Wj("#sync-container"),_.h("design:type",HTMLElement)],Bo.prototype,"syncContainer",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Bo.prototype,"browsingMode",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Bo.prototype,"modern",void 0);_.c([_.v({selectorArgs:["data.syncModelEntityKey"],selector:_.UVo}),_.h("design:type",Object)],Bo.prototype,"syncEntity",void 0);_.c([_.nL("syncEntity.activeItemIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Bo.prototype,"activeItemChanged",null);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Bo.prototype,"dataChanged",null);_.c([_.nL("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Bo.prototype,"panelContentVisibleChanged",null);Bo=_.c([_.E({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Bo);
_.R(Bo,"ytd-macro-markers-list-renderer",function(){if(Qc4!==void 0)return Qc4;var q=document.createElement("template");_.f(q,'\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  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Qc4=q},{mode:1});var VkA;var xn=function(){return _.Y.apply(this,arguments)||this};
_.O(xn,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],xn.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],xn.prototype,"data",void 0);xn=_.c([_.E({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],xn);
_.R(xn,"ytd-error-corrections-section-item-renderer",function(){if(VkA!==void 0)return VkA;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return VkA=q},{mode:1});var fgV;var qv=function(){return _.Y.apply(this,arguments)||this};
_.O(qv,_.Y);qv.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],qv.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],qv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],qv.prototype,"data",void 0);qv=_.c([_.E({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],qv);
_.R(qv,"ytd-error-corrections-section-renderer",function(){if(fgV!==void 0)return fgV;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return fgV=q},{mode:1});var mxH;var wR=function(){return _.Y.apply(this,arguments)||this};
_.O(wR,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],wR.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],wR.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],wR.prototype,"data",void 0);wR=_.c([_.E({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],wR);
_.R(wR,"ytd-topic-link-renderer",function(){if(mxH!==void 0)return mxH;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return mxH=q},{mode:1});var AJx;var uC=function(){var q=_.Y.apply(this,arguments)||this;q.modern=_.T("kevlar_modern_sd_v2");q.modernLockupV2=_.T("modernize_structured_description_playlist_lockups_v2");q.modernTypography=_.T("web_modern_typography");return q};
_.O(uC,_.Y);uC.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"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],uC.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],uC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],uC.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],uC.prototype,"modern",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],uC.prototype,"modernLockupV2",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],uC.prototype,"modernTypography",void 0);uC=_.c([_.E({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],uC);
_.R(uC,"ytd-video-description-course-section-renderer",function(){if(AJx!==void 0)return AJx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return AJx=q},{mode:1});var JJa;var y9=function(){var q=_.Y.apply(this,arguments)||this;q.modern=_.T("kevlar_modern_sd_v2");q.modernTypography=_.T("web_modern_typography");return q};
_.O(y9,_.Y);y9.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"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],y9.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],y9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],y9.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],y9.prototype,"modern",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],y9.prototype,"modernTypography",void 0);
y9=_.c([_.E({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],y9);
_.R(y9,"ytd-video-description-files-section-renderer",function(){if(JJa!==void 0)return JJa;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return JJa=q},{mode:1});var zej;var ee=function(){return _.Y.apply(this,arguments)||this};
_.O(ee,_.Y);ee.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"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ee.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],ee.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ee.prototype,"data",void 0);ee=_.c([_.E({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],ee);
_.R(ee,"ytd-video-description-gaming-section-renderer",function(){if(zej!==void 0)return zej;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return zej=q},{mode:1});var ag6;var kv=function(){var q=_.Y.apply(this,arguments)||this;q.isExpanded=!1;return q};
_.O(kv,_.Y);kv.prototype.computeHasDefaultMetadataEndpoint=function(q){var w;q=q==null?void 0:(w=q.defaultMetadata)==null?void 0:w.runs;return!(!q||q.length!==1||!q[0].navigationEndpoint)};
kv.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.x$.Object.defineProperties(kv.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],kv.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],kv.prototype,"isExpanded",void 0);_.c([_.v({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],kv.prototype,"hasDefaultMetadataEndpoint",void 0);
_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],kv.prototype,"isExpandable",null);_.c([_.Z("data","isExpandable","isExpanded"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],kv.prototype,"showExpandedMetadata",null);kv=_.c([_.E({is:"ytd-info-row-renderer",disableElementRegistration:!0})],kv);
_.R(kv,"ytd-info-row-renderer",function(){if(ag6!==void 0)return ag6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return ag6=q},{mode:1});var DxT;var tf=function(){var q=_.Y.apply(this,arguments)||this;q.currentIndex=0;q.supportComponentResize=!0;q.modern=_.T("kevlar_modern_sd_v2");q.JSC$20042_lastScrollContainerWidth=NaN;return q};
_.O(tf,_.Y);_.k=tf.prototype;
_.k.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"}}}};
_.k.getItemsPath=function(){return"videoLockups"};
_.k.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.k.onIronResize=function(){this.updateVideoLockupStyles()};
_.k.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.k.updateVideoLockupStyles=function(){var q;this.JSC$20042_scrollContainer!==void 0&&(q=this.videoLockups)!=null&&q.length&&(q=this.JSC$20042_scrollContainer.clientWidth,q!==this.JSC$20042_lastScrollContainerWidth&&(this.JSC$20042_lastScrollContainerWidth=q,_.Pj(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(q*.8,415)+"px"}),_.t7(this.hostElement,"iron-resize")))};
_.x$.Object.defineProperties(tf.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var q=[],w;if((w=this.data)==null||!w.carouselLockups)return q;w=_.P(this.data.carouselLockups);for(var u=w.next();!u.done;u=w.next()){u=u.value;var y=void 0;((y=_.C(u,qDT))==null?0:y.videoLockup)&&q.push(_.C(u,qDT).videoLockup)}return q}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.videoLockups)==null||!q.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var q=[],w;if((w=this.data)==null||!w.carouselLockups)return q;var u;return(u=_.C(this.data.carouselLockups[this.scrollCount],qDT))==null?void 0:u.infoRows}}});
tf.prototype.dataChanged=tf.prototype.dataChanged;tf.prototype.onIronResize=tf.prototype.onIronResize;tf.prototype.hiddenChanged=tf.prototype.hiddenChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],tf.prototype,"componentBehavior",void 0);_.c([_.D(_.MR.YtdHorizontalListBehavior),_.h("design:type",Object)],tf.prototype,"ytdHorizontalListBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],tf.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],tf.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],tf.prototype,"inlineStructuredDescription",void 0);_.c([_.v({value:2}),_.h("design:type",Number)],tf.prototype,"initialCount",void 0);_.c([_.v(),_.h("design:type",Object)],tf.prototype,"currentIndex",void 0);
_.c([_.v(),_.h("design:type",Number)],tf.prototype,"scrollCount",void 0);_.c([_.v(),_.h("design:type",Object)],tf.prototype,"supportComponentResize",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],tf.prototype,"contentHidden",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],tf.prototype,"modern",void 0);_.c([_.Wj("#scroll-container"),_.h("design:type",HTMLDivElement)],tf.prototype,"JSC$20042_scrollContainer",void 0);
_.c([_.nL("contentHidden"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tf.prototype,"hiddenChanged",null);_.c([_.Z("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],tf.prototype,"videoLockups",null);_.c([_.Z("videoLockups"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tf.prototype,"hasVideoLockups",null);
_.c([_.Gm("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tf.prototype,"onIronResize",null);_.c([_.Z("data","scrollCount"),_.h("design:type",Object),_.h("design:paramtypes",[])],tf.prototype,"infoRows",null);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tf.prototype,"dataChanged",null);tf=_.c([_.E({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],tf);
_.R(tf,"ytd-video-description-music-section-renderer",function(){if(DxT!==void 0)return DxT;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return DxT=q},{mode:_.kB("kevlar_poly_si_batch_j081")?1:2});var Zw4;var PL=function(){var q=_.Y.apply(this,arguments)||this;q.modern=_.T("kevlar_modern_sd_v2");q.modernTypography=_.T("web_modern_typography");return q};
_.O(PL,_.Y);PL.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],PL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],PL.prototype,"ytRendererBehavior",void 0);_.c([_.v({}),_.h("design:type",Object)],PL.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],PL.prototype,"modern",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],PL.prototype,"modernTypography",void 0);
PL=_.c([_.E({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],PL);
_.R(PL,"ytd-video-description-transcript-section-renderer",function(){if(Zw4!==void 0)return Zw4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Zw4=q},{mode:1});var pnj;_.q9(_.LL(function(q){var w=_.Qo(_.Olf,function(){return q.data().firstProviderLinkStatusEntityKey}),u=_.Qo(_.Olf,function(){return q.data().secondProviderLinkStatusEntityKey}),y=function(){var e,t;
return((e=w())==null?void 0:e.linked)||((t=u())==null?void 0:t.linked)};
return _.W("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.W(_.Lr,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return q.data().sectionTitle}}),_.W(_.Lr,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return y()?q.data().connectedMessage:q.data().notConnectedMessage}}),_.W(_.r,{cond:y,
then:function(){return _.W(_.OF,{data:function(){return q.data().connectedButton}},{buttonViewModel:function(e){return _.W(_.Zs,{data:e.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.W(_.r,{cond:function(){return!y()},
then:function(){return _.W(_.OF,{data:function(){return q.data().notConnectedButton}},{buttonViewModel:function(e){return _.W(_.Zs,{data:e.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Ii"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.pK}});_.q9(_.LL(function(q){var w=q.data;return _.W("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.W("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.W(_.Lr,{text:function(){return w().sectionTitle}})),_.W("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.W(_.Lr,{text:function(){return w().bodyHeader}})),_.W("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.W(_.Lr,{text:function(){return w().bodyText}})),_.W(_.r,
{cond:function(){return w().attributionText},
then:function(){return _.W("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.W(_.Lr,{text:function(){return w().attributionText}}))}}))},"Ji"),"how-this-was-made-section-view-model",{props:{data:_.pK}});_.q9(_.LL(function(q){return _.W("yt-video-description-youchat-section-view-model",{class:_.HR("ytVideoDescriptionYouchatSectionViewModelHost")},_.W("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.W(_.Lr,{text:function(){return q.data().sectionTitle}})),_.W("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.W(_.Lr,{text:function(){return q.data().subHeaderText}})),_.W("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.W(_.Zs,{data:function(){return _.C(q.data().primaryButton,
_.oH)}})))},"Ki"),"yt-video-description-youchat-section-view-model",{props:{data:_.pK}});var Xz=function(){var q=_.Y.apply(this,arguments)||this;q.modern=_.T("kevlar_modern_sd_v2");q.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return q};
_.O(Xz,_.Y);_.k=Xz.prototype;
_.k.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}}}}}};
_.k.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.k.dataChanged=function(){var q,w;this.hasDescriptionOnly=!(((q=this.data)==null?void 0:(w=q.items)==null?void 0:w.length)!==1||!_.C(this.data.items[0],wZK))};
_.k.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.k.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.k.autoFocusDescription=function(){var q;((q=_.tG().resolve(_.kF(_.LK)))==null?0:q.isKeyBoardInUse())&&this.description&&_.q5(this.description)};
_.k.resize=function(){if(_.T("kevlar_disable_sd_resize"))this.JSC$20050_cardList&&_.t7(this.JSC$20050_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.t7(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.t7(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.k.scrollToSection=function(q){if(q=this.getSectionElement(q))_.Pw(this.hostElement,"yt-scroll-to-watch-element",[q]),q.focus()};
_.k.getSectionElement=function(q){switch(q){case "infocards-item-section":var w;return(w=this.infocardsSection)!=null?w:null;case "transcript-item-section":var u;return(u=this.transcriptSection)!=null?u:null;case "how-this-was-made-section-item-section":var y;return(y=this.howThisWasMadeSection)!=null?y:null;case "files-item-section":var e;return(e=this.filesSection)!=null?e:null;default:return null}};
_.k.handleSetActiveItemAction=function(q){var w=_.C(q,OEc),u=w&&(w==null?void 0:w.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20050_cardList;if(w&&u){q=this.currentActiveChapter;var y=this.currentActiveProblem;w=u==null?void 0:u.getItemByIndex(w.itemIndex);var e=u=!0;w&&(w.active=!0,w.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(u=q!==w,e=!1,this.currentActiveChapter=w):(w==null?void 0:w.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(u=!1,e=y!==w,this.currentActiveProblem=w));q&&u&&(q.active=!1);y&&e&&(y.active=!1)}};
_.x$.Object.defineProperties(Xz.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.T("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
Xz.prototype.onYtExpanderMoreTapped=Xz.prototype.onYtExpanderMoreTapped;Xz.prototype.onHiddenChanged=Xz.prototype.onHiddenChanged;Xz.prototype.dataChanged=Xz.prototype.dataChanged;Xz.prototype.panelContentVisibleChanged=Xz.prototype.panelContentVisibleChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Xz.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Xz.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Xz.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.mF),_.h("design:type",Object)],Xz.prototype,"ironResizableBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Xz.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],Xz.prototype,"panelContentVisible",void 0);_.c([_.v(),_.h("design:type",Boolean)],Xz.prototype,"hasDescriptionOnly",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Xz.prototype,"inlineStructuredDescription",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Xz.prototype,"hidden",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Xz.prototype,"shortsPanel",void 0);_.c([_.v(),_.h("design:type",Object)],Xz.prototype,"videoSummary",void 0);_.c([_.v(),_.h("design:type",Object)],Xz.prototype,"merchShelf",void 0);
_.c([_.Z("videoSummary"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Xz.prototype,"showVideoSummary",null);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Xz.prototype,"modern",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Xz.prototype,"engagementPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Xz.prototype,"watchWhileSdp",void 0);
_.c([_.Wj("ytd-expandable-video-description-body-renderer"),_.h("design:type",Object)],Xz.prototype,"description",void 0);_.c([_.Wj("ytd-horizontal-card-list-renderer"),_.h("design:type",Object)],Xz.prototype,"JSC$20050_cardList",void 0);_.c([_.Wj("ytd-horizontal-card-list-renderer[center-items]"),_.h("design:type",Object)],Xz.prototype,"problemWalkthroughCardList",void 0);_.c([_.Wj("ytd-shelf-renderer"),_.h("design:type",Object)],Xz.prototype,"shelfSection",void 0);
_.c([_.Wj("ytd-video-description-music-section-renderer"),_.h("design:type",Object)],Xz.prototype,"musicMetadataSection",void 0);_.c([_.Wj("ytd-video-description-infocards-section-renderer"),_.h("design:type",Object)],Xz.prototype,"infocardsSection",void 0);_.c([_.Wj("ytd-video-description-transcript-section-renderer"),_.h("design:type",Object)],Xz.prototype,"transcriptSection",void 0);
_.c([_.Wj("how-this-was-made-section-view-model"),_.h("design:type",Object)],Xz.prototype,"howThisWasMadeSection",void 0);_.c([_.Wj("ytd-video-description-files-section-renderer"),_.h("design:type",Object)],Xz.prototype,"filesSection",void 0);_.c([_.nL("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xz.prototype,"panelContentVisibleChanged",null);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xz.prototype,"dataChanged",null);_.c([_.nL("hidden"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xz.prototype,"onHiddenChanged",null);_.c([_.Gm("yt-expander-more-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xz.prototype,"onYtExpanderMoreTapped",null);
Xz=_.c([_.E({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Xz);
_.R(Xz,"ytd-structured-description-content-renderer",function(){if(pnj!==void 0)return pnj;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return pnj=q},{mode:2});var $xm;var vO6;var Fz=function(){return _.Y.apply(this,arguments)||this};
_.O(Fz,_.Y);Fz.prototype.computeAriaLabel=function(q){var w,u;return(q==null?void 0:(w=q.accessibility)==null?void 0:(u=w.accessibilityData)==null?void 0:u.label)||_.ID("LOADING",void 0,"Loading")};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Fz.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Fz.prototype,"data",void 0);_.c([_.v({computed:"computeAriaLabel(data)"}),_.h("design:type",String)],Fz.prototype,"ariaLabel",void 0);Fz=_.c([_.JM({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],Fz);
_.R(Fz,"yt-content-loading-renderer",function(){if(vO6===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;$xm===void 0&&($xm=document.createElement("template"));var y=$xm;u.call(w,y.content.cloneNode(!0),q.content.firstChild);vO6=q}q=vO6;return q},{mode:_.kB("kevlar_poly_si_batch_j043")?1:2});_.q9(_.LL(function(q){var w=_.P(_.r4(!1,void 0,"WbYeXc")),u=w.next().value,y=w.next().value;w=_.P(_.r4(!1,void 0,"msXkzc"));var e=w.next().value,t=w.next().value;_.p4(function(){var n=_.C(q.data().collaboratePlaylistCollaborationSetting,cS6);n&&y(n.switchedOnByDefault);var N=_.C(q.data().allowNewCollaboratorsPlaylistCollaborationSetting,cS6);N&&t(N.switchedOnByDefault);if(!n&&!N||!n&&q.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")y(!0),t(!0)});
var X=function(n){y(n);t(n);var N=q.data().playlistCollaborationEntityKey||"";var Q=_.cj().getState();(Q=_.HQ(Q.entities,"playlistCollaborationEntity",N))&&(Q==null?void 0:Q.isCollaborative)===n||_.cj().dispatch(_.IH("playlistCollaborationEntity",N,Object.assign({},Q,{isCollaborative:n})))},G=function(n){t(n)};
return _.W("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.W("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.W(_.OF,{data:function(){return q.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(n){return _.W(_.ZwG,{data:n.data,
onSwitch:X})}})),_.W(_.r,{cond:u,
then:function(){return _.W("div",null,_.W("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.W(_.OF,{data:function(){return q.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(n){return _.W(_.ZwG,{data:n.data,
onSwitch:G,overrideDisabled:!1})}})),_.W(_.r,{cond:e,
then:function(){return _.W("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.W(_.OF,{data:function(){return q.data().copyLinkButton}},{buttonViewModel:_.Zs}))}}),_.W("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.W(_.OF,{data:function(){return q.data().playlistCollaborators}},{contentListItemViewModel:_.XD6})))}}))},"Li"),"playlist-collaboration-view-model",{props:{data:_.pK}});var bwK=_.LL(function(q){var w=q.data;var u=q.customCommandResolver;return _.W(_.GS,null,_.W("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.W(_.OF,{data:function(){return w().adAvatar}},{adAvatarViewModel:function(y){return _.W(_.T5F,{data:y.data,
customCommandResolver:u})}})),_.W("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.W(_.r,{cond:function(){return w().headline},
then:function(y){return _.W(_.Lr,{text:y,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.W("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.W(_.OF,{data:function(){return w().adBadge}},{adBadgeViewModel:function(y){return _.W(_.ll,{data:y.data,
hasDot:function(){return w().primaryDetailsLine!==void 0},
customCommandResolver:u,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.W(_.OF,{data:function(){return w().primaryDetailsLine}},{adDetailsLineViewModel:function(y){return _.W(_.Lz,{data:y.data,
customCommandResolver:u,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Mi"),YVT=_.LL(function(q){var w=q.data;
var u=q.customCommandResolver;q=_.Bm();_.Sg(q,function(){return w().interaction},u);
_.k$(q,{visibilityCallback:function(y){var e,t=(e=w().interaction)==null?void 0:e.onFirstVisible;y&&t&&_.bn(t)},
showOption:_.R1});return _.W("ad-avatar-lockup-view-model",{class:function(){var y;return((y=w().interaction)==null?0:y.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:q,"aria-label":function(){var y,e;return(y=w().interaction)==null?void 0:(e=y.accessibility)==null?void 0:e.label}},_.W(_.zS,null,_.W(_.AP,{when:function(){return w().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.W(bwK,{data:w,
customCommandResolver:u})}),_.W(_.JP,null,function(){return null})))},"Ni");_.q9(_.LL(function(q){var w=q.data;var u=q.panelContentVisibility;q=_.Bm();_.Sg(q,function(){return w().interaction},Yxc);
_.k$(q,{visibilityCallback:function(e){var t,X=(t=w().interaction)==null?void 0:t.onFirstVisible;e&&X&&_.bn(X)},
showOption:_.R1});_.v1(function(){var e,t;if(t=_.hP("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var X;t=(X=t())==null?void 0:X.onLayoutVisibleCallback}else t=null;(e=t)==null||e()});
var y=function(){return u()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.W("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:q},_.W("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.W("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.W(_.r,{cond:_.cSJ("(min-width: "+((0,_.fl)()+_.pb)+"px) or (max-width: 600px)"),then:function(){return _.W(_.OF,{data:function(){return w().adImage}},{adImageViewModel:function(e){return _.W(_.u_,{data:e.data,
targetHeight:80,customCommandResolver:Yxc})}})}})),_.W("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.W("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.W(_.OF,{data:function(){return w().adAvatarLockup}},{adAvatarLockupViewModel:function(e){return _.W(YVT,{data:e.data,
customCommandResolver:Yxc})}})),_.W(_.r,{cond:y,
then:function(){return _.W(_.OF,{data:function(){return w().adButton}},{adButtonViewModel:function(e){return _.W(_.Sj,{data:e.data,
customCommandResolver:Yxc})}})},
else:function(){return _.W(_.OF,{data:function(){return w().menu}},{buttonViewModel:_.Zs})}}),_.W("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.W(_.OF,{data:function(){var e=_.C(w().toggleButton,_.Vo);
return{toggleButtonViewModel:Object.assign({},e,{isTogglingDisabled:!0,isToggled:y()})}}},{toggleButtonViewModel:_.fr})))))},"Oi"),"panel-ad-header-image-lockup-view-model",{props:{data:_.pK,
panelContentVisibility:_.pK}});_.q9(_.LL(function(q){var w=function(){return _.C(q.data().inputComposerViewModel,SB6)},u=function(){var a;
return((a=w())==null?void 0:a.youchatPendingResponseEntityKey)||""},y=_.Qo(_.Jd4,u),e=function(){var a;
return!((a=y())==null||!a.isPendingResponse)},t=_.P(_.r4(!0,void 0,"DR0q1d")),X=t.next().value,G=t.next().value,n=function(){return w().sectionTargetId||"youchat_messages_section"};
t=_.x8();var N=_.Bm(),Q=_.Qo(mWH,"chat_input_view_model_state"),I=ATV(),U=function(){var a;return!((a=Q())==null||!a.value)};
_.p4(function(){var a;!U()&&((a=w())==null?0:a.welcomeFeatureContinuation)&&(a={continuationCommand:{token:w().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},_.px(a),I(!0));var b=n(),g;(g=_.tG().resolve(_.kF(_.yA)))==null||g.addEventListener("yt-navigate-start",function(){_.Tn.remove(b);I(!1)},{once:!0})});
var d=_.QS(function(a){var b=e()||!1;glm(N.value);b||a.key!=="Enter"||a.shiftKey||(a.preventDefault(),J());return!1}),V=_.QS(function(){G(N.value.value.length===0);
return!1}),J=function(){var a,b,g,l,S,eH,x,P4,C7;
return _.F(function(mu){a=N.value.value;N.value.value="";glm(N.value);b=Elx(n(),a);_.px(b);g=_.z86(u());_.bn(((l=w())==null?void 0:l.onSubmitCommand)||{});g(!0);eH=String(Math.floor(((S=_.Gn())==null?void 0:S.getCurrentTime())||0)*1E3);P4={continuationCommand:{token:(x=w())==null?void 0:x.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};C7={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:a,playerOffsetMs:eH}};_.px(P4,{form:{formData:C7},commandController:{onSuccess:function(){g(!1)},
onServerError:function(){var Os=n();_.px({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:Os}}]}}});g(!1)}}});
_.HI(mu)})};
return _.W("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:t},_.W("div",{class:"chatInputViewModelChatInputWrapper"},_.W("form",{class:"chatInputViewModelChatInputForm"},_.W("textarea",{class:"chatInputViewModelChatInput",el:N,"on:keydown":d,"on:keyup":V,placeholder:function(){var a,b;var g=_.C((b=w())==null?void 0:b.inputFormField,Tlx);return g==null?void 0:(a=g.contentProperties)==null?void 0:a.placeholderText},
rows:1}),_.W(_.Zs,{data:function(){return _.C(q.data().sendButton,_.oH)},
onClick:function(a){a.preventDefault();J();G(N.value.value.length===0)},
buttonOverrides:function(){return{disabled:X()||e()}}})),_.W(_.Lr,{className:"chatInputViewModelChatDisclaimer",
text:function(){var a;return(a=_.C(q.data().disclaimer,_.th3))==null?void 0:a.text}})))},"Pi"),"yt-chat-input-view-model",{props:{data:_.pK}});var gOK=["engagement-panel-clip-create","engagement-panel-clip-view"],EOm=0,GJ=function(){var q=_.Y.apply(this,arguments)||this;var w;q.headerData=(w=q.data)==null?void 0:w.header;q.darkerPanels=_.T("web_watch_darker_panels");q.matchContentTheme=_.T("web_watch_panel_content_match_theme");q.disableAutoFill=!1;q.isFullscreen=!1;q.isTheaterMode=!1;q.modernPanels=_.T("kevlar_watch_modern_panels");q.liveChatReplyPanel=!1;q.enableAnchoredPanel=_.T("desktop_shorts_v2_anchored_panel");q.disableBackdropFilter=
_.T("web_disable_backdrop_filter");q.trackEngagementPanelVisibility=_.T("web_watch_track_engagement_panel_visibility");q.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 q};
_.O(GJ,_.Y);_.k=GJ.prototype;
_.k.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},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(q){var w;
return(q==null?void 0:(w=q.webComponentHint)==null?void 0:w.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"}}}};
_.k.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var q;if((q=this.hostElement.parentElement)==null?0:q.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.k.detached=function(){this.updateTheaterDisablement()};
_.k.showPanel=function(){var q=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.pi.addJob(function(){q.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.k.maybeScrollToItemSection=function(q){var w=this,u,y=q==null?void 0:(u=q.sectionListEngagementPanelExtras)==null?void 0:u.scrollToItemSectionIdentifier;y&&_.pi.addJob(function(){var e;(e=w.sectionListRendererElement)==null||e.scrollToItemSection(y)},8)};
_.k.hidePanel=function(){var q=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.pi.addJob(function(){q.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.k.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.k.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.k.updatePanel=function(q,w,u,y){var e=this;if((q=q==null?void 0:q.engagementPanelSectionListRenderer)||y){if(q){y=q.header;var t=q.content,X=q.footer;(q=q.targetId)&&this.set("data.targetId",q);y&&this.set("data.header",y);t&&this.set("data.content",t);X&&this.set("data.footer",X)}else y&&(q=y.content,t=y.secondaryHeaderContent,(y=y.targetId)&&this.set("data.targetId",y),q&&this.set("data.content",q),t&&(this.secondaryHeaderData=t));this.updateChildVisibilityProperties();if(w){var G;_.T("kevlar_update_panel_focus_scroll_killswitch")||
(G={preventScroll:!0});this.focus(G)}_.KJ(this,function(){_.t7(e.hostElement,"yt-refit");e.maybeScrollToItemSection(u)})}};
_.k.computeHeaderData=function(){var q,w=(0,_.db.unsafeClone)((q=this.data)==null?void 0:q.header);if(w){q=new _.M(Object.keys(w)[0]);var u=_.C(w,q),y=_.C(this.secondaryHeaderData,q);y&&_.AB(w,q,Object.assign({},y,u))}return w};
_.k.getReloadContinuation=function(){var q,w,u,y=_.P(((q=this.data)==null?void 0:(w=q.content)==null?void 0:(u=w.sectionListRenderer)==null?void 0:u.continuations)||[]);for(q=y.next();!q.done;q=y.next())if(q=q.value,q.reloadContinuationData)return q.reloadContinuationData.continuation};
_.k.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var q;((q=this.data)==null?0:q.targetId)&&(q=this.contentElement.firstElementChild)&&q.setAttribute("panel-target-id",this.data.targetId)};
_.k.forwardPopupClosedToFlowRootRenderer=function(){var q=_.A(this.hostElement).querySelector("ytd-flow-root-renderer");if(q)q.onPopupClosed()};
_.k.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var q=_.T("web_watch_imax_theater_mode")&&this.isTheaterMode;q=_.T("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||q;if(_.T("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||q){var w;this.visibility=
(w=this.data)==null?void 0:w.visibility;var u;this.trackEngagementPanelVisibility&&((u=this.data)==null?void 0:u.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var y,e,t,X;this.contentEmpty=!!(((y=this.data)==null?0:(e=y.content)==null?0:e.structuredDescriptionContentRenderer)&&Object.keys((t=this.data)==null?void 0:(X=t.content)==null?void 0:X.structuredDescriptionContentRenderer).length===0);(w=_.tG().resolve(_.ib))&&w.registerPanel(this.getIdentifier(),
this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.k.isTheaterModeChanged=function(){_.T("web_watch_imax_theater_mode")&&this.hidePanel()};
_.k.isFullscreenChanged=function(){_.T("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.k.focus=function(q){if(this.header)this.header.focus(q);else{var w;(w=_.A(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||w.focus(q)}};
_.k.visibilityChanged=function(){if(!_.T("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var q=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",w=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",u=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",y=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",e=y||!this.lastVisibility,t,X,G=(t=this.data)==null?void 0:(X=t.identifier)==null?void 0:X.tag,
n;if(((n=this.data)==null?0:n.onShowCommands)&&q&&e)_.nq(this.hostElement,this.data.onShowCommands,this.hostElement),G&&_.Mt().dispatch(_.tr({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:G}}));else{var N;((N=this.data)==null?0:N.onHideCommands)&&w&&u&&(_.nq(this.hostElement,this.data.onHideCommands,this.hostElement),G&&_.Mt().dispatch(_.tr({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:G}})))}q&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*EOm++));_.T("kevlar_watch_focus_on_engagement_panels")&&
q&&y&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.k.notifyVisibilityChanged=function(q){var w;_.X4(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,q,(w=this.data)==null?void 0:w.targetId])};
_.k.updateTheaterDisablement=function(){if(!_.T("kevlar_watch_theater_disablement_killswitch")){var q=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&gOK.includes(q)&&!_.T("watch_next_grid_ignore_disallowed_panels")){var w=_.on(_.Mt().getState()),u=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";q!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():u?(this.originalTheaterState===void 0&&(this.originalTheaterState=w,this.theaterDisablementPanelIdentifier=
q),w&&_.Pw(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.k.clearTheaterDisablement=function(){_.Pw(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.k.updateChildVisibilityProperties=function(){this.hostElement||_.T("kevlar_panel_property_init_killswitch")||this._enableProperties();var q=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=q);var w,u=(w=this.headerElement)==null?void 0:w.firstElementChild;if(u&&!this.adHeaderImageLockupViewModel){w=q==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";u.collapsed=w;u=_.A(u).querySelector("#visibility-button");if(!u)return;(u=u.firstElementChild)&&
u.polymerController.is==="ytd-toggle-button-renderer"&&u.polymerController.data.isToggled!==w&&u.polymerController.set("data.isToggled",w)}var y;if(w=(y=this.contentElement)==null?void 0:y.firstElementChild)if(q&&q!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")w.removeAttribute("panel-content-visible");else{w.setAttribute("panel-content-visible","");var e;(e=w.markDirty)==null||e.call(w)}};
_.k.onYtChangeEngagementPanelVisibilityAction=function(q){var w=this,u,y=(u=this.data)==null?void 0:u.targetId,e,t,X;u=((e=this.data)==null?void 0:(t=e.identifier)==null?void 0:t.tag)||((X=this.data)==null?void 0:X.panelIdentifier);var G=_.C(q,_.XSa),n;q=y&&(G==null?void 0:G.targetId)===y||u&&(G==null?void 0:(n=G.panelIdentifier)==null?void 0:n.tag)===u;this.dialog&&q&&(G==null?void 0:G.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(y==="engagement-panel-comments-section"?_.Pw(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.Pw(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",u]));!_.T("kevlar_use_engagement_panel_management_component")&&q&&(y=G.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!y?_.pi.addJob(function(){w.visibility=G.visibility},2,this.hideDelayMs):this.visibility=G.visibility,G.visibility&&this.notifyVisibilityChanged(G.visibility))};
_.k.onYtScrollToEngagementPanelCommand=function(q){var w,u=(w=this.data)==null?void 0:w.targetId,y,e,t;w=((y=this.data)==null?void 0:(e=y.identifier)==null?void 0:e.tag)||((t=this.data)==null?void 0:t.panelIdentifier);q=_.C(q,_.rva);var X;(u&&(q==null?void 0:q.targetId)===u||w&&(q==null?void 0:(X=q.panelIdentifier)==null?void 0:X.tag)===w)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.Pw(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.k.attachVEs=function(q){var w,u;(q==null?0:(w=q.content)==null?0:(u=w.productListRenderer)==null?0:u.trackingParams)&&_.Qz().graftServerVe(q.content.productListRenderer.trackingParams);var y,e;(q==null?0:(y=q.content)==null?0:(e=y.transcriptRenderer)==null?0:e.trackingParams)&&_.Qz().graftServerVe(q.content.transcriptRenderer.trackingParams)};
_.k.onYtUpdateEngagementPanelAction=function(q){var w,u=(w=this.data)==null?void 0:w.targetId;q=_.C(q,Vx4);u&&(q==null?void 0:q.targetId)===u&&(this.updatePanel({engagementPanelSectionListRenderer:{header:q==null?void 0:q.header,content:q==null?void 0:q.content}},!1),this.attachVEs(q))};
_.k.onYtShowEngagementPanelScrimAction=function(q){var w,u=(w=this.data)==null?void 0:w.targetId;q=_.C(q,o4T);u&&(q==null?void 0:q.engagementPanelTargetId)===u&&(this.scrimmed=!0)};
_.k.onYtHideEngagementPanelScrimAction=function(q){var w,u=(w=this.data)==null?void 0:w.targetId;q=_.C(q,dmm);u&&(q==null?void 0:q.engagementPanelTargetId)===u&&(this.scrimmed=!1)};
_.k.getIdentifier=function(){var q,w,u;return((q=this.data)==null?void 0:q.panelIdentifier)||((w=this.data)==null?void 0:(u=w.identifier)==null?void 0:u.tag)};
_.k.getSurface=function(){var q,w;return(q=this.data)==null?void 0:(w=q.identifier)==null?void 0:w.surface};
_.x$.Object.defineProperties(GJ.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var q=this.getIdentifier();return q==="engagement-panel-youchat"||q==="PAyouchat"}}});
GJ.prototype.visibilityChanged=GJ.prototype.visibilityChanged;GJ.prototype.isFullscreenChanged=GJ.prototype.isFullscreenChanged;GJ.prototype.isTheaterModeChanged=GJ.prototype.isTheaterModeChanged;GJ.prototype.dataChanged=GJ.prototype.dataChanged;GJ.prototype.forwardPopupClosedToFlowRootRenderer=GJ.prototype.forwardPopupClosedToFlowRootRenderer;GJ.prototype.onYtRendererstamperFinished=GJ.prototype.onYtRendererstamperFinished;
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],GJ.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],GJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],GJ.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],GJ.prototype,"ytEventForwardingBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],GJ.prototype,"data",void 0);
_.c([_.v({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.h("design:type",Object)],GJ.prototype,"headerData",void 0);_.c([_.v(),_.h("design:type",Object)],GJ.prototype,"secondaryHeaderData",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],GJ.prototype,"visibility",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],GJ.prototype,"contentEmpty",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],GJ.prototype,"scrimmed",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],GJ.prototype,"dialog",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],GJ.prototype,"dropdown",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],GJ.prototype,"darkerPanels",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],GJ.prototype,"matchContentTheme",void 0);_.c([_.v(),_.h("design:type",Object)],GJ.prototype,"disableAutoFill",void 0);
_.c([_.v({reflectToAttribute:!0,value:_.T("optimal_reading_width_comments_ep")}),_.h("design:type",Boolean)],GJ.prototype,"optimalReadingWidthComments",void 0);_.c([_.v(),_.h("design:type",Number)],GJ.prototype,"hideDelayMs",void 0);_.c([_.v({selector:_.OT,reflectToAttribute:!0}),_.h("design:type",Object)],GJ.prototype,"isFullscreen",void 0);_.c([_.v({selector:_.on,reflectToAttribute:!0}),_.h("design:type",Object)],GJ.prototype,"isTheaterMode",void 0);
_.c([_.v(),_.h("design:type",Number)],GJ.prototype,"showDelayMs",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("data.targetId"),_.h("design:type",Object),_.h("design:paramtypes",[])],GJ.prototype,"targetId",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],GJ.prototype,"webSize",null);_.c([_.v(),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],GJ.prototype,"hideFooterBorder",null);
_.c([_.v(),_.h("design:type",Object)],GJ.prototype,"isWatch",void 0);_.c([_.v(),_.h("design:type",Object)],GJ.prototype,"originalTheaterState",void 0);_.c([_.v(),_.h("design:type",Object)],GJ.prototype,"theaterDisablementPanelIdentifier",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],GJ.prototype,"modernPanels",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],GJ.prototype,"isWatchWhilePanel",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],GJ.prototype,"shortsPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],GJ.prototype,"liveChatEngagementPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],GJ.prototype,"liveChatReplyPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],GJ.prototype,"enableAnchoredPanel",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],GJ.prototype,"disableBackdropFilter",void 0);_.c([_.v(),_.h("design:type",Object)],GJ.prototype,"trackEngagementPanelVisibility",void 0);_.c([_.Wj("#header"),_.h("design:type",HTMLElement)],GJ.prototype,"headerElement",void 0);_.c([_.Wj("#header > *"),_.h("design:type",HTMLElement)],GJ.prototype,"header",void 0);_.c([_.Wj("ytd-section-list-renderer"),_.h("design:type",Object)],GJ.prototype,"sectionListRendererElement",void 0);
_.c([_.Wj("panel-ad-header-image-lockup-view-model"),_.h("design:type",HTMLElement)],GJ.prototype,"adHeaderImageLockupViewModel",void 0);_.c([_.Wj("#content"),_.h("design:type",HTMLElement)],GJ.prototype,"contentElement",void 0);_.c([_.Gm("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GJ.prototype,"onYtRendererstamperFinished",null);
_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GJ.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.c([_.I9("data","isFullscreen","isTheaterMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GJ.prototype,"dataChanged",null);_.c([_.nL("isTheaterMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GJ.prototype,"isTheaterModeChanged",null);
_.c([_.nL("isFullscreen"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GJ.prototype,"isFullscreenChanged",null);_.c([_.nL("visibility"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GJ.prototype,"visibilityChanged",null);GJ=_.c([_.E({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],GJ);
_.R(GJ,"ytd-engagement-panel-section-list-renderer",function(){if(nOB!==void 0)return nOB;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return nOB=q},{mode:_.kB("kevlar_poly_si_batch_j028")?1:2});var Rem;var nu=function(){var q=_.Y.apply(this,arguments)||this;q.lastRenderedPanelIds=new Set;q.visiblePanels=[];q.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return q};
_.O(nu,_.Y);_.k=nu.prototype;_.k.dataChanged=function(){if(this.data){for(var q=[],w=_.P(this.data),u=w.next();!u.done;u=w.next()){u=u.value;var y=void 0,e=void 0,t=(y=u)==null?void 0:(e=y.engagementPanelSectionListRenderer)==null?void 0:e.visibility;e=y=void 0;((y=u)==null?0:(e=y.engagementPanelSectionListRenderer)==null?0:e.targetId)&&t!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&q.push(u)}this.visiblePanels=q}else this.visiblePanels=[]};
_.k.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}}};
_.k.withoutVisiblePanelById=function(q){return this.visiblePanels.filter(function(w){var u;return((u=w.engagementPanelSectionListRenderer)==null?void 0:u.targetId)!==q})};
_.k.onYtChangeEngagementPanelVisibilityAction=function(q){var w=this,u=_.C(q,_.XSa);if(this.data&&(u==null?0:u.targetId)&&(u==null?0:u.visibility)){var y,e=(y=this.data.find(function(X){var G;return((G=X.engagementPanelSectionListRenderer)==null?void 0:G.targetId)===u.targetId}))==null?void 0:y.engagementPanelSectionListRenderer;
if(e){var t=this.withoutVisiblePanelById(u.targetId);u.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(q=this.data.find(function(X){var G;return((G=X.engagementPanelSectionListRenderer)==null?void 0:G.targetId)===u.targetId}))&&(t=[q].concat(_.Cm(t)));
this.hideDelayMs&&u.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&t.length===0?_.pi.addJob(function(){e.visibility=u.visibility;w.visiblePanels=t},10,this.hideDelayMs):(e.visibility=u.visibility,this.visiblePanels=t);
_.X4(this.hostElement,"yt-engagement-panels-visible-changed",[t])}}};
_.k.onRendererstamperFinished=function(){var q=new Set(this.visiblePanels.map(function(w){var u;return(u=w.engagementPanelSectionListRenderer)==null?void 0:u.targetId}));
this.handlePanelVisibilityChange(q,this.lastRenderedPanelIds);this.lastRenderedPanelIds=q};
_.k.handlePanelVisibilityChange=function(q,w){q=q===void 0?new Set:q;w=w===void 0?new Set:w;if(this.data)for(var u=_.P(this.data),y=u.next();!y.done;y=u.next()){y=y.value;var e=void 0,t=void 0,X=(e=y)==null?void 0:(t=e.engagementPanelSectionListRenderer)==null?void 0:t.targetId;if(X&&(e=w.has(X),t=q.has(X),X=void 0,!e&&t?(t=e=void 0,X=(e=y)==null?void 0:(t=e.engagementPanelSectionListRenderer)==null?void 0:t.onShowCommands):e&&!t&&(t=e=void 0,X=(e=y)==null?void 0:(t=e.engagementPanelSectionListRenderer)==
null?void 0:t.onHideCommands),X))for(y=_.P(X),X=y.next();!X.done;X=y.next())this.ytComponentBehavior.resolveCommand(X.value)}};
nu.prototype.onRendererstamperFinished=nu.prototype.onRendererstamperFinished;nu.prototype.dataChanged=nu.prototype.dataChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],nu.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],nu.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],nu.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],nu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],nu.prototype,"lastRenderedPanelIds",void 0);_.c([_.v(),_.h("design:type",Number)],nu.prototype,"hideDelayMs",void 0);_.c([_.v(),_.h("design:type",Array)],nu.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Array)],nu.prototype,"visiblePanels",void 0);_.c([_.v(),_.h("design:type",Boolean)],nu.prototype,"isWatchWhilePanel",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nu.prototype,"dataChanged",null);_.c([_.Gm("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nu.prototype,"onRendererstamperFinished",null);nu=_.c([_.E({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],nu);
_.R(nu,"ytd-watch-engagement-panels",function(){if(Rem!==void 0)return Rem;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Rem=q},{mode:1});var cJV;var HL=function(){return _.Y.apply(this,arguments)||this};
_.O(HL,_.Y);HL.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.Ym(_.A(this.hostElement).querySelector("#text"),_.i76(_.Tj6,this.data.companionLegalText))};
HL.prototype.computeAutoScrollEnabled=function(q,w){return q&&!w};
HL.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
HL.prototype.onToggleTap=function(){this.expanded=!this.expanded};
HL.prototype.expandedChanged=HL.prototype.expandedChanged;HL.prototype.dataChanged=HL.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],HL.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.lwV),_.h("design:type",Object)],HL.prototype,"ytdAutoScrollBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],HL.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],HL.prototype,"expanded",void 0);
_.c([_.v({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.h("design:type",Boolean)],HL.prototype,"autoScrollEnabled",void 0);_.c([_.v(),_.h("design:type",String)],HL.prototype,"expanderIcon",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HL.prototype,"dataChanged",null);
_.c([_.nL("expanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HL.prototype,"expandedChanged",null);HL=_.c([_.E({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],HL);
_.R(HL,"ytd-companion-legal-text-renderer",function(){if(cJV!==void 0)return cJV;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return cJV=q},{mode:1});var SVa;var WL=function(){var q=_.Y.apply(this,arguments)||this;q.buttonUpdate=_.T("web_modern_buttons");q.kevlarWatchGrid=_.T("kevlar_watch_grid");q.centerAlignDescription=_.T("action_companion_center_align_description");q.truncateDomain=_.T("action_companion_truncate_domain");return q};
_.O(WL,_.Y);_.k=WL.prototype;_.k.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.k.getOnLayoutVisibleCallback=function(){var q=_.hP("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.onLayoutVisibleCallback:null};
_.k.getLayoutId=function(){var q=_.hP("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.layoutId:null};
_.k.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",WL.JSC$20096_DEFAULT_AD_BADGE_RENDERER);var q=this.getOnLayoutVisibleCallback();q&&q()}};
_.k.getButtonRenderer=function(q){return q.actionButton&&_.C(q.actionButton,_.aB)?(delete _.C(q.actionButton,_.aB).navigationEndpoint,_.C(q.actionButton,_.aB)):{}};
_.k.onClick=function(q){var w=this;if((!_.T("web_modern_buttons")||!_.LT(_.SQ(q),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){q=_.xo();var u=this.getLayoutId();q&&u&&_.T("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?q.getPlayerPromise().then(function(y){(new _.HF(y)).executeCommand(w.data.navigationEndpoint,u)}):_.T("kevlar_companion_resolve_command_killswitch")?_.t7(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.Pw(this.hostElement,"yt-companion-ad-clicked",["action-companion",u])}};
_.x$.Object.defineProperties(WL.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return((q=this.data)==null?0:(w=q.detailsLine)==null?0:(u=w.adRating)==null?0:u.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 q,w,u,y;return((q=this.data)==null?0:(w=q.detailsLine)==null?0:(u=w.adRating)==null?0:(y=u.ratingIcon)==null?0:y.iconType)?_.Fy(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var q,w,u,y;return((q=this.data)==null?0:(w=q.detailsLine)==null?0:(u=w.texts)==null?0:(y=u[0])==null?0:y.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 q,w;return((q=this.data)==null?0:(w=q.description)==null?0:w.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var q=_.hP("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var q=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return q?q.indexOf("/default_banner")!==-1:!0}}});
WL.prototype.onClick=WL.prototype.onClick;WL.prototype.dataChanged=WL.prototype.dataChanged;WL.JSC$20096_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.ID("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],WL.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],WL.prototype,"rendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],WL.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],WL.prototype,"buttonUpdate",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],WL.prototype,"kevlarWatchGrid",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],WL.prototype,"centerAlignDescription",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],WL.prototype,"truncateDomain",void 0);
_.c([_.v({computed:"computeButtonOverride(buttonUpdate)"}),_.h("design:type",Object)],WL.prototype,"buttonOverride",void 0);_.c([_.Z("data.detailsLine.adRating.ratingText"),_.h("design:type",Object),_.h("design:paramtypes",[])],WL.prototype,"getRating",null);_.c([_.Z("getRating"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],WL.prototype,"computeRatingHidden",null);
_.c([_.Z("data.detailsLine.adRating.ratingIcon.iconType"),_.h("design:type",Object),_.h("design:paramtypes",[])],WL.prototype,"iconType",null);_.c([_.Z("data.detailsLine.texts.0.text"),_.h("design:type",Object),_.h("design:paramtypes",[])],WL.prototype,"getDetailsLine",null);_.c([_.Z("getDetailsLine"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],WL.prototype,"computeDetailsLineHidden",null);
_.c([_.Z("data.description.text"),_.h("design:type",Object),_.h("design:paramtypes",[])],WL.prototype,"getDescriptionText",null);_.c([_.Z("getDescriptionText"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],WL.prototype,"computeDescriptionTextHidden",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],WL.prototype,"interactionLoggingClientData",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],WL.prototype,"hideBanner",null);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WL.prototype,"dataChanged",null);_.c([_.Gm("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],WL.prototype,"onClick",null);WL=_.c([_.E({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],WL);
_.R(WL,"ytd-action-companion-ad-renderer",function(){if(SVa!==void 0)return SVa;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return SVa=q},{mode:_.kB("kevlar_poly_si_batch_j067")?1:2});var heK;var jcx;var s9=function(){var q=_.Y.apply(this,arguments)||this;q.buttonUpdate=_.T("web_modern_buttons");q.hideLegacyBanner=_.T("enable_dsa_one_click_ata_translators_infeed_elements");q.adInfoButtonStyle="mono";q.adInfoButtonType="text";q.noDotAdBadge=!0;return q};
_.O(s9,_.Y);_.k=s9.prototype;_.k.getOnLayoutVisibleCallback=function(){var q=_.hP("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.onLayoutVisibleCallback:null};
_.k.getLayoutId=function(){var q=_.hP("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.layoutId:null};
_.k.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 q=this.data.image.thumbnail.thumbnails[0];this.imageSrc=q.url?_.UY(q.url):void 0;this.imageWidth=q.width||0;this.imageHeight=q.height||0}this.data.clickthroughEndpoint&&_.C(this.data.clickthroughEndpoint,_.jw)&&(q=_.C(this.data.clickthroughEndpoint,_.jw).url,_.T("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
q||"":q?(q=_.UY(q),this.clickThroughUrl=_.NC(q)):this.clickThroughUrl=void 0);(q=this.getOnLayoutVisibleCallback())&&q()}};
_.k.onClick=function(q){_.LT(_.SQ(q),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(q)};
_.k.handleClick=function(){var q=this;this.data&&this.data.clickthroughEndpoint&&(_.t7(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(w){q.macroReplacementBehavior.sendServiceRequestAction([w])}),_.Pw(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.k.onLoad=function(){_.X4(this.hostElement,"yt-refit-popups-action")};
_.x$.Object.defineProperties(s9.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var q=_.hP("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var q=_.hP("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.interactionLoggingClientData:null}}});
s9.prototype.onLoad=s9.prototype.onLoad;s9.prototype.onClick=s9.prototype.onClick;s9.prototype.dataChanged=s9.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],s9.prototype,"rendererBehavior",void 0);_.c([_.D(rjH.YtMacroReplacementBehavior),_.h("design:type",Object)],s9.prototype,"macroReplacementBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],s9.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],s9.prototype,"buttonUpdate",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],s9.prototype,"hideLegacyBanner",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],s9.prototype,"adInfoButtonStyle",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],s9.prototype,"adInfoButtonType",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],s9.prototype,"macros",null);
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],s9.prototype,"interactionLoggingClientData",null);_.c([_.v(),_.h("design:type",String)],s9.prototype,"clickThroughUrl",void 0);_.c([_.v(),_.h("design:type",_.Hs)],s9.prototype,"imageSrc",void 0);_.c([_.v(),_.h("design:type",Number)],s9.prototype,"imageWidth",void 0);_.c([_.v(),_.h("design:type",Number)],s9.prototype,"imageHeight",void 0);_.c([_.v(),_.h("design:type",Object)],s9.prototype,"noDotAdBadge",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],s9.prototype,"dataChanged",null);_.c([_.Gm("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],s9.prototype,"onClick",null);_.c([_.Gm("load"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],s9.prototype,"onLoad",null);s9=_.c([_.E({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],s9);
_.R(s9,"ytd-image-companion-renderer",function(){if(jcx!==void 0)return jcx;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return jcx=q},{mode:_.kB("kevlar_poly_si_batch_j067")?1:2});var lg4;var Nv=function(){return _.Y.apply(this,arguments)||this};
_.O(Nv,_.Y);_.k=Nv.prototype;_.k.dataChanged=function(){this.set("data.adBadge",Nv.JSC$20105_DEFAULT_AD_BADGE_RENDERER);if(this.data){var q=this.getOnLayoutVisibleCallback();q&&q()}};
_.k.getOnLayoutVisibleCallback=function(){var q=_.hP("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.onLayoutVisibleCallback:null};
_.k.getLayoutId=function(){var q=_.hP("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.layoutId:null};
_.k.onCompanionClicked=function(q){this.data&&(q.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.Pw(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.k.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var q=_.xo(),w=this.getLayoutId(),u=this.data.clickToAdvSiteEndpoint;q&&w&&_.T("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?q.getPlayerPromise().then(function(y){(new _.HF(y)).executeCommand(u,w)}):_.t7(this.hostElement,"yt-navigate",{endpoint:u})}};
_.k.sendTrackingPings=function(q){if(q&&q.length!==0&&q[0].loggingUrls&&(q=q[0].loggingUrls.map(this.getBaseUrl)))for(var w=0;w<q.length;w++)_.h6(q[w])};
_.k.getBaseUrl=function(q){return q.baseUrl||""};
_.x$.Object.defineProperties(Nv.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var q=_.hP("yt.www.ads.eventcache.getLastCompanionData");return q?(q=q())&&q.interactionLoggingClientData:null}}});
Nv.prototype.onCompanionClicked=Nv.prototype.onCompanionClicked;Nv.prototype.dataChanged=Nv.prototype.dataChanged;Nv.JSC$20105_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.ID("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Nv.prototype,"data",void 0);_.c([_.Wj("#title"),_.h("design:type",HTMLElement)],Nv.prototype,"shopTitle",void 0);
_.c([_.I9("data.impressionEndpoints"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Nv.prototype,"dataChanged",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Nv.prototype,"interactionLoggingClientData",null);_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Nv.prototype,"onCompanionClicked",null);
Nv=_.c([_.E({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Nv);
_.R(Nv,"ytd-shopping-companion-renderer",function(){if(lg4!==void 0)return lg4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return lg4=q},{mode:1});_.q9(_.LL(function(q){var w=q.data;var u=_.Bm();_.Sg(u,function(){return w().interaction},RRc);
_.k$(u,{visibilityCallback:function(y){var e,t=(e=w().interaction)==null?void 0:e.onFirstVisible;y&&t&&_.bn(t)},
showOption:_.R1});_.v1(function(){var y,e;e=(e=_.hP("yt.www.ads.eventcache.getLastCompanionData"))?(e=e())&&e.onLayoutVisibleCallback:null;(y=e)==null||y()});
q=_.QS(function(){_.X4(u.value,"yt-refit-popups-action")});
return _.W("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":q,el:u,"aria-label":function(){var y,e;return(y=w().interaction)==null?void 0:(e=y.accessibility)==null?void 0:e.label}},_.W("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.W(_.OF,{data:function(){return w().adImage}},{adImageViewModel:function(y){return _.W(_.u_,{data:y.data,
targetHeight:80,customCommandResolver:RRc})}})),_.W("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.W("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.W(_.OF,{data:function(){return w().adBadge}},{adBadgeViewModel:function(y){return _.W(_.ll,{data:y.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.W("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.W(_.OF,{data:function(){return w().menu}},{buttonViewModel:_.Zs}))))},"Qi"),"banner-image-layout-view-model",{props:{data:_.pK}});_.q9(_.LL(function(q){var w=q.data;q=_.Bm();_.Sg(q,function(){return w().interaction},cT6);
_.k$(q,{visibilityCallback:function(u){var y,e=(y=w().interaction)==null?void 0:y.onFirstVisible;u&&e&&_.bn(e)},
showOption:_.R1});_.v1(function(){var u,y;y=(y=_.hP("yt.www.ads.eventcache.getLastCompanionData"))?(y=y())&&y.onLayoutVisibleCallback:null;(u=y)==null||u()});
return _.W("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:q},_.W("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.W(_.OF,{data:function(){return w().adImage}},{adImageViewModel:function(u){return _.W(_.u_,{data:u.data,
targetHeight:80,customCommandResolver:cT6})}})),_.W("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.W("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.W(_.OF,{data:function(){return w().adAvatarLockup}},{adAvatarLockupViewModel:function(u){return _.W(YVT,{data:u.data,
customCommandResolver:cT6})}})),_.W(_.OF,{data:function(){return w().adButton}},{adButtonViewModel:function(u){return _.W(_.Sj,{data:u.data,
customCommandResolver:cT6})}}),_.W("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.W(_.OF,{data:function(){return w().menu}},{buttonViewModel:_.Zs}))))},"Ri"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.pK}});var Lfj={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"},Q9=function(){var q=_.Y.apply(this,arguments)||this;q.updateCompanionDataJobId=0;q.contentVideoId=null;q.player=null;q.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return q};
_.O(Q9,_.Y);_.k=Q9.prototype;_.k.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:Lfj}}};
_.k.attached=function(){var q=this,w=_.xo();w&&w.getPlayerPromise().then(function(u){q.getCachedDataAndListen(u)})};
_.k.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.k.updateRendererStamper=function(){var q={};if(this.data)for(var w in Lfj)if(this.data[w]){q[w]=this.data[w];break}if(this.oneofRenderer!=void 0||Object.keys(q).length)this.oneofRenderer=q};
_.k.getCachedDataAndListen=function(q){var w=this.retrieveCachedCompanionData();w&&Object.keys(w).length&&this.receiveCompanionData(w);this.ytPlayerListenerBehavior.listenToPlayerEvent(q,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=q};
_.k.retrieveCachedCompanionData=function(){return _.uc.yt&&_.uc.yt.www&&_.uc.yt.www.ads&&_.uc.yt.www.ads.eventcache&&_.uc.yt.www.ads.eventcache.getLastCompanionData?_.uc.yt.www.ads.eventcache.getLastCompanionData():null};
_.k.receiveCompanionData=function(q){q&&Object.keys(q).length?(this.contentVideoId=q.contentVideoId,this.setCompanionData(q)):this.setCompanionData(q)};
_.k.setCompanionData=function(q){this.cancelPendingCompanionAdJobs();if(q){this.updateCompanionDataJobId=0;for(var w in Lfj)Lfj.hasOwnProperty(w)&&(this.data[w]=void 0);q.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",q.shoppingCompanionCarouselRenderer):q.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",q.imageCompanionAdRenderer):q.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",q.actionCompanionAdRenderer),_.X4(this.hostElement,
"yt-hide-unlimited-offer-module"),_.X4(this.hostElement,"yt-hide-tvfilm-offer-module")):q.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",q.bannerImageLayoutViewModel):q.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",q.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.k.dataChanged=function(){var q=this,w=_.xo();w?w.getPlayerPromise().then(function(u){q.contentVideoId&&u.getVideoUrl().includes("v="+q.contentVideoId)||(q.cancelPendingCompanionAdJobs(),q.updateRendererStamper())}):_.jZ(Error("hm"))};
_.k.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.pi.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.k.handleCompanionAdClicked=function(q,w){this.player.onAdUxClicked(q,w);this.player.pauseVideo()};
Q9.prototype.dataChanged=Q9.prototype.dataChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Q9.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Q9.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Q9.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.b7.YtPlayerListenerBehavior),_.h("design:type",_.Yp)],Q9.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Q9.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],Q9.prototype,"oneofRenderer",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Q9.prototype,"dataChanged",null);Q9=_.c([_.E({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Q9);
_.R(Q9,"ytd-companion-slot-renderer",function(){if(heK!==void 0)return heK;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return heK=q},{mode:_.kB("kevlar_poly_si_batch_j067")?
1:2});var MkB;var I7=function(){return _.Y.apply(this,arguments)||this};
_.O(I7,_.Y);I7.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
I7.prototype.dataChanged=I7.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],I7.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],I7.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],I7.prototype,"companionSlotData",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],I7.prototype,"dataChanged",null);
I7=_.c([_.E({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],I7);
_.R(I7,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(MkB!==void 0)return MkB;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return MkB=q},{mode:1});var KfB;var iC=function(){var q=_.Y.apply(this,arguments)||this;q.skinnyMode=!1;q.COMPACT_EVENT_COUNT=4;q.onShelfToggleButtonTap=function(){q.logTap(q.data);q.showingMore=!q.showingMore};
q.onShelfToggleButtonFocus=function(){q.showingMore||(q.logTap(q.data),q.showingMore=!0,_.KJ(q,function(){var w=q.COMPACT_EVENT_COUNT-1,u;(u=_.A(q.hostElement).querySelector("#event-"+w))==null||u.focus()}))};
return q};
_.O(iC,_.Y);_.k=iC.prototype;_.k.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.k.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.k.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Fj(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Fj(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Fj(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Fj(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Fj(this.infoTooltip,this.infoTooltip.hide))};
_.k.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Fj(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Fj(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Fj(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Fj(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Fj(this.infoTooltip,this.infoTooltip.hide))};
_.k.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)};
_.k.onShowingMoreChanged=function(){var q;this.showingMoreChanged((q=this.showingMore)!=null?q:!1)};
_.k.showingMoreChanged=function(q){var w=this.get("data.events")||[];this.set("restEvents",w.slice(1,q?w.length:this.COMPACT_EVENT_COUNT).map(function(u){return u.ticketEventRenderer}));
w.slice(0,q?w.length:this.COMPACT_EVENT_COUNT).forEach(function(u){var y=_.pN();u=u.ticketEventRenderer.trackingParams;_.ZB()&&y&&u&&(u=_.Tj(u),y&&_.cw(y,u))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.k.computeAriaLabel=function(q){return q.subtitle1+", "+q.subtitle2};
_.k.logTap=function(q){_.ZB()&&this.ytRendererBehavior.logExplicitClick(q)};
_.k.isKeyboardAction=function(q){return this.get("detail.x",q)===0&&this.get("detail.y",q)===0};
_.k.onFirstEventTap=function(q){q.target&&this.handleTap(q.target,this.firstEvent,this.isKeyboardAction(q))};
_.k.onTicketLinkTap=function(q){q.target&&this.handleTap(q.target,q.model.item,this.isKeyboardAction(q))};
_.k.handleTap=function(q,w,u){if(w.buttonCommand)if(w.hasMultipleOffers)Object.assign(_.C(w.buttonCommand,_.Ou),{properties:{source:u?"keyboard":"tap"}}),this.logTap(w),this.popupPositionTarget=q,_.nq(this.hostElement,[w.buttonCommand],this.hostElement);else{var y;if((y=_.C(w.buttonCommand,_.jw))==null?0:y.url)this.logTap(w),_.aw(window,_.C(w.buttonCommand,_.jw).url)}};
iC.prototype.onShowingMoreChanged=iC.prototype.onShowingMoreChanged;iC.prototype.dataChanged=iC.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],iC.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],iC.prototype,"firstEvent",void 0);_.c([_.v(),_.h("design:type",Object)],iC.prototype,"restEvents",void 0);_.c([_.v(),_.h("design:type",String)],iC.prototype,"imageUrl",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],iC.prototype,"showingMore",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],iC.prototype,"canShowMore",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],iC.prototype,"skinnyMode",void 0);_.c([_.v(),_.h("design:type",HTMLElement)],iC.prototype,"popupPositionTarget",void 0);_.c([_.Wj("#banner-info-tooltip"),_.h("design:type",Object)],iC.prototype,"infoTooltip",void 0);
_.c([_.Wj("#info-container"),_.h("design:type",HTMLElement)],iC.prototype,"infoContainer",void 0);_.c([_.Wj("#shelf-toggler"),_.h("design:type",HTMLElement)],iC.prototype,"shelfToggleButton",void 0);_.c([_.Wj("#separator"),_.h("design:type",HTMLDivElement)],iC.prototype,"separator",void 0);_.c([_.v(),_.h("design:type",String)],iC.prototype,"shelfTogglerLabelText",void 0);_.c([_.v(),_.h("design:type",String)],iC.prototype,"shelfTogglerIcon",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],iC.prototype,"dataChanged",null);_.c([_.I9("showingMore"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],iC.prototype,"onShowingMoreChanged",null);iC=_.c([_.E({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],iC);
_.R(iC,"ytd-ticket-shelf-renderer",function(){if(KfB!==void 0)return KfB;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return KfB=q},{mode:1});var BJh;var xxH;var rR=function(){return _.Y.apply(this,arguments)||this};
_.O(rR,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],rR.prototype,"data",void 0);rR=_.c([_.E({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],rR);
_.R(rR,"ytd-comments-entry-point-message-renderer",function(){if(xxH!==void 0)return xxH;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return xxH=q},{mode:1});var q_6;var U9=function(){return _.Y.apply(this,arguments)||this};
_.O(U9,_.Y);_.x$.Object.defineProperties(U9.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.teaserAvatar)}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],U9.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],U9.prototype,"data",void 0);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],U9.prototype,"hasAvatar",null);U9=_.c([_.E({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],U9);
_.R(U9,"ytd-comments-entry-point-teaser-renderer",function(){if(q_6!==void 0)return q_6;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return q_6=q},{mode:1});var wBj;var TJ=function(){return _.Y.apply(this,arguments)||this};
_.O(TJ,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],TJ.prototype,"data",void 0);TJ=_.c([_.E({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],TJ);
_.R(TJ,"ytd-comments-simplebox-renderer",function(){if(wBj!==void 0)return wBj;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return wBj=q},{mode:1});var Cu=function(){var q=_.Y.apply(this,arguments)||this;q.fullHeight=!_.T("comment_teaser_full_height_kill_switch")&&_.T("kevlar_watch_grid");return q};
_.O(Cu,_.Y);Cu.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"}}}};
Cu.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Cu.prototype.onTap=function(){var q=this.tapCommand;q&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(q))};
Cu.prototype.onKeyUp=function(q){if(q.keyCode===13)this.onTap()};
_.x$.Object.defineProperties(Cu.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null?0:q.onTap)return this.data.onTap;var w,u;if(((w=this.data)==null?0:w.teaserContent)||((u=this.data)==null?0:u.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)!=null&&q.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
Cu.prototype.onKeyUp=Cu.prototype.onKeyUp;Cu.prototype.onTap=Cu.prototype.onTap;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Cu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Cu.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Cu.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Cu.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Cu.prototype,"fullHeight",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Cu.prototype,"tapCommand",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Cu.prototype,"simpleboxPlaceholder",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Cu.prototype,"hasSimpleboxPlaceholder",null);
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Cu.prototype,"simpleboxAvatar",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Cu.prototype,"teaserContent",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Cu.prototype,"hasTeaserContent",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Cu.prototype,"teaserAvatar",null);
_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Cu.prototype,"hasTeaserAvatar",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Cu.prototype,"messageText",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Cu.prototype,"contentRenderer",null);_.c([_.Z("data"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Cu.prototype,"hasContents",null);
_.c([_.Z("data"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Cu.prototype,"hasContentRenderer",null);_.c([_.Gm("click"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Cu.prototype,"onTap",null);_.c([_.Gm("keypress"),_.h("design:type",Function),_.h("design:paramtypes",[_.HJ]),_.h("design:returntype")],Cu.prototype,"onKeyUp",null);Cu=_.c([_.E({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],Cu);
_.R(Cu,"ytd-comments-entry-point-header-renderer",function(){if(BJh!==void 0)return BJh;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return BJh=q},{mode:1});var ut6;_.XK(_.hkJ,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var ync=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),ecH={numberText:"",heightPx:2*ync,shouldAnimate:!1},dR=function(){var q=_.Y.apply(this,arguments)||this;q.usingAnimatedComponents=!0;q.wasDetailed=!1;q.JSC$20142_browserSupportsAnimation=_.T("web_supports_animations_api");q.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};q.detailed=!1;q.shouldAnimate=!1;q.viewCountProps=ecH;q.dateTextProps=
ecH;q.metadataBadgesInDescription=_.T("web_metadata_badges_in_description");return q};
_.O(dR,_.Y);_.k=dR.prototype;_.k.resetAnimationState=function(){this.shouldAnimate=!1};
_.k.updateDynamicMetadata=function(){if(this.JSC$20142_browserSupportsAnimation){if(!this.detailed){var q,w,u,y;var e=(q=this.videoPrimaryInfoRenderer)==null?void 0:(w=q.viewCount)==null?void 0:(u=w.videoViewCountRenderer)==null?void 0:(y=u.extraShortViewCount)==null?void 0:y.simpleText;var t,X,G,n;var N=(t=this.videoPrimaryInfoRenderer)==null?void 0:(X=t.viewCount)==null?void 0:(G=X.videoViewCountRenderer)==null?void 0:(n=G.shortViewCount)==null?void 0:n.simpleText}if(!N){var Q,I,U,d;e=(Q=this.videoPrimaryInfoRenderer)==
null?void 0:(I=Q.viewCount)==null?void 0:(U=I.videoViewCountRenderer)==null?void 0:(d=U.unlabeledViewCountValue)==null?void 0:d.simpleText;var V,J,a,b;N=(V=this.videoPrimaryInfoRenderer)==null?void 0:(J=V.viewCount)==null?void 0:(a=J.videoViewCountRenderer)==null?void 0:(b=a.viewCount)==null?void 0:b.simpleText}var g,l,S;q=Number((g=this.videoPrimaryInfoRenderer)==null?void 0:(l=g.viewCount)==null?void 0:(S=l.videoViewCountRenderer)==null?void 0:S.originalViewCount);var eH,x;g=(eH=this.videoPrimaryInfoRenderer)==
null?void 0:(x=eH.relativeDateText)==null?void 0:x.simpleText;var P4;eH=!((P4=this.videoPrimaryInfoRenderer)==null||!P4.relativeDateText);if(e&&N&&q&&(g||!eH)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;P4=N.split(new RegExp("("+e+")"));e=MO6(P4[0]);var C7;N={numberText:(C7=P4[1])!=null?C7:"",numberValue:q,heightPx:2*ync,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var mu;C7=((mu=P4[2])!=null?mu:"")+"  ";this.setViewCount(N,e,MO6(C7));
if(!this.detailed&&eH){e=g.split(/(\d+)/);mu=MO6(e[0]);var Os;C7={numberText:(Os=e[1])!=null?Os:"",heightPx:2*ync,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var YJ;Os=((YJ=e[2])!=null?YJ:"")+"  ";this.setDateText(C7,mu,MO6(Os))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.k.setViewCount=function(q,w,u){_.lA(w)!==_.lA(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=w);this.viewCountProps.numberText!==(q==null?void 0:q.numberText)&&(this.viewCountProps=q||ecH);_.lA(u)!==_.lA(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=u)};
_.k.setDateText=function(q,w,u){_.lA(w)!==_.lA(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=w);this.dateTextProps.numberText!==(q==null?void 0:q.numberText)&&(this.dateTextProps=q||ecH);_.lA(u)!==_.lA(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=u)};
_.k.onYtUpdateViewershipAction=function(q){this.videoPrimaryInfoRenderer&&(_.C(q,xm6).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.C(q,xm6).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.C(q,xm6).viewCount)))};
_.k.onYtUpdateDateTextAction=function(q){if(this.videoPrimaryInfoRenderer){q=_.C(q,_.Kd6).dateText;this.shouldAnimate=!0;var w;((w=this.videoPrimaryInfoRenderer)==null?0:w.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",q):this.set("videoPrimaryInfoRenderer.dateText",q)}};
_.x$.Object.defineProperties(dR.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return Lz6(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.lA(Lz6(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.lA(this.viewCountPreNumberText),this.viewCountProps.numberText,_.lA(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.lA(this.dateTextPreNumberText),this.dateTextProps.numberText,_.lA(this.dateTextPostNumberText)].join("")}}});
dR.prototype.updateDynamicMetadata=dR.prototype.updateDynamicMetadata;dR.prototype.resetAnimationState=dR.prototype.resetAnimationState;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],dR.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],dR.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],dR.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],dR.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],dR.prototype,"videoPrimaryInfoRenderer",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dR.prototype,"detailed",void 0);_.c([_.v(),_.h("design:type",Object)],dR.prototype,"shouldAnimate",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dR.prototype,"viewCountPreNumberText",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dR.prototype,"viewCountProps",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dR.prototype,"viewCountPostNumberText",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dR.prototype,"dateTextPreNumberText",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dR.prototype,"dateTextProps",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dR.prototype,"dateTextPostNumberText",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dR.prototype,"metadataBadgesInDescription",void 0);_.c([_.Z("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.h("design:type",Object),_.h("design:paramtypes",[])],dR.prototype,"infoText",null);
_.c([_.Z("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.h("design:type",String),_.h("design:paramtypes",[])],dR.prototype,"descriptionInfoTooltipText",null);_.c([_.Z("detailed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],dR.prototype,"showDescriptionInfoTooltip",null);
_.c([_.Z("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.h("design:type",String),_.h("design:paramtypes",[])],dR.prototype,"animatedViewCountAccessibilityLabel",null);_.c([_.Z("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.h("design:type",String),_.h("design:paramtypes",[])],dR.prototype,"animatedDateTextAccessibilityLabel",null);
_.c([_.nL("videoPrimaryInfoRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dR.prototype,"resetAnimationState",null);_.c([_.nL("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dR.prototype,"updateDynamicMetadata",null);dR=_.c([_.E({disableElementRegistration:!0,is:"ytd-watch-info-text"})],dR);
_.R(dR,"ytd-watch-info-text",function(){if(ut6!==void 0)return ut6;var q=document.createElement("template");_.f(q,'\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 id="view-count-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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return ut6=q},{mode:1});var kYH;var tua=_.LL(function(q){var w=q.data;var u=q.setTapCommand;_.DG(function(){var y=_.Zh(w().onTap);u(y)});
return _.W("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.W(_.OF,{data:function(){return w().avatar}},{avatarViewModel:_.Vb}),_.W("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.W("span",null,function(){return w().simpleboxText})))},"Si");var PLc=_.LL(function(q){return _.W("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.W(_.r,{cond:function(){return _.C(q.data().avatar,_.RH)},
then:function(w){return _.W(_.Vb,{data:w,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.W("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.W(_.Lr,{text:function(){return q.data().teaserText}})))},"Ti");var XBA=_.LL(function(q){var w=q.data;var u=q.setTapCommand;_.DG(function(){var y=_.Zh(w().onTap);u(y)});
return _.W("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.W(_.OF,{data:function(){return w().teasers}},{commentsEntryPointTeaserViewModel:PLc}))},"Ui");var FAA=_.LL(function(q){var w=q.data;var u=q.setTapCommand;_.DG(function(){var y=_.Zh(w().onTap);u(y)});
return _.W("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.W(_.Lr,{text:function(){return w().messageText}}))},"Vi");var GYa=_.LL(function(q){var w=q.data;var u=q.setTapCommand;var y=q.isDisabled;_.DG(function(){var e=(y==null?0:y())?void 0:_.Zh(w().onTap);u(e)});
return _.W("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.W(_.U3,{icon:function(){return w().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.W(_.r,{cond:function(){return w().image},
then:function(e){return _.W(_.ln,{data:e,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.W(_.Lr,{text:function(){return w().text},
className:function(){return w().image||w().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.W(_.OF,{data:function(){return w().button}},{buttonViewModel:function(e){return _.W(_.Zs,{data:e.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:y==null?void 0:y()}}})}}))},"Wi");var n7T=_.LL(function(q){var w=q.data;var u=q.itemIndex;var y=q.selectedIndex;var e=q.indexUpdatedCallback;var t=q.observer;q=q.title;var X=_.Bm(),G=function(I){u()===y()&&e(I)},n=_.aV(VOc),N=_.aV(fjm),Q=function(){var I,U,d;
return((I=w())==null?void 0:I.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!n()||((U=w())==null?void 0:U.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&N().includes("PAposts_by_host")||((d=w())==null?void 0:d.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&N().includes("PAyouchat")};
_.p4(function(){t&&t().observe(X.value)});
return _.W("yt-carousel-item-view-model",{el:X,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":q},_.W(_.OF,{data:function(){var I,U;return(U=(I=_.C(w().carouselItem,Umj))==null?void 0:I.textCarousel)!=null?U:w().carouselItem}},{textCarouselItemViewModel:function(I){return _.W(GYa,{data:I.data,
setTapCommand:G,isDisabled:Q})},
commentTeaserCarouselItemViewModel:function(I){return _.W(XBA,{data:I.data,setTapCommand:G})},
commentInputBoxCarouselItemViewModel:function(I){return _.W(tua,{data:I.data,setTapCommand:G})},
commentsEntryPointMessageViewModel:function(I){return _.W(FAA,{data:I.data,setTapCommand:G})}}))},"Xi");var H8c=_.LL(function(q){var w=q.numDots;var u=q.activeIndex;return _.W("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.W(_.mL,{each:function(){return Array.from({length:w()})},
keyBy:"INDEX"},function(y,e){return _.W("div",{class:function(){var t={};return _.s3("ytCarouselDotsShapeDot",(t.ytCarouselDotsShapeDotActive=e===u(),t))}})}))},"Yi");var WA4=_.LL(function(q){var w=q.data;var u=q.handleCarouselNavigation;var y=q.numItems;var e=q.selectedIndex;var t=function(){return{disabled:e()===0}},X=function(){return{disabled:e()===y()-1}};
return _.W("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.W("div",null,_.W("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return w().title}),_.W(_.r,{cond:function(){return w().subtitle},
then:function(G){return _.W("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return w().subtitleAccessibilityText}},G)}})),_.W(_.r,{cond:function(){return y()>1},
then:function(){return _.W("div",{class:"ytCarouselTitleViewModelNavigation"},_.W(H8c,{numDots:y,activeIndex:e}),_.W(_.r,{cond:function(){return w().previousButton},
then:function(G){return _.W(_.OF,{data:G},{buttonViewModel:function(n){return _.W(_.Zs,{data:n.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return u(-1)},
buttonOverrides:t})}})}}),_.W(_.r,{cond:function(){return w().nextButton},
then:function(G){return _.W(_.OF,{data:G},{buttonViewModel:function(n){return _.W(_.Zs,{data:n.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return u(1)},
buttonOverrides:X})}})}}))}}))},"Zi");_.q9(_.LL(function(q){var w=q.data;var u=_.Bm(),y=_.Bm(),e=_.Et("HTML_DIR")==="rtl",t=!1,X=0,G=0;q=_.P(_.r4(0,void 0,"m0dtIf"));var n=q.next().value,N=q.next().value;q=_.P(_.r4(0,void 0,"fL6I6"));var Q=q.next().value,I=q.next().value;q=_.P(_.r4(!1,void 0,"ZPrwNb"));var U=q.next().value,d=q.next().value,V=function(){var P4,C7,mu;return(mu=(P4=w())==null?void 0:(C7=P4.carouselTitles)==null?void 0:C7.length)!=null?mu:0},J=function(){y.value&&y.value.scrollLeft!==X&&N((e?y.value.scrollLeft<X:y.value.scrollLeft>
X)?Math.min(n()+1,V()-1):Math.max(n()-1,0))},a;
window.IntersectionObserver&&(a=new IntersectionObserver(function(P4){P4=_.P(P4);for(var C7=P4.next();!C7.done;C7=P4.next())if(C7.value.isIntersecting){if(t){t=!1;break}J()}else N(G)},{threshold:.2}));
_.DG(function(){if(y.value){var P4=(e?-1:1)*(Q()/V()+12)*(U()&&a?G:n());typeof y.value.scrollTo==="function"?y.value.scrollTo({left:P4,behavior:"smooth"}):y.value.scrollLeft=P4;X=P4;G=U()&&a?G:n()}});
var b,g=function(P4){b=P4};
_.p4(function(){var P4=function(){var mu=y.value.offsetWidth*V(),Os=24*(V()-1);I(mu+Os)};
P4();if(window.ResizeObserver){var C7=new ResizeObserver(P4);C7.observe(y.value);_.ZG(function(){C7.disconnect();a&&a.disconnect()})}});
q=_.QS(function(P4){if(_.KVM(_.bq(P4),u.value,["BUTTON".toString()])||!b)return!1;_.tG().resolve(_.PG).resolveCommand(b,{forceClickLogging:!0});return!1});
var l=function(P4){P4=n()+P4;P4>=0&&P4<V()&&(t=!0,N(P4))},S=_.QS(function(){d(!0);
return!1}),eH=_.QS(function(){a||J();
d(!1);return!1}),x={};
return _.W("yt-video-metadata-carousel-view-model",{class:_.HR("ytVideoMetadataCarouselViewModelHost",(x.ytVideoMetadataCarouselViewModelShortMode=_.T("mweb_video_metadata_carousel_short_mode"),x)),el:u,"on:click":q,"on:touchstart":S,"on:touchend":eH,hidden:function(){var P4,C7;return!((P4=w())==null?0:(C7=P4.carouselItems)==null?0:C7.length)}},_.W("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.W(_.r,{cond:function(){return w().carouselTitles},
then:function(P4){return _.W(_.OF,{data:function(){return P4()[U()&&a?G:n()]}},{carouselTitleViewModel:function(C7){return _.W(WA4,{data:C7.data,
handleCarouselNavigation:l,numItems:V,selectedIndex:n})}})}})),_.W("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:y},_.W("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+Q()+"px;"}},_.W(_.r,{cond:function(){return w().carouselItems},
then:function(P4){return _.W(_.mL,{each:P4},function(C7,mu){return _.W(_.OF,{data:function(){return C7}},{carouselItemViewModel:function(Os){return _.W(n7T,{data:Os.data,
itemIndex:mu,selectedIndex:n,indexUpdatedCallback:g,observer:a,title:function(){a:{var YJ=mu();var ao,bc=(ao=w())==null?void 0:ao.carouselTitles;if(bc&&(YJ=bc[YJ])){var Ro;YJ=(Ro=_.C(YJ,rSm))==null?void 0:Ro.title;break a}YJ=void 0}return YJ}})}})})}}))))},"$i"),"yt-video-metadata-carousel-view-model",{props:{data:_.pK}});var sjT=_.T("web_action_buttons_update_owner_width")?32:12,O9=function(){var q=_.Y.apply(this,arguments)||this;q.metadataBadgesInDescription=_.T("web_metadata_badges_in_description");q.descriptionCollapsed=!0;q.useFadedScrimDescription=_.T("kevlar_enable_faded_scrim_on_description");q.skinnyMode=!1;q.playlist=!1;q.isDark=document.documentElement.hasAttribute("dark");q.disableVideoOwnerOnTap=_.T("swatchie_video_owner_on_tap_ks");q.swatcherooDelayLoad=_.T("swatcheroo_enable_ghost_cards");q.primaryMenuWidth=
0;q.videoId="";q.titleHeadlineXs=_.T("web_watch_typography_title_headline_xs");q.titleHeadlineS=_.T("web_watch_typography_title_headline_s");q.titleHeadlineM=_.T("web_watch_typography_title_headline_m");q.titleHashtagBlackLinkified=_.T("web_title_hashtag_black_linkified");q.titleHashtagGreyLinkified=_.T("web_title_hashtag_grey_linkified");q.actionButtonsUpdateOwnerWidth=_.T("web_action_buttons_update_owner_width");q.shouldForceIconOnly=!1;q.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};q.isFullscreen=!1;q.isTheaterMode=!1;return q};
_.O(O9,_.Y);_.k=O9.prototype;_.k.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.k.updateOwnerAndDescriptionPosition=function(){_.T("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.Dk(this.bottomRowElement,this.ownerElement)):(_.Dk(this.bottomRowElement,this.descriptionElement),_.Dk(this.topRowElement,this.ownerElement)))};
_.k.titleOnTap=function(q){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.LT(_.SQ(q)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var w;((w=window.getSelection())==null?0:w.toString().length)||this.handleExpandDescriptionCommands()}};
_.k.videoOwnerOnTap=function(q){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.LT(_.SQ(q)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.k.detached=function(){var q=this,w;return _.F(function(u){(w=q.resizeObserver)==null||w.disconnect();_.HI(u)})};
_.k.maybeAttachResizeObserver=function(){var q=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.MI(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){q.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.k.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var q=this.hostElement.clientWidth,w=Math.max(this.largerItemWrap?400:350,q/2-sjT);if(_.T("web_action_buttons_update_owner_width")){var u;w=(((u=document.getElementById("owner"))==null?void 0:u.clientWidth)||0)+sjT}this.actionsOnSeparateLine=this.primaryMenuWidth>q-w?!0:!1}};
_.k.stripAttributedDescription=function(q){return{content:q.content.replace(/[\r\n]{2,}/g,"\n")}};
_.k.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.T("web_modern_buttons"),forceIconButton:!_.T("web_modern_buttons")},properties:{topLevelIconsOnly:"[[skinnyMode]]"}}},events:!0},"videoSecondaryInfoRenderer.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",
params:{withCount:!0,showTextWhileAnimating:_.T("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"}}}};
_.k.videoPrimaryInfoRendererChanged=function(){var q;if((q=this.videoPrimaryInfoRenderer)==null?0:q.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.k.videoSecondaryInfoRendererChanged=function(){var q,w;(w=(q=this.descriptionInlineExpander).collapse)==null||w.call(q);this.descriptionExpandClientVe=_.oV(110509);this.descriptionCollapseClientVe=_.oV(110510);q=_.pN();w=_.ZB();q&&w&&(_.T("combine_ve_grafts")?(_.ku(_.Qz(),this.descriptionExpandClientVe,w),_.ku(_.Qz(),this.descriptionCollapseClientVe,w)):_.RD(q,w,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.k.structuredDescriptionContentRendererChanged=function(){_.T("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.k.updateTopLevelIconsOnly=function(){var q=this;_.T("top_level_update_killswitch")||this.menu&&_.pi.addLowPriorityJob(function(){q.menu.topLevelIconsOnly=q.skinnyMode},_.Fc("swathceroo_delay_flexible_menu_update",100))};
_.k.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.T("web_action_buttons_minimize_subscribe")};
_.k.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.k.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.k.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.k.onYtTextInlineExpanderExpandedChanged=function(){if(!_.T("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var q,w;(w=(q=this.structuredDescriptionContentRendererElement).resize)==null||w.call(q)}};
_.k.onRenderStamperFinished=function(q){(q==null?void 0:q.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.k.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.k.onYtExpanderLessTapped=function(){var q,w=(q=this.videoSecondaryInfoRenderer)==null?void 0:q.showLessCommand;w&&this.ytComponentBehavior.resolveCommand(w)};
_.k.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.k.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.k.onDescriptionClick=function(q){if(!_.LT(_.SQ(q)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var w;((w=window.getSelection())==null?0:w.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.T("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.k.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.k.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.k.logCollapseClick=function(){var q=_.pN();q&&this.descriptionCollapseClientVe&&_.jB(q,this.descriptionCollapseClientVe)};
_.k.logExpandClick=function(){var q=_.pN();q&&this.descriptionExpandClientVe&&_.jB(q,this.descriptionExpandClientVe)};
_.k.collapseDescription=function(){this.descriptionCollapsed=!0};
_.k.scrollToTopOfContainer=function(){_.Pw(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.k.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.k.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.k.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.k.resize=function(){if(this.descriptionInlineExpander){var q,w;(w=(q=this.descriptionInlineExpander).resize)==null||w.call(q)}else _.Y8(new _.fv("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var u;(u=this.menu)==null||u.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.T("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.k.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var q,w,u,y,e=_.T("web_action_buttons_update_owner_width")?(u=(q=_.A(this.menu).querySelector("#button-shape"))==null?void 0:q.clientWidth)!=null?u:0:(y=(w=_.A(this.menu).querySelector("#button"))==null?void 0:w.clientWidth)!=null?y:0,t,X;q=((X=(t=_.A(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:t.clientWidth)!=null?X:0)+8+e;var G,n;e=(n=(G=_.A(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:G.children.length)!=null?n:2;q<=8*e||(this.primaryMenuWidth=q)}};
_.k.onYtUpdateTitleAction=function(q){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.C(q,Bla).title)};
_.k.onYtUpdateDescriptionAction=function(q){if(q=_.C(q,_.iGF)){var w,u=!((w=this.videoSecondaryInfoRenderer)==null||!w.attributedDescription);q.isEmpty||!q.description&&!q.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):q.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",q.attributedDescription):q.description&&(u?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.JB(q.description)):this.set("videoSecondaryInfoRenderer.description",q.description))}};
_.k.onYtDarkModeToggledAction=function(q){this.isDark=q};
_.k.registerPanel=function(){if(!_.T("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var q=_.T("web_watch_imax_theater_mode")&&this.isTheaterMode;q=_.T("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||q;var w=_.tG().resolve(_.ib);w&&!q&&w.registerPanel("engagement-panel-structured-description",this)}};
_.k.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.k.showPanel=function(q){this.expandDescription();var w=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;w.resize();var u,y=q==null?void 0:(u=q.sectionListEngagementPanelExtras)==null?void 0:u.scrollToItemSectionIdentifier;y?_.pi.addJob(function(){w==null||w.scrollToSection(y)},8):this.scrollToTopOfContainer()};
_.k.isVisible=function(){return!this.descriptionCollapsed};
_.k.getReloadContinuation=function(){};
_.k.hidePanel=function(){};
_.k.updatePanel=function(){};
_.x$.Object.defineProperties(O9.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.structuredDescriptionContentRenderer)!=null&&q.items){var w;q=_.P((w=this.structuredDescriptionContentRenderer)==null?void 0:w.items);for(w=q.next();!w.done;w=q.next())if(w=_.C(w.value,_.rYx))return w}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.videoPrimaryInfoRenderer)==null?0:q.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return!!((q=this.videoSecondaryInfoRenderer)==null?0:(w=q.owner)==null?0:(u=w.videoOwnerRenderer)==null?0:u.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.T("swatchie_sd_new_line_strip_ks")){var q,w;if((q=this.videoSecondaryInfoRenderer)==null?0:(w=q.attributedDescription)==null?0:w.content){var u,y;return(y=this.stripAttributedDescription((u=this.videoSecondaryInfoRenderer)==null?void 0:u.attributedDescription))!=null?y:{runs:[]}}}var e,t,X,G;return(G=(X=(e=this.videoSecondaryInfoRenderer)==null?void 0:e.description)!=null?X:(t=this.videoSecondaryInfoRenderer)==null?
void 0:t.attributedDescription)!=null?G:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var q,w;return(w=(q=this.videoSecondaryInfoRenderer)==null?void 0:q.headerRuns)!=null?w:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.commentsEntryPointHeaderRenderer)==null||!q.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.videoMetadataCarousel)==null||!q.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.Fc("swatchie_desc_lines",3):this.hasTeaserCarousel?_.Fc("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var q,w,u=Object.assign({},(q=this.videoSecondaryInfoRenderer)==null?void 0:(w=q.metadataRowContainer)==null?void 0:w.metadataRowContainerRenderer);if(u&&u.rows&&u.collapsedItemCount!==void 0&&!(u.rows.length<=u.collapsedItemCount))return u.rows=u.rows.slice(u.collapsedItemCount),u.collapsedItemCount=0,u}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var q,w,u=Object.assign({},(q=this.videoSecondaryInfoRenderer)==null?void 0:(w=q.metadataRowContainer)==null?void 0:w.metadataRowContainerRenderer);if(u&&u.rows&&u.collapsedItemCount!==void 0)return u.rows=u.rows.slice(0,u.collapsedItemCount),u.collapsedItemCount=u.rows.length,u}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var q,w;return!!((q=this.structuredDescriptionContentRenderer)==null?0:(w=q.items)==null?0:w.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var q;return(q=this.videoSecondaryInfoRenderer)==null?void 0:q.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return((q=this.videoSecondaryInfoRenderer)==null?0:(w=q.owner)==null?0:(u=w.videoOwnerRenderer)==null?0:u.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var q,w,u,y;return!!((q=this.videoPrimaryInfoRenderer)==null?0:(w=q.videoActions)==null?0:(u=w.menuRenderer)==null?0:(y=u.flexibleItems)==null?0:y.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.c6(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.c6(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var q=this;if(_.T("web_title_hashtag_grey_delinkified")){var w,u=_.db.unsafeClone((w=this.videoPrimaryInfoRenderer)==null?void 0:w.title);(w=u==null?void 0:u.runs)&&w.forEach(function(y){if(y==null?0:y.navigationEndpoint)y.textColor=4284506208,q.isDark&&(y.textColor=4289374890)});
return u}return(u=this.videoPrimaryInfoRenderer)==null?void 0:u.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.T("web_title_hashtag_black_delinkified")||_.T("web_title_hashtag_grey_delinkified")}}});
O9.prototype.resetDescriptionState=O9.prototype.resetDescriptionState;O9.prototype.registerPanel=O9.prototype.registerPanel;O9.prototype.onYtExpanderLessTapped=O9.prototype.onYtExpanderLessTapped;O9.prototype.onYtExpanderMoreTapped=O9.prototype.onYtExpanderMoreTapped;O9.prototype.onRenderStamperFinished=O9.prototype.onRenderStamperFinished;O9.prototype.onYtTextInlineExpanderExpandedChanged=O9.prototype.onYtTextInlineExpanderExpandedChanged;O9.prototype.onYtTextInlineExpanderCollapseClicked=O9.prototype.onYtTextInlineExpanderCollapseClicked;
O9.prototype.onYtTextInlineExpanderExpandClicked=O9.prototype.onYtTextInlineExpanderExpandClicked;O9.prototype.moveActionsElement=O9.prototype.moveActionsElement;O9.prototype.updateShouldForceIconOnly=O9.prototype.updateShouldForceIconOnly;O9.prototype.updateTopLevelIconsOnly=O9.prototype.updateTopLevelIconsOnly;O9.prototype.structuredDescriptionContentRendererChanged=O9.prototype.structuredDescriptionContentRendererChanged;O9.prototype.videoSecondaryInfoRendererChanged=O9.prototype.videoSecondaryInfoRendererChanged;
O9.prototype.videoPrimaryInfoRendererChanged=O9.prototype.videoPrimaryInfoRendererChanged;O9.prototype.maybeUpdateActionsOnSeparateLine=O9.prototype.maybeUpdateActionsOnSeparateLine;O9.prototype.updateOwnerAndDescriptionPosition=O9.prototype.updateOwnerAndDescriptionPosition;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],O9.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],O9.prototype,"ytComponentBehavior",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],O9.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],O9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],O9.prototype,"ytdReduxBehavior",void 0);_.c([_.Wj("#above-the-fold"),_.h("design:type",HTMLElement)],O9.prototype,"aboveTheFoldContainer",void 0);_.c([_.Wj("#menu ytd-menu-renderer"),_.h("design:type",Object)],O9.prototype,"menu",void 0);
_.c([_.Wj("#description-inline-expander"),_.h("design:type",Object)],O9.prototype,"descriptionInlineExpander",void 0);_.c([_.Wj("#faded-structured-description"),_.h("design:type",Object)],O9.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.c([_.Wj("#structured-description"),_.h("design:type",Object)],O9.prototype,"structuredDescriptionContentRendererElement",void 0);_.c([_.Wj("#title"),_.h("design:type",HTMLElement)],O9.prototype,"titleElement",void 0);
_.c([_.Wj("#description"),_.h("design:type",HTMLElement)],O9.prototype,"descriptionElement",void 0);_.c([_.Wj("#description-interaction"),_.h("design:type",Object)],O9.prototype,"descriptionInteraction",void 0);_.c([_.Wj("#owner"),_.h("design:type",HTMLElement)],O9.prototype,"ownerElement",void 0);_.c([_.Wj("#top-row"),_.h("design:type",HTMLElement)],O9.prototype,"topRowElement",void 0);_.c([_.Wj("#bottom-row"),_.h("design:type",HTMLElement)],O9.prototype,"bottomRowElement",void 0);
_.c([_.Wj("#actions"),_.h("design:type",HTMLElement)],O9.prototype,"actionsElement",void 0);_.c([_.Wj("#bottom-actions"),_.h("design:type",HTMLElement)],O9.prototype,"bottomActionsElement",void 0);_.c([_.Wj("#ytd-watch-info-text"),_.h("design:type",Object)],O9.prototype,"watchInfoTextElement",void 0);_.c([_.v(),_.h("design:type",Object)],O9.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],O9.prototype,"videoPrimaryInfoRenderer",void 0);
_.c([_.v(),_.h("design:type",Object)],O9.prototype,"videoSecondaryInfoRenderer",void 0);_.c([_.v(),_.h("design:type",Object)],O9.prototype,"commentsEntryPointHeaderRenderer",void 0);_.c([_.v(),_.h("design:type",Object)],O9.prototype,"videoMetadataCarousel",void 0);_.c([_.v(),_.h("design:type",Object)],O9.prototype,"structuredDescriptionContentRenderer",void 0);_.c([_.v(),_.h("design:type",Object)],O9.prototype,"videoSummary",void 0);
_.c([_.v(),_.h("design:type",Object)],O9.prototype,"merchShelf",void 0);_.c([_.v(),_.h("design:type",Object)],O9.prototype,"infoPanelBelowMetadata",void 0);_.c([_.Z("structuredDescriptionContentRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],O9.prototype,"productShelf",null);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],O9.prototype,"metadataBadgesInDescription",void 0);
_.c([_.Z("videoPrimaryInfoRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],O9.prototype,"shouldHideBadges",null);_.c([_.Z("productShelf","descriptionCollapsed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],O9.prototype,"shouldShowProductShelf",null);_.c([_.v(),_.h("design:type",Boolean)],O9.prototype,"isWatchFlexy",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],O9.prototype,"descriptionCollapsed",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],O9.prototype,"useFadedScrimDescription",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],O9.prototype,"skinnyMode",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("videoSecondaryInfoRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],O9.prototype,"largerItemWrap",null);_.c([_.v(),_.h("design:type",Object)],O9.prototype,"playlist",void 0);_.c([_.v(),_.h("design:type",Object)],O9.prototype,"clarifyBox",void 0);
_.c([_.v(),_.h("design:type",Object)],O9.prototype,"playerAds",void 0);_.c([_.v(),_.h("design:type",Boolean)],O9.prototype,"isDark",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],O9.prototype,"actionsOnSeparateLine",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],O9.prototype,"disableVideoOwnerOnTap",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],O9.prototype,"swatcherooDelayLoad",void 0);
_.c([_.v(),_.h("design:type",Boolean)],O9.prototype,"suppressTopLevelMetadataRows",void 0);_.c([_.v(),_.h("design:type",Object)],O9.prototype,"primaryMenuWidth",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],O9.prototype,"videoId",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],O9.prototype,"titleHeadlineXs",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],O9.prototype,"titleHeadlineS",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],O9.prototype,"titleHeadlineM",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],O9.prototype,"titleHashtagBlackLinkified",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],O9.prototype,"titleHashtagGreyLinkified",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],O9.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.c([_.v(),_.h("design:type",Object)],O9.prototype,"shouldForceIconOnly",void 0);_.c([_.I9("skinnyMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],O9.prototype,"updateOwnerAndDescriptionPosition",null);_.c([_.I9("skinnyMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],O9.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.c([_.Z("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.h("design:type",Object),_.h("design:paramtypes",[])],O9.prototype,"descriptionText",null);_.c([_.Z("videoSecondaryInfoRenderer.headerRuns"),_.h("design:type",Array),_.h("design:paramtypes",[])],O9.prototype,"headerRuns",null);_.c([_.v({value:!1}),_.Z("commentsEntryPointHeaderRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],O9.prototype,"hasTeaser",null);
_.c([_.v({value:!1,reflectToAttribute:!0}),_.Z("videoMetadataCarousel"),_.h("design:type",Object),_.h("design:paramtypes",[])],O9.prototype,"hasTeaserCarousel",null);_.c([_.v({value:3}),_.Z("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.h("design:type",Object),_.h("design:paramtypes",[])],O9.prototype,"descriptionMaxLines",null);_.c([_.Z("videoSecondaryInfoRenderer.metadataRowContainer"),_.h("design:type",Object),_.h("design:paramtypes",[])],O9.prototype,"collapsibleMetadataRows",null);
_.c([_.Z("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.h("design:type",Object),_.h("design:paramtypes",[])],O9.prototype,"alwaysVisibleMetadataRows",null);_.c([_.Z("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],O9.prototype,"hasInlineStructuredDescription",null);
_.c([_.Z("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],O9.prototype,"showInlineStructuredDescription",null);_.c([_.Z("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],O9.prototype,"descriptionExpandCommand",null);
_.c([_.Z("videoSecondaryInfoRenderer.owner"),_.h("design:type",Object),_.h("design:paramtypes",[])],O9.prototype,"videoOwnerCommand",null);_.c([_.v({reflectToAttribute:!0}),_.Z("videoPrimaryInfoRenderer.videoActions"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],O9.prototype,"flexMenuEnabled",null);_.c([_.v({selector:_.OT,reflectToAttribute:!0}),_.h("design:type",Object)],O9.prototype,"isFullscreen",void 0);
_.c([_.v({selector:_.on,reflectToAttribute:!0}),_.h("design:type",Object)],O9.prototype,"isTheaterMode",void 0);_.c([_.Z("descriptionText","useFadedScrimDescription"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],O9.prototype,"showAttributedStringDescription",null);_.c([_.Z("descriptionText","useFadedScrimDescription"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],O9.prototype,"showFormattedStringDescription",null);
_.c([_.Z("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],O9.prototype,"showFadedStructuredDescription",null);_.c([_.I9("videoPrimaryInfoRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],O9.prototype,"videoPrimaryInfoRendererChanged",null);_.c([_.Z("videoPrimaryInfoRenderer.title"),_.h("design:type",Object),_.h("design:paramtypes",[])],O9.prototype,"videoTitle",null);
_.c([_.Z("videoPrimaryInfoRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],O9.prototype,"noEndpoints",null);_.c([_.I9("videoSecondaryInfoRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],O9.prototype,"videoSecondaryInfoRendererChanged",null);
_.c([_.nL("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],O9.prototype,"structuredDescriptionContentRendererChanged",null);_.c([_.nL("skinnyMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],O9.prototype,"updateTopLevelIconsOnly",null);
_.c([_.nL("skinnyMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],O9.prototype,"updateShouldForceIconOnly",null);_.c([_.nL("skinnyMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],O9.prototype,"moveActionsElement",null);_.c([_.Gm("yt-text-inline-expander-expand-clicked"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],O9.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.c([_.Gm("yt-text-inline-expander-collapse-clicked"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],O9.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.c([_.Gm("yt-text-inline-expander-expanded-changed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],O9.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.c([_.Gm("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],O9.prototype,"onRenderStamperFinished",null);_.c([_.Gm("yt-expander-more-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],O9.prototype,"onYtExpanderMoreTapped",null);_.c([_.Gm("yt-expander-less-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],O9.prototype,"onYtExpanderLessTapped",null);
_.c([_.nL("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],O9.prototype,"registerPanel",null);_.c([_.nL("videoSecondaryInfoRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],O9.prototype,"resetDescriptionState",null);O9=_.c([_.E({disableElementRegistration:!0,is:"ytd-watch-metadata"})],O9);
_.R(O9,"ytd-watch-metadata",function(){if(kYH!==void 0)return kYH;var q=document.createElement("template");_.f(q,'\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">\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">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" 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="[[structuredDescriptionContentRenderer]]" 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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return kYH=q},{mode:2});_.CL6=function(q){_.VG.call(this);this.JSC$20165_watchApi=q;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;NKj(this);QjV(this);IAm(this);i8q(this);rnA(this);Uy4(this);TKA(this)};
_.O(_.CL6,_.VG);var IAm=function(q){var w=function(){_.T("kevlar_is_pupi_enabled")||o7(q)};
q.JSC$20165_watchApi.getRoot().addEventListener("yt-player-updated",w);q.addOnDisposeCallback(function(){q.JSC$20165_watchApi.getRoot().removeEventListener("yt-player-updated",w)})},rnA=function(q){if(_.T("kevlar_endscreen_auto_theater_mode")){var w=q.JSC$20165_watchApi.subscribeToActiveChanged(function(){dy6(q)},!1);
q.addOnDisposeCallback(w)}},NKj=function(q){var w,u,y,e,t;
_.F(function(X){if(X.nextAddress==1)return _.H(X,q.JSC$20165_watchApi.playerApi,2);w=X.yieldResult;u=function(G){G=!!G;V9(q)&&(G=G?2:1,_.lk.getInstance().setState(G,!0,!1))};
y=function(G){G&&_.olA(_.Mt().getState())&&(_.Pw(q.JSC$20165_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),q.temporaryTheaterMode=!0)};
e=function(G){_.T("kevlar_player_update_autonav_on_new_data")&&G.type==="newdata"&&(_.T("kevlar_is_pupi_enabled")||o7(q))};
t=function(G){q.onPlayerStateChange(G)};
_.T("kevlar_endscreen_auto_theater_mode")&&w.addEventListener("onAutonavCancelled",y);w.addEventListener("onAutonavChangeRequest",u);w.addEventListener("onVideoDataChange",e);w.addEventListener("onStateChange",t);q.addOnDisposeCallback(function(){w.removeEventListener("onAutonavChangeRequest",u);w.removeEventListener("onVideoDataChange",e);w.removeEventListener("onStateChange",t);_.T("kevlar_endscreen_auto_theater_mode")&&w.removeEventListener("onAutonavCancelled",y)});
_.HI(X)})},QjV=function(q){q.JSC$20165_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){q.autonavCancelledBySignal=!0;
_.T("kevlar_is_pupi_enabled")||o7(q)});
q.JSC$20165_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(w,u,y){u&&o7(q,y)});
q.JSC$20165_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){V9(q)&&_.lk.getInstance().setState(2,!0,!0)});
q.JSC$20165_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){V9(q)&&_.lk.getInstance().setState(1,!0,!0)});
q.addOnDisposeCallback(function(){q.JSC$20165_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");q.JSC$20165_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");q.JSC$20165_watchApi.unregisterActionHandler("yt-enable-autoplay-command");q.JSC$20165_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},i8q=function(q){var w=q.JSC$20165_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){TKA(q)}),u=q.JSC$20165_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){Uy4(q)});
q.addOnDisposeCallback(function(){q.JSC$20165_watchApi.unsubscribeByKey(w);q.JSC$20165_watchApi.unsubscribeByKey(u)})},TKA=function(q){q.autonavCancelledBySignal=!1;
_.T("kevlar_is_pupi_enabled")||o7(q)},Uy4=function(q){var w=q.JSC$20165_watchApi.getWatchNextResponse(),u,y;
var e=(w=(y=_.C(w==null?void 0:(e=w.playerOverlays)==null?void 0:(u=e.playerOverlayRenderer)==null?void 0:u.autonavToggle,_.UYa))==null?void 0:y.enabled)?2:1;_.T("kevlar_is_pupi_enabled")?_.lk.getInstance().setState(e,!1,!1):o7(q);_.T("web_persist_server_autonav_state_on_client")&&typeof w==="boolean"&&_.sqH(e===2)},V9=function(q){if(q.autonavCancelledBySignal)return!1;
var w,u,y,e;return!!((w=q.JSC$20165_watchApi.getWatchNextResponse())==null?0:(u=w.contents)==null?0:(y=u.twoColumnWatchNextResults)==null?0:(e=y.autoplay)==null?0:e.autoplay)};
_.CL6.prototype.onPlayerStateChange=function(q){if(q===0){q=!_.lk.getInstance().isAutoplaySetExplicitly();var w=this.JSC$20165_watchApi.getWatchNextResponse(),u,y,e,t;w=_.C(w==null?void 0:(u=w.contents)==null?void 0:(y=u.twoColumnWatchNextResults)==null?void 0:(e=y.autoplay)==null?void 0:(t=e.autoplay)==null?void 0:t.autoplayExplicitChoiceDialogRenderer,_.h_P);V9(this)&&q&&w&&_.nx.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:w},popupType:"DIALOG"}})}else dy6(this)};
var dy6=function(q){q.temporaryTheaterMode&&(q.temporaryTheaterMode=!1,_.Pw(q.JSC$20165_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},o7=function(q,w){w=w===void 0?!1:w;
var u;_.F(function(y){if(y.nextAddress==1)return _.H(y,q.JSC$20165_watchApi.playerApi,2);u=y.yieldResult;V9(q)?u.setAutonavState(_.lk.getInstance().getState(),w):u.setAutonavState(1,w);_.HI(y)})};var O8B={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"};_.Vu4=function(q){_.VG.call(this);var w=this;this.JSC$20170_watchApi=q;var u=this.JSC$20170_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){o7m(w)});
this.addOnDisposeCallback(function(){w.JSC$20170_watchApi.unsubscribeByKey(u)});
o7m(this)};
_.O(_.Vu4,_.VG);var o7m=function(q){var w=q.JSC$20170_watchApi.getPlayerResponse(),u=q.JSC$20170_watchApi.getWatchNextResponse();if(!_.tu6(w==null?void 0:w.playabilityStatus,u==null?void 0:u.playerOverlays)){var y;var e=w==null?void 0:(y=w.playabilityStatus)==null?void 0:y.errorScreen}q.JSC$20170_watchApi.provideRenderingData("ERROR_SCREEN",e)};var fAh=_.LL(function(q){var w=q.data;q=_.QS(function(){var u=w().onTap;u&&_.tG().resolve(_.PG).resolveCommand(u)});
return _.W("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost","on:click":q},_.W("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.W(_.Lr,{text:function(){return w().title}})),_.W("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.W(_.OF,{data:function(){return w().channelAvatar}},{avatarViewModel:_.Vb}),_.W(_.Lr,{text:function(){return w().subtitle}})))},"aj");var fu={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER"},myB=_.LL(function(q){var w=q.data;return _.W("yt-player-quick-action-buttons",{class:_.HR("ytPlayerQuickActionButtonsHost")},_.W(_.mL,{each:function(){if(_.T("delhi_modern_web_player_icons")&&!_.T("enable_web_delhi_icons")){var u=w();u=JSON.parse(JSON.stringify(u));for(var y=_.P(u),e=y.next();!e.done;e=y.next()){var t=e.value,X=void 0;e=_.C((X=_.C(t,_.Ag))==null?void 0:X.toggleButtonViewModel,
_.Vo);var G=void 0;X=_.C((G=_.C(t,_.Jg))==null?void 0:G.toggleButtonViewModel,_.Vo);t=_.C(t,_.oH);if(e){X=_.C(e.defaultButtonViewModel,_.oH);e=_.C(e.toggledButtonViewModel,_.oH);t=void 0;if((t=X)==null?0:t.iconName)X.iconName=fu[X.iconName];X=void 0;if((X=e)==null?0:X.iconName)e.iconName=fu[e.iconName]}else if(X){e=_.C(X.defaultButtonViewModel,_.oH);X=_.C(X.toggledButtonViewModel,_.oH);t=void 0;if((t=e)==null?0:t.iconName)e.iconName=fu[e.iconName];e=void 0;if((e=X)==null?0:e.iconName)X.iconName=fu[X.iconName]}else t&&
(t.iconName=fu[t.iconName])}}else u=w();return u}},function(u){return _.W(_.OF,{data:function(){return u}},{buttonViewModel:_.Zs,
likeButtonViewModel:function(y){return _.W(_.op,{data:y.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.Oi})}))},"bj");_.JnT=function(q){_.VG.call(this);var w=this;this.JSC$20173_watchApi=q;q=_.P(_.r4({},void 0,"ufFdVc"));this.quickActionsViewModel=q.next().value;this.setQuickActionsViewModel=q.next().value;q=_.P(_.r4({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=q.next().value;this.setPlayerOverlayVideoDetailsRenderer=q.next().value;var u=this.JSC$20173_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){AnH(w)});
this.addOnDisposeCallback(function(){w.JSC$20173_watchApi.unsubscribeByKey(u)});
AnH(this)};
_.O(_.JnT,_.VG);
var AnH=function(q){var w,u,y,e,t,X,G,n,N,Q,I,U,d,V;_.F(function(J){if(J.nextAddress==1)return _.H(J,q.JSC$20173_watchApi.playerApi,2);w=J.yieldResult;u=q.JSC$20173_watchApi.getWatchNextResponse();t=(y=u)==null?void 0:(e=y.playerOverlays)==null?void 0:e.playerOverlayRenderer;G=_.C((X=t)==null?void 0:X.fullscreenQuickActionsBar,_.VFj);(N=(n=q).setQuickActionsViewModel)==null||N.call(n,G||{});G&&zcB(q,w);U=(Q=t)==null?void 0:(I=Q.videoDetails)==null?void 0:I.playerOverlayVideoDetailsRenderer;(V=(d=
q).setPlayerOverlayVideoDetailsRenderer)==null||V.call(d,U||{});U&&aAA(q,w);_.HI(J)})},zcB=function(q,w){if(!q.quickActionButtonsContainer){q.quickActionButtonsContainer=document.createElement("div");
w.setFullscreenQuickActions(q.quickActionButtonsContainer);var u=function(){return q.quickActionsViewModel().quickActionButtons||[]},y=_.aX(q.quickActionButtonsContainer,function(){return _.W(myB,{data:u})});
q.addOnDisposeCallback(function(){w.setFullscreenQuickActions(void 0);y()})}},aAA=function(q,w){if(!q.playerOverlayVideoDetailsRendererContainer){q.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
w.setPlayerOverlayVideoDetailsRenderer(q.playerOverlayVideoDetailsRendererContainer);var u=_.aX(q.playerOverlayVideoDetailsRendererContainer,function(){return _.W(fAh,{data:q.playerOverlayVideoDetailsRenderer})});
q.addOnDisposeCallback(function(){w.setPlayerOverlayVideoDetailsRenderer(void 0);u()})}};_.mc=function(q){_.VG.call(this);var w=this;this.JSC$20178_watchApi=q;this.JSC$20178_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;q=_.se(_.Mt(),_.OT,function(u){Dyx(w,u)});
this.addOnDisposeCallback(q);q=_.se(_.Mt(),_.os,function(u){w.onWatchScroll(u)});
this.addOnDisposeCallback(q);_.T("kevlar_watch_while_v2")&&(q=_.se(_.Mt(),_.DV,function(u){Z8a(w,u)}),this.addOnDisposeCallback(q));
pBj(this);$yT(this);v7q();this.onWatchScroll(_.os(_.Mt().getState()));_.RX("START_IN_FULL_WINDOW_MODE")&&this.JSC$20178_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.O(_.mc,_.VG);var pBj=function(q){q.JSC$20178_watchApi.registerActionHandler("yt-fullscreen-change-action",function(w){var u=q.JSC$20178_watchApi.isActive();w&&!u||_.Mt().dispatch(_.tr({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!w}}))});
q.addOnDisposeCallback(function(){q.JSC$20178_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},$yT=function(q){var w,u;
_.F(function(y){if(y.nextAddress==1)return _.H(y,q.JSC$20178_watchApi.playerApi,2);w=y.yieldResult;u=function(){q.onFullerscreenEduClicked()};
w.addEventListener("onFullerscreenEduClicked",u);q.addOnDisposeCallback(function(){w.removeEventListener("onFullerscreenEduClicked",u)});
_.HI(y)})},Dyx=function(q,w){var u;
_.F(function(y){if(y.nextAddress==1)return q.isFullscreen=!!_.uy(),_.H(y,q.JSC$20178_watchApi.playerApi,2);u=y.yieldResult;q.JSC$20178_miniplayerActive||u.setFauxFullscreen(q.isFullscreen);if(w&&(q.JSC$20178_watchApi.focusOnPlayer(),!q.fullerscreenEduButtonShownThisPlayback)){q.fullerscreenEduButtonShownThisPlayback=!0;var e=_.Pd("yt-fullerscreen-edu-button-shown-count")||0;_.tm("yt-fullerscreen-edu-button-shown-count",e+1,31536E3);q.updateFullerscreenEduButtonSubtleModeState()}_.HI(y)})},Z8a=function(q,
w){var u;
_.F(function(y){if(y.nextAddress==1)return q.JSC$20178_miniplayerActive=w,_.H(y,q.JSC$20178_watchApi.playerApi,2);u=y.yieldResult;u.setFauxFullscreen(!q.JSC$20178_miniplayerActive&&q.isFullscreen);_.HI(y)})};
_.mc.prototype.onWatchScroll=function(q){var w=this,u,y;return _.F(function(e){if(e.nextAddress==1)return _.T("external_fullscreen_with_edu")?_.H(e,w.JSC$20178_watchApi.playerApi,2):e.return();u=e.yieldResult;y=q<=0;w.shouldShowFullerscreenEdu!==y&&(w.shouldShowFullerscreenEdu=y,u.updateFullerscreenEduButtonVisibility(!w.shouldShowFullerscreenEdu));_.HI(e)})};
_.mc.prototype.onFullerscreenEduClicked=function(){this.JSC$20178_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var q=_.Pd("yt-fullerscreen-edu-button-click-count")||0;_.tm("yt-fullerscreen-edu-button-click-count",q+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.mc.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var q=this,w,u,y,e,t,X;return _.F(function(G){if(G.nextAddress==1)return w=_.Pd("yt-fullerscreen-edu-button-click-count")||0,u=_.Pd("yt-fullerscreen-edu-button-shown-count")||0,y=_.Fc("external_fullscreen_button_click_threshold"),e=_.Fc("external_fullscreen_button_shown_threshold"),t=w>=y||u>=e,_.H(G,q.JSC$20178_watchApi.playerApi,2);X=G.yieldResult;X.updateFullerscreenEduButtonSubtleModeState(t);_.HI(G)})};
_.mc.prototype.disposeInternal=function(){_.VG.prototype.disposeInternal.call(this);var q=_.uy();_.T("kevlar_exit_fullscreen_leaving_watch")&&q&&_.yY(q)};
var v7q=function(){if(_.T("web_watch_add_viewport_meta_tag")){var q=document.querySelector("meta[name=viewport]"),w=document.head;w&&!q&&(q=document.createElement("meta"),q.name="viewport",q.content="width=device-width, initial-scale=1.0, viewport-fit=cover",w.appendChild(q))}};_.Af=function(q){_.VG.call(this);var w=this;this.JSC$20182_watchApi=q;this.jobId=0;this.pendingRequestId=void 0;var u=this.JSC$20182_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){b84(w)});
this.addOnDisposeCallback(function(){w.JSC$20182_watchApi.unsubscribeByKey(u)});
b84(this)};
_.O(_.Af,_.VG);var Y_c=function(q){_.pi.cancelJob(q.jobId);q.pendingRequestId=void 0},b84=function(q){Y_c(q);
var w=KzK(q.JSC$20182_watchApi.getWatchNextResponse());if(w){var u=250,y,e=(y=_.C(w,_.msk))==null?void 0:y.initialDelayMs;_.T("web_watch_updated_metadata_server_initial_delay")&&e&&(u=e);q.jobId=_.pi.addLowPriorityJob(function(){return q.fetchUpdatedMetadata(w)},u)}};
_.Af.prototype.fetchUpdatedMetadata=function(q,w){var u=this,y,e,t,X,G,n,N,Q,I,U,d,V,J,a,b;return _.F(function(g){switch(g.nextAddress){case 1:w&&(y={continuation:w});if(!_.T("web_get_updated_metadata_fantasy_panel_continuation_params")){g.jumpTo(2);break}e=_.tG().resolve(_.ib);t="PAsports_fantasy";return _.H(g,e.isVisible(t,!0),3);case 3:g.yieldResult&&(N=(G=(X=e).getUpdatePanelContinuationData)==null?void 0:(n=G.call(X,t))==null?void 0:n.updatePanelContinuationRequest)&&(y||(y={}),y.clientParams=
{panelContinuationParams:{panelContinuation:N}});case 2:Q=_.tG().resolve(_.oi);if(!Q)return _.vm(Error("im")),g.return();I={};u.pendingRequestId=I;return _.H(g,_.cR(Q,q,y),4);case 4:U=g.yieldResult;if(I!==u.pendingRequestId)return g.return();J=(d=U)==null?void 0:(V=d.continuation)==null?void 0:V.timedContinuationData;((a=J)==null?0:a.continuation)&&((b=J)==null?0:b.timeoutMs)&&(u.jobId=_.pi.addLowPriorityJob(function(){return u.fetchUpdatedMetadata(q,J.continuation)},J.timeoutMs));
_.HI(g)}})};
_.Af.prototype.disposeInternal=function(){_.VG.prototype.disposeInternal.call(this);Y_c(this)};var g7j=_.LL(function(q){var w=_.QS(function(){var y=q.data().videoId;if(q.active())y=_.uA(y),_.tG().resolve(_.PG).resolveCommand(y);else{var e=q.playerApi(),t=e.getAvailableAudioTracks(),X,G,n=(X=q.sourceVideoConfig().audioTracks)==null?void 0:(G=X.find(function(N){return N.isDefaultForSource}))==null?void 0:G.id;
if(t=t.find(function(N){return N.getLanguageInfo().getId()===n}))e.setAudioTrack(t,!0),e.setCompositeParam({activeVideoId:y}),q.setActiveSourceId(y)}}),u={};
return _.W("ytw-composite-source-video-overlay",{class:_.HR("ytwCompositeSourceVideoOverlayHost",(u.ytwCompositeSourceVideoOverlayActive=q.active,u.ytwCompositeSourceVideoOverlayInteracting=q.interacting,u)),style:_.rm({left:function(){var y;return((y=q.data().topLeftCornerX)!=null?y:0)*100+"%"},
top:function(){var y;return((y=q.data().topLeftCornerY)!=null?y:0)*100+"%"},
width:function(){var y;return((y=q.data().width)!=null?y:0)*100+"%"},
height:function(){var y;return((y=q.data().height)!=null?y:0)*100+"%"}}),
"on:click":w},_.W("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"cj");var E7K=_.LL(function(q){var w=_.P(_.iv(function(){var G,n=(G=q.data().sources)==null?void 0:G.find(function(N){return N.isActive});
if(n)return n.videoId})),u=w.next().value,y=w.next().value;
w=_.P(_.r4(!1,void 0,"WI4BUb"));var e=w.next().value,t=w.next().value;w=_.QS(function(){t(!0)});
var X=_.QS(function(){t(!1)});
return _.W("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":w,"on:mouseout":X},_.W(_.r,{cond:function(){return q.data().sources},
then:function(G){return _.W(_.mL,{each:G},function(n){return _.W(g7j,{data:n,active:function(){return n.videoId===u()},
setActiveSourceId:y,interacting:e,playerApi:q.playerApi,sourceVideoConfig:function(){return B86(q.compositeVideoConfig(),n.videoId)}})})}}))},"dj");_.S_V=function(q){_.VG.call(this);this.JSC$20198_watchApi=q;q=_.P(_.r4({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=q.next().value;this.setCompositeVideoOverlayRenderer=q.next().value;q=_.P(_.r4({},void 0,"U5hcq"));this.compositeVideoConfig=q.next().value;this.setCompositeVideoConfig=q.next().value;Rcx(this);cn6(this)};
_.O(_.S_V,_.VG);var Rcx=function(q){var w=q.JSC$20198_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){cn6(q)});
q.addOnDisposeCallback(function(){q.JSC$20198_watchApi.unsubscribeByKey(w)})},hc4=function(q){var w;
return _.F(function(u){if(u.nextAddress==1)return _.H(u,q.JSC$20198_watchApi.playerApi,2);w=u.yieldResult;w.setCompositeVideoOverlayRendererComponent(q.container);_.HI(u)})},jjj=function(q){var w;
return _.F(function(u){if(u.nextAddress==1)return _.H(u,q.JSC$20198_watchApi.playerApi,2);w=u.yieldResult;w.setCompositeVideoOverlayRendererComponent(void 0);_.HI(u)})},lAh=function(q){var w,u;
return _.F(function(y){if(y.nextAddress==1)return _.H(y,q.JSC$20198_watchApi.playerApi,2);w=y.yieldResult;q.container=document.createElement("div");u=_.aX(q.container,function(){return _.W(E7K,{data:q.compositeVideoOverlayRenderer,compositeVideoConfig:q.compositeVideoConfig,playerApi:w})});
q.addOnDisposeCallback(u);_.HI(y)})},cn6=function(q){var w,u,y,e,t,X,G,n;
_.F(function(N){return N.nextAddress==1?(w=q.JSC$20198_watchApi.getPlayerResponse(),t=_.C((u=w)==null?void 0:(y=u.overlay)==null?void 0:(e=y.playerControlsOverlayRenderer)==null?void 0:e.compositeVideoOverlay,E44),n=(X=w)==null?void 0:(G=X.playerConfig)==null?void 0:G.compositeVideoConfig,t&&q.setCompositeVideoOverlayRenderer(t),n&&q.setCompositeVideoConfig(n),t&&n?q.container?N.jumpTo(6):_.H(N,lAh(q),6):LAV(q)?_.H(N,jjj(q),0):N.jumpTo(0)):LAV(q)?N.jumpTo(0):_.H(N,hc4(q),0)})},LAV=function(q){var w;
return!((w=q.container)==null||!w.parentElement)};
_.S_V.prototype.disposeInternal=function(){LAV(this)&&jjj(this);_.VG.prototype.disposeInternal.call(this)};_.qmH=function(q){_.VG.call(this);var w=this;this.JSC$20204_watchApi=q;var u=this.JSC$20204_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var y=w.JSC$20204_watchApi.getPlayerResponse();if(y){var e,t;if(y=_.C((e=y.endscreen)==null?void 0:(t=e.endscreenRenderer)==null?void 0:t.hideButton,_.Vo)){var X;(X=w.setEndscreenHideButton)==null||X.call(w,y);MuK(w)}}});
this.addOnDisposeCallback(function(){w.JSC$20204_watchApi.unsubscribeByKey(u)});
q=_.P(_.r4({},void 0,"PPHRb"));this.endscreenHideButton=q.next().value;this.setEndscreenHideButton=q.next().value;KA6(this);BKK(this);xyK(this)};
_.O(_.qmH,_.VG);var MuK=function(q){var w,u;_.F(function(y){if(y.nextAddress==1)return q.creatorEndscreenHideButtonContainer?y.return():_.H(y,q.JSC$20204_watchApi.playerApi,2);w=y.yieldResult;q.creatorEndscreenHideButtonContainer=document.createElement("div");_.M1(q.creatorEndscreenHideButtonContainer,!1);w.setCreatorEndscreenHideButton(q.creatorEndscreenHideButtonContainer);u=_.aX(q.creatorEndscreenHideButtonContainer,function(){return _.W(_.fr,{data:q.endscreenHideButton,useOutlinedIcon:!0})});
q.addOnDisposeCallback(function(){u();w.setCreatorEndscreenHideButton(void 0)});
_.HI(y)})},KA6=function(q){var w,u;
_.F(function(y){if(y.nextAddress==1)return _.H(y,q.JSC$20204_watchApi.playerApi,2);w=y.yieldResult;u=function(){q.creatorEndscreenHideButtonContainer&&_.M1(q.creatorEndscreenHideButtonContainer,!0)};
w.addEventListener("endscreenelementshown",u);q.addOnDisposeCallback(function(){w.removeEventListener("endscreenelementshown",u)});
_.HI(y)})},BKK=function(q){var w=function(){q.creatorEndscreenHideButtonContainer&&_.M1(q.creatorEndscreenHideButtonContainer,!1)},u=q.JSC$20204_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",w),y=q.JSC$20204_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",w);
q.addOnDisposeCallback(function(){q.JSC$20204_watchApi.unsubscribeByKey(u);q.JSC$20204_watchApi.unsubscribeByKey(y)})},xyK=function(q){q.JSC$20204_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(w){var u=_.C(w,ppT);
q.JSC$20204_watchApi.playerApi.then(function(y){y==null||y.setCreatorEndscreenVisibility(!!u.hide)})});
q.addOnDisposeCallback(function(){q.JSC$20204_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.uxK=function(q){_.VG.call(this);this.JSC$20210_watchApi=q;wcK(this)};
_.O(_.uxK,_.VG);var wcK=function(q){var w,u;_.F(function(y){if(y.nextAddress==1)return _.H(y,q.JSC$20210_watchApi.playerApi,2);w=y.yieldResult;u=function(e){_.Mt().dispatch(_.tr({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:e}}))};
w.addEventListener("onRetroModeChanged",u);q.addOnDisposeCallback(function(){w.removeEventListener("onRetroModeChanged",u)});
_.HI(y)})};var J$=0,A$=0,zu=0;var ykc;ykc=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.Jf=function(q){_.VG.call(this);this.JSC$20223_watchApi=q;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;emT(this)};
_.O(_.Jf,_.VG);
var emT=function(q){var w,u,y;_.F(function(e){if(e.nextAddress==1)return _.H(e,q.JSC$20223_watchApi.playerApi,2);w=e.yieldResult;if(q.isDisposed())return e.return();q.sessionStorage=_.Lua("yt-sleep-timer");q.sessionStorage||_.Y8(new _.fv("SessionStorage for Sleep Timer is undefined."));((u=q.sessionStorage)==null?void 0:u.get("yt-sleep-timer"))==="true"&&(Xpm(),(y=q.sessionStorage)==null||y.remove("yt-sleep-timer"),w.syncVolume());k0H(q,w);tPq(q,w);PS6(q,w);_.HI(e)})},k0H=function(q,w){var u=function(N){q.onSleepTimerSettingsChanged(N,
w)},y=function(N){q.onPlayerStateChange(N,w)},e=function(){q.onLoopChange(w)},t=function(){q.onCloseMiniplayer(w)},X=function(){edT(w,(0,_.eW)(),FdV(w),q.selectedOption==="End of video",w.getPlayerState()!==1)},G=function(){q.onSeekComplete(w)},n=function(){_.pi.cancelJob(A$);
var N=w.getCurrentTime()>=w.getDuration(),Q=q.selectedOption==="End of video"||q.selectedOption==="End of playlist"&&!wpa(q.playlistId);N&&Q&&XcB(q,w)};
w.addEventListener("onSleepTimerSettingsChanged",u);w.addEventListener("onLoopChange",e);w.addEventListener("onLoopRangeChange",e);w.addEventListener("onStateChange",y);w.addEventListener("onCloseMiniplayer",t);w.addEventListener("onSleepTimerFeatureAvailable",X);w.addEventListener("SEEK_COMPLETE",G);w.addEventListener("onAdStart",n);q.addOnDisposeCallback(function(){w.removeEventListener("onSleepTimerSettingsChanged",u);w.removeEventListener("onLoopChange",e);w.removeEventListener("onLoopRangeChange",
e);w.removeEventListener("onStateChange",y);w.removeEventListener("onCloseMiniplayer",t);w.removeEventListener("onSleepTimerFeatureAvailable",X);w.removeEventListener("SEEK_COMPLETE",G);w.removeEventListener("onAdStart",n)})},tPq=function(q,w){var u=q.JSC$20223_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var y=w.getVideoData().video_id,e,t=(e=xW6(q.JSC$20223_watchApi))==null?void 0:e.playlistId;
q.pauseAutonavPlayback&&(w.pauseVideo(),w.syncVolume(),q.pauseAutonavPlayback=!1);if(q.selectedOption==="End of video"&&y!==q.videoId)zJ(q,w);else{if(q.selectedOption==="End of playlist"){e=wpa(q.playlistId);if(t!==q.playlistId){zJ(q,w);break a}e?e&&FC6(q,w):G0H(q,w)}q.videoId=y;q.playlistId=t}}});
q.addOnDisposeCallback(function(){q.JSC$20223_watchApi.unsubscribeByKey(u)})},PS6=function(q,w){var u=_.tG().resolve(_.dd),y=_.se(u,_.nPH,function(t){t&&q.selectedOption!=="Off"&&zJ(q,w)}),e=q.JSC$20223_watchApi.subscribeToActiveChanged(function(t){var X,G;
return _.F(function(n){if(n.nextAddress==1)return _.H(n,_.Hh().navigationFinishPromise,2);X=!_.Zoa();G=_.tG().resolve(_.$X).isMiniplayerActive();t||!m1(q.selectedOption)||G||X||zJ(q,w);_.HI(n)})},!1);
u=_.se(u,function(t){return t.entities.playlistLoopStateEntity||{}},function(t){t=t===void 0?{}:t;
var X=qBx(q.JSC$20223_watchApi);if(X){var G;((G=t[X])==null?void 0:G.state)==="PLAYLIST_LOOP_STATE_ALL"&&m1(q.selectedOption)&&zJ(q,w)}});
q.addOnDisposeCallback(y);q.addOnDisposeCallback(u);q.addOnDisposeCallback(e)};
_.Jf.prototype.onSleepTimerSettingsChanged=function(q,w){switch(q){case "Off":this.selectedOption!=="Off"&&zJ(this,w);break;case "End of video":case "End of playlist":nqB(this,q,w);break;default:nqB(this,q,w,ykc.get(q))}};
_.Jf.prototype.onLoopChange=function(q){(q.getLoopVideo()||q.getLoopRange())&&m1(this.selectedOption)&&zJ(this,q)};
_.Jf.prototype.onCloseMiniplayer=function(q){m1(this.selectedOption)&&zJ(this,q)};
var nqB=function(q,w,u,y){HkK(q,u);q.selectedOption=w;q.videoId=u.getVideoData().video_id;q.playlistId="";var e;(e=q.sessionStorage)==null||e.set("yt-sleep-timer","true");q.adjustmentsCount++;edT(u,(0,_.eW)(),FdV(u),q.selectedOption==="End of video");if(q.selectedOption==="End of video")G0H(q,u),WCa(q,u);else if(q.selectedOption==="End of playlist"){WCa(q,u);var t,X;q.playlistId=(X=(t=xW6(q.JSC$20223_watchApi))==null?void 0:t.playlistId)!=null?X:"";wpa(q.playlistId)||G0H(q,u)}else y&&(q.presetFadeSchedulerId=
_.iq(_.pi,function(){txH(u,15E3)},y-15E3),q.presetPauseSchedulerId=_.iq(_.pi,function(){XcB(q,u)},y),k86(u,(0,_.eW)(),y))},XcB=function(q,w){if(q.JSC$20223_watchApi.isActive()){var u={dismissDialogEndpoint:{}};
var y={commandExecutorCommand:{commands:[u,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};u={buttonViewModel:{title:_.ID("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:u}}};y={buttonViewModel:{title:_.ID("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:y}}};var e={dialogHeaderViewModel:{headline:{content:_.ID("SLEEP_TIMER_ENDED_TITLE")}}},
t={basicContentViewModel:{paragraphs:[{text:{content:_.ID("SLEEP_TIMER_ENDED_TEXT")}}]}};u={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:e,content:t,footer:{panelFooterViewModel:{primaryButton:u,secondaryButton:y,shouldHideDivider:!0}}}}}}};_.tG().resolve(_.PG).resolveCommand(u,{form:{element:q}})}else Xpm();sUT(q,!1);N0T(q,w);w.pauseVideo();_.lk.getInstance().getState()===2&&w.getPlayerState()===5&&(q.pauseAutonavPlayback=!0)},zJ=function(q,w){sUT(q,!0);
N0T(q,w);Xpm()},N0T=function(q,w){HkK(q,w);
q.selectedOption="Off";q.videoId="";q.playlistId="";q.adjustmentsCount=0;var u;(u=q.sessionStorage)==null||u.remove("yt-sleep-timer");_.pi.cancelJob(J$);w.resetSleepTimerMenuSettings()},sUT=function(q,w){w={timer_length_adjustment_times_during_session:q.adjustmentsCount-1,
is_session_cancelled:w};switch(q.selectedOption){case "Off":w.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":w.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":w.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:w.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",w.option_duration_in_minutes=ykc.get(q.selectedOption)/6E4}_.pn("sleepTimerSessionFinishEvent",w)};
_.Jf.prototype.onPlayerStateChange=function(q,w){q===1?edT(w,(0,_.eW)(),FdV(w),this.selectedOption==="End of video"):q===0?(_.pi.cancelJob(A$),w.setVideoTimeLeft(ySm(0,0))):q===2&&_.pi.cancelJob(A$);this.selectedOption==="End of video"?q===0?XcB(this,w):q===2&&PNq(w):this.selectedOption!=="End of playlist"||wpa(this.playlistId)||(q===0?XcB(this,w):q===2&&PNq(w))};
_.Jf.prototype.onSeekComplete=function(q){q.getPlayerState()===2&&edT(q,(0,_.eW)(),FdV(q),this.selectedOption==="End of video",!0)};
_.Jf.prototype.onCueRangeEnter=function(q,w){q==="sleep-timer-fade-audio"&&txH(w,(w.getDuration()-w.getProgressState().current)*1E3)};
_.Jf.prototype.onCueRangeExit=function(q,w){q==="sleep-timer-fade-audio"&&w.getPlayerState()!==0&&PNq(w,!0)};
var G0H=function(q,w){w.addCueRange("sleep-timer-fade-audio",w.getDuration()-15,w.getDuration());w.addEventListener("onCueRangeEnter",function(u){q.onCueRangeEnter(u,w)});
w.addEventListener("onCueRangeExit",function(u){q.onCueRangeExit(u,w)})},FC6=function(q,w){w.removeCueRange("sleep-timer-fade-audio");
w.removeEventListener("onCueRangeEnter",function(u){q.onCueRangeEnter(u,w)});
w.removeEventListener("onCueRangeExit",function(u){q.onCueRangeExit(u,w)})},HkK=function(q,w){m1(q.selectedOption)?FC6(q,w):(_.pi.cancelJob(q.presetPauseSchedulerId),_.pi.cancelJob(q.presetFadeSchedulerId),q.presetPauseSchedulerId=0,q.presetFadeSchedulerId=0);
PNq(w,!0)},WCa=function(q,w){w.setLoop(!1);
w.setLoopVideo(!1);w.setLoopRange(null);(q=qBx(q.JSC$20223_watchApi))&&_.tG().resolve(_.dd).dispatch(_.IH("playlistLoopStateEntity",q,{key:q,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.rkH=function(q){_.VG.call(this);this.JSC$20226_watchApi=q;QUV(this);I0q(this);ikV(this);q=q.getRoot();if(q.is==="ytd-watch-flexy"||q.is==="ytd-watch-grid")q.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.T8m();_.T("web_watch_log_theater_mode_cookie_state")&&_.TQ.get("wide","0")==="1"&&_.v5M("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.O(_.rkH,_.VG);var QUV=function(q){var w,u;_.F(function(y){if(y.nextAddress==1)return _.H(y,q.JSC$20226_watchApi.playerApi,2);w=y.yieldResult;u=function(e){UNm(q,!!e)};
w.addEventListener("SIZE_CLICKED",u);q.addOnDisposeCallback(function(){w.removeEventListener("SIZE_CLICKED",u)});
_.HI(y)})},I0q=function(q){q.JSC$20226_watchApi.registerActionHandler("yt-toggle-theater-mode",function(w,u){UNm(q,w,u===void 0?!0:u)});
q.addOnDisposeCallback(function(){q.JSC$20226_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.rkH.prototype.getState=function(){return _.on(_.Mt().getState())};
var UNm=function(q,w,u){u=u===void 0?!0:u;var y,e,t,X=_.T("enable_player_resize_transition")&&!!q.JSC$20226_watchApi.getWatchNextResponse()&&!((y=q.JSC$20226_watchApi.getWatchNextResponse())==null?0:(e=y.contents)==null?0:(t=e.twoColumnWatchNextResults)==null?0:t.conversationBar);_.BVq(function(){_.Mt().dispatch(_.tr({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:w}}));_.T("theater_mode_scroll_to_top_killswitch")||q.JSC$20226_watchApi.scrollWatchTo(0,!1);_.uy()&&_.T("external_fullscreen")&&_.yY(document.documentElement);
ikV(q);u&&_.Cv("wide",w?"1":"0",-1);_.Pw(q.JSC$20226_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);q.JSC$20226_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:w});w&&_.T8m()},{shouldWrap:X})},ikV=function(q){var w;
_.F(function(u){if(u.nextAddress==1)return _.H(u,q.JSC$20226_watchApi.playerApi,2);w=u.yieldResult;w.setSizeStyle(!0,q.getState());_.HI(u)})};var dNm=function(q){_.VG.call(this);var w=this;this.playerApi=q;this.timeToPanelSyncKeyMap={};var u;if(q==null?0:(u=q.isReady)==null?0:u.call(q)){u=_.se(_.tG().resolve(_.dd),function(e){return e.entities.timedMarkersListSyncEntity||{}},function(e,t){e=e===void 0?{}:e;
t=t===void 0?{}:t;for(var X=_.P(Object.keys(t)),G=X.next();!G.done;G=X.next())G=G.value,e[G]!==t[G]&&T0q(w,t[G]);t=_.P(Object.keys(e));for(X=t.next();!X.done;X=t.next())X=X.value,G=e[X],w.timeToPanelSyncKeyMap[X]&&CSH(w,G)});
this.addOnDisposeCallback(u);var y=function(e){w.onCueRangeEnter(e)};
q.addEventListener("onCueRangeEnter",y);this.addOnDisposeCallback(function(){var e;(e=q.removeEventListener)==null||e.call(q,"onCueRangeEnter",y)})}};
_.O(dNm,_.VG);
var CSH=function(q,w){var u,y;if((u=q.playerApi)==null?0:(y=u.isReady)==null?0:y.call(u)){var e;if((u=w==null?void 0:(e=w.timedListData)==null?void 0:e.sections)&&w!=null&&w.key)for(e=_.P(u),u=e.next();!u.done;u=e.next())if(u=u.value,u.timedSyncDataList&&u.sectionId)for(y=0;y<u.timedSyncDataList.length;y++){var t=u.timedSyncDataList[y];t.syncItemId&&q.playerApi.addCueRange(u.sectionId+"_"+w.key+"_"+t.syncItemId,Number(t.videoTimeMs)/1E3,y===u.timedSyncDataList.length-1?0x8000000000000:Number(u.timedSyncDataList[y+
1].videoTimeMs)/1E3)}}},T0q=function(q,w){var u,y;
if((u=q.playerApi)==null?0:(y=u.isReady)==null?0:y.call(u)){var e;if((u=w==null?void 0:(e=w.timedListData)==null?void 0:e.sections)&&w!=null&&w.key)for(e=_.P(u),u=e.next();!u.done;u=e.next())if(u=u.value,u.timedSyncDataList&&u.sectionId){y=_.P(u.timedSyncDataList);for(var t=y.next();!t.done;t=y.next())t=t.value,t.syncItemId&&q.playerApi.removeCueRange(u.sectionId+"_"+w.key+"_"+t.syncItemId)}}};
dNm.prototype.onCueRangeEnter=function(q){for(var w=_.P(Object.keys(this.timeToPanelSyncKeyMap)),u=w.next();!u.done;u=w.next()){u=u.value;var y=_.P(q.split("_"+u+"_")),e=y.next().value;y=y.next().value;if(e&&y){q=_.tG().resolve(_.dd);w=this.timeToPanelSyncKeyMap[u];var t=_.UVo(q.getState(),w);u=Okq(u,e,y);if(u===-1)break;u={activeSyncId:y,activeItemIndex:u,activeSectionInfo:{sectionIdentifier:e}};t?q.dispatch(_.mG("markersEngagementPanelSyncEntity",w,u)):q.dispatch(_.IH("markersEngagementPanelSyncEntity",
w,Object.assign({},{key:w},u)));break}}};
var Okq=function(q,w,u){var y=_.tG().resolve(_.dd),e,t;q=(e=Ijx(y.getState(),q))==null?void 0:(t=e.timedListData)==null?void 0:t.sections;if(!q)return-1;e=0;t=_.P(q);for(q=t.next();!q.done;q=t.next()){q=q.value;y=q.timedSyncDataList||[];if(q.sectionId===w)return w=y.findIndex(function(X){return X.syncItemId===u}),w===-1?w:e+w;
e+=y.length}return-1};_.f0B=function(q){_.VG.call(this);var w=this;this.JSC$20238_watchApi=q;this.unresolvedCommands=[];this.JSC$20238_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(u){oqa(w,u)});
this.addOnDisposeCallback(function(){w.JSC$20238_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
VPq(this)};
_.O(_.f0B,_.VG);var VPq=function(q){var w;_.F(function(u){if(u.nextAddress==1)return _.H(u,q.JSC$20238_watchApi.playerApi,2);w=u.yieldResult;if(q.isDisposed())return u.return();q.timedSyncObserver=new dNm(w);q.unresolvedCommands.length&&(q.unresolvedCommands.forEach(function(y){return oqa(q,y)}),q.unresolvedCommands=[]);
_.sN(q,q.timedSyncObserver);_.HI(u)})},oqa=function(q,w){if(q.timedSyncObserver){var u=_.C(w,v4j);
if(u&&u.timedSyncEntityKey&&u.panelSyncEntityKey){q=q.timedSyncObserver;w=u.timedSyncEntityKey;var y=u.panelSyncEntityKey;u=!!u.isEnabled;u=u===void 0?!0:u;var e=_.tG().resolve(_.dd);e=Ijx(e.getState(),w);u?q.timeToPanelSyncKeyMap[w]||(q.timeToPanelSyncKeyMap[w]=y,CSH(q,e)):(delete q.timeToPanelSyncKeyMap[w],T0q(q,e))}}else q.unresolvedCommands.push(w)};var mNc=_.LL(function(q){var w=q.data,u=q.maybeLogSmartSkipClientData,y=_.Bm();_.EF(y,function(){return w().rendererContext},{onTap:function(Q,I){I({disableClickTracking:!0})}});
var e=null,t=null,X=_.T("web_enable_auto_focus_for_timely_action_button"),G=function(){e=document.activeElement},n=function(){w().smartSkipMetadata&&(e=document.activeElement,_.Iwj(function(){return t}))},N=function(Q){if(w().smartSkipMetadata&&(!Q||Q.key!=="Enter")){e&&e.isConnected&&(_.Iwj(function(){return e}),e=null);
var I;(I=t)==null||I.blur()}};
q=_.QS(function(){u==null||u(!0,w());return!1});
_.k$(y,{visibilityCallback:function(Q){if(X)Q?t&&w().smartSkipMetadata&&(n(),document.addEventListener("focusin",G)):(document.removeEventListener("focusin",G),N());else if(Q&&_.T("web_ephemeral_actions")){Q=_.YH(w().rendererContext);var I=Number(w().maxVisibleDurationMilliseconds),U,d=(U=_.C(w().rendererContext,_.ik))==null?void 0:U.label;Q&&I&&d&&(U={label:d,command:Q,durationMs:I},_.tG().resolve(_.XH).enqueue(U))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.DR(function(){if(X){var Q;if((t=(Q=y.value)==null?void 0:Q.querySelector("button"))&&w().smartSkipMetadata){var I;(I=y.value)==null||I.addEventListener("keydown",N)}}});
_.ZG(function(){X&&(t&&w().smartSkipMetadata&&t.removeEventListener("keydown",N),document.removeEventListener("focusin",G),N())});
return _.W("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:y,"on:click":q},_.W(_.OF,{data:function(){return w().content}},{buttonViewModel:_.Zs}))},"ej");var AkB=_.LL(function(q){var w=q.data,u=q.playerApi,y=_.tG().resolve(_.xoj);q=_.P(_.iv(function(){w()}));
var e=q.next().value,t=q.next().value,X=function(){return n4h(w(),e())},G=function(N,Q){var I,U,d=(I=_.C(Q==null?void 0:Q.rendererContext,_.af7))==null?void 0:(U=I.loggingDirectives)==null?void 0:U.trackingParams;
if((Q=Q==null?void 0:Q.smartSkipMetadata)&&Q.loggingData&&(U=Q.loggingData,Q=U.algorithmId,I=U.startMilliseconds,U=U.endMilliseconds,Q&&I!==void 0&&U!==void 0)){var V,J;N={smartSkipData:Object.assign({},{versionName:Q,startMediaTimeMs:I,endMediaTimeMs:U},N&&{userInteractionMediaTimeMs:(Math.floor(((V=_.xo())==null?void 0:(J=V.getPlayer())==null?void 0:J.getCurrentTime())||0)*1E3).toString()})};V=_.pN();var a;d&&(a=_.Tj(d));V&&a&&_.Lq(V,a,N)}},n=function(N,Q){var I=n4h(w(),N);
if(I){var U=_.C(I,as),d;if(d=Q)d=u(),I=_.C(I,as),d=I!=null&&I.smartSkipMetadata?!(d==null?0:d.isSameMarkerTypeVisible((I==null?void 0:I.smartSkipMetadata.markerKey)||"")):!0;if(d){var V,J;(U==null?0:(V=U.smartSkipMetadata)==null?0:(J=V.loggingData)==null?0:J.isCounterfactual)||(G(!1,U),t(N))}else Q||e()!==N||t(void 0)}};
_.DG(function(){var N=w().timelyActions;if(N){N=_.P(N);for(var Q=N.next();!Q.done;Q=N.next()){Q=_.C(Q.value,as);var I=void 0;(I=Q)!=null&&I.cueRangeId&&y.timelyActionsMap.set(Q.cueRangeId,n)}_.ZG(function(){y.timelyActionsMap.clear()})}});
return _.W("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.W(_.OF,{data:X},{timelyActionViewModel:function(N){return _.W(mNc,{data:N.data,maybeLogSmartSkipClientData:function(){G(!0,_.C(X(),as))}})}}))},"fj");_.zmc=function(q){_.VG.call(this);this.JSC$20250_watchApi=q;q=_.P(_.r4({},void 0,"pLDp2"));this.timelyActionsOverlay=q.next().value;this.setTimelyActionsOverlay=q.next().value;JkK(this)};
_.O(_.zmc,_.VG);var JkK=function(q){var w,u,y,e;_.F(function(t){if(t.nextAddress==1)return a0A(q),DNa(q),q.timelyActionsContainer=document.createElement("div"),_.H(t,q.JSC$20250_watchApi.playerApi,2);w=t.yieldResult;(y=(u=w).insertTimelyActionUi)==null||y.call(u,q.timelyActionsContainer);e=_.aX(q.timelyActionsContainer,function(){return _.W(AkB,{data:q.timelyActionsOverlay,playerApi:w})});
q.addOnDisposeCallback(e);_.HI(t)})},DNa=function(q){var w=q.JSC$20250_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a0A(q)});
q.addOnDisposeCallback(function(){q.JSC$20250_watchApi.unsubscribeByKey(w)})},a0A=function(q){var w=q.JSC$20250_watchApi.getWatchNextResponse();
if(w){var u,y;if(w=_.C((u=w.playerOverlays)==null?void 0:(y=u.playerOverlayRenderer)==null?void 0:y.timelyActionsOverlayViewModel,bEa)){var e;(e=q.setTimelyActionsOverlay)==null||e.call(q,w)}}};_.pcc=function(q){_.VG.call(this);this.JSC$20254_watchApi=q;Zk4(this)};
_.O(_.pcc,_.VG);var Zk4=function(q){var w,u;_.F(function(y){if(y.nextAddress==1)return _.H(y,q.JSC$20254_watchApi.playerApi,2);w=y.yieldResult;u=function(e){_.nx.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.C(e,_.xpA)},popupType:"TOAST"}})};
w.addEventListener("onYtShowToast",u);q.addOnDisposeCallback(function(){w.removeEventListener("onYtShowToast",u)});
_.HI(y)})};var $NH,YmK,vqh,bkx,ckH,Eqm,RmH,hmT,jUq;$NH=!1;_.gqV=function(q){_.VG.call(this);this.JSC$20257_watchApi=q;this.fullscreen=this.theater=!1;vqh(this);bkx(this);YmK(this)};
_.O(_.gqV,_.VG);YmK=function(q){var w,u,y;_.F(function(e){if(e.nextAddress==1)return _.H(e,q.JSC$20257_watchApi.playerApi,2);w=e.yieldResult;if(q.isDisposed())return e.return();u=q.JSC$20257_watchApi.getElement("CINEMATICS");if(!u)return e.return();q.JSC$20257_cinematicController=new _.yd(u,w);_.sN(q,q.JSC$20257_cinematicController);_.Ti6(q.JSC$20257_cinematicController);Eqm(q,_.GDy());y=q.JSC$20257_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(t){RmH(q,t)});
q.addOnDisposeCallback(function(){q.JSC$20257_watchApi.unsubscribeByKey(y)});
ckH(q);RmH(q,q.JSC$20257_cinematicController.isAllowed());_.SmB(q,q.fullscreen,q.theater);hmT(q);_.HI(e)})};
vqh=function(q){var w=q.JSC$20257_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ckH(q)});
q.addOnDisposeCallback(function(){q.JSC$20257_watchApi.unsubscribeByKey(w)})};
bkx=function(q){var w,u;_.F(function(y){if(y.nextAddress==1)return _.H(y,q.JSC$20257_watchApi.playerApi,2);w=y.yieldResult;u=function(e){Eqm(q,e)};
w.addEventListener("cinematicSettingsToggleChange",u);q.addOnDisposeCallback(function(){w.removeEventListener("cinematicSettingsToggleChange",u)});
_.HI(y)})};
ckH=function(q){var w=q.JSC$20257_watchApi.getWatchNextResponse(),u;w=_.C(w==null?void 0:(u=w.pageVisualEffects)==null?void 0:u[0],_.TA);var y;(y=q.JSC$20257_cinematicController)==null||_.d7j(y,w)};
Eqm=function(q,w){var u;(u=q.JSC$20257_cinematicController)==null||_.CJx(u,w);jUq(q)};
RmH=function(q,w){var u;_.F(function(y){if(y.nextAddress==1)return _.T("kevlar_watch_cinematics_invisible")&&(w=!1),_.H(y,q.JSC$20257_watchApi.playerApi,2);u=y.yieldResult;u.updateCinematicSettings(w);jUq(q);_.HI(y)})};
hmT=function(q){var w=_.UC();if(_.T("kevlar_measure_ambient_mode_idle")&&!w.getFlag(192)&&!$NH){$NH=!0;var u=_.mg(_.pi,function(){_.tG().resolve(_.jox).start(1E4)},5E3);
q.addOnDisposeCallback(function(){_.pi.cancelJob(u);_.tG().resolve(_.jox).stop()})}};
_.SmB=function(q,w,u){q.fullscreen=w;q.theater=u;var y;(y=q.JSC$20257_cinematicController)==null||y.setFullscreen(q.fullscreen,q.theater);if(_.T("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(q.theater||q.fullscreen){var e;(e=q.JSC$20257_cinematicController)==null||_.OWh(e)}else if((q=q.JSC$20257_cinematicController)!=null){var t;(t=q.currentCinematicEffect)==null||t.pause()}};
jUq=function(q){if(_.T("web_cinematic_theater_mode")||_.T("web_cinematic_fullscreen")){var w;q.JSC$20257_watchApi.getRoot().toggleCinematicsActive(!((w=q.JSC$20257_cinematicController)==null||!w.isEnabled()))}};_.KCa=function(q){_.VG.call(this);var w=this;this.JSC$20260_watchApi=q;this.commentsReady=!1;this.setCommentsJobId=0;q=_.se(_.Mt(),_.os,function(){l0m(w)});
this.addOnDisposeCallback(q);var u=this.JSC$20260_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){LCA(w)}),y=this.JSC$20260_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){LCA(w)});
this.addOnDisposeCallback(function(){w.JSC$20260_watchApi.unsubscribeByKey(u);w.JSC$20260_watchApi.unsubscribeByKey(y)});
var e=function(){_.T("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&MPA(w,"false")};
this.JSC$20260_watchApi.getRoot().addEventListener("yt-page-data-will-update",e);this.addOnDisposeCallback(function(){w.JSC$20260_watchApi.getRoot().removeEventListener("yt-page-data-will-update",e)});
LCA(this)};
_.O(_.KCa,_.VG);var LCA=function(q){q.commentsReady=!1;_.pi.cancelJob(q.setCommentsJobId);q.setCommentsJobId=_.mg(_.pi,function(){l0m(q)},1E3)},l0m=function(q){if(!q.commentsReady){_.D_("cmi");
_.pi.cancelJob(q.setCommentsJobId);var w,u,y,e,t=(w=q.JSC$20260_watchApi.getWatchNextResponse())==null?void 0:(u=w.contents)==null?void 0:(y=u.twoColumnWatchNextResults)==null?void 0:(e=y.results)==null?void 0:e.results.contents;w=void 0;if(t&&t.length)for(t=_.P(t),u=t.next();!u.done;u=t.next())if(u=u.value,e=y=void 0,((y=u)==null?void 0:(e=y.itemSectionRenderer)==null?void 0:e.sectionIdentifier)==="comment-item-section"){_.T("web_watch_provide_undefined_comments")?w=u.itemSectionRenderer:q.JSC$20260_watchApi.provideRenderingData("COMMENTS",
u.itemSectionRenderer);MPA(q,"true");break}_.T("web_watch_provide_undefined_comments")&&q.JSC$20260_watchApi.provideRenderingData("COMMENTS",w);q.commentsReady=!0;q.JSC$20260_watchApi.dispatchEvent("yt-watch-comments-ready")}},MPA=function(q,w){var u;
(u=q.JSC$20260_watchApi.getElement("COMMENTS"))==null||u.setAttribute("canScheduleJobs",w)};_.pu=function(q){_.VG.call(this);var w=this;this.JSC$20263_watchApi=q;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.T("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.T("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.T("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.Fc("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)B0H(this);
else{var u=this.JSC$20263_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){a7(w);D3(w)}),y=this.JSC$20263_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Z3(w);
D3(w)});
this.JSC$20263_watchApi.getRoot().is==="ytd-watch-grid"&&_.T("swatcheroo_pbs_load_grid")&&(xNh(this),qnx(this));this.addOnDisposeCallback(function(){w.JSC$20263_watchApi.unsubscribeByKey(u);w.JSC$20263_watchApi.unsubscribeByKey(y);_.pi.cancelJob(w.provideRichGridJobId)});
a7(this);Z3(this)}};
_.O(_.pu,_.VG);var B0H=function(q){var w=q.JSC$20263_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){q.providePlayerJobId=_.dE(_.pi,function(){a7(q);D3(q)},q.provideAllDataDelayMs)}),u=q.JSC$20263_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){q.provideWatchNextJobId=_.dE(_.pi,function(){Z3(q);
D3(q)},q.provideAllDataDelayMs)}),y=q.JSC$20263_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){q.provideWatchNextJobId=_.dE(_.pi,function(){Z3(q);
D3(q)},q.provideAllDataDelayMs)});
q.JSC$20263_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.mg(_.pi,function(){a7(q);Z3(q);D3(q)},100)});
q.JSC$20263_watchApi.addPageDisposeJob(function(){_.pi.cancelJob(q.provideWatchNextJobId);_.pi.cancelJob(q.providePlayerJobId)});
q.addOnDisposeCallback(function(){q.JSC$20263_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");q.JSC$20263_watchApi.unsubscribeByKey(w);q.JSC$20263_watchApi.unsubscribeByKey(u);q.JSC$20263_watchApi.unsubscribeByKey(y);_.pi.cancelJob(q.providePlayerJobId);_.pi.cancelJob(q.provideWatchNextJobId)});
a7(q);Z3(q)},a7=function(q){var w=q.JSC$20263_watchApi.getPlayerResponse(),u,y,e=(y=w==null?void 0:(u=w.playabilityStatus)==null?void 0:u.messageRenderers)!=null?y:[],t,X;
w=(X=w==null?void 0:(t=w.playabilityStatus)==null?void 0:t.messages)!=null?X:[];t=_.P(w);for(X=t.next();!X.done;X=t.next())e.push({alertRenderer:{text:_.jN(X.value),type:"WARNING"}});q.JSC$20263_watchApi.provideRenderingData("ALERTS",e)},Z3=function(q){var w=[],u,y,e,t=q.JSC$20263_watchApi.getWatchNextResponse(),X,G,n,N,Q=t==null?void 0:(X=t.contents)==null?void 0:(G=X.twoColumnWatchNextResults)==null?void 0:(n=G.results)==null?void 0:(N=n.results)==null?void 0:N.contents;
if(Q)for(X=_.P(Q),G=X.next();!G.done;G=X.next())if(G=G.value,G.videoPrimaryInfoRenderer)var I=G;else if(G.videoSecondaryInfoRenderer){var U=G;N=n=void 0;G=Object.assign({},(n=G.videoSecondaryInfoRenderer)==null?void 0:(N=n.metadataRowContainer)==null?void 0:N.metadataRowContainerRenderer);if(G.rows&&G.collapsedItemCount!==void 0){G.rows=G.rows.slice(0,G.collapsedItemCount).filter(function(hc){return!!hc.richMetadataRowRenderer});
G.collapsedItemCount=G.rows.length;var d={metadataRowContainerRenderer:G}}}else if(G.merchandiseShelfRenderer)var V=G;else if(G.ticketShelfRenderer)var J=G;else if(G.expandableMetadataRenderer)var a=G;else if(G.itemSectionRenderer)if(n=G.itemSectionRenderer.contents,N=void 0,q.directlyProvideComments&&((N=G.itemSectionRenderer)==null?void 0:N.sectionIdentifier)==="comment-item-section")_.D_("cmi"),q.JSC$20263_watchApi.provideRenderingData("COMMENTS",G.itemSectionRenderer);else if(n)for(G=_.P(n),n=
G.next();!n.done;n=G.next())if(n=n.value,n.commentsEntryPointHeaderRenderer)var b=n;else if(n.clarificationRenderer||n.infoPanelContainerRenderer||n.infoPanelContentRenderer||n.emergencyOneboxRenderer){w.push(n);var g=g||!!U}else n.limitedStateMessageRenderer?y=n:n.videoMetadataCarouselViewModel&&(e=n);if(_.T("web_watch_merch_in_sd_when_ticket_shelf_present")&&V&&J){var l=V;V=void 0}if(q.provideWatchNextSecondaryResults){var S,eH,x;q.JSC$20263_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
t==null?void 0:(S=t.contents)==null?void 0:(eH=S.twoColumnWatchNextResults)==null?void 0:(x=eH.secondaryResults)==null?void 0:x.secondaryResults)}if(q.JSC$20263_watchApi.getRoot().is==="ytd-watch-grid"){var P4,C7;q.JSC$20263_watchApi.provideRenderingData("LIVE_CHAT",t==null?void 0:(P4=t.contents)==null?void 0:(C7=P4.twoColumnWatchNextResults)==null?void 0:C7.conversationBar)}var mu,Os,YJ,ao;(S=t==null?void 0:(mu=t.contents)==null?void 0:(Os=mu.twoColumnWatchNextResults)==null?void 0:(YJ=Os.secondaryResults)==
null?void 0:(ao=YJ.secondaryResults)==null?void 0:ao.offerModule)&&(S.donationShelfRenderer||S.donationUnavailableRenderer)&&q.JSC$20263_watchApi.getRoot().is!=="ytd-watch-grid"&&(u=S);mu=q.JSC$20263_watchApi.getPlayerResponse();if(!mu||!_.tu6(mu.playabilityStatus,t==null?void 0:t.playerOverlays)){var bc;if(t==null?0:(bc=t.contents)==null?0:bc.singleColumnWatchNextResults){var Ro,K7;var gx=t==null?void 0:(Ro=t.contents.singleColumnWatchNextResults.results)==null?void 0:(K7=Ro.results)==null?void 0:
K7.contents}else{var dx,tc,Fa,eq;bc=!!(Q==null?0:(dx=Q[0])==null?0:(tc=dx.itemSectionRenderer)==null?0:(Fa=tc.contents)==null?0:(eq=Fa[0])==null?0:eq.backgroundPromoRenderer);var Hk,W3;dx=!!(t==null?0:(Hk=t.contents)==null?0:(W3=Hk.twoColumnWatchNextResults)==null?0:W3.secondaryResults);bc&&!dx&&(gx=Q)}}Q=w[0];Hk=w[1];g&&w.length===1&&(Hk=Q,Q=void 0);q.JSC$20263_watchApi.provideRenderingData("PRIMARY_INFO",I);q.JSC$20263_watchApi.provideRenderingData("SECONDARY_INFO",U);q.JSC$20263_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
b);q.JSC$20263_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",e);q.JSC$20263_watchApi.provideRenderingData("CLARIFICATION",Q);q.JSC$20263_watchApi.provideRenderingData("RICH_METADATA",d);q.JSC$20263_watchApi.provideRenderingData("MERCH_SHELF",V);_.T("web_watch_merch_in_sd_when_ticket_shelf_present")&&q.JSC$20263_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",l);q.JSC$20263_watchApi.provideRenderingData("TICKET_SHELF",J);q.JSC$20263_watchApi.provideRenderingData("LIMITED_STATE",y);q.JSC$20263_watchApi.getRoot().is!==
"ytd-watch-grid"&&q.JSC$20263_watchApi.provideRenderingData("DONATION_SHELF",u);q.JSC$20263_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",gx);q.JSC$20263_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",Hk);q.JSC$20263_watchApi.provideRenderingData("EXPANDABLE_METADATA",a);if(q.swatcherooProvideAllDataOnScheduledJob){var gV,Fl,C$,ZZ,EA,mj;I=t==null?void 0:(gV=t.contents)==null?void 0:(Fl=gV.twoColumnWatchNextResults)==null?void 0:(C$=Fl.secondaryResults)==null?void 0:(ZZ=C$.secondaryResults)==
null?void 0:(EA=ZZ.results)==null?void 0:(mj=EA[0])==null?void 0:mj.richGridRenderer;q.JSC$20263_watchApi.provideRenderingData("RICH_GRID_RENDERER",I)}};
_.pu.prototype.hasCompanionAds=function(q){var w,u;return(u=q==null?void 0:(w=q.adPlacements)==null?void 0:w.some(function(y){var e,t,X,G;return(y==null?void 0:(e=y.adPlacementRenderer)==null?void 0:(t=e.renderer)==null?void 0:t.actionCompanionAdRenderer)||(y==null?void 0:(X=y.adPlacementRenderer)==null?void 0:(G=X.renderer)==null?void 0:G.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?u:!1};
var D3=function(q){if(!_.T("swaterdoo_ps_wn_handle_ks")){q.swatcherooProvideAllDataOnScheduledJob||qnx(q,3E3);var w=q.JSC$20263_watchApi.getPlayerResponse(),u,y,e,t,X,G=(u=q.JSC$20263_watchApi.getWatchNextResponse())==null?void 0:(y=u.contents)==null?void 0:(e=y.twoColumnWatchNextResults)==null?void 0:(t=e.secondaryResults)==null?void 0:(X=t.secondaryResults)==null?void 0:X.offerModule;w=q.hasCompanionAds(w);var n,N;u=(G==null?void 0:(n=G.tvfilmOfferModuleRenderer)==null?void 0:n.clientShouldSuppressIfCompanionAdDisplayed)||
(G==null?void 0:(N=G.unlimitedOfferModuleRenderer)==null?void 0:N.suppressIfCompanionAds);n=w&&u;q.JSC$20263_watchApi.getRoot().is==="ytd-watch-grid"&&q.JSC$20263_watchApi.provideRenderingData("OFFER_MODULE",n?void 0:G)}},qnx=function(q,w){_.T("swatcheroo_pbs_load_grid")&&(q.provideRichGridJobId&&_.pi.cancelJob(q.provideRichGridJobId),q.provideRichGridJobId=_.dE(_.pi,function(){q.provideRichGridJobId=0;
var u,y,e,t,X,G,n,N=(u=q.JSC$20263_watchApi.getWatchNextResponse())==null?void 0:(y=u.contents)==null?void 0:(e=y.twoColumnWatchNextResults)==null?void 0:(t=e.secondaryResults)==null?void 0:(X=t.secondaryResults)==null?void 0:(G=X.results)==null?void 0:(n=G[0])==null?void 0:n.richGridRenderer;N&&q.JSC$20263_watchApi.provideRenderingData("RICH_GRID_RENDERER",N)},w))},xNh=function(q){var w,u;
_.F(function(y){if(y.nextAddress==1)return _.H(y,q.JSC$20263_watchApi.playerApi,2);w=y.yieldResult;u=function(){q.onPlaybackStart()};
w.addEventListener("onPlaybackStartExternal",u);q.addOnDisposeCallback(function(){w.removeEventListener("onPlaybackStartExternal",u)});
_.HI(y)})};
_.pu.prototype.onPlaybackStart=function(){qnx(this)};_.uYj=function(q){_.VG.call(this);var w=this;this.JSC$20273_watchApi=q;q.playerApi.then(function(u){w.player=u});
this.gestures=new _.Fv(this.JSC$20273_watchApi.getRoot(),q.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.dWB(_.Mt().getState())&&_.os(_.Mt().getState())<=0)if(_.OT(_.Mt().getState())){var u;(u=w.player)==null||u.toggleFullscreen()}else _.Pw(w.JSC$20273_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
wqj(this)};
_.O(_.uYj,_.VG);var wqj=function(q){var w=_.se(_.Mt(),_.OT,function(u){q.gestures&&q.gestures.update(u)});
q.addOnDisposeCallback(w);w=_.se(_.Mt(),_.os,function(u){q.gestures&&(u>0?q.gestures.detach():q.gestures.attach())});
q.addOnDisposeCallback(w)};_.eyH=function(q){_.VG.call(this);var w=this;this.JSC$20276_watchApi=q;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(q.subscribeToActiveChanged(function(u){w.onActiveChanged(u)}));
y46(this)};
_.O(_.eyH,_.VG);var kAc=function(q){if(_.T("swatcheroo_page_dispose_all_watch_data"))q.pageDisposalDataTypes=Object.values(O8B).filter(function(u){return u!=="PLAYLIST"});
else if(_.T("swatcheroo_page_dispose_rich_grid")){var w;(w=q.pageDisposalDataTypes)==null||w.push("RICH_GRID_RENDERER")}},y46=function(q){_.T("swatcheroo_enable_ghost_cards")&&(kAc(q),q.JSC$20276_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.pi.cancelJob(q.clearDataJobId);
q.clearDataJobId=0}),q.runPageDisposeJob=function(){var w=_.tG().resolve(_.KT).getDestinationPageType()==="watch";
q.clearDataJobId=_.dE(_.pi,q.runClearDataJob,w?0:_.Fc("web_watch_delay_page_dispose_ms",1E4))},q.runClearDataJob=function(){tS6(q)},q.runOnYtNavigateAwayFinish=function(){q.clearDataJobId&&(_.pi.cancelJob(q.clearDataJobId),q.clearDataJobId=0,tS6(q))},document.addEventListener("yt-navigate-finish",q.runOnYtNavigateAwayFinish),q.JSC$20276_watchApi.addPageDisposeJob(q.runPageDisposeJob),q.addOnDisposeCallback(function(){q.JSC$20276_watchApi.removePageDisposeJob(q.runPageDisposeJob);
q.JSC$20276_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",q.runOnYtNavigateAwayFinish)}))},tS6=function(q){q.pageDisposalDataTypes.forEach(function(w){q.JSC$20276_watchApi.provideRenderingData(w,void 0)});
q.clearDataJobId=0};
_.eyH.prototype.onActiveChanged=function(q){q&&((q=document.querySelector("#watch-page-skeleton"))&&_.UN(q),P0h(this),document.body.removeAttribute("no-y-overflow"),_.RX("IS_SHELL_LOAD")&&_.rQq())};
var P0h=function(q){_.F(function(w){if(w.nextAddress==1)return _.H(w,q.JSC$20276_watchApi.playerApi,2);_.LV();_.HI(w)})};var Xq6;Xq6=_.T("kevlar_watch_while_counterfactual")?0:.25;_.$v=function(q){_.VG.call(this);this.JSC$20279_watchApi=q;this.JSC$20279_watchWhileEnabled=_.T("kevlar_watch_while_v2");this.pipEnabled=_.T("web_enable_pip_on_miniplayer");FqB(this);GAT(this);n36(this)};
_.O(_.$v,_.VG);var FqB=function(q){q.JSC$20279_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){Heq(q)});
q.addOnDisposeCallback(function(){q.JSC$20279_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},GAT=function(q){var w,u;
_.F(function(y){if(y.nextAddress==1)return _.H(y,q.JSC$20279_watchApi.playerApi,2);w=y.yieldResult;u=function(){Heq(q)};
w.addEventListener("onCollapseMiniplayer",u);q.addOnDisposeCallback(function(){w.removeEventListener("onCollapseMiniplayer",u)});
_.HI(y)})},n36=function(q){var w=q.JSC$20279_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&w&&q.JSC$20279_watchWhileEnabled&&(q.playerIntersectionObserver=new IntersectionObserver(function(u){q.handleIntersect(u)},{threshold:[Xq6]}),q.playerIntersectionObserver.observe(w),q.addOnDisposeCallback(function(){var u;
(u=q.playerIntersectionObserver)==null||u.disconnect()}))},Heq=function(q){var w,u,y;
_.F(function(e){if(e.nextAddress==1){w=_.tG().resolve(_.KT);u=w.data;y=_.PSJ(u.response,u.playerResponse);_.Hh().miniplayerButtonActivation=!0;if(q.pipEnabled)return _.Hh().watchPipActivation=!0,e.jumpTo(2);_.tG().resolve(_.$X).collapse();return _.H(e,_.Hh().navigationFinishPromise,2)}if(e.nextAddress!=4)return _.Hh().currentEndpoint=y.watchEndpoint||null,_.H(e,_.tG().resolve(_.$X).activate(q.JSC$20279_watchApi.getElement("PLAYER"),y,u),4);_.Hh().userActivation=!0;_.HI(e)})};
_.$v.prototype.handleIntersect=function(q){Wqj(this,q[q.length-1])};
var Wqj=function(q,w){q.watchWhileJobId&&_.pi.cancelJob(q.watchWhileJobId);q.watchWhileJobId=_.pi.addLowPriorityJob(function(){var u,y;return _.F(function(e){if(e.nextAddress==1)return q.watchWhileJobId=void 0,u=_.tG().resolve(_.$X),w.intersectionRatio>Xq6?u.isMiniplayerActive()?_.H(e,u.deactivate(),0):e.jumpTo(0):(y=!u.isMiniplayerActive())?_.H(e,sL4(q),5):e.jumpTo(4);e.nextAddress!=4&&(y=e.yieldResult);if(!y)return e.jumpTo(0);_.Hh().watchWhileActivation=!0;return _.H(e,NUq(q),0)})},100)},sL4=function(q){return _.F(function(w){return w.nextAddress==
1?_.T("kevlar_watch_while_paused")?w.return(!0):_.H(w,q.isPlayerPlaying(),2):w.return(w.yieldResult)})};
_.$v.prototype.isPlayerPlaying=function(){var q=this,w;return _.F(function(u){if(u.nextAddress==1)return _.H(u,q.JSC$20279_watchApi.playerApi,2);w=u.yieldResult;return u.return(w.getPlayerStateObject().isPlaying)})};
var NUq=function(q){var w,u;return _.F(function(y){w=_.tG().resolve(_.KT).data;u=_.PSJ(w.response,w.playerResponse);_.Hh().currentEndpoint=u.watchEndpoint||null;return _.H(y,_.tG().resolve(_.$X).activate(q.JSC$20279_watchApi.getElement("PLAYER"),u,w),0)})};_.ie6=function(q){_.VG.call(this);this.JSC$20283_watchApi=q;QLx(this);I4T(this)};
_.O(_.ie6,_.VG);var I4T=function(q){var w,u;_.F(function(y){if(y.nextAddress==1)return _.H(y,q.JSC$20283_watchApi.playerApi,2);w=y.yieldResult;u=function(e){var t;e.sessionData&&e.sessionData.itct&&(t=e.sessionData.itct);var X=e.watchEndpoint;if(X&&e.sessionData&&e.sessionData.autonav)X=_.mnl(X,t);else{var G;X=_.uA(e.videoId,(G=e.listId)!=null?G:void 0,t)}t={endpoint:X};e.sessionData&&(t.tempData=e.sessionData);q.JSC$20283_watchApi.dispatchEvent("yt-navigate",t)};
w.addEventListener("onPlayVideo",u);q.addOnDisposeCallback(function(){w.removeEventListener("onPlayVideo",u)});
_.HI(y)})},QLx=function(q){var w=function(u){q.onYtNavigate(u)};
q.JSC$20283_watchApi.getRoot().addEventListener("yt-navigate",w);q.addOnDisposeCallback(function(){q.JSC$20283_watchApi.getRoot().removeEventListener("yt-navigate",w)})};
_.ie6.prototype.onYtNavigate=function(q){var w=this,u,y,e,t,X,G,n,N,Q;return _.F(function(I){if(I.nextAddress==1){if(!((u=q.detail)==null?0:(y=u.endpoint)==null?0:y.watchEndpoint))return I.return();e=q.detail.endpoint.watchEndpoint;t=w.JSC$20283_watchApi.getWatchNextResponse();G=_.C((X=t)==null?void 0:X.currentVideoEndpoint,_.LN);if(!G)return I.return();if(e.videoId!==G.videoId||e.playlistId&&e.playlistId!==G.playlistId||typeof e.startTimeSeconds!=="number")return I.jumpTo(0);q.stopPropagation();
(n=_.T("kevlar_watch_while_v2")&&!_.T("kevlar_watch_while_counterfactual"))&&_.tG().resolve(_.$X).isMiniplayerActive()||w.JSC$20283_watchApi.scrollWatchTo(0,!0);return _.H(I,w.JSC$20283_watchApi.playerApi,3)}N=I.yieldResult;Q=e.startTimeSeconds;N.seekTo(Q,void 0,void 0,void 0,84);N.wakeUpControls();Q<N.getDuration()&&N.playVideo();_.HI(I)})};_.UfV=function(q){_.VG.call(this);var w=this;this.JSC$20286_watchApi=q;var u=this.JSC$20286_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){r46(w)});
this.addOnDisposeCallback(function(){w.JSC$20286_watchApi.unsubscribeByKey(u)});
r46(this)};
_.O(_.UfV,_.VG);var r46=function(q){var w=q.JSC$20286_watchApi.getWatchNextResponse();if(w){var u,y=[].concat(_.Cm((u=w==null?void 0:w.engagementPanels)!=null?u:[]));y.unshift.apply(y,_.Cm(TUq(w)));q.JSC$20286_watchApi.provideRenderingData("ENGAGEMENT_PANELS",y)}},C0j=function(q){var w,u,y,e=(w=q.engagementPanels)==null?void 0:(u=w.find(function(d){var V;
return((V=d.engagementPanelSectionListRenderer)==null?void 0:V.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(y=u.engagementPanelSectionListRenderer.content)==null?void 0:y.structuredDescriptionContentRenderer,t;
if(_.C(e==null?void 0:(t=e.items)==null?void 0:t.find(function(d){return!!_.C(d,uL6)}),uL6))return!0;
var X,G,n,N;if(q=(((X=q.contents)==null?void 0:(G=X.twoColumnWatchNextResults)==null?void 0:(n=G.results)==null?void 0:(N=n.results)==null?void 0:N.contents)||[]).find(function(d){return d.videoPrimaryInfoRenderer})){var Q,I,U;
return(((Q=q.videoPrimaryInfoRenderer)==null?void 0:(I=Q.videoActions)==null?void 0:(U=I.menuRenderer)==null?void 0:U.flexibleItems)||[]).some(function(d){d=_.C(d,_.lrT);if(!d)return!1;var V,J;d=(V=d.topLevelButton)==null?void 0:(J=V.buttonViewModel)==null?void 0:J.onTap;if(!d)return!1;V=_.Zh(d);if(!V)return!1;var a;return((a=_.C(V,_.AI))==null?void 0:a.panelIdentifier)==="PAyouchat"})}return!1},TUq=function(q){var w=[];
if(!_.T("web_watch_inject_placeholder_fantasy_panel_killswitch")){var u,y,e,t=(u=q.engagementPanels)==null?void 0:(y=u.find(function(G){var n;return((n=G.engagementPanelSectionListRenderer)==null?void 0:n.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(e=y.engagementPanelSectionListRenderer.content)==null?void 0:e.structuredDescriptionContentRenderer,X;
_.C(t==null?void 0:(X=t.items)==null?void 0:X.find(function(G){return!!_.C(G,ada)}),ada)&&(u=_.LBH("PAsports_fantasy"),u.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",w.push(u))}C0j(q)&&(q=_.LBH("PAyouchat"),q.engagementPanelSectionListRenderer.targetId="PAyouchat",q.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",w.push(q));
return w};_.Oe6=function(q){_.VG.call(this);this.JSC$20289_watchApi=q;df6(this)};
_.O(_.Oe6,_.VG);var df6=function(q){q.JSC$20289_watchApi.registerActionHandler("yt-loop-command",function(w){o34(q,w)});
q.JSC$20289_watchApi.registerActionHandler("yt-repeat-chapter-command",function(w){VSm(q,w)});
q.addOnDisposeCallback(function(){q.JSC$20289_watchApi.unregisterActionHandler("yt-loop-command");q.JSC$20289_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},o34=function(q,w){var u;
_.F(function(y){if(y.nextAddress==1)return _.H(y,q.JSC$20289_watchApi.playerApi,2);u=y.yieldResult;_.C(w,ZEa).loop?(u.setLoopRange({startTimeMs:Number(_.C(w,ZEa).startTimeMs),endTimeMs:Number(_.C(w,ZEa).endTimeMs),postId:_.C(w,ZEa).postId,type:"clips"}),u.playVideo()):u.setLoopRange(null);_.HI(y)})},VSm=function(q,w){var u,y;
_.F(function(e){if(e.nextAddress==1)return _.H(e,q.JSC$20289_watchApi.playerApi,2);u=e.yieldResult;y=_.C(w,YB6).repeat;y==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(u.setLoopRange({startTimeMs:Number(_.C(w,YB6).startTimeMs),endTimeMs:Number(_.C(w,YB6).endTimeMs),type:"repeatChapter"}),u.playVideo()):y==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&u.setLoopRange(null);_.HI(e)})};_.mfT=function(q){_.VG.call(this);this.JSC$20294_watchApi=q;f46(this)};
_.O(_.mfT,_.VG);var f46=function(q){q.JSC$20294_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(w){A4j(q,w)});
q.addOnDisposeCallback(function(){q.JSC$20294_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},A4j=function(q,w){var u,y,e,t,X,G,n,N,Q,I,U;
_.F(function(d){if(d.nextAddress==1)return _.H(d,q.JSC$20294_watchApi.playerApi,2);u=d.yieldResult;if(t=(e=(y=_.C(w,g4H))==null?void 0:y.highlightedMenuItemKey)!=null?e:"")(G=(X=u).highlightSettingsMenuItem)==null||G.call(X,t);if(Q=(N=(n=_.C(w,g4H))==null?void 0:n.openMenuItemKey)!=null?N:"")(U=(I=u).openSettingsMenuItem)==null||U.call(I,Q);_.HI(d)})};var J4c=_.na("/youtube/app/watch/player_state","playerStateEntity");_.a4H=function(q){_.VG.call(this);this.JSC$20297_watchApi=q;zya(this)};
_.O(_.a4H,_.VG);var DfT=function(q){switch(q){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"}},zya=function(q){var w,u;
_.F(function(y){if(y.nextAddress==1)return _.H(y,q.JSC$20297_watchApi.playerApi,2);w=y.yieldResult;u=function(e){q.onPlayerStateChange(e)};
w.addEventListener("onStateChange",u);q.addOnDisposeCallback(function(){w.removeEventListener("onStateChange",u)});
_.HI(y)})};
_.a4H.prototype.onPlayerStateChange=function(q){var w=this,u,y;return _.F(function(e){if(e.nextAddress==1)return _.H(e,w.JSC$20297_watchApi.playerApi,2);u=e.yieldResult;y=u.getVideoData().video_id;_.cj().dispatch(_.IH("playerStateEntity",J4c,{key:J4c,playerState:DfT(q),videoId:y}));_.HI(e)})};_.ZeA=function(q){_.VG.call(this);var w=this;this.JSC$20301_watchApi=q;_.tG().resolve(_.z5).setPlayer(this.JSC$20301_watchApi.getElement("PLAYER"));q=this.JSC$20301_watchApi.subscribeToActiveChanged(function(u){w.onActiveChanged(u)});
this.addOnDisposeCallback(q)};
_.O(_.ZeA,_.VG);_.ZeA.prototype.onActiveChanged=function(q){var w=this,u=_.tG().resolve(_.z5),y=function(){pqh(w)};
q?(q=this.JSC$20301_watchApi.getElement("PLAYLIST_PANEL"))?(u.setPlaylistComponent(q),u.addEventListener("yt-playlist-data-updated",y),this.addOnDisposeCallback(function(){u.removeEventListener("yt-playlist-data-updated",y)}),pqh(this)):_.jZ(Error("jm")):(u.removeEventListener("yt-playlist-data-updated",y),u.cancelVideoSkip())};
var pqh=function(q){var w=_.tG().resolve(_.z5);q.JSC$20301_watchApi.provideRenderingData("PLAYLIST",w.getPlaylistData())};_.vL=function(q){_.VG.call(this);var w=this;this.JSC$20304_watchApi=q;this.onPageScroll=function(){w.scrollThrottle.fire();w.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.MI(this.onThrottledScroll,200,this);_.sN(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.MI(this.onMastheadThrottledScroll,50,this);_.sN(this,this.mastheadScrollThrottle);this.animation=new _.Vj(function(u){w.JSC$20304_watchApi.getRoot().setScrollTop(u)});
q=_.se(_.Mt(),_.OT,function(){$fx(w)});
this.addOnDisposeCallback(q);v3x(this);bec(this);this.onThrottledScroll()};
_.O(_.vL,_.VG);
var $fx=function(q){var w=q.JSC$20304_watchApi.getRoot();!q.pageScrollElement&&w.pageScrollElement?(q.pageScrollElement=w.pageScrollElement,w.pageScrollElement.addEventListener("scroll",q.onPageScroll),q.addOnDisposeCallback(function(){q.pageScrollElement&&q.pageScrollElement.removeEventListener("scroll",q.onPageScroll)})):q.pageScrollElement&&!w.pageScrollElement&&(q.pageScrollElement.removeEventListener("scroll",q.onPageScroll),q.pageScrollElement=void 0)},v3x=function(q){window.addEventListener("scroll",q.onPageScroll);
q.addOnDisposeCallback(function(){window.removeEventListener("scroll",q.onPageScroll)})},bec=function(q){q.JSC$20304_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(w){a:{var u;
if(u=q.JSC$20304_watchApi.getRoot().contains(w)&&!q.animation.isAnimating()){u=w.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var y,e,t=(w==null?void 0:(y=w.parentElement)==null?void 0:(e=y.parentElement)==null?void 0:e.id)==="fixed-secondary";u=!(u&&t)}if(u){if(_.T("kevlar_watch_scroll_manager_absolute_offset_killswitch"))y=w.offsetTop;else for(y=0,e=w;e!==null;)y+=e.offsetTop,y-=e.scrollTop,e=e.offsetParent;e=y;y=e-24;w=e+w.offsetHeight+24;e=q.JSC$20304_watchApi.getRoot().getPageScrollingElement();
u=q.JSC$20304_watchApi.getRoot().getScrollTop();t=u+e.clientHeight-56;if(y<u+56)w=y-56;else if(w>t)w-=e.clientHeight;else break a;q.scrollWatchTo(Math.max(0,w),!0)}}});
q.addOnDisposeCallback(function(){q.JSC$20304_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.vL.prototype.onThrottledScroll=function(){var q=_.Mt(),w=q.dispatch,u=this.JSC$20304_watchApi.getRoot().getScrollTop();w.call(q,_.tr({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:u}}))};
_.vL.prototype.onMastheadThrottledScroll=function(){this.JSC$20304_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20304_watchApi.getRoot().getScrollTop())};
_.vL.prototype.scrollWatchTo=function(q,w){(w===void 0?0:w)?this.animation.start(this.JSC$20304_watchApi.getRoot().getScrollTop(),Math.max(0,q),500):this.JSC$20304_watchApi.getRoot().setScrollTop(q)};_.E3h=function(q){_.VG.call(this);var w=this;this.JSC$20307_watchApi=q;var u=this.JSC$20307_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){YnB(w)}),y=this.JSC$20307_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){g3q(w)});
this.addOnDisposeCallback(function(){w.JSC$20307_watchApi.unsubscribeByKey(u);w.JSC$20307_watchApi.unsubscribeByKey(y)});
YnB(this);g3q(this)};
_.O(_.E3h,_.VG);
var YnB=function(q){var w,u,y,e=(y=(w=q.JSC$20307_watchApi.getPlayerResponse())==null?void 0:(u=w.videoDetails)==null?void 0:u.title)!=null?y:"";q.JSC$20307_watchApi.dispatchEvent("yt-update-title",e)},g3q=function(q){var w,u,y,e,t,X,G,n=(G=((X=(w=q.JSC$20307_watchApi.getWatchNextResponse())==null?void 0:(u=w.contents)==null?void 0:(y=u.twoColumnWatchNextResults)==null?void 0:(e=y.results)==null?void 0:(t=e.results)==null?void 0:t.contents)!=null?X:[]).find(function(N){return!!N.videoPrimaryInfoRenderer}))==null?
void 0:G.videoPrimaryInfoRenderer;
(w=_.lA(n==null?void 0:n.title))&&q.JSC$20307_watchApi.dispatchEvent("yt-update-title",w)};_.c4q=function(q){_.VG.call(this);this.JSC$20310_watchApi=q;Ryx(this)};
_.O(_.c4q,_.VG);var Ryx=function(q){var w,u;_.F(function(y){if(y.nextAddress==1)return _.H(y,q.JSC$20310_watchApi.playerApi,2);w=y.yieldResult;u=function(){q.onYpcContentRequest()};
w.addEventListener("onYpcContentRequest",u);q.addOnDisposeCallback(function(){w.removeEventListener("onYpcContentRequest",u)});
_.HI(y)})};
_.c4q.prototype.onYpcContentRequest=function(){var q,w,u,y,e,t=(q=this.JSC$20310_watchApi.getWatchNextResponse())==null?void 0:(w=q.contents)==null?void 0:(u=w.twoColumnWatchNextResults)==null?void 0:(y=u.secondaryResults)==null?void 0:(e=y.secondaryResults)==null?void 0:e.offerModule,X,G,n,N;q=(N=(n=(G=(X=t==null?void 0:t.episodeOfferModuleRenderer)!=null?X:t==null?void 0:t.movieOfferModuleRenderer)!=null?G:t==null?void 0:t.unlimitedOfferModuleRenderer)!=null?n:t==null?void 0:t.liveOfferModuleRenderer)!=
null?N:t==null?void 0:t.tvfilmOfferModuleRenderer;var Q,I,U;t=(U=t==null?void 0:(Q=t.tvfilmOfferModuleRenderer)==null?void 0:(I=Q.actionButtons)==null?void 0:I.length)!=null?U:0;I=Math.max(t-1,0);var d,V,J;Q=(J=q==null?void 0:(d=q.offerButton)==null?void 0:d.buttonRenderer)!=null?J:q==null?void 0:(V=q.actionButtons)==null?void 0:V[I].buttonRenderer;var a,b;(d=(b=(a=Q==null?void 0:Q.navigationEndpoint)!=null?a:Q==null?void 0:Q.serviceEndpoint)!=null?b:Q==null?void 0:Q.command)&&_.nx.instance.resolveCommand(d)};
}catch(e){_._DumpException(e)}
try{
var i4q,N_m,WLc;_.sXA=function(){var q=_.db.clone(H4h),w;return(new _.IA(function(u,y){q.onSuccess=function(e){_.A2j(e)?u(new WLc(e)):y(new _.SA("Request failed, status="+_.HG(e),"net.badstatus",e))};
q.onError=function(e){y(new _.SA("Unknown request error","net.unknown",e))};
q.onTimeout=function(e){y(new _.SA("Request timed out","net.timeout",e))};
w=_.I2("//googleads.g.doubleclick.net/pagead/id",q)})).thenCatch(function(u){if(u instanceof _.hK){var y;
(y=w)==null||y.abort()}return _.og(u)})};
_.QXT=function(q){a:{var w="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(w="EMBEDDED_PLAYER_MODE_PFL");var u=q.raw_embedded_player_response;if(!u&&(q=q.embedded_player_response))try{u=JSON.parse(q)}catch(e){break a}if(u)b:for(var y in N_m)if(N_m[y]==u.embeddedPlayerMode){w=N_m[y];break b}}return w==="EMBEDDED_PLAYER_MODE_PFL"};
_.IRa=function(){if(_.T("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.Lou())return Error("pf");var q=_.Et("PLAYER_VARS",{});if(_.db.get(q,"privembed",!1)=="1")return Error("qf");if(_.QXT(q))return Error("rf")};
i4q=function(q){switch(q){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:_.Xm(q,"unknown result type")}};
_.rPm=function(q,w,u){w=_.Lko[w];u={detected:q===0,source:w.eou,detectionResult:i4q(q),contentCpn:u};_.pn("biscottiBasedDetection",u);_.oz3.increment(w.eou,q);w.gtV!==void 0&&_.g_("CATSTAT",_.jNM(q,w))};
_.hs=function(q,w){var u={};u.key=q;u.value=w;return _.TSs().then(function(y){return new Promise(function(e,t){try{var X=y.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(u);X.onsuccess=function(){e()};
X.onerror=function(){t()}}catch(G){t(G)}})})};
_.T_K=function(){var q=_.Fc("user_engagement_experiments_rate_limit_ms"),w=UZK.get("last-user-engagement-exp-trigger-timestamp");return!w||(0,_.eW)()>=w+q?(UZK.set("last-user-engagement-exp-trigger-timestamp",(0,_.eW)()),!0):!1};
_.jA=function(q,w,u,y,e){w=w===void 0?null:w;u=u===void 0?null:u;y=y===void 0?null:y;e=e===void 0?null:e;q={youThereEventType:q};u&&(q.lactThresholdMs=u.lactThresholdMs,q.mediaPosSec=u.promptDelaySec,q.lactServerRequestMs=u.lactServerRequestMs,q.triggerReason=u.triggerReason);e!=null&&(q.renderingMediaPosSec=Math.round(e));w||(w=_.pN());w&&(q.clientScreenNonce=w);y&&(q.clientPlaybackNonce=y);_.pn("youThere",q)};
N_m={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"};WLc=function(q){this.xhr=q};
_.SA=function(q,w,u){_.qM.call(this,q+", errorCode="+w);this.errorCode=w;this.xhr=u;this.name="PromiseAjaxError"};
_.O(_.SA,_.qM);var H4h={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var UZK=new _.gr("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.lDj=function(q){return _.tr({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:q})};
}catch(e){_._DumpException(e)}
try{
var E9,w7c,yFV,evh,kBm,tGh,FiH,IpK,isV,rFh,PzT,X7T,uG4,WiV,Hsm,CzV;_.qaq=function(){var q=window.location.hash;q.charAt(0)==="#"&&(q=q.charAt(1)==="!"?q.substring(2):q.substring(1));return _.MZ(q)};
E9=function(q,w,u){var y;return _.F(function(e){if(e.nextAddress==1)return _.H(e,w(),2);y=e.yieldResult;u(y,q);_.HI(e)})};
w7c=function(){return _.F(function(q){return q.nextAddress==1?_.H(q,(_.IRa()!==void 0?_.og(Error("sf")):_.sXA()).then(function(){return 1},function(w){if(w.message==="Biscotti id is disabled")return 3;
_.Y8("Failed fetching bid");return 0}),2):q.return(q.yieldResult)})};
yFV=function(){var q=_.q_("ZXIjeWc4OWk2bmFzNHZneXQtaGF2ZW4tZW1iZWQtcGxheQ=="),w=_.q_("dW5mbnZtY2lmcmFtZSN2M29vMQ==");return document.querySelector(w+uG4+q)?0:1};
evh=function(){return _.zxu(_.Yu)};
kBm=function(){return _.aif()===0?0:_.Dqo()};
tGh=function(){return _.gY4(_.wd6([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"]]]))};
FiH=function(){for(var q=function(e){return _.q_(e)},w=[PzT,
X7T],u=2,y=0;y<w.length&&(u=_.gY4(_.wd6(w[y],q)),u!==0);y++);return u};
_.GB4=function(q){_.F(function(w){switch(w.nextAddress){case 1:return _.H(w,E9("b.f_",w7c,q),2);case 2:return _.H(w,E9("j.s_",_.C14,q),3);case 3:return _.H(w,E9("r.s_",_.rmf,q),4);case 4:return _.H(w,E9("e.h_",FiH,q),5);case 5:if(!_.T("ab_det_sc_inj")){w.jumpTo(6);break}return _.H(w,E9("s.i_",_.Am7,q),6);case 6:if(_.T("ab_deg_unex_thr")){w.jumpTo(8);break}return _.H(w,E9("a.o_",_.fic,q),8);case 8:if(_.T("ks_get_o_pp")){w.jumpTo(10);break}return _.H(w,E9("g.o_",_.V0H,q),10);case 10:if(_.T("ks_det_gpbl")){w.jumpTo(12);
break}return _.H(w,E9("p.i_",_.oYf,q),12);case 12:return _.H(w,E9("f.i_",_.XdJ,q),14);case 14:return _.H(w,E9("a.b_",_.Iiy,q),15);case 15:return _.H(w,E9("p.m_",_.nYo,q),16);case 16:if(!_.T("ab_det_el_h_v2")){w.jumpTo(17);break}return _.H(w,E9("n.h_",tGh,q),17);case 17:return _.H(w,E9("o.p_",evh,q),19);case 19:if(!_.T("ab_det_em_inj")){w.jumpTo(20);break}return _.H(w,E9("e.i_",yFV,q),20);case 20:if(_.T("ab_det_apm"))return _.H(w,E9("o.a_",kBm,q),0);w.jumpTo(0)}})};
_.nRh=function(q,w){q={videoId:q};w&&(q.playlistId=w);return q};
_.s_6=function(){if(_.Lou()){var q=_.Et("PLAYER_VARS",{});if(_.db.get(q,"privembed",!1)!="1"&&!_.QXT(q)){var w=function(){Hsm=!0;"google_ad_status"in window?_.g_("DCLKSTAT",1):_.g_("DCLKSTAT",2)};
try{_.EM("//static.doubleclick.net/instream/ad_status.js",w)}catch(u){}WiV.push(_.pi.addLowPriorityJob(function(){if(!(Hsm||"google_ad_status"in window)){try{_.gro("//static.doubleclick.net/instream/ad_status.js",w)}catch(u){}Hsm=!0;_.g_("DCLKSTAT",3)}},5E3))}}};
_.R7=function(q,w,u){u=u===void 0?!1:u;var y=Math.max(q.width,_.eTm);if(_.T("kevlar_watch_feed_big_thumbs")&&q.width>=1550-_.fl()&&q.height>=800)y-=_.GO4;else if(q.width>=_.pb){var e=_.kO6+_.ty6+_.Zk;_.T("kevlar_watch_feed_big_thumbs")&&(e=_.Fym);y-=e}else y-=_.kO6;y=Math.min(y,_.PFm);e=240;u&&(e=380);w<.5624||(!_.T("kevlar_watch_flexy_disable_small_window_sizing")&&(q.height<630&&q.width>=657||q.height>=630&&q.width>=_.pb&&q.width<1327)?e=360:!_.T("kevlar_watch_flexy_disable_large_window_sizing")&&
q.height>=630&&q.width>=1327&&(e=480));var t=Math.min(y*w,q.height-(56+_.yCm+_.XZj));t=Math.max(t,e);w<1?y=t/w:q.width>=_.pb&&(y=_.R7(q,.5625,u).width);return new _.FO(Math.round(y),Math.round(t))};
_.Nzc=function(q){var w=0;q.indexOf("h")!=-1&&(q=q.split("h"),w=q[0]*60*60,q=q[1]);q.indexOf("m")!=-1&&(q=q.split("m"),w=q[0]*60+w,q=q[1]);q.indexOf("s")!=-1?(q=q.split("s"),w=q[0]*1+w):w=q*1+w;return w};
_.Q_a=function(){_.Fc("service_worker_push_logged_out_prompt_watches")!=-1&&_.ld("WatchCount").then(function(q){q>=100||_.hs("WatchCount",q+1)})};
IpK=function(q){var w=q.externalVideoId||"";return w?(_.T("webfe_watch_shorts_canonical_url_fix")||_.Et("MWEB_ALLOW_SHORTS_CANONICAL_URL_FIX"))&&q.isShortsEligible?"https://www.youtube.com/shorts/"+w:"https://www.youtube.com/watch?v="+w:""};
isV=function(q){var w=[];q.viewCount&&w.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:q.viewCount});q.likeCount&&w.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:q.likeCount});return w};
rFh=function(q){var w,u,y={"@context":"https://schema.org","@type":"VideoObject",description:_.lA(q.description),duration:"PT"+(q.lengthSeconds||"0")+"S",embedUrl:q.embed?q.embed.iframeUrl:"",name:_.lA(q.title),thumbnailUrl:((w=q.thumbnail)==null?void 0:(u=w.thumbnails)==null?void 0:u.map(function(Q){return Q&&Q.url||""}))||[],
uploadDate:q.publishDate};_.T("mweb_video_schema_id_killswitch")||(y["@id"]=IpK(q));w=isV(q);w.length&&(y.interactionStatistic=w);q.category&&(y.genre=q.category);q.ownerChannelName&&(y.author=q.ownerChannelName);q.liveBroadcastDetails&&(y.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:q.liveBroadcastDetails.startTimestamp,endDate:q.liveBroadcastDetails.endTimestamp}]);if(q.learningResource){q=q.learningResource;y["@type"]=["VideoObject","LearningResource"];var e;if((e=q.learningResourceType)==
null?0:e.length)y.learningResourceType=q.learningResourceType[0];var t;if((t=q.educationalAlignment)==null?0:t.length)y.educationalAlignment={"@type":"AlignmentObject",targetName:q.educationalAlignment[0]};var X;if((X=q.educationalLevel)==null?0:X.length){e=q.educationalLevel[0];var G;if((G=q.educationalLevelCountry)==null?0:G.length)e+=" ("+q.educationalLevelCountry+")";y.educationalLevel=e}var n,N;if(((n=q.learningResourceType)==null?0:n.length)&&q.learningResourceType[0]==="Problem walkthrough"&&
((N=q.problemDescriptions)==null?0:N.length))for(y.hasPart=[],G=_.P(q.problemDescriptions),n=G.next();!n.done;n=G.next())e=n.value,n=e.problemDescriptionText,N=e.startOffset,e=e.url,n&&N!==void 0&&e&&y.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:n,text:n,startOffset:N,url:e})}return y};
_.Ug6=function(q){return _.tr({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:q}})};
PzT=[["djRhcHJpbWFyeSNyZ3lwczRkc3A=",null],[null,["c2UtcmVzdWx0cy1yZW5kZXJlciNsZTljOHl5YzJuZHB5dGQtdHdvLWNvbHVtbi1icm93","cXByNzg1bTZicWdzdHlsZS1zY29wZSN2"]],["Y3kxcjYycms3NW5tYXN0aGVhZC1hZCN0",["I2hiOHc1ZDdjandqc3l0ZC1yaWNoLWdyaWQtcmVuZGVyZXI="]],[null,["I3FwNHdzNWRyM3U0a3l0ZC1yaWNoLWdyaWQtcmVuZGVyZXI=","aXRhem42aTBnaXJzdHlsZS1zY29wZSM4"]],[null,["M296YjFkN2R3eXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciNjZw==","czd0azkxZmowcjhzdHlsZS1zY29wZSNh"]],[null,["ZXJlciNpY3RwejJiYzM0ZWt5dGQtYWQtc2xvdC1yZW5k"]]];
X7T=[["cyM3dzczcHMxMm52bHBwbGF5ZXItYWQ=",null]];uG4="#";WiV=[];Hsm=!1;_.Tzc=["engagement-panel-ads"];CzV=new _.M("updateSentimentBarStateCommand");_.dgA=new _.M("showSurveyCommand");_.cL=new _.M("changeMarkersVisibilityCommand");var oRh,VGm,JFV,AFV,mgm,Se;_.Osx=function(q,w){this.playerProvider_=q;this.actionSenderElement_=w;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.Osx.prototype.reset=function(){oRh(this);this.isUserPredictedAbsent_=!1};
oRh=function(q,w){!q.youThereData_||q.showWarningJob_||w!==void 0&&w||(_.jA("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.pN(),q.youThereData_,q.clientPlaybackNonce_),_.$8());_.pi.cancelJob(q.showWarningJob_);q.showWarningJob_=0;_.pi.cancelJob(q.showBlockingWarningJob_);q.showBlockingWarningJob_=0;_.pi.cancelJob(q.pausePlaybackJob_);q.pausePlaybackJob_=0;q.youThereData_=null;q.clientPlaybackNonce_=void 0;q.inYouThereFlow_=!1};
_.fpx=function(q,w){var u,y,e;_.F(function(t){if(t.nextAddress==1)return q.reset(),_.H(t,q.playerProvider_().getPlayerPromise(),2);u=t.yieldResult;q.clientPlaybackNonce_=u.getVideoData().cpn;q.youThereData_=w.configData.youThereData;if(!q.youThereData_)return t.return();if(q.youThereData_.triggerReason&&q.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.T_K())return _.jA("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.pN(),q.youThereData_,q.clientPlaybackNonce_),t.return();y=q.youThereData_.promptDelaySec;
e=u.getCurrentTime();q.showWarningJob_=_.pi.addLowPriorityJob(function(){return _.F(function(X){q.showWarningJob_=0;return _.H(X,VGm(q),0)})},Math.max(y-e,0)*1E3);
_.HI(t)})};
VGm=function(q){var w,u,y,e,t,X;return _.F(function(G){if(G.nextAddress==1)return _.H(G,q.playerProvider_().getPlayerPromise(),2);if(G.nextAddress!=3)return w=G.yieldResult,u=w.getCurrentTime(),_.H(G,mgm(q),3);y=G.yieldResult;if(!y||!q.youThereData_)return G.return();if(_.T("check_user_lact_at_prompt_shown_time_on_web")&&(e=parseInt(q.youThereData_.lactThresholdMs,10),_.Pm()<e))return _.jA("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.pN(),q.youThereData_,q.clientPlaybackNonce_),G.return();if(q.youThereData_.playbackPauseDelayMs<=
0)return AFV(q),G.return();!_.T("external_fullscreen")&&(t=_.uy())&&(q.ignoreFullscreenExitUserActivity_=!0,_.pi.addLowPriorityJob(function(){q.ignoreFullscreenExitUserActivity_=!1},2E3),_.yY(t));
q.youThereData_.showToastWarningPrompt&&(Se(q,q.youThereData_.showWarningActions),q.inYouThereFlow_=!0,_.jA("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.pN(),q.youThereData_,q.clientPlaybackNonce_,u),_.jA("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.pN(),q.youThereData_,q.clientPlaybackNonce_,u));X=0;q.youThereData_.blockingPromptDelayMs&&(X=q.youThereData_.blockingPromptDelayMs);q.showBlockingWarningJob_=_.pi.addLowPriorityJob(function(){return _.F(function(n){q.showBlockingWarningJob_=0;return _.H(n,
JFV(q),0)})},X);
_.HI(G)})};
JFV=function(q){var w,u,y;return _.F(function(e){if(e.nextAddress==1)return _.H(e,mgm(q),2);w=e.yieldResult;if(!q.youThereData_)return e.return();w&&(q.youThereData_.showBlockingWarningAction&&(_.jA("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.pN(),q.youThereData_,q.clientPlaybackNonce_),(u=_.C(q.youThereData_.showBlockingWarningAction,_.Ww))?Se(q,u.commands):Se(q,[q.youThereData_.showBlockingWarningAction]),q.inYouThereFlow_=!0),y=q.youThereData_.playbackPauseDelayMs,q.pausePlaybackJob_=
_.pi.addLowPriorityJob(function(){return _.F(function(t){q.pausePlaybackJob_=0;return _.H(t,AFV(q),0)})},y));
_.HI(e)})};
AFV=function(q){var w;return _.F(function(u){if(u.nextAddress==1)return _.H(u,mgm(q),2);w=u.yieldResult;if(!q.youThereData_)return u.return();w&&(_.jA("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.pN(),q.youThereData_,q.clientPlaybackNonce_),Se(q,q.youThereData_.showPausedActions),q.inYouThereFlow_=!0);_.HI(u)})};
_.Osx.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var q=_.C(this.youThereData_.userActiveDuringFlowAction,_.Ww);q?Se(this,q.commands):Se(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.jA("YOU_THERE_EVENT_TYPE_LACT_RESET",_.pN(),this.youThereData_,this.clientPlaybackNonce_),_.$8());oRh(this,!0)}_.zv6(this,!1)};
_.apj=function(q){_.jA("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.pN(),q.youThereData_,q.clientPlaybackNonce_)};
mgm=function(q){var w,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,q.playerProvider_().getPlayerPromise(),2);w=y.yieldResult;u=w.getPlayerState();return y.return(u==-1||u==1||u==3)})};
_.zv6=function(q,w){var u;_.F(function(y){if(y.nextAddress==1){if(q.isUserPredictedAbsent_==w)return y.jumpTo(0);q.isUserPredictedAbsent_=w;return _.H(y,q.playerProvider_().getPlayerPromise(),3)}u=y.yieldResult;u.setUserEngagement(w);w&&_.jA("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.pN(),q.youThereData_,q.clientPlaybackNonce_);_.HI(y)})};
Se=function(q,w){if(_.T("handle_service_request_actions")||_.T("kevlar_youthere_service_endpoint_actions_killswitch"))_.nq(q.actionSenderElement_,w,q.actionSenderElement_);else{w=_.P(w);for(var u=w.next();!u.done;u=w.next())u=u.value,u.commandMetadata&&u.commandMetadata.webCommandMetadata&&u.commandMetadata.webCommandMetadata.sendPost?_.GM(q.actionSenderElement_,[u]):_.nq(q.actionSenderElement_,[u],q.actionSenderElement_)}};var DgK;var Zsc;var hf=function(){var q=_.Y.apply(this,arguments)||this;q.systemIcons=_.T("kevlar_system_icons");q.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return q};
_.O(hf,_.Y);hf.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var q=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(q=this.data.percentIfLiked||0,this.activated=!0):(q=this.data.percentIfIndifferent||0,this.activated=!1);_.A(this.hostElement).querySelector("#like-bar").style.width=q+"%"}};
hf.prototype.handleUpdateSentimentBarStateCommand=function(q){this.data&&this.set("data.likeStatus",_.C(q,CzV).likeStatus)};
hf.prototype.observeLikeStatus=hf.prototype.observeLikeStatus;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],hf.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],hf.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],hf.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],hf.prototype,"activated",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],hf.prototype,"systemIcons",void 0);_.c([_.nL("data.likeStatus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hf.prototype,"observeLikeStatus",null);hf=_.c([_.E({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],hf);
_.R(hf,"ytd-sentiment-bar-renderer",function(){if(Zsc!==void 0)return Zsc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Zsc=q},{mode:1});var p76;var je=function(){var q=_.Y.apply(this,arguments)||this;q.small=!0;return q};
_.O(je,_.Y);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],je.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],je.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],je.prototype,"small",void 0);je=_.c([_.E({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],je);
_.R(je,"ytd-video-view-count-renderer",function(){if(p76!==void 0)return p76;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return p76=q},{mode:_.kB("kevlar_poly_si_batch_j080")?1:2});var lC=function(){var q=_.Y.apply(this,arguments)||this;q.infoFormattedStrings=[];q.wrapVideoActions=_.T("kevar_watch_wrap_video_actions");q.hideSentimentBar=_.T("kevlar_watch_hide_sentiment_bar");q.actionMap={};return q};
_.O(lC,_.Y);_.k=lC.prototype;_.k.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.T("web_modern_buttons"),forceIconButton:!_.T("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.k.dataChanged=function(){_.T("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.k.computeInfoFormattedStrings=function(q){if(!q)return[];var w=[];q.dateText&&w.push(q.dateText);q.stationName&&w.push(q.stationName);q.rating&&w.push(q.rating);q.startEndTimeTemplate&&q.startTimeUtcMillis&&q.endTimeUtcMillis&&w.push(_.jN(_.Cgh(_.lA(q.startEndTimeTemplate),Number(q.startTimeUtcMillis),Number(q.endTimeUtcMillis))));q.upNextProgramText&&w.push(q.upNextProgramText);return w};
_.k.scheduleInitialUpdatedMetadataRequest=function(){var q,w=(q=this.data)==null?void 0:q.updatedMetadataEndpoint;if(w){var u;q=Number((u=_.C(w,_.msk))==null?void 0:u.initialDelayMs);u=isNaN(q)?250:q;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),u)}};
_.k.setSentimentBarWidth=function(){var q=this;_.KJ(this,function(){var w=_.A(q.hostElement).querySelector("ytd-menu-renderer");if(w){w=w.topLevelButtons;for(var u=0,y=0;y<w.length;y++){var e=w[y],t=q.get("toggleButtonSupportedData.toggleButtonIdData.id",e.data);if(t==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||t==="TOGGLE_BUTTON_ID_TYPE_LIKE")u+=e.clientWidth+8;else break}u&&(q.sentiment.style.width=u-8+" px")}})};
_.k.fetchUpdatedMetadata=function(q){var w;q&&(w={continuation:q});var u;(q=(u=this.data)==null?void 0:u.updatedMetadataEndpoint)&&_.tG().resolve(_.PG).resolveCommand(q,{form:Object.assign({},w,{element:this.hostElement})})};
_.k.onYtServiceRequestSent=function(q,w){w.endpoint&&_.C(w.endpoint,_.Ss)&&(this.hasUpdateSentimentBarStateCommands()&&!_.T("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.C(w.endpoint,_.Ss).status),this.setSentimentBarWidth())};
_.k.hasUpdateSentimentBarStateCommands=function(){var q,w,u,y,e=(y=(q=this.data)==null?void 0:(w=q.videoActions)==null?void 0:(u=w.menuRenderer)==null?void 0:u.topLevelButtons)!=null?y:[];q=_.P(e);for(w=q.next();!w.done;w=q.next()){w=w.value;e=y=u=void 0;var t=(u=w.toggleButtonRenderer)==null?void 0:(y=u.toggleButtonSupportedData)==null?void 0:(e=y.toggleButtonIdData)==null?void 0:e.id;if(t==="TOGGLE_BUTTON_ID_TYPE_LIKE"||t==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){y=u=void 0;w=(y=_.C((u=w.toggleButtonRenderer)==
null?void 0:u.defaultServiceEndpoint,_.Ww))==null?void 0:y.commands;if(!w)break;w=_.P(w);for(u=w.next();!u.done;u=w.next())if(_.C(u.value,CzV))return!0}}return!1};
_.k.onYtServiceRequestCompleted=function(q,w){var u;(q=(u=w.data)==null?void 0:u.loggingDirectives)&&_.Tey(_.Qz(),q);this.get("continuation.timedContinuationData",w.data)&&this.data&&this.data.updatedMetadataEndpoint&&(w=w.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,w.continuation),w.timeoutMs))};
_.k.computeHasDateText=function(q){return!!q&&!!q.dateText};
_.x$.Object.defineProperties(lC.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var q,w,u,y;return!((y=(q=this.data)==null?void 0:(w=q.videoActions)==null?void 0:(u=w.menuRenderer)==null?void 0:u.flexibleItems)==null||!y.length)}}});
lC.prototype.onYtServiceRequestCompleted=lC.prototype.onYtServiceRequestCompleted;lC.prototype.onYtServiceRequestSent=lC.prototype.onYtServiceRequestSent;lC.prototype.dataChanged=lC.prototype.dataChanged;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],lC.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],lC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.gd.YtTaskEmitterBehavior),_.h("design:type",Object)],lC.prototype,"ytTaskEmitterBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],lC.prototype,"data",void 0);_.c([_.v({computed:"computeInfoFormattedStrings(data)"}),_.h("design:type",Array)],lC.prototype,"infoFormattedStrings",void 0);
_.c([_.v({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],lC.prototype,"hasDateText",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],lC.prototype,"wrapVideoActions",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],lC.prototype,"hideSentimentBar",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],lC.prototype,"flexMenuEnabled",null);
_.c([_.Wj("#sentiment"),_.h("design:type",Object)],lC.prototype,"sentiment",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lC.prototype,"dataChanged",null);_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],lC.prototype,"onYtServiceRequestSent",null);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],lC.prototype,"onYtServiceRequestCompleted",null);
_.R(lC,"ytd-video-primary-info-renderer",function(){if(DgK===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);DgK=q}q=DgK;return q},{mode:1});var $gK;var Lu=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return q};
_.O(Lu,_.Y);_.k=Lu.prototype;_.k.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"}}}};
_.k.dataChanged=function(){var q;this.descriptionToggled=!((q=this.data)==null||!q.defaultExpanded);var w;this.collapsed=this.descriptionAlwaysCollapsed||!((w=this.data)==null?0:w.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.oV(110509);this.showLessClientVe=_.oV(110510);q=_.pN();w=_.ZB();q&&w&&_.RD(q,w,[this.showMoreClientVe,this.showLessClientVe])};
_.k.onYtExpanderMoreTapped=function(){var q,w=(q=this.data)==null?void 0:q.showMoreCommand;w&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(w);(q=_.pN())&&this.showMoreClientVe&&_.jB(q,this.showMoreClientVe)};
_.k.onYtExpanderLessTapped=function(){var q=_.pN();q&&this.showLessClientVe&&_.jB(q,this.showLessClientVe);var w;(q=(w=this.data)==null?void 0:w.showLessCommand)&&this.componentBehavior.resolveCommand(q)};
_.k.handleUpdateDateTextAction=function(q){this.data&&this.data.dateText&&this.set("data.dateText",_.C(q,_.Kd6).dateText)};
_.k.handleUpdateDescriptionAction=function(q){if(q=_.C(q,_.iGF))q.isEmpty||!q.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.JB(q.description)):this.set("data.description",q.description)};
_.k.onYtChangeEngagementPanelVisibilityAction=function(q){if(_.T("web_structured_description_show_more")||_.T("web_engagement_panel_open_description")){var w,u=(w=_.C(q,_.XSa))==null?void 0:w.targetId,y;q=((y=_.C(q,_.XSa))==null?void 0:y.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";u==="engagement-panel-structured-description"&&q&&(this.descriptionToggled=!0)}};
_.k.updateCollapsedFromBinding=function(q){this.collapsed=q.detail.value};
_.k.updateDescriptionToggledFromBinding=function(q){this.descriptionToggled=q.detail.value};
_.k.updateCanCollapseFromBinding=function(q){this.canCollapse=q.detail.value};
_.x$.Object.defineProperties(Lu.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var q,w,u=(q=this.data)==null?void 0:(w=q.metadataRowContainer)==null?void 0:w.metadataRowContainerRenderer;return!!u&&!!u.rows&&u.rows.length>u.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.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}}});
Lu.prototype.onYtExpanderLessTapped=Lu.prototype.onYtExpanderLessTapped;Lu.prototype.onYtExpanderMoreTapped=Lu.prototype.onYtExpanderMoreTapped;Lu.prototype.dataChanged=Lu.prototype.dataChanged;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Lu.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Lu.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Lu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Lu.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Lu.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],Lu.prototype,"collapsed",void 0);_.c([_.v(),_.h("design:type",Boolean)],Lu.prototype,"descriptionToggled",void 0);
_.c([_.v(),_.h("design:type",Boolean)],Lu.prototype,"canCollapse",void 0);_.c([_.v(),_.h("design:type",Object)],Lu.prototype,"subscribeButtonData",void 0);_.c([_.v(),_.h("design:type",Number)],Lu.prototype,"descriptionCollapsedHeight",void 0);_.c([_.v(),_.h("design:type",Object)],Lu.prototype,"structuredDescriptionContentRenderer",void 0);_.c([_.v({value:function(){return _.T("web_watch_description_always_collapsed")}}),
_.h("design:type",Boolean)],Lu.prototype,"descriptionAlwaysCollapsed",void 0);_.c([_.Wj("#description"),_.h("design:type",HTMLDivElement)],Lu.prototype,"description",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lu.prototype,"dataChanged",null);_.c([_.Gm("yt-expander-more-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lu.prototype,"onYtExpanderMoreTapped",null);
_.c([_.Gm("yt-expander-less-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lu.prototype,"onYtExpanderLessTapped",null);_.c([_.Z("data.metadataRowContainer"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Lu.prototype,"metadataCollapsible",null);_.c([_.Z("data","structuredDescriptionContentRenderer"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Lu.prototype,"hasInlineStructuredDescription",null);
_.c([_.Z("data.attributedDescription"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Lu.prototype,"hasAttributedDescription",null);_.c([_.Z("hasInlineStructuredDescription","collapsed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Lu.prototype,"loadStructuredDescription",null);_.c([_.Z("data","structuredDescriptionContentRenderer","collapsed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Lu.prototype,"showInlineStructuredDescription",null);
_.c([_.Z("data","hasInlineStructuredDescription","metadataCollapsible"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Lu.prototype,"descriptionAlwaysCollapsible",null);
_.R(Lu,"ytd-video-secondary-info-renderer",function(){if($gK===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);$gK=q}q=$gK;return q},{mode:2});var vRA;var Mv=function(){return _.Y.apply(this,arguments)||this};
_.O(Mv,_.Y);Mv.prototype.configureRendererStamper=function(){return{"data.scrollUpButton":{id:"scroll-up",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.T("web_modern_buttons"),forceIconButton:!_.T("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Mv.prototype.activate=function(q){q.appendTo(this.player);q.getPlayerPromise().then(function(w){w.setMinimized(!0)});
this.active=!0};
Mv.prototype.deactivate=function(){var q=this.player.firstElementChild;q.getPlayerPromise().then(function(w){w.setMinimized(!1)});
this.active=!1;return q};
Mv.prototype.onScrollUpTap=function(){var q=_.tG().resolve(_.KT).getCurrentPage();q&&q.setScrollTop(0)};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Mv.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Mv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Mv.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Mv.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Mv.prototype,"active",void 0);
_.c([_.v({reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.h("design:type",Boolean)],Mv.prototype,"darkLaunch",void 0);_.c([_.Wj("#player"),_.h("design:type",HTMLDivElement)],Mv.prototype,"player",void 0);Mv=_.c([_.E({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],Mv);
_.R(Mv,"ytd-miniplayer-bar-renderer",function(){if(vRA!==void 0)return vRA;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return vRA=q},{mode:1});_.q9(_.LL(function(q){var w=_.Bm();_.DG(function(){var u;if(u=JSON)u=rFh(q.data()),u=_.pj(JSON.stringify(u).replace(/</g,"\\u003C"));var y=q.data(),e=_.lA(y.title).trim().length===0,t=!y.publishDate||y.publishDate.trim().length===0,X,G,n,N,Q=!((X=y.thumbnail)==null?0:(G=X.thumbnails)==null?0:G.length)||!((n=y.thumbnail)==null?0:n.thumbnails[0].url)||((N=y.thumbnail)==null?void 0:N.thumbnails[0].url.trim().length)===0;w.value&&u&&!(e||t||Q)&&_.vs(w.value,u)});
return _.W("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.W("script",{el:w,type:"application/ld+json"}))},"gj"),"player-microformat-renderer",{props:{data:_.xB}});
}catch(e){_._DumpException(e)}
try{
var Kqc;_.SnH=function(q){return q.watch.watchWindowSize};
_.hyx=function(q){return _.tr({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:q}})};
Kqc=function(q){_.VG.call(this);var w=this;this.JSC$20314_watchApi=q;q=_.se(_.Mt(),_.E5H,function(){jLH(w)});
this.addOnDisposeCallback(q);q=_.se(_.Mt(),_.SnH,function(){jLH(w)});
this.addOnDisposeCallback(q);l4H(this);LqK(this);MSB()};
_.O(Kqc,_.VG);var l4H=function(q){var w=function(y){_.Mt().dispatch(_.QbA(y.matches))},u=window.matchMedia("(max-width: "+(999+_.fl())+"px)");
u.addListener(w);q.addOnDisposeCallback(function(){u.removeListener(w)});
w(u)},LqK=function(q){q.JSC$20314_watchApi.registerActionHandler("yt-window-resized",function(){MSB()});
q.addOnDisposeCallback(function(){q.JSC$20314_watchApi.unregisterActionHandler("yt-window-resized")})},MSB=function(){var q=_.UP();
_.Mt().dispatch(_.tr({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:q.width,height:q.height}}}))},jLH=function(q){var w;
_.F(function(u){if(u.nextAddress==1)return _.H(u,q.JSC$20314_watchApi.playerApi,2);w=u.yieldResult;w.setSize(NaN,NaN);_.HI(u)})};_.bC=function(q){_.L2.call(this);var w=this;this.rootElement=q;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return w.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(u){w.initOrDisposeActiveModules(u)}));
this.onAttached()};
_.O(_.bC,_.L2);_.k=_.bC.prototype;_.k.getRoot=function(){return this.rootElement};
_.k.getElement=function(q){return this.rootElement.getElement(q)};
_.k.setPlayerResponse=function(q){this.playerResponse=q;this.publish("PLAYER_RESPONSE_UPDATED",q)};
_.k.getPlayerResponse=function(){return this.playerResponse};
_.k.setWatchNextResponse=function(q){this.watchNextResponse===q?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=q,this.publish("WATCH_NEXT_RESPONSE_UPDATED",q))};
_.k.getWatchNextResponse=function(){return this.watchNextResponse};
_.k.registerActionHandler=function(q,w){var u=this;if(_.T("web_watch_controller_reg_multiple_handlers_killswitch")){var y={};_.Ln(_.lD.getInstance(),(y[q]=w,y),this.getRoot())}else this.actionHandlers.has(q)||(this.actionHandlers.set(q,[]),y={},_.Ln(_.lD.getInstance(),(y[q]=function(){var e=_.Cj.apply(0,arguments);return(u.actionHandlers.get(q)||[]).map(function(t){return t.apply(null,_.Cm(e))})},y),this.getRoot())),this.actionHandlers.get(q).push(w)};
_.k.unregisterActionHandler=function(q){if(_.T("web_watch_controller_reg_multiple_handlers_killswitch")){var w={};_.M5(_.lD.getInstance(),(w[q]=!0,w),this.getRoot())}else(w=this.actionHandlers.get(q))?(w.pop(),w.length===0&&(w={},_.M5(_.lD.getInstance(),(w[q]=!0,w),this.getRoot()),this.actionHandlers.delete(q))):_.Y8(new _.fv("Attempted to unregister an action handler which is not registered.",q))};
_.k.addPageDisposeJob=function(q){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.hz(this.rootElement.pageDisposeJobs,q)};
_.k.removePageDisposeJob=function(q){this.rootElement.pageDisposeJobs&&_.MM(this.rootElement.pageDisposeJobs,q)};
_.k.dispatchEvent=function(q,w){_.t7(this.rootElement,q,w)};
_.k.provideRenderingData=function(q,w){this.rootElement.provideRenderingData(q,w)};
_.k.scrollWatchTo=function(q,w){var u;(u=this.watchScrollManager)==null||u.scrollWatchTo(q,w)};
_.k.focusOnPlayer=function(){var q=this.getElement("PLAYER");_.KJ(q,function(){if(q&&q.firstElementChild){var w=q.querySelector(".html5-video-player");w&&(_.ho(_.tG().resolve(_.fT)),w.focus())}else _.Y8(Error("km"))})};
_.k.updateCinematicFullscreenConfig=function(){var q=!!this.rootElement.theater,w=!!this.rootElement.fullscreen,u;(u=this.watchCinematicManager)==null||_.SmB(u,w,q)};
_.k.subscribeToActiveChanged=function(q,w){w=w===void 0?!0:w;var u=_.se(_.Mt(),_.dWB,function(y){q(y)});
w&&q(_.dWB(_.Mt().getState()));return u};
_.k.isActive=function(){return _.dWB(_.Mt().getState())};
_.k.onAttached=function(){var q=_.T("external_fullscreen");_.T("use_unified_flag_accessor")&&(q=_.tG().resolve(_.AzT).retriever.getFlag(_.R1k));(q||_.RX("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var BUc=function(q){return q.getRoot().is==="ytd-watch-flexy"||q.getRoot().is==="ytd-watch-grid"},Yv=function(q){return q.getRoot().is==="ytd-watch-fixie"};
_.bC.prototype.initPersistentModules=function(){if(Yv(this)||BUc(this)&&_.T("kevlar_watch_flexy_theater_manager")){var q=new _.rkH(this);_.sN(this,q)}q=new _.eyH(this);_.sN(this,q);q=new _.mc(this);_.sN(this,q);q=new _.pu(this);_.sN(this,q);q=new _.a4H(this);_.sN(this,q);q=new _.Jf(this);_.sN(this,q);if(Yv(this)||BUc(this)&&_.T("kevlar_watch_flexy_playlist_manager"))q=new _.ZeA(this),_.sN(this,q)};
_.bC.prototype.initOrDisposeActiveModules=function(q){q?(this.watchScrollManager=new _.vL(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.ie6(this)),this.activeModules.push(new _.CL6(this)),Yv(this)&&this.activeModules.push(new Kqc(this)),this.activeModules.push(new _.E3h(this)),this.activeModules.push(new _.$v(this)),(Yv(this)||_.T("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.Vu4(this)),this.activeModules.push(new _.Oe6(this)),
(Yv(this)||_.T("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.c4q(this)),(Yv(this)||_.T("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.pcc(this)),_.T("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.gqV(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.T("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.mfT(this)),_.T("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.uYj(this)),
q=_.T("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.T("kevlar_watch_flexy_comments_manager")&&!q&&this.activeModules.push(new _.KCa(this)),_.T("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Af(this)),this.activeModules.push(new _.f0B(this)),this.activeModules.push(new _.UfV(this)),_.T("web_enable_timely_actions")&&this.activeModules.push(new _.zmc(this)),_.T("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.qmH(this)),
_.T("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.S_V(this)),_.T("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.JnT(this)),_.T("web_player_rtr_ctrls")&&this.activeModules.push(new _.uxK(this))):(_.xS(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.bC.prototype.disposeInternal=function(){_.L2.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.x$.Object.defineProperties(_.bC.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var Te4,dU,CdH,djc,o5A,VTK,OlB,fyq;Te4=function(){var q=_.OC();q.info||(q.info={});return q.info};
dU=function(q){return Math.round(_.VY()+q)};
CdH=function(){var q;if(_.T("csi_use_performance_navigation_timing")){var w,u,y,e=_.oD==null?void 0:(q=_.oD.getEntriesByType)==null?void 0:(w=q.call(_.oD,"navigation"))==null?void 0:(u=w[0])==null?void 0:(y=u.toJSON)==null?void 0:y.call(u);e?(e.requestStart=dU(e.requestStart),e.responseEnd=dU(e.responseEnd),e.redirectStart=dU(e.redirectStart),e.redirectEnd=dU(e.redirectEnd),e.domainLookupEnd=dU(e.domainLookupEnd),e.connectStart=dU(e.connectStart),e.connectEnd=dU(e.connectEnd),e.responseStart=dU(e.responseStart),
e.secureConnectionStart=dU(e.secureConnectionStart),e.domainLookupStart=dU(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,q=e):q=_.oD.timing}else q=_.T("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.oD.timing)):_.oD.timing;return q};
djc=function(){if(_.oD.getEntriesByType){var q=_.oD.getEntriesByType("paint");if(q=_.v4(q,function(u){return u.name==="first-paint"}))return dU(q.startTime)}var w;
_.T("csi_use_performance_navigation_timing")?w=_.oD.getEntriesByType("first-paint")[0].startTime:w=_.oD.timing.msFirstPaint;return w?Math.max(0,w):0};
o5A=function(){var q=window.location.protocol,w=_.oD.getEntriesByType("resource");w=_.yN(w,function(u){return u.name.indexOf(q+"//fonts.gstatic.com/s/")===0});
(w=OlB(w,function(u,y){return y.duration>u.duration?y:u}))&&w.startTime>0&&w.responseEnd>0&&(_.fq("wffs",dU(w.startTime)),_.fq("wffe",dU(w.responseEnd)))};
VTK=function(q,w){q=document.querySelector(q);if(!q)return!1;var u="",y=q.nodeName;y==="SCRIPT"?(u=q.src,u||(u=q.getAttribute("data-timing-href"))&&(u=window.location.protocol+u)):y==="LINK"&&(u=q.href);_.DD(document)&&q.setAttribute("nonce",_.DD(document));return u?(q=_.oD.getEntriesByName(u))&&q[0]&&(q=q[0],u=_.VY(),_.fq("rsf_"+w,u+Math.round(q.fetchStart)),_.fq("rse_"+w,u+Math.round(q.responseEnd)),q.transferSize!==void 0&&q.transferSize===0)?!0:!1:!1};
_.On=function(q,w){_.SZ(function(){_.oQJ("").info.actionType=q;w&&_.g_("TIMING_AFT_KEYS",w);_.g_("TIMING_ACTION",q);var u=_.EQf(_.Et("TIMING_INFO",{}));Object.keys(u).length>0&&_.mR(u);u={isNavigation:!0,actionType:_.mH6(_.Et("TIMING_ACTION"))};var y=_.Et("PREVIOUS_ACTION");y&&(u.previousAction=_.mH6(y));if(y=_.Et("CLIENT_PROTOCOL"))u.httpProtocol=y;if(y=_.Et("CLIENT_TRANSPORT"))u.transportProtocol=y;(y=_.pN())&&y!=="UNDEFINED_CSN"&&(u.clientScreenNonce=y);y=_.gQs();if(y===1||y===-1)u.isVisible=!0;
y=_.id7().loadType==="cold";var e=Te4();y||(y=e.yt_lt==="cold");if(y){u.loadType="cold";y=Te4();e=CdH();var t=_.VY(),X=_.Et("CSI_START_TIMESTAMP_MILLIS",0);X>0&&!_.T("embeds_web_enable_csi_start_override_killswitch")&&(t=X);t&&(_.fq("srt",e.responseStart),y.prerender!==1&&_.DH7(t));y=djc();y>0&&_.fq("fpt",y);y=CdH();y.isPerformanceNavigationTiming&&_.mR({performanceNavigationTiming:!0},void 0);_.fq("nreqs",y.requestStart,void 0);_.fq("nress",y.responseStart,void 0);_.fq("nrese",y.responseEnd,void 0);
y.redirectEnd-y.redirectStart>0&&(_.fq("nrs",y.redirectStart,void 0),_.fq("nre",y.redirectEnd,void 0));y.domainLookupEnd-y.domainLookupStart>0&&(_.fq("ndnss",y.domainLookupStart,void 0),_.fq("ndnse",y.domainLookupEnd,void 0));y.connectEnd-y.connectStart>0&&(_.fq("ntcps",y.connectStart,void 0),_.fq("ntcpe",y.connectEnd,void 0));y.secureConnectionStart>=_.VY()&&y.connectEnd-y.secureConnectionStart>0&&(_.fq("nstcps",y.secureConnectionStart,void 0),_.fq("ntcpe",y.connectEnd,void 0));_.oD&&"getEntriesByType"in
_.oD&&o5A();y=[];if(document.querySelector&&_.oD&&_.oD.getEntriesByName)for(var G in fyq)fyq.hasOwnProperty(G)&&(e=fyq[G],VTK(G,e)&&y.push(e));if(y.length>0)for(u.resourceInfo=[],G=_.P(y),y=G.next();!y.done;y=G.next())u.resourceInfo.push({resourceCache:y.value})}_.mR(u);u=_.UHf();u.preLoggedGelInfos||(u.preLoggedGelInfos=[]);G=u.preLoggedGelInfos;u=_.Tac();y=void 0;for(e=0;e<G.length;e++)if(t=G[e],t.loadType){y=t.loadType;break}if(_.id7().loadType==="cold"&&(u.loadType==="cold"||y==="cold")){y=_.rYj();
e=_.UHf();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var n in y)if(!(n in e))if(typeof y[n]==="number")_.fq(n,_.A7(n));else if(_.T("log_repeated_ytcsi_ticks"))for(t=_.P(y[n]),X=t.next();!X.done;X=t.next())X=X.value,_.fq(n.slice(1),X);n={};y=!1;G=_.P(G);for(e=G.next();!e.done;e=G.next())y=e.value,_.TD6(u,y),_.TD6(n,y),y=!0;y&&_.mR(n)}_.cYM(!0);n=_.Et("TIMING_ACTION");_.hP("ytglobal.timingready_")&&n&&_.qGH()&&_.RJo()&&_.bdM()})()};
OlB=function(q,w){return Array.prototype.reduce.call(q,w,{duration:0})};
fyq={'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 mjh={};mjh.YtVisibilityRootBehavior=[_.W3k.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.BX(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Et("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var q=_.Et("INNERTUBE_CLIENT_NAME")!=="WEB";_.T("kevlar_use_vimio_behavior")&&q&&_.io3()}}];_.oL={};_.oL.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(q){q.detail.contextProvider=this;q.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
mjh.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.S6();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(q){var w=this;this.pageCount+=1;_.T("kevlar_use_vimio_behavior")&&(_.Et("INNERTUBE_CLIENT_NAME")==="WEB"?_.pi.addJob(function(){w.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(q)},
loadPage_:function(q){this.data=q},
ytPageBehaviorActiveObserver_:function(q){var w=this;_.T("kevlar_use_vimio_behavior")&&(q?_.Et("INNERTUBE_CLIENT_NAME")==="WEB"?_.pi.addJob(function(){w.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(q){if(!this.setScrollTopJobId_){var w=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){w.setScrollTopJobId_=0;var u=_.tG().resolve(_.kF(_.fT));u&&_.ho(u);this.getPageScrollingElement().scrollTop=q}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.Tk(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var UjA;var Ce=function(){var q=_.Y.apply(this,arguments)||this;q.playerListenerConfig=null;q.actionMap={"yt-show-watch-page-survey":"openSurvey"};return q};
_.O(Ce,_.Y);_.k=Ce.prototype;_.k.dataChanged=function(){var q=this,w=_.xo();w&&w.getPlayerPromise().then(function(y){q.maybeRemovePlayerListeners(y)});
var u=this.data&&this.data.survey;u&&((u=(u=u.singleOptionSurveyRenderer||u.checkboxSurveyRenderer||u.multiStageSurveyRenderer)&&u.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(w,u):this.openSurvey())};
_.k.triggerWatchPageSurvey=function(q,w){var u=this,y,e,t,X,G,n,N,Q,I;return _.F(function(U){if(U.nextAddress==1)return q?_.H(U,q.getPlayerPromise(),2):U.return();u.player=U.yieldResult;if(!u.player)return U.return();y={};e=_.P(w);for(t=e.next();!t.done;t=e.next())X=t.value,G=_.P(u.createEventListenerPair(X)),n=G.next().value,N=G.next().value,Q=n,I=N,Q&&I&&(y[Q]=I,u.ytPlayerListenerBehavior.listenToPlayerEvent(u.player,Q,I));u.playerListenerConfig=y;_.HI(U)})};
_.k.createEventListenerPair=function(q){var w=q.playbackEventTrigger;return w?this.handlePlaybackTrigger(w):(q=q.watchTimeTrigger)?this.handleWatchTimeTrigger(q):[void 0,void 0]};
_.k.handleWatchTimeTrigger=function(q){var w=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var u=q.videoWatchFraction,y=q.watchTimeSec;return y&&u?["onVideoProgress",function(){w.player&&w.isWatchTimeConditionMet(w.player,u,y)&&w.showSurvey()}]:[void 0,
void 0]};
_.k.isWatchTimeConditionMet=function(q,w,u){var y=q.getProgressState(),e=y.current-this.lastKnownPlaybackPosition;e<5&&(this.accumulatedMediaTime+=e);this.lastKnownPlaybackPosition=y.current;y=Math.round(this.accumulatedMediaTime/y.duration*1E3)/1E3;return q.getPresentingPlayerType&&q.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>u||y>w)};
_.k.handlePlaybackTrigger=function(q){var w=this;q=q.playbackEvent;if(q==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var u="onStateChange";var y=function(e){e===0&&w.showSurvey()}}else q==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(u="onVideoProgress",y=function(e){w.player&&w.player.getPresentingPlayerType&&w.player.getPresentingPlayerType()===1&&e&&w.showSurvey()}):q==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(u="onAdEnd",y=this.showSurvey);
return[u,y]};
_.k.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.k.openSurvey=function(){var q=this,w=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.lDj(!!w));_.pi.addJob(function(){q.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:w}})},0,0)};
_.k.maybeRemovePlayerListeners=function(q){if(this.playerListenerConfig){for(var w=_.P(Object.keys(this.playerListenerConfig)),u=w.next();!u.done;u=w.next())u=u.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(q,u,this.playerListenerConfig[u]);this.playerListenerConfig=null}};
Ce.prototype.dataChanged=Ce.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ce.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.YE),_.h("design:type",Object)],Ce.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.D(_.b7.YtPlayerListenerBehavior),_.h("design:type",_.Yp)],Ce.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Ce.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.D(_.fU),_.h("design:type",Object)],Ce.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ce.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],Ce.prototype,"playerListenerConfig",void 0);_.c([_.v({value:0}),_.h("design:type",Number)],Ce.prototype,"lastKnownPlaybackPosition",void 0);_.c([_.v({value:0}),_.h("design:type",Number)],Ce.prototype,"accumulatedMediaTime",void 0);_.c([_.v(),_.h("design:type",Object)],Ce.prototype,"player",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ce.prototype,"dataChanged",null);Ce=_.c([_.E({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Ce);
_.R(Ce,"ytd-survey-trigger-renderer",function(){if(UjA!==void 0)return UjA;var q=document.createElement("template");_.f(q,"\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");q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return UjA=q},{mode:1});
}catch(e){_._DumpException(e)}
try{
var kp6=new _.M("promotedSparklesWebRenderer");var tOV=new _.M("relatedChipCommand");var Pgj;var XNx;var sT=function(){return _.Y.apply(this,arguments)||this};
_.O(sT,_.Y);sT.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],sT.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],sT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],sT.prototype,"data",void 0);sT=_.c([_.E({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],sT);
_.R(sT,"ytd-compact-tvfilm-entry-point-renderer",function(){if(XNx!==void 0)return XNx;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return XNx=q},{mode:1});var Fzc;var Gp4;var nla;var No=function(){return _.Y.apply(this,arguments)||this};
_.O(No,_.Y);No.prototype.ready=function(){this.initializeDefs()};
No.prototype.initializeDefs=function(){var q=this.meta.byKey("yt-icons"),w=_.A(q).querySelector("#star"),u=_.A(q).querySelector("#star_half");q=_.A(q).querySelector("#star_border");w&&this.defs.appendChild(w.cloneNode(!0));u&&this.defs.appendChild(u.cloneNode(!0));q&&this.defs.appendChild(q.cloneNode(!0))};
No.prototype.percentChanged=function(){for(var q=this.rating;q.firstChild;)q.removeChild(q.firstChild);var w=Math.round(this.percent/10);q=Math.floor(w/2);w%=2;var u=5-q-w;this.appendStars("star",q,0);this.appendStars("star_half",w,q);this.appendStars("star_border",u,q+w)};
No.prototype.appendStars=function(q,w,u){for(var y=0;y<w;y++){var e=(18+this.spacing)*(y+u),t=document.createElementNS("http://www.w3.org/2000/svg","use");_.Lx6(t,"#"+q);t.setAttribute("x",""+e);t.setAttribute("y","0");this.rating.appendChild(t)}};
No.prototype.percentChanged=No.prototype.percentChanged;_.c([_.Wj("#defs"),_.h("design:type",HTMLElement)],No.prototype,"defs",void 0);_.c([_.Wj("#rating"),_.h("design:type",HTMLElement)],No.prototype,"rating",void 0);_.c([_.v(),_.h("design:type",Number)],No.prototype,"percent",void 0);_.c([_.v({value:6}),_.h("design:type",Number)],No.prototype,"spacing",void 0);_.c([_.v({value:_.iM.create("iron-meta",{type:"iconset"})}),_.h("design:type",_.CH)],No.prototype,"meta",void 0);
_.c([_.nL("percent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],No.prototype,"percentChanged",null);No=_.c([_.E({disableElementRegistration:!0,is:"ytd-ratings"})],No);
_.R(No,"ytd-ratings",function(){if(nla!==void 0)return nla;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return nla=q},{mode:1});var Qd=function(){return _.Y.apply(this,arguments)||this};
_.O(Qd,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Qd.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Qd.prototype,"data",void 0);Qd=_.c([_.E({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],Qd);
_.R(Qd,"ytd-offer-review-renderer",function(){if(Gp4!==void 0)return Gp4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Gp4=q},{mode:1});var Is=function(){var q=_.Y.apply(this,arguments)||this;q.badges=[{textBadge:{label:_.jN("CC")}}];return q};
_.O(Is,_.Y);_.k=Is.prototype;_.k.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.k.dataChanged=function(){var q=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(q&&q.commandMetadata&&_.C(q.commandMetadata,_.oB)&&_.C(q.commandMetadata,_.oB).fireAutomatically)_.tG().resolve(_.PG).resolveCommand(q,{form:{element:this.hostElement}});else{var w;q&&((w=_.C(q,_.oB))==null?0:w.fireAutomatically)&&_.tG().resolve(_.PG).resolveCommand(q,{form:{element:this.hostElement}})}};
_.k.isEmptyContent=function(q){return this.isStorefrontEntryPointEmpty(q)&&this.shouldHideOfferModule(q)};
_.k.isStorefrontEntryPointEmpty=function(q){return!q||!q.storefrontEntryPoint};
_.k.shouldHideOfferModule=function(q){return!!q.hideVideoDetails};
_.k.isOfferModuleNavigationInactive=function(q){return!q.navigationEndpoint&&!q.serviceEndpoint};
_.k.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.tG().resolve(_.PG).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Is.prototype.dataChanged=Is.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Is.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Is.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Is.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.h("design:type",Boolean)],Is.prototype,"hidden",void 0);
_.c([_.v(),_.h("design:type",Object)],Is.prototype,"badges",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Is.prototype,"dataChanged",null);Is=_.c([_.E({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],Is);
_.R(Is,"ytd-movie-offer-module-renderer",function(){if(Fzc!==void 0)return Fzc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Fzc=q},{mode:1});var H5j;var rn=function(){return _.Y.apply(this,arguments)||this};
_.O(rn,_.Y);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],rn.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],rn.prototype,"data",void 0);rn=_.c([_.E({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],rn);
_.R(rn,"ytd-media-masthead-renderer",function(){if(H5j!==void 0)return H5j;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return H5j=q},{mode:1});var Wz4;_.q9(_.PLx,"course-metadata-view-model",{props:{data:_.xB,isOverlay:_.xB}});var UT=function(){var q=_.Y.apply(this,arguments)||this;q.isMetadataVisible=!1;q.modernPanels=_.T("kevlar_watch_modern_panels");q.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return q};
_.O(UT,_.Y);_.k=UT.prototype;
_.k.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"}}}}};
_.k.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.k.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.k.expanderChanged=function(){var q;if((q=this.data)==null?0:q.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.k.isExpandButtonToggled=function(){var q,w;return(w=_.C((q=this.data)==null?void 0:q.expandMetadataButton,_.Vo))==null?void 0:w.isToggled};
_.k.onVisibilityButtonClick=function(){var q;if((q=this.data)==null?0:q.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.k.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
UT.prototype.expanderChanged=UT.prototype.expanderChanged;UT.prototype.dataChanged=UT.prototype.dataChanged;UT.prototype.descriptionChanged=UT.prototype.descriptionChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],UT.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],UT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D([_.hm.YtActionHandlerBehavior]),_.h("design:type",Object)],UT.prototype,"actionHandlerBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],UT.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],UT.prototype,"isMetadataVisible",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],UT.prototype,"modernPanels",void 0);_.c([_.Wj("#expander"),_.h("design:type",Object)],UT.prototype,"expander",void 0);_.c([_.nL("data.description"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UT.prototype,"descriptionChanged",null);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UT.prototype,"dataChanged",null);_.c([_.nL("isMetadataVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UT.prototype,"expanderChanged",null);UT=_.c([_.E({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],UT);
_.R(UT,"ytd-tvfilm-offer-module-renderer",function(){if(Wz4!==void 0)return Wz4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Wz4=q},{mode:2});var sFB;var Tu=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return q};
_.O(Tu,_.Y);Tu.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Tu.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Tu.prototype.onThumbnailTap=function(q){this.data&&this.data.serviceEndpoint&&(_.tG().resolve(_.PG).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),q.stopPropagation())};
Tu.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
Tu.prototype.dataChanged=Tu.prototype.dataChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Tu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Tu.prototype,"rendererBehaviors",void 0);_.c([_.D([_.hm.YtActionHandlerBehavior]),_.h("design:type",Object)],Tu.prototype,"actionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Tu.prototype,"data",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Tu.prototype,"dataChanged",null);Tu=_.c([_.E({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],Tu);
_.R(Tu,"ytd-unlimited-offer-module-renderer",function(){if(sFB!==void 0)return sFB;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return sFB=q},{mode:1});var N8V;var QFA;var Cb=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return q};
_.O(Cb,_.Y);Cb.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Cb.prototype.handleRelatedChipCommand=function(q){q=_.C(q,tOV);var w=q.contents;w?_.X4(this.hostElement,"yt-item-section-replace-action",[w,q.targetSectionIdentifier]):_.X4(this.hostElement,"yt-item-section-continuation-action",[q.continuationData,q.targetSectionIdentifier])};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Cb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Cb.prototype,"actionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Cb.prototype,"data",void 0);Cb=_.c([_.JM({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],Cb);
_.R(Cb,"yt-related-chip-cloud-renderer",function(){if(QFA===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;N8V===void 0&&(N8V=document.createElement("template"));var y=N8V;u.call(w,y.content.cloneNode(!0),q.content.firstChild);QFA=q}q=QFA;return q},{mode:2});var dn=function(){var q=_.Y.apply(this,arguments)||this;q.isTwoColumns=!0;q.hideOfferModules=!1;q.watchFeedBigThumbs=_.T("kevlar_watch_feed_big_thumbs");q.watchNextGridHideChips=_.T("kevlar_watch_grid_hide_chips");q.eligibleToSwitchToGrid=_.T("web_watch_eligible_to_switch_to_grid");q.disableShortsShelfHeightOverride=_.T("web_shorts_wn_shelf_ratio_tuning");q.isWatchNextGrid=!1;q.reuseComponents=!_.T("kevlar_watch_grid");q.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return q};
_.O(dn,_.Y);_.k=dn.prototype;
_.k.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]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.T("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.k.getItemsPath=function(){return"data.results"};
_.k.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.k.created=function(){this.ytLazyListBehavior.initialCount=1};
_.k.ready=function(){_.Pj(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%"})};
_.k.resultsChanged=function(){if(this.data&&this.data.results){for(var q=this.data.results,w=null,u=null,y=0;y<q.length;y++)q[y].relatedChipCloudRenderer?w=q[y].relatedChipCloudRenderer:q[y].itemSectionRenderer&&(u=q[y].itemSectionRenderer);if(w&&u)for(this.set("data.continuations",[]),q=_.C(w.content,_.Kn$).chips,w=0;w<q.length;w++)if(y=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",q[w]),y.loadCached||!y.contents){y.contents=u.contents;break}}};
_.k.dataChanged=function(){var q=this,w;if((w=this.data)!=null&&w.results&&this.hasAllowedInstreamAd(this.playerData)){if(w=this.data.results.filter(function(G){return!!G.promotedSparklesWebRenderer})){for(var u=0;u<w.length;u++){var y=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",w[u]);
if(y)for(var e=0;e<y.length;e++)y[e]&&y[e].baseUrl&&_.h6(y[e].baseUrl)}this.set("data.results",this.data.results.filter(function(G){return!G.promotedSparklesWebRenderer}))}if(w=this.data.results.filter(function(G){return!!q.getSparklesAd(G)})){w=_.P(w);
for(e=w.next();!e.done;e=w.next())if(y=u=void 0,e=(u=this.getSparklesAd(e.value))==null?void 0:(y=u.errorCommand)==null?void 0:y.loggingUrls)for(u=_.P(e),y=u.next();!y.done;y=u.next())(y=y.value)&&y.baseUrl&&_.h6(y.baseUrl);var t,X;this.set("data.results",(t=this.data)==null?void 0:(X=t.results)==null?void 0:X.filter(function(G){return!G.adSlotRenderer}))}}};
_.k.getSparklesAd=function(q){var w,u;q=_.C((w=q.adSlotRenderer)==null?void 0:(u=w.fulfillmentContent)==null?void 0:u.fulfilledLayout,_.Q5x);return _.C(q==null?void 0:q.renderingContent,kp6)};
_.k.hasAllowedInstreamAd=function(q){q=this.get("adPlacements",q)||[];for(var w=0;w<q.length;w++){var u=this.get("adPlacementRenderer.config.adPlacementConfig",q[w]);if(u&&u.suppressDisplayAd)return!0}return!1};
_.k.computeHideUnlimitedOfferModule=function(q,w){return q&&q.offerModule&&w&&q.offerModule.unlimitedOfferModuleRenderer&&q.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(w)?!0:!1};
_.k.hideUnlimitedOfferModuleChanged=function(){var q=_.A(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");q&&(q.hidden=this.hideUnlimitedOfferModule)};
_.k.updateLockupContainerTypes=function(q){if(this.eligibleToSwitchToGrid){var w;(w=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||w.forEach(function(u){u.containerType=q})}};
_.k.computeHideTvfilmOfferModule=function(q,w){var u,y;return!!((q==null?0:(u=q.offerModule)==null?0:(y=u.tvfilmOfferModuleRenderer)==null?0:y.clientShouldSuppressIfCompanionAdDisplayed)&&w&&this.hasCompanionAds(w))};
_.k.hideTvfilmOfferModuleChanged=function(){var q=_.A(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");q&&(q.hidden=this.hideTvfilmOfferModule)};
_.k.hasCompanionAds=function(q){q=this.get("adPlacements",q)||[];for(var w=0;w<q.length;w++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",q[w]))return!0;var u=void 0,y=void 0,e=void 0;if(!_.T("web_watch_top_banner_companion_check_killswitch")&&((u=q[w])==null?0:(y=u.adPlacementRenderer)==null?0:(e=y.renderer)==null?0:e.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.k.hasSuppressedResults=function(q){return q==null?!0:q.filter(function(w){return!w.continuationItemRenderer&&!w.compactPromotedVideoRenderer&&!w.promotedSparklesWebRenderer}).length===0};
_.k.computeShowButton=function(q,w){return this.isWatchNextGrid?q:q||this.hasSuppressedResults(w)};
_.k.showButtonChanged=function(){if(this.isWatchNextGrid){var q=_.A(this.hostElement).querySelector("ytd-rich-grid-renderer");q&&this.showButton!==null&&(q.continuationShowButton=this.showButton)}else{q=_.A(this.hostElement).querySelector("yt-next-continuation");var w=_.A(this.hostElement).querySelector("ytd-continuation-item-renderer"),u=_.A(this.hostElement).querySelector("ytd-item-section-renderer");q&&(q.showButton=this.showButton);w&&(w.showButton=this.showButton);u&&(u.continuationShowButton=
this.showButton)}};
_.k.continuationTap=function(q){var w;if(((w=this.data)==null?void 0:w.continuations)!=null&&q.target.tagName==="TP-YT-PAPER-BUTTON")for(q=this.data.continuations,w=0;w<q.length;w++)q[w].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(q[w].nextContinuationData||{})};
_.k.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.D1("shown-items-changed",this.shownItems))};
_.x$.Object.defineProperties(dn.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.shownItems)==null||!q.some(function(w){return!!w.lockupViewModel}))}}});
dn.prototype.shownItemsChangedForBinding=dn.prototype.shownItemsChangedForBinding;dn.prototype.showButtonChanged=dn.prototype.showButtonChanged;dn.prototype.hideTvfilmOfferModuleChanged=dn.prototype.hideTvfilmOfferModuleChanged;dn.prototype.updateLockupContainerTypes=dn.prototype.updateLockupContainerTypes;dn.prototype.hideUnlimitedOfferModuleChanged=dn.prototype.hideUnlimitedOfferModuleChanged;dn.prototype.dataChanged=dn.prototype.dataChanged;dn.prototype.resultsChanged=dn.prototype.resultsChanged;
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],dn.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],dn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.LU.YtLazyListBehavior),_.h("design:type",Object)],dn.prototype,"ytLazyListBehavior",void 0);_.c([_.D(_.zE.YtNextContinuationBehavior),_.h("design:type",Object)],dn.prototype,"ytNextContinuationBehavior",void 0);
_.c([_.D(_.JR),_.h("design:type",Object)],dn.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],dn.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],dn.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],dn.prototype,"playerData",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],dn.prototype,"autoFill",void 0);_.c([_.v({value:60}),_.h("design:type",Number)],dn.prototype,"targetFramerate",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dn.prototype,"isTwoColumns",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dn.prototype,"hideOfferModules",void 0);_.c([_.v(),_.h("design:type",Object)],dn.prototype,"shownItems",void 0);_.c([_.v({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.h("design:type",Boolean)],dn.prototype,"hideUnlimitedOfferModule",void 0);
_.c([_.v({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.h("design:type",Boolean)],dn.prototype,"hideTvfilmOfferModule",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dn.prototype,"watchFeedBigThumbs",void 0);_.c([_.v(),_.h("design:type",Object)],dn.prototype,"watchNextGridHideChips",void 0);_.c([_.v(),_.h("design:type",Object)],dn.prototype,"eligibleToSwitchToGrid",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dn.prototype,"disableShortsShelfHeightOverride",void 0);_.c([_.v({selector:_.$H}),_.h("design:type",Object)],dn.prototype,"isGridViewEnabled",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],dn.prototype,"showMoreButton",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dn.prototype,"isWatchNextGrid",void 0);
_.c([_.v({computed:"computeShowButton(showMoreButton, data.results)"}),_.h("design:type",Boolean)],dn.prototype,"showButton",void 0);_.c([_.I9("data.results.*"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dn.prototype,"resultsChanged",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dn.prototype,"dataChanged",null);
_.c([_.nL("hideUnlimitedOfferModule"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dn.prototype,"hideUnlimitedOfferModuleChanged",null);_.c([_.Z("isGridViewEnabled","containsLockupViewModel","data"),_.v({reflectToAttribute:!0}),_.h("design:type",Number),_.h("design:paramtypes",[])],dn.prototype,"lockupContainerType",null);
_.c([_.nL("lockupContainerType","data"),_.h("design:type",Function),_.h("design:paramtypes",[Number]),_.h("design:returntype")],dn.prototype,"updateLockupContainerTypes",null);_.c([_.nL("hideTvfilmOfferModule"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dn.prototype,"hideTvfilmOfferModuleChanged",null);_.c([_.nL("showButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dn.prototype,"showButtonChanged",null);
_.c([_.nL("shownItems"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dn.prototype,"shownItemsChangedForBinding",null);_.c([_.Z("shownItems"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],dn.prototype,"containsLockupViewModel",null);
_.R(dn,"ytd-watch-next-secondary-results-renderer",function(){if(Pgj===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);Pgj=q}q=Pgj;return q},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.bsh={};
_.bsh.YtdWatchBehavior=[_.B.YtRendererBehavior,_.b7.YtPlayerListenerBehavior,_.S0.YtRendererstamperBehavior,_.hm.YtActionHandlerBehavior,_.oL.YtPageBehavior,_.yL.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},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},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 _.RX("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.T("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,value:function(){return _.T("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 _.RX("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},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.T("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, fullscreen, theater)"},richItemMinWidth:{type:Number,
value:function(){return _.Fc("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Fc("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!_.T("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.T("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 _.T("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.T("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isTwoColumns_)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.T("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.T("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_full_bleed_no_max_width_columns")}},
fixedPanels:{type:Boolean,reflectToAttribute:!0},panelsBesidePlayer:{type:Boolean,reflectToAttribute:!0},watchWhileWider:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},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 q={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:_.JQ(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.JQ(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},
microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}};this.is!=="ytd-watch-grid"||_.T("swa_prov_panels_ks")?q.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(q.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},q.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return q},
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 q=this;this.watchController=void 0;this.pageDisposeJobs=[function(){q.showMetadataPlaceholder_()},
function(){_.T("web_watch_dont_clear_comments")||q.clearComments_()},
function(){q.clearPlayerAds_()},
function(){q.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;_.T("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.T("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.Osx(function(){return _.BR(q)},this.hostElement);
this.pageDisposeJobs.push(function(){q.youThereManager_.reset()});
_.T("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){q.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.eh;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;_.T("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.T("kevlar_watch_flexy_theater_manager")||
(this.actionMap["yt-toggle-theater-mode"]="setTheaterModeRequested",this.actionMap["yt-is-theater"]="isTheater_",this.playerEvents_.set("SIZE_CLICKED",this.setTheaterModeRequested));_.T("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Fj(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(q){q&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:q}),q.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(q){_.T("kevlar_watch_flexy_theater_manager")&&(this.theater=q,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(q){!_.T("kevlar_watch_while_v2")&&!_.T("web_watch_pip")||q||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(q){this.active!==void 0&&(this.fullscreen=q,_.T("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(q){this.active!==void 0&&(_.t7(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.T("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(q>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(q){this.initCsi_();this.updatePageData_(q)},
updatePageData_:function(q){var w=this;if(q)if(this.data===q){this.onPageLoadWithSameData_();var u;(u=this.watchController)==null||u.setWatchNextResponse(this.data)}else this.data=q;this.playlist&&_.zM({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.D_("nw");this.loading=!1;_.mg(_.pi,function(){w.initDclkstatus_();var y,e=((y=w.player)==null?void 0:y.getVideoData().cpn)||"";_.GB4(function(t,X){_.rPm(t,X,e)})})},
onPageLoadWithSameData_:function(){_.T("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var q=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!q);this.set("loadingData.playlistLoading",q&&q!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),q=this.watchNextSkeletonEl_.firstElementChild;q;)q.classList.remove("hidden"),q=q.nextElementSibling;if(_.T("kevlar_watch_frame0_loading_state")){var w,u,y;q=(w=this.loadingData)==null?void 0:(u=w.endpoint)==null?void 0:(y=u.watchEndpoint)==null?void 0:y.videoId;var e;q&&(e="https://i.ytimg.com/vi/"+q+"/frame0.jpg");_.A(this.hostElement).querySelector("#player").style.backgroundImage=e?"url("+e+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var q=_.A(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&q&&(q.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var w,u;(u=(w=this.watchMetadata).updateSentimentBarWidth)==
null||u.call(w);var y,e;(e=(y=this.watchMetadata).resize)==null||e.call(y)}_.T("kevlar_watch_frame0_loading_state")&&(_.A(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(q){var w=_.A(this.hostElement).querySelector(q);w?_.eB(w,!1):_.Y8(new _.fv("Overscroll monitor not found for component: ",q))},
removeSplitScrollMouseTrap:function(q){var w=_.A(this.hostElement).querySelector(q);w?_.k1(w):_.Y8(new _.fv("Disposal component for  overscroll monitoring not found: ",q))},
onLoadingChanged_:function(q){q?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(q){var w=this;q?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.pi.addLowPriorityJob(function(){w.onWindowResized_(_.UP(!0))})},
updateTheaterModeState_:function(q){if(!_.T("kevlar_watch_flexy_theater_manager")){q=q||this.fullWindowMode_;if(this.theater!==void 0||q)this.theater=q;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();q&&_.T8m()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var q=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.T("external_fullscreen")&&this.fullscreen&&(q=!0);q=q?_.A(this.hostElement).querySelector("#player-full-bleed-container"):_.A(this.hostElement).querySelector("#player-container-inner");var w=this.getPlayerContainer(),u=_.T("kevlar_watch_while_v2")||_.T("web_watch_pip");w.parentElement!==q&&(u&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.BR(this).appendTo(q,
w),q.appendChild(_.A(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var q=this;return _.F(function(w){if(w.nextAddress==1)return _.H(w,_.tG().resolve(_.$X).deactivate(),2);q.updatePlayerLocation();_.HI(w)})},
updateCinematicsLocation:function(){var q=this.getElement("CINEMATICS");if(q){var w=this.getCinematicsLocationContainer();q.parentElement!==w&&w.appendChild(q);var u;(u=this.watchController)==null||u.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.A(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.A(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(q,w){var u=document.documentElement.hasAttribute("dark"),y=u&&_.T("web_cinematic_theater_mode"),e=u&&_.T("web_cinematic_fullscreen");u=!u&&this.cinematicLightTheme;return q&&y||w&&e||(w||q)&&u},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var q=this,w;(w=this.watchController)==null||w.setWatchNextResponse(this.data);_.T("kevlar_watch_flexy_comments_manager")||this.initComments_();_.T("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.tG().resolve(_.z5).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,_.T("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.pi.addLowPriorityJob(function(){_.X4(q.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.T("web_watch_start_chat_in_theater_mode")){var u,y,e;if((u=this.data)==null?0:(y=u.contents)==null?0:(e=y.twoColumnWatchNextResults)==null?0:e.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var t,X;((t=this.data)==null?0:(X=t.contents)==null?0:X.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(q){var w;(w=this.watchController)==null||w.setPlayerResponse(this.playerData);q&&q.playabilityStatus&&(w=this.isVideoPlayable_(q.playabilityStatus,this.getPlayerOverlays_(this.data)),q=this.isLiveStreamOffline_(q.playabilityStatus),w&&!q||_.KJ(this,function(){_.D_("pbu")}));
this.setPlayerAds_();_.X4(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(q,w){if((_.T("kevlar_watch_while_v2")||_.T("web_watch_pip"))&&this.playerData&&w)return this.playerData.videoDetails},
watchPageActiveChanged_:function(q){_.Mt().dispatch(_.hyx(this.active));q?this.activate_():this.deactivate_()},
attached:function(){var q=this;this.watchController=new _.bC(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.T("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var w=_.BR(this);_.T("kevlar_disable_prepare_player")||
w.preparePlayer();_.T("kevlar_watch_flexy_playlist_manager")||_.tG().resolve(_.z5).setPlayer(w);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();w={"--ytd-watch-flexy-scrollbar-width":_.fl()+"px"};this.is==="ytd-watch-grid"&&(w["--ytd-watch-flexy-sidebar-width"]=_.ty6+"px",w["--ytd-watch-grid-horizontal-page-margins"]=_.Zk+"px",w["--ytd-watch-grid-columns-top-margins"]=_.yCm+"px",w["--ytd-watch-grid-min-player-height-medium"]="360px");!_.Fc("kv_pl_mx_sz_ks")&&
_.Fc("kevlar_watch_max_player_width")&&(w["--ytd-watch-flexy-max-player-width-wide-screen"]=_.PFm+"px");_.Fc("kevlar_watch_flexy_metadata_height")&&(w["--ytd-watch-flexy-space-below-player"]=_.XZj+"px");this.safeUpdateStyles(w);_.T("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.Fv(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return q.onPlayerTouchPanDown_()}}));
_.T("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.A(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var q=_.fl(),w=_.pb+q,u=w;this.fixedPanels&&(w+=_.ty6);var y=657+q;q=1327+q;_.A(this.hostElement).querySelector("#two-column-query").query="(min-width: "+w+"px)";_.A(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(y+"px), (min-height: 630px) and (min-width: ")+(w+"px) and (max-width: ")+(q+"px)");_.A(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(q+"px)");_.A(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+u+"px)"},
calculateCurrentPlayerSize_:function(){var q=_.A(this.hostElement).querySelector("#miniplayer-bar").firstChild,w=this.squeezeback&&!_.T("web_watch_squeezeback_player_size_killswitch");return q&&q.active||this.theater||_.T("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||w||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.FO(NaN,NaN):_.R7(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.R7(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.BX(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var q=this;this.onWindowResized_(_.UP());_.T("browse_skeleton_removal_on_watch_killswitch")||_.RX("IS_SHELL_LOAD")&&_.rQq();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var w=_.BR(this);w.addEventListener("yt-player-updated",_.Fj(this,this.onPlayerUpdated_));w.getPlayerPromise().then(function(u){q.playerApiReady_(u)});
_.T("kevlar_watch_flexy_playlist_manager")||(w=_.tG().resolve(_.z5),_.T("kevlar_watch_observe_playlist_navigations_killswitch")&&w.addEventListener("yt-navigate",_.Fj(this,this.onYtNavigate_)),w.setPlaylistComponent(_.A(this.hostElement).querySelector("#playlist")),w.addEventListener("yt-playlist-data-updated",_.Fj(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.pi.addLowPriorityJob(function(){_.t7(q.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.BR(this).removeEventListener("yt-player-updated",_.Fj(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.T("kevlar_watch_flexy_playlist_manager")){var q=_.tG().resolve(_.z5);_.T("kevlar_watch_observe_playlist_navigations_killswitch")&&q.removeEventListener("yt-navigate",_.Fj(this,this.onYtNavigate_));
q.cancelVideoSkip();q.removeEventListener("yt-playlist-data-updated",_.Fj(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.t7(this.hostElement,"yt-autonav-pause-player",!1);q=_.uy();_.T("kevlar_exit_fullscreen_leaving_watch")&&q&&_.yY(q)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(q){this.player&&this.player.updateVideoData({rvs:q.rvs})},
getPageContents:function(q){return q&&q.contents&&q.contents.twoColumnWatchNextResults&&q.contents.twoColumnWatchNextResults.results&&q.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(q){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",q)},
onRetrieveLocation_:function(q,w){w.hasComments?w.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):w.locationRetrieved("/related_ajax",void 0);q.stopPropagation()},
onSubscriptionChanged_:function(q,w){this.player&&(w?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.On("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.A(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.A(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(q){this.player=q;this.setPlayerState(q.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.T("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.T("kevlar_unified_player")||_.T("kevlar_player_new_bootstrap_adoption"))&&_.LV()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(q,w){w=w===void 0?!0:w;_.uy()&&_.T("external_fullscreen")&&_.yY(document.documentElement);this.theaterRequested_=q;w&&_.Cv("wide",q?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.Pw(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.t7(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(q){_.gs(q,typeof this.player),this.player&&_.gs(q,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var q;((q=this.player)==null?0:q.isFullscreen())?this.player.toggleFullscreen():_.Pw(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(q,w){return this.loading?w:!!Object.keys(q).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(q){if(q){q=_.P(q);for(var w=q.next();!w.done;w=q.next())w=w.value,w.youThereRenderer&&_.fpx(this.youThereManager_,w.youThereRenderer)}},
setPlaylistData_:function(q){return q||{}},
userEngagementConfigDataChanged_:function(q){if(q)if(q.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var w=this.youThereManager_;_.Pm()<q.lowEngagementThresholdMs||_.zv6(w,!0)}else q.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Pw(this.hostElement,"yt-autonav-pause-user-engagement",[q])},
isPlayerUnavailable_:function(q,w,u){return!!q&&!this.isVideoPlayable_(q,u)&&!w},
getPlayerOverlays_:function(q){return(q==null?void 0:q.playerOverlays)||null},
isVideoPlayable_:function(q,w){if(!q)return!1;var u=q.status==="OK"||q.status==="LIVE_STREAM_OFFLINE",y=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",q)||this.get("errorScreen.ypcTrailerRenderer",q);q=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",q);var e;w=w==null?void 0:(e=w.playerOverlayRenderer)==null?void 0:e.gatedActionsOverlayRenderer;return!!u||!!y||!!q||!!w},
hasWatchNextResponseErrorRenderer:function(q){var w=this.getPageContents(q),u,y,e,t,X;return!(q==null?0:(u=q.contents)==null?0:(y=u.twoColumnWatchNextResults)==null?0:y.secondaryResults)&&!!((e=w[0])==null?0:(t=e.itemSectionRenderer)==null?0:(X=t.contents[0])==null?0:X.backgroundPromoRenderer)},
isLiveStreamOffline_:function(q){return q?q.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(q,w,u){var y=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",w),e=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];e=_.T("web_no_skip_video_on_verification_checks")?(q==null?void 0:q.status)&&e.includes(q.status):q&&q.status==="AGE_CHECK_REQUIRED";var t=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",q);t==void 0&&(t=!0);!u||this.isVideoPlayable_(q,this.getPlayerOverlays_(w))||
y||e||!t||_.tG().resolve(_.z5).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.Q_a()},
onPlayerFeedbackStartRequest_:function(q){_.Pw(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:q}])},
onPlayerFeedbackArticleRequest_:function(q){_.Pw(this.hostElement,"yt-help-dialog-requested",[q])},
onPlayerYpcContentRequest_:function(){var q,w,u,y,e,t,X,G,n=((q=this.data)==null?NaN:(w=q.contents)==null?NaN:(u=w.twoColumnWatchNextResults)==null?NaN:(y=u.secondaryResults)==null?NaN:(e=y.secondaryResults)==null?NaN:(t=e.offerModule)==null?NaN:(X=t.tvfilmOfferModuleRenderer)==null?NaN:(G=X.actionButtons)==null?NaN:G.length)-1;q=[".offerButton.buttonRenderer.",".actionButtons."+(n>=0?n:0)+".buttonRenderer."];w=_.P(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(u=w.next();!u.done;u=w.next())for(u=u.value,y=_.P(q),e=y.next();!e.done;e=y.next())if(e="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+u+e.value,e=this.get(e+"navigationEndpoint",this.data)||this.get(e+"serviceEndpoint",this.data)||this.get(e+"command",this.data)){_.H6(e,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(q){_.t7(this.hostElement,"yt-autonav-pause-player",q)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(q){q()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(q){switch(q){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(q){switch(q){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.t7(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(q)},
setPlayerState:function(q){_.Mt().dispatch(_.zNG(q))},
onPlayerSubscribe_:function(q){_.Pw(this.hostElement,"yt-player-subscribe",[q])},
onPlayerUnsubscribe_:function(q){_.Pw(this.hostElement,"yt-player-unsubscribe",[q])},
onPlayerAdYtShowToast_:function(q){_.Pw(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:q.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(q){if(q)return q},
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(q){return!_.T("web_watch_move_summary_to_sd")&&!!q},
computeWatchMetadataRefresh:function(){return _.T("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.T("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var q,w,u,y;this.watchNextSecondaryResults=(q=this.data)==null?void 0:(w=q.contents)==null?void 0:(u=w.twoColumnWatchNextResults)==null?void 0:(y=u.secondaryResults)==null?void 0:y.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.T("swatcheroo_pbs_load_grid")&&!_.T("swatcheroo_provide_all_data_on_scheduled_job")){_.pi.cancelJob(this.setRichGridJobId_);var q,w,u,y,e,t,X;this.setRichGridRendererData((q=this.data)==null?void 0:(w=q.contents)==null?void 0:(u=w.twoColumnWatchNextResults)==null?void 0:(y=u.secondaryResults)==null?void 0:(e=y.secondaryResults)==null?void 0:(t=e.results)==null?void 0:(X=t[0])==null?
void 0:X.richGridRenderer)}},
setRichGridRendererData:function(q){this.richGridRendererData=q},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var q,w=(q=this.data)==null?void 0:q.engagementPanels;if(w==null?0:w.length){q=null;w=_.P(w);for(var u=w.next();!u.done;u=w.next()){u=u.value;var y=void 0;if(((y=u.engagementPanelSectionListRenderer)==null?void 0:y.targetId)==="engagement-panel-structured-description"){q=u;break}}var e,t,X;q=(e=q)==null?void 0:(t=e.engagementPanelSectionListRenderer)==null?void 0:(X=t.content)==null?void 0:X.structuredDescriptionContentRenderer;if(q==null?0:q.items){e=
[];t=_.P(q.items);for(X=t.next();!X.done;X=t.next()){X=X.value;if(!_.T("sd_horizontal_list_show_nav_killswitch")){var G=y=u=w=q=void 0,n=void 0,N=(q=X.horizontalCardListRenderer)==null?void 0:(w=q.header)==null?void 0:(u=w.richListHeaderRenderer)==null?void 0:(y=u.navigationButton)==null?void 0:(G=y.buttonRenderer)==null?void 0:(n=G.command)==null?void 0:n.commandExecutorCommand;N&&N.commands&&(N.commands=N.commands.filter(function(Q){return!_.C(Q,_.CNj)}))}X.expandableVideoDescriptionBodyRenderer||
X.videoDescriptionHeaderRenderer||e.push(X)}return{items:e}}}},
constructWarning_:function(q){return{text:_.jN(q),type:"WARNING"}},
isPlaShelfEnabled_:function(q){if((this.get("adPlacements",q)||[]).length)return!0;q=this.get("playerAds",q)||[];return!(!q.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",q[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var q=this;_.t7(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var w=this.getScrollTop()>0;this.gestures_&&(w?this.gestures_.detach():this.gestures_.attach());w!==this.showFullerscreenEdu_&&_.T("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=w,_.BR(this).getPlayerPromise().then(function(u){u.updateFullerscreenEduButtonVisibility(q.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.t7(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var q=this;this.commentsReady=!1;_.pi.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.mg(_.pi,function(){q.setComments_()},1E3)},
setComments_:function(){if(!_.T("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.D_("cmi");_.pi.cancelJob(this.setCommentsJobId_);var q=this.getPageContents(this.data);if(q&&q.length){q=_.P(q);for(var w=q.next();!w.done;w=q.next())if(w=w.value,this.get("itemSectionRenderer.sectionIdentifier",w)==="comment-item-section"){this.comments=w.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.t7(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.T("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.T("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.D_("cmc")},
doRemoveComments_:function(){this.comments={};_.T("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.pi.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.pi.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(q,w){var u=_.C(w.endpoint,_.LN);u&&(!(w=this.get("data.currentVideoEndpoint.watchEndpoint"))||u.videoId!==w.videoId||u.playlistId&&u.playlistId!==w.playlistId||u.index!==void 0&&u.index!==w.index||typeof u.startTimeSeconds!=="number"||(q.stopPropagation(),this.setScrollTop(0),_.BR(this).getPlayerPromise().then(function(y){var e=u.startTimeSeconds;y.seekTo(e);y.wakeUpControls();e<y.getDuration()&&y.playVideo()})))},
updatePlayerStartTime_:function(){var q=_.qaq();"t"in q&&(q=_.Nzc(q.t),this.player.seekTo(q,!0))},
updateTitleFromWatchNext:function(q){q=this.getPageContents(q);var w,u;(q=_.lA(q==null?void 0:(w=q[0])==null?void 0:(u=w.videoPrimaryInfoRenderer)==null?void 0:u.title))&&_.t7(this.hostElement,"yt-update-title",q)},
updateTitle_:function(q){q=this.get("videoDetails.title",q)||"";_.t7(this.hostElement,"yt-update-title",q)},
syncWithRemoteVideo_:function(q,w,u){if(this.active&&this.player){var y=this.player.getVideoData();if(y.video_id===u&&(u=y.list,_.T("polymer_enable_mdx_queue")&&u&&u.startsWith("RQ")&&(u=void 0),y.video_id!==q||u!=w)){var e;_.T("kevlar_player_watch_endpoint_navigation")?e=_.mnl(_.nRh(q,w)):e=this.buildWatchEndpoint_(q,w);_.t7(this.hostElement,"yt-navigate",{endpoint:e,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(q,w,u){return _.uA(q,w,u)},
initDclkstatus_:function(){_.s_6()},
attachWatchPageSkeleton_:function(){var q=document.querySelector("#watch-page-skeleton");if(q){var w=q.querySelector("#primary-info"),u=q.querySelector("#secondary-info"),y=q.querySelector("#related");w&&_.A(this.hostElement).querySelector("#info-skeleton").appendChild(w);u&&_.A(this.hostElement).querySelector("#meta-skeleton").appendChild(u);y&&(_.A(this.hostElement).querySelector("#related-skeleton").appendChild(y),this.watchNextSkeletonEl_=y);_.UN(q)}},
handlePlayerUpdated_:function(){_.BR(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(q,w){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof w!=="undefined"){var u=this.watchNextSkeletonEl_.children,y=q&&q.indexSplices.length?q.indexSplices[0].index:0;q=Math.min(this.watchNextShownItems.length,u.length);w||(y=0,q=u.length);for(w=y;w<q;w++)u[w].classList.add("hidden")}},
onPlayerFullscreenChange_:function(q){_.T("external_fullscreen")||_.Pw(this.hostElement,"yt-player-fullscreen",[q.fullscreen])},
onFullscreenChange_:function(q){this.fullscreen=q;this.gestures_&&this.gestures_.update(this.fullscreen);var w=_.BR(this);w.getPlayerPromise().then(function(u){u.setFauxFullscreen(!!_.uy())});
this.updateFullBleedElementLocations();q&&(w.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(q,w){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!w},
computeIsDonationShelfCollapsed_:function(q){return q},
computeShouldShowMerchShelf:function(q,w){return w&&!!q},
computeResponseHasComments:function(q){var w,u,y,e,t;return!!(q==null?0:(w=q.contents)==null?0:(u=w.twoColumnWatchNextResults)==null?0:(y=u.results)==null?0:(e=y.results)==null?0:(t=e.contents)==null?0:t.some(function(X){var G;return(X==null?void 0:(G=X.itemSectionRenderer)==null?void 0:G.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(q,w,u,y){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&y?!1:!!q&&!!Object.keys(q).length&&!w},
identity:_.gj,onWindowResized_:function(q){this.windowSize_=q;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(q){var w=this;q&&q.type!=="dataloaded"&&q.type!=="dataupdated"||_.BR(this).getPlayerPromise().then(function(u){var y=u.getPlayerState();y!==5&&y!==0&&(u=1/u.getVideoAspectRatio(),w.videoHeightToWidthRatio_!==u&&(w.videoHeightToWidthRatio_=u))})},
schedulePlayerSizeUpdate_:function(q){var w=this,u=_.T("kevlar_watch_while_v2")||_.T("web_watch_pip"),y=function(){if(w.watchMetadata){var e,t;(t=(e=w.watchMetadata).resize)==null||t.call(e)}_.BR(w).getPlayerPromise().then(function(X){if(_.T("kevlar_set_internal_player_size")){if(!u||!w.isMiniplayerActive()){var G=w.calculateCurrentPlayerSize_();X.setInternalSize(G.width,G.height)}}else X.setSize(NaN,NaN);_.T("kevlar_watch_while")&&w.updateWatchWhileScrollThreshold_()})};
q?y():_.dE(_.pi,y)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(q){this.set("data.survey",q.detail)},
onYtShowSurveyCommand_:function(q){this.set("data.survey",_.C(q,_.dgA).survey)},
onDownloadedVideoDeleted:function(q){var w=this,u,y;return _.F(function(e){if(e.nextAddress==1){if(!w.active||(u=w.playerData)==null||!u.offlineState||w.videoId!==q)return e.return();(y=w.player)==null||y.stopVideo();_.Hh().navigatingAwayFromWatchDeletedVideo=!0;_.H6(_.fjl,w.hostElement);return _.H(e,_.Hh().navigationFinishPromise,2)}_.Hh().navigatingAwayFromWatchDeletedVideo=!1;_.HI(e)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var q;this.theater?q=_.zT(.5625*this.windowSize_.width,480,this.windowSize_.height-185):q=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==q&&(this.watchWhileScrollThreshold_=q,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var q=_.A(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&q){var w=this.windowSize_.height>=624,u=this.active?this.getScrollTop():0;!q.active&&w&&u>=this.watchWhileScrollThreshold_?(q.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):q.active&&(!w||u<this.watchWhileScrollThreshold_&&!_.uy())&&(q.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var q=_.A(this.hostElement).querySelector("#secondary-inner");if(q){var w=_.A(this.hostElement).querySelector("#below"),u=_.A(this.hostElement).querySelector("#secondary"),y=_.A(this.hostElement).querySelector("#comments");y&&u&&w&&(this.defaultTwoColumnLayout?(q.appendChild(y),u.appendChild(q)):(w.appendChild(y),_.Dk(w,q)))}}},
isTwoColumnsChanged_:function(q,w){if(q!==!0||w!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(q=_.A(this.hostElement).querySelector("#secondary-inner"))){w=_.A(this.hostElement).querySelector("#below");var u=_.A(this.hostElement).querySelector("#secondary"),y=_.A(this.hostElement).querySelector("#comments");y&&u&&w&&(this.isTwoColumns_?(q.appendChild(y),u.appendChild(q)):(w.appendChild(y),
_.Dk(w,q)))}}else{q=!_.T("live_chat_over_engagement_panels");w=_.A(this.hostElement).querySelector("#chat-container");u=_.A(this.hostElement).querySelector("#panels");var e=_.A(this.hostElement).querySelector("#alerts");y=_.A(this.hostElement).querySelector("#playlist");var t=_.A(this.hostElement).querySelector("#related"),X=_.A(this.hostElement).querySelector("#donation-shelf"),G=_.A(this.hostElement).querySelector("#comments");this.isTwoColumns_?(e=_.A(this.hostElement).querySelector("#secondary-inner"),
q&&e.appendChild(u),e.appendChild(y),_.T("web_watch_theater_chat")||e.appendChild(w),q||e.appendChild(u),e.appendChild(X),e.appendChild(t)):(q&&_.Vs(u,e),_.Vs(y,e),_.T("web_watch_theater_chat")||_.Vs(w,e),q||_.Vs(u,e),_.Vs(X,e),G&&_.Vs(t,G));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.T("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.T("web_watch_enable_fs_squeezeback_panels")&&_.T("web_watch_theater_chat")){var q=_.A(this.hostElement).querySelector("#chat-container"),w=this.theater&&!this.fullscreen||_.T("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&w?_.T("web_watch_theater_chat_beside_player")?(w=_.A(this.hostElement).querySelector("#panels-full-bleed-container"),(q==null?void 0:q.parentElement)!==
w&&w.append(q),this.panelsBesidePlayer=!0):_.T("web_watch_theater_fixed_chat")&&(w=_.A(this.hostElement).querySelector("#columns"),(q==null?void 0:q.parentElement)!==w&&w.append(q),this.fixedPanels=!0):(_.T("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.T("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),w=_.A(this.hostElement).querySelector("#playlist"),q&&w?_.fO(q,w):_.Y8(new _.fv("Missing element when updating chat location",{"chatContainer defined":!!q,"playlist defined":!!w})));
this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(q,w){return _.T("sw_metadata_vis_toggle_ks")?!0:!!q||!!w},
computeForceDarkPanelTheme:function(q){return _.T("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&q:!1},
safeUpdateStyles:function(q){try{_.Pj(this.hostElement,q)}catch(w){_.Y8(w)}},
videoHeightToWidthRatioChanged_:function(q,w){w&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(q){this.videoHeightToWidthRatio_=1/q},
computeIsVerticalVideo_:function(q){return q>=1},
computeIsFourThreeToSixteenNineVideo_:function(q){return q<=.7501&&q>=.5624},
computeIsExtraWideVideo_:function(q){return q<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.BR(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.BR(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.apj(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(q){var w=_.Pd(q)||0;_.tm(q,w+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var q=_.Pd("yt-fullerscreen-edu-button-click-count")||0,w=_.Pd("yt-fullerscreen-edu-button-shown-count")||0,u=_.Fc("external_fullscreen_button_shown_threshold"),y=q>=_.Fc("external_fullscreen_button_click_threshold")||w>=u;_.BR(this).getPlayerPromise().then(function(e){e.updateFullerscreenEduButtonSubtleModeState(y)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(q,w){return w},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.tG().resolve(_.z5).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var q=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.pi.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.pi.addLowPriorityJob(function(){q.fullHeightPanelPositionUpdateJobId=0;var w=_.A(q.hostElement).querySelector("#secondary"),u=_.A(q.hostElement).querySelector("#fixed-secondary");w=w.getBoundingClientRect();var y=w.width;q.swatcherooSqueezeback&&
(y+=_.Zk);if(q.swatcherooSqueezeback){var e=_.A(q.hostElement).querySelector("#squeezeback-constraining-container");e.style.width=y+"px";e.style.flex="0 0 "+y+"px"}u.style.width=y+"px";u.style.left=w.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var q=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.pi.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.pi.addLowPriorityJob(function(){q.panelMaxHeightUpdateJob_=0;var w;!q.isTwoColumns_||q.theater||q.fullscreen?w=460:w=q.calculateNormalPlayerSize_().height;var u=w+"px";_.T("live_chat_taller_height")&&!q.theater&&(u="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.T("live_chat_medium_height")&&!q.theater&&(u="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.T("live_chat_scaled_height")&&!q.theater&&(u="calc(100vh - var(--ytd-toolbar-height) - 238px)");q.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":w+"px","--ytd-watch-flexy-chat-max-height":u,"--ytd-watch-flexy-structured-description-max-height":w+"px","--ytd-watch-flexy-comments-panel-max-height":w+"px","--ytd-comments-engagement-panel-content-height":w+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(q){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",q)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.nq(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(q){var w=_.A(this.hostElement).querySelector("#engagement-panel-scrim");q?w.addEventListener("tap",_.Fj(this,this.onEngagementPanelScrimClick_)):w.removeEventListener("tap",_.Fj(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(q){if(this.hostElement.contains(q)&&!this.scrollToAnimation_.isAnimating()){var w=q.offsetTop-24;q=q.offsetTop+q.offsetHeight+24;var u=this.getPageScrollingElement(),y=this.getScrollTop(),e=y+u.clientHeight-56;if(w<y+56)w-=56;else if(q>e)w=q-u.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,w),500)}},
onYtSignalActionScrollToComments:function(){var q=this.hostElement.querySelector("#comments");if(q&&!this.scrollToAnimation_.isAnimating()){q=q.offsetTop-56-24;if(_.T("kevlar_comment_teaser_scroll_to_midpoint")&&(q-=_.Gc().height/3,q<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,q),500)}},
onYtEngagementPanelVisibleChanged:function(q,w,u){if(this.active&&this.trackEngagementPanelVisibility&&!_.Tzc.includes(u)){if(w==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback)if(this.onSetPlaylistCollapsed(!0),_.X4(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]),_.T("kevlar_single_panel_fullscreen")){var y=_.tG().resolve(_.ib);this.visiblePanelIdentifiers_.forEach(function(e){e!==u&&y.hidePanel(e)})}this.visiblePanelIdentifiers_.add(u)}w!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&w!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(u);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(q){return q?"":"watch-active-metadata"},
computeNewMetadataClass:function(q){return q?"watch-active-metadata":""},
computeFullBleedPlayer:function(q,w,u){return q||w||this.enableFullBleedSingleColumnDefaultPlayer&&!u},
computeDefaultLayout:function(q){return!q},
computeDefaultTwoColumnLayout:function(q,w){return!q&&w},
updatePanelsLocation:function(){if(_.T("web_watch_enable_fs_squeezeback_panels")){var q=_.A(this.hostElement).querySelector("#below"),w=_.A(this.hostElement).querySelector("#panels"),u=_.A(this.hostElement).querySelector("#chat-container"),y=_.A(this.hostElement).querySelector("#panels-full-bleed-container"),e=_.A(this.hostElement).querySelector("#secondary-inner");this.fullscreen||this.theater&&this.iMaxTheaterMode?(y.appendChild(w),y.appendChild(u)):this.isTwoColumns_?(_.Dk(e,w),_.Dk(e,u)):(q.appendChild(w),
q.appendChild(u))}},
swatcherooUpdatePanelsLocation:function(q,w,u,y,e,t){if(this.is==="ytd-watch-grid"){w=q&&!w;this.swatcherooSplitScroll&&(w?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));u=_.A(this.hostElement).querySelector("#panels");var X=_.A(this.hostElement).querySelector("#playlist"),G=_.A(this.hostElement).querySelector("#fixed-secondary"),n=_.A(this.hostElement).querySelector("#fixed-below"),
N=_.A(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),Q=_.A(this.hostElement).querySelector("#chat-container");t&&(q?G.appendChild(u):n.appendChild(u));e?q?G.appendChild(Q):n.appendChild(Q):_.fO(Q,N);y?q?G.appendChild(X):n.appendChild(X):_.fO(X,N);this.swatcherooSplitScroll&&(q=_.A(this.hostElement).querySelector("#secondary"),y=_.A(this.hostElement).querySelector("#columns"),e=_.A(this.hostElement).querySelector("#fixed-columns-secondary"),w?e.appendChild(q):
y.appendChild(q))}},
computeMetadataSkinnyMode:function(q,w,u){return this.is!=="ytd-watch-grid"?!1:q?u:w},
computeWatchWhilePanelsActive:function(q,w){return q||w},
computeNoBorderOnChat:function(q){return _.T("web_watch_theater_chat_no_border")&&q},
computeLiveChatPresentAndExpanded:function(q,w){return q&&!w},
computePanelExpanded:function(q,w,u){return q||w||u},
computeSqueezeback:function(q,w,u){if(_.T("web_watch_enable_fs_squeezeback_panels")){var y=this.iMaxTheaterMode&&this.theater;return(q||w)&&(u||y)}},
computeSwatcherooSqueezeback:function(q,w,u){return this.is!=="ytd-watch-grid"||_.T("ww_squeezeback_killswitch")?!1:q&&w&&u},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(q){_.BR(this).getPlayerPromise().then(function(w){var u;(u=w.changeMarkerVisibility)==null||u.call(w,_.C(q,_.cL).isVisible||!1,_.C(q,_.cL).entityKeys||[],_.C(q,_.cL).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(q){this.liveChatCollapsed=q.detail;_.Mt().dispatch(_.Ug6(q.detail))},
onSetPlaylistCollapsed:function(q){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!q)},
provideRenderingData:function(q,w){switch(q){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=w;break;case "PRIMARY_INFO":_.T("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=w);this.videoPrimaryInfoRendererValue=w==null?void 0:w.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.T("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=w);this.videoSecondaryInfoRendererValue=w==null?void 0:w.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
w;break;case "CLARIFICATION":this.clarifyBoxValue=w;break;case "LIVE_CHAT":this.conversationBar=w;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=w;break;case "PLAYLIST":this.externalPlaylistData_=w!=null?w:{};break;case "MERCH_SHELF":this.merchShelfValue=w==null?void 0:w.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=w;break;case "TICKET_SHELF":this.ticket=w;break;case "OFFER_MODULE":this.offerModule=w;break;case "LIMITED_STATE":this.limitedStateValue=
w;break;case "DONATION_SHELF":this.donation=w;break;case "ALERTS":this.alertsValue=w;break;case "COMMENTS":this.comments=w;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=w;break;case "ENGAGEMENT_PANELS":this.engagementPanels=w;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=w;break;case "RICH_GRID_RENDERER":this.richGridRendererData=w;break;case "EXPANDABLE_METADATA":this.expandableMetadata=w;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
w}},
toggleCinematicsActive:function(q){this.cinematicsActive=q},
isMiniplayerActive:function(){return _.tG().resolve(_.$X).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var dZa;_.Cox=function(q){return q.shorts.isShortsActive};
_.O4K=function(q){return q.findIndex(function(w){return dZa.indexOf(w.tagName)>-1})>-1};
_.owH=function(q){return _.tr({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:q}})};
_.VZx=function(){var q=_.tG().resolve(_.xu);_.auH(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(q.isFullscreenEnabled()?_.yY(document.documentElement):_.yY6(document.documentElement))};
dZa=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.Mh=new Map;_.Mh.set(32,59972);_.Mh.set(27,50765);_.Mh.set(70,60102);_.Mh.set(76,60221);_.Mh.set(77,60222);_.Mh.set(74,60223);_.Mh.set(84,60224);_.Mh.set(38,61941);_.Mh.set(40,61942);_.Mh.set(73,62521);_.Mh.set(67,62522);_.Mh.set(80,63390);_.Mh.set(78,63397);_.Mh.set(75,59972);_.Mh.set(188,63385);_.Mh.set(190,63384);_.Mh.set(36,63387);
_.Mh.set(35,63386);_.Mh.set(37,63388);_.Mh.set(39,63389);_.Mh.set(79,63423);_.Mh.set(87,63424);_.Mh.set(107,63426);_.Mh.set(109,63425);_.Mh.set(65,63428);_.Mh.set(83,63430);_.Mh.set(68,63429);_.Mh.set(221,63431);_.Mh.set(219,63432);_.Mh.set(97,63439);_.Mh.set(98,63440);_.Mh.set(99,63441);_.Mh.set(100,63442);_.Mh.set(101,63443);_.Mh.set(102,63444);_.Mh.set(103,63445);_.Mh.set(104,63446);_.Mh.set(105,63447);_.K2=new Map;_.K2.set(80,63390);_.K2.set(78,63397);_.K2.set(188,63400);_.K2.set(190,63401);
_.K2.set(191,60765);_.K2.set(13,247917);_.Be=new Map;_.xi=new Map;
}catch(e){_._DumpException(e)}
try{
var dCK,V9x,fDA,mC6;_.raq=function(q){return q.ui.guideIsVisibleButNotPersistent};
_.UCh=function(q){return q.ui.tabGesturesIsActive};
_.TBj=function(){var q=_.GQ("service_worker_scope");try{return navigator.serviceWorker.getRegistration(q)}catch(w){return Promise.reject(w)}};
_.CZm=function(q){return!(!q||!q.pushManager)};
dCK=function(){return _.TBj().then(_.CZm).catch(function(){return!1})};
_.Ojx=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?dCK():Promise.resolve(!1)};
_.omB=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
V9x=function(){var q,w,u;return _.F(function(y){switch(y.nextAddress){case 1:return _.H(y,_.T5.getInstance(),2);case 2:q=y.yieldResult;if(!q){w=void 0;y.jumpTo(3);break}return _.H(y,q.get("lmqf"),4);case 4:w=y.yieldResult;case 3:switch((u=w)||(u="SD"),u){case "HD":return y.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return y.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return y.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return y.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return y.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
fDA=function(q){var w,u,y;return _.F(function(e){if(e.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.T("disable_av1_setting")){var t=window.localStorage["yt-player-av1-pref"];t=t==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":t==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else t="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(w=q===t)return e.jumpTo(2);y=u=q;return _.H(e,V9x(),3)}e.nextAddress!=2&&(w=y===e.yieldResult);return e.return(w)})};var Aa6;var Jax=_.Ul.IronButtonState,zhx=(0,_.I8)(HTMLElement);
_.o9({_template:function(){if(Aa6!==void 0)return Aa6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;mC6===void 0&&(mC6=document.createElement("template"));var y=mC6;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return Aa6=q},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[Jax,_.iG,_.Tw,_.oZ],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(q){var w=(0,_.Td)(this);w.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:q});w.shadowRoot.appendChild(q);return zhx.prototype._attachDom.call(this,q)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var q=this.contentElement;q&&q.selectedItem&&this._setSelectedItem(q.selectedItem)},
get contentElement(){for(var q=_.fN(this.$.content).getDistributedNodes(),w=0,u=q.length;w<u;w++)if(q[w].nodeType===Node.ELEMENT_NODE)return q[w]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(q){this._setSelectedItem(q.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(q){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q)===this&&this.open()},
_selectedItemChanged:function(q){var w="";q?w=q.label||q.getAttribute("label")||q.textContent.trim():w="";this.value=w;this._setSelectedItemLabel(w)},
_computeMenuVerticalOffset:function(q,w){return w?w:q?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var q=this.opened?"true":"false",w=this.contentElement;w&&w.setAttribute("aria-expanded",q)}});_.vD=new _.M("navigateAction");var aDq=new _.M("formRenderer");var bd=function(){var q=_.Na.apply(this,arguments)||this;q.showInput=!1;return q};
_.O(bd,_.Na);_.k=bd.prototype;_.k.detached=function(){this.showInput&&window.removeEventListener("click",_.Fj(this,this.closeOnOutsideClick_))};
_.k.stopPropagation_=function(q){this.showInput&&q.stopPropagation()};
_.k.closeOnOutsideClick_=function(q){this.closeOnOutsideClickCondition(q)&&(this.showInput=!1,window.removeEventListener("click",_.Fj(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.k.closeOnOutsideClickCondition=function(){return!0};
_.k.closeOnOutsideClickHandler=function(){};
_.k.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Fj(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.k.openOnClickHandler=function(){};
_.k.showInputChanged=function(){};
_.k.setShowInput=function(q){this.showInput=q};
bd.prototype.setShowInput=bd.prototype.setShowInput;bd.prototype.showInputChanged=bd.prototype.showInputChanged;bd.prototype.openOnClickHandler=bd.prototype.openOnClickHandler;bd.prototype.openOnClick_=bd.prototype.openOnClick_;bd.prototype.closeOnOutsideClickHandler=bd.prototype.closeOnOutsideClickHandler;bd.prototype.closeOnOutsideClickCondition=bd.prototype.closeOnOutsideClickCondition;bd.prototype.closeOnOutsideClick_=bd.prototype.closeOnOutsideClick_;bd.prototype.stopPropagation_=bd.prototype.stopPropagation_;
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],bd.prototype,"showInput",void 0);_.c([_.Gm("click"),_.Gm("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],bd.prototype,"stopPropagation_",null);_.c([_.nL("showInput"),_.h("design:type",Function),_.h("design:paramtypes",[Boolean]),_.h("design:returntype")],bd.prototype,"showInputChanged",null);bd=_.c([_.Q6()],bd);_.DCm=[bd.prototype];var Zjm;var psc;var Y5=function(){return _.Y.apply(this,arguments)||this};
_.O(Y5,_.Y);_.k=Y5.prototype;_.k.computePreselectedOption=function(q,w){return w===this.itemSelected_?q:void 0};
_.k.dataChanged_=function(){var q=this;this.preselectedSubreason=this.itemSelected_=-1;var w;(w=this.data)!=null&&w.key&&_.KJ(this,function(){var u,y=Number((u=q.data)==null?void 0:u.key);!Number.isNaN(y)&&(q.itemSelected_=y,u=(u=(q.data.items||[])[y])&&u.optionSelectableItemRenderer&&u.optionSelectableItemRenderer.preselectedIndex)&&(q.preselectedSubreason=u)})};
_.k.isSubReasonHidden_=function(q,w){return q!=w};
_.k.onTopItemSelected_=function(q,w){for(var u=_.A(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),y=0,e=u.length;y<e;y++)u[y].select(0);_.Pw(this.hostElement,"yt-report-form-update",[w.item.value]);q.stopPropagation()};
_.k.onItemSelected_=function(q,w){_.Pw(this.hostElement,"yt-report-form-update",[w.item.value]);q.stopPropagation()};
_.k.getItem_=function(q){return q.serviceItem?q.serviceItem:q.navigationItem?q.navigationItem:q.optionSelectableItemRenderer?q.optionSelectableItemRenderer:null};
_.k.computeText_=function(q){return(q=this.getItem_(q))?this.ytRendererBehavior.getSimpleString(q.text):null};
_.k.validate=function(){return this.itemSelected_!==-1};
_.k.computeAriaLabel_=function(q){var w=_.lA(q.text);(q=q.accessibility&&q.accessibility.accessibilityData&&q.accessibility.accessibilityData.label)&&(w+=". "+q);return w};
_.k.computeItemSelected_=function(q){return q};
_.k.preventSelection_=function(q){q.stopPropagation();this.tooltipTapped=!0};
_.k.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.k.updateItemSelectedFromBinding=function(q){this.itemSelected_=q.detail.value};
_.k.save=function(){var q;this.validate()&&(q=this.data)!=null&&q.items&&(q=this.data.items[this.itemSelected_],q!=null&&q.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(q.optionSelectableItemRenderer.submitEndpoint)||_.GM(this.hostElement,[q.optionSelectableItemRenderer.submitEndpoint])))};
Y5.prototype.onPaperRippleTransitionEnd_=Y5.prototype.onPaperRippleTransitionEnd_;Y5.prototype.dataChanged_=Y5.prototype.dataChanged_;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Y5.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Y5.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Y5.prototype,"data",void 0);_.c([_.v({value:-1}),_.h("design:type",Number)],Y5.prototype,"itemSelected_",void 0);
_.c([_.v({computed:"computeItemSelected_(itemSelected_)"}),_.h("design:type",Number)],Y5.prototype,"value",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],Y5.prototype,"restoreFocusOnClose",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Y5.prototype,"tooltipTapped",void 0);_.c([_.v({value:-1}),_.h("design:type",Number)],Y5.prototype,"preselectedSubreason",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Y5.prototype,"dataChanged_",null);_.c([_.Gm("transitionend"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Y5.prototype,"onPaperRippleTransitionEnd_",null);Y5=_.c([_.JM({is:"yt-options-renderer",disableElementRegistration:!0})],Y5);
_.R(Y5,"yt-options-renderer",function(){if(psc===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;Zjm===void 0&&(Zjm=document.createElement("template"));var y=Zjm;u.call(w,y.content.cloneNode(!0),q.content.firstChild);psc=q}q=psc;return q},{mode:2});var $Cx;var vmx;var bjc;var YYc;var gm6;var Emj;var ge=function(){return _.Y.apply(this,arguments)||this};
_.O(ge,_.Y);ge.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
ge.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
ge.prototype.onTap=function(q){if(this.hostElement.classList.contains("selected")||_.F4(this.hostElement,"yt-share-panel-can-select-contact-action"))q&&q.detail&&(q.detail.x||q.detail.y)&&_.A(this.hostElement).querySelector("#target").blur(),(q=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),q={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:q?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.Pw(this.hostElement,"yt-share-panel-select-contact-action",[q])};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ge.prototype,"ytRendererBehavior",void 0);_.c([_.v({observer:"onDataChanged"}),_.h("design:type",Object)],ge.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.h("design:type",String)],ge.prototype,"componentTitle",void 0);_.c([_.Wj("#thumbnail"),_.h("design:type",Object)],ge.prototype,"thumbnail",void 0);ge=_.c([_.JM({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],ge);
_.R(ge,"yt-enrolled-contact-renderer",function(){if(Emj===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;gm6===void 0&&(gm6=document.createElement("template"));var y=gm6;u.call(w,y.content.cloneNode(!0),q.content.firstChild);Emj=q}q=Emj;return q},{mode:2});var RhB;var cah;var Ey=function(){return _.Y.apply(this,arguments)||this};
_.O(Ey,_.Y);Ey.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
Ey.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Ey.prototype.onTap=function(q){if(this.hostElement.classList.contains("selected")||_.F4(this.hostElement,"yt-share-panel-can-select-contact-action"))q&&q.detail&&(q.detail.x||q.detail.y)&&_.A(this.hostElement).querySelector("#target").blur(),(q=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),q={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:q?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.Pw(this.hostElement,"yt-share-panel-select-contact-action",[q])};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ey.prototype,"ytRendererBehavior",void 0);_.c([_.v({observer:"onDataChanged"}),_.h("design:type",Object)],Ey.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.h("design:type",String)],Ey.prototype,"componentTitle",void 0);_.c([_.Wj("#thumbnail"),_.h("design:type",Object)],Ey.prototype,"thumbnail",void 0);Ey=_.c([_.JM({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],Ey);
_.R(Ey,"yt-suggested-contact-renderer",function(){if(cah===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;RhB===void 0&&(RhB=document.createElement("template"));var y=RhB;u.call(w,y.content.cloneNode(!0),q.content.firstChild);cah=q}q=cah;return q},{mode:2});var Rn=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-share-panel-reset-action":"onReset"};return q};
_.O(Rn,_.Y);Rn.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"}}}}}};
Rn.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.Pw(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
Rn.prototype.onReset=function(){for(var q=_.A(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),w=q.length-1;w>=0;w--)q[w].classList.toggle("selected")};
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Rn.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Rn.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Rn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v({observer:"onDataChanged"}),_.h("design:type",Object)],Rn.prototype,"data",void 0);
Rn=_.c([_.JM({is:"yt-contact-section-renderer",disableElementRegistration:!0})],Rn);
_.R(Rn,"yt-contact-section-renderer",function(){if(YYc===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;bjc===void 0&&(bjc=document.createElement("template"));var y=bjc;u.call(w,y.content.cloneNode(!0),q.content.firstChild);YYc=q}q=YYc;return q},{mode:2});var cD=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return q};
_.O(cD,_.Y);_.k=cD.prototype;_.k.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"}}}};
_.k.onYtRefreshFormCommand=function(q){var w;(q=_.C((w=_.C(q,_.IST))==null?void 0:w.formRenderer,aDq))&&this.set("data",q)};
_.k.reset=function(){var q=_.A(this.hostElement).querySelector("#fields").children;q=_.P(q);for(var w=q.next();!w.done;w=q.next())w=w.value,w.reset&&w.reset()};
_.k.getForm=function(){var q={},w=_.A(this.hostElement).querySelector("#fields").children;w=_.P(w);for(var u=w.next();!u.done;u=w.next()){u=u.value;if(!u.validate())return null;q[u.data.key]=u.value}return q};
_.k.submitFormFields=function(){if(this.fields)for(var q=_.P(this.fields),w=q.next();!w.done;w=q.next())w=w.value,w.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?w.save():w.nodeName==="YT-OPTIONS-RENDERER"&&w.save()};
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],cD.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],cD.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],cD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],cD.prototype,"data",void 0);_.c([_.s6("#fields > *"),_.h("design:type",Array)],cD.prototype,"fields",void 0);
cD=_.c([_.JM({is:"yt-form-renderer",disableElementRegistration:!0})],cD);
_.R(cD,"yt-form-renderer",function(){if(vmx===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;$Cx===void 0&&($Cx=document.createElement("template"));var y=$Cx;u.call(w,y.content.cloneNode(!0),q.content.firstChild);vmx=q}q=vmx;return q},{mode:2});var SYA;var ST=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return q};
_.O(ST,_.Y);ST.prototype.onCheckboxChange=function(q){this.data&&(q=(this.checked=_.he(q).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.tG().resolve(_.PG).resolveCommand(q,{form:{element:this.hostElement}})};
ST.prototype.handleUpdateCheckboxCommand=function(q){(q=_.C(q,_.DGj))&&this.data&&this.data.id===q.id&&(this.set("data.disabled",q.disabled),this.set("data.title",q.title))};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],ST.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ST.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],ST.prototype,"checked",void 0);ST=_.c([_.E({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],ST);
_.R(ST,"ytd-settings-checkbox-renderer",function(){if(SYA!==void 0)return SYA;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return SYA=q},{mode:1});var hh4;var hQ=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return q};
_.O(hQ,_.Y);hQ.prototype.dataChanged=function(){var q=this,w;return _.F(function(u){if(u.nextAddress==1)return q.radio.removeAttribute("checked"),!q.data||!q.data.id||q.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.omB()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(w=q.data&&q.data.id)?_.H(u,fDA(q.data.id),4):u.jumpTo(3):(q.set("data.hidden",!0),u.jumpTo(0));u.nextAddress!=3&&(w=u.yieldResult);w&&_.Pw(q.hostElement,"yt-select-settings-radio-option",[q.data.id]);_.HI(u)})};
hQ.prototype.onButtonChanged=function(q){_.he(q).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.tG().resolve(_.PG).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.Pw(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
hQ.prototype.onSelectOption=function(q){this.data&&this.data.id&&(this.data.id===q?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
hQ.prototype.dataChanged=hQ.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],hQ.prototype,"ytActionHandlerBehavior",void 0);_.c([_.Wj("#radio"),_.h("design:type",Object)],hQ.prototype,"radio",void 0);_.c([_.v(),_.h("design:type",Object)],hQ.prototype,"data",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],hQ.prototype,"dataChanged",null);hQ=_.c([_.E({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],hQ);
_.R(hQ,"ytd-settings-radio-option-renderer",function(){if(hh4!==void 0)return hh4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return hh4=q},{mode:1});var jwH;var jT=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return q};
_.O(jT,_.Y);
jT.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"}}}};
jT.prototype.handleUpdateTextCommand=function(q){(q=_.C(q,_.Zyj))&&this.data&&this.data.id===q.id&&this.set("data",q)};
jT.prototype.handleUpdateConnectedAppRendererCommand=function(q){if(_.C(q,_.vf$)&&this.data){var w,u;if(q=(w=_.C(q,_.vf$))==null?void 0:(u=w.newConnectedAppRenderer)==null?void 0:u.connectedAppRenderer)this.data=q}};
jT.prototype.computeConnectedAppStyle=function(q){return q.style?q.style.toLowerCase().replace(/_/g,"-"):""};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],jT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],jT.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],jT.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.h("design:type",String)],jT.prototype,"connectedAppStyle",void 0);jT=_.c([_.E({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],jT);
_.R(jT,"ytd-connected-app-renderer",function(){if(jwH!==void 0)return jwH;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return jwH=q},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.ZH("iuT5Oc");

_.pY();
}catch(e){_._DumpException(e)}
try{
_.ZH("L3n37");
var hvc=function(q){return q.watch.isLearningJourneyActive},j_q=_.oV(115994),lp6=_.oV(115993),Liq=function(q,w,u){var y=this;
var e=u.dragDownAction;this.layer=0;this.JSC$20377_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return y.dragDownAction()}}}};
this.JSC$20377_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return y.dragDownAction()}}}};
this.fullscreen=!1;var t=_.Qz();_.tb(t,j_q,this.layer);_.tb(t,lp6,this.layer);this.dragDownAction=function(){e();_.gm(t,{visualElement:y.fullscreen?j_q:lp6})};
this.gesture=new _.FY(q,w,this.JSC$20377_watchConfig,"pandown");this.attach()};
Liq.prototype.attach=function(){this.gesture.attach()};
Liq.prototype.detach=function(){this.gesture.detach()};
Liq.prototype.update=function(q){this.fullscreen=q;this.gesture.config=q?this.JSC$20377_watchFullScreenConfig:this.JSC$20377_watchConfig};var MGT=function(q){_.L2.call(this);var w=this;this.rootElement=q;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return w.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(u){w.initOrDisposeActiveModules(u)}));
this.onAttached()};
_.O(MGT,_.L2);_.k=MGT.prototype;_.k.getRoot=function(){return this.rootElement};
_.k.getElement=function(q){return this.rootElement.getElement(q)};
_.k.setPlayerResponse=function(q){this.playerResponse=q;this.publish("PLAYER_RESPONSE_UPDATED",q)};
_.k.getPlayerResponse=function(){return this.playerResponse};
_.k.setWatchNextResponse=function(q){this.watchNextResponse===q?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=q,this.publish("WATCH_NEXT_RESPONSE_UPDATED",q))};
_.k.getWatchNextResponse=function(){return this.watchNextResponse};
_.k.registerActionHandler=function(q,w){var u=this;if(_.T("web_watch_controller_reg_multiple_handlers_killswitch")){var y={};_.Ln(_.lD.getInstance(),(y[q]=w,y),this.getRoot())}else this.actionHandlers.has(q)||(this.actionHandlers.set(q,[]),y={},_.Ln(_.lD.getInstance(),(y[q]=function(){var e=_.Cj.apply(0,arguments);return(u.actionHandlers.get(q)||[]).map(function(t){return t.apply(null,_.Cm(e))})},y),this.getRoot())),this.actionHandlers.get(q).push(w)};
_.k.unregisterActionHandler=function(q){if(_.T("web_watch_controller_reg_multiple_handlers_killswitch")){var w={};_.M5(_.lD.getInstance(),(w[q]=!0,w),this.getRoot())}else(w=this.actionHandlers.get(q))?(w.pop(),w.length===0&&(w={},_.M5(_.lD.getInstance(),(w[q]=!0,w),this.getRoot()),this.actionHandlers.delete(q))):_.Y8(new _.fv("Attempted to unregister an action handler which is not registered.",q))};
_.k.addPageDisposeJob=function(q){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.hz(this.rootElement.pageDisposeJobs,q)};
_.k.removePageDisposeJob=function(q){this.rootElement.pageDisposeJobs&&_.MM(this.rootElement.pageDisposeJobs,q)};
_.k.dispatchEvent=function(q,w){_.t7(this.rootElement,q,w)};
_.k.provideRenderingData=function(q,w){this.rootElement.provideRenderingData(q,w)};
_.k.scrollWatchTo=function(q,w){var u;(u=this.watchScrollManager)==null||u.scrollWatchTo(q,w)};
_.k.focusOnPlayer=function(){var q=this.getElement("PLAYER");_.KJ(q,function(){if(q&&q.firstElementChild){var w=q.querySelector(".html5-video-player");w&&(_.ho(_.tG().resolve(_.fT)),w.focus())}else _.Y8(Error("km"))})};
_.k.updateCinematicFullscreenConfig=function(){var q=!!this.rootElement.theater,w=!!this.rootElement.fullscreen,u;(u=this.watchCinematicManager)==null||_.SmB(u,w,q)};
_.k.subscribeToActiveChanged=function(q,w){w=w===void 0?!0:w;var u=_.se(_.Mt(),hvc,function(y){q(y)});
w&&q(hvc(_.Mt().getState()));return u};
_.k.isActive=function(){return hvc(_.Mt().getState())};
_.k.onAttached=function(){var q=_.T("external_fullscreen");_.T("use_unified_flag_accessor")&&(q=_.tG().resolve(_.AzT).retriever.getFlag(_.R1k));(q||_.RX("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.k.initPersistentModules=function(){if(_.T("kevlar_watch_flexy_theater_manager")){var q=new _.rkH(this);_.sN(this,q)}q=new _.eyH(this);_.sN(this,q);q=new _.mc(this);_.sN(this,q);q=new _.pu(this);_.sN(this,q);q=new _.a4H(this);_.sN(this,q);q=new _.Jf(this);_.sN(this,q);_.T("kevlar_watch_flexy_playlist_manager")&&(q=new _.ZeA(this),_.sN(this,q))};
_.k.initOrDisposeActiveModules=function(q){q?(this.watchScrollManager=new _.vL(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.ie6(this)),this.activeModules.push(new _.CL6(this)),this.activeModules.push(new _.E3h(this)),this.activeModules.push(new _.$v(this)),_.T("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.Vu4(this)),this.activeModules.push(new _.Oe6(this)),_.T("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.c4q(this)),
_.T("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.pcc(this)),_.T("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.gqV(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.T("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.mfT(this)),_.T("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.uYj(this)),q=_.T("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.T("kevlar_watch_flexy_comments_manager")&&!q&&this.activeModules.push(new _.KCa(this)),_.T("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Af(this)),this.activeModules.push(new _.f0B(this)),this.activeModules.push(new _.UfV(this)),_.T("web_enable_timely_actions")&&this.activeModules.push(new _.zmc(this)),_.T("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.qmH(this)),_.T("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.S_V(this)),
_.T("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.JnT(this)),_.T("web_player_rtr_ctrls")&&this.activeModules.push(new _.uxK(this))):(_.xS(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.k.disposeInternal=function(){_.L2.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.x$.Object.defineProperties(MGT.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var KiH={},Bzx=["learning-journey-engagement-panel","PAlearning_chat"];
KiH.YtdLearningJourneyWatchBehavior=[_.B.YtRendererBehavior,_.b7.YtPlayerListenerBehavior,_.S0.YtRendererstamperBehavior,_.hm.YtActionHandlerBehavior,_.oL.YtPageBehavior,_.yL.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 _.RX("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.T("web_watch_provide_secondary_results_renderer")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.RX("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},jsPanelHeight_:{type:Boolean,value:function(){return _.T("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.T("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
richItemMinWidth:{type:Number,value:function(){return _.Fc("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Fc("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!_.T("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.T("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 _.T("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_rounded_player_large")||_.T("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},trackEngagementPanelVisibility:{type:Boolean,
value:function(){return _.T("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.T("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_full_bleed_no_max_width_columns")}},
fixedPanels:{type:Boolean,reflectToAttribute:!0},panelsBesidePlayer:{type:Boolean,reflectToAttribute:!0},watchWhileWider:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_thumbnail_to_watch_transition")}}},
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:_.JQ(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.JQ(["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}}}},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 q=this;this.watchController=void 0;this.pageDisposeJobs=[function(){q.showMetadataPlaceholder_()},
function(){_.T("web_watch_dont_clear_comments")||q.clearComments_()},
function(){q.clearPlayerAds_()},
function(){q.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;_.T("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.T("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.Osx(function(){return _.BR(q)},this.hostElement);
this.pageDisposeJobs.push(function(){q.youThereManager_.reset()});
_.T("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){q.resetFullerscreenEduButtonForNewPlayback_()}));
_.T("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.eh;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",
this.onAdStateChange_);this.playerEvents_.set("onStateChange",this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;_.T("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.T("kevlar_watch_flexy_theater_manager")||(this.actionMap["yt-toggle-theater-mode"]="setTheaterModeRequested",this.actionMap["yt-is-theater"]="isTheater_",this.playerEvents_.set("SIZE_CLICKED",this.setTheaterModeRequested));_.T("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Fj(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(q){q&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:q}),q.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(q){_.T("kevlar_watch_flexy_theater_manager")&&(this.theater=q,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.T("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(q){!_.T("kevlar_watch_while_v2")&&!_.T("web_watch_pip")||q||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(q){this.active!==void 0&&(this.fullscreen=q,_.T("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(q){this.active!==void 0&&(_.t7(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.T("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(q>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(q){this.initCsi_();this.updatePageData_(q)},
updatePageData_:function(q){var w=this;if(q)if(this.data===q){this.onPageLoadWithSameData_();var u;(u=this.watchController)==null||u.setWatchNextResponse(this.data)}else this.data=q;this.playlist&&_.zM({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.D_("nw");this.loading=!1;_.mg(_.pi,function(){w.initDclkstatus_();var y,e=((y=w.player)==null?void 0:y.getVideoData().cpn)||"";_.GB4(function(t,X){_.rPm(t,X,e)})})},
onPageLoadWithSameData_:function(){_.T("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var q=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!q);this.set("loadingData.playlistLoading",q&&q!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),q=this.watchNextSkeletonEl_.firstElementChild;q;)q.classList.remove("hidden"),q=q.nextElementSibling;if(_.T("kevlar_watch_frame0_loading_state")){var w,u,y;q=(w=this.loadingData)==null?void 0:(u=w.endpoint)==null?void 0:(y=u.watchEndpoint)==null?void 0:y.videoId;var e;q&&(e="https://i.ytimg.com/vi/"+q+"/frame0.jpg");_.A(this.hostElement).querySelector("#player").style.backgroundImage=e?"url("+e+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var q=_.A(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&q&&(q.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var w,u;(u=(w=this.watchMetadata).updateSentimentBarWidth)==
null||u.call(w);var y,e;(e=(y=this.watchMetadata).resize)==null||e.call(y)}_.T("kevlar_watch_frame0_loading_state")&&(_.A(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(q){var w=_.A(this.hostElement).querySelector(q);w?_.eB(w,!1):_.Y8(new _.fv("Overscroll monitor not found for component: ",q))},
removeSplitScrollMouseTrap:function(q){var w=_.A(this.hostElement).querySelector(q);w?_.k1(w):_.Y8(new _.fv("Disposal component for  overscroll monitoring not found: ",q))},
onLoadingChanged_:function(q){q?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(q){var w=this;q?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.pi.addLowPriorityJob(function(){w.onWindowResized_(_.UP(!0))})},
updateTheaterModeState_:function(q){if(!_.T("kevlar_watch_flexy_theater_manager")){q=q||this.fullWindowMode_;if(this.theater!==void 0||q)this.theater=q;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();q&&_.T8m()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var q=this.theater;_.T("external_fullscreen")&&this.fullscreen&&(q=!0);q=q?_.A(this.hostElement).querySelector("#player-full-bleed-container"):_.A(this.hostElement).querySelector("#player-container-inner");var w=this.getPlayerContainer(),u=_.T("kevlar_watch_while_v2")||_.T("web_watch_pip");w.parentElement!==q&&(u&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.BR(this).appendTo(q,w),q.appendChild(_.A(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var q=this;return _.F(function(w){if(w.nextAddress==1)return _.H(w,_.tG().resolve(_.$X).deactivate(),2);q.updatePlayerLocation();_.HI(w)})},
updateCinematicsLocation:function(){var q=this.getElement("CINEMATICS");if(q){var w=this.getCinematicsLocationContainer();q.parentElement!==w&&w.appendChild(q);var u;(u=this.watchController)==null||u.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.A(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.A(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(q,w){var u=document.documentElement.hasAttribute("dark"),y=u&&_.T("web_cinematic_theater_mode"),e=u&&_.T("web_cinematic_fullscreen");u=!u&&this.cinematicLightTheme;return q&&y||w&&e||(w||q)&&u},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var q;(q=this.watchController)==null||q.setWatchNextResponse(this.data);_.T("kevlar_watch_flexy_comments_manager")||this.initComments_();_.T("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.tG().resolve(_.z5).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.T("web_watch_start_chat_in_theater_mode")){var w,
u,y;if((w=this.data)==null?0:(u=w.contents)==null?0:(y=u.twoColumnWatchNextResults)==null?0:y.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var e,t;((e=this.data)==null?0:(t=e.contents)==null?0:t.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(q){var w;(w=this.watchController)==null||w.setPlayerResponse(this.playerData);q&&q.playabilityStatus&&(w=this.isVideoPlayable_(q.playabilityStatus,this.getPlayerOverlays_(this.data)),q=this.isLiveStreamOffline_(q.playabilityStatus),w&&!q||_.KJ(this,function(){_.D_("pbu")}));
this.setPlayerAds_();_.X4(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(q){_.Mt().dispatch(_.tr({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));q?this.activate_():this.deactivate_()},
attached:function(){var q=this;this.watchController=new MGT(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.T("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var w=_.BR(this);_.T("kevlar_disable_prepare_player")||w.preparePlayer();_.T("kevlar_watch_flexy_playlist_manager")||_.tG().resolve(_.z5).setPlayer(w);this.updatePageMediaQueries();w={"--ytd-watch-flexy-scrollbar-width":_.fl()+
"px"};!_.Fc("kv_pl_mx_sz_ks")&&_.Fc("kevlar_watch_max_player_width")&&(w["--ytd-watch-flexy-max-player-width-wide-screen"]=_.PFm+"px");_.Fc("kevlar_watch_flexy_metadata_height")&&(w["--ytd-watch-flexy-space-below-player"]=_.XZj+"px");this.safeUpdateStyles(w);_.T("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new Liq(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return q.onPlayerTouchPanDown_()}}));
_.T("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.A(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var q=_.fl(),w=_.pb+q,u=w;this.fixedPanels&&(w+=_.ty6);var y=657+q;q=1327+q;_.A(this.hostElement).querySelector("#two-column-query").query="(min-width: "+w+"px)";_.A(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(y+"px), (min-height: 630px) and (min-width: ")+(w+"px) and (max-width: ")+(q+"px)");_.A(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(q+"px)");_.A(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+u+"px)"},
calculateCurrentPlayerSize_:function(){var q=_.A(this.hostElement).querySelector("#miniplayer-bar").firstChild;return q&&q.active||this.theater||_.T("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.FO(NaN,NaN):_.R7(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.R7(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.BX(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var q=this;this.onWindowResized_(_.UP());_.T("browse_skeleton_removal_on_watch_killswitch")||_.RX("IS_SHELL_LOAD")&&_.rQq();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var w=_.BR(this);w.addEventListener("yt-player-updated",_.Fj(this,this.onPlayerUpdated_));w.getPlayerPromise().then(function(u){q.playerApiReady_(u)});
_.T("kevlar_watch_flexy_playlist_manager")||(w=_.tG().resolve(_.z5),_.T("kevlar_watch_observe_playlist_navigations_killswitch")&&w.addEventListener("yt-navigate",_.Fj(this,this.onYtNavigate_)),w.setPlaylistComponent(_.A(this.hostElement).querySelector("#playlist")),w.addEventListener("yt-playlist-data-updated",_.Fj(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.pi.addLowPriorityJob(function(){_.t7(q.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.BR(this).removeEventListener("yt-player-updated",_.Fj(this,this.onPlayerUpdated_));if(!_.T("kevlar_watch_flexy_playlist_manager")){var q=_.tG().resolve(_.z5);_.T("kevlar_watch_observe_playlist_navigations_killswitch")&&q.removeEventListener("yt-navigate",_.Fj(this,this.onYtNavigate_));q.cancelVideoSkip();q.removeEventListener("yt-playlist-data-updated",_.Fj(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.T("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.t7(this.hostElement,"yt-autonav-pause-player",!1);q=_.uy();_.T("kevlar_exit_fullscreen_leaving_watch")&&q&&_.yY(q)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(q){this.player&&this.player.updateVideoData({rvs:q.rvs})},
getPageContents:function(q){return q&&q.contents&&q.contents.twoColumnWatchNextResults&&q.contents.twoColumnWatchNextResults.results&&q.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(q){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",q)},
onRetrieveLocation_:function(q,w){w.hasComments?w.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):w.locationRetrieved("/related_ajax",void 0);q.stopPropagation()},
onSubscriptionChanged_:function(q,w){this.player&&(w?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.On("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.A(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.A(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(q){this.player=q;this.setPlayerState(q.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.T("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.T("kevlar_unified_player")||_.T("kevlar_player_new_bootstrap_adoption"))&&_.LV()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(q,w){w=w===void 0?!0:w;_.uy()&&_.T("external_fullscreen")&&_.yY(document.documentElement);this.theaterRequested_=q;w&&_.Cv("wide",q?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.T("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.Pw(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.t7(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(q){_.gs(q,typeof this.player),this.player&&_.gs(q,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var q;((q=this.player)==null?0:q.isFullscreen())?this.player.toggleFullscreen():_.Pw(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(q,w){return this.loading?w:!!Object.keys(q).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(q){if(q){q=_.P(q);for(var w=q.next();!w.done;w=q.next())w=w.value,w.youThereRenderer&&_.fpx(this.youThereManager_,w.youThereRenderer)}},
setPlaylistData_:function(q){return q||{}},
userEngagementConfigDataChanged_:function(q){if(q)if(q.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var w=this.youThereManager_;_.Pm()<q.lowEngagementThresholdMs||_.zv6(w,!0)}else q.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Pw(this.hostElement,"yt-autonav-pause-user-engagement",[q])},
isPlayerUnavailable_:function(q,w,u){return!!q&&!this.isVideoPlayable_(q,u)&&!w},
getPlayerOverlays_:function(q){return(q==null?void 0:q.playerOverlays)||null},
isVideoPlayable_:function(q,w){if(!q)return!1;var u=q.status==="OK"||q.status==="LIVE_STREAM_OFFLINE",y=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",q)||this.get("errorScreen.ypcTrailerRenderer",q);q=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",q);var e;w=w==null?void 0:(e=w.playerOverlayRenderer)==null?void 0:e.gatedActionsOverlayRenderer;return!!u||!!y||!!q||!!w},
hasWatchNextResponseErrorRenderer:function(q){var w=this.getPageContents(q),u,y,e,t,X;return!(q==null?0:(u=q.contents)==null?0:(y=u.twoColumnWatchNextResults)==null?0:y.secondaryResults)&&!!((e=w[0])==null?0:(t=e.itemSectionRenderer)==null?0:(X=t.contents[0])==null?0:X.backgroundPromoRenderer)},
isLiveStreamOffline_:function(q){return q?q.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(q,w,u){var y=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",w),e=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];e=_.T("web_no_skip_video_on_verification_checks")?(q==null?void 0:q.status)&&e.includes(q.status):q&&q.status==="AGE_CHECK_REQUIRED";var t=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",q);t==void 0&&(t=!0);!u||this.isVideoPlayable_(q,this.getPlayerOverlays_(w))||
y||e||!t||_.tG().resolve(_.z5).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.Q_a()},
onPlayerFeedbackStartRequest_:function(q){_.Pw(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:q}])},
onPlayerFeedbackArticleRequest_:function(q){_.Pw(this.hostElement,"yt-help-dialog-requested",[q])},
onPlayerYpcContentRequest_:function(){var q,w,u,y,e,t,X,G,n=((q=this.data)==null?NaN:(w=q.contents)==null?NaN:(u=w.twoColumnWatchNextResults)==null?NaN:(y=u.secondaryResults)==null?NaN:(e=y.secondaryResults)==null?NaN:(t=e.offerModule)==null?NaN:(X=t.tvfilmOfferModuleRenderer)==null?NaN:(G=X.actionButtons)==null?NaN:G.length)-1;q=[".offerButton.buttonRenderer.",".actionButtons."+(n>=0?n:0)+".buttonRenderer."];w=_.P(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(u=w.next();!u.done;u=w.next())for(u=u.value,y=_.P(q),e=y.next();!e.done;e=y.next())if(e="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+u+e.value,e=this.get(e+"navigationEndpoint",this.data)||this.get(e+"serviceEndpoint",this.data)||this.get(e+"command",this.data)){_.H6(e,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(q){_.t7(this.hostElement,"yt-autonav-pause-player",q)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(q){q()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(q){switch(q){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(q){switch(q){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.t7(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(q)},
setPlayerState:function(q){_.Mt().dispatch(_.zNG(q))},
onPlayerSubscribe_:function(q){_.Pw(this.hostElement,"yt-player-subscribe",[q])},
onPlayerUnsubscribe_:function(q){_.Pw(this.hostElement,"yt-player-unsubscribe",[q])},
onPlayerAdYtShowToast_:function(q){_.Pw(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:q.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(q){if(q)return q},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(q){return!_.T("web_watch_move_summary_to_sd")&&!!q},
computeWatchMetadataRefresh:function(){return _.T("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var q,w,u,y;this.watchNextSecondaryResults=(q=this.data)==null?void 0:(w=q.contents)==null?void 0:(u=w.twoColumnWatchNextResults)==null?void 0:(y=u.secondaryResults)==null?void 0:y.secondaryResults}},
setRichGridRendererData:function(q){this.richGridRendererData=q},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var q,w=(q=this.data)==null?void 0:q.engagementPanels;if(w==null?0:w.length){q=null;w=_.P(w);for(var u=w.next();!u.done;u=w.next()){u=u.value;var y=void 0;if(((y=u.engagementPanelSectionListRenderer)==null?void 0:y.targetId)==="engagement-panel-structured-description"){q=u;break}}var e,t,X;q=(e=q)==null?void 0:(t=e.engagementPanelSectionListRenderer)==null?void 0:(X=t.content)==null?void 0:X.structuredDescriptionContentRenderer;if(q==null?0:q.items){e=
[];t=_.P(q.items);for(X=t.next();!X.done;X=t.next()){X=X.value;if(!_.T("sd_horizontal_list_show_nav_killswitch")){var G=y=u=w=q=void 0,n=void 0,N=(q=X.horizontalCardListRenderer)==null?void 0:(w=q.header)==null?void 0:(u=w.richListHeaderRenderer)==null?void 0:(y=u.navigationButton)==null?void 0:(G=y.buttonRenderer)==null?void 0:(n=G.command)==null?void 0:n.commandExecutorCommand;N&&N.commands&&(N.commands=N.commands.filter(function(Q){return!_.C(Q,_.CNj)}))}X.expandableVideoDescriptionBodyRenderer||
X.videoDescriptionHeaderRenderer||e.push(X)}return{items:e}}}},
constructWarning_:function(q){return{text:_.jN(q),type:"WARNING"}},
isPlaShelfEnabled_:function(q){if((this.get("adPlacements",q)||[]).length)return!0;q=this.get("playerAds",q)||[];return!(!q.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",q[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var q=this;_.t7(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var w=this.getScrollTop()>0;this.gestures_&&(w?this.gestures_.detach():this.gestures_.attach());w!==this.showFullerscreenEdu_&&_.T("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=w,_.BR(this).getPlayerPromise().then(function(u){u.updateFullerscreenEduButtonVisibility(q.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.t7(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var q=this;this.commentsReady=!1;_.pi.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.mg(_.pi,function(){q.setComments_()},1E3)},
setComments_:function(){if(!_.T("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.D_("cmi");_.pi.cancelJob(this.setCommentsJobId_);var q=this.getPageContents(this.data);if(q&&q.length){q=_.P(q);for(var w=q.next();!w.done;w=q.next())if(w=w.value,this.get("itemSectionRenderer.sectionIdentifier",w)==="comment-item-section"){this.comments=w.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.t7(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.T("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.T("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.D_("cmc")},
doRemoveComments_:function(){this.comments={};_.T("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.pi.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.pi.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(q,w){var u=_.C(w.endpoint,_.LN);u&&(!(w=this.get("data.currentVideoEndpoint.watchEndpoint"))||u.videoId!==w.videoId||u.playlistId&&u.playlistId!==w.playlistId||u.index!==void 0&&u.index!==w.index||typeof u.startTimeSeconds!=="number"||(q.stopPropagation(),this.setScrollTop(0),_.BR(this).getPlayerPromise().then(function(y){var e=u.startTimeSeconds;y.seekTo(e);y.wakeUpControls();e<y.getDuration()&&y.playVideo()})))},
updatePlayerStartTime_:function(){var q=_.qaq();"t"in q&&(q=_.Nzc(q.t),this.player.seekTo(q,!0))},
updateTitleFromWatchNext:function(q){q=this.getPageContents(q);var w,u;(q=_.lA(q==null?void 0:(w=q[0])==null?void 0:(u=w.videoPrimaryInfoRenderer)==null?void 0:u.title))&&_.t7(this.hostElement,"yt-update-title",q)},
updateTitle_:function(q){q=this.get("videoDetails.title",q)||"";_.t7(this.hostElement,"yt-update-title",q)},
syncWithRemoteVideo_:function(q,w,u){if(this.active&&this.player){var y=this.player.getVideoData();if(y.video_id===u&&(u=y.list,_.T("polymer_enable_mdx_queue")&&u&&u.startsWith("RQ")&&(u=void 0),y.video_id!==q||u!=w)){var e;_.T("kevlar_player_watch_endpoint_navigation")?e=_.mnl(_.nRh(q,w)):e=this.buildWatchEndpoint_(q,w);_.t7(this.hostElement,"yt-navigate",{endpoint:e,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(q,w,u){return _.uA(q,w,u)},
initDclkstatus_:function(){_.s_6()},
attachWatchPageSkeleton_:function(){var q=document.querySelector("#watch-page-skeleton");if(q){var w=q.querySelector("#primary-info"),u=q.querySelector("#secondary-info"),y=q.querySelector("#related");w&&_.A(this.hostElement).querySelector("#info-skeleton").appendChild(w);u&&_.A(this.hostElement).querySelector("#meta-skeleton").appendChild(u);y&&(_.A(this.hostElement).querySelector("#related-skeleton").appendChild(y),this.watchNextSkeletonEl_=y);_.UN(q)}},
handlePlayerUpdated_:function(){_.BR(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(q,w){if(this.watchNextSkeletonEl_&&typeof w!=="undefined"){var u=this.watchNextSkeletonEl_.children,y=q&&q.indexSplices.length?q.indexSplices[0].index:0;q=Math.min(this.watchNextShownItems.length,u.length);w||(y=0,q=u.length);for(w=y;w<q;w++)u[w].classList.add("hidden")}},
onPlayerFullscreenChange_:function(q){_.T("external_fullscreen")||_.Pw(this.hostElement,"yt-player-fullscreen",[q.fullscreen])},
onFullscreenChange_:function(q){this.fullscreen=q;this.gestures_&&this.gestures_.update(this.fullscreen);var w=_.BR(this);w.getPlayerPromise().then(function(u){u.setFauxFullscreen(!!_.uy())});
this.updateFullBleedElementLocations();q&&(w.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(q,w){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!w},
computeIsDonationShelfCollapsed_:function(q){return q},
computeShouldShowMerchShelf:function(q,w){return w&&!!q},
computeResponseHasComments:function(q){var w,u,y,e,t;return!!(q==null?0:(w=q.contents)==null?0:(u=w.twoColumnWatchNextResults)==null?0:(y=u.results)==null?0:(e=y.results)==null?0:(t=e.contents)==null?0:t.some(function(X){var G;return(X==null?void 0:(G=X.itemSectionRenderer)==null?void 0:G.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(q,w){this.responseHasComments=this.computeResponseHasComments(this.data);return!!q&&!!Object.keys(q).length&&!w},
identity:_.gj,onWindowResized_:function(q){this.windowSize_=q;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.T("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(q){var w=this;q&&q.type!=="dataloaded"&&q.type!=="dataupdated"||_.BR(this).getPlayerPromise().then(function(u){var y=u.getPlayerState();y!==5&&y!==0&&(u=1/u.getVideoAspectRatio(),w.videoHeightToWidthRatio_!==u&&(w.videoHeightToWidthRatio_=u))})},
schedulePlayerSizeUpdate_:function(q){var w=this,u=_.T("kevlar_watch_while_v2")||_.T("web_watch_pip"),y=function(){if(w.watchMetadata){var e,t;(t=(e=w.watchMetadata).resize)==null||t.call(e)}_.BR(w).getPlayerPromise().then(function(X){if(_.T("kevlar_set_internal_player_size")){if(!u||!w.isMiniplayerActive()){var G=w.calculateCurrentPlayerSize_();X.setInternalSize(G.width,G.height)}}else X.setSize(NaN,NaN);_.T("kevlar_watch_while")&&w.updateWatchWhileScrollThreshold_()})};
q?y():_.dE(_.pi,y)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(q){this.set("data.survey",q.detail)},
onYtShowSurveyCommand_:function(q){this.set("data.survey",_.C(q,_.dgA).survey)},
onDownloadedVideoDeleted:function(q){var w=this,u,y;return _.F(function(e){if(e.nextAddress==1){if(!w.active||(u=w.playerData)==null||!u.offlineState||w.videoId!==q)return e.return();(y=w.player)==null||y.stopVideo();_.Hh().navigatingAwayFromWatchDeletedVideo=!0;_.H6(_.fjl,w.hostElement);return _.H(e,_.Hh().navigationFinishPromise,2)}_.Hh().navigatingAwayFromWatchDeletedVideo=!1;_.HI(e)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var q;this.theater?q=_.zT(.5625*this.windowSize_.width,480,this.windowSize_.height-185):q=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==q&&(this.watchWhileScrollThreshold_=q,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var q=_.A(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&q){var w=this.windowSize_.height>=624,u=this.active?this.getScrollTop():0;!q.active&&w&&u>=this.watchWhileScrollThreshold_?(q.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):q.active&&(!w||u<this.watchWhileScrollThreshold_&&!_.uy())&&(q.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(q,w){if(q!==!0||w!==void 0){q=!_.T("live_chat_over_engagement_panels");w=_.A(this.hostElement).querySelector("#chat-container");var u=_.A(this.hostElement).querySelector("#plj-sidebar"),y=_.A(this.hostElement).querySelector("#panels"),e=_.A(this.hostElement).querySelector("#plj-panels"),t=_.A(this.hostElement).querySelector("#plj-playlist"),X=_.A(this.hostElement).querySelector("#alerts"),G=_.A(this.hostElement).querySelector("#playlist"),n=_.A(this.hostElement).querySelector("#related"),
N=_.A(this.hostElement).querySelector("#donation-shelf"),Q=_.A(this.hostElement).querySelector("#comments");this.isTwoColumns_?(X=_.A(this.hostElement).querySelector("#secondary-inner"),X.appendChild(u),u.appendChild(t),t.appendChild(G),u.appendChild(e),q&&X.appendChild(y),_.T("web_watch_theater_chat")||X.appendChild(w),q||X.appendChild(y),X.appendChild(N),X.appendChild(n)):(q&&_.Vs(y,X),_.Vs(G,X),_.T("web_watch_theater_chat")||_.Vs(w,X),q||_.Vs(y,X),_.Vs(N,X),Q&&(e&&_.Vs(e,Q),_.Vs(n,Q)));_.T("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.T("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.T("web_watch_theater_chat")){var q=_.A(this.hostElement).querySelector("#chat-container"),w=this.theater&&!this.fullscreen||_.T("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&w?_.T("web_watch_theater_chat_beside_player")?(w=_.A(this.hostElement).querySelector("#panels-full-bleed-container"),(q==null?void 0:q.parentElement)!==w&&w.append(q),this.panelsBesidePlayer=!0):_.T("web_watch_theater_fixed_chat")&&
(w=_.A(this.hostElement).querySelector("#columns"),(q==null?void 0:q.parentElement)!==w&&w.append(q),this.fixedPanels=!0):(_.T("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.T("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),w=_.A(this.hostElement).querySelector("#playlist"),q&&w?_.fO(q,w):_.Y8(new _.fv("Missing element when updating chat location",{"chatContainer defined":!!q,"playlist defined":!!w})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(q,w){return _.T("sw_metadata_vis_toggle_ks")?!0:!!q||!!w},
computeForceDarkPanelTheme:function(q){return _.T("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&q:!1},
safeUpdateStyles:function(q){try{_.Pj(this.hostElement,q)}catch(w){_.Y8(w)}},
videoHeightToWidthRatioChanged_:function(q,w){w&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.T("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(q){this.videoHeightToWidthRatio_=1/q},
computeIsVerticalVideo_:function(q){return q>=1},
computeIsFourThreeToSixteenNineVideo_:function(q){return q<=.7501&&q>=.5624},
computeIsExtraWideVideo_:function(q){return q<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.BR(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.BR(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.apj(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(q){var w=_.Pd(q)||0;_.tm(q,w+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var q=_.Pd("yt-fullerscreen-edu-button-click-count")||0,w=_.Pd("yt-fullerscreen-edu-button-shown-count")||0,u=_.Fc("external_fullscreen_button_shown_threshold"),y=q>=_.Fc("external_fullscreen_button_click_threshold")||w>=u;_.BR(this).getPlayerPromise().then(function(e){e.updateFullerscreenEduButtonSubtleModeState(y)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(q,w){return w},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.tG().resolve(_.z5).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var q=this;this.panelMaxHeightUpdateJob_&&_.pi.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.pi.addLowPriorityJob(function(){q.panelMaxHeightUpdateJob_=0;var w;!q.isTwoColumns_||q.theater||q.fullscreen?w=460:w=q.calculateNormalPlayerSize_().height;var u=w+"px";_.T("live_chat_taller_height")&&!q.theater&&(u="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.T("live_chat_medium_height")&&
!q.theater&&(u="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.T("live_chat_scaled_height")&&!q.theater&&(u="calc(100vh - var(--ytd-toolbar-height) - 238px)");q.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":w+"px","--ytd-watch-flexy-chat-max-height":u,"--ytd-watch-flexy-structured-description-max-height":w+"px","--ytd-watch-flexy-comments-panel-max-height":w+"px","--ytd-comments-engagement-panel-content-height":w+"px"})})},
onYtShowEngagementPanelScrimAction_:function(q){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",q)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.nq(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(q){var w=_.A(this.hostElement).querySelector("#engagement-panel-scrim");q?w.addEventListener("tap",_.Fj(this,this.onEngagementPanelScrimClick_)):w.removeEventListener("tap",_.Fj(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(q){if(this.hostElement.contains(q)&&!this.scrollToAnimation_.isAnimating()){var w=q.offsetTop-24;q=q.offsetTop+q.offsetHeight+24;var u=this.getPageScrollingElement(),y=this.getScrollTop(),e=y+u.clientHeight-56;if(w<y+56)w-=56;else if(q>e)w=q-u.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,w),500)}},
onYtSignalActionScrollToComments:function(){var q=this.hostElement.querySelector("#comments");if(q&&!this.scrollToAnimation_.isAnimating()){q=q.offsetTop-56-24;if(_.T("kevlar_comment_teaser_scroll_to_midpoint")&&(q-=_.Gc().height/3,q<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,q),500)}},
onYtEngagementPanelVisibleChanged:function(q,w,u){this.active&&this.trackEngagementPanelVisibility&&!_.Tzc.includes(u)&&(w==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(u),w!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&w!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(u),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(q){return q?"":"watch-active-metadata"},
computeNewMetadataClass:function(q){return q?"watch-active-metadata":""},
computeFullBleedPlayer:function(q,w){return q||w},
computeDefaultLayout:function(q){return!q},
computeDefaultTwoColumnLayout:function(q,w){return!q&&w},
computeWatchWhilePanelsActive:function(q,w){return q||w},
computeNoBorderOnChat:function(q){return _.T("web_watch_theater_chat_no_border")&&q},
computeLiveChatPresentAndExpanded:function(q,w){return q&&!w},
computePanelExpanded:function(q,w,u){return q||w||u},
onChangeMarkersVisibility:function(q){_.BR(this).getPlayerPromise().then(function(w){var u;(u=w.changeMarkerVisibility)==null||u.call(w,_.C(q,_.cL).isVisible||!1,_.C(q,_.cL).entityKeys||[],_.C(q,_.cL).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(q){this.liveChatCollapsed=q.detail;_.Mt().dispatch(_.Ug6(q.detail))},
provideRenderingData:function(q,w){switch(q){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=w;break;case "PRIMARY_INFO":_.T("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=w);this.videoPrimaryInfoRendererValue=w==null?void 0:w.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.T("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=w);this.videoSecondaryInfoRendererValue=w==null?void 0:w.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
w;break;case "CLARIFICATION":this.clarifyBoxValue=w;break;case "LIVE_CHAT":this.conversationBar=w;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=w;break;case "PLAYLIST":this.externalPlaylistData_=w!=null?w:{};break;case "MERCH_SHELF":this.merchShelfValue=w==null?void 0:w.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=w;break;case "OFFER_MODULE":this.offerModule=w;break;case "LIMITED_STATE":this.limitedStateValue=w;break;case "DONATION_SHELF":this.donation=w;break;
case "ALERTS":this.alertsValue=w;break;case "COMMENTS":this.comments=w;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=w;break;case "ENGAGEMENT_PANELS":this.engagementPanels=w;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=w;break;case "RICH_GRID_RENDERER":this.richGridRendererData=w;break;case "EXPANDABLE_METADATA":this.expandableMetadata=w;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=w}},
toggleCinematicsActive:function(q){this.cinematicsActive=q},
isMiniplayerActive:function(){return _.tG().resolve(_.$X).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(q){return Bzx.map(function(w){return q.find(function(u){var y;return(u==null?void 0:(y=u.engagementPanelSectionListRenderer)==null?void 0:y.targetId)===w})}).filter(function(w){return w!==void 0})},
getNonLearningJourneyEngagementPanels:function(q){return q.filter(function(w){var u;return!Bzx.includes((w==null?void 0:(u=w.engagementPanelSectionListRenderer)==null?void 0:u.targetId)||"")})}}];var xgV;var xv=function(){var q=_.Y.apply(this,arguments)||this;q.flexy=!0;q.learningJourney=!0;q.roundedInfoPanel=!0;q.viewTransitionEnabled=_.T("enable_player_resize_transition");q.smallerChatMinHeight=_.T("live_chat_smaller_min_height");q.cinematicTheaterMode=_.T("web_cinematic_theater_mode");q.transparentTheaterMode=_.T("web_transparent_theater_mode");q.cinematicFullscreen=_.T("web_cinematic_fullscreen");q.useLargerMaxPlayerValue=_.T("kevlar_flexy_use_larger_player_value");q.cinematicFullscreenV2=_.T("web_cinematic_fullscreen_v2");
q.isDarkTheme=document.documentElement.hasAttribute("dark");q.theaterLargerPlayer=_.T("web_watch_theater_larger_player");q.defaultCollapsePlaylist=_.T("web_watch_default_collapse_playlist");return q};
_.O(xv,_.Y);_.k=xv.prototype;_.k.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.k.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.k.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.k.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.k.ready=function(){var q=this,w=function(){q.onColumnScroll()};
this.primary.addEventListener("scroll",w);this.secondary.addEventListener("scroll",w)};
_.k.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.k.updateIsTwoColumnsFromBinding=function(q){_.T("web_watch_update_narrow_width_killswitch")||_.Mt().dispatch(_.QbA(!q.detail.value));this.ytdWatchBehavior.isTwoColumns_=q.detail.value};
_.k.updateFlexySmallWindowFromBinding=function(q){this.ytdWatchBehavior.flexySmallWindow_=q.detail.value};
_.k.updateFlexyLargeWindowFromBinding=function(q){this.ytdWatchBehavior.flexyLargeWindow_=q.detail.value};
_.k.updateWatchWhileWindowSizeSufficientFromBinding=function(q){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=q.detail.value};
_.k.updateWatchNextCanShowMoreFromBinding=function(q){this.ytdWatchBehavior.watchNextCanShowMore=q.detail.value};
_.k.updateShownItemsFromBinding=function(q){q.detail.path?this.set(q.detail.path,q.detail.value):this.ytdWatchBehavior.watchNextShownItems=q.detail.value};
_.k.getElement=function(q){switch(q){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20386_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20386_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.x$.Object.defineProperties(xv.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.pageVisualEffects)return!1;for(var w=0;w<this.data.pageVisualEffects.length;w++)if(q=_.C(this.data.pageVisualEffects[w],_.TA))return w=void 0,(w=q.config)==null?void 0:w.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.learningJourneyEngagementPanels)==null?void 0:q.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){window.history.back()}}}}});
_.x$.Object.defineProperties(xv,{template:{configurable:!0,enumerable:!0,get:function(){if(xgV===void 0){var q=document.createElement("template");_.f(q,'\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\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]]" 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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);xgV=q}q=xgV;return q}}});
xv.prototype.updateMiniplayerIsActiveValue=xv.prototype.updateMiniplayerIsActiveValue;xv.prototype.updateScrollTopValue=xv.prototype.updateScrollTopValue;xv.prototype.updateFullscreenValue=xv.prototype.updateFullscreenValue;xv.prototype.updateTheaterValue=xv.prototype.updateTheaterValue;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],xv.prototype,"ytComponentBehavior",void 0);
_.c([_.D(KiH.YtdLearningJourneyWatchBehavior),_.h("design:type",Object)],xv.prototype,"ytdWatchBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],xv.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],xv.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],xv.prototype,"playerData",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],xv.prototype,"flexy",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],xv.prototype,"learningJourney",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],xv.prototype,"roundedInfoPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],xv.prototype,"viewTransitionEnabled",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],xv.prototype,"smallerChatMinHeight",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],xv.prototype,"cinematicTheaterMode",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],xv.prototype,"transparentTheaterMode",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],xv.prototype,"cinematicFullscreen",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],xv.prototype,"useLargerMaxPlayerValue",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],xv.prototype,"cinematicFullscreenV2",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],xv.prototype,"isDarkTheme",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],xv.prototype,"theaterLargerPlayer",void 0);_.c([_.v(),_.h("design:type",Object)],xv.prototype,"defaultCollapsePlaylist",void 0);_.c([_.v({selector:_.on}),_.h("design:type",Object)],xv.prototype,"theaterValue",void 0);
_.c([_.v({selector:_.OT}),_.h("design:type",Object)],xv.prototype,"fullscreenValue",void 0);_.c([_.v({selector:_.os}),_.h("design:type",Object)],xv.prototype,"scrollTopValue",void 0);_.c([_.v({selector:_.DV}),_.h("design:type",Object)],xv.prototype,"miniplayerIsActiveValue",void 0);_.c([_.Wj("#ytd-plj-player"),_.h("design:type",HTMLElement)],xv.prototype,"ytdPlayer",void 0);_.c([_.Wj("#playlist"),_.h("design:type",HTMLElement)],xv.prototype,"JSC$20386_ytdPlaylistPanelRenderer",void 0);
_.c([_.l2("ytd-comments"),_.h("design:type",HTMLElement)],xv.prototype,"ytdComments",void 0);_.c([_.Wj("#primary"),_.h("design:type",HTMLElement)],xv.prototype,"primary",void 0);_.c([_.Wj("#secondary"),_.h("design:type",HTMLElement)],xv.prototype,"secondary",void 0);_.c([_.Wj("#player-container"),_.h("design:type",HTMLElement)],xv.prototype,"playerContainer",void 0);_.c([_.Wj("#cinematics"),_.h("design:type",HTMLElement)],xv.prototype,"JSC$20386_cinematics",void 0);
_.c([_.nL("theaterValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xv.prototype,"updateTheaterValue",null);_.c([_.nL("fullscreenValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xv.prototype,"updateFullscreenValue",null);_.c([_.nL("scrollTopValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xv.prototype,"updateScrollTopValue",null);
_.c([_.nL("miniplayerIsActiveValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xv.prototype,"updateMiniplayerIsActiveValue",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],xv.prototype,"cinematicLightTheme",null);_.c([_.v({reflectToAttribute:!0}),_.Z("learningJourneyEngagementPanels"),_.h("design:type",Object),_.h("design:paramtypes",[])],xv.prototype,"hasLearningJourneyPanels",null);
xv=_.c([_.E({is:"ytd-watch-learning-journey"})],xv);_.Co.registerService(_.P07,xv);
_.pY();
}catch(e){_._DumpException(e)}
try{
_.ZH("Tm0L3c");
var gR4;var ERT;var RvV=function(){return _.Y.apply(this,arguments)||this};
_.O(RvV,_.Y);RvV=_.c([_.E({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],RvV);
_.R(RvV,"ytd-ghost-comments-renderer",function(){if(ERT===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);ERT=q}q=ERT;return q},{mode:1});var cFV;var SaB=function(){return _.Y.apply(this,arguments)||this};
_.O(SaB,_.Y);SaB=_.c([_.E({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],SaB);
_.R(SaB,"ytd-ghost-watch-metadata-renderer",function(){if(cFV===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);cFV=q}q=cFV;return q},{mode:1});var BL=function(){var q=_.Y.apply(this,arguments)||this;q.ghostGridRenderer={rows:6};q.roundedInfoPanel=!0;q.hideOfferModules=!0;q.smallerChatMinHeight=_.T("live_chat_smaller_min_height");q.cinematicTheaterMode=_.T("web_cinematic_theater_mode");q.transparentTheaterMode=_.T("web_transparent_theater_mode");q.darkerPanels=_.T("web_watch_darker_panels");q.cinematicFullscreen=_.T("web_cinematic_fullscreen");q.cinematicFullscreenV2=_.T("web_cinematic_fullscreen_v2");q.isDarkTheme=document.documentElement.hasAttribute("dark");
return q};
_.O(BL,_.Y);_.k=BL.prototype;_.k.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.k.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.k.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.k.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.k.ready=function(){var q=this,w=function(){q.onColumnScroll()};
this.primary.addEventListener("scroll",w);this.secondary.addEventListener("scroll",w)};
_.k.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.k.updateIsTwoColumnsFromBinding=function(q){this.ytdWatchBehavior.isTwoColumns_=q.detail.value};
_.k.updateFlexySmallWindowFromBinding=function(q){this.ytdWatchBehavior.flexySmallWindow_=q.detail.value};
_.k.updateFlexyLargeWindowFromBinding=function(q){this.ytdWatchBehavior.flexyLargeWindow_=q.detail.value};
_.k.updateWatchWhileWindowSizeSufficientFromBinding=function(q){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=q.detail.value};
_.k.updateWatchNextCanShowMoreFromBinding=function(q){this.ytdWatchBehavior.watchNextCanShowMore=q.detail.value};
_.k.updateShownItemsFromBinding=function(q){_.T("swatcheroo_direct_use_rich_grid")||(q.detail.path?this.set(q.detail.path,q.detail.value):this.ytdWatchBehavior.watchNextShownItems=q.detail.value)};
_.k.getElement=function(q){switch(q){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20374_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20374_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.x$.Object.defineProperties(BL.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.pageVisualEffects)return!1;for(var w=0;w<this.data.pageVisualEffects.length;w++)if(q=_.C(this.data.pageVisualEffects[w],_.TA))return w=void 0,(w=q.config)==null?void 0:w.enableInLightTheme;return!1}}});
BL.prototype.updateMiniplayerIsActiveValue=BL.prototype.updateMiniplayerIsActiveValue;BL.prototype.updateScrollTopValue=BL.prototype.updateScrollTopValue;BL.prototype.updateFullscreenValue=BL.prototype.updateFullscreenValue;BL.prototype.updateTheaterValue=BL.prototype.updateTheaterValue;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],BL.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],BL.prototype,"ytComponentBehavior",void 0);
_.c([_.D(_.bsh.YtdWatchBehavior),_.h("design:type",Object)],BL.prototype,"ytdWatchBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],BL.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],BL.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],BL.prototype,"ghostGridRenderer",void 0);_.c([_.v(),_.h("design:type",Object)],BL.prototype,"playerData",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],BL.prototype,"roundedInfoPanel",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],BL.prototype,"hideOfferModules",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],BL.prototype,"smallerChatMinHeight",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],BL.prototype,"cinematicTheaterMode",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],BL.prototype,"transparentTheaterMode",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],BL.prototype,"darkerPanels",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],BL.prototype,"cinematicFullscreen",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],BL.prototype,"cinematicFullscreenV2",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],BL.prototype,"isDarkTheme",void 0);_.c([_.v({selector:_.on}),_.h("design:type",Object)],BL.prototype,"theaterValue",void 0);
_.c([_.v({selector:_.OT}),_.h("design:type",Object)],BL.prototype,"fullscreenValue",void 0);_.c([_.v({selector:_.os}),_.h("design:type",Object)],BL.prototype,"scrollTopValue",void 0);_.c([_.v({selector:_.DV}),_.h("design:type",Object)],BL.prototype,"miniplayerIsActiveValue",void 0);_.c([_.Wj("#ytd-player"),_.h("design:type",HTMLElement)],BL.prototype,"ytdPlayer",void 0);_.c([_.Wj("#playlist"),_.h("design:type",HTMLElement)],BL.prototype,"JSC$20374_ytdPlaylistPanelRenderer",void 0);
_.c([_.Wj("#ytd-comments"),_.h("design:type",HTMLElement)],BL.prototype,"ytdComments",void 0);_.c([_.Wj("#primary"),_.h("design:type",HTMLElement)],BL.prototype,"primary",void 0);_.c([_.Wj("#secondary"),_.h("design:type",HTMLElement)],BL.prototype,"secondary",void 0);_.c([_.Wj("#player-container"),_.h("design:type",HTMLElement)],BL.prototype,"playerContainer",void 0);_.c([_.Wj("#cinematics"),_.h("design:type",HTMLElement)],BL.prototype,"JSC$20374_cinematics",void 0);
_.c([_.nL("theaterValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BL.prototype,"updateTheaterValue",null);_.c([_.nL("fullscreenValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BL.prototype,"updateFullscreenValue",null);_.c([_.nL("scrollTopValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BL.prototype,"updateScrollTopValue",null);
_.c([_.nL("miniplayerIsActiveValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BL.prototype,"updateMiniplayerIsActiveValue",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],BL.prototype,"cinematicLightTheme",null);
_.R(BL,"ytd-watch-grid",function(){if(gR4===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);gR4=q}q=gR4;return q},{mode:2});_.Co.registerService(_.tSJ,BL);
_.pY();
}catch(e){_._DumpException(e)}
try{
_.ZH("CF909");
var Yaq;var Ku=function(){var q=_.Y.apply(this,arguments)||this;q.flexy=!0;q.roundedInfoPanel=!0;q.viewTransitionEnabled=_.T("enable_player_resize_transition");q.smallerChatMinHeight=_.T("live_chat_smaller_min_height");q.cinematicTheaterMode=_.T("web_cinematic_theater_mode");q.transparentTheaterMode=_.T("web_transparent_theater_mode");q.cinematicFullscreen=_.T("web_cinematic_fullscreen");q.useLargerMaxPlayerValue=_.T("kevlar_flexy_use_larger_player_value");q.cinematicFullscreenV2=_.T("web_cinematic_fullscreen_v2");
q.isDarkTheme=document.documentElement.hasAttribute("dark");q.defaultCollapsePlaylist=_.T("web_watch_default_collapse_playlist");q.retroModeReduxValue=!1;return q};
_.O(Ku,_.Y);_.k=Ku.prototype;_.k.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.k.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.k.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.k.updateRetroModeReduxValue=function(){_.T("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.k.ready=function(){var q=this,w=function(){q.onColumnScroll()};
this.primary.addEventListener("scroll",w);this.secondary.addEventListener("scroll",w)};
_.k.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.k.updateIsTwoColumnsFromBinding=function(q){_.T("web_watch_update_narrow_width_killswitch")||_.Mt().dispatch(_.QbA(!q.detail.value));this.ytdWatchBehavior.isTwoColumns_=q.detail.value};
_.k.updateFlexySmallWindowFromBinding=function(q){this.ytdWatchBehavior.flexySmallWindow_=q.detail.value};
_.k.updateFlexyLargeWindowFromBinding=function(q){this.ytdWatchBehavior.flexyLargeWindow_=q.detail.value};
_.k.updateWatchWhileWindowSizeSufficientFromBinding=function(q){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=q.detail.value};
_.k.updateWatchNextCanShowMoreFromBinding=function(q){this.ytdWatchBehavior.watchNextCanShowMore=q.detail.value};
_.k.updateShownItemsFromBinding=function(q){q.detail.path?this.set(q.detail.path,q.detail.value):this.ytdWatchBehavior.watchNextShownItems=q.detail.value};
_.k.getElement=function(q){switch(q){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20369_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20369_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.x$.Object.defineProperties(Ku.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.pageVisualEffects)return!1;for(var w=0;w<this.data.pageVisualEffects.length;w++)if(q=_.C(this.data.pageVisualEffects[w],_.TA))return w=void 0,(w=q.config)==null?void 0:w.enableInLightTheme;return!1}}});
_.x$.Object.defineProperties(Ku,{template:{configurable:!0,enumerable:!0,get:function(){if(Yaq===void 0){var q=document.createElement("template");_.f(q,'\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="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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);Yaq=q}q=Yaq;return q}}});
Ku.prototype.updateRetroModeReduxValue=Ku.prototype.updateRetroModeReduxValue;Ku.prototype.updateScrollTopValue=Ku.prototype.updateScrollTopValue;Ku.prototype.updateFullscreenValue=Ku.prototype.updateFullscreenValue;Ku.prototype.updateTheaterValue=Ku.prototype.updateTheaterValue;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ku.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Ku.prototype,"ytComponentBehavior",void 0);
_.c([_.D(_.bsh.YtdWatchBehavior),_.h("design:type",Object)],Ku.prototype,"ytdWatchBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],Ku.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ku.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],Ku.prototype,"playerData",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ku.prototype,"flexy",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ku.prototype,"roundedInfoPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ku.prototype,"viewTransitionEnabled",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ku.prototype,"smallerChatMinHeight",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ku.prototype,"cinematicTheaterMode",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ku.prototype,"transparentTheaterMode",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ku.prototype,"cinematicFullscreen",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ku.prototype,"useLargerMaxPlayerValue",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ku.prototype,"cinematicFullscreenV2",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ku.prototype,"isDarkTheme",void 0);_.c([_.v(),_.h("design:type",Object)],Ku.prototype,"defaultCollapsePlaylist",void 0);_.c([_.v({selector:_.on}),_.h("design:type",Object)],Ku.prototype,"theaterValue",void 0);_.c([_.v({selector:_.OT}),_.h("design:type",Object)],Ku.prototype,"fullscreenValue",void 0);_.c([_.v({selector:_.os}),_.h("design:type",Object)],Ku.prototype,"scrollTopValue",void 0);
_.c([_.v({selector:_.DV}),_.h("design:type",Object)],Ku.prototype,"miniplayerIsActive",void 0);_.c([_.v({selector:function(q){return q.watch.isWatchRetroMode}}),
_.h("design:type",Object)],Ku.prototype,"retroModeReduxValue",void 0);_.c([_.l2("ytd-player"),_.h("design:type",HTMLElement)],Ku.prototype,"ytdPlayer",void 0);_.c([_.Wj("#playlist"),_.h("design:type",HTMLElement)],Ku.prototype,"JSC$20369_ytdPlaylistPanelRenderer",void 0);_.c([_.l2("ytd-comments"),_.h("design:type",HTMLElement)],Ku.prototype,"ytdComments",void 0);_.c([_.Wj("#primary"),_.h("design:type",HTMLElement)],Ku.prototype,"primary",void 0);
_.c([_.Wj("#secondary"),_.h("design:type",HTMLElement)],Ku.prototype,"secondary",void 0);_.c([_.Wj("#player-container"),_.h("design:type",HTMLElement)],Ku.prototype,"playerContainer",void 0);_.c([_.Wj("#cinematics"),_.h("design:type",HTMLElement)],Ku.prototype,"JSC$20369_cinematics",void 0);_.c([_.nL("theaterValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ku.prototype,"updateTheaterValue",null);
_.c([_.nL("fullscreenValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ku.prototype,"updateFullscreenValue",null);_.c([_.nL("scrollTopValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ku.prototype,"updateScrollTopValue",null);_.c([_.nL("retroModeReduxValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ku.prototype,"updateRetroModeReduxValue",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ku.prototype,"cinematicLightTheme",null);Ku=_.c([_.E({is:"ytd-watch-flexy"})],Ku);_.Co.registerService(_.kAj,Ku);
_.pY();
}catch(e){_._DumpException(e)}
try{
_.ZH("nmfa2d");
var xfT;var gR=function(){var q=_.Y.apply(this,arguments)||this;q.hidden=!1;q.errorScreen=null;q.playlistData={};return q};
_.O(gR,_.Y);_.k=gR.prototype;_.k.getPlayer=function(){return this.ytdPlayer};
_.k.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:_.JQ(["aa","eocs"])}}};
_.k.onActiveChanged=function(){_.Mt().dispatch(_.hyx(this.ytPageBehavior.active))};
_.k.playerDataChanged=function(){var q;(q=this.watchController)==null||q.setPlayerResponse(this.playerData)};
_.k.dataChanged=function(){var q;(q=this.watchController)==null||q.setWatchNextResponse(this.data)};
_.k.sizeChanged=function(){var q,w;(w=(q=this.metadata).resize)==null||w.call(q)};
_.k.attached=function(){this.watchController=new _.bC(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.k.detached=function(){_.BX(this.watchController);this.watchController=void 0};
_.k.getPlayerContainer=function(){return this.playerContainer};
_.k.getElement=function(q){switch(q){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20321_playlistPanel}};
_.k.provideRenderingData=function(q,w){switch(q){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=w;break;case "ERROR_SCREEN":this.errorScreen=w!=null?w:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=w;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=w;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=w;break;case "RICH_METADATA":this.richMetadataRowContainer=w;break;case "CLARIFICATION":this.clarificationData=w;break;case "PLAYLIST":this.playlistData=
w!=null?w:{};break;case "MERCH_SHELF":this.merchShelf=w;break;case "TICKET_SHELF":this.ticketShelf=w;break;case "LIMITED_STATE":this.limitedState=w;break;case "DONATION_SHELF":this.donationShelf=w;break;case "ALERTS":this.alerts=w}};
_.x$.Object.defineProperties(gR.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return!this.hidden&&!!((q=this.data)==null?0:(w=q.contents)==null?0:(u=w.twoColumnWatchNextResults)==null?0:u.conversationBar)}}});
gR.prototype.sizeChanged=gR.prototype.sizeChanged;gR.prototype.dataChanged=gR.prototype.dataChanged;gR.prototype.playerDataChanged=gR.prototype.playerDataChanged;gR.prototype.onActiveChanged=gR.prototype.onActiveChanged;_.c([_.D(_.oL.YtPageBehavior),_.h("design:type",Object)],gR.prototype,"ytPageBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],gR.prototype,"ytComponentBehavior",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],gR.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],gR.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],gR.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],gR.prototype,"playerData",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],gR.prototype,"hidden",void 0);_.c([_.Wj("#ytd-player"),_.h("design:type",HTMLElement)],gR.prototype,"ytdPlayer",void 0);_.c([_.Wj("#player-container"),_.h("design:type",HTMLElement)],gR.prototype,"playerContainer",void 0);_.c([_.Wj("#metadata"),_.h("design:type",Object)],gR.prototype,"metadata",void 0);_.c([_.Wj("#playlist"),_.h("design:type",HTMLElement)],gR.prototype,"JSC$20321_playlistPanel",void 0);
_.c([_.v({selector:_.olA,reflectToAttribute:!0}),_.h("design:type",Object)],gR.prototype,"fixie",void 0);_.c([_.v({selector:_.O5h,reflectToAttribute:!0}),_.h("design:type",Object)],gR.prototype,"singleColumn",void 0);_.c([_.v({selector:function(q){return _.on(q)&&!_.OT(q)},
reflectToAttribute:!0}),_.h("design:type",Object)],gR.prototype,"theater",void 0);_.c([_.v({selector:_.OT,reflectToAttribute:!0}),_.h("design:type",Object)],gR.prototype,"fullscreen",void 0);_.c([_.v({selector:_.SnH}),_.h("design:type",Object)],gR.prototype,"windowSize",void 0);_.c([_.v(),_.h("design:type",Object)],gR.prototype,"singleColumnContents",void 0);_.c([_.v(),_.h("design:type",Object)],gR.prototype,"errorScreen",void 0);_.c([_.v(),_.h("design:type",Object)],gR.prototype,"playlistData",void 0);
_.c([_.v(),_.h("design:type",Object)],gR.prototype,"videoPrimaryInfoRenderer",void 0);_.c([_.v(),_.h("design:type",Object)],gR.prototype,"videoSecondaryInfoRenderer",void 0);_.c([_.v(),_.h("design:type",Object)],gR.prototype,"richMetadataRowContainer",void 0);_.c([_.v(),_.h("design:type",Object)],gR.prototype,"clarificationData",void 0);_.c([_.v(),_.h("design:type",Object)],gR.prototype,"commentsEntryPointHeaderRenderer",void 0);_.c([_.v(),_.h("design:type",Object)],gR.prototype,"ticketShelf",void 0);
_.c([_.v(),_.h("design:type",Object)],gR.prototype,"merchShelf",void 0);_.c([_.v(),_.h("design:type",Object)],gR.prototype,"donationShelf",void 0);_.c([_.v(),_.h("design:type",Object)],gR.prototype,"limitedState",void 0);_.c([_.v(),_.h("design:type",Object)],gR.prototype,"alerts",void 0);_.c([_.Z("playlistData"),_.h("design:type",Object),_.h("design:paramtypes",[])],gR.prototype,"hasPlaylistData",null);
_.c([_.Z("data","hidden"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],gR.prototype,"hasChat",null);_.c([_.nL("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gR.prototype,"onActiveChanged",null);_.c([_.nL("playerData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gR.prototype,"playerDataChanged",null);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gR.prototype,"dataChanged",null);_.c([_.nL("windowSize","singleColumn"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gR.prototype,"sizeChanged",null);
_.R(gR,"ytd-watch-fixie",function(){if(xfT===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);xfT=q}q=xfT;return q},{mode:1});_.Co.registerService(_.eyM,gR);
_.pY();
}catch(e){_._DumpException(e)}
try{
_.ZH("xwEKAe");
var og6=function(q){var w=_.UC();if(w.getFlag(202))w=w.getFlag(201);else{var u;w=(q==null?void 0:(u=q.config)==null?void 0:u.settingOnByDefault)!==void 0?q.config.settingOnByDefault:!_.T("web_shorts_cinematics_disabled_by_default")}return w},VJ6=function(q){var w=_.UC();
_.TM(0,201,q);_.TM(0,202,!0);w.save()},fxm=function(q){return(q=_.tCl(q))?_.X9H(q):0},m7K=function(q){return q.shorts.isSmallScreenSqueezeback},ANK=function(q){return q.shorts.isPlaybackStarted},JNj=function(q,w,u,y){q=w-q;
u=y-u;return Math.sqrt(q*q+u*u)},ztj=function(q,w){q&&_.tG().resolve(_.PG).resolveCommand(q,{forceClickLogging:!0,
form:{element:w}})},axH=function(q){q.unsubscribeFromStore=_.se(q.storeWithShorts,_.Cox,function(w){q.initOrDisposeActiveModules(w);
!w&&q.storeWithShorts.getState().shorts.isFullscreen&&(_.yY(document.documentElement),q.storeWithShorts.dispatch(_.owH(!1)))});
q.initOrDisposeActiveModules(_.Cox(q.storeWithShorts.getState()))},D76=function(q){var w=_.tG().resolve(_.xu);
w.rootElement=q;axH(w)},ZWT=function(){return _.tG().resolve(_.xu).dismissedIndices},pgK=function(q){return _.tr({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:q}})},$76=function(q){return _.tr({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:q}})},eE=function(q){return _.tr({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:q}})},ky=function(q,w){if(q instanceof ky)this.array_=q.array_;
else{var u;if(u=_.uP(q))a:{for(var y=u=0;y<q.length;y++){if(!_.uP(q[y])||u>0&&q[y].length!=u){u=!1;break a}for(var e=0;e<q[y].length;e++)if(typeof q[y][e]!=="number"){u=!1;break a}u==0&&(u=q[y].length)}u=u!=0}if(u)this.array_=_.qT(q);else if(q instanceof _.FO)this.array_=vgA(q.height,q.width);else if(typeof q==="number"&&typeof w==="number"&&q>0&&w>0)this.array_=vgA(q,w);else throw Error("Yl");}this.size_=new _.FO(this.array_[0].length,this.array_.length)},bWV=function(q,w,u){for(var y=0;y<q.getSize().height;y++)for(var e=
0;e<q.getSize().width;e++)w.call(u,q.array_[y][e],y,e,q)},YRA=function(q,w){var u=new ky(q.getSize());
bWV(q,function(y,e,t){u.array_[e][t]=w.call(void 0,y,e,t,q)});
return u},vgA=function(q,w){for(var u=[],y=0;y<q;y++){u[y]=[];
for(var e=0;e<w;e++)u[y][e]=0}return u};
ky.prototype.add=function(q){if(!_.BWH(this.size_,q.getSize()))throw Error("Zl");return YRA(this,function(w,u,y){return w+q.array_[u][y]})};
ky.prototype.equals=function(q,w){if(this.size_.width!=q.size_.width||this.size_.height!=q.size_.height)return!1;w=w||0;for(var u=0;u<this.size_.height;u++)for(var y=0;y<this.size_.width;y++)if(!_.KQ6(this.array_[u][y],q.array_[u][y],w))return!1;return!0};
ky.prototype.getSize=function(){return this.size_};
var t$=function(q,w,u){return w>=0&&w<q.size_.height&&u>=0&&u<q.size_.width?q.array_[w][u]:null};
ky.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var gga=function(q,w,u,y){if(!(w>=0&&w<q.size_.height&&u>=0&&u<q.size_.width))throw Error("$l`"+w+"`"+u+"`"+q.size_.height+"`"+q.size_.width);q.array_[w][u]=y};
ky.prototype.multiply=function(q){if(q instanceof ky){if(this.size_.width!=q.getSize().height)throw Error("am");return Eg4(this,q)}if(typeof q==="number")return Rtm(this,q);throw Error("bm");};
var Eg4=function(q,w){var u=new ky(q.size_.height,w.getSize().width);bWV(u,function(y,e,t){for(var X=y=0;X<this.size_.width;X++)y+=t$(this,e,X)*t$(w,X,t);gga(u,e,t,y)},q);
return u},Rtm=function(q,w){return YRA(q,function(u){return u*w})};var cN4=new _.M("inlineSurveyRenderer");var SRh=new _.M("interstitialViewModel");var htx=new _.M("reelNavigateCommand");var j$j=new _.M("reelNonVideoContentDismissalCommand");var lxH=new _.M("showReelsCommentsOverlayCommand");var L9j=new _.M("shortsSuggestedActionViewModel");var MJ6=new _.M("videoInteractionPopUpRenderer");var K9c;var Bic;var x7h;var PW=function(){var q=_.Y.apply(this,arguments)||this;q.ctaVisualElement=null;q.currentCsn=null;return q};
_.O(PW,_.Y);_.k=PW.prototype;_.k.onDataChanged=function(){this.maybeLogShows()};
_.k.computeButtonShape=function(){var q=this;if(this.data)return{buttonText:_.lA(this.data.text),state:"active",onTap:function(){q.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.k.maybeCreateCtaVe=function(){var q;if((q=this.data)!=null&&q.badgeInteractionLogging){var w;if(q=(w=this.data.badgeInteractionLogging)==null?void 0:w.trackingParams)this.ctaVisualElement=_.Tj(q)}};
_.k.maybeLogClicks=function(){this.currentCsn=_.pN(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.jB(this.currentCsn,this.ctaVisualElement)};
_.k.maybeLogShows=function(){this.currentCsn=_.pN(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.SB(this.currentCsn,[this.ctaVisualElement])};
_.k.onTap=function(){var q;if((q=this.data)!=null&&q.onClickCommand){var w;this.ytComponentBehavior.resolveCommand((w=this.data)==null?void 0:w.onClickCommand);this.maybeLogClicks()}};
PW.prototype.onDataChanged=PW.prototype.onDataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],PW.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],PW.prototype,"ytComponentBehavior",void 0);_.c([_.v({}),_.h("design:type",Object)],PW.prototype,"data",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],PW.prototype,"onDataChanged",null);
PW=_.c([_.E({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],PW);
_.R(PW,"ytd-shopping-overlay-badge-renderer",function(){if(x7h!==void 0)return x7h;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return x7h=q},{mode:1});_.q9(_.BRT,"reel-sound-metadata-view-model",{props:{data:_.xB,overlayDensity:_.xB}});_.q9(_.YAa,"player-disclosure-view-model",{props:{data:_.pK}});_.q9(_.U7j,"pivot-button-view-model",{props:{data:_.xB,className:_.xB}});_.q9(_.TiT,"reel-action-bar-view-model",{props:{data:_.pK,buttonShapeOverrideables:_.pK}});_.q9(_.LL(function(q){function w(){var bc,Ro,K7,gx,dx=(Ro=_.C((bc=l())==null?void 0:bc.command,_.Fpa))==null?void 0:(K7=Ro.item)==null?void 0:(gx=K7.notificationTextRenderer)==null?void 0:gx.successResponseText;if(dx)_.Pw(y.value,"yt-open-popup-action",[_.BQ(dx),y.value]);else if(S())ztj(S(),V.value);else{var tc;ztj((tc=l())==null?void 0:tc.command,V.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var u=q.data;var y=_.Bm();q=_.P(_.r4("0px",void 0,"O1N7Ce"));var e=q.next().value,t=q.next().value;q=_.P(_.r4("0px",void 0,"tTDBdb"));var X=q.next().value,G=q.next().value;q=_.P(_.r4(0,void 0,"fh8Zkc"));var n=q.next().value,N=q.next().value;q=_.P(_.r4(0,void 0,"CUjqGd"));var Q=q.next().value,I=q.next().value,U=function(){var bc;if(((bc=_.Gn())==null?void 0:bc.getPlayerState())!==-1){y.value.style.display="inherit";var Ro;(Ro=_.Gn())==null||Ro.removeEventListener("onStateChange",U)}d()},d=function(){var bc=
document.querySelector("video");
if(bc){N(bc.getBoundingClientRect().width);I(bc.getBoundingClientRect().height);var Ro;t((bc==null?void 0:(Ro=bc.style)==null?void 0:Ro.left)||"0px");var K7;G((bc==null?void 0:(K7=bc.style)==null?void 0:K7.top)||"0px")}};
_.DG(function(){var bc,Ro,K7;if(((bc=_.Gn())==null?void 0:bc.getPlayerState())===-1&&Math.round(((K7=(Ro=_.Gn())==null?void 0:Ro.getVideoAspectRatio())!=null?K7:0)*100)!==Math.round(n()/Q()*100)){y.value.style.display="none";var gx,dx;I(n()/((dx=(gx=_.Gn())==null?void 0:gx.getVideoAspectRatio())!=null?dx:1))}},"VB5m5");
_.DR(function(){var bc;(bc=_.Gn())==null||bc.addEventListener("onStateChange",U);window.addEventListener("resize",d);d();var Ro,K7,gx;if((gx=(Ro=u())==null?void 0:(K7=Ro.regions)==null?void 0:K7[0])==null||!gx.transformationMatrix)throw Error("fm");var dx;if((dx=u())==null?0:dx.trackingParams){var tc;_.Qz().graftServerVe((tc=u().trackingParams)!=null?tc:"")}_.ZG(function(){var Fa;(Fa=_.Gn())==null||Fa.removeEventListener("onStateChange",U);window.removeEventListener("resize",d)})});
var V=_.Bm(),J=_.P(_.r4(!1,void 0,"TPsTce"));q=J.next().value;var a=J.next().value,b=_.P(_.r4(!1,void 0,"Uz6CHf"));J=b.next().value;var g=b.next().value,l=function(){var bc;return _.C((bc=u())==null?void 0:bc.popUp,MJ6)},S=function(){var bc;
return(bc=u())==null?void 0:bc.command},eH=function(){return _.C(S(),_.VYc)!==void 0};
b=_.QS(function(){eH()&&a(!0);g(!0);return!1});
var x=_.QS(function(){a(!1);g(!1);return!1}),P4=_.QS(function(){eH()&&a(!0);
return!1}),C7=_.QS(function(){eH()&&a(!1);
return!1}),mu=_.QS(function(){w();
return!1}),Os=_.QS(function(bc){bc.key==="Enter"&&w();
return!1}),YJ={},ao={};
return _.W("yt-player-overlay-video-interactions",{el:y},_.W("svg",{"on:mouseover":b,"on:mouseout":x,"on:keydown":Os,"on:focus":P4,"on:blur":C7,el:V,tabindex:0,"aria-label":function(){var bc;return(bc=u())==null?void 0:bc.a11yString},
id:"player-overlay-video-interaction-svg",class:_.HR("yt-player-overlay-video-interactions__interactions-svg",(YJ["yt-player-overlay-video-interactions__interactions-svg-hover"]=q,YJ),(ao["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=J,ao)),role:"button",style:function(){var bc,Ro,K7,gx=(K7=(bc=u())==null?void 0:(Ro=bc.regions)==null?void 0:Ro[0].transformationMatrix)!=null?K7:[];bc=n();Ro=Q();K7=[];for(var dx=0,tc=-1;dx<gx.length;dx++)dx%3===0&&(tc++,K7[tc]=[]),K7[tc].push(gx[dx]);
gx=new ky(K7);K7=new ky([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);K7=gx.multiply(K7);gx=new ky([[0,0],[0,0],[0,0],[0,0]]);for(dx=0;dx<K7.getSize().width;dx++){tc=t$(K7,0,dx);var Fa=t$(K7,1,dx);if(tc===null||Fa===null)throw Error("em`"+(dx+1).toString());gga(gx,dx,0,tc*bc);gga(gx,dx,1,Fa*Ro)}bc=t$(gx,0,0);dx=t$(gx,1,0);Ro=t$(gx,0,1);tc=t$(gx,1,1);if(bc===null||dx===null||Ro===null||tc===null)throw Error("cm");K7=JNj(bc,dx,Ro,tc);Fa=t$(gx,3,0);gx=t$(gx,3,1);if(Fa===null||gx===null)throw Error("dm");gx=JNj(bc,
Fa,Ro,gx);tc=(Number((tc*-1).toFixed(2))-Number((Ro*-1).toFixed(2)))/(Number(dx.toFixed(2))-Number(bc.toFixed(2)));Fa=Math.atan(tc)*180/Math.PI;dx=tc===Number.POSITIVE_INFINITY?-90:tc===Number.NEGATIVE_INFINITY?90:Object.is(tc,-0)?180:tc===0?0:tc>0?Fa*-1:bc<dx?Fa*-1:Math.abs(Fa)+180;return"left:calc("+bc+"px + "+e()+"); top:calc("+(Ro+"px + "+X()+"); width:")+(K7+"px; height:")+(gx+"px; transform:rotate(")+(dx+"deg);")},
"on:click":mu}))},"Ai"),"yt-player-overlay-video-interactions",{props:{data:_.pK}});_.q9(_.SAa,"yt-reel-metapanel-view-model",{props:{data:_.pK,overlayDensity:_.pK}});var Xn=function(){var q=_.Y.apply(this,arguments)||this;q.showScrubber=!1;q.isWatchWhileMode=!1;q.enableRemixButton=_.T("web_enable_shorts_remix_handoff_ep");q.enableAnchoredPanel=_.T("desktop_shorts_v2_anchored_panel");q.anchoredPanelActive=!1;q.enableLivingroomLayout=_.T("reels_enable_livingroom_layout");q.enablePlayerMetadataContainer=_.T("reels_web_enable_metadata_container");q.enableSqueezebackPanels=_.T("web_shorts_enable_squeezeback_panels");q.isSqueezebackActive=!1;q.smallScreenSqueezeback=
!1;q.isPlayerStarted=!1;q.overlayDensity=0;q.isOverlay=!1;q.isImmersive=!1;q.isImmersiveHorizontal=!1;q.isFullscreen=!1;q.onWindowResized=function(){var w;q.set("isImmersive",((w=window.getComputedStyle(q.hostElement))==null?void 0:w.getPropertyValue("--immersive-mode-on"))==="1");q.set("isImmersiveHorizontal",q.isImmersive&&q.enableLivingroomLayout&&!q.isWatchWhileMode)};
return q};
_.O(Xn,_.Y);_.k=Xn.prototype;_.k.updateIsOverlay=function(q){this.isOverlay=q.detail.value};
_.k.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.T("web_enable_flexible_overlay")||_.T("web_enable_format_first")||_.T("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.k.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.k.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.k.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.k.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.k.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.k.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.k.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.GQ("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.GQ("reels_action_justified_content")||"flex-start")};
_.k.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}}};
_.k.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.ID("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.ID("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.ID("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.ID("SHARE_LABEL",
void 0,"Share")}}});_.T("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.ID("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()};
_.k.setEmptyOverlayMetadata=function(){_.T("web_shorts_deflate_inactive_slides")&&(this.set("data.multiFormatLink",{reelMultiFormatLinkViewModel:void 0}),this.set("data.multimixAttributionLabel",void 0),this.set("data.suggestedAction",{shoppingOverlayRenderer:void 0,shortsSuggestedActionRenderer:void 0}),this.set("data.soundMetadata",{reelSoundMetadataViewModel:void 0}))};
_.x$.Object.defineProperties(Xn.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.infoPanel)}}});
Xn.prototype.onIsActiveChanged=Xn.prototype.onIsActiveChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Xn.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Xn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],Xn.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.D$.YtdGuideStateAwareBehavior),_.h("design:type",Object)],Xn.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],Xn.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],Xn.prototype,"isActive",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Xn.prototype,"hidden",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],Xn.prototype,"useShortsIcon",void 0);_.c([_.v({value:"left"}),_.h("design:type",String)],Xn.prototype,"buttonTooltipPosition",void 0);
_.c([_.v({value:_.T("reels_enable_livingroom_layout")?"top":"left"}),_.h("design:type",String)],Xn.prototype,"likeButtonTooltipPosition",void 0);_.c([_.v({value:"none"}),_.h("design:type",String)],Xn.prototype,"textTransform",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Xn.prototype,"showScrubber",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Xn.prototype,"isWatchWhileMode",void 0);
_.c([_.v({reflectToAttribute:!0}),_.Z("data.infoPanel"),_.h("design:type",Object),_.h("design:paramtypes",[])],Xn.prototype,"hasInfoPanel",null);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Xn.prototype,"enableRemixButton",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Xn.prototype,"enableAnchoredPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Xn.prototype,"anchoredPanelActive",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Xn.prototype,"enableLivingroomLayout",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Xn.prototype,"enablePlayerMetadataContainer",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Xn.prototype,"enableSqueezebackPanels",void 0);_.c([_.v({selector:_.ANo,reflectToAttribute:!0}),_.h("design:type",Object)],Xn.prototype,"isSqueezebackActive",void 0);
_.c([_.v({selector:m7K,reflectToAttribute:!0}),_.h("design:type",Object)],Xn.prototype,"smallScreenSqueezeback",void 0);_.c([_.v({selector:ANK}),_.h("design:type",Object)],Xn.prototype,"isPlayerStarted",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Xn.prototype,"overlayDensity",void 0);_.c([_.v(),_.h("design:type",Object)],Xn.prototype,"isOverlay",void 0);
_.c([_.v({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.h("design:type",Boolean)],Xn.prototype,"isShortsOverlay",void 0);_.c([_.v(),_.h("design:type",Object)],Xn.prototype,"isImmersive",void 0);_.c([_.v(),_.h("design:type",Object)],Xn.prototype,"isImmersiveHorizontal",void 0);_.c([_.v({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.h("design:type",Boolean)],Xn.prototype,"isShortsImmersive",void 0);
_.c([_.v({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.h("design:type",Object)],Xn.prototype,"buttonOverride",void 0);_.c([_.v({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.h("design:type",Object)],Xn.prototype,"actionBarButtonOverride",void 0);_.c([_.v({selector:_.Hy,reflectToAttribute:!0}),_.h("design:type",Object)],Xn.prototype,"isFullscreen",void 0);
_.c([_.nL("isActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xn.prototype,"onIsActiveChanged",null);Xn=_.c([_.E({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],Xn);
_.R(Xn,"ytd-reel-player-overlay-renderer",function(){if(Bic!==void 0)return Bic;var q=document.createElement("template");_.f(q,'\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-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 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    <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="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    <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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Bic=q},{mode:1});var qxm;var Fn=function(){var q=_.Y.apply(this,arguments)||this;q.videoDuration=0;q.playedTime=0;q.isActive=!1;q.JSC$19584_playerEvents=new Map;return q};
_.O(Fn,_.Y);_.k=Fn.prototype;_.k.created=function(){this.JSC$19584_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19584_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.k.attached=function(){this.getPlayerAndInitializeListeners()};
_.k.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19584_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Fj(this,this.onPageChanged))};
_.k.getPlayerAndInitializeListeners=function(){var q=this,w;return _.F(function(u){if(u.nextAddress==1)return w=_.xo(),w?_.H(u,w.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Fj(q,q.onPageChanged)),u.jumpTo(0));q.player=u.yieldResult;q.initializePlayerListeners();_.HI(u)})};
_.k.onPageChanged=function(q){var w=this;return _.F(function(u){if(u.nextAddress==1)return q.detail.newPageType!=="ytd-shorts"?u.return():_.H(u,_.qI().getPlayerPromise(),2);w.player=u.yieldResult;w.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Fj(w,w.onPageChanged));_.HI(u)})};
_.k.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19584_playerEvents)};
_.k.onVideoDataChange=function(q){var w=this;return _.F(function(u){if(!w.player||q.type!=="newdata")return u.return();w.videoDuration=_.T("web_shorts_use_progress_state_for_gapless")?w.player.getProgressState(q.playertype).seekableEnd:w.player.getDuration(q.playertype);w.playedTime=0;_.HI(u)})};
_.k.onVideoProgress=function(q){var w=this,u,y;return _.F(function(e){if(!w.player)return e.return();u=w.player.getPresentingPlayerType();y=w.player.getPlayerState();w.videoDuration=_.T("web_shorts_use_progress_state_for_gapless")?w.player.getProgressState(u).seekableEnd:w.player.getDuration(u);w.playedTime=y===0?w.videoDuration:q;_.HI(e)})};
_.k.getPercentPlayed=function(q,w){return q?_.zT(w/q,0,1):0};
_.x$.Object.defineProperties(Fn.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 q="";return q=this.videoDuration&&this.playedTime?q+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):q+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Fn.prototype,"componentBehavior",void 0);_.c([_.D(_.b7.YtPlayerListenerBehavior),_.h("design:type",_.Yp)],Fn.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Fn.prototype,"player",void 0);_.c([_.v(),_.h("design:type",Object)],Fn.prototype,"videoDuration",void 0);_.c([_.v(),_.h("design:type",Object)],Fn.prototype,"playedTime",void 0);_.c([_.v(),_.h("design:type",Object)],Fn.prototype,"isActive",void 0);
_.c([_.Z("videoDuration","playedTime"),_.h("design:type",Number),_.h("design:paramtypes",[])],Fn.prototype,"percentPlayed",null);_.c([_.Z("videoDuration","playedTime"),_.h("design:type",Object),_.h("design:paramtypes",[])],Fn.prototype,"percentPlayedStyle",null);_.c([_.Z("videoDuration","isActive"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Fn.prototype,"hideProgressBar",null);
_.R(Fn,"ytd-progress-bar-line",function(){if(qxm===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);qxm=q}q=qxm;return q},{mode:_.kB("kevlar_poly_si_batch_j028")?1:2});var wN6;_.XK(_.hmu,"desktop-shorts-volume-controls",{propNames:["noSlider","orientation"]});var Gu=function(){var q=_.Y.apply(this,arguments)||this;q.playerState=null;q.isMuted=!1;q.shortsModernControlsEnabled=_.T("web_shorts_modern_controls");q.volumeControlsOrientationState="vertical_down";q.overlayDensity=0;q.JSC$19587_playerEvents=new Map;return q};
_.O(Gu,_.Y);_.k=Gu.prototype;_.k.created=function(){this.JSC$19587_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19587_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.k.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.oV(28662);this.playPauseButtonClientVE=_.oV(36842);this.fullscreenButtonToggleOffClientVE=_.oV(222256);this.fullscreenButtonToggleOnClientVE=_.oV(222257);var q=_.pN(),w=_.ZB();q&&w&&(_.T("combine_ve_grafts")?(_.ku(_.Qz(),this.muteButtonClientVE,w),_.ku(_.Qz(),this.playPauseButtonClientVE,w)):_.RD(q,w,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.k.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19587_playerEvents),this.player=null)};
_.k.getPlayerAndInitializeListeners=function(){var q=this,w;return _.F(function(u){if(u.nextAddress==1)return w=_.xo(),w?_.H(u,w.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Fj(q,q.onPageChanged)),u.jumpTo(0));q.player=u.yieldResult;q.initializePlayerListeners();_.HI(u)})};
_.k.onPageChanged=function(q){var w=this;return _.F(function(u){if(u.nextAddress==1)return q.detail.newPageType!=="ytd-shorts"?u.return():_.H(u,_.qI().getPlayerPromise(),2);w.player=u.yieldResult;w.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Fj(w,w.onPageChanged));_.HI(u)})};
_.k.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19587_playerEvents)};
_.k.onPlayerStateChange=function(q){this.playerState=q};
_.k.onPlayerVolumeChange=function(q){this.isMuted=q.muted};
_.k.onPlayPauseButtonClick=function(){var q=this,w,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,_.qI().getPlayerPromise(),2);w=y.yieldResult;(u=_.pN())&&q.playPauseButtonClientVE&&_.jB(u,q.playPauseButtonClientVE);w.getPlayerState()!==1?w.playVideo():w.pauseVideo();_.HI(y)})};
_.k.computePlayPauseIcon=function(q){return q===2||q===-1||q===5?_.T("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.T("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.T("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.k.computeFullscreenLabel=function(q){return q?_.ID("FULLSCREEN_EXIT_LABEL"):_.ID("FULLSCREEN_ENTER_LABEL")};
_.k.computePlayPauseLabel=function(q){return q===1||q===3?_.ID("PLAYER_LABEL_PAUSE"):_.ID("PLAYER_LABEL_PLAY")};
_.k.onMuteButtonClick=function(){var q=this,w,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,_.qI().getPlayerPromise(),2);w=y.yieldResult;(u=_.pN())&&q.muteButtonClientVE&&_.jB(u,q.muteButtonClientVE);w.isMuted()?w.unMute(!0):w.mute(!0);_.HI(y)})};
_.k.computeMuteIcon=function(q){return q?"miniplayer:volume-off":"miniplayer:volume-up"};
_.k.computeMuteLabel=function(q){return q?_.ID("PLAYER_LABEL_UNMUTE"):_.ID("PLAYER_LABEL_MUTE")};
_.k.onFullscreenButtonClick=function(){var q=_.pN();q&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.jB(q,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.jB(q,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.VZx()};
_.x$.Object.defineProperties(Gu.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var q=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(){q.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?_.T("web_shorts_modern_controls")?"player_full_exit_delhi_player":_.T("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.T("web_shorts_modern_controls")?"player_full_enter_delhi_player":_.T("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Gu.prototype,"componentBehavior",void 0);_.c([_.D(_.b7.YtPlayerListenerBehavior),_.h("design:type",_.Yp)],Gu.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],Gu.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Gu.prototype,"player",void 0);_.c([_.v(),_.h("design:type",Object)],Gu.prototype,"playerState",void 0);_.c([_.v(),_.h("design:type",Object)],Gu.prototype,"isMuted",void 0);
_.c([_.v({computed:"computePlayPauseIcon(playerState)"}),_.h("design:type",String)],Gu.prototype,"playPauseIcon",void 0);_.c([_.v({computed:"computeMuteIcon(isMuted)"}),_.h("design:type",String)],Gu.prototype,"muteIcon",void 0);_.c([_.v({selector:_.Hy}),_.h("design:type",Boolean)],Gu.prototype,"isFullscreen",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Gu.prototype,"shortsModernControlsEnabled",void 0);
_.c([_.v(),_.h("design:type",Object)],Gu.prototype,"volumeControlsOrientationState",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Gu.prototype,"overlayDensity",void 0);_.c([_.Z("playerState"),_.h("design:type",Object),_.h("design:paramtypes",[])],Gu.prototype,"playPauseButtonData",null);_.c([_.Z("isFullscreen"),_.h("design:type",Object),_.h("design:paramtypes",[])],Gu.prototype,"fullscreenButtonData",null);
_.c([_.Z("isFullscreen"),_.h("design:type",String),_.h("design:paramtypes",[])],Gu.prototype,"fullscreenIcon",null);
_.R(Gu,"ytd-shorts-player-controls",function(){if(wN6===void 0){var q=document.createElement("template");_.f(q,'\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    <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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);wN6=q}q=wN6;return q},{mode:1});var uBx;_.q9(_.ERj,"yt-interstitial-view-model",{props:{data:_.pK}});var yT6=_.LL(function(q){var w=q.data;return _.W("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.W("h1",{class:"reelWatchBreakViewModelHostTitle"},_.W(_.Lr,{text:function(){return w().title}})),_.W("h2",{class:"reelWatchBreakViewModelHostBody"},_.W(_.Lr,{text:function(){return w().body},
isOverlay:!0})),_.W(_.OF,{data:function(){return w().buttons}},{buttonViewModel:function(u,y){return _.W("div",{class:function(){return y()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.W(_.Zs,{data:u.data}))}}))},"Bi");
yT6.idomCompat=!0;_.q9(yT6,"reel-watch-break-view-model",{props:{data:_.pK}});var nb=function(){return _.Y.apply(this,arguments)||this};
_.O(nb,_.Y);nb.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}}};
_.x$.Object.defineProperties(nb.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var q;return!!_.C((q=this.data)==null?void 0:q.renderer,cN4)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var q;return!!_.C((q=this.data)==null?void 0:q.renderer,SRh)}}});
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],nb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],nb.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],nb.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],nb.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.Z("data.renderer"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],nb.prototype,"isSurvey",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data.renderer"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],nb.prototype,"isInterstitialViewModel",null);nb=_.c([_.E({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],nb);
_.R(nb,"ytd-reel-non-video-content-renderer",function(){if(uBx!==void 0)return uBx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);
return uBx=q},{mode:_.kB("kevlar_poly_si_batch_j028")?1:2});var eRV;_.q9(_.bha,"desktop-shorts-player-controls",{});var HW=function(){var q=_.Y.apply(this,arguments)||this;q.isPlayerPaused=!1;q.isPlayerStarted=!1;q.showPlayerControls=!1;q.showScrubber=!1;q.autoHideJobId=0;q.modern=_.T("web_button_rework");q.overlayType=_.GQ("web_shorts_expanded_overlay_type");q.panelData=void 0;q.isWatchWhileMode=!1;q.hasError=!1;q.panelShowDelayMs=1;q.scrubberComponent={};q.useStamper=_.T("web_shorts_enable_title_deflation");q.isFullscreen=!1;q.shouldHideOverlay=!1;q.enableAnchoredPanel=_.T("desktop_shorts_v2_anchored_panel");
q.enablePersistentAnchoredPanel=_.T("desktop_shorts_v2_persistent_anchored_panel");q.hideWatchWhilePanel=_.T("web_shorts_hide_watch_while_panel");q.isPersistentPanelActive=!1;q.anchoredPanelActive=!1;q.isShortsPipActive=!1;q.smallScreenSqueezeback=!1;q.enableFlexibleOverlay=_.T("web_enable_flexible_overlay");q.enableRemixButton=_.T("web_enable_shorts_remix_handoff_ep");q.overlayDensity=0;q.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
q.onWindowResized=function(){_.bf(q,"calculateOverlayDensity",function(){q.calculateOverlayDensity()},100)};
return q};
_.O(HW,_.Y);_.k=HW.prototype;_.k.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.k.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.k.shouldRenderOverlayControl=function(q){return!this.useStamper&&this.isVideoContent(q)};
_.k.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var q=_.tG().resolve(_.ib);this.isWatchWhileMode&&(_.T("web_enable_shorts_new_carousel")?_.pi.addJob(function(){q.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):q.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.k.handleShowReelsCommentsOverlayCommand=function(q){q=_.C(q,lxH);this.isActive&&(q==null?0:q.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))};
_.k.updateEngagementPanelVisibility=function(q,w){q&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:w?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:q}})};
_.k.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.k.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.tG().resolve(_.xu).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.k.handleWatchWhilePanelScrimClick=function(){var q=_.tG().resolve(_.ib);this.activeWatchWhilePanel&&(q.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.k.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.k.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:_.T("web_enable_shorts_new_carousel")?0:void 0}}};
_.k.handlePlayerClick=function(q){var w=this,u,y;if((y=(u=window).matchMedia)!=null&&y.call(u,"(any-pointer: coarse)").matches||!q)this.showPlayerControls=!0,_.pi.cancelJob(this.autoHideJobId),this.autoHideJobId=_.mg(_.pi,function(){w.showPlayerControls=!1},4E3)};
_.k.isFirstReel=function(){return this.index===0};
_.k.handleMouseenter=function(){_.pi.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.k.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.k.handleScrubberEnter=function(){this.showScrubber=!0};
_.k.handleScrubberLeave=function(){this.showScrubber=!1};
_.k.maybeLogNonDefaultAspectRatio=function(){var q;(q=this.data)!=null&&q.thumbnail&&this.isActive&&.5625!==fxm(this.data.thumbnail)&&_.v5M("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.k.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var q=document.querySelector("#shorts-container");if(q){q=q.offsetWidth/2-this.playerContainer.offsetWidth/2;q=q>=368?1:q>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&q===1&&(q=0);this.isPersistentPanelActive&&(q=0);window.innerWidth<=599&&(q=2);this.overlayDensity=q;var w;(w=this.onOverlayDensityChanged)==null||w.call(this,this.index,this.overlayDensity)}}};
_.k.onOverlayDensityChange=function(){var q;(q=this.onOverlayDensityChanged)==null||q.call(this,this.index,this.overlayDensity);(q=_.A(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&q.set("overlayDensity",this.overlayDensity);if(q=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))q.overlayDensity=this.overlayDensity};
_.k.isVideoContent=function(q){_.tG().resolve(_.xu);return!!_.C(q,_.Tt)};
_.k.isNonVideoContent=function(q){_.tG().resolve(_.xu);return!!_.C(q,_.JO)};
_.k.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.x$.Object.defineProperties(HW.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var q,w;return _.T("web_enable_format_first")||((q=this.data)==null?void 0:q.adsOverlay)&&_.T("web_enable_format_first_ads_only")||((w=this.data)==null?void 0:w.reelPlayerOverlayRenderer)&&_.T("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var q;return!this.isActive||!this.isPlayerStarted||(q=this.data)!=null&&q.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var q;if(this.useStamper&&((q=this.data)==null?0:q.command)&&this.isVideoContent(this.data.command)){var w,u;if(((w=this.data)==null?0:w.adsOverlay)&&Object.keys((u=this.data)==null?void 0:u.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var y,e;if(((y=this.data)==null?0:y.reelPlayerOverlayRenderer)&&Object.keys((e=this.data)==null?void 0:e.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
HW.prototype.onOverlayDensityChange=HW.prototype.onOverlayDensityChange;HW.prototype.calculateOverlayDensity=HW.prototype.calculateOverlayDensity;HW.prototype.maybeLogNonDefaultAspectRatio=HW.prototype.maybeLogNonDefaultAspectRatio;HW.prototype.onEngagementPanelsChanged=HW.prototype.onEngagementPanelsChanged;HW.prototype.onScrubberDataChange=HW.prototype.onScrubberDataChange;HW.prototype.updateShouldHideOverlay=HW.prototype.updateShouldHideOverlay;
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],HW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],HW.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.D$.YtdGuideStateAwareBehavior),_.h("design:type",Object)],HW.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],HW.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Number)],HW.prototype,"index",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],HW.prototype,"isActive",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],HW.prototype,"isHiddenInDom",void 0);_.c([_.v(),_.h("design:type",Object)],HW.prototype,"isPlayerPaused",void 0);_.c([_.v({selector:ANK}),_.h("design:type",Object)],HW.prototype,"isPlayerStarted",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],HW.prototype,"showPlayerControls",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],HW.prototype,"showScrubber",void 0);_.c([_.v(),_.h("design:type",Object)],HW.prototype,"autoHideJobId",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],HW.prototype,"modern",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],HW.prototype,"overlayType",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],HW.prototype,"ytdReduxBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],HW.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],HW.prototype,"watchWhileEngagementPanels",void 0);_.c([_.v(),_.h("design:type",Object)],HW.prototype,"panelData",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],HW.prototype,"isWatchWhileMode",void 0);_.c([_.v(),_.h("design:type",String)],HW.prototype,"activeWatchWhilePanel",void 0);
_.c([_.v(),_.h("design:type",Object)],HW.prototype,"hasError",void 0);_.c([_.v(),_.h("design:type",Object)],HW.prototype,"panelShowDelayMs",void 0);_.c([_.v(),_.h("design:type",Object)],HW.prototype,"scrubberComponent",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],HW.prototype,"useStamper",void 0);_.c([_.v({selector:_.Hy,reflectToAttribute:!0}),_.h("design:type",Object)],HW.prototype,"isFullscreen",void 0);
_.c([_.v(),_.h("design:type",Object)],HW.prototype,"shouldHideOverlay",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],HW.prototype,"enableAnchoredPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],HW.prototype,"enablePersistentAnchoredPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],HW.prototype,"hideWatchWhilePanel",void 0);
_.c([_.v({selector:_.ANo,reflectToAttribute:!0}),_.h("design:type",Object)],HW.prototype,"isPersistentPanelActive",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],HW.prototype,"anchoredPanelActive",void 0);_.c([_.v({selector:_.Wy,reflectToAttribute:!0}),_.h("design:type",Object)],HW.prototype,"isShortsPipActive",void 0);_.c([_.v({selector:m7K,reflectToAttribute:!0}),_.h("design:type",Object)],HW.prototype,"smallScreenSqueezeback",void 0);
_.c([_.v({reflectToAttribute:!0}),_.Z("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],HW.prototype,"enableFormatFirst",null);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],HW.prototype,"enableFlexibleOverlay",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],HW.prototype,"enableRemixButton",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],HW.prototype,"overlayDensity",void 0);
_.c([_.v(),_.h("design:type",Function)],HW.prototype,"onOverlayDensityChanged",void 0);_.c([_.v(),_.Z("isActive","hasError"),_.h("design:type",Object),_.h("design:paramtypes",[])],HW.prototype,"shouldRenderPlayerElements",null);_.c([_.v(),_.Z("isActive","isWatchWhileMode"),_.h("design:type",Object),_.h("design:paramtypes",[])],HW.prototype,"watchWhileOrPersistentActive",null);
_.c([_.nL("isActive","hasError","showingExpandedOverlay"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HW.prototype,"updateShouldHideOverlay",null);_.c([_.v({reflectToAttribute:!0}),_.Z("isActive","isPlayerStarted","data"),_.h("design:type",Object),_.h("design:paramtypes",[])],HW.prototype,"shouldRenderScrubber",null);
_.c([_.nL("shouldRenderScrubber"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HW.prototype,"onScrubberDataChange",null);_.c([_.Z("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],HW.prototype,"overlayComponent",null);_.c([_.nL("watchWhileEngagementPanels"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HW.prototype,"onEngagementPanelsChanged",null);
_.c([_.Wj("#player-container"),_.h("design:type",HTMLElement)],HW.prototype,"playerContainer",void 0);_.c([_.Wj("#cinematic-container"),_.h("design:type",HTMLElement)],HW.prototype,"cinematicContainer",void 0);_.c([_.nL("isPersistentPanelActive","data.thumbnail"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HW.prototype,"maybeLogNonDefaultAspectRatio",null);
_.c([_.nL("isPersistentPanelActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HW.prototype,"calculateOverlayDensity",null);_.c([_.nL("overlayDensity"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HW.prototype,"onOverlayDensityChange",null);HW=_.c([_.E({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],HW);
_.R(HW,"ytd-reel-video-renderer",function(){if(eRV!==void 0)return eRV;var q=document.createElement("template");_.f(q,'\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="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="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return eRV=q},{mode:_.kB("kevlar_poly_si_batch_j028")?1:2});var WW=function(){var q=_.Y.apply(this,arguments)||this;q.isPreviousPageShorts=!1;q.index=0;q.delayedActiveIndex=0;q.playablePreviousIndex=null;q.isPlayerPaused=!1;q.isPlayerStarted=!1;q.intersectionObserverThreshold=.6;q.fitToVisibleBounds=!1;q.pageSubtype="shorts";q.enablePreviousContinuation=_.T("shorts_in_playlists_web");q.shortsPipEnabled=_.T("web_shorts_pip");q.isDark=document.documentElement.hasAttribute("dark");q.shortsViewTransitions=_.T("web_shorts_view_transitions");q.isFullscreen=!1;q.isShortsPipActive=
!1;q.buttonOverride={iconPosition:"icon-only",size:"XL"};q.anchoredPanelActive=!1;q.isActive=!1;q.smallScreenPersistentPanel=!1;q.isPersistentPanelActive=!1;q.smallScreenSqueezeBack=!1;q.enableScrollIntoViewCenter=_.T("web_scroll_into_view_center");q.formatFirst=_.T("web_enable_format_first")||_.T("web_enable_format_first_ads_only")||_.T("web_enable_format_first_organic_only");q.enableFlexibleOverlay=_.T("web_enable_flexible_overlay");q.isShortsInitialized=!1;q.hidePreviousButtonImmediately=!1;q.showPreviousButtonImmediately=
!1;q.endOfNextContinuation=!1;q.currentPlayerIndex=0;q.nextReelVe=_.oV(56921);q.prevReelVe=_.oV(56922);q.loopToggleOffVe=_.oV(198013);q.loopToggleOnVe=_.oV(198014);q.ambientModeToggleVe=_.oV(227860);q.reelPlayerPausedStateRendererVe=_.oV(141313);q.storedPlaybackSpeed=null;q.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"};
q.onOverlayDensityChanged=function(w,u){var y;(y=q.getActiveReelVideo(w))==null||y.setAttribute("overlay-density",String(u))};
return q};
_.O(WW,_.Y);_.k=WW.prototype;
_.k.deflateInactivePreviousSlides=function(){var q=_.Fc("web_shorts_deflate_inactive_slides_aggressive_distance");if(q>0&&this.shortsProcessedSequence&&this.activeIndex){q=this.activeIndex-q;for(var w=0;w<=q;w++){var u=void 0;((u=this.shortsProcessedSequence[w].reelPlayerOverlayRenderer)==null?0:u.metapanel)&&this.set("shortsProcessedSequence."+w+".reelPlayerOverlayRenderer",{});u=void 0;((u=this.shortsProcessedSequence[w].adsOverlay)==null?0:u.adSlotMetadata)&&this.set("shortsProcessedSequence."+w+
".adsOverlay",{})}}};
_.k.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.k.onResize=function(){var q=_.Mt(),w=q.dispatch,u=this.calculateIsSmallWidth();w.call(q,_.tr({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:u}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.k.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:_.T("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}}};
_.k.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var q=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,w=q,u=0;q<250&&(w=q+this.shortsInnerContainer.clientWidth,u=24);_.Pj(this.hostElement,{"--ytd-shorts-header-width":w+"px","--ytd-shorts-top-spacing":u+"px"})}};
_.k.isFirstShorts=function(q){return q?this.index===-q.length:this.index===0};
_.k.isActiveReel=function(q,w,u){u&&(w=this.calculatePrevIndex(w,u));return q===w};
_.k.onFullscreenChange=function(){if(_.T("web_fullscreen_shorts")){var q;(q=this.getActiveReelVideo(this.activeIndex))==null||q.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.tG().resolve(_.$X).close(!0)}};
_.k.engagementPanelsChanged=function(){var q;this.watchWhileEngagementPanels=(q=this.data)==null?void 0:q.engagementPanels};
_.k.unregisterPanels=function(){var q=_.tG().resolve(_.ib);if(this.watchWhileEngagementPanels)for(var w=_.P(this.watchWhileEngagementPanels),u=w.next();!u.done;u=w.next()){var y=void 0,e=void 0;u=(y=u.value.engagementPanelSectionListRenderer)==null?void 0:(e=y.identifier)==null?void 0:e.tag;q&&u&&q.panelMap.delete(u)}};
_.k.isVideoContent=function(q){return this.isVideoContentCommand(q==null?void 0:q.command)};
_.k.getActiveReelVideo=function(q){return _.A(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+q+'"]')};
_.k.calculatePrevIndex=function(q,w){return w?q-((w==null?void 0:w.length)||0):-1};
_.k.onKeydown=function(q){var w=_.SQ(q)||[];if(!_.O4K(w))if(q.code==="ArrowUp")q.preventDefault(),this.handlePrevButtonClick();else if(q.code==="ArrowDown")q.preventDefault(),this.handleNextButtonClick();else if(q.code==="KeyM")this.toggleMuteUnmuteVideo();else if(q.code==="KeyK"||q.code==="Space")this.togglePlayPauseVideo();else if((q.code==="KeyA"||q.code==="ArrowLeft")&&_.T("web_shorts_keyboard_enable_seek_shortcuts")){var u;(u=this.player)==null||u.seekBy(-5)}else if((q.code==="KeyD"||q.code===
"ArrowRight")&&_.T("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var y;(y=this.player)==null||y.seekBy(5)}};
_.k.onServiceRequestCompleted=function(q,w){q=w.data;q.continuationEndpoint&&q.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:q.entries,continuationEndpoint:q.continuationEndpoint}}):q.prevContinuationEndpoint&&q.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:q.prevEntries,prevContinuationEndpoint:q.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.k.handleEngagementPanelVisibilityChanged=function(q,w){var u=_.tG().resolve(_.ib);if(q&&u){var y,e=((y=q.identifier)==null?void 0:y.tag)||q.panelIdentifier||q.targetId;if(w==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==e){u.hidePanel(this.activePanel);var t;this.activePanel=((t=q.identifier)==null?void 0:t.tag)||q.panelIdentifier}else this.isPersistentPanelActive=!0,_.Mt().dispatch(pgK(!0)),this.anchoredPanelActive=!0,this.activePanel=e;else w==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===e&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Mt().dispatch(pgK(!1)))}};
_.k.handlePanelScrimClick=function(){var q=_.tG().resolve(_.ib);this.activePanel&&(q.hidePanel(this.activePanel),_.Mt().dispatch(pgK(!1)))};
_.k.getShortsLoopSetting=function(){var q,w,u,y,e;return _.F(function(t){switch(t.nextAddress){case 1:return _.T("kevlar_shorts_auto_advance")?_.H(t,_.T5.getInstance(),2):t.return(!0);case 2:return(q=t.yieldResult)?_.H(t,q.get("sfvles"),3):t.return(!0);case 3:return u=(w=t.yieldResult)!=null?w:!1,_.H(t,q.get("sfvle"),4);case 4:return e=(y=t.yieldResult)!=null?y:!0,u?t.return(e):t.return(!0)}})};
_.k.handleSignalActionToggleLoopShortsOff=function(){var q=this,w,u,y;return _.F(function(e){switch(e.nextAddress){case 1:if(!q.player)return e.return();q.player.setLoopVideo(!1);w=_.Qz();_.Ph(w,q.loopToggleOffVe);return _.H(e,_.T5.getInstance(),2);case 2:return(u=e.yieldResult)?_.H(e,u.set("sfvle",!1),3):e.return();case 3:return _.H(e,u.set("sfvles",!0),4);case 4:y=_.UC(),_.TM(0,203,!1),_.TM(0,204,!0),y.save(),_.HI(e)}})};
_.k.handleSignalActionToggleLoopShortsOn=function(){var q=this,w,u,y;return _.F(function(e){switch(e.nextAddress){case 1:if(!q.player)return e.return();q.player.setLoopVideo(!0);w=_.Qz();_.Ph(w,q.loopToggleOnVe);return _.H(e,_.T5.getInstance(),2);case 2:return(u=e.yieldResult)?_.H(e,u.set("sfvle",!0),3):e.return();case 3:return _.H(e,u.set("sfvles",!0),4);case 4:y=_.UC(),_.TM(0,203,!0),_.TM(0,204,!0),y.save(),_.HI(e)}})};
_.k.handleSignalActionToggleCinematicShortsOn=function(){VJ6(!0);var q;(q=this.JSC$19611_cinematicController)==null||_.CJx(q,!0);_.Ph(_.Qz(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.k.handleSignalActionToggleCinematicShortsOff=function(){VJ6(!1);var q;(q=this.JSC$19611_cinematicController)==null||_.CJx(q,!1);_.Ph(_.Qz(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.k.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.k.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.k.unhideCurrentOverlay=function(){if(this.overlayContainer){var q=this.overlayContainer.querySelector("#experiment-overlay");q&&_.pi.addLowPriorityJob(function(){q.style.display="unset"},100)}};
_.k.getCurrentShort=function(){if(this.currentEndpoint){var q=this.currentEndpoint;if(this.isNonVideoContentCommand(q)){var w=_.C(q,_.JO);return{reelNonVideoContentRenderer:_.C(w==null?void 0:w.renderer,_.YGT),command:q}}if(this.data){var u;w=(u=_.C(this.currentEndpoint,_.Tt))==null?void 0:u.thumbnail;var y;u=(y=this.data.overlay)==null?void 0:y.reelPlayerOverlayRenderer;_.tG().resolve(_.xu);q=this.data;var e,t;y=(e=q.overlay)==null?void 0:(t=e.shortsAdsRenderer)==null?void 0:t.adSlots;if(y!==void 0)y.length===
0?(_.BC("Shorts ads returned no ad slots."),q=void 0):(y.length>1&&_.BC("Shorts ads has more than one ad slots."),q=_.C(y[0],_.iCx));else{var X,G;q=_.C((X=q.overlay)==null?void 0:(G=X.shortsAdsRenderer)==null?void 0:G.overlay,_.iCx)}X=q;q=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.C(this.currentEndpoint,_.Tt),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:u,thumbnail:w,command:q,adsOverlay:X}}}};
_.k.created=function(){var q=this;this.scrollToVideoThrottle=new _.MI(function(w){var u;(u=q.getActiveReelVideo(w))==null||u.scrollIntoView({behavior:"smooth",block:"nearest",inline:q.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.MI(function(w){var u;(u=q.getActiveReelVideo(w))==null||u.scrollIntoView({behavior:"auto",block:"nearest",inline:q.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.k.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.k.attached=function(){var q=this;D76(this);this.pageScrollElement=_.A(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Fj(this,this.processResetAction));_.T("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.T("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var w=q.getActiveReelVideo(q.activeIndex);
q.maybeCreateIntersectionObserver();w==null||w.scrollIntoView({behavior:"instant",block:"nearest",inline:q.enableScrollIntoViewCenter?"center":"start"});q.shortsContainer.style.overflowY="scroll"}))};
_.k.calculateSqueezebackPanelSize=function(){var q=this,w=window.innerWidth-456-(window.innerHeight-106)*.5625;_.pi.addLowPriorityJob(function(){w<360?_.Mt().dispatch($76(!0)):(q.hostElement.style.setProperty("--anchored-panel-width",Math.min(w,480)+"px"),_.Mt().dispatch($76(!1)))})};
_.k.detached=function(){var q=_.tG().resolve(_.xu);q.rootElement=void 0;var w;(w=q.unsubscribeFromStore)==null||w.call(q);q.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Fj(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.k.onResizeFinished=function(q,w){var u=this,y=new ResizeObserver(function(){u.shortsContainer.style.overflowY="hidden";_.pi.addLowPriorityJob(function(){w()},100)});
y.observe(q);return y};
_.k.resetDocumentScrollTop=function(){var q,w;if((q=document)==null?0:(w=q.scrollingElement)==null?0:w.scrollTop)document.scrollingElement.scrollTop=0};
_.k.loadPage_=function(q){var w=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),q){var u;if((u=_.C(this.currentEndpoint,_.Tt))==null?0:u.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=q;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){w.isPlayerStarted&&
(w.handleOnPlaybackCommand(),w.afterPlayerStarted=function(){})};
this.registerPanel(q)}};
_.k.afterPlayerStarted=function(){};
_.k.handleOnPlaybackCommand=function(){if(_.T("web_shorts_comment_stickers")&&this.isPlayerStarted){var q,w=(q=_.C(this.currentEndpoint,_.Tt))==null?void 0:q.onPlaybackCommand;w&&this.ytComponentBehavior.resolveCommand(w)}};
_.k.maybeCreateIntersectionObserver=function(){var q=this,w=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==w){this.intersectionObserverThreshold=w;var u={rootMargin:"0px",threshold:w},y;(y=this.intersectionObserver)==null||y.disconnect();this.intersectionObserver=new IntersectionObserver(function(e){e=_.P(e);for(var t=e.next();!t.done;t=e.next())if(t=t.value,t.intersectionRatio>w){t=Number(t.target.id);if(isNaN(t))break;if(t===q.index)break;
_.M4u();q.loadVideo(t);_.pq("r_vtc")}},u);
this.observeShorts()}};
_.k.observeShorts=function(){var q=[].concat(_.Cm(_.A(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));q=_.P(q);for(var w=q.next();!w.done;w=q.next()){w=w.value;var u=void 0;(u=this.intersectionObserver)==null||u.observe(w)}};
_.k.initCsi=function(){_.On("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var q={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"}},w,u;if((w=this.playerData)==null?0:(u=w.cacheMetadata)==null?0:u.isCacheHit)q.isCacheHit=!0;var y;if(w=(y=_.C(this.currentEndpoint,_.Tt))==null?void 0:
y.prefetchTaskId)q.prefetchInfo={taskId:w};_.zM(q)};
_.k.isAd=function(){var q,w;return!!((q=_.C(this.currentEndpoint,_.Tt))==null?0:(w=q.adClientParams)==null?0:w.isAd)};
_.k.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.k.getPlayerContainer=function(){var q;return(q=_.A(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:q.playerContainer};
_.k.onPlayerStateChange=function(q){var w=this;this.isPlayerPaused=q===2;q!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?q===1&&this.index===0&&(this.isPlayerStarted||_.Mt().dispatch(eE(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Mt().dispatch(eE(!0)));this.player&&!this.player.getLoopVideo()&&_.pi.addLowPriorityJob(function(){w.getShortsLoopSetting().then(function(u){var y;(y=w.player)==null||y.setLoopVideo(u)})});
this.isPlayerPaused&&_.T("web_shorts_paused_state_logging")&&_.SB(_.pN(),[this.reelPlayerPausedStateRendererVe])};
_.k.isInBackground=function(){var q=window.document.visibilityState;return!(!q||q==="visible")};
_.k.isShortPlayable=function(){if(_.T("kevlar_playable_short_killswitch"))return!0;var q;return(q=this.playerData)!=null&&q.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.k.setNormalPlaybackSpeed=function(){var q=this,w,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,q.getPlayer().getPlayerPromise(),2);w=y.yieldResult;u=w.getPlaybackRate();u!==1&&(q.storedPlaybackSpeed=u,w.setPlaybackRate(1));_.HI(y)})};
_.k.restorePlaybackSpeed=function(){var q=this,w;return _.F(function(u){if(u.nextAddress==1)return q.storedPlaybackSpeed===null?u.jumpTo(0):_.H(u,q.getPlayer().getPlayerPromise(),3);w=u.yieldResult;w.setPlaybackRate(q.storedPlaybackSpeed);q.storedPlaybackSpeed=null;_.HI(u)})};
_.k.playerDataChanged=function(){var q=this,w,u,y,e,t,X,G,n,N;return _.F(function(Q){if(Q.nextAddress==1){w=q.getPlayer();_.T("web_shorts_dynamic_intersection_observer_threshold")&&((u=q.intersectionObserver)==null||u.disconnect());if(q.playerData){if(((y=q.playerData.videoDetails)==null?void 0:y.videoId)!==((e=w.getPlayer())==null?void 0:e.getVideoData().video_id)){t={};if(X=_.C(q.currentEndpoint,_.Tt))t.watch_endpoint=X,X.endTimeSeconds&&(t.end=X.endTimeSeconds);w.loadVideoWithPlayerResponse(q.playerData,
t)}}else return Q.return();return q.player?Q.jumpTo(2):_.H(Q,w.getPlayerPromise(),3)}Q.nextAddress!=2&&(q.player=Q.yieldResult,q.JSC$19611_playerStateChangeListener=q.onPlayerStateChange.bind(q),q.player.addEventListener("onStateChange",q.JSC$19611_playerStateChangeListener),_.T("kevlar_client_enable_shorts_player_bootstrap")&&_.LV(),q.scrollToVideoThrottle.fire(q.index),q.movePlayerToVideo(q.index),_.pi.addLowPriorityJob(function(){q.getShortsLoopSetting().then(function(I){var U;(U=q.player)==null||
U.setLoopVideo(I)})}),_.dRF.resolve(q.player),q.player.syncVolume(),q.getPlayer().focusOnPlayer());
_.T("web_shorts_caption_language_entity_killswitch")||_.pi.addLowPriorityJob(function(){var I=_.tG().resolve(_.xu),U,d=(U=q.player)==null?void 0:U.getOption("captions","track");U=_.na("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(d){var V;((V=_.Qo(_.jdc,U)())==null?void 0:V.value)!==d.displayName&&I.store.dispatch(_.IH("stringEntity",U,{key:U,value:d.displayName||""}))}else I.store.dispatch(_.IH("stringEntity",U,{key:U,value:"CAPTIONS_UNAVAILABLE"}))});
_.pi.addLowPriorityJob(function(){q.observeShorts()},100);
G=q.player.getPlayerState(q.player.getPresentingPlayerType());G!==1||q.isPlayerStarted||_.Mt().dispatch(eE(!0));q.updateBackNavContainerWidth();n=_.C(q.currentEndpoint,_.Tt);((N=n)==null?0:N.startTimeSeconds)&&q.player.seekTo(n.startTimeSeconds);if(q.JSC$19611_cinematicController||q.cinematicsInitializeJobId)return Q.return();q.cinematicsInitializeJobId=_.pi.addLowPriorityJob(function(){q.initCinematicController();q.cinematicsInitializeJobId=void 0});
_.HI(Q)})};
_.k.onShortUndoDismiss=function(){var q=this,w=ZWT().pop();w!==void 0&&(_.KJ(this,function(){q.showCardWithIndex(w)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.k.onShortsDismiss=function(q){if(q=q.detail.reelDismissalActionRenderer)(q=_.C(q.onDismissalCompletionRenderer,_.xpA))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:q}}}),this.scrollAndDismissCard()};
_.k.processReelNonVideoContentDismissalCommand=function(q){var w=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);q=_.C(q,j$j);this.activeDimissalTimeout=setTimeout(function(){w.scrollAndDismissCard()},Number(q==null?void 0:q.delayMs))};
_.k.scrollAndDismissCard=function(){var q=this,w=this.index;ZWT().push(w);_.KJ(this,function(){var u=q.getPlayableNextIndex();u!==null&&(u=q.getActiveReelVideo(u),q.hideCardWithIndex(w),u==null||u.scrollIntoView({behavior:"smooth",block:"nearest",inline:q.enableScrollIntoViewCenter?"center":"start"}))})};
_.k.hideCardWithIndex=function(q){if(q=this.getActiveReelVideo(q))q.hidden=!0};
_.k.showCardWithIndex=function(q){if(q=this.getActiveReelVideo(q))q.hidden=!1};
_.k.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.k.activeChanged=function(q){_.Mt().dispatch(_.tr({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:q}}));if(q)document.addEventListener("keydown",_.Fj(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var w;(w=this.player)==null||w.sendAbandonmentPing()}var u;(u=this.player)==null||u.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Fj(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.k.graftClientVisualElements=function(){if(this.data){var q=_.Qz();_.Cx3(q,_.Hw({response:this.reelWatchSequenceResponse}));_.ku(q,this.nextReelVe);_.ku(q,this.prevReelVe);_.T("kevlar_shorts_auto_advance")&&(_.ku(q,this.loopToggleOffVe),_.ku(q,this.loopToggleOnVe));_.ku(q,this.ambientModeToggleVe);_.SB(_.pN(),[this.nextReelVe,this.prevReelVe]);_.T("web_shorts_paused_state_logging")&&_.ku(q,this.reelPlayerPausedStateRendererVe)}};
_.k.graftNvcRenderer=function(){var q,w,u,y,e=this.index<0?(q=this.shortsProcessedPrevSequence)==null?void 0:(w=q[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:w.command:(u=this.shortsProcessedSequence)==null?void 0:(y=u[this.index])==null?void 0:y.command;if(e&&this.isNonVideoContentCommand(e)){q=_.C(e,_.JO);var t,X;(q=(t=_.C(q==null?void 0:q.renderer,_.YGT))==null?void 0:(X=t.loggingDirectives)==null?void 0:X.trackingParams)&&_.Qz().graftServerVe(q)}};
_.k.setActiveIndex=function(){_.tG().resolve(_.xu).setActiveIndex(this.index)};
_.k.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.k.lazyUpdateMiniplayerData=function(){var q=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.pi.addLowPriorityJob(function(){q.updateMiniplayerData();q.updateMiniplayerDataJobId=void 0}))};
_.k.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.pi.cancelJob(this.updateMiniplayerDataJobId)};
_.k.updateMiniplayerData=function(){var q,w,u,y=_.tG().resolve(_.$X),e={shortsData:this.getCurrentShort(),previousButtonDisabled:!((q=this.prevButtonData)==null||!q.isDisabled),nextButtonDisabled:!((w=this.nextButtonData)==null||!w.isDisabled),playabilityStatus:(u=this.playerData)==null?void 0:u.playabilityStatus};_.T$(y,e)};
_.k.resetPlayerLocation=function(){var q=this.getPlayer();this.initialPlayerContainer&&q.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.k.movePlayerToVideo=function(q,w){var u=this;w=w===void 0?!0:w;var y=this.getActiveReelVideo(q),e=this.getPlayer();if(y){this.overlayContainer||(this.overlayContainer=_.A(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||e.appendTo(this.overlayContainer.playerContainer,void 0,!0));y.appendChild(this.overlayContainer);var t;(t=this.player)==null||t.setSize(NaN,NaN);this.isActive||_.mg(_.pi,function(){u.isActive=!0});
e.style.visibility="visible";_.T("reels_web_disable_rtr_tick")||_.T("reels_web_use_pbs_first_shorts")&&q===0||_.D_("r_tr");this.currentPlayerIndex=q;y.appendChild(this.errorScreenContainer);var X;(X=this.JSC$19611_cinematicController)==null||_.OWh(X)}else w?_.pi.addLowPriorityJob(function(){u.movePlayerToVideo(u.index,!1)}):Math.random()<=_.Fc("web_shorts_error_logging_threshold")&&_.bD(new _.fv("Trying to movePlayerToVideo with undefined container.",{firstAttempt:w,
index:q}))};
_.k.enableFormatFirst=function(q){return _.T("web_enable_format_first")||q.adsOverlay&&_.T("web_enable_format_first_ads_only")||q.reelPlayerOverlayRenderer&&_.T("web_enable_format_first_organic_only")};
_.k.getAspectRatio=function(q){if(q!=null&&q.thumbnail&&this.enableFormatFirst(q))return"--ytd-shorts-player-ratio: "+fxm(q.thumbnail)};
_.k.getBackgroundImage=function(q){if(q!=null&&q.thumbnail)return(q=_.uv(q.thumbnail.thumbnails))?'background-image:url("'+q+'");':"background-color:black;"};
_.k.onPersistentPanelActiveChanged=function(){var q=this.getCurrentShort();if(q&&this.enableFormatFirst(q)&&(q==null?0:q.thumbnail)&&fxm(q.thumbnail)!==.5625){var w;(w=this.player)==null||w.setSize(NaN,NaN)}};
_.k.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.k.moveCinematicsToVideo=function(){var q=_.A(this.hostElement).querySelector("ytd-reel-video-renderer");(q==null?0:q.cinematicContainer)&&q.cinematicContainer!==this.shortsCinematicContainer.parentElement&&q.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.k.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.k.updatePrevButtonData=function(){var q=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(q){var w;this.prevButtonData=q=Object.assign({},q,{accessibility:{label:_.ID("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:q.isDisabled||this.index===-(((w=this.shortsProcessedPrevSequence)==null?void 0:w.length)||0),tooltip:this.isUpArrowHidden?"":_.ID("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=q=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.k.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.k.updateNextButtonData=function(){var q=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(q){var w;this.nextButtonData=q=Object.assign({},q,{accessibility:{label:_.ID("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:q.isDisabled||this.index===((w=this.shortsProcessedSequence)==null?void 0:w.length),tooltip:_.ID("NEXT_VIDEO_LABEL")||""})}};
_.k.getPlayablePreviousIndex=function(){for(var q,w=this.index-1;w>=-(((q=this.prevShortsSequence)==null?void 0:q.length)||0);w--)if(!ZWT().includes(w))return w;return null};
_.k.getIndexInSequence=function(q,w){return q.findIndex(function(u){var y;return((y=_.C(u.command,_.Tt))==null?void 0:y.videoId)===w})};
_.k.handlePrevButtonClick=function(q){var w=this,u,y;return _.F(function(e){u=w.getPlayablePreviousIndex();if(u===null)return e.return();w.gestureType=((y=q)==null?void 0:y.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";u===0&&(w.hidePreviousButtonImmediately=!0);if(w.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){w.transitionToVideoThrottle.fire(u)}),e.return();
w.scrollToVideoThrottle.fire(u);_.HI(e)})};
_.k.getPlayableNextIndex=function(){for(var q,w=this.index+1;w<(((q=this.shortsProcessedSequence)==null?void 0:q.length)||0);w++)if(!ZWT().includes(w))return w;return null};
_.k.handleNextButtonClick=function(q,w){var u=this,y,e;return _.F(function(t){y=u.getPlayableNextIndex();if(y===null)return t.return();y===1&&(u.showPreviousButtonImmediately=!0);u.gestureType=((e=q)==null?void 0:e.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";w&&(u.gestureType=w);if(u.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){u.transitionToVideoThrottle.fire(y)}),t.return();
u.scrollToVideoThrottle.fire(y);_.HI(t)})};
_.k.handleReelNavigateCommand=function(q,w,u){(q=_.C(q,htx))&&w&&q.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(u)};
_.k.loadVideo=function(q,w){w=w===void 0?!1:w;if(q!==this.currentPlayerIndex){_.Mt().dispatch(eE(!1));if(this.isAd()&&!w){var u;(u=this.player)==null||u.notifyShortsAdSwipeEvent()}if((w=this.JSC$19611_cinematicController)!=null){var y;(y=w.currentCinematicEffect)==null||y.pause()}if((y=this.JSC$19611_cinematicController)!=null){var e;(e=y.currentCinematicEffect)==null||e.clear()}y=q>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(y));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var t,X,G,n;e=q<0?(t=this.shortsProcessedPrevSequence)==null?void 0:(X=t[this.shortsProcessedPrevSequence.length+q])==null?void 0:X.command:(G=this.shortsProcessedSequence)==null?void 0:(n=G[q])==null?void 0:n.command;this.index=q;this.gestureType||(this.gestureType=y?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
e&&this.isVideoContentCommand(e)&&(this.ytComponentBehavior.resolveCommand(e,{form:{createScreenConfig:{clickedVisualElement:y?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(e&&this.isNonVideoContentCommand(e)){this.currentEndpoint=e;this.data=void 0;t=_.Qz();X=_.C(e,_.JO);var N,Q;(X=(N=_.C(X==null?void 0:X.renderer,_.YGT))==null?void 0:(Q=N.screenLoggingData)==null?void 0:Q.screenVeType)&&_.e$(t,X);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo()}var I,U;if(((I=this.reelWatchSequenceResponse)==null?0:I.continuationEndpoint)&&((U=this.reelWatchSequenceResponse)==null?0:U.entries)&&q===this.reelWatchSequenceResponse.entries.length-1){var d,V;N={contentPlaybackContext:_.Cp({},(V=_.C((d=this.currentEndpoint)==null?void 0:d.commandMetadata,_.wk))==null?void 0:V.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:N})}var J,a,b;((J=this.reelWatchSequenceResponse)==
null?0:J.prevContinuationEndpoint)&&q===-(((a=this.reelWatchSequenceResponse)==null?void 0:(b=a.prevEntries)==null?void 0:b.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.k.setMiniplayerPreview=function(q){q=(q===void 0?0:q)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var w,u,y=_.tG().resolve(_.$X),e={shortsData:void 0,shortsPreviewThumbnail:q?(w=this.shortsProcessedSequence)==null?void 0:(u=w[q])==null?void 0:u.thumbnail:void 0};_.T$(y,e)};
_.k.updateTitle=function(q){var w,u;q=(q==null?0:q.adPlacements)?"":(u=q==null?void 0:(w=q.videoDetails)==null?void 0:w.title)!=null?u:"";_.t7(this.hostElement,"yt-update-title",q)};
_.k.registerPanel=function(q){var w=_.tG().resolve(_.ib);if(w){q=_.P(q.engagementPanels||[]);for(var u=q.next();!u.done;u=q.next()){u=u.value;var y=u.engagementPanelSectionListRenderer,e=void 0,t=void 0,X=void 0,G=void 0,n=((e=y)==null?void 0:e.targetId)||((t=y)==null?void 0:t.panelIdentifier)||((X=y)==null?void 0:(G=X.identifier)==null?void 0:G.tag);e=y=void 0;(e=(y=w).registerPanelContent)==null||e.call(y,n,u)}}};
_.k.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;_.Mt().dispatch(eE(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.Mt().dispatch(pgK(!1));var q=_.tG().resolve(_.xu);q.dismissedIndices=[];q.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.tG().resolve(_.$X).close(!0)};
_.k.processAppendReelWatchSequenceContinuationEntriesAction=function(q){var w=this,u;(u=this.intersectionObserver)==null||u.disconnect();q=q.appendReelWatchSequenceContinuationEntriesAction;if(q==null?0:q.entries){var y;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.Cm(((y=this.reelWatchSequenceResponse)==null?void 0:y.entries)||[]),_.Cm(q.entries)),continuationEndpoint:q.continuationEndpoint})}else if(q==null?0:q.prevEntries){var e;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.Cm(((e=this.reelWatchSequenceResponse)==null?void 0:e.prevEntries)||[]),_.Cm(q.prevEntries)),prevContinuationEndpoint:q.prevContinuationEndpoint});_.pi.addLowPriorityJob(function(){w.movePlayerToVideo(w.index);var t;(t=w.getActiveReelVideo(w.index))==null||t.scrollIntoView({block:"nearest",inline:w.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.pi.addLowPriorityJob(function(){w.observeShorts()},100)};
_.k.processWatchSequence=function(q){var w=this;return q.map(function(u){u=u.command;if(w.isVideoContentCommand(u)){var y=_.C(u,_.Tt);return{reelPlayerOverlayRenderer:_.C(y==null?void 0:y.overlay,_.g2F),thumbnail:y.thumbnail,command:u}}return w.isNonVideoContentCommand(u)?(y=_.C(u,_.JO),{reelNonVideoContentRenderer:_.C(y==null?void 0:y.renderer,_.YGT),command:u}):{command:u}})};
_.k.calculateIntersectionObserverThreshold=function(){if(!_.T("web_shorts_dynamic_intersection_observer_threshold"))return.6;var q=_.A(this.hostElement).querySelector("ytd-reel-video-renderer"),w=1;(q==null?0:q.offsetHeight)&&(q==null?0:q.offsetWidth)&&(w=Math.min(q.offsetHeight,this.shortsContainer.offsetHeight)/q.offsetHeight*(Math.min(q.offsetWidth,this.shortsContainer.offsetWidth)/q.offsetWidth));return Math.round(w*.6*10)/10};
_.k.isVideoContentCommand=function(q){_.tG().resolve(_.xu);return!!_.C(q,_.Tt)};
_.k.isNonVideoContentCommand=function(q){_.tG().resolve(_.xu);return!!_.C(q,_.JO)};
_.k.initCinematicController=function(){var q=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19611_cinematicController=new _.yd(this.shortsCinematicContainer,this.player);var w,u=_.C((w=this.data)==null?void 0:w.background,_.TA);_.d7j(this.JSC$19611_cinematicController,u);_.CJx(this.JSC$19611_cinematicController,og6(u));_.Ti6(this.JSC$19611_cinematicController);_.pi.addLowPriorityJob(function(){q.moveCinematicsToVideo()})}};
_.k.handleMiniplayerNavigateShorts=function(q){q==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():q==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.k.handleSignalActionToggleShortsPictureInPicture=function(){if(_.tG().resolve(_.$X).pictureInPictureSupported()){var q=_.tG().resolve(_.xu);if(_.T("web_shorts_pip")){var w=_.tG().resolve(_.$X);q.isShortsPipActive()?w.deactivate():w.isMiniplayerActive()||(_.Hh().shortsPipActivation=!0,_.LT4(w))}}else(q=this.player)==null||q.togglePictureInPicture()};
_.k.shouldDisplayReelVideoOverlay=function(q,w){return _.T("web_enable_shorts_new_carousel")?Math.abs(q-w)<2:!0};
_.x$.Object.defineProperties(WW.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.reelWatchSequenceResponse)!=null&&q.prevEntries)return this.processWatchSequence([].concat(_.Cm(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var q=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!q)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var w=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.Cm(this.prevShortsSequence.slice(0,w)),[q],_.Cm(this.prevShortsSequence.slice(w+
1)))}w=this.index+this.shortsProcessedPrevSequence.length;q.thumbnail=this.shortsProcessedPrevSequence[w].thumbnail;return[].concat(_.Cm(this.shortsProcessedPrevSequence.slice(0,w)),[q],_.Cm(this.shortsProcessedPrevSequence.slice(w+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.reelWatchSequenceResponse)!=null&&q.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var q=this.getCurrentShort();if(!q||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[q];if(q==null||!q.reelNonVideoContentRenderer){var w=this.getIndexInSequence(this.shortsSequence,_.C(this.currentEndpoint,_.Tt).videoId);if(this.index===0&&w!==-1)return this.currentPlayerIndex=this.index=w,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.Cm(this.shortsSequence.slice(0,this.index)),[q],_.Cm(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){q.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var u,y,e,t;w=((y=_.C((u=this.shortsProcessedSequence[0])==null?void 0:u.command,_.Tt))==null?void 0:y.videoId)===((t=_.C((e=this.shortsSequence[0])==null?void 0:e.command,_.Tt))==null?void 0:t.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.Cm(this.shortsProcessedSequence.slice(0,
this.index)),[q],_.Cm(this.shortsSequence.slice(w)))}return[q].concat(_.Cm(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var q=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;q&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(q)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 q,w;return this.index===((q=this.reelWatchSequenceResponse)==null?void 0:(w=q.entries)==null?void 0:w.length)}var u;return!((u=this.reelWatchSequenceResponse)==null?0:u.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var q;(q=this.delayedActiveIndexUpdateDebouncer)==null||q.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return this.isShortPlayable()||((w=_.C((q=this.data)==null?void 0:q.watchStatus,_.MFP))==null?void 0:(u=w.style)==null?void 0:u.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var q=this,w=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),u;if((this.data||w)&&(((u=this.data)==null?0:u.engagementPanels)||this.isAd()||w)){w=!1;this.activePanel="shorts-comments-panel";var y;u=_.P(((y=this.data)==null?void 0:y.engagementPanels)||[]);for(y=u.next();!y.done;y=u.next()){y=y.value.engagementPanelSectionListRenderer;var e=void 0,t=void 0,X=void 0,G=void 0;if((((e=y)==null?void 0:(t=e.identifier)==
null?void 0:t.tag)||((X=y)==null?void 0:X.targetId)||((G=y)==null?void 0:G.panelIdentifier))===this.activePanel){w=!0;break}}if(this.isPersistentPanelActive){var n=_.tG().resolve(_.ib);_.mg(_.pi,function(){n.showPanel(q.activePanel,void 0,void 0,void 0,null)},100)}var N;
u=[].concat(_.Cm(Object.values(((N=this.data)==null?void 0:N.engagementPanels)||{})));if(_.T("enable_preview_panel_for_shorts_search_suggested_action")){var Q,I,U,d,V;((d=_.C((Q=this.data)==null?void 0:(I=Q.overlay)==null?void 0:(U=I.reelPlayerOverlayRenderer)==null?void 0:U.metapanel,_.b9T))==null?void 0:(V=d.metadataItems)==null?void 0:V.find(function(J){var a,b;return((a=_.C(J,L9j))==null?void 0:(b=a.icon)==null?void 0:b.iconType)==="SEARCH"}))!==void 0&&u.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}N=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);Q=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return N===void 0&&Q===void 0||(N==null?0:N.isDisabled)||(Q==null?void 0:Q.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!w?(w=u==null?void 0:u.findIndex(function(J){var a,
b;return((a=J.engagementPanelSectionListRenderer)==null?void 0:(b=a.identifier)==null?void 0:b.tag)==="shorts-comments-panel"}),w===-1||w===void 0||u!=null&&u.splice(w,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.ID("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.ID("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:_.ID("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.ID("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(_.Cm(Object.values(u||
{})))):u}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.shortsProcessedSequence)==null?void 0:q[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var q=this,w,u,y;if((w=this.playerData)==null?0:(u=w.playabilityStatus)==null?0:(y=u.errorScreen)==null?0:y.playerInterstitialRenderer)return _.pi.addLowPriorityJob(function(){q.movePlayerToVideo(q.index)}),this.playerData.playabilityStatus.errorScreen;
var e,t;return((e=this.data)==null?void 0:e.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((t=this.data)==null?0:t.watchStatus)&&_.C(this.data.watchStatus,_.MKF)?(_.pi.addLowPriorityJob(function(){q.movePlayerToVideo(q.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.x$.Object.defineProperties(WW,{template:{configurable:!0,enumerable:!0,get:function(){if(K9c===void 0){var q=document.createElement("template");_.f(q,'\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    <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    <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-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);K9c=q}q=K9c;return q}}});
WW.prototype.onNextButtonDataChange=WW.prototype.onNextButtonDataChange;WW.prototype.onPrevButtonDataChange=WW.prototype.onPrevButtonDataChange;WW.prototype.onPersistentPanelActiveChanged=WW.prototype.onPersistentPanelActiveChanged;WW.prototype.lazyUpdateMiniplayerData=WW.prototype.lazyUpdateMiniplayerData;WW.prototype.onShortsPipActiveChanged=WW.prototype.onShortsPipActiveChanged;WW.prototype.setActiveIndex=WW.prototype.setActiveIndex;WW.prototype.graftNvcRenderer=WW.prototype.graftNvcRenderer;
WW.prototype.graftClientVisualElements=WW.prototype.graftClientVisualElements;WW.prototype.onActiveChanged=WW.prototype.onActiveChanged;WW.prototype.onShortsDismiss=WW.prototype.onShortsDismiss;WW.prototype.onShortUndoDismiss=WW.prototype.onShortUndoDismiss;WW.prototype.playerDataChanged=WW.prototype.playerDataChanged;WW.prototype.afterPlayerStarted=WW.prototype.afterPlayerStarted;WW.prototype.unhideCurrentOverlay=WW.prototype.unhideCurrentOverlay;WW.prototype.onServiceRequestCompleted=WW.prototype.onServiceRequestCompleted;
WW.prototype.engagementPanelsChanged=WW.prototype.engagementPanelsChanged;WW.prototype.onFullscreenChange=WW.prototype.onFullscreenChange;WW.prototype.onResize=WW.prototype.onResize;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],WW.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.oL.YtPageBehavior),_.h("design:type",Object)],WW.prototype,"ytPageBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],WW.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.D(_.mF),_.h("design:type",Object)],WW.prototype,"ironResizableBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],WW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],WW.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.D(_.D$.YtdGuideStateAwareBehavior),_.h("design:type",Object)],WW.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],WW.prototype,"ytdReduxBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],WW.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],WW.prototype,"playerData",void 0);_.c([_.v(),_.h("design:type",Object)],WW.prototype,"reelWatchSequenceResponse",void 0);_.c([_.v(),_.h("design:type",Object)],WW.prototype,"cachedReelWatchSequenceResponse",void 0);_.c([_.v(),_.h("design:type",Object)],WW.prototype,"currentEndpoint",void 0);_.c([_.v(),_.h("design:type",Object)],WW.prototype,"nextButtonData",void 0);
_.c([_.v(),_.h("design:type",Object)],WW.prototype,"prevButtonData",void 0);_.c([_.v(),_.h("design:type",Object)],WW.prototype,"isPreviousPageShorts",void 0);_.c([_.v(),_.h("design:type",Object)],WW.prototype,"index",void 0);_.c([_.v(),_.h("design:type",Object)],WW.prototype,"delayedActiveIndex",void 0);_.c([_.v(),_.h("design:type",Object)],WW.prototype,"playablePreviousIndex",void 0);_.c([_.v(),_.h("design:type",Object)],WW.prototype,"player",void 0);
_.c([_.v(),_.h("design:type",Object)],WW.prototype,"isPlayerPaused",void 0);_.c([_.v({selector:ANK}),_.h("design:type",Object)],WW.prototype,"isPlayerStarted",void 0);_.c([_.v(),_.h("design:type",Object)],WW.prototype,"intersectionObserver",void 0);_.c([_.v(),_.h("design:type",Number)],WW.prototype,"cinematicsInitializeJobId",void 0);_.c([_.v(),_.h("design:type",Number)],WW.prototype,"updateMiniplayerDataJobId",void 0);_.c([_.v(),_.h("design:type",Object)],WW.prototype,"fitToVisibleBounds",void 0);
_.c([_.v(),_.h("design:type",Object)],WW.prototype,"pageSubtype",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],WW.prototype,"enablePreviousContinuation",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],WW.prototype,"shortsPipEnabled",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],WW.prototype,"isDark",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],WW.prototype,"shortsViewTransitions",void 0);
_.c([_.v({selector:_.Hy,reflectToAttribute:!0}),_.h("design:type",Object)],WW.prototype,"isFullscreen",void 0);_.c([_.v({selector:_.Wy,reflectToAttribute:!0}),_.h("design:type",Object)],WW.prototype,"isShortsPipActive",void 0);_.c([_.Wj("#shorts-inner-container"),_.h("design:type",HTMLElement)],WW.prototype,"shortsInnerContainer",void 0);_.c([_.Wj("#back-nav-button ytd-button-renderer"),_.h("design:type",_.Eh)],WW.prototype,"backNavButton",void 0);
_.c([_.Wj("#shorts-container"),_.h("design:type",HTMLElement)],WW.prototype,"shortsContainer",void 0);_.c([_.l2("error-screen"),_.h("design:type",HTMLElement)],WW.prototype,"errorScreenContainer",void 0);_.c([_.l2("player"),_.h("design:type",Object)],WW.prototype,"playerElement",void 0);_.c([_.l2("shorts-cinematic-container"),_.h("design:type",HTMLElement)],WW.prototype,"shortsCinematicContainer",void 0);
_.c([_.l2("initial-player-container"),_.h("design:type",HTMLElement)],WW.prototype,"initialPlayerContainer",void 0);_.c([_.v(),_.h("design:type",Object)],WW.prototype,"buttonOverride",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],WW.prototype,"anchoredPanelActive",void 0);_.c([_.v(),_.h("design:type",String)],WW.prototype,"activePanel",void 0);_.c([_.v(),_.h("design:type",Object)],WW.prototype,"isActive",void 0);
_.c([_.v({selector:m7K,reflectToAttribute:!0}),_.h("design:type",Object)],WW.prototype,"smallScreenPersistentPanel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],WW.prototype,"isPersistentPanelActive",void 0);_.c([_.v(),_.h("design:type",Object)],WW.prototype,"smallScreenSqueezeBack",void 0);_.c([_.v(),_.h("design:type",Object)],WW.prototype,"enableScrollIntoViewCenter",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],WW.prototype,"formatFirst",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],WW.prototype,"enableFlexibleOverlay",void 0);_.c([_.v(),_.h("design:type",Object)],WW.prototype,"panelContainer",void 0);_.c([_.v(),_.h("design:type",Object)],WW.prototype,"overlayContainer",void 0);_.c([_.v(),_.h("design:type",Object)],WW.prototype,"isShortsInitialized",void 0);_.c([_.Z("reelWatchSequenceResponse"),_.h("design:type",Object),_.h("design:paramtypes",[])],WW.prototype,"prevShortsSequence",null);
_.c([_.Z("data","prevShortsSequence"),_.h("design:type",Object),_.h("design:paramtypes",[])],WW.prototype,"shortsProcessedPrevSequence",null);_.c([_.Z("reelWatchSequenceResponse"),_.h("design:type",Object),_.h("design:paramtypes",[])],WW.prototype,"shortsSequence",null);_.c([_.Z("data","shortsSequence"),_.h("design:type",Object),_.h("design:paramtypes",[])],WW.prototype,"shortsProcessedSequence",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],WW.prototype,"isUpArrowHidden",null);_.c([_.v({reflectToAttribute:!0}),_.Z("reelWatchSequenceResponse","index","endOfNextContinuation"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],WW.prototype,"isDownArrowHidden",null);
_.c([_.v(),_.Z("index"),_.h("design:type",Number),_.h("design:paramtypes",[])],WW.prototype,"activeIndex",null);_.c([_.Z("isShortPlayable","data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],WW.prototype,"shouldRenderOfflineContent",null);_.c([_.Gm("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WW.prototype,"onResize",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],WW.prototype,"anchoredEngagementPanels",null);
_.c([_.v(),_.h("design:type",Object)],WW.prototype,"watchWhileEngagementPanels",void 0);_.c([_.nL("isFullscreen"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WW.prototype,"onFullscreenChange",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WW.prototype,"engagementPanelsChanged",null);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],WW.prototype,"onServiceRequestCompleted",null);_.c([_.Z("data","shortsSequence","index"),_.h("design:type",Object),_.h("design:paramtypes",[])],WW.prototype,"activeReel",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WW.prototype,"unhideCurrentOverlay",null);
_.c([_.nL("isPlayerStarted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WW.prototype,"afterPlayerStarted",null);_.c([_.Z("playerData","reelWatchSequenceResponse","data"),_.h("design:type",Object),_.h("design:paramtypes",[])],WW.prototype,"errorScreen",null);_.c([_.Z("errorScreen"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],WW.prototype,"hasError",null);
_.c([_.nL("playerData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],WW.prototype,"playerDataChanged",null);_.c([_.Gm("yt-dismissible-item-undo-feedback"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WW.prototype,"onShortUndoDismiss",null);_.c([_.Gm("yt-disable-lockup-interaction"),_.h("design:type",Function),_.h("design:paramtypes",[Object]),_.h("design:returntype")],WW.prototype,"onShortsDismiss",null);
_.c([_.I9("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WW.prototype,"onActiveChanged",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WW.prototype,"graftClientVisualElements",null);_.c([_.nL("currentPlayerIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WW.prototype,"graftNvcRenderer",null);
_.c([_.nL("index"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WW.prototype,"setActiveIndex",null);_.c([_.nL("isShortsPipActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WW.prototype,"onShortsPipActiveChanged",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WW.prototype,"lazyUpdateMiniplayerData",null);
_.c([_.v(),_.h("design:type",Object)],WW.prototype,"onOverlayDensityChanged",void 0);_.c([_.nL("isPersistentPanelActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WW.prototype,"onPersistentPanelActiveChanged",null);_.c([_.nL("index","data","isUpArrowHidden"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WW.prototype,"onPrevButtonDataChange",null);
_.c([_.nL("index","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WW.prototype,"onNextButtonDataChange",null);WW=_.c([_.E({is:"ytd-shorts"})],WW);_.Co.registerService(_.y4J,WW);
_.pY();
}catch(e){_._DumpException(e)}
try{
_.ZH("JzFVk");
var VIH=function(q){return _.W("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},obj(q.data.ctaButton,{buttonViewModel:{}}),_.W(_.Lr,{text:q.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var fqA;var mpH;var a_=function(){return _.Y.apply(this,arguments)||this};
_.O(a_,_.Y);a_.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
a_.prototype.computeBlueBottomLink=function(q){return q};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],a_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],a_.prototype,"data",void 0);_.c([_.v({computed:"computeIcon_(data.bottomIcon)"}),_.h("design:type",String)],a_.prototype,"bottomIcon",void 0);
_.c([_.v({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.h("design:type",Boolean)],a_.prototype,"enableBlueBottomLink",void 0);a_=_.c([_.E({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],a_);
_.R(a_,"ytd-web-answer-renderer",function(){if(mpH!==void 0)return mpH;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return mpH=q},{mode:_.kB("kevlar_poly_si_batch_j035")?1:2});var AuT;var Dp=function(){var q=_.Y.apply(this,arguments)||this;q.hasChipBar=!1;return q};
_.O(Dp,_.Y);Dp.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}}};
Dp.prototype.computeHasChipBar=function(q){return!(q==null||!q.chipBar)};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Dp.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Dp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Dp.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.h("design:type",Object)],Dp.prototype,"hasChipBar",void 0);Dp=_.c([_.E({is:"ytd-search-header-renderer",disableElementRegistration:!0})],Dp);
_.R(Dp,"ytd-search-header-renderer",function(){if(AuT!==void 0)return AuT;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return AuT=q},{mode:1});var Juj;var Zp=function(){return _.Y.apply(this,arguments)||this};
_.O(Zp,_.Y);Zp.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Zp.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Zp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Zp.prototype,"data",void 0);Zp=_.c([_.E({disableElementRegistration:!0,is:"ytd-page-continuation"})],Zp);
_.R(Zp,"ytd-page-continuation",function(){if(Juj!==void 0)return Juj;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Juj=q},{mode:1});var zE4;var aq6;var Dp4;var ps=function(){return _.Y.apply(this,arguments)||this};
_.O(ps,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ps.prototype,"data",void 0);ps=_.c([_.E({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],ps);
_.R(ps,"ytd-watch-card-one-vs-one-event",function(){if(Dp4!==void 0)return Dp4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Dp4=q},{mode:1});var $R=function(){return _.Y.apply(this,arguments)||this};
_.O($R,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],$R.prototype,"data",void 0);$R=_.c([_.E({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],$R);
_.R($R,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(aq6!==void 0)return aq6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return aq6=q},{mode:1});var Z_K;var v7=function(){return _.Y.apply(this,arguments)||this};
_.O(v7,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],v7.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],v7.prototype,"data",void 0);v7=_.c([_.E({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],v7);
_.R(v7,"ytd-banner-and-box-hero-image-renderer",function(){if(Z_K!==void 0)return Z_K;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Z_K=q},{mode:1});var pPH;var bz=function(){var q=_.Y.apply(this,arguments)||this;q.modern=_.T("web_modern_buttons");return q};
_.O(bz,_.Y);bz.prototype.computeIcon=function(){var q,w,u=(q=this.data)==null?void 0:(w=q.icon)==null?void 0:w.iconType;if(u)return _.Fy(u)};
bz.prototype.computeButtonShape=function(){var q;return{buttonText:_.lA((q=this.data)==null?void 0:q.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.x$.Object.defineProperties(bz.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"}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],bz.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],bz.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],bz.prototype,"modern",void 0);_.c([_.v({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Z("data.style"),_.h("design:type",Object),_.h("design:paramtypes",[])],bz.prototype,"buttonColor",null);
bz=_.c([_.E({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],bz);
_.R(bz,"ytd-call-to-action-button-renderer",function(){if(pPH!==void 0)return pPH;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return pPH=q},{mode:1});var $pj;var YR=function(){return _.Y.apply(this,arguments)||this};
_.O(YR,_.Y);YR.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.A(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.wm(this.data.leftThumbnail.thumbnails,216)+")")};
YR.prototype.onLeftThumbnailChanged=YR.prototype.onLeftThumbnailChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],YR.prototype,"data",void 0);_.c([_.nL("data.leftThumbnail"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],YR.prototype,"onLeftThumbnailChanged",null);YR=_.c([_.E({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],YR);
_.R(YR,"ytd-collage-hero-image-renderer",function(){if($pj!==void 0)return $pj;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return $pj=q},{mode:1});var vbx;var gz=function(){return _.Y.apply(this,arguments)||this};
_.O(gz,_.Y);gz.prototype.computeStyle=function(q){return q};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],gz.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],gz.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],gz.prototype,"componentStyle",void 0);gz=_.c([_.E({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],gz);
_.R(gz,"ytd-single-hero-image-renderer",function(){if(vbx!==void 0)return vbx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return vbx=q},{mode:1});var b_K;var Ea=function(){return _.Y.apply(this,arguments)||this};
_.O(Ea,_.Y);_.k=Ea.prototype;
_.k.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.T("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.k.computeSubtitle=function(q){if(this.data){var w;if(this.data.upcomingEventData){q=_.lA(q.subtitle);var u=Number(this.data.upcomingEventData.startTime);isNaN(u)||(w=_.jN(_.pr(q,u)))}else w=q.subtitle;return w}};
_.k.onHeroTap=function(q){q.preventDefault();var w=this.data&&this.data.navigationEndpoint;!w||!_.LT(_.SQ(q),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.LT(_.SQ(q),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.T("kevlar_watchcard_hero_video_renderer_killswitch")?_.t7(this.hostElement,"yt-navigate",{navigationEndpoint:w}):this.ytComponentBehavior.resolveCommand(w))};
_.k.computeHeroTabIndex=function(q){return q&&q.simpleText?-1:0};
_.k.computeHeroRole=function(q){return q&&q.simpleText?"":"link"};
_.k.computeIsReminderButtonPresent=function(q){return!(!q||!q.reminderButton)};
_.k.computeHideBottomItems=function(q){return!(this.computeIsReminderButtonPresent(q)||q.subtitle)};
_.k.dataChanged=function(){var q=this.get("data.buttons.buttonRenderer.serviceEndpoint"),w;((w=_.C(q==null?void 0:q.commandMetadata,_.oB))==null?0:w.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(q)};
Ea.prototype.dataChanged=Ea.prototype.dataChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Ea.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ea.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ea.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ea.prototype,"data",void 0);
_.c([_.v({computed:"computeSubtitle(data)"}),_.h("design:type",String)],Ea.prototype,"subtitle",void 0);_.c([_.v({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Ea.prototype,"isReminderButtonPresent",void 0);_.c([_.v({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Ea.prototype,"hideBottomItems",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ea.prototype,"dataChanged",null);Ea=_.c([_.E({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],Ea);
_.R(Ea,"ytd-watch-card-hero-video-renderer",function(){if(b_K!==void 0)return b_K;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return b_K=q},{mode:1});var YH6;var R_=function(){return _.Y.apply(this,arguments)||this};
_.O(R_,_.Y);_.k=R_.prototype;_.k.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"}}}};
_.k.computeTitleBadges=function(q){return q?[q]:[]};
_.k.computeHeaderStyle=function(q){return q?q.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.k.computeAvatarAriaLabel=function(q){if(q){var w,u,y,e;return(e=(w=q.avatar)==null?void 0:(u=w.accessibility)==null?void 0:(y=u.accessibilityData)==null?void 0:y.label)!=null?e:_.lA(q==null?void 0:q.title)}};
_.k.computeAvatarHeight=function(q){return q==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.k.computeBadgeRowClass=function(q){return(q==null?0:q[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],R_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],R_.prototype,"data",void 0);_.c([_.v({computed:"computeTitleBadges(data.titleBadge)"}),_.h("design:type",Array)],R_.prototype,"titleBadges",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.h("design:type",String)],R_.prototype,"headerStyle",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.h("design:type",String)],R_.prototype,"badgeRowClass",void 0);R_=_.c([_.E({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],R_);
_.R(R_,"ytd-watch-card-rich-header-renderer",function(){if(YH6!==void 0)return YH6;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return YH6=q},{mode:1});var gbq;var Eb6;var c7=function(){return _.Y.apply(this,arguments)||this};
_.O(c7,_.Y);c7.prototype.onMetadataTap=function(q){var w=this.data&&this.data.navigationEndpoint;w&&!_.LT(_.SQ(q),this.hostElement,["A".toString()])&&_.t7(this.hostElement,"yt-navigate",{endpoint:w})};
_.x$.Object.defineProperties(c7.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 q;if(this.data.upcomingEventData){var w=_.lA(this.data.subtitle),u=Number(this.data.upcomingEventData.startTime);isNaN(u)||(q=_.jN(_.pr(w,u)))}else q=this.data.subtitle;return q}}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],c7.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("data.style"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],c7.prototype,"isCondensed",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],c7.prototype,"subtitle",null);
c7=_.c([_.E({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],c7);
_.R(c7,"ytd-watch-card-compact-video-renderer",function(){if(Eb6!==void 0)return Eb6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Eb6=q},{mode:1});var REx;var SG=function(){return _.Y.apply(this,arguments)||this};
_.O(SG,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],SG.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],SG.prototype,"data",void 0);SG=_.c([_.E({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],SG);
_.R(SG,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(REx!==void 0)return REx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return REx=q},{mode:1});var hF=function(){return _.Y.apply(this,arguments)||this};
_.O(hF,_.Y);hF.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}}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],hF.prototype,"ytRendererStamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],hF.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],hF.prototype,"data",void 0);hF=_.c([_.E({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],hF);
_.R(hF,"ytd-vertical-watch-card-list-renderer",function(){if(gbq!==void 0)return gbq;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return gbq=q},{mode:1});var cuj;var jG=function(){var q=_.Y.apply(this,arguments)||this;q.ariaExpanded="false";return q};
_.O(jG,_.Y);_.k=jG.prototype;_.k.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.k.dataChanged=function(){var q;this.currentSeasonIndex=((q=this.data)==null?void 0:q.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.k.computeEpisodesInfo=function(q,w,u){if(q!==void 0&&w.length===q.length)return q[u]};
_.k.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.k.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.k.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.k.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.k.getUppercaseSimpleString=function(q){return this.ytRendererBehavior.getSimpleString(q).toUpperCase()};
_.k.updateCurrentSeasonIndexFromBinding=function(q){this.currentSeasonIndex=q.detail.value};
jG.prototype.onIronOverlayClosed=jG.prototype.onIronOverlayClosed;jG.prototype.currentSeasonIndexChanged=jG.prototype.currentSeasonIndexChanged;jG.prototype.dataChanged=jG.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],jG.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],jG.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],jG.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",String)],jG.prototype,"label",void 0);_.c([_.v({value:0}),_.h("design:type",Number)],jG.prototype,"currentSeasonIndex",void 0);_.c([_.v({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.h("design:type",Object)],jG.prototype,"episodesInfo",void 0);_.c([_.v({value:"false"}),_.h("design:type",Object)],jG.prototype,"ariaExpanded",void 0);_.c([_.Wj("#lists"),_.h("design:type",Object)],jG.prototype,"lists",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jG.prototype,"dataChanged",null);_.c([_.I9("currentSeasonIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jG.prototype,"currentSeasonIndexChanged",null);_.c([_.Gm("iron-overlay-closed"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],jG.prototype,"onIronOverlayClosed",null);
jG=_.c([_.E({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],jG);
_.R(jG,"ytd-watch-card-section-dropdown-renderer",function(){if(cuj!==void 0)return cuj;var q=document.createElement("template");_.f(q,'\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="yt-icons:arrow_drop_down" 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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return cuj=q},{mode:1});var SH6;var lz=function(){var q=_.Y.apply(this,arguments)||this;q.isSearch=!1;return q};
_.O(lz,_.Y);lz.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}}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],lz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],lz.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],lz.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],lz.prototype,"isSearch",void 0);lz=_.c([_.E({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],lz);
_.R(lz,"ytd-watch-card-section-sequence-renderer",function(){if(SH6!==void 0)return SH6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);
return SH6=q},{mode:1});var obj=_.UF({buttonViewModel:_.Zs});_.t2(VIH);_.XK(VIH,"ytd-button-banner-view-model",{propNames:["data"]});var Ls=function(){var q=_.Y.apply(this,arguments)||this;q.isSearch=!1;return q};
_.O(Ls,_.Y);
Ls.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"}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ls.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ls.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],Ls.prototype,"rounded",void 0);_.c([_.v(),_.h("design:type",Object)],Ls.prototype,"isSearch",void 0);
Ls=_.c([_.E({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],Ls);
_.R(Ls,"ytd-universal-watch-card-renderer",function(){if(zE4!==void 0)return zE4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return zE4=q},{mode:1});var hET;_.q9(_.LL(function(q){var w=q.data;var u;q=!((u=_.tG().resolve(_.kF(_.Rg)))==null||!u());u={};return _.W("overview-message-view-model",{class:_.HR("ytwOverviewMessageViewModelHost",(u.ytwOverviewMessageViewModelDarkBackground=q,u.ytwOverviewMessageViewModelLightBackground=!q,u))},_.W(_.r,{cond:function(){return w().primaryImage},
then:function(y){return _.W(_.ln,{data:y,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.W(_.r,{cond:function(){return w().primaryText},
then:function(){return _.W("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.W(_.Lr,{text:function(){return w().primaryText}}))}}),_.W(_.r,{cond:function(){return w().secondaryText},
then:function(){return _.W("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.W(_.Lr,{text:function(){return w().secondaryText}}))}}))},"zi"),"overview-message-view-model",{props:{data:_.pK}});_.XK(_.IAa,"ytd-overview-answer-view-model",{propNames:["data"]});var Mg=function(){return _.Y.apply(this,arguments)||this};
_.O(Mg,_.Y);Mg.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"}}}};
Mg.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Mg.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Mg.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.JR),_.h("design:type",Object)],Mg.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Mg.prototype,"data",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],Mg.prototype,"isSearch",void 0);
Mg=_.c([_.E({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],Mg);
_.R(Mg,"ytd-secondary-search-container-renderer",function(){if(hET!==void 0)return hET;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);
return hET=q},{mode:1});var jWT;var Ks=function(){var q=_.Y.apply(this,arguments)||this;q.renderSecondarySearchContainer=!1;q.isSearch=!1;q.isSearchDova=_.T("dova_on_search");return q};
_.O(Ks,_.Y);_.k=Ks.prototype;_.k.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.k.created=function(){var q=this;this.boundStampSecondarySearchContainerIfFits=function(){q.stampSecondarySearchContainerIfFits()};
_.g_("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.k.computeIsSearchFrictionPage=function(q){var w,u,y,e,t;q=q==null?void 0:(w=q.primaryContents)==null?void 0:(u=w.sectionListRenderer)==null?void 0:(y=u.contents)==null?void 0:(e=y[0])==null?void 0:(t=e.itemSectionRenderer)==null?void 0:t.contents;if(!q)return!1;w=_.P(q);for(u=w.next();!u.done;u=w.next())if(y=void 0,(y=u.value)==null?0:y.searchFrictionViewModel)return!0;return!1};
_.k.computeShowSecondaryColumn=function(q,w){return!!(w&&w.secondaryContents&&q)};
_.k.activeChanged=function(){var q=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Fj(this,this.debounceStampSecondarySearchContainerIfFits)),_.vj(function(){q.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Fj(this,this.debounceStampSecondarySearchContainerIfFits))};
_.k.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.k.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.k.debounceStampSecondarySearchContainerIfFits=function(){_.bf(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.k.onRetrieveLocation=function(q,w){w.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);q.stopPropagation()};
_.k.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
Ks.prototype.dataChanged=Ks.prototype.dataChanged;Ks.prototype.onRetrieveLocation=Ks.prototype.onRetrieveLocation;Ks.prototype.persistentGuideChanged=Ks.prototype.persistentGuideChanged;Ks.prototype.activeChanged=Ks.prototype.activeChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ks.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.D$.YtdGuideStateAwareBehavior),_.h("design:type",Object)],Ks.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.D(_.mF),_.h("design:type",Object)],Ks.prototype,"ironResizableBehavior",void 0);_.c([_.v(),_.h("design:type",Boolean)],Ks.prototype,"active",void 0);_.c([_.v(),_.h("design:type",Object)],Ks.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],Ks.prototype,"useBiggerThumbs",void 0);_.c([_.v({reflectToAttribute:!0,value:function(){return _.GQ("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],Ks.prototype,"biggerThumbsStyle",void 0);_.c([_.v(),_.h("design:type",Object)],Ks.prototype,"renderSecondarySearchContainer",void 0);_.c([_.v({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.h("design:type",Boolean)],Ks.prototype,"showSecondaryColumn",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.h("design:type",Boolean)],Ks.prototype,"isSearchFrictionPage",void 0);
_.c([_.v(),_.h("design:type",Object)],Ks.prototype,"isSearch",void 0);_.c([_.v(),_.h("design:type",Object)],Ks.prototype,"isSearchDova",void 0);_.c([_.nL("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ks.prototype,"activeChanged",null);_.c([_.nL("guidePersistentAndVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ks.prototype,"persistentGuideChanged",null);
_.c([_.Gm("yt-retrieve-location"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Ks.prototype,"onRetrieveLocation",null);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ks.prototype,"dataChanged",null);Ks=_.c([_.E({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],Ks);
_.R(Ks,"ytd-two-column-search-results-renderer",function(){if(jWT!==void 0)return jWT;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return jWT=q},{mode:1});var B7=function(){var q=_.Y.apply(this,arguments)||this;q.hasSearchHeader=!1;q.hasSecondaryContent=!1;q.hasBiggerThumbs=_.T("enable_desktop_search_bigger_thumbs");q.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return q};
_.O(B7,_.Y);_.k=B7.prototype;_.k.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:_.JQ(["aa","eocs"])}}};
_.k.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.k.loadPage_=function(q){this.initCsi();q&&(this.data=q,_.g_("REFINEMENTS_TUPLE",["FromSearchResponse",q.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.q5(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.k.initCsi=function(){_.On("results",["ol","cpt"])};
_.k.updateTitle=function(){var q=_.c2(window.location.href,"q");q||(q=_.c2(window.location.href,"search_query"));_.t7(this.hostElement,"yt-update-title",q||"")};
_.k.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.k.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.T("web_srp_data_changed_terminate_imp_killswitch")||_.Pw(this.hostElement,"yt-terminate-video-preview-action")};
_.k.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.k.computeHasSearchHeader=function(q){var w;q=q==null?void 0:(w=q.header)==null?void 0:w.searchHeaderRenderer;return!!q&&(!!q.searchFilterButton||!!q.chipBar)};
_.k.computeHasSecondaryContent=function(q){var w,u;return!!(q==null?0:(w=q.contents)==null?0:(u=w.twoColumnSearchResultsRenderer)==null?0:u.secondaryContents)};
_.x$.Object.defineProperties(B7,{template:{configurable:!0,enumerable:!0,get:function(){if(fqA===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);fqA=q}q=fqA;return q}}});
B7.prototype.onReloadContinuationFinish=B7.prototype.onReloadContinuationFinish;B7.prototype.dataChanged=B7.prototype.dataChanged;_.c([_.D(_.oL.YtPageBehavior),_.h("design:type",Object)],B7.prototype,"ytPageBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],B7.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],B7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.JR),_.h("design:type",Object)],B7.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],B7.prototype,"data",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],B7.prototype,"monitorScroll",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],B7.prototype,"hasSearchHeader",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],B7.prototype,"hasSecondaryContent",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],B7.prototype,"hasBiggerThumbs",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],B7.prototype,"dataChanged",null);
_.c([_.Gm("yt-reload-continuation-finish"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],B7.prototype,"onReloadContinuationFinish",null);B7=_.c([_.E({is:"ytd-search"})],B7);_.Co.registerService(_.uYc,B7);
_.pY();
}catch(e){_._DumpException(e)}
try{
_.ZH("h8y2qb");
var AQx=function(q){if(q=_.tCl(q)){var w;(w=q.sources)!=null&&w[0]?(w=_.X9H(q),w=w<1?"VERTICAL":w>1?"HORIZONTAL":"SQUARE"):w=void 0;return w}},Vf=function(q){_.Iq.call(this,"upload");
this.opts.query=q},zoq=function(q,w){return _.W(JQa,{data:q,
onYtNavigate:w})},ayV=function(q,w){return _.HQ(q.entities,"pageHeaderEntity",w)},Zlx=function(q,w){return q.map(function(u){if(u.tabRenderer)return Dj6(u.tabRenderer);
if(u.expandableTabRenderer&&w){var y=u.expandableTabRenderer;return{customTabRenderable:function(){return w(y)}}}return{}})},Dj6=function(q){return{identifier:q.tabIdentifier,
aTagConfig:_.$B({innertubeCommand:q.endpoint,forceNewState:!0}),title:q.title,selected:q.selected,disabled:q.unselectable,icon:q.icon}},pDH=function(q){return _.tr({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:q})},$jV=function(q){if(!_.wE(document,"gtm-noscript")){var w=document.createElement("noscript");
w.id="gtm-noscript";w.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+q+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(w)}};_.w9(Vf,_.Iq);Vf.prototype.JSC$7973_setLabel=function(q){Vf.superClass_.JSC$7973_setLabel.call(this,q);return this};
Vf.prototype.addUploadMetadata=function(q,w){Vf.superClass_.addUploadMetadata.call(this,q,w);return this};var v56=function(q){if(q!=="youtubebanner"&&q!=="youtube-channel-banner")throw Error("Ul");Vf.call(this,q)};
_.O(v56,Vf);v56.prototype.JSC$7973_setLabel=function(q){Vf.prototype.JSC$7973_setLabel.call(this,q);return this};
v56.prototype.addUploadMetadata=function(q,w){Vf.prototype.addUploadMetadata.call(this,q,w);return this};var blV=[_.mF,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(q){_.fN(q).path[0]!==this&&(this.resetLayout(),q.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var q=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.y5(this._layoutDebouncer,_.OO,q);_.eM(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var q=this;requestAnimationFrame(function(){q.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(q){this.resizerShouldNotify(q)&&this._notifyDescendant(q)},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 Yy6=[_.yBF,{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(q,w){var u=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[q];if(!u)throw new ReferenceError(this._getUndefinedMsg(q));q=this._boundEffect(u,w||{});q.setUp();return q},
_effectsChanged:function(q,w,u){this._tearDownEffects();q&&u&&(q.split(" ").forEach(function(y){var e;y!==""&&((e=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[y])?this._effects.push(this._boundEffect(e,w[y])):console.warn(this._getUndefinedMsg(y)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(q,w){w=w||{};var u=parseFloat(w.startsAt||0),y=parseFloat(w.endsAt||1),e=y-u,t=function(){};
y=u===0&&y===1?q.run:function(X,G){q.run.call(this,Math.max(0,(X-u)/e),G)};
return{setUp:q.setUp?q.setUp.bind(this,w):t,run:q.run?y.bind(this):t,tearDown:q.tearDown?q.tearDown.bind(this):t}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(q){q.setUp()!==!1&&this._effectsRunFn.push(q.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(q){q.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(q,w){this._effectsRunFn&&this._effectsRunFn.forEach(function(u){u(q,w)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var q=this._clampedScrollTop;this._updateScrollState(q);this.threshold>0&&this._setThresholdTriggered(q>=this.threshold)}},
_getDOMRef:function(q){console.warn("_getDOMRef","`"+q+"` is undefined")},
_getUndefinedMsg:function(q){return"Scroll effect `"+q+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+q+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Vl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(q){var w={};q=parseFloat(q.scalar);w.background=this._getDOMRef("background");w.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");w.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");w.deltaBg=w.backgroundFrontLayer.offsetHeight-w.background.offsetHeight;w.deltaBg===0?(isNaN(q)&&(q=.8),w.deltaBg=(this._dHeight||0)*q):(isNaN(q)&&(q=
1),w.deltaBg*=q);this._fxParallaxBackground=w},
run:function(q){var w=this._fxParallaxBackground;this.transform("translate3d(0px, "+w.deltaBg*Math.min(1,q)+"px, 0px)",w.backgroundFrontLayer);w.backgroundRearLayer&&this.transform("translate3d(0px, "+w.deltaBg*Math.min(1,q)+"px, 0px)",w.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var g5m;var E5q;var RoT=function(){};
_.k=RoT.prototype;_.k._scrollTargetChanged=function(){};
_.k.scroll=function(){};
_.k._isValidScrollTarget=function(){};
_.k._toggleScrollListener=function(){};
_.k.toggleScrollListener=function(){};
_.k.createEffect=function(){};
_.k._effectsChanged=function(){};
_.k._layoutIfDirty=function(){};
_.k._boundEffect=function(){};
_.k._setUpEffect=function(){};
_.k._tearDownEffects=function(){};
_.k._runEffects=function(){};
_.k._scrollHandler=function(){};
_.k._scrollStateChanged=function(){};
_.k._getUndefinedMsg=function(){};
_.k.notifyResize=function(){};
_.k.assignParentResizable=function(){};
_.k.stopResizeNotificationsFor=function(){};
_.k._subscribeIronResize=function(){};
_.k._unsubscribeIronResize=function(){};
_.k.resizerShouldNotify=function(){};
_.k._onDescendantIronResize=function(){};
_.k._fireResize=function(){};
_.k._onIronRequestResizeNotifications=function(){};
_.k._parentResizableChanged=function(){};
_.k._notifyDescendant=function(){};
_.k._requestResizeNotifications=function(){};
_.k._findParent=function(){};
_.k._appResetLayoutHandler=function(){};
_.k.resetLayout=function(){};
_.k._notifyLayoutChanged=function(){};
_.k._notifyDescendantResize=function(){};
_.k._setThresholdTriggered=function(){};
RoT=_.o9({_template:function(){if(E5q!==void 0)return E5q;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;g5m===void 0&&(g5m=document.createElement("template"));var y=g5m;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return E5q=q},
is:"tp-yt-app-header",behaviors:[Yy6,blV],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 q=_.fN(this.$.slot).getDistributedNodes(),w=0,u;u=q[w];w++)if(u.nodeType===Node.ELEMENT_NODE)if(u.hasAttribute("sticky")){this._stickyElRef=u;break}else this._stickyElRef||(this._stickyElRef=u);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var q=this._clampedScrollTop,w=this._height===0||q===0,u=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;w||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();w?this._updateScrollState(q,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=u}},
_updateScrollState:function(q,w){if(this._height!==0){var u=0,y=this._top;var e=this._maxHeaderTop;var t=q-this._lastScrollTop,X=Math.abs(t),G=q>this._lastScrollTop,n=performance.now();this._mayMove()&&(u=this._clamp(this.reveals?y+t:q,0,e));q>=this._dHeight&&(u=this.condenses&&!this.fixed?Math.max(this._dHeight,u):u,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&X<100){if(n-this._initTimestamp>300||this._wasScrollingDown!==G)this._initScrollTop=q,this._initTimestamp=n;q>=e&&
(Math.abs(this._initScrollTop-q)>30||X>10?(G&&q>=e?u=e:!G&&q>=this._dHeight&&(u=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((u-y)/(t/(n-this._lastTimestamp)),0,300)+"ms"):u=this._top)}e=this._dHeight===0?q>0?1:0:u/this._dHeight;w||(this._lastScrollTop=q,this._top=u,this._wasScrollingDown=G,this._lastTimestamp=n);if(w||e!==this._progress||y!==u||q===0)this._progress=e,this._runEffects(e,u),this._transformHeader(u)}},
_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(q){this.translate3d(0,-q+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&q>=this._stickyElTop?Math.min(q,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(q,w,u){return Math.min(u,Math.max(w,q))},
_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),_.fN(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(q){switch(q){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.fN(this).querySelector("[main-title]");case "condensedTitle":return _.fN(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var cQm;var Syc;_.o9({_template:function(){if(Syc!==void 0)return Syc;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;cQm===void 0&&(cQm=document.createElement("template"));var y=cQm;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return Syc=q},
is:"tp-yt-app-header-layout",behaviors:[blV],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.fN(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var q=this.header;if(this.isAttached&&q){this.$.wrapper.classList.remove("initializing");q.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)q.style.left=
"",q.style.right="";else{var w=this.getBoundingClientRect(),u=document.documentElement.clientWidth-w.right;q.style.left=w.left+"px";q.style.right=u+"px"}w=this.$.contentContainer.style;u=q.offsetHeight;q.fixed&&!q.condenses&&this.hasScrollingRegion?(w.marginTop=u+"px",w.paddingTop=""):(w.paddingTop=u+"px",w.marginTop="")}}});var ho4=new _.M("replaceFeedContentAction");var jnc=new _.M("alertCommand");var ly6=new _.M("manageLabsStateCommand");var LVm=new _.M("inlineFormRenderer");var fe=new _.M("playlistSidebarPrimaryInfoRenderer");var MTj=new _.M("productDetailsThumbnailRenderer"),KVH=new _.M("productDetailsVariantRenderer"),BeT=new _.M("productDetailsVariantOptionRenderer"),xjH=new _.M("productDetailsOffersContainerRenderer"),qQH=new _.M("productDetailsOfferRenderer");var weq=new _.M("shoppingFlaggingRenderer");var ueK=new _.M("playlistBylineRenderer");var ysj=new _.M("insertChannelTabCommand");var mq=function(){return _.Na.apply(this,arguments)||this};
_.O(mq,_.Na);_.k=mq.prototype;_.k.activeChanged=function(){if(this.active){var q=_.A(this.hostElement).querySelector("#header");q&&_.t7(q,"iron-resize");window.addEventListener("scroll",_.Fj(this,this.onScroll))}else window.removeEventListener("scroll",_.Fj(this,this.onScroll)),_.t7(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.k.guideVisibleChanged=function(){var q=_.A(this.hostElement).querySelector("#header");q&&_.t7(q,"iron-resize")};
_.k.onScroll=function(){var q=this;_.bf(this,"onScroll",function(){var w=_.A(q.hostElement).querySelector("#header");w&&w.polymerController&&(w=w.polymerController.getScrollState().progress===1?"standard":"seamed",_.t7(q.hostElement,"yt-request-panel-mode-change",{mode:w}))},10)};
_.k.tabsChanged=function(){if(this.tabs){for(var q=null,w=0,u=this.tabs.length;w<u;++w){var y=this.tabs[w].tabRenderer;if(y&&y.selected){q=w;break}}this.selected=q}};
_.k.onTabsActivate=function(q){_.t7(this.hostElement,"yt-navigate",{endpoint:this.tabs[q.detail.selected].tabRenderer.endpoint})};
mq.prototype.tabsChanged=mq.prototype.tabsChanged;mq.prototype.guideVisibleChanged=mq.prototype.guideVisibleChanged;mq.prototype.activeChanged=mq.prototype.activeChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],mq.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.D$.YtdGuideStateAwareBehavior),_.h("design:type",Object)],mq.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.v(),_.h("design:type",Array)],mq.prototype,"tabs",void 0);
_.c([_.v(),_.h("design:type",Object)],mq.prototype,"selected",void 0);_.c([_.v(),_.h("design:type",Boolean)],mq.prototype,"active",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],mq.prototype,"disableHeaderFluidWidth",void 0);_.c([_.nL("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mq.prototype,"activeChanged",null);
_.c([_.nL("guidePersistentAndVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mq.prototype,"guideVisibleChanged",null);_.c([_.nL("tabs"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mq.prototype,"tabsChanged",null);mq=_.c([_.Q6()],mq);var era=[_.B.YtRendererBehavior,_.D$.YtdGuideStateAwareBehavior,mq.prototype];var kbh=2/3,tAK=_.oV(130749),P2h=function(q,w){var u=this;this.element=q;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){u.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:kbh,moveAction:function(y){u.moveAction(y)},
triggerAction:function(){u.element.isReloading=!0;_.gm(_.Qz(),{visualElement:tAK});_.nx.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:u.element}})}}}};
_.tb(_.Qz(),tAK,this.layer);this.gesture=new _.FY(q,w,this.refreshConfig,"pan-down");this.attach()};
_.k=P2h.prototype;_.k.attach=function(){this.gesture.attach()};
_.k.detach=function(){this.gesture.detach()};
_.k.reset=function(){this.element.close()};
_.k.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.k.moveAction=function(q){this.element.rotation=q*360};var XeH=_.oV(130750),A4=function(q,w,u,y,e){var t=this;this.element=q;this.parent=u;this.channelHeader=y;this.ytdReduxDispatch=e;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){t.tabsStartAtInPx=t.channelHeader.clientHeight-48;var X;(X=t.selectedTab)!=null&&X.title&&(X=_.tG().resolve(_.kF(_.KT)))&&(X=X.getCurrentPage(),t.lastVisitedTabScrollPosition=X.getScrollTop(),t.previousTab&&
((t.lastVisitedTabScrollPosition===void 0?0:t.lastVisitedTabScrollPosition<t.channelHeader.clientHeight-48)?t.scrollPositionForTabs.has(t.selectedTab.title)&&t.scrollPositionForTabs.delete(t.selectedTab.title):t.scrollPositionForTabs.set(t.selectedTab.title,X.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:FX6(),triggerAction:function(){t.navigate(t.previousTab)},
moveAction:function(X,G){t.moveAction(X,G)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-FX6(),triggerAction:function(){t.navigate(t.nextTab)},
moveAction:function(X,G){t.moveAction(X,G)}}}};
_.tb(_.Qz(),XeH,this.layer);this.gesture=new _.FY(q,w,this.tabConfig);this.attach()};
A4.prototype.attach=function(){this.gesture.attach()};
A4.prototype.detach=function(){this.gesture.detach()};
A4.prototype.tabsChanged=function(q){if(q){var w=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;q=_.P(q);for(var u=q.next();!u.done;u=q.next()){u=u.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=u);var y=void 0;if((y=u)==null?0:y.selected)this.previousTab=w,this.selectedTab=u;w=u}w=this.gesture;q=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}});
w.config=q;this.scrollPositionNeedsUpdate=!0}};
A4.prototype.moveAction=function(q,w){if(!this.tabsElement){var u;this.tabsElement=(u=this.parent.header)==null?void 0:u.tabsElement;w==="right"&&this.previousTab?_.Xtr(_.wd.instance,this.previousTab.endpoint,{},""):w==="left"&&this.nextTab&&_.Xtr(_.wd.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}u=this.tabsElement._pos;w==="right"&&(q*=-1);this.tabsElement._positionBar(u.width,u.left*1+u.width*q)};
var FX6=function(){var q,w;return(w=(q=_.tG().resolve(_.KT).getCurrentPage())==null?void 0:q.clientWidth)!=null?w:0};
A4.prototype.navigate=function(q){this.element.data=void 0;if(q=q==null?void 0:q.endpoint)this.ytdReduxDispatch(pDH(!0)),_.gm(_.Qz(),{visualElement:XeH}),_.nx.instance.resolveCommand({navigateAction:{endpoint:q}},{form:{element:this.element}})};var Gbx;var nih;var J4=function(){return _.Y.apply(this,arguments)||this};
_.O(J4,_.Y);J4.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],J4.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],J4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],J4.prototype,"data",void 0);J4=_.c([_.E({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],J4);
_.R(J4,"ytd-labs-edit-renderer",function(){if(nih!==void 0)return nih;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return nih=q},{mode:1});var H2c;var zA=function(){var q=_.Y.apply(this,arguments)||this;q.dark=!1;q.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";q.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.O(zA,_.Y);zA.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
zA.prototype.ready=function(){var q=document.documentElement.hasAttribute("dark");this.setBackgroundImage(q);this.dark=q};
zA.prototype.onDarkModeToggledAction=function(q){this.setBackgroundImage(q);this.dark=q};
zA.prototype.setBackgroundImage=function(q){_.Pj(this.hostElement,{"--yt-labs-header-background":"url("+(q?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],zA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],zA.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],zA.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],zA.prototype,"dark",void 0);
zA=_.c([_.E({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],zA);
_.R(zA,"ytd-labs-header-renderer",function(){if(H2c!==void 0)return H2c;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return H2c=q},{mode:1});var WXm;var aL=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return q};
_.O(aL,_.Y);aL.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"}}}}}};
aL.prototype.onYtToggleButton=function(q){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",q.detail.toggled)};
aL.prototype.onManageLabsState=function(q){if(q=_.C(q,ly6))q.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?q.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&q.labsItemId===this.data.labsItemId&&(q.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.Pw(this.hostElement,"yt-check-labs-opted-in-state").some(function(w){return w})&&this.data.confirmationDialogCommand?_.nq(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.tG().resolve(_.PG).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&q.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.tG().resolve(_.PG).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
aL.prototype.onCheckLabsOptedInState=function(){var q=this.get("data.primaryButton.toggleButtonRenderer");return q?q.isToggled:!1};
_.x$.Object.defineProperties(aL.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
aL.prototype.onYtToggleButton=aL.prototype.onYtToggleButton;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],aL.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],aL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],aL.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],aL.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],aL.prototype,"itemStyle",null);_.c([_.Gm("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],aL.prototype,"onYtToggleButton",null);aL=_.c([_.E({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],aL);
_.R(aL,"ytd-labs-item-renderer",function(){if(WXm!==void 0)return WXm;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return WXm=q},{mode:1});var sYq;var N5K;var D4=function(){return _.Y.apply(this,arguments)||this};
_.O(D4,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],D4.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],D4.prototype,"data",void 0);D4=_.c([_.E({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],D4);
_.R(D4,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(N5K!==void 0)return N5K;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return N5K=q},{mode:1});var QYB;var Z4=function(){return _.Y.apply(this,arguments)||this};
_.O(Z4,_.Y);Z4.prototype.observeSuperchatChip=function(){if(this.data){var q={"--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)};_.Pj(this.hostElement,q)}};
Z4.prototype.colorFromDecimal=function(q){return _.Je(Number(q||0))};
Z4.prototype.observeSuperchatChip=Z4.prototype.observeSuperchatChip;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Z4.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Z4.prototype,"data",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Z4.prototype,"observeSuperchatChip",null);Z4=_.c([_.E({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Z4);
_.R(Z4,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(QYB!==void 0)return QYB;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return QYB=q},{mode:1});var pe=function(){return _.Y.apply(this,arguments)||this};
_.O(pe,_.Y);pe.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"}}}};
_.x$.Object.defineProperties(pe.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],pe.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.Ao),_.h("design:type",Object)],pe.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],pe.prototype,"data",void 0);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],pe.prototype,"hideMessageBlock",null);
pe=_.c([_.E({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],pe);
_.R(pe,"ytd-live-chat-history-entry-renderer",function(){if(sYq!==void 0)return sYq;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return sYq=q},{mode:1});var IYx;var $3=function(){return _.Y.apply(this,arguments)||this};
_.O($3,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],$3.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],$3.prototype,"data",void 0);$3=_.c([_.E({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],$3);
_.R($3,"ytd-channel-options-renderer",function(){if(IYx!==void 0)return IYx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return IYx=q},{mode:1});var i2m;var vq=function(){return _.Y.apply(this,arguments)||this};
_.O(vq,_.Y);vq.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],vq.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],vq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],vq.prototype,"data",void 0);vq=_.c([_.E({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],vq);
_.R(vq,"ytd-settings-email-item-renderer",function(){if(i2m!==void 0)return i2m;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return i2m=q},{mode:1});var rsA;var b0=function(){return _.Y.apply(this,arguments)||this};
_.O(b0,_.Y);b0.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"}}}};
b0.prototype.getExpansionIcon=function(q){return q?"arrow_drop_up":"arrow_drop_down"};
b0.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.x$.Object.defineProperties(b0.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],b0.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],b0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],b0.prototype,"data",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],b0.prototype,"expanded",void 0);_.c([_.Z("expanded"),_.h("design:type",String),_.h("design:paramtypes",[])],b0.prototype,"emailListExpanded",null);
_.c([_.Wj("#options"),_.h("design:type",Object)],b0.prototype,"options",void 0);b0=_.c([_.E({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],b0);
_.R(b0,"ytd-settings-email-list-renderer",function(){if(rsA!==void 0)return rsA;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return rsA=q},{mode:1});var UhH;var Y3=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return q};
_.O(Y3,_.Y);Y3.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"}}}};
Y3.prototype.handleSignalActionSubmitForm=function(){var q,w=(q=this.formRenderer)==null?void 0:q.getForm();w&&this.data.serviceEndpoint&&_.tG().resolve(_.PG).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},w,{element:this.hostElement})})};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Y3.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Y3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Y3.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Y3.prototype,"data",void 0);_.c([_.Wj("yt-form-renderer"),_.h("design:type",Object)],Y3.prototype,"formRenderer",void 0);
Y3=_.c([_.E({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Y3);
_.R(Y3,"ytd-settings-gaia-link-renderer",function(){if(UhH!==void 0)return UhH;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return UhH=q},{mode:1});var T5H;var gU=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return q};
_.O(gU,_.Y);gU.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.omB()&&this.set("data.hidden",!1)};
gU.prototype.onSwitchReady=function(){var q=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.T("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.Ojx().then(function(w){w&&(Notification.permission==="default"?q.set("data.hidden",!1):Notification.permission==="granted"&&_.ld("NotificationsDisabled").then(function(u){u||_.Pw(q.hostElement,"yt-toggle-settings-switch",[q.data.id,!u]);q.set("data.hidden",!1)}).catch(function(){}))})})};
gU.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}}}}};
gU.prototype.handleUpdateOptionsCommand=function(q){(q=_.C(q,_.pSj))&&this.data&&this.data.id===q.id&&(this.set("data.hidden",q.hidden),q.text!==void 0&&this.set("data.text",q.text),q.clearOptions&&this.set("data.options",[]))};
gU.prototype.onSwitchReady=gU.prototype.onSwitchReady;gU.prototype.dataChanged=gU.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],gU.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],gU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],gU.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],gU.prototype,"data",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gU.prototype,"dataChanged",null);_.c([_.Gm("yt-settings-switch-ready"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gU.prototype,"onSwitchReady",null);gU=_.c([_.E({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],gU);
_.R(gU,"ytd-settings-options-renderer",function(){if(T5H!==void 0)return T5H;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return T5H=q},{mode:1});var C2a;var En=function(){return _.Y.apply(this,arguments)||this};
_.O(En,_.Y);En.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
En.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
En.prototype.onYtExpanderMoreTapped=En.prototype.onYtExpanderMoreTapped;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],En.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],En.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],En.prototype,"data",void 0);
_.c([_.Gm("yt-expander-more-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],En.prototype,"onYtExpanderMoreTapped",null);En=_.c([_.E({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],En);
_.R(En,"ytd-product-details-description-renderer",function(){if(C2a!==void 0)return C2a;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return C2a=q},{mode:1});var dhV;var RL=function(){var q=_.Y.apply(this,arguments)||this;q.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";q.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";q.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";q.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return q};
_.O(RL,_.Y);RL.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x$.Object.defineProperties(RL.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.data)==null?void 0:(w=q.offerData)==null?void 0:w.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.data)==null?void 0:q.purchaseButtonRenderers)!==void 0&&((w=this.data)==null?void 0:w.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var q,w;return!((q=this.data)==null||!q.formattedFromMerchantText)&&(!((w=this.data)==null||!w.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],RL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],RL.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],RL.prototype,"data",void 0);
_.c([_.v({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0}),_.h("design:type",Object)],RL.prototype,"shippingIcon",void 0);_.c([_.v({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0}),_.h("design:type",Object)],RL.prototype,"shippingAddressIcon",void 0);_.c([_.v({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0}),_.h("design:type",Object)],RL.prototype,"googleGuaranteeIcon",void 0);
_.c([_.v({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0}),_.h("design:type",Object)],RL.prototype,"returnPolicyIcon",void 0);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],RL.prototype,"showAdditionalFees",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],RL.prototype,"showMultiPurchaseButtons",null);
_.c([_.Z("data","showMultiPurchaseButtons"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],RL.prototype,"showPurchaseData",null);RL=_.c([_.E({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],RL);
_.R(RL,"ytd-product-details-hero-offer-renderer",function(){if(dhV!==void 0)return dhV;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return dhV=q},{mode:1});var O2h;var oij;var cq=function(){return _.Y.apply(this,arguments)||this};
_.O(cq,_.Y);_.k=cq.prototype;_.k.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.k.onKeyDown=function(q){q=q.keyCode;q!==13&&q!==32||this.handleSelection()};
_.k.onMouseEnterImage=function(){var q;((q=this.data)==null?void 0:q.thumbnailDetails)!==void 0&&_.X4(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.k.onMouseLeaveImage=function(){_.X4(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.k.handleSelection=function(){this.data&&_.t7(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.x$.Object.defineProperties(cq.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.isSelected)}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],cq.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],cq.prototype,"data",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],cq.prototype,"isSelected",null);cq=_.c([_.E({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],cq);
_.R(cq,"ytd-product-details-thumbnail-renderer",function(){if(oij!==void 0)return oij;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return oij=q},{mode:1});var SS=function(){var q=_.Y.apply(this,arguments)||this;var w={};q.actionMap=(w["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",w["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",w);q.selectedThumbnailIndex=0;q.selectItem=function(u){u.target.onKeyDown(u)};
return q};
_.O(SS,_.Y);_.k=SS.prototype;_.k.handlePreviewImageSelect=function(q){this.hoverThumbnail=q};
_.k.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.k.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.k.onThumbnailSelected=function(q,w){this.selectedThumbnailIndex=w};
_.k.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.k.updateOffset=function(){var q=_.A(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-q));this.ytdHorizontalListBehavior.reposition_()};
_.x$.Object.defineProperties(SS.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null?0:q.imageRenderer){var w,u;return((w=this.data)==null?void 0:(u=w.imageRenderer)==null?void 0:u.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var q;if((q=this.data)==null?0:q.imageRenderer){var w;return(w=_.C(this.data.imageRenderer[this.selectedThumbnailIndex],MTj))==null?void 0:w.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var q=this,w,u,y,e=(y=(w=this.data)==null?void 0:(u=w.imageRenderer)==null?void 0:u.map(function(t,X){return{productDetailsThumbnailRenderer:Object.assign({},_.C(t,MTj),{index:X,isSelected:X===q.selectedThumbnailIndex})}}))!=null?y:[];
return Object.assign({},this.data,{imageRenderer:e})}}});
SS.prototype.updateOffset=SS.prototype.updateOffset;SS.prototype.dataChanged=SS.prototype.dataChanged;SS.prototype.onThumbnailSelected=SS.prototype.onThumbnailSelected;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],SS.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],SS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.MR.YtdHorizontalListBehavior),_.h("design:type",Object)],SS.prototype,"ytdHorizontalListBehavior",void 0);
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],SS.prototype,"componentBehavior",void 0);_.c([_.D([_.hm.YtActionHandlerBehavior]),_.h("design:type",Object)],SS.prototype,"actionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],SS.prototype,"data",void 0);_.c([_.v({value:"$.items.children"}),_.h("design:type",String)],SS.prototype,"itemsPath",void 0);_.c([_.v({value:3}),_.h("design:type",Number)],SS.prototype,"initialCount",void 0);
_.c([_.Wj("#items"),_.h("design:type",Object)],SS.prototype,"items",void 0);_.c([_.v(),_.h("design:type",Object)],SS.prototype,"selectedThumbnailIndex",void 0);_.c([_.v(),_.h("design:type",Object)],SS.prototype,"hoverThumbnail",void 0);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],SS.prototype,"showThumbnails",null);
_.c([_.Gm("ytd-product-details-thumbnail-renderer-selected"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Number]),_.h("design:returntype")],SS.prototype,"onThumbnailSelected",null);_.c([_.Z("data","selectedThumbnailIndex","hoverThumbnail"),_.h("design:type",Object),_.h("design:paramtypes",[])],SS.prototype,"thumbnailDetails",null);_.c([_.Z("data","selectedThumbnailIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],SS.prototype,"populatedData",null);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],SS.prototype,"dataChanged",null);_.c([_.Gm("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],SS.prototype,"updateOffset",null);SS=_.c([_.E({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],SS);
_.R(SS,"ytd-product-details-image-carousel-renderer",function(){if(O2h!==void 0)return O2h;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return O2h=q},{mode:_.kB("kevlar_poly_si_batch_j079")?1:2});var VAT;var h4=function(){return _.Y.apply(this,arguments)||this};
_.O(h4,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],h4.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],h4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],h4.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],h4.prototype,"data",void 0);h4=_.c([_.E({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],h4);
_.R(h4,"ytd-product-details-offer-renderer",function(){if(VAT!==void 0)return VAT;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return VAT=q},{mode:1});var fYm;var jS=function(){var q=_.Y.apply(this,arguments)||this;q.isOffersHidden=!0;return q};
_.O(jS,_.Y);jS.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var q,w=_.C((q=this.data)==null?void 0:q.viewOffersButton,_.aB);w&&this.ytRendererBehavior.logExplicitClick(w)};
jS.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.x$.Object.defineProperties(jS.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var q,w,u,y;return(u=_.C((q=this.data)==null?void 0:(w=q.offers)==null?void 0:w[0],qQH))==null?void 0:(y=u.offerData)==null?void 0:y.vendorLogoUrl}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],jS.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],jS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],jS.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],jS.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],jS.prototype,"isOffersHidden",void 0);
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],jS.prototype,"firstOfferVendorLogoUrl",null);jS=_.c([_.E({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],jS);
_.R(jS,"ytd-product-details-offers-container-renderer",function(){if(fYm!==void 0)return fYm;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return fYm=q},{mode:1});var mhA;var Asq;var l0=function(){return _.Y.apply(this,arguments)||this};
_.O(l0,_.Y);l0.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
l0.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.X4(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
l0.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.X4(this,"ytd-product-details-variant-image-unselect")};
_.x$.Object.defineProperties(l0.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 q;return((q=this.data)==null?void 0:q.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return((q=this.data)==null?void 0:q.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((w=this.data)==null?void 0:w.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((u=this.data)==null?void 0:u.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var q;if(((q=this.data)==null?void 0:q.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var q,w;return this.isUnavailable?(q=this.data)==null?void 0:q.variantOptionUnavailableAccessibilityLabel:(w=this.data)==null?void 0:w.variantOptionAccessibilityLabel}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],l0.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],l0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],l0.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],l0.prototype,"data",void 0);_.c([_.v(),_.h("design:type",String)],l0.prototype,"displayType",void 0);
_.c([_.Z("displayType","data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],l0.prototype,"isImageButton",null);_.c([_.Z("displayType","data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],l0.prototype,"isPillButton",null);_.c([_.Z("data"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],l0.prototype,"isActive",null);
_.c([_.Z("data"),_.v({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],l0.prototype,"isUnavailable",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],l0.prototype,"thumbnailDetails",null);_.c([_.Z("isUnavailable","data"),_.h("design:type",Object),_.h("design:paramtypes",[])],l0.prototype,"accessibilityLabel",null);l0=_.c([_.E({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],l0);
_.R(l0,"ytd-product-details-variant-option-renderer",function(){if(Asq!==void 0)return Asq;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Asq=q},{mode:1});var JsH;var Le=function(){var q=_.Y.apply(this,arguments)||this;q.variantsExpanded=!1;q.hideShowMoreLessVariantButton=!0;q.initialized=!1;q.computeVariantsDebouncer=null;q.computeVariants=function(w){w=w===void 0?!1:w;q.variantsExpanded||q.showOptions()||!w||(q.variantsExpanded=!0);if(q.variantsExpanded){w=_.P(q.items.children);for(var u=w.next();!u.done;u=w.next())u.value.hidden=!1}q.initialized=!0};
return q};
_.O(Le,_.Y);_.k=Le.prototype;_.k.ready=function(){var q=this;setTimeout(function(){q.computeVariants(!0)})};
_.k.showOptions=function(){for(var q=_.P(this.items.children),w=q.next();!w.done;w=q.next())w.value.hidden=!0;var u=this.container.getBoundingClientRect().width,y=0,e=q=0;w=!1;for(var t=_.P(this.items.children),X=t.next();!X.done;X=t.next()){X=X.value;X.hidden=!1;var G=X.getBoundingClientRect().width;if(y+G<u)y+=G;else if(++e<2)y=G;else break;q+=1;X.hasAttribute("is-active")&&(w=!0)}for(u=q;u<this.items.children.length;u++)this.items.children[u].hidden=!0;this.hideShowMoreLessVariantButton=q===this.items.children.length;
return w};
_.k.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.y5(this.computeVariantsDebouncer,_.SF.after(100),this.computeVariants)};
_.k.onShowMoreLessVariantsButtonClick=function(){var q;(q=this.data)!=null&&q.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.k.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.x$.Object.defineProperties(Le.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var q,w,u=(q=this.data)==null?void 0:(w=q.variantOptionRenderers)==null?void 0:w.find(function(t){return _.C(t,BeT).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),y,e;
return(e=(y=_.C(u,BeT))==null?void 0:y.name)!=null?e:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.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"}}}});
Le.prototype.debouncedComputeVariants=Le.prototype.debouncedComputeVariants;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Le.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Le.prototype,"componentBehavior",void 0);_.c([_.D(_.mF),_.h("design:type",Object)],Le.prototype,"ironResizableBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],Le.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],Le.prototype,"variantsExpanded",void 0);_.c([_.v(),_.h("design:type",Object)],Le.prototype,"hideShowMoreLessVariantButton",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Le.prototype,"initialized",void 0);_.c([_.Wj("#items"),_.h("design:type",HTMLDivElement)],Le.prototype,"items",void 0);_.c([_.Wj("#container"),_.h("design:type",HTMLDivElement)],Le.prototype,"container",void 0);
_.c([_.Wj("#more-variants-button"),_.h("design:type",HTMLElement)],Le.prototype,"moreVariantsButton",void 0);_.c([_.Z("data"),_.h("design:type",String),_.h("design:paramtypes",[])],Le.prototype,"selectedOptionName",null);_.c([_.nL("data","variantsExpanded"),_.Gm("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Le.prototype,"debouncedComputeVariants",null);
_.c([_.Z("data"),_.h("design:type",String),_.h("design:paramtypes",[])],Le.prototype,"displayType",null);_.c([_.Z("displayType"),_.h("design:type",Object),_.h("design:paramtypes",[])],Le.prototype,"variantItemsClassname",null);Le=_.c([_.E({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Le);
_.R(Le,"ytd-product-details-variant-renderer",function(){if(JsH!==void 0)return JsH;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return JsH=q},{mode:1});var Mf=function(){return _.Y.apply(this,arguments)||this};
_.O(Mf,_.Y);
Mf.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"}}}};
_.x$.Object.defineProperties(Mf.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var q,w,u=(w=_.C((q=this.data)==null?void 0:q.offersContainerRenderer,xjH))==null?void 0:w.offers;return u!==void 0&&(u==null?void 0:u.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 q,w,u;return((u=(q=this.data)==null?void 0:(w=q.variants)==null?void 0:w.map(function(y){var e,t;y=(t=(e=_.C(y,KVH))==null?void 0:e.variantOptionRenderers)==null?void 0:t.find(function(G){var n;return((n=_.C(G,BeT))==null?void 0:n.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var X;return(X=_.C(y,BeT))==null?void 0:X.name}).filter(function(y){return typeof y==="string"}))!=null?u:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var q,w,u,y=(w=_.C((q=this.data)==null?void 0:q.shoppingFlaggingRenderer,weq))==null?void 0:(u=w.reportButton)==null?void 0:u.buttonRenderer;if(y)return{text:y.text,command:y.command,icon:{iconType:"FLAG"},accessibilityData:y.accessibilityData,trackingParams:y.trackingParams,loggingDirectives:y.loggingDirectives}}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Mf.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Mf.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Mf.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Mf.prototype,"data",void 0);_.c([_.Wj("#image-carousel-renderer"),_.h("design:type",Object)],Mf.prototype,"imageCarouselRenderer",void 0);
_.c([_.Wj("#hero-offer-renderer"),_.h("design:type",Object)],Mf.prototype,"productDetailsHeroOfferRenderer",void 0);_.c([_.Wj("#variants"),_.h("design:type",Object)],Mf.prototype,"productDetailsVariantRenderer",void 0);_.c([_.Wj("#offers"),_.h("design:type",Object)],Mf.prototype,"productDetailsOffersContainerRenderer",void 0);_.c([_.Wj("#description-renderer"),_.h("design:type",Object)],Mf.prototype,"productDetailsDescriptionRenderer",void 0);
_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Mf.prototype,"showPurchaseData",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Mf.prototype,"showHeroOfferRenderer",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Mf.prototype,"showBrandText",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Mf.prototype,"showOffers",null);
_.c([_.Z("showOffers","showPurchaseData"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Mf.prototype,"showBuySeparator",null);_.c([_.Z("showOffers","showPurchaseData"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Mf.prototype,"showBuyCard",null);_.c([_.Z("data"),_.h("design:type",String),_.h("design:paramtypes",[])],Mf.prototype,"selectedVariantsText",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Mf.prototype,"shoppingReportingButtonData",null);
Mf=_.c([_.E({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],Mf);
_.R(Mf,"ytd-product-details-renderer",function(){if(mhA!==void 0)return mhA;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return mhA=q},{mode:1});var zrm;var aYj;var Dhj;var Ke=function(){return _.Y.apply(this,arguments)||this};
_.O(Ke,_.Y);Ke.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.x$.Object.defineProperties(Ke.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ke.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ke.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ke.prototype,"data",void 0);_.c([_.v(),_.h("design:type",String)],Ke.prototype,"formattedAmount",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ke.prototype,"ariaLabel",void 0);
_.c([_.v({reflectToAttribute:!0}),_.Z("data.style"),_.h("design:type",String),_.h("design:paramtypes",[])],Ke.prototype,"vcBalanceWidgetStyle",null);Ke=_.c([_.JM({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Ke);
_.R(Ke,"yt-vc-balance-renderer",function(){if(Dhj===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;aYj===void 0&&(aYj=document.createElement("template"));var y=aYj;u.call(w,y.content.cloneNode(!0),q.content.firstChild);Dhj=q}q=Dhj;return q},{mode:2});_.JE("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var Bq=function(){return _.Y.apply(this,arguments)||this};
_.O(Bq,_.Y);_.x$.Object.defineProperties(Bq.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:""}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Bq.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],Bq.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Bq.prototype,"data",void 0);_.c([_.v({selectorArgs:["data.vcBalanceEntityKey"],selector:function(q,w){return _.HQ(q.entities,"vcBalanceEntity",w)}}),
_.h("design:type",Object)],Bq.prototype,"vcBalanceEntity",void 0);_.c([_.Z("vcBalanceEntity"),_.h("design:type",String),_.h("design:paramtypes",[])],Bq.prototype,"formattedAmount",null);_.c([_.Z("vcBalanceEntity"),_.h("design:type",String),_.h("design:paramtypes",[])],Bq.prototype,"vcBalanceAriaLabel",null);Bq=_.c([_.E({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],Bq);
_.R(Bq,"ytd-vc-balance-renderer",function(){if(zrm!==void 0)return zrm;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return zrm=q},{mode:1});var Z2A;var x3=function(){var q=_.Y.apply(this,arguments)||this;q.rotation=0;q.isReloading=!1;return q};
_.O(x3,_.Y);x3.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
x3.prototype.reset=function(){this.hostElement.style.opacity=""};
x3.prototype.close=function(){var q=this;return _.F(function(w){if(w.nextAddress==1)return _.H(w,q.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);q.hostElement.style.opacity="0";_.HI(w)})};
x3.prototype.rotationChanged=x3.prototype.rotationChanged;_.c([_.v(),_.h("design:type",Object)],x3.prototype,"rotation",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],x3.prototype,"isReloading",void 0);_.c([_.Wj("#icon"),_.h("design:type",HTMLElement)],x3.prototype,"icon",void 0);_.c([_.nL("rotation"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],x3.prototype,"rotationChanged",null);
x3=_.c([_.E({disableElementRegistration:!0,is:"ytd-refresh"})],x3);
_.R(x3,"ytd-refresh",function(){if(Z2A!==void 0)return Z2A;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Z2A=q},{mode:1});var peq;var qg=function(){return _.Y.apply(this,arguments)||this};
_.O(qg,_.Y);qg.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"}}}};
qg.prototype.dataChanged=function(){if(this.data){var q=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var w=_.wm(this.data.banner.thumbnails,this.hostElement.clientWidth);w&&(w.indexOf("//")===0&&(w="https:"+w),this.hasBannerArt=!0,_.Pj(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+w+")"}))}this.hasBannerArt!==q&&_.A(this.hostElement).querySelector("#header").fire("iron-resize")}};
qg.prototype.updateSelectedFromBinding=function(q){this.selected=q.detail.value};
qg.prototype.dataChanged=qg.prototype.dataChanged;_.c([_.D(era),_.h("design:type",Object)],qg.prototype,"ytdTabbedHeaderBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],qg.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.zr),_.h("design:type",Object)],qg.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.D(_.D$.YtdGuideStateAwareBehavior),_.h("design:type",Object)],qg.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],qg.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],qg.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Number)],qg.prototype,"selected",void 0);_.c([_.v(),_.h("design:type",Boolean)],qg.prototype,"active",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],qg.prototype,"hasBannerArt",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qg.prototype,"dataChanged",null);qg=_.c([_.E({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],qg);
_.R(qg,"ytd-interactive-tabbed-header-renderer",function(){if(peq!==void 0)return peq;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return peq=q},{mode:1});var $hm;var wz=function(){return _.Y.apply(this,arguments)||this};
_.O(wz,_.Y);wz.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
wz.prototype.computeActionsAlignment=function(q){return(q==null?void 0:q.actionsAlignment)||""};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],wz.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],wz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],wz.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.h("design:type",String)],wz.prototype,"actionsAlignment",void 0);
wz=_.c([_.E({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],wz);
_.R(wz,"ytd-page-footer-renderer",function(){if($hm!==void 0)return $hm;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return $hm=q},{mode:1});var vic;var b2x;var uz=function(){var q=_.Y.apply(this,arguments)||this;q.isEditing=!1;q.useSlot=!1;q.isMultiline=!1;return q};
_.O(uz,_.Y);_.k=uz.prototype;_.k.onKeydown=function(q){if(q.keyCode===13&&!this.isMultiline)this.onSave();else if(q.keyCode===27)this.onCancel()};
_.k.computeComponentStyle=function(q){return(q==null?0:q.style)?q.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.k.computeisMultiline=function(q){if(this.multilineOverride!==void 0)return this.multilineOverride;var w,u;return!!(q==null?0:(w=q.formField)==null?0:(u=w.textInputFormFieldRenderer)==null?0:u.isMultiline)};
_.k.computeTextDisplayed=function(q,w){if(q)return q;if(w)return w};
_.k.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.k.onSave=function(){if(this.textForm.validate()){this.textForm.save();var q=this.textForm.value;if(q)this.set("data.textDisplayed",_.jN(q));else{var w;((w=this.data)==null?0:w.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.D1("inline-form-changed",this.data));this.isEditing=!1}};
_.k.onCancel=function(){var q=_.lA(this.data.textDisplayed);q===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(q);this.isEditing=!1};
uz.prototype.onKeydown=uz.prototype.onKeydown;_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],uz.prototype,"ytEventForwardingBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],uz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],uz.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],uz.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],uz.prototype,"isEditing",void 0);_.c([_.v(),_.h("design:type",Object)],uz.prototype,"useSlot",void 0);_.c([_.v(),_.h("design:type",Boolean)],uz.prototype,"multilineOverride",void 0);_.c([_.v(),_.h("design:type",Boolean)],uz.prototype,"enableOverlayTheme",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.h("design:type",String)],uz.prototype,"componentStyle",void 0);
_.c([_.v({computed:"computeisMultiline(data)"}),_.h("design:type",Object)],uz.prototype,"isMultiline",void 0);_.c([_.Wj("#text-form"),_.h("design:type",Object)],uz.prototype,"textForm",void 0);_.c([_.Gm("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],uz.prototype,"onKeydown",null);uz=_.c([_.E({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],uz);
_.R(uz,"ytd-inline-form-renderer",function(){if(b2x!==void 0)return b2x;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return b2x=q},{mode:1});var YQH;var yu=function(){var q=_.Y.apply(this,arguments)||this;q.previousSelectValue=void 0;q.selectedItemMessage=void 0;return q};
_.O(yu,_.Y);yu.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
yu.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var q,w,u,y,e=(q=this.data)==null?void 0:(w=q.dropdown)==null?void 0:(u=w.dropdownRenderer)==null?void 0:(y=u.entries)==null?void 0:y.map(function(G){return G.privacyDropdownItemRenderer});
q=_.P(e!=null?e:[]);for(w=q.next();!w.done;w=q.next())if((w=w.value)&&w.int32Value===this.selectedValue){this.selectedItemMessage=w.itemMessage;break}}else this.selectedItemMessage=void 0;var t;(t=this.onValueChanged)==null||t.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var X;(X=this.data)!=null&&X.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
yu.prototype.onValueChangedForSelectedValue=function(q){this.selectedValue=q.detail.value};
yu.prototype.selectedValueChanged=yu.prototype.selectedValueChanged;_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],yu.prototype,"ytEventForwardingBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],yu.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],yu.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],yu.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],yu.prototype,"data",void 0);_.c([_.v(),_.h("design:type",String)],yu.prototype,"theme",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Number)],yu.prototype,"selectedValue",void 0);_.c([_.v(),_.h("design:type",Function)],yu.prototype,"onValueChanged",void 0);
_.c([_.I9("selectedValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yu.prototype,"selectedValueChanged",null);yu=_.c([_.E({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],yu);
_.R(yu,"ytd-dropdown-form-field-renderer",function(){if(YQH!==void 0)return YQH;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return YQH=q},{mode:_.kB("kevlar_poly_si_batch_j025")?1:2});var gih;var eG=function(){return _.Y.apply(this,arguments)||this};
_.O(eG,_.Y);_.x$.Object.defineProperties(eG.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var q=[],w=_.P(this.data||[]),u=w.next();!u.done;u=w.next())(u=_.C(u.value,ueK))&&q.push(u);return q}}});
_.c([_.v(),_.h("design:type",Array)],eG.prototype,"data",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],eG.prototype,"byline",null);eG=_.c([_.E({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],eG);
_.R(eG,"ytd-playlist-byline-renderer",function(){if(gih!==void 0)return gih;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return gih=q},{mode:1});var EiV;var kR=function(){var q=_.Y.apply(this,arguments)||this;q.rtlBullet=_.T("web_playlist_stats_rtl_bullet_icon_killswitch");q.modern=_.T("web_modern_buttons");q.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return q};
_.O(kR,_.Y);_.k=kR.prototype;_.k.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"}}}}};
_.k.attached=function(){};
_.k.computeIsCustomThumbnail=function(q){return q?!!q.playlistCustomThumbnailRenderer:!1};
_.k.onYtNavigate=function(q,w){if(w&&w.actions&&w.actions.indexOf("shuffle")>-1){q=_.tG().resolve(_.z5);var u=w.tempData||{};u.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);w.tempData=u;q.isShuffleNextPlaylist=!0}};
_.k.onUpdatePlaylistAction=function(q){var w;q=(w=_.C(q,_.Hyr))==null?void 0:w.updatedRenderer;if(w=_.C(q,fe))this.data=w};
_.k.computeStyleType=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.k.computeThumbnailWidth=function(q){return q==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.k.computeHideThumbnailAria=function(q){if(q==null?0:q.thumbnailOverlays)for(var w=0;w<q.thumbnailOverlays.length;w++){var u=void 0;if((u=q.thumbnailOverlays[w])==null?0:u.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
kR.prototype.onYtNavigate=kR.prototype.onYtNavigate;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],kR.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],kR.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],kR.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],kR.prototype,"ytComponentBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],kR.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],kR.prototype,"rtlBullet",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.h("design:type",String)],kR.prototype,"styleType",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.h("design:type",Number)],kR.prototype,"thumbnailWidth",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],kR.prototype,"modern",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.h("design:type",Boolean)],kR.prototype,"isCustomThumbnail",void 0);_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[Event,Object]),_.h("design:returntype")],kR.prototype,"onYtNavigate",null);
kR=_.c([_.E({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],kR);
_.R(kR,"ytd-playlist-sidebar-primary-info-renderer",function(){if(EiV!==void 0)return EiV;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return EiV=q},{mode:1});var Rrx;var tF=function(){return _.Y.apply(this,arguments)||this};
_.O(tF,_.Y);tF.prototype.computeOwnerVisibility=function(q){return!(!q.videoOwner&&!q.button)};
tF.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"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],tF.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],tF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],tF.prototype,"data",void 0);tF=_.c([_.E({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],tF);
_.R(tF,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(Rrx!==void 0)return Rrx;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Rrx=q},{mode:1});var csc;var P7=function(){var q=_.Y.apply(this,arguments)||this;q.expanded=!1;q.isCompact=!1;return q};
_.O(P7,_.Y);_.k=P7.prototype;_.k.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.k.dataChanged=function(){this.data&&_.Ym(_.A(this.text),_.i76(_.Tj6,_.lA(this.data.text||null)))};
_.k.computeAutoScrollEnabled=function(q,w){return q&&!w};
_.k.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.k.toggleOnTap=function(){this.expanded=!this.expanded};
P7.prototype.expandedChanged=P7.prototype.expandedChanged;P7.prototype.dataChanged=P7.prototype.dataChanged;_.c([_.D(_.lwV),_.h("design:type",Object)],P7.prototype,"ytdAutoScrollBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],P7.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],P7.prototype,"expanded",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],P7.prototype,"isCompact",void 0);_.c([_.v({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.h("design:type",Boolean)],P7.prototype,"autoScrollEnabled",void 0);_.c([_.Wj("#text"),_.h("design:type",Object)],P7.prototype,"text",void 0);_.c([_.Wj("#expander-icon"),_.h("design:type",Object)],P7.prototype,"expanderIcon",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],P7.prototype,"dataChanged",null);_.c([_.nL("expanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],P7.prototype,"expandedChanged",null);P7=_.c([_.E({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],P7);
_.R(P7,"ytd-channel-legal-info-renderer",function(){if(csc!==void 0)return csc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return csc=q},{mode:1});var SQB;var hr6=_.ID("DOWNLOAD",{},"Download"),jYa=_.ID("DOWNLOADING",{},"Downloading"),lYm=_.ID("DOWNLOADED",{},"Downloaded"),XG=function(){var q=_.Y.apply(this,arguments)||this;q.downloadProgress=0;q.isDownloadComplete=!1;q.transferState="TRANSFER_STATE_UNKNOWN";return q};
_.O(XG,_.Y);_.k=XG.prototype;_.k.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.k.dataChanged=function(){var q;(q=this.data)!=null&&q.tooltip||(q=_.$N(_.Mt().getState(),this.playlistId),this.updateButtonState(q))};
_.k.computePlaylistId=function(q){return q};
_.k.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.k.updateButtonState=function(q){if(this.data&&(this.data.tooltip!==jYa||!_.Ta(q))){this.isDownloadComplete=!1;switch(q){case "TRANSFER_STATE_UNKNOWN":q=hr6;var w="OFFLINE_DOWNLOAD";var u="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":q=lYm;w="OFFLINE_PIN";u="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":q=jYa;w="OFFLINE_DOWNLOADING_ZERO";u="ACTION_REMOVE_WITH_PROMPT";
break;default:q=hr6,w="OFFLINE_DOWNLOAD",u="ACTION_ADD"}var y=Object.assign({},this.data);y.tooltip=q;y.accessibilityData={accessibilityData:{label:q}};y.icon={iconType:w};y.size="SIZE_DEFAULT";_.C(y.command,_.sF)&&(_.C(y.command,_.sF).action=u);this.set("data",y)}};
_.k.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var q="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?q="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?q="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?q="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?q="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?q="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(q="OFFLINE_PIN",this.isDownloadComplete=!0);var w;q!==((w=this.data.icon)==null?void 0:w.iconType)&&(w=Object.assign({},this.data),w.tooltip=jYa,w.accessibilityData={accessibilityData:{label:jYa}},w.icon={iconType:q},_.C(w.command,_.sF)&&(_.C(w.command,_.sF).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",w))}};
XG.prototype.updateProgress=XG.prototype.updateProgress;XG.prototype.onTransferStateChanged=XG.prototype.onTransferStateChanged;XG.prototype.dataChanged=XG.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],XG.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],XG.prototype,"ytdReduxBehavior",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],XG.prototype,"forceIconButton",void 0);
_.c([_.v({value:!0}),_.h("design:type",Boolean)],XG.prototype,"forceIconOnly",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],XG.prototype,"overrides",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],XG.prototype,"buttonTooltipPosition",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],XG.prototype,"styleActionButton",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],XG.prototype,"disableTextTransform",void 0);
_.c([_.v({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.h("design:type",String)],XG.prototype,"playlistId",void 0);_.c([_.v(),_.h("design:type",Object)],XG.prototype,"data",void 0);_.c([_.v({selector:_.Ckc,selectorArgs:["playlistId"]}),_.h("design:type",Object)],XG.prototype,"downloadProgress",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],XG.prototype,"isDownloadComplete",void 0);
_.c([_.v({selector:_.$N,selectorArgs:["playlistId"]}),_.h("design:type",String)],XG.prototype,"transferState",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],XG.prototype,"showTooltips",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],XG.prototype,"sendCommandWhenDisabled",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],XG.prototype,"disabled",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],XG.prototype,"dataChanged",null);_.c([_.I9("transferState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],XG.prototype,"onTransferStateChanged",null);_.c([_.I9("downloadProgress"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],XG.prototype,"updateProgress",null);
XG=_.c([_.E({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],XG);
_.R(XG,"ytd-download-playlist-button-renderer",function(){if(SQB!==void 0)return SQB;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return SQB=q},{mode:1});var LXc;_.q9(_.MTP,"thumbnail-overlay-button-view-model",{props:{data:_.pK,lockupExperiments:_.pK}});var FG=function(){var q=_.Y.apply(this,arguments)||this;q.isSquare=!1;q.isVertical=!1;return q};
_.O(FG,_.Y);FG.prototype.computeIsSquare=function(q){return q!=null&&q.thumbnail?AQx(q.thumbnail)==="SQUARE":!1};
FG.prototype.computeIsVertical=function(q){return q!=null&&q.thumbnail?AQx(q.thumbnail)==="VERTICAL":!1};
FG.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],FG.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.h("design:type",Object)],FG.prototype,"isSquare",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.h("design:type",Object)],FG.prototype,"isVertical",void 0);
_.c([_.v(),_.h("design:type",Object)],FG.prototype,"data",void 0);FG=_.c([_.E({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],FG);
_.R(FG,"ytd-hero-playlist-thumbnail-renderer",function(){if(LXc!==void 0)return LXc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return LXc=q},{mode:1});var GB=function(){var q=_.Y.apply(this,arguments)||this;q.isDarkTheme=!1;q.isUltraWide=!1;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return q};
_.O(GB,_.Y);_.k=GB.prototype;_.k.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.tG();var q;(q=_.tG().resolve(_.kF(_.bH)))!=null&&(q.headerElement=this.hostElement)};
_.k.detached=function(){var q;(q=_.tG().resolve(_.kF(_.bH)))!=null&&(q.headerElement=void 0)};
_.k.onUpdateHeader=function(q){(q=q.detail)&&this.set("data",q)};
_.k.computeTextDisplayed=function(q){if(q)return q.textDisplayed?q.textDisplayed:q.placeholder};
_.k.gradientColorToLinearGradientStop=function(q){var w=this.isDarkTheme?q.darkThemeColor:q.lightThemeColor;return w?_.Je(w)+" "+((q==null?void 0:q.startLocation)||0)*100+"%":"transparent"};
_.k.onWindowResize=function(){var q;((q=this.data)==null?0:q.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.k.onIronResize=function(q){this.isUltraWide=!q.detail.value};
_.k.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.k.onUpdatePlaylistName=function(q){var w=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},q.detail.value));_.KJ(this,function(){var u;(u=w.editableTitle)==null||u.resize()})};
_.k.onUpdatePlaylistDescription=function(q){var w=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},q.detail.value));_.KJ(this,function(){var u;(u=w.editableDescriptionInlineExpander)==null||u.resize()})};
_.k.getCinematicData=function(q){return _.C(q==null?void 0:q.cinematicContainer,_.TA)};
_.x$.Object.defineProperties(GB.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 q,w=(q=this.getCinematicData(this.data))==null?void 0:q.config;return(q=this.isDarkTheme?w==null?void 0:w.darkThemeBackgroundColor:w==null?void 0:w.lightThemeBackgroundColor)?"background-color:"+_.Ae(q)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var q;return _.C((q=this.data)==null?void 0:q.descriptionForm,LVm)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var q=this,w,u,y;return"background:linear-gradient(to bottom, "+(((y=(w=this.getCinematicData(this.data))==null?void 0:(u=w.gradientColorConfig)==null?void 0:u.map(function(e){return q.gradientColorToLinearGradientStop(e)}))==null?void 0:y.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var q;return _.lA((q=this.data)==null?void 0:q.descriptionTapText)}}});
GB.prototype.onUpdateHeader=GB.prototype.onUpdateHeader;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],GB.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],GB.prototype,"actionHandlerBehavior",void 0);_.c([_.Wj("#description-inline-expander"),_.h("design:type",Object)],GB.prototype,"descriptionInlineExpander",void 0);
_.c([_.Wj("#editable-description-inline-expander"),_.h("design:type",Object)],GB.prototype,"editableDescriptionInlineExpander",void 0);_.c([_.v(),_.h("design:type",Object)],GB.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],GB.prototype,"isUltraWide",void 0);_.c([_.Wj("#editable-title-display"),_.h("design:type",Object)],GB.prototype,"editableTitle",void 0);_.c([_.Z("isUltraWide"),_.h("design:type",Object),_.h("design:paramtypes",[])],GB.prototype,"maxDescriptionLines",null);
_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],GB.prototype,"noCinematicData",null);_.c([_.Gm("yt-new-playlist-header"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],GB.prototype,"onUpdateHeader",null);_.c([_.Z("data","isDarkTheme"),_.h("design:type",Object),_.h("design:paramtypes",[])],GB.prototype,"backgroundStyle",null);
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],GB.prototype,"descriptionFormData",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],GB.prototype,"getDropdownTheme",null);_.c([_.Z("data","isDarkTheme"),_.h("design:type",String),_.h("design:paramtypes",[])],GB.prototype,"gradientStyle",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],GB.prototype,"descriptionTapText",null);
GB=_.c([_.E({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],GB);
_.R(GB,"ytd-playlist-header-renderer",function(){if(vic!==void 0)return vic;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return vic=q},{mode:_.kB("kevlar_poly_si_batch_j078")?1:2});var MAB;var KXV;var ns=function(){return _.Y.apply(this,arguments)||this};
_.O(ns,_.Y);ns.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],ns.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ns.prototype,"data",void 0);ns=_.c([_.E({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],ns);
_.R(ns,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(KXV!==void 0)return KXV;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return KXV=q},{mode:1});var H7=function(){return _.Y.apply(this,arguments)||this};
_.O(H7,_.Y);
H7.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}}}}};
H7.prototype.computeUsePremiumShowStyle=function(q){if(!q||!q.items)return!1;for(var w=0;w<q.items.length;w++)if(_.C(q.items[w],fe)){var u=void 0;return((u=_.C(q.items[w],fe))==null?void 0:u.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],H7.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],H7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],H7.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.h("design:type",Boolean)],H7.prototype,"usePremiumShowStyle",void 0);
H7=_.c([_.E({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],H7);
_.R(H7,"ytd-playlist-sidebar-renderer",function(){if(MAB!==void 0)return MAB;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return MAB=q},{mode:1});var B5T;var xh4;var qHa=function(q,w,u,y,e,t,X,G){this.minWidth=q;this.minHeight=w;this.recommendedWidth=u;this.recommendedHeight=y;this.JSC$19371_maxFileSize=e;this.title=t;this.bannerGalleryTitle=X;this.channelId=G;this.picker_=null;q=_.Hou("yt-banner");w=q.addView;u=(new v56("youtubebanner")).addUploadMetadata("silo_id","19");u.opts.ytMaxFileSize=this.JSC$19371_maxFileSize;y=this.recommendedHeight;u.opts.ytRecWidth=this.recommendedWidth;u.opts.ytRecHeight=y;w.call(q,u);q.addView(new _.Uc);w=q.addView;u=new _.Uc;
u.opts.type="ytbanner";w.call(q,u.JSC$7973_setLabel(this.bannerGalleryTitle));w=q.setTitle(this.title).setSize(1E3);w.urlParamMap_.set("thumbs","orig");u=this.minWidth;y=this.minHeight;if(isNaN(u)||isNaN(y))throw Error("kb`"+u+"`"+y);w.urlParamMap_.set("minSize",u+"x"+y);w.urlParamMap_.set("cropMode","ytcb");this.builder_=q};
qHa.prototype.open=function(){var q=this;return new _.IA(function(w,u){_.x1r(q.builder_,function(y){y.action=="picked"?w(y):y.action=="cancel"&&u(Error("Wl"))});
q.picker_&&q.picker_.dispose();q.picker_=q.builder_.build();q.picker_.setVisible(!0)})};
qHa.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var wPa=function(q){this.channelId=q},uwB=function(q,w){var u="";
w.viewToken&&(u=w.viewToken[2].type);var y=w.docs[0];w=y.crop;q={channel_id:q.channelId,fife_url:y.thumbnails[0].url,photo_id:y.id,is_gallery_image:u=="ytbanner"};w&&(q.crop_top=w.top,q.crop_right=w.right,q.crop_bottom=w.bottom,q.crop_left=w.left);return _.jIM("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:q})};var W7=function(){var q=_.Y.apply(this,arguments)||this;q.ariaLabel=null;return q};
_.O(W7,_.Y);_.k=W7.prototype;_.k.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.k.detached=function(){this.picker&&this.picker.dispose()};
_.k.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.k.computeAriaLabel=function(q){return q};
_.k.onTap=function(){var q=this,w;if((w=this.data)==null||!w.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new qHa(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 u;(u=this.picker)==null||u.open().then(function(y){q.handleBannerPicked(y)},function(){})}};
_.k.handleBannerPicked=function(q){var w=this;this.uploader||(this.uploader=new wPa(this.data.channelId||""));this.message=this.data.uploadingText;uwB(this.uploader,q).then(function(u){w.handleBannerUploadSucceeded(u)},function(u){w.handleBannerUploadFailed(u)})};
_.k.handleBannerUploadSucceeded=function(q){q&&q.errors?this.handleBannerUploadFailed(q):(_.t7(this.hostElement,"yt-banner-updated",q),this.message=null)};
_.k.handleBannerUploadFailed=function(q){this.message=q&&q.errors&&q.errors.length?q.errors[0]:null};
W7.prototype.dataChanged=W7.prototype.dataChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],W7.prototype,"componentBehavior",void 0);_.c([_.D(_.JU),_.h("design:type",Object)],W7.prototype,"ironButtonState",void 0);_.c([_.v(),_.h("design:type",Object)],W7.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.h("design:type",Object)],W7.prototype,"ariaLabel",void 0);
_.c([_.v(),_.h("design:type",Object)],W7.prototype,"message",void 0);_.c([_.v(),_.h("design:type",Object)],W7.prototype,"picker",void 0);_.c([_.v(),_.h("design:type",Object)],W7.prototype,"uploader",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],W7.prototype,"dataChanged",null);W7=_.c([_.E({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],W7);
_.R(W7,"ytd-channel-banner-editor-renderer",function(){if(xh4!==void 0)return xh4;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return xh4=q},{mode:1});var yux;var eE6=_.Sc(["#"]),sa=function(){return _.Y.apply(this,arguments)||this};
_.O(sa,_.Y);sa.prototype.computeHrefWithDefault=function(q){return this.ytComponentBehavior.computeHref_(q,!0)||_.OY(eE6)};
sa.prototype.dataChanged=function(){var q=this.data;q&&q.targetId&&_.Ozc(_.e0(),q.targetId,this.moreIcon)};
sa.prototype.dataChanged=sa.prototype.dataChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],sa.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],sa.prototype,"data",void 0);_.c([_.Wj("#more-icon"),_.h("design:type",Object)],sa.prototype,"moreIcon",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sa.prototype,"dataChanged",null);
sa=_.c([_.E({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],sa);
_.R(sa,"ytd-channel-tagline-renderer",function(){if(yux!==void 0)return yux;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return yux=q},{mode:1});var kej;var Ng=function(){return _.Y.apply(this,arguments)||this};
_.O(Ng,_.Y);_.k=Ng.prototype;_.k.ready=function(){var q=this;_.A(this.hostElement).querySelector("#form").addEventListener("submit",function(w){q.onSubmit(w)})};
_.k.onDataChanged=function(){var q;((q=this.data)==null?0:q.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.k.onIconButtonKeydown=function(q){q.keyCode===13&&this.iconButton.click()};
_.k.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.k.openOnClickHandler=function(){this.input.focus()};
_.k.onSubmit=function(q){q.preventDefault();return!1};
_.k.submitOnEnterKeyUp=function(q){var w;if(q.keyCode===13&&((w=this.data)==null?0:w.expandedText)){q=this.data.endpoint;w=_.db.unsafeClone(q);var u;((u=_.C(w==null?void 0:w.commandMetadata,_.wk))==null?0:u.url)?(_.C(w.commandMetadata,_.wk).url=_.RA(_.C(w.commandMetadata,_.wk).url,"query",this.data.expandedText),_.C(w,_.Ii)&&(_.C(w,_.Ii).query=this.data.expandedText),_.t7(this.hostElement,"yt-navigate",{endpoint:w,tempData:{disableCache:!0}})):(u=new _.fv("Error: Trying to navigate to an endpoint without url",
q),_.vm(u))}};
_.k.updateDataExpandedTextFromBinding=function(q){this.set("data.expandedText",q.detail.value)};
Ng.prototype.onDataChanged=Ng.prototype.onDataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ng.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.DCm),_.h("design:type",Object)],Ng.prototype,"ytdExpandableInputBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ng.prototype,"data",void 0);_.c([_.Wj("#input"),_.h("design:type",Object)],Ng.prototype,"input",void 0);_.c([_.Wj("#icon-button"),_.h("design:type",HTMLElement)],Ng.prototype,"iconButton",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ng.prototype,"onDataChanged",null);Ng=_.c([_.E({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],Ng);
var JQa=_.eD()(Ng,"ytd-expandable-tab-renderer",function(){if(kej===void 0){var q=document.createElement("template");_.f(q,'\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="yt-icons:search" 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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);kej=q}q=kej;return q},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var tIh;var Qu=function(){var q=_.Y.apply(this,arguments)||this;q.avatarSize=80;q.ariaLabel=_.ID("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return q};
_.O(Qu,_.Y);Qu.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Qu.prototype.computeHref=function(q){var w;return((w=_.C(q,_.jw))==null?0:w.url)?this.componentBehavior.computeHref_(q):null};
Qu.prototype.onTap=function(){var q,w;(q=this.data)==null||!q.editAvatarServiceEndpoint||((w=_.C(this.data.editAvatarServiceEndpoint,_.jw))==null?0:w.url)||_.tG().resolve(_.PG).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.c([_.D(_.JU),_.h("design:type",Object)],Qu.prototype,"ironButtonState",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Qu.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Qu.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],Qu.prototype,"avatarSize",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],Qu.prototype,"ariaLabel",void 0);Qu=_.c([_.E({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Qu);
_.R(Qu,"ytd-channel-avatar-editor",function(){if(tIh!==void 0)return tIh;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return tIh=q},{mode:1});var PTj=_.LL(function(q){var w=q.data;var u=q.noPadding;var y=q.enableBanner;var e=q.cinematicContainerTopbarOffset;var t=q.allowCinematicContainerOverflow;var X=q.displayAsSidebar;q=q.className;_.DG(function(){w().tagManagerId&&(_.Wd(w().tagManagerId,_.Et("GL")),$jV(w().tagManagerId))});
var G=_.Qo(ayV,function(){return w().pageHeaderEntityKey});
return _.W("yt-page-header-renderer",{class:_.HR("page-header-renderer-wiz",q)},_.W(_.OF,{data:function(){var n;return((n=G())==null?0:n.header)?G().header:(X==null?0:X())&&w().sidebarContent?w().sidebarContent:w().content}},{pageHeaderViewModel:function(n){return _.W(_.H8x,{data:n.data,
noPadding:u,enableBanner:y,cinematicContainerTopbarOffset:e,allowCinematicContainerOverflow:t,displayAsSidebar:function(){return(X==null?void 0:X())&&w().enableSidebarView}})}}))},"xi");
PTj.idomCompat=!0;_.q9(PTj,"yt-page-header-renderer",{props:{data:_.pK,noPadding:_.pK,enableBanner:_.pK,cinematicContainerTopbarOffset:_.pK,allowCinematicContainerOverflow:_.pK,displayAsSidebar:_.pK,className:_.pK}});_.q9(_.GYZ,"yt-image-banner-view-model",{props:{data:_.pK,isPositionRelative:_.pK}});_.q9(_.my3,"yt-tab-group-shape",{props:{shape:_.pK}});var I_=function(){var q=_.Y.apply(this,arguments)||this;q.expandableCustomTabRenderable=function(w){return zoq(w,function(){return void q.onSearchNavigate()})};
q.isRichGrid=!1;q.isConstrainedList=!1;q.richGridMiniMode=!1;q.richGridStyle="RICH_GRID_STYLE_UNKNOWN";q.isRichGridShorts=!1;q.responsiveSizing="COMPACT";q.disableGridStateAware=!1;q.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return q};
_.O(I_,_.Y);_.k=I_.prototype;_.k.computeHeaderDisabled=function(q,w){return w||!q||this.tabsHidden};
_.k.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.k.computeIsRichGridShorts=function(q){return q==="RICH_GRID_STYLE_SHORTS_GRID"||q==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.k.computeImageBannerViewModel=function(){var q,w;return _.C((w=_.C((q=this.data)==null?void 0:q.content,_.yOk))==null?void 0:w.banner,_.Bo$)};
_.k.computeHasCinematicContainer=function(){var q,w;return!((w=_.C((q=this.data)==null?void 0:q.content,_.yOk))==null||!w.background)};
_.k.handleHeaderResize=function(){var q=_.A(this.hostElement).querySelector("#header");q&&_.t7(q,"iron-resize")};
_.k.handleInsertTabCommand=function(q){var w=_.C(q,ysj);w&&(w.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(u){return u.tabRenderer&&u.tabRenderer.tabIdentifier===w.tabIdentifier})||this.splice("tabs",w.tabIndex||-1,0,w.tab))};
_.k.handleRefreshChannelTabAction=function(q){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===q&&_.t7(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.k.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Pj(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.k.observerRichGridSlimItemsPerRow=function(){_.Pj(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.k.updateCssVars=function(){this.richGridItemsPerRow&&_.Pj(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Fc("rich_grid_max_item_width",500))+16)-16+"px"})};
_.k.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Pj(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.k.onDataChanged=function(){this.handleHeaderResize()};
_.k.onWindowResize=function(){this.handleHeaderResize()};
_.k.onFocusedChanged=function(q){(q=_.he(q))&&q.is==="tp-yt-paper-tab"&&q.hasRipple()&&(q.getRipple().holdDown=!q.pointerDown&&q.focused)};
_.k.updateSelectedFromBinding=function(q){this.ytdTabbedHeaderBehavior.selected=q.detail.value};
_.k.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.x$.Object.defineProperties(I_.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Zlx(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.imageBannerViewModel)==null?void 0:q.style)==="IMAGE_BANNER_STYLE_INSET"}}});
I_.prototype.onDataChanged=I_.prototype.onDataChanged;I_.prototype.updateCssVarsForResponsiveGrid=I_.prototype.updateCssVarsForResponsiveGrid;I_.prototype.updateCssVars=I_.prototype.updateCssVars;I_.prototype.observerRichGridSlimItemsPerRow=I_.prototype.observerRichGridSlimItemsPerRow;I_.prototype.observerRichGridItemsPerRow=I_.prototype.observerRichGridItemsPerRow;_.c([_.D(_.zr),_.h("design:type",Object)],I_.prototype,"ytdGridStateAwareBehavior",void 0);
_.c([_.D(era),_.h("design:type",Object)],I_.prototype,"ytdTabbedHeaderBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],I_.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],I_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.D$.YtdGuideStateAwareBehavior),_.h("design:type",Object)],I_.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.D(_.fU),_.h("design:type",Object)],I_.prototype,"ytdReduxBehavior",void 0);_.c([_.Wj("#tabs"),_.h("design:type",Object)],I_.prototype,"tabsElement",void 0);_.c([_.v(),_.h("design:type",Array)],I_.prototype,"tabs",void 0);_.c([_.v(),_.h("design:type",Object)],I_.prototype,"expandableCustomTabRenderable",void 0);_.c([_.Z("tabs.*"),_.h("design:type",Object),_.h("design:paramtypes",[])],I_.prototype,"tabGroupShape",null);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],I_.prototype,"isRichGrid",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],I_.prototype,"isConstrainedList",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.za}),_.h("design:type",Object)],I_.prototype,"richGridMiniMode",void 0);_.c([_.v({selector:function(q){return q.ui.richGridStyle}}),
_.h("design:type",Object)],I_.prototype,"richGridStyle",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.h("design:type",Object)],I_.prototype,"isRichGridShorts",void 0);_.c([_.v({selector:_.aO}),_.h("design:type",Number)],I_.prototype,"richGridItemsPerRow",void 0);_.c([_.v({selector:function(q){return q.ui.richGridContainerWidth}}),
_.h("design:type",Number)],I_.prototype,"richGridContainerWidth",void 0);_.c([_.v({selector:_.Xiz}),_.h("design:type",Number)],I_.prototype,"richGridSlimItemsPerRow",void 0);_.c([_.v(),_.h("design:type",Object)],I_.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],I_.prototype,"responsiveSizing",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],I_.prototype,"disableGridStateAware",void 0);
_.c([_.v({computed:"computeImageBannerViewModel(data)"}),_.h("design:type",Object)],I_.prototype,"imageBannerViewModel",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.h("design:type",Boolean)],I_.prototype,"hasCinematicContainer",void 0);_.c([_.v({selector:_.raq,reflectToAttribute:!0}),_.h("design:type",Boolean)],I_.prototype,"guideIsVisibleButNotPersistent",void 0);
_.c([_.v({reflectToAttribute:!0}),_.Z("imageBannerViewModel"),_.h("design:type",Object),_.h("design:paramtypes",[])],I_.prototype,"hasBanner",null);_.c([_.v({reflectToAttribute:!0}),_.Z("imageBannerViewModel"),_.h("design:type",Object),_.h("design:paramtypes",[])],I_.prototype,"hasInsetBanner",null);_.c([_.v({computed:"computeTabsHidden(tabs)",value:!0}),_.h("design:type",Boolean)],I_.prototype,"tabsHidden",void 0);
_.c([_.nL("richGridItemsPerRow","isRichGrid"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],I_.prototype,"observerRichGridItemsPerRow",null);_.c([_.nL("richGridSlimItemsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],I_.prototype,"observerRichGridSlimItemsPerRow",null);
_.c([_.nL("richGridItemsPerRow","richGridMiniMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],I_.prototype,"updateCssVars",null);_.c([_.nL("richGridContainerWidth"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],I_.prototype,"updateCssVarsForResponsiveGrid",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],I_.prototype,"onDataChanged",null);
I_=_.c([_.E({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],I_);
_.R(I_,"ytd-tabbed-page-header",function(){if(B5T!==void 0)return B5T;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return B5T=q},{mode:1});var XPx;var iz=function(){return _.Y.apply(this,arguments)||this};
_.O(iz,_.Y);iz.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Pj(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.x$.Object.defineProperties(iz.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var q,w;return this.componentBehavior.computeIcon_(((w=_.C((q=this.data)==null?void 0:q.badge,_.jGk))==null?void 0:w.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var q,w;return(w=_.C((q=this.data)==null?void 0:q.badge,_.jGk))==null?void 0:w.label}}});
iz.prototype.observerRichGridItemsPerRow=iz.prototype.observerRichGridItemsPerRow;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],iz.prototype,"componentBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],iz.prototype,"ytdReduxBehavior",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.za}),_.h("design:type",Boolean)],iz.prototype,"richGridMiniMode",void 0);
_.c([_.v({selector:_.aO}),_.h("design:type",Number)],iz.prototype,"richGridItemsPerRow",void 0);_.c([_.v(),_.h("design:type",Object)],iz.prototype,"data",void 0);_.c([_.nL("richGridItemsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],iz.prototype,"observerRichGridItemsPerRow",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],iz.prototype,"badgeIconName",null);
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],iz.prototype,"badgeLabel",null);iz=_.c([_.E({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],iz);
_.R(iz,"ytd-member-hub-profile-renderer",function(){if(XPx!==void 0)return XPx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return XPx=q},{mode:1});var FQ4;var rz=function(){return _.Y.apply(this,arguments)||this};
_.O(rz,_.Y);rz.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],rz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],rz.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],rz.prototype,"data",void 0);rz=_.c([_.E({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],rz);
_.R(rz,"ytd-settings-sidebar-renderer",function(){if(FQ4!==void 0)return FQ4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return FQ4=q},{mode:1});var Ge6;var Ua=function(){var q=_.Y.apply(this,arguments)||this;q.expandableCustomTabRenderable=function(w){return zoq(w,function(){return void q.onSearchNavigate()})};
return q};
_.O(Ua,_.Y);Ua.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Ua.prototype.onSearchNavigate=function(){this.selected=void 0};
Ua.prototype.onTabsChange=function(){var q,w=(q=this.tabs)==null?void 0:q.findIndex(function(u){var y;return u==null?void 0:(y=u.tabRenderer)==null?void 0:y.selected});
w!==void 0&&(this.selected=w)};
Ua.prototype.onTabsActive=function(q){if(this.tabs!==void 0){var w,u;(q=(w=this.tabs[q.detail.selected])==null?void 0:(u=w.tabRenderer)==null?void 0:u.endpoint)&&_.t7(this.hostElement,"yt-navigate",{endpoint:q})}};
_.x$.Object.defineProperties(Ua.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Zlx(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
Ua.prototype.onTabsChange=Ua.prototype.onTabsChange;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ua.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.zr),_.h("design:type",Object)],Ua.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ua.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.D$.YtdGuideStateAwareBehavior),_.h("design:type",Object)],Ua.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],Ua.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Array)],Ua.prototype,"tabs",void 0);_.c([_.v(),_.h("design:type",Number)],Ua.prototype,"selected",void 0);_.c([_.Z("tabs.*"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ua.prototype,"tabGroupShape",null);_.c([_.v(),_.h("design:type",Object)],Ua.prototype,"expandableCustomTabRenderable",void 0);
_.c([_.Z("tabs"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ua.prototype,"tabsEnabled",null);_.c([_.I9("tabs"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ua.prototype,"onTabsChange",null);Ua=_.c([_.E({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],Ua);
_.R(Ua,"ytd-topic-channel-details-renderer",function(){if(Ge6!==void 0)return Ge6;var q=document.createElement("template");_.f(q,'\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        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Ge6=q},{mode:1});var nbj;var TB=function(){var q=_.Y.apply(this,arguments)||this;q.disableGridStateAware=!1;return q};
_.O(TB,_.Y);TB.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]]"}}}}}};
TB.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
TB.prototype.updateCssVars=function(){_.Pj(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Fc("rich_grid_max_item_width",500))+16)-16+"px"})};
TB.prototype.updateCssVars=TB.prototype.updateCssVars;TB.prototype.activeChanged=TB.prototype.activeChanged;_.c([_.D(_.D$.YtdGuideStateAwareBehavior),_.h("design:type",Object)],TB.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],TB.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],TB.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],TB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],TB.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Array)],TB.prototype,"tabs",void 0);_.c([_.v(),_.h("design:type",Boolean)],TB.prototype,"active",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],TB.prototype,"disableGridStateAware",void 0);
_.c([_.v({selector:_.aO}),_.h("design:type",Number)],TB.prototype,"richGridItemsPerRow",void 0);_.c([_.v({selector:_.za}),_.h("design:type",Boolean)],TB.prototype,"richGridMiniMode",void 0);_.c([_.Wj("ytd-carousel-item-renderer"),_.h("design:type",Object)],TB.prototype,"carousel",void 0);_.c([_.nL("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],TB.prototype,"activeChanged",null);
_.c([_.nL("richGridItemsPerRow","richGridMiniMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],TB.prototype,"updateCssVars",null);TB=_.c([_.E({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],TB);
_.R(TB,"ytd-carousel-header-renderer",function(){if(nbj!==void 0)return nbj;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return nbj=q},{mode:1});var H_q;var WQa=_.Sc(["https://www.google-analytics.com/analytics.js"]),Cs=function(){var q=_.Y.apply(this,arguments)||this;q.scriptAnalyticsAdded=!1;return q};
_.O(Cs,_.Y);Cs.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var q,w=(q=this.data)==null?void 0:q.tagManagerId;w&&(_.Wd(w,_.Et("GL")),$jV(w))};
Cs.prototype.sendGoogleAnalyticsPageview=function(q){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var u=_.Cj.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(u)};
var w=window.ga;w("set","page",window.location.pathname);w.l=+new Date;w("set","forceSSL",!0);w("create",q,"'auto'");w("send","pageview")};
Cs.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var q=_.rg("SCRIPT");q.name="ga-analytics";var w=_.qK(WQa);_.bZ(q,w);q.async=!0;_.A(this.hostElement).appendChild(q)};
Cs.prototype.dataChanged=Cs.prototype.dataChanged;_.c([_.v(),_.h("design:type",Object)],Cs.prototype,"data",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Cs.prototype,"dataChanged",null);Cs=_.c([_.E({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],Cs);
_.R(Cs,"ytd-channel-metadata-renderer",function(){if(H_q!==void 0)return H_q;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return H_q=q},{mode:1});var sW4;var NWm;var dz=function(){return _.Y.apply(this,arguments)||this};
_.O(dz,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],dz.prototype,"data",void 0);dz=_.c([_.E({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],dz);
_.R(dz,"ytd-sub-feed-option-renderer",function(){if(NWm!==void 0)return NWm;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return NWm=q},{mode:1});var QWB;var Oa=function(){return _.Y.apply(this,arguments)||this};
_.O(Oa,_.Y);Oa.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Oa.prototype,"ytRendererStamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Oa.prototype,"data",void 0);Oa=_.c([_.E({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],Oa);
_.R(Oa,"ytd-sub-feed-selector-renderer",function(){if(QWB!==void 0)return QWB;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return QWB=q},{mode:1});var o_=function(){return _.Y.apply(this,arguments)||this};
_.O(o_,_.Y);
o_.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}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],o_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],o_.prototype,"data",void 0);o_=_.c([_.E({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],o_);
_.R(o_,"ytd-browse-feed-actions-renderer",function(){if(sW4!==void 0)return sW4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return sW4=q},{mode:1});var IqH;var i_4;var Vu=function(){return _.Y.apply(this,arguments)||this};
_.O(Vu,_.Y);Vu.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Vu.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Vu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Vu.prototype,"data",void 0);Vu=_.c([_.E({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Vu);
_.R(Vu,"ytd-mini-channel-renderer",function(){if(i_4!==void 0)return i_4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return i_4=q},{mode:1});var ru6;var fs=function(){return _.Y.apply(this,arguments)||this};
_.O(fs,_.Y);fs.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],fs.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],fs.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],fs.prototype,"data",void 0);fs=_.c([_.E({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],fs);
_.R(fs,"ytd-vertical-channel-section-renderer",function(){if(ru6!==void 0)return ru6;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return ru6=q},{mode:1});var mi=function(){return _.Y.apply(this,arguments)||this};
_.O(mi,_.Y);mi.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],mi.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],mi.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],mi.prototype,"data",void 0);mi=_.c([_.E({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],mi);
_.R(mi,"ytd-browse-secondary-contents-renderer",function(){if(IqH!==void 0)return IqH;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);
return IqH=q},{mode:1});var UpV;var AF=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};q.notActive=!1;q.isConstrainedList=!1;return q};
_.O(AF,_.Y);_.k=AF.prototype;
_.k.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(q){var w;return(q==null?void 0:(w=q.webComponentHint)==null?void 0:w.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}}}}};
_.k.getPath=function(q,w){var u="data.tabs.#"+w+".";q.tabs[w].tabRenderer?u+="tabRenderer.":q.tabs[w].expandableTabRenderer&&(u+="expandableTabRenderer.");return u+"content.sectionListRenderer"};
_.k.computeDisplayedContent=function(q){this.unlinkPaths("content");if(q&&q.tabs)for(var w=q.tabs.length,u=0;u<w;u++){var y=q.tabs[u].tabRenderer||q.tabs[u].expandableTabRenderer;if(y.selected&&y.content)return this.linkPaths("content",this.getPath(q,u)),y.content}return null};
_.k.computeHasSecondaryColumnData=function(q){return!!q&&!!q.secondaryContents};
_.k.onRetrieveLocation=function(q,w){w.locationRetrieved(w.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);q.stopPropagation()};
_.k.onYtServiceRequestSent=function(q,w){_.T("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(w)};
_.k.onYtServiceRequestCompleted=function(q,w){_.T("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(w)};
_.k.onReplaceFeedContentAction=function(q){if(!_.T("replace_feed_content_action_killswitch")&&!this.notActive){var w;(q=(w=_.C(q,ho4))==null?void 0:w.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(q)}};
_.k.handleServiceRequestActions=function(q){if(q=q.actions){q=_.P(q);for(var w=q.next();!w.done;w=q.next()){w=w.value;var u=void 0;((u=_.C(w,ho4))==null?0:u.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.C(w,ho4).items)}}};
AF.prototype.onYtServiceRequestCompleted=AF.prototype.onYtServiceRequestCompleted;AF.prototype.onYtServiceRequestSent=AF.prototype.onYtServiceRequestSent;AF.prototype.onRetrieveLocation=AF.prototype.onRetrieveLocation;_.c([_.D(_.zr),_.h("design:type",Object)],AF.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],AF.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],AF.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],AF.prototype,"data",void 0);_.c([_.v({computed:"computeDisplayedContent(data)"}),_.h("design:type",Object)],AF.prototype,"content",void 0);
_.c([_.v({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],AF.prototype,"hasSecondaryColumnData",void 0);_.c([_.v({value:function(){return window.outerHeight>1024?3:2}}),
_.h("design:type",Number)],AF.prototype,"initialCount",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],AF.prototype,"pageSubtype",void 0);_.c([_.Wj("ytd-section-list-renderer"),_.h("design:type",Object)],AF.prototype,"listRenderer",void 0);_.c([_.v(),_.h("design:type",Object)],AF.prototype,"notActive",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],AF.prototype,"isConstrainedList",void 0);
_.c([_.v(),_.h("design:type",String)],AF.prototype,"responsiveSizing",void 0);_.c([_.Gm("yt-retrieve-location"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],AF.prototype,"onRetrieveLocation",null);_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],AF.prototype,"onYtServiceRequestSent",null);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],AF.prototype,"onYtServiceRequestCompleted",null);AF=_.c([_.E({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],AF);
_.R(AF,"ytd-two-column-browse-results-renderer",function(){if(UpV!==void 0)return UpV;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return UpV=q},{mode:2});var TW6;var CTA;var JF=function(){var q=_.Y.apply(this,arguments)||this;q.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"]);q.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"]);q.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return q};
_.O(JF,_.Y);_.k=JF.prototype;_.k.attached=function(){this.requestElementsPerRow()};
_.k.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_]]"}}}}}};
_.k.onUpdateElementsPerRowAction=function(q){q&&this.elementsPerRow!==q&&(this.elementsPerRow=q)};
_.k.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.k.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.k.computeAlertStyle_=function(q){return q};
_.k.observerElementsPerRow=function(){this.elementsPerRow&&_.Pj(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.k.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.k.requestElementsPerRow=function(){_.t7(this.hostElement,"yt-request-elements-per-row")};
JF.prototype.onIsVisibleChanged_=JF.prototype.onIsVisibleChanged_;JF.prototype.observerElementsPerRow=JF.prototype.observerElementsPerRow;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],JF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],JF.prototype,"actionHandlerBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],JF.prototype,"data",void 0);_.c([_.v({value:6,reflectToAttribute:!0}),_.h("design:type",Number)],JF.prototype,"elementsPerRow",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],JF.prototype,"wrapButtons",void 0);_.c([_.v({value:_.Et("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.h("design:type",Boolean)],JF.prototype,"isMusic",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.h("design:type",String)],JF.prototype,"alertStyle",void 0);_.c([_.v({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.h("design:type",Function)],JF.prototype,"dismissBoundButtonTap_",void 0);_.c([_.v({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.h("design:type",Function)],JF.prototype,"acceptBoundButtonTap_",void 0);_.c([_.nL("elementsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],JF.prototype,"observerElementsPerRow",null);_.c([_.nL("data.isVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],JF.prototype,"onIsVisibleChanged_",null);JF=_.c([_.JM({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],JF);
_.R(JF,"yt-alert-with-actions-renderer",function(){if(CTA===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;TW6===void 0&&(TW6=document.createElement("template"));var y=TW6;u.call(w,y.content.cloneNode(!0),q.content.firstChild);CTA=q}q=CTA;return q},{mode:2});_.q9(_.LL(function(q){function w(U){var d={};return _.W(_.Lr,{text:U,className:_.HR("ytPersonalGreetingViewModelHeadline",(d.ytPersonalGreetingViewModelHeadlineSmall=function(){return G()===48},d))})}
function u(U,d){return _.W("span",{el:U,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},w(d))}
var y=_.Bm(),e=_.Bm(),t=_.Bm(),X=function(){return q.data().canvasPromoData},G=function(){var U;
return(U=q.data().bannerHeight)!=null?U:56},n=_.OEj(y,{throttleMs:100}),N=_.OEj(e,{throttleMs:100}),Q=_.OEj(t,{throttleMs:100}),I=function(){return N.width()-n.width()>1};
_.EF(y,function(){var U;return(U=q.data())==null?void 0:U.rendererContext},void 0,void 0,void 0,!0);
return _.W("yt-personal-greeting-view-model",{el:y,"aria-hidden":I,class:_.HR(q.className,"ytPersonalGreetingViewModelHost"),style:_.rm({height:(0,_.iK)(function(){return I()?0:G()})})},_.W(_.r,{cond:function(){return q.data().avatar&&!(Q.width()+(q.data().avatar?48:0)-n.width()>1)},
then:function(){return _.W(_.OF,{data:function(){return q.data().avatar}},{decoratedAvatarViewModel:function(U){return _.W(_.UJ,{data:U.data,
className:_.HR("ytPersonalGreetingViewModelAvatar")})}})}}),_.W("h1",null,w(function(){var U;
return(X==null?void 0:(U=X())==null?void 0:U.headline)||(Q.width()+(q.data().avatar?48:0)-n.width()>1?q.data().shorterGreeting:q.data().greeting)})),u(t,function(){return q.data().greeting}),u(e,function(){return q.data().shorterGreeting}))},"yi"),"yt-personal-greeting-view-model",{props:{data:_.pK,
className:_.pK}});var zB=function(){var q=_.Y.apply(this,arguments)||this;q.hidden=!1;q.isConstrainedList=!1;q.darkerDarkTheme=_.T("web_darker_dark_theme");q.responsiveSizing="COMPACT";q.attachedPlayers=_.T("kevlar_channel_trailer_multi_attach")?[]:void 0;q.player=null;q.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return q};
_.O(zB,_.Y);_.k=zB.prototype;
_.k.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}}}}};
_.k.created=function(){var q=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){q.disposeMastheadAd()}]};
_.k.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new P2h(this.refresh,this.contents))};
_.k.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.k.activeChanged=function(){var q=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=q)};
_.k.tabsChanged=function(){var q=this,w,u;if(this.pageSubtype==="channels"||_.T("kevlar_tab_gestures_for_tabbed_header_data")&&((w=this.data)==null?0:(u=w.header)==null?0:u.carouselHeaderRenderer))this.tabGestures=new A4(this.contents,this.contents,this.hostElement,this.header,function(X){q.ytdReduxBehavior.dispatch(X)});
var y,e,t;w=(y=this.data)==null?void 0:(e=y.contents)==null?void 0:(t=e.twoColumnBrowseResultsRenderer)==null?void 0:t.tabs;this.tabGestures&&this.tabGestures.tabsChanged(w)};
_.k.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.k.engagementPanelsChanged=function(){var q=_.tG().resolve(_.ib);if(q){if(this.engagementPanels)for(var w=_.P(this.engagementPanels),u=w.next();!u.done;u=w.next()){var y=void 0;(u=(y=u.value.identifier)==null?void 0:y.tag)&&q.panelMap.delete(u)}this.engagementPanels=[];var e;w=_.P(((e=this.data)==null?void 0:e.panels)||[]);for(e=w.next();!e.done;e=w.next()){e=_.C(e.value,_.Y2T);var t=u=void 0,X=void 0,G=void 0;if(y=((u=e)==null?void 0:u.targetId)||((t=e)==null?void 0:t.panelIdentifier)||((X=e)==
null?void 0:(G=X.identifier)==null?void 0:G.tag))t=u=void 0,(t=(u=q).registerPanelContent)==null||t.call(u,y,{engagementPanelSectionListRenderer:e}),this.engagementPanels.push(e)}}};
_.k.onStampFinished=function(){var q=this;_.KJ(this,function(){if(q.tabGestures){var w=q.tabGestures;if(w.scrollPositionNeedsUpdate){var u=_.tG().resolve(_.kF(_.KT)),y;if((y=w.selectedTab)!=null&&y.title&&u&&(y=u.getCurrentPage())){if(w.scrollPositionForTabs.has(w.selectedTab.title)){var e,t;u=(t=(e=u.getCurrentPage())==null?void 0:e.clientHeight)!=null?t:0;e=w.scrollPositionForTabs.get(w.selectedTab.title);y.setScrollTop(e);u>e+100&&(w.scrollPositionNeedsUpdate=!1)}else y.setScrollTop(Math.min(w.lastVisitedTabScrollPosition!==
void 0?w.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,w.tabsStartAtInPx)),w.scrollPositionNeedsUpdate=!1;w.ytdReduxDispatch(pDH(!1))}}}})};
_.k.loadPage_=function(q){this.initCsi();q&&(this.data=q);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.k.getTitle=function(q){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",q))return this.get("microformat.microformatDataRenderer.title",q);if(this.get("header.feedTabbedHeaderRenderer.title",q))return _.lA(this.get("header.feedTabbedHeaderRenderer.title",q));if(this.get("header.interactiveTabbedHeaderRenderer.title",q))return this.get("header.interactiveTabbedHeaderRenderer.title",q);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
q))return _.lA(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",q));var w,u;return _.T("enable_page_header_page_title")&&(q==null?0:(w=q.header)==null?0:(u=w.pageHeaderRenderer)==null?0:u.pageTitle)?q.header.pageHeaderRenderer.pageTitle:""};
_.k.updateTitle=function(q){_.t7(this.hostElement,"yt-update-title",this.getTitle(q))};
_.k.initCsi=function(){_.On(this.pageSubtype||"browse",["ol","cpt"])};
_.k.getPlayer=function(){if(_.T("kevlar_channel_trailer_multi_attach")){for(var q=_.P(this.attachedPlayers),w=q.next();!w.done;w=q.next())if(w=w.value,w.isConnected||_.R3(this.hostElement,w))return w;return null}return this.player};
_.k.getPlayerContainer=function(){return null};
_.k.onPlayerAttached=function(q,w){_.T("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(w):this.player=w};
_.k.onPlayerDetached=function(q,w){_.T("kevlar_channel_trailer_multi_attach")?(q=this.attachedPlayers.indexOf(w),q<0||this.attachedPlayers.splice(q,1)):this.player=null};
_.k.getServiceTrackingParams=function(){var q,w;return((q=this.data)==null?void 0:(w=q.responseContext)==null?void 0:w.serviceTrackingParams)||[]};
_.k.setMastheadAd=function(q){q&&q.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=q&&q.mastheadAd};
_.k.dataChanged=function(){var q=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.rQq();_.KJ(this,function(){_.X4(q.hostElement,"ytd-update-grid-state-action")})};
_.k.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.k.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var q=this.data.alerts;return q&&q.find(function(w){return!!w.alertWithActionsRenderer})}};
_.k.computeGreetingData=function(){if(this.data&&this.data.alerts){var q=this.data.alerts;return q&&q.find(function(w){return!!w.personalGreetingViewModel})}};
_.k.computeHasMemberHubProfileRenderer=function(q){var w;return!!(q==null?0:(w=q.header)==null?0:w.memberHubProfileRenderer)};
_.k.handleAlertCommand=function(q){this.get("alertCommand.alert.alertWithActionsRenderer",q)&&(q=_.C(q,jnc),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",q.alert))};
_.k.handleYtPlaylistDeletionRedirect=function(q){q=this.get("playlistDeletionRedirectCommand.redirectEndpoint",q);_.t7(this.hostElement,"yt-navigate",{endpoint:q})};
_.k.computeFluidWidth=function(q,w,u){if(w==="mini_app"||u)return!0;var y,e,t;q=q==null?void 0:(y=q.contents)==null?void 0:(e=y.twoColumnBrowseResultsRenderer)==null?void 0:(t=e.tabs)==null?void 0:t.find(function(n){var N;return n==null?void 0:(N=n.tabRenderer)==null?void 0:N.selected});
if(!q)return!1;var X,G;return!!((X=q.tabRenderer)==null?0:(G=X.content)==null?0:G.richGridRenderer)&&!["channel","channels","playables"].includes(w)};
_.k.computeHeaderFluidWidth=function(q){return q==="hashtag-landing-page"};
_.k.computeHasSidebar=function(q){var w;return!!(q.sidebar||((w=q.header)==null?0:w.playlistHeaderRenderer))};
_.k.computeHasPageHeaderSidebar=function(q){var w,u;return!!((w=q.header)==null?0:(u=w.pageHeaderRenderer)==null?0:u.enableSidebarView)};
_.k.computeUseUnifiedShowPageLayout=function(q){if(!q||this.pageSubtype!=="show"||!q.sidebar||!q.sidebar.playlistSidebarRenderer)return!1;q=q.sidebar.playlistSidebarRenderer;if(!q.items)return!1;for(var w=0;w<q.items.length;w++)if(_.C(q.items[w],fe)){var u=void 0;return((u=_.C(q.items[w],fe))==null?void 0:u.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.k.computeIsConstrainedList=function(q){return _.T("web_enable_constrained_list_subscriptions_channels")&&q==="subscriptions-channels"};
_.k.computeResponsiveSizing=function(q){return q==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.x$.Object.defineProperties(zB.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var q,w;return((q=this.data)==null?0:(w=q.header)==null?0:w.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var q,w;if(!((q=this.data)==null?0:(w=q.sidebar)==null?0:w.playlistSidebarRenderer))return!1;var u;return(u=this.data)!=null&&u.header?!1:!0}}});
_.x$.Object.defineProperties(zB,{template:{configurable:!0,enumerable:!0,get:function(){if(Gbx===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);Gbx=q}q=Gbx;return q}}});
zB.prototype.dataChanged=zB.prototype.dataChanged;zB.prototype.onPlayerDetached=zB.prototype.onPlayerDetached;zB.prototype.onPlayerAttached=zB.prototype.onPlayerAttached;zB.prototype.onStampFinished=zB.prototype.onStampFinished;zB.prototype.engagementPanelsChanged=zB.prototype.engagementPanelsChanged;zB.prototype.scrollAtTopChanged=zB.prototype.scrollAtTopChanged;zB.prototype.tabsChanged=zB.prototype.tabsChanged;zB.prototype.activeChanged=zB.prototype.activeChanged;
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],zB.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.YE),_.h("design:type",Object)],zB.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],zB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],zB.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.oL.YtPageBehavior),_.h("design:type",Object)],zB.prototype,"ytPageBehavior",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],zB.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.D$.YtdGuideStateAwareBehavior),_.h("design:type",Object)],zB.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],zB.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],zB.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],zB.prototype,"hidden",void 0);
_.c([_.v(),_.h("design:type",Object)],zB.prototype,"mastheadAdData",void 0);_.c([_.v({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.h("design:type",Object)],zB.prototype,"alertBannerData",void 0);_.c([_.v({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.h("design:type",Object)],zB.prototype,"greetingData",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],zB.prototype,"pageSubtype",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.h("design:type",Boolean)],zB.prototype,"hasMemberHubProfileRenderer",void 0);_.c([_.v({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],zB.prototype,"hasSidebar",void 0);_.c([_.v({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],zB.prototype,"hasPageHeaderSidebar",void 0);
_.c([_.v({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],zB.prototype,"roundedContainer",void 0);_.c([_.v({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],zB.prototype,"useUnifiedShowPageLayout",void 0);_.c([_.v({computed:"computeIsConstrainedList(pageSubtype)"}),_.h("design:type",Object)],zB.prototype,"isConstrainedList",void 0);
_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],zB.prototype,"usePlaylistHeaderRenderer",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],zB.prototype,"useOldPlaylistSidebarRenderer",null);_.c([_.v({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.h("design:type",Boolean)],zB.prototype,"fluidWidth",void 0);_.c([_.v({selector:function(q){return q.ui.scrollAtTop}}),
_.h("design:type",Boolean)],zB.prototype,"scrollAtTop",void 0);_.c([_.v({selector:_.UCh}),_.h("design:type",Boolean)],zB.prototype,"tabGesturesIsActive",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],zB.prototype,"darkerDarkTheme",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.h("design:type",Boolean)],zB.prototype,"disableHeaderFluidWidth",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.h("design:type",String)],zB.prototype,"responsiveSizing",void 0);_.c([_.Wj("ytd-two-column-browse-results-renderer"),_.h("design:type",HTMLElement)],zB.prototype,"contents",void 0);_.c([_.Wj("#header"),_.h("design:type",HTMLElement)],zB.prototype,"header",void 0);_.c([_.Wj("ytd-refresh"),_.h("design:type",Object)],zB.prototype,"refresh",void 0);
_.c([_.nL("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zB.prototype,"activeChanged",null);_.c([_.nL("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zB.prototype,"tabsChanged",null);_.c([_.nL("scrollAtTop"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zB.prototype,"scrollAtTopChanged",null);
_.c([_.v(),_.h("design:type",Object)],zB.prototype,"engagementPanels",void 0);_.c([_.nL("data.panels"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zB.prototype,"engagementPanelsChanged",null);_.c([_.Gm("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zB.prototype,"onStampFinished",null);
_.c([_.Gm("yt-player-attached"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Element]),_.h("design:returntype")],zB.prototype,"onPlayerAttached",null);_.c([_.Gm("yt-player-detached"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Element]),_.h("design:returntype")],zB.prototype,"onPlayerDetached",null);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zB.prototype,"dataChanged",null);
zB=_.c([_.E({is:"ytd-browse"})],zB);_.Co.registerService(_.wqc,zB);
_.pY();
}catch(e){_._DumpException(e)}
try{
_.ZH("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 qp=function(q){if(!q)return"browse";var w=q.page,u=q.url,y,e,t,X=(y=q.response)==null?void 0:(e=y.responseContext)==null?void 0:(t=e.webResponseContextExtensionData)==null?void 0:t.pageTheme;if(X)w=X.toLowerCase().replace(/_/g,"-");else if(w!=="watch"&&w!=="learning_journey_watch"){var G,n;if((w==="browse"||w==="settings")&&((G=q.response)==null?0:(n=G.sidebar)==null?0:n.settingsSidebarRenderer))w="WEB_PAGE_TYPE_SETTINGS";else{var N,Q;w==="browse"&&((N=q.response)==null?0:(Q=N.metadata)==null?
0:Q.channelMetadataRenderer)?w="channel":u&&(w=_.N_(u)||w)}}return w},AP6=function(){var q=_.hP("yt.aba.att");
return q?q:_.j2.instance!==void 0?_.j2.instance.nWc.bind(_.j2.instance):null},JPB=function(q,w){var u;
return _.F(function(y){return(u=AP6())?y.return(u(q,w,6E4)):y.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},zCA=function(q,w,u,y,e){w=w===void 0?[]:w;
e=e?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:e}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.yU(q),dialogMessages:w.map(function(t){return _.yU(t)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.yU(u),serviceEndpoint:e}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.yU(y)}}}}}},aRT=function(q){var w=!!_.$u().queueProxy;
var u,y,e;q=q==null?void 0:(u=q.response)==null?void 0:(y=u.currentVideoEndpoint)==null?void 0:(e=y.watchEndpoint)==null?void 0:e.playlistId;return!(!w&&!q)},DZK=function(q,w){var u=_.Hh();
if(aRT(q))return u.playlistWatchPageActivation=!0;switch(qp(w)){case "yts-products":return u.productDetailsPageActivation=!0;case "mini_app":return u.miniAppPageActivation=!0;case "playables":return u.playablesDestPageActivation=!0;default:return!1}},Z4j=function(q,w,u){for(var y=typeof q==="string"?q.split(""):q,e=q.length-1;e>=0;--e)e in y&&w.call(u,y[e],e,q)},pl6=function(q,w){w=_.I64(q,w);
w>=0&&_.jH(q,w)},$ZB=function(q){return Array.prototype.concat.apply([],arguments)},vwB=function(q){var w=0;
w=w===void 0?0:w;if(!_.UA(q))throw _.iP("uint64");var u=typeof q;switch(w){case 512:switch(u){case "string":return _.GGc(q);case "bigint":return String((0,_.ph)(64,q));default:return _.Xky(q)}case 1024:switch(u){case "string":return _.nTs(q);case "bigint":return _.K$((0,_.ph)(64,q));default:return _.FjM(q)}case 0:switch(u){case "string":return _.GGc(q);case "bigint":return _.K$((0,_.ph)(64,q));default:return _.PP6(q)}default:return _.Xm(w,"Unknown format requested type for int64")}},b4h=function(q){q!=
null&&(q=q.JSC$6714_value_||"",q=typeof q==="string"?q:new Uint8Array(q));
return q},Ytc=function(q){for(var w=_.Cj.apply(1,arguments),u=q[0],y=0;y<q.length-1;y++)u+=String(w[y]),u+=q[y+1];
w=document.implementation.createHTMLDocument("");y=w.createElement("style");w.head.appendChild(y);w=y.sheet;w.insertRule(u,0);if(w.cssRules.length===1&&(u=w.cssRules[0],u instanceof CSSStyleRule))return new _.S9(u.cssText.replace(/</g,"\\3C "))},gwq=function(q,w){if(/-[a-z]/.test(w))return null;
if(_.$TG&&q.dataset){if(_.X44()&&!(w in q.dataset))return null;q=q.dataset[w];return q===void 0?null:q}return q.getAttribute("data-"+_.i9(w))},RCq=function(){var q=Ew4;
_.hP("yt.ads.biscotti.getId_")||_.wr("yt.ads.biscotti.getId_",q)},cP4=function(q){_.wr("yt.ads.biscotti.lastId_",q)},hCj=function(){var q={};
for(_.a2=new StB(q.handleError===void 0?_.bD:q.handleError,q.logEvent===void 0?_.pn:q.logEvent);_.D7.length>0;)switch(q=_.D7.shift(),q.type){case "ERROR":_.a2.logError(q.payload);break;case "EVENT":_.a2.logEvent(q.eventType,q.payload)}},jXK=function(q,w,u){return _.D4z(function(y){return u?y.userIdentifier!==void 0&&!q.includes(y.userIdentifier)&&u.includes(y.publicName):y.userIdentifier!==void 0&&!q.includes(y.userIdentifier)},w)},lRK=function(q){var w,u;
return _.F(function(y){if(y.nextAddress==1)return w=_.O8("YtIdbMeta hasAnyMeta other"),_.H(y,_.D4z(function(e){return e.userIdentifier!==void 0&&e.userIdentifier!==w},q),2);
u=y.yieldResult;return y.return(u.length>0)})},MZa=function(q,w){LL6||(LL6=_.pi.addLowPriorityJob(function(){var u,y,e,t,X;
return _.F(function(G){switch(G.nextAddress){case 1:return _.H(G,_.uY(),2);case 2:u=G.yieldResult;if(!u)return G.return();y=!0;_.tD(G,3);return _.H(G,jXK(q,u,w),5);case 5:e=G.yieldResult;if(!e.length){y=!1;G.jumpTo(6);break}t=e[0];return _.H(G,_.l4(t.actualName),7);case 7:return _.H(G,_.Kv(t.actualName,u),6);case 6:_.jv(G,4);break;case 3:X=_.nm(G),_.Z7(X),y=!1;case 4:_.pi.cancelJob(LL6),LL6=0,y&&MZa(q,w),_.HI(G)}})}))},KLV=function(){var q;
return _.F(function(w){return w.nextAddress==1?_.H(w,_.uY(),2):(q=w.yieldResult)?w.return(lRK(q)):w.return(!1)})},B_K=function(q){var w=100;
w=w===void 0?500:w;var u,y,e,t,X,G;return _.F(function(n){return n.nextAddress==1?(u=_.Et("INNERTUBE_CONTEXT_CLIENT_NAME",0),y=[u,(0,_.eW)()-2592E6],e=[u,(0,_.eW)()],t=IDBKeyRange.bound(y,e),_.H(n,_.tQz(q),2)):n.nextAddress!=3?(X=n.yieldResult,G=[],_.H(n,_.Mu(X,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(N){G.length=0;return _.kZ(N.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:t,direction:"prev"},function(Q){if(Q.getValue()&&G.length<w)return G.push(Q.getValue()),
Q.delete().then(function(){return Q.continue()})})}),3)):n.return(G)})},xZH=function(){var q;
return _.F(function(w){if(w.nextAddress==1)return _.H(w,_.uY(),2);q=w.yieldResult;if(!q||!_.VV()&&!_.T("nwl_init_require_datasync_id_killswitch")||!_.oMl())return w.jumpTo(0);_.fuJ=!0;_.VQ4.isNwlInitialized=_.fuJ;return _.H(w,_.SEX().awaitInitialization(),0)})},wW=function(q,w){_.cey[q]=!0;
var u=_.X$();u&&u.publish.apply(u,arguments);_.cey[q]=!1},wGa=function(){if(_.TGl()&&!q8K){var q=function(u){u=u.data;
if(u.op==="serializedGelBatch"){var y=_.S6H.get(u.key);y&&(_.j9o(u.serializedBatch,y.client,y.resolve,y.networklessOptions,y.isIsolated,y.useVSSEndpoint,y.dangerousLogToVisitorSession,y.requestsOutstanding),_.S6H.delete(u.key))}},w=_.Utf();
w&&(w.addEventListener("message",q),w.onerror=function(){_.S6H.clear()});
q8K=!0}},uT=function(){this.relativeTimeStart_=_.qG()},ucK=function(q,w){q!=null&&this.append.apply(this,arguments)},yGK=function(){return _.YG("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},eWA=function(q,w,u){u=u===void 0?!1:u;
var y,e,t,X,G;return _.F(function(n){switch(n.nextAddress){case 1:_.Cv("SOCS",q,34128E3,"youtube.com",!0);if(_.F1)return e=fetch(w,{method:"POST",mode:_.hp(w),credentials:_.Sp(w),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),t=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.hp("/upgrade_visitor_cookie?eom=1"),credentials:_.Sp("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.H(n,Promise.all([e,t]).then(function(N){return N[1]}),5);
fetch(w,{method:"POST",mode:_.hp(w),credentials:_.Sp(w),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.H(n,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.hp("/upgrade_visitor_cookie?eom=1"),credentials:_.Sp("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:y=n.yieldResult;n.jumpTo(3);break;case 5:y=X=n.yieldResult;case 3:if(!y.ok)throw Error("nf");return _.H(n,y.text(),7);case 7:G=n.yieldResult,
!G.includes('"state_switch":true')&&!u||G.includes("skip_reload_for_test")||window.location.reload(),_.HI(n)}})},kQA=function(q){return _.F(function(w){return w.nextAddress==1?_.H(w,eWA(q.socsCookie,q.savePreferenceUrl,!0),2):w.return()})},tvx=function(q){return _.F(function(w){return w.nextAddress==1?_.H(w,eWA(q.socsCookie,q.savePreferenceUrl),2):w.return()})},XGq=function(q){q=q.xhr.responseText;
if(!_.tz(q,")]}'"))throw new yn;q=JSON.parse(q.substr(4));if((q.type||1)>1)throw new yn;q=q.id;cP4(q);eI=_.Eu(q);P4B(18E5,2);return q},GQ4=function(q,w){w=new FIa(w);
cP4("");eI=_.s4$(w);q>0&&P4B(12E4,q-1);throw w;},P4B=function(q,w){_.WG(function(){_.sXA().then(XGq,function(u){return GQ4(w,u)}).thenCatch(_.sb)},q)},Ew4=function(){var q=_.IRa();
if(q!==void 0)return _.og(q);eI||(eI=_.sXA().then(XGq).thenCatch(function(w){return GQ4(2,w)}));
return eI},nFT=function(){var q=document;
return _.v4(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(w){return"on"+w.toLowerCase()in q})},Hva=function(q){q.addEventListener("click",function(w){var u=w.target;
u&&u.getAttribute("href")&&(u=u.getAttribute("href"),_.aw(window,u,"_blank"),w.preventDefault(),w.stopImmediatePropagation())})},WIB=function(q){var w,u,y,e=(y=(u=((w=q.mainDownloadsListEntity)!=null?w:{})[_.uhl])==null?void 0:u.refresh)!=null?y:"",t;
q=(t=q.refresh)==null?void 0:t[e];e=q!=null?q:{};return(e==null?0:e.refreshTime)?Number(e==null?void 0:e.refreshTime):0},s2A=function(q,w){var u=_.VU(q);
return w.every(function(y){var e;y=y==null?void 0:(e=y.playbackDataEntity)==null?void 0:e.key;if(!y)return!1;e=_.na(_.XX(y).entityId,"mainVideoEntity");return!!u[e]})},N$A=function(q){q=_.dG(q.entities);
return _.Noo(q).length},Q2x=function(q,w){if(w){var u;
q=(u=_.HQ(q.entities,"downloadQualityPickerEntity",w))!=null?u:void 0}else q=void 0;return q},rG6=function(){I76||(_.hr=_.BfJ,I76=new iva);
return I76},Uum=function(q){var w=document.getElementsByTagName("ytd-enforcement-message-view-model");
w.length===0||getComputedStyle(w[0]).display==="none"?q(0,"p.h_"):q(1,"p.h_")},T$4=function(){kb=0;
var q=[_.UP(!0)];tu&&_.X4(tu,"yt-window-resized",q)},C4A=function(){kb||(kb=_.pi.addLowPriorityJob(T$4,200))},OvH=function(){PP=0;
duj=_.vJ6(document);var q=[duj];tu&&_.X4(tu,"yt-window-scrolled",q)},oFV=function(){PP||(PP=_.pi.addLowPriorityJob(OvH,200))},f7j=function(q){q=q===void 0?null:q;
Vvh.push(_.ew(window,"resize",C4A));Vvh.push(_.ew(window,"scroll",oFV));q&&(tu=q)},muK=function(q){_.F(function(w){if(w.nextAddress==1)return _.H(w,q.delete("yt-appshell-assets"),2);
_.HI(w)})},AGm=function(q){return _.Lv((0,_.ptT)(),q)},zWa=function(){var q;
_.F(function(w){return w.nextAddress==1?_.H(w,Xw.getInstance(),2):(q=w.yieldResult)?_.H(w,JGj(q),0):w.jumpTo(0)})},Dum=function(){var q;
_.F(function(w){return w.nextAddress==1?_.H(w,Fw.getInstance(),2):(q=w.yieldResult)?_.H(w,a7h(q),0):w.jumpTo(0)})},Zvm=function(q){muK(q);
zWa();Dum()},pGa=function(q){var w,u;
return _.F(function(y){if(y.nextAddress==1)return _.H(y,_.mcj(q),2);if(w=y.yieldResult){var e;a:{if(w.headers&&(e=w.headers.get("date"))&&(e=Date.parse(e),!isNaN(e))){e=Math.round((0,_.eW)()-e);break a}e=-1}u=e;if(u>-1)return y.return(u)}return y.return(-1)})},$um=function(){var q=_.uc.caches,w=_.RX("IS_SHELL_LOAD"),u,y;
_.F(function(e){if(e.nextAddress==1)return u=-1,w?_.H(e,pGa(q),3):(y=_.VY(),u=Math.round((0,_.eW)()-y),e.jumpTo(2));e.nextAddress!=2&&(u=e.yieldResult);u>=0&&u<2147483648&&_.zM({appInstallDataAgeMs:u});_.HI(e)})},vFB=function(q){var w=_.h1(_.uc.location.href),u={};
"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(y){var e=w.JSC$7931_queryData_.getValues(y);if(e==null?0:e.length)u[y]=e});
return _.wb(q,new Map(Object.entries(u)))},bvH=function(q){q=q.match(/(.*)::.*::.*/);
if(q!==null)return q[1]},Y86=function(q){if(_.ja6()){var w=Object.keys(window.localStorage);
w=_.P(w);for(var u=w.next();!u.done;u=w.next()){u=u.value;var y=bvH(u);y===void 0||q.includes(y)||self.localStorage.removeItem(u)}}},gFa=function(){if(!_.ja6())return!1;
var q=_.O8(),w=Object.keys(window.localStorage);w=_.P(w);for(var u=w.next();!u.done;u=w.next())if(u=bvH(u.value),u!==void 0&&u!==q)return!0;return!1},EF4=function(q){return _.hs("NotificationsDisabled",q)},RWc=function(){return Notification.permission!="granted"?Promise.resolve():_.TBj().then(function(q){return q?q.pushManager.getSubscription().then(function(w){if(w)return Promise.resolve();
w={userVisibleOnly:!0,applicationServerKey:_.sX("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return q.pushManager.subscribe(w).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},cGB=function(q){return _.TBj().then(function(w){if(!w||!w.active)return Promise.reject(new _.fv("serviceworker.postMessage",q,w));
try{return w.active.postMessage(q),Promise.resolve()}catch(u){return Promise.reject(u)}})},S86=function(){cGB({type:"notifications_register",
data:_.Et("ID_TOKEN")})},j2V=function(){var q={isWide:_.TQ.get("wide","0")==="1"},w=_.UC();
if(w=w.getFlag(165)||w.getFlag(174))q.theme=_.$M(!0);if(_.npJ()){var u=_.pp()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";q.systemTheme=u}!w&&_.T("parent_tools_enable_app_settings")&&_.K4(window.location.href).theme!==void 0&&(q.theme=_.$M());if((w=Ge)?!_.db.equals(w,q):q)w={currentValue:q},hW4&&(w.timeSinceLastSnapshotSecs=Math.round(((0,_.eW)()-hW4)/1E3)),Ge&&(w.previousValue=Ge),_.pn("appSettingsCaptured",w),Ge=q,hW4=(0,_.eW)()},l7c=function(){if(!_.RX("LOGGED_IN"))return Promise.resolve(!1);
var q=_.GQ("service_worker_push_force_notification_prompt_tag");return q?_.ld("PromptTags").then(function(w){if(!w)return!0;var u=[];try{u=JSON.parse(w)}catch(y){return!1}return u&&u.indexOf(q)==-1}):Promise.resolve(!1)},LIK=function(){var q=_.Fc("service_worker_push_prompt_delay_microseconds");
return q?_.ld("PromptTime").then(function(w){return Promise.resolve(Date.now()-q>(w||0))}):Promise.resolve(!0)},MvT=function(){var q=_.Fc("service_worker_push_logged_out_prompt_watches");
return q==-1?Promise.resolve(!1):_.ld("WatchCount").then(function(w){return w>=q})},KIa=function(){var q=_.wE(document,"yt-push-prompt-modal-bg");
q&&_.UN(q)},B$j=function(){return _.Fc("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.ld("PromptCount").then(function(q){q||(q=0);
return Promise.resolve(q<_.Fc("service_worker_push_prompt_cap"))})},xu6=function(q){return _.RX("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.RX("LOGGED_IN")&&(q===void 0?0:q)?l7c().then(function(w){if(w)return!0;
w=[B$j(),LIK()];_.RX("LOGGED_IN")||w.push(MvT());return Promise.all(w).then(function(u){return u.every(function(y){return y})})}):Promise.resolve(!1)},qEj=function(){_.ld("PromptCount").then(function(q){return _.hs("PromptCount",q+1)}).then(function(){return _.hs("PromptTime",Date.now())}).then(function(){var q=_.GQ("service_worker_push_force_notification_prompt_tag");
if(q)return _.ld("PromptTags").then(function(w){var u=[];if(w)try{u=JSON.parse(w)}catch(y){return!1}u||(u=[]);u.push(q);return _.hs("PromptTags",JSON.stringify(u))})})},uoV=function(){wTj||KIa()},y6V=function(q){q.style.zIndex=2147483648;
q.style.pointerEvents="auto";q.style.backgroundColor="rgba(0, 0, 0, 0.6)";q.style.width="100%";q.style.height="100vh";q.style.position="absolute";q.style.top="0";q.style.left="0";q.style.border="none"},eu6=function(){var q=_.wE(document,"yt-push-prompt-modal-bg");
wTj=_.T("service_worker_push_prompt_modal_ignore_click");q?y6V(q):(q=_.CO("div",{id:"yt-push-prompt-modal-bg"}),y6V(q),document.body.appendChild(q),_.YPf(document,"click",uoV))},kPc=function(){var q=arguments;
_.T("service_worker_push_prompt_modal_enable")&&eu6();return Notification.requestPermission().then(function(w){KIa();var u=document.getElementById("ticker");u&&(u.className=u.classList.remove("show"));if(w=="granted")return RWc().then(function(){EF4(!1);S86();return Promise.resolve(!0)});
w=="denied"&&S86();return Promise.resolve(!1)}).catch(function(){KIa();
return Promise.reject.apply(Promise,_.Cm(q))})},tWA=function(q){q=q===void 0?!1:q;
var w=_.QTl().client;if(w&&w.browserVersion){var u=w.browserVersion,y=w.browserName=="CHROME"&&_.NM(u,"50.0.0")<0;w=w.browserName=="OPERA"&&_.NM(u,"42.0.0")<0;if(y||w)return Promise.resolve()}return _.Ojx().then(function(e){if(!e)return Promise.resolve();e=RWc().then(function(){return cGB({type:"notifications_check_registration",data:_.Et("ID_TOKEN")})});
return Notification.permission!="default"?e.catch(function(){}):e.then(function(){return xu6(q)}).then(function(t){if(t)return qEj(),kPc().then(function(){})}).catch(function(){})})},PYq=function(q){return _.CZm(q)?tWA():Promise.resolve()},XT6=function(q){var w=q.installing||q.waiting;
return q.active||!w?Promise.resolve(q):new Promise(function(u){var y=function(e){e=e.target;if(e.state==="activated"||e.state==="redundant")w.removeEventListener("statechange",y),u(q)};
w.addEventListener("statechange",y)})},FrB=function(){var q=new _.f9z("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.Hr(q,{mainAppWeb:_.gC()});var w=_.uMk;_.T("service_worker_forward_exp_params")&&(w=vFB(w));try{var u=_.roj(w).catch(function(){_.Wr(q,"FAILURE");return new Promise(function(){})});
_.T("service_worker_push_enabled")&&u.then(function(y){_.Wr(q,"SUCCESS");return y}).then(XT6).then(PYq)}catch(y){if(_.Wr(q,"FAILURE"),y.name!=="SecurityError")throw y;
}},GPB=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&FrB()},nZm=function(q,w){var u={};
w&&(u.serializedYpcFamilyCreateLoggingParams=w);_.pn(q,u);_.$8()},HiA=function(q,w){var u={};
u.serializedYpcRefundFlowLoggingParams=w;q&&(u.eventType=q);_.pn("ypcRefundFlowEvent",u);_.$8()},Wrm=function(q){q&&_.Ttz("transactionFlowSucceeded",q)},szT=function(q){q&&_.AQ("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",q,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},Nrm=function(q){var w,u,y,e,t,X,G;
_.F(function(n){if(n.nextAddress==1)return _.H(n,_.ek7(),2);if(n.nextAddress!=3){if(!n.yieldResult)return n.return(!1);w=[];return _.H(n,_.tE.keys(),3)}u=n.yieldResult;y=_.P(u);for(e=y.next();!e.done;e=y.next())t=e.value,X=_.u9H(t),G=X.datasyncId,!G||q.includes(G)||w.push(_.tE.delete(t));return n.return(Promise.all(w).then(function(N){return N.some(function(Q){return Q})}))})},Qza=function(){var q,w,u,y,e,t,X;
return _.F(function(G){if(G.nextAddress==1)return _.H(G,_.ek7(),2);if(G.nextAddress!=3){if(!G.yieldResult)return G.return(!1);q=_.O8("cache contains other");return _.H(G,_.tE.keys(),3)}w=G.yieldResult;u=_.P(w);for(y=u.next();!y.done;y=u.next())if(e=y.value,t=_.u9H(e),(X=t.datasyncId)&&X!==q)return G.return(!0);return G.return(!1)})},ITh=function(){var q=_.tG().resolve(_.kF(_.gAT));
return q?q.getCurrentTime():0},iij=function(){var q,w,u,y,e,t,X,G,n,N,Q,I,U,d;
return _.F(function(V){switch(V.nextAddress){case 1:q={},w=_.j0c(),u=_.P(Object.entries(w)),y=u.next();case 4:if(y.done){V.jumpTo(3);break}e=y.value;t=_.P(e);X=t.next().value;G=t.next().value;n=X;N=G;if(!N){V.jumpTo(5);break}return _.H(V,N(),8);case 8:q[n]=V.yieldResult;case 5:y=u.next();V.jumpTo(4);break;case 2:Q=_.P(void 0),I=Q.next();case 9:if(I.done){V.jumpTo(3);break}U=I.value;d=w[U];if(!d){V.jumpTo(10);break}return _.H(V,d(),13);case 13:q[U]=V.yieldResult;case 10:I=Q.next();V.jumpTo(9);break;
case 3:return V.return(q)}})},r6A=function(){var q;
_.F(function(w){if(w.nextAddress==1)return _.H(w,iij(),2);q=w.yieldResult;return _.H(w,navigator.clipboard.writeText(JSON.stringify(q,null,2)),0)})},UQ6=function(q,w){return _.HQ(q.entities,"superThanksSelectedTierEntity",w)},TrA=function(q){var w;
return(w=q.sharedUi)==null?void 0:w.currentPageType},CYx=function(q,w){return{popup:{searchSuggestionReportDialog:{searchQuery:q,
title:_.ID("SBOX_INAPPROPRIATE_TITLE"),suggestions:w,categoryLabel:_.ID("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.ID("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.ID("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.ID("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.ID("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.ID("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.ID("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.ID("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.ID("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.ID("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},dQV=function(q){var w,u,y,e,t,X,G,n,N,Q,I,U,d,V,J,a,b,g,l;
return _.F(function(S){switch(S.nextAddress){case 1:return _.H(S,_.Nt(),2);case 2:return(w=S.yieldResult)?_.H(S,_.Dxu(w),3):S.return();case 3:u=S.yieldResult;if(!u)return S.return();e=((y=u.offlineVideos)==null?void 0:y.length)||0;X=((t=u.offlinePlaylists)==null?void 0:t.length)||0;if(e===0&&X===0)return S.return();G=0;if(u.offlineVideos)for(n=_.P(u.offlineVideos),N=n.next();!N.done;N=n.next())Q=N.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===Q.videoState&&(G+=1);q.offline_videos_count=e.toString();_.T("kevlar_log_offline_current_network_type_ks")||
(q.offline_current_network_type=(I=_.P9H())!=null?I:"CONN_INVALID");_.T("kevlar_log_updated_time_for_smart_downloads")&&(U=_.Mt().getState().entities,d=_.Jr(U),V=WIB(U),q.offline_smart_downloads_last_sync_time_ms=d.toString(),q.offline_smart_downloads_next_sync_time_ms=V.toString());q.offline_videos_playable=G.toString();q.offline_playlists_count=X.toString();if(!_.T("woffle_used_state_report")){S.jumpTo(4);break}u.offlineVideos&&(J=u.offlineVideos.reduce(function(eH,x){x.downloadedBytes&&(eH+=Number(x.downloadedBytes));
return eH},0).toString())&&(q.offline_used_disk_space_bytes=J);
if(!((a=navigator)==null?0:(b=a.storage)==null?0:b.estimate)){S.jumpTo(4);break}return _.H(S,navigator.storage.estimate(),6);case 6:g=S.yieldResult,q.offline_free_disk_space_bytes=(((l=g)==null?void 0:l.quota)||0).toString();case 4:q.offline_client_state=JSON.stringify(u),_.HI(S)}})},Oij=function(q){q=q.match(/(.*)::.*::.*/);
if(q!==null)return q[1]},oZm=function(q){if(_.pBc()){var w=Object.keys(window.sessionStorage);
w=_.P(w);for(var u=w.next();!u.done;u=w.next()){u=u.value;var y=Oij(u);y===void 0||q.includes(y)||self.sessionStorage.removeItem(u)}}},VWj=function(){if(!_.pBc())return!1;
var q=_.O8(),w=Object.keys(window.sessionStorage);w=_.P(w);for(var u=w.next();!u.done;u=w.next())if(u=Oij(u.value),u!==void 0&&u!==q)return!0;return!1},n_=function(q,w,u){(_.T("desktop_keyboard_shortcut_usage_log")||u&&_.T("web_shorts_keyboard_shortcut_usage_log"))&&(w?_.K2.get(q):_.Mh.get(q))&&(q=w?_.xi.get(q):_.Be.get(q))&&_.jB(_.pN(),q)},fTh=function(q){return q.visibility!=="hidden"&&q.display!=="none"},mQT=function(q){if(!q.matches("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])"))return-1;
q=q.getAttribute("tabindex")||"0";return Number(q)},A6H=function(q){return q.some(function(w){return mQT(w)>0})},J6c=function(q){if(q.textContent)return!0;
if(q instanceof HTMLInputElement){if(!q.labels)return!1;q=_.P(q.labels);for(var w=q.next();!w.done;w=q.next())if(w.value.textContent)return!0}return!1},zuj=function(q){return q.sort(function(w,u){return mQT(u)-mQT(w)})},aT6=function(q){q=Array.from(q.querySelectorAll("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])")).filter(function(w){return(fTh(w.style)?
fTh(window.getComputedStyle(w)):!1)&&J6c(w)});
return A6H(q)?zuj(q):q},DQB=function(q){q=aT6(q);
q.length>0&&q[0].focus()},Zij=function(q,w){w.stack&&(q.stack+="\n"+w.stack);
return q},vZB=function(q){var w=HP(q,"Content-Type");
if(!w)return null;w=w.toLowerCase();if(w.startsWith("application/json"))return w.startsWith("application/json+protobuf")?new pTm:new _.wo;if(w.startsWith("application/x-protobuf")){q=HP(q,"Content-Transfer-Encoding");if(!q)return new WP;if(q.toLowerCase()=="base64")return new $Qj}return null},jzV=function(q,w,u,y){var e=new biq(function(G,n){return YEH.has(n)?G.sentinel==="gal"&&G.event!==void 0:!1},function(G){G.event?(G=gZc(G.event),G=!G||EZH(y,G)?!0:_.QN(q.lastEvent,sH,2,Np)?!_.QN(G,Qn,1,Np)&&
!_.QN(G,sH,2,Np):!_.QN(G,Qn,1,Np)&&!_.QN(G,sH,3,Np)):G=!0;
return G});
u=_.wb(q.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",Ruh(u)]]));if(q.nestedOrigins!==void 0)for(var t=_.P(q.nestedOrigins),X=t.next();!X.done;X=t.next())u=_.wb(u,new Map([["origin",X.value]]));return c6V(e,u,w).then(function(G){G=SEA(G.event);if(_.QN(G,Qn,1,Np)){var n,N=(n=_.zs(G,Qn,1,Np))==null?void 0:_.mw(n,2);N&&y.JSC$16993_logErrorEvent(huA(N));n=_.zs(G,Qn,1,Np);_.mw(n,2)===4?(G=_.zs(G,Qn,1,Np),G={statusCode:11,statusMessage:_.fy(G,
3)}):(G=_.zs(G,Qn,1,Np),G={statusCode:12,statusMessage:_.fy(G,3)});return G}_.QN(G,sH,3,Np)?(G=_.zs(G,sH,3,Np),G={statusCode:1,consentLanguageKeys:_.fy(G,2)}):G={statusCode:1};return G}).catch(function(G){return G.errorCode!==void 0?{statusCode:G.errorCode,
statusMessage:G.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},Kr4=function(q){var w={};
if(q===void 0||q===null)return w;q.getToken()!==void 0&&lTH(q.getToken())&&lTH(q.getToken()).length>0&&(w.scopes=new Set(lTH(q.getToken())));q.getToken()!==void 0&&Lra(q.getToken())&&Lra(q.getToken()).length>0&&(w.capabilities=new Set(Lra(q.getToken())));_.fy(q,3)!==void 0&&(w.consistencyKey=_.fy(q,3));q.getName()!==void 0&&q.getName()!==""&&(w.linkName=q.getName());_.NG(q,MWA,4)&&(q=_.PT(q,MWA,4),q=Object.assign({},_.fy(q,1)&&{userId:_.fy(q,1)},_.fy(q,2)&&{displayName:_.fy(q,2)},_.fy(q,3)&&{email:_.fy(q,
3)},_.fy(q,5)&&{username:_.fy(q,5)},_.fy(q,4)&&{profilePicture:_.fy(q,4)}),w.profile=q);return w},Brm=function(q,w){var u=q.flowParams;
return{serviceId:u.serviceId,sessionId:u.sessionId,currentFlow:q.currentFlow,googleScopesString:w,linkingSessionSerialized:q.session.serialize(),consentLanguageKeys:u.consentLanguageKeys,callerState:q.callerState,dynamicUrlParameters:u.dynamicUrlParameters,partnerConfigMinReadTimestamp:u.partnerConfigMinReadTimestamp}},yqa=function(q){var w=q.googleScopes!==void 0?Array.from(q.googleScopes).join(","):"";
xQA(Brm(q,w));w=qkc(q);return w===null?Promise.resolve(wmc):w.start().then(function(u){var y,e=(y=u.link)==null?void 0:y.consistencyKey;return u.statusCode===1&&q.googleScopes!==void 0&&q.googleScopes.size>0&&e!==void 0?(y=q.flowParams,u$c(y.serviceId,y.sessionId,q.googleScopes,e,y.galService,q.config,u)):u})},eY6=function(q){var w=qkc(q);
return w===null?Promise.resolve(IW({statusCode:7,statusMessage:"Failed to create flow object"},q.callerState)):w.complete().then(function(u){var y,e=(y=u.link)==null?void 0:y.consistencyKey;return u.statusCode===1&&q.googleScopes!==void 0&&q.googleScopes.size>0&&e!==void 0?(y=q.flowParams,u$c(y.serviceId,y.sessionId,q.googleScopes,e,y.galService,q.config,u)):IW(u,q.callerState)},function(u){return IW({statusCode:12,
statusMessage:"Failed to complete the flow: "+u.message},q.callerState)})},u$c=function(q,w,u,y,e,t,X){return kCj(e,{serviceId:q,
sessionId:w,googleScopes:u,consistencyKey:y}).then(function(){return X},function(G){return e.deleteLink({serviceId:q,
sessionId:w,accountLinkingEntryPoint:t.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+G.message}},function(n){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+n.message}})})},qkc=function(q){switch(q.currentFlow){case 1:var w=q.flowParams;
q=_.PT(q.session,twB,1);return iT.createOAuthFlow(w,q);case 2:case 3:return w=q.flowParams,q=_.PT(q.session,PD6,6),rW.createStreamlinedFlow(w,q);default:return null}},Xmh=function(q,w){q===2&&(q=3);
var u=0;UH.indexOf(q)!==-1&&(u=UH.indexOf(q)+1);for(q=u;q<UH.length;q++)if(w.has(UH[q]))return UH[q]},n86=function(q){var w=q.serviceId;
var u=q.sessionId;var y=q.config;var e=q.galService;var t=q.capabilities;var X=q.scopes;var G=q.loginHint;var n=q.callerState;var N=q.consentLanguageKeys;var Q=q.linkName;var I=q.dynamicUrlParameters;var U=q.partnerConfigMinReadTimestamp;q=y.dataUsageNoticeConfig?y.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return e.startLinkingSession({serviceId:w,sessionId:u,capabilities:t,scopes:X,loginHint:G,callerState:n,supportedFlows:Fg4(y.supportedFlows),completionUrl:y.completionUrl,accountLinkingEntryPoint:y.accountLinkingEntryPoint,
consentLanguageKeys:N,dataUsageNoticeConfig:q,linkName:Q,dynamicUrlParameters:I,partnerConfigMinReadTimestamp:U}).then(function(d){return new GC6(w,u,y,e,d,void 0,n,N,I,U)})},QAq=function(q,w,u){a:{var y=new Hnc;
if(y.storage!==null)try{var e=y.storage.get("SAVED_SESSION");if(e===void 0){var t=null;break a}if(e.serviceId===q){t=e;break a}}catch(X){}t=null}if(t===null)return Promise.resolve({statusCode:2});Wg6(q);y=sAa(t.linkingSessionSerialized);return Ns4(new GC6(q,t.sessionId,w,u,y,t.googleScopesString!==""&&t.googleScopesString!==void 0?new Set(t.googleScopesString.split(",")):void 0,t.callerState,t.consentLanguageKeys,t.dynamicUrlParameters,t.partnerConfigMinReadTimestamp),t.currentFlow,t.consentLanguageKeys)},
xQA=function(q){var w=new Hnc;
w.storage!==null&&w.storage.set("SAVED_SESSION",q)},Wg6=function(q){var w=new Hnc;
if(w.storage!==null){var u=w.storage.get("SAVED_SESSION");u!==void 0&&u.serviceId===q&&w.storage.remove("SAVED_SESSION")}},Fg4=function(q){var w=new Set;
q=_.P(q);for(var u=q.next();!u.done;u=q.next())u=u.value,u!==1&&InK.has(u)&&w.add(InK.get(u));return w},IW=function(q,w){w!==void 0&&(q.callerState=w);
return q},inA=function(q){switch(q){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},Tsh=function(){var q={timeout:5E3};
q=q===void 0?{}:q;return rqV!=null?rqV:rqV=U5V(q)},CDc=function(){return new Promise(function(q,w){window.gapi.load("client",{callback:q,
onerror:w})})},U5V=function(q){q=q===void 0?{}:q;
var w;return _.F(function(u){if(u.nextAddress==1){if((w=window.gapi)&&w.client&&w.client.load)u=u.return(w);else{var y=_.FE("https://apis.google.com/js/api.js");u=_.H(u,_.Vr(y,q),2)}return u}if(u.nextAddress!=3){w=window.gapi;if(!w)throw Error("Yj");return w.client&&w.client.load?u.jumpTo(3):_.H(u,CDc(),3)}return u.return(w)})},Onh=function(q,w){w=w===void 0?0:w;
var u=q.auth2.getAuthInstance().currentUser.get(),y=u.getAuthResponse(!0);if(y&&y.expires_at-Date.now()<w){if(d5A.has(q))return d5A.get(q);w=Promise.resolve(u.reloadAuthResponse()).finally(function(){d5A.delete(q)});
d5A.set(q,w);return w}return Promise.resolve()},o8j=function(q,w){var u;
return q.client.init({apiKey:w.apiKey,clientId:w.clientId,scope:w.scope,discoveryDocs:w.discoveryDocs,hostedDomain:w.hostedDomain,fetchBasicProfile:(u=w.fetchBasicProfile)!=null?u:!0})},VwB=function(q){if(q.queryParams!=null){var w={},u;
for(u in q.queryParams)q.queryParams[u]!==void 0&&(w[u]=q.queryParams[u]);q.queryParams=w}},Aqa=function(q){return new fnH(q,new m5H(q))},an6=function(q,w){w=w===void 0?!1:w;
var u=document.createElement("div");q&&(u.style.transform="scaleX(-1)");u.style.backgroundColor=w?"rgba(138,180,248,.24)":"#e8f0fe";u.style.height="4px";u.style.overflow="hidden";u.style.position="absolute";u.style.top="0";u.style.width="100%";u.style.zIndex="1500";u.setAttribute("aria-label","Loading");u.setAttribute("aria-live","polite");q=document.createElement("style");q.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  }";
u.appendChild(q);q=JqV();q.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";q.style.left="-145.166611%";var y=zYx(w);y.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";q.appendChild(y);u.appendChild(q);q=JqV();q.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";q.style.left="-54.888891%";w=zYx(w);w.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
q.appendChild(w);u.appendChild(q);return u},JqV=function(){var q=document.createElement("div");
q.style.height="100%";q.style.position="absolute";q.style.transformOrigin="top left";q.style.width="100%";return q},zYx=function(q){var w=document.createElement("span");
w.style.borderTop=q?"4px solid #669df6":"4px solid #4285f4";w.style.display="inline-block";w.style.position="absolute";w.style.width="100%";return w},D5q=function(q){return q==null?void 0:_.cck(q).valueOf()},v8V=function(q){var w=document.body,u=!1,y=function(){u||(u=!0,Zn6(e,t),setTimeout(function(){w.removeChild(t);
w.removeChild(e)},150))},e=pmm(q,getComputedStyle(w).direction==="rtl",y),t=$5c(y);
Zn6(e,t);w.appendChild(t);w.appendChild(e);window.requestAnimationFrame(function(){t.style.opacity="1";e.style.opacity="1";e.style.transform="translate(-50%, -50%) scale(1)";e.children[0].focus()})},pmm=function(q,w,u){var y=document.createElement("div");
y.style.position="fixed";y.style.alignItems="center";y.style.backgroundColor=q?"rgb(32, 33, 36)":"white";y.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";y.style.display="flex";y.style.flexDirection="column";y.style.justifyContent="center";y.style.left="50%";y.style.top="50%";y.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";y.style.zIndex="2002";document.body.clientWidth>=660?(y.style.borderRadius="8px",y.style.minHeight="220px",
y.style.maxHeight="90%",y.style.maxWidth="90%",y.style.minWidth="540px"):(y.style.height="100%",y.style.width="100%");y.setAttribute("aria-label","Error");y.setAttribute("aria-modal","true");y.setAttribute("role","alertdialog");y.addEventListener("keydown",function(t){t.key==="Escape"&&u()});
w=bn6(q,w,u);y.appendChild(YkT(w));y.appendChild(w);var e=document.createElement("img");e.src=q?"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";e.style.height="72px";e.style.width="72px";e.style.color="#9aa0a6";e.setAttribute("alt","");y.appendChild(e);e=document.createElement("h1");e.textContent="Something went wrong.  Try again.";
e.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";e.style.lineHeight="24px";e.style.fontSize="16px";e.style.textAlign="center";e.style.letterSpacing="0.1px";e.style.color=q?"rgb(232,234,237)":"#3c4043";y.appendChild(e);y.appendChild(YkT(w));return y},bn6=function(q,w,u){var y=document.createElement("button");
y.style.backgroundColor="transparent";y.style.border="none";y.style.borderRadius="50%";y.style.cursor="pointer";y.style.outline="none";y.style.padding="12px";y.setAttribute("aria-label","Close dialog");y.style.position="absolute";y.style.top="0";w?y.style.right="0":y.style.left="0";y.addEventListener("focus",function(){y.style.backgroundColor=q?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
y.addEventListener("blur",function(){y.style.backgroundColor="transparent"});
y.addEventListener("mouseenter",function(){y.style.backgroundColor=q?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
y.addEventListener("mouseleave",function(){y.style.backgroundColor="transparent"});
y.addEventListener("click",u);y.addEventListener("keydown",function(e){e.key!=="Enter"&&e.key!=="Space"||u()});
w=document.createElement("img");w.src=q?"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";w.style.display="block";w.style.height="24px";w.style.width="24px";w.setAttribute("alt","");y.appendChild(w);return y},YkT=function(q){var w=document.createElement("div");
w.setAttribute("tabindex","0");w.setAttribute("aria-hidden","true");w.addEventListener("focus",function(){return void q.focus()});
return w},$5c=function(q){var w=document.createElement("div");
w.style.backgroundColor="rgba(32,33,36,0.6)";w.style.bottom="0";w.style.left="0";w.style.position="fixed";w.style.right="0";w.style.top="0";w.style.transition=" opacity 150 ms linear";w.style.zIndex="2001";w.addEventListener("click",q);return w},Zn6=function(q,w){w.style.opacity="0";
q.style.opacity="0";q.style.transform="translate(-50%, -50%) scale(0.8)"},g8q=function(q,w){q.sandbox&&q.sandbox.add&&(q.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),q.sandbox.add("allow-downloads"));
q.src=w},Te=function(q){E84.call(this,q)},C_=function(q,w){w=w===void 0?!1:w;
this.parsedImageUrl_=null;q instanceof RYA||(cqj==void 0&&(cqj=new Skh),q=cqj.parse(q.toString(),w));q=this.parsedImageUrl_=q;q.JSC$17224_parsedOptions_==void 0&&((w=q.getOptions())||(w=""),q.JSC$17224_parsedOptions_=(new hYV).parse(w));E84.call(this,q.JSC$17224_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;q=this.parsedImageUrl_;w=q.uri_.JSC$7931_port_;this.JSC$17226_domain_=q.uri_.JSC$7931_domain_+(w?":"+w:"");this.JSC$17226_query_=this.parsedImageUrl_.uri_.JSC$7931_queryData_.toString()},
jAT=function(q){this.mode=4;
this.data=q;this.parsedData=[];q=0;for(var w=this.data.length;q<w;q++){var u=[],y=this.data.charCodeAt(q);y>65536?(u[0]=240|(y&1835008)>>>18,u[1]=128|(y&258048)>>>12,u[2]=128|(y&4032)>>>6,u[3]=128|y&63):y>2048?(u[0]=224|(y&61440)>>>12,u[1]=128|(y&4032)>>>6,u[2]=128|y&63):y>128?(u[0]=192|(y&1984)>>>6,u[1]=128|y&63):u[0]=y;this.parsedData.push(u)}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))},lnh=function(q){this.typeNumber=0;
this.errorCorrectLevel=q===void 0?2:q;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},dW=function(q,w){if(q.length==void 0)throw Error("sk`"+q.length+"`"+w);
for(var u=0;u<q.length&&q[u]==0;)u++;this.num=Array(q.length-u+w);for(w=0;w<q.length-u;w++)this.num[w]=q[w+u]},LgA=function(q,w){this.totalCount=q;
this.dataCount=w},Mwm=function(){this.buffer=[];
this.length=0},Kgj=function(){var q=!1;
if(_.H7M()){q=_.QM();var w="";_.Nj7()?(w=/Windows (?:NT|Phone) ([0-9.]+)/,w=(q=w.exec(q))?q[1]:"0.0"):_.Z6()?(w=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,w=(q=w.exec(q))&&q[1].replace(/_/g,".")):_.soy()?(w=/Mac OS X ([0-9_.]+)/,w=(q=w.exec(q))?q[1].replace(/_/g,"."):"10"):_.W4(_.QM(),"KaiOS")?(w=/(?:KaiOS)\/(\S+)/i,w=(q=w.exec(q))&&q[1]):_.H7M()?(w=/Android\s+([^\);]+)(\)|;)/,w=(q=w.exec(q))&&q[1]):_.Qof()&&(w=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,w=(q=w.exec(q))&&q[1]);q=w||""}return q},y24=function(q,
w){this.JSC$17249__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(w)for(var u in w)this.JSC$17249__htOption[u]=w[u];this.JSC$17249__htOption.useSVG&&(Bsh=x5c);this.JSC$17249__android=Kgj();this.JSC$17249__el=q;this._oQRCode=null;this._oDrawing=new Bsh(this.JSC$17249__el,this.JSC$17249__htOption);this.JSC$17249__htOption.text&&(q=this.JSC$17249__htOption.text,this._oQRCode=new lnh(this.JSC$17249__htOption.correctLevel),q4c(this._oQRCode,q),w=this._oQRCode,w04(w,!1,uQm(w)),this.JSC$17249__el.title=
q,this._oDrawing.draw(this._oQRCode),this.makeImage())},e$j=function(q,w,u,y,e){q.save();
var t=new Path2D;t.roundRect(w,u,y*7,y*7,y*2);t.roundRect(w+y,u+y,y*5,y*5,y*1.3);t.roundRect(w+2*y,u+2*y,y*3,y*3,y);q.clip(t,"evenodd");q.fillStyle=e;q.fillRect(0,0,q.canvas.width,q.canvas.height);q.restore()},OH=function(q,w){if(typeof q!=="function")throw Error("vk");
return _.uc.setTimeout(function(){q()},w)},oW=function(){},tla=function(q,w,u,y,e){(new oW).debug("TestLoadImageWithRetries: "+e);
if(y==0)u(!1);else{var t=e||0;y--;kdq(q,w,function(X){X?u(!0):_.uc.setTimeout(function(){tla(q,w,u,y,t)},t)})}},kdq=function(q,w,u){var y=new oW;
y.debug("TestLoadImage: loading "+q);var e=new Image;e.onload=function(){try{y.debug("TestLoadImage: loaded"),PVA(e),u(!0)}catch(t){}};
e.onerror=function(){try{y.debug("TestLoadImage: error"),PVA(e),u(!1)}catch(t){}};
e.onabort=function(){try{y.debug("TestLoadImage: abort"),PVA(e),u(!1)}catch(t){}};
e.ontimeout=function(){try{y.debug("TestLoadImage: timeout"),PVA(e),u(!1)}catch(t){}};
_.uc.setTimeout(function(){if(e.ontimeout)e.ontimeout()},w);
e.src=q},PVA=function(q){q.onload=null;
q.onerror=null;q.onabort=null;q.ontimeout=null},X0h=function(){this.front_=[];
this.back_=[]},FMA=function(q,w){_.VG.call(this);
this.delay_=new _.m2(this.JSC$17375_onTick_,0,this);_.sN(this,this.delay_);this.JSC$17373_interval_=5E3;this.nextTickTime_=0;if(typeof q==="function")w&&(q=(0,_.fY)(q,w));else if(q&&typeof q.handleEvent==="function")q=(0,_.fY)(q.handleEvent,q);else throw Error("Ca");this.JSC$17375_listener_=q},Vn=function(q,w,u,y,e,t,X,G,n,N,Q,I,U,d){u=u===void 0?!1:u;
y=y===void 0?function(){return""}:y;
e=e===void 0?!1:e;t=t===void 0?!1:t;X=X===void 0?!1:X;G=G===void 0?function(){return _.Hw({})}:G;
n=n===void 0?!1:n;Q=Q===void 0?!1:Q;I=I===void 0?!1:I;U=U===void 0?!1:U;d=d===void 0?!1:d;this.JSC$17376_pathPrefix_=q;this.defaultQueryParams_=w;this.pubsub_=new _.r$;this.reconnectTimer_=new FMA(this.safeReconnect_,this);this.JSC$17376_channel_=null;this.JSC$17376_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17376_pendingMessages_=[];this.enableAsyncTest_=u;this.JSC$17376_getXsrfToken_=y;this.useAsyncBrowserChannelHandler_=t;this.getAuthorizationHeader_=
G;this.getAuthorizationHeaderSync_=N;this.enableCachedUpdateAuthorizationHeader_=X;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.Hw();this.enableLoungeTokenRefresh_=e;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=n;this.disableMdxAuthForNonPlaybackMessages_=Q;this.disableMdxAuthForAdMessages_=I;this.enableMdxAuthForConnectionOnly_=U;this.disableMdxAuthForShortsMessages_=d;this.JSC$17376_channelOpenedCounter=new GdV;this.JSC$17376_channelClosedCounter=new n$B;this.channelMessageSentCounter=
new HJV;this.JSC$17376_channelMessageReceivedCounter=new WMV;this.JSC$17376_channelErrorCounter=new sv6;this.pendingMapsOnClosedCounter=new NA6;this.undeliveredMapsOnClosedCounter=new Qvx},f_=function(q){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;q=q||document.location.href;var w=Number(_.qu(q)[4]||null)||"";w&&(this.port=":"+w);this.domain=_.w$(q)||"";q=_.QM();q.search("MSIE")>=0&&_.NM(q.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},mQ=function(q){q=q||{};
this.name=q.name||"";this.id=q.id||q.screenId||"";this.token=q.token||q.loungeToken||"";this.uuid=q.uuid||q.dialId||"";this.idType=q.screenIdType||"normal"},IOA=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(q){var w=Math.random()*16|0;
return(q=="x"?w:w&3|8).toString(16)})},iJK=function(q){return _.or(q,function(w){return{key:w.id,
name:w.name}})},r2j=function(q,w){return _.v4(q,function(u){return u||w?!u!=!w?!1:u.id==w.id:!0})},Ju=function(q,w){return _.v4(q,function(u){return Au(u,w)})},OJ6=function(){var q=UbT(),w=TAa();
if(CVV()){var u=q,y=_.Tjo(u,w);y<0&&_.UMs(u,-(y+1),0,w)}q=dbT(q);if(q.length==0)try{_.ypy("remote_sid")}catch(e){}else try{_.Cv("remote_sid",q.join(","),-1)}catch(e){}},UbT=function(){var q=_.Pd("yt-remote-connected-devices")||[];
q.sort(_.GG);return q},dbT=function(q){if(q.length==0)return[];
var w=q[0].indexOf("#"),u=w==-1?q[0]:q[0].substring(0,w);return _.or(q,function(y,e){return e==0?y:y.substring(u.length)})},o$q=function(q){_.tm("yt-remote-connected-devices",q,86400)},TAa=function(){if(Vlq)return Vlq;
var q=_.Pd("yt-remote-device-id");q||(q=IOA(),_.tm("yt-remote-device-id",q,31536E3));for(var w=UbT(),u=1,y=q;_.SH(w,y);)u++,y=q+"#"+u;return Vlq=y},fO6=function(){return _.Pd("yt-remote-session-browser-channel")},CVV=function(){return _.Pd("yt-remote-session-screen-id")},J2A=function(q){q.length>5&&(q=q.slice(q.length-5));
var w=_.or(mbB(),function(y){return y.loungeToken}),u=_.or(q,function(y){return y.loungeToken});
_.cVj(u,function(y){return!_.SH(w,y)})&&A2c();
_.tm("yt-remote-local-screens",q,31536E3)},mbB=function(){return _.Pd("yt-remote-local-screens")||[]},A2c=function(){_.tm("yt-remote-lounge-token-expiration",!0,86400)},ze=function(q){q||(_.XS("yt-remote-session-screen-id"),_.XS("yt-remote-session-video-id"));
OJ6();q=UbT();_.MM(q,TAa());o$q(q)},aOa=function(){z$T();
return aW?!!aW.get("yt-remote-use-staging-server"):!1},z$T=function(){if(!aW){var q=_.HN4();
q&&(aW=new _.mI(q))}},$bV=function(q,w,u,y,e){u=u===void 0?function(){return""}:u;
var t=function(){return new Vn(Dq(q,"/bc"),w,!1,u,y)};
return _.T("enable_mdx_web_channel_desktop")?new DbH(function(){return new ZJ6(Dq(q,"/wc"),w,u)}):new p04(t,e)},g$T=function(){var q=v$m;
bJH();Zq.push(q);Y4K()},p_=function(q,w){bJH();
var u=E$B(q,String(w));Zq.length==0?R$K(u):(Y4K(),_.L4(Zq,function(y){y(u)}))},$b=function(q){p_("CP",q)},bJH=function(){Zq||(Zq=_.hP("yt.mdx.remote.debug.handlers_")||[],_.wr("yt.mdx.remote.debug.handlers_",Zq))},R$K=function(q){var w=(vP+1)%50;
vP=w;c2q[w]=q;S4K||(S4K=w==49)},Y4K=function(){var q=Zq;
if(c2q[0]){var w=S4K?vP:-1,u={};do u={record$jscomp$13:void 0},w=(w+1)%50,u.record$jscomp$13=c2q[w],_.L4(q,function(y){return function(e){e(y.record$jscomp$13)}}(u));
while(w!=vP);c2q=Array(50);vP=-1;S4K=!1}},E$B=function(q,w){var u=(Date.now()-h$T)/1E3;
u.toFixed&&(u=u.toFixed(3));var y=[];y.push("[",u+"s","] ");y.push("[","yt.mdx.remote","] ");y.push(q+": "+w,"\n");return y.join("")},bT=function(q){_.L2.call(this);
this.JSC$17400_logName_=q;this.screens=[]},gW=function(q){bT.call(this,"LocalScreenService");
this.JSC$17407_http_=q;this.loungeTokenRefreshTimer_=NaN;Yb(this);this.info("Initializing with "+jvB(this.screens))},EH=function(q,w){w=w===void 0?!1:w;
bT.call(this,"ScreenService");this.JSC$17413_http_=q;this.disableAutomaticScreenCache_=w;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};lOB(this)},RW=function(q,w,u){_.L2.call(this);
this.JSC$17417_logName_=u;this.JSC$17417_screenService_=q;this.receiver_=w;this.screen_=null},FHA=function(q,w,u){u.disableCastApi?cP("Cannot initialize because disabled by Mdx config."):LMA()?Mlm(q,u)&&(KMA(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?BAq(w):(window.__onGCastApiAvailable=function(y,e){y?BAq(w):(SI("Failed to load cast API: "+e),xbH(!1),KMA(!1),_.XS("yt-remote-cast-available"),_.XS("yt-remote-cast-receiver"),qMB(),w(!1))},u.loadCastApiSetupScript?_.EM("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?wf6()>=60&&ubx():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?yp4():wf6()>=89?eUq():(k6A(),tp4(P9q.map(XfT))))):cP("Cannot initialize because not running Chrome")},qMB=function(){cP("dispose");
var q=hu();q&&q.dispose();_.wr("yt.mdx.remote.cloudview.instance_",null);G66(!1);_.SPf(nGT);nGT.length=0},HNV=function(){return!!_.Pd("yt-remote-cast-installed")},WHT=function(){var q=_.Pd("yt-remote-cast-receiver");
return q?q.friendlyName:null},sxc=function(){cP("clearCurrentReceiver");
_.XS("yt-remote-cast-receiver")},N14=function(){return HNV()?hu()?hu().getCastSession():(SI("getCastSelector: Cast is not initialized."),null):(SI("getCastSelector: Cast API is not installed!"),null)},IB6=function(q,w){QxB()?hu().setConnectedScreenStatus(q,w):SI("setConnectedScreenStatus called before ready.")},LMA=function(){var q=_.QM().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.Gs||q},Mlm=function(q,w){var u=!1;
hu()||(q=new jI(q,w),q.subscribe("yt-remote-cast2-availability-change",function(y){_.tm("yt-remote-cast-available",y);wW("yt-remote-cast2-availability-change",y)}),q.subscribe("yt-remote-cast2-receiver-selected",function(y){cP("onReceiverSelected: "+y.friendlyName);
_.tm("yt-remote-cast-receiver",y);wW("yt-remote-cast2-receiver-selected",y)}),q.subscribe("yt-remote-cast2-receiver-resumed",function(y){cP("onReceiverResumed: "+y.friendlyName);
_.tm("yt-remote-cast-receiver",y);wW("yt-remote-cast2-receiver-resumed",y)}),q.subscribe("yt-remote-cast2-session-change",function(y){cP("onSessionChange: "+iNj(y));
y||_.XS("yt-remote-cast-receiver");wW("yt-remote-cast2-session-change",y)}),_.wr("yt.mdx.remote.cloudview.instance_",q),u=!0);
cP("cloudview.createSingleton_: "+u);return u},hu=function(){return _.hP("yt.mdx.remote.cloudview.instance_")},BAq=function(q){xbH(!0);
KMA(!1);hu().init(!1,function(w){w?(G66(!0),_.hMM("yt-remote-cast2-api-ready")):(SI("Failed to initialize cast API."),xbH(!1),_.XS("yt-remote-cast-available"),_.XS("yt-remote-cast-receiver"),qMB());q(w)})},cP=function(q){p_("cloudview",q)},SI=function(q){p_("cloudview",q)},xbH=function(q){cP("setCastInstalled_ "+q);
_.tm("yt-remote-cast-installed",q)},QxB=function(){return!!_.hP("yt.mdx.remote.cloudview.apiReady_")},G66=function(q){cP("setApiReady_ "+q);
_.wr("yt.mdx.remote.cloudview.apiReady_",q)},KMA=function(q){_.wr("yt.mdx.remote.cloudview.initializing_",q)},lT=function(q){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(q)},rph=function(){var q,w;
return _.F(function(u){if(u.nextAddress==1)return(_.m_z()||_.T("use_new_nwl"))&&_.OpM().isNetworkAvailable()?_.H(u,_.uY(),2):u.return();if(u.nextAddress!=3)return(q=u.yieldResult)?_.H(u,B_K(q),3):u.return();w=u.yieldResult;if(!w.length)return u.return();w.forEach(function(y){var e={timestamp:y.timestamp};y=y.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:y.appShellAssetLoadReport,options:e}:y.clientError?{payloadName:"clientError",payload:y.clientError,options:e}:void 0;y&&
_.pn(y.payloadName,y.payload,y.options)});
w.length===100&&_.pi.addLowPriorityJob(rph);_.HI(u)})},U4j=function(q){if(q.playerResponse){if(q=q.playerResponse,q.messages&&q.messages.length>0&&(q=q.messages.find(function(w){return!(!w||!w.mealbarPromoRenderer)}))&&q.mealbarPromoRenderer)return q.mealbarPromoRenderer}else if(q.response&&(q=q.response)&&q.overlay&&q.overlay.mealbarPromoRenderer)return q.overlay.mealbarPromoRenderer},T1V=function(q){if(q.response){var w=q.response;
if(w&&w.overlay&&w.overlay.tooltipRenderer)return w.overlay.tooltipRenderer}if(q.playerResponse&&(q=q.playerResponse,q.messages&&q.messages.length>0&&(q=q.messages.find(function(u){return!(!u||!u.tooltipRenderer)}))&&q.tooltipRenderer))return q.tooltipRenderer},d4m=function(q){if(!C9j&&(q=q||_.Et("ZWIEBACK_PING_URLS"))&&q.length){C9j=!0;
for(var w=0;w<q.length;w++)_.h6(q[w])}},oGA=function(q){if(_.db.get(_.Et("PLAYER_VARS",{}),"privembed",!1)!="1"){q&&RCq();
try{ONq().then(function(){},function(){}),_.WG(oGA,18E5)}catch(w){_.cl(w)}}},VpK=function(){var q=_.UC(),w=q.getFlag(119),u=window.devicePixelRatio>1;
document.body&&_.$r(document.body,"exp-invert-logo")&&(u&&!_.$r(document.body,"inverted-hdpi")?_.Lx(document.body,"inverted-hdpi"):!u&&_.$r(document.body,"inverted-hdpi")&&_.jD(document.body,"inverted-hdpi"));w!=u&&(_.TM(0,119,u),q.save())},fBq=function(q){return q.filter(function(w){return"ypcGetCartEndpoint"in w||"ypcFixInstrumentEndpoint"in w})},m4V=function(q){return q.filter(function(w){return!_.C(w,_.BfT)})},Jpq=function(q){q=_.P(q);
for(var w=q.next(),u={};!w.done;u={setter$jscomp$6:void 0},w=q.next()){var y=w.value;w=y.params;y=y.service;w&&y&&(u.setter$jscomp$6=ApH[y],u.setter$jscomp$6&&w.forEach(function(e){return function(t){var X=t.key;t=t.value;X&&t&&(0,e.setter$jscomp$6)(X,t)}}(u)))}},aBT=function(q,w){var u,y,e,t,X,G,n;
_.F(function(N){switch(N.nextAddress){case 1:u=_.YM.getInstance();y=_.nx.instance;e=_.E3.instance;if(!e)return zUm(q,y,w),N.return();_.tD(N,2);q.onLoadingCommand&&y.resolveCommand(q.onLoadingCommand);return _.H(N,u.getCurrentPositionFromGeolocation(),4);case 4:t=N.yieldResult;if(!q.resolveLocationCommand){N.jumpTo(5);break}X=u.createLocationInfo(t);return _.H(N,_.cR(e,q.resolveLocationCommand,{locationInfo:X}),6);case 6:G=N.yieldResult;if(!G||"error"in G&&G.error||G.errorMetadata)return zUm(q,y,w),
N.return();var Q;if(G==null?0:(Q=G.onResponseReceivedActions)==null?0:Q.length){Q=_.P(G.onResponseReceivedActions);for(var I=Q.next();!I.done;I=Q.next())y.resolveCommand(I.value)}(_.C(q.onSuccessCommand,_.LN)||_.C(q.onSuccessCommand,_.Ii))&&_.t7(w.hostElement,"yt-navigate",{endpoint:q.onSuccessCommand,reload:!0});case 5:_.jv(N,0);break;case 2:n=_.nm(N);if(n instanceof GeolocationPositionError&&n.code===GeolocationPositionError.PERMISSION_DENIED)return q.onDeniedCommand&&y.resolveCommand(q.onDeniedCommand),
N.return();zUm(q,y,w);_.HI(N)}})},zUm=function(q,w,u){q.onFailureCommand&&(w.resolveCommand(q.onFailureCommand),_.Pw(u.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},ZNq=function(q,w){var u=_.C(q,_.WwZ);
if(u&&w){q=u.videoIds||[u.videoId];var y;w=(y=_.t7(w,"yt-lockup-requested",{videoIds:q}).detail)==null?void 0:y.returnValue;var e;u.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?e=w?w:q.map(function(t){return{videoId:t,navigationEndpoint:u.videoCommand}}):w&&(e=w);
e&&(y=e.map(function(t){var X=Object,G=X.assign;var n=t.navigationEndpoint;if(!_.C(n,_.Tt)){var N=_.C(n,_.LN);if(N){if(delete N.index,delete N.playlistId,N=_.C(n==null?void 0:n.commandMetadata,_.wk),N==null?0:N.url){var Q=N.url;Q=_.qU(Q,"list");Q=_.qU(Q,"index");N.url=Q}}else n=void 0}return G.call(X,{},t,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:n})}),D4x(y,u))}},pfK=function(q){var w=_.$u();
if(q=_.C(q,_.sGc))q.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&w.clearQueue(),q.closeMiniplayer&&_.tG().resolve(_.$X).close(!0)},vGq=function(q){$46(_.$u(),q)},bNq=function(q){var w;
(q=(w=_.C(q,_.nfP))==null?void 0:w.setVideoIds)&&q.forEach(function(u){_.GK$(_.$u(),u)})},gGc=function(q){YMj(_.$u(),q)},EGK=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(q){return!1}},RUx=function(q){var w=_.tG().resolve(_.kF(_.Q8));
if(w){var u={beforeTransition:function(){q.style.viewTransitionName="miniplayer-page-transition"},
afterTransition:function(){q.style.viewTransitionName=""}};
L_(w,"slide",u);L_(w,"zoom",u)}},cph=function(q,w,u){return{horizontalAlignment:q.x+u.width/2<w.width/2?"west":"east",
verticalAlignment:q.y+u.height/2<w.height/2?"north":"south"}},jxT=function(q,w,u,y,e){e=e===void 0?new _.Vx(0,0):e;
return SMT(hU6(q,w,u,y),e)},hU6=function(q,w,u,y){return new _.Vx(q==="west"?16:u.width-y.width-16,w==="north"?16:u.height-y.height-16)},lBc=function(q,w){var u=0;
q&&(u+=76);w&&(u+=285);return u},LHc=function(q){var w=["h",
"m","s"],u=_.qT(w);u.reverse();var y={};q=(q.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(X){var G=(X.match(/[hms]/)||[""])[0];return G?(y[G]=parseInt(X.match(/\d+/)[0],10),!1):!0});
for(q.reverse();q.length&&u.length;){var e=u.shift();e in y||(y[e]=parseInt(q.shift(),10))}if(q.length||y.s>59||y.m>59||y.h>9)return null;var t="";w.forEach(function(X){y[X]&&(t+=""+y[X]+X)});
return t||null},MpK=function(q){q=q.data;
return _.W("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.W("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.W(_.ln,{data:{thumbnails:[{url:q.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.W("div",{class:"profile-badge-view-model-wiz__content"},_.W("div",{class:"profile-badge-view-model-wiz__badge-description"},q.badgeDesc),q.badgeSubtitle?_.W("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},q.badgeSubtitle):null))},KHT=function(q){q=
q.data;
var w=_.Bm();_.ueo(w,q.rendererContext);return _.W("yt-comment-interaction-view-model",{el:w,class:"yt-comment-interaction-view-model-wiz"},_.W("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":q.onTapA11yLabel,"on:keydown":_.LVl(),tabindex:0},_.W("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.W("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},q.headerPrefix,' "',q.videoTitle),_.W("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.W("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.W("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},q.commentContent),_.W("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.W(_.ln,{data:{thumbnails:[{url:q.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},x4H=function(q){q=q.data;
return _.W("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},B16(q.avatar),_.W("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},q.channelName))},wwT=function(q){q=q.data;
var w;return _.W("div",{class:"yt-profile-info-view-model-wiz__activity"},_.W("div",{class:"yt-profile-info-view-model-wiz__header"},_.W("div",{class:"yt-profile-info-view-model-wiz__section-title"},q.commentsInteractionTitle)),(w=q.comments)==null?void 0:w.map(function(u){return _.W("div",{class:"yt-profile-info-view-model-wiz__activity"},qCc(u))}))},u44=function(q){q=q.data;
var w=_.$B({elementsCommand:q.subscriptionsAccessButtonCommand}),u=_.Bm();_.aYc(u,_.Zh(q.subscriptionsAccessButtonCommand));var y=_.QS(function(t){if(w==null?0:w.onclick)w.onclick(t);return!1}),e;
return _.W("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.W("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.W("a",{el:u,"on:click":y,class:"yt-profile-info-view-model-wiz__another-header"},_.W("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},q.sharedSubscriptionsTitle),_.W("div",null,qCc(q.subscriptionsAccessButton)))),_.W("div",{class:"yt-profile-info-view-model-wiz__subs"},(e=q.sharedSubscriptions)==null?void 0:e.slice(0,5).map(function(t){return _.W("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",qCc(t))})))},y7x=function(q){q=q.data;
var w;return _.W("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.W("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.W("h2",{class:"yt-profile-info-view-model-wiz__section-title"},q.sharedSubscriptionsTitle)),_.W("div",{class:"yt-profile-info-view-model-wiz__subs"},(w=q.sharedSubscriptions)==null?void 0:w.slice(0,5).map(function(u){return _.W("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",qCc(u))})))},eKB=function(q){q=q.data;
return _.W("div",{class:"yt-profile-info-view-model-wiz__activity"},[q.profileBadgeInfoYtWide,q.profileBadgeInfoChannelWide].map(function(w){var u,y,e,t,X;return w?_.W(_.GS,null,_.W("div",{class:"yt-profile-info-view-model-wiz__header"},_.W("div",{class:"yt-profile-info-view-model-wiz__section-title"},w==null?void 0:w.profileSectionTitle),_.W("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.W("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},w==null?void 0:(u=w.commentBadge)==
null?void 0:u.commentDesc),(w==null?0:(y=w.commentBadge)==null?0:y.blackHeartDesc)?_.W("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.W("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.W(_.ln,{data:{thumbnails:[{url:w==null?void 0:(e=w.commentBadge)==null?void 0:e.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.W("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},w==null?void 0:(t=
w.commentBadge)==null?void 0:t.blackHeartDesc))),_.W("div",{class:"yt-profile-info-view-model-wiz__badge"},w==null?void 0:(X=w.badges)==null?void 0:X.map(function(G){return _.W(MpK,{data:G})}))):null}))},kMB=function(q){q=q.data;
return _.W("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.W(eKB,{data:q}),q.comments?_.W(wwT,{data:q}):null,q.sharedSubscriptionsTitle?q.subscriptionsAccessButtonCommand?_.W(u44,{data:q}):_.W(y7x,{data:q}):null)},PyK=function(q){var w=q.data;
q=w?tBc(w.profileIdentityInfo):void 0;w=w?tBc(w.profileInfo):void 0;return _.W("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},q,w)},Xwq=function(q,w){var u=_.jSk(w,{},q,!0);
return new Promise(function(y,e){u.listenOnce("n",function(){e(Error("fl`"+u.JSC$25690_getErrorDescription()))});
u.listenOnce("l",function(){var t=u.getResponseCode();if(t!==200)e(Error("gl`"+w+"`"+q.type+"`"+q.size+"`"+t));else try{y(JSON.parse(u.getResponseText()).encryptedBlobId)}catch(X){e(X)}});
u.run()})},FR6=function(q){return q.substring(q.indexOf(":")+1,q.indexOf(";"))},GMh=function(q){return new Promise(function(w,u){var y=new FileReader;
y.onloadend=function(){try{var e=new Uint8Array(y.result);e.length<8&&u(void 0);var t=e.subarray(0,8);e="";for(var X=0;X<t.length;X++)e+=("0"+t[X].toString(16)).substr(-2);e.startsWith("ffd8ff")?w("image/jpeg"):e.startsWith("47494638")?w("image/gif"):e.startsWith("89504e470d0a1a0a")?w("image/png"):e.startsWith("424d")?w("image/bmp"):w(void 0)}catch(G){u(G)}};
y.onerror=u;y.readAsArrayBuffer(q)})},n1V=function(q){return new Promise(function(w,u){var y=new Image;
y.crossOrigin="anonymous";y.onload=function(){var e=document.createElement("canvas");e.width=y.naturalWidth;e.height=y.naturalHeight;var t=e.getContext("2d");if(!t)throw Error("hl");t.drawImage(y,0,0);t=FR6(q);e.toBlob(function(X){X?w(X):u()},t)};
y.src=q})},WRj=function(q,w){var u;
if(((u=_.C(q,_.Tt))==null?void 0:u.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var y;_.t7((y=w.hostElement)!=null?y:w,"yt-shorts-reset");_.esF(_.tG().resolve(_.xu),q).then(function(t){Hqm(t,w,q)})}else{var e;
_.GM((e=w.hostElement)!=null?e:w,[q]).then(function(t){t&&Hqm(t.data,w,q)})}},Hqm=function(q,w,u){if(q){var y=_.C(q.replacementEndpoint,_.Tt);
if(y){q.sequenceContinuation&&(y.sequenceParams=q.sequenceContinuation);var e;_.t7((e=w.hostElement)!=null?e:w,"yt-navigate",{endpoint:q.replacementEndpoint})}else if((q==null?void 0:q.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(q==null?0:q.watchStatus)&&_.C(q.watchStatus,_.MKF)){var t;_.t7((t=w.hostElement)!=null?t:w,"yt-navigate",{endpoint:u})}}},sDx=function(){var q=_.tG().resolve(_.dd),w=TrA(q.getState())||"";
q=_.b2z(q.getState())||"";return{disableCache:w==="ytd-browse"&&q==="home"}},NkT=function(q){if(!q)return!1;
try{if(q.host&&q.host.tagName==="YT-FORMATTED-STRING"&&q.host.id==="contenteditable-textarea"||q.nodeType===Node.ELEMENT_NODE&&q.tagName==="YTD-COMMENT-INPUT")return!0}catch(w){return!1}return NkT(q.parentNode)},Mp=function(q){return q?q.tagName==="A"&&q.href&&q.classList.contains("yt-simple-endpoint"):!1},QDT=function(q){return q?q.tagName==="IMG"&&q.classList.contains("emoji"):!1},I_A=function(q,w,u){if(!q)return null;
var y=Mp(q);if(y&&u)return w=q.pathname.substring(q.pathname.indexOf("/channel/")+9),document.createTextNode("@"+w);if(y&&!u)return document.createTextNode("");if(QDT(q))return u=q.alt,q=q.dataset.emojiId,!q&&w&&(w=_.ND(w,u))&&w.isCustomEmoji&&(q=w.emojiId),q?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+q+">"):document.createTextNode(u);y=q.cloneNode(!1);for(var e=0;e<q.childNodes.length;++e){var t=I_A(q.childNodes[e],w,u);t&&y.appendChild(t)}return y},K_=function(q){return q?Mp(q)?q:K_(q.lastChild):
null},iqh=function(q){return q?Mp(q)?q:iqh(q.firstChild):null},r7m=function(q){if(!q)return null;
for(var w=q.previousSibling;w;)if(w.nodeType===Node.ELEMENT_NODE&&w.nodeName==="BR")w=w.previousSibling;else if(w.nodeType===Node.TEXT_NODE&&/\s+/.test(w.textContent))w=w.previousSibling;else break;(w=K_(w))?q=w:q=(q=q.parentNode)?K_(q.previousElementSibling):null;return q},UU4=function(q){if(!q)return null;
for(var w=q.nextSibling;w;)if(w.nodeType===Node.ELEMENT_NODE&&w.nodeName==="BR")w=w.nextSibling;else if(w.nodeType===Node.TEXT_NODE&&/\s+/.test(w.textContent))w=w.nextSibling;else break;return(w=iqh(w))?w:UU4(q.parentNode)},TkA=function(q){var w=_.IS(),u=w.JSC$9150_getStartNode();
if(!NkT(u.parentNode))return null;w=w.JSC$9150_getStartOffset();if(u.nodeType===Node.TEXT_NODE){var y=_.ar(u,Mp);if(y){if(q&&w===0||!q&&w===u.length)return y}else{if(q&&w===u.length)return!u||u.nodeName==="BR"||u.nextElementSibling&&_.ir(u.nextElementSibling,"display")==="block"?null:iqh(u.nextElementSibling);if(!q&&w===0)return u?K_(u.previousElementSibling):null}}if(u.nodeType===Node.ELEMENT_NODE)if(q){if(0<=w&&w<u.childNodes.length)return iqh(u.childNodes[w])}else if(0<w&&w<=u.childNodes.length)return K_(u.childNodes[w-
1]);return null},CyV=function(q,w,u){if(!q)return null;
if(q.nodeType===Node.TEXT_NODE)if(u){var y=r7m(q);if(y&&!/^\s+\S/.test(q.wholeText.substr(0,w)))return y}else if((y=UU4(q))&&!/\S\s+/.test(q.wholeText.substr(w,q.wholeText.length)))return y;return q.nodeType===Node.ELEMENT_NODE?u?r7m(q.childNodes[w]):UU4(q.childNodes[w]):CyV(q.parentNode,w,u)},dUc=function(q){if(q.hasChildNodes())switch(q.tagName){case "DIV":case "A":case "SPAN":var w="";
for(q=q.firstChild;q;q=q.nextSibling)w+=dUc(q);return w;default:return""}else switch(q.nodeType){case 3:return q.textContent;default:return""}},Oqj=function(q){q=q.data;
return _.W("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.W("div",null,_.W(_.Lr,{text:q.title})),q.subtitle?_.W("div",{class:"ytd-menu-title-renderer__subtitle"},_.W(_.Lr,{text:q.subtitle})):null)},o1H=function(q){switch(q){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"}},VBH=function(q){return q.map(function(w){return{settingsRadioOptionRenderer:{title:_.kN(w.name),
asideText:_.kN(w.approximateSize),id:o1H(w.format)}}})},mUA=function(q){if(q&&q.length!==0)return q.filter(f_j()).map(function(w){return{settingsRadioOptionRenderer:{title:w.name,
asideText:w.approximateSize,id:o1H(w.formatType)}}})},BP=function(q){if(q)return q.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},A7j=function(q,w){q=new Set(q!=null?q:[]);
if(q.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(q.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(q.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(q.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(q.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(w)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},J76=function(q){var w=q.indexOf("(");
return w!==-1?q.substring(w+1,q.length-1):q},zK4=function(q){switch(q){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},DUx=function(q,w,u,y,e,t){var X=_.db.clone(a_H);
X.locale=_.Et("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;X.report={description:e||"<empty>"};e=_.Et("SBOX_SETTINGS",{});w=w.join(",");var G=Date.now();q={choice_cc:y,choice_id_cc:u,choices_sc:w,gl:e.REQUEST_DOMAIN,hl:e.REQUEST_LANGUAGE,query:q,time:G};t&&(q.choice_additional_comment_cc=t);_.xDk(X,q)},ZqT=function(q){var w=new Map;
w.set("authuser",_.Et("SESSION_INDEX","0"));return _.wb(q,w)},$UB=function(q){var w;
return _.F(function(u){switch(u.nextAddress){case 1:if(!q||!pwK(q))return u.return(null);w=null;switch(_.Et("INNERTUBE_CLIENT_NAME")){case "WEB":return u.jumpTo(2);case "WEB_REMIX":w=q.getPlayer()}u.jumpTo(3);break;case 2:return _.H(u,q.getPlayerPromise(),4);case 4:w=u.yieldResult;u.jumpTo(3);break;case 3:return u.return(w)}})},pwK=function(q){return["ytd-player",
"ytmusic-player"].includes(String(q.tagName||"").toLowerCase())},v1T=function(q){q=Math.round(q);
return q%2?q-1:q},bqq=function(q){q=Math.round(q);
return q%2===0?q-1:q},YCA=function(q){var w,u,y;
if(q=(w=q.createPlaylistDialogFormSchema)==null?void 0:(u=w.fieldSchemas)==null?void 0:(y=u.title)==null?void 0:y.validationSchema)for(w=[q.syncStep,q.asyncStep].filter(function(e){return e!==void 0}),w=_.P(w),u=w.next();!u.done;u=w.next()){u=u.value.rules;
if(!u)break;u=_.P(u);for(u=u.next();!u.done;u=u.next())return _.C(u.value,_.cDA)}},E1H=function(q){var w,u,y;
if(q=(w=q.createPlaylistDialogFormSchema)==null?void 0:(u=w.fieldSchemas)==null?void 0:(y=u.visibility)==null?void 0:y.validationSchema)for(w=[q.syncStep,q.asyncStep].filter(function(e){return e!==void 0}),w=_.P(w),u=w.next();!u.done;u=w.next()){u=u.value.rules;
if(!u)break;u=_.P(u);for(y=u.next();!y.done;y=u.next())if(y=_.C(y.value,g1a))return w=void 0,(w=y.translations)==null?void 0:w.visibilityNotValidErrorMessage}},RKA=function(){var q,w;
return(w=(q=_.tG().resolve(_.kF(_.Rg)))==null?void 0:q())!=null?w:!1},c7c=function(q,w){a:switch(w){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":w="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:w="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:q,style:w,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},SCq=function(q){var w=21;
if(!q)return w;w+=q.headerTitle?27:0;w+=q.headerTitle&&q.hasHeaderActionHeader?4:0;return w+=q.headerTitle&&q.headerSubtitle?16:0},hKc=function(q){var w=0;
if(!q)return w;w+=q.hasFooterPrimaryButton||q.hasFooterSecondaryButton?48:0;w+=q.footerTrailingLabel||q.footerLeadingLabel?30:0;return w+=q.hasFooterPrimaryButton||q.hasFooterSecondaryButton||!q.footerTrailingLabel&&!q.footerLeadingLabel?0:12},jD6=function(q){var w=new _.r$,u=q;
return{subscribe:function(y){w.subscribe("changed",y)},
dispatch:function(y,e){var t=u;y==="Touch Start"?u=Object.assign({},t,{isAnimating:!1,initialY:e.event.touches[0].clientY}):y==="Touch Move"?(y=Math.min(e.fullContentWrapperHeight,e.contentHeightMap[e.contentWrapperId]+SCq(e.header)-hKc(e.footer)),u=Object.assign({},t,{currentY:Math.max(e.contentScrollable?-1*(t.initialY-24):0,e.event.touches[0].clientY-t.initialY),maxHeightForContentWrapper:Math.min(y,Math.max(0,(t.isFullScreen?y:e.contentWrapperHeight)-t.currentY))})):u=y==="Snap To Full Screen"?
Object.assign({},t,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:e.maxHeight}):y==="Snap To Neutral Position"?Object.assign({},t,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:e.maxHeight}):y==="Close Sheet"?Object.assign({},t,{isAnimating:!0,currentY:e.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:e.maxHeight}):t;w.publish("changed",u)}}},l_V=function(q){return _.QS(function(w){q(w);
return!1})},LR6=function(){_.tG().resolve(_.ru).closeSheet()},MBA=function(q){var w,u,y,e,t,X,G,n,N,Q,I;
return{headerTitle:(w=q.headerTitle)==null?void 0:w.call(q),headerSubtitle:(u=q.headerSubtitle)==null?void 0:u.call(q),headerActionHeader:q.headerActionHeader,footerPrimaryButton:q.footerPrimaryButton,footerSecondaryButton:q.footerSecondaryButton,footerButtonType:(y=q.footerButtonType)==null?void 0:y.call(q),footerLeadingLabel:(e=q.footerLeadingLabel)==null?void 0:e.call(q),footerTrailingLabel:(t=q.footerTrailingLabel)==null?void 0:t.call(q),shouldShowIcons:(X=q.shouldShowIcons)==null?void 0:X.call(q),
skipContentClick:(G=q.skipContentClick)==null?void 0:G.call(q),additionalClassName:(n=q.additionalClassName)==null?void 0:n.call(q),onClosedCallback:q.onClosedCallback,focusOnClose:(N=q.focusOnClose)==null?void 0:N.call(q),isDisabled:(Q=q.isDisabled)==null?void 0:Q.call(q),disabledCommand:(I=q.disabledCommand)==null?void 0:I.call(q),headerFn:q.headerFn,contentFn:q.contentFn,footerFn:q.footerFn,hasHeaderFn:q.hasHeaderFn(),hasContentFn:q.hasContentFn(),hasFooterFn:q.hasFooterFn(),hasFooterPrimaryButton:q.hasFooterPrimaryButton(),
hasFooterSecondaryButton:q.hasFooterSecondaryButton(),hasHeaderActionHeader:q.hasHeaderActionHeader()}},KRK=function(q){switch(q){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""}},BkA=function(q){switch(q){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""}},xUH=function(q){switch(q){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""}},q1q=function(q,w,u){w.forEach(function(y){_.Xf(_.tG().resolve(_.WY),y)});
_.Pw(q,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",u])},ejA=function(q,w,u,y){var e=_.C(u,_.vi).commandLifeCycleConfig;
e&&e.onStartCommand&&_.nq(q,[e.onStartCommand],w);_.js(w);var t=_.E3.instance;t&&_.RV(t,u)?_.cR(t,u,y).then(function(X){if(!X||(X==null?0:X.error))return X=_.C(u,_.vi).serializedTransactionFlowLoggingParams,_.lr(w),_.og(new xb("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",X));_.lr(w);return{data:X}}).then(function(X){_.lr(w);
wQc(X.data);var G=X.data.command;G&&_.nq(q,[G],w);G=uX4(u,X.data);if(!G){var n=X.data;X=!1;if(n&&n.command&&_.C(n.command,_.Ww)){var N;n=((N=_.C(n.command,_.Ww))==null?void 0:N.commands)||[];for(N=0;N<n.length;N++)if(_.C(n[N],_.ZGk)){X=!0;break}}X||_.s7('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!G&&e&&e.onSuccessCommand?_.nq(q,[e.onSuccessCommand],w):G&&e&&e.onFailureCommand&&_.nq(q,[e.onFailureCommand],w)},function(){_.lr(w);
e&&e.onFailureCommand&&_.nq(q,[e.onFailureCommand],w);yrm(u)}):_.vm(Error("yl"),"ERROR")},kax=function(q,w,u){var y=[w];
u&&y.push(u);return _.GM(q,y).then(function(e){var t=_.C(w,_.vi).serializedTransactionFlowLoggingParams,X=e.data,G=uX4(w,X);G?e=_.og(new xb(G,t)):wQc(X);return e},function(){var e=_.C(w,_.vi).serializedTransactionFlowLoggingParams;
yrm(w);return _.og(new xb("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",e))})},uX4=function(q,w){q=_.C(q,_.vi).serializedTransactionFlowLoggingParams;
var u=null;switch(w.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":u="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":u="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":u="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}u?_.Ri(u,q):Wrm(q);return u},yrm=function(q){_.Ri("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.C(q,_.vi).serializedTransactionFlowLoggingParams)},
wQc=function(q){if(q.trackingParams){var w=_.pN(),u=_.ZB();
w&&u&&_.EC(w,u,_.Tj(q.trackingParams))}},tNH=function(q,w,u){var y=_.E3.instance,e=_.tk6(_.Et("YPC_MB_URL")),t=(new _.eeo).init(),X=_.kzz(),G=_.C(u,_.JOX).languageCode;
G===void 0?_.vm(Error("Ci"),"ERROR"):_.rD([t,e]).then(function(){var n={ctk:payments.business.integration.ClientTokenFactory.createClientToken(G,X)};y&&_.RV(y,u)?_.cR(y,u,n).then(function(N){return{data:N}}).then(function(N){_.t7(w,"yt-service-request-completed",N);
N.code!=="ERROR"&&(N=N.data.command)&&_.nq(q,[N],w)}):_.vm(Error("yl"),"ERROR")})},FOh=function(q,w,u,y){var e=_.E3.instance;
e&&_.RV(e,u)?_.cR(e,u,y).then(function(t){return{data:t}}).then(function(t){PAB(q,w,u,t)},function(){XQj(u)}):(e=_.tG().resolve(_.kF(_.OP)))&&e.requestDataForServiceEndpoint(u,y).then(function(t){PAB(q,w,u,t)},function(){XQj(u)})},PAB=function(q,w,u,y){_.t7(w,"yt-service-request-completed",y);
if(y.code&&y.code=="ERROR")XQj(u);else{(y=y.data.commands)&&_.nq(q,y,w);var e;(q=(e=_.C(u,_.$YF))==null?void 0:e.serializedYpcPauseFlowLoggingParams)&&q&&_.AQ("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",q)}},XQj=function(q){var w;
(q=(w=_.C(q,_.$YF))==null?void 0:w.serializedYpcPauseFlowLoggingParams)&&q&&_.AQ("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",q,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},Haj=function(q,w,u){var y=_.E3.instance;
y&&_.RV(y,u)?_.cR(y,u).then(function(e){return{data:e}}).then(function(e){Gaq(q,w,u,e)},function(){nN6(u)}):(y=_.tG().resolve(_.kF(_.OP)))&&y.requestDataForServiceEndpoint(u).then(function(e){Gaq(q,w,u,e)},function(){nN6(u)})},Gaq=function(q,w,u,y){_.t7(w,"yt-service-request-completed",y);
y.code&&y.code=="ERROR"?nN6(u):((y=y.data.commands)&&_.nq(q,y,w),(q=_.C(u,_.vPF).serializedYpcResumeFlowLoggingParams)&&q&&_.AQ("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",q))},nN6=function(q){(q=_.C(q,_.vPF).serializedYpcResumeFlowLoggingParams)&&q&&_.AQ("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",q,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},WOB=function(q){q=q===void 0?{}:q;
_.tG().resolve(_.Zsx).showFeedbackDialog(q.customProductData,q.feedbackContent,q.onFeedbackSubmitted,q.bucket)},sOB=function(q){q=q===void 0?{}:q;
_.tG().resolve(_.Zsx).showHelpDialog(q.helpContext,q.articleId,q.productData)},NGA=function(){sOB()},QOj=function(){WOB()},iac=function(q,w,u){var y,e,t,X,G,n,N;
return _.F(function(Q){switch(Q.nextAddress){case 1:y=_.C(q,IVA);if((e=y)==null?0:e.productId){n={productId:y.productId,bucket:y.bucket,enableAnonymousFeedback:(G=y.enableAnonymousFeedback)!=null?G:!0,allowNonLoggedInFeedback:!0};N={feedbackChoice:u.feedbackChoice};if(!_.T("web_collect_offline_state")){Q.jumpTo(8);break}_.tD(Q,9);return _.H(Q,dQV(N),11)}X={bucket:(t=y)==null?void 0:t.bucket};if(!_.T("web_collect_offline_state")){Q.jumpTo(4);break}X.customProductData={};_.tD(Q,5);return _.H(Q,dQV(X.customProductData),
7);case 7:_.jv(Q,4);break;case 5:_.nm(Q);case 4:WOB(X);Q.jumpTo(0);break;case 11:_.jv(Q,8);break;case 9:_.nm(Q);case 8:_.q56(N),_.xXo("GFEEDBACK",N),y.productId==="5295751"&&(N.client_attestation=Number(_.Et("CATSTAT",0))),y.productId==="5295751"&&(N.client_time=Date.now()/1E3/3600),y.productId==="5295751"&&(N.original_playback_id=_.TuZ||""),_.xDk(n,N),_.HI(Q)}})},rrV=function(q){if(q=_.C(q,_.zgJ)){var w={bucket:q.bucketIdentifier};
q.additionalDatas&&(w.customProductData={},q.additionalDatas.forEach(function(u){if(u=u.userFeedbackEndpointProductSpecificValueData)w.customProductData[u.key]=u.value}));
WOB(w)}},UtB=function(q){var w=_.lD.getInstance();
var u=_.ID("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var y=_.ID("DELETE",void 0,"Delete"),e=_.ID("CANCEL",void 0,"Cancel");u=zCA(u,void 0,y,e,{signal:"DELETE_ALL_DOWNLOADS"});_.JL(w,[{openPopupAction:u}],q)},CA4=function(){return _.F(function(q){return q.nextAddress==1?_.H(q,_.tG().resolve(_.Ml),2):_.H(q,TGm(),0)})},dta=function(q){var w,u;
return _.F(function(y){return y.nextAddress==1?(u=(w=_.C(q,_.Sw))==null?void 0:w.targetId)?_.H(y,_.tG().resolve(_.Ml),3):y.jumpTo(0):_.H(y,_.tG().resolve(_.L3).deleteVideo(u),0)})},oN6=function(q){var w,u;
return _.F(function(y){return y.nextAddress==1?(u=(w=_.C(q,_.Sw))==null?void 0:w.targetId)?_.H(y,_.tG().resolve(_.Ml),3):y.jumpTo(0):_.H(y,Oah(_.tG().resolve(_.L3),u),0)})},fVB=function(q){var w,u;
return _.F(function(y){return(u=(w=_.C(q,_.Sw))==null?void 0:w.targetId)?_.H(y,VNV(u),0):y.jumpTo(0)})},Ar4=function(){_.T("kevlar_woffle_refresh_dl_load_killswitch")||mtj()},zja=function(){_.T("kevlar_woffle")&&_.bp.instance&&JrA()},DtK=function(q){var w;
if((w=_.C(q,_.WC))==null||!w.videoId)return!1;aVB(_.tG().resolve(_.L3),_.C(q,_.WC),q.clickTrackingParams);return!0},pQH=function(q){var w;
if((w=_.C(q,_.sF))==null||!w.playlistId)return!1;Zac(_.tG().resolve(_.L3),_.C(q,_.sF),q.clickTrackingParams);return!0},vNh=function(q){var w=_.C(q,_.JU3);
(w==null?void 0:w.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(w==null?void 0:w.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||$tB(_.tG().resolve(_.L3),_.C(q,_.JU3))},Y1q=function(q){q=_.C(q,_.e_X);
var w;(q==null?0:(w=q.actions)==null?0:w.length)&&baT(q)},Rjq=function(q){var w,u;
return _.F(function(y){w=_.C(q,gNc);return(u=w)!=null&&u.localWatchHistoryCommandType?_.H(y,ENj(w),0):y.return()})},crm=function(q){setTimeout(function(){requestAnimationFrame(q)},80)},S1B=function(q){return Object.entries(q).map(function(w){return w.join(":")}).join(";")},jOx=function(q){var w,u,y;
_.F(function(e){if(e.nextAddress==1)return _.H(e,hjh(),2);w=e.yieldResult;u=_.nx.instance;switch(w){case "granted":y=q.getLocationCommand;break;case "denied":y=q.openDeniedDialogAction;break;case "prompt":y=q.openCollectionDialogAction;break;default:y=q.openCollectionDialogAction}y&&u.resolveCommand(y);_.HI(e)})},hjh=function(){var q,w;
return _.F(function(u){if(u.nextAddress==1)return q="prompt",navigator.permissions?_.H(u,navigator.permissions.query({name:"geolocation"}),3):u.jumpTo(2);u.nextAddress!=2&&(w=u.yieldResult,q=w.state);return u.return(q)})},LOq=function(){_.F(function(q){return _.H(q,_.lVA(),0)})},MN6=function(){var q,w,u;
return _.F(function(y){if(y.nextAddress==1)return q=_.tG().resolve(_.oi),q?_.H(y,_.cR(q,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Y8(Error("Bl")),y.return(void 0));if(w=y.yieldResult){if(w.errorMetadata)return _.Y8(Error("Cl`"+w.errorMetadata.status+"`"+w.error)),y.return(void 0);u=w.datasyncIds;_.DoT=u.length;return y.return(u)}_.Y8(Error("Dl"));return y.return(void 0)})},KOV=function(){MN6().then(function(q){q&&(MZa(q),Nrm(q),Y86(q),oZm(q))})},BGB=function(q){_.pi.addLowPriorityJob(function(){var w,
u,y,e,t;
return _.F(function(X){switch(X.nextAddress){case 1:if(_.T("ytidb_clear_optimizations_killswitch")){X.jumpTo(2);break}w=_.O8("clear");if(w.startsWith("V")&&w.endsWith("||")){var G=[w];MZa(G);Nrm(G);Y86(G);oZm(G);return X.return()}u=gFa();y=VWj();return _.H(X,Qza(),3);case 3:return e=X.yieldResult,_.H(X,KLV(),4);case 4:if(t=X.yieldResult,!(u||y||e||t))return X.return();case 2:q.isNetworkAvailable()?KOV():q.listenOnce("publicytnetworkstatus-online",KOV),_.HI(X)}})})},q7=function(q){q={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.jN(q)}}}};_.nx.instance&&_.nx.instance.resolveCommand(q)},xtB=function(q){if(q){var w=_.Qz();
_.e$(w,3854,void 0,{layer:0,parentLayer:4});switch(q){case 1:var u=238708;break;case 2:u=238715;break;case 3:u=238710;break;case 6:u=238709}u&&(q=_.N2(w,{veType:u}))&&_.Ph(w,q)}},qP6=function(q){if(q){var w=_.Qz();
_.e$(w,3854,void 0,{layer:0,parentLayer:4});switch(q){case 1:var u=238714;break;case 2:u=238711;break;case 8:u=238709;break;case 7:u=238713;break;case 3:case 4:case 5:u=238712}u&&(q=_.N2(w,{veType:u}))&&_.Ph(w,q)}},wMT=function(q){switch(q.latencyType){case 0:_.aD("consent_primitive_flow");
_.D_("cpit",q.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.D_("cpist",q.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.D_("cprtif",q.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.D_("cprtli",q.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.D_("cprt",q.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.D_("cpdt",q.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.D_("cpjct",q.timestampEpochMillis,"consent_primitive_flow")}},
nMA=function(q,w){var u,y,e,t,X,G,n,N,Q,I,U,d,V,J,a,b,g,l,S,eH;
return _.F(function(x){switch(x.nextAddress){case 1:_.tD(x,2);(y=(u=_.C(q,uTx))==null?void 0:u.serializedConsentRequest)||(y=(e=_.C(q,yex))==null?void 0:e.serializedConsentRequest);y&&(t=eMc(_.sX(y)));if(t===void 0)return x.return();X=ktq(t);X.latencyCallback=wMT;w&&tQx(X,function(){w.then(function(P4){P4.pauseVideo();(new Ppa).increment()})});
return((G=_.C(q,uTx))==null?void 0:G.consentAction)==="CONSENT_ACTION_PREWARM"||((n=_.C(q,yex))==null?void 0:n.consentAction)==="CONSENT_ACTION_PREWARM"?_.H(x,XMx(X),5):_.H(x,F44(X),6);case 6:N=x.yieldResult;Q=_.UL(N,wi);if(Q===1){if(((I=_.zs(N,uJ,1,wi))==null?void 0:_.mw(I,1))===1||((U=_.zs(N,uJ,1,wi))==null?void 0:_.mw(U,1))===2||((d=_.zs(N,uJ,1,wi))==null?void 0:_.mw(d,1))===3)_.C(q,yex)?q7(_.ID("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
q7(_.ID("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));xtB((V=_.zs(N,uJ,1,wi))==null?void 0:_.mw(V,1),_.wg(N,Gt6,3,_.uI()))}else Q===2?(((J=yq(N))==null?void 0:_.mw(J,1))===5?_.C(q,yex)?q7(_.ID("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):q7(_.ID("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((a=yq(N))==null?void 0:_.mw(a,1))===1||((b=yq(N))==null?void 0:_.mw(b,1))===4?q7(_.ID("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((g=yq(N))==null?void 0:_.mw(g,1))===7&&((l=t)==null?void 0:(S=_.PT(l,eJ,4))==null?void 0:_.mw(S,4))!==1&&q7(_.ID("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),qP6((eH=yq(N))==null?void 0:_.mw(eH,1))):q7(_.ID("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));x.jumpTo(5);break;case 5:_.jv(x,0);break;case 2:_.nm(x),q7(_.ID("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.HI(x)}})},W4q=function(){if(!Hpx.has("Worker")){Hpx.set("Worker",
!0);
var q={api:"BROWSER_API_WEB_WORKER"};q.available="Worker"in window?!0:!1;_.pn("apiTest",q)}},sic=function(q){return typeof q==="undefined"?"-1":String(Math.ceil(q/1048576))},ipc=function(q,w){NCh(new Qi6(_.C(w,IuK).addToken,_.C(w,IuK).commonToken)).then(function(){_.t7(q,"yt-invoke-instrument-manager-action-completed")},function(u){_.t7(q,"yt-invoke-instrument-manager-action-error",u)})},reT=function(q){return _.$f(q)},U_j=function(q){var w=1;
q=q.split(":");for(var u=[];w>0&&q.length;)u.push(q.shift()),w--;q.length&&u.push(q.join(":"));return u},TCc=function(q,w){w=q.aspectRatio()<=w.aspectRatio()?w.width/q.width:w.height/q.height;
q.scale(w)},CpB=function(q,w){w=q.aspectRatio()>w.aspectRatio()?w.width/q.width:w.height/q.height;
return q.scale(w)},d_B=function(q){var w=new _.en;
return _.aG(w,11,q)},Op6=function(q){var w={};
q=q.getAllResponseHeaders().split("\r\n");for(var u=0;u<q.length;u++)if(!_.Gy(q[u])){var y=U_j(q[u]),e=y[0];y=y[1];if(typeof y==="string"){y=y.trim();var t=w[e]||[];w[e]=t;t.push(y)}}return _.db.map(w,function(X){return X.join(", ")})},HP=function(q,w){return q.JSC$7699_xhr_?q.JSC$7699_xhr_.getResponseHeader(w):null},kg=function(q,w,u){Array.isArray(u)||(u=[String(u)]);
_.$KT(q.JSC$7931_queryData_,w,u);return q},JrA=function(){var q=_.bp.instance;
_.F(function(w){return q.deferredInstallPrompt?_.H(w,q.deferredInstallPrompt.prompt(),0):w.jumpTo(0)})},oMm=function(q,w,u){if(_.uP(q))_.L4(q,w,u);
else for(q=_.cG3(q);;){var y=q.next();if(y.done)break;w.call(u,y.value,void 0,q)}},VQV={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}"]},Cfa,dah,OLh,odV,Vfx,fMa,maq,AMj,JM6,VNV,Oah,TGm,zwB,aMq,Dac,ZLc,pjV,Zac,aVB,$ac,vd4,bLT,mtj,$tB,Y66,baT,gdh,ENj,Edx,Rw6,cMa,S6q,hwA,j9K,lMq,L_,LPV,Mf6,
$46,D4x,KPA,nW,Hg,Wg,sR,BN4,xax,qO6,w6h,uy6,yBH,eHm,kjB,tDB,Pna;VQV={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 fu6=function(q,w){var u=[];oMm(w,function(y){try{var e=_.Xb.prototype.getWrapper.call(this,y,!0)}catch(t){if(t=="Storage: Invalid value was encountered")return;throw t;}e===void 0?u.push(y):_.RWx(e)&&u.push(y)},q);
return u},m_x=function(q,w){fu6(q,w).forEach(function(u){_.Xb.prototype.remove.call(this,u)},q)},Aeh=function(q){var w=_.go;
w._minimumZ=Math.max(w._minimumZ,q)},Jea=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],zM6=function(q,w){_.BX(q.d3);q.d3=w},auq=function(q,w,u,y){q.setState(5);
var e=!!q.ehw&&Jea.includes(_.w$(q.ehw)||"");try{var t=new _.mo({program:w,globalName:u,bR:{disable:!_.T("att_web_record_metrics")||!_.T("att_skip_metrics_for_cookieless_domains_ks")&&e,i3:"aGIf"}});t.mTS.then(function(){q.setState(6);y&&y(w)});
zM6(q,t)}catch(X){q.setState(7),X instanceof Error&&_.Y8(X)}},D_A=function(q,w,u,y,e,t){var X=X===void 0?"trayride":X;
u?(q.setState(2),_.EM(u,function(){if(window[X])auq(q,y,X,e);else{q.setState(3);var G=_.Erz(u),n=document.getElementById(G);n&&(_.lu6(G),n.parentNode.removeChild(n));_.Y8(new _.fv("BL:ULB",u))}},t)):w?(t=_.rg("SCRIPT"),w instanceof _.ZD?_.vs(t,w):t.textContent=w,t.nonce=_.DD(document),document.head.appendChild(t),document.head.removeChild(t),window[X]?auq(q,y,X,e):(q.setState(4),_.Y8(new _.fv("BL:ULBJ")))):_.Y8(new _.fv("BL:ULV"))},Zph=function(){this.state=1;
this.d3=null;this.ehw=void 0};
_.k=Zph.prototype;_.k.initialize=function(q,w,u,y){this.ehw=y;if(q.program){var e;y=(e=q.interpreterUrl)!=null?e:null;if(q.interpreterSafeScript)e=_.QOc(q.interpreterSafeScript);else{var t;e=(t=q.interpreterScript)!=null?t:null}q.interpreterSafeUrl&&(y=_.$Z(q.interpreterSafeUrl).toString());D_A(this,e,y,q.program,w,u)}else _.Y8(Error("lf"))};
_.k.isInitialized=function(){return!!this.d3};
_.k.getState=function(){return this.state};
_.k.isLoading=function(){return this.state===2};
_.k.invoke=function(q){q=q===void 0?{}:q;var w;this.d3?w=_.om3(this.d3,{kG:q}):w=null;return w};
_.k.dispose=function(){zM6(this,null);this.setState(8)};
_.k.setState=function(q){this.state=q};
var pMj=function(q,w){return q.d3.snapshot(w)},$_B=function(q,w){var u=_.Fc("botguard_async_snapshot_timeout_ms",3E3);
w=w===void 0?{}:w;u=u===void 0?3E3:u;return q.d3?new Promise(function(y,e){var t=!1,X=_.pi.addJob(function(){t=!0;e(Error("mf"))},1,u);
q.d3?pMj(q,{kG:w}).then(function(G){_.pi.cancelJob(X);t||y(G)}).catch(function(G){_.pi.cancelJob(X);
t||e(G)}):(_.pi.cancelJob(X),y(null))}):Promise.resolve(null)},vMT=["att/log"],bpB;
bpB={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var YPB={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},gMj=function(q,w){return _.iA(q,{mode:"readwrite",enableRetries:!0},function(u){return _.dAl(u,w,"settingEntity")})},EMB=function(q,w,u){return _.iA(q,{mode:"readonly",
enableRetries:!0},function(y){return _.P7X(y,w,u)})},RM4=function(q){if(!q.storage)return!1;
a:{if(q.storage){try{var w=q.storage.get("TLPQtimestamp")}catch(u){}q=Number(w);if(!isNaN(q))break a}q=void 0}return q?Date.now()-q<864E5:!1},ce4=function(q){if(q.storage){try{var w=q.storage.get("TLPQindex")}catch(u){}q=Number(w);
if(!isNaN(q))return q}},SPB=function(q,w){q.queueProxy&&w.forEach(function(u){if(u.videoId&&u.trackingParams&&q.queueProxy instanceof _.mE){var y=_.pN();
q.queueProxy.attributionData.set(u.videoId,{enqueueingVe:_.Tj(u.trackingParams).getAsJson(),enqueueingCsn:y?y:void 0,clientEnqueueingTimeMs:Math.floor((0,_.eW)()).toString()})}})},hM6=function(q){var w=_.YiF(q);
w!=q.currentSnapState_&&(q.currentSnapState_=w,q.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},tN=function(q){this.JSC$10873_networkManager_=q;
this.partCallbacks_=[]};
tN.prototype.getCacheKeyForEndpoint=function(q){return _.kDM(q,!1)};
tN.prototype.onPartsCallback_=function(q){this.partCallbacks_.forEach(function(w){q&&w(q)})};
var Pg=function(q,w,u){tN.call(this,q);this.player_=w;this.autoplayData_=u};
_.O(Pg,tN);Pg.prototype.getCacheKeyForEndpoint=function(q){return _.kDM(q,!!this.autoplayData_)};
Pg.prototype.getTempData=function(q,w){w=w.timeBeforeNextVideo;q={itct:q.clickTrackingParams,lact:_.Pm(),pbis:w,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(q.autonav=1);return q};
Pg.prototype.getXhrParams=function(q){return Object.assign({pbj:"prefetch"},q)};
Pg.prototype.getParams=function(q){q={frags:q.fragmentsRequested.join(",")};_.T("kevlar_droppable_prefetchable_requests")&&(q.prefetch=1);return q};
var jiq=function(q){q.playerEvents_.forEach(function(w){q.player.removeEventListener(w.eventName,w.callback)});
q.playerEvents_.length=0},Xq=function(q,w,u){this.player=q;
this.JSC$10883_taskManager=w;this.prefetchDelay=u;this.completionResolver_=null;this.playerEvents_=[]};
Xq.prototype.start=function(){var q=this;this.completionResolver_=_.S6();_.Uj(this.completionResolver_.promise,function(){jiq(q);q.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var lua=function(q,w,u){q.player.addEventListener(w,u);q.playerEvents_.push({eventName:w,callback:u})},L4V={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},MQA={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},K4x=function(q,w,u){Xq.call(this,q,w,u);this.cueId_="playbackTrigger-"+Math.random()};
_.O(K4x,Xq);
K4x.prototype.prepareTrigger=function(q){var w=this,u=this.player.getDuration(),y=this.player.getVideoData(),e=y.isLive&&y.hasProgressBarBoundaries;if(e&&y.progressBarEndPositionUtcTimeMillis){var t=y.progressBarEndPositionUtcTimeMillis/1E3;isNaN(t)||(u=t)}var X=0;this.prefetchDelay>=0?e?y.progressBarStartPositionUtcTimeMillis&&(y=y.progressBarStartPositionUtcTimeMillis/1E3,isNaN(y)||(X=y+this.prefetchDelay)):X=this.prefetchDelay:X=u+this.prefetchDelay;e?this.player.addUtcCueRange(this.cueId_,X,u):
this.player.addCueRange(this.cueId_,X,u);_.Uj(q.promise,function(){w.player.removeCueRange(w.cueId_)});
lua(this,"onCueRangeEnter",function(G){G==w.cueId_&&q.resolve(u-X)})};
var BCa=function(q,w){q.fragmentConfiguration_[w].requiredKeys.every(function(u){return!!q.prefetchedData_[u]})&&(q.validatedFragments_.push(w),w=q.missingFragments_.indexOf(w),w!==-1&&q.missingFragments_.splice(w,1))},x_K=function(q){q.prefetchedFragments_.forEach(function(w){BCa(q,w)})},q6j=function(q,w,u){this.pageFragments_=q;
this.prefetchedFragments_=w;this.fragmentConfiguration_=MQA;this.prefetchedData_=u;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;x_K(this)},wjB=function(){},ujj=function(q){this.JSC$10897_playlistManager_=q};
_.O(ujj,wjB);ujj.prototype.getPrefetchEndpoint=function(){return this.JSC$10897_playlistManager_.getAutoplayEndpoint()};
var yMT=function(q){this.autonavEndpoints_=q};
_.O(yMT,wjB);yMT.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var ewh=function(q,w,u,y,e){this.autonavEndpoints=q;this.foregroundTrigger=w;this.backgroundTrigger=u;this.pageType=y;this.isInPlaylist=e},kmH=function(q,w){if(q.webPrefetchData&&q.webPrefetchData.navigationEndpoints&&q.webPrefetchData.navigationEndpoints.length){q=q.webPrefetchData.navigationEndpoints;
var u=_.C(q[0],_.LN);if(u.watchEndpointSupportedPrefetchConfig&&u.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var y=u.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;u=y.playbackRelativeSecondsPrefetchCondition;u=typeof u==="number"&&Math.abs(u)<w.videoDuration?u:void 0;y=y.countdownUiRelativeSecondsPrefetchCondition;y=typeof y!=="number"||_.T("prefetch_job_config_cleanup_ks")&&w.inPlaylist?void 0:y;if(typeof y==="number")return new ewh(q,w.makeUpNextTrigger(y),w.makePlaybackTrigger(y),
"watch",w.inPlaylist);if(typeof u==="number")return new ewh(q,w.makePlaybackTrigger(u),null,"watch",w.inPlaylist)}}},tf6=function(q){return q.prefetchJobConfig_.backgroundTrigger?_.SZ(_.gQs)()==0?q.prefetchJobConfig_.backgroundTrigger:q.prefetchJobConfig_.foregroundTrigger:q.prefetchJobConfig_.foregroundTrigger},Pf6=function(q){_.NF(document,"visibilitychange",q.onVisibilityChange_,!1,q)},Fq=function(q){tN.call(this,q)};
_.O(Fq,tN);Fq.prototype.getCacheKeyForEndpoint=function(q){return tN.prototype.getCacheKeyForEndpoint.call(this,q)};
Fq.prototype.getTempData=function(){return{}};
Fq.prototype.getXhrParams=function(q){return q};
Fq.prototype.getParams=function(){return{}};
var Xjj=function(q,w,u){var y=q.prefetchDelay*1E3;if(Math.abs(y)>w)u.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var e=y,t=w-y;y<0&&(e=w+y,t=Math.abs(y));var X=q.JSC$10883_taskManager.addJob(function(){u.resolve(t/1E3)},10,e);
u.promise.thenCatch(function(){q.JSC$10883_taskManager.cancelJob(X)})}},FPV=function(q,w,u){Xq.call(this,q,w,u)};
_.O(FPV,Xq);FPV.prototype.prepareTrigger=function(q){var w=this;lua(this,"onAutonavCoundownStarted",function(u){Xjj(w,u,q)})};
var GmH=function(q){q.pendingPrefetchJob_&&(q.pendingPrefetchJob_.cancel(),q.pendingPrefetchJob_=null)},ndB=function(q,w,u){if(!q.triggeredTargets.has(w)){var y=_.dw$(q,w);
y.action=u;_.TyX(q,w,y)}},HLA=function(q){_.slT();
_.xHf("cpt")&&_.Y8(Error("kh"));_.uc.requestAnimationFrame(function(){_.uc.setTimeout(function(){_.D_("cpt");var w=_.$1("vpl"),u=_.$1("cpt");w&&u&&_.D_("ol",Math.max(w,u))})});
try{_.D_("fr_s"),q()}catch(w){_.vm(w)}_.uc.requestAnimationFrame(function(){_.D_("bcp")})},WPK=function(q,w){q.serviceEndpointHandlers.push(w)},s9K=function(q,w){w=q.pendingPages_.indexOf(w);
w>-1&&q.pendingPages_.splice(w,1)},NNA=function(q,w){var u=_.mJG.indexOf(w);
u>-1&&_.mJG.splice(u,1);q.targetPage_==w?(q.abort(),_.J8F(q)):s9K(q,w)},Q94=function(q,w,u,y){w={challenge:w};
u&&(w.webResponse=u);return _.Jb(q.innertubeTransportService,w,_.Ka(vMT),y)},IM6=function(q,w,u){if(!w.challenge)throw Error("mi");
if(w.botguardData&&w.botguardData.program){var y=new Zph;y.initialize(w.botguardData,function(){$_B(y,{atr_challenge:w.challenge}).then(function(e){if(!e)throw Error("ni");return Q94(q,w.challenge,e,u)}).catch(function(e){_.Y8(e);
return Q94(q,w.challenge,void 0,u)})},void 0)}else Q94(q,w.challenge,void 0,u)},iLj=function(q,w,u){var y={};
w.ids&&(y.ids=[].concat(_.Cm(w.ids)));w.engagementType&&(y.engagementType=w.engagementType);return _.Jb(q.innertubeTransportService,y,_.Ka(_.dk$),u).then(function(e){if(!e)throw new _.fv("GetAttestationChallenge returned falsy");IM6(q,e,u)}).thenCatch(function(e){_.vm(e)})},rMa=function(q,w,u){return new _.IA(function(y,e){var t;
return _.F(function(X){if(X.nextAddress==1){var G=w.engagementType,n=w.ids,N={};n=_.P(n!=null?n:[]);for(var Q=n.next();!Q.done;Q=n.next())Q=Q.value,Q.encryptedVideoId?N.encryptedVideoId=Q.encryptedVideoId:Q.externalChannelId?N.externalChannelId=Q.externalChannelId:Q.commentId?N.commentId=Q.commentId:Q.externalOwnerId?N.externalOwnerId=Q.externalOwnerId:Q.artistId?N.artistId=Q.artistId:Q.playlistId?N.playlistId=Q.playlistId:Q.externalPostId?N.externalPostId=Q.externalPostId:Q.shareId&&(N.shareId=Q.shareId);
return _.H(X,JPB(G,N),2)}t=X.yieldResult;if(!t.challenge)return _.Y8(Error("oi")),iLj(q,w,u).then(y,e),X.return();G=t;N={challenge:G.challenge};N.webResponse=G.webResponse;N.engagementType=w.engagementType;N.ids=w.ids;_.Jb(q.innertubeTransportService,N,_.Ka(vMT),u).then(y,e);_.HI(X)})})},YMj=function(q,w){var u,y,e,t;
_.F(function(X){if(X.nextAddress==1){u=_.C(w,_.QGk);if(!(u&&u.listId&&q.response&&q.response.playingVideoId)||q.listId!==u.listId)return X.return();q.index===void 0&&(q.index=0);return _.H(X,_.Ep3(q.JSC$10703_playlistNetworkManager,u.listId,q.index,q.response.playingVideoId),2)}y=X.yieldResult;if(!y)return X.return();e=y.playlistId;t=y.playlistPanelRenderer;q.setPlaylistData(e,t,y.autoplayRenderer);_.HI(X)})},Uam=function(q,w,u){var y=q.getParams(u),e=_.VDf(w,y),t=q.getTempData(w,u);
t.endpoint=JSON.stringify(w);_.T("enable_unknown_lact_fix_on_html5")&&(_.tG().resolve(_.fT),t.lact=_.Pm());var X={headers:{"X-YouTube-STS":_.Et("STS"),"x-youtube-csoc":1}};_.xG(e,t);return new _.IA(function(G,n){var N=q.getXhrParams(y),Q;_.T("kevlar_cache_on_ttl_player")&&(Q=_.wd.instance);Q&&_.qJT(Q,w)?_.Xtr(Q,w,t,window.location.href).then(function(I){I?G(I):n()},n):_.VCT(q.JSC$10873_networkManager_,w,N,q.onPartsCallback_.bind(q),X).then(function(I){I?G(I):n()},n)})},TNK=function(q,w){q.triggerPromise_=
w.start();
q.triggerPromise_.then(function(u){var y=q.prefetchEndpointProvider_.getPrefetchEndpoint();if(y){var e=L4V[q.prefetchJobConfig_.pageType].prefetchedFragments;q.prefetchRequestPromise_=Uam(q.JSC$10909_networkPrefetchRequest_,y,{fragmentsRequested:e,timeBeforeNextVideo:u});q.prefetchResponseCacheKey_=q.JSC$10909_networkPrefetchRequest_.getCacheKeyForEndpoint(y);Pf6(q);q.prefetchRequestPromise_.then(function(t){q.storePrefetchedDataCallback_(q.prefetchResponseCacheKey_,t);if(_.T("web_prefetch_preload_video")&&
e.length===1&&e[0]==="pl"&&t&&!t.playerAds&&!t.adPlacements){var X=_.C(y,_.Tt),G=X!=null,n={raw_player_response:t,watch_endpoint:X};(t=_.tG().resolve(G?_.OUa:_.kH))&&y&&t.then(function(N){G&&_.T("web_queue_preload_video")?(n.prefer_gapless=!0,N.queueNextVideo(n)):N.preloadVideoByPlayerVars(n)})}})}})},Gq=function(q,w,u,y){this.prefetchEndpointProvider_=q;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=w;this.prefetchJobConfig_=u;this.JSC$10909_networkPrefetchRequest_=y;this.prefetchResponseCacheKey_=null};
Gq.prototype.enqueue=function(){this.triggerPromise_||(TNK(this,tf6(this)),_.dL(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
Gq.prototype.resolve=function(){this.cancel()};
Gq.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.");Pf6(this)};
Gq.prototype.onVisibilityChange_=function(){var q=this;_.SZ(_.gQs)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){q.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||TNK(this,tf6(this))};
Cfa=function(q,w,u,y,e){w&&(w==null?0:w.videoId)&&u&&u.entries&&_.T("kevlar_enable_shorts_prefetch_in_sequence")&&(GmH(q),w=u.entries.map(function(t){var X;return(X=_.C(t.command,_.Tt))==null?void 0:X.videoId}).indexOf(w.videoId),u=u.entries[w+1],u!=null&&u.command&&!_.C(u==null?void 0:u.command,_.JO)&&(y=new ewh([u.command],new K4x(y,_.pi,1),null,"shorts",!1),q.pendingPrefetchJob_=new Gq(new yMT(y.autonavEndpoints),function(){return!1},y,new Fq(e)),q.pendingPrefetchJob_.enqueue()))};
dah=function(q,w,u,y,e,t){var X=_.lk.getInstance();if(!_.T("block_all_player_prefetch_requests")){GmH(q);var G=!!u.getPlaylistId(),n=u.getVideoData().isLive&&u.getVideoData().hasProgressBarBoundaries;if((X.getState()==2||G||n)&&(!u.getVideoData().isLive||n)){X={inPlaylist:G,videoDuration:u.getDuration(),makeUpNextTrigger:function(Q){return new FPV(u,_.pi,Q)},
makePlaybackTrigger:function(Q){return new K4x(u,_.pi,Q)}};
var N=kmH(w,X);N&&(q.pendingPrefetchJob_=new Gq(N.isInPlaylist?new ujj(e):new yMT(N.autonavEndpoints),function(Q,I){I=new q6j(L4V[N.pageType].pageFragments,L4V[N.pageType].prefetchedFragments,I);return _.Hzc(I)?(q.prefetchCache_.set(Q,I),!0):!1},N,new Pg(y,u,t,e)),q.pendingPrefetchJob_.enqueue())}}};
OLh=function(){var q=_.$u();q.signals.parkOrScheduleJob(function(){var w=q.storage;if(w.storage)if(RM4(w)){var u=w.getPlaylistId();w=ce4(w);u=!!u&&w!==void 0}else w.clear(),u=!1;else u=!1;if(u){u=q.pageManager.isOnWatch();a:{var y=q.storage;if(y.storage&&RM4(y)&&(w=y.getPlaylistId(),y=ce4(y),w&&y!==void 0)){u={recoverPlaylistCommand:{listId:w,index:y,openMiniplayer:!u,openListPanel:u,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}u=void 0}u&&_.JL(q.JSC$10703_actionRouter,[u],null)}},0,"ma")};
odV=function(q,w,u,y,e,t){var X=_.oV(7111);_.ku(q.JSC$15995_screenManager,X,t?_.Tj(t):void 0);_.Ph(q.JSC$15995_screenManager,X,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:y,offlineId:w,offlineabilityFormatType:u,isDefaultFormatType:e==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:e}})};
Vfx=function(q,w,u,y,e){var t,X,G,n,N;return _.F(function(Q){if(Q.nextAddress==1)return _.H(Q,q.JSC$15995_playerApiPromise,2);t=Q.yieldResult;odV(q,w,u,"OFFLINE_OBJECT_TYPE_PLAYLIST",y,e);if(G=_.sTG[q.entityTypeMap.listEntityType])N={},X=(N[G]={maximumDownloadQuality:(n=u)!=null?n:void 0},N);return _.H(Q,t.queueOfflineAction(w,q.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",X),0)})};
fMa=function(q,w){var u,y,e,t;return _.F(function(X){if(X.nextAddress==1)return _.H(X,q.JSC$15995_persistentStorePromiseAccessor(),2);if(X.nextAddress!=3){u=X.yieldResult;if(!u)return _.Y8(new _.fv("PES is undefined")),X.return();y=_.na(w,"downloadStatusEntity");return _.H(X,EMB(u,y,"downloadStatusEntity"),3)}e=X.yieldResult;return X.return((t=e)==null?void 0:t.downloadState)})};
maq=function(q,w,u,y,e){var t,X,G,n,N,Q;return _.F(function(I){switch(I.nextAddress){case 1:return _.H(I,q.JSC$15995_playerApiPromise,2);case 2:t=I.yieldResult;odV(q,w,u,"OFFLINE_OBJECT_TYPE_VIDEO",y,e);if(G=_.sTG[q.entityTypeMap.singleEntityType])N={},X=(N[G]={maximumDownloadQuality:(n=u)!=null?n:void 0},N);return _.H(I,fMa(q,w),3);case 3:Q=I.yieldResult;if(Q!=="DOWNLOAD_STATE_USER_DELETED"){I.jumpTo(4);break}return _.H(I,q.deleteVideo(w),4);case 4:return _.H(I,t.queueOfflineAction(w,q.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",X),0)}})};
AMj=function(q,w,u,y,e){return _.F(function(t){return t.nextAddress==1?_.H(t,q.deleteVideo(w,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.H(t,maq(q,w,u,y,e),0)})};
JM6=function(q,w,u){var y,e;return _.F(function(t){if(t.nextAddress==1)return _.H(t,q.JSC$15995_playerApiPromise,2);y=t.yieldResult;e=_.na(w,"mainVideoDownloadStateEntity");return _.H(t,y.updateDownloadState(e,u),0)})};
VNV=function(q){var w=_.tG().resolve(_.L3);return _.F(function(u){if(u.nextAddress==1)return w.previousDownloadStateForVideo[q]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&w.previousDownloadStateForVideo[q]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?u.jumpTo(2):_.H(u,w.resumeVideoDownload(q),2);if(u.nextAddress!=4)return _.H(u,JM6(w,q,w.previousDownloadStateForVideo[q]),4);delete w.previousDownloadStateForVideo[q];_.HI(u)})};
Oah=function(q,w){var u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,q.JSC$15995_playerApiPromise,2);u=y.yieldResult;return _.H(y,u.queueOfflineAction(w,q.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
TGm=function(){var q=_.tG().resolve(_.L3),w,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,q.JSC$15995_playerApiPromise,2);if(y.nextAddress!=3)return w=y.yieldResult,u={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.H(y,w.queueOfflineAction("!*$_ALL_ENTITIES_!*$",q.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",u),3);var e=q.JSC$15995_commandHandler,t=e.resolveCommand,X=_.ID("DELETING_ALL",void 0,"Downloads are being deleted");
t.call(e,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.yU(X)}},popupType:"TOAST"}});_.HI(y)})};
zwB=function(q){var w,u;return _.F(function(y){if(y.nextAddress==1)return _.H(y,q.JSC$15995_prefStorage,2);w=y.yieldResult;return y.return((u=w)==null?void 0:u.get("sdois"))})};
aMq=function(q){var w,u,y,e,t,X;return _.F(function(G){if(G.nextAddress==1)return _.H(G,q.JSC$15995_persistentStorePromiseAccessor(),2);if(G.nextAddress!=3){w=G.yieldResult;if(!w)return _.Y8(new _.fv("PES is undefined")),G.return();u=_.na("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.H(G,EMB(w,u,"settingEntity"),3)}y=G.yieldResult;return G.return((X=(e=y)==null?void 0:(t=e.settingOptionValue)==null?void 0:t.boolValue)!=null?X:!1)})};
Dac=function(q,w){var u,y,e,t;return _.F(function(X){switch(X.nextAddress){case 1:return((u=w)==null?void 0:u.formatType)===void 0?X.return():_.H(X,q.JSC$15995_prefStorage,2);case 2:y=X.yieldResult;if(y===void 0)return X.return();if(((e=w)==null?void 0:e.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.H(X,y.set("lmqf",w.formatType),8);if(((t=w)==null?void 0:t.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){X.jumpTo(0);break}return _.H(X,y.set("lmqf",w.formatType),
6);case 6:return _.H(X,y.set("lmqflst",Math.floor((0,_.eW)())),0);case 8:return _.H(X,y.remove("lmqflst"),0)}})};
ZLc=function(q){var w,u;return _.F(function(y){switch(y.nextAddress){case 1:return _.H(y,q.JSC$15995_prefStorage,2);case 2:w=y.yieldResult;if(!w){y.jumpTo(3);break}return _.H(y,w.get("lmqflst"),4);case 4:if(u=y.yieldResult,u!==void 0)return y.return(u);case 3:return y.return(0)}})};
pjV=function(q){var w,u;return _.F(function(y){switch(y.nextAddress){case 1:return _.H(y,q.JSC$15995_prefStorage,2);case 2:w=y.yieldResult;if(w===void 0){y.jumpTo(3);break}return _.H(y,w.get("lmqf"),4);case 4:if(u=y.yieldResult,u!==void 0)return y.return(u);case 3:return y.return("SD")}})};
Zac=function(q,w,u){var y,e,t,X,G,n,N,Q;_.F(function(I){switch(I.nextAddress){case 1:return _.H(I,Dac(q,(y=w)==null?void 0:y.actionParams),2);case 2:e=w.playlistId;if(!e)return I.return();if(w.action==="ACTION_ADD")return((X=w.actionParams)==null?0:X.formatType)?_.H(I,Vfx(q,e,w.actionParams.formatType,(Q=w.actionParams)==null?void 0:Q.settingsAction,u),0):_.H(I,q.offlineWebClientEligibility,14);if(w.action==="ACTION_REMOVE_WITH_PROMPT"){var U=q.JSC$15995_commandHandler,d=U.resolveCommand,V=_.Et("INNERTUBE_CLIENT_NAME");
var J=V==="WEB_REMIX"?_.ID("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.ID("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var a=V==="WEB_REMIX"?[_.ID("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];V=V==="WEB_REMIX"?_.ID("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.ID("DELETE",void 0,"Delete");var b=_.ID("CANCEL",void 0,"Cancel");J=zCA(J,a,V,b,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:e});d.call(U,{openPopupAction:J});
return I.return()}if(w.action==="ACTION_REMOVE")return _.H(I,Oah(q,e),0);if(w.action!=="ACTION_SYNC"){I.jumpTo(0);break}return _.H(I,q.JSC$15995_playerApiPromise,9);case 9:return t=I.yieldResult,_.H(I,t.queueOfflineAction(e,q.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return G=I.yieldResult,_.H(I,pjV(q),15);case 15:return n=I.yieldResult,_.H(I,ZLc(q),16);case 16:N=I.yieldResult,w.onAddCommand&&q.JSC$15995_commandHandler.resolveCommand(w.onAddCommand,{form:{preferredFormatType:n,
offlineWebClientEligibility:G,lastOfflineQualitySettingsSavedMs:N.toString()}}),I.jumpTo(0)}})};
aVB=function(q,w,u){var y,e,t,X,G,n,N,Q,I,U,d,V,J,a;_.F(function(b){switch(b.nextAddress){case 1:return _.H(b,Dac(q,(y=w)==null?void 0:y.actionParams),2);case 2:e=w.videoId;if(!e)return b.return();if(w.action==="ACTION_REMOVE_WITH_PROMPT"){var g=q.JSC$15995_commandHandler,l=g.resolveCommand,S=_.Et("INNERTUBE_CLIENT_NAME");var eH=S==="WEB_REMIX"?_.ID("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.ID("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var x=S==="WEB_REMIX"?[_.ID("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];S=S==="WEB_REMIX"?_.ID("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.ID("DELETE",void 0,"Delete");var P4=_.ID("CANCEL",void 0,"Cancel");eH=zCA(eH,x,S,P4,{signal:"DELETE_DOWNLOAD",targetId:e});l.call(g,{openPopupAction:eH});return b.return()}if(w.action==="ACTION_ADD")return((U=w.actionParams)==null?0:U.formatType)?_.H(b,maq(q,e,w.actionParams.formatType,(a=w.actionParams)==null?void 0:a.settingsAction,u),0):_.H(b,q.offlineWebClientEligibility,
23);if(w.action==="ACTION_RETRY")return _.H(b,pjV(q),19);if(w.action==="ACTION_PAUSE")return _.H(b,q.pauseVideoDownload(e),0);if(w.action==="ACTION_RESUME")return _.H(b,q.resumeVideoDownload(e),0);if(w.action!=="ACTION_REMOVE"){b.jumpTo(0);break}return _.H(b,fMa(q,e),13);case 13:return t=b.yieldResult,q.previousDownloadStateForVideo[e]=(X=t)!=null?X:"DOWNLOAD_STATE_UNKNOWN",_.H(b,JM6(q,e,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(q.previousDownloadStateForVideo[e]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
q.previousDownloadStateForVideo[e]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){b.jumpTo(15);break}return _.H(b,q.pauseVideoDownload(e),15);case 15:g=_.ID("DELETED_VIDEO",void 0,"Video deleted from downloads.");l=_.ID("UNDO_ACTION",void 0,"Undo");eH=_.ID("CLOSE",void 0,"Close");G={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.yU(g),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.yU(l),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:e}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:g+" "+l}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:e}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:eH}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};q.JSC$15995_commandHandler.resolveCommand(G);
b.jumpTo(0);break;case 19:n=b.yieldResult;n==="UNKNOWN_FORMAT_TYPE"&&(n="SD");N="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((Q=w.actionParams)==null?0:Q.formatType)n=w.actionParams.formatType,N=(I=w.actionParams)==null?void 0:I.settingsAction;return _.H(b,AMj(q,e,n,N,u),20);case 20:return b.return();case 23:return d=b.yieldResult,_.H(b,pjV(q),24);case 24:return V=b.yieldResult,_.H(b,ZLc(q),25);case 25:J=b.yieldResult,w.onAddCommand&&q.JSC$15995_commandHandler.resolveCommand(w.onAddCommand,
{form:{preferredFormatType:V,offlineWebClientEligibility:d,lastOfflineQualitySettingsSavedMs:J.toString()}}),b.jumpTo(0)}})};
$ac=function(q,w){var u,y,e,t,X,G,n;return _.F(function(N){if(N.nextAddress==1)return _.H(N,q.JSC$15995_persistentStorePromiseAccessor(),2);u=N.yieldResult;if(!u)return _.Y8(new _.fv("PES is undefined")),N.return();if((y=w)==null||!y.settingItemId)return N.return();e=w;t=e.settingItemId;X=e.boolValue;G=_.na(t,"settingEntity");n={key:G,settingOptionValue:{boolValue:X}};return _.H(N,gMj(u,n),0)})};
vd4=function(q,w){var u,y,e,t,X,G,n;return _.F(function(N){switch(N.nextAddress){case 1:return _.H(N,q.JSC$15995_prefStorage,2);case 2:return u=N.yieldResult,y=_.UC(),_.H(N,q.JSC$15995_persistentStorePromiseAccessor(),3);case 3:return e=N.yieldResult,u?e?_.H(N,u.get("sdois"),4):(_.Y8(new _.fv("PES is undefined")),N.return()):(_.Y8(new _.fv("prefStorage is undefined")),N.return());case 4:t=N.yieldResult;G=(X=w)==null?void 0:X.boolValue;G===void 0||_.T("kevlar_set_sd_enabled_flag_killswitch")||_.TM(0,
197,!0);t===void 0&&G===void 0&&(G=!1);if(G===void 0){N.jumpTo(0);break}return _.H(N,u.set("sdois",G),6);case 6:return _.T("kevlar_set_sd_enabled_flag_killswitch")||(_.TM(0,196,G),y.save()),n={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:G},_.H(N,$ac(q,n),0)}})};
bLT=function(q,w,u){var y,e,t,X,G;return _.F(function(n){switch(n.nextAddress){case 1:return _.H(n,zwB(q),2);case 2:return y=n.yieldResult,_.H(n,vd4(q,u),3);case 3:return _.H(n,zwB(q),4);case 4:return e=n.yieldResult,t=e!==y,_.H(n,aMq(q),5);case 5:X=n.yieldResult&&!_.T("kevlar_modern_downloads_page");if((G=!e&&!X)||t)return _.H(n,w.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);n.jumpTo(0)}})};
mtj=function(){var q=_.tG().resolve(_.L3),w;_.F(function(u){switch(u.nextAddress){case 1:return _.H(u,q.JSC$15995_playerApiPromise,2);case 2:w=u.yieldResult;if(!_.T("kevlar_force_refresh_smart_downloads")){u.jumpTo(3);break}return _.H(u,w.refreshAllStaleEntities(0),4);case 4:return u.return();case 3:return _.H(u,w.refreshAllStaleEntities(),5);case 5:return _.H(u,bLT(q,w),0)}})};
$tB=function(q,w){var u,y;_.F(function(e){switch(e.nextAddress){case 1:return _.H(e,q.JSC$15995_playerApiPromise,2);case 2:u=e.yieldResult;switch((y=w)==null?void 0:y.settingItemId){case "SMART_DOWNLOADS_ENABLED":return e.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return e.jumpTo(4)}e.jumpTo(0);break;case 3:return _.H(e,bLT(q,u,w),6);case 6:e.jumpTo(0);break;case 4:return _.H(e,$ac(q,w),7);case 7:e.jumpTo(0)}})};
Y66=function(q,w){var u,y,e;return _.F(function(t){if(t.nextAddress==1)return _.H(t,q.JSC$15995_persistentStorePromiseAccessor(),2);if(t.nextAddress!=3){u=t.yieldResult;if(!u)return _.Y8(new _.fv("PES is undefined")),t.return(!1);if(!w)return t.return(!1);y=_.na(w,"mainVideoEntity");return _.H(t,EMB(u,y,"mainVideoEntity"),3)}e=t.yieldResult;return t.return(e!==void 0)})};
baT=function(q){var w=_.tG().resolve(_.L3),u,y,e,t,X,G,n,N,Q,I,U;_.F(function(d){switch(d.nextAddress){case 1:return _.H(d,w.JSC$15995_playerApiPromise,2);case 2:u=d.yieldResult;e=(y=q)==null?void 0:y.actions;if(!e)return d.return();t=_.P(e);X=t.next();case 3:if(X.done){d.jumpTo(0);break}G=X.value;N=n=void 0;if(!(((n=G)==null?0:n.entityKey)&&((N=G)==null?0:N.actionType))){d.jumpTo(4);break}Q=_.XX(G.entityKey);I=Q.entityId;U=Q.entityType;return _.H(d,u.queueOfflineAction(I,U,G.actionType),4);case 4:X=
t.next(),d.jumpTo(3)}})};
gdh=function(q,w){var u,y,e,t,X;return _.F(function(G){if(G.nextAddress==1)return _.H(G,q.JSC$15995_prefStorage,2);if(G.nextAddress!=3)return(u=G.yieldResult)?_.H(G,u.get("psi"),3):G.return();y=G.yieldResult;X={isPaused:w,lastSyncTimestamp:(t=(e=y)==null?void 0:e.lastSyncTimestamp)!=null?t:"0"};return _.H(G,u.set("psi",X),0)})};
ENj=function(q){var w=_.tG().resolve(_.L3),u,y,e,t,X,G,n,N;return _.F(function(Q){switch(Q.nextAddress){case 1:return _.H(Q,w.JSC$15995_playerApiPromise,2);case 2:u=Q.yieldResult;e=((y=q)==null?void 0:y.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((G=q)==null?void 0:G.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":t="!*$_ALL_ENTITIES_!*$";X="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return Q.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return Q.jumpTo(4)}Q.jumpTo(5);break;case 3:return _.H(Q,gdh(w,e),6);case 6:Q.jumpTo(5);break;case 4:return _.H(Q,Y66(w,(n=q)==null?void 0:n.videoId),7);case 7:Q.yieldResult&&(t=(N=q)==null?void 0:N.videoId,X="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");Q.jumpTo(5);break;case 5:if(t&&X)return _.H(Q,u.queueOfflineAction(t,"videoPlaybackPositionEntity",X),0);Q.jumpTo(0)}})};
Edx=function(q,w){var u;w!==1||((u=q.currentPersistentToast)==null?0:u.isOpened())?q.openToast():q.currentPersistentToast=void 0};
Rw6=function(){var q,w,u,y;return _.F(function(e){if(e.nextAddress==1)return q=navigator,(w=q.storage)!=null&&w.persisted?_.H(e,(u=q.storage)==null?void 0:u.persisted(),2):e.return("PERSISTED_STATE_NOT_SUPPORTED");y=e.yieldResult;return e.return(y?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
cMa=function(){var q,w,u,y;return _.F(function(e){if(e.nextAddress==1)return q=navigator,(w=q.storage)!=null&&w.persist?_.H(e,(u=q.storage)==null?void 0:u.persist(),2):e.return("PERSISTED_STATE_NOT_SUPPORTED");y=e.yieldResult;return e.return(y?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
S6q=function(){var q,w;return _.F(function(u){switch(u.nextAddress){case 1:return q="PERSISTED_STATE_NOT_SUPPORTED",_.tD(u,2),_.H(u,Rw6(),4);case 4:q=u.yieldResult;if(q!=="PERSISTED_STATE_NOT_GRANTED"){u.jumpTo(5);break}return _.H(u,cMa(),6);case 6:q=u.yieldResult;case 5:_.jv(u,3);break;case 2:w=_.nm(u),w instanceof Error&&_.vm(w);case 3:return _.pn("persistentStorageStateChecked",{persistedState:q}),u.return(q)}})};
hwA=function(q,w){var u=[],y=!1;w=_.P(w);for(var e=w.next();!e.done;e=w.next()){e=q.moduleRegistry[e.value];var t=void 0,X=void 0;((t=e)==null?0:t.isFetching)&&((X=e)==null?0:X.resolver)?(u.push(e.resolver.promise),y=!0):(e=new _.Gt,e.resolve(void 0),u.push(e.promise))}return y?Promise.all(u):void 0};
j9K=function(q,w,u){u=u===void 0?{}:u;var y=q.defaultViewTransitionOptions,e=w.map(function(X){return X.beforeTransition}),t=w.map(function(X){return X.afterTransition});
return Object.assign({},y,u,{beforeTransition:function(){var X;(X=y.beforeTransition)==null||X.call(y);var G,n;(n=(G=u).beforeTransition)==null||n.call(G);X=_.P(e);for(G=X.next();!G.done;G=X.next())G=G.value,G()},
afterTransition:function(){var X;(X=y.afterTransition)==null||X.call(y);var G,n;(n=(G=u).afterTransition)==null||n.call(G);X=_.P(t);for(G=X.next();!G.done;G=X.next())G=G.value,G()}})};
lMq=function(q,w,u){var y,e,t,X,G,n,N;_.F(function(Q){if(q.config.disableAllTransitions)return Q.return(w());if((y=u)==null||!y.transitionName)return Q.return(_.BVq(w,(e=u)==null?void 0:e.viewTransitionOptions));t=u;X=t.transitionName;G=t.viewTransitionOptions;n=q.config.transitionConfigs.get(X);if(!n)return Q.return(w());var I;N=(I=q.transitionTasksMap.get(X))!=null?I:[];return Q.return(_.BVq(w,j9K(n,N,G)))})};
L_=function(q,w,u){q.transitionTasksMap.has(w)?q.transitionTasksMap.get(w).push(u):(q=new _.fv("Transition task registered for unknown transition name",w),_.vm(q))};
LPV=function(q,w,u){if(q.isInitialized()){var y=qp(u),e=y==="watch";y=y==="shorts";var t=qp(w)==="watch";if(e)t||(q.backgroundPageData=w),q.watchPipMode&&t||q.deactivate(u.endpoint);else if(y){if(qp(w)!=="shorts"){var X;(X=q.getPlayerElement())==null||X.pause()}}else t&&!q.watchPipMode&&(DZK(w,u)?(q.watchWhileMode&&_.qgA(q,!1),_.laT(q,w)):q.isMiniplayerActive()&&q.watchWhileMode&&q.deactivate());t&&_.uF6(q);q.shortsPipMode&&!y&&(window.focus(),q.deactivate());if(q.pictureInPictureEnabled())if(y&&
q.shortsPipEnabled||e&&q.watchPipEnabled)_.EOl(q.handleMediaSessionPipActivation);else if(!q.isMiniplayerActive()&&(q.shortsPipEnabled||q.watchPipEnabled)&&window.documentPictureInPicture&&_.Jz()&&_.nJz("Chromium")>=120){q=_.gOo().mediaSession;try{q.setActionHandler("enterpictureinpicture",null)}catch(G){}}}};
Mf6=function(q,w){var u,y;_.F(function(e){if(e.nextAddress==1){if(!q||!q.navigationEndpoint)return e.return();_.Hh().lockupActivation=!0;var t;w?t=_.jN(_.ID("QUEUE",void 0,"Queue")):t=q.longBylineText;y=(u=t)&&q.title?{miniplayerTitle:q.title,miniplayerSubtitle:u,playlistData:null}:void 0;return _.H(e,_.tdF(_.tG().resolve(_.$X),q.navigationEndpoint,!0,y),2)}_.Hh().userActivation=!0;_.HI(e)})};
$46=function(q,w){var u,y,e,t,X,G;_.F(function(n){if(n.nextAddress==1){u=_.C(w,_.N96);if(!u||!u.listId)return n.return();q.index=u.index||q.index||0;y=q.response&&q.response.playingVideoId||void 0;return _.H(n,_.Ep3(q.JSC$10703_playlistNetworkManager,u.listId,q.index,y),2)}e=n.yieldResult;if(!e)return n.return();t=e.playlistId;X=e.playlistPanelRenderer;!q.queueProxy&&t&&X&&t.startsWith("TLPQ")&&(q.queueProxy=new _.mE(q.JSC$10703_playlistNetworkManager,t,q.setPlaylistData.bind(q),q.clearQueue.bind(q),
_.M$4(X),q.storage));if(u.openMiniplayer&&(G=_.KEl(X))&&!q.pageManager.isOnWatch()){var N=G,Q=u.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";q.isMiniplayerActive()?q.openToast(N):Mf6(N,Q)}q.setPlaylistData(t,X,e.autoplayRenderer);_.HI(n)})};
D4x=function(q,w){var u=_.$u();u.index===void 0&&(u.index=0);u.temporaryItems.push.apply(u.temporaryItems,_.Cm(q));if((w.videoId||w.videoIds)&&u.index!==void 0&&w.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!u.queueProxy){var y=[];if(u.response){var e=_.tG().resolve(_.$X).isMiniplayerActive();if(u.response.playlistPanelRenderer&&u.response.playlistId&&!u.response.playlistId.startsWith("TLPQ")){if(u.pageManager.isOnWatch()||e)y=_.M$4(u.response.playlistPanelRenderer)}else u.response.playingVideoId&&
!w.openMiniplayer?y.push(u.response.playingVideoId):e&&u.response.playingVideoId&&w.openMiniplayer&&y.push(u.response.playingVideoId)}u.queueProxy=new _.mE(u.JSC$10703_playlistNetworkManager,"",u.setPlaylistData.bind(u),u.clearQueue.bind(u),y,u.storage);u.queueProxy.JSC$10649_setCurrentIndex(u.index)}u.queueProxy.addVideos(w.videoIds||[w.videoId],w)}SPB(u,q);u.response&&_.vh(u,_.bs(u,u.response.autoplayRenderer));u.pageManager.isOnWatch()?u.isMiniplayerActive()&&u.openToast(q[0]):(q=q[0],w=w.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",u.isMiniplayerActive()?u.openToast(q):Mf6(q,w))};
KPA=function(q){var w=_.IK(q);if(w=="object"||w=="array"){if(typeof q.clone==="function")return q.clone();if(typeof Map!=="undefined"&&q instanceof Map)return new Map(q);if(typeof Set!=="undefined"&&q instanceof Set)return new Set(q);w=w=="array"?[]:{};for(var u in q)w[u]=KPA(q[u]);return w}return q};
nW=function(q,w){return _.Lu6(_.sL(q,w,void 0,_.WS))};
Hg=function(q,w){return _.oK(_.sL(q,w,void 0,_.WS))};
Wg=function(q,w){return _.s6J(_.sL(q,w,void 0,_.WS))};
sR=function(q,w){return _.sL(q,w,void 0,_.WS,_.sA)};
BN4=_.ja(function(q,w,u){if(q.nextWireType_!==0)return!1;_.LA(w,u,_.py(q.decoder_,_.yH));return!0},_.xK,_.Yf);
xax=_.ja(function(q,w,u,y){if(q.nextWireType_!==0)return!1;_.r9(w,u,y,_.py(q.decoder_,_.yH));return!0},_.xK,_.Yf);
qO6=_.ja(function(q,w,u){if(q.nextWireType_!==1)return!1;var y=q.decoder_;q=_.b8(y);y=_.b8(y);q=_.wc(q,y);_.LA(w,u,q);return!0},_.jK6,_.pWf);
w6h=_.ja(function(q,w,u){if(q.nextWireType_!==5)return!1;_.LA(w,u,_.b8(q.decoder_));return!0},function(q,w,u){w=_.VH(w);
w!=null&&(_.Mz(q,u,5),_.B3(q.encoder_,w))},_.Zbl);
uy6=_.ja(function(q,w,u){if(q.nextWireType_!==0)return!1;q=_.sso(q.decoder_);_.LA(w,u,q===!1?void 0:q);return!0},_.lau,_.J$H);
yBH=_.ja(function(q,w,u){if(q.nextWireType_!==2)return!1;q=_.UoM(q);_.LA(w,u,q===""?void 0:q);return!0},_.Mqf,_.zaz);
eHm=_.ja(function(q,w,u){if(q.nextWireType_!==2)return!1;q=_.TnM(q);_.LA(w,u,q===_.bP()?void 0:q);return!0},_.Bc6,_.bb4);
kjB=_.v6u(function(q,w,u){if(q.nextWireType_!==0&&q.nextWireType_!==2)return!1;w=_.fA(w,w[_.f$]|0,u);q.nextWireType_==2?_.CtM(q,reT,w):w.push(_.$f(q.decoder_));return!0},function(q,w,u){w=_.$6l(_.oK,w,!0);
if(w!=null&&w.length){u=_.WTl(q,u);for(var y=0;y<w.length;y++)_.cxf(q.encoder_,w[y]);_.sKz(q,u)}},_.YTH);
tDB=_.ja(function(q,w,u){if(q.nextWireType_!==0)return!1;q=_.$f(q.decoder_);_.LA(w,u,q===0?void 0:q);return!0},_.x6s,_.YTH);
Pna=_.ja(function(q,w,u,y){if(q.nextWireType_!==0)return!1;_.r9(w,u,y,_.$f(q.decoder_));return!0},_.x6s,_.YTH);
_.S9=function(q){this.privateDoNotAccessOrElseWrappedStyleSheet=q};
_.S9.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var SMT=function(q,w){return new _.Vx(q.x+w.x,q.y+w.y)},X6B=function(q){return q.previousElementSibling!==void 0?q.previousElementSibling:_.Ssk(q.previousSibling,!1)},F6m=function(q,w){var u=[];
for(w=w||0;w<q.length;w+=2)_.DTT(q[w],q[w+1],u);return u.join("&")},Gja=function(q,w){var u=arguments.length==2?F6m(arguments[1],0):F6m(arguments,1);
return _.aZP(q,u)},nBK=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(nBK,_.bE);nBK.prototype.getValue=function(){var q=_.sL(this,2);if(Array.isArray(q)||q instanceof _.bE)throw Error("aa");return _.IG(this,2)};
var GdV=function(){var q=_.te();this.JSC$7817_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.t1("channel_type"))};
GdV.prototype.increment=function(q){this.JSC$7817_streamzService.JSC$7690_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",q)};
var n$B=function(){var q=_.te();this.JSC$7820_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.t1("channel_type"))};
n$B.prototype.increment=function(q){this.JSC$7820_streamzService.JSC$7690_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",q)};
var WMV=function(){var q=_.te();this.JSC$7823_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.t1("channel_type"))};
WMV.prototype.increment=function(q){this.JSC$7823_streamzService.JSC$7690_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",q)};
var HJV=function(){var q=_.te();this.JSC$7826_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
HJV.prototype.increment=function(){this.JSC$7826_streamzService.JSC$7690_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var sv6=function(){var q=_.te();this.JSC$7829_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.t1("channel_type"),_.t1("error_type"))};
sv6.prototype.increment=function(q,w){this.JSC$7829_streamzService.JSC$7690_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",q,w)};
var NA6=function(){var q=_.te();this.JSC$7832_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
NA6.prototype.increment=function(){this.JSC$7832_streamzService.JSC$7690_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var Qvx=function(){var q=_.te();this.JSC$7835_streamzService=q;q.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
Qvx.prototype.increment=function(){this.JSC$7835_streamzService.JSC$7690_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var Ppa=function(){var q=_.te();this.JSC$7841_streamzService=q;q.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
Ppa.prototype.increment=function(){this.JSC$7841_streamzService.JSC$7690_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var Hxc=function(q){return q.getCount&&typeof q.getCount=="function"?q.getCount():_.uP(q)||typeof q==="string"?q.length:_.db.getCount(q)},W6h=function(q,w){if(typeof q.every=="function")return q.every(w,void 0);
if(_.uP(q)||typeof q==="string")return Array.prototype.every.call(q,w,void 0);for(var u=_.fL3(q),y=_.h5(q),e=y.length,t=0;t<e;t++)if(!w.call(void 0,y[t],u&&u[t],q))return!1;return!0},sgA=function(q,w,u,y){var e=new _.M4(null);
q&&_.jn(e,q);w&&_.lh(e,w);u&&_.LM(e,u);y&&_.MF(e,y);return e},NLh=function(){var q=_.g$&&_.NM(_.YZZ,10)>=0,w;
if(w=_.mgl)w=_.NM(_.bD6,10)>=0;var u=_.Gs&&_.NM(_.YZZ,85)>=0;return _.tv||q||w||u},Qg6=function(q){var w=_.Wjk(q);
return w&&NLh()?-q.scrollLeft:w&&_.EN(q,"overflowX")!="visible"?q.scrollWidth-q.clientWidth-q.scrollLeft:q.scrollLeft},IhT=function(q,w){w=Math.max(w,0);
_.Wjk(q)?NLh()?q.scrollLeft=-w:q.scrollLeft=q.scrollWidth-w-q.clientWidth:q.scrollLeft=w},LL6=0,q8K=!1;
uT.prototype.set=function(q){this.relativeTimeStart_=q};
uT.prototype.reset=function(){this.set(_.qG())};
uT.prototype.get=function(){return this.relativeTimeStart_};
var ixc=null,rBc=function(){ixc||(ixc=new uT)},U26=function(){ixc||(ixc=new uT)};
_.w9(U26,rBc);_.k=ucK.prototype;_.k.JSC$9159_buffer_="";_.k.set=function(q){this.JSC$9159_buffer_=""+q};
_.k.append=function(q,w,u){this.JSC$9159_buffer_+=String(q);if(w!=null)for(var y=1;y<arguments.length;y++)this.JSC$9159_buffer_+=arguments[y];return this};
_.k.clear=function(){this.JSC$9159_buffer_=""};
_.k.getLength=function(){return this.JSC$9159_buffer_.length};
_.k.toString=function(){return this.JSC$9159_buffer_};
var TLA=function(){var q={type:"unit",style:"narrow"};this.listType_=q&&q.type?q.type:"conjunction";this.listStyle_=q&&q.style?q.style:"long";this.listSymbols_=VQV;q=0;switch(this.listStyle_){case "short":q=1;break;case "narrow":q=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[q];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[q];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[q];this.listEndPattern_=
this.listSymbols_.AND_END[q];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[q];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[q];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[q];this.listEndPattern_=this.listSymbols_.OR_END[q];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[q],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[q],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[q],this.listEndPattern_=this.listSymbols_.UNIT_END[q]}};
TLA.prototype.format=function(q){return Cn6(this,q)};
var Cn6=function(q,w){var u=w.length;switch(u){case 0:return"";case 1:return String(w[0]);case 2:return q.listTwoPattern_.replace("{0}",String(w[0])).replace("{1}",String(w[1]))}for(var y=q.listStartPattern_.replace("{0}",String(w[0])).replace("{1}",String(w[1])),e=2;e<u-1;++e)y=q.listMiddlePattern_.replace("{0}",y).replace("{1}",String(w[e]));return q.listEndPattern_.replace("{0}",y).replace("{1}",String(w[u-1]))},iva=function(){var q={style:1};
this.style_=(q==null?void 0:q.style)||0;this.durationSymbols_=_.QTa||_.Ut3},d2m=function(q,w){switch(w){default:case "years":return q.durationSymbols_.YEAR;
case "months":return q.durationSymbols_.MONTH;case "weeks":return q.durationSymbols_.WEEK;case "days":return q.durationSymbols_.DAY;case "hours":return q.durationSymbols_.HOUR;case "minutes":return q.durationSymbols_.MINUTE;case "seconds":return q.durationSymbols_.SECOND}},N7=function(q,w,u){a:{u=d2m(q,u);
switch(q.style_){case 1:if(u.LONG!=void 0){q=u.LONG;break a}case 2:if(u.NARROW!=void 0){q=u.NARROW;break a}default:q=u.SHORT;break a}q=void 0}return q?(new _.Rjr("{DURATION_VALUE,plural,"+q+"}")).format({DURATION_VALUE:w}):""};
iva.prototype.format=function(q){var w=[],u=q.years,y=q.months,e=q.weeks,t=q.days,X=q.hours,G=q.minutes;q=q.seconds;u!=null&&w.push(N7(this,u,"years"));y!=null&&w.push(N7(this,y,"months"));e!=null&&w.push(N7(this,e,"weeks"));t!=null&&w.push(N7(this,t,"days"));X!=null&&w.push(N7(this,X,"hours"));G!=null&&w.push(N7(this,G,"minutes"));q!=null&&w.push(N7(this,q,"seconds"));return(new TLA).format(w)};
var Ox4=!1,FIa=function(q){_.qM.call(this,q.message||q.description||q.name);this.isMissing=q instanceof yn;this.isTimeout=q instanceof _.SA&&q.errorCode=="net.timeout";this.isCanceled=q instanceof _.hK};
_.O(FIa,_.qM);FIa.prototype.name="BiscottiError";var yn=function(){_.qM.call(this,"Biscotti ID is missing from server")};
_.O(yn,_.qM);yn.prototype.name="BiscottiMissingError";var eI=null,ONq=function(){try{var q=_.hP("yt.ads.biscotti.getId_");return q?q():Ew4()}catch(w){return _.og(w)}},I76,oBc=function(q){return _.tr({type:"SET_GUIDE_IS_EXPANDED",
payload:q})},VDB=function(q){return _.tr({type:"SET_ONLINE_STATUS",
payload:q})},fhV=function(q,w){return _.tr({type:"SET_TRANSCRIPTION_STATE",
payload:{high:q,low:w}})},m26=function(q){return _.tr({type:"SET_OVERLAY_STATE",
payload:q})},AB4=0,JBh=function(q,w,u){var y=this;
this.priority=w;this.delay=u;this.jobId=0;this.completionCallback=_.sb;this.wrappedJob=function(){q();y.completionCallback()};
this.id=++AB4};
JBh.prototype.enqueue=function(q){this.completionCallback=q;this.jobId=_.pi.addJob(this.wrappedJob,this.priority,this.delay)};
var Qq=function(){_.xQ.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.O(Qq,_.xQ);Qq.prototype.addJob=function(q,w,u){q=new JBh(q,w,u);this.taskIdToTask.set(q.id,q);this.isActive?zHx(this,q):this.suspendedTasks.add(q);return q.id};
var zHx=function(q,w){q.scheduledTasks.add(w);w.enqueue(function(){q.scheduledTasks.delete(w)})};
Qq.prototype.cancelJob=function(q){(q=this.taskIdToTask.get(q))&&(this.scheduledTasks.delete(q)?_.pi.cancelJob(q.jobId):this.suspendedTasks.delete(q))};
Qq.prototype.pause=function(){var q=this;this.isActive=!1;this.scheduledTasks.forEach(function(w){_.pi.cancelJob(w.jobId);q.suspendedTasks.add(w)});
this.scheduledTasks.clear()};
Qq.prototype.start=function(){var q=this;this.isActive=!0;this.suspendedTasks.forEach(function(w){zHx(q,w)});
this.suspendedTasks.clear()};
Qq.prototype.reset=function(){this.scheduledTasks.forEach(function(q){_.pi.cancelJob(q.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var I$=function(q,w){this.JSC$10833_networkService_=q;this.pageRequestPromise=w};
I$.prototype.fetchData=function(q){ah6(this,this.JSC$10833_networkService_.fetchData(q))};
I$.prototype.postData=function(q,w){ah6(this,this.JSC$10833_networkService_.postData(q,w))};
I$.prototype.requestDataForServiceEndpoint=function(q,w){ah6(this,this.JSC$10833_networkService_.requestDataForServiceEndpoint(q,w))};
var ah6=function(q,w){w.then(q.pageRequestPromise.onSuccess,q.pageRequestPromise.onFailure,q.pageRequestPromise)};
I$.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var iJ=function(q){this.buildNetworkRequest_=q;this.pendingRequests_=new Set};
iJ.prototype.reset=function(){this.pendingRequests_.forEach(function(q){q.cancel()});
this.pendingRequests_.clear()};
iJ.prototype.fetchData=function(q){var w=D2V(this);w.fetchData(q);return w.pageRequestPromise};
iJ.prototype.postData=function(q,w){var u=D2V(this);u.postData(q,w);return u.pageRequestPromise};
iJ.prototype.requestDataForServiceEndpoint=function(q,w){var u=D2V(this);u.requestDataForServiceEndpoint(q,w);return u.pageRequestPromise};
var D2V=function(q){var w=q.buildNetworkRequest_();q.pendingRequests_.add(w);var u=function(){q.pendingRequests_.delete(w)};
w.pageRequestPromise.then(u,u);return w},ZxH=function(q){var w=new Qq;
this.JSC$10840_networkService_=q;this.JSC$10840_taskManager_=w;this.JSC$10840_networkManager_=new iJ(this.networkRequestFactory_.bind(this))};
_.k=ZxH.prototype;_.k.networkRequestFactory_=function(){return new I$(this.JSC$10840_networkService_,new _.Bh(this.JSC$10840_taskManager_))};
_.k.reset=function(){this.JSC$10840_taskManager_.reset();this.JSC$10840_networkManager_.reset()};
_.k.start=function(){this.JSC$10840_taskManager_.start()};
_.k.pause=function(){this.JSC$10840_taskManager_.pause()};
_.k.getTaskManager=function(){return this.JSC$10840_taskManager_};
_.k.getNetworkManager=function(){return this.JSC$10840_networkManager_};
var duj=null,Vvh=[],kb=0,PP=0,tu=null,p6B=function(){var q=(0,_.zsZ)();q&&m_x(q,q.mechanism.__iterator__(!0))},Fw=function(q){this.token=q};
Fw.getInstance=function(){var q;return _.F(function(w){if(w.nextAddress==1)return _.H(w,_.uY(),2);q=w.yieldResult;if(!q)return w.return();Fw.instance||(Fw.instance=new Fw(q));return w.return(Fw.instance)})};
var a7h=function(q){var w;return _.F(function(u){if(u.nextAddress==1)return _.H(u,AGm(q.token),2);w=u.yieldResult;return u.return(w.clear("resource-manifest-assets"))})},Xw=function(q){this.token=q};
Xw.getInstance=function(){var q;return _.F(function(w){if(w.nextAddress==1)return _.H(w,_.uY(),2);q=w.yieldResult;if(!q)return w.return();Xw.instance||(Xw.instance=new Xw(q));return w.return(Xw.instance)})};
var JGj=function(q){var w;return _.F(function(u){if(u.nextAddress==1)return _.H(u,AGm(q.token),2);w=u.yieldResult;return _.H(u,w.clear("auth"),0)})},$2x=!1,Ge=null,hW4=void 0,wTj=!1,vB6=function(q){_.qM.call(this,q)};
_.O(vB6,_.sWG);var wf6=function(){var q=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return q?parseInt(q[1],10):0},bxT=function(q){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+q)!=-1||document.currentScript.src.indexOf("&"+q)!=-1)},YOj=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},tp4=function(q){q.length?gBc(q.shift(),function(){tp4(q)}):yp4()},XfT=function(q){return"chrome-extension://"+q+"/cast_sender.js"},gBc=function(q,
w,u){var y=document.createElement("script");
y.onerror=w;u&&(y.onload=u);_.bZ(y,_.A1(q));(document.head||document.documentElement).appendChild(y)},EBK=function(){var q=wf6(),w=[];
if(q>1){var u=q-1;w.push("//www.gstatic.com/eureka/clank/"+q+"/cast_sender.js");w.push("//www.gstatic.com/eureka/clank/"+u+"/cast_sender.js")}return w},yp4=function(){var q=YOj();
q&&q(!1,"No cast extension found")},k6A=function(){if(RHx){var q=2,w=YOj(),u=function(){q--;
q==0&&w&&w(!0)};
window.__onGCastApiAvailable=u;gBc("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",yp4,u)}},ubx=function(){k6A();
var q=EBK();q.push("//www.gstatic.com/eureka/clank/cast_sender.js");tp4(q)},eUq=function(){k6A();
var q=EBK();q.push.apply(q,_.Cm(P9q.map(XfT)));q.push("//www.gstatic.com/eureka/clank/cast_sender.js");tp4(q)},RHx=bxT("loadCastFramework")||bxT("loadCastApplicationFramework"),P9q=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var cB6=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(cB6,_.bE);var SO6=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(SO6,_.bE);var hHT=function(){var q=new SO6;return _.DS(q,1,3)};var ri=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(ri,_.bE);var MWA=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(MWA,_.bE);var jgm=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(jgm,_.bE);jgm.prototype.getToken=function(){return _.fy(this,1)};
jgm.prototype.setToken=function(q){return _.KV(this,1,q)};
var lTH=function(q){return _.T_(q,3,_.Y6,_.uI())},Lra=function(q){return _.T_(q,6,_.Y6,_.uI())};var UR=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(UR,_.bE);UR.prototype.getToken=function(){return _.PT(this,jgm,2)};
UR.prototype.setToken=function(q){return _.e9(this,2,q)};
UR.prototype.getName=function(){return _.fy(this,6)};
var lhc=_.uZ(UR);var L6B=function(q,w,u){this.requestMessage=q;this.methodDescriptor=w;this.metadata=u};
L6B.prototype.getMetadata=function(){return this.metadata};var MDH=function(q,w){w=w===void 0?{}:w;this.responseMessage=q;this.metadata=w;this.status=null};
MDH.prototype.getMetadata=function(){return this.metadata};
MDH.prototype.getStatus=function(){return this.status};var Tq=function(q,w,u,y,e){this.name=q;this.methodType="unary";this.requestType=w;this.responseType=u;this.requestSerializeFn=y;this.responseDeserializeFn=e},K6m=function(q,w,u){u=u===void 0?{}:u;
return new L6B(w,q,u)};
Tq.prototype.getName=function(){return this.name};var CW=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(CW,_.bE);CW.prototype.setHeader=function(q){return _.e9(this,1,q)};
CW.prototype.hasHeader=function(){return _.NG(this,ri,1)};var BLV=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(BLV,_.bE);var x2A=new Tq("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",CW,BLV,function(q){return q.serialize()},_.uZ(BLV));var di=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(di,_.bE);di.prototype.setHeader=function(q){return _.e9(this,1,q)};
di.prototype.hasHeader=function(){return _.NG(this,ri,1)};var q3V=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(q3V,_.bE);var wRB=new Tq("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",di,q3V,function(q){return q.serialize()},_.uZ(q3V));var OR=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(OR,_.bE);OR.prototype.setHeader=function(q){return _.e9(this,1,q)};
OR.prototype.hasHeader=function(){return _.NG(this,ri,1)};var uKx=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(uKx,_.bE);uKx.prototype.getLink=function(){return _.PT(this,UR,1)};var yE6=new Tq("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",OR,uKx,function(q){return q.serialize()},_.uZ(uKx));var o$=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(o$,_.bE);o$.prototype.setHeader=function(q){return _.e9(this,1,q)};
o$.prototype.hasHeader=function(){return _.NG(this,ri,1)};var eQH=new Tq("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",o$,UR,function(q){return q.serialize()},lhc);var kWa=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(kWa,_.bE);var t6K=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(t6K,_.bE);t6K.prototype.getUrl=function(){return _.fy(this,2)};
t6K.prototype.setUrl=function(q){return _.KV(this,2,q)};var PvB=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(PvB,_.bE);var XRT=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(XRT,_.bE);var Fsm=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Fsm,_.bE);var PD6=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(PD6,_.bE);var twB=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(twB,_.bE);var GW4=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(GW4,_.bE);var sAa=_.uZ(GW4);var noc=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(noc,_.bE);var Vq=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Vq,_.bE);Vq.prototype.setHeader=function(q){return _.e9(this,1,q)};
Vq.prototype.hasHeader=function(){return _.NG(this,ri,1)};
Vq.prototype.getCompletionUrl=function(){return _.fy(this,6)};
Vq.prototype.getDeviceId=function(){return _.fy(this,11)};var HTV=new Tq("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",Vq,GW4,function(q){return q.serialize()},sAa);var WsT=new Set(["SAPISIDHASH","APISIDHASH"]);var sVV=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(sVV,_.bE);sVV.prototype.getMessage=function(){return _.fy(this,2)};
var Nmh=_.uZ(sVV);var fW=function(q,w){this.xhrNodeReadableStream_=q.nodeReadableStream;this.grpcResponseDeserializeFn_=w;this.JSC$16918_xhr_=q.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$16918_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&QVm(this)},Cvj=function(q,w){var u=new IK6;
_.dL(q.JSC$16918_xhr_,"complete",function(){if(q.JSC$16918_xhr_.isSuccess()){var y=q.JSC$16918_xhr_.getResponseText();var e;if(e=w)e=q.JSC$16918_xhr_,e.JSC$7699_xhr_&&e.isComplete()?(e=e.JSC$7699_xhr_.getResponseHeader("Content-Type"),e=e===null?void 0:e):e=void 0,e=e==="text/plain";if(e){if(!atob)throw Error("Jj");y=atob(y)}try{var t=q.grpcResponseDeserializeFn_(y)}catch(G){m9(q,Zij(new _.CM(13,"Error when deserializing response data; error: "+G+(", response: "+y)),u));return}y=_.nY(q.JSC$16918_xhr_.getStatus());
iTj(q,rET(q));y==0?U9T(q,t):m9(q,Zij(new _.CM(y,"Xhr succeeded but the status code is not 200"),u))}else{y=q.JSC$16918_xhr_.getResponseText();t=rET(q);if(y){var X=Tmc(q,y);y=X.code;e=X.details;X=X.metadata}else y=2,e="Rpc failed due to xhr error. uri: "+String(q.JSC$16918_xhr_.JSC$7699_lastUri_)+", error code: "+q.JSC$16918_xhr_.JSC$7699_lastErrorCode_+", error: "+q.JSC$16918_xhr_.getLastError(),X=t;iTj(q,t);m9(q,Zij(new _.CM(y,e,X),u))}})},QVm=function(q){q.xhrNodeReadableStream_.on("data",function(w){if("1"in
w){var u=w["1"];
try{var y=q.grpcResponseDeserializeFn_(u)}catch(e){m9(q,new _.CM(13,"Error when deserializing response data; error: "+e+(", response: "+u)))}y&&U9T(q,y)}if("2"in w)for(w=Tmc(q,w["2"]),u=0;u<q.onStatusCallbacks_.length;u++)q.onStatusCallbacks_[u](w)});
q.xhrNodeReadableStream_.on("end",function(){iTj(q,rET(q));for(var w=0;w<q.onEndCallbacks_.length;w++)q.onEndCallbacks_[w]()});
q.xhrNodeReadableStream_.on("error",function(){if(q.JSC$16918_onErrorCallbacks_.length!=0){var w=q.JSC$16918_xhr_.JSC$7699_lastErrorCode_;w!==0||q.JSC$16918_xhr_.isSuccess()||(w=6);var u=-1;switch(w){case 0:var y=2;break;case 7:y=10;break;case 8:y=4;break;case 6:u=q.JSC$16918_xhr_.getStatus();y=_.nY(u);break;default:y=14}iTj(q,rET(q));w=_.t9a(w)+", error: "+q.JSC$16918_xhr_.getLastError();u!=-1&&(w+=", http status code: "+u);m9(q,new _.CM(y,w))}})},rET=function(q){var w={},u=Op6(q.JSC$16918_xhr_);
Object.keys(u).forEach(function(y){w[y]=u[y]});
return w},Tmc=function(q,w){var u=2,y={};
try{var e=Nmh(w);u=_.yG(e,1);var t=e.getMessage();_.wg(e,nBK,3,_.uI()).length&&(y["grpc-web-status-details-bin"]=w)}catch(X){q.JSC$16918_xhr_&&q.JSC$16918_xhr_.getStatus()===404?(u=5,t="Not Found: "+String(q.JSC$16918_xhr_.JSC$7699_lastUri_)):(u=14,t="Unable to parse RpcStatus: "+X)}return{code:u,details:t,metadata:y}};
fW.prototype.on=function(q,w){q=="data"?this.onDataCallbacks_.push(w):q=="metadata"?this.onMetadataCallbacks_.push(w):q=="status"?this.onStatusCallbacks_.push(w):q=="end"?this.onEndCallbacks_.push(w):q=="error"&&this.JSC$16918_onErrorCallbacks_.push(w);return this};
var AN=function(q,w){w=q.indexOf(w);w>-1&&q.splice(w,1)};
fW.prototype.removeListener=function(q,w){q=="data"?AN(this.onDataCallbacks_,w):q=="metadata"?AN(this.onMetadataCallbacks_,w):q=="status"?AN(this.onStatusCallbacks_,w):q=="end"?AN(this.onEndCallbacks_,w):q=="error"&&AN(this.JSC$16918_onErrorCallbacks_,w);return this};
fW.prototype.cancel=function(){this.JSC$16918_xhr_.abort()};
var U9T=function(q,w){for(var u=0;u<q.onDataCallbacks_.length;u++)q.onDataCallbacks_[u](w)},iTj=function(q,w){for(var u=0;u<q.onMetadataCallbacks_.length;u++)q.onMetadataCallbacks_[u](w)},m9=function(q,w){for(var u=0;u<q.JSC$16918_onErrorCallbacks_.length;u++)q.JSC$16918_onErrorCallbacks_[u](w)};
fW.prototype.cancel=fW.prototype.cancel;fW.prototype.removeListener=fW.prototype.removeListener;fW.prototype.on=fW.prototype.on;var IK6=function(){var q=Error.call(this);this.message=q.message;"stack"in q&&(this.stack=q.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.O(IK6,Error);var JN=function(q){this.JSC$16927_worker_=q.worker||null;this.JSC$16927_streamBinaryChunks_=q.streamBinaryChunks||!1;this.JSC$16927_credentialsMode_=void 0};
_.w9(JN,_.MiM);JN.prototype.createInstance=function(){var q=new zq(this.JSC$16927_worker_,this.JSC$16927_streamBinaryChunks_);this.JSC$16927_credentialsMode_&&q.setCredentialsMode(this.JSC$16927_credentialsMode_);return q};
JN.prototype.setCredentialsMode=function(q){this.JSC$16927_credentialsMode_=q};
var zq=function(q,w){_.Q4.call(this);this.JSC$16931_worker_=q;this.JSC$16931_streamBinaryChunks_=w;this.JSC$16931_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$16931_responseHeaders_=null;this.JSC$16931_method_="GET";this.JSC$16931_url_="";this.inProgress_=!1;this.JSC$16931_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.w9(zq,_.Q4);zq.prototype.open=function(q,w){if(this.readyState!=0)throw this.abort(),Error("Kj");this.JSC$16931_method_=q;this.JSC$16931_url_=w;this.readyState=1;a$(this)};
zq.prototype.send=function(q){if(this.readyState!=1)throw this.abort(),Error("Lj");this.inProgress_=!0;var w={headers:this.requestHeaders_,method:this.JSC$16931_method_,credentials:this.JSC$16931_credentialsMode_,cache:void 0};q&&(w.body=q);(this.JSC$16931_worker_||_.uc).fetch(new Request(this.JSC$16931_url_,w)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
zq.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,Dx(this));this.readyState=0};
zq.prototype.handleResponse_=function(q){if(this.inProgress_&&(this.fetchResponse_=q,this.JSC$16931_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$16931_responseHeaders_=q.headers,this.readyState=2,a$(this)),this.inProgress_&&(this.readyState=3,a$(this),this.inProgress_)))if(this.responseType==="arraybuffer")q.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.uc.ReadableStream!==
"undefined"&&"body"in q){this.currentReader_=q.body.getReader();if(this.JSC$16931_streamBinaryChunks_){if(this.responseType)throw Error("Mj");this.response=[]}else this.response=this.responseText="",this.JSC$16931_textDecoder_=new TextDecoder;d9h(this)}else q.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var d9h=function(q){q.currentReader_.read().then(q.handleDataFromStream_.bind(q)).catch(q.handleSendFailure_.bind(q))};
zq.prototype.handleDataFromStream_=function(q){if(this.inProgress_){if(this.JSC$16931_streamBinaryChunks_&&q.value)this.response.push(q.value);else if(!this.JSC$16931_streamBinaryChunks_){var w=q.value?q.value:new Uint8Array(0);if(w=this.JSC$16931_textDecoder_.decode(w,{stream:!q.done}))this.response=this.responseText+=w}q.done?Dx(this):a$(this);this.readyState==3&&d9h(this)}};
zq.prototype.handleResponseText_=function(q){this.inProgress_&&(this.response=this.responseText=q,Dx(this))};
zq.prototype.handleResponseArrayBuffer_=function(q){this.inProgress_&&(this.response=q,Dx(this))};
zq.prototype.handleSendFailure_=function(){this.inProgress_&&Dx(this)};
var Dx=function(q){q.readyState=4;q.fetchResponse_=null;q.currentReader_=null;q.JSC$16931_textDecoder_=null;a$(q)};
zq.prototype.setRequestHeader=function(q,w){this.requestHeaders_.append(q,w)};
zq.prototype.getResponseHeader=function(q){return this.JSC$16931_responseHeaders_?this.JSC$16931_responseHeaders_.get(q.toLowerCase())||"":""};
zq.prototype.getAllResponseHeaders=function(){if(!this.JSC$16931_responseHeaders_)return"";for(var q=[],w=this.JSC$16931_responseHeaders_.entries(),u=w.next();!u.done;)u=u.value,q.push(u[0]+": "+u[1]),u=w.next();return q.join("\r\n")};
zq.prototype.setCredentialsMode=function(q){this.JSC$16931_credentialsMode_=q};
var a$=function(q){q.onreadystatechange&&q.onreadystatechange.call(q)};
Object.defineProperty(zq.prototype,"withCredentials",{get:function(){return this.JSC$16931_credentialsMode_==="include"},
set:function(q){this.setCredentialsMode(q?"include":"same-origin")}});var OT4=function(q){var w="";_.db.forEach(q,function(u,y){w+=y;w+=":";w+=u;w+="\r\n"});
return w},ooj=function(q,w,u){if(_.db.isEmpty(u))return q;
u=OT4(u);if(typeof q==="string")return _.vU(q,_.lo(w),u);_.lI(q,w,u);return q};var V6c=function(){this.isInputValid_=!0;this.JSC$16937_streamPos_=0;this.leftoverInput_=""};
V6c.prototype.isInputValid=function(){return this.isInputValid_};var WP=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$16940_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
WP.prototype.isInputValid=function(){return this.state_!=3};
var Zx=function(q,w,u,y){q.state_=3;q.errorMessage_="The stream is broken @"+q.JSC$16940_streamPos_+"/"+u+". Error: "+y+". With input:\n"+w;throw Error(q.errorMessage_);};
WP.prototype.acceptsBinaryInput=function(){return!0};
WP.prototype.parse=function(q){function w(n){n&128&&Zx(t,X,G,"invalid tag");(n&7)!=2&&Zx(t,X,G,"invalid wire type");t.tag_=n>>>3;t.tag_!=1&&t.tag_!=2&&t.tag_!=15&&Zx(t,X,G,"unexpected tag");t.state_=1;t.length_=0;t.countLengthBytes_=0}
function u(n){t.countLengthBytes_++;t.countLengthBytes_==5&&n&240&&Zx(t,X,G,"message length too long");t.length_|=(n&127)<<(t.countLengthBytes_-1)*7;n&128||(t.state_=2,t.countMessageBytes_=0,typeof Uint8Array!=="undefined"?t.messageBuffer_=new Uint8Array(t.length_):t.messageBuffer_=Array(t.length_),t.length_==0&&e())}
function y(n){t.messageBuffer_[t.countMessageBytes_++]=n;t.countMessageBytes_==t.length_&&e()}
function e(){if(t.tag_<15){var n={};n[t.tag_]=t.messageBuffer_;t.result_.push(n)}t.state_=0}
for(var t=this,X=q instanceof Array?q:new Uint8Array(q),G=0;G<X.length;){switch(t.state_){case 3:Zx(t,X,G,"stream already broken");break;case 0:w(X[G]);break;case 1:u(X[G]);break;case 2:y(X[G]);break;default:throw Error("Oj`"+t.state_);}t.JSC$16940_streamPos_++;G++}q=t.result_;t.result_=[];return q.length>0?q:null};var $Qj=function(){this.errorMessage_=null;this.JSC$16943_streamPos_=0;this.base64Decoder_=new V6c;this.pbParser_=new WP};
$Qj.prototype.isInputValid=function(){return this.errorMessage_===null};
var fK6=function(q,w,u){q.errorMessage_="The stream is broken @"+q.JSC$16943_streamPos_+". Error: "+u+". With input:\n"+w;throw Error(q.errorMessage_);};
$Qj.prototype.acceptsBinaryInput=function(){return!1};
$Qj.prototype.parse=function(q){this.errorMessage_!==null&&fK6(this,q,"stream already broken");var w=null;try{var u=this.base64Decoder_;if(!u.isInputValid_)throw u.isInputValid_=!1,Error("Nj`"+u.JSC$16937_streamPos_+"`stream already broken`"+q);u.leftoverInput_+=q;var y=Math.floor(u.leftoverInput_.length/4);if(y==0)var e=null;else{try{var t=_.stc(u.leftoverInput_.slice(0,y*4))}catch(n){var X=u.leftoverInput_,G=n.message;u.isInputValid_=!1;throw Error("Nj`"+u.JSC$16937_streamPos_+"`"+G+"`"+X);}u.JSC$16937_streamPos_+=
y*4;u.leftoverInput_=u.leftoverInput_.slice(y*4);e=t}w=e===null?null:this.pbParser_.parse(e)}catch(n){fK6(this,q,n.message)}this.JSC$16943_streamPos_+=q.length;return w};var pTm=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$16946_streamPos_=0;this.result_=[];this.statusParsed_=!1};
pTm.prototype.isInputValid=function(){return this.errorMessage_===null};
pTm.prototype.acceptsBinaryInput=function(){return!1};
pTm.prototype.parse=function(q){function w(n){t.state_=6;t.errorMessage_="The stream is broken @"+t.JSC$16946_streamPos_+"/"+X+". Error: "+n+". With input:\n";throw Error(t.errorMessage_);}
function u(){t.jsonStreamParser_=new _.wo({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function y(n){if(n)for(var N=0;N<n.length;N++){var Q={};Q[1]=n[N];t.result_.push(Q)}}
function e(n){if(n){(t.statusParsed_||n.length>1)&&w("extra status: "+n);t.statusParsed_=!0;var N={};N[2]=n[0];t.result_.push(N)}}
for(var t=this,X=0;X<q.length;){var G;if(G=t.state_!==2){a:{for(;X<q.length;){if(!_.qs(q[X])){G=!0;break a}X++;t.JSC$16946_streamPos_++}G=!1}G=!G}if(G)return null;switch(t.state_){case 6:w("stream already broken");break;case 0:q[X]==="["?(t.state_=1,X++,t.JSC$16946_streamPos_++):w("unexpected input token");break;case 1:q[X]==="["?(t.state_=2,u()):q[X]===","||q.slice(X,X+5)=="null,"?t.state_=3:q[X]==="]"?(t.state_=5,X++,t.JSC$16946_streamPos_++):w("unexpected input token");break;case 2:G=t.jsonStreamParser_.parse(q.substring(X));
y(G);t.jsonStreamParser_.done()?(t.state_=3,G=t.jsonStreamParser_.JSC$9286_buffer_,t.JSC$16946_streamPos_+=q.length-X-G.length,q=G,X=0):(t.JSC$16946_streamPos_+=q.length-X,X=q.length);break;case 3:q[X]===","||q.slice(X,X+5)=="null,"?(t.state_=4,u(),t.jsonStreamParser_.parse("["),X+=q[X]===","?1:5,t.JSC$16946_streamPos_++):q[X]==="]"&&(t.state_=5,X++,t.JSC$16946_streamPos_++);break;case 4:G=t.jsonStreamParser_.parse(q.substring(X));e(G);t.jsonStreamParser_.done()?(t.state_=5,G=t.jsonStreamParser_.JSC$9286_buffer_,
t.JSC$16946_streamPos_+=q.length-X-G.length,q=G,X=0):(t.JSC$16946_streamPos_+=q.length-X,X=q.length);break;case 5:w("extra input after stream end")}}return t.result_.length>0?(q=t.result_,t.result_=[],q):null};var m9j=function(q){this.JSC$16949_xhr_=q;this.JSC$16949_parser_=null;this.status_=this.JSC$16949_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$16949_textDecoder_=null;this.JSC$16949_eventHandler_=new _.tp(this);this.JSC$16949_eventHandler_.listen(this.JSC$16949_xhr_,"readystatechange",this.JSC$16951_readyStateChangeHandler_)},pW=function(q,w){q.status_!=w&&(q.status_=w,q.statusHandler_&&q.statusHandler_())},$g=function(q){q.JSC$16949_eventHandler_.removeAll();
if(q.JSC$16949_xhr_){var w=q.JSC$16949_xhr_;q.JSC$16949_xhr_=null;w.abort();w.dispose()}};
m9j.prototype.getStatus=function(){return this.status_};
m9j.prototype.JSC$16951_readyStateChangeHandler_=function(q){q=q.target;try{if(q==this.JSC$16949_xhr_)a:{var w=_.of(this.JSC$16949_xhr_),u=this.JSC$16949_xhr_.JSC$7699_lastErrorCode_,y=this.JSC$16949_xhr_.getStatus(),e=this.JSC$16949_xhr_.getResponseText();q=[];if(this.JSC$16949_xhr_.getResponse()instanceof Array){var t=this.JSC$16949_xhr_.getResponse();t.length>0&&t[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,q=t)}if(!(w<3||w==3&&!e&&q.length==0))if(y=y==200||y==206,w==4&&(u==8?pW(this,
7):u==7?pW(this,8):y||pW(this,3)),this.JSC$16949_parser_||(this.JSC$16949_parser_=vZB(this.JSC$16949_xhr_),this.JSC$16949_parser_==null&&pW(this,5)),this.status_>2)$g(this);else{if(q.length>this.JSC$16949_pos_){var X=q.length;u=[];try{if(this.JSC$16949_parser_.acceptsBinaryInput())for(var G=0;G<X;G++){var n=this.JSC$16949_parser_.parse(Array.from(q[G]));n&&(u=u.concat(n))}else{n="";if(!this.JSC$16949_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Pj");this.JSC$16949_textDecoder_=new TextDecoder}for(G=
0;G<X;G++)n+=this.JSC$16949_textDecoder_.decode(q[G],{stream:w==4&&G==X-1});u=this.JSC$16949_parser_.parse(n)}q.splice(0,X);u&&this.dataHandler_(u)}catch(Q){pW(this,5);$g(this);break a}}else if(e.length>this.JSC$16949_pos_){G=e.slice(this.JSC$16949_pos_);this.JSC$16949_pos_=e.length;try{var N=this.JSC$16949_parser_.parse(G);N!=null&&this.dataHandler_&&this.dataHandler_(N)}catch(Q){pW(this,5);$g(this);break a}}w==4?(e.length!=0||this.hasStreamingResponseData_?pW(this,2):pW(this,4),$g(this)):pW(this,
1)}}}catch(Q){pW(this,6),$g(this)}};var AE6=function(q){q=this.xhrReader_=q;var w=(0,_.fY)(this.onData_,this);q.dataHandler_=w;q=this.xhrReader_;w=(0,_.fY)(this.onStatusChange_,this);q.statusHandler_=w;this.JSC$16953_callbackMap_={};this.callbackOnceMap_={}};
_.k=AE6.prototype;_.k.on=function(q,w){var u=this.JSC$16953_callbackMap_[q];u||(u=[],this.JSC$16953_callbackMap_[q]=u);u.push(w);return this};
_.k.addListener=function(q,w){this.on(q,w);return this};
_.k.removeListener=function(q,w){var u=this.JSC$16953_callbackMap_[q];u&&_.MM(u,w);(q=this.callbackOnceMap_[q])&&_.MM(q,w);return this};
_.k.once=function(q,w){var u=this.callbackOnceMap_[q];u||(u=[],this.callbackOnceMap_[q]=u);u.push(w);return this};
_.k.onData_=function(q){var w=this.JSC$16953_callbackMap_.data;w&&JE4(q,w);(w=this.callbackOnceMap_.data)&&JE4(q,w);this.callbackOnceMap_.data=[]};
var JE4=function(q,w){for(var u={},y=0;y<q.length;u={message$jscomp$969:void 0},y++)u.message$jscomp$969=q[y],w.forEach(function(e){return function(t){try{t(e.message$jscomp$969)}catch(X){}}}(u))};
AE6.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:zQT(this,"readable");break;case 5:case 6:case 4:case 7:case 3:zQT(this,"error");break;case 8:zQT(this,"close");break;case 2:zQT(this,"end")}};
var zQT=function(q,w){var u=q.JSC$16953_callbackMap_[w];u&&u.forEach(function(y){try{y()}catch(e){}});
(u=q.callbackOnceMap_[w])&&u.forEach(function(y){y()});
q.callbackOnceMap_[w]=[]};var aKq=function(){var q={format:"jspb"};q=q===void 0?{}:q;this.suppressCorsPreflight=q.suppressCorsPreflight||_.hP("suppressCorsPreflight",q)||!1;this.withCredentials=q.withCredentials||_.hP("withCredentials",q)||!1;this.streamInterceptors=q.streamInterceptors||[];this.unaryInterceptors=q.unaryInterceptors||[];this.workerScope=q.workerScope;this.chunkedServerStreaming=q.useFetchDownloadStreams||!1},pRh=function(q,w,u,y,e,t){t=t===void 0?{}:t;
var X=w.substring(0,w.length-e.name.length),G,n=(G=t)==null?void 0:G.signal;return D9A(function(N){return new Promise(function(Q,I){if(n==null?0:n.aborted){var U=new _.CM(1,"Aborted");U.cause=n.reason;I(U)}else{var d={},V=ZTq(q,N,X);V.on("error",function(J){return void I(J)});
V.on("metadata",function(J){d=J});
V.on("data",function(J){var a=d;a=a===void 0?{}:a;Q(new MDH(J,a))});
n&&n.addEventListener("abort",function(){V.cancel();var J=new _.CM(1,"Aborted");J.cause=n.reason;I(J)})}})},q.unaryInterceptors).call(q,K6m(e,u,y)).then(function(N){return N.responseMessage})},vg=function(q,w,u,y,e){var t=t===void 0?{}:t;
return pRh(q,w,u,y,e,t)};
aKq.prototype.serverStreaming=function(q,w,u,y){var e=this,t=q.substring(0,q.length-y.name.length);return $9H(function(X){var G=X.methodDescriptor,n=X.getMetadata(),N=voH(e,!1);n=bTA(e,n,N,t+G.getName());var Q=Y3K(N,G.responseDeserializeFn,!0);X=G.requestSerializeFn(X.requestMessage);N.send(n,"POST",X);return Q},this.streamInterceptors).call(this,K6m(y,w,u))};
var ZTq=function(q,w,u){var y=w.methodDescriptor,e=w.getMetadata(),t=voH(q,!0);q=bTA(q,e,t,u+y.getName());u=Y3K(t,y.responseDeserializeFn,!1);Cvj(u,e["X-Goog-Encode-Response-If-Executable"]==="base64");w=y.requestSerializeFn(w.requestMessage);t.send(q,"POST",w);return u},voH=function(q,w){w=q.chunkedServerStreaming&&!w;
return q.workerScope||w?new _.Oj(new JN({worker:q.workerScope,streamBinaryChunks:w})):new _.Oj},bTA=function(q,w,u,y){w["Content-Type"]="application/json+protobuf";
w["X-User-Agent"]="grpc-web-javascript/0.1";var e=w.Authorization;if(e&&WsT.has(e.split(" ")[0])||q.withCredentials)u.JSC$7699_withCredentials_=!0;if(q.suppressCorsPreflight)y=ooj(y,"$httpHeaders",w);else for(q=_.P(Object.keys(w)),e=q.next();!e.done;e=q.next())e=e.value,u.headers.set(e,w[e]);return y},Y3K=function(q,w,u){if(u){u=new m9j(q);
var y=new AE6(u)}return new fW({xhr:q,nodeReadableStream:y},w)},$9H=function(q,w){return w.reduce(function(u,y){return function(e){return y.intercept(e,u)}},q)},D9A=function(q,w){return w.reduce(function(u,y){return function(e){return y.intercept(e,u)}},q)};var gom=function(q){this.client_=new aKq;this.hostname_=q==void 0?q:q.replace(/\/+$/,"")};
_.k=gom.prototype;_.k.JSC$16972_depositGoogleCredential=function(q,w){return vg(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",q,w||{},wRB)};
_.k.deleteLink=function(q,w){return vg(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",q,w||{},x2A)};
_.k.JSC$16972_finishOAuth=function(q,w){return vg(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",q,w||{},yE6)};
_.k.getLink=function(q,w){return vg(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",q,w||{},eQH)};
_.k.startLinkingSession=function(q,w){return vg(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",q,w||{},HTV)};var Eo6=[0,uy6,1,kjB,[0,_.SV,[0,yBH,-1]],[0,eHm],[0,tDB,-1]];var RQq=function(){this.storage=new Map},S3a=function(q,w,u,y,e){if(!q.storage.has(w))return null;
q=_.P(q.storage.get(w));for(w=q.next();!w.done;w=q.next())if(w=w.value,!e||w.linkName===e)if(u&&w.scopes&&cEc(w.scopes,u)||y&&w.capabilities&&cEc(w.capabilities,y))return w;return null},hQj=function(q,w,u){if(!u)q.storage.delete(w);
else if(q.storage.has(w)){var y=q.storage.get(w).filter(function(e){return e.linkName!==u});
y.length>0?q.storage.set(w,y):q.storage.delete(w)}},cEc=function(q,w){w=_.P(w);
for(var u=w.next();!u.done;u=w.next())if(!q.has(u.value))return!1;return!0};var jVa=function(){var q=_.Et("LINK_GAL_DOMAIN");this.alsDomain1p=_.Et("LINK_GAL_DOMAIN");this.alsDomain3p=q;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},lKc=function(q,w){q.apiKey=w;
return q};
jVa.prototype.build=function(){var q={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Qj");q.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Rj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Sj");q.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(q.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)q.apiKey=
this.apiKey,q.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Tj");q.oauthToken=this.oauthToken;q.alsDomain=this.alsDomain3p}q.clientXd3=this.clientXd3;q.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(q.authUser=this.authUser);this.bucket!==void 0&&(q.bucket=this.bucket);this.completionUrl!==void 0&&(q.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(q.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(q.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(q.locale=this.locale);q.loggerType=this.loggerType;q.clientEnvironment=this.clientEnvironment;q.colorScheme=this.colorScheme;q.showCloseOption=this.showCloseOption;return q};var sH=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(sH,_.bE);var Lsm=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Lsm,_.bE);var M6q=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(M6q,_.bE);var Qn=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Qn,_.bE);var Ks4=function(q){return _.mw(q,1)};var BmH=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(BmH,_.bE);var SEA=_.uZ(BmH),Np=[1,2,3,4,5];var gZc=function(q){try{return SEA(q)}catch(w){return null}},x9H=function(){},EZH=function(q,w){switch(_.UL(w,Np)){case 4:return(w=_.zs(w,M6q,4,Np))&&q.logStateTransition(_.mw(w,1)),!0;
case 5:return(w=_.zs(w,Lsm,5,Np))&&q.logInternalEvent(_.mw(w,1)),!0}return!1},huA=function(q){switch(q){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Xm(q)}};var biq=function(q,w){var u=this;this.validator=q;this.messageListener=w;this.dismissCallback=function(){qF6(u,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17001_receiveMessage=function(y){y.type==="message"&&(y=y.event_,y!==null&&(new URL(u.iframe.src)).origin===y.origin&&u.validator(y.data,y.origin)&&!u.messageListener(y.data)&&(u.JSC$17001_resolveCb!==void 0&&u.JSC$17001_resolveCb(y.data),wCx(u)))}},c6V=function(q,w,u){q.uiHandler!==void 0&&qF6(q,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(y,e){q.JSC$17001_resolveCb=y;q.JSC$17001_rejectCb=e;q.iframe=document.createElement("iframe");_.Ja(q.iframe,w);q.uiHandler=u.displayContent(q.iframe,q.dismissCallback);_.dL(window,"message",q.JSC$17001_receiveMessage,!1,q)})},qF6=function(q,w){q.JSC$17001_rejectCb!==void 0&&q.JSC$17001_rejectCb(w);
wCx(q)},wCx=function(q){q.uiHandler!==void 0&&q.uiHandler.hideContent();
_.NF(window,"message",q.JSC$17001_receiveMessage,!1,q);q.JSC$17001_resolveCb=void 0;q.JSC$17001_rejectCb=void 0;q.uiHandler=void 0;q.iframe=void 0};var uu4=function(q){if(q===2){var w;q=((w=window)==null?0:w.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return q},Ruh=function(q){q=uu4(q);
switch(q){case 0:return"light";case 1:return"dark";default:_.Xm(q)}};var YEH=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),ygA=function(q,w){this.JSC$17013_linkingSession=q;this.noticeConfig=w;this.displayInfoMap=new Map;var u=new Map;if(_.NG(this.JSC$17013_linkingSession,PvB,7))for(q=_.PT(this.JSC$17013_linkingSession,PvB,7),q=_.wg(q,t6K,1,_.uI()),q=_.P(q),w=q.next();!w.done;w=q.next())w=w.value,u.set(_.mw(w,1),_.ZDf(_.PT(w,_.rjM,3)));if(u.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){w=this.noticeConfig.enabledDataUsageNoticeUis;q=w.has(0)?u.get(1):void 0;w=w.has(1)?u.get(2):void 0;u=q!==void 0&&w!==void 0?u.get(3):void 0;var y=this.noticeConfig.nestedOrigins;var e=new BmH;var t=new sH;e=_.km(e,2,Np,t);t=new BmH;var X=new sH;t=_.km(t,3,Np,X);X=[];q!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:q,lastEvent:e,nestedOrigins:y}]),X.push({trustedUrl:q,lastEvent:e,nestedOrigins:y}));w!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:w,lastEvent:t,nestedOrigins:y}]),X.push({trustedUrl:w,lastEvent:t,nestedOrigins:y}));u!==void 0?this.displayInfoMap.set(3,[{trustedUrl:u,lastEvent:t,nestedOrigins:y}]):this.displayInfoMap.set(3,X)}};var ebc=function(q){var w=new RQq;this.galService=q;this.galCache=w};
ebc.prototype.getLink=function(q){var w=q.serviceId;var u=q.scopes;var y=q.capabilities;var e=q.linkName;var t=this,X;return _.F(function(G){if(y!==void 0&&u!==void 0)throw Error("Uj");X=S3a(t.galCache,w,u,y,e);return X!==null?G.return(X):G.return(t.galService.getLink({serviceId:w,sessionId:Math.floor(Math.random()*2147483648),scopes:u,capabilities:y,linkName:e}).then(function(n){n=Kr4(n);var N=t.galCache;N.storage.has(w)?N.storage.get(w).push(n):N.storage.set(w,[n]);return n}))})};
ebc.prototype.deleteLink=function(q,w,u){var y=this;return _.F(function(e){hQj(y.galCache,q,u);return e.return(y.galService.deleteLink({serviceId:q,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:w,linkName:u}).then(function(){return!0}))})};var tgm=function(q,w){var u=this;this.validator=q;this.msgHandler=w;this.closedPopupTimeout=this.JSC$17035_rejectCb=this.JSC$17035_resolveCb=this.popup=null;this.JSC$17035_receiveMessage=function(y){if(y!==null&&(y=y.event_,y.source===u.popup)){var e=y.data;if(u.validator(e,y.origin)){var t;(t=u.msgHandler)!=null&&t.call(u,e)||(u.JSC$17035_resolveCb!==null&&u.JSC$17035_resolveCb(e),knc(u))}}}};
tgm.prototype.open=function(q,w){var u=this;this.popup!==null&&Pqm(this);return new Promise(function(y,e){u.JSC$17035_resolveCb=y;u.JSC$17035_rejectCb=e;u.popup=_.aw(window,q,"",w);_.dL(window,"message",u.JSC$17035_receiveMessage,!1,u);XCT(u)})};
var Pqm=function(q,w){q.JSC$17035_rejectCb!==null&&q.JSC$17035_rejectCb(w);knc(q)},knc=function(q){q.closedPopupTimeout&&(q.closedPopupTimeout.cancel(),q.closedPopupTimeout=null);
q.popup&&q.popup.close();_.NF(window,"message",q.JSC$17035_receiveMessage,!1,q);q.popup=null;q.JSC$17035_resolveCb=null;q.JSC$17035_rejectCb=null},XCT=function(q){q.closedPopupTimeout=_.wsc(100).then(function(){q.popup?q.popup.closed?FGj(q):XCT(q):Pqm(q,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},FGj=function(q){q.closedPopupTimeout=_.wsc(100).then(function(){Pqm(q,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var GnA=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),nHj=function(q,w,u,y,e,t,X,G,n,N){var Q=this;this.serviceId=q;this.sessionId=w;this.galService=u;this.oauthDetails=y;this.galLogger=e;this.interactionMode=t;this.redirectServiceUrl=X;this.consentLanguageKeys=G;this.dynamicUrlParameters=n;this.partnerConfigMinReadTimestamp=N;this.started=!1;this.JSC$17041_dataValidator=function(I,
U){var d=GnA.has(U);d||Q.redirectServiceUrl===void 0||(d=Q.redirectServiceUrl===U);return d?I.sentinel==="gdi":!1}};
nHj.prototype.complete=function(){var q=this,w;return _.F(function(u){if(q.interactionMode!==1)return u.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));w=iT.getRedirectStateFromUri();return w===null?u.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):u.return(HrH(q,w))})};
nHj.prototype.start=function(){var q=this,w;return _.F(function(u){if(q.started)return u.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.fy(q.oauthDetails,1))return u.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(q.interactionMode===1)return iT.setLocation(_.fy(q.oauthDetails,1)),u.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));q.started=!0;q.galLogger.logStateTransition(5);
w=iT.getPostMessagePopup(q.JSC$17041_dataValidator);return u.return(w.open(_.fy(q.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(y){q.started=!1;var e=q.galLogger;if((y==null?void 0:y.error)!==void 0)throw e.logInternalEvent(59),Error("Vj");if((y==null?void 0:y.redirect_state)===void 0)throw e.logInternalEvent(131),Error("Wj");return HrH(q,y.redirect_state)}).catch(function(y){q.started=
!1;
return y.errorCode!==void 0?{statusCode:y.errorCode,statusMessage:y.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var HrH=function(q,w){return _.F(function(u){return u.return(WGx(q.galService,{serviceId:q.serviceId,sessionId:q.sessionId,dynamicUrlParameters:q.dynamicUrlParameters,redirectState:w,consentLanguageKeys:q.consentLanguageKeys,partnerConfigMinReadTimestamp:q.partnerConfigMinReadTimestamp}).then(function(y){var e={statusCode:1,link:Kr4(y.getLink())};b4h(_.IG(y,3))!==void 0&&(e.callerState=b4h(_.IG(y,3)));q.galLogger.logInternalEvent(134);return e}))})},iT={getPostMessagePopup:function(q){return new tgm(q)},
getRedirectStateFromUri:function(){var q=_.h1(iT.getLocation()).fragment_;return(new _.qH(q)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(q){_.ha(window.location,_.UY(q))},
createOAuthFlow:function(q,w){return new nHj(q.serviceId,q.sessionId,q.galService,w,q.galLogger,q.interactionMode,q.redirectServiceUrl,q.consentLanguageKeys,q.dynamicUrlParameters,q.partnerConfigMinReadTimestamp)}};var sHm=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(sHm,_.bE);var NEc=_.uZ(sHm);var QHm=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Isc=function(q,w,u,y,e,t,X,G,n){var N=this;this.serviceId=q;this.sessionId=w;this.galService=u;this.gsiWebFlowDetails=y;this.colorScheme=e;this.showCloseOption=t;this.galLogger=X;this.interactionMode=G;this.redirectServiceUrl=n;this.started=!1;this.JSC$17053_dataValidator=function(Q,I){var U=QHm.has(I);U||N.redirectServiceUrl===
void 0||(U=N.redirectServiceUrl===I);return U?Q.sentinel==="gal":!1};
this.logEventProcessor=function(Q){return Q.result?(Q=gZc(Q.result))?EZH(N.galLogger,Q):!1:!1}};
Isc.prototype.complete=function(){var q=this,w,u;return _.F(function(y){if(q.interactionMode!==1)return y.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));w=rW.getRedirectStateFromUri();if(w===void 0)return q.galLogger.JSC$16993_logErrorEvent(131),y.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return u=irq(q,w),y.return(rgq(q,u))}catch(e){return y.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
Isc.prototype.start=function(){var q=this,w;return _.F(function(u){if(q.started)return u.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.fy(q.gsiWebFlowDetails,1))return u.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(q.interactionMode===1)return rW.setLocation(UIV(q,_.fy(q.gsiWebFlowDetails,1))),u.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
q.started=!0;w=rW.getPostMessagePopup(q.JSC$17053_dataValidator,q.logEventProcessor);return u.return(w.open(UIV(q,_.fy(q.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(y){q.started=!1;if((y==null?void 0:y.result)===void 0)throw q.galLogger.JSC$16993_logErrorEvent(131),Error("Wj");y=irq(q,y.result);return rgq(q,y)}).catch(function(y){q.started=!1;
return y.errorCode!==void 0?{statusCode:y.errorCode,statusMessage:y.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var UIV=function(q,w){q=["result_channel",q.interactionMode===1?"2":"1","color_scheme",Ruh(q.colorScheme),"show_close_option",q.showCloseOption];return Gja(w,q)},rgq=function(q,w){if(w!==null&&_.NG(w,Qn,2)){var u,y=w==null?void 0:(u=_.PT(w,Qn,2))==null?void 0:_.mw(u,2);
y&&q.galLogger.JSC$16993_logErrorEvent(huA(y));return Ks4(_.PT(w,Qn,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 q.galService.getLink({serviceId:q.serviceId,sessionId:q.sessionId,consistencyKey:_.fy(w,1)}).then(function(e){e=Kr4(e);q.galLogger.logInternalEvent(134);return{statusCode:1,link:e}})},irq=function(q,w){w=NEc(w);
if(!_.NG(w,Qn,2)&&_.fy(w,1)==="")throw q.galLogger.JSC$16993_logErrorEvent(5),Error("Xj");return w},rW={getPostMessagePopup:function(q,w){return new tgm(q,w)},
getRedirectStateFromUri:function(){return _.ji(_.h1(rW.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(q){_.ha(window.location,_.UY(q))},
createStreamlinedFlow:function(q,w){return new Isc(q.serviceId,q.sessionId,q.galService,w,q.colorScheme,q.showCloseOption,q.galLogger,q.interactionMode,q.redirectServiceUrl)}};var Hnc=function(){var q=_.WHu("GAL");this.storage=q?new _.mI(q):null};var bJ=function(){};
_.O(bJ,x9H);bJ.prototype.logStateTransition=function(){};
bJ.prototype.logInternalEvent=function(){};
bJ.prototype.JSC$16993_logErrorEvent=function(){};var TE6=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(TE6,_.bE);TE6.prototype.getCompletionUrl=function(){return _.fy(this,15)};var Yg=function(q,w,u,y,e,t){this.serviceId=q;this.environment=w;this.sessionId=u;this.colorSchemeSelected=y;this.colorThemeDisplayed=e;this.JSC$17066_transport=t;this.currentState=1};
_.O(Yg,x9H);Yg.prototype.logStateTransition=function(q){var w=Cqm(this);w=_.Xo(w,3,this.currentState);w=_.Xo(w,1,q);this.currentState=q;q=d_B(1);this.dispatch(w,q)};
Yg.prototype.logInternalEvent=function(q){q=d_B(q);this.dispatch(Cqm(this),q)};
Yg.prototype.JSC$16993_logErrorEvent=function(q){var w=Cqm(this);w=_.Xo(w,1,10);q=d_B(q);this.dispatch(w,q)};
var Cqm=function(q){var w=new TE6;w=_.Xo(w,1,q.currentState);w=_.sf(w,7,q.serviceId);var u,y;var e=((u=window)==null?0:(y=u.location)==null?0:y.href)?_.h1(window.location.href).JSC$7931_domain_:"NO_PACKAGE_NAME";u=_.sf(w,8,e);u=_.Xo(u,6,q.environment);u=_.sf(u,5,"100");u=_.Xo(u,11,q.colorSchemeSelected);return _.Xo(u,12,q.colorThemeDisplayed)};
Yg.prototype.dispatch=function(q,w){w===void 0&&(w=new _.en);var u=w;q=q.serialize();u=_.sf(u,8,q);_.VR(u,12,this.sessionId);this.JSC$17066_transport.dispatch(w)};var dIj=function(q,w){this.loggerType=q;this.sessionIndex=w!=null?w:0},Orj;
dIj.prototype.create=function(q,w,u,y,e){switch(this.loggerType){case 0:return new bJ;case 1:return Orj||(Orj=(new _.H2(555,this.sessionIndex.toString())).build()),new Yg(q,w,u,y,e,Orj);default:_.Xm(this.loggerType,"unknown logger type")}};var UH=[6,2,3,1],InK=new Map([[4,1],[1,6],[2,2],[3,3]]),wmc={statusCode:7,statusMessage:"Failed to create flow object"},GC6=function(q,w,u,y,e,t,X,G,n,N){this.serviceId=q;this.sessionId=w;this.config=u;this.galService=y;this.JSC$17073_linkingSession=e;this.googleScopes=t;this.callerState=X;this.consentLanguageKeys=G;this.dynamicUrlParameters=n;this.partnerConfigMinReadTimestamp=N;this.currentFlow=0;y=this.JSC$17073_linkingSession;e=new Set;_.NG(y,twB,1)&&e.add(1);_.NG(y,Fsm,2)&&_.NG(y,PD6,6)&&e.add(2);
_.NG(y,XRT,3)&&_.NG(y,PD6,6)&&e.add(3);_.NG(y,kWa,4)&&e.add(6);this.supportedFlows=e;y=u.loggerType;e=u.clientEnvironment;a:{t=u.colorScheme;switch(t){case 0:t=1;break a;case 1:t=2;break a;case 2:t=3;break a;default:_.Xm(t)}t=void 0}a:{X=u.colorScheme;X=uu4(X);switch(X){case 0:X=1;break a;case 1:X=2;break a;default:_.Xm(X)}X=void 0}this.galLogger=(new dIj(y,u.authUser)).create(q,e,w,t,X)},Vg6=function(q){return new Promise(function(w){var u,y,e,t,X,G,n,N,Q,I;
return _.F(function(U){switch(U.nextAddress){case 1:u=Xmh(q.currentFlow,q.supportedFlows),y=!1,e=new ygA(q.JSC$17073_linkingSession,q.config.dataUsageNoticeConfig);case 2:if(u===void 0){U.jumpTo(4);break}_.tD(U,5);var d=e,V=u,J=void 0;y?V===1&&(J=d.displayInfoMap.get(2)):V===2||V===3?J=d.displayInfoMap.get(1):V===1&&(J=d.displayInfoMap.get(3));t=J?J:[];X=q.consentLanguageKeys;G=_.P(t);n=G.next();case 7:if(n.done)return q.currentFlow=u,_.H(U,yqa(oHV(q,X)),11);N=n.value;return _.H(U,jzV(N,q.config.dataUsageNoticeConfig.uiAdapter,
q.config.colorScheme,q.galLogger),10);case 10:Q=U.yieldResult;if(Q.statusCode!==1)return Wg6(q.serviceId),q.currentFlow=0,w(IW({statusCode:Q.statusCode,statusMessage:Q.statusMessage},q.callerState)),U.return();Q.consentLanguageKeys!==void 0&&(X=Q.consentLanguageKeys);n=G.next();U.jumpTo(7);break;case 11:I=U.yieldResult;if(I.statusCode!==10)return I.statusCode!==6&&(Wg6(q.serviceId),q.currentFlow=0),I.statusCode!==1&&q.callerState!==void 0&&(I.callerState=q.callerState),w(I),U.return();_.jv(U,6);break;
case 5:_.nm(U);case 6:u=Xmh(q.currentFlow,q.supportedFlows);y=!0;U.jumpTo(2);break;case 4:Wg6(q.serviceId),q.currentFlow=0,w(IW({statusCode:12,statusMessage:"Linking failed"},q.callerState)),_.HI(U)}})})},Ns4=function(q,w,u){q.currentFlow=w;
return eY6(oHV(q,u)).then(function(y){return y.statusCode===10&&q.config.interactionMode===1&&Xmh(q.currentFlow,q.supportedFlows)!==void 0?Vg6(q):y})},oHV=function(q,w){return{flowParams:{serviceId:q.serviceId,
sessionId:q.sessionId,galService:q.galService,galLogger:q.galLogger,interactionMode:q.config.interactionMode,redirectServiceUrl:q.config.redirectServiceUrl,colorScheme:q.config.colorScheme,consentLanguageKeys:w,dynamicUrlParameters:q.dynamicUrlParameters,showCloseOption:q.config.showCloseOption,partnerConfigMinReadTimestamp:q.partnerConfigMinReadTimestamp},currentFlow:q.currentFlow,config:q.config,session:q.JSC$17073_linkingSession,googleScopes:q.googleScopes,callerState:q.callerState}};var fnH=function(q,w){this.config=q;this.galService=w.getService();this.JSC$17086_galRepository=w.JSC$17123_galRepository};
fnH.prototype.getLink=function(q,w){return fsA(this,q,w)};
var fsA=function(q,w,u){return q.JSC$17086_galRepository.getLink({serviceId:w,scopes:void 0,capabilities:void 0,linkName:u}).then(function(y){return{statusCode:1,link:y}}).catch(function(y){return{statusCode:inA(y.code),
statusMessage:y.message}})};
fnH.prototype.deleteLink=function(q,w){return this.JSC$17086_galRepository.deleteLink(q,this.config.accountLinkingEntryPoint,w).then(function(){return{statusCode:1}}).catch(function(u){return{statusCode:inA(u.code),
statusMessage:u.message}})};
fnH.prototype.startLinkingSession=function(q){var w=q.serviceId;var u=q.sessionId;return n86({serviceId:w,sessionId:u!==void 0?u:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:q.loginHint,callerState:q.callerState,consentLanguageKeys:q.consentLanguageKeys,linkName:q.linkName,dynamicUrlParameters:q.dynamicUrlParameters,partnerConfigMinReadTimestamp:q.partnerConfigMinReadTimestamp})};var rqV=null,d5A=new WeakMap;var mI4=function(){};
mI4.prototype.send=function(q,w){VwB(q);return this.makeRequest(q).then(function(u){if(w){var y=new w;if(u!=null){if(w==null)throw Error("Zj");new w;throw Error("ak");}u=y}return u})};var AgK=function(q,w,u,y,e){this.gapiUrl=q;this.gapiKey=w;this.gapiConfigUpdates=u||{};this.gapiAuthParams=y||{};this.defaultApiId=e};
_.O(AgK,mI4);var zbc=function(q){return Tsh().then(function(w){w=w||window.gapi;JgA(q,w);return o8j(w,{apiKey:q.gapiKey,clientId:q.gapiAuthParams.clientId,scope:q.gapiAuthParams.scope,hostedDomain:q.gapiAuthParams.hostedDomain,fetchBasicProfile:q.gapiAuthParams.fetchBasicProfile}).then(function(){return w})})};
AgK.prototype.makeRequest=function(q){var w=this;return zbc(this).then(function(u){return _.F(function(y){if(y.nextAddress==1)return w.gapiAuthParams.minAuthTokenTimeRemaining===void 0?y.jumpTo(2):_.H(y,Onh(u,w.gapiAuthParams.minAuthTokenTimeRemaining),2);JgA(w,u);return y.return(asV(u.client.request({root:w.gapiUrl,path:q.path,method:q.httpMethod,body:q.body,params:q.queryParams,headers:q.headers,authType:q.authType,apiId:q.apiId||w.defaultApiId})))})})};
var asV=function(q){return new Promise(function(w,u){q.then(function(y){w(y.result===!1&&y.body!=null?{data:y.body}:y.result)},function(y){u(y.result===!1&&y.body!=null?{data:y.body}:y.result)})})},JgA=function(q,w){for(var u in q.gapiConfigUpdates)if(q.gapiConfigUpdates.hasOwnProperty(u)){var y=w,e=u,t=q.gapiConfigUpdates[u],X=y.config.get(e);
t!==X&&y.config.update(e,t)}};
AgK.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var gi=function(q,w,u,y,e,t,X,G){this.apiKey=w;this.authUser=u;this.oauthToken=y;this.bucket=e;this.locale=X;this.galSdkEventHandler=G;if(y===void 0){if(w===void 0)throw Error("bk");this.requestService=new AgK(q,w,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":t===void 0||t===!1,"client/xd3":t===!0})}this.galServiceClient=new gom(q)};
gi.prototype.deleteLink=function(q){var w=q.serviceId;var u=q.sessionId;var y=q.accountLinkingEntryPoint;var e=q.linkName;var t=this,X;return _.F(function(G){var n=(new CW).setHeader(ER(t,u));var N=DIa({serviceId:w,linkName:e});n=_.e9(n,2,N);X=_.DS(n,3,y);return G.return(t.makeRequest(t.galServiceClient.deleteLink,X,[1,3],[2,4]))})};
var WGx=function(q,w){var u=w.serviceId;var y=w.sessionId;var e=w.dynamicUrlParameters;var t=w.redirectState;var X=w.consentLanguageKeys;var G=w.partnerConfigMinReadTimestamp;var n;return _.F(function(N){var Q=(new OR).setHeader(ER(q,y,e));Q=_.KV(Q,2,u);n=_.KV(Q,4,t);X!==void 0&&_.KV(n,5,X);G!==void 0&&_.e9(n,6,G);return N.return(q.makeRequest(q.galServiceClient.JSC$16972_finishOAuth,n,[1,3],[2,4]))})};
gi.prototype.getLink=function(q){var w=q.serviceId;var u=q.sessionId;var y=q.scopes;var e=q.capabilities;var t=q.consistencyKey;var X=q.linkName;var G=this,n;return _.F(function(N){var Q=(new o$).setHeader(ER(G,u)),I=DIa({serviceId:w,scopes:y,capabilities:e,linkName:X});n=_.e9(Q,2,I);t!==void 0&&(Q=hHT(),Q=_.KV(Q,2,t),_.e9(n,3,Q));return N.return(G.makeRequest(G.galServiceClient.getLink,n,[1,3],[2,4]))})};
var kCj=function(q,w){var u=w.serviceId;var y=w.sessionId;var e=w.googleScopes;var t=w.consistencyKey;var X;return _.F(function(G){var n=(new di).setHeader(ER(q,y));n=_.KV(n,2,u);var N=Array.from(e.values());n=_.om(n,3,N,_.vV);N=hHT();N=_.KV(N,2,t);X=_.e9(n,4,N);return G.return(q.makeRequest(q.galServiceClient.JSC$16972_depositGoogleCredential,X,[1,3],[2,4]))})};
gi.prototype.startLinkingSession=function(q){var w=q.serviceId;var u=q.sessionId;var y=q.scopes;var e=q.capabilities;var t=q.loginHint;var X=q.supportedFlows;var G=q.completionUrl;var n=q.usePingPong;var N=q.twoWayLinking;var Q=q.accountLinkingEntryPoint;var I=q.callerState;var U=q.consentLanguageKeys;var d=q.googleScopes;var V=q.dataUsageNoticeConfig;var J=q.linkName;var a=q.dynamicUrlParameters;var b=q.partnerConfigMinReadTimestamp;var g=this,l,S;return _.F(function(eH){if(e!==void 0&&y!==void 0)throw Error("Uj");
var x=(new Vq).setHeader(ER(g,u,a));l=_.KV(x,2,w);J!==void 0&&_.KV(l,14,J);if(e!==void 0){x=l;var P4=Array.from(e.values());_.om(x,5,P4,_.vV)}else y!==void 0&&(x=l,P4=Array.from(y.values()),_.om(x,3,P4,_.vV));G!==void 0&&_.KV(l,6,G);n!==void 0&&_.z6(l,15,n);X!==void 0&&(x=l,P4=Array.from(X.values()),_.om(x,4,P4,_.T4));if(N!==void 0){if(N&&(!d||d.size===0))throw Error("ck");_.z6(l,8,N)}Q!==void 0&&_.DS(l,9,Q);t!==void 0&&_.KV(l,13,t);I!==void 0&&(x=l,P4=(new TextEncoder).encode(I),_.Va(x,12,_.EX(P4,
!1),_.bP()));U!==void 0&&_.KV(l,16,U);b!==void 0&&_.e9(l,18,b);if(V!==void 0&&V.size>0||d!==void 0&&d.size>0)S=new noc,d!==void 0&&d.size>0&&(x=S,P4=Array.from(d.values()),_.om(x,1,P4,_.vV)),V!==void 0&&(V.has(0)&&_.PjH(S,2,_.T4,1,_.Ch),V.has(1)&&_.PjH(S,2,_.T4,2,_.Ch)),_.e9(l,17,S);return eH.return(g.makeRequest(g.galServiceClient.startLinkingSession,l,[1],[2]))})};
gi.prototype.getMetadata=function(){var q=this,w,u,y;return _.F(function(e){if(e.nextAddress==1)return w={},q.requestService?_.H(e,zbc(q.requestService),3):(w.Authorization="Bearer "+q.oauthToken,e.jumpTo(2));e.nextAddress!=2&&(u=e.yieldResult,w["X-Goog-Api-Key"]=q.apiKey,w["X-Goog-AuthUser"]=q.authUser!==void 0?q.authUser.toString():"0",(y=u.auth.getAuthHeaderValueForFirstParty([]))&&(w.Authorization=y));q.locale&&(w["accept-language"]=q.locale);return e.return(w)})};
gi.prototype.makeRequest=function(q,w,u,y){var e=this,t;return _.F(function(X){if(X.nextAddress==1)return _.H(X,e.getMetadata(),2);t=X.yieldResult;ZrT(e,u);return X.return(q.bind(e.galServiceClient)(w,t).finally(function(){ZrT(e,y)}))})};
var ZrT=function(q,w){q.galSdkEventHandler!==void 0&&w.forEach(function(u){q.galSdkEventHandler.onEvent(u)})},ER=function(q,w,u){var y=new ri;
w=_.Va(y,2,_.dc(w),0);w=_.DS(w,5,3);u=_.om(w,8,u,_.vV);q.bucket!==void 0&&_.KV(u,1,q.bucket);return u},DIa=function(q){var w=q.serviceId;
var u=q.scopes;var y=q.capabilities;q=q.linkName;if(y!==void 0&&u!==void 0)throw Error("Uj");var e=new cB6;w=_.KV(e,1,w);y!==void 0?(u=Array.from(y.values()),_.om(w,5,u,_.vV)):u!==void 0&&(u=Array.from(u.values()),_.om(w,3,u,_.vV));q!==void 0&&_.KV(w,6,q);return w};var m5H=function(q){this.galService=new gi(q.alsDomain,q.apiKey,q.authUser,q.oauthToken,q.bucket,q.clientXd3,q.locale,q.galSdkEventHandler);this.JSC$17123_galRepository=new ebc(this.galService)};
m5H.prototype.getService=function(){return this.galService};var pC4=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(pC4,_.bE);var $IB=function(q){var w=new pC4;return _.Xo(w,1,q)};
pC4.prototype.setErrorMessage=function(q){return _.sf(this,2,q)};var vH4=[0,_.jV,_.cS,_.jV];var R$=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(R$,_.bE);var brB=[0,[1,2,3],_.hv,[0,BN4,w6h,-1],_.hv,[0,qO6,-1],_.K1H];var YFq=[0,_.EL,1,_.jV,_.cS,-1,1,_.qUc,_.g9,_.jV,-1,brB];var gHh=[0,_.jV,[0,_.qUc,_.g9,[0,_.cS]],_.RG,[0,_.jV,-1]];var eJ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(eJ,_.bE);var EHm=[0,_.cS,_.jV,-2,_.EL,_.jV,_.EL,_.jV,-2,1,_.RG];var Rbj=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Rbj,_.bE);var cgm=[0,_.EL];var SFa=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(SFa,_.bE);var hbH=[0,_.jV,gHh,cgm,EHm,YFq];var eMc=_.qC(SFa,hbH);var jHx=[0,Eo6];var Gt6=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Gt6,_.bE);var lsh=[0,[1,3],Pna,_.jV,Pna];var uJ=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(uJ,_.bE);var LGa=[0,_.jV];var MgB=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(MgB,_.bE);var yq=function(q){return _.zs(q,pC4,2,wi)},KGh=function(q){var w=new MgB;
return _.km(w,2,wi,q)},wi=[1,
2];var BE4=[0,wi,_.hv,LGa,_.hv,vH4,_.SV,lsh,1,_.jV,jHx];var xIV=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(xIV,_.bE);var wym=function(q){var w=new xIV;return _.km(w,3,qKA,q)},qKA=[2,
3];var cg=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(cg,_.bE);var uDj=function(q,w){return _.e9(q,2,w)},yKK=function(q,w){return _.e9(q,8,w)},eOc=function(q,w){return _.e9(q,3,w)};var k3c=[0,_.jV,BE4,hbH,_.um$,[0,[5,6],[0,_.jV,-2],[0,_.EL,_.jV,_.cS],[0,brB],[0,_.cS,_.jV,-1,_.wVk,_.jV],_.hv,[0,[0,_.EL],_.jV,-1],_.hv,[0,[3,4],_.jV,-1,_.hv,[0,[0,_.jV,_.RG]],_.hv,[0,[0,[0,[1,2],_.hv,[0],_.hv,[0]]]]]],_.um$,-1,[0,qKA,_.jV,_.hv,LGa,_.hv,vH4,_.SV,lsh,[0,Eo6]]];var tsB=_.qC(cg,k3c),Prx=_.wB(k3c);var Xyq=function(){_.VG.call(this)};
_.O(Xyq,_.VG);Xyq.prototype.init=function(){};
new Xyq;var F0B=_.Sc(["data-"]),G3K=_.Sc(["aria-"]),nDH=_.Sc(["aria-"]),SJ=function(q,w){this.isLatencyMeasurementExperiment=q===void 0?!1:q;this.enableDialogA11yFix=w===void 0?!1:w;this.JSC$17152_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.mT6(_.uc.location.href)},tQx=function(q,w){q.onConsentPrimitiveShownCallback=w},HVj=function(q,w){return q.overriddenIframeLoadTimeout?q.overriddenIframeLoadTimeout:w!==void 0?w:5E3},XMx=function(q){if(q.prewarmPromise!==void 0)return q.prewarmPromise;
q.prewarmPromise=new Promise(function(w,u){hN(q,1);W0a(q,sSA(q,!0),NIH(q));q.iframe?q.prewarmChannel||QSj(q,q.iframe,w):u(Error("dk"))});
q.prewarmPromise.finally(function(){q.prewarmPromise=void 0});
return q.prewarmPromise};
SJ.prototype.showPrimitive=function(){var q=this;if(this.consentPromise!==void 0)return this.consentPromise;var w=Date.now();I2V(this,w);this.consentPromise=new Promise(function(u,y){hN(q,0,w);var e=q.isDarkTheme();q.isLatencyMeasurementExperiment||q.initialLoadingStrategy===1||q.initialLoadingStrategy===2||(q.loadingBar||(q.loadingBar=an6(getComputedStyle(document.body).direction==="rtl",e),q.loadingBar.style.position="fixed",q.loadingBar.style.zIndex="15000"),document.body.appendChild(q.loadingBar));
W0a(q,sSA(q),NIH(q));q.iframe?q.channel||iV6(q,q.iframe,u,y):(rKc(q),y(Error("dk")))});
this.consentPromise.finally(function(){q.consentPromise=void 0});
return this.consentPromise};
var iV6=function(q,w,u,y){var e,t;_.F(function(X){switch(X.nextAddress){case 1:hN(q,3);e=!1;setTimeout(function(){if(!e){rKc(q);UD6(q);TIm(q);var G=$IB(7).setErrorMessage("Timeout connecting to iframe");u(yKK(uDj(new cg,KGh(G)),wym(G)))}},HVj(q,Cr4(q)));
if(!q.prewarmPromise){X.jumpTo(2);break}_.tD(X,3);return _.H(X,q.prewarmPromise,5);case 5:_.jv(X,2);break;case 3:_.nm(X),t=$IB(4).setErrorMessage("Error while prewarming."),u(yKK(uDj(new cg,KGh(t)),wym(t)));case 2:q.prewarmChannel&&q.prewarmChannel.send(Prx(eOc(new cg,q.consentPrimitiveRequest))),q.channel=_.MG({destination:q.JSC$17152_win,iframe:w,origin:dD4(q),channelName:"cpw",onEstablished:function(){e=!0;rKc(q);q.isLatencyMeasurementExperiment||(q.JSC$17152_previousBodyOverflow=document.body.style.overflow,
q.JSC$17152_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,q.JSC$17152_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",q.enableDialogA11yFix&&window.addEventListener("blur",q.focusChangeListener));var G=q.iframe;G.style.bottom="0";G.style.position="fixed";G.style.right="0";G.style.border="none";G.style.left="0";G.style.top=
"0";G.style.zIndex="5000";G.style.pointerEvents="";G.style.visibility="";q.initialLoadingStrategy===2||q.initialLoadingStrategy===3?hN(q,4):hN(q,6);var n;(n=q.onConsentPrimitiveShownCallback)==null||n.call(q)},
onMessage:function(G){G=tsB(G.data);switch(_.mw(G,1)){case 1:UD6(q);var n=D5q(_.PT(G,_.vy,7));n&&(q.initialLoadingStrategy!==2&&q.initialLoadingStrategy!==3||hN(q,6,n),hN(q,5,n));if(n=D5q(_.PT(G,_.vy,6)))hN(q,7,n),hN(q,8);var N,Q;((N=_.PT(G,MgB,2))==null?void 0:_.UL(N,wi))!==0&&((Q=_.PT(G,xIV,8))==null?void 0:_.UL(Q,qKA))!==0||y(Error("ek"));u(G);break;case 2:TIm(q)}}}),_.HI(X)}})},QSj=function(q,w,u){q.prewarmChannel=_.MG({destination:q.JSC$17152_win,
iframe:w,origin:dD4(q),channelName:"pwcp",onEstablished:function(){hN(q,2);u()}})},dD4=function(q){var w=_.G2(q.src).toString();
return w&&w.indexOf("://")<0&&w.indexOf("//")!==0?q.origin:_.mT6(w)},sSA=function(q,w){w=w===void 0?!1:w;
var u,y=new Map([["origin",q.origin],["hl",(u=OVj(q))!=null?u:null]]);w&&y.set("pw","1");w=_.P([["cpr",q.consentPrimitiveRequest.serialize()]]);for(u=w.next();!u.done;u=w.next()){var e=_.P(u.value);u=e.next().value;e=e.next().value;y.set(u,e)}q.isDarkTheme()&&y.set("color_scheme","dark");return _.wb(q.src,y)},rKc=function(q){q.isLatencyMeasurementExperiment||q.loadingBar&&document.body.removeChild(q.loadingBar)};
SJ.prototype.getSrc=function(){var q=_.w$(this.origin),w;var u=(w=_.PT(this.consentPrimitiveRequest,Rbj,3))==null?void 0:_.yG(w,1);w="consent.google.com";u=u?"/u/"+encodeURIComponent(u.toString()):"";(q==null?0:q.endsWith("youtube.com"))?w="consent.youtube.com":(q=q==null?void 0:q.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(w="consent.google."+((q[1]?"co.":"")+encodeURIComponent(q[2])));return _.FE("https://"+w+"/signedin"+u+"/landing")};
var W0a=function(q,w,u){q.iframe||(q.iframe=document.createElement("iframe"),q.iframe.style.width="100%",q.iframe.style.height="100%",u!==112496729&&(q.iframe.style.colorScheme="auto"),q.isLatencyMeasurementExperiment&&(q.iframe.style.display="none"),_.Ja(q.iframe,w),q.iframe.setAttribute("jsname","C5o1O"),oD4(q.iframe),document.body.appendChild(q.iframe))},oD4=function(q){q.style.bottom="-200vh";
q.style.position="fixed";q.style.right="-200vw";q.style.border="";q.style.left="";q.style.top="";q.style.zIndex="";q.style.pointerEvents="none";q.style.visibility="hidden"},UD6=function(q){q.iframe&&(q.isLatencyMeasurementExperiment||(q.JSC$17152_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=q.JSC$17152_previousHtmlOverscroll),q.JSC$17152_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=q.JSC$17152_previousBodyOverscroll),q.JSC$17152_previousBodyOverflow!==
void 0&&(document.body.style.overflow=q.JSC$17152_previousBodyOverflow),q.enableDialogA11yFix&&VsK(q,!1)),oD4(q.iframe))};
SJ.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(VsK(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var VsK=function(q,w){var u,y,e=(u=q.iframe)==null?void 0:(y=u.parentElement)==null?void 0:y.children;if(e)for(u=0;u<e.length;u++)y=e[u],y!==q.iframe&&(w?(y.hasAttribute("aria-hidden")&&_.gB([_.BI(F0B)],y,"data-old-aria-hidden",y.getAttribute("aria-hidden")),_.gB([_.BI(G3K)],y,"aria-hidden","true")):(y.removeAttribute("aria-hidden"),y.hasAttribute("data-old-aria-hidden")&&(_.gB([_.BI(nDH)],y,"aria-hidden",y.getAttribute("data-old-aria-hidden")),y.removeAttribute("data-old-aria-hidden"))))},hN=function(q,
w,u){var y;
(y=q.latencyCallback)==null||y.call(q,{latencyType:w,timestampEpochMillis:u!=null?u:Date.now()})};var f2H=function(q,w,u){SJ.call(this,w,u===void 0?!1:u);this.consentPrimitiveRequest=q;q=OVj(this);if(!(0,_.MGu)(q))throw Error("H``"+String(q));this.src=this.getSrc();var y;this.initialLoadingStrategy=(y=_.PT(this.consentPrimitiveRequest,eJ,4))==null?void 0:_.mw(y,4)},mDm;
_.O(f2H,SJ);var ktq=function(q){var w=_.T("enable_primitive_dialog_aria_hide_siblings");q={request:q,enableDialogA11yFix:w===void 0?!1:w};mDm||(mDm=new f2H(q.request,q.isLatencyMeasurementExperiment||_.mw(q.request,1)===2,q.enableDialogA11yFix));return mDm},OVj=function(q){var w;
return(w=_.PT(q.consentPrimitiveRequest,eJ,4))==null?void 0:_.fy(w,1)},I2V=function(q,w){if(!_.NG(q.consentPrimitiveRequest,R$,5)){var u=q.consentPrimitiveRequest,y=new R$;
_.e9(u,5,y)}var e;if((e=_.PT(q.consentPrimitiveRequest,R$,5))==null||_.H$l(_.sL(e,8))==null){var t;(t=_.PT(q.consentPrimitiveRequest,R$,5))!=null&&_.VR(t,8,w)}},NIH=function(q){var w;
return(w=_.PT(q.consentPrimitiveRequest,R$,5))==null?void 0:_.yG(w,1)};
f2H.prototype.isDarkTheme=function(){var q;return((q=_.PT(this.consentPrimitiveRequest,eJ,4))==null?void 0:_.mw(q,2))===2};
var Cr4=function(q){var w;return((w=_.PT(q.consentPrimitiveRequest,eJ,4))==null?void 0:_.yG(w,5))||void 0},TIm=function(q){q.channel=void 0;
q.prewarmChannel=void 0;q.iframe&&(document.body.contains(q.iframe)&&document.body.removeChild(q.iframe),q.iframe=void 0);mDm=void 0},F44=function(q){return SJ.prototype.showPrimitive.call(q).then(function(w){return _.PT(w,MgB,2)})};for(var jJ={},AKc=(jJ[64]="ma",jJ[73]="ogb",jJ[89]="cr",jJ[21]="test",jJ[0]="unkn",jJ[137]="con",jJ[155]="hl",jJ[78]="yt",jJ[171]="lp",jJ[172]="ap",jJ[177]="amo",jJ[178]="pqe",jJ[74]="gg",jJ[1]="gm",jJ[140]="am",jJ),JKH=_.P(Object.keys(AKc)),zOA=JKH.next();!zOA.done;zOA=JKH.next());var a26=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(a26,_.bE);var DDV=[0,[2,3,4],_.jV,xax,Pna,_.K1H];var ZVx=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(ZVx,_.bE);var pyh=_.qC(ZVx,[0,tDB,_.cS,_.jV,_.cS,_.jV,DDV]);var $Da=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O($Da,_.bE);$Da.prototype.getCommand=function(){return _.mw(this,1)};
var vDa=function(){var q=new $Da;return _.DS(q,1,0)};var bV6=_.wB([0,tDB,_.cS,[0,_.jV,_.cS,-1]]);var YKH=new _.Gx("s"),gDj=new _.Gx("t"),EDH=new _.Gx("u"),ROa=new _.Gx("v"),cKB=function(q,w,u){_.nM.call(this,YKH);this.mediaKey=q;this.photoUrl=w;this.photoSource=u};
_.O(cKB,_.nM);var SKK=function(){_.nM.call(this,gDj)};
_.O(SKK,_.nM);var hOh=function(q){q=q===void 0?!1:q;_.nM.call(this,EDH);this.isError=q};
_.O(hOh,_.nM);var jSV=function(){_.nM.call(this,ROa)};
_.O(jSV,_.nM);var l2H=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,BIH=function(q){if(typeof q=="string"){if(q.charAt(0)==".")return L0x(q.substr(1));if(q.charAt(0)=="["){var w=l2H.exec(q);q=q.indexOf("=")==-1?void 0:w[3];return MsK(w[1],q)}return K0c(q)}return q},L0x=function(q){return function(w){return w.getAttribute&&_.$r(w,q)}},MsK=function(q,w){return function(u){return w!==void 0?u.getAttribute&&u.getAttribute(q)==w:u.hasAttribute&&u.hasAttribute(q)}},K0c=function(q){q=q.toUpperCase();
return function(w){return(w=w.tagName)&&w.toUpperCase()==q}},xDV=function(){return!0};var lJ=function(q,w){this.JSC$17180_key_=q;this.JSC$17180_value_=w},LW=function(q){throw Error("fk`"+q.JSC$17180_key_);
},qIA=function(q,w){return new TypeError("gk`"+w+"`"+q.JSC$17180_key_+"`"+q.JSC$17180_value_+"`"+typeof q.JSC$17180_value_)};
lJ.prototype.string=function(q){if(arguments.length==0)var w=wrT(this);else{var u;w=(u=uN4(this))!=null?u:q}return w};
var wrT=function(q){var w=uN4(q);w===null&&LW(q);return w},uN4=function(q){var w=q.JSC$17180_value_;
if(w==null)return null;if(typeof w==="string")return w;throw qIA(q,"string");};
lJ.prototype.bool=function(q){if(arguments.length==0){var w=this.optionalBool();w===null&&LW(this)}else{var u;w=(u=this.optionalBool())!=null?u:q}return w};
lJ.prototype.optionalBool=function(){var q=this.JSC$17180_value_;if(q==null)return null;if(typeof q==="boolean")return q;if(typeof q==="string"){q=q.toLowerCase();if(q==="true"||q==="1")return!0;if(q==="false"||q==="0")return!1}throw qIA(this,"boolean");};
lJ.prototype.number=function(q){if(arguments.length==0){var w=yIc(this);w===null&&LW(this)}else{var u;w=(u=yIc(this))!=null?u:q}return w};
var yIc=function(q){var w=q.JSC$17180_value_;if(w==null)return null;if(typeof w==="number")return w;if(typeof w==="string"){var u=Number(w);if(!isNaN(u)&&(u!==0||w.trim().length!==0))return u}throw qIA(q,"number");};
lJ.prototype.toString=function(){return wrT(this)};
lJ.prototype.array=function(q){if(arguments.length==0){var w=eGj(this);w===null&&LW(this);return w}w=eGj(this);return w==null?q:w};
var eGj=function(q){var w=q.JSC$17180_value_;if(w==null)return null;Array.isArray(w)||(typeof w!=="string"?w=[w]:(w=w.trim(),w=w==""?[]:w.split(",").map(function(u){return u.trim()})));
return kT4(q,w)},kT4=function(q,w){var u=q.JSC$17180_key_+"[";
return Array.from(w,function(y,e){return new lJ(u+e+"]",y)})};
lJ.prototype.object=function(q){var w=this.JSC$17180_value_;if(w==null)return q===void 0&&LW(this),q;if(typeof w==="object"&&w.constructor===Object){q={};var u=this.JSC$17180_key_+".",y;for(y in w)q[y]=new lJ(u+y,w[y]);return q}throw qIA(this,"object");};var M7=function(q){this.list_=tcx(q)},tcx=function(q){if(q instanceof M7)q=q.list_;
else if(q[0]instanceof M7){for(var w=new Set,u=0;u<q.length;u++)for(var y=_.P(q[u].list_),e=y.next();!e.done;e=y.next())w.add(e.value);q=w}return[].concat(_.Cm(q))};
_.k=M7.prototype;_.k.each=function(q,w,u){((u===void 0?0:u)?Z4j:_.L4)(this.list_,q,w);return this};
_.k.size=function(){return this.list_.length};
_.k.isEmpty=function(){return this.list_.length===0};
_.k.get=function(q){return this.list_[q]||null};
_.k.el=function(){return this.list_[0]||null};
_.k.map=function(q,w){return _.or(this.list_,q,w)};
_.k.equals=function(q){return this===q||_.Wk(this.list_,q.list_)};
_.k.first=function(){return this.list_.length==0?null:new KW(this.list_[0])};
_.k.find=function(q){var w=[];this.each(function(u){u=u.querySelectorAll(String(q));for(var y=0;y<u.length;y++)w.push(u[y])});
return new M7(w)};
_.k.parent=function(){var q=[];this.each(function(w){(w=w.parentElement||null)&&!_.SH(q,w)&&q.push(w)});
return new M7(q)};
_.k.children=function(){var q=[];this.each(function(w){w=_.m_(w);for(var u=0;u<w.length;u++)q.push(w[u])});
return new M7(q)};
_.k.filter=function(q){q=_.yN(this.list_,BIH(q));return new M7(q)};
_.k.closest=function(q){var w=[],u=BIH(q),y=function(e){return _.ws(e)&&u(e)};
this.each(function(e){(e=_.ar(e,y,!0))&&!_.SH(w,e)&&w.push(e)});
return new M7(w)};
_.k.next=function(q){return PUx(this,_.hf6,q)};
_.k.prev=function(q){return PUx(this,X6B,q)};
var PUx=function(q,w,u){var y=[];var e=u?BIH(u):xDV;q.each(function(t){(t=w(t))&&e(t)&&y.push(t)});
return new M7(y)};
M7.prototype.setClass=function(q){return this.each(function(w){_.pM(w,q)})};
var XrK=function(q,w){return q.each(function(u){_.Lx(u,w)})},Fpm=function(q,w){return q.each(function(u){_.jD(u,w)})};
M7.prototype.toggleClass=function(q,w){return w===!0?XrK(this,q):w===!1?Fpm(this,q):this.each(function(u){_.$r(u,q)?_.jD(u,q):_.Lx(u,q)})};
M7.prototype.setText=function(q){return this.each(function(w){_.At(w,q)})};
var GTT=function(q){q.each(function(w){w.removeAttribute("aria-hidden")})};
M7.prototype.getStyle=function(q){if(this.list_.length>0){var w=this.list_[0],u=w.style[_.r1(q)];return typeof u!=="undefined"?u:w.style[_.kGa(w,q)]||""}};
M7.prototype.getData=function(q){if(this.list_.length===0)return new lJ(q,null);var w=gwq(this.list_[0],q);return new lJ(q,w)};
M7.prototype.focus=function(q){try{q?this.el().focus(q):this.el().focus()}catch(w){}return this};
M7.prototype.click=function(){var q=_.mN(this.el());if(q.createEvent){var w=q.createEvent("MouseEvents");w.initMouseEvent("click",!0,!0,q.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(w)}else q=q.createEventObject(),q.clientX=0,q.clientY=0,q.screenX=0,q.screenY=0,q.altKey=!1,q.ctrlKey=!1,q.shiftKey=!1,q.button=0,this.el().fireEvent("onclick",q)};
var Bg=function(q,w,u,y){function e(G,n,N){var Q=n;n&&n.parentNode&&(Q=n.cloneNode(!0));G(Q,N)}
y=y===void 0?!1:y;if(q.list_.length==1){var t=q.list_[0],X=function(G){return w(G,t)};
u instanceof M7?u.each(X,void 0,y):Array.isArray(u)?(y?Z4j:_.L4)(u,X):X(u);return q}return q.each(function(G){u instanceof M7?u.each(function(n){e(w,n,G)}):Array.isArray(u)?_.L4(u,function(n){e(w,n,G)}):e(w,u,G)})};
_.k=M7.prototype;_.k.append=function(q){return Bg(this,function(w,u){w&&u.appendChild(w)},q)};
_.k.appendTo=function(q){(new M7([q])).append(this);return this};
_.k.remove=function(){return Bg(this,function(q,w){_.UN(w)},null)};
_.k.empty=function(){return Bg(this,function(q,w){_.oJ(w)},null)};
_.k.after=function(q,w){return Bg(this,function(u,y){u&&_.fO(u,y)},q,!(w===void 0||w))};
_.k.before=function(q){return Bg(this,function(w,u){w&&_.Vs(w,u)},q)};
_.k.replaceWith=function(q){return Bg(this,function(w,u){w&&_.Rf6(w,u)},q)};
_.k.toggle=function(q){return this.each(function(w){_.M1(w,q)})};
_.k.show=function(){return this.toggle(!0)};
_.k.hide=function(){return this.toggle(!1)};
_.k.trigger=function(q,w,u,y){return nXK(this,q,w,u,y)};
var nXK=function(q,w,u,y,e){return q.each(function(t){_.Coz(_.mN(t)).triggerWizEventInternal(t,w,u,y,e)})},KW=function(q,w){q instanceof M7&&(w=q.list_,q=null);
this.list_=tcx(q!=null?[q]:w)};
_.w9(KW,M7);_.k=KW.prototype;_.k.children=function(){return new M7(Array.prototype.slice.call(_.m_(this.list_[0])))};
_.k.each=function(q,w){q.call(w,this.list_[0],0);return this};
_.k.size=function(){return 1};
_.k.el=function(){return this.list_[0]};
_.k.first=function(){return this};var xg=function(q,w){w=w===void 0?window:w;this.hostId=q;this.JSC$17191_win=w;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$17191_previousHtmlOverscroll=this.JSC$17191_previousBodyOverscroll=this.JSC$17191_previousBodyOverflow="";this.eventTarget=new _.Q4;this.JSC$17191_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
s5q=function(q){var w=HC6(HC6(HC6(new Wpj(78),"po"),"hppp"),"hhc");
w.authUser=Number(_.Et("SESSION_INDEX","0"));w.colorScheme=q;return w};
xg.prototype.getOrigin=function(){return this.origin?this.origin:_.LM(_.lh(_.jn(new _.M4,this.JSC$17191_win.location.protocol),this.JSC$17191_win.location.hostname),this.JSC$17191_win.location.port).toString()};
xg.prototype.getTargetOrigin=function(){return _.LM(_.lh(_.jn(new _.M4,this.scheme),this.domain),this.port)};
xg.prototype.preloadIframe=function(q){var w=this;if(this.iframeLoadPromise===void 0){var u=document.createElement("iframe");this.iframe=u;g8q(u,q);this.iframeLoadPromise=new Promise(function(y,e){var t=!1,X=function(G){G.stopPropagation();u.removeEventListener("error",X);u.removeEventListener("securitypolicyviolation",X);e(Error("hk",{cause:G}))};
u.addEventListener("error",X);u.addEventListener("securitypolicyviolation",X);setTimeout(function(){t||e(Error("ik"))},3E4);
NZx(w,u,function(){t=!0;u.removeEventListener("error",X);u.removeEventListener("securitypolicyviolation",X);y()})});
Q5c(this);q=this.getTargetOrigin().toString();u.setAttribute("allow","camera "+q+"; display-capture "+q);this.parentElement.appendChild(u)}return this.iframeLoadPromise};
var rIa=function(q,w){var u,y;return _.F(function(e){if(e.nextAddress==1)return u=an6(getComputedStyle(q.parentElement).direction==="rtl"),q.parentElement.appendChild(u),document.activeElement instanceof HTMLElement&&(q.elementToFocusAfterClose=document.activeElement),_.tD(e,2),_.H(e,q.preloadIframe(w),4);if(e.nextAddress!=2){q.parentElement.removeChild(u);q.JSC$17191_previousBodyOverflow=q.parentElement.style.overflow;q.JSC$17191_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
q.JSC$17191_previousBodyOverscroll=q.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";q.parentElement.style.overscrollBehavior="contain";q.parentElement.style.overflow="hidden";var t=q.iframe;t.style.bottom="0";t.style.border="none";t.style.height="100%";t.style.left="0";t.style.position=q.iframePosition;t.style.right="0";t.style.top="0";t.style.width="100%";t.style.zIndex="2202";t.setAttribute("aria-hidden","false");t.setAttribute("aria-modal","true");
q.opened=!0;Iz4(q);return _.jv(e,0)}y=_.nm(e);q.parentElement.removeChild(u);v8V(q.isDarkTheme());iCc(q,!1);throw Error("jk",{cause:y});})},iCc=function(q,w){w=w===void 0?!0:w;
q.iframe!==void 0&&(UL6(q),document.documentElement.style.overscrollBehavior=q.JSC$17191_previousHtmlOverscroll,q.parentElement.style.overscrollBehavior=q.JSC$17191_previousBodyOverscroll,q.parentElement.style.overflow=q.JSC$17191_previousBodyOverflow,q.elementToFocusAfterClose!==void 0&&(q.elementToFocusAfterClose.focus(),q.elementToFocusAfterClose=void 0),w?Q5c(q):(q.parentElement.removeChild(q.iframe),q.iframe=void 0,q.iframeLoadPromise=void 0,q.mainChannel=void 0),q.opened=!1)},UL6=function(q){q.backgroundElementsAriaHiddenIsNull&&
(GTT(q.backgroundElementsAriaHiddenIsNull),q.backgroundElementsAriaHiddenIsNull=void 0);
q.backgroundElementsAriaHiddenIsFalse&&(q.backgroundElementsAriaHiddenIsFalse.each(function(w){w.setAttribute("aria-hidden","false")}),q.backgroundElementsAriaHiddenIsFalse=void 0);
q.backgroundElementsWithoutInert&&(q.backgroundElementsWithoutInert.each(function(w){w.removeAttribute("inert")}),q.backgroundElementsWithoutInert=void 0)},Iz4=function(q){q.backgroundElementsAriaHiddenIsNull=(new KW(q.iframe.parentElement)).children().filter(function(w){return w.getAttribute("aria-hidden")===null&&w!==q.iframe});
q.backgroundElementsAriaHiddenIsNull.each(function(w){w.setAttribute("aria-hidden","true")});
q.backgroundElementsAriaHiddenIsFalse=(new KW(q.iframe.parentElement)).children().filter(function(w){return w.getAttribute("aria-hidden")==="false"&&w!==q.iframe});
q.backgroundElementsAriaHiddenIsFalse.each(function(w){w.setAttribute("aria-hidden","true")});
q.backgroundElementsWithoutInert=(new KW(q.iframe.parentElement)).children().filter(function(w){return!w.hasAttribute("inert")&&w!==q.iframe});
q.backgroundElementsWithoutInert.each(function(w){w.setAttribute("inert","true")})},Q5c=function(q){q=q.iframe;
q.style.bottom="-1000px";q.style.position="fixed";q.style.right="-1000px";q.style.border="";q.style.height="";q.style.left="";q.style.top="";q.style.width="";q.style.zIndex="";q.setAttribute("aria-hidden","true");q.setAttribute("aria-modal","false")};
xg.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var Wpj=function(q,w){xg.call(this,AKc[q],w);this.options=[];this.style=""};
_.O(Wpj,xg);var TZH=function(q){q.style="youtube";return q},CU6=function(q,w){q.eventTarget.listen(EDH,w);
return q},dLx=function(q,w){q.eventTarget.listen(YKH,w);
return q},HC6=function(q,w){q.options.push(w);
return q},OCB=function(q){var w=[q.getOrigin()];
q.ancestorOrigins&&w.push.apply(w,_.Cm(q.ancestorOrigins));var u=new _.M4(q.JSC$17191_win.location.href),y=q.startUrl?q.startUrl:q.options.includes("po")?"profile-picture/art":"profile-picture";w=kg(_.MF(q.getTargetOrigin(),y),"origin",w);q.startUrl&&_.lI(w,"startPath",q.startUrl);q.authUser>0&&_.lI(w,"authuser",q.authUser);q.pageId!==void 0&&_.lI(w,"pageId",q.pageId);_.lI(w,"hostId",q.hostId);q.jsMode!==void 0&&_.lI(w,"jsmode",q.jsMode);q.options.length>0&&_.lI(w,"opts",q.options.join(","));try{for(var e=
_.P(["utm_source","utm_medium","utm_campaign","utm_content"]),t=e.next();!t.done;t=e.next()){var X=t.value;_.ji(u,X)&&_.lI(w,X,_.ji(u,X))}var G,n=(G=q.hl)!=null?G:_.ji(u,"hl");n!==void 0&&_.lI(w,"hl",n)}catch(N){if(!(N instanceof URIError))throw N;}q.colorScheme&&_.lI(w,"theme",q.colorScheme);q.style&&_.lI(w,"style",q.style);return w},oXm=function(q,w){q.mainChannel=_.MG({destination:q.JSC$17191_win,
iframe:w,origin:q.getTargetOrigin().toString(),channelName:"ow",onMessage:function(u){u=pyh(u.data);if(w===q.iframe)switch(_.mw(u,1)){case 1:q.eventTarget.dispatchEvent(new hOh);iCc(q);break;case 2:q.eventTarget.dispatchEvent(new cKB(_.fy(u,4),_.fy(u,2),_.mw(u,5),_.PT(u,a26,6)));break;case 0:var y;q.eventTarget.dispatchEvent(new SKK(_.fy(u,2),(y=_.mw(u,3))!=null?y:0));break;case 3:q.eventTarget.dispatchEvent(new hOh(!0));iCc(q,!1);break;case 4:q.eventTarget.dispatchEvent(new jSV)}}})},NZx=function(q,
w,u){_.MG({destination:q.JSC$17191_win,
iframe:w,origin:_.LM(_.lh(_.jn(new _.M4,q.scheme),q.domain),q.port).toString(),channelName:"owi",onMessage:function(y){w===q.iframe&&(u!==void 0&&u(),oXm(q,w),q.opened&&q.mainChannel.send(bV6(vDa())),y.reply(),NZx(q,w))}})};
Wpj.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?xg.prototype.preloadIframe.call(this,OCB(this).toString()):this.iframeLoadPromise};
Wpj.prototype.openPicker=function(q){var w=this;return _.F(function(u){if(u.nextAddress==1)return w.startUrl=q?q:w.options.includes("po")?"profile-picture/art":"profile-picture",_.H(u,rIa(w,OCB(w).toString()),2);if(w.mainChannel){var y=w.mainChannel,e=y.send;var t=vDa();t=_.sf(t,2,w.startUrl);e.call(y,bV6(t))}_.HI(u)})};var Vca=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(Vca,_.bE);_.k=Vca.prototype;_.k.getSize=function(){return Hg(this,1)};
_.k.setSize=function(q){return _.aG(this,1,q)};
_.k.getWidth=function(){return Hg(this,12)};
_.k.getHeight=function(){return Hg(this,13)};
_.k.setCenterCrop=function(q){return _.P2(this,20,q)};
_.k.getHtml=function(){return _.OL(this,4)};
_.k.getToken=function(){return _.iI(this,24)};
_.k.setToken=function(q){return _.sf(this,24,q)};
_.k.getBackgroundColor=function(){return Hg(this,87)};
_.k.hasBackgroundColor=function(){return _.oK(_.sL(this,87))!=null};
_.k.getStoryboardLevel=function(){return Hg(this,109)};var qW=function(q){this.JSC$17199_value_=void 0;this.childNodes_={};if(q){var w=_.fL3(q);q=_.h5(q);for(var u=0;u<w.length;u++)this.set(w[u],q[u])}};
qW.prototype.set=function(q,w){fzK(this,q,w,!1)};
qW.prototype.add=function(q,w){fzK(this,q,w,!0)};
var fzK=function(q,w,u,y){for(var e=0;e<w.length;e++){var t=w.charAt(e);q.childNodes_[t]||(q.childNodes_[t]=new qW);q=q.childNodes_[t]}if(y&&q.JSC$17199_value_!==void 0)throw Error("kk`"+w);q.JSC$17199_value_=u},mL6=function(q,w){for(var u=0;u<w.length;u++)if(q=q.childNodes_[w.charAt(u)],!q)return;
return q};
qW.prototype.get=function(q){return(q=mL6(this,q))?q.JSC$17199_value_:void 0};
qW.prototype.getValues=function(){var q=[];AIB(this,q);return q};
var AIB=function(q,w){q.JSC$17199_value_!==void 0&&w.push(q.JSC$17199_value_);for(var u in q.childNodes_)AIB(q.childNodes_[u],w)};
qW.prototype.getKeys=function(q){var w=[];if(q){for(var u=this,y=0;y<q.length;y++){var e=q.charAt(y);if(!u.childNodes_[e])return[];u=u.childNodes_[e]}JI4(u,q,w)}else JI4(this,"",w);return w};
var JI4=function(q,w,u){q.JSC$17199_value_!==void 0&&u.push(w);for(var y in q.childNodes_)JI4(q.childNodes_[y],w+y,u)};
_.k=qW.prototype;_.k.containsKey=function(q){return this.get(q)!==void 0};
_.k.containsValue=function(q){if(this.JSC$17199_value_===q)return!0;for(var w in this.childNodes_)if(this.childNodes_[w].containsValue(q))return!0;return!1};
_.k.clear=function(){this.childNodes_={};this.JSC$17199_value_=void 0};
_.k.remove=function(q){for(var w=this,u=[],y=0;y<q.length;y++){var e=q.charAt(y);if(!w.childNodes_[e])throw Error("lk`"+q);u.push([w,e]);w=w.childNodes_[e]}q=w.JSC$17199_value_;for(delete w.JSC$17199_value_;u.length>0;)if(y=u.pop(),w=y[0],y=y[1],w.childNodes_[y].isEmpty())delete w.childNodes_[y];else break;return q};
_.k.clone=function(){return new qW(this)};
_.k.getCount=function(){return Hxc(this.getValues())};
_.k.isEmpty=function(){return this.JSC$17199_value_===void 0&&_.db.isEmpty(this.childNodes_)};var hYV=function(){if(!zGV){var q=zGV=new qW,w;for(w in azK)q.add(w,azK[w])}},zGV,w8=function(q,w){this.types=q;
this.setters=w},azK={a:new w8([3,
0],[function(q,w){_.P2(q,21,w)},
function(q,w){_.aG(q,56,w)}]),
al:new w8([3],[function(q,w){_.P2(q,74,w)}]),
b:new w8([3,0],[function(q,w){_.P2(q,23,w)},
function(q,w){_.aG(q,38,w)}]),
ba:new w8([0],[function(q,w){_.aG(q,85,w)}]),
bc:new w8([0],[function(q,w){_.aG(q,87,w)}]),
br:new w8([0],[function(q,w){_.aG(q,86,w)}]),
c:new w8([3,0],[function(q,w){_.P2(q,2,w)},
function(q,w){_.aG(q,39,w)}]),
cc:new w8([3],[function(q,w){_.P2(q,51,w)}]),
ci:new w8([3],[function(q,w){_.P2(q,32,w)}]),
ckm:new w8([3],[function(q,w){_.P2(q,104,w)}]),
cp:new w8([0],[function(q,w){_.aG(q,92,w)}]),
cr:new w8([3],[function(q,w){_.P2(q,108,w)}]),
cv:new w8([0],[function(q,w){_.aG(q,94,w)}]),
d:new w8([3],[function(q,w){_.P2(q,3,w)}]),
dc:new w8([5],[function(q,w){_.sf(q,99,w)}]),
df:new w8([3],[function(q,w){_.P2(q,80,w)}]),
dv:new w8([3],[function(q,w){_.P2(q,90,w)}]),
e:new w8([0],[function(q,w){_.aG(q,15,w)}]),
em:new w8([0],[function(q,w){_.aG(q,107,w)}]),
f:new w8([4],[function(q,w){_.sf(q,16,w)}]),
fg:new w8([3],[function(q,w){_.P2(q,34,w)}]),
fh:new w8([3],[function(q,w){_.P2(q,30,w)}]),
fm:new w8([3],[function(q,w){_.P2(q,84,w)}]),
fo:new w8([2],[function(q,w){_.Fo(q,79,_.Fm(w))}]),
ft:new w8([3],[function(q,w){_.P2(q,50,w)}]),
fv:new w8([3],[function(q,w){_.P2(q,31,w)}]),
g:new w8([3],[function(q,w){_.P2(q,14,w)}]),
gce:new w8([4],[function(q,w){_.sf(q,112,w)}]),
gd:new w8([3],[function(q,w){_.P2(q,83,w)}]),
gm:new w8([3],[function(q,w){_.P2(q,105,w)}]),
h:new w8([3,0],[function(q,w){_.P2(q,4,w)},
function(q,w){_.aG(q,13,w)}]),
i:new w8([3],[function(q,w){_.P2(q,22,w)}]),
ic:new w8([0],[function(q,w){_.aG(q,71,w)}]),
id:new w8([3],[function(q,w){_.P2(q,70,w)}]),
il:new w8([3],[function(q,w){_.P2(q,96,w)}]),
ip:new w8([3],[function(q,w){_.P2(q,54,w)}]),
iv:new w8([0],[function(q,w){_.VR(q,75,w)}]),
j:new w8([1],[function(q,w){w=w==null?w:vwB(w);_.Fo(q,29,w)}]),
k:new w8([3,0],[function(q,w){_.P2(q,17,w)},
function(q,w){_.aG(q,42,w)}]),
l:new w8([0],[function(q,w){_.aG(q,44,w)}]),
lf:new w8([3],[function(q,w){_.P2(q,65,w)}]),
lo:new w8([3],[function(q,w){_.P2(q,97,w)}]),
m:new w8([0],[function(q,w){_.aG(q,63,w)}]),
md:new w8([3],[function(q,w){_.P2(q,91,w)}]),
mm:new w8([4],[function(q,w){_.sf(q,81,w)}]),
mo:new w8([3],[function(q,w){_.P2(q,73,w)}]),
mv:new w8([3],[function(q,w){_.P2(q,66,w)}]),
n:new w8([3],[function(q,w){q.setCenterCrop(w)}]),
nc:new w8([3],[function(q,w){_.P2(q,55,w)}]),
nd:new w8([3],[function(q,w){_.P2(q,53,w)}]),
ng:new w8([3],[function(q,w){_.P2(q,95,w)}]),
ngm:new w8([3],[function(q,w){_.P2(q,106,w)}]),
no:new w8([3],[function(q,w){_.P2(q,37,w)}]),
ns:new w8([3],[function(q,w){_.P2(q,40,w)}]),
nt0:new w8([4],[function(q,w){_.sf(q,36,w)}]),
ntm:new w8([3],[function(q,w){_.P2(q,114,w)}]),
nu:new w8([3],[function(q,w){_.P2(q,46,w)}]),
nw:new w8([3],[function(q,w){_.P2(q,48,w)}]),
o:new w8([1,3],[function(q,w){w=w==null?w:vwB(w);_.Fo(q,7,w)},
function(q,w){_.P2(q,27,w)}]),
p:new w8([3,0],[function(q,w){_.P2(q,19,w)},
function(q,w){_.aG(q,43,w)}]),
pa:new w8([3],[function(q,w){_.P2(q,61,w)}]),
pc:new w8([0],[function(q,w){_.aG(q,88,w)}]),
pd:new w8([3],[function(q,w){_.P2(q,60,w)}]),
pf:new w8([3],[function(q,w){_.P2(q,67,w)}]),
pg:new w8([3],[function(q,w){_.P2(q,72,w)}]),
pi:new w8([2],[function(q,w){_.Fo(q,76,_.Fm(w))}]),
pp:new w8([3],[function(q,w){_.P2(q,52,w)}]),
pt:new w8([4],[function(q,w){_.sf(q,111,w)}]),
q:new w8([4],[function(q,w){_.sf(q,28,w)}]),
r:new w8([3,0],[function(q,w){_.P2(q,6,w)},
function(q,w){_.aG(q,26,w)}]),
ra:new w8([3],[function(q,w){_.P2(q,103,w)}]),
rf:new w8([3],[function(q,w){_.P2(q,100,w)}]),
rg:new w8([3],[function(q,w){_.P2(q,59,w)}]),
rh:new w8([3],[function(q,w){_.P2(q,49,w)}]),
rj:new w8([3],[function(q,w){_.P2(q,57,w)}]),
ro:new w8([2],[function(q,w){_.Fo(q,78,_.Fm(w))}]),
rp:new w8([3],[function(q,w){_.P2(q,58,w)}]),
rw:new w8([3],[function(q,w){_.P2(q,35,w)}]),
rwa:new w8([3],[function(q,w){_.P2(q,64,w)}]),
rwu:new w8([3],[function(q,w){_.P2(q,41,w)}]),
s:new w8([3,0],[function(q,w){_.P2(q,33,w)},
function(q,w){q.setSize(w)}]),
sb:new w8([0],[function(q,w){_.aG(q,110,w)}]),
sc:new w8([0],[function(q,w){_.aG(q,89,w)}]),
sg:new w8([3],[function(q,w){_.P2(q,82,w)}]),
sl:new w8([0],[function(q,w){_.aG(q,109,w)}]),
sm:new w8([3],[function(q,w){_.P2(q,93,w)}]),
t:new w8([4],[function(q,w){q.setToken(w)}]),
tm:new w8([3],[function(q,w){_.P2(q,113,w)}]),
u:new w8([3],[function(q,w){_.P2(q,18,w)}]),
ut:new w8([3],[function(q,w){_.P2(q,45,w)}]),
v:new w8([0],[function(q,w){_.aG(q,62,w)}]),
vb:new w8([0],[function(q,w){_.VR(q,68,w)}]),
vf:new w8([4],[function(q,w){_.sf(q,102,w)}]),
vl:new w8([0],[function(q,w){_.VR(q,69,w)}]),
vm:new w8([3],[function(q,w){_.P2(q,98,w)}]),
w:new w8([0],[function(q,w){_.aG(q,12,w)}]),
x:new w8([0],[function(q,w){_.aG(q,9,w)}]),
y:new w8([0],[function(q,w){_.aG(q,10,w)}]),
ya:new w8([2],[function(q,w){_.Fo(q,77,_.Fm(w))}]),
z:new w8([0],[function(q,w){_.aG(q,11,w)}])};
hYV.prototype.parse=function(q){var w=new Vca,u=new Vca;if(q=="")q=!0;else{q=q.split("-");for(var y=!0,e=0;e<q.length;e++){var t=q[e];if(t.length==0)y=!1;else{var X=t,G=!1;var n=X;var N=X.charAt(0);N!=N.toLowerCase()&&(G=!0,n=X.charAt(0).toLowerCase()+X.substring(1));var Q=zGV;for(N=1;N<=n.length;++N){var I=Q,U=n.substring(0,N);if(U.length==0?I.isEmpty():!mL6(I,U))break}n=N==1?null:(n=Q.get(n.substring(0,N-1)))?{option:X.substring(0,N-1),value:X.substring(N-1),signed:G,attributes:n}:null;if(n){X=
[];G=[];N=!1;for(Q=0;Q<n.attributes.types.length;Q++){I=n.attributes.types[Q];var d=n.value;U=e;if(n.signed&&I==1)for(var V=d.length;V<12&&U<q.length-1;)d+="-"+q[U+1],V=d.length,++U;else if(I==2)for(;U<q.length-1&&q[U+1].match(/^[\d\.]/);)d+="-"+q[U+1],++U;V=n.attributes.setters[Q];d=dFH(this,I)(n.option,d,w,u,V);if(d===null){N=!0;e=U;break}else X.push(I),G.push(d)}if(!N)for(n=0;n<G.length;n++)Q=X[n],d=G[n],OMH(this,Q)(t,d);y=y&&N}else y=!1}}q=y}return new orc(w,u,q)};
var ug=function(q,w,u,y,e,t){e(u,w);q=q.charAt(0);t=t(q==q.toUpperCase());e(y,t)};
_.k=hYV.prototype;_.k.parseAndSetIntOption_=function(q,w,u,y,e){if(w=="")return 0;isFinite(w)&&(w=String(w));w=typeof w==="string"?/^\s*-?0x/i.test(w)?parseInt(w,16):parseInt(w,10):NaN;if(isNaN(w))return 1;ug(q,w,u,y,e,Number);return null};
_.k.logIntParseError_=function(){};
_.k.parseAndSetFloatOption_=function(q,w,u,y,e){if(w=="")return 0;var t=Number(w);w=t==0&&_.Gy(w)?NaN:t;if(isNaN(w))return 1;ug(q,w,u,y,e,Number);return null};
_.k.logFloatParseError_=function(){};
_.k.parseAndSetBoolOption_=function(q,w,u,y,e){if(w!="")return 2;ug(q,!0,u,y,e,Boolean);return null};
_.k.logBoolParseError_=function(){};
_.k.parseAndSetStringOption_=function(q,w,u,y,e){if(w=="")return 0;ug(q,w,u,y,e,function(t){return t?"1":""});
return null};
_.k.logStringParseError_=function(){};
_.k.parseAndSetUint64Base64Option_=function(q,w,u,y,e){if(w=="")return 0;ug(q,w,u,y,e,function(t){return t?1:0});
return null};
var dFH=function(q,w){switch(w){case 0:return(0,_.fY)(q.parseAndSetIntOption_,q);case 2:return(0,_.fY)(q.parseAndSetFloatOption_,q);case 3:return(0,_.fY)(q.parseAndSetBoolOption_,q);case 4:return(0,_.fY)(q.parseAndSetStringOption_,q);case 1:return(0,_.fY)(q.parseAndSetUint64Base64Option_,q);default:return function(){}}},OMH=function(q,w){switch(w){case 0:return(0,_.fY)(q.logIntParseError_,q);
case 2:return(0,_.fY)(q.logFloatParseError_,q);case 3:return(0,_.fY)(q.logBoolParseError_,q);case 4:case 1:return(0,_.fY)(q.logStringParseError_,q);default:return function(){}}},orc=function(q,w,u){this.valueProto_=q;
this.signatureFlagProto_=w;this.JSC$17211_valid_=u};
orc.prototype.isValid=function(){return this.JSC$17211_valid_};var E84=function(q){this.JSC$17212_parser_=null;this.JSC$17212_components_=[];this.JSC$17212_parsedOptions_=null;Vn6(this,q)},f9x=function(q){q.JSC$17212_parser_==null&&(q.JSC$17212_parser_=new hYV);
return q.JSC$17212_parser_},Vn6=function(q,w){q.JSC$17212_parsedOptions_=w?typeof w==="string"?f9x(q).parse(w):w:f9x(q).parse("")},yP=function(q,w){return q==w?!1:!0};
_.k=E84.prototype;_.k.JSC$17214_setCrop=function(q){q=q||void 0;var w=this.JSC$17212_parsedOptions_,u=w.valueProto_;yP(q,_.OL(u,2),_.OL(w.signatureFlagProto_,2))&&_.P2(u,2,q);return this};
_.k.JSC$17214_setCircleCrop=function(q){q=q||void 0;var w=this.JSC$17212_parsedOptions_,u=w.valueProto_;yP(q,nW(u,51),nW(w.signatureFlagProto_,51))&&_.P2(u,51,q);return this};
_.k.JSC$17214_setImageCrop=function(q){q=q||void 0;var w=this.JSC$17212_parsedOptions_,u=w.valueProto_;yP(q,nW(u,32),nW(w.signatureFlagProto_,32))&&_.P2(u,32,q);return this};
_.k.JSC$17214_setHeight=function(q){var w=this.JSC$17212_parsedOptions_,u=w.valueProto_;yP(q,u.getHeight(),w.signatureFlagProto_.getHeight())&&_.aG(u,13,q);return this};
_.k.setCenterCrop=function(q){q=q||void 0;var w=this.JSC$17212_parsedOptions_,u=w.valueProto_;yP(q,_.OL(u,20),_.OL(w.signatureFlagProto_,20))&&u.setCenterCrop(q);return this};
_.k.JSC$17214_setSmartCrop=function(q){q=q||void 0;var w=this.JSC$17212_parsedOptions_,u=w.valueProto_;yP(q,_.OL(u,19),_.OL(w.signatureFlagProto_,19))&&_.P2(u,19,q);return this};
_.k.JSC$17214_setPad=function(q){q=q||void 0;var w=this.JSC$17212_parsedOptions_,u=w.valueProto_;yP(q,nW(u,60),nW(w.signatureFlagProto_,60))&&_.P2(u,60,q);return this};
_.k.JSC$17214_setSmartCropUseFace=function(q){q=q||void 0;var w=this.JSC$17212_parsedOptions_,u=w.valueProto_;yP(q,_.OL(u,67),_.OL(w.signatureFlagProto_,67))&&_.P2(u,67,q);return this};
_.k.JSC$17214_setSmartCropNoClip=function(q){q=q||void 0;var w=this.JSC$17212_parsedOptions_,u=w.valueProto_;yP(q,_.OL(u,52),_.OL(w.signatureFlagProto_,52))&&_.P2(u,52,q);return this};
_.k.setSize=function(q){var w=this.JSC$17212_parsedOptions_,u=w.valueProto_;yP(q,u.getSize(),w.signatureFlagProto_.getSize())&&u.setSize(q);return this};
_.k.setToken=function(q){q=q||void 0;var w=this.JSC$17212_parsedOptions_,u=w.valueProto_;yP(q,u.getToken(),w.signatureFlagProto_.getToken())&&u.setToken(q);return this};
_.k.JSC$17214_setWidth=function(q){var w=this.JSC$17212_parsedOptions_,u=w.valueProto_;yP(q,u.getWidth(),w.signatureFlagProto_.getWidth())&&_.aG(u,12,q);return this};
_.k.clearOptions=function(){Vn6(this,"");return this};
_.k.build=function(){this.JSC$17212_components_.length=0;var q=this.JSC$17212_parsedOptions_,w=q.valueProto_;q=q.signatureFlagProto_;eO(this,"s",w.getSize(),q.getSize());eO(this,"w",w.getWidth(),q.getWidth());kl(this,"c",_.OL(w,2),_.OL(q,2));kl(this,"d",_.OL(w,3),_.OL(q,3));eO(this,"h",w.getHeight(),q.getHeight());kl(this,"s",nW(w,33),nW(q,33));kl(this,"h",w.getHtml(),q.getHtml());kl(this,"p",_.OL(w,19),_.OL(q,19));kl(this,"pp",_.OL(w,52),_.OL(q,52));kl(this,"pf",_.OL(w,67),_.OL(q,67));kl(this,"n",
_.OL(w,20),_.OL(q,20));eO(this,"r",Hg(w,26),Hg(q,26));kl(this,"r",_.OL(w,6),_.OL(q,6));kl(this,"o",nW(w,27),nW(q,27));var u=_.d9(w,7,_.WS);tT(this,"o",u,_.d9(q,7,_.WS));u=_.d9(w,29,_.WS);tT(this,"j",u,_.d9(q,29,_.WS));eO(this,"x",Hg(w,9),Hg(q,9));eO(this,"y",Hg(w,10),Hg(q,10));eO(this,"z",Hg(w,11),Hg(q,11));kl(this,"g",_.OL(w,14),_.OL(q,14));eO(this,"e",Hg(w,15),Hg(q,15));tT(this,"f",_.iI(w,16),_.iI(q,16));kl(this,"k",nW(w,17),nW(q,17));kl(this,"u",nW(w,18),!0);kl(this,"ut",nW(w,45),!0);kl(this,"i",
nW(w,22),!0);kl(this,"a",nW(w,21),nW(q,21));kl(this,"b",_.OL(w,23),_.OL(q,23));eO(this,"b",Hg(w,38),Hg(q,38));eO(this,"c",Hg(w,39),Hg(q,39),16,8);tT(this,"q",_.iI(w,28),_.iI(q,28));kl(this,"fh",nW(w,30),nW(q,30));kl(this,"fv",nW(w,31),nW(q,31));kl(this,"fg",_.OL(w,34),_.OL(q,34));kl(this,"ci",nW(w,32),nW(q,32));tT(this,"t",w.getToken(),q.getToken());tT(this,"nt0",_.iI(w,36),_.iI(q,36));kl(this,"rw",_.OL(w,35),_.OL(q,35));kl(this,"rwu",_.OL(w,41),_.OL(q,41));kl(this,"rwa",_.OL(w,64),_.OL(q,64));kl(this,
"nw",_.OL(w,48),_.OL(q,48));kl(this,"rh",_.OL(w,49),_.OL(q,49));kl(this,"no",_.OL(w,37),_.OL(q,37));kl(this,"ns",nW(w,40),nW(q,40));eO(this,"k",Hg(w,42),Hg(q,42));eO(this,"p",Hg(w,43),Hg(q,43));eO(this,"l",Hg(w,44),Hg(q,44));eO(this,"v",Hg(w,62),Hg(q,62));kl(this,"nu",nW(w,46),nW(q,46));kl(this,"ft",nW(w,50),nW(q,50));kl(this,"cc",nW(w,51),nW(q,51));kl(this,"nd",nW(w,53),nW(q,53));kl(this,"ip",nW(w,54),nW(q,54));kl(this,"nc",nW(w,55),nW(q,55));eO(this,"a",Hg(w,56),Hg(q,56));kl(this,"rj",nW(w,57),
nW(q,57));kl(this,"rp",nW(w,58),nW(q,58));kl(this,"rg",nW(w,59),nW(q,59));kl(this,"pd",nW(w,60),nW(q,60));kl(this,"pa",nW(w,61),nW(q,61));eO(this,"m",Hg(w,63),Hg(q,63));eO(this,"vb",Wg(w,68),Wg(q,68));eO(this,"vl",Wg(w,69),Wg(q,69));kl(this,"lf",nW(w,65),nW(q,65));kl(this,"mv",nW(w,66),nW(q,66));kl(this,"id",nW(w,70),nW(q,70));eO(this,"ic",Hg(w,71),!0);kl(this,"pg",_.OL(w,72),_.OL(q,72));kl(this,"mo",nW(w,73),nW(q,73));kl(this,"al",nW(w,74),nW(q,74));eO(this,"iv",Wg(w,75),Wg(q,75));eO(this,"pi",sR(w,
76),sR(q,76));eO(this,"ya",sR(w,77),sR(q,77));eO(this,"ro",sR(w,78),sR(q,78));eO(this,"fo",sR(w,79),sR(q,79));kl(this,"df",nW(w,80),nW(q,80));tT(this,"mm",_.iI(w,81),_.iI(q,81));kl(this,"sg",nW(w,82),nW(q,82));kl(this,"gd",nW(w,83),nW(q,83));kl(this,"fm",nW(w,84),nW(q,84));eO(this,"ba",Hg(w,85),Hg(q,85));eO(this,"br",Hg(w,86),Hg(q,86));eO(this,"bc",w.getBackgroundColor(),q.getBackgroundColor(),16,8);eO(this,"pc",Hg(w,88),Hg(q,88),16,8);eO(this,"sc",Hg(w,89),Hg(q,89),16,8);kl(this,"dv",nW(w,90),nW(q,
90));kl(this,"md",nW(w,91),nW(q,91));eO(this,"cp",Hg(w,92),Hg(q,92));kl(this,"sm",nW(w,93),nW(q,93));eO(this,"cv",Hg(w,94),Hg(q,94));kl(this,"ng",nW(w,95),nW(q,95));kl(this,"il",nW(w,96),nW(q,96));kl(this,"lo",nW(w,97),nW(q,97));kl(this,"vm",nW(w,98),nW(q,98));tT(this,"dc",_.iI(w,99),_.iI(q,99));kl(this,"rf",nW(w,100),nW(q,100));tT(this,"vf",_.iI(w,102),_.iI(q,102));kl(this,"ra",_.OL(w,103),_.OL(q,103));kl(this,"ckm",nW(w,104),nW(q,104));kl(this,"gm",nW(w,105),nW(q,105));kl(this,"ngm",nW(w,106),nW(q,
106));eO(this,"em",Hg(w,107),Hg(q,107));kl(this,"cr",nW(w,108),nW(q,108));eO(this,"sl",w.getStoryboardLevel(),q.getStoryboardLevel());eO(this,"sb",Hg(w,110),Hg(q,110));tT(this,"pt",_.iI(w,111),_.iI(q,111));tT(this,"gce",_.iI(w,112),_.iI(q,112));kl(this,"tm",nW(w,113),nW(q,113));kl(this,"ntm",nW(w,114),nW(q,114));return this.JSC$17212_components_.join("-")};
var eO=function(q,w,u,y,e,t){if(u!=null){var X=e==void 0||e!=10&&e!=16?10:e;u=Number(u).toString(X);e=new ucK;e.append(X==16?"0x":"");X=e.append;t==void 0?t="":(t-=u.length,t=t<=0?"":(0,_.mvM)("0",t));X.call(e,t);e.append(u);mFc(q,w,e.toString(),!!Number(y))}},kl=function(q,w,u,y){u&&mFc(q,w,"",!!y)},tT=function(q,w,u,y){u&&mFc(q,w,String(u),!!Number(y))},mFc=function(q,w,u,y){y&&(w=w.charAt(0).toUpperCase()+w.substring(1));
q.JSC$17212_components_.push(w+u)};_.w9(Te,E84);_.k=Te.prototype;_.k.JSC$17214_setCrop=function(q){q&&PN(this);return Te.superClass_.JSC$17214_setCrop.call(this,q)};
_.k.JSC$17214_setHeight=function(q){q=q==null||q<0?void 0:q;q!=null&&this.setSize();return Te.superClass_.JSC$17214_setHeight.call(this,q)};
_.k.JSC$17214_setImageCrop=function(q){q&&PN(this);return Te.superClass_.JSC$17214_setImageCrop.call(this,q)};
_.k.JSC$17214_setCircleCrop=function(q){q&&PN(this);return Te.superClass_.JSC$17214_setCircleCrop.call(this,q)};
_.k.setSize=function(q){_.er(q)&&(q=Math.max(q.width,q.height));q=q==null||q<0?void 0:q;q!=null&&(this.JSC$17214_setWidth(),this.JSC$17214_setHeight());return Te.superClass_.setSize.call(this,q)};
_.k.JSC$17214_setSmartCrop=function(q){q&&PN(this);return Te.superClass_.JSC$17214_setSmartCrop.call(this,q)};
_.k.JSC$17214_setSmartCropNoClip=function(q){q&&PN(this);return Te.superClass_.JSC$17214_setSmartCropNoClip.call(this,q)};
_.k.JSC$17214_setSmartCropUseFace=function(q){q&&PN(this);return Te.superClass_.JSC$17214_setSmartCropUseFace.call(this,q)};
_.k.setCenterCrop=function(q){q&&PN(this);return Te.superClass_.setCenterCrop.call(this,q)};
_.k.JSC$17214_setPad=function(q){q&&PN(this);return Te.superClass_.JSC$17214_setPad.call(this,q)};
_.k.JSC$17214_setWidth=function(q){q=q==null||q<0?void 0:q;q!=null&&this.setSize();return Te.superClass_.JSC$17214_setWidth.call(this,q)};
var A5j=function(q){q.clearOptions();var w=q.JSC$17212_parsedOptions_,u=w.valueProto_;yP(!0,_.OL(u,3),_.OL(w.signatureFlagProto_,3))&&_.P2(u,3,!0);return q},PN=function(q){q.setCenterCrop();
q.JSC$17214_setCircleCrop();q.JSC$17214_setCrop();q.JSC$17214_setImageCrop();q.JSC$17214_setPad();q.JSC$17214_setSmartCrop();q.JSC$17214_setSmartCropNoClip();q.JSC$17214_setSmartCropUseFace()};
Te.prototype.build=function(){var q=this.JSC$17212_parsedOptions_.valueProto_;nW(q,18)||nW(q,45)?q.getSize()||this.setSize(0):(q=this.JSC$17212_parsedOptions_.valueProto_,q.getSize()||q.getWidth()||q.getHeight()||(this.setSize(),this.JSC$17214_setHeight(),this.JSC$17214_setWidth(),PN(this)));return Te.superClass_.build.call(this)};var J54=/^[^\/]*\/\//,XB=function(q,w){w=w===void 0?!1:w;this.original_=q;this.originalPrefix_="";(q=this.original_.match(J54))&&q[0]?(this.originalPrefix_=q[0],q=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):q="http://"+this.original_;this.uri_=_.h1(q,!0);this.isFreeformUrl_=w;this.JSC$17218_valid_=!0;this.obfuscated_=!1},zzx=function(q,w){q.JSC$17220_pathPrefix_=q.JSC$17220_pathPrefix_?q.JSC$17220_pathPrefix_+("/"+w):w},FB=function(q){if(q.JSC$17220_components_==
void 0){var w=q.uri_.getPath().substring(1);
q.JSC$17220_pathPrefix_=null;if(q.isFreeformUrl_){q.JSC$17220_components_=[];if((w.match(/=/g)||[]).length>1)return q.JSC$17218_valid_=!1,q.JSC$17220_components_;var u=w.indexOf("=");u!=-1?(q.JSC$17220_components_.push(w.substr(0,u)),q.JSC$17220_components_.push(w.substr(u+1))):q.JSC$17220_components_.push(w);return q.JSC$17220_components_}q.JSC$17220_components_=w.split("/");w=q.JSC$17220_components_.length;w>2&&q.JSC$17220_components_[0]=="u"&&(zzx(q,q.JSC$17220_components_[0]+"/"+q.JSC$17220_components_[1]),
q.JSC$17220_components_.shift(),q.JSC$17220_components_.shift(),w-=2);if(w==0||w==4||w>7)return q.JSC$17218_valid_=!1,q.JSC$17220_components_;if(w==2)zzx(q,q.JSC$17220_components_[0]);else if(q.JSC$17220_components_[0]=="image")zzx(q,q.JSC$17220_components_[0]);else if(w==7||w==3)return q.JSC$17218_valid_=!1,q.JSC$17220_components_;if(w<=3){q.obfuscated_=!0;w==3&&(zzx(q,q.JSC$17220_components_[1]),q.JSC$17220_components_.shift(),--w);--w;u=q.JSC$17220_components_[w];var y=u.indexOf("=");y!=-1&&(q.JSC$17220_components_[w]=
u.substr(0,y),q.JSC$17220_components_.push(u.substr(y+1)))}}return q.JSC$17220_components_};
XB.prototype.isValid=function(){FB(this);return this.JSC$17218_valid_};
XB.prototype.isObfuscated=function(){FB(this);return this.obfuscated_};
var a9c=function(q){FB(q);return q.isFreeformUrl_},Gp=function(q){FB(q);
q.JSC$17220_pathPrefix_==void 0&&(q.JSC$17220_pathPrefix_=null);return q.JSC$17220_pathPrefix_},DFj=function(q){switch(FB(q).length){case 7:return!0;
case 6:return Gp(q)==null;case 5:return!1;case 3:return!0;case 2:return Gp(q)==null;case 1:return!1;default:return!1}},n5=function(q,w){if(a9c(q))a:{switch(w){case 7:w=0;
break;case 4:if(!DFj(q)){q=null;break a}w=1;break;default:q=null;break a}q=FB(q)[w]}else if(q.isObfuscated())a:{var u=Gp(q)!=null?1:0;switch(w){case 6:w=u;break;case 4:if(!DFj(q)){q=null;break a}w=1+u;break;default:q=null;break a}q=FB(q)[w]}else a:{u=Gp(q)!=null?1:0;switch(w){case 0:w=u;break;case 1:w=1+u;break;case 2:w=2+u;break;case 3:w=3+u;break;case 4:if(!DFj(q)){q=null;break a}w=4+u;break;case 5:w=DFj(q)?1:0;w=4+u+w;break;default:q=null;break a}q=FB(q)[w]}return q};
XB.prototype.getOptions=function(){this.options_==void 0&&(this.options_=n5(this,4));return this.options_};var Skh=function(){};
Skh.prototype.parse=function(q,w){return new RYA(q,w===void 0?!1:w)};
var RYA=function(q,w){XB.call(this,q,w===void 0?!1:w)};
_.O(RYA,XB);_.w9(C_,Te);var cqj;C_.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
C_.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var q=C_.superClass_.build.call(this),w=[];Gp(this.parsedImageUrl_)!=null&&w.push(Gp(this.parsedImageUrl_));var u=a9c(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var y=this.parsedImageUrl_;y.obfuscatedData_==void 0&&(y.obfuscatedData_=n5(y,6));w.push(y.obfuscatedData_+(q?"="+q:""))}else if(u){y=w.push;var e=this.parsedImageUrl_;e.freeformUrlPath_===void 0&&(e.freeformUrlPath_=n5(e,
7));y.call(w,e.freeformUrlPath_);q&&w.push(q)}else y=w.push,e=this.parsedImageUrl_,e.obfuscatedGaiaId_==void 0&&(e.obfuscatedGaiaId_=n5(e,0)),y.call(w,e.obfuscatedGaiaId_),y=w.push,e=this.parsedImageUrl_,e.photoId_==void 0&&(e.photoId_=n5(e,1)),y.call(w,e.photoId_),y=w.push,e=this.parsedImageUrl_,e.imageVersion_==void 0&&(e.imageVersion_=n5(e,2)),y.call(w,e.imageVersion_),y=w.push,e=this.parsedImageUrl_,e.signature_==void 0&&(e.signature_=n5(e,3)),y.call(w,e.signature_),q&&w.push(q),q=w.push,y=this.parsedImageUrl_,
y.filename_==void 0&&(y.filename_=n5(y,5)),q.call(w,y.filename_);w=u?w.join("="):w.join("/");w=_.h1(this.protocolPrefix_+this.JSC$17226_domain_+"/"+w+(this.JSC$17226_query_?"?"+this.JSC$17226_query_:"")).toString();w.startsWith("%3a//")&&(w=w.replace("%3a//","://"));return w};var ZMH=_.Sc(["viewBox"]),pJ4=_.Sc(["width"]),$F6=_.Sc(["height"]),vrT=_.Sc(["fill"]),bMc=_.Sc(["id"]),YjV=_.Sc(["x"]),grK=_.Sc(["y"]);jAT.prototype.getLength=function(){return this.parsedData.length};
jAT.prototype.write=function(q){for(var w=0,u=this.parsedData.length;w<u;w++)q.put(this.parsedData[w],8)};
var q4c=function(q,w){var u=new jAT(w);q.dataList.push(u);u=q.errorCorrectLevel;var y=1,e=encodeURI(w).toString().replace(/%[0-9a-fA-F]{2}/g,"a");w=e.length+(e.length!=w?3:0);e=0;for(var t=HN.length;e<=t;e++){var X=0;switch(u){case 1:X=HN[e][0];break;case 0:X=HN[e][1];break;case 3:X=HN[e][2];break;case 2:X=HN[e][3]}if(w<=X)break;else y++}if(y>HN.length)throw Error("uk");q.typeNumber=y;q.dataCache=null};
lnh.prototype.isDark=function(q,w){if(q<0||this.moduleCount<=q||w<0||this.moduleCount<=w)throw Error("mk`"+q+"`"+w);return this.modules[q][w]};
for(var w04=function(q,w,u){q.moduleCount=q.typeNumber*4+17;q.modules=Array(q.moduleCount);for(var y=0;y<q.moduleCount;y++){q.modules[y]=Array(q.moduleCount);for(var e=0;e<q.moduleCount;e++)q.modules[y][e]=null}Erx(q,0,0);Erx(q,q.moduleCount-7,0);Erx(q,0,q.moduleCount-7);y=RzA[q.typeNumber-1];for(e=0;e<y.length;e++)for(var t=0;t<y.length;t++){var X=y[e],G=y[t];if(q.modules[X][G]==null)for(var n=-2;n<=2;n++)for(var N=-2;N<=2;N++)q.modules[X+n][G+N]=n==-2||n==2||N==-2||N==2||n==0&&N==0?!0:!1}for(y=
8;y<q.moduleCount-8;y++)q.modules[y][6]==null&&(q.modules[y][6]=y%2==0);for(y=8;y<q.moduleCount-8;y++)q.modules[6][y]==null&&(q.modules[6][y]=y%2==0);y=q.errorCorrectLevel<<3|u;for(e=y<<10;WN(e)-WN(1335)>=0;)e^=1335<<WN(e)-WN(1335);y=(y<<10|e)^21522;for(e=0;e<15;e++)t=!w&&(y>>e&1)==1,e<6?q.modules[e][8]=t:e<8?q.modules[e+1][8]=t:q.modules[q.moduleCount-15+e][8]=t;for(e=0;e<15;e++)t=!w&&(y>>e&1)==1,e<8?q.modules[8][q.moduleCount-e-1]=t:e<9?q.modules[8][15-e-1+1]=t:q.modules[8][15-e-1]=t;q.modules[q.moduleCount-
8][8]=!w;if(q.typeNumber>=7){y=q.typeNumber;for(e=y<<12;WN(e)-WN(7973)>=0;)e^=7973<<WN(e)-WN(7973);y=y<<12|e;for(e=0;e<18;e++)t=!w&&(y>>e&1)==1,q.modules[Math.floor(e/3)][e%3+q.moduleCount-8-3]=t;for(e=0;e<18;e++)t=!w&&(y>>e&1)==1,q.modules[e%3+q.moduleCount-8-3][Math.floor(e/3)]=t}if(q.dataCache==null){e=q.typeNumber;t=q.dataList;w=q.errorCorrectLevel;y=c5V(e,w);if(y==void 0)throw Error("tk`"+e+"`"+w);X=y.length/3;w=[];for(G=0;G<X;G++){n=y[G*3];N=y[G*3+1];for(var Q=y[G*3+2],I=0;I<n;I++)w.push(new LgA(N,
Q))}y=new Mwm;for(X=0;X<t.length;X++)G=t[X],y.put(G.mode,4),y.put(G.getLength(),Sjq(G.mode,e)),G.write(y);for(X=e=0;X<w.length;X++)e+=w[X].dataCount;if(y.length>e*8)throw Error("nk`"+y.length+"`"+e*8);for(y.length+4<=e*8&&y.put(0,4);y.length%8!=0;)hzH(y,!1);for(;!(y.length>=e*8);){y.put(236,8);if(y.length>=e*8)break;y.put(17,8)}t=e=N=0;X=Array(w.length);G=Array(w.length);for(n=0;n<w.length;n++){I=w[n].dataCount;var U=w[n].totalCount-I;e=Math.max(e,I);t=Math.max(t,U);X[n]=Array(I);for(Q=0;Q<X[n].length;Q++)X[n][Q]=
255&y.buffer[Q+N];N+=I;Q=U;I=new dW([1],0);for(U=0;U<Q;U++)I=I.multiply(new dW([1,jfA(U)],0));Q=I;I=(new dW(X[n],Q.getLength()-1)).mod(Q);G[n]=Array(Q.getLength()-1);for(Q=0;Q<G[n].length;Q++)U=Q+I.getLength()-G[n].length,G[n][Q]=U>=0?I.get(U):0}for(Q=y=0;Q<w.length;Q++)y+=w[Q].totalCount;y=Array(y);for(Q=N=0;Q<e;Q++)for(n=0;n<w.length;n++)Q<X[n].length&&(y[N++]=X[n][Q]);for(Q=0;Q<t;Q++)for(n=0;n<w.length;n++)Q<G[n].length&&(y[N++]=G[n][Q]);q.dataCache=y}w=q.dataCache;y=-1;e=q.moduleCount-1;t=7;X=
0;for(G=q.moduleCount-1;G>0;G-=2)for(G==6&&G--;;){for(n=0;n<2;n++)q.modules[e][G-n]==null&&(N=!1,X<w.length&&(N=(w[X]>>>t&1)==1),l96(u,e,G-n)&&(N=!N),q.modules[e][G-n]=N,t--,t==-1&&(X++,t=7));e+=y;if(e<0||q.moduleCount<=e){e-=y;y=-y;break}}},Erx=function(q,w,u){for(var y=-1;y<=7;y++)if(!(w+y<=-1||q.moduleCount<=w+y))for(var e=-1;e<=7;e++)u+e<=-1||q.moduleCount<=u+e||(q.modules[w+y][u+e]=0<=y&&y<=6&&(e==0||e==6)||0<=e&&e<=6&&(y==0||y==6)||2<=y&&y<=4&&2<=e&&e<=4?!0:!1)},uQm=function(q){for(var w=0,
u=0,y=0;y<8;y++){w04(q,!0,y);
var e=q;for(var t=e.moduleCount,X=0,G=0;G<t;G++)for(var n=0;n<t;n++){for(var N=0,Q=e.isDark(G,n),I=-1;I<=1;I++)if(!(G+I<0||t<=G+I))for(var U=-1;U<=1;U++)n+U<0||t<=n+U||(I!=0||U!=0)&&Q==e.isDark(G+I,n+U)&&N++;N>5&&(X+=3+N-5)}for(G=0;G<t-1;G++)for(n=0;n<t-1;n++)if(N=0,e.isDark(G,n)&&N++,e.isDark(G+1,n)&&N++,e.isDark(G,n+1)&&N++,e.isDark(G+1,n+1)&&N++,N==0||N==4)X+=3;for(G=0;G<t;G++)for(n=0;n<t-6;n++)e.isDark(G,n)&&!e.isDark(G,n+1)&&e.isDark(G,n+2)&&e.isDark(G,n+3)&&e.isDark(G,n+4)&&!e.isDark(G,n+5)&&
e.isDark(G,n+6)&&(X+=40);for(n=0;n<t;n++)for(G=0;G<t-6;G++)e.isDark(G,n)&&!e.isDark(G+1,n)&&e.isDark(G+2,n)&&e.isDark(G+3,n)&&e.isDark(G+4,n)&&!e.isDark(G+5,n)&&e.isDark(G+6,n)&&(X+=40);for(n=N=0;n<t;n++)for(G=0;G<t;G++)e.isDark(G,n)&&N++;e=X+=Math.abs(100*N/t/t-50)/5*10;if(y==0||w>e)w=e,u=y}return u},RzA=[[],
[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]],WN=function(q){for(var w=0;q!=0;)w++,q>>>=1;return w},l96=function(q,w,u){switch(q){case 0:return(w+u)%2==0;
case 1:return w%2==0;case 2:return u%3==0;case 3:return(w+u)%3==0;case 4:return(Math.floor(w/2)+Math.floor(u/3))%2==0;case 5:return w*u%2+w*u%3==0;case 6:return(w*u%2+w*u%3)%2==0;case 7:return(w*u%3+(w+u)%2)%2==0;default:throw Error("ok`"+q);}},Sjq=function(q,w){if(1<=w&&w<10)switch(q){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("pk`"+q);}else if(w<27)switch(q){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("pk`"+q);}else if(w<41)switch(q){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("pk`"+q);}else throw Error("qk`"+w);},sx=function(q){if(q<1)throw Error("rk`"+q);
return LoT[q]},jfA=function(q){for(;q<0;)q+=255;
for(;q>=256;)q-=255;return NW[q]},NW=Array(256),LoT=Array(256),Mnm=0;Mnm<8;Mnm++)NW[Mnm]=1<<Mnm;
for(var QP=8;QP<256;QP++)NW[QP]=NW[QP-4]^NW[QP-5]^NW[QP-6]^NW[QP-8];for(var Koq=0;Koq<255;Koq++)LoT[NW[Koq]]=Koq;dW.prototype.get=function(q){return this.num[q]};
dW.prototype.getLength=function(){return this.num.length};
dW.prototype.multiply=function(q){for(var w=Array(this.getLength()+q.getLength()-1),u=0;u<this.getLength();u++)for(var y=0;y<q.getLength();y++)w[u+y]^=jfA(sx(this.get(u))+sx(q.get(y)));return new dW(w,0)};
dW.prototype.mod=function(q){if(this.getLength()-q.getLength()<0)return this;for(var w=sx(this.get(0))-sx(q.get(0)),u=Array(this.getLength()),y=0;y<this.getLength();y++)u[y]=this.get(y);for(y=0;y<q.getLength();y++)u[y]^=jfA(sx(q.get(y))+w);return(new dW(u,0)).mod(q)};
var BDH=[[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]],c5V=function(q,w){switch(w){case 1:return BDH[(q-1)*4];case 0:return BDH[(q-1)*4+1];case 3:return BDH[(q-1)*4+2];case 2:return BDH[(q-1)*4+3]}};
Mwm.prototype.get=function(q){return(this.buffer[Math.floor(q/8)]>>>7-q%8&1)==1};
Mwm.prototype.put=function(q,w){for(var u=0;u<w;u++)hzH(this,(q>>>w-u-1&1)==1)};
var hzH=function(q,w){var u=Math.floor(q.length/8);q.buffer.length<=u&&q.buffer.push(0);w&&(q.buffer[u]|=128>>>q.length%8);q.length++},HN=[[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]],x5c=function(){var q=function(w,u){this.JSC$17246__el=w;this.JSC$17246__htOption=u};
q.prototype.draw=function(w){function u(Q,I){Q=document.createElementNS("http://www.w3.org/2000/svg",Q);for(var U in I)I.hasOwnProperty(U)&&(U==="href"?_.Lx6(Q,I[U]):_.gB([_.BI(ZMH),_.BI(pJ4),_.BI($F6),_.BI(vrT),_.BI(bMc),_.BI(YjV),_.BI(grK)],Q,U,I[U]));return Q}
var y=this.JSC$17246__htOption,e=this.JSC$17246__el,t=w.moduleCount;this.clear();var X=u("svg",{viewBox:"0 0 "+String(t)+" "+String(t),width:"100%",height:"100%",fill:y.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});e.appendChild(X);X.appendChild(u("rect",{fill:y.colorLight,width:"100%",height:"100%"}));X.appendChild(u("rect",{fill:y.colorDark,width:"1",height:"1",id:"template"}));for(var G=0;G<t;G++)for(var n=0;n<t;n++)if(w.isDark(G,n)){var N=u("use",{x:String(G),y:String(n),href:"#template"});
X.appendChild(N)}};
q.prototype.clear=function(){for(;this.JSC$17246__el.hasChildNodes();)this.JSC$17246__el.removeChild(this.JSC$17246__el.lastChild)};
return q}(),Bsh=document.documentElement.tagName.toLowerCase()==="svg"?x5c:typeof CanvasRenderingContext2D!="undefined"?function(){var q=function(w,u){this._bIsPainted=!1;
Kgj();this.JSC$17246__htOption=u;this._elCanvas=document.createElement("canvas");this._elCanvas.width=u.width;this._elCanvas.height=u.height;w.appendChild(this._elCanvas);this.JSC$17246__el=w;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$17246__el.appendChild(this._elImage);this._bSupportDataURI=null};
q.prototype._onMakeImage=function(){var w=this._elCanvas.toDataURL("image/png");this._elImage.src=w;this._elImage.style.display="block";this._elCanvas.style.display="none"};
q.prototype._safeSetDataURI=function(w,u){var y=this;y._fFail=u;y._fSuccess=w;y._bSupportDataURI===null?(w=_.rg("IMG"),u=function(){y._bSupportDataURI=!1;y._fFail&&y._fFail.call(y)},w.onabort=u,w.onerror=u,w.onload=function(){y._bSupportDataURI=!0;
y._fSuccess&&y._fSuccess.call(y)},w.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):y._bSupportDataURI===!0&&y._fSuccess?y._fSuccess.call(y):y._bSupportDataURI===!1&&y._fFail&&y._fFail.call(y)};
q.prototype.draw=function(w){var u=this._oContext,y=this.JSC$17246__htOption,e=w.moduleCount,t=y.width/e,X=y.height/e,G=Math.round(t),n=Math.round(X);this._elImage.style.display="none";this.clear();for(var N=0;N<e;N++)for(var Q=0;Q<e;Q++){var I=w.isDark(N,Q),U=Q*t,d=N*X;u.strokeStyle=I?y.colorDark:y.colorLight;u.lineWidth=1;u.fillStyle=I?y.colorDark:y.colorLight;u.fillRect(U,d,t,X);u.strokeRect(Math.floor(U)+.5,Math.floor(d)+.5,G,n);u.strokeRect(Math.ceil(U)-.5,Math.ceil(d)-.5,G,n)}this._bIsPainted=
!0};
q.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
q.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
q.prototype.round=function(w){return w?Math.floor(w*1E3)/1E3:w};
return q}():function(){var q=function(w,u){this.JSC$17246__el=w;
this.JSC$17246__htOption=u};
q.prototype.draw=function(w){for(var u=this.JSC$17246__htOption,y=this.JSC$17246__el,e=w.moduleCount,t=Math.floor(u.width/e),X=Math.floor(u.height/e),G=['<table style="border:0;border-collapse:collapse;">'],n=0;n<e;n++){G.push("<tr>");for(var N=0;N<e;N++)G.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+t+"px;height:"+X+"px;background-color:"+(w.isDark(n,N)?u.colorDark:u.colorLight)+';"></td>');G.push("</tr>")}G.push("</table>");w=G.join("");w=_.i76(_.UMX,w);_.Ym(y,w);
w=y.childNodes[0];e=(u.width-w.offsetWidth)/2;t=(u.height-w.offsetHeight)/2;e>0&&t>0&&(w.style.margin=t+"px "+e+"px")};
q.prototype.clear=function(){this.JSC$17246__el.textContent=""};
return q}();
y24.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17249__android||this.JSC$17249__android>=3)&&this._oDrawing.makeImage()};
y24.prototype.clear=function(){this._oDrawing.clear()};
_.uc.QRCode=y24;var xFj={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var IF=function(){};
IF.prototype.stringify=function(q){return _.uc.JSON.stringify(q,void 0)};
IF.prototype.parse=function(q){return _.uc.JSON.parse(q,void 0)};var qcq=function(){_.nM.call(this,"z")};
_.w9(qcq,_.nM);var wzc=function(){_.nM.call(this,"y")};
_.w9(wzc,_.nM);var uCT=null,yYa=function(){return uCT=uCT||new _.Q4},eJm=function(q){_.nM.call(this,"serverreachability",q)};
_.w9(eJm,_.nM);var ig=function(q){var w=yYa();w.dispatchEvent(new eJm(w,q))},kIh=function(q){_.nM.call(this,"statevent",q)};
_.w9(kIh,_.nM);var r8=function(q){var w=yYa();w.dispatchEvent(new kIh(w,q))},t4B=function(q,w,u,y){_.nM.call(this,"timingevent",q);
this.size=w;this.rtt=u;this.retries=y};
_.w9(t4B,_.nM);var P5j=function(q,w,u){var y=yYa();y.dispatchEvent(new t4B(y,q,w,u))},Ux=function(q,w){if(typeof q!=="function")throw Error("vk");
return _.uc.setTimeout(function(){q()},w)};var Tp=function(){this.redactEnabled_=!0};
Tp.prototype.disableRedact=function(){this.redactEnabled_=!1};
var Xzm=function(q,w,u,y,e,t){q.info(function(){if(q.redactEnabled_)if(t){var X="";for(var G=t.split("&"),n=0;n<G.length;n++){var N=G[n].split("=");if(N.length>1){var Q=N[0];N=N[1];var I=Q.split("_");X=I.length>=2&&I[1]=="type"?X+(Q+"="+N+"&"):X+(Q+"=redacted&")}}}else X=null;else X=t;return"XMLHTTP REQ ("+y+") [attempt "+e+"]: "+w+"\n"+u+"\n"+X})},Fvj=function(q,w,u,y,e,t,X){q.info(function(){return"XMLHTTP RESP ("+y+") [ attempt "+e+"]: "+w+"\n"+u+"\n"+t+" "+X})},C5=function(q,w,u,y){q.info(function(){return"XMLHTTP TEXT ("+
w+"): "+GIK(q,u)+(y?" "+y:"")})},nQA=function(q,w){q.info(function(){return"TIMEOUT: "+w})};
Tp.prototype.debug=function(){};
Tp.prototype.info=function(){};
Tp.prototype.warning=function(){};
var GIK=function(q,w){if(!q.redactEnabled_)return w;if(!w)return null;try{var u=JSON.parse(w);if(u)for(var y=0;y<u.length;y++)if(Array.isArray(u[y])){var e=u[y];if(!(e.length<2)){var t=e[1];if(Array.isArray(t)&&!(t.length<1)){var X=t[0];if(X!="noop"&&X!="stop"&&X!="close")for(var G=1;G<t.length;G++)t[G]=""}}}return(0,_.dD)(u)}catch(n){return q.debug("Exception parsing expected JS array - probably was not JS"),w}};var d8=function(q,w,u,y,e){this.JSC$17271_channel_=q;this.JSC$17271_channelDebug_=w;this.sid_=u;this.JSC$17271_rid_=y;this.JSC$17271_retryId_=e||1;this.JSC$17271_eventHandler_=new _.tp(this);this.timeout_=45E3;this.JSC$17271_extraHeaders_=null;this.JSC$17271_successful_=!1;this.JSC$17271_postData_=this.JSC$17271_requestUri_=this.JSC$17271_baseUri_=this.JSC$17271_type_=this.JSC$17271_requestStartTime_=this.JSC$17271_watchDogTimeoutTime_=this.JSC$17271_watchDogTimerId_=null;this.JSC$17271_pendingMessages_=
[];this.JSC$17271_xmlHttp_=null;this.JSC$17271_xmlHttpChunkStart_=0;this.JSC$17271_lastError_=this.JSC$17271_verb_=null;this.JSC$17271_lastStatusCode_=-1;this.JSC$17271_cancelled_=!1;this.JSC$17271_readyStateChangeThrottleMs_=0;this.JSC$17271_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new Hdj},Hdj=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},Wvc=function(q,w){switch(q){case 0:return"Non-200 return code ("+w+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},sqq={},Na4={};
d8.prototype.setTimeout=function(q){this.timeout_=q};
var IQa=function(q,w,u){q.JSC$17271_type_=1;q.JSC$17271_baseUri_=_.u5(w.clone());q.JSC$17271_postData_=u;q.decodeChunks_=!0;QqB(q,null)},QqB=function(q,w){q.JSC$17271_requestStartTime_=Date.now();
idh(q);q.JSC$17271_requestUri_=q.JSC$17271_baseUri_.clone();kg(q.JSC$17271_requestUri_,"t",q.JSC$17271_retryId_);q.JSC$17271_xmlHttpChunkStart_=0;var u=q.JSC$17271_channel_.JSC$17290_supportsCrossDomainXhrs_;q.fetchResponseState_=new Hdj;q.JSC$17271_xmlHttp_=rYc(q.JSC$17271_channel_,u?w:null,!q.JSC$17271_postData_);q.JSC$17271_readyStateChangeThrottleMs_>0&&(q.JSC$17271_readyStateChangeThrottle_=new _.MI((0,_.fY)(q.JSC$17275_xmlHttpHandler_,q,q.JSC$17271_xmlHttp_),q.JSC$17271_readyStateChangeThrottleMs_));
q.JSC$17271_eventHandler_.listen(q.JSC$17271_xmlHttp_,"readystatechange",q.JSC$17275_readyStateChangeHandler_);w=q.JSC$17271_extraHeaders_?_.db.clone(q.JSC$17271_extraHeaders_):{};q.JSC$17271_postData_?(q.JSC$17271_verb_||(q.JSC$17271_verb_="POST"),w["Content-Type"]="application/x-www-form-urlencoded",q.JSC$17271_xmlHttp_.send(q.JSC$17271_requestUri_,q.JSC$17271_verb_,q.JSC$17271_postData_,w)):(q.JSC$17271_verb_="GET",q.JSC$17271_xmlHttp_.send(q.JSC$17271_requestUri_,q.JSC$17271_verb_,null,w));ig(1);
Xzm(q.JSC$17271_channelDebug_,q.JSC$17271_verb_,q.JSC$17271_requestUri_,q.JSC$17271_rid_,q.JSC$17271_retryId_,q.JSC$17271_postData_)};
d8.prototype.JSC$17275_readyStateChangeHandler_=function(q){q=q.target;var w=this.JSC$17271_readyStateChangeThrottle_;w&&_.of(q)==3?(this.JSC$17271_channelDebug_.debug("Throttling readystatechange."),w.fire()):this.JSC$17275_xmlHttpHandler_(q)};
d8.prototype.JSC$17275_xmlHttpHandler_=function(q){try{q==this.JSC$17271_xmlHttp_?UHB(this):this.JSC$17271_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(w){this.JSC$17271_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),Taj(this)}finally{}};
var UHB=function(q){var w=_.of(q.JSC$17271_xmlHttp_),u=q.JSC$17271_xmlHttp_.JSC$7699_lastErrorCode_,y=q.JSC$17271_xmlHttp_.getStatus();if(!(w<3||w==3&&!Taj(q))){q.JSC$17271_cancelled_||w!=4||u==7||(u==8||y<=0?ig(3):ig(2));C5c(q);var e=q.JSC$17271_xmlHttp_.getStatus();q.JSC$17271_lastStatusCode_=e;u=dHH(q);Taj(q)||q.JSC$17271_channelDebug_.debug(function(){return"No response text for uri "+q.JSC$17271_requestUri_+" status "+e});
q.JSC$17271_successful_=e==200;Fvj(q.JSC$17271_channelDebug_,q.JSC$17271_verb_,q.JSC$17271_requestUri_,q.JSC$17271_rid_,q.JSC$17271_retryId_,w,e);if(q.JSC$17271_successful_){if(q.decodeInitialResponse_&&!q.initialResponseDecoded_)if(y=Oda(q))C5(q.JSC$17271_channelDebug_,q.JSC$17271_rid_,y,"Initial handshake response via X-HTTP-Initial-Response"),q.initialResponseDecoded_=!0,oQ6(q,y);else{q.JSC$17271_successful_=!1;q.JSC$17271_lastError_=3;r8(12);q.JSC$17271_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
q.JSC$17271_rid_+")");Ox(q);oF(q);return}q.decodeChunks_?V46(q,w,u):(C5(q.JSC$17271_channelDebug_,q.JSC$17271_rid_,u,null),oQ6(q,u));w==4&&Ox(q);q.JSC$17271_successful_&&!q.JSC$17271_cancelled_&&(w==4?fQm(q.JSC$17271_channel_,q):(q.JSC$17271_successful_=!1,idh(q)))}else Op6(q.JSC$17271_xmlHttp_),e==400&&u.indexOf("Unknown SID")>0?(q.JSC$17271_lastError_=3,r8(12),q.JSC$17271_channelDebug_.warning("XMLHTTP Unknown SID ("+q.JSC$17271_rid_+")")):(q.JSC$17271_lastError_=0,r8(13),q.JSC$17271_channelDebug_.warning("XMLHTTP Bad status "+
e+" ("+q.JSC$17271_rid_+")")),Ox(q),oF(q)}},Oda=function(q){return q.JSC$17271_xmlHttp_&&(q=HP(q.JSC$17271_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Gy(q)?q:null},dHH=function(q){if(!mHa(q))return q.JSC$17271_xmlHttp_.getResponseText();
var w=q.JSC$17271_xmlHttp_.getResponse();if(w==="")return"";var u="",y=w.length,e=_.of(q.JSC$17271_xmlHttp_)==4;if(!q.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return Ox(q),oF(q),"";q.fetchResponseState_.textDecoder=new _.uc.TextDecoder}for(var t=0;t<y;t++)q.fetchResponseState_.responseArrivedForFetch=!0,u+=q.fetchResponseState_.textDecoder.decode(w[t],{stream:!(e&&t==y-1)});w.length=0;q.fetchResponseState_.responseBuffer+=u;q.JSC$17271_xmlHttpChunkStart_=0;return q.fetchResponseState_.responseBuffer},
Taj=function(q){return q.JSC$17271_xmlHttp_?q.fetchResponseState_.responseArrivedForFetch?!0:!(!q.JSC$17271_xmlHttp_.getResponseText()&&!q.JSC$17271_xmlHttp_.getResponse()):!1},mHa=function(q){return q.JSC$17271_xmlHttp_?q.JSC$17271_verb_=="GET"&&q.JSC$17271_type_!=2&&q.JSC$17271_channel_.usesFetchStreams_:!1},V46=function(q,w,u){for(var y=!0,e;!q.JSC$17271_cancelled_&&q.JSC$17271_xmlHttpChunkStart_<u.length;)if(e=AYj(q,u),e==Na4){w==4&&(q.JSC$17271_lastError_=4,r8(14),y=!1);
C5(q.JSC$17271_channelDebug_,q.JSC$17271_rid_,null,"[Incomplete Response]");break}else if(e==sqq){q.JSC$17271_lastError_=4;r8(15);C5(q.JSC$17271_channelDebug_,q.JSC$17271_rid_,u,"[Invalid Chunk]");y=!1;break}else C5(q.JSC$17271_channelDebug_,q.JSC$17271_rid_,e,null),oQ6(q,e);mHa(q)&&q.JSC$17271_xmlHttpChunkStart_!=0&&(q.fetchResponseState_.responseBuffer=q.fetchResponseState_.responseBuffer.slice(q.JSC$17271_xmlHttpChunkStart_),q.JSC$17271_xmlHttpChunkStart_=0);w!=4||u.length!=0||q.fetchResponseState_.responseArrivedForFetch||
(q.JSC$17271_lastError_=1,r8(16),y=!1);q.JSC$17271_successful_=q.JSC$17271_successful_&&y;y?u.length>0&&!q.firstByteReceived_&&(q.firstByteReceived_=!0,w=q.JSC$17271_channel_,w.JSC$17290_backChannelRequest_==q&&w.detectBufferingProxy_&&!w.bpDetectionDone_&&(w.JSC$17290_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+u.length),JY4(w),w.bpDetectionDone_=!0,r8(11))):(C5(q.JSC$17271_channelDebug_,q.JSC$17271_rid_,u,"[Invalid Chunked Response]"),Ox(q),oF(q))},AYj=function(q,w){var u=
q.JSC$17271_xmlHttpChunkStart_,y=w.indexOf("\n",u);
if(y==-1)return Na4;u=Number(w.substring(u,y));if(isNaN(u))return sqq;y+=1;if(y+u>w.length)return Na4;w=w.slice(y,y+u);q.JSC$17271_xmlHttpChunkStart_=y+u;return w};
d8.prototype.cancel=function(){this.JSC$17271_cancelled_=!0;Ox(this)};
var idh=function(q){q.JSC$17271_watchDogTimeoutTime_=Date.now()+q.timeout_;zJ4(q,q.timeout_)},zJ4=function(q,w){if(q.JSC$17271_watchDogTimerId_!=null)throw Error("wk");
q.JSC$17271_watchDogTimerId_=Ux((0,_.fY)(q.JSC$17275_onWatchDogTimeout_,q),w)},C5c=function(q){q.JSC$17271_watchDogTimerId_&&(_.uc.clearTimeout(q.JSC$17271_watchDogTimerId_),q.JSC$17271_watchDogTimerId_=null)};
d8.prototype.JSC$17275_onWatchDogTimeout_=function(){this.JSC$17271_watchDogTimerId_=null;var q=Date.now();q-this.JSC$17271_watchDogTimeoutTime_>=0?(nQA(this.JSC$17271_channelDebug_,this.JSC$17271_requestUri_),this.JSC$17271_type_!=2&&(ig(3),r8(17)),Ox(this),this.JSC$17271_lastError_=2,oF(this)):(this.JSC$17271_channelDebug_.warning("WatchDog timer called too early"),zJ4(this,this.JSC$17271_watchDogTimeoutTime_-q))};
var oF=function(q){q.JSC$17271_channel_.state_==0||q.JSC$17271_cancelled_||fQm(q.JSC$17271_channel_,q)},Ox=function(q){C5c(q);
_.BX(q.JSC$17271_readyStateChangeThrottle_);q.JSC$17271_readyStateChangeThrottle_=null;q.JSC$17271_eventHandler_.removeAll();if(q.JSC$17271_xmlHttp_){var w=q.JSC$17271_xmlHttp_;q.JSC$17271_xmlHttp_=null;w.abort();w.dispose()}};
d8.prototype.getLastError=function(){return this.JSC$17271_lastError_};
var oQ6=function(q,w){try{var u=q.JSC$17271_channel_;if(u.state_!=0&&(u.JSC$17290_backChannelRequest_==q||aQT(u.forwardChannelRequestPool_,q)))if(!q.initialResponseDecoded_&&aQT(u.forwardChannelRequestPool_,q)&&u.state_==3){try{var y=u.wireCodec_.JSC$17285_parser_.parse(w)}catch(G){y=null}if(Array.isArray(y)&&y.length==3){w=y;if(w[0]==0)a:if(u.JSC$17290_channelDebug_.debug("Server claims our backchannel is missing."),u.JSC$17290_backChannelTimerId_)u.JSC$17290_channelDebug_.debug("But we are currently starting the request.");
else{if(u.JSC$17290_backChannelRequest_)if(u.JSC$17290_backChannelRequest_.JSC$17271_requestStartTime_+3E3<q.JSC$17271_requestStartTime_)DHh(u),Zdc(u);else break a;else u.JSC$17290_channelDebug_.warning("We do not have a BackChannel established");pzm(u);r8(18)}else{u.JSC$17290_lastPostResponseArrayId_=w[1];var e=u.JSC$17290_lastPostResponseArrayId_-u.JSC$17290_lastArrayId_;if(0<e){var t=w[2];u.JSC$17290_channelDebug_.debug(t+" bytes (in "+e+" arrays) are outstanding on the BackChannel");t<37500&&
u.enableStreaming_&&u.JSC$17290_backChannelRetryCount_==0&&!u.JSC$17290_deadBackChannelTimerId_&&(u.JSC$17290_deadBackChannelTimerId_=Ux((0,_.fY)(u.JSC$17292_onBackChannelDead_,u),6E3))}}if($Hh(u.forwardChannelRequestPool_)<=1&&u.forwardChannelFlushedCallback_){try{u.forwardChannelFlushedCallback_()}catch(G){}u.forwardChannelFlushedCallback_=void 0}}else u.JSC$17290_channelDebug_.debug("Bad POST response data returned"),VP(u,11)}else if((q.initialResponseDecoded_||u.JSC$17290_backChannelRequest_==
q)&&DHh(u),!_.Gy(w)){var X=u.wireCodec_.JSC$17285_parser_.parse(w);u.onInput_(X,q)}ig(4)}catch(G){}};var vQK=function(q,w){this.JSC$17278_mapId=q;this.map=w;this.context=null};var bdH=function(q){this.maxPoolSizeConfigured_=q||10;_.uc.PerformanceNavigationTiming?(q=_.uc.performance.getEntriesByType("navigation"),q=q.length>0&&(q[0].nextHopProtocol=="hq"||q[0].nextHopProtocol=="h2")):q=!!(_.uc.chrome&&_.uc.chrome.loadTimes&&_.uc.chrome.loadTimes()&&_.uc.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17281_maxSize_=q?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17281_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17281_request_=null;this.JSC$17281_pendingMessages_=
[]},Yca=function(q){return q.JSC$17281_request_?!0:q.requestPool_?q.requestPool_.size>=q.JSC$17281_maxSize_:!1},$Hh=function(q){return q.JSC$17281_request_?1:q.requestPool_?q.requestPool_.size:0},aQT=function(q,w){return q.JSC$17281_request_?q.JSC$17281_request_==w:q.requestPool_?q.requestPool_.has(w):!1},gQA=function(q,w){q.requestPool_?q.requestPool_.add(w):q.JSC$17281_request_=w},EQB=function(q,w){q.JSC$17281_request_&&q.JSC$17281_request_==w?q.JSC$17281_request_=null:q.requestPool_&&q.requestPool_.has(w)&&
q.requestPool_.delete(w)};
bdH.prototype.cancel=function(){this.JSC$17281_pendingMessages_=RJK(this);if(this.JSC$17281_request_)this.JSC$17281_request_.cancel(),this.JSC$17281_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var q=_.P(this.requestPool_.values()),w=q.next();!w.done;w=q.next())w.value.cancel();this.requestPool_.clear()}};
var RJK=function(q){if(q.JSC$17281_request_!=null)return q.JSC$17281_pendingMessages_.concat(q.JSC$17281_request_.JSC$17271_pendingMessages_);if(q.requestPool_!=null&&q.requestPool_.size!==0){var w=q.JSC$17281_pendingMessages_;q=_.P(q.requestPool_.values());for(var u=q.next();!u.done;u=q.next())w=w.concat(u.value.JSC$17271_pendingMessages_);return w}return _.qT(q.JSC$17281_pendingMessages_)},cY6=function(q,w){q.JSC$17281_pendingMessages_=q.JSC$17281_pendingMessages_.concat(w)};var Sch=function(q,w){var u=new Tp;u.debug("TestLoadImage: loading "+q);if(_.uc.Image){var y=new Image;y.onload=_.rk(f5,u,"TestLoadImage: loaded",!0,w,y);y.onerror=_.rk(f5,u,"TestLoadImage: error",!1,w,y);y.onabort=_.rk(f5,u,"TestLoadImage: abort",!1,w,y);y.ontimeout=_.rk(f5,u,"TestLoadImage: timeout",!1,w,y);_.uc.setTimeout(function(){if(y.ontimeout)y.ontimeout()},1E4);
y.src=q}else w(!1)},hJh=function(q,w){var u=new Tp,y=new AbortController,e=setTimeout(function(){y.abort();
f5(u,"TestPingServer: timeout",!1,w)},1E4);
fetch(q,{signal:y.signal}).then(function(t){clearTimeout(e);t.ok?f5(u,"TestPingServer: ok",!0,w):f5(u,"TestPingServer: server error",!1,w)}).catch(function(){clearTimeout(e);
f5(u,"TestPingServer: error",!1,w)})},f5=function(q,w,u,y,e){try{q.debug(w),e&&(e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null),y(u)}catch(t){}};var jqV=function(){this.JSC$17285_parser_=new IF},lQm=function(q,w,u){var y=u||"";
try{_.mK3(q,function(e,t){var X=e;_.er(e)&&(X=(0,_.dD)(e));w.push(y+t+"="+encodeURIComponent(X))})}catch(e){throw w.push(y+"type="+encodeURIComponent("_badmap")),e;
}};var mz=function(q,w,u){return u&&u.internalChannelParams?u.internalChannelParams[q]||w:w},AT=function(q){this.serverVersion_=0;
this.JSC$17290_outgoingMaps_=[];this.JSC$17290_channelDebug_=new Tp;this.JSC$17290_hostPrefix_=this.JSC$17290_backChannelUri_=this.JSC$17290_forwardChannelUri_=this.JSC$17290_path_=this.JSC$17290_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17290_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17290_extraHeaders_=null;this.JSC$17290_nextMapId_=this.JSC$17290_nextRid_=0;this.JSC$17290_failFast_=mz("failFast",!1,q);this.enableStreaming_=this.JSC$17290_deadBackChannelTimerId_=
this.JSC$17290_backChannelTimerId_=this.JSC$17290_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17290_lastPostResponseArrayId_=this.JSC$17290_lastArrayId_=-1;this.JSC$17290_backChannelAttemptId_=this.JSC$17290_backChannelRetryCount_=this.JSC$17290_forwardChannelRetryCount_=0;this.JSC$17290_baseRetryDelayMs_=mz("baseRetryDelayMs",5E3,q);this.JSC$17290_retryDelaySeedMs_=mz("retryDelaySeedMs",1E4,q);this.JSC$17290_forwardChannelMaxRetries_=
mz("forwardChannelMaxRetries",2,q);this.JSC$17290_forwardChannelRequestTimeoutMs_=mz("forwardChannelRequestTimeoutMs",2E4,q);this.JSC$17290_xmlHttpFactory_=q&&q.xmlHttpFactory||void 0;this.networkTestUrl_=q&&q.networkTestUrl||void 0;this.usesFetchStreams_=q&&q.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17290_supportsCrossDomainXhrs_=q&&q.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new bdH(q&&q.concurrentRequestLimit);this.wireCodec_=new jqV;this.fastHandshake_=
q&&q.fastHandshake||!1;this.encodeInitMessageHeaders_=q&&q.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17290_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=q&&q.blockingHandshake||!1;q&&q.disableRedact&&this.JSC$17290_channelDebug_.disableRedact();q&&q.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
q&&q.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;q&&q.longPollingTimeout&&q.longPollingTimeout>0&&(this.longPollingTimeout_=q.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
AT.prototype.JSC$17292_channelVersion_=8;AT.prototype.state_=1;
AT.prototype.connect=function(q,w,u,y){this.JSC$17290_channelDebug_.debug("connect()");r8(0);this.JSC$17290_path_=q;this.JSC$17290_extraParams_=w||{};u&&y!==void 0&&(this.JSC$17290_extraParams_.OSID=u,this.JSC$17290_extraParams_.OAID=y);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17290_channelDebug_.debug("connectChannel_()");q=LvB(this,null,this.JSC$17290_path_);this.JSC$17290_channelDebug_.debug("GetForwardChannelUri: "+q);this.JSC$17290_forwardChannelUri_=q;M4T(this)};
AT.prototype.disconnect=function(){this.JSC$17290_channelDebug_.debug("disconnect()");Kvj(this);if(this.state_==3){var q=this.JSC$17290_nextRid_++,w=this.JSC$17290_forwardChannelUri_.clone();_.lI(w,"SID",this.sid_);_.lI(w,"RID",q);_.lI(w,"TYPE","terminate");JT(this,w);q=new d8(this,this.JSC$17290_channelDebug_,this.sid_,q);q.JSC$17271_type_=2;q.JSC$17271_baseUri_=_.u5(w.clone());w=!1;if(_.uc.navigator&&_.uc.navigator.sendBeacon)try{w=_.uc.navigator.sendBeacon(q.JSC$17271_baseUri_.toString(),"")}catch(u){}!w&&
_.uc.Image&&((new Image).src=q.JSC$17271_baseUri_,w=!0);w||(q.JSC$17271_xmlHttp_=rYc(q.JSC$17271_channel_,null),q.JSC$17271_xmlHttp_.send(q.JSC$17271_baseUri_));q.JSC$17271_requestStartTime_=Date.now();idh(q)}Ba6(this)};
var Zdc=function(q){q.JSC$17290_backChannelRequest_&&(JY4(q),q.JSC$17290_backChannelRequest_.cancel(),q.JSC$17290_backChannelRequest_=null)},Kvj=function(q){Zdc(q);
q.JSC$17290_backChannelTimerId_&&(_.uc.clearTimeout(q.JSC$17290_backChannelTimerId_),q.JSC$17290_backChannelTimerId_=null);DHh(q);q.forwardChannelRequestPool_.cancel();q.JSC$17290_forwardChannelTimerId_&&(typeof q.JSC$17290_forwardChannelTimerId_==="number"&&_.uc.clearTimeout(q.JSC$17290_forwardChannelTimerId_),q.JSC$17290_forwardChannelTimerId_=null)};
AT.prototype.getState=function(){return this.state_};
var M4T=function(q){Yca(q.forwardChannelRequestPool_)||q.JSC$17290_forwardChannelTimerId_||(q.JSC$17290_forwardChannelTimerId_=!0,_.ih(q.JSC$17292_onStartForwardChannelTimer_,q),q.JSC$17290_forwardChannelRetryCount_=0)},qGq=function(q,w){if($Hh(q.forwardChannelRequestPool_)>=q.forwardChannelRequestPool_.JSC$17281_maxSize_-(q.JSC$17290_forwardChannelTimerId_?1:0))return!1;
if(q.JSC$17290_forwardChannelTimerId_)return q.JSC$17290_channelDebug_.debug("Use the retry request that is already scheduled."),q.JSC$17290_outgoingMaps_=w.JSC$17271_pendingMessages_.concat(q.JSC$17290_outgoingMaps_),!0;if(q.state_==1||q.state_==2||q.JSC$17290_forwardChannelRetryCount_>=(q.JSC$17290_failFast_?0:q.JSC$17290_forwardChannelMaxRetries_))return!1;q.JSC$17290_channelDebug_.debug("Going to retry POST");q.JSC$17290_forwardChannelTimerId_=Ux((0,_.fY)(q.JSC$17292_onStartForwardChannelTimer_,
q,w),xHB(q,q.JSC$17290_forwardChannelRetryCount_));q.JSC$17290_forwardChannelRetryCount_++;return!0};
AT.prototype.JSC$17292_onStartForwardChannelTimer_=function(q){if(this.JSC$17290_forwardChannelTimerId_)if(this.JSC$17290_forwardChannelTimerId_=null,this.JSC$17290_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!q){this.JSC$17290_channelDebug_.debug("open_()");this.JSC$17290_nextRid_=Math.floor(Math.random()*1E5);q=this.JSC$17290_nextRid_++;var w=new d8(this,this.JSC$17290_channelDebug_,"",q),u=this.JSC$17290_extraHeaders_;this.initHeaders_&&(u?(u=_.db.clone(u),_.db.extend(u,this.initHeaders_)):
u=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(w.JSC$17271_extraHeaders_=u,u=null);var y;if(this.fastHandshake_)a:{for(var e=y=0;e<this.JSC$17290_outgoingMaps_.length;e++){b:{var t=this.JSC$17290_outgoingMaps_[e];if("__data__"in t.map&&(t=t.map.__data__,typeof t==="string")){t=t.length;break b}t=void 0}if(t===void 0)break;y+=t;if(y>4096){y=e;break a}if(y===4096||e===this.JSC$17290_outgoingMaps_.length-1){y=e+1;break a}}y=1E3}else y=1E3;y=w_B(this,w,y);
e=this.JSC$17290_forwardChannelUri_.clone();_.lI(e,"RID",q);_.lI(e,"CVER",22);this.httpSessionIdParam_&&_.lI(e,"X-HTTP-Session-Id",this.httpSessionIdParam_);JT(this,e);u&&(this.encodeInitMessageHeaders_?y="headers="+_.lo(OT4(u))+"&"+y:this.httpHeadersOverwriteParam_&&ooj(e,this.httpHeadersOverwriteParam_,u));gQA(this.forwardChannelRequestPool_,w);this.blockingHandshake_&&_.lI(e,"TYPE","init");this.fastHandshake_?(_.lI(e,"$req",y),_.lI(e,"SID","null"),w.decodeInitialResponse_=!0,IQa(w,e,null)):IQa(w,
e,y);this.state_=2}}else this.state_==3&&(q?u7h(this,q):this.JSC$17290_outgoingMaps_.length==0?this.JSC$17290_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):Yca(this.forwardChannelRequestPool_)||(u7h(this),this.JSC$17290_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var u7h=function(q,w){var u;w?u=w.JSC$17271_rid_:u=q.JSC$17290_nextRid_++;var y=q.JSC$17290_forwardChannelUri_.clone();_.lI(y,"SID",q.sid_);_.lI(y,"RID",u);_.lI(y,"AID",q.JSC$17290_lastArrayId_);JT(q,y);q.httpHeadersOverwriteParam_&&q.JSC$17290_extraHeaders_&&ooj(y,q.httpHeadersOverwriteParam_,q.JSC$17290_extraHeaders_);u=new d8(q,q.JSC$17290_channelDebug_,q.sid_,u,q.JSC$17290_forwardChannelRetryCount_+1);q.httpHeadersOverwriteParam_===null&&(u.JSC$17271_extraHeaders_=q.JSC$17290_extraHeaders_);w&&
(q.JSC$17290_outgoingMaps_=w.JSC$17271_pendingMessages_.concat(q.JSC$17290_outgoingMaps_));w=w_B(q,u,1E3);u.setTimeout(Math.round(q.JSC$17290_forwardChannelRequestTimeoutMs_*.5)+Math.round(q.JSC$17290_forwardChannelRequestTimeoutMs_*.5*Math.random()));gQA(q.forwardChannelRequestPool_,u);IQa(u,y,w)},JT=function(q,w){q.JSC$17290_extraParams_&&_.db.forEach(q.JSC$17290_extraParams_,function(u,y){_.lI(w,y,u)});
q.handler_&&_.mK3({},function(u,y){_.lI(w,y,u)})},w_B=function(q,w,u){u=Math.min(q.JSC$17290_outgoingMaps_.length,u);
var y=q.handler_?(0,_.fY)(q.handler_.JSC$17296_badMapError,q.handler_,q):null;a:{for(var e=q.JSC$17290_outgoingMaps_,t=-1;;){var X=["count="+u];t==-1?u>0?(t=e[0].JSC$17278_mapId,X.push("ofs="+t)):t=0:X.push("ofs="+t);for(var G=!0,n=0;n<u;n++){var N=e[n].JSC$17278_mapId,Q=e[n].map;N-=t;if(N<0)t=Math.max(0,e[n].JSC$17278_mapId-100),G=!1;else try{lQm(Q,X,"req"+N+"_")}catch(I){y&&y(Q)}}if(G){y=X.join("&");break a}}y=void 0}q=q.JSC$17290_outgoingMaps_.splice(0,u);w.JSC$17271_pendingMessages_=q;return y},
yLa=function(q){q.JSC$17290_backChannelRequest_||q.JSC$17290_backChannelTimerId_||(q.JSC$17290_backChannelAttemptId_=1,_.ih(q.JSC$17292_onStartBackChannelTimer_,q),q.JSC$17290_backChannelRetryCount_=0)},pzm=function(q){if(q.JSC$17290_backChannelRequest_||q.JSC$17290_backChannelTimerId_||q.JSC$17290_backChannelRetryCount_>=3)return!1;
q.JSC$17290_channelDebug_.debug("Going to retry GET");q.JSC$17290_backChannelAttemptId_++;q.JSC$17290_backChannelTimerId_=Ux((0,_.fY)(q.JSC$17292_onStartBackChannelTimer_,q),xHB(q,q.JSC$17290_backChannelRetryCount_));q.JSC$17290_backChannelRetryCount_++;return!0};
AT.prototype.JSC$17292_onStartBackChannelTimer_=function(){this.JSC$17290_backChannelTimerId_=null;e_A(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17290_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17290_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17290_backChannelRequest_+" "+this.handshakeRttMs_);else{var q=2*this.handshakeRttMs_;this.JSC$17290_channelDebug_.info("BP detection timer enabled: "+q);this.bpDetectionTimerId_=Ux((0,_.fY)(this.onBpDetectionTimer_,
this),q)}};
AT.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17290_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17290_backChannelRequest_.JSC$17271_xmlHttp_!=null){var q=this.JSC$17290_backChannelRequest_.JSC$17271_xmlHttp_.getResponseText();q&&this.JSC$17290_channelDebug_.warning("Timer should have been cancelled : "+q)}this.JSC$17290_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;r8(10);Zdc(this);e_A(this)}else this.JSC$17290_channelDebug_.warning("Invalid operation.")};
var JY4=function(q){q.bpDetectionTimerId_!=null&&(q.JSC$17290_channelDebug_.debug("Cancel the BP detection timer."),_.uc.clearTimeout(q.bpDetectionTimerId_),q.bpDetectionTimerId_=null)},e_A=function(q){q.JSC$17290_channelDebug_.debug("Creating new HttpRequest");
q.JSC$17290_backChannelRequest_=new d8(q,q.JSC$17290_channelDebug_,q.sid_,"rpc",q.JSC$17290_backChannelAttemptId_);q.httpHeadersOverwriteParam_===null&&(q.JSC$17290_backChannelRequest_.JSC$17271_extraHeaders_=q.JSC$17290_extraHeaders_);q.JSC$17290_backChannelRequest_.JSC$17271_readyStateChangeThrottleMs_=0;var w=q.JSC$17290_backChannelUri_.clone();_.lI(w,"RID","rpc");_.lI(w,"SID",q.sid_);_.lI(w,"AID",q.JSC$17290_lastArrayId_);_.lI(w,"CI",q.enableStreaming_?"0":"1");!q.enableStreaming_&&q.longPollingTimeout_&&
_.lI(w,"TO",q.longPollingTimeout_);_.lI(w,"TYPE","xmlhttp");JT(q,w);q.httpHeadersOverwriteParam_&&q.JSC$17290_extraHeaders_&&ooj(w,q.httpHeadersOverwriteParam_,q.JSC$17290_extraHeaders_);q.backChannelRequestTimeoutMs_&&q.JSC$17290_backChannelRequest_.setTimeout(q.backChannelRequestTimeoutMs_);var u=q.JSC$17290_backChannelRequest_,y=q.JSC$17290_hostPrefix_;u.JSC$17271_type_=1;u.JSC$17271_baseUri_=_.u5(w.clone());u.JSC$17271_postData_=null;u.decodeChunks_=!0;QqB(u,y);q.JSC$17290_channelDebug_.debug("New Request created")};
AT.prototype.JSC$17292_onBackChannelDead_=function(){this.JSC$17290_deadBackChannelTimerId_!=null&&(this.JSC$17290_deadBackChannelTimerId_=null,Zdc(this),pzm(this),r8(19))};
var DHh=function(q){q.JSC$17290_deadBackChannelTimerId_!=null&&(_.uc.clearTimeout(q.JSC$17290_deadBackChannelTimerId_),q.JSC$17290_deadBackChannelTimerId_=null)},fQm=function(q,w){q.JSC$17290_channelDebug_.debug("Request complete");
var u=null;if(q.JSC$17290_backChannelRequest_==w){DHh(q);JY4(q);q.JSC$17290_backChannelRequest_=null;var y=2}else if(aQT(q.forwardChannelRequestPool_,w))u=w.JSC$17271_pendingMessages_,EQB(q.forwardChannelRequestPool_,w),y=1;else return;if(q.state_!=0)if(w.JSC$17271_successful_)y==1?(P5j(w.JSC$17271_postData_?w.JSC$17271_postData_.length:0,Date.now()-w.JSC$17271_requestStartTime_,q.JSC$17290_forwardChannelRetryCount_),M4T(q)):yLa(q);else{var e=w.JSC$17271_lastStatusCode_,t=w.getLastError();if(t==3||
t==0&&e>0)q.JSC$17290_channelDebug_.debug("Not retrying due to error type"),e>200&&(q.errorResponseStatusCode_=w.JSC$17271_lastStatusCode_);else{q.JSC$17290_channelDebug_.debug(function(){return"Maybe retrying, last error: "+Wvc(t,q.errorResponseStatusCode_)});
if(y==1&&qGq(q,w)||y==2&&pzm(q))return;q.JSC$17290_channelDebug_.debug("Exceeded max number of retries")}u&&u.length>0&&cY6(q.forwardChannelRequestPool_,u);q.JSC$17290_channelDebug_.debug("Error: HTTP request failed");switch(t){case 1:VP(q,5);break;case 4:VP(q,10);break;case 3:VP(q,6);break;default:VP(q,2)}}},xHB=function(q,w){var u=q.JSC$17290_baseRetryDelayMs_+Math.floor(Math.random()*q.JSC$17290_retryDelaySeedMs_);
q.isActive()||(q.JSC$17290_channelDebug_.debug("Inactive channel"),u*=2);return u*w};
AT.prototype.onInput_=function(q,w){for(var u=0;u<q.length;u++){var y=q[u];this.JSC$17290_lastArrayId_=y[0];y=y[1];if(this.state_==2)if(y[0]=="c"){this.sid_=y[1];this.JSC$17290_hostPrefix_=y[2];var e=y[3];e!=null&&(this.JSC$17292_channelVersion_=e,this.JSC$17290_channelDebug_.info("VER="+this.JSC$17292_channelVersion_));e=y[4];e!=null&&(this.serverVersion_=e,this.JSC$17290_channelDebug_.info("SVER="+this.serverVersion_));y=y[5];y!=null&&typeof y==="number"&&y>0&&(this.backChannelRequestTimeoutMs_=
y*=1.5,this.JSC$17290_channelDebug_.info("backChannelRequestTimeoutMs_="+y));if(y=w.JSC$17271_xmlHttp_){var t=HP(y,"X-Client-Wire-Protocol");t&&(e=this.forwardChannelRequestPool_,!e.requestPool_&&(_.H4(t,"spdy")||_.H4(t,"quic")||_.H4(t,"h2"))&&(e.JSC$17281_maxSize_=e.maxPoolSizeConfigured_,e.requestPool_=new Set,e.JSC$17281_request_&&(gQA(e,e.JSC$17281_request_),e.JSC$17281_request_=null)));this.httpSessionIdParam_&&((y=HP(y,"X-HTTP-Session-Id"))?(this.httpSessionId_=y,_.lI(this.JSC$17290_forwardChannelUri_,
this.httpSessionIdParam_,y)):this.JSC$17290_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17296_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-w.JSC$17271_requestStartTime_,this.JSC$17290_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));y=w;e=LvB(this,this.JSC$17290_supportsCrossDomainXhrs_?this.JSC$17290_hostPrefix_:null,this.JSC$17290_path_);this.JSC$17290_channelDebug_.debug("GetBackChannelUri: "+
e);this.JSC$17290_backChannelUri_=e;y.initialResponseDecoded_?(this.JSC$17290_channelDebug_.debug("Upgrade the handshake request to a backchannel."),EQB(this.forwardChannelRequestPool_,y),e=y,(t=this.backChannelRequestTimeoutMs_)&&e.setTimeout(t),e.JSC$17271_watchDogTimerId_&&(C5c(e),idh(e)),this.JSC$17290_backChannelRequest_=y):yLa(this);this.JSC$17290_outgoingMaps_.length>0&&M4T(this)}else y[0]!="stop"&&y[0]!="close"||VP(this,7);else this.state_==3&&(y[0]=="stop"||y[0]=="close"?y[0]=="stop"?VP(this,
7):this.disconnect():y[0]!="noop"&&this.handler_&&this.handler_.JSC$17296_channelHandleArray(y),this.JSC$17290_backChannelRetryCount_=0)}};
var VP=function(q,w){q.JSC$17290_channelDebug_.info("Error code "+w);if(w==2){var u=(0,_.fY)(q.testNetworkCallback_,q),y=q.networkTestUrl_,e=!y;y=new _.M4(y||"//www.google.com/images/cleardot.gif");_.uc.location&&_.uc.location.protocol=="http"||_.jn(y,"https");_.u5(y);e?Sch(y.toString(),u):hJh(y.toString(),u)}else r8(2);q.onError_(w)};
AT.prototype.testNetworkCallback_=function(q){q?(this.JSC$17290_channelDebug_.info("Successfully pinged google.com"),r8(2)):(this.JSC$17290_channelDebug_.info("Failed to ping google.com"),r8(1))};
AT.prototype.onError_=function(q){this.JSC$17290_channelDebug_.debug("HttpChannel: error - "+q);this.state_=0;this.handler_&&this.handler_.JSC$17296_channelError(q);Ba6(this);Kvj(this)};
var Ba6=function(q){q.state_=0;q.nonAckedMapsAtChannelClose_=[];if(q.handler_){var w=RJK(q.forwardChannelRequestPool_);if(w.length!=0||q.JSC$17290_outgoingMaps_.length!=0)q.JSC$17290_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+w.length+", outgoing: "+q.JSC$17290_outgoingMaps_.length}),_.yF(q.nonAckedMapsAtChannelClose_,w),_.yF(q.nonAckedMapsAtChannelClose_,q.JSC$17290_outgoingMaps_),q.forwardChannelRequestPool_.JSC$17281_pendingMessages_.length=0,_.qT(q.JSC$17290_outgoingMaps_),
q.JSC$17290_outgoingMaps_.length=0;
q.handler_.JSC$17296_channelClosed()}},kXV=function(q){if(q.state_==0)return q.nonAckedMapsAtChannelClose_;
var w=[];_.yF(w,RJK(q.forwardChannelRequestPool_));_.yF(w,q.JSC$17290_outgoingMaps_);return w},LvB=function(q,w,u){var y=_.h1(u);
y.JSC$7931_domain_!=""?(w&&_.lh(y,w+"."+y.JSC$7931_domain_),_.LM(y,y.JSC$7931_port_)):(y=_.uc.location,y=sgA(y.protocol,w?w+"."+y.hostname:y.hostname,+y.port,u));w=q.httpSessionIdParam_;u=q.httpSessionId_;w&&u&&_.lI(y,w,u);_.lI(y,"VER",q.JSC$17292_channelVersion_);JT(q,y);return y},rYc=function(q,w,u){if(w&&!q.JSC$17290_supportsCrossDomainXhrs_)throw Error("xk");
w=q.usesFetchStreams_&&!q.JSC$17290_xmlHttpFactory_?new _.Oj(new JN({streamBinaryChunks:u})):new _.Oj(q.JSC$17290_xmlHttpFactory_);w.JSC$7699_withCredentials_=q.JSC$17290_supportsCrossDomainXhrs_;return w};
AT.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var tFj=function(){};
_.k=tFj.prototype;_.k.JSC$17296_channelOpened=function(){};
_.k.JSC$17296_channelHandleArray=function(){};
_.k.JSC$17296_channelError=function(){};
_.k.JSC$17296_channelClosed=function(){};
_.k.isActive=function(){return!0};
_.k.JSC$17296_badMapError=function(){};var PR4=function(){},aF=function(q,w){_.Q4.call(this);
this.JSC$17299_channel_=new AT(w);this.JSC$17299_url_=q;this.messageUrlParams_=w&&w.messageUrlParams||null;q=w&&w.messageHeaders||null;w&&w.clientProtocolHeaderRequired&&(q?_.db.set(q,"X-Client-Protocol","webchannel"):q=_.db.create("X-Client-Protocol","webchannel"));this.JSC$17299_channel_.JSC$17290_extraHeaders_=q;q=w&&w.initMessageHeaders||null;w&&w.messageContentType&&(q?_.db.set(q,"X-WebChannel-Content-Type",w.messageContentType):q=_.db.create("X-WebChannel-Content-Type",w.messageContentType));
w&&w.clientProfile&&(q?_.db.set(q,"X-WebChannel-Client-Profile",w.clientProfile):q=_.db.create("X-WebChannel-Client-Profile",w.clientProfile));this.JSC$17299_channel_.initHeaders_=q;(q=w&&w.httpHeadersOverwriteParam)&&!_.Gy(q)&&(this.JSC$17299_channel_.httpHeadersOverwriteParam_=q);this.supportsCrossDomainXhr_=w&&w.supportsCrossDomainXhr||!1;this.sendRawJson_=w&&w.sendRawJson||!1;(w=w&&w.httpSessionIdParam)&&!_.Gy(w)&&(this.JSC$17299_channel_.httpSessionIdParam_=w,_.db.containsKey(this.messageUrlParams_,
w)&&_.db.remove(this.messageUrlParams_,w));this.channelHandler_=new zp(this)};
_.w9(aF,_.Q4);aF.prototype.open=function(){this.JSC$17299_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17299_channel_.JSC$17290_supportsCrossDomainXhrs_=!0);this.JSC$17299_channel_.connect(this.JSC$17299_url_,this.messageUrlParams_||void 0)};
aF.prototype.close=function(){this.JSC$17299_channel_.disconnect()};
aF.prototype.send=function(q){var w=this.JSC$17299_channel_;if(typeof q==="string"){var u={};u.__data__=q;q=u}else this.sendRawJson_&&(u={},u.__data__=(0,_.dD)(q),q=u);w.JSC$17290_outgoingMaps_.push(new vQK(w.JSC$17290_nextMapId_++,q));w.state_==3&&M4T(w)};
aF.prototype.disposeInternal=function(){this.JSC$17299_channel_.handler_=null;delete this.channelHandler_;this.JSC$17299_channel_.disconnect();delete this.JSC$17299_channel_;aF.superClass_.disposeInternal.call(this)};
var X_T=function(q){qcq.call(this);q.__headers__&&(this.headers=q.__headers__,this.statusCode=q.__status__,delete q.__headers__,delete q.__status__);var w=q.__sm__;w?this.data=(this.metadataKey=_.db.getAnyKey(w))?_.db.get(w,this.metadataKey):w:this.data=q};
_.w9(X_T,qcq);var FnV=function(q){wzc.call(this);this.status=1;this.errorCode=q};
_.w9(FnV,wzc);var zp=function(q){this.JSC$17306_channel_=q};
_.w9(zp,tFj);zp.prototype.JSC$17296_channelOpened=function(){this.JSC$17306_channel_.dispatchEvent("w")};
zp.prototype.JSC$17296_channelHandleArray=function(q){this.JSC$17306_channel_.dispatchEvent(new X_T(q))};
zp.prototype.JSC$17296_channelError=function(q){this.JSC$17306_channel_.dispatchEvent(new FnV(q))};
zp.prototype.JSC$17296_channelClosed=function(){this.JSC$17306_channel_.dispatchEvent("x")};
var GXq=function(q,w){this.transportChannel_=q;this.JSC$17309_channel_=w},n2A=function(q){return kXV(q.JSC$17309_channel_).map(function(w){var u=q.transportChannel_;
w=w.map;"__data__"in w?(w=w.__data__,u=u.sendRawJson_?(0,_.k2X)(w):w):u=w;return u})};var Dj=function(q){H9K.dispatchEvent(new WnA(H9K,q))},H9K=new _.Q4,WnA=function(q){_.nM.call(this,"statevent",q)};
_.O(WnA,_.nM);var Zj=function(q,w,u,y,e){this.JSC$17314_channel_=q;this.JSC$17314_channelDebug_=w;this.sid_=u;this.JSC$17314_rid_=y;this.JSC$17314_retryId_=e||1;this.timeout_=45E3;this.JSC$17314_eventHandler_=new _.tp(this);this.pollingTimer_=new _.kG;this.pollingTimer_.setInterval(250)};
_.k=Zj.prototype;_.k.JSC$17316_extraHeaders_=null;_.k.JSC$17316_successful_=!1;_.k.JSC$17316_watchDogTimerId_=null;_.k.JSC$17316_watchDogTimeoutTime_=null;_.k.JSC$17316_requestStartTime_=null;_.k.JSC$17316_type_=null;_.k.JSC$17316_baseUri_=null;_.k.JSC$17316_requestUri_=null;_.k.JSC$17316_postData_=null;_.k.JSC$17316_xmlHttp_=null;_.k.JSC$17316_xmlHttpChunkStart_=0;_.k.trident_=null;_.k.JSC$17316_verb_=null;_.k.JSC$17316_lastError_=null;_.k.JSC$17316_lastStatusCode_=-1;_.k.sendClose_=!0;
_.k.JSC$17316_cancelled_=!1;_.k.JSC$17316_readyStateChangeThrottleMs_=0;_.k.JSC$17316_readyStateChangeThrottle_=null;var syc=function(q,w){switch(q){case 0:return"Non-200 return code ("+w+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},NMq={},Qyq={};
Zj.prototype.setTimeout=function(q){this.timeout_=q};
var i9j=function(q,w,u){q.JSC$17316_type_=1;q.JSC$17316_baseUri_=_.u5(w.clone());q.JSC$17316_postData_=u;q.decodeChunks_=!0;Ir4(q,null)},rLA=function(q,w,u,y,e){q.JSC$17316_type_=1;
q.JSC$17316_baseUri_=_.u5(w.clone());q.JSC$17316_postData_=null;q.decodeChunks_=u;e&&(q.sendClose_=!1);Ir4(q,y)},Ir4=function(q,w){q.JSC$17316_requestStartTime_=Date.now();
UdK(q);q.JSC$17316_requestUri_=q.JSC$17316_baseUri_.clone();kg(q.JSC$17316_requestUri_,"t",q.JSC$17314_retryId_);q.JSC$17316_xmlHttpChunkStart_=0;q.JSC$17316_xmlHttp_=q.JSC$17314_channel_.JSC$17323_createXhrIo(q.JSC$17314_channel_.JSC$17323_shouldUseSecondaryDomains()?w:null);q.JSC$17316_readyStateChangeThrottleMs_>0&&(q.JSC$17316_readyStateChangeThrottle_=new _.MI((0,_.fY)(q.JSC$17316_xmlHttpHandler_,q,q.JSC$17316_xmlHttp_),q.JSC$17316_readyStateChangeThrottleMs_));q.JSC$17314_eventHandler_.listen(q.JSC$17316_xmlHttp_,
"readystatechange",q.JSC$17316_readyStateChangeHandler_);w=q.JSC$17316_extraHeaders_?_.db.clone(q.JSC$17316_extraHeaders_):{};q.JSC$17316_postData_?(q.JSC$17316_verb_="POST",w["Content-Type"]="application/x-www-form-urlencoded",q.JSC$17316_xmlHttp_.send(q.JSC$17316_requestUri_,q.JSC$17316_verb_,q.JSC$17316_postData_,w)):(q.JSC$17316_verb_="GET",q.sendClose_&&!_.PS&&(w.Connection="close"),q.JSC$17316_xmlHttp_.send(q.JSC$17316_requestUri_,q.JSC$17316_verb_,null,w));q.JSC$17314_channel_.notifyServerReachabilityEvent(1);
w=q.JSC$17314_channelDebug_;var u=q.JSC$17316_postData_;if(u){var y="";u=u.split("&");for(var e=0;e<u.length;e++){var t=u[e].split("=");if(t.length>1){var X=t[0];t=t[1];var G=X.split("_");y=G.length>=2&&G[1]=="type"?y+(X+"="+t+"&"):y+(X+"=redacted&")}}}else y=null;w.info("XMLHTTP REQ ("+q.JSC$17314_rid_+") [attempt "+q.JSC$17314_retryId_+"]: "+q.JSC$17316_verb_+"\n"+q.JSC$17316_requestUri_+"\n"+y)};
Zj.prototype.JSC$17316_readyStateChangeHandler_=function(q){q=q.target;var w=this.JSC$17316_readyStateChangeThrottle_;w&&_.of(q)==3?(this.JSC$17314_channelDebug_.debug("Throttling readystatechange."),w.fire()):this.JSC$17316_xmlHttpHandler_(q)};
Zj.prototype.JSC$17316_xmlHttpHandler_=function(q){try{if(q==this.JSC$17316_xmlHttp_)a:{var w=_.of(this.JSC$17316_xmlHttp_),u=this.JSC$17316_xmlHttp_.JSC$7699_lastErrorCode_,y=this.JSC$17316_xmlHttp_.getStatus();if(_.PS&&!_.X1("420+")){if(w<4)break a}else if(w<3||w==3&&!this.JSC$17316_xmlHttp_.getResponseText())break a;this.JSC$17316_cancelled_||w!=4||u==7||(u==8||y<=0?this.JSC$17314_channel_.notifyServerReachabilityEvent(3):this.JSC$17314_channel_.notifyServerReachabilityEvent(2));TMK(this);var e=
this.JSC$17316_xmlHttp_.getStatus();this.JSC$17316_lastStatusCode_=e;var t=this.JSC$17316_xmlHttp_.getResponseText();t||this.JSC$17314_channelDebug_.debug("No response text for uri "+this.JSC$17316_requestUri_+" status "+e);this.JSC$17316_successful_=e==200;this.JSC$17314_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17314_rid_+") [ attempt "+this.JSC$17314_retryId_+"]: "+this.JSC$17316_verb_+"\n"+this.JSC$17316_requestUri_+"\n"+w+" "+e);if(this.JSC$17316_successful_){w==4&&p5(this);if(this.decodeChunks_){for(q=
!0;!this.JSC$17316_cancelled_&&this.JSC$17316_xmlHttpChunkStart_<t.length;){var X=CRx(this,t);if(X==Qyq){w==4&&(this.JSC$17316_lastError_=4,Dj(15),q=!1);$l(this.JSC$17314_channelDebug_,this.JSC$17314_rid_,null,"[Incomplete Response]");break}else if(X==NMq){this.JSC$17316_lastError_=4;Dj(16);$l(this.JSC$17314_channelDebug_,this.JSC$17314_rid_,t,"[Invalid Chunk]");q=!1;break}else $l(this.JSC$17314_channelDebug_,this.JSC$17314_rid_,X,null),ddT(this,X)}w==4&&t.length==0&&(this.JSC$17316_lastError_=1,
Dj(17),q=!1);this.JSC$17316_successful_=this.JSC$17316_successful_&&q;q||($l(this.JSC$17314_channelDebug_,this.JSC$17314_rid_,t,"[Invalid Chunked Response]"),p5(this),O9H(this))}else $l(this.JSC$17314_channelDebug_,this.JSC$17314_rid_,t,null),ddT(this,t);this.JSC$17316_successful_&&!this.JSC$17316_cancelled_&&(w==4?this.JSC$17314_channel_.JSC$17323_onRequestComplete(this):(this.JSC$17316_successful_=!1,UdK(this)))}else e==400&&t.indexOf("Unknown SID")>0?(this.JSC$17316_lastError_=3,Dj(13),this.JSC$17314_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17314_rid_+")")):(this.JSC$17316_lastError_=0,Dj(14),this.JSC$17314_channelDebug_.warning("XMLHTTP Bad status "+e+" ("+this.JSC$17314_rid_+")")),p5(this),O9H(this)}else this.JSC$17314_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(G){this.JSC$17314_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var CRx=function(q,w){var u=q.JSC$17316_xmlHttpChunkStart_,y=w.indexOf("\n",u);if(y==-1)return Qyq;u=Number(w.substring(u,y));if(isNaN(u))return NMq;y+=1;if(y+u>w.length)return Qyq;w=w.slice(y,y+u);q.JSC$17316_xmlHttpChunkStart_=y+u;return w};
Zj.prototype.cancel=function(){this.JSC$17316_cancelled_=!0;p5(this)};
var UdK=function(q){q.JSC$17316_watchDogTimeoutTime_=Date.now()+q.timeout_;o2H(q,q.timeout_)},o2H=function(q,w){if(q.JSC$17316_watchDogTimerId_!=null)throw Error("wk");
q.JSC$17316_watchDogTimerId_=OH((0,_.fY)(q.JSC$17316_onWatchDogTimeout_,q),w)},TMK=function(q){q.JSC$17316_watchDogTimerId_&&(_.uc.clearTimeout(q.JSC$17316_watchDogTimerId_),q.JSC$17316_watchDogTimerId_=null)};
Zj.prototype.JSC$17316_onWatchDogTimeout_=function(){this.JSC$17316_watchDogTimerId_=null;var q=Date.now();q-this.JSC$17316_watchDogTimeoutTime_>=0?(this.JSC$17314_channelDebug_.info("TIMEOUT: "+this.JSC$17316_requestUri_),this.JSC$17316_type_!=2&&this.JSC$17314_channel_.notifyServerReachabilityEvent(3),p5(this),this.JSC$17316_lastError_=2,Dj(18),O9H(this)):(this.JSC$17314_channelDebug_.warning("WatchDog timer called too early"),o2H(this,this.JSC$17316_watchDogTimeoutTime_-q))};
var O9H=function(q){q.JSC$17314_channel_.JSC$17323_isClosed()||q.JSC$17316_cancelled_||q.JSC$17314_channel_.JSC$17323_onRequestComplete(q)},p5=function(q){TMK(q);
_.BX(q.JSC$17316_readyStateChangeThrottle_);q.JSC$17316_readyStateChangeThrottle_=null;q.pollingTimer_.stop();q.JSC$17314_eventHandler_.removeAll();if(q.JSC$17316_xmlHttp_){var w=q.JSC$17316_xmlHttp_;q.JSC$17316_xmlHttp_=null;w.abort();w.dispose()}q.trident_&&(q.trident_=null)};
Zj.prototype.getLastError=function(){return this.JSC$17316_lastError_};
var ddT=function(q,w){try{q.JSC$17314_channel_.JSC$17323_onRequestData(q,w),q.JSC$17314_channel_.notifyServerReachabilityEvent(4)}catch(u){}};var $l=function(q,w,u,y){var e=q.info;a:if(u&&u!="y2f%"){try{var t=JSON.parse(u);if(t)for(var X=0;X<t.length;X++)if(Array.isArray(t[X])){var G=t[X];if(!(G.length<2)){var n=G[1];if(Array.isArray(n)&&!(n.length<1)){var N=n[0];if(N!="noop"&&N!="stop")for(var Q=1;Q<n.length;Q++)n[Q]=""}}}var I=(0,_.dD)(t);break a}catch(U){q.debug("Exception parsing expected JS array - probably was not JS");I=u;break a}I=void 0}else I=u;e.call(q,"XMLHTTP TEXT ("+w+"): "+I+(y?" "+y:""))};
oW.prototype.debug=function(q){this.info(q)};
oW.prototype.info=function(){};
oW.prototype.warning=function(){};var VFT=function(q,w){this.JSC$17321_channel_=q;this.JSC$17321_channelDebug_=w;this.JSC$17321_parser_=new IF};
_.k=VFT.prototype;_.k.JSC$17323_extraHeaders_=null;_.k.JSC$17323_request_=null;_.k.receivedIntermediateResult_=!1;_.k.JSC$17323_path_=null;_.k.state_=null;_.k.JSC$17323_lastStatusCode_=-1;_.k.JSC$17323_hostPrefix_=null;_.k.blockedPrefix_=null;
_.k.connect=function(q){this.JSC$17323_path_=q;q=frK(this.JSC$17321_channel_,this.JSC$17323_path_);Dj(3);Date.now();var w=this.JSC$17321_channel_.firstTestResults_;w!=null?(this.JSC$17323_hostPrefix_=w[0],(this.blockedPrefix_=w[1])?(this.state_=1,mdA(this)):(this.state_=2,ALK(this))):(kg(q,"MODE","init"),this.JSC$17323_request_=new Zj(this,this.JSC$17321_channelDebug_),this.JSC$17323_request_.JSC$17316_extraHeaders_=this.JSC$17323_extraHeaders_,rLA(this.JSC$17323_request_,q,!1,null,!0),this.state_=
0)};
var mdA=function(q){var w=JLA(q.JSC$17321_channel_,q.blockedPrefix_,"/mail/images/cleardot.gif");_.u5(w);tla(w.toString(),5E3,(0,_.fY)(q.checkBlockedCallback_,q),3,2E3);q.notifyServerReachabilityEvent(1)};
VFT.prototype.checkBlockedCallback_=function(q){if(q)this.state_=2,ALK(this);else{Dj(4);var w=this.JSC$17321_channel_;w.JSC$17324_channelDebug_.debug("Test Connection Blocked");w.JSC$17328_lastStatusCode_=w.connectionTest_.JSC$17323_lastStatusCode_;vN(w,9)}q&&this.notifyServerReachabilityEvent(2)};
var ALK=function(q){q.JSC$17321_channelDebug_.debug("TestConnection: starting stage 2");var w=q.JSC$17321_channel_.secondTestResults_;w!=null?(q.JSC$17321_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+w?"Buffered":"Unbuffered"),Dj(5),w?(Dj(11),bg(q.JSC$17321_channel_,q,!1)):(Dj(12),bg(q.JSC$17321_channel_,q,!0))):(q.JSC$17323_request_=new Zj(q,q.JSC$17321_channelDebug_),q.JSC$17323_request_.JSC$17316_extraHeaders_=q.JSC$17323_extraHeaders_,w=z_h(q.JSC$17321_channel_,
q.JSC$17323_hostPrefix_,q.JSC$17323_path_),Dj(5),kg(w,"TYPE","xmlhttp"),rLA(q.JSC$17323_request_,w,!1,q.JSC$17323_hostPrefix_,!1))};
_.k=VFT.prototype;_.k.JSC$17323_createXhrIo=function(q){return this.JSC$17321_channel_.JSC$17323_createXhrIo(q)};
_.k.abort=function(){this.JSC$17323_request_&&(this.JSC$17323_request_.cancel(),this.JSC$17323_request_=null);this.JSC$17323_lastStatusCode_=-1};
_.k.JSC$17323_isClosed=function(){return!1};
_.k.JSC$17323_onRequestData=function(q,w){this.JSC$17323_lastStatusCode_=q.JSC$17316_lastStatusCode_;if(this.state_==0)if(this.JSC$17321_channelDebug_.debug("TestConnection: Got data for stage 1"),w){try{var u=this.JSC$17321_parser_.parse(w)}catch(y){arj(this.JSC$17321_channel_,this);return}this.JSC$17323_hostPrefix_=u[0];this.blockedPrefix_=u[1]}else this.JSC$17321_channelDebug_.debug("TestConnection: Null responseText"),arj(this.JSC$17321_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(Dj(7),Date.now()):w=="11111"?(Dj(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17323_lastStatusCode_=200,this.JSC$17323_request_.cancel(),this.JSC$17321_channelDebug_.debug("Test connection succeeded; using streaming connection"),Dj(12),bg(this.JSC$17321_channel_,this,!0)):(Dj(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.k.JSC$17323_onRequestComplete=function(){this.JSC$17323_lastStatusCode_=this.JSC$17323_request_.JSC$17316_lastStatusCode_;this.JSC$17323_request_.JSC$17316_successful_?this.state_==0?(this.JSC$17321_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,mdA(this)):(this.state_=2,ALK(this))):this.state_==2&&(this.JSC$17321_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17321_channelDebug_.debug("Test connection succeeded; using streaming connection"),
Dj(12),bg(this.JSC$17321_channel_,this,!0)):(this.JSC$17321_channelDebug_.debug("Test connection failed; not using streaming"),Dj(11),bg(this.JSC$17321_channel_,this,!1))):(this.JSC$17321_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?Dj(9):this.state_==2&&Dj(10),arj(this.JSC$17321_channel_,this,this.JSC$17323_request_.getLastError()))};
_.k.JSC$17323_shouldUseSecondaryDomains=function(){return this.JSC$17321_channel_.JSC$17323_shouldUseSecondaryDomains()};
_.k.isActive=function(){return this.JSC$17321_channel_.isActive()};
_.k.notifyServerReachabilityEvent=function(q){this.JSC$17321_channel_.notifyServerReachabilityEvent(q)};var Yl=function(q,w,u){this.state_=1;this.JSC$17324_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17324_channelDebug_=new oW;this.JSC$17324_parser_=new IF;this.firstTestResults_=q||null;this.secondTestResults_=w!=null?w:null;this.asyncTest_=u||!1},DdT=function(q,w){this.JSC$17326_mapId=q;
this.map=w;this.context=null};
_.k=Yl.prototype;_.k.JSC$17328_extraHeaders_=null;_.k.JSC$17328_extraParams_=null;_.k.forwardChannelRequest_=null;_.k.JSC$17328_backChannelRequest_=null;_.k.JSC$17328_path_=null;_.k.JSC$17328_forwardChannelUri_=null;_.k.JSC$17328_backChannelUri_=null;_.k.JSC$17328_hostPrefix_=null;_.k.JSC$17328_nextRid_=0;_.k.JSC$17328_nextMapId_=0;_.k.handler_=null;_.k.JSC$17328_forwardChannelTimerId_=null;_.k.JSC$17328_backChannelTimerId_=null;_.k.JSC$17328_deadBackChannelTimerId_=null;_.k.connectionTest_=null;
_.k.useChunked_=null;_.k.JSC$17328_lastArrayId_=-1;_.k.JSC$17328_lastPostResponseArrayId_=-1;_.k.JSC$17328_lastStatusCode_=-1;_.k.JSC$17328_forwardChannelRetryCount_=0;_.k.JSC$17328_backChannelRetryCount_=0;_.k.JSC$17328_channelVersion_=8;var Z9T={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},p_c=function(q,w,u,y){_.nM.call(this,"timingevent",q);this.size=w;this.rtt=u;this.retries=y};
_.w9(p_c,_.nM);var $d6=function(q){_.nM.call(this,"serverreachability",q)};
_.w9($d6,_.nM);Yl.prototype.connect=function(q,w,u,y,e){this.JSC$17324_channelDebug_.debug("connect()");Dj(0);this.JSC$17328_path_=w;this.JSC$17328_extraParams_=u||{};y&&e!==void 0&&(this.JSC$17328_extraParams_.OSID=y,this.JSC$17328_extraParams_.OAID=e);this.asyncTest_?(OH((0,_.fY)(this.connectTest_,this,q),100),v2K(this)):this.connectTest_(q)};
Yl.prototype.disconnect=function(){this.JSC$17324_channelDebug_.debug("disconnect()");b96(this);if(this.state_==3){var q=this.JSC$17328_nextRid_++,w=this.JSC$17328_forwardChannelUri_.clone();_.lI(w,"SID",this.sid_);_.lI(w,"RID",q);_.lI(w,"TYPE","terminate");g8(this,w);q=new Zj(this,this.JSC$17324_channelDebug_,this.sid_,q);q.JSC$17316_type_=2;q.JSC$17316_baseUri_=_.u5(w.clone());(new Image).src=q.JSC$17316_baseUri_.toString();q.JSC$17316_requestStartTime_=Date.now();UdK(q)}YG6(this)};
Yl.prototype.connectTest_=function(q){this.JSC$17324_channelDebug_.debug("connectTest_()");this.connectionTest_=new VFT(this,this.JSC$17324_channelDebug_);this.connectionTest_.JSC$17323_extraHeaders_=this.JSC$17328_extraHeaders_;this.connectionTest_.JSC$17321_parser_=this.JSC$17324_parser_;this.connectionTest_.connect(q)};
var v2K=function(q){q.JSC$17324_channelDebug_.debug("connectChannel_()");q.JSC$17328_ensureInState_(1,0);q.JSC$17328_forwardChannelUri_=frK(q,q.JSC$17328_path_);g2H(q)},b96=function(q){q.connectionTest_&&(q.connectionTest_.abort(),q.connectionTest_=null);
q.JSC$17328_backChannelRequest_&&(q.JSC$17328_backChannelRequest_.cancel(),q.JSC$17328_backChannelRequest_=null);q.JSC$17328_backChannelTimerId_&&(_.uc.clearTimeout(q.JSC$17328_backChannelTimerId_),q.JSC$17328_backChannelTimerId_=null);E2q(q);q.forwardChannelRequest_&&(q.forwardChannelRequest_.cancel(),q.forwardChannelRequest_=null);q.JSC$17328_forwardChannelTimerId_&&(_.uc.clearTimeout(q.JSC$17328_forwardChannelTimerId_),q.JSC$17328_forwardChannelTimerId_=null)},R_B=function(q,w){if(q.state_==0)throw Error("zk");
q.JSC$17324_outgoingMaps_.length==1E3&&q.JSC$17324_parser_.stringify(w);q.JSC$17324_outgoingMaps_.push(new DdT(q.JSC$17328_nextMapId_++,w));q.state_!=2&&q.state_!=3||g2H(q)};
Yl.prototype.JSC$17323_isClosed=function(){return this.state_==0};
Yl.prototype.getState=function(){return this.state_};
var g2H=function(q){q.forwardChannelRequest_||q.JSC$17328_forwardChannelTimerId_||(q.JSC$17328_forwardChannelTimerId_=OH((0,_.fY)(q.JSC$17328_onStartForwardChannelTimer_,q),0),q.JSC$17328_forwardChannelRetryCount_=0)};
Yl.prototype.JSC$17328_onStartForwardChannelTimer_=function(q){this.JSC$17328_forwardChannelTimerId_=null;cL6(this,q)};
var cL6=function(q,w){q.JSC$17324_channelDebug_.debug("startForwardChannel_");if(q.state_==1){if(!w){q.JSC$17324_channelDebug_.debug("open_()");q.JSC$17328_nextRid_=Math.floor(Math.random()*1E5);w=q.JSC$17328_nextRid_++;var u=new Zj(q,q.JSC$17324_channelDebug_,"",w);u.JSC$17316_extraHeaders_=q.JSC$17328_extraHeaders_;var y=SGa(q),e=q.JSC$17328_forwardChannelUri_.clone();_.lI(e,"RID",w);_.lI(e,"CVER","1");g8(q,e);i9j(u,e,y);q.forwardChannelRequest_=u;q.state_=2}}else q.state_==3&&(w?h_j(q,w):q.JSC$17324_outgoingMaps_.length==
0?q.JSC$17324_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):q.forwardChannelRequest_||(h_j(q),q.JSC$17324_channelDebug_.debug("startForwardChannel_ finished, sent request")))},h_j=function(q,w){if(w)if(q.JSC$17328_channelVersion_>6){q.JSC$17324_outgoingMaps_=q.pendingMaps_.concat(q.JSC$17324_outgoingMaps_);
q.pendingMaps_.length=0;var u=q.JSC$17328_nextRid_-1;w=SGa(q)}else u=w.JSC$17314_rid_,w=w.JSC$17316_postData_;else u=q.JSC$17328_nextRid_++,w=SGa(q);var y=q.JSC$17328_forwardChannelUri_.clone();_.lI(y,"SID",q.sid_);_.lI(y,"RID",u);_.lI(y,"AID",q.JSC$17328_lastArrayId_);g8(q,y);u=new Zj(q,q.JSC$17324_channelDebug_,q.sid_,u,q.JSC$17328_forwardChannelRetryCount_+1);u.JSC$17316_extraHeaders_=q.JSC$17328_extraHeaders_;u.setTimeout(1E4+Math.round(1E4*Math.random()));q.forwardChannelRequest_=u;i9j(u,y,w)},
g8=function(q,w){q.handler_&&(q=q.handler_.JSC$17335_getAdditionalParams())&&_.db.forEach(q,function(u,y){_.lI(w,y,u)})},SGa=function(q){var w=Math.min(q.JSC$17324_outgoingMaps_.length,1E3),u=["count="+w];
if(q.JSC$17328_channelVersion_>6&&w>0){var y=q.JSC$17324_outgoingMaps_[0].JSC$17326_mapId;u.push("ofs="+y)}else y=0;for(var e={},t=0;t<w;e={mapId$jscomp$3:void 0},t++){e.mapId$jscomp$3=q.JSC$17324_outgoingMaps_[t].JSC$17326_mapId;var X=q.JSC$17324_outgoingMaps_[t].map;e.mapId$jscomp$3=q.JSC$17328_channelVersion_<=6?t:e.mapId$jscomp$3-y;try{_.db.forEach(X,function(G){return function(n,N){u.push("req"+G.mapId$jscomp$3+"_"+N+"="+encodeURIComponent(n))}}(e))}catch(G){u.push("req"+e.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}q.pendingMaps_=q.pendingMaps_.concat(q.JSC$17324_outgoingMaps_.splice(0,w));
return u.join("&")},jy4=function(q){q.JSC$17328_backChannelRequest_||q.JSC$17328_backChannelTimerId_||(q.JSC$17328_backChannelAttemptId_=1,q.JSC$17328_backChannelTimerId_=OH((0,_.fY)(q.JSC$17328_onStartBackChannelTimer_,q),0),q.JSC$17328_backChannelRetryCount_=0)},Ln6=function(q){if(q.JSC$17328_backChannelRequest_||q.JSC$17328_backChannelTimerId_||q.JSC$17328_backChannelRetryCount_>=3)return!1;
q.JSC$17324_channelDebug_.debug("Going to retry GET");q.JSC$17328_backChannelAttemptId_++;q.JSC$17328_backChannelTimerId_=OH((0,_.fY)(q.JSC$17328_onStartBackChannelTimer_,q),lr6(q,q.JSC$17328_backChannelRetryCount_));q.JSC$17328_backChannelRetryCount_++;return!0};
Yl.prototype.JSC$17328_onStartBackChannelTimer_=function(){this.JSC$17328_backChannelTimerId_=null;this.JSC$17324_channelDebug_.debug("Creating new HttpRequest");this.JSC$17328_backChannelRequest_=new Zj(this,this.JSC$17324_channelDebug_,this.sid_,"rpc",this.JSC$17328_backChannelAttemptId_);this.JSC$17328_backChannelRequest_.JSC$17316_extraHeaders_=this.JSC$17328_extraHeaders_;this.JSC$17328_backChannelRequest_.JSC$17316_readyStateChangeThrottleMs_=0;var q=this.JSC$17328_backChannelUri_.clone();_.lI(q,
"RID","rpc");_.lI(q,"SID",this.sid_);_.lI(q,"CI",this.useChunked_?"0":"1");_.lI(q,"AID",this.JSC$17328_lastArrayId_);g8(this,q);_.lI(q,"TYPE","xmlhttp");rLA(this.JSC$17328_backChannelRequest_,q,!0,this.JSC$17328_hostPrefix_,!1);this.JSC$17324_channelDebug_.debug("New Request created")};
var bg=function(q,w,u){q.JSC$17324_channelDebug_.debug("Test Connection Finished");q.useChunked_=q.secondTestResults_==null?u:!q.secondTestResults_;q.JSC$17328_lastStatusCode_=w.JSC$17323_lastStatusCode_;q.asyncTest_||v2K(q)},arj=function(q,w){q.JSC$17324_channelDebug_.debug("Test Connection Failed");
q.JSC$17328_lastStatusCode_=w.JSC$17323_lastStatusCode_;vN(q,2)};
Yl.prototype.JSC$17323_onRequestData=function(q,w){if(this.state_!=0&&(this.JSC$17328_backChannelRequest_==q||this.forwardChannelRequest_==q))if(this.JSC$17328_lastStatusCode_=q.JSC$17316_lastStatusCode_,this.forwardChannelRequest_==q&&this.state_==3)if(this.JSC$17328_channelVersion_>7){try{var u=this.JSC$17324_parser_.parse(w)}catch(y){u=null}if(Array.isArray(u)&&u.length==3)if(w=u,w[0]==0)a:if(this.JSC$17324_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17328_backChannelTimerId_)this.JSC$17324_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17328_backChannelRequest_)if(this.JSC$17328_backChannelRequest_.JSC$17316_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17316_requestStartTime_)E2q(this),this.JSC$17328_backChannelRequest_.cancel(),this.JSC$17328_backChannelRequest_=null;else break a;else this.JSC$17324_channelDebug_.warning("We do not have a BackChannel established");Ln6(this);Dj(19)}else this.JSC$17328_lastPostResponseArrayId_=w[1],q=this.JSC$17328_lastPostResponseArrayId_-this.JSC$17328_lastArrayId_,0<
q&&(w=w[2],this.JSC$17324_channelDebug_.debug(w+" bytes (in "+q+" arrays) are outstanding on the BackChannel"),w<37500&&this.useChunked_&&this.JSC$17328_backChannelRetryCount_==0&&!this.JSC$17328_deadBackChannelTimerId_&&(this.JSC$17328_deadBackChannelTimerId_=OH((0,_.fY)(this.JSC$17328_onBackChannelDead_,this),6E3)));else this.JSC$17324_channelDebug_.debug("Bad POST response data returned"),vN(this,11)}else w!="y2f%"&&(this.JSC$17324_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
vN(this,11));else this.JSC$17328_backChannelRequest_==q&&E2q(this),_.Gy(w)||(q=this.JSC$17324_parser_.parse(w),this.onInput_(q))};
Yl.prototype.JSC$17328_onBackChannelDead_=function(){this.JSC$17328_deadBackChannelTimerId_!=null&&(this.JSC$17328_deadBackChannelTimerId_=null,this.JSC$17328_backChannelRequest_.cancel(),this.JSC$17328_backChannelRequest_=null,Ln6(this),Dj(20))};
var E2q=function(q){q.JSC$17328_deadBackChannelTimerId_!=null&&(_.uc.clearTimeout(q.JSC$17328_deadBackChannelTimerId_),q.JSC$17328_deadBackChannelTimerId_=null)};
Yl.prototype.JSC$17323_onRequestComplete=function(q){this.JSC$17324_channelDebug_.debug("Request complete");if(this.JSC$17328_backChannelRequest_==q){E2q(this);this.JSC$17328_backChannelRequest_=null;var w=2}else if(this.forwardChannelRequest_==q)this.forwardChannelRequest_=null,w=1;else return;this.JSC$17328_lastStatusCode_=q.JSC$17316_lastStatusCode_;if(this.state_!=0)if(q.JSC$17316_successful_)if(w==1){w=q.JSC$17316_postData_?q.JSC$17316_postData_.length:0;q=Date.now()-q.JSC$17316_requestStartTime_;
var u=H9K;u.dispatchEvent(new p_c(u,w,q,this.JSC$17328_forwardChannelRetryCount_));g2H(this);this.handler_&&this.handler_.JSC$17335_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else jy4(this);else{u=q.getLastError();if(u==3||u==7||u==0&&this.JSC$17328_lastStatusCode_>0)this.JSC$17324_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17324_channelDebug_.debug("Maybe retrying, last error: "+syc(u,this.JSC$17328_lastStatusCode_));var y;if(y=w==1)this.forwardChannelRequest_||
this.JSC$17328_forwardChannelTimerId_||this.state_==1||this.JSC$17328_forwardChannelRetryCount_>=2?y=!1:(this.JSC$17324_channelDebug_.debug("Going to retry POST"),this.JSC$17328_forwardChannelTimerId_=OH((0,_.fY)(this.JSC$17328_onStartForwardChannelTimer_,this,q),lr6(this,this.JSC$17328_forwardChannelRetryCount_)),this.JSC$17328_forwardChannelRetryCount_++,y=!0);if(y||w==2&&Ln6(this))return;this.JSC$17324_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17324_channelDebug_.debug("Error: HTTP request failed");
switch(u){case 1:vN(this,5);break;case 4:vN(this,10);break;case 3:vN(this,6);break;case 7:vN(this,12);break;default:vN(this,2)}}};
var lr6=function(q,w){var u=5E3+Math.floor(Math.random()*1E4);q.isActive()||(q.JSC$17324_channelDebug_.debug("Inactive channel"),u*=2);return u*w};
Yl.prototype.onInput_=function(q){for(var w=0;w<q.length;w++){var u=q[w];this.JSC$17328_lastArrayId_=u[0];u=u[1];this.state_==2?u[0]=="c"?(this.sid_=u[1],this.JSC$17328_hostPrefix_=u[2],u=u[3],u!=null?this.JSC$17328_channelVersion_=u:this.JSC$17328_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17335_channelOpened(),this.JSC$17328_backChannelUri_=z_h(this,this.JSC$17328_hostPrefix_,this.JSC$17328_path_),jy4(this)):u[0]=="stop"&&vN(this,7):this.state_==3&&(u[0]=="stop"?vN(this,7):
u[0]!="noop"&&this.handler_&&this.handler_.JSC$17335_channelHandleArray(u),this.JSC$17328_backChannelRetryCount_=0)}};
Yl.prototype.JSC$17328_ensureInState_=function(q){if(!_.SH(arguments,this.state_))throw Error("Ak`"+this.state_);};
var vN=function(q,w){q.JSC$17324_channelDebug_.info("Error code "+w);if(w==2||w==9){var u=null;q.handler_&&(u=null);var y=(0,_.fY)(q.testGoogleComCallback_,q);u||(u=new _.M4("//www.google.com/images/cleardot.gif"),_.u5(u));kdq(u.toString(),1E4,y)}else Dj(2);q.onError_(w)};
Yl.prototype.testGoogleComCallback_=function(q){q?(this.JSC$17324_channelDebug_.info("Successfully pinged google.com"),Dj(2)):(this.JSC$17324_channelDebug_.info("Failed to ping google.com"),Dj(1),this.onError_(8))};
Yl.prototype.onError_=function(q){this.JSC$17324_channelDebug_.debug("HttpChannel: error - "+q);this.state_=0;this.handler_&&this.handler_.JSC$17335_channelError(q);YG6(this);b96(this)};
var YG6=function(q){q.state_=0;q.JSC$17328_lastStatusCode_=-1;if(q.handler_)if(q.pendingMaps_.length==0&&q.JSC$17324_outgoingMaps_.length==0)q.handler_.JSC$17335_channelClosed();else{q.JSC$17324_channelDebug_.debug("Number of undelivered maps, pending: "+q.pendingMaps_.length+", outgoing: "+q.JSC$17324_outgoingMaps_.length);var w=_.qT(q.pendingMaps_),u=_.qT(q.JSC$17324_outgoingMaps_);q.pendingMaps_.length=0;q.JSC$17324_outgoingMaps_.length=0;q.handler_.JSC$17335_channelClosed(w,u)}},frK=function(q,
w){w=JLA(q,null,w);
q.JSC$17324_channelDebug_.debug("GetForwardChannelUri: "+w);return w},z_h=function(q,w,u){w=JLA(q,q.JSC$17323_shouldUseSecondaryDomains()?w:null,u);
q.JSC$17324_channelDebug_.debug("GetBackChannelUri: "+w);return w},JLA=function(q,w,u){var y=_.h1(u);
if(y.JSC$7931_domain_!="")w&&_.lh(y,w+"."+y.JSC$7931_domain_),_.LM(y,y.JSC$7931_port_);else{var e=window.location;y=sgA(e.protocol,w?w+"."+e.hostname:e.hostname,+e.port,u)}q.JSC$17328_extraParams_&&_.db.forEach(q.JSC$17328_extraParams_,function(t,X){_.lI(y,X,t)});
_.lI(y,"VER",q.JSC$17328_channelVersion_);g8(q,y);return y};
Yl.prototype.JSC$17323_createXhrIo=function(q){if(q)throw Error("xk");q=new _.Oj;q.JSC$7699_withCredentials_=!1;return q};
Yl.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Yl.prototype.notifyServerReachabilityEvent=function(q){var w=H9K;w.dispatchEvent(new $d6(w,q))};
Yl.prototype.JSC$17323_shouldUseSecondaryDomains=function(){return!1};
new U26;var MFj=function(){};
_.k=MFj.prototype;_.k.JSC$17335_channelOpened=function(){};
_.k.JSC$17335_channelHandleArray=function(){};
_.k.JSC$17335_channelSuccess=function(){};
_.k.JSC$17335_channelError=function(){};
_.k.JSC$17335_channelClosed=function(){};
_.k.JSC$17335_getAdditionalParams=function(){return{}};
_.k.isActive=function(){return!0};var Knh=function(q){q.front_.length===0&&(q.front_=q.back_,q.front_.reverse(),q.back_=[])};
_.k=X0h.prototype;_.k.enqueue=function(q){this.back_.push(q)};
_.k.peek=function(){Knh(this);return _.$J(this.front_)};
_.k.getCount=function(){return this.front_.length+this.back_.length};
_.k.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.k.clear=function(){this.front_=[];this.back_=[]};
_.k.contains=function(q){return _.SH(this.front_,q)||_.SH(this.back_,q)};
_.k.remove=function(q){var w=this.front_;var u=Array.prototype.lastIndexOf.call(w,q,w.length-1);u>=0?(_.jH(w,u),w=!0):w=!1;return w||_.MM(this.back_,q)};
_.k.getValues=function(){for(var q=[],w=this.front_.length-1;w>=0;--w)q.push(this.front_[w]);w=this.back_.length;for(var u=0;u<w;++u)q.push(this.back_[u]);return q};var Ex=function(q){this.JSC$17339_map_=new _.eh;this.size=0;q&&this.addAll(q)},BMV=function(q){var w=typeof q;
return w=="object"&&q||w=="function"?"o"+_.kT(q):w.charAt(0)+q};
_.k=Ex.prototype;_.k.getCount=function(){return this.JSC$17339_map_.size};
_.k.add=function(q){this.JSC$17339_map_.set(BMV(q),q);this.size=this.JSC$17339_map_.size};
_.k.addAll=function(q){q=_.h5(q);for(var w=q.length,u=0;u<w;u++)this.add(q[u]);this.size=this.JSC$17339_map_.size};
_.k.removeAll=function(q){q=_.h5(q);for(var w=q.length,u=0;u<w;u++)this.remove(q[u]);this.size=this.JSC$17339_map_.size};
_.k.delete=function(q){q=this.JSC$17339_map_.remove(BMV(q));this.size=this.JSC$17339_map_.size;return q};
_.k.remove=function(q){return this.delete(q)};
_.k.clear=function(){this.JSC$17339_map_.clear();this.size=0};
_.k.isEmpty=function(){return this.JSC$17339_map_.size===0};
_.k.has=function(q){return this.JSC$17339_map_.containsKey(BMV(q))};
_.k.contains=function(q){return this.JSC$17339_map_.containsKey(BMV(q))};
_.k.getValues=function(){return this.JSC$17339_map_.getValues()};
_.k.values=function(){return this.JSC$17339_map_.values()};
_.k.clone=function(){return new Ex(this)};
_.k.equals=function(q){return this.getCount()==Hxc(q)&&xdm(this,q)};
var xdm=function(q,w){var u=Hxc(w);if(q.getCount()>u)return!1;!(w instanceof Ex)&&u>5&&(w=new Ex(w));return W6h(q,function(y){var e=w;return e.contains&&typeof e.contains=="function"?e.contains(y):e.containsValue&&typeof e.containsValue=="function"?e.containsValue(y):_.uP(e)||typeof e==="string"?_.SH(e,y):_.db.containsValue(e,y)})};
Ex.prototype.__iterator__=function(){return this.JSC$17339_map_.__iterator__(!1)};
Ex.prototype[Symbol.iterator]=function(){return this.values()};var qzm={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(q){return(this._clampValue(q)-this.min)/(this.max-this.min)},
_clampValue:function(q){return Math.min(this.max,Math.max(this.min,this._calcStep(q)))},
_calcStep:function(q){q=parseFloat(q);if(!this.step)return q;q=Math.round((q-this.min)/this.step);return this.step<1?q/(1/this.step)+this.min:q*this.step+this.min},
_validateValue:function(){var q=this._clampValue(this.value);this.value=this.oldValue=isNaN(q)?this.oldValue:q;return this.value!==q},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var wuj;var uJc;_.o9({_template:function(){if(uJc!==void 0)return uJc;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;wuj===void 0&&(wuj=document.createElement("template"));var y=wuj;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return uJc=q},
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(){_.KJ(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(q){q.keyCode===27&&(q.preventDefault(),this.close())},
_track:function(q){if(!this.persistent&&!this.disableSwipe)switch(q.preventDefault(),q.detail.state){case "start":this._trackStart(q);break;case "track":this._trackMove(q);break;case "end":this._trackEnd(q)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var q=this.$.contentContainer.getBoundingClientRect();this._savedWidth=q.width;this._translateOffset=this.position==="left"?q.left:q.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(q){this._trackDetails&&(this._translateDrawer(q.detail.dx+this._translateOffset),this._trackDetails.push({dx:q.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(q){if(this._trackDetails){var w=q.detail.dx+this._translateOffset,u=this.getWidth();w=this.position==="left"?w>=0||w<=-u:w<=0||w>=u;if(!w){var y=this._trackDetails;this._trackDetails=null;this._flingDrawer(q,y);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}u/=2;q.detail.dx<-u?this.opened=this.position==="right":q.detail.dx>u&&(this.opened=this.position==="left");w?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(q,w){for(var u=Date.now(),y=u-100,e,t=0,X=w.length-1;t<=X;){var G=t+X>>1,n=w[G];n.timeStamp>=y?(e=n,X=G-1):t=G+1}return e?(q.detail.dx-e.dx)/(u-e.timeStamp||1):0},
_flingDrawer:function(q,w){w=this._calculateVelocity(q,w);if(!(Math.abs(w)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;q=q.detail.dx+this._translateOffset;var u=this.getWidth(),y=this.position==="left",e=w>0;e?(w=Math.max(w,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(w=Math.min(w,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");w=this._FLING_INITIAL_SLOPE*(!e&&y?-(q+u):e&&!y?u-q:-q)/w;this._styleTransitionDuration(w);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,w)}},
_styleTransitionDuration:function(q){this.style.transitionDuration=q+"ms";this.$.contentContainer.style.transitionDuration=q+"ms";this.$.scrim.style.transitionDuration=q+"ms"},
_styleTransitionTimingFunction:function(q){this.$.contentContainer.style.transitionTimingFunction=q;this.$.scrim.style.transitionTimingFunction=q},
_translateDrawer:function(q){var w=this.getWidth();this.position==="left"?(q=Math.max(-w,Math.min(q,0)),this.$.scrim.style.opacity=1+q/w):(q=Math.max(0,Math.min(q,w)),this.$.scrim.style.opacity=1-q/w);this.translate3d(q+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var q=this._drawerState;q===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;q!==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=""),q!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var q=_.fN(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"])');q.length>0?(this._firstTabStop=q[0],this._lastTabStop=q[q.length-1]):
this._lastTabStop=this._firstTabStop=null;(q=this.getAttribute("tabindex"))&&parseInt(q,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(q){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||q.keyCode!==9||(q.shiftKey?this._firstTabStop&&_.fN(q).localTarget===this._firstTabStop&&(q.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.fN(q).localTarget===this._lastTabStop&&(q.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(q,w){this.toggleClass("visible",q&&!w,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 y3c;var e0K;_.o9({_template:function(){if(e0K!==void 0)return e0K;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;y3c===void 0&&(y3c=document.createElement("template"));var y=y3c;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return e0K=q},
is:"tp-yt-paper-progress",behaviors:[qzm],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(q){this.toggleClass("indeterminate",q,this.$.primaryProgress)},
_transformProgress:function(q,w){q.style.transform=q.style.webkitTransform="scaleX("+w/100+")"},
_mainRatioChanged:function(q){this._transformProgress(this.$.primaryProgress,q)},
_progressChanged:function(q,w,u,y,e){q=this._clampValue(q);w=this._clampValue(w);var t=this._calcRatio(q)*100,X=this._calcRatio(w)*100;this._setSecondaryRatio(t);this._transformProgress(this.$.secondaryProgress,t);this._transformProgress(this.$.primaryProgress,X);this.secondaryProgress=q;e?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",w);this.setAttribute("aria-valuemin",u);this.setAttribute("aria-valuemax",y)},
_disabledChanged:function(q){this.setAttribute("aria-disabled",q?"true":"false")},
_hideSecondaryProgress:function(q){return q===0}});var khT;var tMm;var PMH=function(){};
_.k=PMH.prototype;_.k.registered=function(){};
_.k.addOwnKeyBinding=function(){};
_.k.removeOwnKeyBindings=function(){};
_.k.keyboardEventMatchesKeys=function(){};
_.k._collectKeyBindings=function(){};
_.k._prepKeyBindings=function(){};
_.k._addKeyBinding=function(){};
_.k._resetKeyEventListeners=function(){};
_.k._listenKeyEventListeners=function(){};
_.k._unlistenKeyEventListeners=function(){};
_.k._onKeyBindingEvent=function(){};
_.k._triggerKeyHandler=function(){};
_.k._tapHandler=function(){};
_.k._focusChanged=function(){};
_.k._detectKeyboardFocus=function(){};
_.k._userActivate=function(){};
_.k._upHandler=function(){};
_.k._spaceKeyDownHandler=function(){};
_.k._spaceKeyUpHandler=function(){};
_.k._asyncClick=function(){};
_.k._pressedChanged=function(){};
_.k._ariaActiveAttributeChanged=function(){};
_.k._activeChanged=function(){};
_.k._controlStateChanged=function(){};
_.k._changedButtonState=function(){};
_.k._focusBlurHandler=function(){};
_.k._disabledChanged=function(){};
_.k._changedControlState=function(){};
_.k._buttonStateChanged=function(){};
_.k._downHandler=function(){};
_.k.ensureRipple=function(){};
_.k.getRipple=function(){};
_.k.hasRipple=function(){};
_.k._noinkChanged=function(){};
_.k._calcRatio=function(){};
_.k._clampValue=function(){};
_.k._calcStep=function(){};
_.k._validateValue=function(){};
_.k._update=function(){};
_.k._setImmediateValue=function(){};
_.k._setExpand=function(){};
_.k._setDragging=function(){};
_.k._setTransiting=function(){};
_.k._setMarkers=function(){};
_.k._setPressed=function(){};
_.k._setPointerDown=function(){};
_.k._setReceivedFocusFromKeyboard=function(){};
_.k._setFocused=function(){};
_.k._setRatio=function(){};
PMH=_.o9({_template:function(){if(tMm!==void 0)return tMm;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;khT===void 0&&(khT=document.createElement("template"));var y=khT;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return tMm=q},
is:"tp-yt-paper-slider",behaviors:[_.IZ,_.Tw,_.Y36,qzm],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&&_.pJ(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(q,w,u){this.setAttribute("aria-valuemin",w);this.setAttribute("aria-valuemax",u);this.setAttribute("aria-valuenow",q);this._positionKnob(this._calcRatio(q)*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(q){this._setImmediateValue(this._calcStep(this._calcKnobPosition(q)));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(q){return(this.max-this.min)*q/100+this.min},
_onTrack:function(q){q.stopPropagation();switch(q.detail.state){case "start":this._trackStart(q);break;case "track":this._trackX(q);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(q){this.dragging||this._trackStart(q);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,q.detail.dx*(this._isRTL?-1:1)));q=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(q);q=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(q+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var q=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;q.transform=q.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(q){this._expandKnob();q.preventDefault();this.focus()},
_bartrack:function(q){this._allowBarEvent(q)&&this._onTrack(q)},
_barclick:function(q){this._w=this.$.sliderBar.offsetWidth;var w=this.$.sliderBar.getBoundingClientRect();w=(q.detail.x-w.left)/this._w*100;this._isRTL&&(w=100-w);var u=this.ratio;this._setTransiting(!0);this._positionKnob(w);u===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
q.preventDefault();this.focus()},
_bardown:function(q){this._allowBarEvent(q)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(q))},
_knobTransitionEnd:function(q){q.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(q,w,u,y){y||this._setMarkers([]);w=Math.round((u-w)/this.step);w>q&&(w=q);if(w<0||!isFinite(w))w=0;this._setMarkers(Array(w))},
_mergeClasses:function(q){return Object.keys(q).filter(function(w){return q[w]}).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(q){return!this.ignoreBarTouch||q.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(q){this._isRTL?this._incrementKey(q):this._decrementKey(q)},
_rightKey:function(q){this._isRTL?this._decrementKey(q):this._incrementKey(q)},
_incrementKey:function(q){this.disabled||(q.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),q.preventDefault())},
_decrementKey:function(q){this.disabled||(q.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),q.preventDefault())},
_changeValue:function(q){this.value=q.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(q){q.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.bTX._createRipple.call(this)},
_focusedChanged:function(q){q&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=q?"":"none",this._ripple.holdDown=q)}});var XuH;var FmT;var RF=null,Gh6=function(){};
_.k=Gh6.prototype;_.k.fit=function(){};
_.k._discoverInfo=function(){};
_.k.resetFit=function(){};
_.k.refit=function(){};
_.k.position=function(){};
_.k.constrain=function(){};
_.k._sizeDimension=function(){};
_.k.__sizeDimension=function(){};
_.k.center=function(){};
_.k.__getNormalizedRect=function(){};
_.k.__getOffscreenArea=function(){};
_.k.__getPosition=function(){};
_.k.notifyResize=function(){};
_.k.assignParentResizable=function(){};
_.k.stopResizeNotificationsFor=function(){};
_.k._subscribeIronResize=function(){};
_.k._unsubscribeIronResize=function(){};
_.k.resizerShouldNotify=function(){};
_.k._onDescendantIronResize=function(){};
_.k._fireResize=function(){};
_.k._onIronRequestResizeNotifications=function(){};
_.k._parentResizableChanged=function(){};
_.k._notifyDescendant=function(){};
_.k._requestResizeNotifications=function(){};
_.k._findParent=function(){};
_.k.toggle=function(){};
_.k.open=function(){};
_.k.close=function(){};
_.k.cancel=function(){};
_.k.invalidateTabbables=function(){};
_.k._ensureSetup=function(){};
_.k._canceledChanged=function(){};
_.k._withBackdropChanged=function(){};
_.k._prepareRenderOpened=function(){};
_.k._finishRenderOpened=function(){};
_.k._finishRenderClosed=function(){};
_.k._preparePositioning=function(){};
_.k._finishPositioning=function(){};
_.k._applyFocus=function(){};
_.k._onCaptureClick=function(){};
_.k._onCaptureFocus=function(){};
_.k._onCaptureEsc=function(){};
_.k._onCaptureTab=function(){};
_.k._onIronResize=function(){};
_.k._onNodesChange=function(){};
_.k.__ensureFirstLastFocusables=function(){};
_.k.__openedChanged=function(){};
_.k.__deraf=function(){};
_.k.__updateScrollObservers=function(){};
_.k.__addScrollListeners=function(){};
_.k.__removeScrollListeners=function(){};
_.k.__isValidScrollAction=function(){};
_.k.__onCaptureScroll=function(){};
_.k.__saveScrollPosition=function(){};
_.k.__restoreScrollPosition=function(){};
_.k._setCanceled=function(){};
Gh6=_.o9({_template:function(){if(FmT!==void 0)return FmT;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;XuH===void 0&&(XuH=document.createElement("template"));var y=XuH;u.call(w,y.content.cloneNode(!0),q.content.firstChild);return FmT=q},
is:"tp-yt-paper-toast",behaviors:[_.RZ],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(){_.iM._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.v8.requestAvailability()},
show:function(q){typeof q=="string"&&(q={text:q});for(var w in q)w.indexOf("_")===0?_.iM._warn('The property "'+w+'" is private and was not set.'):w in this?this[w]=q[w]:_.iM._warn('The property "'+w+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(q){q&&q.target===this&&q.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(RF&&RF!==this&&RF.close(),RF=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):RF===this&&(RF=null);_.El._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(q){this.positionTarget=q},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var neT=new _.M("disablePersonalizationAction");var uTx=new _.M("showDmaConsentFlowCommand");var yex=new _.M("showMmgNoticeCommand");var H1K=new _.M("saveConsentAction");var WmT=function(q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kK(q)};
_.O(WmT,_.bE);var s8c=_.uFJ(WmT);var NQx=new _.M("updateTopbarAvatarAction");var Q8j=new _.M("channelHandleValidationResultRenderer");var INT=new _.M("generateHandleFromNameResultRenderer");var i1x=new _.M("channelHandleInputRenderer");var r3V=new _.M("copyLinkRenderer");var UAm=new _.M("timedCommand");var TQB=new _.M("clearCookieAction");var CMj=new _.M("getMultiPageMenuAction");var dAm=new _.M("addToGuideSectionAction"),O1x=new _.M("removeFromGuideSectionAction");var oeh=new _.M("updateNotificationsUnseenCountAction");var VMj=new _.M("resetChannelUnreadCountCommand");var fN6=new _.M("resetSubscriptionsUnreadDotCommand");var mAT=new _.M("selectLanguageCommand");var IVA=new _.M("sendFeedbackAction");var A3H=new _.M("uploadImageToScottyCommand");var J3x=new _.M("registerPromoCommand");var z06=new _.M("setPushNotificationsEnabledCommand");var aNV=new _.M("desktopTopbarRenderer");var DAa=new _.M("surveyFollowUpRenderer");var Z1H=new _.M("handlesClaimingRadioOptionRenderer");var puH=new _.M("hotkeyDialogRenderer");var $Ah=new _.M("modifyReportFormCommand");var ve6=new _.M("accountLinkCommand");var b14=new _.M("accountUnlinkCommand");var Yz6=new _.M("logAccountLinkingEventCommand");var gem=new _.M("guideCollapsibleEntryRenderer");var Eex=new _.M("guideDownloadsEntryRenderer");var cN=new _.M("guideEntryRenderer");var R06=new _.M("getLocationCommand");var c3m=new _.M("locationCollectionCommand");var SzB=new _.M("storiesItemViewModel");var h0V=new _.M("addToRemoteQueueAction");var j86=new _.M("insertInRemoteQueueAction");var lNj=new _.M("removeFromRemoteQueueAction");var LmB=new _.M("notificationRenderer");var gNc=new _.M("localWatchHistoryCommand");var MMc=new _.M("pdgBuyFlowHeaderRenderer");var Kma=new _.M("pdgColorSliderRenderer");var BQA=new _.M("pdgCommentOptionRenderer");var xAx=new _.M("pdgCommentPreviewRenderer");var qlm=new _.M("superVodSelectableItemButtonRenderer");var w8K=new _.M("switchButtonRenderer");var uU6=new _.M("upsellDialogRenderer");var yU4=new _.M("feedbackQuestionRenderer"),eSH=new _.M("feedbackOptionRenderer");var kwA=new _.M("sponsorshipsTierRenderer"),thB=new _.M("sponsorshipsPromotionChannelRenderer");var PGj=new _.M("simpleSurveyMessageRenderer");var IuK=new _.M("invokeInstrumentManagerAction");var X86=new _.M("logYpcFlowDismissCommand");var FF6=new _.M("logYpcFlowStartCommand");var Gwq=new _.M("unlimitedCreateFamilyEndpoint");var n9A=new _.M("iconBadgeRenderer");var g1a=new _.M("collaborativePlaylistVisibilityValidationRule");var HH4=function(q){_.nM.call(this,"channelMessage");this.message=q};
_.O(HH4,_.nM);var WFT=function(q){_.nM.call(this,"channelError");this.error=q};
_.O(WFT,_.nM);var sZj={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"},NoK={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},QZm={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},
It6={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},iHx={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var SO=function(q){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 _.eh;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";q&&(this.id=q.id||q.name,this.name=q.name,this.clientName=q.clientName?q.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=q.app,this.type=q.type||"REMOTE_CONTROL",this.username=q.user||"",this.avatar=q.userAvatarUri||"",this.obfuscatedGaiaId=q.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=q.ownerObfuscatedGaiaId||"",this.theme=q.theme||"u",rUj(this,q.capabilities||""),UsT(this,q.compatibleSenderThemes||""),Tox(this,q.experiments||""),
this.remoteControllerUrl=q.remoteControllerUrl||"",this.localChannelEncryptionKey=q.localChannelEncryptionKey||"",this.deviceContext=q.deviceContext,this.brand=q.brand||"",this.model=q.model||"",this.year=q.year||0,this.os=q.os||"",this.osVersion=q.osVersion||"",this.chipset=q.chipset||"",this.mdxDialServerType=q.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=q.pairingType||"unknown",q=q.deviceInfo)&&(q=JSON.parse(q),this.brand=q.brand||"",this.model=q.model||"",this.year=q.year||
0,this.os=q.os||"",this.osVersion=q.osVersion||"",this.chipset=q.chipset||"",this.clientName=q.clientName?q.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=q.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
SO.prototype.copy=function(){var q={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&&(q.brand=this.brand);
this.model&&(q.model=this.model);this.year&&(q.year=this.year);this.os&&(q.os=this.os);this.osVersion&&(q.osVersion=this.osVersion);this.chipset&&(q.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(q.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(q.mdxDialServerType=this.mdxDialServerType);q=new SO(q);q.connected=this.connected;q.remoteControllerUrl=this.remoteControllerUrl;q.localChannelEncryptionKey=this.localChannelEncryptionKey;q.deviceContext=
this.deviceContext;return q};
SO.prototype.equals=function(q){return q?this.id==q.id:!1};
var rUj=function(q,w){q.capabilities.clear();_.yN(w.split(","),_.rk(_.db.contains,sZj)).forEach(function(u){q.capabilities.add(u)})},UsT=function(q,w){q.compatibleSenderThemes.clear();
_.yN(w.split(","),_.rk(_.db.contains,NoK)).forEach(function(u){q.compatibleSenderThemes.add(u)})},Tox=function(q,w){q.experiments.clear();
w.split(",").forEach(function(u){q.experiments.add(u)})};var CG4=function(q,w){this.action=q;this.params=w||{}};_.w9(FMA,_.VG);_.k=FMA.prototype;_.k.JSC$17375_onTick_=function(){this.JSC$17373_interval_=Math.min(3E5,this.JSC$17373_interval_*2);this.JSC$17375_listener_();this.nextTickTime_&&this.start()};
_.k.start=function(){var q=this.JSC$17373_interval_+15E3*Math.random(),w=this.delay_;w.isActive()||w.start(q);this.nextTickTime_=Date.now()+q};
_.k.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.k.isActive=function(){return this.delay_.isActive()};
_.k.reset=function(){this.delay_.stop();this.JSC$17373_interval_=5E3};_.w9(Vn,MFj);_.k=Vn.prototype;_.k.subscribe=function(q,w,u){return this.pubsub_.subscribe(q,w,u)};
_.k.unsubscribe=function(q,w,u){return this.pubsub_.unsubscribe(q,w,u)};
_.k.unsubscribeByKey=function(q){return this.pubsub_.unsubscribeByKey(q)};
_.k.publish=function(q,w){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.k.dispose=function(){this.JSC$17376_disposed_||(this.JSC$17376_disposed_=!0,_.BX(this.pubsub_),this.disconnect(),_.BX(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17376_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.Hw({})})};
_.k.isDisposed=function(){return this.JSC$17376_disposed_};
_.k.connect=function(q,w,u){var y=this,e,t,X,G;return _.F(function(n){if(n.nextAddress==1)return _.Fg(n,2),y.useAsyncBrowserChannelHandler_?_.H(n,y.connectPromise_,2):n.jumpTo(2);_.Xg(n);if(y.JSC$17376_disposed_||y.JSC$17376_channel_&&y.JSC$17376_channel_.getState()==2)return n.return();y.sCookie_="";y.reconnectTimer_.stop();y.connectionParams_=q||null;y.connectUi_=w||0;e=y.JSC$17376_pathPrefix_+"/test";t=y.JSC$17376_pathPrefix_+"/bind";X=new Yl(u?u.firstTestResults:null,u?u.secondTestResults:null,
y.enableAsyncTest_);if(G=y.JSC$17376_channel_)G.handler_=null;X.handler_=y;y.JSC$17376_channel_=X;if(y.useAsyncBrowserChannelHandler_)return y.connectPromise_=dsH(y).then(function(){return OHA(y,e,t,G,u)}),n.return(y.connectPromise_.then(function(){y.connectPromise_=_.Hw()}));
OHA(y,e,t,G,u);return _.G7(n,0)})};
var OHA=function(q,w,u,y,e){o9H(q);if(q.JSC$17376_channel_){var t=_.Et("ID_TOKEN"),X=q.JSC$17376_channel_.JSC$17328_extraHeaders_||{};t?X["x-youtube-identity-token"]=t:delete X["x-youtube-identity-token"];q.JSC$17376_channel_.JSC$17328_extraHeaders_=X}Vhq(q);y?(y.getState(),q.JSC$17376_channel_.connect(w,u,q.defaultQueryParams_,y.sid_,y.JSC$17328_lastArrayId_)):e?q.JSC$17376_channel_.connect(w,u,q.defaultQueryParams_,e.sessionId,e.arrayId):q.JSC$17376_channel_.connect(w,u,q.defaultQueryParams_)};
Vn.prototype.disconnect=function(q){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.Hw())}finally{this.disconnectUi_=q||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),o9H(this),this.JSC$17376_channel_&&(this.JSC$17376_channel_.getState()==3&&cL6(this.JSC$17376_channel_),this.JSC$17376_channel_.disconnect()),this.disconnectUi_=0}};
Vn.prototype.sendMessage=function(q,w){var u=this,y;return _.F(function(e){switch(e.nextAddress){case 1:_.Fg(e,2);if(!u.useAsyncBrowserChannelHandler_){e.jumpTo(2);break}return _.H(e,u.connectPromise_,2);case 2:_.Xg(e);if(u.JSC$17376_disposed_)return e.return();y={_sc:q};w&&_.db.extend(y,w);if(u.reconnectTimer_.isActive()||(u.JSC$17376_channel_?u.JSC$17376_channel_.getState():0)==2){u.JSC$17376_pendingMessages_.push(y);e.jumpTo(6);break}if(!u.isChannelOpened()){e.jumpTo(6);break}_.Fg(e,8);if(!u.useAsyncBrowserChannelHandler_||
ftV(u,q)){e.jumpTo(8);break}return _.H(e,dsH(u),8);case 8:_.Xg(e,0,0,1);u.isChannelOpened()&&(ftV(u,q)||Vhq(u),o9H(u),R_B(u.JSC$17376_channel_,y));_.G7(e,6,1);break;case 6:_.G7(e,0)}})};
var ftV=function(q,w){return q.enableMdxAuthForConnectionOnly_?!0:q.disableMdxAuthForAdMessages_?Object.values(QZm).includes(w):q.disableMdxAuthForNonPlaybackMessages_?!Object.values(It6).includes(w):q.disableMdxAuthForShortsMessages_?Object.values(iHx).includes(w):!1};
Vn.prototype.JSC$17335_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17376_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)msV(this);else{var q=this.JSC$17376_pendingMessages_;this.JSC$17376_pendingMessages_=[];var w=q.length;Vhq(this);AU6(this,q,w);JUB(this)}else JUB(this)};
var msV=function(q){var w,u;_.F(function(y){if(y.nextAddress==1)return _.Fg(y,2),_.H(y,dsH(q),2);_.Xg(y);w=q.JSC$17376_pendingMessages_;q.JSC$17376_pendingMessages_=[];u=w.length;AU6(q,w,u);JUB(q);return _.G7(y,0)})},AU6=function(q,w,u){for(var y=0;y<u;++y)R_B(q.JSC$17376_channel_,w[y]);
JUB(q)},JUB=function(q){q.publish("handlerOpened");
q.JSC$17376_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.k=Vn.prototype;_.k.JSC$17335_channelError=function(q){var w=q==2&&this.JSC$17376_channel_.JSC$17328_lastStatusCode_==401;q==4||w||this.reconnectTimer_.start();this.publish("handlerError",q,w);w=Object.keys(Z9T).find(function(u){return Z9T[u]===q});
this.JSC$17376_channelErrorCounter.increment("BROWSER_CHANNEL",w!=null?w:"UNKNOWN")};
_.k.JSC$17335_channelClosed=function(q,w){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(w)for(var u=w.length,y=0;y<u;++y){var e=w[y].map;e&&this.JSC$17376_pendingMessages_.push(e)}this.JSC$17376_channelClosedCounter.increment("BROWSER_CHANNEL");q&&this.pendingMapsOnClosedCounter.JSC$7832_streamzService.JSC$7690_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",q.length);w&&this.undeliveredMapsOnClosedCounter.JSC$7835_streamzService.JSC$7690_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
w.length)};
_.k.JSC$17335_channelSuccess=function(q,w){w!=null&&q!=null&&this.channelMessageSentCounter.increment()};
_.k.JSC$17335_getAdditionalParams=function(){var q={v:2};this.sCookie_&&(q.gsessionid=this.sCookie_);this.connectUi_!=0&&(q.ui=""+this.connectUi_);this.disconnectUi_!=0&&(q.ui=""+this.disconnectUi_);this.connectionParams_&&_.db.extend(q,this.connectionParams_);return q};
_.k.JSC$17335_channelHandleArray=function(q){q[0]=="S"?this.sCookie_=q[1]:q[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17376_channel_.disconnect()):this.publish("handlerMessage",new CG4(q[0],q[1]));this.JSC$17376_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.k.isChannelOpened=function(){return!!this.JSC$17376_channel_&&this.JSC$17376_channel_.getState()==3};
var o9H=function(q){if(q.JSC$17376_channel_){var w=q.JSC$17376_getXsrfToken_(),u=q.JSC$17376_channel_.JSC$17328_extraHeaders_||{};w?u["x-youtube-lounge-xsrf-token"]=w:delete u["x-youtube-lounge-xsrf-token"];q.JSC$17376_channel_.JSC$17328_extraHeaders_=u}},dsH=function(q){if(q.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.Hw();
if(!q.enableCachedUpdateAuthorizationHeader_)return zS6(q);q.updateAuthorizationHeaderPromise_===null&&(q.updateAuthorizationHeaderPromise_=zS6(q));return q.updateAuthorizationHeaderPromise_},zS6=function(q){return _.Uj(q.getAuthorizationHeader_().then(function(w){ath(q,w)}).thenCatch(function(){}),function(){q.updateAuthorizationHeaderPromise_=null})},ath=function(q,w){if(q.JSC$17376_channel_){var u=q.JSC$17376_channel_.JSC$17328_extraHeaders_||{};
w&&Object.keys(w).length>0?u=Object.assign({},u,w):delete u.Authorization;q.JSC$17376_channel_.JSC$17328_extraHeaders_=u}},Vhq=function(q){q.getAuthorizationHeaderSync_&&!q.useAsyncBrowserChannelHandler_&&ath(q,q.getAuthorizationHeaderSync_())};
_.k=Vn.prototype;_.k.setLoungeToken=function(q){(this.defaultQueryParams_.loungeIdToken=q)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17376_channel_){var w=this.JSC$17376_channel_.JSC$17328_extraHeaders_||{};q?w["X-YouTube-LoungeId-Token"]=q:delete w["X-YouTube-LoungeId-Token"];this.JSC$17376_channel_.JSC$17328_extraHeaders_=w}};
_.k.getDeviceId=function(){return this.defaultQueryParams_.id};
_.k.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.k.reconnect=function(){var q=this.reconnectTimer_;q.delay_.fire();q.start()};
_.k.safeReconnect_=function(){var q=this.JSC$17376_channel_,w=0;q.JSC$17328_backChannelRequest_&&w++;q.forwardChannelRequest_&&w++;w==0&&this.connect(this.connectionParams_,this.connectUi_)};var Dq=function(q,w){var u=q.basePath;q.supportCors&&(u=q.scheme+"://"+q.domain+q.port+q.basePath);return _.xw(u+w,{})};
f_.prototype.sendRequest=function(q,w,u,y,e,t,X){q={format:t?"RAW":"JSON",method:q,context:this,timeout:5E3,withCredentials:!!X,onSuccess:_.rk(this.JSC$17381_onSuccess_,y,!t),onError:_.rk(this.onError_,e),onTimeout:_.rk(this.JSC$17381_onTimeout_,e)};u&&(q.postParams=u,q.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.I2(w,q)};
f_.prototype.JSC$17381_onSuccess_=function(q,w,u,y){w?q(y):q({text:u.responseText})};
f_.prototype.onError_=function(q,w){q(Error("Bk`"+w.status))};
f_.prototype.JSC$17381_onTimeout_=function(q){q(Error("Ck"))};var Au=function(q,w){return!!w&&(q.id==w||q.uuid==w)},DsH=function(q){return{name:q.name,
screenId:q.id,loungeToken:q.token,dialId:q.uuid,screenIdType:q.idType}},ZH4=function(q){return new mQ(q)},p8A=function(q){return Array.isArray(q)?_.or(q,ZH4):[]},iNj=function(q){if(!q)return"null";
var w=q.token?".."+q.token.slice(-6):"-",u=q.uuid?".."+q.uuid.slice(-6):"-";return'{name:"'+q.name+'",id:'+q.id.substr(0,6)+"..,token:"+(w+",uuid:"+u+",idType:"+q.idType+"}")},jvB=function(q){return Array.isArray(q)?"["+_.or(q,iNj).join(",")+"]":"null"};var Vlq="",aW=null;var p04=function(q,w){_.Q4.call(this);var u=this;this.handler=q();this.handler.subscribe("handlerOpened",this.JSC$17388_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(y,e){u.onError(e)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=w};
_.O(p04,_.Q4);_.k=p04.prototype;_.k.connect=function(q,w,u){this.handler.connect(q,w,u)};
_.k.disconnect=function(q){this.handler.disconnect(q)};
_.k.reconnect=function(){this.handler.reconnect()};
_.k.getDeviceId=function(){return this.handler.getDeviceId()};
_.k.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.k.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.k.JSC$17388_onOpened=function(){this.dispatchEvent("channelOpened");var q=this.handler,w=this.currentScreenId;_.tm("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!q.JSC$17376_channel_.useChunked_,sessionId:q.JSC$17376_channel_.sid_,arrayId:q.JSC$17376_channel_.JSC$17328_lastArrayId_});_.tm("yt-remote-session-screen-id",w);q=UbT();w=TAa();_.SH(q,w)||q.push(w);o$q(q);OJ6()};
_.k.onClosed=function(){this.dispatchEvent("channelClosed")};
_.k.onMessage=function(q){this.dispatchEvent(new HH4(q))};
_.k.onError=function(q){this.dispatchEvent(new WFT(q?1:0))};
_.k.sendMessage=function(q,w){this.handler.sendMessage(q,w)};
_.k.setLoungeToken=function(q){this.handler.setLoungeToken(q)};
_.k.dispose=function(){this.handler.dispose()};var ZJ6=function(q,w,u){var y=this;u=u===void 0?function(){return""}:u;
var e=e===void 0?new PR4:e;var t=t===void 0?new _.r$:t;this.pathPrefix=q;this.defaultQueryParams=w;this.getXsrfToken=u;this.JSC$17391_pubsub=t;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new FMA(function(){var X;((X=y.channel)==null?void 0:$Hh((new GXq(X,X.JSC$17299_channel_)).JSC$17309_channel_.forwardChannelRequestPool_))===0&&y.connect(y.connectionParams,y.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17391_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17391_channelOpenedCounter=new GdV;this.JSC$17391_channelClosedCounter=new n$B;this.JSC$17391_channelMessageReceivedCounter=new WMV;this.JSC$17391_channelErrorCounter=new sv6};
ZJ6.prototype.connect=function(q,w){q=q===void 0?{}:q;w=w===void 0?0:w;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=q,this.connectUi=w,$sK(this),(q=_.Et("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=q: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 aF(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,v96(this))};
var v96=function(q){_.dL(q.channel,"w",function(){q.channelState=3;q.reconnectTimer.reset();q.connectionParams=null;q.connectUi=0;for(var w=_.P(q.nonAckedMessagesOnChannelClosed),u=w.next();!u.done;u=w.next())u=u.value,q.channel&&q.channel.send(u);q.nonAckedMessagesOnChannelClosed=[];q.publish("webChannelOpened");q.JSC$17391_channelOpenedCounter.increment("WEB_CHANNEL")});
_.dL(q.channel,"x",function(){q.channelState=0;q.reconnectTimer.isActive()||q.publish("webChannelClosed");var w,u=(w=q.channel)==null?void 0:n2A(new GXq(w,w.JSC$17299_channel_));u&&(q.nonAckedMessagesOnChannelClosed=[].concat(_.Cm(u)));q.JSC$17391_channelClosedCounter.increment("WEB_CHANNEL")});
_.dL(q.channel,"z",function(w){var u=w.data;u[0]==="gracefulReconnect"?(q.reconnectTimer.start(),q.channel&&q.channel.close()):q.publish("webChannelMessage",new CG4(u[0],u[1]));q.lastStatusCode=w.statusCode;q.JSC$17391_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.dL(q.channel,"y",function(){q.lastStatusCode===401||q.reconnectTimer.start();q.publish("webChannelError");q.JSC$17391_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.k=ZJ6.prototype;_.k.disconnect=function(q){this.disconnectUi=q===void 0?0:q;this.reconnectTimer.stop();$sK(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.k.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.k.reconnect=function(){var q=this.reconnectTimer;q.delay_.fire();q.start()};
_.k.sendMessage=function(q,w){this.channel&&($sK(this),q=Object.assign({},{_sc:q},w),this.channel.send(q))};
_.k.setLoungeToken=function(q){q||this.reconnectTimer.stop();q?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=q:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var $sK=function(q){var w=q.getXsrfToken();w?q.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=w:delete q.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.k=ZJ6.prototype;_.k.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.k.publish=function(q){return this.JSC$17391_pubsub.publish.apply(this.JSC$17391_pubsub,[q].concat(_.Cm(_.Cj.apply(1,arguments))))};
_.k.subscribe=function(q,w,u){return this.JSC$17391_pubsub.subscribe(q,w,u)};
_.k.unsubscribe=function(q,w,u){return this.JSC$17391_pubsub.unsubscribe(q,w,u)};
_.k.unsubscribeByKey=function(q){return this.JSC$17391_pubsub.unsubscribeByKey(q)};
_.k.dispose=function(){this.JSC$17391_disposed||(this.JSC$17391_disposed=!0,_.BX(this.JSC$17391_pubsub),this.disconnect(),_.BX(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.k.isDisposed=function(){return this.JSC$17391_disposed};var DbH=function(q){_.Q4.call(this);this.webChannelService=q();this.webChannelService.subscribe("webChannelOpened",this.JSC$17399_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.O(DbH,_.Q4);_.k=DbH.prototype;_.k.connect=function(q,w){this.webChannelService.connect(q,w)};
_.k.disconnect=function(q){this.webChannelService.disconnect(q)};
_.k.reconnect=function(){this.webChannelService.reconnect()};
_.k.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.k.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.k.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.k.JSC$17399_onOpened=function(){this.dispatchEvent("channelOpened")};
_.k.onClosed=function(){this.dispatchEvent("channelClosed")};
_.k.onMessage=function(q){this.dispatchEvent(new HH4(q))};
_.k.onError=function(){this.dispatchEvent(new WFT(this.webChannelService.lastStatusCode===401?1:0))};
_.k.sendMessage=function(q,w){this.webChannelService.sendMessage(q,w)};
_.k.setLoungeToken=function(q){this.webChannelService.setLoungeToken(q)};
_.k.dispose=function(){this.webChannelService.dispose()};var h$T=Date.now(),Zq=null,c2q=Array(50),vP=-1,S4K=!1;_.w9(bT,_.L2);bT.prototype.getScreens=function(){return this.screens};
bT.prototype.contains=function(q){return!!r2j(this.screens,q)};
bT.prototype.get=function(q){return q?Ju(this.screens,q):null};
var bHx=function(q,w){var u=q.get(w.uuid)||q.get(w.id);if(u)return q=u.name,u.id=w.id||u.id,u.name=w.name,u.token=w.token,u.uuid=w.uuid||u.uuid,u.name!=q;q.screens.push(w);return!0},YlA=function(q,w){var u=q.screens.length!=w.length;
q.screens=_.yN(q.screens,function(t){return!!r2j(w,t)});
for(var y=w.length,e=0;e<y;e++)u=bHx(q,w[e])||u;return u},g9x=function(q,w){var u=q.screens.length;
q.screens=_.yN(q.screens,function(y){return!(y||w?!y!=!w?0:y.id==w.id:1)});
return q.screens.length<u};
bT.prototype.info=function(q){p_(this.JSC$17400_logName_,q)};var E94=function(q,w,u,y,e){_.L2.call(this);this.JSC$17403_http_=q;this.pairingCode_=w;this.deviceId_=u;this.friendlyName_=y;this.enableShortLivedLoungeToken_=e;this.pollIndex_=0;this.JSC$17403_xhr_=null;this.JSC$17403_timer_=NaN};
_.O(E94,_.L2);_.k=E94.prototype;_.k.start=function(){!this.JSC$17403_xhr_&&isNaN(this.JSC$17403_timer_)&&this.poll_()};
_.k.stop=function(){this.JSC$17403_xhr_&&(this.JSC$17403_xhr_.abort(),this.JSC$17403_xhr_=null);isNaN(this.JSC$17403_timer_)||(_.Nu(this.JSC$17403_timer_),this.JSC$17403_timer_=NaN)};
_.k.disposeInternal=function(){this.stop();_.L2.prototype.disposeInternal.call(this)};
_.k.poll_=function(){this.JSC$17403_timer_=NaN;this.JSC$17403_xhr_=_.I2(Dq(this.JSC$17403_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.fY)(this.JSC$17405_onSuccess_,this),onError:(0,_.fY)(this.onError_,this),onTimeout:(0,_.fY)(this.JSC$17405_onTimeout_,this)})};
_.k.JSC$17405_onSuccess_=function(q,w){this.JSC$17403_xhr_=null;q=w.screen||{};q.dialId=this.deviceId_;q.name=this.friendlyName_;w=-1;this.enableShortLivedLoungeToken_&&q.shortLivedLoungeToken&&q.shortLivedLoungeToken.value&&q.shortLivedLoungeToken.refreshIntervalMs&&(q.screenIdType="shortLived",q.loungeToken=q.shortLivedLoungeToken.value,w=q.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new mQ(q),w)};
_.k.onError_=function(q){this.JSC$17403_xhr_=null;q.status&&q.status==404?this.pollIndex_>=RSK.length?this.publish("pairingFailed",Error("Dk")):(q=RSK[this.pollIndex_],this.JSC$17403_timer_=_.WG((0,_.fY)(this.poll_,this),q),this.pollIndex_++):this.publish("pairingFailed",Error("Ek`"+q.status))};
_.k.JSC$17405_onTimeout_=function(){this.JSC$17403_xhr_=null;this.publish("pairingFailed",Error("Fk"))};
var RSK=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.w9(gW,bT);_.k=gW.prototype;_.k.start=function(){Yb(this)&&this.publish("screenChange");!_.Pd("yt-remote-lounge-token-expiration")&&cU4(this);_.Nu(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.WG((0,_.fY)(this.start,this),1E4)};
_.k.add=function(q,w){Yb(this);bHx(this,q);SlB(this,!1);this.publish("screenChange");w(q);q.token||cU4(this)};
_.k.remove=function(q,w){var u=Yb(this);g9x(this,q)&&(SlB(this,!1),u=!0);w(q);u&&this.publish("screenChange")};
_.k.updateName=function(q,w,u,y){var e=Yb(this),t=this.get(q.id);t?(t.name!=w&&(t.name=w,SlB(this,!1),e=!0),u(q)):y(Error("Gk"));e&&this.publish("screenChange")};
_.k.disposeInternal=function(){_.Nu(this.loungeTokenRefreshTimer_);gW.superClass_.disposeInternal.call(this)};
var cU4=function(q){if(q.screens.length){var w=_.or(q.screens,function(y){return y.id}),u=Dq(q.JSC$17407_http_,"/pairing/get_lounge_token_batch");
q.JSC$17407_http_.sendRequest("POST",u,{screen_ids:w.join(",")},(0,_.fY)(q.handleLoungeTokens_,q),(0,_.fY)(q.handleLoungeTokenError_,q))}};
gW.prototype.handleLoungeTokens_=function(q){Yb(this);var w=this.screens.length;q=q&&q.screens||[];for(var u=q.length,y=0;y<u;++y){var e=q[y],t=this.get(e.screenId);t&&(t.token=e.loungeToken,--w)}SlB(this,!w);w&&p_(this.JSC$17400_logName_,"Missed "+w+" lounge tokens.")};
gW.prototype.handleLoungeTokenError_=function(q){p_(this.JSC$17400_logName_,"Requesting lounge tokens failed: "+q)};
var Yb=function(q){if(_.T("deprecate_pair_servlet_enabled"))return YlA(q,[]);var w=p8A(mbB());w=_.yN(w,function(u){return!u.uuid});
return YlA(q,w)},SlB=function(q,w){J2A(_.or(q.screens,DsH));
w&&A2c()};var hT=function(q,w){_.L2.call(this);this.getScreensToCheck_=w;w=(w=_.Pd("yt-remote-online-screen-ids")||"")?w.split(","):[];for(var u={},y=this.getScreensToCheck_(),e=y.length,t=0;t<e;++t){var X=y[t].id;u[X]=_.SH(w,X)}this.screenIdSet_=u;this.JSC$17410_http_=q;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;hSa("Initialized with "+(0,_.dD)(this.screenIdSet_))};
_.O(hT,_.L2);hT.prototype.isOnline=function(q){return!!this.screenIdSet_[q]};
hT.prototype.start=function(){var q=parseInt(_.Pd("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.qG()-144E5<q?0:q)?jZH(this):(this.fastCheckEndTime_=_.qG()+3E5,_.tm("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
hT.prototype.isEmpty=function(){return _.db.isEmpty(this.screenIdSet_)};
hT.prototype.update=function(){hSa("Updating availability on schedule.");var q=this.getScreensToCheck_(),w=_.db.filter(this.screenIdSet_,function(u,y){return u&&!!Ju(q,y)},this);
lt4(this,w)};
var LF6=function(q,w,u){var y=Dq(q.JSC$17410_http_,"/pairing/get_screen_availability");q.JSC$17410_http_.sendRequest("POST",y,{lounge_token:w.token},(0,_.fY)(function(e){e=e.screens||[];for(var t=e.length,X=0;X<t;++X)if(e[X].loungeToken==w.token){u(e[X].status=="online");return}u(!1)},q),(0,_.fY)(function(){u(!1)},q))};
hT.prototype.disposeInternal=function(){_.Nu(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.L2.prototype.disposeInternal.call(this)};
var lt4=function(q,w){a:if(_.db.getCount(w)!=_.db.getCount(q.screenIdSet_))var u=!1;else{u=_.db.getKeys(w);for(var y=u.length,e=0;e<y;++e)if(!q.screenIdSet_[u[e]]){u=!1;break a}u=!0}u||(hSa("Updated online screens: "+(0,_.dD)(q.screenIdSet_)),q.screenIdSet_=w,q.publish("screenChange"));MhK(q)},jZH=function(q){isNaN(q.refreshTimer_)||_.Nu(q.refreshTimer_);
q.refreshTimer_=_.WG((0,_.fY)(q.requestScreenAvailability_,q),q.fastCheckEndTime_>0&&q.fastCheckEndTime_<_.qG()?2E4:1E4)};
hT.prototype.requestScreenAvailability_=function(){_.Nu(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var q=KFc(this);if(_.db.getCount(q)){var w=Dq(this.JSC$17410_http_,"/pairing/get_screen_availability"),u={lounge_token:_.db.getKeys(q).join(",")};this.currentRequest_=this.JSC$17410_http_.sendRequest("POST",w,u,(0,_.fY)(this.onScreenAvailability_,this,q),(0,_.fY)(this.onScreenAvailabilityError_,this))}else lt4(this,{}),jZH(this)};
hT.prototype.onScreenAvailability_=function(q,w){this.currentRequest_=null;var u=_.db.getKeys(KFc(this));if(_.Wk(u,_.db.getKeys(q))){w=w.screens||[];u={};for(var y=w.length,e=0;e<y;++e)u[q[w[e].loungeToken]]=w[e].status=="online";lt4(this,u);jZH(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
hT.prototype.onScreenAvailabilityError_=function(q){this.warn_("Screen availability failed: "+q);this.currentRequest_=null;jZH(this)};
var hSa=function(q){p_("OnlineScreenService",q)};
hT.prototype.warn_=function(q){p_("OnlineScreenService",q)};
var KFc=function(q){var w={};_.L4(q.getScreensToCheck_(),function(u){u.token?w[u.token]=u.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return w},MhK=function(q){q=_.db.getKeys(_.db.filter(q.screenIdSet_,function(w){return w}));
q.sort(_.GG);q.length?_.tm("yt-remote-online-screen-ids",q.join(","),60):_.XS("yt-remote-online-screen-ids")};_.w9(EH,bT);_.k=EH.prototype;_.k.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.k.add=function(q,w,u){this.localScreenService_.add(q,w,u)};
_.k.remove=function(q,w,u){this.localScreenService_.remove(q,w,u);this.onlineScreenService_.update()};
_.k.updateName=function(q,w,u,y){this.localScreenService_.contains(q)?this.localScreenService_.updateName(q,w,u,y):(q="Updating name of unknown screen: "+q.name,p_(this.JSC$17400_logName_,q),y(Error(q)))};
_.k.getScreens=function(q){return q?this.screens:$ZB(this.screens,_.yN(this.automaticScreens_,function(w){return!this.contains(w)},this))};
_.k.JSC$17415_getOnlineScreens=function(){return _.yN(this.getScreens(!0),function(q){return this.onlineScreenService_.isOnline(q.id)},this)};
var xsm=function(q,w,u,y,e,t){q.info("getAutomaticScreenByIds "+u+" / "+w);u||(u=q.deviceToScreenId_[w]);var X=q.getScreens(),G=u?Ju(X,u):null;u&&(q.disableAutomaticScreenCache_||G)||(G=Ju(X,w));if(G){G.uuid=w;var n=jO(q,G);LF6(q.onlineScreenService_,n,function(N){e(N?n:null)})}else u?Boh(q,u,(0,_.fY)(function(N){var Q=jO(this,new mQ({name:y,
screenId:u,loungeToken:N,dialId:w||""}));LF6(this.onlineScreenService_,Q,function(I){e(I?Q:null)})},q),t):e(null)};
EH.prototype.JSC$17415_getScreenByPollingPairingCode=function(q,w,u,y,e,t){var X=this;this.info("getDialScreenByPairingCode "+q+" / "+w);var G=new E94(this.JSC$17413_http_,q,w,u,y);G.subscribe("pairingComplete",function(n,N){_.BX(G);e(jO(X,n),N)});
G.subscribe("pairingFailed",function(n){_.BX(G);t(n)});
G.start();return(0,_.fY)(G.stop,G)};
var quH=function(q,w){for(var u=q.screens.length,y=0;y<u;++y)if(q.screens[y].name==w)return q.screens[y];return null};
EH.prototype.JSC$17415_getScreenByPairingCode=function(q,w,u,y){_.I2(Dq(this.JSC$17413_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:q},timeout:5E3,onSuccess:(0,_.fY)(function(e,t){e=new mQ(t.screen||{});if(!e.name||quH(this,e.name)){a:{t=e.name;for(var X=2,G=w(t,X);quH(this,G);){X++;if(X>20)break a;G=w(t,X)}t=G}e.name=t}u(jO(this,e))},this),
onError:(0,_.fY)(function(e){y(Error("Hk`"+e.status))},this),
onTimeout:(0,_.fY)(function(){y(Error("Ik"))},this)})};
var wi6=function(q,w,u){LF6(q.onlineScreenService_,w,u)};
EH.prototype.disposeInternal=function(){_.BX(this.localScreenService_);_.BX(this.onlineScreenService_);EH.superClass_.disposeInternal.call(this)};
var Boh=function(q,w,u,y){q.info("requestLoungeToken_ for "+w);var e={postParams:{screen_ids:w},method:"POST",context:q,onSuccess:function(t,X){t=X&&X.screens||[];t[0]&&t[0].screenId==w?u(t[0].loungeToken):y(Error("Jk"))},
onError:function(){y(Error("Kk"))}};
_.I2(Dq(q.JSC$17413_http_,"/pairing/get_lounge_token_batch"),e)},uhm=function(q){q.screens=q.localScreenService_.getScreens();
for(var w=_.db.transpose(q.deviceToScreenId_),u=q.screens.length,y=0;y<u;++y){var e=q.screens[y];e.uuid=w[e.id]||""}q.info("Updated manual screens: "+jvB(q.screens))};
EH.prototype.handleScreenChange_=function(){uhm(this);this.publish("screenChange");this.onlineScreenService_.update()};
var lOB=function(q){yOV(q);q.localScreenService_=new gW(q.JSC$17413_http_);q.localScreenService_.subscribe("screenChange",(0,_.fY)(q.handleScreenChange_,q));uhm(q);q.disableAutomaticScreenCache_||(q.automaticScreens_=p8A(_.Pd("yt-remote-automatic-screen-cache")||[]));yOV(q);q.info("Initializing automatic screens: "+jvB(q.automaticScreens_));q.onlineScreenService_=new hT(q.JSC$17413_http_,(0,_.fY)(q.getScreens,q,!0));q.onlineScreenService_.subscribe("screenChange",(0,_.fY)(function(){this.publish("onlineScreenChange")},
q))},jO=function(q,w){var u=q.get(w.id);
u?(u.uuid=w.uuid,w=u):((u=Ju(q.automaticScreens_,w.uuid))?(u.id=w.id,u.token=w.token,w=u):q.automaticScreens_.push(w),q.disableAutomaticScreenCache_||eIh(q));yOV(q);q.deviceToScreenId_[w.uuid]=w.id;_.tm("yt-remote-device-id-map",q.deviceToScreenId_,31536E3);return w},eIh=function(q){q=_.yN(q.automaticScreens_,function(w){return w.idType!="shortLived"});
_.tm("yt-remote-automatic-screen-cache",_.or(q,DsH))},yOV=function(q){q.deviceToScreenId_=_.Pd("yt-remote-device-id-map")||{}};
EH.prototype.dispose=EH.prototype.dispose;_.w9(RW,_.L2);var lg=function(q,w){q.screen_=w;q.publish("sessionScreen",q.screen_)},koc=function(q,w){q.screen_&&(q.screen_.token=w,jO(q.JSC$17417_screenService_,q.screen_));
q.publish("sessionScreen",q.screen_)};
RW.prototype.onSessionStopped=function(q){this.isDisposed()||(q&&(L5(this,""+q),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
RW.prototype.info=function(q){p_(this.JSC$17417_logName_,q)};
var L5=function(q,w){p_(q.JSC$17417_logName_,w)};
RW.prototype.JSC$17419_getCastSession=function(){return null};
RW.prototype.setDisplayStatus=function(q){var w=this.receiver_;q?(w.displayStatus=new chrome.cast.ReceiverDisplayStatus(q,[]),w.displayStatus.showStop=!0):w.displayStatus=null;chrome.cast.setReceiverDisplayStatus(w,(0,_.fY)(function(){this.info("Updated receiver status for "+w.friendlyName+": "+q)},this),(0,_.fY)(function(){L5(this,"Failed to update receiver status for: "+w.friendlyName)},this))};
RW.prototype.disposeInternal=function(){this.setDisplayStatus("");RW.superClass_.disposeInternal.call(this)};var MW=function(q,w,u){RW.call(this,q,w,"CastSession");var y=this;this.config_=u;this.JSC$17422_session_=null;this.JSC$17422_boundSessionUpdate_=(0,_.fY)(this.JSC$17424_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.fY)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.WG(function(){tLj(y,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17422_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17422_isInitLoungeToken_=!1;this.JSC$17422_lastLoungeTokenRefreshError_="unknown"};
_.O(MW,RW);_.k=MW.prototype;
_.k.setCastSession=function(q){if(this.JSC$17422_session_){if(this.JSC$17422_session_==q)return;L5(this,"Overriding cast session with new session object");PkK(this);this.JSC$17422_isInitLoungeToken_=!1;this.JSC$17422_lastLoungeTokenRefreshError_="unknown";this.JSC$17422_session_.removeUpdateListener(this.JSC$17422_boundSessionUpdate_);this.JSC$17422_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17422_session_=q;this.JSC$17422_session_.addUpdateListener(this.JSC$17422_boundSessionUpdate_);this.JSC$17422_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);Xix(this,"getMdxSessionStatus")};
_.k.launchWithParams=function(q){this.info("launchWithParams no-op for Cast: "+(0,_.dD)(q))};
_.k.stop=function(){if(this.JSC$17422_session_)this.JSC$17422_session_.stop((0,_.fY)(function(){this.onSessionStopped()},this),(0,_.fY)(function(){this.onSessionStopped(Error("Lk"))},this));
else this.onSessionStopped(Error("Mk"))};
_.k.setDisplayStatus=function(){};
_.k.disposeInternal=function(){this.info("disposeInternal");PkK(this);this.JSC$17422_session_&&(this.JSC$17422_session_.removeUpdateListener(this.JSC$17422_boundSessionUpdate_),this.JSC$17422_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17422_session_=null;RW.prototype.disposeInternal.call(this)};
var GoB=function(q,w){_.Nu(q.getLoungeTokenTimeoutKey_);q.getLoungeTokenTimeoutKey_=0;w==0?FZa(q):q.getLoungeTokenTimeoutKey_=_.WG(function(){FZa(q)},w)},FZa=function(q){Xix(q,"getLoungeToken");
_.Nu(q.onLoungeTokenTimeoutKey_);q.onLoungeTokenTimeoutKey_=_.WG(function(){nPq(q,null)},3E4)},Xix=function(q,w){q.info("sendYoutubeMessage_: "+w+" "+(0,_.dD)(void 0));
var u={};u.type=w;q.JSC$17422_session_?q.JSC$17422_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",u,function(){},(0,_.fY)(function(){L5(this,"Failed to send message: "+w+".")},q)):L5(q,"Sending yt message without session: "+(0,_.dD)(u))};
MW.prototype.onYoutubeMessage_=function(q,w){if(!this.isDisposed())if(w)if(w=(0,_.Jp)(w),_.er(w))switch(q=""+w.type,w=w.data||{},this.info("onYoutubeMessage_: "+q+" "+(0,_.dD)(w)),q){case "mdxSessionStatus":tLj(this,w);break;case "loungeToken":nPq(this,w);break;default:L5(this,"Unknown youtube message: "+q)}else L5(this,"Unable to parse message.");else L5(this,"No data in message.")};
var HGh=function(q,w){if(w)q.info("onConnectedScreenId_: Received screenId: "+w),q.screen_&&q.screen_.id==w||q.getScreen_(w,function(u){lg(q,u)},function(){return q.onSessionStopped()},5);
else q.onSessionStopped(Error("Nk"))},sBj=function(q,w,u){q.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(w));
var y=new mQ(w);WZB(q,y,function(e){e?(q.JSC$17422_isInitLoungeToken_=!0,jO(q.JSC$17417_screenService_,y),lg(q,y),q.JSC$17422_lastLoungeTokenRefreshError_="unknown",GoB(q,u)):(_.cl(Error("Ok`"+JSON.stringify(w))),q.onSessionStopped())},5)},tLj=function(q,w){_.Nu(q.sessionStatusTimeoutKey_);
q.sessionStatusTimeoutKey_=0;if(w)q.config_.enableCastLoungeToken&&w.loungeToken?w.deviceId?q.screen_&&q.screen_.uuid==w.deviceId||(w.loungeTokenRefreshIntervalMs?sBj(q,{name:q.receiver_.friendlyName,screenId:w.screenId,loungeToken:w.loungeToken,dialId:w.deviceId,screenIdType:"shortLived"},w.loungeTokenRefreshIntervalMs):(_.cl(Error("Qk`"+JSON.stringify(w))),HGh(q,w.screenId))):(_.cl(Error("Pk`"+JSON.stringify(w))),HGh(q,w.screenId)):HGh(q,w.screenId);else q.onSessionStopped(Error("Nk"))},nPq=function(q,
w){_.Nu(q.onLoungeTokenTimeoutKey_);
q.onLoungeTokenTimeoutKey_=0;var u=null;if(w)if(w.loungeToken){var y;((y=q.screen_)==null?void 0:y.token)==w.loungeToken&&(u="staleLoungeToken")}else u="missingLoungeToken";else u="noLoungeTokenResponse";u?(q.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(w)+", error: "+u)),q.JSC$17422_lastLoungeTokenRefreshError_=u,GoB(q,3E4)):(koc(q,w.loungeToken),q.JSC$17422_isInitLoungeToken_=!1,q.JSC$17422_lastLoungeTokenRefreshError_="unknown",GoB(q,w.loungeTokenRefreshIntervalMs))};
MW.prototype.getScreen_=function(q,w,u,y){_.Nu(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;xsm(this.JSC$17417_screenService_,this.receiver_.label,q,this.receiver_.friendlyName,(0,_.fY)(function(e){e?w(e):y>=0?(L5(this,"Screen "+q+" appears to be offline. "+y+" retries left."),this.getScreenTimeoutKey_=_.WG((0,_.fY)(this.getScreen_,this,q,w,u,y-1),300)):u(Error("Rk"))},this),u)};
var WZB=function(q,w,u,y){_.Nu(q.JSC$17422_checkScreenAvailabilityTimeoutKey_);q.JSC$17422_checkScreenAvailabilityTimeoutKey_=0;wi6(q.JSC$17417_screenService_,w,function(e){e||y<0?u(e):q.JSC$17422_checkScreenAvailabilityTimeoutKey_=_.WG(function(){WZB(q,w,u,y-1)},300)})};
MW.prototype.JSC$17419_getCastSession=function(){return this.JSC$17422_session_};
MW.prototype.JSC$17424_onSessionUpdate_=function(q){this.isDisposed()||q||(L5(this,"Cast session died."),this.onSessionStopped())};
var PkK=function(q){_.Nu(q.getScreenTimeoutKey_);q.getScreenTimeoutKey_=0;_.Nu(q.JSC$17422_checkScreenAvailabilityTimeoutKey_);q.JSC$17422_checkScreenAvailabilityTimeoutKey_=0;_.Nu(q.sessionStatusTimeoutKey_);q.sessionStatusTimeoutKey_=0;_.Nu(q.onLoungeTokenTimeoutKey_);q.onLoungeTokenTimeoutKey_=0;_.Nu(q.getLoungeTokenTimeoutKey_);q.getLoungeTokenTimeoutKey_=0};var K5=function(q,w,u,y){RW.call(this,q,w,"DialSession");this.config_=y;this.JSC$17426_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17426_theme_=u;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17426_deferredLaunchDeadlineTimer_=NaN;this.JSC$17426_boundSessionUpdate_=(0,_.fY)(this.JSC$17428_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17426_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17426_isInitLoungeToken_=!1;this.JSC$17426_lastLoungeTokenRefreshError_="unknown"};
_.O(K5,RW);K5.prototype.setCastSession=function(q){this.JSC$17426_session_=q;this.JSC$17426_session_.addUpdateListener(this.JSC$17426_boundSessionUpdate_)};
K5.prototype.launchWithParams=function(q){this.connectData_=q;this.deferredLaunch_()};
K5.prototype.stop=function(){Nfx(this);if(this.JSC$17426_session_)this.JSC$17426_session_.stop((0,_.fY)(this.onSessionStopped,this,null),(0,_.fY)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
K5.prototype.disposeInternal=function(){Nfx(this);this.JSC$17426_session_&&this.JSC$17426_session_.removeUpdateListener(this.JSC$17426_boundSessionUpdate_);this.JSC$17426_session_=null;RW.prototype.disposeInternal.call(this)};
var QBc=function(q){var w;return!!(q.config_.enableDialLoungeToken&&((w=q.JSC$17426_session_)==null?0:w.getDialAppInfo))},IEB=function(q){q.cancelPolling_=q.JSC$17417_screenService_.JSC$17415_getScreenByPollingPairingCode(q.reversePairingCode_,q.receiver_.label,q.receiver_.friendlyName,QBc(q),function(w,u){q.cancelPolling_=function(){};
q.JSC$17426_isInitLoungeToken_=!0;lg(q,w);w.idType=="shortLived"&&u>0&&BN(q,u)},function(w){q.cancelPolling_=function(){};
q.onSessionStopped(w)})};
K5.prototype.JSC$17428_onSessionUpdate_=function(q){this.isDisposed()||q||(L5(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var iGH=function(q){var w={};w.pairingCode=q.reversePairingCode_;w.theme=q.JSC$17426_theme_;aOa()&&(w.env_useStageMdx=1);return _.i4(w)},rOm=function(q){return new Promise(function(w){q.reversePairingCode_=IOA();
if(q.connectData_){var u=new chrome.cast.DialLaunchResponse(!0,iGH(q));w(u);IEB(q)}else q.deferredLaunch_=function(){_.Nu(q.JSC$17426_deferredLaunchDeadlineTimer_);q.deferredLaunch_=function(){};
q.JSC$17426_deferredLaunchDeadlineTimer_=NaN;var y=new chrome.cast.DialLaunchResponse(!0,iGH(q));w(y);IEB(q)},q.JSC$17426_deferredLaunchDeadlineTimer_=_.WG(function(){q.deferredLaunch_()},100)})},TfK=function(q,w,u){q.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(w));
var y=new mQ(w);return(new Promise(function(e){UYm(q,y,function(t){t?(q.JSC$17426_isInitLoungeToken_=!0,jO(q.JSC$17417_screenService_,y),lg(q,y),BN(q,u)):_.cl(Error("Tk`"+JSON.stringify(w)));e(t)},5)})).then(function(e){return e?new chrome.cast.DialLaunchResponse(!1):rOm(q)})},Ckj=function(q,w){var u=q.launchData_.receiver.label,y=q.receiver_.friendlyName;
return(new Promise(function(e){xsm(q.JSC$17417_screenService_,u,w,y,function(t){t&&t.token&&lg(q,t);e(t)},function(t){L5(q,"Failed to get DIAL screen: "+t);
e(null)})})).then(function(e){return e&&e.token?new chrome.cast.DialLaunchResponse(!1):rOm(q)})},UYm=function(q,w,u,y){_.Nu(q.JSC$17426_checkScreenAvailabilityTimeoutKey_);
q.JSC$17426_checkScreenAvailabilityTimeoutKey_=0;wi6(q.JSC$17417_screenService_,w,function(e){e||y<0?u(e):q.JSC$17426_checkScreenAvailabilityTimeoutKey_=_.WG(function(){UYm(q,w,u,y-1)},300)})},BN=function(q,w){q.info("getDialAppInfoWithTimeout_ "+w);
QBc(q)&&(_.Nu(q.getDialAppInfoTimeoutKey_),q.getDialAppInfoTimeoutKey_=0,w==0?dYB(q):q.getDialAppInfoTimeoutKey_=_.WG(function(){dYB(q)},w))},dYB=function(q){QBc(q)&&q.JSC$17426_session_.getDialAppInfo(function(w){q.info("getDialAppInfo dialLaunchData: "+JSON.stringify(w));
w=w.extraData||{};var u=null;if(w.loungeToken){var y;((y=q.screen_)==null?void 0:y.token)==w.loungeToken&&(u="staleLoungeToken")}else u="missingLoungeToken";u?(q.JSC$17426_lastLoungeTokenRefreshError_=u,BN(q,3E4)):(q.JSC$17426_isInitLoungeToken_=!1,q.JSC$17426_lastLoungeTokenRefreshError_="unknown",koc(q,w.loungeToken),BN(q,w.loungeTokenRefreshIntervalMs))},function(w){q.info("getDialAppInfo error: "+w);
q.JSC$17426_lastLoungeTokenRefreshError_="noLoungeTokenResponse";BN(q,3E4)})},Nfx=function(q){_.Nu(q.JSC$17426_checkScreenAvailabilityTimeoutKey_);
q.JSC$17426_checkScreenAvailabilityTimeoutKey_=0;_.Nu(q.getDialAppInfoTimeoutKey_);q.getDialAppInfoTimeoutKey_=0;q.cancelPolling_();q.cancelPolling_=function(){};
_.Nu(q.JSC$17426_deferredLaunchDeadlineTimer_)};var xl=function(q,w){RW.call(this,q,w,"ManualSession");this.JSC$17430_deferredLaunchDeadlineTimer_=_.WG((0,_.fY)(this.launchWithParams,this,null),150)};
_.O(xl,RW);xl.prototype.stop=function(){this.onSessionStopped()};
xl.prototype.setCastSession=function(){};
xl.prototype.launchWithParams=function(){_.Nu(this.JSC$17430_deferredLaunchDeadlineTimer_);this.JSC$17430_deferredLaunchDeadlineTimer_=NaN;var q=Ju(this.JSC$17417_screenService_.getScreens(),this.receiver_.label);if(q)lg(this,q);else this.onSessionStopped(Error("Uk"))};
xl.prototype.disposeInternal=function(){_.Nu(this.JSC$17430_deferredLaunchDeadlineTimer_);this.JSC$17430_deferredLaunchDeadlineTimer_=NaN;RW.prototype.disposeInternal.call(this)};var jI=function(q,w){_.L2.call(this);this.config_=w;this.JSC$17433_screenService_=q;this.JSC$17433_appId_=w.appId||"233637DE";this.JSC$17433_theme_=w.theme||"cl";this.disableDial_=w.disableCastApi||!1;this.forceMirroring_=w.forceMirroring||!1;this.JSC$17433_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.fY)(this.onReceiverAction_,this)};
_.O(jI,_.L2);
jI.prototype.init=function(q,w){chrome.cast.timeout.requestSession=3E4;var u=new chrome.cast.SessionRequest(this.JSC$17433_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.T("desktop_enable_cast_connect")&&(u.androidReceiverCompatible=!0);this.disableDial_||(u.dialRequest=new chrome.cast.DialRequest("YouTube"));var y=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;q=q||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var e=(0,_.fY)(this.onReceiverUpdated_,
this);u=new chrome.cast.ApiConfig(u,(0,_.fY)(this.onSessionEstablished_,this),e,y,q);u.customDialLaunchCallback=(0,_.fY)(this.onDialLaunchRequested_,this);chrome.cast.initialize(u,(0,_.fY)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),g$T(),this.JSC$17433_screenService_.subscribe("onlineScreenChange",(0,_.fY)(this.JSC$17435_onScreenChange_,this)),this.customReceivers_=OGj(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.fY)(function(t){this.warn_("Failed to set initial custom receivers: "+(0,_.dD)(t))},this)),this.publish("yt-remote-cast2-availability-change",qm(this)),w(!0))},this),(0,_.fY)(function(t){this.warn_("Failed to initialize API: "+(0,_.dD)(t));
w(!1)},this))};
jI.prototype.setConnectedScreenStatus=function(q,w){wl("Setting connected screen ID: "+q+" -> "+w);if(this.JSC$17433_session_){var u=this.JSC$17433_session_.screen_;if(!q||u&&u.id!=q)wl("Unsetting old screen status: "+this.JSC$17433_session_.receiver_.friendlyName),uN(this,null)}if(q&&w){if(!this.JSC$17433_session_){q=Ju(this.JSC$17433_screenService_.getScreens(),q);if(!q){wl("setConnectedScreenStatus: Unknown screen.");return}if(q.idType=="shortLived"){wl("setConnectedScreenStatus: Screen with id type to be short lived.");
return}u=oPH(this,q);u||(wl("setConnectedScreenStatus: Connected receiver not custom..."),u=new chrome.cast.Receiver(q.uuid?q.uuid:q.id,q.name),u.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(u),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.fY)(function(y){this.warn_("Failed to set initial custom receivers: "+(0,_.dD)(y))},this)));
wl("setConnectedScreenStatus: new active receiver: "+u.friendlyName);uN(this,new xl(this.JSC$17433_screenService_,u),!0)}this.JSC$17433_session_.setDisplayStatus(w)}else wl("setConnectedScreenStatus: no screen.")};
var oPH=function(q,w){return w?_.v4(q.customReceivers_,function(u){return Au(w,u.label)},q):null};
jI.prototype.setLaunchParams=function(q){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17433_session_?this.JSC$17433_session_.launchWithParams(q):this.warn_("Setting connection data without a session")};
jI.prototype.JSC$17435_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17433_session_?(this.JSC$17433_session_.stop(),uN(this,null)):wl("Stopping non-existing session")};
jI.prototype.requestSession=function(){chrome.cast.requestSession((0,_.fY)(this.onSessionEstablished_,this),(0,_.fY)(this.onSessionRequestFailed_,this))};
jI.prototype.disposeInternal=function(){this.JSC$17433_screenService_.unsubscribe("onlineScreenChange",(0,_.fY)(this.JSC$17435_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.MM(_.hP("yt.mdx.remote.debug.handlers_")||[],v$m);_.BX(this.JSC$17433_session_);_.L2.prototype.disposeInternal.call(this)};
var wl=function(q){p_("Controller",q)};
jI.prototype.warn_=function(q){p_("Controller",q)};
var v$m=function(q){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(q)},qm=function(q){return q.hasCastReceiver_||!!q.customReceivers_.length||!!q.JSC$17433_session_},uN=function(q,w,u){w!=q.JSC$17433_session_&&(_.BX(q.JSC$17433_session_),(q.JSC$17433_session_=w)?(u?q.publish("yt-remote-cast2-receiver-resumed",w.receiver_):q.publish("yt-remote-cast2-receiver-selected",w.receiver_),w.subscribe("sessionScreen",(0,_.fY)(q.onSessionScreen_,q,w)),w.subscribe("sessionFailed",
function(){return VLB(q,w)}),w.screen_?q.publish("yt-remote-cast2-session-change",w.screen_):u&&q.JSC$17433_session_.launchWithParams(null)):q.publish("yt-remote-cast2-session-change",null))},VLB=function(q,w){q.JSC$17433_session_==w&&q.publish("yt-remote-cast2-session-failed")};
_.k=jI.prototype;_.k.onSessionScreen_=function(q,w){this.JSC$17433_session_==q&&(w||uN(this,null),this.publish("yt-remote-cast2-session-change",w))};
_.k.onReceiverAction_=function(q,w){if(!this.isDisposed())if(q)switch(q.friendlyName=chrome.cast.unescape(q.friendlyName),wl("onReceiverAction_ "+q.label+" / "+q.friendlyName+"-- "+w),w){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17433_session_)if(this.JSC$17433_session_.receiver_.label!=q.label)wl("onReceiverAction_: Stopping active receiver: "+this.JSC$17433_session_.receiver_.friendlyName),this.JSC$17433_session_.stop();else{wl("onReceiverAction_: Casting to active receiver.");this.JSC$17433_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17433_session_.screen_);break}switch(q.receiverType){case chrome.cast.ReceiverType.CUSTOM:uN(this,new xl(this.JSC$17433_screenService_,q));break;case chrome.cast.ReceiverType.DIAL:uN(this,new K5(this.JSC$17433_screenService_,q,this.JSC$17433_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:uN(this,new MW(this.JSC$17433_screenService_,q,this.config_));break;default:this.warn_("Unknown receiver type: "+q.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17433_session_&&
this.JSC$17433_session_.receiver_.label==q.label?this.JSC$17433_session_.stop():this.warn_("Stopping receiver w/o session: "+q.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.k.onDialLaunchRequested_=function(q){if(this.isDisposed())return Promise.reject(Error("Vk"));var w=q.receiver;w.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+w.friendlyName),w.receiverType=chrome.cast.ReceiverType.DIAL);var u=this.JSC$17433_session_?this.JSC$17433_session_.receiver_:null;if(!u||u.label!=w.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+w.friendlyName),Promise.reject(Error("Wk"));if(u&&u.label==w.label&&u.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17433_session_.screen_)return wl("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17433_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+u.receiverType+'" to "dial" for '+w.friendlyName);uN(this,new K5(this.JSC$17433_screenService_,w,this.JSC$17433_theme_,this.config_))}w=this.JSC$17433_session_;w.launchData_=q;w.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(q=w.launchData_.extraData||{},u=q.screenId||null,QBc(w)&&q.loungeToken?q.loungeTokenRefreshIntervalMs?q=TfK(w,{name:w.receiver_.friendlyName,screenId:q.screenId,loungeToken:q.loungeToken,dialId:w.launchData_.receiver.label,screenIdType:"shortLived"},q.loungeTokenRefreshIntervalMs):(_.cl(Error("Sk`"+JSON.stringify(q))),q=Ckj(w,u)):q=Ckj(w,u)):q=rOm(w);return q};
_.k.onSessionEstablished_=function(q){var w=this;if(!this.isDisposed()&&!this.forceMirroring_){wl("New cast session ID: "+q.sessionId);var u=q.receiver;if(u.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17433_session_)if(u.receiverType==chrome.cast.ReceiverType.CAST)wl("Got resumed cast session before resumed mdx connection."),u.friendlyName=chrome.cast.unescape(u.friendlyName),uN(this,new MW(this.JSC$17433_screenService_,u,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var y=this.JSC$17433_session_.receiver_,e=Ju(this.JSC$17433_screenService_.getScreens(),y.label);e&&Au(e,u.label)&&y.receiverType!=chrome.cast.ReceiverType.CAST&&u.receiverType==chrome.cast.ReceiverType.CAST&&(wl("onSessionEstablished_: manual to cast session change "+u.friendlyName),_.BX(this.JSC$17433_session_),this.JSC$17433_session_=new MW(this.JSC$17433_screenService_,u,this.config_),this.JSC$17433_session_.subscribe("sessionScreen",(0,_.fY)(this.onSessionScreen_,this,this.JSC$17433_session_)),
this.JSC$17433_session_.subscribe("sessionFailed",function(){return VLB(w,w.JSC$17433_session_)}),this.JSC$17433_session_.launchWithParams(null));
this.JSC$17433_session_.setCastSession(q)}}};
_.k.JSC$17435_getCastSession=function(){return this.JSC$17433_session_?this.JSC$17433_session_.JSC$17419_getCastSession():null};
_.k.onSessionRequestFailed_=function(q){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.dD)(q)),q.code!=chrome.cast.ErrorCode.CANCEL&&uN(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.k.onReceiverUpdated_=function(q){wl("Receiver availability updated: "+q);if(!this.isDisposed()){var w=qm(this);this.hasCastReceiver_=q==chrome.cast.ReceiverAvailability.AVAILABLE;qm(this)!=w&&this.publish("yt-remote-cast2-availability-change",qm(this))}};
var OGj=function(q){var w=q.JSC$17433_screenService_.JSC$17415_getOnlineScreens(),u=q.JSC$17433_session_&&q.JSC$17433_session_.receiver_;q=_.or(w,function(y){u&&Au(y,u.label)&&(u=null);var e=y.uuid?y.uuid:y.id,t=oPH(this,y);t?(t.label=e,t.friendlyName=y.name):(t=new chrome.cast.Receiver(e,y.name),t.receiverType=chrome.cast.ReceiverType.CUSTOM);return t},q);
u&&(u.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(u=new chrome.cast.Receiver(u.label,u.friendlyName),u.receiverType=chrome.cast.ReceiverType.CUSTOM),q.push(u));return q};
jI.prototype.JSC$17435_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=OGj(this),wl("Updating custom receivers: "+(0,_.dD)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.fY)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",qm(this)))};
jI.prototype.setLaunchParams=jI.prototype.setLaunchParams;jI.prototype.setConnectedScreenStatus=jI.prototype.setConnectedScreenStatus;jI.prototype.stopSession=jI.prototype.JSC$17435_stopSession;jI.prototype.getCastSession=jI.prototype.JSC$17435_getCastSession;jI.prototype.requestSession=jI.prototype.requestSession;jI.prototype.init=jI.prototype.init;jI.prototype.dispose=jI.prototype.dispose;var nGT=[];var fET=function(q){q.audioTrackId=null;q.trackData=null;q.playerState=-1;q.hasPrevious=!1;q.hasNext=!1;q.playerTime_=0;q.playerTimeAt_=_.qG();q.seekableStart_=0;q.seekableEnd_=0;q.duration_=0;q.loadedTime=0;q.liveIngestionTime_=NaN;q.isLive_=!1};
_.k=lT.prototype;
_.k.reset=function(q){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;q&&(this.index=q.index,this.listId=q.listId,this.videoId=q.videoId,this.playerState=q.playerState,this.volume=q.volume,this.muted=q.muted,this.audioTrackId=q.audioTrackId,this.trackData=q.trackData,this.hasPrevious=q.hasPrevious,this.hasNext=q.hasNext,this.playerTime_=q.playerTime,this.playerTimeAt_=q.playerTimeAt,this.seekableStart_=q.seekableStart,this.seekableEnd_=q.seekableEnd,this.duration_=q.duration,this.loadedTime=
q.loadedTime,this.liveIngestionTime_=q.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.k.stopPlayer=function(){this.index=-1;this.videoId="";fET(this)};
_.k.isPlaying=function(){return this.playerState==1};
_.k.isBuffering=function(){return this.playerState==3};
_.k.isAdPlaying=function(){return this.playerState==1081};
var ex=function(q,w){q.playerTime_=w;q.playerTimeAt_=_.qG()},mYA=function(q){switch(q.playerState){case 1:case 1081:return(_.qG()-q.playerTimeAt_)/1E3+q.playerTime_;
case -1E3:return 0}return q.playerTime_};
lT.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.qG()-this.playerTimeAt_)/1E3:0):this.duration_};
var AOB=function(q,w,u){var y=q.videoId;q.videoId=w;q.index=u;w!=y&&fET(q)},JOA=function(q){var w={};
w.index=q.index;w.listId=q.listId;w.videoId=q.videoId;w.playerState=q.playerState;w.volume=q.volume;w.muted=q.muted;w.audioTrackId=q.audioTrackId;w.trackData=_.db.unsafeClone(q.trackData);w.hasPrevious=q.hasPrevious;w.hasNext=q.hasNext;w.playerTime=q.playerTime_;w.playerTimeAt=q.playerTimeAt_;w.seekableStart=q.seekableStart_;w.seekableEnd=q.seekableEnd_;w.duration=q.duration_;w.loadedTime=q.loadedTime;w.liveIngestionTime=q.liveIngestionTime_;return w};
lT.prototype.clone=function(){return new lT(JOA(this))};var k4=function(q,w){_.L2.call(this);var u=this;this.state_=0;this.connection_=q;this.contextSubscriptions_=[];this.actionQueue_=new X0h;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.fY)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.fY)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.fY)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.fY)(this.onCloudviewAvailabilityChange_,this);var y=0;q?(y=q.getProxyState(),
y!=3&&(q.subscribe("proxyStateChange",this.setState_,this),zI6(this))):y=3;y!=0&&(w?this.setState_(y):_.WG(function(){u.setState_(y)},0));
(q=N14())&&aEA(this,q);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.O(k4,_.L2);k4.prototype.getState=function(){return this.state_};
k4.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
k4.prototype.reconnect=function(){this.connection_.reconnect()};
var tS=function(q){return new lT(q.connection_.getPlayerContextData())};
_.k=k4.prototype;_.k.play=function(){Pp(this)?(this.castMedia_?this.castMedia_.play(null,_.sb,DYc(this,"play")):X_(this,"play"),ZGV(this,1,mYA(tS(this))),this.publish("remotePlayerChange")):F_(this,this.play)};
_.k.pause=function(){Pp(this)?(this.castMedia_?this.castMedia_.pause(null,_.sb,DYc(this,"pause")):X_(this,"pause"),ZGV(this,2,mYA(tS(this))),this.publish("remotePlayerChange")):F_(this,this.pause)};
_.k.seekTo=function(q){if(Pp(this)){if(this.castMedia_){var w=tS(this),u=new chrome.cast.media.SeekRequest;u.currentTime=q;w.isPlaying()||w.isBuffering()?u.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:u.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(u,_.sb,DYc(this,"seekTo",{newTime:q}))}else X_(this,"seekTo",{newTime:q});ZGV(this,3,q);this.publish("remotePlayerChange")}else F_(this,_.rk(this.seekTo,q))};
_.k.stop=function(){if(Pp(this)){this.castMedia_?this.castMedia_.stop(null,_.sb,DYc(this,"stopVideo")):X_(this,"stopVideo");var q=tS(this);q.stopPlayer();G8(this,q);this.publish("remotePlayerChange")}else F_(this,this.stop)};
_.k.setVolume=function(q,w){if(Pp(this)){var u=tS(this);if(this.castSession_){if(u.volume!=q){var y=Math.round(q)/100;this.castSession_.setReceiverVolumeLevel(y,(0,_.fY)(function(){$b("set receiver volume: "+y)},this),(0,_.fY)(function(){this.warn_("failed to set receiver volume.")},this))}u.muted!=w&&this.castSession_.setReceiverMuted(w,(0,_.fY)(function(){$b("set receiver muted: "+w)},this),(0,_.fY)(function(){this.warn_("failed to set receiver muted.")},this))}else{var e={volume:q,
muted:w};u.volume!=-1&&(e.delta=q-u.volume);X_(this,"setVolume",e)}u.muted=w;u.volume=q;G8(this,u)}else F_(this,_.rk(this.setVolume,q,w))};
_.k.setAudioTrack=function(q,w){Pp(this)?(w=w.getLanguageInfo().getId(),X_(this,"setAudioTrack",{videoId:q,audioTrackId:w}),q=tS(this),q.audioTrackId=w,G8(this,q)):F_(this,_.rk(this.setAudioTrack,q,w))};
_.k.addVideo=function(q){Pp(this)?X_(this,"addVideo",{videoId:q}):F_(this,_.rk(this.addVideo,q))};
_.k.addPlaylist=function(q){Pp(this)?X_(this,"addVideos",{listId:q}):F_(this,_.rk(this.addPlaylist,q))};
_.k.addVideos=function(q){q.length==0?this.warn_("Ignore add videos request due to empty list"):Pp(this)?X_(this,"addVideos",{videoIds:q.join(",")}):F_(this,_.rk(this.addVideos,q))};
_.k.JSC$17445_removeVideo=function(q){Pp(this)?X_(this,"removeVideo",{videoId:q}):F_(this,_.rk(this.JSC$17445_removeVideo,q))};
_.k.JSC$17445_insertVideo=function(q){Pp(this)?X_(this,"insertVideo",{videoId:q}):F_(this,_.rk(this.JSC$17445_insertVideo,q))};
_.k.playVideo=function(q,w,u,y,e,t,X){y=y===void 0?null:y;e=e===void 0?null:e;t=t===void 0?null:t;X=X===void 0?null:X;var G=tS(this),n={videoId:q};u!==void 0&&(n.currentIndex=u);AOB(G,q,u||0);w!==void 0&&(ex(G,w),n.currentTime=w);y&&(n.listId=y);e&&(n.playerParams=e);t&&(n.clickTrackingParams=t);X&&(n.locationInfo=(0,_.dD)(X));X_(this,"setPlaylist",n);y||G8(this,G)};
_.k.nextVideo=function(q,w){if(Pp(this)){if(q&&w){var u=tS(this);AOB(u,q,w);G8(this,u)}X_(this,"next")}else F_(this,_.rk(this.nextVideo,q,w))};
_.k.clearPlaylist=function(){if(Pp(this)){X_(this,"clearPlaylist");var q=tS(this);q.reset();G8(this,q);this.publish("remotePlayerChange")}else F_(this,this.clearPlaylist)};
_.k.dispose=function(){if(this.state_!=3){var q=this.state_;this.state_=3;this.publish("proxyStateChange",q,this.state_)}_.L2.prototype.dispose.call(this)};
_.k.disposeInternal=function(){piV(this);this.connection_=null;this.actionQueue_.clear();aEA(this,null);_.L2.prototype.disposeInternal.call(this)};
var zI6=function(q){_.L4("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(w){this.contextSubscriptions_.push(this.connection_.subscribe(w,_.rk(this.onProxyEvent_,w),this))},q)},piV=function(q){_.L4(q.contextSubscriptions_,function(w){this.connection_.unsubscribeByKey(w)},q);
q.contextSubscriptions_.length=0},Pp=function(q){return q.getState()==1},F_=function(q,w){q.actionQueue_.getCount()<50&&q.actionQueue_.enqueue(w)},ZGV=function(q,w,u){var y=tS(q);
ex(y,u);y.playerState!=-1E3&&(y.playerState=w);G8(q,y)},X_=function(q,w,u){q.connection_.sendMessage(w,u)},G8=function(q,w){piV(q);
q.connection_.setPlayerContextData(JOA(w));zI6(q)};
k4.prototype.setState_=function(q){if((q!=this.state_||q==2)&&this.state_!=3&&q!=0){var w=this.state_;this.state_=q;this.publish("proxyStateChange",w,q);if(q==1)for(;!this.actionQueue_.isEmpty();)q=this.actionQueue_,Knh(q),q.front_.pop().apply(this);else q==3&&this.dispose()}};
k4.prototype.onProxyEvent_=function(q,w){this.publish(q,w)};
var aEA=function(q,w){q.castSession_&&(q.castSession_.removeUpdateListener(q.boundCastStatusListener_),q.castSession_.removeMediaListener(q.boundCastMediaListener_),q.onCastMediaChange_(null));q.castSession_=w;if(q.castSession_&&($b("Setting cast session: "+q.castSession_.sessionId),q.castSession_.addUpdateListener(q.boundCastStatusListener_),q.castSession_.addMediaListener(q.boundCastMediaListener_),q.castSession_.media.length))q.onCastMediaChange_(q.castSession_.media[0])};
k4.prototype.onCastStatusUpdate_=function(q){if(!q)this.onCastMediaChange_(null),aEA(this,null);else if(this.castSession_.receiver.volume){q=this.castSession_.receiver.volume;var w=tS(this),u=Math.round(100*q.level||0);if(w.volume!=u||w.muted!=q.muted)$b("Cast volume update: "+q.level+(q.muted?" muted":"")),w.volume=u,w.muted=!!q.muted,G8(this,w)}};
k4.prototype.onCastMediaChange_=function(q){$b("Cast media: "+!!q);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=q)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),$YH(this),this.publish("remotePlayerChange")};
var $YH=function(q){var w=q.castMedia_.media,u=q.castMedia_.customData;if(w&&u){var y=tS(q);w.contentId!=y.videoId&&$b("Cast changing video to: "+w.contentId);y.videoId=w.contentId;y.playerState=u.playerState;ex(y,q.castMedia_.getEstimatedTime());G8(q,y)}else $b("No cast media video. Ignoring state update.")};
k4.prototype.onCastMediaUpdate_=function(q){if(q)$YH(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
k4.prototype.onCloudviewAvailabilityChange_=function(){var q=N14();q&&aEA(this,q)};
k4.prototype.warn_=function(q){p_("CP",q)};
var DYc=function(q,w,u){return(0,_.fY)(function(y){this.warn_("Failed to "+w+" with cast v2 channel. Error code: "+y.code);y.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+w+" using MDx browser channel."),X_(this,w,u))},q)};var Hp=function(q,w,u,y){y=y===void 0?!1:y;_.L2.call(this);var e=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$17452_http_=q;this.enableConnectWithInitialState_=y;this.listeners_.push(_.ew(window,"beforeunload",function(){e.JSC$17455_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new lT;this.currentScreenId_=w.id;this.currentScreenIdType_=w.idType;this.channelService=$bV(this.JSC$17452_http_,u,this.JSC$17455_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){vPH(e)});
this.channelService.listen("channelClosed",function(){nE("Channel closed");isNaN(e.connectTimerId_)?ze(!0):ze();e.dispose()});
this.channelService.listen("channelError",function(t){ze();isNaN(e.getReconnectTimeout_())?(t==1&&e.currentScreenIdType_=="shortLived"&&e.publish("browserChannelAuthError",t),nE("Channel error: "+t+" without reconnection"),e.dispose()):(e.reconnecting_=!0,nE("Channel error: "+t+" with reconnection in "+e.getReconnectTimeout_()+" ms"),bGK(e,2))});
this.channelService.listen("channelMessage",function(t){Yum(e,t)});
this.channelService.setLoungeToken(w.token);this.subscribe("remoteQueueChange",function(){var t=e.playerContext_.videoId;CVV()&&_.tm("yt-remote-session-video-id",t)})};
_.O(Hp,_.L2);
Hp.prototype.connect=function(q,w){if(w){var u=w.listId,y=w.videoId,e=w.videoIds,t=w.playerParams,X=w.clickTrackingParams,G=w.index,n={videoId:y},N=w.currentTime,Q=w.locationInfo;w=w.loopMode;N!==void 0&&(n.currentTime=N<=5?0:N);t&&(n.playerParams=t);Q&&(n.locationInfo=Q);X&&(n.clickTrackingParams=X);u&&(n.listId=u);e&&e.length>0&&(n.videoIds=e.join(","));G!==void 0&&(n.currentIndex=G);this.enableConnectWithInitialState_&&(n.loopMode=w||"LOOP_MODE_OFF");u&&(this.playerContext_.listId=u);this.playerContext_.videoId=
y;this.playerContext_.index=G||0;this.playerContext_.state=3;ex(this.playerContext_,N);this.autoplayMode_="UNSUPPORTED";u=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";nE("Connecting with "+u+" and params: "+(0,_.dD)(n));this.channelService.connect({method:u,params:(0,_.dD)(n)},q,fO6())}else nE("Connecting without params"),this.channelService.connect({},q,fO6());gPj(this)};
Hp.prototype.setLoungeToken=function(q){this.channelService.setLoungeToken(q)};
Hp.prototype.dispose=function(){this.isDisposed()||(_.wr("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),bGK(this,3));_.L2.prototype.dispose.call(this)};
Hp.prototype.disposeInternal=function(){EPK(this);RIB(this);cOA(this);_.Nu(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.Nu(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.bpf(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.L2.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var Suj=function(q){return _.v4(q.connectedDevices_,function(w){return w.type=="LOUNGE_SCREEN"})},nE=function(q){p_("conn",q)},bGK=function(q,w){q.publish("proxyStateChange",w)},gPj=function(q){q.connectTimerId_=_.WG(function(){nE("Connecting timeout");
q.JSC$17455_disconnect_(1)},2E4)},EPK=function(q){_.Nu(q.connectTimerId_);
q.connectTimerId_=NaN},cOA=function(q){_.Nu(q.reconnectedCheckScreenTimeout_);
q.reconnectedCheckScreenTimeout_=NaN},hIj=function(q){RIB(q);
q.playingSyncTimerId_=_.WG(function(){Wp(q,"getNowPlaying")},2E4)},RIB=function(q){_.Nu(q.playingSyncTimerId_);
q.playingSyncTimerId_=NaN},vPH=function(q){nE("Channel opened");
q.reconnecting_&&(q.reconnecting_=!1,cOA(q),q.reconnectedCheckScreenTimeout_=_.WG(function(){nE("Timing out waiting for a screen.");q.JSC$17455_disconnect_(1)},15E3))},lE4=function(q,w){var u=null;
if(w){var y=Suj(q);y&&(u={clientName:y.clientName,deviceMake:y.brand,deviceModel:y.model,osVersion:y.osVersion})}_.wr("yt.mdx.remote.remoteClient_",u);w&&(EPK(q),cOA(q));u=q.channelService.isChannelOpened()&&isNaN(q.connectTimerId_);w==u?w&&(bGK(q,1),Wp(q,"getSubtitlesTrack")):w?(q.getOtherConnectedRemoteId_()&&q.playerContext_.reset(),bGK(q,1),Wp(q,"getNowPlaying"),jBx(q)):q.JSC$17455_disconnect_(1)},LZ4=function(q,w){var u=w.params.videoId;
delete w.params.videoId;u==q.playerContext_.videoId&&(_.db.isEmpty(w.params)?q.playerContext_.trackData=null:q.playerContext_.trackData=w.params,q.publish("remotePlayerChange"))},ML4=function(q,w,u){var y=w.params.videoId||w.params.video_id,e=parseInt(w.params.currentIndex,10);
q.playerContext_.listId=w.params.listId||q.playerContext_.listId;AOB(q.playerContext_,y,e);q.publish("remoteQueueChange",u)},KZA=function(q,w){w.params=w.params||{};
ML4(q,w,"NOW_PLAYING_MAY_CHANGE");q.onStateChange_(w);q.publish("autoplayDismissed")};
Hp.prototype.onStateChange_=function(q){var w=parseInt(q.params.currentTime||q.params.current_time,10);ex(this.playerContext_,isNaN(w)?0:w);w=parseInt(q.params.state,10);w=isNaN(w)?-1:w;w==-1&&this.playerContext_.playerState==-1E3&&(w=-1E3);this.playerContext_.playerState=w;w=Number(q.params.loadedTime);this.playerContext_.loadedTime=isNaN(w)?0:w;w=Number(q.params.duration);this.playerContext_.duration_=isNaN(w)?0:w;w=this.playerContext_;var u=Number(q.params.liveIngestionTime);w.liveIngestionTime_=
u;w.isLive_=isNaN(u)?!1:!0;w=this.playerContext_;u=Number(q.params.seekableStartTime);q=Number(q.params.seekableEndTime);w.seekableStart_=isNaN(u)?0:u;w.seekableEnd_=isNaN(q)?0:q;this.playerContext_.playerState==1?hIj(this):RIB(this);this.publish("remotePlayerChange")};
Hp.prototype.onAdStateChange_=function(q){if(this.playerContext_.playerState!=-1E3){var w=1085;switch(parseInt(q.params.adState,10)){case 1:w=1081;break;case 2:w=1084;break;case 0:w=1083}this.playerContext_.playerState=w;q=parseInt(q.params.currentTime,10);ex(this.playerContext_,isNaN(q)?0:q);this.publish("remotePlayerChange")}};
var Bf6=function(q,w){var u=w.params.muted=="true";q.playerContext_.volume=parseInt(w.params.volume,10);q.playerContext_.muted=u;q.publish("remotePlayerChange")},xY4=function(q,w){q.autoplayVideoId_=w.params.videoId;
q.publish("nowAutoplaying",parseInt(w.params.timeout,10))},qe6=function(q,w){q.autoplayVideoId_=w.params.videoId||null;
q.publish("autoplayUpNext",q.autoplayVideoId_)},whq=function(q,w){q.autoplayMode_=w.params.autoplayMode;
q.publish("autoplayModeChange",q.autoplayMode_);q.autoplayMode_=="DISABLED"&&q.publish("autoplayDismissed")},ufB=function(q,w){var u=w.params.hasNext=="true";
q.playerContext_.hasPrevious=w.params.hasPrevious=="true";q.playerContext_.hasNext=u;q.publish("previousNextChange")};
Hp.prototype.isCapabilitySupportedOnConnectedDevices_=function(q){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var w=_.P(this.connectedDevices_),u=w.next();!u.done;u=w.next())if(!u.value.capabilities.has(q))return!1;return!0};
var Yum=function(q,w){w=w.message;w.params?nE("Received: action="+w.action+", params="+(0,_.dD)(w.params)):nE("Received: action="+w.action+" {}");switch(w.action){case "loungeStatus":w=(0,_.Jp)(w.params.devices);q.connectedDevices_=_.or(w,function(y){return new SO(y)});
w=!!_.v4(q.connectedDevices_,function(y){return y.type=="LOUNGE_SCREEN"});
lE4(q,w);w=q.isCapabilitySupportedOnConnectedDevices_("mlm");q.publish("multiStateLoopEnabled",w);break;case "loungeScreenDisconnected":pl6(q.connectedDevices_,function(y){return y.type=="LOUNGE_SCREEN"});
lE4(q,!1);break;case "remoteConnected":var u=new SO((0,_.Jp)(w.params.device));_.v4(q.connectedDevices_,function(y){return y.equals(u)})||_.hz(q.connectedDevices_,u);
break;case "remoteDisconnected":u=new SO((0,_.Jp)(w.params.device));pl6(q.connectedDevices_,function(y){return y.equals(u)});
break;case "gracefulDisconnect":break;case "playlistModified":ML4(q,w,"QUEUE_MODIFIED");break;case "nowPlaying":KZA(q,w);break;case "onStateChange":q.onStateChange_(w);break;case "onAdStateChange":q.onAdStateChange_(w);break;case "onVolumeChanged":Bf6(q,w);break;case "onSubtitlesTrackChanged":LZ4(q,w);break;case "nowAutoplaying":xY4(q,w);break;case "autoplayDismissed":q.publish("autoplayDismissed");break;case "autoplayUpNext":qe6(q,w);break;case "onAutoplayModeChanged":whq(q,w);break;case "onHasPreviousNextChanged":ufB(q,
w);break;case "requestAssistedSignIn":q.publish("assistedSignInRequested",w.params.authCode);break;case "onLoopModeChanged":q.publish("loopModeChange",w.params.loopMode);break;default:nE("Unrecognized action: "+w.action)}};
_.k=Hp.prototype;_.k.getProxyState_=function(){var q=3;this.isDisposed()||(q=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(q=1):q=2);return q};
_.k.JSC$17455_disconnect_=function(q){nE("Disconnecting with "+q);_.wr("yt.mdx.remote.remoteClient_",null);EPK(this);this.publish("beforeDisconnect",q);q==1&&ze();this.channelService.disconnect(q);this.dispose()};
_.k.getPlayerContextData_=function(){var q=this.playerContext_;this.clientVideoId_&&(q=this.playerContext_.clone(),AOB(q,this.clientVideoId_,q.index));return JOA(q)};
_.k.setPlayerContextData_=function(q){var w=this,u=new lT(q);u.videoId&&u.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=u.videoId,_.Nu(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.WG(function(){if(w.clientVideoId_){var e=w.clientVideoId_;w.clientVideoId_=null;w.playerContext_.videoId!=e&&Wp(w,"getNowPlaying")}},5E3));
var y=[];this.playerContext_.listId==u.listId&&this.playerContext_.videoId==u.videoId&&this.playerContext_.index==u.index||y.push("remoteQueueChange");this.playerContext_.playerState==u.playerState&&this.playerContext_.volume==u.volume&&this.playerContext_.muted==u.muted&&mYA(this.playerContext_)==mYA(u)&&(0,_.dD)(this.playerContext_.trackData)==(0,_.dD)(u.trackData)||y.push("remotePlayerChange");this.playerContext_.reset(q);_.L4(y,function(e){this.publish(e)},this)};
_.k.getOtherConnectedRemoteId_=function(){var q=this.channelService.getDeviceId(),w=_.v4(this.connectedDevices_,function(u){return u.type=="REMOTE_CONTROL"&&u.id!=q});
return w?w.id:""};
_.k.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.k.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.k.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.k.JSC$17455_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var jBx=function(q){_.Nu(q.idleDisconnectTimerId_);q.idleDisconnectTimerId_=_.WG(function(){q.JSC$17455_disconnect_(1)},864E5)},Wp=function(q,w,u){u?nE("Sending: action="+w+", params="+(0,_.dD)(u)):nE("Sending: action="+w);
q.channelService.sendMessage(w,u)};
Hp.prototype.sendMessageWithUserAction_=function(q,w){Wp(this,q,w);jBx(this)};
Hp.prototype.JSC$17455_getXsrfToken_=function(){var q=_.TQ.get("SAPISID","")||_.TQ.get("__Secure-1PAPISID",void 0)||"",w=_.TQ.get("__Secure-3PAPISID","")||"";if(!q&&!w)return"";q=_.wV(_.ON(q),2);w=_.wV(_.ON(w),2);return _.wV(_.ON(","+q+","+w),2)};
Hp.prototype.subscribe=Hp.prototype.subscribe;Hp.prototype.unsubscribeByKey=Hp.prototype.unsubscribeByKey;Hp.prototype.getProxyState=Hp.prototype.getProxyState_;Hp.prototype.disconnect=Hp.prototype.JSC$17455_disconnect_;Hp.prototype.getPlayerContextData=Hp.prototype.getPlayerContextData_;Hp.prototype.setPlayerContextData=Hp.prototype.setPlayerContextData_;Hp.prototype.getOtherConnectedRemoteId=Hp.prototype.getOtherConnectedRemoteId_;Hp.prototype.getReconnectTimeout=Hp.prototype.getReconnectTimeout_;
Hp.prototype.getAutoplayMode=Hp.prototype.getAutoplayMode_;Hp.prototype.getAutoplayVideoId=Hp.prototype.getAutoplayVideoId_;Hp.prototype.reconnect=Hp.prototype.JSC$17455_reconnect_;Hp.prototype.sendMessage=Hp.prototype.sendMessageWithUserAction_;Hp.prototype.getXsrfToken=Hp.prototype.JSC$17455_getXsrfToken_;Hp.prototype.isCapabilitySupportedOnConnectedDevices=Hp.prototype.isCapabilitySupportedOnConnectedDevices_;var ybA=function(q){bT.call(this,"ScreenServiceProxy");this.instance_=q;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.fY)(this.JSC$17458_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.fY)(this.onOnlineScreenChange_,this)))};
_.O(ybA,bT);_.k=ybA.prototype;_.k.getScreens=function(q){return this.instance_.$_gs(q)};
_.k.contains=function(q){return!!this.instance_.$_c(q)};
_.k.get=function(q){return this.instance_.$_g(q)};
_.k.start=function(){this.instance_.$_st()};
_.k.add=function(q,w,u){this.instance_.$_a(q,w,u)};
_.k.remove=function(q,w,u){this.instance_.$_r(q,w,u)};
_.k.updateName=function(q,w,u,y){this.instance_.$_un(q,w,u,y)};
_.k.disposeInternal=function(){for(var q=this.subscriptionKeys_.length,w=0;w<q;++w)this.instance_.$_ubk(this.subscriptionKeys_[w]);this.subscriptionKeys_.length=0;this.instance_=null;bT.prototype.disposeInternal.call(this)};
_.k.JSC$17458_onScreenChange_=function(){this.publish("screenChange")};
_.k.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
EH.prototype.$_st=EH.prototype.start;EH.prototype.$_gspc=EH.prototype.JSC$17415_getScreenByPairingCode;EH.prototype.$_gsppc=EH.prototype.JSC$17415_getScreenByPollingPairingCode;EH.prototype.$_c=EH.prototype.contains;EH.prototype.$_g=EH.prototype.get;EH.prototype.$_a=EH.prototype.add;EH.prototype.$_un=EH.prototype.updateName;EH.prototype.$_r=EH.prototype.remove;EH.prototype.$_gs=EH.prototype.getScreens;EH.prototype.$_gos=EH.prototype.JSC$17415_getOnlineScreens;EH.prototype.$_s=EH.prototype.subscribe;
EH.prototype.$_ubk=EH.prototype.unsubscribeByKey;var G5m=function(q){z$T();if(!aW||!aW.get("yt-remote-disable-remote-module-for-dev")){q=_.Et("MDX_CONFIG")||q;p6B();OJ6();sB||(sB=new f_(q?q.loungeApiHost:void 0),aOa()&&(sB.basePath="/api/loungedev"));Nm||(Nm=_.hP("yt.mdx.remote.deferredProxies_")||[],_.wr("yt.mdx.remote.deferredProxies_",Nm));e5K();var w=Qt();if(!w){var u=new EH(sB,q?q.disableAutomaticScreenCache||!1:!1);_.wr("yt.mdx.remote.screenService_",u);w=Qt();var y={};q&&(y={appId:q.appId,disableDial:q.disableDial,theme:q.theme,loadCastApiSetupScript:q.loadCastApiSetupScript,
disableCastApi:q.disableCastApi,enableDialLoungeToken:q.enableDialLoungeToken,enableCastLoungeToken:q.enableCastLoungeToken,forceMirroring:q.forceMirroring});_.wr("yt.mdx.remote.enableConnectWithInitialState_",q?q.enableConnectWithInitialState||!1:!1);FHA(u,function(t){t?Ib()&&IB6(Ib(),"YouTube TV"):u.subscribe("onlineScreenChange",function(){wW("yt-remote-receiver-availability-change")})},y)}if(q&&!_.hP("yt.mdx.remote.initialized_")){_.wr("yt.mdx.remote.initialized_",!0);
iN("Initializing: "+(0,_.dD)(q));rl.push(_.nn("yt-remote-cast2-api-ready",function(){wW("yt-remote-api-ready")}));
rl.push(_.nn("yt-remote-cast2-availability-change",function(){wW("yt-remote-receiver-availability-change")}));
rl.push(_.nn("yt-remote-cast2-receiver-selected",function(){k5V();wW("yt-remote-auto-connect","cast-selector-receiver")}));
rl.push(_.nn("yt-remote-cast2-receiver-resumed",function(){wW("yt-remote-receiver-resumed","cast-selector-receiver")}));
rl.push(_.nn("yt-remote-cast2-session-change",t$4));rl.push(_.nn("yt-remote-connection-change",function(t){t?IB6(Ib(),"YouTube TV"):PsB()||(IB6(null,null),sxc())}));
rl.push(_.nn("yt-remote-cast2-session-failed",function(){wW("yt-remote-connection-failed")}));
y=XhT();q.isAuto&&(y.id+="#dial");var e=q.capabilities||[];e.length>0&&(y.capabilities=e);y.name=q.device;y.app=q.app;(q=q.theme)&&(y.theme=q);iN(" -- with channel params: "+(0,_.dD)(y));y?(_.tm("yt-remote-session-app",y.app),_.tm("yt-remote-session-name",y.name)):(_.XS("yt-remote-session-app"),_.XS("yt-remote-session-name"));_.wr("yt.mdx.remote.channelParams_",y);w.start();Ib()||FEV()}}},HFV=function(){var q=Qt().instance_.$_gos();
var w=nua();w&&UB()&&(r2j(q,w)||q.push(w));return iJK(q)},WE6=function(){var q=HFV(),w=nua();
w||(w=PsB());return _.v4(q,function(u){return w&&Au(w,u.key)?!0:!1})},nua=function(){var q=Ib();
if(!q)return null;var w=Qt().getScreens();return Ju(w,q)},t$4=function(q){iN("remote.onCastSessionChange_: "+iNj(q));
if(q){var w=nua();w&&w.id==q.id?(IB6(w.id,"YouTube TV"),q.idType=="shortLived"&&(q=q.token)&&(w=UB())&&w.setLoungeToken(q)):(w&&s4h(),N6A(q,1))}else UB()&&s4h()},s4h=function(){QxB()?hu().stopSession():SI("stopSession called before API ready.");
var q=UB();q&&(q.disconnect(1),Q4c(null))},IUA=function(){var q=UB();
return q&&q.getProxyState()!=3?new k4(UB(),void 0):null},iN=function(q){p_("remote",q)},Qt=function(){if(!iFq){var q=_.hP("yt.mdx.remote.screenService_");
iFq=q?new ybA(q):null}return iFq},Ib=function(){return _.hP("yt.mdx.remote.currentScreenId_")},rb6=function(q){_.wr("yt.mdx.remote.currentScreenId_",q)},k5V=function(){_.wr("yt.mdx.remote.connectData_",null)},UB=function(){return _.hP("yt.mdx.remote.connection_")},Q4c=function(q){var w=UB();
k5V();q||rb6("");_.wr("yt.mdx.remote.connection_",q);Nm&&(_.L4(Nm,function(u){u(q)}),Nm.length=0);
w&&!q?wW("yt-remote-connection-change",!1):!w&&q&&wW("yt-remote-connection-change",!0)},PsB=function(){var q=CVV();
if(!q)return null;var w=Qt();if(!w)return null;w=w.getScreens();return Ju(w,q)},N6A=function(q,w){rb6(q.id);
q=new Hp(sB,q,XhT(),_.hP("yt.mdx.remote.enableConnectWithInitialState_")||!1);q.connect(w,_.hP("yt.mdx.remote.connectData_"));q.subscribe("beforeDisconnect",function(u){wW("yt-remote-before-disconnect",u)});
q.subscribe("beforeDispose",function(){UB()&&Q4c(null)});
q.subscribe("browserChannelAuthError",function(){var u=nua();u&&u.idType=="shortLived"&&(QxB()?hu().handleBrowserChannelAuthError():SI("refreshLoungeToken called before API ready."))});
Q4c(q)},FEV=function(){var q=PsB();
q?(iN("Resume connection to: "+iNj(q)),N6A(q,0)):(ze(),sxc(),iN("Skipping connecting because no session screen found."))},sB=null,Nm=null,iFq=null,e5K=function(){var q=XhT();
if(_.db.isEmpty(q)){q=TAa();var w=_.Pd("yt-remote-session-name")||"",u=_.Pd("yt-remote-session-app")||"";q={device:"REMOTE_CONTROL",id:q,name:w,app:u,mdxVersion:3};q.authuser=String(_.Et("SESSION_INDEX","0"));(w=_.Et("DELEGATED_SESSION_ID"))&&(q.pageId=String(w));_.wr("yt.mdx.remote.channelParams_",q)}},XhT=function(){return _.hP("yt.mdx.remote.channelParams_")||{}},rl=[];var Ukc=new _.gr("yt-menu"),T6a=function(){},dkh=function(q,w,u){q=w=="right-click"?u.rightClickMenuPopupHint:u.menuPopupHint;
if(!(CsK(w)>10))return w=w||"default",Ukc.set(w+"-impression",CsK(w)+1),q},CsK=function(q){return parseInt(Ukc.get((q||"default")+"-impression")||0,10)};
_.xX(T6a);var OFK=function(){this.contexts_=new WeakMap;this.JSC$17464_networkService_=this.activeContext_=null},ou6=function(q,w,u){var y=q.contexts_.get(w);
y||(y=new ZxH(q.JSC$17464_networkService_),q.contexts_.set(w,y));q.activeContext_=y;u&&q.activeContext_.reset();q.activeContext_.start();return q.activeContext_};var T8=function(){};
T8.prototype.enqueue=function(){var q=this,w;return _.F(function(u){if(q.isCounterfactual())return(w=q.getCounterfactualData())&&q.shouldLogCounterfactualImpression()&&q.sendImpressionEndpoints(w),u.return();q.doEnqueue();_.HI(u)})};
T8.prototype.sendImpressionEndpoints=function(q){_.lD.getInstance().triggerOptionalAction("yt-service-request",{},q[0])};var CE=function(q,w){this.renderer=q;this.page=w};
_.O(CE,T8);CE.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
CE.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
CE.prototype.shouldLogCounterfactualImpression=function(){return!0};
CE.prototype.doEnqueue=function(){var q=_.BR(this.page);q&&q.pause();this.renderer.impressionCommand&&_.lD.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.JL(_.lD.getInstance(),[this.renderer.promoCommand],this.page)};var V$H=function(q,w){this.renderer=q;this.resolver=_.S6();this.JSC$17476_enforcementCounter=new _.fCX;w?this.JSC$17476_playerManager=_.BR(w):this.JSC$17476_playerManager=null;_.sP(1,!0)};
_.O(V$H,T8);_.k=V$H.prototype;_.k.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var q=[];this.renderer.impressionEndpoints.forEach(function(w){(w=_.Zh(w))&&q.push(w)});
return q}};
_.k.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.k.shouldLogCounterfactualImpression=function(){var q=_.XEy();q?(this.JSC$17476_enforcementCounter.increment("POPUP"),_.sP(3)):_.sP(2);return q};
_.k.cancel=function(){this.resolver.promise.cancel()};
_.k.doEnqueue=function(){var q=this;_.XEy()?(this.JSC$17476_enforcementCounter.increment("POPUP"),_.sP(3),fU4(this)):this.JSC$17476_playerManager?(this.resolver.promise.then(function(){fU4(q)}),mkm(this.resolver,this.JSC$17476_playerManager)):_.sP(2)};
var mkm=function(q,w){var u=_.S6();w.getPlayerPromise().then(function(y){u.resolve(y)});
u.promise.then(function(y){y.addEventListener("onAbnormalityDetected",q.resolve);_.Uj(q.promise,function(){y.removeEventListener("onAbnormalityDetected",q.resolve)})});
q.promise.thenCatch(function(){u.promise.cancel()})},fU4=function(q){_.sP(3);
var w={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:q.renderer}};w=_.lD.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:w},{});Promise.all(w).then(function(){AbT();q.JSC$17476_playerManager&&q.JSC$17476_playerManager.pause()})},AbT=function(){Uum(function(q,w){_.rPm(q,w);
q===0?_.sP(7):_.sP(4)})};var Jbj=function(q,w){this.renderer=q;this.page=w;this.resolver=_.S6()};
_.O(Jbj,T8);_.k=Jbj.prototype;_.k.cancel=function(){this.resolver.promise.cancel()};
_.k.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.k.isCounterfactual=function(){return!this.renderer.isVisible};
_.k.shouldLogCounterfactualImpression=function(){return!0};
_.k.doEnqueue=function(){var q=this;this.resolver.promise.then(function(){var u={popup:{mealbarPromoRenderer:q.renderer},popupType:"MEALBAR"};_.lD.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:u},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var w=_.BR(this.page);w&&z56(this.resolver,w)}break;default:this.resolver.resolve()}};
var z56=function(q,w){var u=_.S6();w.getPlayerPromise().then(function(y){u.resolve(y)});
u.promise.then(function(y){y.addEventListener("onAdEnd",q.resolve);_.Uj(q.promise,function(){y.removeEventListener("onAdEnd",q.resolve)})});
q.promise.thenCatch(function(){u.promise.cancel()})};var aUB=function(q,w){this.renderer=q;this.page=w};
_.O(aUB,T8);_.k=aUB.prototype;_.k.cancel=function(){this.JSC$17484_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17484_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17484_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.k.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.k.isCounterfactual=function(){return!this.renderer.isVisible};
_.k.shouldLogCounterfactualImpression=function(){return!0};
_.k.doEnqueue=function(){var q=this,w,u;((w=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(u=w.playbackUpsellDialogTriggerConditionData)==null?void 0:u.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17484_downloadedVideosCountSelectorUnsubscriber=_.se(_.Mt(),N$A,function(y,e){y>e&&(DkV(q),q.cancel())}):DkV(this)};
var DkV=function(q){var w={popup:{upsellDialogRenderer:q.renderer},popupType:"MODAL"};_.lD.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:w},{});(q=_.BR(q.page))&&q.pause()};var dl={},ZFh=(dl.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",dl.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",dl.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",dl.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",dl.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",dl.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",dl.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",dl),phh=function(q,w){this.renderer=q;this.targetManager=
w};
_.O(phh,T8);_.k=phh.prototype;_.k.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17491_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17491_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17491_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.k.getCounterfactualData=function(){if(this.isCounterfactual()){var q;return(q=this.renderer.promoConfig)==null?void 0:q.impressionEndpoints}};
_.k.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.k.shouldLogCounterfactualImpression=function(){return!0};
_.k.doEnqueue=function(){var q=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17491_downloadedVideosCountSelectorUnsubscriber=_.se(_.Mt(),N$A,function(w,u){q.renderer.targetId&&w>u&&(ndB(q.targetManager,q.renderer.targetId,$k4(q)),q.cancel())});
break;default:ndB(this.targetManager,this.renderer.targetId,$k4(this))}};
var $k4=function(q){var w;if((w=q.renderer.suggestedPosition)==null?0:w.type)var u=ZFh[q.renderer.suggestedPosition.type];u||(u="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:q.renderer},popupType:"HINT",position:u}}};var vuB=function(){this.previousPage=null},bFH;
vuB.prototype.registerPromoCommand=function(q,w){Yex(this,void 0,void 0,_.C(q.roadblock,uU6),void 0,void 0,w)};
var Yex=function(q,w,u,y,e,t,X){q.previousPage!==X&&q.pendingTooltipPromo&&q.pendingTooltipPromo.cancel();q.previousPage=X;e?(q.pendingEnforcementPromo&&q.pendingEnforcementPromo.cancel(),q.pendingEnforcementPromo=new V$H(e,X),q.pendingEnforcementPromo.enqueue()):t?(q.pendingCommandWrapperPromo=new CE(t,X),q.pendingCommandWrapperPromo.enqueue()):y?(q.pendingRoadblockPromo&&q.pendingRoadblockPromo.cancel(),q.pendingRoadblockPromo=new aUB(y,X),q.pendingRoadblockPromo.enqueue()):w?(q.pendingMealbarPromo&&
q.pendingMealbarPromo.cancel(),q.pendingMealbarPromo=new Jbj(w,X),q.pendingMealbarPromo.enqueue()):u&&(q.pendingTooltipPromo&&q.pendingTooltipPromo.cancel(),q.pendingTooltipPromo=new phh(u,_.e0()),q.pendingTooltipPromo.enqueue())},guK=function(){bFH||(bFH=new vuB);
return bFH};var C9j=!1;var Qi6=function(q,w){var u=_.Et("SESSION_INDEX");this.actionToken_=q;this.commonToken_=w;this.sessionIndex_=u},NCh=function(q){var w=_.S6(),u=_.hP("payments.business.integration.bootstrap"),y=_.hP("payments.business.integration"),e=y.Style.create().withMaterialDesignStyle(),t=y.mashupMode.popup("instrument-manager");
u.asMashupMode(t).usingUserIndex(q.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(e).inStandaloneContext(y.standaloneContextAuthId.forUserId()).instrumentManager(q.actionToken_,q.commonToken_.length>0?q.commonToken_:void 0,function(X){var G=X.instrumentId;G?w.resolve(G):(G=_.hP("payments.business.integration.scenario.InstrumentManager"),w.reject(X.errorCode&&X.errorCode===G.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(X){_.cl(X);
w.reject("instrumentManagerLoadError")});
return w.promise};var xb=function(q,w,u){this.payloadName="transactionFlowFailed";this.payload={errorType:q,serializedTransactionFlowLoggingParams:w,isUserDismiss:u===void 0?!1:u}};
_.wr("yt.ypc.shared.YpcTransactionFlowError",xb);var OB=function(){return _.Na.apply(this,arguments)||this};
_.O(OB,_.Na);OB.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
OB.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
OB.prototype.onErrorMessageDismiss=OB.prototype.onErrorMessageDismiss;_.c([_.v({readOnly:!0,observer:"errorRendererChanged"}),_.h("design:type",Object)],OB.prototype,"errorRenderer",void 0);_.c([_.Gm("yt-live-chat-error-message-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OB.prototype,"onErrorMessageDismiss",null);OB=_.c([_.Q6()],OB);var Euh=[OB.prototype];var R5H;var cbV;var Sea=new _.gr("yt-live-chat"),h5H=new Map;h5H.set("timestamp_toggle","show-timestamps");h5H.set("reactions_toggle","allow-reactions");var ob=function(){return _.Y.apply(this,arguments)||this};
_.O(ob,_.Y);_.k=ob.prototype;_.k.menuItemIdentifierChanged=function(){var q;(q=this.data)!=null&&q.menuItemIdentifier&&(q=h5H.get(this.data.menuItemIdentifier))&&(_.T("enable_lwe_web_mute")?(q=Sea.get(q),this.isToggled=!(q===void 0?!this.data.isToggled:!q)):this.isToggled=Sea.get(q))};
_.k.onFocus=function(){this.toggleButton.focus()};
_.k.onTap=function(){var q=this.data.command;q&&this.componentBehavior.resolveCommand(q)};
_.k.computeText=function(q,w,u){return this.componentBehavior.getSimpleString(q?u:w)};
_.k.computeIcon=function(q,w,u){return(q=q?u:w)&&q.iconType?_.Fy(q.iconType):""};
ob.prototype.onTap=ob.prototype.onTap;ob.prototype.onFocus=ob.prototype.onFocus;ob.prototype.menuItemIdentifierChanged=ob.prototype.menuItemIdentifierChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],ob.prototype,"componentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ob.prototype,"data",void 0);
_.c([_.v({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.h("design:type",String)],ob.prototype,"icon",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],ob.prototype,"isToggled",void 0);_.c([_.Wj("tp-yt-paper-toggle-button"),_.h("design:type",Object)],ob.prototype,"toggleButton",void 0);_.c([_.nL("data.menuItemIdentifier"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ob.prototype,"menuItemIdentifierChanged",null);
_.c([_.Gm("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ob.prototype,"onFocus",null);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ob.prototype,"onTap",null);ob=_.c([_.JM({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],ob);
_.R(ob,"yt-live-chat-toggle-renderer",function(){if(cbV===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;R5H===void 0&&(R5H=document.createElement("template"));var y=R5H;u.call(w,y.content.cloneNode(!0),q.content.firstChild);cbV=q}q=cbV;return q},{mode:_.T("live_chat_enable_sink_wrapper")?2:0});var j4V=new _.MH("NAVIGATION_PROGRESS_TOKEN");_.g_("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var lUc={},ApH=(lUc.CSI=function(q,w){var u={};u[q]=w;q=_.SZ(_.EQf)(u);Object.keys(q).length>0&&_.zM(q)},lUc.ECATCHER=function(q){return function(w,u){_.Et(q)[w]=u}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),lUc);var LEc={},M$V={},KEm=(M$V[c3m.name]=!0,M$V),Vt=function(){var q=_.Na.apply(this,arguments)||this;q._noAccessors=!0;q.tabGesturesIsActive=!1;q.actionRouterIsRoot=!0;q.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"};q.pageTitle="";q.titleSuffix="YouTube";q.unseenNotificationCount=
0;q.hasNavigated=!1;q.hasSetScrollTopForNavigation=!1;q.pagePreparer=null;q.zwiebackInitJobId=0;q.dataUpdatePromise=null;q.loadDepsPromise=_.Hw();q.hasPendingNavigation=!1;q.pendingPlayerOnResponseReceivedActions=[];return q};
_.O(Vt,_.Na);Vt.prototype.attached=function(){B6m(this);document.addEventListener("yt-navigate-cache",_.Fj(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var q=fE();q.init();q.dispatchElement=this.hostElement};
var B6m=function(q,w){w=w===void 0?0:w;var u=_.tG().resolve(_.kF(_.yA));if(u)xkh(q,u);else{if(w>=5)throw Error("Xk");setTimeout(function(){B6m(q,w+1)},0)}},xkh=function(q,w){w.addEventListener("yt-navigate-start",_.Fj(q,q.onYtNavigateStart));
w.addEventListener("yt-navigate-finish",_.Fj(q,q.onYtNavigateFinish));w.addEventListener("yt-navigate-error",_.Fj(q,q.onYtNavigateError));w.addEventListener("yt-page-data-fetched",_.Fj(q,q.onYtPageDataFetched))};
_.k=Vt.prototype;_.k.detached=function(){var q=_.tG().resolve(_.yA);q.removeEventListener("yt-navigate-start",_.Fj(this,this.onYtNavigateStart));q.removeEventListener("yt-navigate-finish",_.Fj(this,this.onYtNavigateFinish));q.removeEventListener("yt-navigate-error",_.Fj(this,this.onYtNavigateError));q.removeEventListener("yt-page-data-fetched",_.Fj(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Fj(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.k.setPageOffset=function(q,w){q?_.Pw(this.hostElement,"yt-set-page-offset",[q,w]):_.vm(Error("Yk"))};
_.k.setPageOffsetForNavigation=function(q,w){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(q,w))};
_.k.onYtNavigateSetPageOffset=function(q,w){this.setPageOffsetForNavigation(w.page,w.offset)};
_.k.getPageOffset=function(){var q=_.A(this.hostElement).querySelector("#page-manager").getCurrentPage(),w=0;q&&(w=_.Pw(this.hostElement,"yt-get-page-offset",[q])[0]);return w};
_.k.onYtHistoryPop=function(q,w){if(_.RX("DISABLE_WARM_LOADS"))q.preventDefault(),window.location.reload();else{var u=_.tG().resolve(_.yA);u.hasPendingNavigation()&&q.preventDefault();u.cancelPendingNavigation();_.X4(this.hostElement,"yt-pending-navigation-cancelled");w.errorMsg&&(q=w.errorMsg.split(" - "),w=Error(q[0]),q.length==2&&q[1]&&(_.gs(w,q[1]),_.Y8(w)),window.location.reload())}};
_.k.onYtHistoryLoad=function(q,w){var u=this;if(_.RX("DISABLE_WARM_LOADS"))window.location.reload();else{(q=w.endpoint)&&Object.keys(q).length||(q=null);var y=w.historyEntry,e=_.tG().resolve(_.yA),t=_.tG().resolve(_.KT),X=null;y&&y.rootData&&(X=y.rootData);var G=X&&q74(X);!X||G||X.filler?q?(e.navigate(q,!0),wda(this,q)):(w.legacyBorder||G||(w.JSC$26376_savedComponentState==null&&X==null?_.Y8(new _.fv("Incomplete history entry",w.forward)):_.bD(new _.fv("Malformed history entry",w.JSC$26376_savedComponentState,
w.forward,X))),window.location.reload()):(_.M4u({isHot:!0}),_.zM({webInfo:{navigationReason:"h"}}),_.u6u(),_.D_("srt"),_.D_("pdc"),this.cancelPendingTasks(),uSh(this,w.forward,X),X.player&&(X.player.loaded=!1),wda(this,q),_.nIr(e,q||{},X,2,{},!1,w).then(function(){u.setPageOffset(t.getCurrentPage(),y.scrollTop||0)}))}};
_.k.initHistoryManager=function(q){if(!this.hasNavigated){this.hasNavigated=!0;var w=_.A(this.hostElement).querySelector("#page-manager").getCurrentData();q=isNaN(q)?this.getPageOffset():q;var u=_.tG().resolve(_.yA).currentEndpoint;this.replaceState(u,w,q)}};
_.k.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.k.onYtNavigateStart=function(q,w){this.cancelPendingTasks();w.noProgressBar||(q=_.tG().resolve(_.kF(j4V)))&&q.start();q=this.hasPendingNavigation?null:this.data;var u=_.tG().resolve(_.KT),y,e,t;_.T("kevlar_use_vimio_behavior")&&!((y=w.endpoint)==null?0:(e=y.commandMetadata)==null?0:(t=e.webCommandMetadata)==null?0:t.ignoreNavigation)&&(y=u.getCurrentPage())&&y.disconnectVisibilityRoot();u.prepareForNavigation(w.pageType,w.endpoint);_.T("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.RN(1,
"pcl"),_.cd(this.pagePreparer,u.preparePage.bind(u,w.pageType,w.endpoint)));y=this.getPageOffset();this.initHistoryManager(y);w.reload||this.hasPendingNavigation?this.replaceState(w.endpoint,q,y):(q==null?void 0:q.page)==="watch"&&w.pageType==="watch"&&_.T("kevlar_replace_watch_to_watch_history_state")?this.replaceState(w.endpoint,q,y):(q==null?void 0:q.page)!=="shorts"||w.pageType!=="shorts"||w.endpoint.reelWatchEndpoint.sequenceParams||_.T("short_to_short_back_nav_killswitch")?w.type!="navigate-back"&&
w.type!="navigate-forward"&&(w.pageType==="shorts"&&_.t7(this.hostElement,"yt-shorts-reset"),this.saveAndPush(w.url,w.endpoint,q,y)):this.replaceState(w.endpoint,q,0);this.hasPendingNavigation=!0};
var ym6=function(q){q.hasPendingNavigation=!1;(q=_.tG().resolve(_.kF(j4V)))&&q.finish()};
Vt.prototype.onYtNavigateError=function(q,w){ym6(this);q=this.get("endpoint.commandMetadata.webCommandMetadata.url",w);var u=_.K4(window.location.href);q&&!u.pbjreload&&(w=w.navigationErrorReason||"10",_.T("kevlar_parent_on_pbjreload")&&(u={csn:_.pN()},this.get("data.endpoint.clickTrackingParams")&&(u.itct=this.data.endpoint.clickTrackingParams),_.xG(q,u)),_.Zu(_.Bl(q,{pbjreload:w})))};
Vt.prototype.onYtNavigateCache=function(q,w){var u=this,y=w.url,e=w.endpoint,t=w.data;q=!!w.miniplayer;w=!!w.skipHistory;if(y&&e&&t){var X=this.getPageOffset(),G=this.data||null;w||this.saveAndPush(y,e,G,X);y=_.nIr(_.tG().resolve(_.yA),e,t,q?4:3,{},q);q&&y.then(function(){u.dataUpdatePromise&&u.dataUpdatePromise.then(function(){var n=_.tG().resolve(_.KT);u.setPageOffset(n.getCurrentPage(),0)})})}};
Vt.prototype.onYtNavigateFinish=function(q,w){var u=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){exj(u,w.fromHistory)})};
var exj=function(q,w){ym6(q);if(q.pendingPlayerOnResponseReceivedActions){for(var u=_.P(q.pendingPlayerOnResponseReceivedActions),y=u.next();!y.done;y=u.next())_.H6(y.value,q.hostElement);q.pendingPlayerOnResponseReceivedActions=[]}u=_.tG().resolve(_.KT);!w&&q.hasNavigated&&((w=u.getCurrentPage())?w.is==="ytd-shorts"||q.tabGesturesIsActive||q.setPageOffsetForNavigation(w,0):_.Y8(Error("Zk")));_.vj(function(){_.vj(function(){_.D_("pda")})})};
Vt.prototype.onYtNavigate=function(q){if(!q.detail.endpoint){var w=new _.fv("Error: Missing yt-navigate endpoint from target:",q.target,q.target.nodeName);_.vm(w)}if(w=_.T("cold_missing_history"))w=fE(),w.init(!1),w=!(w.browserHistory.boundHistoryReplaceState&&w.browserHistory.boundHistoryPushState);if(w){_.g_("DISABLE_WARM_LOADS",!0);w=new _.fv("Failed to initialize history manager",this.getDebugString());var u=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
u?_.Y8(w):_.vm(w)}w=q.detail.endpoint;var y,e;_.T("debug_forward_web_query_parameters")&&((y=w.commandMetadata)==null?0:(e=y.webCommandMetadata)==null?0:e.url)&&(w=JSON.parse(JSON.stringify(w)),w.commandMetadata.webCommandMetadata.url=_.v$l(w.commandMetadata.webCommandMetadata.url,window.location.search));q={type:0,command:w,form:{params:q.detail.params,tempData:q.detail.tempData||{},requestType:q.detail.type,createScreenConfig:q.detail.createScreenConfig,reload:q.detail.reload?q.detail.reload:!1,
requestForm:q.detail}};_.T("kevlar_yt_navigate_command_handler")?(y=_.tG().resolve(_.PG),q.form.skipDefaultElement=!0,y.resolveCommand(w,{form:q.form})):this.handleNavigate(q)};
Vt.prototype.handleNavigate=function(q){this.hasSetScrollTopForNavigation=!1;var w=_.tG().resolve(_.yA),u=q.form||{};w.navigate(q.command,u.reload,u.params,u.tempData,u.requestType,u.createScreenConfig,u.ignoreConfirmation,u.requestForm)&&wda(this,q.command,u.tempData)};
Vt.prototype.onYtPageDataFetched=function(q,w){try{_.slT().reset();this.data=w.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.tG().resolve(_.KT).updatePageData(this.data);var u=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);u&&Jpq(u);var y=this.get("response.responseContext.serviceTrackingParams",this.data);y&&Jpq(y);var e=
this.get("playerResponse.onResponseReceivedActions",this.data);e&&(e=kVm(this,e));e&&_.nq(this.hostElement,e,this.hostElement);var t=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),X=this.get("response.responseContext.consistencyTokenJar",this.data);if(t||X){var G=_.Ntf(),n=(0,_.db.getValues)(G.tokenJars);t&&G.replace(n,t);X&&G.replace(n,X)}}catch(N){_.vm(N)}};
var wda=function(q,w,u){try{q.onYtEndpointChangeHandler(w,u)}catch(y){_.vm(y)}};
_.k=Vt.prototype;_.k.onYtEndpointChangeHandler=function(){};
_.k.setPageTitle=function(q){q=(this.pageTitle=q)?q+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+q};
_.k.onYtUpdateTitle=function(q,w){this.setPageTitle(w)};
_.k.setUnseenNotificationCount=function(q){this.unseenNotificationCount=q;this.setPageTitle(this.pageTitle)};
_.k.handleUpdateNotificationsUnseenCountAction=function(q){_.C(q,oeh)&&((q=_.C(q,oeh).unseenCount)?this.setUnseenNotificationCount(q):this.setUnseenNotificationCount(0))};
_.k.handleClearCookieAction=function(q){var w;(q=(w=_.C(q,TQB))==null?void 0:w.cookieName)&&_.ypy(q)};
_.k.onYtUpdateUnseenNotificationCount=function(q,w){this.setUnseenNotificationCount(w)};
_.k.loadData=function(q){var w=this;this.loadDepsPromise.then(function(){var u=_.tG().resolve(_.kF(_.yA));u||_.vm(Error("$k"));if(q&&q.response){if(!q.endpoint){var y=_.cf(window.document.location.href)||"/",e="";if(y==="/"||y.startsWith("/?"))e="WEB_PAGE_TYPE_BROWSE";q.endpoint={commandMetadata:{webCommandMetadata:{url:y,webPageType:e,rootVe:3854}}}}_.nIr(u,q.endpoint,q,5,{})}else q.endpoint?u.navigate(q.endpoint):u.navigate(_.Wh);_.pi.cancelJob(w.zwiebackInitJobId);w.zwiebackInitJobId=_.pi.addLowPriorityJob(d4m)})};
var fE=function(){return _.tG().resolve(_.tH)};
Vt.prototype.getDebugString=function(){return fE().getDebugString()};
Vt.prototype.getThirdPartyManipulationSuspected=function(){return fE().getThirdPartyManipulationSuspected()};
Vt.prototype.replaceState=function(q,w,u){fE().saveAndReplace(q,w,u)};
Vt.prototype.saveAndPush=function(q,w,u,y){fE().saveAndPush(q,w,u,y)};
var q74=function(q){return _.T("web_honor_cache_for_back")&&(_.C(q.endpoint,_.LN)||_.C(q.endpoint,_.Tt))?!0:!q||isNaN(q.expirationTime)?!1:(0,_.eW)()>q.expirationTime},uSh=function(q,w,u){var y=q.get("response.trackingParams",u),e=_.ZB(),t=_.pN();
if(y&&e&&t&&(y=q.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",u),!y&&u.rootVe&&(y=u.rootVe),e=w?"forwardButton":"backButton",w=q.get("playerResponse.topbar.desktopTopbarRenderer."+e+".buttonRenderer.command.clickTrackingParams",q.data),q=q.get("response.topbar.desktopTopbarRenderer."+e+".buttonRenderer.command.clickTrackingParams",q.data),w=(q=w||q)?_.Tj(q):void 0,q=_.Qz(),e=[_.Hw(u)],_.e$(q,y,w,{dataPromises:e,csnToClone:u.csn}),u.graftedVes))for(u=
_.P(u.graftedVes),y=u.next();!y.done;y=u.next())_.ku(q,y.value)};
Vt.prototype.onStoreGraftedVeAction=function(q){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(q)):_.Y8(Error("al"))};
var kVm=function(q,w){return w.filter(function(u){for(var y in u)if(KEm[y])return q.pendingPlayerOnResponseReceivedActions.push(u),!0;return!1})};
_.x$.Object.defineProperties(Vt.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
Vt.prototype.onStoreGraftedVeAction=Vt.prototype.onStoreGraftedVeAction;Vt.prototype.loadData=Vt.prototype.loadData;Vt.prototype.onYtUpdateUnseenNotificationCount=Vt.prototype.onYtUpdateUnseenNotificationCount;Vt.prototype.handleClearCookieAction=Vt.prototype.handleClearCookieAction;Vt.prototype.handleUpdateNotificationsUnseenCountAction=Vt.prototype.handleUpdateNotificationsUnseenCountAction;Vt.prototype.setUnseenNotificationCount=Vt.prototype.setUnseenNotificationCount;
Vt.prototype.onYtUpdateTitle=Vt.prototype.onYtUpdateTitle;Vt.prototype.setPageTitle=Vt.prototype.setPageTitle;Vt.prototype.onYtEndpointChangeHandler=Vt.prototype.onYtEndpointChangeHandler;Vt.prototype.onYtPageDataFetched=Vt.prototype.onYtPageDataFetched;Vt.prototype.handleNavigate=Vt.prototype.handleNavigate;Vt.prototype.onYtNavigate=Vt.prototype.onYtNavigate;Vt.prototype.onYtNavigateFinish=Vt.prototype.onYtNavigateFinish;Vt.prototype.onYtNavigateCache=Vt.prototype.onYtNavigateCache;
Vt.prototype.onYtNavigateError=Vt.prototype.onYtNavigateError;Vt.prototype.onYtNavigateStart=Vt.prototype.onYtNavigateStart;Vt.prototype.cancelPendingTasks=Vt.prototype.cancelPendingTasks;Vt.prototype.initHistoryManager=Vt.prototype.initHistoryManager;Vt.prototype.onYtHistoryLoad=Vt.prototype.onYtHistoryLoad;Vt.prototype.onYtHistoryPop=Vt.prototype.onYtHistoryPop;Vt.prototype.onYtNavigateSetPageOffset=Vt.prototype.onYtNavigateSetPageOffset;Vt.prototype.setPageOffset=Vt.prototype.setPageOffset;
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Vt.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Vt.prototype,"data",void 0);_.c([_.Gm("yt-navigate-set-page-offset"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Vt.prototype,"onYtNavigateSetPageOffset",null);
_.c([_.Gm("yt-history-pop"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Vt.prototype,"onYtHistoryPop",null);_.c([_.Gm("yt-history-load"),_.h("design:type",Function),_.h("design:paramtypes",[Event,_.zlx]),_.h("design:returntype")],Vt.prototype,"onYtHistoryLoad",null);_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Vt.prototype,"onYtNavigate",null);
_.c([_.Gm("yt-update-title"),_.h("design:type",Function),_.h("design:paramtypes",[Event,String]),_.h("design:returntype")],Vt.prototype,"onYtUpdateTitle",null);_.c([_.Gm("yt-update-unseen-notification-count"),_.h("design:type",Function),_.h("design:paramtypes",[Event,Number]),_.h("design:returntype")],Vt.prototype,"onYtUpdateUnseenNotificationCount",null);Vt=_.c([_.Q6()],Vt);LEc.YtdAppBehavior=[_.hm.YtActionHandlerBehavior,Vt.prototype];var md=function(){var q=_.Na.apply(this,arguments)||this;q._noAccessors=!0;return q};
_.O(md,_.Na);md.prototype.ready=function(){var q=this;_.A(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){q.onChange_()})};
md.prototype.dataChanged_=function(){_.A(this.hostElement).querySelector("#checkbox").checked=!1};
md.prototype.onChange_=function(){var q=_.A(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.t7(this.hostElement,"yt-dismissal-reason-"+q,this.data.feedbackToken)};
md.prototype.dataChanged_=md.prototype.dataChanged_;_.c([_.v(),_.h("design:type",Object)],md.prototype,"data",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],md.prototype,"dataChanged_",null);md=_.c([_.Q6()],md);var t0T=[md.prototype];var AS=function(){var q=_.Na.apply(this,arguments)||this;q.timeoutJobId=0;q.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return q};
_.O(AS,_.Na);AS.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
AS.prototype.startTimeout=function(){var q=this,w=this.data&&this.data.displayDurationSeconds;w&&!this.timeoutJobId&&(this.timeoutJobId=_.mg(_.pi,function(){_.Pw(q.hostElement,"yt-close-popup-action",[q.is]);q.timeoutJobId=0},w*1E3))};
AS.prototype.cancelTimeout=function(){_.pi.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
AS.prototype.ytdHatsSurveyBehaviorDataChanged=AS.prototype.ytdHatsSurveyBehaviorDataChanged;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],AS.prototype,"ytActionHandlerBehavior",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AS.prototype,"ytdHatsSurveyBehaviorDataChanged",null);AS=_.c([_.Q6()],AS);var P1j=[_.hm.YtActionHandlerBehavior,AS.prototype];var Xd6=function(q,w){return q.SHARED_RENDERERS_.hasOwnProperty(w)?"yt":q.prefix},JS={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}};JS.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.T("kevlar_mealbar_above_player"),modern:_.T("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"}};
JS.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};JS.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};JS.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
JS.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)"}};
JS.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};
JS.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};
JS.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};
JS.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};JS.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"}};
JS.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};JS.TOAST={component:null,properties:{}};var FkH=new function(q,w,u){this.supportedPopups=q;this.navigationEndpointPopupMap=w;this.popupTypeMap=u;this.supportedPopups=q;this.navigationEndpointPopupMap=w;this.popupTypeMap=u}({aboutThisAdRenderer:!0,
adFeedbackRenderer:!0,adInfoDialogRenderer:!0,addToPlaylistRenderer:!0,backstagePostDialogPopupRenderer:!0,bubbleHintRenderer:!0,channelCreationDialogRenderer:!0,channelWarmWelcomeRenderer:!0,channelWarmWelcomeContRenderer:!0,checkboxSurveyRenderer:!0,confirmDialogRenderer:!0,dismissalFollowUpRenderer:!0,enforcementMessageViewModel:!0,fancyDismissibleDialogRenderer:!0,formPopupRenderer:!0,gamingAccountLinkConfirmDialogRenderer:!0,gamingAccountLinkSettingRenderer:!0,hotkeyDialogRenderer:!0,sponsorshipConfirmCancelRenderer:!0,
modalWithTitleAndButtonRenderer:!0,notificationActionRenderer:!0,reportFormModalRenderer:!0,searchSuggestionReportDialog:!0,sharingRenderer:!0,sharingEmbedRenderer:!0,menuPopupRenderer:!0,singleOptionSurveyRenderer:!0,surveyFollowUpRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,ypcUpgradeDialogRenderer:!0,ypcOffersOverlayRenderer:!0,redCancelSurveyRenderer:!0,conversationSectionController:!0,
conversationHighPriorityNotificationContentRenderer:!0},{adFeedbackEndpoint:"adFeedbackEndpoint.content",adInfoDialogEndpoint:"adInfoDialogEndpoint.dialog",createBackstagePostDialogEndpoint:"createBackstagePostDialogEndpoint.dialog",confirmDialogEndpoint:"confirmDialogEndpoint.content",managePurchaseEndpoint:"managePurchaseEndpoint.content",modalEndpoint:"modalEndpoint.modal",shareEndpoint:"shareEndpoint",shareEntityEndpoint:"shareEntityEndpoint",unlimitedFamilyFlowEndpoint:"unlimitedFamilyFlowEndpoint.unlimitedFamilyFlowEndpointSupportedRenderers",
openPopupAction:"openPopupAction.popup",ypcCancelSurveyEndpoint:"ypcCancelSurveyEndpoint.surveySupportedRenderers"},{aboutThisAdRenderer:"DIALOG",adFeedbackRenderer:"DIALOG",adInfoDialogRenderer:"RESPONSIVE_DROPDOWN",addToPlaylistRenderer:_.T("desktop_add_to_playlist_renderer_dialog_popup")?"DIALOG":"RESPONSIVE_DROPDOWN",backstagePostDialogPopupRenderer:"DIALOG",bubbleHintRenderer:"HINT",checkboxSurveyRenderer:"SURVEY",confirmDialogRenderer:"DIALOG",dismissalFollowUpRenderer:"DIALOG",enforcementMessageViewModel:"LOCKED_MODAL",
fancyDismissibleDialogRenderer:"DIALOG",gamingAccountLinkConfirmDialogRenderer:"DIALOG",gamingAccountLinkSettingRenderer:"DIALOG",hotkeyDialogRenderer:"DIALOG",sponsorshipConfirmCancelRenderer:"DIALOG",menuPopupRenderer:"RESPONSIVE_DROPDOWN",modalWithTitleAndButtonRenderer:"RESPONSIVE_DROPDOWN",notificationActionRenderer:"TOAST",reportFormModalRenderer:"DIALOG",searchSuggestionReportDialog:"DIALOG",sharingEmbedRenderer:"DIALOG",sharingRenderer:"RESPONSIVE_DROPDOWN",singleOptionSurveyRenderer:"SURVEY",
surveyFollowUpRenderer:"SURVEY",unifiedSharePanelRenderer:"DIALOG",unlimitedFamilyMessageInterstitialRenderer:"DIALOG",unlimitedFamilyProfileInterstitialRenderer:"DIALOG",unpluggedPauseMembershipDialogRenderer:"DIALOG",ypcOffersOverlayRenderer:"DIALOG",ypcUpgradeDialogRenderer:"DIALOG",redCancelSurveyRenderer:"DIALOG",conversationSectionController:"MOLE",conversationHighPriorityNotificationContentRenderer:"NOTIFICATION"}),GV6=new function(){this.prefix="ytd";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$17543_popupConfig=JS;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 nYK=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.CU.getInstance()},z8=function(q,w){var u=q.pageNameToElement.get(w);
if(!u){switch(w){case "watch":var y=_.T("web_watch_force_learning_journey_for_testing")?_.E7("ytd-watch-learning-journey"):_.T("kevlar_watch_fixie")?_.E7("ytd-watch-fixie"):_.T("kevlar_watch_grid")?_.E7("ytd-watch-grid"):_.E7("ytd-watch-flexy");break;case "learning_journey_watch":y=_.E7("ytd-watch-learning-journey");break;case "shorts":y=_.E7("ytd-shorts");break;case "search":y=_.E7("ytd-search");break;case "channel":y=_.E7("ytd-browse");y.pageSubtype="channels";break;case "trending":y=_.E7("ytd-browse");
y.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":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":y=
_.E7("ytd-browse");y.pageSubtype=w;break;case "browse":y=_.E7("ytd-browse");break;default:_.Y8(new _.fv("Error getting page element for type",w))}u=y;q.pageNameToElement.set(w,u)}return u};
nYK.prototype.preparePage=function(q,w,u){u&&(q=_.QI(u)||q);if(q!=="watch"){var y=this.elementPoolPopulator,e=q;e!=y.targetPage_&&y.pendingPages_.indexOf(e)>-1&&(y.targetPage_&&(y.pendingPages_.unshift(y.targetPage_),y.abort()),s9K(y,e),_.A8r(y,e))}if((y=z8(this,q))||!_.C(u,_.jw)){y.isAttached||y===w||(y.hidden=!0);if(!(y.data||q==="watch"&&_.T("swatcheroo_page_pool_dont_provide_filler_data"))){var t;if(q=(t=_.Et("FILLER_DATA",{})[q])==null?void 0:t.response)y.data=q}return y}};var HKx=function(q){this.JSC$28283_clientRoot=q;this.playlistHandlerActionMap={"yt-add-to-playlist-command":ZNq,"yt-end-playlist-command":pfK,"yt-recover-playlist-command":vGq,"yt-refresh-playlist-command":gGc,"yt-playlist-remove-videos-action":bNq};_.Ln(_.lD.getInstance(),this.playlistHandlerActionMap,this.JSC$28283_clientRoot);OLh()},Wkh;var ab=function(q,w,u){this.apiKey=q;this.endpoint=w;this.confidenceThreshold=u===void 0?.5:u;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=w==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||w==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
w==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||w==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new PR4};
_.k=ab.prototype;
_.k.start=function(q){if(this.state===0)if(this.isOnline()){q.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=q.supportsHttpHeadersOverwriteParam);q.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=q.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.aD("voice_assistant");_.Z_("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=q.languageCode||"en-US";this.supportsCrossDomainXhr=q.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=q.youtubeAssistantRequest||null;this.listeningHandler=q.listeningHandler||this.listeningHandler;this.audioDetectedHandler=q.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=q.stopHandler||this.stopHandler;this.completeHandler=q.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=q.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=q.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
q.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=q.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=q.accessToken;this.additionalHeaders=q.additionalHeaders||{};var w;this.prefetchResponseTimeoutMs=(w=q.prefetchResponseTimeoutMs)!=null?w:this.prefetchResponseTimeoutMs;sNV(this);this.startAudio();NdT(this)}else this.errorHandler("OFFLINE")};
_.k.stop=function(q){var w=q===void 0?{}:q;q=w.logCancel===void 0?!0:w.logCancel;var u=w.logMicClosed===void 0?!0:w.logMicClosed;var y=w.handleError===void 0?!0:w.handleError;w=w.handleStop===void 0?!0:w.handleStop;this.state!==0&&(q&&Dd("voz_cx"),Zd(this,{logMicClosed:u,handleStop:w}),y&&this.errorHandler("ABORTED"))};
_.k.getState=function(){return this.state};
_.k.isSupported=function(){return!0};
_.k.stopAudio=function(q){(q===void 0||q)&&Dd("voz_mf")};
_.k.startAudio=function(){Dd("voz_vp");return _.Hw(null)};
var QNK=function(q,w){q.channelOpen&&(q.state!==2&&(q.state=2,Dd("voz_ss"),q.listeningHandler()),w=new Uint8Array(w),w='{ "audioIn": "'+_.wV(w)+'" }',q.channel.send(w))},Zd=function(q,w){var u=w===void 0?{}:w;
w=u.logMicClosed===void 0?!0:u.logMicClosed;u=u.handleStop===void 0?!0:u.handleStop;q.vozEndOfDataTimeout>-1&&(clearTimeout(q.vozEndOfDataTimeout),q.vozEndOfDataTimeout=-1);Ii4(q);q.stopAudio(w);q.channel&&(q.channelOpen=!1,q.manuallyClosedChannel=!0,q.channel.close(),q.channel=void 0);q.transcribedSpeechResults=[];q.state=0;u&&q.stopHandler()},sNV=function(q){var w={httpHeadersOverwriteParam:q.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},q.additionalHeaders,q.accessToken&&q.isUsingVoz?{Authorization:"Bearer "+q.accessToken}:{"x-goog-api-key":q.apiKey}),supportsCrossDomainXhr:q.supportsCrossDomainXhr};q.channel=new aF(q.endpoint,w);q.channel.open();_.dL(q.channel,"w",function(){var u=q.channel,y=u.send,e=q.isUsingVoz?"PLACEHOLDER":"example";e={config:{dialogStateIn:{languageCode:q.languageCode},deviceConfig:{deviceId:e,deviceModelId:e},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!q.isUsingVoz)e.config.requestType=4;else if(q.isUsingVoz&&q.youtubeAssistantRequest){var t=JSON.stringify(q.youtubeAssistantRequest);e.config.internalIn={youtubeAssistantS3InputJson:t}}y.call(u,e);q.channelOpen=!0;q.manuallyClosedChannel=!1});
_.dL(q.channel,"x",function(){q.manuallyClosedChannel||(q.channelOpen=!1,q.channel=void 0,Zd(q))});
_.dL(q.channel,"z",function(u){if(u.data){Ii4(q);for(var y=0;y<u.data.length;y++){var e=q,t=u.data[y],X=t.speechResults;if(X)a:{var G=[];t=[];var n=!1;X=_.P(X);for(var N=X.next();!N.done;N=X.next()){N=N.value;if(N.noSpeech){Zd(e);e.errorHandler("NO_SPEECH");break a}N.transcript!==void 0&&N.stability!==void 0&&(N.stability<e.confidenceThreshold&&(n=!0),n?t.push(N.transcript):G.push(N.transcript))}if(G.length!==0||t.length!==0)G=G.join(" "),t=t.join(" "),e.receivedEndOfUtterance&&!e.isUsingVoz?e.isUsingVoz||
e.completeHandler([G,t]):(n=e,X=G,N=t,Dd("voz_sf"),n.transcriptionUpdateHandler(X,N),n.transcribedSpeechResults=[X,N]),e.receivedEndOfUtterance&&(Dd("voz_eou"),e.transcriptionCompleteHandler([G,t]),e.isUsingVoz&&(e.prefetchResponseTimeoutMs===0?Zd(e,{logMicClosed:!1,handleStop:!0}):e.prefetchResponseTimeoutMs>0&&iKq(e)))}else e.isUsingVoz&&(t==null?0:t.internalOut)?(t=JSON.parse(t.internalOut.youtubeAssistantS3OutputJson),t.userHasOptedInToVaa||t.vaaConsent?e.vaaConsentUpdateHandler(!!t.userHasOptedInToVaa,
!!t.vaaConsent):(rmB(e),t&&(G=e.transcribedSpeechResults,Dd("voz_rqf"),e.completeHandler(G,t)))):t.eventType==="END_OF_UTTERANCE"?e.receivedEndOfUtterance=!0:(Dd("voz_err"),e.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Y8(Error("bl")))}}});
_.dL(q.channel,"y",function(u){Zd(q);switch(u.status){case 1:u="WEBCHANNEL_NETWORK_ERROR";break;case 2:u="WEBCHANNEL_SERVER_ERROR";break;default:u="WEBCHANNEL_UNKNOWN_ERROR"}q.errorHandler(u);q.logError(Error(u))})};
ab.prototype.logError=function(q){_.vm(q)};
ab.prototype.isOnline=function(){return!0};
var iKq=function(q){rmB(q);q.prefetchResponseSetTimeoutId=setTimeout(function(){Zd(q,{logMicClosed:!1,handleStop:!0})},q.prefetchResponseTimeoutMs)},rmB=function(q){q.prefetchResponseSetTimeoutId>-1&&(clearTimeout(q.prefetchResponseSetTimeoutId),q.prefetchResponseSetTimeoutId=-1)},NdT=function(q){Ii4(q);
q.noResponseReceivedTimeout=window.setTimeout(function(){Zd(q);q.errorHandler("NO_SPEECH")},11E3)},Ii4=function(q){q.noResponseReceivedTimeout>-1&&(window.clearTimeout(q.noResponseReceivedTimeout),q.noResponseReceivedTimeout=-1)},Dd=function(q){_.D_(q,void 0,"voice_assistant")};var pE=function(){ab.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.O(pE,ab);pE.prototype.isSupported=function(){return EGK()};
pE.prototype.startAudio=function(){var q=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.og(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(y){Uqx(q,y)};
this.processor.connect(this.audioContext.destination);var w=function(y){q.stream=y;if(!q.audioContext)return _.Hw(null);y=q.audioContext.createMediaStreamSource(y);q.processor&&y.connect(q.processor);return _.Hw(null)},u={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?w(this.stream):navigator.mediaDevices.getUserMedia(u).then(w).catch(function(y){Zd(q);y.name&&y.name==="NotAllowedError"?q.errorHandler("NO_MICROPHONE_PERMISSION"):(q.errorHandler("AUDIO_ERROR"),q.logError(y));return _.og(null)});
return ab.prototype.startAudio.call(this)};
pE.prototype.stopAudio=function(q){q=q===void 0?!0:q;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(w){w.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;ab.prototype.stopAudio.call(this,q)};
pE.prototype.isOnline=function(){return navigator.onLine};
var Uqx=function(q,w){if(q.audioContext)if(window.OfflineAudioContext){var u=q.audioContext.sampleRate,y=w.inputBuffer.getChannelData(0);w=new window.OfflineAudioContext(1,y.length,16E3);for(var e=w.createBuffer(1,y.length,u),t=e.getChannelData(0),X=0,G=0;G<y.length;G++)t[G]=y[G],X+=t[G]*t[G];!q.audioDetected&&Math.sqrt(X/y.length)>.01&&(q.audioDetected=!0,q.audioDetectedHandler());y=w.createBufferSource();y.buffer=e;y.connect(w.destination);y.start(0);w.oncomplete=function(n){n=n.renderedBuffer.getChannelData(0);
for(var N=Math.floor(16384E3/u),Q=new Int16Array(N),I=0;I<N;++I)Q[I]=Math.max(-1,Math.min(1,n[I]))*32767;QNK(q,Q.buffer)};
w.startRendering()}else TdH(q,w)},TdH=function(q,w){var u=q.audioContext.sampleRate,y=w.inputBuffer.getChannelData(0),e=Math.floor((u+8E3)/16E3);
u=y.length/e;w=new Float32Array(u);for(var t=0;t<u;++t)w[t]=y[t*e];y=new Int16Array(u);for(e=0;e<u;++e)y[e]=Math.max(-1,Math.min(1,w[e]))*32767;QNK(q,y.buffer)};var C1V={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var dqh=function(){this.JSC$17608_audioEnabled=!0;this.audioFeedbackHolder={}};
dqh.prototype.isPlaying=function(q){return q.currentTime>0&&!q.paused&&!q.ended&&q.readyState>2};
var OKh=function(q){for(var w=_.P(Object.values(C1V)),u=w.next();!u.done;u=w.next())u=u.value,q.audioFeedbackHolder[u]=new Audio,q.audioFeedbackHolder[u].src="/s/search/audio/"+u+".mp3",q.audioFeedbackHolder[u].load()},$4=function(q,w){if(q.JSC$17608_audioEnabled!==!1&&w in q.audioFeedbackHolder){for(var u=_.P(Object.values(q.audioFeedbackHolder)),y=u.next();!y.done;y=u.next())y=y.value,q.isPlaying(y)&&y.pause();
q.audioFeedbackHolder[w].currentTime=0;q.audioFeedbackHolder[w].play().catch(function(){})}};var oYB=function(q,w){var u=this;this.store=q;this.service=w;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){u.setState("offline");u.stop()};
this.audioPlayer=new dqh;var y;(y=this.audioPlayer)==null||OKh(y)};
_.k=oYB.prototype;_.k.getService=function(){return this.service};
_.k.isEnabled=function(){return!!this.service};
_.k.isSupported=function(){var q;return(q=this.service)==null?void 0:q.isSupported()};
_.k.start=function(){var q=this,w,u,y,e,t,X,G,n,N,Q,I,U,d;return _.F(function(V){switch(V.nextAddress){case 1:q.store.dispatch(fhV("",""));if(!navigator.onLine)return q.setState("offline"),V.return();window.addEventListener("offline",q.handleOfflineEvent);q.stream=null;if(!q.permissionsSupported){V.jumpTo(2);break}_.tD(V,3);return _.H(V,V0q(q),5);case 5:w=V.yieldResult;if(!w)return(u=q.audioPlayer)==null||$4(u,"failure"),V.return();q.service.stream=q.stream;q.setState("listening");_.jv(V,2);break;
case 3:_.nm(V),q.permissionsSupported=!1;case 2:y={context:_.GM7(_.t6())},y.youtubeAssistantParams={searchParams:{inlineSearchResponse:q.enableInlineSearchResponse}},e=function(J,a){q.store.dispatch(m26("transcribing"));q.store.dispatch(fhV(J,a))},t=function(){var J;
(J=q.audioPlayer)==null||$4(J,"open");q.setState("listening")},X=function(){q.setState("transcribing")},G=function(J){q.setErrorState(J)},n=function(J,a){var b;
(b=q.audioPlayer)==null||$4(b,"success");a&&(_.T("kevlar_voice_search_inline_search")&&(q.responseProcessor=_.tG().resolve(_.Wqc),q.responseProcessor&&(b=a.navigationAction,J=a.prefetchedSearchResponse,b&&J&&(b=(new _.feG).JSC$11814_getStoreKey(b),_.gZ(q.responseProcessor,J,b)))),q.JSC$17626_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",a))},N=function(){window.removeEventListener("offline",q.handleOfflineEvent)},Q=_.r7l(!1),I=Q.Authorization!=null,U=q.enableFirstPartyAuth||
q.enableFPAForSignedInUsers&&I?Q:{"X-Goog-Visitor-Id":Q["X-Goog-Visitor-Id"]},d={completeHandler:n,
errorHandler:G,listeningHandler:t,audioDetectedHandler:X,stopHandler:N,transcriptionUpdateHandler:e,youtubeAssistantRequest:y,languageCode:fij(),additionalHeaders:U,supportsCrossDomainXhr:q.enableFirstPartyAuth||q.enableFPAForSignedInUsers&&I,supportsHttpHeadersOverwriteParam:!q.disableHttpHeadersOverwrite},q.service.start(d),_.HI(V)}})};
_.k.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.k.reset=function(){this.store.dispatch(_.tr({type:"RESET_VOICE_SEARCH_STATE"}))};
_.k.setState=function(q){this.store.dispatch(m26(q))};
_.k.setErrorState=function(q){switch(q){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var w;(w=this.audioPlayer)==null||$4(w,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)V0q(this);else{var u;(u=this.audioPlayer)==null||$4(u,"failure");this.setState("permission-denied")}break;case "ABORTED":var y;(y=this.audioPlayer)==null||$4(y,"no_input");break;default:var e;(e=this.audioPlayer)==
null||$4(e,"no_input");this.setState("timeout")}};
var V0q=function(q){var w,u;return _.F(function(y){switch(y.nextAddress){case 1:return _.H(y,navigator.permissions.query({name:"microphone"}),2);case 2:w=y.yieldResult;if(w.state==="granted")return y.return(!0);if(w.state==="denied")return q.setState("permission-denied"),y.return(!1);q.setState("permission");u={audio:{sampleSize:16,channelCount:1},video:!1};_.tD(y,3);return _.H(y,navigator.mediaDevices.getUserMedia(u),5);case 5:return q.stream=y.yieldResult,y.return(!0);case 3:return _.nm(y),q.setState("permission-denied"),
y.return(!1)}})},fij=function(){var q=_.Et("INNERTUBE_CONTEXT_HL"),w=_.Et("INNERTUBE_CONTEXT_GL");
return q.indexOf("-")>-1?q:q+"-"+w};var mq6=function(q,w,u){oYB.call(this,w,u);this.JSC$17626_actionRouter=q;this.enableInlineSearchResponse=_.T("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.T("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.T("kevlar_voice_search_enable_fpa_signedin_users")},Amh;
_.O(mq6,oYB);
var Jmj=function(){if(!Amh){var q="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.T("kevlar_voice_search_auth_enabled")||_.T("kevlar_voice_search_use_yt_endpoint")?q="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.T("kevlar_voice_search_use_fp_endpoint")&&(q="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");Amh=
new mq6(_.lD.getInstance(),_.Mt(),new pE(_.Et("VOZ_API_KEY"),q,.5))}return Amh};var zxT=function(q){this.JSC$17630_clientRoot=q;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$17630_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)]]));q=_.P(this.eventListeners);for(var w=q.next();!w.done;w=q.next()){var u=_.P(w.value);w=u.next().value;u=u.next().value;u=_.P(u);for(var y=u.next();!y.done;y=u.next()){var e=
_.P(y.value);y=e.next().value;e=e.next().value;w.addEventListener(y,e)}}_.Ln(_.lD.getInstance(),this.autonavPauseActionMap,this.JSC$17630_clientRoot)},aiB,DqK=function(q){return _.T("kevlar_autonav_popup_filtering")?(q=_.he(q))?q.hasAttribute("prevent-autonav"):!0:!0};
_.k=zxT.prototype;_.k.onIronOverlayOpened=function(q){DqK(q)&&(this.autonavPauseReasons.overlayOpen=!0,vp(this))};
_.k.onIronOverlayClosed=function(q){DqK(q)&&(this.autonavPauseReasons.overlayOpen=!1,vp(this))};
_.k.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;vp(this)};
_.k.onYtAutonavPauseBlur=function(){var q=this;_.pi.addJob(function(){q.isInBackground()||(q.autonavPauseReasons.inputBoxFocus=!1,vp(q))},8,0)};
_.k.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;vp(this)};
_.k.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;vp(this)};
_.k.onYtAutonavPauseScroll=function(){var q=_.tG().resolve(_.KT);q.isOnWatch()&&(q=q.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=q.getBoundingClientRect().top<-200,vp(this))};
_.k.onYtAutonavPauseUserEngagement=function(q){var w=this;if(_.T("user_engagement_enable_autoplay_pause_feature")){var u=Number(q.lowEngagementThresholdMs);isNaN(u)||u<=0||q.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.jA("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.tG().resolve(_.fT),_.Pm()<u?_.mg(_.pi,function(){_.jA("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.T_K()?(this.userEngagementCsn=_.pN(),_.mg(_.pi,function(){_.jA("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
w.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,vp(this)):_.jA("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.d2l(Error("cl`"+JSON.stringify(q)))};
_.k.onYtAutonavPausePlayer=function(q){this.autonavPauseReasons.requestedByPlayer=!!q.detail;vp(this)};
_.k.onYtAutonavVisibilityChanged=function(){var q=this,w,u,y;return _.F(function(e){if(e.nextAddress==1)return(w=_.xo())?_.H(e,w.getPlayerPromise(),2):e.return();u=e.yieldResult;y=u.isMuted()||u.getVolume()===0;q.autonavPauseReasons.backgroundAndMute=q.isInBackground()&&y;vp(q);_.HI(e)})};
_.k.onYtAutonavPausePlayerEnded=function(){_.tG().resolve(_.fT);var q=144E5;_.T("user_engagement_enable_autoplay_pause_feature")||_.T("is_part_of_any_user_engagement_experiment")||(q=45E5);this.autonavPauseReasons.longIdle=_.Pm()>q;ZKV(this);vp(this)};
_.k.onYtUserActivity=function(){var q=this;this.autonavPauseReasons.userEngagement&&(_.mg(_.pi,function(){_.jA("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",q.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,vp(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.mg(_.pi,function(){_.jA("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",q.userEngagementCsn);_.$8()}),this.autonavPauseReasons.youthereLactExperiment=!1,vp(this));
this.autonavPauseReasons.longIdle&&!_.T("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,vp(this))};
_.k.isInBackground=function(){var q=window.document.visibilityState;return!(!q||q==="visible")};
var vp=function(q){for(var w=!1,u=_.P(Object.values(q.autonavPauseReasons)),y=u.next();!y.done;y=u.next())y=y.value,w=w||y;w?_.lk.getInstance().pause(q.autonavPauseReasons):(q=_.lk.getInstance(),q.autonavState_==3?(q.setState(2,!1,!1),q.autonavPauseReason_=void 0):q.autonavState_==1&&(q.disabledAutonavPauseReason_=void 0))},ZKV=function(q){var w=!1;
if(_.T("enable_autoplay_pause_by_lact")){_.tG().resolve(_.fT);w=_.Fc("autoplay_pause_by_lact_sec")*1E3;var u=_.Fc("autoplay_pause_by_lact_sampling_fraction");(w=_.Pm()>=w&&Math.random()<u)&&!_.T_K()&&(_.mg(_.pi,function(){_.jA("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),w=!1)}w!==q.autonavPauseReasons.youthereLactExperiment&&(q.autonavPauseReasons.youthereLactExperiment=w)&&(q.userEngagementCsn=_.pN(),_.mg(_.pi,function(){_.jA("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",q.userEngagementCsn)}));
q.autonavPauseReasons.userEngagement&&_.mg(_.pi,function(){_.jA("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",q.userEngagementCsn)})};
zxT.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.jA("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.$8(),this.autonavPauseReasons.youthereLactExperiment=!1,vp(this));this.autonavPauseReasons.userEngagement&&(_.jA("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,vp(this))};
zxT.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var bN=function(){var q=_.Y.apply(this,arguments)||this;q.miniGuideVisible=!1;q.guideOpened=_.T("disable_initial_guide_state_fix")?!1:q.canFitPersistentGuide(q.initialBodyClientWidth);q.guideUserStateOpened=q.getInitialGuideUserStateOpened();q.isFullscreenShorts=!1;q.miniGuideWidthThreshold=_.Fc("kevlar_mini_guide_width_threshold",791);q.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");q.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
q.persistentGuideBlockedPagePathRegex=new RegExp(q.persistentGuideBlockedPagesPatterns.join("|"));q.animationTransitionDuration=0;q.lateDataResolver=_.S6();q.initialGuideDataFetchFailed=!1;q.initialLoad=!0;q.guideRenderers=new Set;q.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return q};
_.O(bN,_.Y);_.k=bN.prototype;_.k.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.k.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.k.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.k.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.k.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.k.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.k.ready=function(){_.tG().addProvider({provide:_.aT,useValue:this.hostElement})};
_.k.attached=function(){var q=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Fj(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Fj(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Fj(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Fj(this,this.onYtGuideShow));_.KJ(this,function(){q.animationTransitionDuration=200})};
_.k.detached=function(){document.removeEventListener("yt-navigate-finish",_.Fj(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Fj(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Fj(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Fj(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Fj(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Fj(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Fj(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.k.getData=function(){return this.data};
_.k.load=function(){var q=this,w,u,y,e;return _.F(function(t){switch(t.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=q.lateDataResolver.resolve.bind(q),t.return(q.lateDataResolver.promise);if(window.ytInitialGuideData)return w=_.S6(),w.resolve(window.ytInitialGuideData),t.return(w.promise);y=!1;_.tD(t,2);return _.H(t,q.fetchGuideData(),4);case 4:u=t.yieldResult;_.jv(t,3);break;case 2:e=_.nm(t),e.message==="Returned error"&&(y=!0);
case 3:if(u)return t.return(u);q.onYtGuideClose();y||(q.initialGuideDataFetchFailed=!0);return t.return(q.lateDataResolver.promise)}})};
_.k.fetchGuideData=function(){var q=this,w,u,y,e,t,X,G;return _.F(function(n){if(n.nextAddress==1)return w=_.tG(),q.guidePromise||(u=w.resolve(_.oi),q.guidePromise=_.cR(u,YPB)),_.H(n,q.guidePromise,2);if(n.nextAddress!=3)return y=n.yieldResult,e=w.resolve(_.gq),_.H(n,e(),3);(t=n.yieldResult)&&((X=y)==null?void 0:(G=X.responseContext)==null?void 0:G.maxAgeSeconds)!==0&&t.put("service:guide:fallback",new _.ub({innertubeResponse:y}));return n.return(y)})};
_.k.initializeGuideDataIfEmpty=function(){var q=this,w,u;return _.F(function(y){if(y.nextAddress==1){if(!q.initialGuideDataFetchFailed||q.data)return y.return();_.tD(y,2);return _.H(y,q.fetchGuideData(),4)}if(y.nextAddress!=2)return(w=y.yieldResult)&&q.lateDataResolver.resolve(w),_.jv(y,0);u=_.nm(y);_.Y8(u);_.HI(y)})};
_.k.initializeGuideData=function(){var q=this,w;return _.F(function(u){switch(u.nextAddress){case 1:return _.Hr(yGK(),{mainAppWeb:_.gC()}),_.tD(u,2),_.H(u,q.load(),4);case 4:q.data=u.yieldResult;_.jv(u,3);break;case 2:_.nm(u),_.Wr(yGK(),"FAILURE");case 3:w=q.data&&q.data.items&&q.data.items.length>0?"SUCCESS":"FAILURE",_.Wr(yGK(),w),_.HI(u)}})};
_.k.setGuideData=function(q){var w=this,u,y;return _.F(function(e){if(e.nextAddress==1)return w.disabled?e.return():w.data?(q.data=w.data,w.guideRenderers.add(q),e.return()):_.H(e,w.initializeGuideData(),2);w.graftGuideToPage();u=_.RX("IS_HOMEPAGE_COLD")?"eop":void 0;_.T("disable_element_pool_populator")?w.setGuideDataAfterInit(q):(y=new _.RN(1,u),_.cd(y,w.setGuideDataAfterInit.bind(w,q)));_.HI(e)})};
_.k.setGuideDataAfterInit=function(q){q.data=this.data;q.markDirty();this.guideRenderers.add(q);_.vj(function(){_.D_("gle")});
_.KJ(this,function(){_.D_("gpe")})};
_.k.graftGuideToPage=function(){if(this.data){var q=this.data&&this.data.trackingParams;q&&(q=_.Tj(q),_.tb(_.Qz(),q))}};
_.k.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Fj(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.k.onDrawerOpenedChanged=function(q,w){!w.value&&this.guideOpened&&(this.guideOpened=!1)};
_.k.onYtGuideToggle=function(q){var w=this.guideOpened;this.guideOpened=!w;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var u=_.UC();_.TM(0,109,!this.guideUserStateOpened);u.save()}this.updateGuideDrawerElementState();if(this.guideElement){var y;this.guideOpened&&((y=q.detail)==null?0:y.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Fj(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.Fj(this,
this.onAppDrawerTransitioned))}w||this.initializeGuideDataIfEmpty()};
_.k.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Fj(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.q5(this.guideElement)};
_.k.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Fj(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(oBc(this.guideOpened))};
_.k.guidePersistentAndVisibleChanged=function(){_.X4(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.k.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.tr({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.k.miniGuideVisibleChanged=function(){_.X4(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.k.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(oBc(this.guideOpened)),this.initialLoad=!1);_.X4(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.k.activeEndpointChanged=function(){_.X4(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.k.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.k.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()};
_.k.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var q=this.canFitPersistentGuide(this.cachedClientWidth);q?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=q}this.updateGuideDrawerElementState()};
_.k.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.k.getGuideOpened=function(){return this.guideOpened};
_.k.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.k.getActiveEndpoint=function(){return this.activeEndpoint};
_.k.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.k.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&&_.t7(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.k.computeGuidePersistentAndVisible=function(){var q=this;_.bf(this,"computeGuidePersistentAndVisible",function(){q.guidePersistentAndVisible=q.guideOpened&&q.guidePersistent;q.guideIsVisibleButNotPersistent=!(!q.guideOpened||q.guidePersistent)})};
_.k.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.k.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.k.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.k.startLoadingWatch=function(){this.closeGuide()};
_.k.startLoadingShorts=function(){_.T("web_hide_guide_on_shorts")&&this.closeGuide()};
_.k.onYtNavigateFinish=function(q,w){if(!_.kf||w){this.activeEndpoint=w.endpoint;this.pageType=w.pageType;this.pageUrl=w.response.url;var u,y;q=(y=_.C((u=w.endpoint)==null?void 0:u.commandMetadata,_.wk))==null?void 0:y.url;!this.pageUrl&&q&&(this.pageUrl=q);_.T("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.k.getVisibleGuideRenderer=function(){for(var q=_.P(this.guideRenderers),w=q.next();!w.done;w=q.next())if(w=w.value,this.miniGuideVisible&&w.is==="ytd-mini-guide-renderer"||this.guideOpened&&w.is==="ytd-guide-renderer")return w;return null};
_.k.markGuideRendererDirty=function(q){if(q){typeof q.markDirty==="function"&&q.markDirty();q=_.P([].concat(_.Cm(_.A(q).children)));for(var w=q.next();!w.done;w=q.next())this.markGuideRendererDirty(w.value)}};
_.k.persistentGuideEnabled=function(q,w){if(!w||q==="watch"||q==="settings"||q==="shorts"&&this.isFullscreenShorts||_.T("reels_web_disable_persistent_guide_shorts")&&q==="shorts")return!1;var u=_.QV(w)||"";return _.T("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(y){return u===y}):!this.persistentGuideBlockedPagePathRegex.test(u)};
_.k.canFitPersistentGuide=function(q){var w=_.Fc("kevlar_persistent_guide_width_threshold",1312);return w===-1||_.T("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:q>w};
_.k.canFitMiniGuide=function(q){return this.miniGuideWidthThreshold===-1?!1:q>this.miniGuideWidthThreshold};
_.k.onResize=function(){var q=this;_.bf(this,"calculateGuideState",function(){q.onResizeDebounced()})};
_.k.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.k.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.k.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.k.getInitialGuideUserStateOpened=function(){return!_.UC().getFlag(109)};
_.x$.Object.defineProperties(bN.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Et("initialBodyClientWidth")||window.innerWidth}}});
bN.prototype.onResize=bN.prototype.onResize;bN.prototype.observeForMiniGuideVisible=bN.prototype.observeForMiniGuideVisible;bN.prototype.computeGuidePersistentAndVisible=bN.prototype.computeGuidePersistentAndVisible;bN.prototype.cachedClientWidthChanged=bN.prototype.cachedClientWidthChanged;bN.prototype.resetGuide=bN.prototype.resetGuide;bN.prototype.activeEndpointChanged=bN.prototype.activeEndpointChanged;bN.prototype.guideOpenedChanged=bN.prototype.guideOpenedChanged;
bN.prototype.miniGuideVisibleChanged=bN.prototype.miniGuideVisibleChanged;bN.prototype.guideIsVisibleButNotPersistentChanged=bN.prototype.guideIsVisibleButNotPersistentChanged;bN.prototype.guidePersistentAndVisibleChanged=bN.prototype.guidePersistentAndVisibleChanged;bN.prototype.onGuideElementChanged=bN.prototype.onGuideElementChanged;bN.prototype.onGuidePersistentChanged=bN.prototype.onGuidePersistentChanged;bN.prototype.onRenderGuideChanged=bN.prototype.onRenderGuideChanged;
bN.prototype.onActiveEndpointChanged=bN.prototype.onActiveEndpointChanged;bN.prototype.onMiniGuideVisibleChanged=bN.prototype.onMiniGuideVisibleChanged;bN.prototype.onGuideIsVisibleButNotPersistentChanged=bN.prototype.onGuideIsVisibleButNotPersistentChanged;bN.prototype.onGuidePersistendAndVisibleChanged=bN.prototype.onGuidePersistendAndVisibleChanged;_.c([_.D(_.mF),_.h("design:type",Object)],bN.prototype,"ironResizableBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],bN.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],bN.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],bN.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],bN.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],bN.prototype,"disabled",void 0);
_.c([_.v(),_.h("design:type",Boolean)],bN.prototype,"guidePersistentAndVisible",void 0);_.c([_.nL("guidePersistentAndVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bN.prototype,"onGuidePersistendAndVisibleChanged",null);_.c([_.v(),_.h("design:type",Boolean)],bN.prototype,"guideIsVisibleButNotPersistent",void 0);
_.c([_.nL("guideIsVisibleButNotPersistent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bN.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.c([_.v(),_.h("design:type",Object)],bN.prototype,"miniGuideVisible",void 0);_.c([_.nL("miniGuideVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bN.prototype,"onMiniGuideVisibleChanged",null);_.c([_.v(),_.h("design:type",Boolean)],bN.prototype,"forceMiniGuideClose",void 0);
_.c([_.v(),_.h("design:type",Object)],bN.prototype,"activeEndpoint",void 0);_.c([_.nL("activeEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bN.prototype,"onActiveEndpointChanged",null);_.c([_.v(),_.h("design:type",Boolean)],bN.prototype,"renderGuide",void 0);_.c([_.nL("renderGuide"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bN.prototype,"onRenderGuideChanged",null);
_.c([_.v(),_.h("design:type",Object)],bN.prototype,"guideOpened",void 0);_.c([_.v(),_.h("design:type",Boolean)],bN.prototype,"guidePersistent",void 0);_.c([_.nL("guidePersistent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bN.prototype,"onGuidePersistentChanged",null);_.c([_.v(),_.h("design:type",Object)],bN.prototype,"guideUserStateOpened",void 0);_.c([_.v(),_.h("design:type",String)],bN.prototype,"pageUrl",void 0);
_.c([_.v(),_.h("design:type",String)],bN.prototype,"pageType",void 0);_.c([_.v(),_.h("design:type",Number)],bN.prototype,"cachedClientWidth",void 0);_.c([_.v(),_.h("design:type",Object)],bN.prototype,"guideElement",void 0);_.c([_.v({selector:_.Hy}),_.h("design:type",Object)],bN.prototype,"isFullscreenShorts",void 0);_.c([_.nL("guideElement"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bN.prototype,"onGuideElementChanged",null);
_.c([_.nL("guidePersistentAndVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bN.prototype,"guidePersistentAndVisibleChanged",null);_.c([_.I9("guideIsVisibleButNotPersistent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bN.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.c([_.nL("miniGuideVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bN.prototype,"miniGuideVisibleChanged",null);_.c([_.I9("guideOpened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bN.prototype,"guideOpenedChanged",null);_.c([_.nL("activeEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bN.prototype,"activeEndpointChanged",null);
_.c([_.I9("pageUrl"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bN.prototype,"resetGuide",null);_.c([_.I9("cachedClientWidth"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bN.prototype,"cachedClientWidthChanged",null);_.c([_.nL("guideOpened","guidePersistent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bN.prototype,"computeGuidePersistentAndVisible",null);
_.c([_.I9("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bN.prototype,"observeForMiniGuideVisible",null);_.c([_.Gm("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bN.prototype,"onResize",null);bN=_.c([_.E({disableElementRegistration:!0,is:"yt-guide-manager"})],bN);var pdA=_.R(bN,"yt-guide-manager",void 0,{mode:_.kB("kevlar_poly_si_batch_j081")?1:2});var Y4=function(){var q=_.Y.apply(this,arguments)||this;q.JSC$17640_keyboardInUse=!1;q.boundHandleCapturedKeydownEvent=function(w){q.handleCapturedKeydownEvent(w)};
return q};
_.O(Y4,_.Y);_.k=Y4.prototype;_.k.attached=function(){this.listenToDocument(document)};
_.k.listenToDocument=function(q){q.addEventListener("keydown",_.Fj(this,this.onKeyDownEvent));q.addEventListener("keyup",_.Fj(this,this.onKeyUpEvent));q.addEventListener("mousedown",_.Fj(this,this.onMouseDownEvent));_.T("desktop_keyboard_capture_keydown_killswitch")||q.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);q.addEventListener("yt-page-data-updated",_.Fj(this,this.onPageUpdate))};
_.k.detached=function(){this.unlistenFromDocument(document)};
_.k.unlistenFromDocument=function(q){q.removeEventListener("keydown",_.Fj(this,this.onKeyDownEvent));q.removeEventListener("keyup",_.Fj(this,this.onKeyUpEvent));q.removeEventListener("mousedown",_.Fj(this,this.onMouseDownEvent));_.T("desktop_keyboard_capture_keydown_killswitch")||q.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);q.removeEventListener("yt-page-data-updated",_.Fj(this,this.onPageUpdate))};
_.k.ready=function(){_.tG().addProvider({provide:_.LK,useValue:this})};
_.k.isKeyBoardInUse=function(){return this.JSC$17640_keyboardInUse};
_.k.handleCapturedKeydownEvent=function(q){if(q.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(q)};
_.k.onMouseDownEvent=function(){this.JSC$17640_keyboardInUse=!1};
_.k.onPageUpdate=function(){if(_.T("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.T("web_shorts_keyboard_shortcut_usage_log")){_.Be.clear();for(var q=_.P(_.Mh),w=q.next();!w.done;w=q.next()){var u=_.P(w.value);w=u.next().value;u=u.next().value;u=_.oV(u);_.Be.set(w,u);_.EC(_.pN(),_.ZB(),u)}_.xi.clear();q=_.P(_.K2);for(w=q.next();!w.done;w=q.next())u=_.P(w.value),w=u.next().value,u=u.next().value,u=_.oV(u),_.xi.set(w,u),_.EC(_.pN(),_.ZB(),u);_.RD(_.pN(),_.ZB(),[].concat(_.Cm(_.xi.values()),
_.Cm(_.Be.values())));_.SB(_.pN(),[].concat(_.Cm(_.xi.values()),_.Cm(_.Be.values())))}};
_.k.onMiniplayerActiveChange=function(){var q;(q=_.tG().resolve(_.$X).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(q.document):this.unlistenFromDocument(q.document))};
_.k.ignoreKeyEvent=function(q){if(q.ctrlKey||q.altKey)if(_.T("kevlar_macro_markers_keyboard_shortcut")){if(q.keyCode!==37&&q.keyCode!==39)return!0}else return!0;var w=_.SQ(q)||[];return _.O4K(w)?!0:q.defaultPrevented?(n_(q.keyCode,q.shiftKey,this.isShortsPage),!0):q.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(q):!1};
_.k.isSpacebarClick=function(q){var w=q||window.event;var u;w.composedPath&&typeof w.composedPath==="function"?u=w.composedPath():u=w.path;u&&u.length?w=u[0]:(w=w||window.event,w=w.target||w.srcElement,w.nodeType==3&&(w=w.parentNode));return w&&q.keyCode===32&&(q=w.tagName==="BUTTON"||w.tagName==="A"||w.tagName==="INPUT",w=(w=w.getAttribute("role"))&&(w==="option"||w==="button"||w.indexOf("menuitem")===0),q||w)?!0:!1};
_.k.onKeyDownEvent=function(q){if(!this.ignoreKeyEvent(q)&&(q.keyCode===191&&(q.shiftKey||q.metaKey?q.repeat!=null&&q.repeat||(this.openHotkeyDialog(),n_(q.keyCode,q.shiftKey,this.isShortsPage)):(this.focusSearchBox(),q.preventDefault())),!q.metaKey)){var w=_.tG().resolve(_.$X);switch(q.keyCode){case 9:this.JSC$17640_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(q);break;case 84:w.pipController.getWindow()&&window.focus();this.toggleTheaterMode(q.keyCode,q.shiftKey);break;case 73:w.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(q.keyCode,q.shiftKey);break;case 70:if(this.isShortsPage&&_.T("web_fullscreen_shorts")){_.VZx();break}this.isMiniplayerActive()?w.pipController.getWindow()&&(w.close(!0),window.focus()):this.passEventToPlayer(q);break;case 27:this.closeMiniplayer(q.keyCode,q.shiftKey)||this.passEventToPlayer(q);break;case 13:q.shiftKey&&_.T("web_ephemeral_actions")&&_.tG().resolve(_.XH).activate(q);break;default:this.passEventToPlayer(q)}}};
_.k.onKeyUpEvent=function(q){if(!this.ignoreKeyEvent(q))if(_.T("web_speedmaster_spacebar_control")&&q.keyCode===32)this.handlePlayerSpaceKey(q,!0);else{var w=this.getPlayerManager();w&&(w=w.getPlayer())&&w.handleGlobalKeyUp(q.keyCode,q.shiftKey,q.ctrlKey,q.altKey,q.metaKey,q.key,q.code)}};
_.k.getPlayerManager=function(){var q=_.xo(),w=_.tG().resolve(_.kF(_.KT));return q&&w&&w.isOnWatch()?q:null};
_.k.passEventToPlayer=function(q,w){var u=this,y,e,t;return _.F(function(X){if(X.nextAddress==1)return!_.T("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&u.isMiniplayerActive()?y=_.tG().resolve(_.$X).getPlayerElement():u.inlinePreviewIsActive?(e=_.X4(u.hostElement,"yt-get-inline-preview-player-action"))&&e[0]&&(y=e[0]):y=_.xo(),y?_.H(X,y.getPlayerPromise(),3):X.jumpTo(0);t=X.yieldResult;w?t.handleGlobalKeyUp(q.keyCode,q.shiftKey,q.ctrlKey,q.altKey,q.metaKey,q.key,q.code,q.repeat):t.handleGlobalKeyDown(q.keyCode,
q.shiftKey,q.ctrlKey,q.altKey,q.metaKey,q.key,q.code,q.repeat);q.keyCode!==38&&q.keyCode!==40&&n_(q.keyCode,q.shiftKey,u.isShortsPage);_.HI(X)})};
_.k.focusSearchBox=function(){_.t7(this.hostElement,"yt-focus-searchbox")};
_.k.openHotkeyDialog=function(){_.t7(this.hostElement,"yt-open-hotkey-dialog")};
_.k.isMiniplayerActive=function(){return _.tG().resolve(_.$X).isMiniplayerActive()};
_.k.closeMiniplayer=function(q,w){return this.isMiniplayerActive()?(_.tG().resolve(_.$X).close(),n_(q,w,this.isShortsPage),!0):!1};
_.k.toggleTheaterMode=function(q,w){var u=_.on(_.Mt().getState()),y=this.getPlayerManager(),e=_.T("disable_theater_mode_keyboard")||_.RX("START_IN_FULL_WINDOW_MODE");y&&!e&&(u=!u,_.uy()&&_.T("external_fullscreen")&&(u=!0),_.Pw(this.hostElement,"yt-toggle-theater-mode",[u]),n_(q,w,this.isShortsPage))};
_.k.toggleMiniplayer=function(q,w){var u=this.getPlayerManager();if(this.isMiniplayerActive()){var y;((y=_.tG().resolve(_.kF(_.KT)))==null?0:y.isOnWatch())?_.tG().resolve(_.$X).close(!0):_.In(_.tG().resolve(_.$X));n_(q,w,this.isShortsPage)}else u&&(_.Pw(this.hostElement,"yt-activate-miniplayer-from-watch-action"),n_(q,w,this.isShortsPage))};
_.k.handlePlayerSpaceKey=function(q,w){var u=!!_.xo()||this.isMiniplayerActive();u=_.T("disable_space_scroll_fix")||u;_.T("global_spacebar_pause")&&!this.isKeyBoardInUse()&&u&&(q.preventDefault(),this.passEventToPlayer(q,w))};
Y4.prototype.onMiniplayerActiveChange=Y4.prototype.onMiniplayerActiveChange;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Y4.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],Y4.prototype,"ytdReduxBehavior",void 0);_.c([_.v({selector:_.HG7}),_.h("design:type",Boolean)],Y4.prototype,"inlinePreviewIsActive",void 0);_.c([_.v({selector:_.Cox}),_.h("design:type",Boolean)],Y4.prototype,"isShortsPage",void 0);
_.c([_.v({selector:_.DV}),_.h("design:type",Boolean)],Y4.prototype,"miniplayerIsActive",void 0);_.c([_.nL("miniplayerIsActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Y4.prototype,"onMiniplayerActiveChange",null);Y4=_.c([_.E({disableElementRegistration:!0,is:"yt-hotkey-manager"})],Y4);_.R(Y4,"yt-hotkey-manager",void 0,{mode:_.kB("kevlar_poly_si_batch_j081")?1:2});var gl=function(){var q=_.Y.apply(this,arguments)||this;q.loopStateEntityKey_=null;q.playlistLoopStateEntity_=null;q.isShuffleNextPlaylist=!1;q.PLAYER_EVENTS_=new Map;q.playerListenersSetup_=!1;q.videoSkipJob_=0;q.canAutoAdvance_=!1;q.playerManager_=null;q.TEST_ONLY={};return q};
_.O(gl,_.Y);_.k=gl.prototype;_.k.ready=function(){_.tG().addProvider({provide:_.z5,useValue:this.hostElement})};
_.k.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_)};
_.k.attached=function(){document.addEventListener("yt-navigate-start",_.Fj(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Fj(this,this.onYtNavigateFinish_))};
_.k.detached=function(){document.removeEventListener("yt-navigate-start",_.Fj(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Fj(this,this.onYtNavigateFinish_))};
_.k.updatePlaylistEventListeners=function(q,w){w&&!this.playerListenersSetup_?(this.playerManager_=q,this.registerPlaylistEventListeners_(q)):!w&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(q))};
_.k.setPlayer=function(q){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=q};
_.k.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.k.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.k.registerPlaylistEventListeners_=function(q){var w=this;q.getPlayerPromise().then(function(u){w.playerListenersSetup_||(w.ytPlayerListenerBehavior.listenToPlayerEvents(u,w.PLAYER_EVENTS_),w.playerListenersSetup_=!0)})};
_.k.removePlaylistEventListeners_=function(q){var w=this;q.getPlayerPromise().then(function(u){w.playerListenersSetup_&&(w.ytPlayerListenerBehavior.unlistenFromPlayerEvents(u,w.PLAYER_EVENTS_),w.playerListenersSetup_=!1)})};
_.k.setPlaylistComponent=function(q){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Fj(this,this.onPlaylistYtNavigate_)),q&&(q.data&&this.playlistComponent.data&&q.data.playlistId==this.playlistComponent.data.playlistId?(q.loopOn=this.playlistComponent.loopOn,q.shuffleOn=this.playlistComponent.shuffleOn):(q.loopOn=!1,q.shuffleOn=!1),this.isShuffleNextPlaylist&&(q.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=q;this.playlistComponent.addEventListener("yt-navigate",
_.Fj(this,this.onPlaylistYtNavigate_))};
_.k.setAutoplayRenderer=function(q){this.autoplayData=q};
_.k.setPlaylistData=function(q){this.currentPlaylistData_=q;_.t7(this.hostElement,"yt-playlist-data-updated");_.db.isEmpty(q)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(q)};
_.k.setPlayerPlaybackControlData=function(q){this.playerManager_&&this.playerManager_.updatePlayerComponents(q.playlistPanelRenderer)};
_.k.getPlaylistData=function(){return this.currentPlaylistData_};
_.k.getTempData_=function(q,w){if(this.playlistComponent==null)return null;q={};this.playlistComponent.shuffleOn&&(q.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(q.loop_on=this.playlistComponent.loopOn);w&&(q.autonav="1",_.tG().resolve(_.fT),w=_.Pm(),w>0&&(q.lact=w),this.playerManager_&&(w=this.playerManager_.getPlayer())&&w.shouldSendVisibilityState()&&(w=w.getVisibilityState(),w!=0&&(q.vis=w)));_.T("enable_unknown_lact_fix_on_html5")&&(_.tG().resolve(_.fT),q.lact=
_.Pm());return q};
_.k.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.k.setLoopStateEntityKey_=function(q){var w;this.loopStateEntityKey_=((w=this.getPlaylistLoopData_(q))==null?void 0:w.playlistLoopStateEntityKey)||null};
_.k.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.k.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.k.skipVideo=function(){var q=this,w=_.T("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||w)w=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.iq(_.pi,function(){q.onPlaylistNext();q.videoSkipJob_=0},w)};
_.k.cancelVideoSkip=function(){this.videoSkipJob_&&(_.pi.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.k.isInBackground_=function(){var q=window.document.visibilityState;return!(!q||q=="visible")};
_.k.onPlaylistIndex_=function(q){this.playlistComponent&&(q=this.playlistComponent.data.contents[q].playlistPanelVideoRenderer.navigationEndpoint,_.t7(this.hostElement,"yt-navigate",{endpoint:q,tempData:this.getTempData_(q)}))};
_.k.onPlayerStateChange_=function(q){if(q=q==0&&this.playlistComponent&&this.canAutoAdvance_)q=_.lk.getInstance(),q=!(q.autonavState_===3?q.autonavPauseReason_&&q.autonavPauseReason_.inputBoxFocus===!0:q.autonavState_===1&&q.disabledAutonavPauseReason_&&q.disabledAutonavPauseReason_.inputBoxFocus===!0);q&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.k.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.k.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.k.navigateToAutoplayWatchEndpoint_=function(q,w,u){var y=this.playlistComponent.data.currentIndex,e=this.getNumPlayableVideos_();q=="NORMAL"&&w=="autoplayVideo"&&y+1>=e&&u||!(q=this.getVideoEndpoint_(q,w))||(u=this.getTempData_(q,u),_.t7(this.hostElement,"yt-navigate",{endpoint:q,tempData:u}))};
_.k.getNumPlayableVideos_=function(){for(var q=0,w=_.P(this.playlistComponent.data.contents||[]),u=w.next();!u.done;u=w.next())u.value.playlistPanelVideoRenderer&&(q+=1);return q};
_.k.getVideoEndpoint_=function(q,w){if(this.autoplayData&&this.autoplayData.sets)for(var u=0,y=this.autoplayData.sets.length;u<y;u++){var e=this.autoplayData.sets[u];if(e.mode==q){if(e[w])return e[w];break}}else q=new _.fv("AutoplayData is undefined in playlist manager","Mode: "+q+" endpoint: "+w),_.Y8(q)};
_.k.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.k.onPlaylistYtNavigate_=function(q){if(q.detail.endpoint){q.stopPropagation();var w=q.detail;w.tempData=this.getTempData_(q.detail.endpoint);_.t7(this.hostElement,"yt-navigate",w)}};
_.k.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.k.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.k.playlistLoopStateEntityChanged_=function(q){var w=this,u,y,e;return _.F(function(t){if(t.nextAddress==1){if(!q)return t.return();u=q.state==="PLAYLIST_LOOP_STATE_ONE";return w.playerManager_?_.H(t,w.playerManager_.getPlayerPromise(),3):t.jumpTo(2)}t.nextAddress!=2&&(y=t.yieldResult,y.setLoopVideo(u));e=q.state==="PLAYLIST_LOOP_STATE_ALL";w.playlistComponent&&(w.playlistComponent.loopOn=e);_.HI(t)})};
_.k.getPlaylistLoopData_=function(q){var w,u;if(q=q==null?void 0:(w=q.playlistButtons)==null?void 0:(u=w.menuRenderer)==null?void 0:u.topLevelButtons)for(w=_.P(q),u=w.next();!u.done;u=w.next())if(u=u.value,u.playlistLoopButtonRenderer)return u.playlistLoopButtonRenderer};
_.k.getLoopStateCommand_=function(q){var w=this.getPlaylistData(),u;w=((u=this.getPlaylistLoopData_(w))==null?void 0:u.states)||[];var y;q=(y=_.C(w[q?1:2],_.Lwk))==null?void 0:y.button;var e;return(e=_.C(q,_.aB))==null?void 0:e.command};
_.k.onPlayerLoopChange_=function(q){this.playlistLoopStateEntity_&&(q?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(q=this.getLoopStateCommand_(q))&&this.ytComponentBehavior.resolveCommand(q)};
_.k.onSleepTimerSettingsChanged_=function(q){this.canAutoAdvance_=q!=="End of video"};
gl.prototype.onPlaylistLoopStateEntityChanged=gl.prototype.onPlaylistLoopStateEntityChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],gl.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.b7.YtPlayerListenerBehavior),_.h("design:type",_.Yp)],gl.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],gl.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],gl.prototype,"loopStateEntityKey_",void 0);
_.c([_.v({selectorArgs:["loopStateEntityKey_"],selector:_.UeM}),_.h("design:type",Object)],gl.prototype,"playlistLoopStateEntity_",void 0);_.c([_.nL("playlistLoopStateEntity_"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gl.prototype,"onPlaylistLoopStateEntityChanged",null);gl=_.c([_.E({disableElementRegistration:!0,is:"yt-playlist-manager"})],gl);_.R(gl,"yt-playlist-manager",void 0,{mode:_.kB("kevlar_poly_si_batch_j081")?1:2});var $qq,vYH=function(){if($qq!==void 0)return $qq;var q=document.createElement("template");_.f(q,"\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");q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return $qq=q};var EB=function(){var q=_.Y.apply(this,arguments)||this;q.lastCallback=null;q.getAccountLinkPromises={};q.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);q.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return q};
_.O(EB,_.Y);_.k=EB.prototype;_.k.getLocation=function(){return window.location.href};
_.k.getCompletionUrl=function(){return _.Bf(this.getLocation())};
_.k.containsRedirectState=function(q){return(q=_.o5(_.xnM(q)))?(new URLSearchParams(q)).get("redirect_state")!==null:!1};
_.k.createGalConfig=function(q,w){var u=new jVa;q=u=w?this.getPopupOrRedirectSetting(u,_.Et("LINK_API_KEY"),_.Et("LINK_API_KEY_REDIRECT"),q):lKc(u,_.Et("LINK_API_KEY"));q.authUser=_.Et("SESSION_INDEX")||0;q.supportedFlows=new Set([4]);return q.build()};
_.k.getPopupOrRedirectSetting=function(q,w,u,y){this.isGalInteractionPopupMode(y)?(q.interactionMode=0,q=lKc(q,w)):(q.interactionMode=1,w=this.getCompletionUrl(),q.completionUrl=w,q=lKc(q,u));return q};
_.k.isGalInteractionPopupMode=function(q){if(this.redirectModeProviderAllowlist.has(q))switch(q){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.T("main_web_redirect_integration_riot");default:return!1}return!0};
_.k.getStatusEntityKeyForProviderId=function(q){return _.na(q+":all","accountLinkStatusEntity")};
_.k.findNestedPropValue=function(q,w){var u=!1,y=null;JSON.stringify(q,function(e,t){u||e!==w||(u=!0,y=t);return u?null:t});
return y};
_.k.findAccountLinkButtonViewModel=function(q,w){var u=null,y=!1;JSON.stringify(q,function(e,t){y||t.accountLinkStatusEntityKey!==w||t.accountLinkStatusSecondaryEntityKey||(y=!0,u=t);return y?null:t});
return u};
_.k.executeLinkingSuccessOrFailureCommands=function(q,w,u){var y=null,e;(w==null?0:(e=w.url)==null?0:e.includes("account_sharing"))?y=w==null?void 0:w.response:y=w==null?void 0:w.response;(w=this.findAccountLinkButtonViewModel(y,q))?(q=u?this.findNestedPropValue(w,"onSuccessCommand"):this.findNestedPropValue(w,"onFailureCommand"))?_.sC([q],this.hostElement):_.jZ(Error("dl")):_.jZ(Error("el`"+q))};
_.k.handleInitializeRequest=function(q,w){var u=this,y=Aqa(this.createGalConfig(q,!0));this.containsRedirectState(this.getLocation())?QAq(q,y.config,y.galService).then(function(e){var t=u.getStatusEntityKeyForProviderId(q);if(e.statusCode===1)w&&u.executeLinkingSuccessOrFailureCommands(t,w,!0),e=u.getLocation().indexOf("#"),e!==-1&&window.history.pushState(null,"",u.getLocation().substring(0,e));else return w&&u.executeLinkingSuccessOrFailureCommands(t,w,!1),Promise.reject(Error(e.statusMessage))}).catch(function(e){_.Y8(e);
_.pn("gamingAccountLinkStatusChanged",{serviceId:q,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(e)}):this.getAccountLinkPromises[q]=y.startLinkingSession({serviceId:q})};
_.k.handleAccountLinkCommand=function(q){_.C(q,ve6)&&this.handleLinkRequest(_.C(q,ve6))};
_.k.handleLinkRequest=function(q){var w=this,u=q.thirdPartyId;if(u)if(this.isGalInteractionPopupMode(u)){var y=function(){w.closeAndFire("ytd-gaming-account-link-setting-renderer",q.onFailureCommand)},e=function(){w.closeAndFire("ytd-gaming-account-link-setting-renderer",q.onSuccessCommand)};
this.lastCallback=e;this.getAccountLinkPromises[u].then(function(t){Vg6(t).then(function(X){X.statusCode===1?e():y()})}).catch(function(){y()})}else this.getAccountLinkPromises[u].then(function(t){Vg6(t).then(function(X){if(X.statusCode!==1)return Promise.reject(Error(X.statusMessage))})}).catch(function(t){_.Y8(t);
_.pn("gamingAccountLinkStatusChanged",{serviceId:u,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(t)})};
_.k.closeAndFire=function(q,w){_.Pw(this.hostElement,"yt-close-popup-action",[q]);w&&_.sC([w],this.hostElement)};
_.k.handleAccountUnlinkCommand=function(q){_.C(q,b14)&&this.handleUnlinkRequest(_.C(q,b14))};
_.k.handleUnlinkRequest=function(q){var w=this,u=q.thirdPartyId;if(u){var y=function(){w.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",q.onFailureCommand)},e=function(){w.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",q.onSuccessCommand)};
this.lastCallback=e;var t=Aqa(this.createGalConfig(u,!1));this.unlinkUserGal(t,u).then(function(X){X.statusCode===1?e():y()}).catch(function(){y()})}};
_.k.unlinkUserGal=function(q,w){return q.deleteLink(w)};
_.k.handleLogAccountLinkingEventCommand=function(q){_.T("enable_gel_log_commands")&&_.C(q,Yz6)&&(q=_.C(q,Yz6).event)&&_.pn("gamingAccountLinkStatusChanged",q)};
_.x$.Object.defineProperties(EB,{template:{configurable:!0,enumerable:!0,get:function(){return vYH()}}});
_.c([_.D(_.ux.YtOpenPopupBehavior),_.h("design:type",Object)],EB.prototype,"ytOpenPopupBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],EB.prototype,"ytActionHandlerBehavior",void 0);EB=_.c([_.E({disableElementRegistration:!0,is:"ytd-third-party-manager"})],EB);_.R(EB,"ytd-third-party-manager",function(){return vYH()},{mode:_.kB("kevlar_poly_si_batch_j081")?1:2});var bKV,Y76=function(){return bKV!==void 0?bKV:bKV=document.createElement("template")};
document.head.appendChild(Y76().content);var gYV,EYa=function(){if(gYV!==void 0)return gYV;var q=document.createElement("template");_.f(q,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");q.content.insertBefore(Y76().content.cloneNode(!0),q.content.firstChild);q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return gYV=q};var RxH=_.Sc(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),Rb=function(){var q=_.Y.apply(this,arguments)||this;q.currentPage=void 0;q.renderLoadingStateJobId=0;q.updatePageDataJobId=0;q.pageDisposeJobsets=new WeakMap;q.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"};q.applyZoomTransition=_.GQ("web_page_transition_type")==="zoom";q.applySlideTransition=_.GQ("web_page_transition_type")==="slide";q.TEST_ONLY=void 0;return q};
_.O(Rb,_.Y);_.k=Rb.prototype;_.k.ready=function(){var q=_.tG();q.addProvider({provide:_.KT,useValue:this});q.addProvider({provide:_.BUx,useValue:this})};
_.k.created=function(){this.pagePool=new nYK;this.contextSwitcher=new OFK};
_.k.attached=function(){_.t7(this.hostElement,"attached");var q=_.tG().resolve(_.kF(_.OP));q&&(this.contextSwitcher.JSC$17464_networkService_=q);this.viewTransitionManager=_.tG().resolve(_.kF(_.Q8));this.setupPageTransitionAnimation()};
_.k.getPageOffset=function(q){return q.getScrollTop()};
_.k.setPageOffset=function(q,w){try{q.setScrollTop(w)}catch(u){}};
_.k.setPageOffsetForNavigation=function(q,w){_.t7(this.hostElement,"yt-navigate-set-page-offset",{page:q,offset:w===void 0?0:w})};
_.k.pauseActiveContext=function(){var q=this.contextSwitcher;q.activeContext_&&q.activeContext_.pause()};
_.k.getModuleNameForType=function(q){return q==="watch"?_.T("kevlar_watch_fixie")?"watchFixie":_.T("kevlar_watch_grid")?"watchGrid":"watchFlexy":q==="shorts"||q==="search"?q:"browse"};
_.k.attachPage=function(q){var w,u=!_.T("pc_is_attached_ks")&&(q==null?void 0:(w=q.polymerController)==null?void 0:w.isAttached);if(!q.isAttached&&!u)try{_.A(this.hostElement).appendChild(q)}catch(e){var y;_.Y8(new _.fv("Error attaching page element for component",{origin:(y=this.currentPage)==null?void 0:y.is,component:q.is}))}};
_.k.setActivePage=function(q){var w=this,u=!1,y=function(){var e=w.isOnWatch(),t=w.currentPage;if(q)if(q!==w.currentPage){t&&(t.hidden=!0,t.active=!1,t.removeAttribute("role"));w.currentPage=q;var X,G=_.QI((X=w.data)==null?void 0:X.endpoint);t&&_.t7(w.hostElement,"yt-page-type-changed",{oldPageType:t.is,newPageType:q.is,newPageSubtype:G});_.cj().dispatch(_.tr({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:q.is}));_.cj().dispatch(_.tr({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:G||""}));q.hidden=
!1;w.attachPage(q);q.active=!0;q.setAttribute("role","main");t&&w.setPageOffsetForNavigation(q,0);_.T("kevlar_remove_page_dom_on_switch")&&!e&&t&&_.A(w.hostElement).removeChild(t)}else u=!0;else e=new _.fv("Unable to set active page",t?t.is:"unknown origin",(G=w.data)==null?void 0:G.endpoint),_.vm(e)};
this.viewTransitionManager?lMq(this.viewTransitionManager,y,this.viewTransitionConfigForSetActivePage(this.currentPage,q)):y();return u};
_.k.viewTransitionConfigForSetActivePage=function(q,w){return _.T("web_thumbnail_to_watch_transition")&&(q==null?void 0:q.is)==="ytd-browse"&&this.isWatchPage(w)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(q==null?void 0:q.is)==="ytd-browse"&&(w==null?void 0:w.is)==="ytd-browse"&&q!==w?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.k.updatePageData=function(q){var w=this,u=this.data;this.updatePageDataJobId&&_.pi.cancelJob(this.updatePageDataJobId);this.data=q;return new _.IA(function(y){var e=function(){q.filler?w.performDataUpdate(q,u):HLA(function(){w.performDataUpdate(q,u)});
var n=_.DU();_.ZU(n,"cr")||n.processSignal("cr");y()},t=function(){q&&q.page==="watch"?w.updatePageDataJobId=_.iq(_.pi,e):e()};
if(_.T("kevlar_enable_mss_page_modules_client")&&q){var X=_.tG().resolve(_.bU),G=w.getModuleNameForType(q.page);(X=hwA(X,[G]))?X.then(t):t()}else t()})};
_.k.isDownloadsPage=function(q){var w,u;return(q==null?void 0:(w=q.endpoint)==null?void 0:(u=w.browseEndpoint)==null?void 0:u.browseId)==="FEdownloads"};
_.k.setPlayerSyncInterval=function(q){var w;return _.F(function(u){if(u.nextAddress==1)return _.H(u,_.tG().resolve(_.kH),2);w=u.yieldResult;w.setUpPositionSyncInterval(q);_.HI(u)})};
_.k.performDataUpdate=function(q,w){_.T("kevlar_early_popup_close")||_.Pw(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var u=!q.filler;u&&(_.D_("lps"),_.T("config_age_report_killswitch")||$um());var y=qp(q),e,t=!1;if(_.T("kevlar_remove_page_dom_on_switch")){var X=w&&qp(w);y===X&&(e=this.getCurrentPage())}e||(e=z8(this.pagePool,y));u&&NNA(this.pagePool.elementPoolPopulator,y);u&&!this.renderLoadingStateJobId&&(t=this.setActivePage(e));if(e){X=y==="watch";var G=
y==="shorts",n=y==="learning_journey_watch";_.T("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(e);if(X||G||n)e.playerData=q.playerResponse;if(G){q.reelWatchSequenceResponse?e.reelWatchSequenceResponse=q.reelWatchSequenceResponse:q.cachedReelWatchSequenceResponse?e.reelWatchSequenceResponse=q.cachedReelWatchSequenceResponse:_.T("web_enable_cached_reel_sequence_fix")&&e.cachedReelWatchSequenceResponse&&!e.reelWatchSequenceResponse&&(e.reelWatchSequenceResponse=e.cachedReelWatchSequenceResponse);
e.currentEndpoint=q.endpoint;var N;e.isPreviousPageShorts=!!(w==null?0:(N=w.endpoint)==null?0:N.reelWatchEndpoint);q.cachedReelWatchSequenceResponse=q.reelWatchSequenceResponse||q.cachedReelWatchSequenceResponse||(w==null?void 0:w.cachedReelWatchSequenceResponse);e.cachedReelWatchSequenceResponse=q.cachedReelWatchSequenceResponse}N=this.isDownloadsPage(q);var Q=this.isDownloadsPage(w);N&&!Q?this.setPlayerSyncInterval(6E5):!N&&Q&&this.setPlayerSyncInterval();_.T("block_all_player_prefetch_requests")||
this.preparePrefetchRequest(q,e,u,X,G,n);LPV(_.tG().resolve(_.$X),w,q);_.ho(_.tG().resolve(_.fT));_.T("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(e);u?(u=typeof e.loadPage,u==="function"?(e.pageContext=ou6(this.contextSwitcher,e,e.data!==q.response),u=function(){e.loadPage(q.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&e.is==="ytd-browse"&&t&&this.isDifferentBrowseId(q==null?void 0:q.endpoint,w==null?void 0:w.endpoint)?
this.applySlideTransition?lMq(this.viewTransitionManager,u,{transitionName:"slide"}):lMq(this.viewTransitionManager,u,{transitionName:"zoom"}):u()):_.bD(new _.fv("b/38014653 ",[y,
e.is,e.nodeName,u,e.isAttached,w&&qp(w),this.hostElement.children.length])),_.D_("pdl")):(e.hidden=!0,q.response.filler=!0,e.data=q.response,this.attachPage(e));_.t7(this.hostElement,"yt-page-data-updated",{pageType:y})}_.mg(_.pi,function(){_.T("logging_avoid_blocking_during_navigation")&&_.LP4().transition("none");var I=guK(),U=e;if(q){var d=U4j(q),V=T1V(q),J;a:{if(q.playerResponse){var a=q.playerResponse,b;if((J=a.auxiliaryUi)==null?0:(b=J.messageRenderers)==null?0:b.upsellDialogRenderer){J=a.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(q.response&&(J=q.response,(a=J.overlay)==null?0:a.upsellDialogRenderer)){J=J.overlay.upsellDialogRenderer;break a}J=void 0}var g;var l;b=(g=q.playerResponse)==null?void 0:(l=g.auxiliaryUi)==null?void 0:l.messageRenderers;g=(b==null?void 0:b.enforcementMessageViewModel)||(b==null?void 0:b.bkaEnforcementMessageViewModel);g=(g==null?void 0:g.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?g:void 0;var S;a:{if(q.response&&(l=q.response,(S=l.overlay)==null?0:S.commandWrapperPromoRenderer)){S=
l.overlay.commandWrapperPromoRenderer;break a}S=void 0}Yex(I,d,V,J,g,S,U)}})};
_.k.preparePrefetchRequest=function(q,w,u,y,e,t){var X,G,n,N,Q,I,U,d,V,J,a,b,g,l,S;return _.F(function(eH){if(eH.nextAddress==1)return!u||!(y||e||t)||_.T("kevlar_disable_background_prefetch")&&_.SZ(_.gQs)()===0?eH.return():(X=_.BR(w))?_.H(eH,X.getPlayerPromise(),2):eH.return();G=eH.yieldResult;n=_.tG().resolve(_.kF(_.OP));if(!n)return eH.return();if(e)return N=_.kX(_.u1),Cfa(N,(Q=q.endpoint)==null?void 0:Q.reelWatchEndpoint,w.reelWatchSequenceResponse,G,n),eH.return();d=(I=q.response)==null?void 0:
(U=I.responseContext)==null?void 0:U.webResponseContextExtensionData;if(!d)return eH.return();g=(V=q.response)==null?void 0:(J=V.contents)==null?void 0:(a=J.twoColumnWatchNextResults)==null?void 0:(b=a.autoplay)==null?void 0:b.autoplay;l=_.tG().resolve(_.z5);S=_.kX(_.u1);dah(S,d,G,n,l,g);_.HI(eH)})};
_.k.movePlayerToWatch=function(q){var w=this,u,y;return _.F(function(e){u=z8(w.pagePool,"watch");y=u.getPlayerContainer();q.appendTo(y);_.HI(e)})};
_.k.movePlayerToShorts=function(q){var w=this,u,y,e;return _.F(function(t){u=z8(w.pagePool,"shorts");y=u.getPlayerContainer();(e=q)==null||e.appendTo(y,void 0,!0);_.HI(t)})};
_.k.getPlayerFromWatch=function(){var q=z8(this.pagePool,"watch");return _.BR(q)};
_.k.getPlayerFromShorts=function(){var q=z8(this.pagePool,"shorts");return _.BR(q)};
_.k.startLoadingWatch=function(){var q=z8(this.pagePool,"watch");this.renderLoadingStateJobId?(_.pi.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(q)};
_.k.startLoadingShorts=function(){var q=z8(this.pagePool,"shorts");this.setActivePage(q)};
_.k.startLoadingLearningJourney=function(){var q=z8(this.pagePool,"learning_journey_watch");this.setActivePage(q)};
_.k.getCurrentPage=function(){return this.currentPage};
_.k.getDestinationPageType=function(){return this.destinationPageType};
_.k.getCurrentData=function(){return this.data};
_.k.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.k.isOnShorts=function(){var q;return((q=this.currentPage)==null?void 0:q.is)==="ytd-shorts"};
_.k.isWatchPage=function(q){return!!q&&(q.is==="ytd-watch-flexy"||q.is==="ytd-watch-fixie"||q.is==="ytd-watch-grid")};
_.k.preparePage=function(q,w){var u=this,y=function(){var X=u.pagePool.preparePage(q,u.currentPage,w);X&&u.attachPage(X)},e=function(X){_.gs(X,w);
_.Y8(X)};
if(_.T("kevlar_enable_mss_page_modules_client")){var t=this.getModuleNameForType(q);if(t=hwA(_.tG().resolve(_.bU),[t])){t.then(y.bind(this)).catch(e.bind(this));return}}try{y()}catch(X){e(X)}};
_.k.lazyPrepareCriticalPages=function(q,w){q=_.QI(w)||q;_.T("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(q).then(this.maybePrepareWatchPage.bind(this,q)):this.maybePrepareWatchPage(q)};
_.k.maybePrepareWatchPage=function(q){q!=="watch"&&_.mg(_.pi,this.preparePage.bind(this,"watch"))};
_.k.downloadPageModules=function(q){q=this.getModuleNameForType(q);var w=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);w.delete(q);var u=_.tG().resolve(_.bU);u.JSC$16200_loadModules(q);return u.JSC$16200_loadModules.apply(u,_.Cm(w))};
_.k.renderPageLoadingState=function(q,w){this.preparePage(q,w);var u=z8(this.pagePool,q);u.loadingData&&(u.loadingData.endpoint=w);u.loading=!0;this.setActivePage(u);q==="watch"&&_.t7(this.hostElement,"yt-guide-close")};
_.k.prepareForNavigation=function(q,w){var u=this;if(this.currentPage&&this.data){var y=_.QI(w)||q;this.destinationPageType=y;qp(this.data)==y&&_.t7(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(q==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.pi.cancelJob(this.renderLoadingStateJobId);_.tG().resolve(_.$X).deactivate(w);var e=this.data;this.renderLoadingStateJobId=_.dE(_.pi,function(){if(u.data!=e){var t=z8(u.pagePool,q);u.setActivePage(t)}else u.renderPageLoadingState(q,
w);u.renderLoadingStateJobId=0},150)}};
_.k.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var q=new _.RN(1);this.currentPage.pageDisposeJobs.forEach(function(w){_.cd(q,w)});
this.pageDisposeJobsets.set(this.currentPage,q)}};
_.k.flushPageDisposeJobset=function(q){var w=this.pageDisposeJobsets.get(q);w&&(w.flushJobs(),this.pageDisposeJobsets.delete(q))};
_.k.onYtStopOldPlayer=function(q,w){w=w===void 0?!1:w;var u,y=_.nv("kevlar_new_stop_old_player_logic_pages");if(_.T("kevlar_check_current_page_on_stop_old_player")&&(y.length===0||this.currentPage&&y.includes(this.currentPage.is)))if(this.data&&(u=qp(this.data)),qp(q)===u&&this.currentPage&&qp(this.currentPage.data)!==u)var e=_.BR(this.currentPage);else u=qp(this.data),e=z8(this.pagePool,u),e=_.BR(e);else this.data&&(u=qp(this.data),e=z8(this.pagePool,u),e=_.BR(e));if(e)if(q=qp(q),y=z8(this.pagePool,
q),y=_.BR(y),e==y)w&&!_.T("kevlar_disable_preemptive_player_reset")&&e.resetForNewPlayback();else if(w=u==="watch"&&q!=="watch",!w||q==="shorts"||_.Zoa()&&!aRT(this.data)&&q!=="yts-products"&&q!="mini_app"&&q!="playables")u=_.tG().resolve(_.$X),w&&u.isMiniplayerActive()&&u.pipController.getWindow()||e.stop()};
_.k.setupPageTransitionAnimation=function(){var q=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){L_(this.viewTransitionManager,"slide",{beforeTransition:function(){q.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){q.hostElement.style.viewTransitionName=""}});
L_(this.viewTransitionManager,"zoom",{beforeTransition:function(){q.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){q.hostElement.style.viewTransitionName=""}});
var w=_.Fc("web_page_transition_exit_ms"),u=_.Fc("web_page_transition_wait_ms"),y=_.Fc("web_page_transition_enter_ms");if(!isNaN(w)||!isNaN(u)||!isNaN(y))if(w=Ytc(RxH,w,u,y))u=document.createElement("style"),u.textContent=_.OAM(w),document.head.appendChild(u)}};
_.k.isDifferentBrowseId=function(q,w){q=_.C(q,_.Ii);w=_.C(w,_.Ii);return(q==null?void 0:q.browseId)!==(w==null?void 0:w.browseId)};
_.x$.Object.defineProperties(Rb,{template:{configurable:!0,enumerable:!0,get:function(){return EYa()}}});
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Rb.prototype,"ytActionHandlerBehavior",void 0);Rb=_.c([_.E({disableElementRegistration:!0,is:"ytd-page-manager"})],Rb);_.R(Rb,"ytd-page-manager",function(){return EYa()},{mode:_.kB("kevlar_poly_si_batch_j081")?1:2});var jx=function(q,w,u){u=u===void 0?!1:u;_.VG.call(this);this.draggableElement=q;this.callbacks=w;this.allowClicks=u;this.dragOccurred=!1;this.internalDragger=new _.aq(this.draggableElement);this.dragDelay=new _.u9(this.delayedDrag.bind(this));cm4(this);this.allowClicks&&(_.lGX(this.internalDragger,5),q.addEventListener("click",_.Fj(this,this.validateClick),{capture:!0}))};
_.O(jx,_.VG);var cm4=function(q){_.dL(q.internalDragger,"earlycancel",function(){q.allowClicks&&(q.dragOccurred=!1)});
_.dL(q.internalDragger,"start",function(w){var u,y;(y=(u=q.callbacks).onStartDrag)==null||y.call(u,w);!w.defaultPrevented&&q.allowClicks&&(q.dragOccurred=!0)});
_.dL(q.internalDragger,"beforedrag",function(w){w.preventDefault();q.lastOffset=new _.Vx(w.clientX-q.internalDragger.startX,w.clientY-q.internalDragger.startY);q.dragDelay.start()});
_.dL(q.internalDragger,"end",function(){q.dragDelay.stop();var w,u;(u=(w=q.callbacks).onEndDrag)==null||u.call(w);q.lastOffset=void 0})};
jx.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
jx.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.Fj(this,this.validateClick),{capture:!0})};
jx.prototype.validateClick=function(q){this.dragOccurred&&(this.dragOccurred=!1,q.stopPropagation(),q.preventDefault())};var lN=function(q,w){_.VG.call(this);this.JSC$17665_resizeContainer=q;this.callbacks=w;this.aspectRatio=16/9;this.JSC$17665_resizers=[];q=_.P(this.JSC$17665_resizeContainer.children);for(w=q.next();!w.done;w=q.next())S7H(this,w.value)};
_.O(lN,_.VG);lN.prototype.disposeInternal=function(){for(var q=_.P(this.JSC$17665_resizers),w=q.next();!w.done;w=q.next())w.value.dispose();q=_.P(this.JSC$17665_resizeContainer.children);for(w=q.next();!w.done;w=q.next())w.value.setAttribute("disabled","");this.JSC$17665_resizers.length=0};
lN.prototype.setSize=function(q){this.currentMiniplayerSize=q};
lN.prototype.setAspectRatio=function(q){this.aspectRatio=q};
lN.prototype.update=function(q,w){for(var u=_.P(this.JSC$17665_resizeContainer.children),y=u.next();!y.done;y=u.next()){y=y.value;var e=y.getAttribute("alignment");_.kd(y,"disabled",e===q||e===w)}};
var S7H=function(q,w){var u=w.getAttribute("alignment"),y=new jx(w,{onStartDrag:function(e){if(w.hasAttribute("disabled"))e.preventDefault();else{q.dragStartSize=q.currentMiniplayerSize;var t,X;(X=(t=q.callbacks).onStartResize)==null||X.call(t)}},
onDrag:function(e){if(q.dragStartSize){u!=="north"&&u!=="west"||e.scale(-1);var t=u==="north"||u==="south";e=t?e.y:e.x;t&&q.aspectRatio>=1?e*=q.aspectRatio:!t&&q.aspectRatio<1&&(e/=q.aspectRatio);q.callbacks.onResize(q.dragStartSize+e)}}});
q.JSC$17665_resizers.push(y)};var hxA,jNH=function(){return hxA!==void 0?hxA:hxA=document.createElement("template")};
document.head.appendChild(jNH().content);var liV;var LkK=_.LL(function(q){var w=_.Bm(),u=q.onDrag,y=q.onDragStart,e=q.onDragEnd,t=_.lf(q,{allowClicks:!1,dragThreshold:5}),X=t.dragThreshold,G=t.allowClicks;q=t.children;t=t.className;var n=void 0,N=void 0,Q=new _.Vx(0,0),I=!1;_.p4(function(){n=new _.aq(w.value);N=new _.u9(d);U(n,N);if(G()){_.lGX(n,X());var J;(J=w.value)==null||J.addEventListener("click",V,{capture:!0})}_.ZG(function(){var a;(a=n)==null||a.dispose();if(G()){var b;(b=w.value)==null||b.removeEventListener("click",V,{capture:!0})}})});
var U=function(J,a){_.dL(J,"earlycancel",function(){G()&&(I=!1)});
_.dL(J,"start",function(b){y==null||y(b);b.defaultPrevented||G()&&(I=!0)});
_.dL(J,"beforedrag",function(b){n&&N&&(b.preventDefault(),Q=new _.Vx(b.clientX-n.startX,b.clientY-n.startY),N.start())});
_.dL(J,"end",function(){a.stop();e==null||e();Q=new _.Vx(0,0)})},d=function(){Q&&u(Q)},V=function(J){I&&(I=!1,J.stopPropagation(),J.preventDefault())};
return _.W("yt-draggable",{el:w,class:_.HR("ytDraggableComponentHost",t)},q)},"eg");var M0a=_.LL(function(q){var w=_.P(_.r4(0,void 0,"CvAwBd")),u=w.next().value,y=w.next().value;w=function(e){var t={},X={};return _.W(LkK,{className:_.HR("ytdMiniplayerComponentResizer",(t.ytdMiniplayerComponentResizerDisabled=function(){return e===q.horizontalAlignment()||e===q.verticalAlignment()},t.ytdMiniplayerComponentResizerNorth=e==="north",t.ytdMiniplayerComponentResizerEast=e==="east",t.ytdMiniplayerComponentResizerSouth=e==="south",t.ytdMiniplayerComponentResizerWest=e==="west",t)),
onDragStart:function(){y(q.currentMiniplayerSize());if(q.onResizeStart)q.onResizeStart()},
onDrag:function(G){e!=="north"&&e!=="west"||G.scale(-1);var n;G=(n=e==="north"||e==="south")?G.y:G.x;var N=q.currentAspectRatio();n&&N>=1?G*=N:!n&&N<1&&(G/=N);n=G;q.onResize(u()+n)}},_.W("div",{class:_.HR("ytdMiniplayerComponentResizerCorner",(X.ytdMiniplayerComponentResizerNorthCorner=e==="north",X.ytdMiniplayerComponentResizerEastCorner=e==="east",X.ytdMiniplayerComponentResizerSouthCorner=e==="south",X.ytdMiniplayerComponentResizerWestCorner=e==="west",X))}))};
return _.W("div",{class:"ytdMiniplayerComponentResizers"},w("north"),w("east"),w("south"),w("west"))},"fg");var Kkx=16/9,Bdh=_.LL(function(){var q=_.Bm(),w=_.P(_.r4(new _.FO(NaN,NaN),void 0,"UYv80c")),u=w.next().value,y=w.next().value;w=_.P(_.r4(!1,void 0,"L9O3Tc"));var e=w.next().value,t=w.next().value;w=_.P(_.r4(!1,void 0,"nw5gMc"));var X=w.next().value,G=w.next().value;w=_.P(_.r4(!1,void 0,"X4YUZc"));var n=w.next().value,N=w.next().value;w=_.P(_.r4(!1,void 0,"jOjwyc"));var Q=w.next().value,I=w.next().value;w=_.P(_.r4(!1,void 0,"EmWIj"));var U=w.next().value,d=w.next().value;w=_.P(_.r4(!1,void 0,"pdZbNb"));
var V=w.next().value,J=w.next().value;w=_.P(_.r4(Kkx,void 0,"vdAiue"));var a=w.next().value,b=w.next().value,g=_.P(_.r4(!1,void 0,"agiiqf"));w=g.next().value;var l=g.next().value;g=_.P(_.r4(!1,void 0,"z3vkHe"));var S=g.next().value,eH=g.next().value;g=_.P(_.r4(void 0,void 0,"FMEjz"));var x=g.next().value,P4=g.next().value;g=_.P(_.r4(_.Et("HTML_DIR")==="rtl"?"west":"east",void 0,"jGuIHe"));var C7=g.next().value,mu=g.next().value;g=_.P(_.r4("south",void 0,"R5stie"));var Os=g.next().value,YJ=g.next().value;
g=_.P(_.r4(400,void 0,"CJeuke"));var ao=g.next().value,bc=g.next().value,Ro=_.tG().resolve(_.$X).miniplayerPropSignalMap[0],K7=Ro.data,gx=Ro.externalPlaylistData;g=Ro.toastData;var dx=Ro.playabilityStatus,tc=Ro.isReadyToResume,Fa=Ro.isDisabled,eq=Ro.watchWhile,Hk=Ro.playerVe,W3=Ro.expandVe,gV=Ro.closeVe,Fl=Ro.readyToResumeVe,C$=Ro.readyToResumeCloseVe,ZZ=Ro.repositionVe,EA=Ro.resizeVe;Ro=_.P(_.iv(tc));var mj=Ro.next().value,hc=Ro.next().value,jR=!1,QF=!1,lc;_.p4(function(){y(_.UP());q.value.addEventListener("animationend",
function(R6){R6.target===q.value&&(d(!1),J(!1))});
RUx(q.value)});
_.Kn("yt-window-resized",function(R6){R6&&y(R6)});
var TG=function(){lc&&b(lc.getVideoAspectRatio())},G4=function(){if(lc){var R6=lc.getPlayerState()===1;
mj()&&R6&&hc(!1)}},OX=function(){var R6=W3();
if(R6){var mT=_.pN(3);mT&&_.jB(mT,R6)}},ij=function(){var R6=gV(),mT=C$();
R6&&_.jB(_.pN(3),R6);tc()&&mT&&_.jB(_.pN(3),mT)};
_.Kn("yt-activate-miniplayer",function(R6){var mT;return _.F(function(qz){if(qz.nextAddress==1)return e()?qz.return():_.H(qz,(mT=_.tG().resolve(_.$X).getPlayerElement())==null?void 0:mT.getPlayerPromise(),2);lc=qz.yieldResult;if(!lc)return qz.return();!S()&&_.T("kevlar_watch_while_v2")&&(YJ(R6&&!_.T("kevlar_watch_while_bottom_align")?"north":"south"),mu(_.Et("HTML_DIR")==="rtl"?"west":"east"));var M6=lc;M6.addEventListener("onVideoDataChange",TG);M6.addEventListener("onStateChange",G4);M6.addEventListener("onExpandMiniplayer",
OX);M6.addEventListener("onCloseMiniplayer",ij);b(lc.getVideoAspectRatio());t(!0);d(!0);_.HI(qz)})});
_.Kn("yt-deactivate-miniplayer",function(R6){return _.F(function(mT){if(!e())return mT.return();t(!1);hc(!1);J(R6);d(!0);if(lc){var qz=lc;qz.removeEventListener("onVideoDataChange",TG);qz.removeEventListener("onStateChange",G4);qz.removeEventListener("onExpandMiniplayer",OX);qz.removeEventListener("onCloseMiniplayer",ij)}_.HI(mT)})});
var nA=function(){return!(eq()&&_.T("kevlar_watch_while_modern"))},WT=function(){var R6;
return!((R6=gx())==null||!R6.contents)},RK=function(){var R6=ao();
var mT=u();mT=Math.min(Math.min(mT.width,mT.height)-32,720);var qz=a(),M6=nA(),IR=WT()&&X(),W2=Math.min(R6,mT);R6=new _.FO(192,M6?116:192);qz=CpB(new _.FO(IR?Kkx:qz,1),new _.FO(W2,M6?W2-76:W2));R6.width<=qz.width&&R6.height<=qz.height||(TCc(qz,R6),qz.width=Math.min(qz.width,mT),qz.height=Math.min(qz.height,mT));return new _.FO(qz.width,_.zT(192,qz.height+lBc(M6,IR),720))},Uq=function(){var R6=RK(),mT=nA(),qz=WT()&&X();
return new _.FO(R6.width,R6.height-lBc(mT,qz))},TC=function(){var R6=function(mT){mT.target===q.value&&Q()&&(I(!1),q.value.removeEventListener("transitionend",R6))};
q.value.addEventListener("transitionend",R6);I(!0);G(!X())};
_.DG(function(){var R6=Hk(),mT=_.pN(3),qz=_.ZB(3);if(mT&&qz&&R6){_.EC(mT,qz,R6);qz=ZZ();var M6=EA(),IR=W3(),W2=gV(),iO=C$();IR&&W2&&iO&&(_.RD(mT,R6,[IR,W2,iO]),_.SB(mT,[IR,W2]));qz&&M6&&_.RD(mT,R6,[qz,M6])}});
_.DG(function(){var R6=mj(),mT=Fl();if(mT&&(R6===void 0?0:R6)){R6=_.pN(0);var qz=_.ZB(0);R6&&qz&&(_.EC(R6,qz,mT),_.SB(R6,[mT]))}});
Ro={};return _.W("ytd-miniplayer",{el:q,class:_.HR("ytdMiniplayerComponentHost",(Ro.ytdMiniplayerComponentVisible=function(){return e()||U()},Ro.ytdMiniplayerComponentAnimatingSnap=n,Ro.ytdMiniplayerComponentAnimatingPlaylistExpand=Q,Ro.ytdMiniplayerComponentAnimatingFade=U,Ro),function(){if(U()){var R6=Os();
var mT=e(),qz=V();R6=mT?R6==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":qz?R6==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":R6==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else R6="";return R6}),
style:_.rm({top:function(){return Os()==="north"?"16px":""},
right:function(){return C7()==="east"?"16px":""},
bottom:function(){return Os()==="south"?"16px":""},
left:function(){return C7()==="west"?"16px":""},
width:function(){return RK().width+"px"},
height:function(){return RK().height+"px"},
transform:function(){var R6=x();return R6?"translate("+R6.x+"px, "+R6.y+"px)":""}})},_.W("div",{class:"ytdMiniplayerComponentContent"},_.W(LkK,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(R6){var mT=jxT(C7(),Os(),u(),RK(),x()),qz=Uq();Math.abs(R6.clientY-(mT.y+qz.height))>15?(l(!0),R6=_.pN(3),mT=ZZ(),jR||(jR=!0,R6&&mT&&_.SB(R6,[mT])),R6&&mT&&_.jB(R6,mT)):R6.preventDefault()},
onDrag:function(R6){P4(R6)},
onDragEnd:function(){var R6=cph(jxT(C7(),Os(),u(),RK(),x()),u(),RK()),mT=hU6(C7(),Os(),u(),RK()),qz=hU6(R6.horizontalAlignment,R6.verticalAlignment,u(),RK());qz=new _.Vx(qz.x-mT.x,qz.y-mT.y);var M6;mT=mT.y+(((M6=x())==null?void 0:M6.y)||0)+RK().height/2;var IR=function(){C7()===R6.horizontalAlignment&&Os()===R6.verticalAlignment||eH(!0);mu(R6.horizontalAlignment);YJ(R6.verticalAlignment);P4(void 0)},W2=function(iO){iO.target===q.value&&n()&&(N(!1),IR(),q.value.removeEventListener("transitionend",
W2))};
l(!1);Os()==="south"&&mT>u().height?(IR(),_.tG().resolve(_.$X).close()):(q.value.addEventListener("transitionend",W2),N(!0),P4(qz))}},_.W(_.r,{cond:e,
then:function(){return _.W(_.qAh,{isDisabled:Fa,playabilityStatus:dx,size:Uq})}}),_.W(_.r,{cond:nA,
then:function(){return _.W(_.Bxq,{isReadyToResume:mj,data:K7,expanded:X,onExpandClick:TC,playlistData:gx})}}),_.W(_.r,{cond:w,
then:function(){return _.W("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.W(_.r,{cond:function(){return WT()&&X()||Q()},
then:function(){return _.W(_.Tzx,{className:"ytdMiniplayerComponentPlaylistPanel",data:gx,hideHeaderText:!0,withinMiniplayer:!0})}}),_.W("div",{class:"ytdMiniplayerComponentToast"},_.W(_.wVV,{toastData:g}))),_.W(M0a,{onResize:function(R6){bc(_.zT(192,R6,720))},
onResizeStart:function(){var R6=_.pN(3),mT=EA();QF||(QF=!0,R6&&mT&&_.SB(R6,[mT]));R6&&mT&&_.jB(R6,mT)},
currentAspectRatio:a,currentMiniplayerSize:ao,horizontalAlignment:C7,verticalAlignment:Os}))},"gg");_.T("ytd_miniplayer_to_wiz")&&_.q9(Bdh,"ytd-miniplayer",{});_.q9(_.wVV,"ytd-miniplayer-toast",{props:{toastData:_.pK}});var xqx=16/9,qhT=new _.FO(400,400/xqx),LE=function(){var q=_.Y.apply(this,arguments)||this;q.active=!1;q.hasNoData=!1;q.enabled=!1;q.expanded=!1;q.readyToResume=!1;q.isDisabled=!1;q.externalPlaylistData={};q.premiumBadges=[];q.watchWhile=!1;q.playerState=null;q.verticalAttachment="south";q.horizontalAttachment=_.Et("HTML_DIR")==="rtl"?"west":"east";q.isAnimatingFade=!1;q.isAnimatingSnap=!1;q.isAnimatingExpand=!1;q.isDragging=!1;q.playerHidden=!1;q.hasPlaylistData=!1;q.closed=!1;q.expandedClosed=!1;
q.isForReadyToResume=!1;q.watchResponse=null;q.player=null;q.playerVe=null;q.expandVe=null;q.closeVe=null;q.readyToResumeCloseVe=null;q.disabledInitialStateIsPlaying=!1;q.PLAYER_EVENTS=new Map;q.aspectRatio=xqx;q.currentMiniplayerSize=400;q.userSetSize=!1;q.userSetPosition=!1;q.userHasDragged=!1;q.maxMiniplayerSize=720;q.transform=new _.Vx(0,0);q.windowDimensions=new _.FO(NaN,NaN);q.dimensions=qhT;q.screenLayer=3;q.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return q};
_.O(LE,_.Y);_.k=LE.prototype;_.k.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.k.ready=function(){this.setUpDragging();this.setUpResizing()};
_.k.attached=function(){this.onWindowResized(_.UP());this.hostElement.addEventListener("animationend",_.Fj(this,this.resetFadingAnimation))};
_.k.detached=function(){this.hostElement.removeEventListener("animationend",_.Fj(this,this.resetFadingAnimation))};
_.k.resetFadingAnimation=function(q){q.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.k.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.k.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.k.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var q=_.pN(this.screenLayer);this.readyToResumeCloseVe&&q&&_.SB(q,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.k.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var q=_.pN(0),w=_.ZB(0);q&&w&&(_.EC(q,w,this.readyToResumeVe),_.SB(q,[this.readyToResumeVe]))}};
_.k.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var q=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=q===-1||q===1||q===3)&&this.player.pauseVideo()}};
_.k.activate=function(q,w){w=w===void 0?!1:w;var u=this,y;return _.F(function(e){if(e.nextAddress==1)return u.setInitialActivatePositioning(w),u.enabled=!0,u.active=!0,u.expanded=!1,u.closed=!1,u.expandedClosed=!1,u.watchWhileHidden||(u.isAnimatingFade=!0),_.tG().resolve(_.z5).setPlaylistComponent(u.JSC$17676_playlistPanel),q.appendTo(u.playerContainer),_.H(e,q.getPlayerPromise(),2);y=e.yieldResult;y.setSizeStyle(!1,!0);u.ytPlayerListenerBehavior.listenToPlayerEvents(y,u.PLAYER_EVENTS);u.player=y;
u.watchWhile&&_.T("kevlar_watch_while_minimum_size")&&u.setMiniplayerSize(192);u.setAspectRatio(u.player.getVideoAspectRatio());u.onIsDisabledChanged();_.HI(e)})};
_.k.setInitialActivatePositioning=function(q){if(!this.userSetPosition&&_.T("kevlar_watch_while_v2")){this.verticalAttachment=q&&!_.T("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.Et("HTML_DIR")==="rtl"?"west":"east";var w;(w=this.JSC$17676_resizers)==null||w.update(this.horizontalAttachment,this.verticalAttachment)}};
_.k.deactivate=function(q,w){var u=this;return _.F(function(y){if(!u.active)return y.return();q||(u.expanded?u.expandedClosed=!0:u.closed=!0);u.active=!1;u.isForReadyToResume=!1;w&&_.T("kevlar_watch_while_counterfactual")||(u.isAnimatingFade=!0);u.player&&u.ytPlayerListenerBehavior.unlistenFromPlayerEvents(u.player,u.PLAYER_EVENTS);u.player=null;_.HI(y)})};
_.k.onMetadataTap=function(q){this.expandVe&&(q===void 0||q)&&(q=_.pN(this.screenLayer))&&_.jB(q,this.expandVe);_.In(_.tG().resolve(_.$X))};
_.k.onDisabledTap=function(q){q.target===_.A(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.k.onPlaylistExpandTap=function(q){if(this.hasPlaylistData){q=_.SQ(q)||[];q=_.P(q);for(var w=q.next();!w.done;w=q.next()){w=w.value;if(w===this.hostElement)break;if(w.classList&&w.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.k.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.Fj(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.k.animatedResizePlaylist=function(q){q.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.Fj(this,this.animatedResizePlaylist)))};
_.k.getExpandIcon=function(q){return q?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.k.onPlayerVideoDataChange=function(){var q,w=(q=this.player)==null?void 0:q.getVideoAspectRatio();w&&w!==this.aspectRatio&&this.setAspectRatio(w)};
_.k.setAspectRatio=function(q){if(this.active){this.aspectRatio=q;this.updateDimensionsAndResize();var w;(w=this.JSC$17676_resizers)==null||w.setAspectRatio(q)}};
_.k.updateDimensionsAndResize=function(){var q=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),w=this.expanded?xqx:this.aspectRatio,u=new _.FO(192,this.showInfoBar?116:192);q=CpB(new _.FO(w,1),new _.FO(q,this.showInfoBar?q-76:q));u.width<=q.width&&u.height<=q.height||(TCc(q,u),q.width=Math.min(q.width,this.maxMiniplayerSize),q.height=Math.min(q.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&w<=1?Math.max(q.width,q.height)+76:Math.max(q.width,q.height)));this.dimensions=
new _.FO(q.width,this.clamp(q.height+this.getNonPlayerHeight()));this.resize()};
_.k.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var q=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=q.height+"px";var w;(w=this.player)==null||w.setInternalSize(q.width,q.height)};
_.k.getPlayerSize=function(q){var w=Math.max(0,q.height-this.getNonPlayerHeight());return new _.FO(q.width,w)};
_.k.getNonPlayerHeight=function(){var q=0;this.showInfoBar&&(q+=76);this.expanded&&(q+=285);return q};
_.k.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.tG().resolve(_.$X).close()};
_.k.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.k.logClosingClick=function(){this.closeVe&&_.jB(_.pN(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.jB(_.pN(this.screenLayer),this.readyToResumeCloseVe)};
_.k.onPlayerExpandMiniplayer=function(){if(this.expandVe){var q=_.pN(this.screenLayer);q&&_.jB(q,this.expandVe)}};
_.k.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var q=this.playerState===1;this.continueWatching&&q&&(this.continueWatching=!1);this.premiumBadges.length&&q&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.k.getScreenLayer=function(){return this.screenLayer};
_.k.logMiniplayer=function(){var q=_.pN(this.screenLayer),w=_.ZB(this.screenLayer);q&&w&&this.playerVe&&(_.EC(q,w,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.RD(q,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.SB(q,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.RD(q,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.k.computePlaylistData=function(q,w){return w};
_.k.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.k.computeExpandButtonHidden=function(q,w,u){return!q||!w||u};
_.k.computePlaylistIndexHidden=function(q,w){return!q||w};
_.k.computePlaylistPanelHidden=function(q,w){return!w&&!q};
_.k.computeExpandButtonLabel=function(q){return q?_.ID("MINIPLAYER_COLLAPSE_LABEL"):_.ID("MINIPLAYER_EXPAND_LABEL")};
_.k.computeDisabledStateCloseButtonLabel=function(){return _.ID("MINIPLAYER_CLOSE",void 0,"Close")};
_.k.onWindowResized=function(q){q&&(q=this.windowDimensions=q,this.maxMiniplayerSize=Math.min(Math.min(q.width,q.height)-32,720),this.updateDimensionsAndResize())};
_.k.setUpResizing=function(){var q=this;this.JSC$17676_resizers||(this.JSC$17676_resizers=new lN(this.JSC$17676_resizeContainer,{onStartResize:function(){q.handleResizeStart()},
onResize:function(w){q.handleResize(w)}}),this.JSC$17676_resizers.setSize(this.currentMiniplayerSize),this.JSC$17676_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.k.handleResizeStart=function(){var q=_.pN(this.screenLayer);this.userSetSize||(this.userSetSize=!0,q&&this.resizeVe&&_.SB(q,[this.resizeVe]));q&&this.resizeVe&&_.jB(q,this.resizeVe)};
_.k.handleResize=function(q){this.setMiniplayerSize(q);this.updateDimensionsAndResize()};
_.k.setUpDragging=function(){var q=this;this.JSC$17676_dragger||(this.JSC$17676_dragger=new jx(this.draggableContainer,{onStartDrag:function(w){!q.isSafeToDrag(w)||q.isAnimatingSnap?w.preventDefault():q.handleDragStart()},
onDrag:function(w){q.transform=w;q.setTransform(q.transform)},
onEndDrag:function(){q.handleDragEnd()}},!0))};
_.k.handleDragStart=function(){this.isDragging=!0;var q=_.pN(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,q&&this.repositionVe&&_.SB(q,[this.repositionVe]));q&&this.repositionVe&&_.jB(q,this.repositionVe)};
_.k.handleDragEnd=function(){this.isDragging=!1;var q=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&q>this.windowDimensions.height&&_.tG().resolve(_.$X).close();this.animateSnapToCorner()};
_.k.animateSnapToCorner=function(){var q=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),w=this.getNearestAttachments();w=this.getGlobalPositionFromAttachments(w.horizontalAttachment,w.verticalAttachment);q=new _.Vx(w.x-q.x,w.y-q.y);this.isAnimatingSnap=!0;this.setTransform(q);this.hostElement.addEventListener("transitionend",_.Fj(this,this.endSnapAnimation))};
_.k.endSnapAnimation=function(q){q.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.Fj(this,this.endSnapAnimation)),this.endDrag())};
_.k.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.k.setTransform=function(q){this.hostElement.style.transform=q?"translate("+q.x+"px, "+q.y+"px)":""};
_.k.getGlobalPositionFromAttachments=function(q,w){return new _.Vx(q==="west"?16:this.windowDimensions.width-this.dimensions.width-16,w==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.k.updateAttachments=function(){var q=this.getNearestAttachments();if(this.horizontalAttachment!==q.horizontalAttachment||this.verticalAttachment!==q.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=q.horizontalAttachment;this.verticalAttachment=q.verticalAttachment;var w;(w=this.JSC$17676_resizers)==null||w.update(this.horizontalAttachment,this.verticalAttachment)};
_.k.getNearestAttachments=function(){var q=this.getCurrentGlobalPosition();return{horizontalAttachment:q.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:q.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.k.getCurrentGlobalPosition=function(){var q=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return SMT(q,this.transform)};
_.k.isSafeToDrag=function(q){var w=this.playerContainer.getBoundingClientRect();return Math.abs(q.clientY-(w.y+w.height))>15};
_.k.setMiniplayerSize=function(q){this.currentMiniplayerSize=this.clamp(q);var w;(w=this.JSC$17676_resizers)==null||w.setSize(this.currentMiniplayerSize)};
_.k.clamp=function(q){return _.zT(192,q,720)};
_.k.registerViewTransitionTasks=function(){var q=this,w=_.tG().resolve(_.kF(_.Q8));if(w){var u={beforeTransition:function(){q.hostElement&&(q.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){q.hostElement&&(q.hostElement.style.viewTransitionName="")}};
L_(w,"slide",u);L_(w,"zoom",u)}};
_.x$.Object.defineProperties(LE.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.T("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.ID("CONTINUE_WATCHING",void 0,"Continue watching")};var q;if((q=this.externalPlaylistData)==null?0:q.contents)return this.externalPlaylistData.titleText;var w;return(w=this.data)==null?void 0:w.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.externalPlaylistData)==null?0:q.contents){var w;return(w=_.KEl(this.externalPlaylistData))==null?void 0:w.title}var u;return(u=this.data)==null?void 0:u.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var q,w,u,y;return((q=this.externalPlaylistData)==null?void 0:q.currentIndex)!==void 0&&((w=this.externalPlaylistData)==null?0:w.totalVideos)&&!((u=this.data)==null?0:(y=u.playlistData)==null?0:y.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.tu6(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.T("kevlar_watch_while_counterfactual")}}});
LE.prototype.onIsDisabledChanged=LE.prototype.onIsDisabledChanged;LE.prototype.readyToResumeVeChanged=LE.prototype.readyToResumeVeChanged;LE.prototype.premiumBrandingChanged=LE.prototype.premiumBrandingChanged;LE.prototype.onPlayerVeChange=LE.prototype.onPlayerVeChange;LE.prototype.hasPlaylistDataChanged=LE.prototype.hasPlaylistDataChanged;_.c([_.D(_.b7.YtPlayerListenerBehavior),_.h("design:type",_.Yp)],LE.prototype,"ytPlayerListenerBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],LE.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],LE.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],LE.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],LE.prototype,"ytdReduxBehavior",void 0);_.c([_.Wj("#draggable"),_.h("design:type",HTMLDivElement)],LE.prototype,"draggableContainer",void 0);
_.c([_.Wj("#resize-container"),_.h("design:type",HTMLDivElement)],LE.prototype,"JSC$17676_resizeContainer",void 0);_.c([_.Wj("#video-container"),_.h("design:type",HTMLDivElement)],LE.prototype,"videoContainer",void 0);_.c([_.Wj("#player-container"),_.h("design:type",HTMLDivElement)],LE.prototype,"playerContainer",void 0);_.c([_.Wj("#playlist"),_.h("design:type",HTMLDivElement)],LE.prototype,"JSC$17676_playlistPanel",void 0);_.c([_.v(),_.h("design:type",Object)],LE.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],LE.prototype,"active",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],LE.prototype,"hasNoData",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],LE.prototype,"enabled",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],LE.prototype,"expanded",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],LE.prototype,"readyToResume",void 0);
_.c([_.v(),_.h("design:type",Object)],LE.prototype,"isDisabled",void 0);_.c([_.v(),_.h("design:type",Object)],LE.prototype,"externalPlaylistData",void 0);_.c([_.v(),_.h("design:type",Array)],LE.prototype,"premiumBadges",void 0);_.c([_.v(),_.h("design:type",Object)],LE.prototype,"toastData",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],LE.prototype,"watchWhile",void 0);_.c([_.v(),_.h("design:type",Boolean)],LE.prototype,"premiumBranding",void 0);
_.c([_.v(),_.h("design:type",Object)],LE.prototype,"playerState",void 0);_.c([_.v(),_.h("design:type",Boolean)],LE.prototype,"continueWatching",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],LE.prototype,"verticalAttachment",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],LE.prototype,"horizontalAttachment",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],LE.prototype,"isAnimatingFade",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],LE.prototype,"isAnimatingSnap",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],LE.prototype,"isAnimatingExpand",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],LE.prototype,"isDragging",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],LE.prototype,"playerHidden",void 0);
_.c([_.v({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.h("design:type",Object)],LE.prototype,"playlistData",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.h("design:type",Object)],LE.prototype,"hasPlaylistData",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],LE.prototype,"closed",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],LE.prototype,"expandedClosed",void 0);
_.c([_.v({selector:_.Gof}),_.h("design:type",Boolean)],LE.prototype,"isSingleOptionSurveyActive",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.ZV}),_.h("design:type",Boolean)],LE.prototype,"isWatchPage",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("watchWhile"),_.h("design:type",Object),_.h("design:paramtypes",[])],LE.prototype,"showInfoBar",null);_.c([_.Z("premiumBadges","showInfoBar"),_.h("design:type",Object),_.h("design:paramtypes",[])],LE.prototype,"showOverlayPremiumBadges",null);
_.c([_.v(),_.h("design:type",Object)],LE.prototype,"watchResponse",void 0);_.c([_.v(),_.h("design:type",Object)],LE.prototype,"miniplayerRenderer",void 0);_.c([_.v(),_.h("design:type",Object)],LE.prototype,"playabilityStatus",void 0);_.c([_.v(),_.h("design:type",Object)],LE.prototype,"playerVe",void 0);_.c([_.v(),_.h("design:type",Object)],LE.prototype,"expandVe",void 0);_.c([_.v(),_.h("design:type",Object)],LE.prototype,"closeVe",void 0);
_.c([_.v(),_.h("design:type",Object)],LE.prototype,"readyToResumeCloseVe",void 0);_.c([_.v(),_.h("design:type",_.DB)],LE.prototype,"readyToResumeVe",void 0);_.c([_.v(),_.h("design:type",_.DB)],LE.prototype,"resizeVe",void 0);_.c([_.v(),_.h("design:type",_.DB)],LE.prototype,"repositionVe",void 0);_.c([_.nL("hasPlaylistData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LE.prototype,"hasPlaylistDataChanged",null);
_.c([_.nL("playerVe"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LE.prototype,"onPlayerVeChange",null);_.c([_.nL("premiumBranding"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LE.prototype,"premiumBrandingChanged",null);_.c([_.nL("readyToResumeVe"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LE.prototype,"readyToResumeVeChanged",null);
_.c([_.nL("isDisabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LE.prototype,"onIsDisabledChanged",null);_.c([_.Z("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.h("design:type",Object),_.h("design:paramtypes",[])],LE.prototype,"miniplayerSubtitle",null);_.c([_.Z("data.miniplayerTitle","externalPlaylistData"),_.h("design:type",Object),_.h("design:paramtypes",[])],LE.prototype,"miniplayerTitle",null);
_.c([_.Z("externalPlaylistData","continueWatching"),_.h("design:type",Object),_.h("design:paramtypes",[])],LE.prototype,"playlistIndexMessage",null);_.c([_.v({reflectToAttribute:!0}),_.Z("playabilityStatus"),_.h("design:type",Object),_.h("design:paramtypes",[])],LE.prototype,"showErrorScreen",null);_.c([_.v({reflectToAttribute:!0}),_.Z("watchWhile"),_.h("design:type",Object),_.h("design:paramtypes",[])],LE.prototype,"watchWhileHidden",null);
_.T("ytd_miniplayer_to_wiz")||_.R(LE,"ytd-miniplayer",function(){if(liV===void 0){var q=document.createElement("template");_.f(q,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
q.content.insertBefore(jNH().content.cloneNode(!0),q.content.firstChild);q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);liV=q}q=liV;return q},{mode:2});var wYV;var Mm=function(){var q=_.Y.apply(this,arguments)||this;q.useListItemStyles=_.T("web_list_item_style_for_menu_items");q.systemIcons=_.T("kevlar_system_icons");return q};
_.O(Mm,_.Y);_.k=Mm.prototype;_.k.ready=function(){this.hostElement.addEventListener("tap",_.Fj(this,this.onEndpointTapExtra))};
_.k.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.k.onFocus=function(){var q;(q=_.A(this.hostElement).querySelector("tp-yt-paper-item"))==null||q.focus()};
_.k.onEndpointTapExtra=function(q){_.t7(this.hostElement,"iron-activate");var w=this.data.navigationEndpoint;w&&_.C(w,_.zgJ)&&(q.stopPropagation(),_.nq(this.hostElement,[w],this.hostElement))};
_.k.computeIcon=function(q){return q&&q.iconType?_.Fy(q.iconType):""};
_.k.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.k.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.k.forceUpdateStylesOnLegacyBrowsers=function(){_.T("kevlar_legacy_browsers")&&_.Pj(this.hostElement)};
Mm.prototype.forceUpdateStylesOnLegacyBrowsers=Mm.prototype.forceUpdateStylesOnLegacyBrowsers;Mm.prototype.onFocus=Mm.prototype.onFocus;_.c([_.D(_.YE),_.h("design:type",Object)],Mm.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.D(_.Osc.YtConditionalRendererBehavior),_.h("design:type",Object)],Mm.prototype,"ytConditionalRendererBehavior",void 0);_.c([_.D(_.yL.YtEndpointBehavior),_.h("design:type",Object)],Mm.prototype,"ytEndpointBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],Mm.prototype,"data",void 0);_.c([_.v({computed:"computeIcon(data.icon)",value:""}),_.h("design:type",String)],Mm.prototype,"icon",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Mm.prototype,"useIcons",void 0);_.c([_.v({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Mm.prototype,"hasSeparator",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Mm.prototype,"useListItemStyles",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Mm.prototype,"systemIcons",void 0);_.c([_.Gm("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Mm.prototype,"onFocus",null);_.c([_.nL("useIcons","hasSeparator"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Mm.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.R(Mm,"ytd-menu-navigation-item-renderer",function(){if(wYV===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);wYV=q}q=wYV;return q},{mode:1});var u5h;var yVh=_.jN(_.ID("DOWNLOAD",{},"Download")),eFq=_.jN(_.ID("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),kD6=_.jN(_.ID("RETRY",{},"Retry")),tXq=_.jN(_.ID("PAUSE_DOWNLOADING",{},"Pause downloading")),PxT=_.jN(_.ID("RESUME_DOWNLOAD",{},"Resume download")),KE=function(){var q=_.Y.apply(this,arguments)||this;q.primaryText=yVh;q.primaryIconType="OFFLINE_DOWNLOAD";q.hasSecondaryContent=!1;q.hasSeparator=!1;q.transferState="TRANSFER_STATE_UNKNOWN";q.isVideoDeletedByUser=!1;q.isHidden=!1;q.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return q};
_.O(KE,_.Y);_.k=KE.prototype;_.k.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.k.onFocus=function(){this.primaryEntry.focus()};
_.k.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.k.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.k.getRemoveAction=function(){return"ACTION_REMOVE"};
_.k.sendOfflineAction=function(q){var w=this.data.serviceEndpoint;if(w){var u=_.C(w,_.WC);u&&q&&(u.action=q);this.ytComponentBehavior.resolveCommand(w)}};
_.k.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=yVh,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=yVh;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=kD6;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=eFq;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=PxT;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=eFq;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
tXq;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=eFq;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=eFq;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=yVh,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.k.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.k.isSecondaryEntryHidden=function(q,w){return q?!0:!w};
_.k.computeHasSeparator=function(){var q;return!((q=this.data)==null||!q.hasSeparator)};
KE.prototype.showHideButton=KE.prototype.showHideButton;KE.prototype.onTransferStateChange=KE.prototype.onTransferStateChange;KE.prototype.onFocus=KE.prototype.onFocus;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],KE.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],KE.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],KE.prototype,"ytComponentBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],KE.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],KE.prototype,"primaryText",void 0);_.c([_.v(),_.h("design:type",String)],KE.prototype,"primaryIconType",void 0);_.c([_.v(),_.h("design:type",String)],KE.prototype,"primaryAction",void 0);_.c([_.v(),_.h("design:type",Object)],KE.prototype,"secondaryText",void 0);_.c([_.v(),_.h("design:type",String)],KE.prototype,"secondaryIconType",void 0);
_.c([_.v(),_.h("design:type",String)],KE.prototype,"secondaryAction",void 0);_.c([_.v(),_.h("design:type",Object)],KE.prototype,"hasSecondaryContent",void 0);_.c([_.v({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.h("design:type",Object)],KE.prototype,"hasSeparator",void 0);_.c([_.v({selector:_.pa,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.h("design:type",String)],KE.prototype,"transferState",void 0);
_.c([_.v({selector:_.JOs,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.h("design:type",Object)],KE.prototype,"isVideoDeletedByUser",void 0);_.c([_.v(),_.h("design:type",Object)],KE.prototype,"isHidden",void 0);_.c([_.v({selector:_.OGc,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.h("design:type",Object)],KE.prototype,"offlineabilityState",void 0);_.c([_.Wj("#primary-entry"),_.h("design:type",Object)],KE.prototype,"primaryEntry",void 0);
_.c([_.Gm("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KE.prototype,"onFocus",null);_.c([_.I9("transferState","isVideoDeletedByUser"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KE.prototype,"onTransferStateChange",null);_.c([_.I9("offlineabilityState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KE.prototype,"showHideButton",null);
_.R(KE,"ytd-menu-service-item-download-renderer",function(){if(u5h===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);u5h=q}q=u5h;return q},{mode:1});var XYm;var Bp=function(){var q=_.Y.apply(this,arguments)||this;q.useIcons=!1;q.systemIcons=_.T("kevlar_system_icons");q.useListItemStyles=_.T("web_list_item_style_for_menu_items");return q};
_.O(Bp,_.Y);_.k=Bp.prototype;_.k.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.k.onFocus=function(){var q;(q=_.A(this.hostElement).querySelector("tp-yt-paper-item"))==null||q.focus()};
_.k.onTap=function(){_.X4(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var q=this.data.serviceEndpoint,w=this.data.command;if(q){var u,y=(u=this.data)==null?void 0:u.trackingParams;u=!!_.C(q,_.xH3);y&&u&&_.Mt().dispatch(_.tr({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:y}}));this.ytComponentBehavior.resolveCommand(q)||_.tG().resolve(_.PG).resolveCommand(q,{form:{element:this.hostElement}})}w&&(this.ytComponentBehavior.resolveCommand(w)||_.nq(this.hostElement,
[w],this.hostElement))};
_.k.computeIcon=function(q){return q&&q.iconType?_.Fy(q.iconType):""};
_.k.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.k.computeHasSeparator=function(){var q;return!((q=this.data)==null||!q.hasSeparator)};
_.k.forceUpdateStylesOnLegacyBrowsers=function(){_.T("kevlar_legacy_browsers")&&_.Pj(this.hostElement)};
_.k.computeIsSelected=function(){var q;return!((q=this.data)==null||!q.isSelected)};
Bp.prototype.forceUpdateStylesOnLegacyBrowsers=Bp.prototype.forceUpdateStylesOnLegacyBrowsers;Bp.prototype.onTap=Bp.prototype.onTap;Bp.prototype.onFocus=Bp.prototype.onFocus;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.YE),_.h("design:type",Object)],Bp.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Bp.prototype,"ytComponentBehavior",void 0);
_.c([_.D(_.Osc.YtConditionalRendererBehavior),_.h("design:type",Object)],Bp.prototype,"ytConditionalRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Bp.prototype,"data",void 0);_.c([_.v({computed:"computeIcon(data.icon)",value:""}),_.h("design:type",String)],Bp.prototype,"icon",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Bp.prototype,"useIcons",void 0);
_.c([_.v({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Bp.prototype,"hasSeparator",void 0);_.c([_.v({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Bp.prototype,"isSelected",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Bp.prototype,"systemIcons",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Bp.prototype,"useListItemStyles",void 0);
_.c([_.Gm("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Bp.prototype,"onFocus",null);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Bp.prototype,"onTap",null);_.c([_.nL("useIcons","hasSeparator"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Bp.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.R(Bp,"ytd-menu-service-item-renderer",function(){if(XYm===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);XYm=q}q=XYm;return q},{mode:2});var FD4;var x4=function(){return _.Y.apply(this,arguments)||this};
_.O(x4,_.Y);_.k=x4.prototype;_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.k.onDataChanged=function(){var q=this;_.KJ(this,function(){q.postbox.openDialog();q.focus();_.t7(q.hostElement,"yt-refit")})};
_.k.focus=function(){this.postbox.focus()};
_.k.closePopup=function(){_.Pw(this.hostElement,"yt-close-popup-action")};
_.k.onYtCommentboxDismiss=function(){this.closePopup()};
x4.prototype.onYtCommentboxDismiss=x4.prototype.onYtCommentboxDismiss;x4.prototype.onDataChanged=x4.prototype.onDataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],x4.prototype,"data",void 0);_.c([_.v({value:function(){return _.ID("SBOX_INAPPROPRIATE_CANCEL")}}),
_.h("design:type",String)],x4.prototype,"closeButtonAriaLabel",void 0);_.c([_.Wj("#postbox"),_.h("design:type",Object)],x4.prototype,"postbox",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],x4.prototype,"onDataChanged",null);_.c([_.Gm("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],x4.prototype,"onYtCommentboxDismiss",null);
x4=_.c([_.E({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],x4);
_.R(x4,"ytd-backstage-post-dialog-popup-renderer",function(){if(FD4!==void 0)return FD4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return FD4=q},{mode:1});var GD4;var qX=function(){return _.Y.apply(this,arguments)||this};
_.O(qX,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],qX.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],qX.prototype,"data",void 0);qX=_.c([_.E({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],qX);
_.R(qX,"ytd-sender-id-section-renderer",function(){if(GD4!==void 0)return GD4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);
return GD4=q},{mode:1});var nEA;var HoT;var WDK;var wF=function(){return _.Y.apply(this,arguments)||this};
_.O(wF,_.Y);wF.prototype.closePopup=function(){_.Pw(this.hostElement,"yt-close-popup-action")};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],wF.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],wF.prototype,"data",void 0);wF=_.c([_.JM({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],wF);
_.R(wF,"yt-community-post-section-renderer",function(){if(WDK===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;HoT===void 0&&(HoT=document.createElement("template"));var y=HoT;u.call(w,y.content.cloneNode(!0),q.content.firstChild);WDK=q}q=WDK;return q},{mode:2});var sax;var NSB;var Qaj;var I1x;var ioB;var rVA;var uF=function(){return _.Y.apply(this,arguments)||this};
_.O(uF,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],uF.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],uF.prototype,"data",void 0);uF=_.c([_.JM({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],uF);
_.R(uF,"yt-share-start-time-with-context-renderer",function(){if(rVA===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;ioB===void 0&&(ioB=document.createElement("template"));var y=ioB;u.call(w,y.content.cloneNode(!0),q.content.firstChild);rVA=q}q=rVA;return q},{mode:2});var yX=function(){return _.Y.apply(this,arguments)||this};
_.O(yX,_.Y);yX.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],yX.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],yX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],yX.prototype,"data",void 0);yX=_.c([_.JM({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],yX);
_.R(yX,"yt-share-panel-title-v15-renderer",function(){if(I1x===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;Qaj===void 0&&(Qaj=document.createElement("template"));var y=Qaj;u.call(w,y.content.cloneNode(!0),q.content.firstChild);I1x=q}q=I1x;return q},{mode:2});var ey=function(){return _.Y.apply(this,arguments)||this};
_.O(ey,_.Y);ey.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"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ey.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],ey.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ey.prototype,"data",void 0);ey=_.c([_.JM({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],ey);
_.R(ey,"yt-share-panel-header-renderer",function(){if(NSB===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;sax===void 0&&(sax=document.createElement("template"));var y=sax;u.call(w,y.content.cloneNode(!0),q.content.firstChild);NSB=q}q=NSB;return q},{mode:2});var Ucx;var TSA;var k_=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-open-popup-action":"onOpen"};return q};
_.O(k_,_.Y);_.k=k_.prototype;_.k.attached=function(){this.onOpen()};
_.k.updateTimeSecs=function(q){this.currentTimeSecs=q};
_.k.computeTimeString=function(q){q=q.toString();var w=Math.floor(Number(q)/3600),u=Math.floor(Number(q)%3600%60);return(w>0?w+":":"")+_.xf(Math.floor(Number(q)%3600/60),w>0?2:1)+":"+_.xf(u,2)};
_.k.computeTimeStringA11y=function(q){q=_.aEs({seconds:q});var w=q.hours===void 0?0:q.hours,u=q.minutes===void 0?0:q.minutes,y=q.seconds===void 0?0:q.seconds;q=[];if(w>0){var e=rG6().format({hours:w});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.YN)||w>9999)e=e.replace(w.toString(),_.DYj(w)),_.YN==="km"&&(e=e.replace(".",","));q.push(e)}u>0&&q.push(rG6().format({minutes:u}));y>0&&q.push(rG6().format({seconds:y}));w="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");u=_.YN==
"am"?"{0}\u1363 ":_.YN=="fa"?"{0}\u060c\u200f ":_.YN=="my"?"{0} - ":_.YN=="ne"?"{0},":_.YN=="th"?"{0} ":_.YN=="ur"?"{0}\u060c ":_.YN=="ar"||_.YN=="ar-XB"?"{0} \u0648":_.YN=="ja"||_.YN=="zh-CN"||_.YN=="zh-HK"||_.YN=="zh-TW"?"{0}\u3001":"{0}, ";y=_.YN=="am"?"\u1363 ":_.YN=="fa"?"\u060c\u200f ":_.YN=="my"?" - ":_.YN=="th"?" ":_.YN=="ur"?"\u060c ":_.YN=="ar"||_.YN=="ar-XB"?" \u0648":_.YN=="ja"||_.YN=="zh-CN"||_.YN=="zh-HK"||_.YN=="zh-TW"?"\u3001":", ";e=_.YN=="am"?" \u12a5\u1293 {0}":_.YN=="as"?" \u0986\u09f0\u09c1 {0}":
_.YN=="az"?" v\u0259 {0}":_.YN=="bn"?" \u098f\u09ac\u0982 {0}":_.YN=="cs"?" a\u00a0{0}":_.YN=="de"?" und {0}":_.YN=="el"?" \u03ba\u03b1\u03b9 {0}":_.YN=="eu"?" eta {0}":_.YN=="fa"?"\u060c \u0648 {0}":_.YN=="fil"?", at {0}":_.YN=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.YN=="hi"?", \u0914\u0930 {0}":_.YN=="hu"?" \u00e9s {0}":_.YN=="hy"?" \u0587 {0}":_.YN=="id"?", dan {0}":_.YN=="iw"?" \u05d5-{0}":_.YN=="ja"?"\u3001{0}":_.YN=="ka"?" \u10d3\u10d0 {0}":_.YN=="km"?" \u1793\u17b7\u1784 {0}":_.YN=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.YN=="ko"?" \ubc0f {0}":_.YN=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.YN=="lt"?" ir {0}":_.YN=="lv"?" un {0}":_.YN=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.YN=="mr"?" \u0906\u0923\u093f {0}":_.YN=="ms"?" dan {0}":_.YN=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.YN=="ne"?" \u0930 {0}":_.YN=="or"?", \u0b13 {0}":_.YN=="pa"?" \u0a05\u0a24\u0a47 {0}":_.YN=="ro"?" \u0219i {0}":_.YN=="si"?", \u0dc3\u0dc4 {0}":_.YN=="sk"?" a {0}":_.YN=="sl"?" in {0}":_.YN=="sq"?" dhe {0}":_.YN=="sv"?" och {0}":
_.YN=="sw"?" na {0}":_.YN=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.YN=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.YN=="th"?" \u0e41\u0e25\u0e30{0}":_.YN=="tr"?" ve {0}":_.YN=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.YN=="uz"?" va {0}":_.YN=="vi"?" v\u00e0 {0}":_.YN=="zh-HK"?"\u53ca{0}":_.YN=="zu"?", ne-{0}":_.YN=="af"||_.YN=="nl"?" en {0}":_.YN=="ar"||_.YN=="ar-XB"?" \u0648{0}":_.YN=="be"||_.YN=="uk"?" \u0456 {0}":_.YN=="en-GB"||_.YN=="en-IN"?" and {0}":_.YN=="en"||_.YN=="en-XA"?
", and {0}":_.YN=="et"||_.YN=="fi"?" ja {0}":_.YN=="fr"||_.YN=="fr-CA"?" et {0}":_.YN=="zh-CN"||_.YN=="zh-TW"?"\u548c{0}":_.YN=="da"||_.YN=="is"||_.YN=="no"?" og {0}":_.YN=="es"||_.YN=="es-419"||_.YN=="es-US"?" y {0}":_.YN=="kk"||_.YN=="lo"||_.YN=="mn"?", {0}":_.YN=="bg"||_.YN=="mk"||_.YN=="ru"||_.YN=="sr"?" \u0438 {0}":_.YN=="gl"||_.YN=="it"||_.YN=="pt-BR"||_.YN=="pt-PT"?" e {0}":" i {0}";var t=_.YN=="am"?"{0} \u12a5\u1293 {1}":_.YN=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.YN=="az"?"{0} v\u0259 {1}":
_.YN=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.YN=="de"?"{0} und {1}":_.YN=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.YN=="eu"?"{0} eta {1}":_.YN=="fa"?"{0} \u0648 {1}":_.YN=="fil"?"{0} at {1}":_.YN=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.YN=="hi"?"{0} \u0914\u0930 {1}":_.YN=="hu"?"{0} \u00e9s {1}":_.YN=="hy"?"{0} \u0587 {1}":_.YN=="iw"?"{0} \u05d5-{1}":_.YN=="ja"?"{0}\u3001{1}":_.YN=="ka"?"{0} \u10d3\u10d0 {1}":_.YN=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.YN=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.YN=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.YN=="ko"?"{0} \ubc0f {1}":_.YN=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.YN=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.YN=="lt"?"{0} ir {1}":_.YN=="lv"?"{0} un {1}":_.YN=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.YN=="mn"?"{0}, {1}":_.YN=="mr"?"{0} \u0906\u0923\u093f {1}":_.YN=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.YN=="ne"?"{0} \u0930 {1}":_.YN=="or"?"{0} \u0b13 {1}":_.YN=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.YN=="ro"?"{0} \u0219i {1}":_.YN==
"si"?"{0} \u0dc3\u0dc4 {1}":_.YN=="sl"?"{0} in {1}":_.YN=="sq"?"{0} dhe {1}":_.YN=="sv"?"{0} och {1}":_.YN=="sw"?"{0} na {1}":_.YN=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.YN=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.YN=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.YN=="tr"?"{0} ve {1}":_.YN=="ur"?"{0} \u0627\u0648\u0631 {1}":_.YN=="uz"?"{0} va {1}":_.YN=="vi"?"{0} v\u00e0 {1}":_.YN=="zh-HK"?"{0}\u53ca{1}":_.YN=="zu"?"{0} ne-{1}":_.YN=="af"||_.YN=="nl"?"{0} en {1}":_.YN=="ar"||_.YN==
"ar-XB"?"{0} \u0648{1}":_.YN=="be"||_.YN=="uk"?"{0} \u0456 {1}":_.YN=="cs"||_.YN=="sk"?"{0} a\u00a0{1}":_.YN=="et"||_.YN=="fi"?"{0} ja {1}":_.YN=="fr"||_.YN=="fr-CA"?"{0} et {1}":_.YN=="id"||_.YN=="ms"?"{0} dan {1}":_.YN=="zh-CN"||_.YN=="zh-TW"?"{0}\u548c{1}":_.YN=="da"||_.YN=="is"||_.YN=="no"?"{0} og {1}":_.YN=="es"||_.YN=="es-419"||_.YN=="es-US"?"{0} y {1}":_.YN=="bg"||_.YN=="mk"||_.YN=="ru"||_.YN=="sr"?"{0} \u0438 {1}":_.YN=="en"||_.YN=="en-GB"||_.YN=="en-IN"||_.YN=="en-XA"?"{0} and {1}":_.YN==
"gl"||_.YN=="it"||_.YN=="pt-BR"||_.YN=="pt-PT"?"{0} e {1}":"{0} i {1}";_.YN==="sq"?(e=e.replace("dhe","e"),t=t.replace("dhe","e")):_.YN==="th"?(y=y.replace("{0}"," {0}"),t=t.replace("{0}","{0} "),t=t.replace("{1}"," {1}")):_.YN==="ne"?y=",":_.YN==="zh-CN"?y="":w.includes(_.YN)&&(y=" ");return q.length<2?q.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(_.YN)?q.length===2?
t.replace("{0}",q[0]).replace("{1}",q[1]):u.replace("{0}",q[0])+q.slice(1,-1).join(y)+e.replace("{0}",q[q.length-1]):q.join(y)};
_.k.getTimeParam=function(){return LHc(this.timeString)};
_.k.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var q={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},w;_.Xf(_.Qz(),(w=this.data)==null?void 0:w.trackingParams,q,7)};
_.k.onChangeStartAtTimestamp=function(){for(var q=this.startAtTimestamp.value.split(":"),w=0,u=1,y=q.length-1;y>=0;y--)w+=Number(q[y])*u,u*=60;this.updateTimeSecs(w);this.setTimestamp()};
_.k.onOpen=function(){var q=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var w=_.xo();w?w.getPlayerPromise().then(function(u){u=u.getCurrentTime();q.updateTimeSecs(u)}):ITh()&&this.updateTimeSecs(ITh())};
_.k.setTimestamp=function(){var q=Math.floor(this.currentTimeSecs);_.Pw(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!q,timestamp:q||""}])};
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],k_.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],k_.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],k_.prototype,"data",void 0);_.c([_.v({value:!1,notify:!0}),_.h("design:type",Boolean)],k_.prototype,"isStartAtChecked",void 0);_.c([_.v(),_.h("design:type",Number)],k_.prototype,"currentTimeSecs",void 0);
_.c([_.v({computed:"computeTimeString(currentTimeSecs)"}),_.h("design:type",String)],k_.prototype,"timeString",void 0);_.c([_.v({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.h("design:type",String)],k_.prototype,"timeStringA11y",void 0);_.c([_.Wj("#start-at-timestamp"),_.h("design:type",Object)],k_.prototype,"startAtTimestamp",void 0);k_=_.c([_.JM({is:"yt-start-at-renderer",disableElementRegistration:!0})],k_);
_.R(k_,"yt-start-at-renderer",function(){if(TSA===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;Ucx===void 0&&(Ucx=document.createElement("template"));var y=Ucx;u.call(w,y.content.cloneNode(!0),q.content.firstChild);TSA=q}q=TSA;return q},{mode:2});var CxB;var dch;var OoK=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"]]),oEx=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"]]),VX6=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var f1T={};f1T.YtBindingExpressionsBehavior={identity:_.gj,msg:function(q,w){w=w===void 0?{}:w;return _.ID(q,w,q)},
msgPlural:function(q,w){return _.iy(q,w)},
getMusicIconFromType:function(q){if(_.T("music_web_enable_icon_wil"))q=_.Fy(q);else if(oEx.has(q))q="yt-sys-icons:"+oEx.get(q);else{var w=OoK.get(q)||_.Fy(q).split(":")[1];w=_.oa7(w);var u;q=((u=VX6.get(q))!=null?u:"yt-sys-icons:")+w}return q}};var mcc;var AV4;var JVA;var zFx=document.head,a1q=zFx.appendChild,Dca;if(JVA===void 0){var Zom=document.createElement("template");_.f(Zom,'\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>');JVA=Zom}Dca=JVA;a1q.call(zFx,Dca.content);var tC=function(){var q=_.Y.apply(this,arguments)||this;q.screenLayer=7;return q};
_.O(tC,_.Y);tC.prototype.getScreenLayer=function(){return this.screenLayer};
tC.prototype.onTap=function(q){q&&q.detail&&(q.detail.x||q.detail.y)&&_.A(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.GM(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(q=this.getScreenLayer(),_.t7(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:q}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.x$.Object.defineProperties(tC.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()}}});
tC.prototype.onTap=tC.prototype.onTap;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],tC.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],tC.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],tC.prototype,"data",void 0);_.c([_.Z("data.title"),_.h("design:type",Object),_.h("design:paramtypes",[])],tC.prototype,"title",null);
_.c([_.Z("data.serviceName"),_.h("design:type",String),_.h("design:paramtypes",[])],tC.prototype,"icon",null);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],tC.prototype,"onTap",null);tC=_.c([_.JM({is:"yt-share-target-renderer",disableElementRegistration:!0})],tC);
_.R(tC,"yt-share-target-renderer",function(){if(AV4===void 0){var q=document.createElement("template");_.f(q,'\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" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;mcc===void 0&&(mcc=document.createElement("template"));var y=mcc;u.call(w,y.content.cloneNode(!0),q.content.firstChild);AV4=q}q=AV4;return q},{mode:2});var pYV;var $cj;var PZ=function(){var q=_.Y.apply(this,arguments)||this;q.SHARE_TARGET_WIDTH=70;q.SHARE_TARGET_MARGIN_RIGHT=8;q.PAGE_SCROLL_SPEED=9;q.actionMap={"yt-share-panel-reset-action":"onReset_"};return q};
_.O(PZ,_.Y);_.k=PZ.prototype;_.k.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.k.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.A(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.A(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.k.onReset_=function(){if(_.A(this.hostElement).querySelector("#list")){var q=_.A(this.hostElement).querySelector("#list");var w=_.A(this.hostElement).querySelector("#list");var u=w.offsetLeft,y=w.offsetParent;y||_.PPZ(w)!="fixed"||(y=_.mN(w).documentElement);if(y){if(_.tv&&!_.X1(58)){var e=_.NxP(y);u+=e.left}else Number(_.bs7)>=8&&!(Number(_.bs7)>=9)&&(e=_.NxP(y),u-=e.left);w=_.Wjk(y)?y.clientWidth-(u+w.offsetWidth):u}else w=u;IhT(q,w);this.updateScrollButtons_()}};
_.k.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.k.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.k.onScrollWheel_=function(q){q.stopPropagation();q.preventDefault();var w=Qg6(_.A(this.hostElement).querySelector("#list"));q=Math.abs(q.deltaX)>Math.abs(q.deltaY)?q.deltaX:q.deltaY;IhT(_.A(this.hostElement).querySelector("#list"),w+q);this.updateScrollButtons_()};
_.k.smoothScrollByOnePage_=function(q){var w=_.A(this.hostElement).querySelector("#list"),u=(Math.floor(w.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,y=Qg6(w),e=u*(q?1:-1),t=this.PAGE_SCROLL_SPEED,X=this.updateScrollButtons_.bind(this),G=0,n;(function Q(){G+=t;n=G/u*2;IhT(w,y+e*(n<1?n*n:-n*n+4*n-2));G<u?window.requestAnimationFrame(Q):X()})()};
_.k.updateScrollButtons_=function(){var q=Qg6(_.A(this.hostElement).querySelector("#list")),w=_.A(this.hostElement).querySelector("#list").scrollWidth-_.A(this.hostElement).querySelector("#list").clientWidth;_.A(this.hostElement).querySelector("#scroll-button-back").hidden=q<=0;_.A(this.hostElement).querySelector("#scroll-button-forward").hidden=q>=w};
PZ.prototype.onScrollWheel_=PZ.prototype.onScrollWheel_;PZ.prototype.onDataChanged_=PZ.prototype.onDataChanged_;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],PZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],PZ.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(f1T.YtBindingExpressionsBehavior),_.h("design:type",Object)],PZ.prototype,"ytBindingExpressionsBehavior",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],PZ.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],PZ.prototype,"data",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],PZ.prototype,"onDataChanged_",null);_.c([_.Gm("wheel"),_.h("design:type",Function),_.h("design:paramtypes",[WheelEvent]),_.h("design:returntype")],PZ.prototype,"onScrollWheel_",null);
PZ=_.c([_.JM({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],PZ);
_.R(PZ,"yt-third-party-share-target-section-renderer",function(){if($cj===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;pYV===void 0&&(pYV=document.createElement("template"));var y=pYV;u.call(w,y.content.cloneNode(!0),q.content.firstChild);$cj=q}q=$cj;return q},{mode:2});var XL=function(){return _.Y.apply(this,arguments)||this};
_.O(XL,_.Y);XL.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"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],XL.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],XL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],XL.prototype,"data",void 0);XL=_.c([_.JM({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],XL);
_.R(XL,"yt-third-party-network-section-renderer",function(){if(dch===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;CxB===void 0&&(CxB=document.createElement("template"));var y=CxB;u.call(w,y.content.cloneNode(!0),q.content.firstChild);dch=q}q=dch;return q},{mode:2});_.q9(_.LL(function(q){return _.W("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.W("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.W(_.OF,{data:function(){return q.data().firstPartyItems}},{listItemViewModel:_.U$})))},"hg"),"first-party-network-section-view-model",{props:{data:_.pK}});var vEm=_.Sc(["data:image/svg+xml;charset=UTF-8;base64,",""]),FL=function(){var q=_.Y.apply(this,arguments)||this;q.screenLayer=7;q.qrCodeEnabled=_.T("web_enable_sharing_qr_code");q.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return q};
_.O(FL,_.Y);_.k=FL.prototype;_.k.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"}}}};
_.k.attached=function(){this.JSC$17728_scroller&&(this.JSC$17728_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17728_scroller.attached&&typeof this.JSC$17728_scroller.attached==="function"&&this.JSC$17728_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.k.onDataChanged=function(){var q=this,w;(w=this.data)!=null&&w.contents&&(this.hostElement.setAttribute("links-only","true"),_.kd(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.KJ(this,function(){_.t7(q.hostElement,"yt-refit");q.focusSharePanelHeader()}))};
_.k.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.k.handleSetTimestamp=function(q){var w=this.shortUrl();q.isSet&&(w=_.vU(w,"t",q.timestamp));this.maybeRenderQrCode(w)};
_.k.shortUrl=function(){var q,w=(q=this.data)==null?void 0:q.contents;if(w)for(q=0;q<w.length;q++){var u=void 0,y=void 0;if((u=w[q])==null?0:(y=u.thirdPartyNetworkSection)==null?0:y.copyLinkContainer){var e=y=u=void 0;return(e=_.C((u=w[q])==null?void 0:(y=u.thirdPartyNetworkSection)==null?void 0:y.copyLinkContainer,r3V))==null?void 0:e.shortUrl}}};
_.k.maybeRenderQrCode=function(q){var w=this,u,y,e,t,X,G,n,N,Q;return _.F(function(I){if(I.nextAddress==1){u=_.A(w.hostElement).querySelector("#qr-code");if(!w.qrCodeEnabled||!q)return u&&(u.style.display="none"),I.return();y=_.$Vf(_.tG().resolve(_.Gj),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});e=document.createElement("div");return typeof y==="function"?(y(e),I.jumpTo(2)):_.H(I,y,3)}I.nextAddress!=2&&(t=I.yieldResult,t(e));n=(X=e)==null?void 0:(G=X.firstChild)==null?void 0:G.firstChild;
N=document.createElement("img");Q=_.OY(vEm,btoa(n.outerHTML));N.onload=function(){var U={canvas:u,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:N},d=new lnh;q4c(d,q);w04(d,!1,uQm(d));var V=d.modules,J=Object.assign({},xFj,U);V=structuredClone(V);U=V.length;var a,b=(a=J.canvas)!=null?a:document.createElement("canvas");a=J.cellSize;d=J.logo;var g,l=(g=J.logoSize)!=null?g:Math.floor(U/4);U%2!==l%2&&l++;var S=J.logoPadding,eH=J.backgroundColor;g=U*a;var x=
J.width,P4=0;x&&(P4=J.padding,P4=Math.ceil(P4*g/(x-P4*2)),b.style.width=x+"px",b.style.height=x+"px");b.width!==g+P4*2&&(b.width=g+P4*2);b.height!==g+P4*2&&(b.height=g+P4*2);g=b.getContext("2d");J.autoClear&&g.clearRect(0,0,b.width,b.height);g.fillStyle=eH;g.beginPath();g.roundRect(0,0,b.width,b.height,J.borderRadius);g.fill();g.save();g.translate(P4,P4);if(d)for(b=Math.floor(U-l)/2-S,S=Math.floor(U+l)/2+S,eH=b;eH<S;eH++)for(x=b;x<S;x++)V[eH][x]=!1;for(b=0;b<U;b++)for(S=0;S<U;S++)(b<7&&S<7||b<7&&
S>=U-7||b>=U-7&&S<7)&&(V[b][S]=!1);var C7;b=(C7=J.markerColor)!=null?C7:J.color;e$j(g,0,0,a,b);e$j(g,a*(U-7),0,a,b);e$j(g,0,a*(U-7),a,b);switch(J.cellStyle){case 0:C7=V;V=C7.length;b=J.cellSize;g.beginPath();for(S=0;S<V;S++)for(eH=0;eH<V;eH++)C7[S][eH]&&g.rect(S*b,eH*b,b,b);g.fillStyle=J.color;g.fill();break;case 1:C7=V;V=C7.length;b=J.cellSize;S=b*J.relativeCircleSize;g.fillStyle=J.color;g.beginPath();for(J=0;J<V;J++)for(eH=0;eH<V;eH++)C7[J][eH]&&(g.beginPath(),g.ellipse((J+.5)*b,(eH+.5)*b,S/2,S/
2,0,0,2*Math.PI),g.fill());g.fill();break;case 2:C7=V;V=C7.length;b=J.cellSize;g.fillStyle=J.color;J=[[1,1],[-1,1],[-1,-1],[1,-1]];g.beginPath();for(S=0;S<V;S++)for(eH=0;eH<V;eH++)if(C7[S][eH])g.roundRect(S*b,eH*b,b,b,b/2),S+1<V&&C7[S+1][eH]&&g.rect(S*b+b/2,eH*b,b,b),eH+1<V&&C7[S][eH+1]&&g.rect(S*b,eH*b+b/2,b,b);else{x=S*b+b/2;P4=eH*b+b/2;for(var mu=0;mu<4;mu++){var Os=_.P(J[mu]),YJ=Os.next().value;Os=Os.next().value;S+YJ>=0&&S+YJ<V&&eH+Os>=0&&eH+Os<V&&C7[S+YJ][eH]&&C7[S][eH+Os]&&C7[S+YJ][eH+Os]&&
(YJ=mu*Math.PI/2,Os=b/2,g.moveTo(x+Os*Math.cos(YJ),P4+Os*Math.sin(YJ)),g.arc(x,P4,b/2,YJ,YJ+Math.PI/2,!1),g.lineTo(x+Os*(Math.cos(YJ)-Math.sin(YJ)),P4+Os*(Math.cos(YJ)+Math.sin(YJ))),g.lineTo(x+Os*Math.cos(YJ),P4+Os*Math.sin(YJ)))}}g.fill()}d&&g.drawImage(d,(U-l)*a/2,(U-l)*a/2,l*a,l*a);g.restore();u.style.removeProperty("display")};
N.src=_.NC(Q);_.HI(I)})};
_.k.hasCommunityPostRenderer=function(){var q,w,u,y;return!!((q=this.data)==null?0:(w=q.header)==null?0:(u=w.sharePanelHeaderRenderer)==null?0:(y=u.communityPost)==null?0:y.communityPostSectionRenderer)};
_.k.onTapClose=function(){_.Pw(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.k.getScreenLayer=function(){return this.screenLayer};
_.k.logSharePanelPage=function(){if(!_.T("enable_share_panel_navigation_logging_fix_on_web")){var q;if((q=this.data)!=null&&q.trackingParams){q=this.data.trackingParams;var w=this.parentClickTrackingParams;w=w?_.Tj(w):void 0;var u=_.Qz();_.e$(u,21760,w,{layer:7,parentLayer:0});u.graftServerVe(q,void 0,7);_.Mt().dispatch(_.tr({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
FL.prototype.onDataChanged=FL.prototype.onDataChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],FL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],FL.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],FL.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],FL.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],FL.prototype,"data",void 0);_.c([_.v({value:_.ID("SBOX_INAPPROPRIATE_CANCEL")}),_.h("design:type",String)],FL.prototype,"closeButtonAriaLabel",void 0);_.c([_.Wj("yt-share-panel-header-renderer"),_.h("design:type",HTMLElement)],FL.prototype,"header",void 0);_.c([_.v({selector:function(q){return q.share.parentClickTrackingParams}}),
_.h("design:type",String)],FL.prototype,"parentClickTrackingParams",void 0);_.c([_.v(),_.h("design:type",Object)],FL.prototype,"qrCodeEnabled",void 0);_.c([_.Wj("#scroller"),_.h("design:type",Object)],FL.prototype,"JSC$17728_scroller",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],FL.prototype,"onDataChanged",null);FL=_.c([_.E({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],FL);
_.R(FL,"ytd-unified-share-panel-renderer",function(){if(nEA!==void 0)return nEA;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return nEA=q},{mode:1});var bom;var GO=function(){var q=_.Y.apply(this,arguments)||this;q.modernModal=_.T("kevlar_sign_in_modal_modernization");return q};
_.O(GO,_.Y);GO.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
GO.prototype.computeShouldHideOldButtons=function(){var q;return!((q=this.data)==null?0:q.button)};
_.x$.Object.defineProperties(GO.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var q,w;if(this.modernModal&&((q=this.data)==null?0:(w=q.button)==null?0:w.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var u,y;return(u=this.data)==null?void 0:(y=u.button)==null?void 0:y.buttonRenderer}}});
_.c([_.v(),_.h("design:type",Object)],GO.prototype,"data",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],GO.prototype,"ytEventForwardingBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],GO.prototype,"modernModal",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],GO.prototype,"buttonRendererData",null);
GO=_.c([_.E({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],GO);
_.R(GO,"ytd-modal-with-title-and-button-renderer",function(){if(bom!==void 0)return bom;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return bom=q},{mode:1});var Yh6;var nB=function(){return _.Y.apply(this,arguments)||this};
_.O(nB,_.Y);nB.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.D1("page-changed",this.page))};
nB.prototype.pageChangedForBinding=nB.prototype.pageChangedForBinding;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],nB.prototype,"data",void 0);_.c([_.v(),_.h("design:type",String)],nB.prototype,"page",void 0);_.c([_.nL("page"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nB.prototype,"pageChangedForBinding",null);
nB=_.c([_.E({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],nB);
_.R(nB,"ytd-account-item-section-header-renderer",function(){if(Yh6!==void 0)return Yh6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Yh6=q},{mode:1});var gEA;var HZ=function(){return _.Y.apply(this,arguments)||this};
_.O(HZ,_.Y);HZ.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"}}}};
HZ.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],HZ.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],HZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.JR),_.h("design:type",Object)],HZ.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],HZ.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!1}),_.h("design:type",Function)],HZ.prototype,"onAccountItemTap",void 0);
HZ=_.c([_.E({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],HZ);
_.R(HZ,"ytd-account-item-section-renderer",function(){if(gEA!==void 0)return gEA;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return gEA=q},{mode:1});var EEV;var RFB;var WZ=function(){return _.Y.apply(this,arguments)||this};
_.O(WZ,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],WZ.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],WZ.prototype,"data",void 0);WZ=_.c([_.E({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],WZ);
_.R(WZ,"ytd-accounts-dialog-header-renderer",function(){if(RFB!==void 0)return RFB;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return RFB=q},{mode:1});var cVc;var sD=function(){return _.Y.apply(this,arguments)||this};
_.O(sD,_.Y);sD.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],sD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],sD.prototype,"data",void 0);sD=_.c([_.E({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],sD);
_.R(sD,"ytd-google-account-header-renderer",function(){if(cVc!==void 0)return cVc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return cVc=q},{mode:1});var NX=function(){return _.Y.apply(this,arguments)||this};
_.O(NX,_.Y);NX.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"}}}};
NX.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.D1("page-changed",this.page))};
NX.prototype.pageChangedForBinding=NX.prototype.pageChangedForBinding;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],NX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],NX.prototype,"data",void 0);_.c([_.v(),_.h("design:type",String)],NX.prototype,"page",void 0);
_.c([_.nL("page"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NX.prototype,"pageChangedForBinding",null);NX=_.c([_.E({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],NX);
_.eD()(NX,"ytd-account-section-list-renderer",function(){if(EEV===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);EEV=q}q=EEV;return q},{allowedProps:["data"],
mode:1});var Shq;var QX=function(){var q=_.Y.apply(this,arguments)||this;q.enableHandlesAccountMenuSwitcher=_.T("enable_handles_account_menu_switcher");return q};
_.O(QX,_.Y);QX.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
QX.prototype.dataChanged=QX.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],QX.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],QX.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],QX.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.c([_.Wj("#avatar"),_.h("design:type",Object)],QX.prototype,"avatar",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QX.prototype,"dataChanged",null);QX=_.c([_.E({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],QX);
_.eD()(QX,"ytd-active-account-header-renderer",function(){if(Shq===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);Shq=q}q=Shq;return q},{allowedProps:["data"],
mode:1});var hFH;var jaa;var II=function(){return _.Y.apply(this,arguments)||this};
_.O(II,_.Y);II.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
II.prototype.onBackTap=function(){_.t7(this.hostElement,"yt-menu-back-tapped")};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],II.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],II.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],II.prototype,"data",void 0);II=_.c([_.E({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],II);
_.eD()(II,"ytd-simple-menu-header-renderer",function(){if(jaa===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);jaa=q}q=jaa;return q},{allowedProps:["data"],
mode:2});var l16;var iF=function(){return _.Y.apply(this,arguments)||this};
_.O(iF,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],iF.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],iF.prototype,"data",void 0);iF=_.c([_.E({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],iF);
_.R(iF,"ytd-comment-video-thumbnail-header-renderer",function(){if(l16!==void 0)return l16;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return l16=q},{mode:1});var LDV;var rF=function(){return _.Y.apply(this,arguments)||this};
_.O(rF,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],rF.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],rF.prototype,"data",void 0);rF=_.c([_.E({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],rF);
_.R(rF,"ytd-abuse-type-selector-renderer",function(){if(LDV!==void 0)return LDV;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return LDV=q},{mode:1});var MXT;var UD=function(){return _.Y.apply(this,arguments)||this};
_.O(UD,_.Y);UD.prototype.attached=function(){var q=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){q.additionalContextInput.focusTextInput()})};
UD.prototype.handleAdditionalContextChanged=function(){var q=this;_.bf(this,"ytd-report-channel-additional-context-update",function(){q.ytdReduxBehavior.dispatch(_.tr({type:"ADDITIONAL_CONTEXT_UPDATED",payload:q.additionalContext}))},300)};
UD.prototype.updateAdditionalContextFromBinding=function(q){this.additionalContext=q.detail.value};
UD.prototype.handleAdditionalContextChanged=UD.prototype.handleAdditionalContextChanged;_.c([_.D(_.fU),_.h("design:type",Object)],UD.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",String)],UD.prototype,"additionalContext",void 0);_.c([_.v({selector:function(q){return q.reportChannelAbuse.additionalContext}}),
_.h("design:type",String)],UD.prototype,"additionalContextRedux",void 0);_.c([_.v(),_.h("design:type",Object)],UD.prototype,"data",void 0);_.c([_.Wj("yt-text-input-form-field-renderer"),_.h("design:type",Object)],UD.prototype,"additionalContextInput",void 0);_.c([_.nL("additionalContext"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UD.prototype,"handleAdditionalContextChanged",null);
UD=_.c([_.E({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],UD);
_.R(UD,"ytd-report-channel-modal-additional-context-renderer",function(){if(MXT!==void 0)return MXT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return MXT=q},{mode:1});var KDa;var TO=function(){var q=_.Y.apply(this,arguments)||this;q.nextButtonDisabled=null;q.submitEndpoint=null;q.navigationEndpoint=null;q.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return q};
_.O(TO,_.Y);_.k=TO.prototype;_.k.computeNextButtonData=function(q,w,u){var y={};w&&(y.navigationEndpoint=w);u&&(y.serviceEndpoint=u);q&&q.buttonRenderer&&_.db.extend(y,q.buttonRenderer);return y};
_.k.handleReportChannelModalDisableNextButtonAction=function(q){this.setNextButtonIsDisabled(q)};
_.k.handleReportFormEndpointUpdateAction=function(q){this.setNextButtonIsDisabled(!!q.disableSubmitButton);this.resetEndpointData();q.submitEndpoint?this.submitEndpoint=q.submitEndpoint:q.submitNavigationEndpoint&&(this.navigationEndpoint=q.submitNavigationEndpoint)};
_.k.handleSignalActionSubmitForm=function(){var q,w=Object.keys(((q=this.reportChannelAbuseForm)==null?void 0:q.selectedVideoIds)||{}),u;q=((u=this.reportChannelAbuseForm)==null?void 0:u.additionalContext)||"";var y;u=((y=this.reportChannelAbuseForm)==null?void 0:y.impersonatedChannelUrl)||"";var e;if((e=this.data)==null?0:e.submitEndpoint){w={impersonated_channel_url:u,text:q,video_ids:w};var t;_.tG().resolve(_.PG).resolveCommand((t=this.data)==null?void 0:t.submitEndpoint,{form:Object.assign({},
w,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.k.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.k.onYtServiceRequestError=function(q){this.setNextButtonIsDisabled(!1);_.xH(this.hostElement,q.detail.error.message)};
_.k.setNextButtonIsDisabled=function(q){this.set("data.nextButton.buttonRenderer.isDisabled",q)};
_.k.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
TO.prototype.onYtServiceRequestError=TO.prototype.onYtServiceRequestError;TO.prototype.onYtServiceRequestCompleted=TO.prototype.onYtServiceRequestCompleted;_.c([_.v(),_.h("design:type",Object)],TO.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],TO.prototype,"nextButtonDisabled",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],TO.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],TO.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],TO.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],TO.prototype,"submitEndpoint",void 0);_.c([_.v(),_.h("design:type",Object)],TO.prototype,"navigationEndpoint",void 0);_.c([_.v({selector:function(q){return q.reportChannelAbuse}}),
_.h("design:type",Object)],TO.prototype,"reportChannelAbuseForm",void 0);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],TO.prototype,"onYtServiceRequestCompleted",null);_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],TO.prototype,"onYtServiceRequestError",null);
TO=_.c([_.E({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],TO);
_.R(TO,"ytd-report-channel-modal-footer-renderer",function(){if(KDa!==void 0)return KDa;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return KDa=q},{mode:1});var BSa;var CB=function(){var q=_.Y.apply(this,arguments)||this;q.boundOnTapDismissButton=function(){q.closePopup()};
return q};
_.O(CB,_.Y);CB.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
CB.prototype.handleDataChanged=function(){_.xZ(this.hostElement)};
CB.prototype.closePopup=function(){_.Pw(this.hostElement,"yt-close-popup-action")};
CB.prototype.handleDataChanged=CB.prototype.handleDataChanged;_.c([_.v(),_.h("design:type",Object)],CB.prototype,"boundOnTapDismissButton",void 0);_.c([_.v(),_.h("design:type",Object)],CB.prototype,"data",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],CB.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CB.prototype,"handleDataChanged",null);CB=_.c([_.E({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],CB);
_.R(CB,"ytd-report-channel-modal-header-renderer",function(){if(BSa!==void 0)return BSa;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return BSa=q},{mode:1});var xc4;var dF=function(){var q=_.Y.apply(this,arguments)||this;q.autoValidate=!1;q.invalid=!1;q.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return q};
_.O(dF,_.Y);_.k=dF.prototype;_.k.attached=function(){var q=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){q.channelUrlInput.focusTextInput()})};
_.k.disableNextButton=function(q){_.Pw(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[q])};
_.k.handleImpersonatedChannelUrlChanged=function(){var q=this;this.disableNextButton(!0);this.invalid=!1;_.bf(this,"ytd-report-channel-impersonated-channel-update",function(){var w=q.impersonatedChannelUrl.trim();q.ytdReduxBehavior.dispatch(_.tr({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:w}));var u;((u=q.data)==null?0:u.submitEndpoint)&&w&&_.tG().resolve(_.PG).resolveCommand(q.data.submitEndpoint,{form:{impersonated_channel_url:w,element:q.hostElement}})},500)};
_.k.handleModifyReportFormCommand=function(q){this.invalid=this.get("modifyReportFormCommand.action",q)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.k.updateInvalidFromBinding=function(q){this.invalid=q.detail.value};
_.k.updateImpersonatedChannelUrlFromBinding=function(q){this.impersonatedChannelUrl=q.detail.value};
dF.prototype.handleImpersonatedChannelUrlChanged=dF.prototype.handleImpersonatedChannelUrlChanged;_.c([_.D(_.fU),_.h("design:type",Object)],dF.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],dF.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],dF.prototype,"autoValidate",void 0);_.c([_.v(),_.h("design:type",Object)],dF.prototype,"invalid",void 0);
_.c([_.v(),_.h("design:type",String)],dF.prototype,"impersonatedChannelUrl",void 0);_.c([_.v({selector:function(q){return q.reportChannelAbuse.impersonatedChannelUrl}}),
_.h("design:type",String)],dF.prototype,"impersonatedChannelUrlRedux",void 0);_.c([_.v(),_.h("design:type",Object)],dF.prototype,"data",void 0);_.c([_.Wj("#text-input"),_.h("design:type",Object)],dF.prototype,"channelUrlInput",void 0);_.c([_.nL("impersonatedChannelUrl"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dF.prototype,"handleImpersonatedChannelUrlChanged",null);
dF=_.c([_.E({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],dF);
_.R(dF,"ytd-report-channel-modal-impersonation-renderer",function(){if(xc4!==void 0)return xc4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return xc4=q},{mode:1});var qrA;var wvm;var OD=function(){return _.Y.apply(this,arguments)||this};
_.O(OD,_.Y);OD.prototype.onCheckboxToggled=function(q){var w,u,y=(u=_.C((w=this.data)==null?void 0:w.video,_.ZE))==null?void 0:u.videoId;y&&this.ytdReduxBehavior.dispatch(q.target.checked?_.tr({type:"VIDEO_SELECTED",payload:y}):_.tr({type:"VIDEO_UNSELECTED",payload:y}))};
OD.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.x$.Object.defineProperties(OD.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var q,w=(q=this.data)==null?void 0:q.video;if(!w)return{};var u;q=(u=_.C(w,_.ZE))==null?void 0:u.navigationEndpoint;if(!q)return w;_.C(q==null?void 0:q.commandMetadata,_.wk)&&(_.C(q.commandMetadata,_.wk).ignoreNavigation=!0);return w}}});
_.c([_.v({reflectToAttribute:!0,selector:function(q,w){return w in q.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.h("design:type",Boolean)],OD.prototype,"checked",void 0);_.c([_.v(),_.h("design:type",Object)],OD.prototype,"data",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],OD.prototype,"video",null);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],OD.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.fU),_.h("design:type",Object)],OD.prototype,"ytdReduxBehavior",void 0);OD=_.c([_.E({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],OD);
_.R(OD,"ytd-selectable-video-renderer",function(){if(wvm!==void 0)return wvm;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return wvm=q},{mode:1});var oI=function(){var q=_.Y.apply(this,arguments)||this;q.monitorScroll=!0;return q};
_.O(oI,_.Y);oI.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],oI.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],oI.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],oI.prototype,"data",void 0);oI=_.c([_.E({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],oI);
_.R(oI,"ytd-selectable-video-list-renderer",function(){if(qrA!==void 0)return qrA;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return qrA=q},{mode:1});var up6;_.JE("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var VX=function(){return _.Y.apply(this,arguments)||this};
_.O(VX,_.Y);VX.prototype.onChange=function(q){if(q=_.he(q).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.T("kevlar_command_handler_migration_killswitch"))_.nq(this.hostElement,q,this.hostElement);else{q=_.P(q);for(var w=q.next();!w.done;w=q.next())this.ytComponentBehavior.resolveCommand(w.value)}};
VX.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
VX.prototype.updateDataToggledFromBinding=function(q){this.set("data.toggled",q.detail.value)};
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],VX.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],VX.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],VX.prototype,"data",void 0);_.c([_.v({computed:"isEnabled(data)"}),_.h("design:type",Boolean)],VX.prototype,"enabled",void 0);VX=_.c([_.E({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],VX);
_.R(VX,"ytd-toggle-item-renderer",function(){if(up6!==void 0)return up6;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return up6=q},{mode:1});var yoh;var eNh;var krV;var fB=function(){var q=_.Y.apply(this,arguments)||this;q.setVisible=!1;q.boundOnSubmitButtonClick=function(){q.onSubmitButtonClick()};
q.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return q};
_.O(fB,_.Y);fB.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}}}}}};
fB.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
fB.prototype.onSubmitButtonClick=function(){var q;((q=this.data)==null?0:q.submitEndpoint)&&!_.T("enable_ytc_refunds_submit_form_signal_action")&&_.GM(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
fB.prototype.handleSignalActionSubmitForm=function(){var q;((q=this.data)==null?0:q.submitEndpoint)&&_.GM(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.x$.Object.defineProperties(fB.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.hiddenByDefault)&&!this.setVisible}}});
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],fB.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],fB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],fB.prototype,"setVisible",void 0);_.c([_.v(),_.h("design:type",Object)],fB.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",Object)],fB.prototype,"surveyFeedbackData",void 0);_.c([_.v(),_.h("design:type",Object)],fB.prototype,"boundOnSubmitButtonClick",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("data","setVisible"),_.h("design:type",Object),_.h("design:paramtypes",[])],fB.prototype,"visibilityHidden",null);fB=_.c([_.JM({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],fB);
_.R(fB,"yt-flow-footer-renderer",function(){if(krV===void 0){var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;eNh===void 0&&(eNh=document.createElement("template"));var y=eNh;u.call(w,y.content.cloneNode(!0),q.content.firstChild);krV=q}q=krV;return q},{mode:2});var my=function(){return _.Y.apply(this,arguments)||this};
_.O(my,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],my.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],my.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],my.prototype,"data",void 0);_.c([_.v({selector:function(q){return q.ypc.surveyFeedbackData}}),
_.h("design:type",Object)],my.prototype,"surveyFeedbackData",void 0);my=_.c([_.E({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],my);
_.R(my,"ytd-flow-footer-renderer",function(){if(yoh!==void 0)return yoh;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return yoh=q},{mode:_.kB("kevlar_poly_si_batch_j025")?1:2});var t8m;var P7A;var AC=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return q};
_.O(AC,_.Y);_.k=AC.prototype;_.k.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.zW("multiPageMenuSectionItems")}}};
_.k.handleHideEnclosingAction_=function(q){if(this.data&&this.data.items)for(var w=0;w<this.data.items.length;w++){var u=this.data.items[w].notificationRenderer;if(u&&u.notificationId==q.hideEnclosingAction.notificationId){this.splice("data.items",w,1);_.Pw(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.k.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.kd(this.hostElement,"hidden",!0)};
_.k.updateMenu_=function(q){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&q&&!q.doNotRefreshInbox){q=this.data.continuations;for(var w=0;w<q.length;w++)if(q[w].invalidationContinuationData){var u=void 0;var y=(u=q[w].invalidationContinuationData)==null?void 0:u.continuation;break}q=_.db.clone(this.data.continuationUpdateEndpoint||null);q.continuation=y;q.click_tracking_params=this.data.trackingParams;_.GM(this.hostElement,[q])}};
_.k.onServiceRequestCompleted_=function(q,w){if(this.data&&(q=w.actions)){w=0;for(var u=q.length;w<u;w++){var y=_.C(q[w],_.P8X);if(!y)break;if((y.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||y.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&y.continuationItems&&this.data.items){var e=this.data.items.length-1;this.data.items[e].continuationItemRenderer&&this.splice.apply(this,["data.items",e,1].concat(y.continuationItems))}}}};
AC.prototype.onServiceRequestCompleted_=AC.prototype.onServiceRequestCompleted_;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],AC.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],AC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],AC.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],AC.prototype,"data",void 0);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],AC.prototype,"onServiceRequestCompleted_",null);AC=_.c([_.JM({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],AC);
_.eD()(AC,"yt-multi-page-menu-section-renderer",function(){if(P7A===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;t8m===void 0&&(t8m=document.createElement("template"));var y=t8m;u.call(w,y.content.cloneNode(!0),q.content.firstChild);P7A=q}q=P7A;return q},{allowedProps:["data"],
mode:2});var XvB;var FJA;var JC=function(){return _.Y.apply(this,arguments)||this};
_.O(JC,_.Y);JC.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.x$.Object.defineProperties(JC.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.progress)==null?0:this.data.progress*100}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],JC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],JC.prototype,"data",void 0);_.c([_.Z("data.progress"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],JC.prototype,"showProgressBar",null);
_.c([_.Z("data.progress"),_.h("design:type",Number),_.h("design:paramtypes",[])],JC.prototype,"progress",null);JC=_.c([_.JM({is:"yt-flow-header-renderer",disableElementRegistration:!0})],JC);
_.R(JC,"yt-flow-header-renderer",function(){if(FJA===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;XvB===void 0&&(XvB=document.createElement("template"));var y=XvB;u.call(w,y.content.cloneNode(!0),q.content.firstChild);FJA=q}q=FJA;return q},{mode:2});var Gra;var np6;var zO=function(){return _.Y.apply(this,arguments)||this};
_.O(zO,_.Y);zO.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],zO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],zO.prototype,"data",void 0);zO=_.c([_.JM({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],zO);
_.R(zO,"yt-post-confirmation-flow-step-renderer",function(){if(np6===void 0){var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;Gra===void 0&&(Gra=document.createElement("template"));var y=Gra;u.call(w,y.content.cloneNode(!0),q.content.firstChild);np6=q}q=np6;return q},{mode:2});var HUx;var WJT;var aI=function(){return _.Y.apply(this,arguments)||this};
_.O(aI,_.Y);
aI.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"}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],aI.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],aI.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],aI.prototype,"data",void 0);aI=_.c([_.JM({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],aI);
_.R(aI,"yt-refund-confirmation-flow-step-renderer",function(){if(WJT===void 0){var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;HUx===void 0&&(HUx=document.createElement("template"));var y=HUx;u.call(w,y.content.cloneNode(!0),q.content.firstChild);WJT=q}q=WJT;return q},{mode:2});_.t2(MpK);_.t2(KHT);var B16=_.UF({avatarViewModel:_.Vb});_.t2(x4H);var qCc=_.UF({commentInteractionViewModel:KHT,sharedSubscriptionViewModel:x4H,buttonViewModel:_.Zs});_.t2(wwT);_.t2(u44);_.t2(y7x);_.t2(eKB);_.t2(kMB);var tBc=_.UF({profileIdentityInfoViewModel:_.F$j,profileInfoViewModel:kMB});_.t2(PyK);_.XK(PyK,"yt-profile-card-view-model",{propNames:["data"]});var D5=function(){var q=_.Y.apply(this,arguments)||this;q.enableFocusFix=_.T("music_web_enable_focus_on_setting_menu_fix")&&_.RX("IS_MOBILE_WEB",!1);q.covered=!1;q.hideMenu=!1;q.isCommentNotificationOnProfileCard=!1;q.scrolledByTouch=!1;q.disableBackdropFilter=_.T("web_disable_backdrop_filter");q.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return q};
_.O(D5,_.Y);_.k=D5.prototype;
_.k.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"}}}};
_.k.ready=function(){var q=this;this.JSC$17837_containerElement.addEventListener("scroll",function(){q.ytRendererBehavior.markDirty()})};
_.k.attributeChanged=function(q,w){q==="menu-style"&&_.Pw(this.hostElement,"yt-multi-page-menu-closed-action",[w])};
_.k.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Fj(this,this.focusOnStampFinished))};
_.k.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Fj(this,this.focusOnStampFinished))};
_.k.reset=function(){this.closeJobId&&(_.pi.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.k.focusOnStampFinished=function(q){q.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Fj(this,this.focusOnStampFinished)),this.doFocus())};
_.k.doFocus=function(){var q=_.rEj(this.sectionsElement);q.length&&q[0].focus()};
_.k.computeMenuStyle=function(q){return q?q.toLowerCase().replace(/_/g,"-"):""};
_.k.computeIsCommentNotificationOnProfileCard=function(q){return _.T("enable_profile_cards_on_comments")&&q.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.k.computeHideMenu=function(q,w){return q||!(!w||!w.showLoadingSpinner)};
_.k.onPopupClosed=function(){this.isPopUpOpen=!1;_.Pw(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.k.onPopupOpened=function(q,w){this.isPopUpOpen=!0;w.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.t7(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.tr({type:"CHANNEL_REPORT_RESET"})))};
_.k.onYtNavigate=function(q,w){this.shouldCloseOnNavigateEvent(w.endpoint)&&_.Pw(this.hostElement,"yt-close-all-popups-action")};
_.k.handleEndpoint=function(q){q=_.C(q,_.mZ);!this.isCommentNotificationOnProfileCard&&q&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17837_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.k.handleActions=function(q){for(var w=0,u=q.length;w<u;w++){var y=_.C(q[w],CMj);y&&this.handleGetMultiPageMenuAction(y);(y=_.C(q[w],_.P8X))&&this.handleAppendContinuationItemsAction(y)}};
_.k.onServiceRequestSentOrCompleted=function(q,w){q.detail&&q.detail.endpoint&&this.handleEndpoint(q.detail.endpoint);w.actions&&this.handleActions(w.actions)};
_.k.handleGetMultiPageMenuAction=function(q){var w=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.A(this.submenuElement).appendChild(w);(q=q.menu.multiPageMenuRenderer)&&this.logSubmenu(q);w.data=q;w.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.k.handleAppendContinuationItemsAction=function(q){if(this.data&&q.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&q.continuationItems&&this.data.sections){var w=this.data.sections.length-1;this.data.sections[w].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),w--);if(this.data.sections[w].multiPageMenuNotificationSectionRenderer&&q.continuationItems){q=_.P(q==null?void 0:q.continuationItems);for(var u=q.next();!u.done;u=q.next())if(u=u.value,_.C(u,LmB)){var y=
void 0,e=void 0,t=void 0,X=void 0,G=void 0;((y=this)==null?0:(e=y.data)==null?0:(t=e.sections)==null?0:(X=t[w])==null?0:(G=X.multiPageMenuNotificationSectionRenderer)==null?0:G.items)&&this.push("data.sections."+w+".multiPageMenuNotificationSectionRenderer.items",u)}else if(_.C(u,_.lSc)||_.C(u,_.ec))this.push("data.sections",u),w++}}};
_.k.logSubmenu=function(q){if(!_.T("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var w=this.ytRendererBehavior.getScreenLayer(),u=_.pN(w),y=_.ZB(w);if((q=q.trackingParams)&&u&&y){var e=_.Tj(q);_.T("combine_ve_grafts")?_.Qz().graftServerVe(q,y,w):_.EC(u,y,e)}}};
_.k.emptySubmenuContainer=function(){for(var q=_.A(this.submenuElement);q.firstChild;)q.removeChild(q.firstChild)};
_.k.onMenuBackTap=function(q){_.t7(this.hostElement,"yt-submenu-closed");q.stopPropagation()};
_.k.onSubmenuClosed=function(q){_.he(q)!==this.hostElement&&(this.covered=!1,_.t7(this.hostElement,"yt-refit"),q.stopPropagation())};
_.k.onRetrieveLocation=function(q,w){w.hasComments&&(w.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),q.stopPropagation())};
_.k.shouldCloseOnNavigateEvent=function(q){if(!q)return!0;if(_.C(q,_.hJ$)||_.C(q,_.jqk)||_.C(q,_.Sc$)||_.C(q,_.jw))return!1;var w;return((w=_.C(q==null?void 0:q.commandMetadata,_.wk))==null?0:w.ignoreNavigation)?!1:!0};
_.k.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.k.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.k.refitAfterRender=function(){var q=this;_.KJ(this,function(){_.t7(q.hostElement,"yt-refit")})};
D5.prototype.refitAfterRender=D5.prototype.refitAfterRender;D5.prototype.onRetrieveLocation=D5.prototype.onRetrieveLocation;D5.prototype.onSubmenuClosed=D5.prototype.onSubmenuClosed;D5.prototype.onMenuBackTap=D5.prototype.onMenuBackTap;D5.prototype.onServiceRequestSentOrCompleted=D5.prototype.onServiceRequestSentOrCompleted;D5.prototype.onYtNavigate=D5.prototype.onYtNavigate;D5.prototype.onPopupOpened=D5.prototype.onPopupOpened;D5.prototype.onPopupClosed=D5.prototype.onPopupClosed;
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],D5.prototype,"ytEventForwardingBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],D5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],D5.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],D5.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",Object)],D5.prototype,"enableFocusFix",void 0);_.c([_.v(),_.h("design:type",Object)],D5.prototype,"covered",void 0);_.c([_.v({computed:"computeHideMenu(covered, data)"}),_.h("design:type",Object)],D5.prototype,"hideMenu",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.h("design:type",String)],D5.prototype,"menuStyle",void 0);
_.c([_.v({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.h("design:type",Object)],D5.prototype,"isCommentNotificationOnProfileCard",void 0);_.c([_.v(),_.h("design:type",Boolean)],D5.prototype,"isPopUpOpen",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],D5.prototype,"scrolledByTouch",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],D5.prototype,"disableBackdropFilter",void 0);
_.c([_.Wj("#sections"),_.h("design:type",HTMLElement)],D5.prototype,"sectionsElement",void 0);_.c([_.Wj("#spinner"),_.h("design:type",HTMLElement)],D5.prototype,"spinnerElement",void 0);_.c([_.Wj("#header"),_.h("design:type",HTMLElement)],D5.prototype,"headerElement",void 0);_.c([_.Wj("#container"),_.h("design:type",HTMLElement)],D5.prototype,"JSC$17837_containerElement",void 0);_.c([_.Wj("#submenu"),_.h("design:type",HTMLElement)],D5.prototype,"submenuElement",void 0);
_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],D5.prototype,"onPopupClosed",null);_.c([_.Gm("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],D5.prototype,"onPopupOpened",null);_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],D5.prototype,"onYtNavigate",null);
_.c([_.Gm("yt-service-request-completed"),_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],D5.prototype,"onServiceRequestSentOrCompleted",null);_.c([_.Gm("yt-menu-back-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],D5.prototype,"onMenuBackTap",null);
_.c([_.Gm("yt-submenu-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],D5.prototype,"onSubmenuClosed",null);_.c([_.Gm("yt-retrieve-location"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],D5.prototype,"onRetrieveLocation",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],D5.prototype,"refitAfterRender",null);
D5=_.c([_.E({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],D5);
_.R(D5,"ytd-multi-page-menu-renderer",function(){if(hFH!==void 0)return hFH;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return hFH=q},{mode:1});var sT4;var Z5=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return q};
_.O(Z5,_.Y);_.k=Z5.prototype;_.k.created=function(){this.showTooltips=!0};
_.k.computeAccessibility_=function(q){return this.get("accessibility.accessibilityData",q)||null};
_.k.onTap=function(){var q=_.X4(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(q&&q.length===1&&q[0])_.Pw(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var w;if((w=this.data)==null?0:w.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var u;((u=this.data)==null?0:u.menuRequest)&&_.GM(this.hostElement,[this.data.menuRequest])}}};
_.k.handleTopbarMenuClosedAction=function(q){var w,u;(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(q)===((w=this.data)==null?void 0:(u=w.icon)==null?void 0:u.iconType)&&this.toggleIconState(!1)};
_.k.toggleIconState=function(q){_.T("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=q)};
_.k.handleUpdateTopbarAvatarAction=function(q){var w;q=(w=_.C(q,NQx))==null?void 0:w.avatarUrl;var u,y;w=(u=this.data)==null?void 0:(y=u.avatar)==null?void 0:y.thumbnails;q&&w&&(u={thumbnails:[Object.assign({},w[0],{url:q})]},this.set("data.avatar",u))};
_.x$.Object.defineProperties(Z5.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.A(this.hostElement).querySelector("#button")}}});
Z5.prototype.onTap=Z5.prototype.onTap;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Z5.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.YE),_.h("design:type",Object)],Z5.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.D(_.F8r.YtButtonBehavior),_.h("design:type",Object)],Z5.prototype,"ytButtonBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Z5.prototype,"data",void 0);
_.c([_.Wj("yt-icon-button#button"),_.h("design:type",Object)],Z5.prototype,"iconButton",void 0);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Z5.prototype,"onTap",null);Z5=_.c([_.E({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Z5);
_.R(Z5,"ytd-topbar-menu-button-renderer",function(){if(sT4!==void 0)return sT4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return sT4=q},{mode:1});var NtB;var pB=function(){return _.Y.apply(this,arguments)||this};
_.O(pB,_.Y);pB.prototype.getSelected=function(){return this.reasons.selected};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],pB.prototype,"data",void 0);_.c([_.Wj("#reasons"),_.h("design:type",Object)],pB.prototype,"reasons",void 0);pB=_.c([_.E({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],pB);
_.R(pB,"ytd-ad-feedback-content",function(){if(NtB!==void 0)return NtB;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return NtB=q},{mode:1});var QTm;var $_=function(){return _.Y.apply(this,arguments)||this};
_.O($_,_.Y);_.k=$_.prototype;_.k.onPopupOpened=function(){_.Pw(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.k.computeConfirmButton=function(q){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:q.confirmLabel}};
_.k.computeCancelButton=function(q){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:q.cancelLabel}};
_.k.onConfirmTap=function(){var q=this.content.getSelected();q!==void 0&&(q=this.data.reasons[q].endpoint)&&(_.tG().resolve(_.PG).resolveCommand(q,{form:{element:this.hostElement}}),_.Pw(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.k.sendFeedbackSubmitToastAction=function(){var q;(q=this.data)!=null&&q.completionMessage&&_.Pw(this.hostElement,"yt-open-popup-action",[_.BQ(this.data.completionMessage),this])};
_.k.onCancelTap=function(){_.Pw(this.hostElement,"yt-close-popup-action")};
$_.prototype.onPopupOpened=$_.prototype.onPopupOpened;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],$_.prototype,"data",void 0);_.c([_.Wj("#content"),_.h("design:type",Object)],$_.prototype,"content",void 0);_.c([_.Gm("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],$_.prototype,"onPopupOpened",null);
$_=_.c([_.E({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],$_);
_.R($_,"ytd-ad-feedback-renderer",function(){if(QTm!==void 0)return QTm;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return QTm=q},{mode:1});var I$A;var vZ=function(){return _.Y.apply(this,arguments)||this};
_.O(vZ,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],vZ.prototype,"data",void 0);vZ=_.c([_.E({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],vZ);
_.R(vZ,"ytd-ad-info-dialog-content",function(){if(I$A!==void 0)return I$A;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return I$A=q},{mode:1});var iUh;var bF=function(){return _.Y.apply(this,arguments)||this};
_.O(bF,_.Y);bF.prototype.computeConfirmButton=function(q){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:q.confirmLabel}};
bF.prototype.onConfirmTap=function(){_.Pw(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
bF.prototype.computeShouldShowTitle=function(){var q;return!((q=this.data)==null||!q.title)};
bF.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.tG().resolve(_.PG).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
bF.prototype.onPopupClosed=bF.prototype.onPopupClosed;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],bF.prototype,"data",void 0);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],bF.prototype,"onPopupClosed",null);bF=_.c([_.E({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],bF);
_.R(bF,"ytd-ad-info-dialog-renderer",function(){if(iUh!==void 0)return iUh;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return iUh=q},{mode:1});var roc;var Y_=function(){var q=_.Y.apply(this,arguments)||this;q.actionButtonClass="action-button";q.dismissButtonId="dismiss-button";q.dialogDismiss=!0;return q};
_.O(Y_,_.Y);_.k=Y_.prototype;_.k.computeInPlayer=function(q){return(q==null?void 0:q.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.k.computedLogo=function(){var q,w;return this.isDarkTheme()?(q=this.data)==null?void 0:q.logoDark:(w=this.data)==null?void 0:w.logo};
_.k.computedHeaderImage=function(){var q,w;return this.isDarkTheme()?(q=this.data)==null?void 0:q.headerImageDark:(w=this.data)==null?void 0:w.headerImage};
_.k.computeLogoIconId=function(){var q,w,u,y=(q=this.computedLogo())==null?void 0:(w=q.sources)==null?void 0:(u=w[0])==null?void 0:u.height;return y&&y%31===0?"logo-icon-with-padding":"logo-icon"};
_.k.computeLogoIconHeight=function(){var q,w,u,y=(q=this.computedLogo())==null?void 0:(w=q.sources)==null?void 0:(u=w[0])==null?void 0:u.height;return y&&y%31===0?"31":"24"};
_.k.onPopupClosed=function(){_.tG().resolve(_.Bx).dispose()};
_.k.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.k.onShow=function(){this.inPlayer&&_.sP(6)};
_.k.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var q=0;q<this.data.impressionEndpoints.length;q++){var w=_.C(this.data.impressionEndpoints[q],_.Dh);w&&this.ytComponentBehavior.resolveCommand(w)}};
_.k.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.Pw(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.x$.Object.defineProperties(Y_.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var q,w;return!((q=this.data)==null||!q.headerImageDark)&&!((w=this.data)==null||!w.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.secondaryButton)}}});
Y_.prototype.onPopupClosed=Y_.prototype.onPopupClosed;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Y_.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Y_.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.Jm.YtVisibilityBehavior),_.h("design:type",Object)],Y_.prototype,"ytVisibilityBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Y_.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",Object)],Y_.prototype,"actionButtonClass",void 0);_.c([_.v(),_.h("design:type",Object)],Y_.prototype,"dismissButtonId",void 0);_.c([_.v(),_.h("design:type",Object)],Y_.prototype,"dialogDismiss",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Y_.prototype,"hasHeaderImage",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Y_.prototype,"hasPremiumButton",null);
_.c([_.v({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.h("design:type",Boolean)],Y_.prototype,"inPlayer",void 0);_.c([_.Wj("#dismiss-button"),_.h("design:type",HTMLElement)],Y_.prototype,"dismissButton",void 0);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Y_.prototype,"onPopupClosed",null);Y_=_.c([_.E({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],Y_);
_.R(Y_,"ytd-enforcement-message-view-model",function(){if(roc!==void 0)return roc;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return roc=q},{mode:1});var URV;var Ttx;var gF=function(){var q=_.Y.apply(this,arguments)||this;q.TEST_ONLY={immediateValidation:function(){q.immediateValidation()},
onValidationResponse:function(w){q.onValidationResponse(w)},
onGenerateHandleFromNameResponse:function(w){q.onGenerateHandleFromNameResponse(w)}};
return q};
_.O(gF,_.Y);_.k=gF.prototype;_.k.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.k.validate=function(){this.immediateValidation()};
_.k.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.k.setHandleInputValue=function(q){this.handleDir=this.getHandleDir(q);this.handleInput.value=q;this.validationState={status:"PENDING"};this.immediateValidation()};
_.k.getHandleDir=function(q){var w=q===""&&!1;return(w=_.HvZ.test.call(_.HvZ,q))?"rtl":"ltr"};
_.k.onDataChanged=function(){var q,w;this.handleDir=this.getHandleDir((w=(q=this.data)==null?void 0:q.handle)!=null?w:"");var u;this.validationState=((u=this.data)==null?0:u.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var y;((y=this.data)==null?0:y.validateOnInit)&&this.immediateValidation()};
_.k.stopPropagation=function(q){q.stopPropagation()};
_.k.onInput=function(){var q;this.handleDir=this.getHandleDir((q=this.handleInput.value)!=null?q:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.k.onFocusout=function(q){this.handleInput.contains(q.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.k.delayedValidation=function(){var q,w;this.debouncedValidation((w=(q=this.data)==null?void 0:q.validationDelayMs)!=null?w:1E3)};
_.k.immediateValidation=function(){this.debouncedValidation(0)};
_.k.debouncedValidation=function(q){var w=this;_.bf(this,"debouncedValidation",function(){var u,y=w.staticValidation((u=w.handleInput.value)!=null?u:"");if(y!==void 0)w.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:y};else{var e;if((e=w.data)!=null&&e.validateChannelHandleCommand){w.validationState={status:"LOADING"};var t;w.ytComponentBehavior.resolveCommand(w.data.validateChannelHandleCommand,{form:{handle:(t=w.handleInput.value)!=null?t:""},commandController:{onSuccess:function(X,
G){w.onValidationResponse(G)},
onServerError:function(X,G){w.onValidationServerError(G)}}})}else w.handleUnexpectedValidationError(new _.fv("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",w.data))}},q)};
_.k.staticValidation=function(q){var w;if(((w=this.data)==null?void 0:w.channelHandleStaticValidationParams)!==void 0){w=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(q)&&w.validValueRegexpErrorMessage!==void 0)return w.validValueRegexpErrorMessage;if(w.minLength!==void 0&&q.length<w.minLength&&w.minLengthErrorMessage!==void 0)return w.minLengthErrorMessage;if(w.maxLength!==void 0&&q.length>w.maxLength&&w.maxLengthErrorMessage!==void 0)return w.maxLengthErrorMessage}};
_.k.onValidationResponse=function(q){var w=_.C(q.result,Q8j);w===void 0?this.handleUnexpectedValidationError(new _.fv("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",q)):this.handleValidationResultRenderer(w)};
_.k.onValidationServerError=function(q){this.handleUnexpectedValidationError(new _.fv("ValidateChannelHandle request failed.",q))};
_.k.handleValidationResultRenderer=function(q){if(q.handle===void 0)this.handleUnexpectedValidationError(new _.fv("ChannelHandleValidationResultRenderer does not contain handle.",q));else if(q.handle===this.handleInput.value)switch(q.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:q.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:q.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.fv("Unrecognized ChannelHandleValidationResult",q));break;default:_.Xm(q.result)}};
_.k.handleUnexpectedValidationError=function(q){var w;this.validationState={status:"UNKNOWN",handle:(w=this.handleInput.value)!=null?w:""};_.Y8(q)};
_.k.stopEventPropagation=function(q){q.stopPropagation()};
_.k.updateHandleOnChannelNameInputChange=function(q){if(!this.wasEdited){var w,u;this.debouncedGenerateHandleFromName(q,(u=(w=this.data)==null?void 0:w.validationDelayMs)!=null?u:1E3)}};
_.k.debouncedGenerateHandleFromName=function(q,w){var u=this;_.bf(this,"debouncedGenerateHandleFromName",function(){var y;(y=u.data)!=null&&y.validateChannelHandleCommand?u.ytComponentBehavior.resolveCommand(u.data.validateChannelHandleCommand,{form:{name:q},commandController:{onSuccess:function(e,t){u.onGenerateHandleFromNameResponse(t)},
onServerError:function(e,t){_.Y8(new _.fv("Error calling GenerateHandleFromName",t))}}}):_.Y8(new _.fv("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",u.data))},w)};
_.k.onGenerateHandleFromNameResponse=function(q){this.wasEdited||((q=_.C(q.result,INT))?this.setHandleInputValue(q.handle):_.Y8(new _.fv("Invalid results when generate handle from name")))};
_.x$.Object.defineProperties(gF.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var q;if(q=this.validationState)q=this.validationState,q=q.status==="OK"||q.status==="UNKNOWN";if(q)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var q;if(((q=this.validationState)==null?void 0:q.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 q,w=(q=this.channelHandleEntity)==null?void 0:q.handleEdit;this.handleDir=this.getHandleDir(w!=null?w:"");return w}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var q,w;if(((q=this.data)==null?void 0:(w=q.channelHandleStaticValidationParams)==null?void 0:w.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
gF.prototype.stopEventPropagation=gF.prototype.stopEventPropagation;gF.prototype.onDataChanged=gF.prototype.onDataChanged;gF.prototype.applyHandleEdit=gF.prototype.applyHandleEdit;gF.prototype.onValueChanged=gF.prototype.onValueChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],gF.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],gF.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],gF.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",Boolean)],gF.prototype,"wasEdited",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],gF.prototype,"handleDir",void 0);_.c([_.Wj("#handle-input"),_.h("design:type",Object)],gF.prototype,"handleInput",void 0);_.c([_.v(),_.Z("validationState"),_.h("design:type",Object),_.h("design:paramtypes",[])],gF.prototype,"value",null);
_.c([_.nL("value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gF.prototype,"onValueChanged",null);_.c([_.Z("validationState"),_.h("design:type",Object),_.h("design:paramtypes",[])],gF.prototype,"errorIndicator",null);_.c([_.v({reflectToAttribute:!0}),_.Z("errorIndicator"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],gF.prototype,"borderErrorIndicator",null);
_.c([_.v({selectorArgs:["data.channelHandleEntityKey"],selector:function(q,w){return _.HQ(q.entities,"channelHandle",w)}}),
_.h("design:type",Object)],gF.prototype,"channelHandleEntity",void 0);_.c([_.Z("channelHandleEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],gF.prototype,"handleEdit",null);_.c([_.nL("handleEdit"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gF.prototype,"applyHandleEdit",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gF.prototype,"onDataChanged",null);
_.c([_.Z("data.channelHandleStaticValidationParams.validValueRegexp"),_.h("design:type",Object),_.h("design:paramtypes",[])],gF.prototype,"validValueRegexp",null);_.c([_.Gm("yt-service-request-sent"),_.Gm("yt-service-request-completed"),_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],gF.prototype,"stopEventPropagation",null);gF=_.c([_.E({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],gF);
_.R(gF,"ytd-channel-handle-input-renderer",function(){if(Ttx!==void 0)return Ttx;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Ttx=q},{mode:_.kB("kevlar_poly_si_batch_j025")?1:2});var ED=function(){var q=_.Y.apply(this,arguments)||this;q.data=null;q.errorMessage=null;q.isLoading=!0;q.hideContainer=!1;q.enableNewChannelCreationOnIdForAll=_.T("enable_new_channel_creation_for_id4all");q.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"};q.testOnly={setErrorMessage:function(w){q.resetErrorState();
q.setErrorState(w)}};
return q};
_.O(ED,_.Y);_.k=ED.prototype;_.k.created=function(){this.logScreenVe()};
_.k.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")};
_.k.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var q;((q=this.zeroStepErrorMessageEntity)==null?0:q.value)&&this.set("errorMessage",_.jN(this.zeroStepErrorMessageEntity.value))};
_.k.onCreateTap=function(){var q=this;if(this.data&&this.data.channelCreationEndpoint){var w,u;if(!((w=this.data.createChannelButton)==null?0:(u=w.buttonRenderer)==null?0:u.isDisabled)){var y;if((y=this.nameInput)!=null&&y.value){this.setLoadingState();var e,t;w=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(e=this.handleInput)==null?void 0:e.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((t=this.handleInput)==null?void 0:t.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:w,commandController:{onSuccess:function(X,G){q.onChannelCreationEndpointSuccess(G);q.obakeImageSource&&_.pn("channelCreatedWithObakeImage",{imageSourceType:q.obakeImageSource})},
onServerError:function(){q.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.k.endpointRequiresServiceRequestAction=function(q){return!!_.C(q,_.AI)||!!_.C(q,NQx)};
_.k.isNavigateAction=function(q){var w;return!!_.C(q,_.vD)||!!_.C((w=_.C(q,UAm))==null?void 0:w.command,_.vD)};
_.k.isPlaylistAction=function(q){return!!_.C(q,_.AO)||!!_.C(q,_.pG)};
_.k.onChannelCreationEndpointSuccess=function(q){if(q.createChannelError){var w;this.setErrorState((w=q.createChannelError)==null?void 0:w.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.T("enable_secondary_channel_creation_form")&&q.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(q.navigationEndpoint);if(q.actions){w=_.P(q.actions);for(var u=w.next();!u.done;u=w.next())if(u=u.value,this.endpointRequiresServiceRequestAction(u)&&this.ytComponentBehavior.resolveCommand(u),
this.isNavigateAction(u)){var y=void 0;u=_.C((y=_.C(u,UAm))==null?void 0:y.command,_.vD);y=void 0;this.isPlaylistAction((y=u)==null?void 0:y.endpoint)&&(_.Pw(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),y=void 0,this.ytComponentBehavior.resolveCommand((y=u)==null?void 0:y.endpoint))}}q.actions&&q.actions.some(function(e){var t;return _.C(e,_.vD)||_.C((t=_.C(e,UAm))==null?void 0:t.command,_.vD)})||_.Pw(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.k.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.k.onCancelTap=function(){var q,w,u;if(!((q=this.data)==null?0:(w=q.cancelButton)==null?0:(u=w.buttonRenderer)==null?0:u.isDisabled)){var y,e,t;q=(y=this.data)==null?void 0:(e=y.cancelButton)==null?void 0:(t=e.buttonRenderer)==null?void 0:t.command;if(!q||!_.C(q,_.FKo)){var X;this.nameInput&&((X=this.data)==null?0:X.name)&&(this.nameInput.value=this.data.name);var G;this.handleInput&&((G=this.data)==null?0:G.channelHandleInput)&&(this.handleInput.data=_.C(this.data.channelHandleInput,i1x));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.k.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.k.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.k.onClearProfilePhotoTap=function(){var q,w,u;((q=this.data)==null?0:(w=q.clearProfilePhotoButton)==null?0:(u=w.buttonRenderer)==null?0:u.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.k.onEditAvatarTap=function(){var q,w,u;((q=this.data)==null?0:(w=q.editAvatarButton)==null?0:(u=w.buttonRenderer)==null?0:u.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.k.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)};
_.k.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var q;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((q=this.data)==null?0:q.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.k.setErrorState=function(q){this.resetErrorState();if(q)this.set("errorMessage",q);else{var w;if((w=this.zeroStepErrorMessageEntity)==null?0:w.value)this.set("errorMessage",_.jN(this.zeroStepErrorMessageEntity.value));else{var u;((u=this.data)==null?0:u.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.k.fetchImageBlobWithAlr=function(q,w){w=w===void 0?5:w;var u=this,y,e,t,X,G;return _.F(function(n){switch(n.nextAddress){case 1:return _.H(n,fetch(q,{method:"GET",mode:"cors"}),2);case 2:y=n.yieldResult;if(y.ok){n.jumpTo(3);break}if(w===0)throw Error();e=u.addJitter(Math.pow(2,5-w));return _.H(n,new Promise(function(N){setTimeout(N,e*1E3)}),4);
case 4:return n.return(u.fetchImageBlobWithAlr(q,w-1));case 3:if(!y.headers.get("content-type").split(";").some(function(N){return N.trim()==="text/plain"})){n.jumpTo(5);
break}t=u;X=t.fetchImageBlobWithAlr;return _.H(n,y.text(),6);case 6:return n.return(X.call(t,n.yieldResult,w-1));case 5:return _.H(n,y.blob(),7);case 7:return G=n.yieldResult,n.return(G)}})};
_.k.addJitter=function(q){var w=q*.3*Math.random();Math.random()>.5&&(w*=-1);return q+w};
_.k.openProfilePicturePicker=function(){var q=this,w,u,y,e,t;return _.F(function(X){if(X.nextAddress==1){w=q.data.scottyUploadUrl;if(!w)return X.return();u=document.documentElement.hasAttribute("dark");y=document.body.style.colorScheme;u&&(document.body.style.colorScheme="dark");e=CU6(dLx(TZH(s5q(u?"dark":"light")),function(G){var n,N,Q,I,U;return _.F(function(d){if(d.nextAddress==1)return n=_.vU(A5j(new C_(G.photoUrl,!1)).build(),"alr","yes"),q.obakeImageSource=q.pictureChangeSourceToObakeImageSourceType(G.photoSource),
_.tD(d,2),q.setLoadingState(),_.H(d,q.fetchImageBlobWithAlr(n),4);if(d.nextAddress!=2)return N=d.yieldResult,Q=new FileReader,Q.addEventListener("load",function(){var V,J,a,b,g,l;return _.F(function(S){if(S.nextAddress==1){if(N.size>15728640)return q.setErrorState((V=q.data)==null?void 0:V.imageSizeErrorMessage),_.Y8(Error("il")),S.return();if(!Q.result)return q.setErrorState((J=q.data)==null?void 0:J.genericImageLoadErrorMessage),_.Y8(Error("jl")),S.return();a=Q.result;_.tD(S,2);return _.H(S,Xwq(N,
w),4)}if(S.nextAddress!=2)return b=S.yieldResult,q.handleImageUpdatedAction(a,b),q.resetErrorState(),_.jv(S,0);g=_.nm(S);q.setErrorState((l=q.data)==null?void 0:l.uploadErrorMessage);if(g instanceof Error)_.vm(g);else{var eH=new _.fv(JSON.stringify(g));_.vm(eH)}_.HI(S)})}),Q.readAsDataURL(N),_.jv(d,0);
I=_.nm(d);q.setErrorState((U=q.data)==null?void 0:U.genericImageLoadErrorMessage);I instanceof Error?_.vm(I):_.bD(new _.fv(JSON.stringify(I)));_.HI(d)})}),function(){q.hideContainer=!1;
document.body.style.colorScheme=y});
_.tD(X,2);return _.H(X,e.openPicker(),4)}if(X.nextAddress!=2)return _.jv(X,0);_.nm(X);q.setErrorState((t=q.data)==null?void 0:t.selectImageErrorMessage);_.HI(X)})};
_.k.pictureChangeSourceToObakeImageSourceType=function(q){switch(q){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.k.logScreenVe=function(){_.e$(_.Qz(),124448)};
_.k.graftServerVe=function(){var q=_.ZB(),w,u,y=(w=this.data)==null?void 0:(u=w.loggingDirectives)==null?void 0:u.trackingParams;y&&q&&(this.channelCreationFormVe=_.Qz().graftServerVe(y,q),q={visualElement:this.channelCreationFormVe},_.sO().reportShown(q))};
_.k.isNameChanged=function(q){var w;return((w=this.data)==null?void 0:w.name)!==q};
_.k.isHandleChanged=function(q){var w,u=_.C((w=this.data)==null?void 0:w.channelHandleInput,i1x);return u&&q?u.handle!==q:!1};
_.k.handleImageUpdatedAction=function(q,w){this.hideContainer=!1;this.previewDataUrl=q;this.encryptedBlobId=w};
_.k.handleImageSelectionErrorAction=function(q){this.hideContainer=!1;this.setErrorState(q)};
_.k.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.k.showContainer=function(){this.hideContainer=!1};
_.k.maybeWipeZeroStepErrorMessage=function(){var q,w=(q=this.data)==null?void 0:q.zeroStepErrorMessageEntityKey,u;w&&((u=this.zeroStepErrorMessageEntity)==null?0:u.value)&&this.ytdReduxBehavior.dispatch(_.IH("stringEntity",w,{key:w,value:""}))};
_.x$.Object.defineProperties(ED.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 q;return((q=this.photoThumbnail)==null?0:q.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 q;return!((q=this.data)==null||!q.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.descriptionInfo}}});
ED.prototype.dataChanged=ED.prototype.dataChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],ED.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],ED.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],ED.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ED.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],ED.prototype,"errorMessage",void 0);
_.c([_.v(),_.h("design:type",Object)],ED.prototype,"isLoading",void 0);_.c([_.v(),_.h("design:type",String)],ED.prototype,"previewDataUrl",void 0);_.c([_.v(),_.h("design:type",Number)],ED.prototype,"obakeImageSource",void 0);_.c([_.v(),_.h("design:type",Object)],ED.prototype,"hideContainer",void 0);_.c([_.Wj("#title-input"),_.h("design:type",Object)],ED.prototype,"nameInput",void 0);_.c([_.Wj("#handle-input"),_.h("design:type",Object)],ED.prototype,"handleInput",void 0);
_.c([_.v(),_.h("design:type",Boolean)],ED.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.c([_.v({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.jdc}),_.h("design:type",Object)],ED.prototype,"zeroStepErrorMessageEntity",void 0);_.c([_.Z("data","data.isDefaultProfilePhoto","previewDataUrl"),_.h("design:type",Object),_.h("design:paramtypes",[])],ED.prototype,"photoThumbnail",null);
_.c([_.Z("data","data.isDefaultProfilePhoto","photoThumbnail"),_.h("design:type",Object),_.h("design:paramtypes",[])],ED.prototype,"userSetPhotoThumbnailUrl",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ED.prototype,"hideProfilePhotoButtonLayer",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ED.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.c([_.I9("data","zeroStepErrorMessageEntity"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ED.prototype,"dataChanged",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data.descriptionInfo","zeroStepErrorMessageEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],ED.prototype,"description",null);ED=_.c([_.E({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],ED);
_.R(ED,"ytd-channel-creation-dialog-renderer",function(){if(URV!==void 0)return URV;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return URV=q},{mode:1});var C7B;var RI=function(){var q=_.Y.apply(this,arguments)||this;q.isLoading=!1;q.isDisabled=!1;return q};
_.O(RI,_.Y);RI.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
RI.prototype.updateDisabled=function(){var q;this.isDisabled=this.isLoading||((q=this.handleInput)==null?void 0:q.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
RI.prototype.onSaveClick=function(){var q=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var w;((w=this.data)==null?void 0:w.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 u;if((u=q.data)==null?0:u.nextEndpoint){var y;q.ytComponentBehavior.resolveCommand((y=q.data)==null?void 0:y.nextEndpoint)}else q.isLoading=
!1,q.closeDialog()},
onServerError:function(){q.isLoading=!1;q.handleInput.validate();var u;q.errorMessage=(u=q.data)==null?void 0:u.errorMessage}}}))}};
RI.prototype.closeDialog=function(){_.Pw(this.hostElement,"yt-close-popup-action",[this.is])};
RI.prototype.updateDisabled=RI.prototype.updateDisabled;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],RI.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],RI.prototype,"data",void 0);_.c([_.Wj("#handle-input"),_.h("design:type",Object)],RI.prototype,"handleInput",void 0);_.c([_.nL("isLoading"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RI.prototype,"updateDisabled",null);
RI=_.c([_.E({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],RI);
_.R(RI,"ytd-channel-handle-edit-dialog-renderer",function(){if(C7B!==void 0)return C7B;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return C7B=q},{mode:1});var dRH;var cZ=function(){return _.Y.apply(this,arguments)||this};
_.O(cZ,_.Y);cZ.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],cZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],cZ.prototype,"data",void 0);cZ=_.c([_.E({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],cZ);
_.R(cZ,"ytd-channel-switcher-footer-renderer",function(){if(dRH!==void 0)return dRH;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return dRH=q},{mode:1});var OUm;var opq;var Sy=function(){return _.Y.apply(this,arguments)||this};
_.O(Sy,_.Y);Sy.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
Sy.prototype.onIronChange=Sy.prototype.onIronChange;_.c([_.v(),_.h("design:type",Object)],Sy.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!1}),_.h("design:type",Function)],Sy.prototype,"onDontAskAgainChanged",void 0);_.c([_.Wj("#checkbox"),_.h("design:type",Object)],Sy.prototype,"checkbox",void 0);_.c([_.Gm("iron-change"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Sy.prototype,"onIronChange",null);
Sy=_.c([_.E({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],Sy);
_.R(Sy,"ytd-identity-prompt-footer-renderer",function(){if(opq!==void 0)return opq;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return opq=q},{mode:1});var hC=function(){var q=_.Y.apply(this,arguments)||this;q.dontAskAgain=!1;q.showPopup=!1;q.boundDontAskAgainChanged=function(w){q.dontAskAgainChanged(w)};
q.boundOnAccountItemTap=function(w){q.onAccountItemTap(w)};
return q};
_.O(hC,_.Y);_.k=hC.prototype;
_.k.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]]"}}}}}};
_.k.ready=function(){var q=this;_.A(this.hostElement).querySelector("#container").addEventListener("scroll",function(){q.ytRendererBehavior.markDirty()})};
_.k.dontAskAgainChanged=function(q){this.dontAskAgain=q};
_.k.onAccountItemTap=function(q){if(q){var w={};this.dontAskAgain&&(w={dont_ask_again:this.dontAskAgain});_.Zu(q,w)}};
_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.k.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.k.redirectOnlyAccount=function(q){q.sections&&q.sections.length>0&&(q=_.C(q.sections[0],_.eGP),(q==null?0:q.contents)&&(q==null?void 0:q.contents.length)<=1?(q=_.K4(window.location.href),(q==null?0:q.next)&&_.IOs(q.next)?_.Zu(q.next):_.Zu("/")):this.showPopup=!0)};
hC.prototype.dataChanged=hC.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],hC.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],hC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],hC.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!1}),_.h("design:type",Object)],hC.prototype,"dontAskAgain",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],hC.prototype,"showPopup",void 0);_.c([_.v({reflectToAttribute:!1}),_.h("design:type",Object)],hC.prototype,"boundDontAskAgainChanged",void 0);_.c([_.v({reflectToAttribute:!1}),_.h("design:type",Object)],hC.prototype,"boundOnAccountItemTap",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hC.prototype,"dataChanged",null);
hC=_.c([_.E({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],hC);
_.R(hC,"ytd-channel-switcher-renderer",function(){if(OUm!==void 0)return OUm;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return OUm=q},{mode:1});var V8T;var jy=function(){return _.Y.apply(this,arguments)||this};
_.O(jy,_.Y);_.x$.Object.defineProperties(jy.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.c([_.v(),_.h("design:type",Object)],jy.prototype,"data",void 0);_.c([_.Z("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],jy.prototype,"steps",null);jy=_.c([_.E({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],jy);
_.R(jy,"ytd-channel-transfer-stepper-renderer",function(){if(V8T!==void 0)return V8T;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return V8T=q},{mode:1});var f$c;var lF=function(){var q=_.Y.apply(this,arguments)||this;q.data=null;q.isError=!1;q.isLoading=!1;return q};
_.O(lF,_.Y);_.k=lF.prototype;_.k.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"}}}};
_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.k.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.k.computeProfileName=function(q){return q?q.givenNameValue+" "+q.familyNameValue:""};
_.k.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)};
_.k.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)};
lF.prototype.onYtServiceRequestError=lF.prototype.onYtServiceRequestError;lF.prototype.onYtServiceRequestSent=lF.prototype.onYtServiceRequestSent;lF.prototype.dataChanged=lF.prototype.dataChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],lF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],lF.prototype,"data",void 0);
_.c([_.v({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.h("design:type",String)],lF.prototype,"profileName",void 0);_.c([_.v(),_.h("design:type",Object)],lF.prototype,"isError",void 0);_.c([_.v(),_.h("design:type",Object)],lF.prototype,"isLoading",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lF.prototype,"dataChanged",null);
_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],lF.prototype,"onYtServiceRequestSent",null);_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],lF.prototype,"onYtServiceRequestError",null);lF=_.c([_.E({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],lF);
_.R(lF,"ytd-channel-warm-welcome-cont-renderer",function(){if(f$c!==void 0)return f$c;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return f$c=q},{mode:1});var mRc;var LB=function(){var q=_.Y.apply(this,arguments)||this;q.data=null;return q};
_.O(LB,_.Y);LB.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
LB.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],LB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],LB.prototype,"data",void 0);LB=_.c([_.E({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],LB);
_.R(LB,"ytd-channel-warm-welcome-renderer",function(){if(mRc!==void 0)return mRc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return mRc=q},{mode:1});var Aoh;var MX=function(){return _.Y.apply(this,arguments)||this};
_.O(MX,_.Y);_.x$.Object.defineProperties(MX.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.authorThumbnail)||{}}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],MX.prototype,"data",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],MX.prototype,"thumbnailDetails",null);MX=_.c([_.E({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],MX);
_.R(MX,"ytd-comment-preview-renderer",function(){if(Aoh!==void 0)return Aoh;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Aoh=q},{mode:1});var Joa;var KB=function(){return _.Y.apply(this,arguments)||this};
_.O(KB,_.Y);KB.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x$.Object.defineProperties(KB.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.submitButton}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],KB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],KB.prototype,"data",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],KB.prototype,"submitButton",null);KB=_.c([_.E({is:"ytd-notice-renderer",disableElementRegistration:!0})],KB);
_.R(KB,"ytd-notice-renderer",function(){if(Joa!==void 0)return Joa;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Joa=q},{mode:1});var zN4;var BZ=function(){return _.Y.apply(this,arguments)||this};
_.O(BZ,_.Y);BZ.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],BZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],BZ.prototype,"data",void 0);BZ=_.c([_.E({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],BZ);
_.R(BZ,"ytd-preview-comment-dialog-content",function(){if(zN4!==void 0)return zN4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return zN4=q},{mode:1});var a$6;var x_=function(){return _.Y.apply(this,arguments)||this};
_.O(x_,_.Y);x_.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
x_.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],x_.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],x_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],x_.prototype,"data",void 0);x_=_.c([_.E({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],x_);
_.R(x_,"ytd-preview-comment-dialog-renderer",function(){if(a$6!==void 0)return a$6;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return a$6=q},{mode:1});var DRV;var ZUc=_.T("web_button_rework")&&_.RX("BUTTON_REWORK")||_.T("web_button_rework_with_live"),q3=function(){var q=_.Y.apply(this,arguments)||this;q.selectedAmountIndex=1;q.privacyCheckboxValue=!1;q.useAmsterdamStyle=ZUc;q.amountPlaceholderIndex=-1;return q};
_.O(q3,_.Y);_.k=q3.prototype;_.k.onAmountClick=function(q){this.selectedAmountIndex=_.A(this.hostElement).querySelector("#amounts").indexForElement(q.currentTarget)};
_.k.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.Pw(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.k.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.Pw(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.Pw(this.hostElement,"yt-close-popup-action",[this.is]);var q;(q=_.xo())==null||q.getPlayerPromise().then(function(w){w.pauseVideo()})}};
_.k.donationCallback=function(q){q.success?(this.hostElement.hasAttribute("live-chat")&&q.response&&q.response.data&&q.response.data.actions&&_.Pw(this.hostElement,"yt-live-chat-open-popup",[q.response.data.actions[0]]),_.Pw(this.hostElement,"yt-close-popup-action",[this.is]),_.Pw(this.hostElement,"yt-live-chat-close-buy-flow")):q.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(q.errorMessageRenderer)};
_.k.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.A(this.hostElement).querySelector("#custom-amount-input").focus()};
_.k.updateConfirmationDialogTextWithAmount=function(q){var w=this.getConfirmDialogRuns();w&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(w),"text"],this.getFormattedAmount(q))};
_.k.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.k.getAmountPlaceholderIndex=function(q){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=q.findIndex(function(w){return w.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.k.getFormattedAmount=function(q){var w;return(new _.gG(4,((w=this.data)==null?void 0:w.currencyCode)||"")).format(q)};
_.k.isAmountValid=function(q){if(q==="")return!1;q=Number(q)*1E6;var w=this.get("minAmountMicros",this.data),u=this.get("maxAmountMicros",this.data);return w&&q<w||u&&q>u?!1:!0};
_.k.setInputError=function(){this.shouldShowValidationError?_.A(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.A(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.k.setInitialCheckboxValue=function(){var q;this.privacyCheckboxValue=!((q=this.data)==null||!q.privacyCheckboxInitialState)};
_.k.updateCustomAmountInputFromBinding=function(q){this.customAmountInput=q.detail.value};
_.k.updatePrivacyCheckboxValueFromBinding=function(q){this.privacyCheckboxValue=q.detail.value};
_.x$.Object.defineProperties(q3.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var q=this,w,u;return((w=this.data)==null?void 0:(u=w.suggestedAmounts)==null?void 0:u.map(function(y,e){return{buttonRenderer:{style:q.selectedAmountIndex===e?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:y.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 q;return!((q=this.data)==null||!q.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 q=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(q&&this.amountMicros!==null)return Object.assign({},q,{ypcGetCartEndpoint:Object.assign({},q.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 q=this.get("confirmLargeAmount",this.data);if(q&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),q}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var q=this.get("donateButton.buttonRenderer",this.data);if(q)return Object.assign({},q,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
q3.prototype.setInitialCheckboxValue=q3.prototype.setInitialCheckboxValue;q3.prototype.setInputError=q3.prototype.setInputError;q3.prototype.setFocusOnCustomAmountInput=q3.prototype.setFocusOnCustomAmountInput;_.c([_.D(Euh),_.h("design:type",Object)],q3.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],q3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],q3.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],q3.prototype,"selectedAmountIndex",void 0);_.c([_.v(),_.h("design:type",String)],q3.prototype,"customAmountInput",void 0);_.c([_.v(),_.h("design:type",Object)],q3.prototype,"privacyCheckboxValue",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],q3.prototype,"useAmsterdamStyle",void 0);_.c([_.nL("customAmount"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],q3.prototype,"setFocusOnCustomAmountInput",null);_.c([_.Z("data","selectedAmountIndex"),_.h("design:type",Array),_.h("design:paramtypes",[])],q3.prototype,"suggestedAmountButtons",null);
_.c([_.Z("data","selectedAmountIndex"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],q3.prototype,"isCustomAmountSelected",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],q3.prototype,"showPrivacyCheckbox",null);_.c([_.Z("data","selectedAmountIndex","customAmount"),_.h("design:type",Object),_.h("design:paramtypes",[])],q3.prototype,"amountMicros",null);
_.c([_.Z("isCustomAmountSelected","customAmountInput"),_.h("design:type",Object),_.h("design:paramtypes",[])],q3.prototype,"customAmount",null);_.c([_.Z("customAmount"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],q3.prototype,"shouldShowValidationError",null);_.c([_.Z("customAmount"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],q3.prototype,"isDonateButtonEnabled",null);
_.c([_.Z("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.h("design:type",Object),_.h("design:paramtypes",[])],q3.prototype,"donateCommand",null);_.c([_.Z("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.h("design:type",Object),_.h("design:paramtypes",[])],q3.prototype,"donateCommandWithConfirmation",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],q3.prototype,"largeDonationThreshold",null);
_.c([_.Z("customAmount","donateCommand","amountMicros"),_.h("design:type",Object),_.h("design:paramtypes",[])],q3.prototype,"confirmLargeAmountCommand",null);_.c([_.Z("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.h("design:type",Object),_.h("design:paramtypes",[])],q3.prototype,"donateButtonRenderer",null);_.c([_.nL("shouldShowValidationError"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],q3.prototype,"setInputError",null);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],q3.prototype,"setInitialCheckboxValue",null);q3=_.c([_.E({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],q3);
_.R(q3,"ytd-donation-amount-picker-renderer",function(){if(DRV!==void 0)return DRV;var q=document.createElement("template");_.f(q,'\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" 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="[[msg(\'CLOSE\')]]" 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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return DRV=q},{mode:1});var pv6;var ww=function(){return _.Y.apply(this,arguments)||this};
_.O(ww,_.Y);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],ww.prototype,"ytComponentBehavior",void 0);_.c([_.v({}),_.h("design:type",Object)],ww.prototype,"data",void 0);ww=_.c([_.E({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],ww);
_.R(ww,"ytd-donation-post-transaction-content",function(){if(pv6!==void 0)return pv6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return pv6=q},{mode:1});var $Rx;var uu=function(){return _.Y.apply(this,arguments)||this};
_.O(uu,_.Y);uu.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],uu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],uu.prototype,"ytRendererBehavior",void 0);_.c([_.v({}),_.h("design:type",Object)],uu.prototype,"data",void 0);uu=_.c([_.E({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],uu);
_.R(uu,"ytd-donation-post-transaction-renderer",function(){if($Rx!==void 0)return $Rx;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return $Rx=q},{mode:1});var vpH;var bUq;var y2=function(){return _.Y.apply(this,arguments)||this};
_.O(y2,_.Y);y2.prototype.computeIsStreamingProvider=function(q){return!!q.isStreamingShelf};
y2.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],y2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],y2.prototype,"data",void 0);_.c([_.v({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],y2.prototype,"isStreamingProvider",void 0);
y2=_.c([_.E({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],y2);
_.R(y2,"ytd-media-provider-renderer",function(){if(bUq!==void 0)return bUq;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return bUq=q},{mode:1});var Yrc;var ed=function(){return _.Y.apply(this,arguments)||this};
_.O(ed,_.Y);ed.prototype.observeLightsourcePalette=function(){var q,w=(q=this.data)==null?void 0:q.vibrantsourceColorPaletteData;w&&_.ms(this.hostElement,w)};
ed.prototype.observeLightsourcePalette=ed.prototype.observeLightsourcePalette;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ed.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],ed.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ed.prototype,"data",void 0);
_.c([_.nL("data.vibrantsourceColorPaletteData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ed.prototype,"observeLightsourcePalette",null);ed=_.c([_.E({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],ed);
_.R(ed,"ytd-streaming-pop-up-dialog",function(){if(Yrc!==void 0)return Yrc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Yrc=q},{mode:1});var kh=function(){return _.Y.apply(this,arguments)||this};
_.O(kh,_.Y);kh.prototype.onPopupOpened_=function(){var q;((q=this.data)==null?0:q.serviceEndpoint)&&_.tG().resolve(_.PG).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
kh.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
kh.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"}}}}};
kh.prototype.onPopupOpened_=kh.prototype.onPopupOpened_;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],kh.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],kh.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.JR),_.h("design:type",Object)],kh.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],kh.prototype,"data",void 0);
_.c([_.Gm("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kh.prototype,"onPopupOpened_",null);kh=_.c([_.E({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],kh);
_.R(kh,"ytd-brandconnect-popup-renderer",function(){if(vpH!==void 0)return vpH;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return vpH=q},{mode:1});var gpA;var tj=function(){return _.Y.apply(this,arguments)||this};
_.O(tj,_.Y);_.k=tj.prototype;_.k.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.k.dataChanged=function(){for(var q=0;q<this.getOptionRenderers().length;q++)this.notifyPath("data.options."+q+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+q+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.k.updateSubmitButton=function(q){this.set("data.submitButton.buttonRenderer.isDisabled",!q)};
_.k.computeAlt=function(q){return _.lA(q)};
_.k.onDismissTap=function(){_.Pw(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.tG().resolve(_.PG).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.k.getOptionRenderers=function(q){return(q=q||this.data)&&q.options?q.options.reduce(function(w,u){u.checkboxSurveyOptionRenderer&&w.push(u.checkboxSurveyOptionRenderer);return w},[]):[]};
_.k.onOptionChange=function(q){var w=this,u=!1;if(q.detail.checked)for(var y=this.getOptionRenderers().find(function(G){return G.value===q.detail.value}),e=this.getOptionRenderers(),t=0;t<e.length;t++){var X=e[t];
this.notifyPath("data.options."+t+".checkboxSurveyOptionRenderer.checked");X.checked&&((y==null?0:y.isExclusiveOption)?!X.isExclusiveOption:X.isExclusiveOption)?this.set("data.options."+t+".checkboxSurveyOptionRenderer.checked",!1):X.checked&&(u=!0)}else u=this.getOptionRenderers().some(function(G,n){w.notifyPath("data.options."+n+".checkboxSurveyOptionRenderer.checked");return G.checked});
this.updateSubmitButton(u)};
_.k.onSubmitTap=function(){var q=this.getOptionRenderers().filter(function(t){return t.checked});
if(q.length!==0){var w=q.map(function(t){return t.responseEndpoint});
q=[];for(var u=1;u<w.length;u++){var y=void 0,e=(y=_.C(w[u],_.JI))==null?void 0:y.feedbackToken;e&&q.push(e)}w=[w[0]];q.length&&w.push({extra_feedback_tokens:q});_.GM(this.hostElement,w);_.Pw(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);q=this.data&&this.data.submitActions||[];if(_.T("kevlar_command_handler_migration_killswitch"))_.nq(this.hostElement,q,this.hostElement);else for(q=_.P(q),w=q.next();!w.done;w=q.next())this.ytComponentBehavior.resolveCommand(w.value)}};
tj.prototype.onOptionChange=tj.prototype.onOptionChange;tj.prototype.dataChanged=tj.prototype.dataChanged;_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],tj.prototype,"ytEventForwardingBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],tj.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],tj.prototype,"ytComponentBehavior",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],tj.prototype,"ytRendererBehavior",void 0);_.c([_.D(P1j),_.h("design:type",Object)],tj.prototype,"ytdHatsSurveyBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],tj.prototype,"data",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tj.prototype,"dataChanged",null);
_.c([_.Gm("ytd-checkbox-survey-option-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],tj.prototype,"onOptionChange",null);tj=_.c([_.E({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],tj);
_.R(tj,"ytd-checkbox-survey-renderer",function(){if(gpA!==void 0)return gpA;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return gpA=q},{mode:1});var EpB;var RN4;var PE=function(){return _.Y.apply(this,arguments)||this};
_.O(PE,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],PE.prototype,"ytRendererBehavior",void 0);_.c([_.D(t0T),_.h("design:type",Object)],PE.prototype,"ytdDismissalReasonBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],PE.prototype,"data",void 0);PE=_.c([_.E({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],PE);
_.R(PE,"ytd-dismissal-reason-text-renderer",function(){if(RN4!==void 0)return RN4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return RN4=q},{mode:1});var coV;var XP=function(){return _.Y.apply(this,arguments)||this};
_.O(XP,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],XP.prototype,"ytRendererBehavior",void 0);_.c([_.D(t0T),_.h("design:type",Object)],XP.prototype,"ytdDismissalReasonBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],XP.prototype,"data",void 0);XP=_.c([_.E({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],XP);
_.R(XP,"ytd-dismissal-reason-video-renderer",function(){if(coV!==void 0)return coV;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return coV=q},{mode:1});var FP=function(){var q=_.Y.apply(this,arguments)||this;q.darkerDarkTheme=_.T("web_darker_dark_theme");return q};
_.O(FP,_.Y);_.k=FP.prototype;_.k.created=function(){this.selectedFeedbackTokens=new Ex};
_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.k.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.k.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.k.onDismissalReasonSelected=function(q,w){_.t7(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(w);this.hasReasonsSelected=!0};
_.k.onDismissalReasonDeselected=function(q,w){_.t7(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(w);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.k.onCancelTap=function(){_.Pw(this.hostElement,"yt-close-popup-action")};
_.k.onSubmitTap=function(){var q=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(q={feedback_tokens:q},_.tG().resolve(_.PG).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},q,{element:this.hostElement})}));_.Pw(this.hostElement,"yt-close-popup-action")};
FP.prototype.onDismissalReasonDeselected=FP.prototype.onDismissalReasonDeselected;FP.prototype.onDismissalReasonSelected=FP.prototype.onDismissalReasonSelected;FP.prototype.dataChanged=FP.prototype.dataChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],FP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],FP.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",Boolean)],FP.prototype,"hasReasonsSelected",void 0);_.c([_.v(),_.h("design:type",Ex)],FP.prototype,"selectedFeedbackTokens",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],FP.prototype,"darkerDarkTheme",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],FP.prototype,"dataChanged",null);
_.c([_.Gm("yt-dismissal-reason-selected"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,String]),_.h("design:returntype")],FP.prototype,"onDismissalReasonSelected",null);_.c([_.Gm("yt-dismissal-reason-deselected"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,String]),_.h("design:returntype")],FP.prototype,"onDismissalReasonDeselected",null);FP=_.c([_.E({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],FP);
_.R(FP,"ytd-dismissal-follow-up-renderer",function(){if(EpB!==void 0)return EpB;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return EpB=q},{mode:1});var SrT;var Gl=function(){return _.Y.apply(this,arguments)||this};
_.O(Gl,_.Y);_.k=Gl.prototype;_.k.onCheckedChange=function(){this.multiselect||_.t7(this.hostElement,"yt-feedback-single-select-changed");_.A(this.hostElement).querySelector("#freeform").focus();_.t7(this.hostElement,"yt-refit")};
_.k.showTextBox=function(q,w){return q&&w};
_.k.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))};
_.k.updateDataCheckedFromBinding=function(q){this.set("data.checked",q.detail.value)};
_.k.updateDataResultTextFromBinding=function(q){this.set("data.resultText",q.detail.value)};
Gl.prototype.dataChanged=Gl.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Gl.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Gl.prototype,"data",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],Gl.prototype,"multiselect",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gl.prototype,"dataChanged",null);
Gl=_.c([_.E({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Gl);
_.R(Gl,"ytd-feedback-option-renderer",function(){if(SrT!==void 0)return SrT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return SrT=q},{mode:1});var hNh;var nZ=function(){return _.Y.apply(this,arguments)||this};
_.O(nZ,_.Y);nZ.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
nZ.prototype.onSingleSelectCheckedChanged=function(q){q=_.he(q);for(var w=0;w<this.data.options.length;w++)if(q.data!==_.C(this.data.options[w],eSH)){var u="data.options."+w+".feedbackOptionRenderer.checked";this.notifyPath(u);this.set(u,!1)}};
nZ.prototype.onSingleSelectCheckedChanged=nZ.prototype.onSingleSelectCheckedChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],nZ.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],nZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],nZ.prototype,"data",void 0);
_.c([_.Gm("yt-feedback-single-select-changed"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],nZ.prototype,"onSingleSelectCheckedChanged",null);nZ=_.c([_.E({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],nZ);
_.R(nZ,"ytd-feedback-question-renderer",function(){if(hNh!==void 0)return hNh;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return hNh=q},{mode:1});var jTT;var HE=function(){return _.Y.apply(this,arguments)||this};
_.O(HE,_.Y);HE.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
HE.prototype.getSelectedFeedbackResults=function(){for(var q={},w=0;w<this.data.questions.length;w++)for(var u=_.C(this.data.questions[w],yU4),y=0;y<u.options.length;y++){var e=_.C(u.options[y],eSH);e&&e.checked&&(q[e.optionKey]=e.resultText)}return q};
HE.prototype.onKeyUp=function(){var q=this;_.ko(_.pi,function(){_.t7(q.hostElement,"yt-refit")});
_.pi.start()};
HE.prototype.submitSurvey=function(){var q=this.getSelectedFeedbackResults();Object.keys(q).length>0&&this.data.submitFeedbackEndpoint&&(q={survey_results:q,is_feedback_token_unencrypted:!0},_.tG().resolve(_.PG).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},q,{element:this.hostElement})}))};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],HE.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],HE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],HE.prototype,"data",void 0);HE=_.c([_.E({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],HE);
_.R(HE,"ytd-feedback-survey-renderer",function(){if(jTT!==void 0)return jTT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return jTT=q},{mode:1});var l$q;var LJB;var WE=function(){return _.Y.apply(this,arguments)||this};
_.O(WE,_.Y);WE.prototype.computeAlt=function(q){return _.lA(q)};
WE.prototype.submitResponse=function(){var q,w;(q=this.data)!=null&&q.feedbackToken&&((w=this.data)==null?void 0:w.nextStageIndex)!==void 0&&(_.X4(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.X4(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
WE.prototype.onClick=function(){this.submitResponse()};
WE.prototype.onClick=WE.prototype.onClick;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],WE.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],WE.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],WE.prototype,"vertical",void 0);_.c([_.Gm("click"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WE.prototype,"onClick",null);
WE=_.c([_.E({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],WE);
_.R(WE,"ytd-single-select-answer-option-renderer",function(){if(LJB!==void 0)return LJB;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return LJB=q},{mode:1});var M8A;var s5=function(){var q=_.Y.apply(this,arguments)||this;q.darkerDarkTheme=_.T("web_darker_dark_theme");q.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return q};
_.O(s5,_.Y);s5.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
s5.prototype.dataChanged=function(){var q,w;this.vertical=((w=(q=this.data)==null?void 0:q.answerOrientation)!=null?w:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
s5.prototype.submitFeedback=function(q){var w;((w=this.data)==null?0:w.responseEndpoint)&&q&&_.GM(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[q]}])};
s5.prototype.dataChanged=s5.prototype.dataChanged;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],s5.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],s5.prototype,"eventForwardingBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],s5.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],s5.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],s5.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],s5.prototype,"vertical",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],s5.prototype,"darkerDarkTheme",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],s5.prototype,"dataChanged",null);s5=_.c([_.E({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],s5);
_.R(s5,"ytd-single-select-question-renderer",function(){if(M8A!==void 0)return M8A;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return M8A=q},{mode:1});var N3=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return q};
_.O(N3,_.Y);_.k=N3.prototype;_.k.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"}}}};
_.k.dataChanged=function(){this.jumpToStage(0)};
_.k.jumpToStage=function(q){var w,u;if((w=this.data)==null?0:(u=w.stages)==null?0:u[q])this.currentStage=this.data.stages[q],this.refitAfterRender()};
_.k.computeAlt=function(q){return _.lA(q)};
_.k.computeSimpleMessage=function(q){var w;return(w=_.C(q,PGj))==null?void 0:w.messageText};
_.k.computeHideDismiss=function(q){var w;return(w=_.C(q,DAa))==null?void 0:w.hideParentDismissButton};
_.k.onDismissTap=function(){_.Pw(this.hostElement,"yt-close-popup-action");_.C(this.currentStage,PGj)||this.data.dismissalEndpoint&&_.tG().resolve(_.PG).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.k.refitAfterRender=function(){var q=this;_.KJ(this,function(){_.t7(q.hostElement,"yt-refit")})};
N3.prototype.dataChanged=N3.prototype.dataChanged;_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],N3.prototype,"eventForwardingBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],N3.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],N3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],N3.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.D(P1j),_.h("design:type",Object)],N3.prototype,"ytdHatsSurveyBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],N3.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],N3.prototype,"currentStage",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],N3.prototype,"dataChanged",null);N3=_.c([_.E({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],N3);
_.R(N3,"ytd-multi-stage-survey-renderer",function(){if(l$q!==void 0)return l$q;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return l$q=q},{mode:1});var KJj;var Q2=function(){return _.Y.apply(this,arguments)||this};
_.O(Q2,_.Y);Q2.prototype.computeAlt=function(q){return _.lA(q)};
Q2.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.tG().resolve(_.PG).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.Pw(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.lDj(!1)))};
Q2.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Q2.prototype.onTap=Q2.prototype.onTap;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],Q2.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Q2.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Q2.prototype,"vertical",void 0);
_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Q2.prototype,"onTap",null);Q2=_.c([_.E({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Q2);
_.R(Q2,"ytd-single-option-survey-option-renderer",function(){if(KJj!==void 0)return KJj;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return KJj=q},{mode:1});var Bt6;var It=function(){return _.Y.apply(this,arguments)||this};
_.O(It,_.Y);_.k=It.prototype;_.k.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.k.dataChanged=function(){var q,w;this.vertical=(((q=this.data)==null?void 0:(w=q.surveyOrientation)==null?void 0:w.type)||"HORIZONTAL")==="VERTICAL"};
_.k.computeAlt=function(q){return _.lA(q)};
_.k.onDismissTap=function(){_.Pw(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.tG().resolve(_.PG).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.lDj(!1))};
It.prototype.dataChanged=It.prototype.dataChanged;_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],It.prototype,"eventForwardingBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],It.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],It.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(P1j),_.h("design:type",Object)],It.prototype,"ytdHatsSurveyBehavior",void 0);
_.c([_.D(_.fU),_.h("design:type",Object)],It.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],It.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],It.prototype,"vertical",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],It.prototype,"dataChanged",null);It=_.c([_.E({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],It);
_.R(It,"ytd-single-option-survey-renderer",function(){if(Bt6!==void 0)return Bt6;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Bt6=q},{mode:1});var xRT;var iu=function(){var q=_.Y.apply(this,arguments)||this;q.darkerDarkTheme=_.T("web_darker_dark_theme");return q};
_.O(iu,_.Y);iu.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
iu.prototype.onDismissTap=function(){_.Pw(this.hostElement,"yt-close-popup-action")};
iu.prototype.onNavigate=function(){_.Pw(this.hostElement,"yt-close-popup-action")};
iu.prototype.onNavigate=iu.prototype.onNavigate;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],iu.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],iu.prototype,"ytEventForwardingBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],iu.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],iu.prototype,"darkerDarkTheme",void 0);
_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],iu.prototype,"onNavigate",null);iu=_.c([_.E({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],iu);
_.R(iu,"ytd-survey-follow-up-renderer",function(){if(xRT!==void 0)return xRT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return xRT=q},{mode:1});var qij;var wA6;var u84;var rw=function(){var q=_.Y.apply(this,arguments)||this;q.polymer2="Element"in Polymer;return q};
_.O(rw,_.Y);_.k=rw.prototype;_.k.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.k.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.k.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.k.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.D1("minutes-changed",this.minutes))};
_.k.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.D1("seconds-changed",this.seconds))};
_.k.updateMinutesFromBinding=function(q){this.minutes=q.detail.value};
_.k.updateSecondsFromBinding=function(q){this.seconds=q.detail.value};
rw.prototype.secondsChangedForBinding=rw.prototype.secondsChangedForBinding;rw.prototype.minutesChangedForBinding=rw.prototype.minutesChangedForBinding;rw.prototype.secondsChanged=rw.prototype.secondsChanged;_.c([_.v(),_.h("design:type",String)],rw.prototype,"minutes",void 0);_.c([_.v(),_.h("design:type",String)],rw.prototype,"seconds",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],rw.prototype,"polymer2",void 0);
_.c([_.Wj("#seconds"),_.h("design:type",Object)],rw.prototype,"secondsEl",void 0);_.c([_.nL("seconds"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rw.prototype,"secondsChanged",null);_.c([_.nL("minutes"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rw.prototype,"minutesChangedForBinding",null);
_.c([_.nL("seconds"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rw.prototype,"secondsChangedForBinding",null);rw=_.c([_.JM({is:"yt-timestamp-input",disableElementRegistration:!0})],rw);
_.R(rw,"yt-timestamp-input",function(){if(u84===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;wA6===void 0&&(wA6=document.createElement("template"));var y=wA6;u.call(w,y.content.cloneNode(!0),q.content.firstChild);u84=q}q=u84;return q},{mode:2});var U5=function(){return _.Y.apply(this,arguments)||this};
_.O(U5,_.Y);_.k=U5.prototype;_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18009_scroller.dialogElement=this.hostElement.parentNode};
_.k.dataChanged=function(){var q=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.qI().getPlayerPromise().then(function(w){w=w.getCurrentTime();q.minutes=Math.floor(w/60).toString();q.seconds=(Math.floor(w)%60).toString()})};
_.k.onTapSubmit=function(q){q.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(q={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(q.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(q.minutes=this.minutes,q.seconds=this.seconds),_.tG().resolve(_.PG).resolveCommand(this.serviceEndpoint,{form:Object.assign({},q,{element:this.hostElement})}))};
_.k.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.k.onYtServiceRequestCompleted=function(q,w){w=w.actions;if(Array.isArray(w))for(var u=0,y=w.length;u<y;u++)_.C(w[u],_.Ou)&&(q.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(w[u]))};
_.k.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.k.toggleSubmitButton=function(q){this.set("submitButton.isDisabled",!q)};
_.k.handleInput=function(){var q=this.issueType,w=this.affiliation,u=this.minutes,y=this.seconds;u=!this.showTimestamp||!!u&&!!y;this.toggleSubmitButton(!!this.descriptionText&&!!q&&!!w&&u)};
_.k.computeServiceEndpoint=function(q){return this.get("submitButton.buttonRenderer.serviceEndpoint",q)};
_.k.computeSubmitButton=function(q){(q=this.get("submitButton.buttonRenderer",q))&&(q=Object.assign({},q,{serviceEndpoint:void 0}));return q};
_.k.computeShowTimestamp=function(q){return!!q};
_.k.onValueChangedForIssueType=function(q){this.issueType=q.detail.value};
_.k.onValueChangedForAffiliation=function(q){this.affiliation=q.detail.value};
_.k.updateDescriptionTextFromBinding=function(q){this.descriptionText=q.detail.value};
_.k.updateFullNameTextFromBinding=function(q){this.fullNameText=q.detail.value};
_.k.updateMinutesFromBinding=function(q){this.minutes=q.detail.value};
_.k.updateSecondsFromBinding=function(q){this.seconds=q.detail.value};
U5.prototype.handleInput=U5.prototype.handleInput;U5.prototype.onYtServiceRequestError=U5.prototype.onYtServiceRequestError;U5.prototype.onYtServiceRequestCompleted=U5.prototype.onYtServiceRequestCompleted;U5.prototype.onYtServiceRequestSent=U5.prototype.onYtServiceRequestSent;U5.prototype.dataChanged=U5.prototype.dataChanged;_.c([_.D(_.ux.YtOpenPopupBehavior),_.h("design:type",Object)],U5.prototype,"ytOpenPopupBehavior",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],U5.prototype,"ytRendererBehavior",void 0);_.c([_.Wj("#scroller"),_.h("design:type",Object)],U5.prototype,"JSC$18009_scroller",void 0);_.c([_.Wj("#description"),_.h("design:type",HTMLInputElement)],U5.prototype,"description",void 0);_.c([_.Wj("#full-name"),_.h("design:type",Object)],U5.prototype,"fullName",void 0);_.c([_.v(),_.h("design:type",Object)],U5.prototype,"data",void 0);
_.c([_.v({computed:"computeShowTimestamp(data.timestampLabel)"}),_.h("design:type",Boolean)],U5.prototype,"showTimestamp",void 0);_.c([_.v({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.h("design:type",Object)],U5.prototype,"serviceEndpoint",void 0);_.c([_.v({computed:"computeSubmitButton(data)"}),_.h("design:type",Object)],U5.prototype,"submitButton",void 0);_.c([_.v(),_.h("design:type",String)],U5.prototype,"descriptionText",void 0);
_.c([_.v(),_.h("design:type",Number)],U5.prototype,"issueType",void 0);_.c([_.v(),_.h("design:type",Number)],U5.prototype,"affiliation",void 0);_.c([_.v(),_.h("design:type",String)],U5.prototype,"fullNameText",void 0);_.c([_.v(),_.h("design:type",String)],U5.prototype,"minutes",void 0);_.c([_.v(),_.h("design:type",String)],U5.prototype,"seconds",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],U5.prototype,"dataChanged",null);
_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],U5.prototype,"onYtServiceRequestSent",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],U5.prototype,"onYtServiceRequestCompleted",null);
_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],U5.prototype,"onYtServiceRequestError",null);_.c([_.nL("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],U5.prototype,"handleInput",null);U5=_.c([_.E({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],U5);
_.R(U5,"ytd-legal-report-details-form-renderer",function(){if(qij!==void 0)return qij;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return qij=q},{mode:1});var yHc;var Tl=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return q};
_.O(Tl,_.Y);Tl.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
Tl.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var q=this.formRenderer.getForm();q&&this.data.submitEndpoint&&(_.tG().resolve(_.PG).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},q,{element:this.hostElement})}),_.Pw(this.hostElement,"yt-close-popup-action"))}};
Tl.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.Pw(this.hostElement,"yt-close-popup-action"))};
Tl.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
Tl.prototype.onPopupClosed=Tl.prototype.onPopupClosed;_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],Tl.prototype,"ytEventForwardingBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Tl.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Tl.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Tl.prototype,"ytRendererBehavior",void 0);
_.c([_.Wj("yt-form-renderer"),_.h("design:type",Object)],Tl.prototype,"formRenderer",void 0);_.c([_.v(),_.h("design:type",Object)],Tl.prototype,"data",void 0);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Tl.prototype,"onPopupClosed",null);Tl=_.c([_.E({is:"ytd-form-popup-content",disableElementRegistration:!0})],Tl);
_.R(Tl,"ytd-form-popup-content",function(){if(yHc!==void 0)return yHc;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return yHc=q},{mode:1});var eZh;var CZ=function(){return _.Y.apply(this,arguments)||this};
_.O(CZ,_.Y);CZ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
CZ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
CZ.prototype.onPopupOpened=function(){_.t7(this.hostElement,"yt-invalidate-popup-tabbables")};
CZ.prototype.onYtServiceRequestCompleted=function(q,w){w.data&&w.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.t7(this.hostElement,"yt-invalidate-popup-tabbables"))};
CZ.prototype.onYtServiceRequestCompleted=CZ.prototype.onYtServiceRequestCompleted;CZ.prototype.onPopupOpened=CZ.prototype.onPopupOpened;_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],CZ.prototype,"ytEventForwardingBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],CZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],CZ.prototype,"ytRendererBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],CZ.prototype,"data",void 0);_.c([_.Gm("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CZ.prototype,"onPopupOpened",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],CZ.prototype,"onYtServiceRequestCompleted",null);CZ=_.c([_.E({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],CZ);
_.R(CZ,"ytd-form-popup-renderer",function(){if(eZh!==void 0)return eZh;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return eZh=q},{mode:1});var kKj;var dw=function(){var q=_.Y.apply(this,arguments)||this;q.isLoading=!1;return q};
_.O(dw,_.Y);_.k=dw.prototype;_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");Hva(this.hostElement)};
_.k.onYtServiceRequestSent=function(){this.isLoading=!0};
_.k.onYtServiceRequestCompleted=function(){_.Pw(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.k.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.nq(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.k.closePopupHandler=function(){this.fireOnCloseActions()};
_.k.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var q=this.get("data.headerImage.thumbnails");q&&(q=_.wm(q,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+q+")")}};
_.k.onYtNavigate=function(q){(q=_.he(q))&&q.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
dw.prototype.onYtNavigate=dw.prototype.onYtNavigate;dw.prototype.onHeaderImageChanged=dw.prototype.onHeaderImageChanged;dw.prototype.closePopupHandler=dw.prototype.closePopupHandler;dw.prototype.onYtServiceRequestCompleted=dw.prototype.onYtServiceRequestCompleted;dw.prototype.onYtServiceRequestSent=dw.prototype.onYtServiceRequestSent;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],dw.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],dw.prototype,"ytEventForwardingBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],dw.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dw.prototype,"isLoading",void 0);_.c([_.Wj("#header"),_.h("design:type",HTMLDivElement)],dw.prototype,"header",void 0);_.c([_.Wj("#confirm-button"),_.h("design:type",_.X5)],dw.prototype,"confirmButton",void 0);
_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],dw.prototype,"onYtServiceRequestSent",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],dw.prototype,"onYtServiceRequestCompleted",null);
_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],dw.prototype,"closePopupHandler",null);_.c([_.nL("data.headerImage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dw.prototype,"onHeaderImageChanged",null);_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],dw.prototype,"onYtNavigate",null);
dw=_.c([_.E({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],dw);
_.R(dw,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(kKj!==void 0)return kKj;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return kKj=q},{mode:1});var tUm;var O5=function(){var q=_.Y.apply(this,arguments)||this;q.isLoading=!1;return q};
_.O(O5,_.Y);_.k=O5.prototype;_.k.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"}}}};
_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);Hva(this.hostElement)};
_.k.onYtServiceRequestCompleted=function(){_.Pw(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.k.onYtServiceRequestError=function(q){_.xH(this.hostElement,q.detail.error.message)};
_.k.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.k.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.Pw(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.k.onDataChanged=function(){this.isLoading=!1;var q=this.get("data.headerImage.thumbnails");q&&(q=_.wm(q,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+q+")");q=_.pN();var w=_.ZB(),u=this.get("data.trackingParams");u&&w&&q&&_.EC(q,w,_.Tj(u))};
_.x$.Object.defineProperties(O5.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
O5.prototype.onDataChanged=O5.prototype.onDataChanged;O5.prototype.onDomChange=O5.prototype.onDomChange;O5.prototype.onYtServiceRequestError=O5.prototype.onYtServiceRequestError;O5.prototype.onYtServiceRequestCompleted=O5.prototype.onYtServiceRequestCompleted;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],O5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],O5.prototype,"ytRendererBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],O5.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],O5.prototype,"isLoading",void 0);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],O5.prototype,"hasDescription",null);_.c([_.Wj("tp-yt-paper-dialog-scrollable"),_.h("design:type",Object)],O5.prototype,"scrollable",void 0);_.c([_.Wj("#header"),_.h("design:type",HTMLElement)],O5.prototype,"header",void 0);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],O5.prototype,"onYtServiceRequestCompleted",null);_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],O5.prototype,"onYtServiceRequestError",null);
_.c([_.Gm("dom-change"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],O5.prototype,"onDomChange",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],O5.prototype,"onDataChanged",null);O5=_.c([_.E({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],O5);
_.R(O5,"ytd-gaming-account-link-setting-renderer",function(){if(tUm!==void 0)return tUm;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return tUm=q},{mode:1});var Pbq;var XAB;var ot=function(){var q=_.Y.apply(this,arguments)||this;q.isHeader=!1;q.getEndpointForm=sDx;return q};
_.O(ot,_.Y);_.k=ot.prototype;_.k.triggerHintActions=function(){var q=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var w=_.X4(q.hostElement,"yt-get-opened-popups-action");!(w&&w.length===1?w[0]:[]).some(function(u){u=u.openPopupAction.popupType;return u==="SURVEY"||u==="MEALBAR"||u==="HINT"})&&q.data.hintActions&&q.guideOpened&&(_.nq(q.hostElement,q.data.hintActions,q.hostElement),q.data.hintActions=void 0)})};
_.k.getBadgeIconType=function(q){return q&&q.liveBroadcasting?"live":null};
_.k.onDown=function(){this.interaction.triggerDown()};
_.k.onUp=function(){this.interaction.triggerUp()};
_.k.onTap=function(q){if(this.data.serviceEndpoint){var w;_.T("shorts_controller_retrieve_seedless_sequence_v2")&&((w=_.C(this.data.serviceEndpoint,_.Tt))==null?void 0:w.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):WRj(this.data.serviceEndpoint,this);q.preventDefault()}else this.data.navigationEndpoint&&!_.LT(_.SQ(q),this.hostElement,["A".toString()])&&_.t7(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.k.computeActive=function(q,w){if(!q)return!1;var u=q.navigationEndpoint;q=q.serviceEndpoint;if(!u&&!q||!w)return!1;if(u){q=(q=_.QI(w))&&["subscriptions","filteredsubscriptions"].includes(q);if(_.C(u,_.Ii)&&_.C(w,_.Ii)&&!q){var y=_.C(u,_.Ii).browseId;w=_.C(w,_.Ii).browseId;return y!==void 0&&w!==void 0&&(y===w||y==="VLWL"&&w==="FEwatch_later"||y==="FEwatch_later"&&w==="VLWL")}var e;u=(e=_.C(u.commandMetadata,_.wk))==null?void 0:e.url;w=(y=_.C(w.commandMetadata,_.wk))==null?void 0:y.url;return!(!u||
!w||u!==w&&u!==_.QV(w))}return this.isActiveShortsTab(q,w)};
_.k.isActiveShortsTab=function(q,w){w=!!_.C(w,_.Tt)||!!_.C(w,_.JO);return(!!_.C(q,_.Tt)||!!_.C(q,_.JO))&&w};
_.k.computeIsPrimary=function(q){return!!q};
_.x$.Object.defineProperties(ot.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 q=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&q)return q}}});
ot.prototype.onTap=ot.prototype.onTap;ot.prototype.onUp=ot.prototype.onUp;ot.prototype.onDown=ot.prototype.onDown;ot.prototype.triggerHintActions=ot.prototype.triggerHintActions;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],ot.prototype,"componentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ot.prototype,"rendererBehavior",void 0);_.c([_.D(_.gd.YtTaskEmitterBehavior),_.h("design:type",Object)],ot.prototype,"taskEmitterBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],ot.prototype,"activeEndpoint",void 0);_.c([_.v(),_.h("design:type",Object)],ot.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],ot.prototype,"guideOpened",void 0);_.c([_.v(),_.h("design:type",String)],ot.prototype,"type",void 0);_.c([_.Wj("yt-interaction"),_.h("design:type",Object)],ot.prototype,"interaction",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ot.prototype,"isHeader",void 0);
_.c([_.v({reflectToAttribute:!0}),_.Z("data","activeEndpoint"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ot.prototype,"active",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ot.prototype,"isPrimary",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data.count","data.presentationStyle","data.badges.*"),_.h("design:type",String),_.h("design:paramtypes",[])],ot.prototype,"lineEndStyle",null);
_.c([_.Z("lineEndStyle"),_.h("design:type",Object),_.h("design:paramtypes",[])],ot.prototype,"ariaLabel",null);_.c([_.nL("data.hintActions","guideOpened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ot.prototype,"triggerHintActions",null);_.c([_.Gm("down"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ot.prototype,"onDown",null);
_.c([_.Gm("up"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ot.prototype,"onUp",null);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],ot.prototype,"onTap",null);ot=_.c([_.E({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],ot);
_.R(ot,"ytd-guide-entry-renderer",function(){if(XAB!==void 0)return XAB;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return XAB=q},{mode:1});var V2=function(){var q=_.Y.apply(this,arguments)||this;q.userToggled=!1;return q};
_.O(V2,_.Y);_.k=V2.prototype;_.k.getItemsPath=function(){return"data.expandableItems"};
_.k.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.k.onExpanderItemTapped=function(q){var w=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.T("kevlar_guide_expandable_items_killswitch")&&_.KJ(this,function(){_.q5(w.expandableItems)});
q.preventDefault()};
_.k.onCollapserItemTapped=function(q){var w=this;this._setExpanded(!1);this.userToggled=!0;q.preventDefault();this.expandableItems&&!_.T("kevlar_guide_collapsible_items_killswitch")&&_.KJ(this,function(){_.xZ(w.hostElement)})};
_.k.observeActiveEndpoint=function(){for(var q=this.activeEndpoint,w=this.data,u=this.expandableItems.children,y=0,e=u.length;y<e;y++)u[y].activeEndpoint=q;w&&w.autoExpandCommand&&q&&!this.userToggled&&(u=this.data.autoExpandCommand,w=!(!_.C(u,_.Ii)||!_.C(q,_.Ii)||_.C(u,_.Ii).browseId!==_.C(q,_.Ii).browseId),q=this.get("commandMetadata.webCommandMetadata.url",q),u=this.get("commandMetadata.webCommandMetadata.url",u),w=w||!!(q&&u&&q.includes(u)),this._setExpanded(w),w&&this.ytLazyListBehavior.fillRemainingListItems())};
V2.prototype.observeActiveEndpoint=V2.prototype.observeActiveEndpoint;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.LU.YtLazyListBehavior),_.h("design:type",Object)],V2.prototype,"ytLazyListBehavior",void 0);_.c([_.Wj("#expandable-items"),_.h("design:type",HTMLElement)],V2.prototype,"expandableItems",void 0);
_.c([_.v(),_.h("design:type",Object)],V2.prototype,"data",void 0);_.c([_.v({readOnly:!0,reflectToAttribute:!0}),_.h("design:type",Boolean)],V2.prototype,"expanded",void 0);_.c([_.v({value:0}),_.h("design:type",Number)],V2.prototype,"initialCount",void 0);_.c([_.v(),_.h("design:type",Object)],V2.prototype,"activeEndpoint",void 0);_.c([_.nL("data","activeEndpoint","canShowMore"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],V2.prototype,"observeActiveEndpoint",null);
V2=_.c([_.E({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],V2);
_.R(V2,"ytd-guide-collapsible-entry-renderer",function(){if(Pbq!==void 0)return Pbq;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Pbq=q},{mode:_.kB("kevlar_poly_si_batch_j079")?1:2});var Flj;var GKh;var fZ=function(){var q=_.Y.apply(this,arguments)||this;q.allVideosCount=0;q.renderGuideEntry=!1;return q};
_.O(fZ,_.Y);fZ.prototype.observeRenderEntry=function(){var q;this.renderGuideEntry=!((q=this.data)==null||!q.alwaysShow)||!!this.allVideosCount};
fZ.prototype.observeRenderEntry=fZ.prototype.observeRenderEntry;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],fZ.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],fZ.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],fZ.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],fZ.prototype,"activeEndpoint",void 0);_.c([_.v({selector:_.rOl}),_.h("design:type",Object)],fZ.prototype,"allVideosCount",void 0);
_.c([_.v(),_.h("design:type",Object)],fZ.prototype,"renderGuideEntry",void 0);_.c([_.I9("allVideosCount","data.alwaysShow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fZ.prototype,"observeRenderEntry",null);fZ=_.c([_.E({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],fZ);
_.R(fZ,"ytd-guide-downloads-entry-renderer",function(){if(GKh===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);GKh=q}q=GKh;return q},{mode:1});var mB=function(){var q=_.Y.apply(this,arguments)||this;q.youtab=_.T("web_enable_youtab");q.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return q};
_.O(mB,_.Y);_.k=mB.prototype;_.k.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]]"}}}}}};
_.k.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var q=this.sectionItems.children,w=0,u=q.length;w<u;w++)q[w].activeEndpoint=this.activeEndpoint}};
_.k.handleAddToGuideSectionAction=function(q){var w=_.C(q,dAm);if(w&&this.data&&(q=w.items,w=w.handlerData,q&&w&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(w)>-1)){w=0;for(var u=q.length;w<u;w++)q[w].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,q[w])}};
_.k.handleRemoveFromGuideSectionAction=function(q){var w=_.C(q,O1x);w&&this.data&&(q=w.guideEntryId,w=w.handlerData,q&&w&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(w)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(q,this.data.sectionItems),this.removeFromCollapsedSection(q,this.data.sectionItems)))};
_.k.removeFromExpandedSection=function(q,w){q=this.getEntryIndexMatchingId(q,w);q!==-1&&this.splice("data.sectionItems",q,1)};
_.k.removeFromCollapsedSection=function(q,w){var u=w.findIndex(function(y){return!!_.C(y,gem)});
u&&u!==-1&&w[u]&&_.C(w[u],gem)&&(w=_.C(w[u],gem).expandableItems)&&(q=this.getEntryIndexMatchingId(q,w),q!==-1&&this.splice("data.sectionItems."+u+".guideCollapsibleEntryRenderer.expandableItems",q,1))};
_.k.getEntryIndexMatchingId=function(q,w){var u=this;return w.findIndex(function(y){return u.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",y)===q})};
mB.prototype.activeEndpointChanged=mB.prototype.activeEndpointChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],mB.prototype,"actionHandlerBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],mB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.Wj("#section-items"),_.h("design:type",HTMLDivElement)],mB.prototype,"sectionItems",void 0);
_.c([_.Wj("#header-entry"),_.h("design:type",Object)],mB.prototype,"headerEntry",void 0);_.c([_.v(),_.h("design:type",Object)],mB.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],mB.prototype,"activeEndpoint",void 0);_.c([_.v(),_.h("design:type",Object)],mB.prototype,"youtab",void 0);_.c([_.nL("activeEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mB.prototype,"activeEndpointChanged",null);
mB=_.c([_.E({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],mB);
_.R(mB,"ytd-guide-collapsible-section-entry-renderer",function(){if(Flj===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);Flj=q}q=Flj;return q},{mode:1});var nz4;var HQA;var Aj=function(){var q=_.Y.apply(this,arguments)||this;q.modernTypography=_.T("web_modern_typography");q.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 q};
_.O(Aj,_.Y);_.k=Aj.prototype;
_.k.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}}}}};
_.k.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var q=_.X4(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);q&&q.length===1&&q[0]&&_.X4(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.k.handleResetChannelUnreadCountCommand=function(q){var w;(q=(w=_.C(q,VMj))==null?void 0:w.channelId)&&this.data&&this.data.items&&(w=this.getPathToEntryMatchingId(q))&&(this.set(w+".guideEntryRenderer.count",0),this.set(w+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.k.handleResetSubscriptionsUnreadDotCommand=function(q){var w,u=(w=_.C(q,fN6))==null?void 0:w.targetId,y;u&&(y=this.data)!=null&&y.items&&(q=this.data.items.findIndex(function(e){var t;return((t=e.guideEntryRenderer)==null?void 0:t.targetId)===u}),q<0||this.set("data.items."+q+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.k.getPathToEntryMatchingId=function(q){if(this.data&&this.data.items){var w=this.getEntryIndexMatchingId(q,this.data.items);if(w>-1)return"data.items."+w;for(var u=0;u<this.data.items.length;u++)if(w=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[u]))if(w=this.getEntryIndexMatchingId(q,w),w>-1)return"data.items."+u+".guideCollapsibleEntryRenderer.expandableItems."+w}};
_.k.handleAddToGuideSectionAction=function(q){var w=this;if(_.C(q,dAm)){var u=_.C(q,dAm).items;q=_.C(q,dAm).handlerData;var y,e;u&&q&&((y=this.data)==null?void 0:(e=y.handlerDatas)==null?void 0:e.indexOf(q))>-1&&(u=u.filter(function(t){return(t=w.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",t))&&!w.isGuideItemPresent(t)}),this.unshift.apply(this,["data.items"].concat(_.Cm(u))))}};
_.k.isGuideItemPresent=function(q){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(q,this.data.items)!==-1)return!0;var w=this.data.items.find(function(u){return!!u.guideCollapsibleEntryRenderer});
if((w==null?0:w.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(q,w.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.k.getEntryIndexMatchingId=function(q,w){var u=this;return w.findIndex(function(y){return u.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",y)===q})};
_.k.handleRemoveFromGuideSectionAction=function(q){if(_.C(q,O1x)){var w=_.C(q,O1x).guideEntryId;q=_.C(q,O1x).handlerData;var u,y;w&&q&&((u=this.data)==null?void 0:(y=u.handlerDatas)==null?void 0:y.indexOf(q))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(w,this.data.items),this.removeFromCollapsedSection(w,this.data.items))}};
_.k.removeFromExpandedSection=function(q,w){q=this.getEntryIndexMatchingId(q,w);q!==-1&&this.splice("data.items",q,1)};
_.k.removeFromCollapsedSection=function(q,w){var u=w.findIndex(function(y){return!!y.guideCollapsibleEntryRenderer});
u!==-1&&(w=w[u].guideCollapsibleEntryRenderer.expandableItems)&&(q=this.getEntryIndexMatchingId(q,w),q!==-1&&this.splice("data.items."+u+".guideCollapsibleEntryRenderer.expandableItems",q,1))};
_.k.activeEndpointChanged=function(){for(var q=_.A(this.hostElement).querySelector("#items").children,w=0,u=q.length;w<u;w++)q[w].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.k.guideOpenedChanged=function(){for(var q=_.A(this.hostElement).querySelector("#items").children,w=0,u=q.length;w<u;w++)q[w].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
Aj.prototype.guideOpenedChanged=Aj.prototype.guideOpenedChanged;Aj.prototype.activeEndpointChanged=Aj.prototype.activeEndpointChanged;Aj.prototype.persistentGuideChanged=Aj.prototype.persistentGuideChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Aj.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Aj.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Aj.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.LU.YtLazyListBehavior),_.h("design:type",Object)],Aj.prototype,"ytLazyListBehavior",void 0);_.c([_.D(_.D$.YtdGuideStateAwareBehavior),_.h("design:type",Object)],Aj.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Aj.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Aj.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Aj.prototype,"modernTypography",void 0);_.c([_.v(),_.h("design:type",String)],Aj.prototype,"type",void 0);_.c([_.v({value:20}),_.h("design:type",Number)],Aj.prototype,"initialCount",void 0);_.c([_.v({value:10}),_.h("design:type",Number)],Aj.prototype,"targetFramerate",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],Aj.prototype,"autoFill",void 0);_.c([_.v({value:50}),_.h("design:type",Number)],Aj.prototype,"renderDelay",void 0);
_.c([_.nL("guidePersistentAndVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Aj.prototype,"persistentGuideChanged",null);_.c([_.I9("activeEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Aj.prototype,"activeEndpointChanged",null);_.c([_.I9("guideOpened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Aj.prototype,"guideOpenedChanged",null);
Aj=_.c([_.E({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],Aj);
_.R(Aj,"ytd-guide-section-renderer",function(){if(HQA!==void 0)return HQA;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return HQA=q},{mode:_.kB("kevlar_poly_si_batch_j073")?1:2});var Wlh;var Jj=function(){return _.Y.apply(this,arguments)||this};
_.O(Jj,_.Y);_.x$.Object.defineProperties(Jj.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Jj.prototype,"rendererBehaviors",void 0);_.c([_.v(),_.h("design:type",Object)],Jj.prototype,"data",void 0);_.c([_.v(),_.Z("data.signInButton.buttonRenderer.style"),_.h("design:type",Object),_.h("design:paramtypes",[])],Jj.prototype,"alignByText",null);Jj=_.c([_.E({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],Jj);
_.R(Jj,"ytd-guide-signin-promo-renderer",function(){if(Wlh===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);Wlh=q}q=Wlh;return q},{mode:1});var zl=function(){var q=_.Y.apply(this,arguments)||this;q.showFooter=!1;return q};
_.O(zl,_.Y);zl.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}}}}};
zl.prototype.attached=function(){var q=this,w;return _.F(function(u){if(u.nextAddress==1){w=_.tG().resolve(_.kF(_.aT));if(!w)return u.jumpTo(0);w.setGuideData(q.hostElement);return _.H(u,0,3)}q.ytLazyListBehavior.initialCount=2;return u.return()})};
zl.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
zl.prototype.dataChanged=zl.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],zl.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.LU.YtLazyListBehavior),_.h("design:type",Object)],zl.prototype,"ytLazyListBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],zl.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],zl.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],zl.prototype,"showFooter",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],zl.prototype,"autoFill",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zl.prototype,"dataChanged",null);zl=_.c([_.E({is:"ytd-guide-renderer",disableElementRegistration:!0})],zl);
_.R(zl,"ytd-guide-renderer",function(){if(nz4!==void 0)return nz4;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return nz4=q},{mode:_.kB("kevlar_poly_si_batch_j073")?1:2});var spq;var at=function(){var q=_.Y.apply(this,arguments)||this;q.systemIcons=_.T("kevlar_system_icons");q.frostedGlass=_.T("web_frosted_glass");q.getEndpointForm=sDx;return q};
_.O(at,_.Y);_.k=at.prototype;_.k.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.k.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.lA(this.data.formattedTitle))};
_.k.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.k.onDown=function(){this.interaction.triggerDown()};
_.k.onUp=function(){this.interaction.triggerUp()};
_.k.onTap=function(q){if(this.data.serviceEndpoint){var w;_.T("shorts_controller_retrieve_seedless_sequence_v2")&&((w=_.C(this.data.serviceEndpoint,_.Tt))==null?void 0:w.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):WRj(this.data.serviceEndpoint,this);q.preventDefault()}else{var u;((u=this.data)==null?0:u.navigationEndpoint)&&!_.LT(_.SQ(q),this.hostElement,["A".toString()])&&_.t7(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.k.computeActive=function(q,w){if(!q)return!1;var u=q.navigationEndpoint;q=q.serviceEndpoint;if(!u&&!q||!w)return!1;if(u){q=_.C(u,_.Ii);var y=_.C(w,_.Ii);if(q&&y)return q.browseId===y.browseId&&q.params===y.params;var e;u=(e=_.C(u.commandMetadata,_.wk))==null?void 0:e.url;var t;w=(t=_.C(w.commandMetadata,_.wk))==null?void 0:t.url;return!(!u||!w||u!==w&&u!==_.QV(w))}return this.isActiveShortsTab(q,w)};
_.k.isActiveShortsTab=function(q,w){w=!!_.C(w,_.Tt)||!!_.C(w,_.JO);return(!!_.C(q,_.Tt)||!!_.C(q,_.JO))&&w};
_.k.computeTitle=function(q,w){return w?"":_.lA(q)};
_.x$.Object.defineProperties(at.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
at.prototype.onTap=at.prototype.onTap;at.prototype.onUp=at.prototype.onUp;at.prototype.onDown=at.prototype.onDown;at.prototype.onActiveStateChange=at.prototype.onActiveStateChange;at.prototype.dataChanged=at.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],at.prototype,"ytComponentBehavior",void 0);
_.c([_.D(_.JU),_.h("design:type",Object)],at.prototype,"ironButtonState",void 0);_.c([_.v(),_.h("design:type",Object)],at.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],at.prototype,"activeEndpoint",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],at.prototype,"noLabels",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.h("design:type",Boolean)],at.prototype,"isActive",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],at.prototype,"systemIcons",void 0);_.c([_.Wj("yt-interaction"),_.h("design:type",Object)],at.prototype,"interaction",void 0);_.c([_.Z("isActive"),_.h("design:type",Object),_.h("design:paramtypes",[])],at.prototype,"ariaSelected",null);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],at.prototype,"frostedGlass",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],at.prototype,"dataChanged",null);_.c([_.nL("isActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],at.prototype,"onActiveStateChange",null);_.c([_.Gm("down"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],at.prototype,"onDown",null);
_.c([_.Gm("up"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],at.prototype,"onUp",null);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],at.prototype,"onTap",null);at=_.c([_.E({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],at);
_.R(at,"ytd-mini-guide-entry-renderer",function(){if(spq!==void 0)return spq;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return spq=q},{mode:_.kB("kevlar_poly_si_batch_j063")?1:2});var NuK;var Do=function(){var q=_.Y.apply(this,arguments)||this;q.allVideosCount=0;q.noLabels=_.T("kevlar_mini_guide_no_labels");q.frostedGlass=_.T("web_frosted_glass");return q};
_.O(Do,_.Y);_.k=Do.prototype;_.k.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.k.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.k.visibleChanged=function(){if(this.visible&&!this.data){var q=_.tG().resolve(_.kF(_.aT));q&&q.setGuideData(this.hostElement)}};
_.k.dataChanged=function(){var q=[],w;if((w=this.data)!=null&&w.items){w=_.P(this.data.items);for(var u=w.next();!u.done;u=w.next()){u=u.value;var y=void 0;if((y=u.guideSectionRenderer)==null?0:y.items)for(y=void 0,u=_.P((y=u.guideSectionRenderer)==null?void 0:y.items),y=u.next();!y.done;y=u.next())if(y=y.value,y.guideEntryRenderer)y=y.guideEntryRenderer,y.isPrimary&&q.push({guideEntryRenderer:y});else if(y.guideCollapsibleSectionEntryRenderer){var e=void 0;((e=_.C(y.guideCollapsibleSectionEntryRenderer.headerEntry,
cN))==null?0:e.isPrimary)&&q.push({guideEntryRenderer:_.C(y.guideCollapsibleSectionEntryRenderer.headerEntry,cN)});if(y=y.guideCollapsibleSectionEntryRenderer.sectionItems)for(y=_.P(y),e=y.next();!e.done;e=y.next()){var t=e.value;e=_.C(t,Eex);var X=void 0;((X=_.C(t,cN))==null?0:X.isPrimary)?q.push({guideEntryRenderer:_.C(t,cN)}):e&&(t=void 0,_.C((t=e)==null?void 0:t.entryRenderer,cN)&&(e.alwaysShow||this.allVideosCount)&&q.push({guideEntryRenderer:_.C(e.entryRenderer,cN)}))}}}}this.miniGuideItems=
q};
_.k.activeEndpointChanged=function(){for(var q=this.items.children,w=0;w<q.length;w++)q[w].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
Do.prototype.activeEndpointChanged=Do.prototype.activeEndpointChanged;Do.prototype.dataChanged=Do.prototype.dataChanged;Do.prototype.visibleChanged=Do.prototype.visibleChanged;_.c([_.D(_.fU),_.h("design:type",Object)],Do.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Do.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.D(_.D$.YtdGuideStateAwareBehavior),_.h("design:type",Object)],Do.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Do.prototype,"ytComponentBehavior",void 0);_.c([_.Wj("#items"),_.h("design:type",Object)],Do.prototype,"items",void 0);_.c([_.v(),_.h("design:type",Object)],Do.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],Do.prototype,"visible",void 0);
_.c([_.v(),_.h("design:type",Object)],Do.prototype,"miniGuideItems",void 0);_.c([_.v({selector:_.rOl}),_.h("design:type",Object)],Do.prototype,"allVideosCount",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Do.prototype,"noLabels",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Do.prototype,"frostedGlass",void 0);_.c([_.I9("visible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Do.prototype,"visibleChanged",null);
_.c([_.I9("data","allVideosCount"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Do.prototype,"dataChanged",null);_.c([_.I9("activeEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Do.prototype,"activeEndpointChanged",null);Do=_.c([_.E({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],Do);
_.R(Do,"ytd-mini-guide-renderer",function(){if(NuK===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);NuK=q}q=NuK;return q},{mode:1});var Qpq;var IWa=/^[\x00-\x7F]+$/,Zo=function(){var q=_.Y.apply(this,arguments)||this;q.darkerDarkTheme=_.T("web_darker_dark_theme");return q};
_.O(Zo,_.Y);_.x$.Object.defineProperties(Zo.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var q,w=_.lA((q=this.data)==null?void 0:q.handle);if(w)return _.jN("@"+w)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var q=_.lA(this.displayHandle),w,u=_.lA((w=this.data)==null?void 0:w.handleUrl);if(q&&u)return _.jN(u+q)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var q=_.lA(this.displayHandle);if(q&&!IWa.test(q)){var w;return(w=this.data)==null?void 0:w.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var q=_.lA(this.displayHandleUrl),w,u=_.lA((w=this.data)==null?void 0:w.urlInfoText);if(q&&u)return _.jN(u+" "+q)}}});
_.c([_.v(),_.h("design:type",Object)],Zo.prototype,"data",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Zo.prototype,"displayHandle",null);_.c([_.Z("displayHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],Zo.prototype,"displayHandleUrl",null);_.c([_.Z("displayHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],Zo.prototype,"warningText",null);
_.c([_.Z("displayHandleUrl"),_.h("design:type",Object),_.h("design:paramtypes",[])],Zo.prototype,"urlInfoTextWithUrl",null);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Zo.prototype,"darkerDarkTheme",void 0);Zo=_.c([_.E({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Zo);
_.R(Zo,"ytd-handles-claiming-confirm-dialog-content",function(){if(Qpq!==void 0)return Qpq;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Qpq=q},{mode:1});var iQ6;var pZ=function(){var q=_.Y.apply(this,arguments)||this;q.okButtonOverride={style:"mono",type:"outline",size:"M"};return q};
_.O(pZ,_.Y);pZ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
pZ.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],pZ.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],pZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],pZ.prototype,"okButtonOverride",void 0);_.c([_.v(),_.h("design:type",Object)],pZ.prototype,"data",void 0);pZ=_.c([_.E({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],pZ);
_.R(pZ,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(iQ6!==void 0)return iQ6;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return iQ6=q},{mode:1});var rHx;var UEA=/^[\x00-\x7F]+$/,$h=function(){var q=_.Y.apply(this,arguments)||this;q.isLoading=!1;q.darkerDarkTheme=_.T("web_darker_dark_theme");return q};
_.O($h,_.Y);$h.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var q;this.selectedHandle=(q=this.handleInput)==null?void 0:q.value;this.onSelectedHandleChanged(this.selectedHandle);_.X4(this.hostElement,"yt-refit-popups-action")}};
_.x$.Object.defineProperties($h.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var q;return(q=this.data)==null?void 0:q.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.jN("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.jN(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!UEA.test(this.selectedHandle)){var q;return(q=this.data)==null?void 0:q.warningText}}}});
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],$h.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],$h.prototype,"data",void 0);_.c([_.v(),_.h("design:type",String)],$h.prototype,"selectedHandle",void 0);_.c([_.v(),_.h("design:type",Object)],$h.prototype,"isLoading",void 0);_.c([_.v(),_.h("design:type",Function)],$h.prototype,"onSelectedHandleChanged",void 0);_.c([_.Wj("#channel-handle-input"),_.h("design:type",Object)],$h.prototype,"handleInput",void 0);
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],$h.prototype,"handleUrlPrefix",null);_.c([_.Z("selectedHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],$h.prototype,"displayHandle",null);_.c([_.Z("selectedHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],$h.prototype,"displayHandleUrl",null);_.c([_.Z("selectedHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],$h.prototype,"warningText",null);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],$h.prototype,"darkerDarkTheme",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],$h.prototype,"ytRendererBehavior",void 0);$h=_.c([_.E({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],$h);
_.R($h,"ytd-handles-claiming-edit-dialog-content",function(){if(rHx!==void 0)return rHx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return rHx=q},{mode:1});var Tua;var vE=function(){var q=_.Y.apply(this,arguments)||this;q.actionButtonOverride={style:"mono",type:"filled",size:"M"};q.cancelButtonOverride={style:"mono",type:"text",size:"M"};q.selectButtonDisabled=!1;q.isLoading=!1;q.hasSelectedHandleEventListener=!1;q.selectedHandleChanged=function(w){q.selectedHandle=w};
return q};
_.O(vE,_.Y);_.k=vE.prototype;_.k.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.k.onDataChanged=function(){var q,w;this.selectedHandle=(w=_.C((q=this.data)==null?void 0:q.inputField,i1x))==null?void 0:w.handle};
_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.k.onCancel=function(){this.selectedHandle="";_.Pw(this.hostElement,"yt-close-popup-action",[this.is])};
_.k.onSelectHandle=function(){var q=this;if(this.selectedHandle!==void 0){var w;((w=this.data)==null?void 0:w.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(u,y){if(y.newHandleUpdateStatus!==void 0&&y.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&y.newHandleUpdateStatus.errorMessage)_.xH(q.hostElement,_.lA(y.newHandleUpdateStatus.errorMessage)),
q.isLoading=!1;else{var e;if((e=q.data)==null?0:e.onChannelUpdateSuccess){u=q.data.onChannelUpdateSuccess;var t,X;if(y=(t=_.C(u,_.Ou))==null?void 0:(X=t.popup)==null?void 0:X.handlesClaimingConfirmDialogRenderer)y.handle=_.jN(q.selectedHandle);q.ytComponentBehavior.resolveCommand(u);_.Pw(q.hostElement,"yt-close-popup-action",[q.is])}else q.isLoading=!1}},
onServerError:function(){var u;q.content&&((u=q.content)==null?0:u.handleInput)&&q.content.handleInput.validate();q.isLoading=!1;_.xH(q.hostElement,_.ID("TRY_AGAIN_LATER"))}}}))}};
_.k.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
vE.prototype.onDataChanged=vE.prototype.onDataChanged;vE.prototype.onSelectedHandleChanged=vE.prototype.onSelectedHandleChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],vE.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],vE.prototype,"actionButtonOverride",void 0);_.c([_.v(),_.h("design:type",Object)],vE.prototype,"cancelButtonOverride",void 0);_.c([_.v(),_.h("design:type",Object)],vE.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",String)],vE.prototype,"selectedHandle",void 0);_.c([_.v(),_.h("design:type",Object)],vE.prototype,"selectButtonDisabled",void 0);_.c([_.v(),_.h("design:type",Object)],vE.prototype,"isLoading",void 0);_.c([_.v(),_.h("design:type",Object)],vE.prototype,"hasSelectedHandleEventListener",void 0);_.c([_.v(),_.h("design:type",Object)],vE.prototype,"handleInput",void 0);
_.c([_.nL("selectedHandle"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vE.prototype,"onSelectedHandleChanged",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vE.prototype,"onDataChanged",null);_.c([_.Wj("ytd-handles-claiming-edit-dialog-content"),_.h("design:type",Object)],vE.prototype,"content",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],vE.prototype,"ytRendererstamperBehavior",void 0);vE=_.c([_.E({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],vE);
_.R(vE,"ytd-handles-claiming-edit-dialog-renderer",function(){if(Tua!==void 0)return Tua;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Tua=q},{mode:1});var Cbh;var bu=function(){return _.Y.apply(this,arguments)||this};
_.O(bu,_.Y);_.x$.Object.defineProperties(bu.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null?0:q.handle){var w;return _.jN("@"+_.lA((w=this.data)==null?void 0:w.handle))}}}});
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],bu.prototype,"formattedHandle",null);_.c([_.v(),_.h("design:type",Object)],bu.prototype,"data",void 0);bu=_.c([_.E({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],bu);
_.R(bu,"ytd-handles-claiming-radio-option-renderer",function(){if(Cbh!==void 0)return Cbh;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Cbh=q},{mode:1});var dE6;var OQK=/^[\x00-\x7F]+$/,Yh=function(){var q=_.Y.apply(this,arguments)||this;q.initialRadioIndex="-1";q.isLoading=!1;q.darkerDarkTheme=_.T("web_darker_dark_theme");q.maybeSubmitFeedback=function(){q.feedbackSurveyRenderer.submitSurvey()};
return q};
_.O(Yh,_.Y);Yh.prototype.updateSelectedHandleIndexFromBinding=function(q){this.selectedRadioIndex=+q.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(q)};
Yh.prototype.selectedHandleChanged=function(q){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var w;this.selectedHandle=(w=this.handleInput)==null?void 0:w.value;this.onSelectedHandleChanged(q)}};
_.x$.Object.defineProperties(Yh.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var q;return(((q=this.data)==null?void 0:q.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var q;return this.ytRendererBehavior.getSimpleString((q=this.data)==null?void 0:q.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.jN("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.jN(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!OQK.test(this.selectedHandle)){var q;return(q=this.data)==null?void 0:q.warningText}}}});
_.c([_.v(),_.h("design:type",Object)],Yh.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],Yh.prototype,"initialRadioIndex",void 0);_.c([_.v(),_.h("design:type",Number)],Yh.prototype,"selectedRadioIndex",void 0);_.c([_.v(),_.h("design:type",String)],Yh.prototype,"selectedHandle",void 0);_.c([_.v(),_.h("design:type",Object)],Yh.prototype,"isLoading",void 0);_.c([_.v(),_.h("design:type",Function)],Yh.prototype,"onSelectedHandleChanged",void 0);
_.c([_.v(),_.h("design:type",Function)],Yh.prototype,"onSelectedRadioIndexChanged",void 0);_.c([_.Wj("#channel-handle-input"),_.h("design:type",Object)],Yh.prototype,"handleInput",void 0);_.c([_.Wj("ytd-feedback-survey-renderer"),_.h("design:type",Object)],Yh.prototype,"feedbackSurveyRenderer",void 0);_.c([_.Z("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],Yh.prototype,"radioButtonLength",null);
_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Yh.prototype,"handleUrlPrefix",null);_.c([_.Z("selectedHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],Yh.prototype,"displayHandle",null);_.c([_.Z("selectedHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],Yh.prototype,"displayHandleUrl",null);_.c([_.Z("selectedHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],Yh.prototype,"warningText",null);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Yh.prototype,"darkerDarkTheme",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Yh.prototype,"ytRendererBehavior",void 0);Yh=_.c([_.E({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Yh);
_.R(Yh,"ytd-handles-claiming-select-dialog-content",function(){if(dE6!==void 0)return dE6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return dE6=q},{mode:1});var ozB;var gw=function(){var q=_.Y.apply(this,arguments)||this;q.actionButtonOverride={style:"mono",type:"filled",size:"M"};q.cancelButtonOverride={style:"mono",type:"text",size:"M"};q.initialRadioIndex="-1";q.selectButtonDisabled=!1;q.isLoading=!1;q.selectedRadioIndexChanged=function(w){q.selectedRadioIndex=Number(w.detail.value)};
q.selectedHandleChanged=function(w){q.selectedHandle=w.detail.value};
q.darkerDarkTheme=_.T("web_darker_dark_theme");return q};
_.O(gw,_.Y);_.k=gw.prototype;_.k.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.k.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.k.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.X4(this.hostElement,"yt-refit-popups-action")};
_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.k.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.Pw(this.hostElement,"yt-close-popup-action",[this.is])};
_.k.onSelectHandle=function(){var q=this;if(this.selectedHandle!==void 0){var w;((w=this.data)==null?void 0:w.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(u,y){if(y.newHandleUpdateStatus!==void 0&&y.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&y.newHandleUpdateStatus.errorMessage)_.xH(q.hostElement,_.lA(y.newHandleUpdateStatus.errorMessage)),
q.isLoading=!1;else{var e;if((e=q.data)==null?0:e.onChannelUpdateSuccess){u=q.data.onChannelUpdateSuccess;y=_.C(u,_.Ou);var t;if(y==null?0:(t=y.popup)==null?0:t.handlesClaimingConfirmDialogRenderer)y.popup.handlesClaimingConfirmDialogRenderer.handle=_.jN(q.selectedHandle);q.ytComponentBehavior.resolveCommand(u);_.Pw(q.hostElement,"yt-close-popup-action",[q.is])}else q.isLoading=!1}},
onServerError:function(){if(q.selectedRadioIndex===q.radioButtonLength){var u;q.content&&((u=q.content)==null?0:u.handleInput)&&q.content.handleInput.validate()}q.isLoading=!1;_.xH(q.hostElement,_.ID("TRY_AGAIN_LATER"))}}}))}};
_.k.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var q,w;this.selectedHandle=(q=this.content)==null?void 0:(w=q.handleInput)==null?void 0:w.value}else this.selectedRadioIndex>=0&&((q=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(q==null?void 0:q.handle):this.selectedHandle=void 0)};
_.k.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.k.getRadioItem=function(q){if(this.radioButtonLength>q&&q>=0)return _.C(this.data.radioButton[q],Z1H)};
_.x$.Object.defineProperties(gw.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var q;return(((q=this.data)==null?void 0:q.radioButton)||[]).length}}});
gw.prototype.onSelectedHandleChanged=gw.prototype.onSelectedHandleChanged;gw.prototype.onSelectedHandleIndexChanged=gw.prototype.onSelectedHandleIndexChanged;gw.prototype.onDataChanged=gw.prototype.onDataChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],gw.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],gw.prototype,"actionButtonOverride",void 0);_.c([_.v(),_.h("design:type",Object)],gw.prototype,"cancelButtonOverride",void 0);
_.c([_.v(),_.h("design:type",Object)],gw.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],gw.prototype,"initialRadioIndex",void 0);_.c([_.v(),_.h("design:type",Number)],gw.prototype,"selectedRadioIndex",void 0);_.c([_.v(),_.h("design:type",String)],gw.prototype,"selectedHandle",void 0);_.c([_.v(),_.h("design:type",Object)],gw.prototype,"selectButtonDisabled",void 0);_.c([_.v(),_.h("design:type",Object)],gw.prototype,"isLoading",void 0);
_.c([_.Z("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],gw.prototype,"radioButtonLength",null);_.c([_.Wj("ytd-handles-claiming-select-dialog-content"),_.h("design:type",Object)],gw.prototype,"content",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gw.prototype,"onDataChanged",null);
_.c([_.nL("selectedRadioIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gw.prototype,"onSelectedHandleIndexChanged",null);_.c([_.nL("selectedHandle"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gw.prototype,"onSelectedHandleChanged",null);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],gw.prototype,"darkerDarkTheme",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],gw.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],gw.prototype,"ytRendererstamperBehavior",void 0);gw=_.c([_.E({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],gw);
_.R(gw,"ytd-handles-claiming-select-dialog-renderer",function(){if(ozB!==void 0)return ozB;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return ozB=q},{mode:1});var VUT;var fWB;var E5=function(){return _.Y.apply(this,arguments)||this};
_.O(E5,_.Y);E5.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],E5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],E5.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],E5.prototype,"data",void 0);E5=_.c([_.E({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],E5);
_.R(E5,"ytd-hotkey-dialog-section-option-renderer",function(){if(fWB!==void 0)return fWB;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return fWB=q},{mode:1});var mEA;var Rt=function(){return _.Y.apply(this,arguments)||this};
_.O(Rt,_.Y);Rt.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Rt.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Rt.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Rt.prototype,"data",void 0);Rt=_.c([_.E({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Rt);
_.R(Rt,"ytd-hotkey-dialog-section-renderer",function(){if(mEA!==void 0)return mEA;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return mEA=q},{mode:1});var cE=function(){var q=_.Y.apply(this,arguments)||this;q.darkerDarkTheme=_.T("web_darker_dark_theme");return q};
_.O(cE,_.Y);cE.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],cE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],cE.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],cE.prototype,"darkerDarkTheme",void 0);cE=_.c([_.E({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],cE);
_.R(cE,"ytd-hotkey-dialog-content",function(){if(VUT!==void 0)return VUT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return VUT=q},{mode:1});var AHT;var Sd=function(){return _.Y.apply(this,arguments)||this};
_.O(Sd,_.Y);Sd.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var q=document.querySelector("ytd-hotkey-dialog-content #scrollable");q&&(q.dialogElement=this.hostElement.parentElement)};
Sd.prototype.onCloseTap=function(){_.Pw(this.hostElement,"yt-close-popup-action")};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Sd.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Sd.prototype,"data",void 0);Sd=_.c([_.E({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Sd);
_.R(Sd,"ytd-hotkey-dialog-renderer",function(){if(AHT!==void 0)return AHT;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return AHT=q},{mode:1});var JHc;var hj=function(){return _.Y.apply(this,arguments)||this};
_.O(hj,_.Y);hj.prototype.onYtServiceRequestError=function(){if(this.blocked){var q;var w=(q=this.data)==null?void 0:q.defaultServiceEndpoint}else{var u;w=(u=this.data)==null?void 0:u.toggledServiceEndpoint}var y;(w=(y=_.C(w,_.BPj))==null?void 0:y.onFailureAction)&&this.ytComponentBehavior.resolveCommand(w);this.updateBlockState(!this.blocked)};
hj.prototype.onYtToggleButton=function(q){this.updateBlockState(q.detail.toggled)};
hj.prototype.updateBlockState=function(q){if(q!==this.blocked){var w=this.blockedEntityKey;w&&this.ytdReduxBehavior.dispatch(_.IH("blockStateEntity",w,{key:w,blocked:q}));this.set("data.isToggled",q)}};
_.x$.Object.defineProperties(hj.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)}}});
hj.prototype.onYtToggleButton=hj.prototype.onYtToggleButton;hj.prototype.onYtServiceRequestError=hj.prototype.onYtServiceRequestError;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],hj.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],hj.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],hj.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],hj.prototype,"blockedEntityKey",void 0);
_.c([_.v({selectorArgs:["blockedEntityKey"],selector:function(q,w){return _.HQ(q.entities,"blockStateEntity",w)}}),
_.h("design:type",Object)],hj.prototype,"blockStateEntity",void 0);_.c([_.Z("data","blockStateEntity"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],hj.prototype,"blocked",null);_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],hj.prototype,"onYtServiceRequestError",null);
_.c([_.Gm("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],hj.prototype,"onYtToggleButton",null);hj=_.c([_.E({is:"ytd-block-button",disableElementRegistration:!0})],hj);
_.R(hj,"ytd-block-button",function(){if(JHc!==void 0)return JHc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return JHc=q},
{mode:1});var zZH;var aWc;var jd=function(){return _.Y.apply(this,arguments)||this};
_.O(jd,_.Y);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],jd.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],jd.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],jd.prototype,"data",void 0);jd=_.c([_.E({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],jd);
_.R(jd,"ytd-kids-blocklist-picker-item-renderer",function(){if(aWc!==void 0)return aWc;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return aWc=q},{mode:1});var lu=function(){return _.Y.apply(this,arguments)||this};
_.O(lu,_.Y);lu.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],lu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],lu.prototype,"data",void 0);lu=_.c([_.E({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],lu);
_.R(lu,"ytd-kids-blocklist-picker-content",function(){if(zZH!==void 0)return zZH;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return zZH=
q},{mode:_.kB("kevlar_poly_si_batch_j025")?1:2});var DEj;var LZ=function(){var q=_.Y.apply(this,arguments)||this;q.hasAnyRequestSucceeded=!1;q.hasAnyRequestFailed=!1;q.numPendingRequests=0;return q};
_.O(LZ,_.Y);_.k=LZ.prototype;_.k.attached=function(){this.hostElement.setAttribute("dialog","")};
_.k.onDoneButtonTap=function(){_.Pw(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.k.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.k.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.k.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.k.onPopupClosed=function(q){var w,u;if(((w=q.detail)==null?void 0:(u=w.popup)==null?void 0:u.is)==="tp-yt-paper-dialog"){var y;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((y=this.data)==null?0:y.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.BQ(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
LZ.prototype.onPopupClosed=LZ.prototype.onPopupClosed;LZ.prototype.onYtServiceRequestError=LZ.prototype.onYtServiceRequestError;LZ.prototype.onYtServiceRequestCompleted=LZ.prototype.onYtServiceRequestCompleted;LZ.prototype.onYtServiceRequestSent=LZ.prototype.onYtServiceRequestSent;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],LZ.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],LZ.prototype,"ytRendererBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],LZ.prototype,"data",void 0);_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LZ.prototype,"onYtServiceRequestSent",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LZ.prototype,"onYtServiceRequestCompleted",null);
_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LZ.prototype,"onYtServiceRequestError",null);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],LZ.prototype,"onPopupClosed",null);LZ=_.c([_.E({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],LZ);
_.R(LZ,"ytd-kids-blocklist-picker-renderer",function(){if(DEj!==void 0)return DEj;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return DEj=q},{mode:1});var ZQh;var pAh;var M3=function(){return _.Y.apply(this,arguments)||this};
_.O(M3,_.Y);M3.prototype.setTip=function(q){var w=this;this.data&&(this.tip=dkh(T6a.getInstance(),q,this.data),_.KJ(this,function(){_.t7(w.hostElement,"yt-refit")}))};
M3.prototype.clearTip=function(){this.tip=void 0};
M3.prototype.computeHidden=function(q){return!q};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],M3.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],M3.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.h("design:type",Boolean)],M3.prototype,"hidden",void 0);_.c([_.v(),_.h("design:type",Object)],M3.prototype,"tip",void 0);M3=_.c([_.E({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],M3);
_.R(M3,"ytd-menu-popup-tip-renderer",function(){if(pAh!==void 0)return pAh;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);
return pAh=q},{mode:1});var $Eh;var KZ=function(){var q=_.Y.apply(this,arguments)||this;q.useIcons=!1;q.systemIcons=_.T("kevlar_system_icons");q.useListItemStyles=_.T("web_list_item_style_for_menu_items");return q};
_.O(KZ,_.Y);_.k=KZ.prototype;_.k.onFocus=function(){var q;(q=_.A(this.hostElement).querySelector("tp-yt-paper-item"))==null||q.focus()};
_.k.onTap=function(){var q=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(q&&_.C(q,_.Ww))this.componentBehavior.resolveCommand(q),this.updateToggledStateInEntity();else if(q){this.componentBehavior.resolveCommand(q)||_.tG().resolve(_.PG).resolveCommand(q,{form:{element:this.hostElement}});var w;((w=_.C(q,_.NU))==null?void 0:w.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.k.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.k.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.k.updateToggledStateInEntity=function(){var q=this.data.toggleMenuServiceItemEntityKey,w=!this.data.isToggled;q&&this.ytdReduxBehavior.dispatch(_.IH("toggleMenuServiceItemEntity",q,{key:q,isToggled:w}))};
_.k.computeIcon=function(q,w,u){return(q=q?u:w)&&q.iconType?_.Fy(q.iconType):""};
_.k.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.k.isIconActive=function(q){return!_.T("toggle_menu_active_icon_killswitch")&&q};
_.x$.Object.defineProperties(KZ.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return((q=this.data)==null?0:q.isToggled)?(w=this.data)==null?void 0:w.toggledText:(u=this.data)==null?void 0:u.defaultText}}});
KZ.prototype.toggledStateEntityChanged=KZ.prototype.toggledStateEntityChanged;KZ.prototype.onYtServiceRequestCompleted=KZ.prototype.onYtServiceRequestCompleted;KZ.prototype.onTap=KZ.prototype.onTap;KZ.prototype.onFocus=KZ.prototype.onFocus;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],KZ.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],KZ.prototype,"componentBehavior",void 0);
_.c([_.D(_.fU),_.h("design:type",Object)],KZ.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],KZ.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],KZ.prototype,"useIcons",void 0);_.c([_.v({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.h("design:type",String)],KZ.prototype,"icon",void 0);
_.c([_.v({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(q,w){return _.HQ(q.entities,"toggleMenuServiceItemEntity",w)}}),
_.h("design:type",Object)],KZ.prototype,"toggleMenuServiceItemEntity",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],KZ.prototype,"systemIcons",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],KZ.prototype,"useListItemStyles",void 0);_.c([_.Gm("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KZ.prototype,"onFocus",null);
_.c([_.Z("data.isToggled"),_.h("design:type",Object),_.h("design:paramtypes",[])],KZ.prototype,"toggleButtonText",null);_.c([_.Gm("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KZ.prototype,"onTap",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KZ.prototype,"onYtServiceRequestCompleted",null);
_.c([_.nL("toggleMenuServiceItemEntity.isToggled","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KZ.prototype,"toggledStateEntityChanged",null);KZ=_.c([_.E({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],KZ);
_.R(KZ,"ytd-toggle-menu-service-item-renderer",function(){if($Eh!==void 0)return $Eh;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return $Eh=q},{mode:1});var vzj;var BE=function(){return _.Y.apply(this,arguments)||this};
_.O(BE,_.Y);BE.prototype.onFocus=function(){var q;(q=_.A(this.hostElement).querySelector("tp-yt-paper-item"))==null||q.focus()};
_.x$.Object.defineProperties(BE.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.UY(this.data.iconUrl)}}});
BE.prototype.onFocus=BE.prototype.onFocus;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],BE.prototype,"rendererBehavior",void 0);_.c([_.D(_.yL.YtEndpointBehavior),_.h("design:type",Object)],BE.prototype,"ytEndpointBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],BE.prototype,"data",void 0);_.c([_.Gm("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BE.prototype,"onFocus",null);
_.c([_.Z("data.iconUrl"),_.h("design:type",Object),_.h("design:paramtypes",[])],BE.prototype,"imageSource",null);BE=_.c([_.E({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],BE);
_.R(BE,"ytd-menu-custom-icon-item-renderer",function(){if(vzj!==void 0)return vzj;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return vzj=q},{mode:_.kB("kevlar_poly_si_batch_j028")?1:2});_.q9(_.U$,"yt-list-item-view-model",{props:{data:_.pK,isMenuItem:_.pK,isCompact:_.pK,onTap:_.xB,trailingAccessory:_.xB,hideSelectionTextChevron:_.pK,disabled:_.pK,inPopup:_.pK,disableHorizontalPadding:_.pK,isOverlay:_.pK}});var xh=function(){var q=_.Y.apply(this,arguments)||this;q.disableBackdropFilter=_.T("web_disable_backdrop_filter");return q};
_.O(xh,_.Y);_.k=xh.prototype;
_.k.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"}}}};
_.k.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.k.computeAriaLabel=function(q){return q};
_.k.onPopupOpened=function(){this.items.selected=0;for(var q=_.P(_.A(this.items).children),w=q.next();!w.done;w=q.next())w.value.popupPositionTarget=this.positionTarget;if(q=this.popupTip||void 0)q.setTip(this.source||""),this.source=void 0;this.veData&&(q=_.pN())&&_.SB(q,[this.veData])};
_.k.onPopupClosed=function(){var q=this.popupTip||void 0;q&&q.clearTip()};
_.k.onIronActivate=function(q){this.shouldPersist(q)||_.Pw(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(q=_.pN())&&_.jB(q,this.veData)};
_.k.shouldPersist=function(q){var w,u;if(((w=q.detail)==null?void 0:w.selected)===void 0||(u=this.data)==null||!u.items)return!1;var y,e;return!((e=(y=this.data.items[q.detail.selected])==null?void 0:y.toggleMenuServiceItemRenderer)==null||!e.persistentOnMenuPopup)};
_.k.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(q){return q.menuNavigationItemRenderer?!!q.menuNavigationItemRenderer.icon:q.menuServiceItemRenderer?!!q.menuServiceItemRenderer.icon:q.menuConditionalServiceItemRenderer?!!q.menuConditionalServiceItemRenderer.icon:q.menuConditionalNavigationItemRenderer?!!q.menuConditionalNavigationItemRenderer.icon:q.toggleMenuServiceItemRenderer?!!q.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
xh.prototype.onPopupClosed=xh.prototype.onPopupClosed;xh.prototype.onPopupOpened=xh.prototype.onPopupOpened;_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],xh.prototype,"ytEventForwardingBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],xh.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],xh.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],xh.prototype,"veData",void 0);_.c([_.v({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.h("design:type",String)],xh.prototype,"ariaLabel",void 0);_.c([_.v({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],xh.prototype,"useIcons",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],xh.prototype,"disableBackdropFilter",void 0);_.c([_.Wj("#items"),_.h("design:type",Object)],xh.prototype,"items",void 0);_.c([_.Wj("ytd-menu-popup-tip-renderer"),_.h("design:type",Object)],xh.prototype,"popupTip",void 0);_.c([_.Gm("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xh.prototype,"onPopupOpened",null);
_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xh.prototype,"onPopupClosed",null);xh=_.c([_.E({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],xh);
_.R(xh,"ytd-menu-popup-renderer",function(){if(ZQh!==void 0)return ZQh;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return ZQh=q},{mode:1});var bQ6;var YiH=_.LL(function(q){q=_.lf(q,{icon:void 0});var w=q.data;q=q.icon;var u=function(){return w().iconBadgeText},y={},e=_.HR("yt-spec-icon-badge-shape",function(){a:switch(w().iconBadgeType){case "notification":var t="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":t="yt-spec-icon-badge-shape--type-cart";break a;default:t=""}return t},function(){a:switch(w().iconBadgeStyle){case "overlay":var t="yt-spec-icon-badge-shape--style-overlay";
break a;default:t=""}return t},(y["yt-spec-icon-badge-shape--text-size-small"]=function(){var t=u();
return!!((t==null?0:t.length)&&t.length>2)},y));
return _.W("yt-icon-badge-shape",null,_.W(_.r,{cond:q,then:function(t){return _.W("div",{class:e},_.W("div",{class:"yt-spec-icon-badge-shape__icon"},_.W(_.U3,{icon:t})),_.W(_.r,{cond:u,then:function(X){return _.W("div",{class:"yt-spec-icon-badge-shape__badge"},X)}}))}}))},"ig");
YiH.idomCompat=!0;_.q9(YiH,"yt-icon-badge-shape",{props:{data:_.pK,icon:_.pK}});var qx=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};q.unseenCount=0;q.isOverlay=!1;return q};
_.O(qx,_.Y);_.k=qx.prototype;_.k.attached=function(){var q=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(w){q.onServiceWorkerMessage(w)})};
_.k.onDataChanged=function(){this.isAttached&&!this.JSC$18140_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18140_lastData=this.data};
_.k.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.k.computeIcon=function(){var q,w;return(q=this.data)==null?void 0:(w=q.icon)==null?void 0:w.iconType};
_.k.onServiceWorkerMessage=function(q){q.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.k.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.C(this.data.updateUnseenCountEndpoint,_.NU)&&_.C(this.data.updateUnseenCountEndpoint,_.NU).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.k.handleUpdateNotificationsUnseenCountAction=function(q){var w=this;q=_.C(q,oeh);q!=null&&q.unseenCount&&q.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(q.unseenCount),_.pi.addLowPriorityJob(function(){w.data.updateUnseenCountEndpoint&&w.ytComponentBehavior.resolveCommand(w.data.updateUnseenCountEndpoint)},q.timeoutMs))};
_.k.onClick=function(){_.t7(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var q=_.X4(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),w=this.data.menuRequest;q&&q.length===1&&q[0]?_.Pw(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):w&&this.ytComponentBehavior.resolveCommand(w)};
_.k.handleTopbarMenuClosedAction=function(q){q==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.k.toggleIconState=function(q){this.iconButton&&(this.iconButton.pressed=q)};
_.k.sendUnseenCountRequest=function(q){var w=this;_.mg(_.pi,function(){w.ytComponentBehavior.resolveCommand(q)})};
_.k.updateCountUI=function(q){this.set("unseenCount",q<9?q:"9+")};
_.x$.Object.defineProperties(qx.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
qx.prototype.handleUpdateNotificationsUnseenCountAction=qx.prototype.handleUpdateNotificationsUnseenCountAction;qx.prototype.onDataChanged=qx.prototype.onDataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],qx.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.YE),_.h("design:type",Object)],qx.prototype,"ytdOpenPopupBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],qx.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],qx.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],qx.prototype,"unseenCount",void 0);_.c([_.v(),_.h("design:type",Object)],qx.prototype,"isOverlay",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],qx.prototype,"showTooltips",void 0);_.c([_.Wj("yt-icon-button"),_.h("design:type",Object)],qx.prototype,"iconButton",void 0);
_.c([_.Z("unseenCount"),_.h("design:type",Object),_.h("design:paramtypes",[])],qx.prototype,"showNotificationCount",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qx.prototype,"onDataChanged",null);_.c([_.Gm("yt-update-notifications-unseen-count-action"),_.h("design:type",Function),_.h("design:paramtypes",[Object]),_.h("design:returntype")],qx.prototype,"handleUpdateNotificationsUnseenCountAction",null);
qx=_.c([_.E({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],qx);
_.R(qx,"ytd-notification-topbar-button-renderer",function(){if(bQ6!==void 0)return bQ6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return bQ6=q},{mode:_.kB("kevlar_poly_si_batch_j025")?1:2});var gzB;var wJ=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return q};
_.O(wJ,_.Y);wJ.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}}}}}};
wJ.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
wJ.prototype.onDarkModeToggled=function(q){this.dark=q};
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],wJ.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],wJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],wJ.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],wJ.prototype,"data",void 0);_.c([_.v({value:!0,reflectToAttribute:!0}),_.h("design:type",Boolean)],wJ.prototype,"dark",void 0);
wJ=_.c([_.E({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],wJ);
_.R(wJ,"yt-pdg-buy-flow-header-renderer",function(){if(gzB!==void 0)return gzB;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return gzB=q},{mode:1});var Ezx;var RZm;var uW=function(){var q=_.Y.apply(this,arguments)||this;q.immediateValue=0;q.isDarkTheme=!1;q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.O(uW,_.Y);_.k=uW.prototype;_.k.created=function(){_.v8.requestAvailability()};
_.k.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.k.dataChanged=function(){var q=_.A(this.hostElement).querySelector("#color-slider");q.immediateValue&&this.updateSliderKnobAndGradientStyles(q.immediateValue);this.data.notches[0].knobColorArgb&&_.Pj(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Je(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Et("HTML_DIR")==="rtl"&&_.A(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.k.onSliderImmediateChange=function(){var q=_.A(this.hostElement).querySelector("#color-slider");q.dragging&&(q.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(q.immediateValue),this.updateSliderKnobAndGradientStyles(q.immediateValue)),this.updateSliderAria())};
_.k.onSliderChange=function(){var q=_.A(this.hostElement).querySelector("#color-slider");q.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(q.immediateValue),this.updateSliderKnobAndGradientStyles(q.immediateValue));this.updateSliderAria()};
_.k.updateSliderAria=function(){var q=_.A(this.hostElement).querySelector("#color-slider"),w=_.A(this.hostElement).querySelector("#color-slider");w=_.lA(this.data.notches[w.immediateValue].tierValue);_.zy()&&_.t7(this.hostElement,"iron-announce",{text:w});q.setAttribute("aria-valuetext",w)};
_.k.updateSuperThanksSelectedTierEntity=function(q){if(q!==this.immediateValue){var w,u,y=this==null?void 0:(w=this.data)==null?void 0:(u=w.superThanksSelectedTierEntity)==null?void 0:u.key;y&&y.length>0&&this.ytdReduxBehavior.dispatch(_.IH("superThanksSelectedTierEntity",y,{key:y,index:q}))}};
_.k.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.k.updateSliderKnobAndGradientStyles=function(q){this.immediateValue=q;q=this.data.notches[q];if(q==null?0:q.knobColorArgb)var w={"--ytd-pdg-color-slider-knob-color":_.Je(q.knobColorArgb)};(q==null?0:q.linearGradientCssStyle)&&w!==null&&(w=Object.assign({},w,{"--ytd-pdg-color-slider-active-color":q==null?void 0:q.linearGradientCssStyle}));w!==null&&_.Pj(this.hostElement,w)};
uW.prototype.onSliderChange=uW.prototype.onSliderChange;uW.prototype.onSliderImmediateChange=uW.prototype.onSliderImmediateChange;uW.prototype.dataChanged=uW.prototype.dataChanged;_.c([_.v(),_.h("design:type",Object)],uW.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],uW.prototype,"immediateValue",void 0);_.c([_.v(),_.h("design:type",Number)],uW.prototype,"maxMarkers",void 0);
_.c([_.v({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:UQ6}),_.h("design:type",Object)],uW.prototype,"superThanksSelectedTierEntity",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],uW.prototype,"isDarkTheme",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],uW.prototype,"ytdReduxBehavior",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uW.prototype,"dataChanged",null);
_.c([_.Gm("immediate-value-change"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uW.prototype,"onSliderImmediateChange",null);_.c([_.Gm("change"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uW.prototype,"onSliderChange",null);uW=_.c([_.E({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],uW);
_.R(uW,"ytd-pdg-color-slider-renderer",function(){if(RZm!==void 0)return RZm;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return RZm=q},{mode:1});var cHH;var Sim;var yZ=null;
_.o9({is:"ytd-comment-input",_template:function(){if(Sim!==void 0)return Sim;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Sim=q},
behaviors:[_.xEs.YtHostElementBehavior,_.IZ,_.fK.YtComponentBehavior,_.S0.YtRendererstamperBehavior,_.btj.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 _.AV}},
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",_.Fj(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;_.XJ();this.focus()},
detached:function(){document.removeEventListener("tap",_.Fj(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(q){q=q.detail;q=q.isCustomEmoji?q.shortcuts[0]:q.emojiId;var w=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(w,q);this.maybeUpdateTextDirection_();_.t7(this.hostElement,"input")},
getInputRange_:function(){var q=_.IS();if(q){q=q.getBrowserRangeObject();for(var w=q.commonAncestorContainer;w;){if(w===this.getEditableTextArea_())return q;w=w.parentNode}}q=this.getEditableTextArea_();q=_.zh(q,q.childNodes.length);q.select();return q.getBrowserRangeObject()},
insertTextWithEmojis_:function(q,w,u){(w=this.emojiManager.createDocumentFragment(w,!0,!1,u===void 0?!0:u))&&w.childNodes.length!==0&&(q.collapsed||q.deleteContents(),u=w.lastChild,q.insertNode(w),_.TkX(u).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var q=_.IS();if(q){var w=q.JSC$9150_getStartNode(),u=q.JSC$9150_getEndNode();if(NkT(w)&&NkT(u)){var y=q.JSC$9150_getStartOffset(),e;if(_.F1&&w.nodeType===Node.ELEMENT_NODE&&(e=_.Z7r(w)))_.zh(e,0).select();else{e=Mp(w)?w:_.ar(w,Mp);var t=Mp(u)?u:_.ar(u,Mp);if(e||t)if(q.isCollapsed()){if(w.nodeType===Node.TEXT_NODE){q=!0;y===w.length&&(q=!1);if(yZ==="end"||yZ==="right")q=!1;w=w.parentNode;q=[].concat(_.Cm(w.parentNode.childNodes)).indexOf(w)+(q?0:1);_.zh(w.parentNode,q).select()}}else e?
e.previousSibling&&e.previousSibling.length>0?_.a8(u,q.JSC$9150_getEndOffset(),e.previousSibling,e.previousSibling.length-1).select():(w=document.createTextNode("\u200b"),e.parentNode.insertBefore(w,e),_.a8(u,q.JSC$9150_getEndOffset(),w,0).select()):t&&(t.nextSibling&&t.nextSibling.length>0?_.a8(w,q.JSC$9150_getStartOffset(),t.nextSibling,1).select():(u=document.createTextNode("\u200b"),t.parentNode.insertBefore(u,t.nextSibling),_.a8(w,q.JSC$9150_getStartOffset(),u,u.length).select()));yZ=null}}else yZ=
null}else yZ=null},
leftKeyPressed_:function(){yZ="left"},
rightKeyPressed_:function(){yZ="right"},
endKeyPressed_:function(){yZ="end"},
maybeDeleteChip_:function(){var q=TkA(!0);if(q){var w=_.IS(),u=w.JSC$9150_getStartNode();w=w.JSC$9150_getStartOffset();_.V5(u,w,q,q.childNodes.length).select()}},
maybeBackspaceChip_:function(){var q=TkA(!1);if(q){var w=_.IS(),u=w.JSC$9150_getStartNode();w=w.JSC$9150_getStartOffset();_.V5(u,w,q,0).select()}},
maybeBackspaceChipWordMode_:function(q){var w=_.IS();if(w.isCollapsed()){var u=w.JSC$9150_getStartNode();w=w.JSC$9150_getStartOffset();var y=CyV(u,w,!0);y&&(_.V5(u,w,y,0).select(),document.execCommand("delete"),q.preventDefault(),q.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(q){var w=_.IS();if(w.isCollapsed()){var u=w.JSC$9150_getStartNode();w=w.JSC$9150_getStartOffset();var y=CyV(u,w,!1);y&&(_.V5(u,w,y,y.childNodes.length).select(),document.execCommand("delete"),q.preventDefault(),q.stopImmediatePropagation())}},
onContentClick:function(q){q.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(q){q.defaultPrevented||q.currentTarget.tagName==="YTD-COMMENT-INPUT"&&Mp(q.target)&&q.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.A(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.A(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(q,w){q=I_A(q,this.emojiManager,w).cloneNode(!0);for(w=q.firstChild;w;)if(w.nodeType!==1)w=w.nextSibling;else switch(w.tagName){case "BR":var u=_.dP();_.Rf6(u,w);w=u.nextSibling;break;case "DIV":(u=w.lastChild)&&w.nextSibling&&_.fO(_.dP(),u);w.previousSibling&&(w.previousSibling.nodeType===1||w.previousSibling.nodeType===3&&!w.previousSibling.textContent.endsWith("\n"))&&_.Vs(_.dP(),w);u&&u.nodeName==="BR"&&_.UN(u);u=w;w.hasChildNodes()?(w=w.firstChild,
_.czP(u)):(w=w.nextSibling,_.UN(u));break;default:w=w.nextSibling}return dUc(q)},
setTextAreaValue:function(q){q||(q="");var w=this.getEditableFormattedString_();w.text="";this.getEditableTextArea_().innerText="";typeof q==="string"&&(q={runs:[{text:q}]});w.text=q},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();yZ=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var q=this.getEditableTextArea_();q&&(_.zh(q,q.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Et("HTML_DIR")==="rtl"){var q=this.getEditableTextArea_(),w=this.getTextAreaValue()!==""?"auto":"rtl";q.setAttribute("dir",w)}},
handleInputEvent_:function(){var q=null;if(this.isEmojiButtonDisplayed){var w=this.getInputRange_();w&&(q=this.emojiInput.retrieveTextBeforeRange(w))}this.insertText_(q,!0);this.updateCharCount_();q=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=q.scrollHeight>q.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var q=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:q})},
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(q){this.isEmojiButtonDisplayed&&(q.preventDefault(),q.stopImmediatePropagation(),q=q.clipboardData.getData("text/plain"),this.insertText_(q,!1,!1),_.t7(this.hostElement,"input"))},
insertText_:function(q,w,u){w=w===void 0?!1:w;u=u===void 0?!0:u;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&q){var y=this.getInputRange_().cloneRange();this.emojiManager&&y&&(w&&this.emojiInput.offsetStartOfRangeBy(y,q.length),this.insertTextWithEmojis_(y,q,u),QDT(this.getEditableTextArea_().lastChild)||(y=this.getInputRange_().cloneRange()),y&&(this.emojiInput.updateSuggestions(y,q),this.updateSuggestionOffset_(y)))}},
getSimpleString:_.lA,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(q){return q?"focused":"not-focused"},
computePlaceholderText_:function(q){return this.getSimpleString(q)},
computeEditableText_:function(q){return this.getSimpleString(q)},
onPrefilledContentDismissed_:function(q){q.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(q,w){q?this.fire("yt-autonav-pause-focus"):w!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(q){var w=this.getEditableTextArea_();[].concat(_.Cm(q.dataTransfer.items)).forEach(function(u){u.kind==="string"&&u.type.match("^text/plain")&&u.getAsString(function(y){w.appendChild(document.createTextNode(y))})});
q.preventDefault()},
preventDefault_:function(q){q.preventDefault()},
onSuggestionInsert_:function(q){this.insertTextWithEmojis_(q.detail.range,q.detail.text)},
onEmojiSuggestionClick_:function(q){this.emojiInput.insertSuggestion(q.detail)},
updateSuggestionOffset_:function(q){if(this.emojiInput&&_.A(this.emojiInput).querySelector("#dropdown")){var w=this.getEditableTextArea_().getBoundingClientRect().bottom,u=q.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(w-u)+5;w=this.getEditableTextArea_().getBoundingClientRect().left;q=q.getBoundingClientRect().left-w;_.A(this.emojiInput).querySelector("#dropdown").style.marginLeft=q+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.gr("yt-post"));return this.localStorage}});var ek=function(){var q=_.Y.apply(this,arguments)||this;q.currentCommentOptionIndex=0;q.isEmojiPickerDisplayed=!1;q.emojiManager=_.AV;q.isUgcEmpty=!1;q.userGeneratedCommentChangedHandler=function(){_.t7(q.hostElement,"ytd-pdg-user-generated-comment-changed");q.isEmojiYtdCommentInputEnabled&&(q.isUgcEmpty=!q.ytdCommentInputEl.getTextAreaValue())};
q.pasteHandler=function(w){w.preventDefault();w.stopImmediatePropagation();var u;if(w=(u=w.clipboardData)==null?void 0:u.getData("text/plain"))u=document.getSelection().getRangeAt(0),u.collapsed||u.deleteContents(),w=document.createTextNode(w),u.insertNode(w),u.selectNodeContents(w),u.collapse(!1),w=window.getSelection(),w.removeAllRanges(),w.addRange(u)};
q.onDocumentClick=function(w){if(q.isEmojiPickerDisplayed){var u,y,e;!(w.target instanceof Node)||(u=w.composedPath())!=null&&u.includes(q.editableTextEl)||(y=w.composedPath())!=null&&y.includes(q.emojiButtonEl)||(e=w.composedPath())!=null&&e.includes(q.emojiPickerEl)||(q.isEmojiPickerDisplayed=!1)}};
return q};
_.O(ek,_.Y);_.k=ek.prototype;_.k.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.k.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.k.detached=function(){var q;(q=this.contentEl)==null||q.removeEventListener("input",this.userGeneratedCommentChangedHandler);var w;(w=this.contentEl)==null||w.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.k.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.k.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var q;this.contentEl.textContent=this.rendererBehavior.getSimpleString((q=this.data)==null?void 0:q.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.k.reloadEmojis=function(){this.emojiPickerEl&&_.C(this.emojiPicker,_.FoP)&&this.emojiPickerEl.updateEmojiCategories()};
_.k.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Pj(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.k.handleBackgroundColorStyling=function(){var q;if((q=this.currentCommentOption)==null?0:q.commentBackgroundColorArgb){var w;_.Pj(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Je((w=this.currentCommentOption)==null?void 0:w.commentBackgroundColorArgb)})}else _.Pj(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.k.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var q;(q=this.contentEl)==null||q.focus()}};
_.k.onEditButtonClick=function(q){var w=document.getSelection();w&&this.contentEl&&(q.stopPropagation(),q.preventDefault(),w.selectAllChildren(this.contentEl),w.collapseToEnd())};
_.k.onContentDrop=function(q){var w=this;if(q.dataTransfer){q=_.P(q.dataTransfer.items);for(var u=q.next();!u.done;u=q.next())u=u.value,u.kind==="string"&&u.type.match("^text/plain")&&u.getAsString(function(y){var e;(e=w.contentEl)==null||e.appendChild(document.createTextNode(y))})}};
_.k.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.k.getUserGeneratedCommentText=function(){var q,w=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(q=this.contentEl)==null?void 0:q.textContent;return w?w.trim():""};
_.k.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.k.onEmojiSelect=function(q){this.ytdCommentInputEl.onEmojiSelect(q)};
_.x$.Object.defineProperties(ek.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.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 q;return!((q=this.currentCommentOption)==null||!q.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var q;if(_.C((q=this.currentCommentOption)==null?void 0:q.chipRenderer,_.TM6)){var w;return _.C((w=this.currentCommentOption)==null?void 0:w.chipRenderer,_.TM6)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var q,w;return((q=this.data)==null?0:q.commentOptionRenderers)?_.C((w=this.data)==null?void 0:w.commentOptionRenderers[this.superThanksSelectedTierEntity.index],BQA):void 0}var u,y;return((u=this.data)==null?0:u.commentOptionRenderers)?_.C((y=this.data)==null?void 0:y.commentOptionRenderers[this.currentCommentOptionIndex],BQA):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var q;return this.rendererBehavior.getSimpleString((q=this.data)==null?void 0:q.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var q;return this.rendererBehavior.getSimpleString((q=this.data)==null?void 0:q.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var q,w;return(w=_.C((q=this.data)==null?void 0:q.commentDialog,_.wSr))==null?void 0:w.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var q,w;return(w=_.C((q=this.data)==null?void 0:q.commentDialog,_.wSr))==null?void 0:w.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var q,w;return(w=_.C((q=this.data)==null?void 0:q.commentDialog,_.wSr))==null?void 0:w.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var q,w,u=(w=_.C((q=this.data)==null?void 0:q.commentDialog,_.wSr))==null?void 0:w.emojiPicker;if(!_.C(u,_.FoP)||!_.C(u,_.FoP).categories)return!1;q=function(t){return t.emojiPickerCategoryRenderer?t.emojiPickerCategoryRenderer.emojiIds&&t.emojiPickerCategoryRenderer.emojiIds.length>0:t.emojiPickerUpsellCategoryRenderer?t.emojiPickerUpsellCategoryRenderer.emojis&&t.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var y,e;return((y=_.C(u,_.FoP))==null?0:(e=y.categories)==null?0:e.find(q))?!0:!1}}});
ek.prototype.onEmojiSelect=ek.prototype.onEmojiSelect;ek.prototype.dataChanged=ek.prototype.dataChanged;ek.prototype.currentCommentOptionChanged=ek.prototype.currentCommentOptionChanged;_.c([_.D(_.fU),_.h("design:type",Object)],ek.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ek.prototype,"rendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],ek.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.Wj("#content-dom-if"),_.h("design:type",_.fL)],ek.prototype,"contentDomIfEl",void 0);_.c([_.Wj("#content-no-emojis"),_.h("design:type",HTMLElement)],ek.prototype,"contentEl",void 0);_.c([_.Wj("#container"),_.h("design:type",HTMLElement)],ek.prototype,"containerEl",void 0);_.c([_.Wj("#comment-chip-container"),_.h("design:type",HTMLElement)],ek.prototype,"paidCommentChipContainerEl",void 0);_.c([_.Wj("#text-input"),_.h("design:type",HTMLElement)],ek.prototype,"editableTextEl",void 0);
_.c([_.Wj("#emoji-button"),_.h("design:type",HTMLElement)],ek.prototype,"emojiButtonEl",void 0);_.c([_.Wj("#emoji-picker > yt-emoji-picker-renderer"),_.h("design:type",Object)],ek.prototype,"emojiPickerEl",void 0);_.c([_.Wj("#text-input > ytd-comment-input"),_.h("design:type",Object)],ek.prototype,"ytdCommentInputEl",void 0);_.c([_.v(),_.h("design:type",Object)],ek.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],ek.prototype,"currentCommentOptionIndex",void 0);
_.c([_.v({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:UQ6}),_.h("design:type",Object)],ek.prototype,"superThanksSelectedTierEntity",void 0);_.c([_.v(),_.h("design:type",Object)],ek.prototype,"isEmojiPickerDisplayed",void 0);_.c([_.v(),_.h("design:type",Object)],ek.prototype,"emojiManager",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ek.prototype,"isUgcEmpty",void 0);
_.c([_.nL("currentCommentOption"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ek.prototype,"currentCommentOptionChanged",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ek.prototype,"dataChanged",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ek.prototype,"isEmojiYtdCommentInputEnabled",null);
_.c([_.Z("data.title"),_.h("design:type",Object),_.h("design:paramtypes",[])],ek.prototype,"title",null);_.c([_.Z("data.authorText"),_.h("design:type",Object),_.h("design:paramtypes",[])],ek.prototype,"channelName",null);_.c([_.Z("data.commentOptionRenderers","currentCommentOption"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ek.prototype,"shouldShowPaidCommentChipRenderer",null);
_.c([_.Z("data.commentOptionRenderers","currentCommentOption"),_.h("design:type",Object),_.h("design:paramtypes",[])],ek.prototype,"paidCommentChipRenderer",null);_.c([_.Z("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],ek.prototype,"currentCommentOption",null);
_.c([_.Z("data.defaultCommentText","superThanksSelectedTierEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],ek.prototype,"commentText",null);_.c([_.Z("data.placeholderText"),_.h("design:type",Object),_.h("design:paramtypes",[])],ek.prototype,"placeholderText",null);_.c([_.Z("data.commentDialog.commentDialogRenderer.editableText"),_.h("design:type",Object),_.h("design:paramtypes",[])],ek.prototype,"editableText",null);
_.c([_.Z("data.commentDialog.commentDialogRenderer.emojiButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],ek.prototype,"emojiButton",null);_.c([_.Z("data.commentDialog.commentDialogRenderer.emojiPicker"),_.h("design:type",Object),_.h("design:paramtypes",[])],ek.prototype,"emojiPicker",null);
_.c([_.Z("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ek.prototype,"isEmojiButtonDisplayed",null);_.c([_.Gm("yt-emoji-select"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],ek.prototype,"onEmojiSelect",null);ek=_.c([_.E({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],ek);
_.R(ek,"ytd-pdg-comment-preview-renderer",function(){if(cHH!==void 0)return cHH;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return cHH=q},{mode:2});var hZc;var kO=function(){var q=_.Y.apply(this,arguments)||this;q.selected=!1;return q};
_.O(kO,_.Y);_.k=kO.prototype;_.k.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.k.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.k.dataChanged=function(){this.data&&(_.y6(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Pj(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Je(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Je(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.k.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.k.onClick=function(){this.logClick()};
_.k.onKeyboardSelect=function(){_.t7(this.hostElement,"tap");this.onClick()};
_.k.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
kO.prototype.onClick=kO.prototype.onClick;kO.prototype.selectedChanged=kO.prototype.selectedChanged;kO.prototype.dataChanged=kO.prototype.dataChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],kO.prototype,"componentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],kO.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.IZ),_.h("design:type",Object)],kO.prototype,"ironA11yKeysBehavior",void 0);
_.c([_.D(_.gN),_.h("design:type",Object)],kO.prototype,"ironSelectableBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],kO.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],kO.prototype,"shownThumbnail",void 0);_.c([_.v(),_.h("design:type",Object)],kO.prototype,"basePriceText",void 0);_.c([_.v(),_.h("design:type",Object)],kO.prototype,"purchaseCommand",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],kO.prototype,"selected",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kO.prototype,"dataChanged",null);_.c([_.nL("selected"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kO.prototype,"selectedChanged",null);_.c([_.Gm("click"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kO.prototype,"onClick",null);
kO=_.c([_.E({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],kO);
_.R(kO,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(hZc!==void 0)return hZc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return hZc=q},{mode:1});var tJ=function(){var q=_.Y.apply(this,arguments)||this;q.selectedItemIndex=0;q.buyButtonDisabled=!1;return q};
_.O(tJ,_.Y);_.k=tJ.prototype;
_.k.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]]"}}}}}};
_.k.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var q;var w=(q=_.C(this.data.colorSlider,Kma))==null?void 0:q.notches[this.selectedItemIndex].purchaseCommand}else{var u;w=(u=_.C(this.data.selectableItemButtons[this.selectedItemIndex],qlm))==null?void 0:u.purchaseCommand}if(w){q=_.C(w,_.BfT);q.productData||(q.productData={});var y;q.productData={pdgData:{commentMessageText:(y=this.commentPreviewRenderer)==null?void 0:y.getUserGeneratedCommentText()}};
_.t7(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(w)}}};
_.k.dataChanged=function(){if(this.data){_.AV.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.i6a(_.AV,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.AV.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var q;this.buyButtonDisabled=!((q=_.C(this.data.commentPreview,xAx))==null||!q.placeholderText);this.updatePriceSelectorStatus();var w;if((w=this.data)==null?0:w.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;q=[];this.data.preloadImages&&(q=this.data.preloadImages);
q=q.map(function(u){return _.wm(u.thumbnails,1920)});
q=_.P(q);for(w=q.next();!w.done;w=q.next())(w=w.value)&&_.Unl(w).thenCatch(function(){_.Y8(Error("kl"))})}};
_.k.superThanksSelectedTierEntityChanged=function(){var q;(this==null?void 0:(q=this.superThanksSelectedTierEntity)==null?void 0:q.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.k.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.k.updatePriceSelectorStatus=function(){this.isColorSlider?(_.A(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.A(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.A(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.A(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.k.closeBuyFlow=function(){_.Pw(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.k.onUserGeneratedContentChanged=function(){var q;this.buyButtonDisabled=!((q=this.commentPreviewRenderer)==null?0:q.getUserGeneratedCommentText())};
_.k.updateSelectedItemIndexFromBinding=function(q){this.selectedItemIndex=q.detail.value};
_.x$.Object.defineProperties(tJ.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var q;return!((q=this.data)==null||!q.disclaimerText)}}});
tJ.prototype.onUserGeneratedContentChanged=tJ.prototype.onUserGeneratedContentChanged;tJ.prototype.closeBuyFlow=tJ.prototype.closeBuyFlow;tJ.prototype.selectedItemIndexChanged=tJ.prototype.selectedItemIndexChanged;tJ.prototype.superThanksSelectedTierEntityChanged=tJ.prototype.superThanksSelectedTierEntityChanged;tJ.prototype.dataChanged=tJ.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],tJ.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],tJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],tJ.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],tJ.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],tJ.prototype,"selectedItemIndex",void 0);_.c([_.v(),_.h("design:type",Boolean)],tJ.prototype,"isColorSlider",void 0);
_.c([_.v(),_.h("design:type",Object)],tJ.prototype,"buyButtonDisabled",void 0);_.c([_.v({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:UQ6}),_.h("design:type",Object)],tJ.prototype,"superThanksSelectedTierEntity",void 0);_.c([_.Wj("ytd-pdg-comment-preview-renderer"),_.h("design:type",Object)],tJ.prototype,"commentPreviewRenderer",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],tJ.prototype,"ytdReduxBehavior",void 0);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tJ.prototype,"dataChanged",null);_.c([_.nL("superThanksSelectedTierEntity"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tJ.prototype,"superThanksSelectedTierEntityChanged",null);_.c([_.nL("selectedItemIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tJ.prototype,"selectedItemIndexChanged",null);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tJ.prototype,"closeBuyFlow",null);_.c([_.Gm("ytd-pdg-user-generated-comment-changed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tJ.prototype,"onUserGeneratedContentChanged",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tJ.prototype,"isDisclaimerTextShown",null);
tJ=_.c([_.E({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],tJ);
_.R(tJ,"yt-super-vod-buy-flow-content-renderer",function(){if(Ezx!==void 0)return Ezx;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Ezx=q},{mode:1});var jpx;var Pn=function(){var q=_.Y.apply(this,arguments)||this;q.lottieAnimationRef={};return q};
_.O(Pn,_.Y);_.k=Pn.prototype;_.k.created=function(){_.v8.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Fj(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.k.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.t7(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.k.detached=function(){this.autoCloseJobId&&_.pi.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Fj(this,this.onPopupIronOverlayOpened))};
_.k.dataChanged=function(){var q=this;this.data&&this.data.autoCloseDelay&&(_.Pw(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.ko(_.pi,function(){q.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Pj(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.k.onDOMLoadedLottie=function(){var q=this,w,u,y=Number((w=this.data)==null?void 0:(u=w.autoCloseDelay)==null?void 0:u.seconds)||0;this.fadeOutJobId=_.ko(_.pi,function(){q.lottiePlayerEl.classList.add("fadeout")},(y-.25)*1E3);
this.autoCloseJobId=_.ko(_.pi,function(){q.closePopup()},y*1E3)};
_.k.openPopup=function(){this.ironOverlayBehavior.open()};
_.k.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.Pw(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.nq(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.tG().resolve(_.PG).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.pi.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.pi.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.k.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var q,w;(q=this.lottieAnimationRef)==null||(w=q.lottieEl)==null||w.destroy();q=this.data.lottie;var u,y;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:q.url+"_"+Math.random(),path:q.url,autoplay:!0,loop:(y=(u=q.settings)==null?void 0:u.loop)!=null?y:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.x$.Object.defineProperties(Pn.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var q,w;return!!((q=this.data)==null?0:(w=q.lottie)==null?0:w.url)}}});
Pn.prototype.maybeInitializeLottie=Pn.prototype.maybeInitializeLottie;Pn.prototype.dataChanged=Pn.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Pn.prototype,"rendererBehavior",void 0);_.c([_.D(_.RZ),_.h("design:type",Object)],Pn.prototype,"ironOverlayBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Pn.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],Pn.prototype,"lottiePlayerProps",void 0);
_.c([_.v(),_.h("design:type",Object)],Pn.prototype,"lottieAnimationRef",void 0);_.c([_.Wj("ytd-lottie-player"),_.h("design:type",HTMLElement)],Pn.prototype,"lottiePlayerEl",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Pn.prototype,"dataChanged",null);_.c([_.Z("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Pn.prototype,"hasLottieAnimation",null);
_.c([_.nL("data.lottie.url"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Pn.prototype,"maybeInitializeLottie",null);Pn=_.c([_.E({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Pn);
_.R(Pn,"ytd-desktop-image-overlay-renderer",function(){if(jpx!==void 0)return jpx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return jpx=q},{mode:1});var lWh;var X0=function(){return _.Y.apply(this,arguments)||this};
_.O(X0,_.Y);_.k=X0.prototype;_.k.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"}}}}};
_.k.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",_.Fj(this,this.closePopup))};
_.k.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Fj(this,this.closePopup))};
_.k.dataChanged=function(){_.X4(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.C(this.data.header,MMc)&&(this.hasBackgroundBanner=!!_.C(this.data.header,MMc).backgroundBanner)};
_.k.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Fj(this,this.closePopup))};
_.k.closePopup=function(){this.data&&this.data.onCloseCommand&&_.GM(this.hostElement,[this.data.onCloseCommand])};
X0.prototype.handleBuyflowSelectionSubmitted=X0.prototype.handleBuyflowSelectionSubmitted;X0.prototype.dataChanged=X0.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],X0.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],X0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],X0.prototype,"data",void 0);
_.c([_.v({value:!0,reflectToAttribute:!0}),_.h("design:type",Boolean)],X0.prototype,"hasBackgroundBanner",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],X0.prototype,"dataChanged",null);_.c([_.Gm("yt-pdg-buy-flow-selection-submitted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],X0.prototype,"handleBuyflowSelectionSubmitted",null);
X0=_.c([_.E({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],X0);
_.R(X0,"ytd-pdg-buy-flow-renderer",function(){if(lWh!==void 0)return lWh;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return lWh=q},{mode:1});var Ll6;var F0=function(){var q=_.Y.apply(this,arguments)||this;q.isOpen=!1;q.isPlaylistCreated=!1;return q};
_.O(F0,_.Y);_.k=F0.prototype;_.k.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.k.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.t7(this.hostElement,"yt-refit")};
_.k.onCreateTap=function(){var q=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.GM(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(w,u){if(!_.T("killswitch_ep_in_create_playlist_response")&&(u==null?0:u.actions))for(w=_.P(u.actions),u=w.next();!u.done;u=w.next())u=u.value,_.C(u,_.AI)&&q.ytComponentBehavior.resolveCommand(u)}}]),this.isPlaylistCreated=!0)};
_.k.onKeydown=function(q){if(q.keyCode===13)this.onCreateTap()};
_.k.onServiceRequestCompleted=function(q){q.stopPropagation();_.Pw(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.k.computePrivacyBadge=function(q){return q?[{metadataBadgeRenderer:q}]:[]};
F0.prototype.onServiceRequestCompleted=F0.prototype.onServiceRequestCompleted;F0.prototype.onKeydown=F0.prototype.onKeydown;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],F0.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],F0.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],F0.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],F0.prototype,"isOpen",void 0);
_.c([_.v(),_.h("design:type",Object)],F0.prototype,"isPlaylistCreated",void 0);_.c([_.v({value:{REQUIRED_LABEL:_.ID("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.ID("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.h("design:type",Object)],F0.prototype,"addToStrings",void 0);_.c([_.v({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.h("design:type",Array)],F0.prototype,"privacyBadge",void 0);
_.c([_.Wj("#privacy-input"),_.h("design:type",Object)],F0.prototype,"privacyInput",void 0);_.c([_.Wj("#name-input"),_.h("design:type",Object)],F0.prototype,"nameInput",void 0);_.c([_.Gm("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],F0.prototype,"onKeydown",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],F0.prototype,"onServiceRequestCompleted",null);
F0=_.c([_.E({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],F0);
_.R(F0,"ytd-add-to-playlist-create-renderer",function(){if(Ll6!==void 0)return Ll6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Ll6=q},{mode:1});var MU6;var Klx;var Gz=function(){var q=_.Y.apply(this,arguments)||this;q.transferState="TRANSFER_STATE_UNKNOWN";return q};
_.O(Gz,_.Y);Gz.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
Gz.prototype.onCheckboxChange=function(q){var w=this;this.data&&_.bf(this,"yt-playlist-checkbox-changed",function(){var u=_.he(q).checked?w.data.addToPlaylistServiceEndpoint:w.data.removeFromPlaylistServiceEndpoint;u&&_.tG().resolve(_.PG).resolveCommand(u,{form:{element:w.hostElement}});_.T("dl_playlist_killswitch")||w.transferState!=="TRANSFER_STATE_UNKNOWN"&&w.transferState!=="TRANSFER_STATE_FAILED"&&w.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:w.data.playlistId,action:"ACTION_SYNC"}})},
100)};
Gz.prototype.computeIconType=function(q){return q?"yt-icons:"+q.toLowerCase():null};
Gz.prototype.dataChanged=Gz.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Gz.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Gz.prototype,"data",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],Gz.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Gz.prototype,"ytComponentBehavior",void 0);_.c([_.Wj("#checkbox"),_.h("design:type",HTMLInputElement)],Gz.prototype,"checkbox",void 0);
_.c([_.v({selector:_.$N,selectorArgs:["data.playlistId"]}),_.h("design:type",String)],Gz.prototype,"transferState",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gz.prototype,"dataChanged",null);Gz=_.c([_.E({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],Gz);
_.R(Gz,"ytd-playlist-add-to-option-renderer",function(){if(Klx!==void 0)return Klx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Klx=q},{mode:1});_.t2(Oqj);_.XK(Oqj,"ytd-menu-title-renderer",{propNames:["data"]});var nw=function(){var q=_.Y.apply(this,arguments)||this;q.addToStrings={ADD_TO_DROPDOWN_LABEL:_.ID("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};q.closeButtonAriaLabel=_.ID("SBOX_INAPPROPRIATE_CANCEL");q.dialog=_.T("desktop_add_to_playlist_renderer_dialog_popup");return q};
_.O(nw,_.Y);_.k=nw.prototype;_.k.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"}}}};
_.k.onPopupOpened=function(){_.ef(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.k.onPopupClosed=function(){_.ef(this.playlists,"scrollable",!1)};
_.k.computeAriaLabel=function(){var q;if(this==null?0:(q=this.data)==null?0:q.actions){q=_.P(this.data.actions);for(var w=q.next();!w.done;w=q.next())if(w=w.value,w.menuTitleRenderer)return _.lA(w.menuTitleRenderer.title)}};
_.k.onTapClose=function(){_.Pw(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.x$.Object.defineProperties(nw.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var q;if(this==null?0:(q=this.data)==null?0:q.actions){q=_.P(this.data.actions);for(var w=q.next();!w.done;w=q.next())if(w=w.value,w.menuTitleRenderer)return w.menuTitleRenderer}return!1}}});
nw.prototype.onPopupClosed=nw.prototype.onPopupClosed;nw.prototype.onPopupOpened=nw.prototype.onPopupOpened;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],nw.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],nw.prototype,"ytEventForwardingBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],nw.prototype,"ytRendererStamperBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],nw.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],nw.prototype,"addToStrings",void 0);_.c([_.v({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.h("design:type",String)],nw.prototype,"ariaLabel",void 0);_.c([_.v(),_.h("design:type",String)],nw.prototype,"closeButtonAriaLabel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],nw.prototype,"dialog",void 0);
_.c([_.Wj("#playlists"),_.h("design:type",HTMLElement)],nw.prototype,"playlists",void 0);_.c([_.Wj("ytd-add-to-playlist-create-renderer"),_.h("design:type",Object)],nw.prototype,"createRenderer",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],nw.prototype,"menuTitleRenderer",null);_.c([_.Gm("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nw.prototype,"onPopupOpened",null);
_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nw.prototype,"onPopupClosed",null);nw=_.c([_.E({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],nw);
_.R(nw,"ytd-add-to-playlist-renderer",function(){if(MU6!==void 0)return MU6;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return MU6=q},{mode:1});var BuH;var Hn=function(){var q=_.Y.apply(this,arguments)||this;q.isPlaylistEditComplete=!1;q.isCollabEngagementDisabled=!1;q.closeButtonAriaLabel=_.ID("SBOX_INAPPROPRIATE_CANCEL");q.saveButton={title:_.ID("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"};q.onValueChanged=function(){q.updateSaveButtonState();q.computeCollabEngagementDisabled()};
return q};
_.O(Hn,_.Y);_.k=Hn.prototype;_.k.attached=function(){this.JSC$18196_scroller&&(this.JSC$18196_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18196_scroller.attached&&typeof this.JSC$18196_scroller.attached==="function"&&this.JSC$18196_scroller.attached())};
_.k.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.k.onPopupClosed=function(){this.reset()};
_.k.close=function(){_.Pw(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.k.onClickSave=function(){var q=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var w=[];this.nameInput.value!==null&&w.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&w.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var u=Number(this.privacyInput.value);isNaN(u)||w.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:u})}this.votingInput.value!==null&&(u=this.votingInput.value)&&w.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:u});if(w.length>0){var y;_.C((y=this.data)==null?void 0:y.updateSettingsEndpoint,_.AO).actions=w;var e;if((e=this.data)==null?0:e.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){q.close()}}}),this.isPlaylistEditComplete=!0}}};
_.k.computePrivacyBadge=function(q){return q?[{metadataBadgeRenderer:q}]:[]};
_.k.computeEditorData=function(q){var w,u;return q==null?void 0:(w=q.sections)==null?void 0:(u=w[0])==null?void 0:u.playlistSettingsEditorCasualSectionRenderer};
_.k.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.k.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}}}}}};
_.k.computeAriaLabel=function(){var q,w,u,y=(q=this.data)==null?void 0:(w=q.sections)==null?void 0:(u=w[0])==null?void 0:u.playlistSettingsEditorCasualSectionRenderer;return _.lA(y==null?void 0:y.title)};
_.k.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"}))};
_.k.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.k.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.k.isNameChanged=function(){var q,w,u;return(((q=this.editorData)==null?void 0:(w=q.name)==null?void 0:(u=w.textInputFormFieldRenderer)==null?void 0:u.value)||"")!==(this.nameInput.value||"")};
_.k.isDescriptionChanged=function(){var q,w,u;return(((q=this.editorData)==null?void 0:(w=q.description)==null?void 0:(u=w.textInputFormFieldRenderer)==null?void 0:u.value)||"")!==(this.descriptionInput.value||"")};
_.k.isPrivacyChanged=function(){var q,w,u,y,e,t,X,G;return((X=(q=this.editorData)==null?void 0:(w=q.privacy)==null?void 0:(u=w.dropdownFormFieldRenderer)==null?void 0:(y=u.dropdown)==null?void 0:(e=y.dropdownRenderer)==null?void 0:(t=e.entries)==null?void 0:t.find(function(n){var N;return n==null?void 0:(N=n.privacyDropdownItemRenderer)==null?void 0:N.isSelected}))==null?void 0:(G=X.privacyDropdownItemRenderer)==null?void 0:G.int32Value)!==this.privacyInput.value};
_.k.isVotingChanged=function(){var q,w,u,y,e,t,X,G;return((X=(q=this.editorData)==null?void 0:(w=q.voting)==null?void 0:(u=w.dropdownFormFieldRenderer)==null?void 0:(y=u.dropdown)==null?void 0:(e=y.dropdownRenderer)==null?void 0:(t=e.entries)==null?void 0:t.find(function(n){var N;return n==null?void 0:(N=n.privacyDropdownItemRenderer)==null?void 0:N.isSelected}))==null?void 0:(G=X.privacyDropdownItemRenderer)==null?void 0:G.int32Value)!==this.votingInput.value};
Hn.prototype.onPopupClosed=Hn.prototype.onPopupClosed;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Hn.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Hn.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],Hn.prototype,"ytEventForwardingBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Hn.prototype,"ytRendererStamperBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],Hn.prototype,"data",void 0);_.c([_.v({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.h("design:type",Array)],Hn.prototype,"privacyBadge",void 0);_.c([_.v({computed:"computeEditorData(data)"}),_.h("design:type",Object)],Hn.prototype,"editorData",void 0);_.c([_.v(),_.h("design:type",Object)],Hn.prototype,"isPlaylistEditComplete",void 0);_.c([_.v(),_.h("design:type",Object)],Hn.prototype,"isCollabEngagementDisabled",void 0);
_.c([_.v({value:{REQUIRED_LABEL:_.ID("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.ID("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.h("design:type",Object)],Hn.prototype,"addToStrings",void 0);_.c([_.v({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.h("design:type",String)],Hn.prototype,"ariaLabel",void 0);_.c([_.v(),_.h("design:type",String)],Hn.prototype,"closeButtonAriaLabel",void 0);
_.c([_.v(),_.h("design:type",Object)],Hn.prototype,"saveButton",void 0);_.c([_.Wj("#name-input"),_.h("design:type",Object)],Hn.prototype,"nameInput",void 0);_.c([_.Wj("#description-input"),_.h("design:type",Object)],Hn.prototype,"descriptionInput",void 0);_.c([_.Wj("#privacy-input"),_.h("design:type",Object)],Hn.prototype,"privacyInput",void 0);_.c([_.Wj("#voting-input"),_.h("design:type",Object)],Hn.prototype,"votingInput",void 0);
_.c([_.Wj("#scroller"),_.h("design:type",Object)],Hn.prototype,"JSC$18196_scroller",void 0);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hn.prototype,"onPopupClosed",null);_.c([_.v(),_.h("design:type",Object)],Hn.prototype,"onValueChanged",void 0);Hn=_.c([_.E({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],Hn);
_.R(Hn,"ytd-playlist-settings-editor-renderer",function(){if(BuH===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);BuH=q}q=BuH;return q},{mode:1});var xEA;_.JE("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var Wn=function(){return _.Y.apply(this,arguments)||this};
_.O(Wn,_.Y);_.k=Wn.prototype;_.k.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}}}}}};
_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.k.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 q=this.get("data.nextButton.buttonRenderer.navigationEndpoint");q&&(this.nextNavigationEndpoint=q,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.k.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 q={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",q)}}};
_.k.onPopupOpened=function(q){q.detail!==this&&q.detail!==this.hostElement||!_.T("enable_premium_voluntary_pause")||_.Pw(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.k.onNextButtonTap=function(){var q=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);q&&this.ytdOpenPopupBehavior.openPopup(q)};
_.k.updateSelectedResponseIndexFromBinding=function(q){this.selectedResponseIndex=q.detail.value};
Wn.prototype.onPopupOpened=Wn.prototype.onPopupOpened;Wn.prototype.onSelectedResponseIndexChange=Wn.prototype.onSelectedResponseIndexChange;Wn.prototype.dataChanged=Wn.prototype.dataChanged;_.c([_.D(_.YE),_.h("design:type",Object)],Wn.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Wn.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Wn.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],Wn.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Number)],Wn.prototype,"selectedResponseIndex",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Wn.prototype,"dataChanged",null);_.c([_.nL("selectedResponseIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Wn.prototype,"onSelectedResponseIndexChange",null);
_.c([_.Gm("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Wn.prototype,"onPopupOpened",null);Wn=_.c([_.E({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],Wn);
_.R(Wn,"ytd-red-cancel-survey-renderer",function(){if(xEA!==void 0)return xEA;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return xEA=q},{mode:1});var qJ6;var sV=function(){var q=_.Y.apply(this,arguments)||this;q.closeButtonAriaLabel=_.ID("SBOX_INAPPROPRIATE_CANCEL");return q};
_.O(sV,_.Y);sV.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
sV.prototype.onClickClose=function(){_.Pw(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],sV.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],sV.prototype,"rendererStamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],sV.prototype,"data",void 0);_.c([_.v(),_.h("design:type",String)],sV.prototype,"closeButtonAriaLabel",void 0);sV=_.c([_.E({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],sV);
_.R(sV,"ytd-search-filter-options-dialog-renderer",function(){if(qJ6!==void 0)return qJ6;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return qJ6=q},{mode:1});var wt4;var f_j=function(){return function(q){q=q.availabilityType;return q===void 0||q==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||q==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var Nx=function(){var q=_.Y.apply(this,arguments)||this;q.qualityOptions=[];q.upsellOptions=[];q.showUpsellSection=!1;q.darkerDarkTheme=_.T("web_darker_dark_theme");q.rememberSettingsChecked=!1;return q};
_.O(Nx,_.Y);_.k=Nx.prototype;_.k.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}}}}};
_.k.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.k.updateQualityOptions=function(){if(this.formats===void 0)_.Pw(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var q=[],w=[];this.showUpsellSection=!1;for(var u=_.P(this.formats),y=u.next();!y.done;y=u.next())(y=y.value)&&(y.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?w.push(y):q.push(y));q.length&&(this.qualityOptions=VBH(q));w.length&&(this.showUpsellSection=!0,this.upsellOptions=VBH(w))}};
_.k.updateRememberString=function(){if(this.downloadQualityPickerEntity)var q=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var w;q=(w=this.data)==null?void 0:w.premiumRememberSettingString}else{var u;q=(u=this.data)==null?void 0:u.rememberSettingString}q=q===void 0?_.ID("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):q;this.rememberSettingsCheckboxRenderer={title:_.yU(q),disabled:!1}};
_.k.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.x$.Object.defineProperties(Nx.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var q;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(q=this.data)==null?void 0:q.qualityFormats}}});
Nx.prototype.updateRememberString=Nx.prototype.updateRememberString;Nx.prototype.updateQualityOptions=Nx.prototype.updateQualityOptions;Nx.prototype.dataChanged=Nx.prototype.dataChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Nx.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Nx.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Nx.prototype,"data",void 0);
_.c([_.D(_.fU),_.h("design:type",Object)],Nx.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Boolean)],Nx.prototype,"selectedUpsellQuality",void 0);_.c([_.v({computed:"computeIcon_(data.premiumIcon)",value:""}),_.h("design:type",String)],Nx.prototype,"premiumIcon",void 0);_.c([_.v({selector:Q2x,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.h("design:type",Object)],Nx.prototype,"downloadQualityPickerEntity",void 0);
_.c([_.v(),_.h("design:type",Array)],Nx.prototype,"qualityOptions",void 0);_.c([_.v(),_.h("design:type",Array)],Nx.prototype,"upsellOptions",void 0);_.c([_.v(),_.h("design:type",Object)],Nx.prototype,"showUpsellSection",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Nx.prototype,"darkerDarkTheme",void 0);_.c([_.v(),_.h("design:type",Object)],Nx.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.c([_.Wj("#remember-settings"),_.h("design:type",HTMLInputElement)],Nx.prototype,"rememberSettingsCheckbox",void 0);_.c([_.v(),_.h("design:type",Object)],Nx.prototype,"rememberSettingsChecked",void 0);_.c([_.v(),_.h("design:type",Function)],Nx.prototype,"onRememberSettingsCheckedChanged",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Nx.prototype,"dataChanged",null);
_.c([_.nL("downloadQualityPickerEntity"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Nx.prototype,"updateQualityOptions",null);_.c([_.nL("selectedUpsellQuality"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Nx.prototype,"updateRememberString",null);Nx=_.c([_.E({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],Nx);
_.R(Nx,"ytd-download-quality-selector-content",function(){if(wt4!==void 0)return wt4;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return wt4=q},{mode:1});var urH;var QZ=function(){var q=_.Y.apply(this,arguments)||this;q.selectedUpsellQuality=!1;q.qualityOptions=[];q.darkerDarkTheme=_.T("web_darker_dark_theme");q.useUpsellDismissAlternate=_.T("use_not_now_dl_upsell_dismiss_cta");q.shouldShowAlternateUpsellDimiss=!1;q.rememberSettings=!1;q.rememberSettingsChecked=!1;q.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};q.rememberSettingsCheckedChanged=function(w){q.rememberSettingsChecked=w};
return q};
_.O(QZ,_.Y);_.k=QZ.prototype;
_.k.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.yU(_.ID("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.yU(_.ID("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.yU(_.ID("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.yU(_.ID("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.k.updateQualityOptions=function(){this.formats===void 0?_.Pw(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=VBH(this.formats)};
_.k.onQualityOptionsSelect=function(q){if(this.qualityOptions&&q){q!==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 w=_.P(this.qualityOptions.entries()),u=w.next();!u.done;u=
w.next()){u=_.P(u.value);var y=u.next().value;u=u.next().value;var e=void 0,t=void 0;if(((e=u)==null?void 0:(t=e.settingsRadioOptionRenderer)==null?void 0:t.id)===q){this.selectedQualityIndex=y;q=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((q=this.formats[y])==null?void 0:q.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.k.onClickSubmit=function(){var q;if((q=this.downloadButtonRenderer)==null||!q.isDisabled){var w,u;q=(u=(w=this.data)==null?void 0:w.onSubmitEndpoint)!=null?u:{};var y,e;if(this.formats&&(((y=_.C(q,_.WC))==null?0:y.videoId)||((e=_.C(q,_.sF))==null?0:e.playlistId))){var t,X,G,n,N,Q;w={formatType:(n=(t=this.formats)==null?void 0:(X=t[(G=this.selectedQualityIndex)!=null?G:0])==null?void 0:X.format)!=null?n:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(N=this.getOfflineEndpoint(q))==null?void 0:(Q=N.actionParams)==null?void 0:Q.settingsAction)};this.getOfflineEndpoint(q).actionParams=w;this.ytComponentBehavior.resolveCommand(q)}_.Pw(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.k.onClickUpsell=function(){var q;if((q=this.upsellButtonRenderer)==null||!q.isDisabled){var w,u;q=(u=(w=this.data)==null?void 0:w.upsellEndpoint)!=null?u:{};this.ytComponentBehavior.resolveCommand(q);_.Pw(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);w="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var y,e,t,X;w=(X=(y=this.formats)==null?void 0:(e=y[(t=this.selectedQualityIndex)!=null?t:0])==null?void 0:e.format)!=null?X:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:w}})}};
_.k.onClickClose=function(){_.Pw(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.k.getOfflineSettingsAction=function(q,w){return q?w===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":w:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.k.getOfflineEndpoint=function(q){return _.C(q,_.WC)?_.C(q,_.WC):_.C(q,_.sF)};
_.x$.Object.defineProperties(QZ.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.yU(_.ID("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var q;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(q=this.data)==null?void 0:q.qualityFormats}}});
QZ.prototype.updateQualityOptions=QZ.prototype.updateQualityOptions;QZ.prototype.dataChanged=QZ.prototype.dataChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],QZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],QZ.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],QZ.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],QZ.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],QZ.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Number)],QZ.prototype,"selectedQualityIndex",void 0);_.c([_.v(),_.h("design:type",Object)],QZ.prototype,"selectedUpsellQuality",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],QZ.prototype,"ytdReduxBehavior",void 0);
_.c([_.v({selector:Q2x,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.h("design:type",Object)],QZ.prototype,"downloadQualityPickerEntity",void 0);_.c([_.v(),_.h("design:type",Array)],QZ.prototype,"qualityOptions",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],QZ.prototype,"darkerDarkTheme",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],QZ.prototype,"useUpsellDismissAlternate",void 0);
_.c([_.v(),_.h("design:type",Object)],QZ.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.c([_.v(),_.h("design:type",Object)],QZ.prototype,"downloadButtonRenderer",void 0);_.c([_.v(),_.h("design:type",Object)],QZ.prototype,"upsellButtonRenderer",void 0);_.c([_.v(),_.h("design:type",Object)],QZ.prototype,"cancelButtonRenderer",void 0);_.c([_.v(),_.h("design:type",Object)],QZ.prototype,"upsellCancelButtonRenderer",void 0);_.c([_.v(),_.h("design:type",Object)],QZ.prototype,"rememberSettings",void 0);
_.c([_.v(),_.h("design:type",Object)],QZ.prototype,"rememberSettingsChecked",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QZ.prototype,"dataChanged",null);_.c([_.nL("downloadQualityPickerEntity"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QZ.prototype,"updateQualityOptions",null);QZ=_.c([_.E({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],QZ);
_.R(QZ,"ytd-download-quality-selector-renderer",function(){if(urH!==void 0)return urH;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return urH=q},{mode:1});var yih;var Ic=function(){var q=_.Y.apply(this,arguments)||this;q.darkerDarkTheme=_.T("web_darker_dark_theme");return q};
_.O(Ic,_.Y);Ic.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ic.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"}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ic.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Ic.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ic.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Ic.prototype,"darkerDarkTheme",void 0);_.c([_.v({computed:"computeIcon_(data.infoIcon)"}),_.h("design:type",Object)],Ic.prototype,"infoIcon",void 0);
_.c([_.v({computed:"computeIcon_(data.warningIcon)"}),_.h("design:type",Object)],Ic.prototype,"warningIcon",void 0);Ic=_.c([_.E({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Ic);
_.R(Ic,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(yih!==void 0)return yih;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return yih=q},{mode:1});var esH;var iW=function(){var q=_.Y.apply(this,arguments)||this;q.darkerDarkTheme=_.T("web_darker_dark_theme");return q};
_.O(iW,_.Y);iW.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
iW.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"}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],iW.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],iW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],iW.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],iW.prototype,"darkerDarkTheme",void 0);iW=_.c([_.E({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],iW);
_.R(iW,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(esH!==void 0)return esH;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return esH=q},{mode:1});var kLK;var rJ=function(){var q=_.Y.apply(this,arguments)||this;q.darkerDarkTheme=_.T("web_darker_dark_theme");return q};
_.O(rJ,_.Y);rJ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
rJ.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"}}}}};
rJ.prototype.onServiceRequestSentOrCompleted=function(q,w){w&&w.actions&&w.actions.length>0&&_.Pw(this.hostElement,"yt-close-popup-action",[this.is])};
rJ.prototype.onServiceRequestSentOrCompleted=rJ.prototype.onServiceRequestSentOrCompleted;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],rJ.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],rJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],rJ.prototype,"darkerDarkTheme",void 0);_.c([_.v(),_.h("design:type",Object)],rJ.prototype,"data",void 0);
_.c([_.Gm("yt-service-request-completed"),_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],rJ.prototype,"onServiceRequestSentOrCompleted",null);rJ=_.c([_.E({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],rJ);
_.R(rJ,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(kLK!==void 0)return kLK;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return kLK=q},{mode:1});var tjq;var UV=function(){var q=_.Y.apply(this,arguments)||this;q.darkerDarkTheme=_.T("web_darker_dark_theme");q.submitButtonDisabled=!0;return q};
_.O(UV,_.Y);_.k=UV.prototype;_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.k.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.k.onDataChanged=function(){var q,w,u;if(((q=this.data)==null?void 0:(w=q.confirmButton)==null?void 0:(u=w.buttonRenderer)==null?void 0:u.isDisabled)!==void 0){var y,e,t;this.submitButtonDisabled=(y=this.data)==null?void 0:(e=y.confirmButton)==null?void 0:(t=e.buttonRenderer)==null?void 0:t.isDisabled}};
_.k.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.k.updateSubmitButtonDisabledFromBinding=function(q){this.submitButtonDisabled=q.detail.value};
_.k.updateSubmitButtonDisabledFromConfirmCheckbox=function(q){this.submitButtonDisabled=!q.detail.value};
UV.prototype.onDataChanged=UV.prototype.onDataChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],UV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],UV.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],UV.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],UV.prototype,"darkerDarkTheme",void 0);
_.c([_.v(),_.h("design:type",Object)],UV.prototype,"submitButtonDisabled",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UV.prototype,"onDataChanged",null);UV=_.c([_.E({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],UV);
_.R(UV,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(tjq!==void 0)return tjq;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return tjq=q},{mode:1});var Pl4;var Tz=function(){return _.Y.apply(this,arguments)||this};
_.O(Tz,_.Y);_.x$.Object.defineProperties(Tz.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var q,w,u;return((q=this.data)==null?void 0:q.title)+" "+((w=this.data)==null?void 0:w.metadataPrimary)+" "+((u=this.data)==null?void 0:u.metadataSecondary)}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Tz.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Tz.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Tz.prototype,"data",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Tz.prototype,"ariaLabel",null);Tz=_.c([_.E({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Tz);
_.R(Tz,"ytd-compact-product-list-item-renderer",function(){if(Pl4!==void 0)return Pl4;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Pl4=q},{mode:1});var Xtq;var Cw=function(){return _.Y.apply(this,arguments)||this};
_.O(Cw,_.Y);Cw.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]]"}}}}}};
_.x$.Object.defineProperties(Cw.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Cw.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Cw.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Cw.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Cw.prototype,"data",void 0);Cw=_.c([_.E({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],Cw);
_.R(Cw,"ytd-compact-product-list-renderer",function(){if(Xtq!==void 0)return Xtq;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Xtq=q},{mode:1});var FUH;var dJ=function(){var q=_.Y.apply(this,arguments)||this;q.darkerDarkTheme=_.T("web_darker_dark_theme");return q};
_.O(dJ,_.Y);_.k=dJ.prototype;_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.k.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.k.getBackgroundUrl=function(){var q=this.get("data.headerImage.thumbnails");return q?"url("+_.wm(q,this.hostElement.clientWidth)+")":""};
_.k.onDataChanged=function(){var q=this.getBackgroundUrl();q&&(this.header.style.backgroundImage=q);q=_.pN();var w=_.ZB(),u=this.get("data.trackingParams");u&&w&&q&&_.EC(q,w,_.Tj(u));q=_.P(this.hostElement.querySelectorAll("yt-img-shadow"));for(w=q.next();!w.done;w=q.next())w.value.onShow()};
_.k.onPopupClosed=function(q){_.he(q).localName==="ytd-membership-post-cancel-renderer"&&_.Pw(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
dJ.prototype.onPopupClosed=dJ.prototype.onPopupClosed;dJ.prototype.onDataChanged=dJ.prototype.onDataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],dJ.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],dJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],dJ.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],dJ.prototype,"darkerDarkTheme",void 0);
_.c([_.Wj("#header"),_.h("design:type",HTMLDivElement)],dJ.prototype,"header",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dJ.prototype,"onDataChanged",null);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],dJ.prototype,"onPopupClosed",null);dJ=_.c([_.E({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],dJ);
_.R(dJ,"ytd-membership-post-cancel-renderer",function(){if(FUH!==void 0)return FUH;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return FUH=q},{mode:1});var GLh;var OV=function(){var q=_.Y.apply(this,arguments)||this;q.darkerDarkTheme=_.T("web_darker_dark_theme");return q};
_.O(OV,_.Y);OV.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
OV.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],OV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],OV.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],OV.prototype,"darkerDarkTheme",void 0);_.c([_.Wj("ytd-feedback-survey-renderer"),_.h("design:type",Object)],OV.prototype,"feedbackSurveyRenderer",void 0);OV=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],OV);
_.R(OV,"ytd-sponsorship-confirm-cancel-content",function(){if(GLh!==void 0)return GLh;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return GLh=q},{mode:1});var nLx;var oc=function(){var q=_.Y.apply(this,arguments)||this;q.darkerDarkTheme=_.T("web_darker_dark_theme");q.maybeSubmitFeedback=function(){q.content&&q.content.maybeSubmitFeedback()};
return q};
_.O(oc,_.Y);_.k=oc.prototype;_.k.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.k.onYtPopupOpened=function(q,w){w===this&&this.data&&this.data.onOpenCommands&&_.nq(this.hostElement,this.data.onOpenCommands,this.hostElement);_.Pw(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.k.onYtPopupClosed=function(q,w){(w&&w.canceled===!0||w&&w.canceled===!1&&w.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.nq(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.k.onYtServiceRequestCompleted=function(){_.Pw(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.k.onYtServiceRequestError=function(q){_.xH(this.hostElement,q.detail.error.message)};
_.k.onDataChanged=function(){if(this.isAttached){var q=this.backgroundUrl;q&&(_.A(this.hostElement).querySelector("#header").style.backgroundImage=q)}};
_.x$.Object.defineProperties(oc.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var q=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return q?"url("+_.wm(q,this.hostElement.clientWidth)+")":""}}});
oc.prototype.onDataChanged=oc.prototype.onDataChanged;oc.prototype.onYtServiceRequestError=oc.prototype.onYtServiceRequestError;oc.prototype.onYtServiceRequestCompleted=oc.prototype.onYtServiceRequestCompleted;oc.prototype.onYtPopupClosed=oc.prototype.onYtPopupClosed;oc.prototype.onYtPopupOpened=oc.prototype.onYtPopupOpened;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],oc.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],oc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],oc.prototype,"data",void 0);_.c([_.v({value:function(){return _.ID("SBOX_INAPPROPRIATE_CANCEL")}}),
_.h("design:type",String)],oc.prototype,"closeButtonAriaLabel",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],oc.prototype,"darkerDarkTheme",void 0);_.c([_.Wj("#scrollable"),_.h("design:type",Object)],oc.prototype,"scrollable",void 0);_.c([_.Wj("ytd-sponsorship-confirm-cancel-content"),_.h("design:type",Object)],oc.prototype,"content",void 0);
_.c([_.Gm("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],oc.prototype,"onYtPopupOpened",null);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],oc.prototype,"onYtPopupClosed",null);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],oc.prototype,"onYtServiceRequestCompleted",null);_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],oc.prototype,"onYtServiceRequestError",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oc.prototype,"onDataChanged",null);
oc=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],oc);
_.R(oc,"ytd-sponsorship-confirm-cancel-renderer",function(){if(nLx!==void 0)return nLx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return nLx=q},{mode:_.kB("kevlar_poly_si_batch_j081")?1:2});var Hzx;var VZ=function(){var q=_.Y.apply(this,arguments)||this;q.darkerDarkTheme=_.T("web_darker_dark_theme");return q};
_.O(VZ,_.Y);VZ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],VZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],VZ.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],VZ.prototype,"darkerDarkTheme",void 0);VZ=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],VZ);
_.R(VZ,"ytd-sponsorships-celebration-content",function(){if(Hzx!==void 0)return Hzx;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Hzx=
q},{mode:1});var WUV;var s1c=_.Sc(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),fw=function(){var q=_.Y.apply(this,arguments)||this;q.scriptsAppended=!1;q.buttonOverrides={type:"tonal",style:"overlay-dark"};return q};
_.O(fw,_.Y);_.k=fw.prototype;
_.k.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.T("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.k.onDataChanged=function(){var q;(q=this.header)==null||q.style.setProperty("background-color",this.backgroundColor);if(q=this.headerImageUrl){var w;(w=this.header)==null||w.style.setProperty("background-image",q)}w=_.pN(4);q=_.ZB(4);var u=this.get("data.trackingParams");if(u&&q&&w){var y=_.Tj(u);_.EC(w,q,y);_.T("combine_ve_grafts")?_.Qz().graftServerVe(u,q,4):_.EC(w,q,y)}w=_.P(this.hostElement.querySelectorAll("yt-img-shadow"));for(q=w.next();!q.done;q=w.next())q.value.onShow();if(w=this.get("data.gtmId"))_.Wd(w,
_.Et("GL","")),this.setupConversionTracking()};
_.k.setupConversionTracking=function(){if(!this.scriptsAppended){var q=document.createElement("script");var w=_.pj(s1c.join(""));_.vs(q,w);document.head.appendChild(q);q=document.createElement("noscript");q.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(q);this.scriptsAppended=!0}};
_.k.onPopupClosed=function(q){if(_.he(q).localName==="ytd-sponsorships-celebration-renderer"){_.Pw(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var w;this.data&&((w=this.data)==null?0:w.dismissCommand)&&_.nx.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.x$.Object.defineProperties(fw.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var q=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Je(q)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var q=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return q?"url("+_.wm(q,this.hostElement.getBoundingClientRect().width)+")":""}}});
fw.prototype.onPopupClosed=fw.prototype.onPopupClosed;fw.prototype.onDataChanged=fw.prototype.onDataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],fw.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],fw.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],fw.prototype,"data",void 0);_.c([_.Wj("#header"),_.h("design:type",HTMLElement)],fw.prototype,"header",void 0);
_.c([_.v(),_.h("design:type",Object)],fw.prototype,"scriptsAppended",void 0);_.c([_.v(),_.h("design:type",Object)],fw.prototype,"buttonOverrides",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fw.prototype,"onDataChanged",null);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],fw.prototype,"onPopupClosed",null);
fw=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],fw);
_.R(fw,"ytd-sponsorships-celebration-renderer",function(){if(WUV!==void 0)return WUV;var q=document.createElement("template");_.f(q,'\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="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return WUV=q},{mode:1});var Nya;var mf=function(){var q=_.Y.apply(this,arguments)||this;q.isToggleChecked=!1;return q};
_.O(mf,_.Y);mf.prototype.onDataChanged=function(){var q;this.isToggleChecked=((q=this.data)==null?void 0:q.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
mf.prototype.close=function(){var q;((q=this.data)==null?0:q.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
mf.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var q,w=_.C((q=this.data)==null?void 0:q.switchButton,w8K);w&&(this.isToggleChecked&&w.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(w.switchOnInnertubeCommand),!this.isToggleChecked&&w.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(w.switchOffInnertubeCommand))};
mf.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
mf.prototype.onDataChanged=mf.prototype.onDataChanged;_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],mf.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],mf.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],mf.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],mf.prototype,"isToggleChecked",void 0);_.c([_.v({value:_.ID("CLOSE")}),_.h("design:type",String)],mf.prototype,"closeButtonAriaLabel",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mf.prototype,"onDataChanged",null);mf=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],mf);
_.R(mf,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(Nya!==void 0)return Nya;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Nya=q},{mode:1});var Q1A;var AJ=function(){return _.Y.apply(this,arguments)||this};
_.O(AJ,_.Y);_.k=AJ.prototype;_.k.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"}}}}};
_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.k.detached=function(){this.playerElement.stop()};
_.k.onYtServiceRequestCompleted=function(){_.Pw(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.k.onYtServiceRequestError=function(q){_.xH(this.hostElement,q.detail.error.message)};
_.k.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.k.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.k.getTier=function(q,w){return!q||!q.tiers||w<0?null:_.C(q.tiers[w],kwA)};
_.k.moreThanOne=function(q){return!!(q&&q.length>1)};
_.k.tierOverviewTap=function(q){var w=this;this.selectedTier=q.model.index;_.KJ(this,function(){_.t7(w.hostElement,"yt-refit")})};
_.k.computeSelectedClass=function(q,w){return this.isSelected(q,w)?"selected":""};
_.k.computeButtonAriaPressed=function(q,w){return this.isSelected(q,w)?"true":"false"};
_.k.isSelected=function(q,w){return q===w};
_.k.onDataChanged=function(){_.A(this.hostElement).querySelector("#header-overlay").style.visibility="";_.A(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 q=_.P(this.hostElement.querySelectorAll("yt-img-shadow")),
w=q.next();!w.done;w=q.next())w.value.onShow();var u;this.set("selectedTier",(u=this.get("data.targetTierIndex"))!=null?u:0);var y;(q=(y=this.data)==null?void 0:y.onVisible)&&this.ytComponentBehavior.resolveCommand(q)};
_.k.initializeVe=function(q){var w=_.pN(),u=_.ZB(),y=this.get("data.trackingParams");u&&w&&(this.screenLayer=4,w=_.SZ(_.Fn4)(void 0,69877,{clientScreenNonce:w,visualElement:u},void 0,void 0,void 0),_.vf(w,69877,4),u=_.ZB(4),y&&u&&(y=_.Tj(y),_.EC(w,u,y),q&&(this.offerVideoVe=_.oV(74659),_.EC(w,y,this.offerVideoVe))))};
_.k.setHeaderBackground=function(){var q=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.A(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Je(q);if(q=this.getHeaderImage())q=_.wm(q,screen.width),_.A(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+q+")"};
_.k.getHeaderImage=function(){var q=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&q?q:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.k.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.k.setupVideoPlayer=function(q){var w=this,u,y,e,t;return _.F(function(X){if(X.nextAddress==1)return u=w.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),y=w.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.T("kevlar_player_update_killswitch")?w.playerElement.update({args:{autoplay:u,video_id:q,player_params:y}}):w.playerElement.loadVideoWithPlayerVars({autoplay:u,video_id:q,player_params:y}),
_.H(X,w.playerElement.getPlayerPromise(),2);e=X.yieldResult;e.addEventListener("onStateChange",function(G){w.onPlayerStateChange(G)});
e.setScreenLayer(w.screenLayer);(t=_.pN(4))&&w.offerVideoVe&&_.cw(t,w.offerVideoVe);u&&(w.pauseOtherPlayers(),w.playerElement.focusOnPlayer(),w.playerElement.getPlayer().hideControls(),_.mg(_.pi,function(){w.fadeOutHeaderOverlay()},4E3));
_.HI(X)})};
_.k.onPlayerStateChange=function(q){q===1?this.backgroundPlayerElement&&(q=this.backgroundPlayerElement.player_.getPlayerState(),q!==1&&q!==3||this.backgroundPlayerElement.pause()):q===0&&(_.A(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.A(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.k.fadeOutHeaderOverlay=function(){_.A(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.k.onHeaderTap=function(){if(this.offerVideo){_.A(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var q;((q=this.playerElement.player_)==null?void 0:q.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(q=_.pN(4))&&this.offerVideoVe&&_.jB(q,this.offerVideoVe)}};
_.k.getBackgroundImageLayerClass=function(q){return q?"background-image-layer-with-video":""};
_.k.getHeaderClass=function(q){return q?"header-with-video":""};
_.k.getHeaderOverlayClass=function(q){return q?"header-overlay-with-video":""};
_.k.getTitleContainerClass=function(q,w){return q?"title-container-with-video":w?"title-container-without-video-flexible":"title-container-without-video"};
_.k.tierTitleDisplayStatus=function(q){return this.moreThanOne(q)?"hide":"show"};
_.k.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.tG().resolve(_.$X).getPlayerElement():this.backgroundPlayerElement=_.xo();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var q=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=q===1||q===3;this.backgroundPlayerElement.pause()}};
_.k.isMiniplayerActive=function(){return _.tG().resolve(_.$X).isMiniplayerActive()};
_.k.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.D1("selected-tier-changed",this.selectedTier))};
AJ.prototype.selectedTierChangedForBinding=AJ.prototype.selectedTierChangedForBinding;AJ.prototype.onDataChanged=AJ.prototype.onDataChanged;AJ.prototype.onYtPopupClosed=AJ.prototype.onYtPopupClosed;AJ.prototype.onYtPopupOpened=AJ.prototype.onYtPopupOpened;AJ.prototype.onYtServiceRequestError=AJ.prototype.onYtServiceRequestError;AJ.prototype.onYtServiceRequestCompleted=AJ.prototype.onYtServiceRequestCompleted;
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],AJ.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],AJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],AJ.prototype,"data",void 0);_.c([_.v({value:0}),_.h("design:type",Number)],AJ.prototype,"selectedTier",void 0);
_.c([_.v({value:""}),_.h("design:type",String)],AJ.prototype,"offerVideo",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],AJ.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.c([_.v({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.kT(this)}}),
_.h("design:type",String)],AJ.prototype,"playerId",void 0);_.c([_.Wj("tp-yt-paper-dialog-scrollable"),_.h("design:type",Object)],AJ.prototype,"scrollable",void 0);_.c([_.Wj("ytd-sponsorships-tier-renderer"),_.h("design:type",Object)],AJ.prototype,"tierRenderer",void 0);_.c([_.Wj("#player"),_.h("design:type",Object)],AJ.prototype,"playerElement",void 0);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],AJ.prototype,"onYtServiceRequestCompleted",null);_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],AJ.prototype,"onYtServiceRequestError",null);
_.c([_.Gm("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AJ.prototype,"onYtPopupOpened",null);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AJ.prototype,"onYtPopupClosed",null);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AJ.prototype,"onDataChanged",null);
_.c([_.nL("selectedTier"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AJ.prototype,"selectedTierChangedForBinding",null);AJ=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],AJ);
_.R(AJ,"ytd-sponsorships-offer-renderer",function(){if(Q1A!==void 0)return Q1A;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Q1A=q},{mode:_.kB("kevlar_poly_si_batch_j077")?1:2});var I8H;var JJ=function(){var q=_.Y.apply(this,arguments)||this;q.buttonOverrides={type:"filled",style:"mono"};return q};
_.O(JJ,_.Y);JJ.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}}}}}};
JJ.prototype.backgroundColorChanged=function(){var q,w,u,y=(w=_.C((q=this.data)==null?void 0:q.content,thB))==null?void 0:(u=w.backgroundColor)==null?void 0:u.backgroundColor;y&&(q=_.Ae(y),_.A(this.hostElement).querySelector("#banner").style.backgroundColor=q,_.A(this.hostElement).querySelector("#abstract-art").style.backgroundColor=q)};
JJ.prototype.attached=function(){this.JSC$18282_scroller&&(this.JSC$18282_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18282_scroller.attached&&typeof this.JSC$18282_scroller.attached==="function"&&this.JSC$18282_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
JJ.prototype.backgroundColorChanged=JJ.prototype.backgroundColorChanged;_.c([_.v(),_.h("design:type",Object)],JJ.prototype,"data",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],JJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.Wj("#scroller"),_.h("design:type",Object)],JJ.prototype,"JSC$18282_scroller",void 0);_.c([_.v(),_.h("design:type",Object)],JJ.prototype,"buttonOverrides",void 0);
_.c([_.nL("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],JJ.prototype,"backgroundColorChanged",null);JJ=_.c([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],JJ);
_.R(JJ,"ytd-sponsorships-promotion-celebration-renderer",function(){if(I8H!==void 0)return I8H;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return I8H=q},{mode:_.kB("kevlar_poly_si_batch_j077")?1:2});var izT;var ri4;var zz=function(){return _.Y.apply(this,arguments)||this};
_.O(zz,_.Y);zz.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
zz.prototype.computeIsInitiallyChecked=function(q){return q===1};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],zz.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],zz.prototype,"data",void 0);_.c([_.Wj("#checkbox"),_.h("design:type",Object)],zz.prototype,"checkbox",void 0);zz=_.c([_.E({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],zz);
_.R(zz,"ytd-subscription-toggle-option-renderer",function(){if(ri4!==void 0)return ri4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return ri4=q},{mode:1});var ac=function(){var q=_.Y.apply(this,arguments)||this;q.darkerDarkTheme=_.T("web_darker_dark_theme");q.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return q};
_.O(ac,_.Y);ac.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"}}}};
ac.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ac.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var q=_.A(this.hostElement).querySelector("#options").selected;q=this.data.options[q].subscriptionRadioOptionRenderer.serviceEndpoint;var w=_.A(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");w&&q&&q.modifyChannelNotificationPreferenceEndpoint&&(w=w.getValue())&&(q.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[w]);_.tG().resolve(_.PG).resolveCommand(q,{form:{element:this.hostElement}});
_.Pw(this.hostElement,"yt-close-popup-action")};
_.x$.Object.defineProperties(ac.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var q=this.data.options,w=0;w<q.length;w++){var u=q[w].subscriptionRadioOptionRenderer;if(u&&u.selected)return w}return null}}});
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],ac.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],ac.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],ac.prototype,"eventForwardingBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ac.prototype,"ytRendererBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],ac.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],ac.prototype,"darkerDarkTheme",void 0);_.c([_.Z("data.options"),_.h("design:type",Object),_.h("design:paramtypes",[])],ac.prototype,"initialIndex",null);ac=_.c([_.E({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],ac);
_.R(ac,"ytd-subscription-notification-options-renderer",function(){if(izT!==void 0)return izT;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return izT=q},{mode:1});var Uw4;var Dg=function(){return _.Y.apply(this,arguments)||this};
_.O(Dg,_.Y);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Dg.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Dg.prototype,"data",void 0);Dg=_.c([_.E({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],Dg);
_.R(Dg,"ytd-tvfilm-offer-groups-renderer",function(){if(Uw4!==void 0)return Uw4;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return Uw4=q},{mode:1});var TyA;var Zg=function(){var q=_.Y.apply(this,arguments)||this;q.darkerDarkTheme=_.T("web_darker_dark_theme");return q};
_.O(Zg,_.Y);_.k=Zg.prototype;_.k.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"}}}};
_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.k.computeThumbnailClass=function(q){return q.thumbnailOverlays?q.isShow?"thumbnail-show":"thumbnail-movie":q.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.k.computeCommerceSectionClass=function(q){return q.offers&&q.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.k.computeTitleClass=function(q){return q.offers&&q.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.k.onDataChanged=function(){[].concat(_.Cm(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(q){q.onShow()})};
Zg.prototype.onDataChanged=Zg.prototype.onDataChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Zg.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Zg.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Zg.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],Zg.prototype,"darkerDarkTheme",void 0);
_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Zg.prototype,"onDataChanged",null);Zg=_.c([_.E({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],Zg);
_.R(Zg,"ytd-ypc-offers-overlay-renderer",function(){if(TyA!==void 0)return TyA;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return TyA=q},{mode:_.kB("kevlar_poly_si_batch_j028")?1:2});var Cla;var dwh=function(){this.usedMethods=new Set};
dwh.prototype.add=function(q){this.usedMethods.add(q)};
dwh.prototype.reset=function(){this.usedMethods.clear()};var Vjh=function(q,w){this.query=q;this.previousSearchQuery=w;this.id=Ozx++;if(!oLK){w=_.Et("SBOX_SETTINGS");q="https://"+((w==null?void 0:w.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var u=w==null?void 0:w.REQUEST_LANGUAGE;u&&(q+="&hl="+u);(u=w==null?void 0:w.REQUEST_DOMAIN)&&(q+="&gl="+u);q+="&client=youtube&gs_ri=youtube";(u=w==null?void 0:w.SUGG_EXP_ID)&&(q+="&sugexp="+encodeURIComponent(u));(u=w==null?void 0:w.PSUGGEST_TOKEN)&&(q+="&tok="+u);(w=
w==null?void 0:w.SESSION_INDEX)&&(q+="&authuser="+w);_.T("desktop_enable_visual_suggest")&&(q+="&h=180&w=320&ytvs=1");oLK=q}},f8K=function(q){var w="q="+encodeURIComponent(q.query);
q.previousSearchQuery&&(w+="&pq="+encodeURIComponent(q.previousSearchQuery));return w},mwc=function(){var q=_.Et("SBOX_SETTINGS"),w={};
if(q==null?0:q.SEND_VISITOR_DATA)w["X-Goog-Visitor-Id"]=q==null?void 0:q.VISITOR_DATA;return w},Aic=function(q){var w=oLK;
w+="&gs_id="+q.id.toString(36);w+="&q="+encodeURIComponent(q.query);w+="&cp="+q.query.length;q.previousSearchQuery&&(w+="&pq="+encodeURIComponent(q.previousSearchQuery));(q=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(w+="&video_id="+q);return w},Ozx=0,oLK="";var JiV=_.RY.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,zsa=_.RY.SEARCH_ENTITY_SUGGESTION_MOVIE,a86=_.RY.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,Dwq=_.RY.SEARCH_ENTITY_SUGGESTION_TV_SHOW,Zz6=function(q,w){this.text=q;this.bold=w},pt6=function(q,w,u){this.input=w;
this.index=u;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=q[0];this.type=q[1];this.subtypes=q[2];var y;this.displayText=BP((y=q[3])==null?void 0:y.b);var e;this.ignoredPrefix=BP((e=q[3])==null?void 0:e.a);var t,X;this.hasNewVideo=((t=q[3])==null?void 0:(X=t.zam)==null?void 0:X.toString())==="true"?!0:!1;var G;this.visualSuggestUrl=(G=q[3])==null?void 0:G.zai;var n;this.entityType=BP((n=q[3])==null?void 0:n.zap);var N;this.entityName=BP((N=q[3])==null?void 0:N.zao);var Q;w=BP((Q=
q[3])==null?void 0:Q.zaf);var I;this.entityMid=(I=q[3])==null?void 0:I.zae;Q=A7j(this.subtypes,this.entityMid);if(w&&Q){if(w){I="";switch(Q){case "YOUTUBE_ENTITY_TYPE_SONG":I=a86;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":I=JiV;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":I=Dwq;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":I=zsa}Q=Q==="YOUTUBE_ENTITY_TYPE_SONG"||Q==="YOUTUBE_ENTITY_TYPE_ALBUM"?I+" \u2022  \u2022 "+w:w}else Q="";this.entitySubtitle=Q}var U;this.externalChannelId=(U=q[3])==null?void 0:U.zav},$wH=
function(q){var w=[],u,y=(u=q.displayText)!=null?u:q.text;
if(q.type===33)return w.push(new Zz6(y,!1)),w;if(y.length>=q.input.length&&y.substring(0,q.input.length)===q.input)w.push(new Zz6(q.input,!1)),w.push(new Zz6(y.substring(q.input.length),!0));else{var e=new Set(q.input.split(/\s/)),t=y.split(/\s/);w=t.map(function(X,G){return new Zz6(X.trim()+(G===t.length-1?"":" "),!e.has(X))})}return w};var vLT=function(q){this.rawResponse=["",[],{}];this.suggestions=[];try{var w=JSON.parse(J76(q));if(typeof w==="object"&&w!==null)this.rawResponse=w;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(y){console.log("Suggest: Failed to parse SuggestResponse!");return}var u=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(y,e){return new pt6(y,u,e)})};var bzh=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new dwh;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18318_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},YJ4,gLV=function(){YJ4||(YJ4=new bzh);
return YJ4};
bzh.prototype.updateSuggestions=function(q){var w=this;this.availableSuggestions.forEach(function(u){w.previousSuggestions[u]=!0});
this.availableSuggestions=q.map(function(u){var y=u.type.toString();u.subtypes.length>0&&(y+="i"+u.subtypes.join("i"),y+="k"+u.suggestionSources.COMPLETE_SERVER.toString());return y})};
var ELm=function(q,w){var u=Date.now();q.firstEditTime<0&&(q.firstEditTime=u);w&&(q.lastQueryBuildTime=u);q.lastEditTime=u};
bzh.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18318_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Rsj=function(q){var w="";q.availableSuggestions.forEach(function(e){delete q.previousSuggestions[e]});
for(var u=_.P(Object.keys(q.previousSuggestions)),y=u.next();!y.done;y=u.next())y=y.value,q.previousSuggestions[y]&&(w+=(w?"j":"")+y);return w},ciq=function(q,w){var u=[];
w&&(u[1]=w.toString());u[0]="youtube";u[7]=Date.now()-q.startTime;u[6]=q.sessionNumber;q.zeroPrefixSuggestionCount>=0&&(u[33]=q.zeroPrefixSuggestionCount);u[13]=q.outOfSyncResponseCount;if(q.availableSuggestions.length>0){for(var y=w="",e=0,t=_.P(q.availableSuggestions),X=t.next();!X.done;X=t.next())X=X.value,X!==y&&(e>1&&(w+="l"+e),w+=(y?"j":"")+X,e=0,y=X),e+=1;e>1&&(w+="l"+e);u[3]=w}u[35]=Rsj(q);q.selectedSuggestionIndex>=0&&(u[2]=q.selectedSuggestionIndex);var G;if(w=(G=_.Et("SBOX_SETTINGS"))==
null?void 0:G.SUGG_EXP_ID)u[19]=q.normalize(w),G=0,q.experimentTriggeredBeforeFinal&&(G|=1),q.experimentTriggeredFinal&&(G|=2),u[20]=G;u[26]=Array.from(q.inputMethodsTracker.usedMethods).join("j");if(q.JSC$18318_totalRoundTripTime>0){u[15]=q.JSC$18318_totalRoundTripTime;u[14]=q.maxRoundTripTime;G=[];for(e=w=0;e<10;e++)y=q.roundTripTimeHistogram[e],y===0?w++:(w>1?G.push(e+"-"+y):w===1?G.push("0j"+y):G.push(y.toString()),w=0);G=G.join("j");u[16]=G}q.zeroPrefixRoundTripTime>0&&(u[36]=q.zeroPrefixRoundTripTime);
q.lastQueryBuildTime>0&&(u[18]=q.lastQueryBuildTime-q.startTime);q.firstEditTime>0&&(u[4]=q.firstEditTime-q.startTime);q.lastEditTime>0&&(u[5]=q.lastEditTime-q.startTime);return u.join(".")};
bzh.prototype.normalize=function(q){return q.replaceAll(".","-")};
var SJV=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var pw=function(){var q=_.Y.apply(this,arguments)||this;q.microphoneSpinnerActive=!1;q.noAnimations=!1;q.boundExitClick=function(){q.onExitButtonClick()};
q.speechOverlayClassName="";q.isLevelAnimating=!1;q.playCloseDialogAudioFeedback=!0;q.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return q};
_.O(pw,_.Y);_.k=pw.prototype;_.k.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.k.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=Jmj()};
_.k.dataChanged=function(){this.logDialog()};
_.k.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var q;(q=this.manager.audioPlayer)!=null&&(q.JSC$17608_audioEnabled=!1)}this.manager.stop();(q=this.manager.audioPlayer)!=null&&(q.JSC$17608_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.k.handleSpeechQueryCompleteAction=function(q){var w=q.navigationAction;w&&(q.trackingParams&&_.Qz().graftServerVe(q.trackingParams,this.dialogVe,5),_.t7(this.hostElement,"yt-navigate",{endpoint:w,tempData:this.getNavigationParams(w),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.k.onExitButtonClick=function(){this.closeDialog()};
_.k.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var q;if((q=this.manager)!=null){var w;(w=q.audioPlayer)==null||$4(w,"failure");q.setState("microphone-off");q.stop()}}else(q=this.manager)==null||q.start()};
_.k.transcriptionChanged=function(){var q,w;(((q=this.transcription)==null?0:q.low)||((w=this.transcription)==null?0:w.high))&&this.setState("transcribing",this.transcription)};
_.k.stateChanged=function(){this.setState(this.state,this.transcription)};
_.k.logDialog=function(){var q;(q=this.data)!=null&&q.trackingParams&&(q=_.Qz(),_.e$(q,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=q.graftServerVe(this.data.trackingParams,void 0,5))};
_.k.getNavigationParams=function(q){var w={};if(_.T("web_yt_searchbox")){var u=gLV();u.inputMethodsTracker.add(6);u=ciq(u,15);w.gs_l=u;var y;w.oq=((y=_.C(q,_.ip))==null?void 0:y.query)||""}else if(q=window.ytvoicesearchloggingparams){if(q=q())w.oq=q.oq,w.gs_l=q.gs_l}else _.jZ(Error("ll"));return w};
_.k.closeDialog=function(){_.Pw(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.k.setState=function(q,w){if(this.data){var u=this.data,y={};switch(q){case "listening":y={headerText:u.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:u.microphoneButtonAriaLabel};break;case "timeout":y={headerText:u.promptHeader,microphoneState:"try-again",microphoneLabel:u.promptMicrophoneLabel,microphoneAriaLabel:u.promptMicrophoneLabel};break;case "microphone-off":y={headerText:u.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:u.promptMicrophoneLabel,
microphoneAriaLabel:u.promptMicrophoneLabel};break;case "transcribing":(w==null?0:w.low)||(w==null?0:w.high)?y={transcriptionLow:w==null?void 0:w.low,transcriptionHigh:w==null?void 0:w.high,microphoneState:"speaking",microphoneAriaLabel:u.microphoneButtonAriaLabel}:y={headerText:u.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:u.microphoneButtonAriaLabel};break;case "processing":y={headerText:u.loadingHeader,microphoneState:"processing",microphoneAriaLabel:u.microphoneButtonAriaLabel};
break;case "offline":y={headerText:u.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:u.connectionErrorMicrophoneLabel,microphoneAriaLabel:u.connectionErrorMicrophoneLabel};break;case "permission":y={headerText:u.permissionsHeader,bodyLine1:u.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:u.permissionsSubtext};break;case "permission-denied":y={headerText:u.disabledHeader,bodyLine1:u.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:u.disabledSubtext}}y.className=
q;this.speechOverlayState=y;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.k.setMicrophoneState=function(q){var w=this.isLevelAnimating;this.isLevelAnimating=q==="speaking";!w&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=q==="processing"&&!this.noAnimations};
_.k.setClass=function(q){this.speechOverlayClassName&&_.ef(this.hostElement,this.speechOverlayClassName,!1);q&&(this.speechOverlayClassName=q,_.ef(this.hostElement,q,!0))};
_.k.runLevelAnimation=function(){var q=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var w=1+Math.random()*.75,u=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+u/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+w+")");_.pi.addJob(function(){q.runLevelAnimation()},3,u)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
pw.prototype.stateChanged=pw.prototype.stateChanged;pw.prototype.transcriptionChanged=pw.prototype.transcriptionChanged;pw.prototype.onPopupClosed=pw.prototype.onPopupClosed;pw.prototype.dataChanged=pw.prototype.dataChanged;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],pw.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],pw.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],pw.prototype,"rendererStamperBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],pw.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],pw.prototype,"eventForwardingBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],pw.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],pw.prototype,"speechOverlayState",void 0);
_.c([_.v(),_.h("design:type",Object)],pw.prototype,"microphoneSpinnerActive",void 0);_.c([_.v({type:_.T("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.h("design:type",Object)],pw.prototype,"noAnimations",void 0);_.c([_.v({selector:function(q){var w;return(w=q.voiceSearch)==null?void 0:w.transcription}}),
_.h("design:type",Object)],pw.prototype,"transcription",void 0);_.c([_.v({selector:function(q){var w;return(w=q.voiceSearch)==null?void 0:w.overlay}}),
_.h("design:type",String)],pw.prototype,"state",void 0);_.c([_.v(),_.h("design:type",Object)],pw.prototype,"boundExitClick",void 0);_.c([_.Wj("#microphone-levels"),_.h("design:type",HTMLElement)],pw.prototype,"level",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pw.prototype,"dataChanged",null);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pw.prototype,"onPopupClosed",null);
_.c([_.I9("transcription"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pw.prototype,"transcriptionChanged",null);_.c([_.I9("state"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pw.prototype,"stateChanged",null);pw=_.c([_.E({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],pw);
_.R(pw,"ytd-voice-search-dialog-renderer",function(){if(Cla!==void 0)return Cla;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Cla=q},{mode:1});var hsA;var $O=function(){var q=_.Y.apply(this,arguments)||this;q.isOverlay=!1;q.hidden=!1;return q};
_.O($O,_.Y);_.k=$O.prototype;_.k.onPopupClosed=function(){this.toggleIconState(!1)};
_.k.computeIcon=function(){var q,w,u;return(w=_.C((q=this.data)==null?void 0:q.icon,n9A))==null?void 0:(u=w.icon)==null?void 0:u.iconType};
_.k.computeIconBadgeShape=function(){var q;return{iconBadgeType:"cart",iconBadgeText:(q=this.iconBadgeEntity)==null?void 0:q.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.k.onClick=function(){var q;(q=this.data)!=null&&q.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.k.computeHidden=function(q){return!q};
_.k.toggleIconState=function(q){this.iconButton&&(this.iconButton.pressed=q)};
$O.prototype.onPopupClosed=$O.prototype.onPopupClosed;_.c([_.D(_.fU),_.h("design:type",Object)],$O.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],$O.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],$O.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],$O.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],$O.prototype,"isOverlay",void 0);
_.c([_.v({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.h("design:type",Object)],$O.prototype,"hidden",void 0);_.c([_.v({selectorArgs:["data.iconBadgeEntityKey"],selector:function(q,w){return _.HQ(q.entities,"iconBadgeEntity",w)}}),
_.h("design:type",Object)],$O.prototype,"iconBadgeEntity",void 0);_.c([_.Wj("yt-icon-button"),_.h("design:type",HTMLButtonElement)],$O.prototype,"iconButton",void 0);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$O.prototype,"onPopupClosed",null);$O=_.c([_.E({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],$O);
_.R($O,"ytd-icon-badge-topbar-button-renderer",function(){if(hsA!==void 0)return hsA;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return hsA=q},{mode:1});var j1x;var vn=function(){var q=_.Y.apply(this,arguments)||this;q.premiumOptions=[];q.darkerDarkTheme=_.T("web_darker_dark_theme");return q};
_.O(vn,_.Y);vn.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.x$.Object.defineProperties(vn.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],vn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],vn.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Array)],vn.prototype,"premiumOptions",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],vn.prototype,"darkerDarkTheme",void 0);_.c([_.Z("premiumOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],vn.prototype,"hasPremiumOptions",null);
vn=_.c([_.E({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],vn);
_.R(vn,"ytd-offline-promo-content",function(){if(j1x!==void 0)return j1x;var q=document.createElement("template");_.f(q,'\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="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return j1x=q},{mode:1});var l8h;var bW=function(){var q=_.Y.apply(this,arguments)||this;q.premiumOptions=[];return q};
_.O(bW,_.Y);bW.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var q;this.premiumOptions=mUA((q=this.data)==null?void 0:q.formats)};
bW.prototype.onClickSubmit=function(){_.Pw(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var q;(q=_.xo())==null||q.pause()};
bW.prototype.attached=function(){this.JSC$18338_scroller&&(this.JSC$18338_scroller.dialogElement=this.hostElement.parentNode)};
_.x$.Object.defineProperties(bW.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
bW.prototype.dataChanged=bW.prototype.dataChanged;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],bW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],bW.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],bW.prototype,"data",void 0);
_.c([_.v({computed:"computeIcon_(data.headersIcon)",value:""}),_.h("design:type",String)],bW.prototype,"headersIcon",void 0);_.c([_.v(),_.h("design:type",Array)],bW.prototype,"premiumOptions",void 0);_.c([_.Wj("#scroller"),_.h("design:type",Object)],bW.prototype,"JSC$18338_scroller",void 0);_.c([_.Z("headersIcon"),_.h("design:type",Object),_.h("design:paramtypes",[])],bW.prototype,"showIcon",null);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bW.prototype,"dataChanged",null);bW=_.c([_.E({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],bW);
_.R(bW,"ytd-offline-promo-renderer",function(){if(l8h!==void 0)return l8h;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return l8h=q},{mode:1});var LUc;var YO=function(){var q=_.Y.apply(this,arguments)||this;q.playbackPauseInterval=NaN;q.isLoading=!1;q.hasError=!1;q.dialogClass="";q.youtubeLabel=_.ID("LOGO_ALT_LABEL",{},"YouTube Home");q.logoName="yt-logos-ext:yt-logo-updated";q.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return q};
_.O(YO,_.Y);_.k=YO.prototype;_.k.onDataChange=function(){var q;if(this.showEOMV1Text=!((q=this.data)==null||!q.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.k.attached=function(){this.pausePlayer()};
_.k.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.k.handleLangSelect=function(q){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[q.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.k.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.k.handleSaveConsent=function(q){var w=this;this.showLoadingSpinner();this.showLoadingSpinner();kQA(_.C(q,H1K)).catch(function(u){_.Y8(new _.fv("Something went wrong when save consent "+(u.message?u.message:u)+"."));w.hideLoadingSpinner();w.showErrorMessage()})};
_.k.handleDisablePersonalization=function(q){var w=this;this.showLoadingSpinner();tvx(_.C(q,neT)).then(function(){w.dialog.close();w.resumePlayer()}).catch(function(u){_.Y8(new _.fv("Something went wrong when disable personalization "+(u.message?u.message:u)+"."));
w.hideLoadingSpinner();w.showErrorMessage()})};
_.k.showLoadingSpinner=function(){var q=this;this.showSpinnerJobId=_.pi.addLowPriorityJob(function(){q.isLoading=!0},500)};
_.k.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.pi.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.k.showErrorMessage=function(){var q=this;this.hasError=!0;_.pi.addLowPriorityJob(function(){q.hasError=!1},2E3)};
_.k.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.s8(function(){try{var q=_.xo();q&&q.pause()}catch(w){}},100))};
_.k.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var q=_.xo();q&&q.play()}catch(w){}};
_.x$.Object.defineProperties(YO.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.eomV1Text)return[];q=[];for(var w=["SHIELD","WARNING","BAR_CHART"],u=this.data.eomV1Text.essentialCookieMsg.items,y=0;y<w.length&&y<u.length;y++)q.push({icon:w[y],text:u[y]});return q}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var q;if((q=this.data)==null||!q.eomV1Text)return[];q=[];for(var w=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],u=this.data.eomV1Text.nonEssentialCookieMsg.items,y=0;y<w.length&&y<u.length;y++)q.push({icon:w[y],text:u[y]});return q}}});
YO.prototype.onDataChange=YO.prototype.onDataChange;_.c([_.v(),_.h("design:type",Object)],YO.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],YO.prototype,"showEOMV1Text",void 0);_.c([_.v(),_.h("design:type",Object)],YO.prototype,"isLoading",void 0);_.c([_.v(),_.h("design:type",Object)],YO.prototype,"hasError",void 0);_.c([_.v(),_.h("design:type",Number)],YO.prototype,"showSpinnerJobId",void 0);_.c([_.v(),_.h("design:type",Object)],YO.prototype,"dialogClass",void 0);
_.c([_.Wj("#dialog"),_.h("design:type",Object)],YO.prototype,"dialog",void 0);_.c([_.Wj("#cb-header"),_.h("design:type",HTMLElement)],YO.prototype,"header",void 0);_.c([_.Wj("#lang-select"),_.h("design:type",HTMLElement)],YO.prototype,"langSelect",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],YO.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],YO.prototype,"ytComponentBehavior",void 0);
_.c([_.v(),_.h("design:type",String)],YO.prototype,"youtubeLabel",void 0);_.c([_.v(),_.h("design:type",Object)],YO.prototype,"logoName",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],YO.prototype,"onDataChange",null);_.c([_.Z("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],YO.prototype,"eomEssentialCookieMsgItems",null);
_.c([_.Z("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],YO.prototype,"eomNonEssentialCookieMsgItems",null);YO=_.c([_.E({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],YO);
_.R(YO,"ytd-consent-bump-v2-lightbox",function(){if(LUc!==void 0)return LUc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return LUc=q},{mode:1});var MjV;var gJ=function(){return _.Y.apply(this,arguments)||this};
_.O(gJ,_.Y);gJ.prototype.ready=function(){if(!_.d$()||Ox4)var q=!0;else Ox4=!0,q=!1;q||(q=document.querySelector("ytd-app"),q||(q=document.body),this.internalLightBox=_.A(q).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.c([_.v(),_.h("design:type",Object)],gJ.prototype,"data",void 0);_.c([_.Wj("#lightbox"),_.h("design:type",Object)],gJ.prototype,"lightBox",void 0);gJ=_.c([_.E({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],gJ);
_.R(gJ,"ytd-consent-bump-v2-renderer",function(){if(MjV!==void 0)return MjV;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return MjV=q},{mode:1});var KUK;var Byx;var xw6;var EV=function(){var q=_.Y.apply(this,arguments)||this;q.ephemeralActionsEnabled=_.T("web_ephemeral_actions");return q};
_.O(EV,_.Y);_.k=EV.prototype;_.k.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&Edx(this.toastManager,this.toastType)};
_.k.open=function(q){this.toast&&(this.ephemeralAction&&_.tG().resolve(_.XH).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=q!=null?q:0,this.toastManager.enqueue(this.toast,q)):this.toast.open())};
_.k.close=function(q){var w;(w=this.toast)==null||w.close();this.toastManager&&q===1&&Edx(this.toastManager,q)};
_.k.refit=function(){var q;(q=this.toast)==null||q.refit()};
_.k.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var q;(q=this.toast)==null||q.close()}};
_.k.setVerticalOffset=function(q){this.toast&&(this.toast.verticalOffset=q,this.toast.fit())};
_.k.computeButtonClass_=function(q){return q?"toast-button":""};
_.k.computeText_=function(q){return _.lA(q)};
_.k.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.D1("toast-opened-changed",this.toastOpened))};
_.k.updateToastOpenedFromBinding=function(q){this.toastOpened=q.detail.value};
_.x$.Object.defineProperties(EV.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var q,w,u=(q=this.data)==null?void 0:(w=q.actionButton)==null?void 0:w.buttonRenderer;return(u==null?void 0:u.command)||(u==null?void 0:u.serviceEndpoint)||(u==null?void 0:u.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&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 q=[],w;((w=this.data)==null?0:w.responseText)&&q.push(_.lA(this.data.responseText));var u;((u=this.data)==null?0:u.subText)&&q.push(_.lA(this.data.subText));var y,e;if((y=this.data)==null?0:(e=y.actionButton)==null?0:e.buttonRenderer){var t,X;q.push(((t=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(X=t.accessibilityData)==null?void 0:X.label)||_.lA(this.data.actionButton.buttonRenderer.text))}return q.filter(function(G){return G}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var q,w;return(w=(q=this.toast)==null?void 0:q.opened)!=null?w:!1}}});
EV.prototype.toastOpenedChangedForBinding=EV.prototype.toastOpenedChangedForBinding;EV.prototype.toastOpenedChanged=EV.prototype.toastOpenedChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],EV.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],EV.prototype,"ytEventForwardingBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],EV.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],EV.prototype,"duration",void 0);
_.c([_.v(),_.h("design:type",Number)],EV.prototype,"toastType",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],EV.prototype,"useCloseButton",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],EV.prototype,"closeToastOnActionButtonClick",void 0);_.c([_.v({value:function(){return _.ID("SBOX_INAPPROPRIATE_CANCEL")}}),
_.h("design:type",String)],EV.prototype,"closeButtonAriaLabel",void 0);_.c([_.v(),_.h("design:type",Boolean)],EV.prototype,"toastOpened",void 0);_.c([_.v(),_.h("design:type",Boolean)],EV.prototype,"hasOpened",void 0);_.c([_.v(),_.h("design:type",Object)],EV.prototype,"ephemeralActionsEnabled",void 0);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],EV.prototype,"command",null);
_.c([_.Z("ephemeralActionsEnabled","labelText","command","duration"),_.h("design:type",Object),_.h("design:paramtypes",[])],EV.prototype,"ephemeralAction",null);_.c([_.Z("ephemeralAction"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],EV.prototype,"hasEphemeralAction",null);_.c([_.Wj("#toast"),_.h("design:type",Object)],EV.prototype,"toast",void 0);_.c([_.v({value:function(){return{style:"call-to-action-inverse"}}}),
_.h("design:type",Object)],EV.prototype,"buttonOverrides",void 0);_.c([_.v({value:{style:"mono-inverse"}}),_.h("design:type",Object)],EV.prototype,"closeButtonOverrides",void 0);_.c([_.v({value:function(){return _.tG().resolve(_.kF(_.cf6))}}),
_.h("design:type",Object)],EV.prototype,"toastManager",void 0);_.c([_.Z("data.responseText","data.subText","data.actionButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],EV.prototype,"labelText",null);_.c([_.nL("toastOpened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],EV.prototype,"toastOpenedChanged",null);
_.c([_.nL("toastOpened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],EV.prototype,"toastOpenedChangedForBinding",null);EV=_.c([_.JM({is:"yt-notification-action-renderer",disableElementRegistration:!0})],EV);
_.R(EV,"yt-notification-action-renderer",function(){if(xw6===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;Byx===void 0&&(Byx=document.createElement("template"));var y=Byx;u.call(w,y.content.cloneNode(!0),q.content.firstChild);xw6=q}q=xw6;return q},{mode:2});var uL=function(){var q=_.Y.apply(this,arguments)||this;q.duration=4E3;q.downloadingCount=0;q.downloadedCount=0;q.downloadingOnlySmartDownloads=!1;q.sessionTotalDownloads=0;q.sessionDownloaded=0;q.previousSessionsDownloaded=0;q.totalDownloadPercentage=0;q.currentDownloadProgress=0;q.currentDownloadPercentage=0;q.isLeaderTab=!0;q.isFullScreen=!1;q.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};q.boundBeforeUnload=function(w){q.isLeaderTab&&q.downloadingCount>0&&(w.preventDefault(),
w.returnValue=!0)};
return q};
_.O(uL,_.Y);_.k=uL.prototype;
_.k.open=function(){this.updateDownloadState();if(this.data){var q=this.sessionDownloaded+1,w=this.sessionTotalDownloads>1?_.ID("VIDEOS_DOWNLOADING_RATIO",{downloaded:q.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+q+"/"+this.sessionTotalDownloads):_.ID("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(w=this.sessionTotalDownloads>1?_.ID("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:q.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
q+"/"+this.sessionTotalDownloads):_.ID("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));q=this.isLeaderTab?_.ID("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.lA(this.data.responseText)!==w||_.lA(this.data.subText)!==q)this.set("data.responseText",_.jN(w)),this.set("data.subText",_.jN(q)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.k.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.k.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.k.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.k.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var q=this.downloadedCount-this.previousSessionsDownloaded;q<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-q);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.k.handleFullscreenChange=function(q){(this.isFullScreen=q)||this.updatePopup()};
uL.prototype.updateCurrentDownloadProgress=uL.prototype.updateCurrentDownloadProgress;uL.prototype.updatePopup=uL.prototype.updatePopup;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],uL.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],uL.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],uL.prototype,"ytEventForwardingBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],uL.prototype,"actionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],uL.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],uL.prototype,"duration",void 0);_.c([_.v({selector:function(q){return _.rUc(q.entities).length}}),
_.h("design:type",Object)],uL.prototype,"downloadingCount",void 0);_.c([_.v({selector:N$A}),_.h("design:type",Object)],uL.prototype,"downloadedCount",void 0);_.c([_.v({selector:function(q){var w=_.rUc(q.entities);return s2A(q.entities,w)}}),
_.h("design:type",Object)],uL.prototype,"downloadingOnlySmartDownloads",void 0);_.c([_.v(),_.h("design:type",Object)],uL.prototype,"sessionTotalDownloads",void 0);_.c([_.v(),_.h("design:type",Object)],uL.prototype,"sessionDownloaded",void 0);_.c([_.v(),_.h("design:type",Object)],uL.prototype,"previousSessionsDownloaded",void 0);_.c([_.v(),_.h("design:type",Object)],uL.prototype,"totalDownloadPercentage",void 0);
_.c([_.v({selector:function(q){var w;q=(w=_.rUc(q.entities))!=null?w:[];return q.length>0?_.X8J(q.slice(-1)):0}}),
_.h("design:type",Object)],uL.prototype,"currentDownloadProgress",void 0);_.c([_.v(),_.h("design:type",Object)],uL.prototype,"currentDownloadPercentage",void 0);_.c([_.v({selector:_.dYf}),_.h("design:type",Object)],uL.prototype,"isLeaderTab",void 0);_.c([_.Wj("yt-notification-action-renderer"),_.h("design:type",Object)],uL.prototype,"notificationActionRenderer",void 0);
_.c([_.I9("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uL.prototype,"updatePopup",null);_.c([_.I9("currentDownloadProgress"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uL.prototype,"updateCurrentDownloadProgress",null);uL=_.c([_.E({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],uL);
_.R(uL,"ytd-video-download-toast-renderer",function(){if(KUK!==void 0)return KUK;var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return KUK=q},{mode:1});var qpK;var wFV;var yi=function(){return _.Y.apply(this,arguments)||this};
_.O(yi,_.Y);yi.prototype.computeIsRedLogo=function(q,w){!q&&w&&(q=w);return q==="YOUTUBE_RED_LOGO"||q==="YOUTUBE_PREMIUM_LOGO"};
yi.prototype.computeLogoName=function(q){q=this.componentBehavior.computeIcon_(q);return q===""?"yt-logos-ext:yt-logo-updated":q};
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],yi.prototype,"componentBehavior",void 0);_.c([_.v({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.h("design:type",Boolean)],yi.prototype,"isRedLogo",void 0);_.c([_.v({computed:"computeLogoName(data)"}),_.h("design:type",String)],yi.prototype,"logoName",void 0);_.c([_.v({value:{}}),_.h("design:type",Object)],yi.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",Object)],yi.prototype,"logoType",void 0);yi=_.c([_.E({disableElementRegistration:!0,is:"ytd-logo"})],yi);
_.R(yi,"ytd-logo",function(){if(wFV!==void 0)return wFV;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return wFV=q},{mode:_.kB("kevlar_poly_si_batch_j074")?1:2});var eu=function(){var q=_.Y.apply(this,arguments)||this;q.animationRef={};return q};
_.O(eu,_.Y);_.k=eu.prototype;_.k.attached=function(){document.addEventListener("yt-navigate-finish",_.Fj(this,this.logYoodle))};
_.k.detached=function(){document.removeEventListener("yt-navigate-finish",_.Fj(this,this.logYoodle))};
_.k.logYoodle=function(){var q,w;if((q=this.data)==null?0:(w=q.loggingDirectives)==null?0:w.trackingParams)this.ytRendererBehavior.markDirty(),_.Qz().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.k.computeHideImg=function(q,w){return!!q||!!w};
_.k.computeHideYtdLogo=function(q,w){return!q||!!w};
_.k.computeHideLottie=function(q){return!q};
_.k.computeIsRedLogo=function(q){return q==="YOUTUBE_RED_LOGO"||q==="YOUTUBE_PREMIUM_LOGO"};
_.k.renderLogoEntity=function(){var q=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),w=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),u=this.getLogoTitleText(this.data),y=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==q&&(this.url=q);this.animatedUrl!==w&&(this.animatedUrl=w);this.logoTitleText!==u&&(this.logoTitleText=u);this.lottieUrl!==y&&(this.lottieUrl=y,this.lottiePlayerProps=this.computeLottiePlayerProps(y))};
_.k.getSanitizedThumbnail=function(q){return q&&q.thumbnails?_.juu(q.thumbnails,122)||"":""};
_.k.getThumbnailUrl=function(q,w){if(!w)return"";var u,y;q=q?(u=w.darkThemeLogo)==null?void 0:u.thumbnail:(y=w.lightThemeLogo)==null?void 0:y.thumbnail;return this.getSanitizedThumbnail(q)};
_.k.getAnimatedThumbnailUrl=function(q,w){return w?this.getSanitizedThumbnail(q?w.darkThemeAnimatedLogo:w.lightThemeAnimatedLogo):""};
_.k.getLogoTitleText=function(q){if(q)return _.lA(q.tooltipText)};
_.k.computeLogoIcon=function(q,w){if(w){var u,y;return q?(u=w.darkThemeLogo)==null?void 0:u.icon:(y=w.lightThemeLogo)==null?void 0:y.icon}};
_.k.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.k.getLottieUrl=function(q,w){var u,y,e,t;return q?w==null?void 0:(u=w.darkThemeLogo)==null?void 0:(y=u.lottieAnimation)==null?void 0:y.url:w==null?void 0:(e=w.lightThemeLogo)==null?void 0:(t=e.lottieAnimation)==null?void 0:t.url};
_.k.computeLottiePlayerProps=function(q){if(q){var w;if((w=this.animationRef)==null?0:w.lottieEl){var u;(u=this.animationRef)==null||u.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:q,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.k.onLottieError=function(){this.data&&this.lottieUrl&&_.t7(this.hostElement,"yoodle-error")};
_.k.onImgError=function(){this.data&&!this.lottieUrl&&_.t7(this.hostElement,"yoodle-error")};
eu.prototype.playAnimation=eu.prototype.playAnimation;eu.prototype.renderLogoEntity=eu.prototype.renderLogoEntity;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],eu.prototype,"data",void 0);_.c([_.v({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.h("design:type",Boolean)],eu.prototype,"hideImg",void 0);
_.c([_.v({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.h("design:type",Boolean)],eu.prototype,"hideYtdLogo",void 0);_.c([_.v({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.h("design:type",Boolean)],eu.prototype,"hideLottie",void 0);_.c([_.v({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.h("design:type",Boolean)],eu.prototype,"isRedLogo",void 0);
_.c([_.v(),_.h("design:type",Boolean)],eu.prototype,"useDarkThemeYoodle",void 0);_.c([_.v(),_.h("design:type",String)],eu.prototype,"url",void 0);_.c([_.v(),_.h("design:type",String)],eu.prototype,"animatedUrl",void 0);_.c([_.v(),_.h("design:type",String)],eu.prototype,"logoTitleText",void 0);_.c([_.v({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.h("design:type",Object)],eu.prototype,"logoIcon",void 0);_.c([_.v(),_.h("design:type",Object)],eu.prototype,"logoType",void 0);
_.c([_.v(),_.h("design:type",String)],eu.prototype,"lottieUrl",void 0);_.c([_.v(),_.h("design:type",Object)],eu.prototype,"lottiePlayerProps",void 0);_.c([_.v(),_.h("design:type",Object)],eu.prototype,"animationRef",void 0);_.c([_.nL("data"),_.nL("useDarkThemeYoodle"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eu.prototype,"renderLogoEntity",null);
_.c([_.Gm("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],eu.prototype,"playAnimation",null);eu=_.c([_.E({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],eu);
_.R(eu,"ytd-yoodle-renderer",function(){if(qpK!==void 0)return qpK;var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return qpK=q},{mode:_.kB("kevlar_poly_si_batch_j074")?1:2});var uMV;var yRa;var k7=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return q};
_.O(k7,_.Y);_.k=k7.prototype;_.k.onYoodleError=function(){_.T("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.k.computeLogoName=function(q){q=this.componentBehavior.computeIcon_(q);return q===""?"yt-logos-ext:yt-logo-updated":q};
_.k.computeTitle=function(q,w,u){return u&&(w==null?0:w.tooltipText)?_.lA(w.tooltipText):_.lA(q)};
_.k.computeAriaLabel=function(q,w,u){return u&&(w==null?0:w.tooltipText)?_.lA(q):""};
_.k.computeShowYoodle=function(q,w,u){return!q||!w&&!!u&&!_.db.isEmpty(u)};
_.k.onNavigateHomeAction=function(){if(_.T("kevlar_miniplayer_navigate_home_from_app_killswitch")){var q;(q=_.A(this.hostElement).querySelector(".yt-simple-endpoint"))==null||q.click()}};
_.k.computeLogoHref=function(q,w,u){var y;(u==null?0:u.onTapCommand)?y=this.componentBehavior.computeHref_(u.onTapCommand):q&&(y=this.componentBehavior.computeHref_(q));return y?y:w};
_.k.computeCommand=function(q,w){return(w==null?void 0:w.onTapCommand)||q};
_.k.getEndpointForm=function(){if(_.T("kevlar_topbar_disable_cache_only_home")){var q=_.tG().resolve(_.dd),w=TrA(q.getState())||"";q=_.b2z(q.getState())||"";return{disableCache:w==="ytd-browse"&&q==="home"}}return{disableCache:!0}};
k7.prototype.onYoodleError=k7.prototype.onYoodleError;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],k7.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],k7.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],k7.prototype,"componentBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],k7.prototype,"ytdReduxBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],k7.prototype,"data",void 0);_.c([_.v(),_.h("design:type",String)],k7.prototype,"countryCode",void 0);_.c([_.v({selectorArgs:["data.overrideEntityKey"],selector:function(q,w){return _.HQ(q.entities,"logoEntity",w)}}),
_.h("design:type",Object)],k7.prototype,"logoEntity",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.h("design:type",Boolean)],k7.prototype,"showYoodle",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],k7.prototype,"yoodleError",void 0);_.c([_.v({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.h("design:type",String)],k7.prototype,"titleText",void 0);
_.c([_.v({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.h("design:type",String)],k7.prototype,"ariaLabelText",void 0);_.c([_.v({value:"/"}),_.h("design:type",String)],k7.prototype,"defaultEndpointUrl",void 0);_.c([_.v({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.h("design:type",String)],k7.prototype,"endpointUrl",void 0);
_.c([_.v({computed:"computeCommand(data.endpoint, logoEntity)"}),_.h("design:type",String)],k7.prototype,"command",void 0);_.c([_.v(),_.h("design:type",Object)],k7.prototype,"logoType",void 0);_.c([_.v({}),_.h("design:type",Boolean)],k7.prototype,"useDarkThemeYoodle",void 0);_.c([_.Gm("yoodle-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],k7.prototype,"onYoodleError",null);k7=_.c([_.E({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],k7);
_.R(k7,"ytd-topbar-logo-renderer",function(){if(yRa!==void 0)return yRa;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return yRa=q},{mode:_.kB("kevlar_poly_si_batch_j027")?1:2});var enx=0;var kEx=_.RY.SEARCH_APPEND_LABEL,tmB=_.RY.SUGGESTION_NEW_VIDEOS_TEXT,PeB=_.RY.SUGGESTION_THUMBNAIL_LABEL,XFh=_.LL(function(q){function w(QF){var lc,TG;return _.F(function(G4){if(G4.nextAddress==1)return lc=new Request(QF),_.tD(G4,2),_.H(G4,fetch(lc,{credentials:"include"}),4);if(G4.nextAddress!=2)return eq(!0),_.jv(G4,0);TG=_.nm(G4);_.Y8(TG);_.HI(G4)})}
var u=q.isHighlighted;var y=q.suggestion;var e=q.onClickCallback;var t=q.onHoverUpdateCallback;var X=q.labels;var G=q.queryBuilderFunction;var n=q.onRemoveCallback;var N=q.suggestionIndex;var Q=q.generateUniqueId;var I=q.highlightedId;var U=q.useScrollMargin;var d=q.isKeyboardMode;var V=null,J=null,a=_.Bm(),b=_.Bm(),g=_.x8(function(QF){QF&&_.a5(237477,QF,J,function(lc){J=lc})}),l=_.x8(function(QF){QF&&_.a5(237477,QF,J,function(lc){J=lc})}),S=_.QS(function(QF){if((QF==null?void 0:QF.button)===2)return QF.preventDefault(),
!1;
var lc=_.pN();lc&&V&&_.ly(lc,V,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var TG;e(QF,y().text,y().index,y().entityMid,QF==null?void 0:(TG=QF.detail)==null?void 0:TG.wasSelectedByKeyboard);return!1}),eH=function(){return y().type===35},x=function(){return _.T("desktop_enable_single_suggestion_highlight")},P4=function(){return _.Fc("desktop_suggestions_panel_row_height")||0},C7=function(){var QF;
return _.T("desktop_enable_new_video_metadata")&&((QF=y())==null?void 0:QF.hasNewVideo)===!0},mu=function(){return _.T("desktop_enable_visual_suggest")},Os=function(){var QF;
if(QF=_.T("desktop_enable_entity_suggest")){var lc=y();QF=!!A7j(lc.subtypes);lc=!!lc.entityMid;QF=QF||lc}return QF},YJ=function(){return y().entitySubtitle},ao=function(){return x()?(u==null?void 0:u())||gV()&&!(d==null?0:d()):(u==null?void 0:u())||gV()},bc=function(){var QF=_.Et("SBOX_SETTINGS");
return eH()&&!(QF==null?0:QF.HIDE_REMOVE_LINK)},Ro=function(){return $wH(y())},K7,gx=!((K7=_.tG().resolve(_.kF(_.Rg)))==null||!K7()),dx=function(){return eH()?_.T("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},tc=function(){return X==null?void 0:X().SUGGESTION_DISMISS_LABEL},Fa=function(){return X==null?void 0:X().SUGGESTION_DISMISSED_LABEL};
K7=_.P(_.r4(!1,void 0,"DYKome"));q=K7.next().value;var eq=K7.next().value;K7=_.P(_.r4(!1,void 0,"H8xu6b"));var Hk=K7.next().value,W3=K7.next().value,gV=Hk,Fl=_.QS(function(){G(b.value.innerText);return!1}),C$=_.QS(function(QF){QF.preventDefault();
return!1}),ZZ=_.QS(function(QF){var lc=y().text,TG=_.Et("SBOX_SETTINGS"),G4="https://"+(TG.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
G4+="&delq="+encodeURIComponent(lc);(lc=TG==null?void 0:TG.PSUGGEST_TOKEN)&&(G4+="&tok="+lc);(TG=TG==null?void 0:TG.SESSION_INDEX)&&(G4+="&authuser="+TG);w(G4);QF.preventDefault();(QF=_.pN())&&J&&_.ly(QF,J,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");n(N==null?void 0:N());return!1}),EA=_.QS(function(){if(x()&&(d==null?0:d()))return!1;
W3(!0);t(!0);return!1}),mj=_.QS(function(){W3(!1);
t(!1);return!1});
K7=_.P(_.r4("",void 0,"H3zPCe"));var hc=K7.next().value,jR=K7.next().value;_.DR(function(){bc()&&jR(Q==null?void 0:Q(N==null?void 0:N()));a.value&&_.a5(12453,a.value,V,function(QF){V=QF})});
return _.W(_.r,{cond:q,then:function(){var QF={};return _.W("div",{class:_.HR("ytSuggestionComponentRemovedText",(QF.ytSuggestionComponentLargerRemovedText=function(){return mu()},QF)),
style:function(){return P4()>0?"height: "+P4()+"px;":""},
role:"button"},Fa)},
else:function(){var QF={},lc={};return _.W("div",{class:_.HR("ytSuggestionComponentSuggestion",(QF.ytSuggestionComponentSuggestionHover=function(){return!x()},QF.ytSuggestionComponentHighlighted=ao,QF.ytSuggestionComponentPersonalizedSuggestion=eH,QF.ytSuggestionComponentMweb=!1,QF.ytSuggestionComponentLargerSuggestion=function(){return C7()||mu()},QF.ytSuggestionComponentThumbnailSuggestion=function(){return mu()},QF.ytSuggestionComponentRoundedSuggestion=function(){return _.T("desktop_enable_scrollable_suggestions_panel")&&
_.T("desktop_enable_suggestions_panel_padding")},QF.ytSuggestionComponentThumbnailPadding=function(){return mu()&&!eH()},QF)),
style:function(){return P4()>0?"height: "+P4()+"px;":""},
role:"presentation","on:mousedown":S,"on:mouseover":EA,"on:mouseout":mj,el:a},_.W("div",{class:_.HR("ytSuggestionComponentText",(lc.ytSuggestionComponentScrollMargin=U,lc)),"aria-label":function(){return C7()?y().text+" "+tmB:y().text},
id:function(){return Q==null?void 0:Q(N==null?void 0:N())},
"on:mousedown":S,role:"option"},_.W(_.r,{cond:function(){return y().type!==33},
then:function(){return _.W(_.U3,{icon:dx,className:"ytSuggestionComponentIcon"})}}),_.W("div",{class:"ytSuggestionComponentLeftContainer"},_.W("span",{el:b,
role:"button",tabindex:0},_.W(_.mL,{each:Ro},function(TG){return TG.bold?_.W("span",{class:"ytSuggestionComponentBold"},TG.text):_.W("span",null,TG.text)})),_.W(_.r,{cond:function(){return Os()&&!!y().entitySubtitle||C7()},
then:function(){return _.W("div",{class:"ytSuggestionComponentMetadataContainer"},_.W(_.r,{cond:function(){return Os()&&!!y().entitySubtitle},
then:function(){return _.W("div",{class:"ytSuggestionComponentEntitySubtitle"},YJ)}}),_.W(_.r,{cond:function(){return C7()},
then:function(){return _.W("div",{class:"ytSuggestionComponentNewVideoContainer"},_.W("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.W("div",{class:"ytSuggestionComponentNewVideoText"},tmB))}}))}}))),_.W("div",{class:"ytSuggestionComponentRightContainer"},_.W(_.r,{cond:function(){return mu()&&y().visualSuggestUrl!==void 0},
then:function(){var TG={};return _.W("div",{class:"ytSuggestionComponentThumbnailContainer"},_.W("img",{"aria-label":PeB,class:_.HR("ytSuggestionComponentVisualSuggestThumbnail",(TG.ytSuggestionComponentCircularFrame=function(){return Os()&&y().subtypes.includes(790)},TG.ytSuggestionComponentEntitySuggestThumbnail=function(){return Os()},TG)),
src:function(){return y().visualSuggestUrl}}))}}),_.W(_.zS,null,_.W(_.AP,{when:function(){return mu()&&bc()}},function(){var TG={};
return _.W("button",{class:_.HR("ytSuggestionComponentRemoveLinkClearButton",(TG.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return hc()&&hc()===(I==null?void 0:I())},TG.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!ao()},TG)),
el:l,"on:mousedown":ZZ,"aria-label":tc,id:function(){return hc()}},_.W(_.U3,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.W(_.AP,{when:function(){return!(mu()&&y().visualSuggestUrl!==void 0)&&bc()}},function(){var TG={};
return _.W("a",{class:_.HR("ytSuggestionComponentRemoveLink",(TG.ytSuggestionComponentRemoveLinkDark=gx,TG.ytSuggestionComponentRemoveLinkSelected=function(){return hc()&&hc()===(I==null?void 0:I())},TG)),
el:g,"on:mousedown":ZZ,"aria-label":tc,tabindex:0,role:"button",id:function(){return hc()}},tc)}),_.W(_.AP,{when:function(){return!1}},function(){return _.W("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Fl,"on:mousedown":C$,role:"button","aria-label":kEx},_.W(_.U3,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"jg");var FYK=_.LL(function(){var q=_.QS(function(){gLV().inputMethodsTracker.add(3);var w,u=(w=_.Et("SBOX_SETTINGS"))==null?void 0:w.REQUEST_LANGUAGE;if(u)return _.EM("//www.google.com/textinputassistant/14/"+u+"_tia.js"),!1});
return _.W("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.W("button",{class:"ytdTextInputAssistantButton","on:click":q},_.W("img",{class:"ytdTextInputAssistantIcon",tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"kg");var GE6=function(){this.cache=new Map},nVc=function(q){for(var w=_.P(q.cache.entries()),u=w.next();!u.done;u=w.next()){var y=_.P(u.value);
u=y.next().value;y=y.next().value;y.suggestions.some(function(e){return e.type===35})&&q.cache.delete(u)}};var H0x=_.RY.SEARCH,WYm=_.RY.SEARCH_CLEAR_LABEL,sEV=new _.MH("FAKE_SUGGEST_RESPONSE");_.q9(_.LL(function(q){function w(){QF||(QF=setTimeout(function(){TG()},1E3))}
function u(rx,I6,HV){if(rx.trim()){jR=rx;_.g_("REFINEMENTS_TUPLE",void 0);mj=!0;var dV;I6=ciq(gV,I6);var Pk=(dV=q.searchEndpoint)==null?void 0:dV.call(q);dV=Fa.value.value;Pk||(Pk=bpB);var rB;(rB=_.C(Pk.commandMetadata,_.wk))!=null&&rB.url||(rB=Error("ml`"+JSON.stringify(Pk)),_.vm(rB),Pk=bpB);rB=_.db.unsafeClone(Pk);Pk=_.RA(_.C(rB.commandMetadata,_.wk).url,"search_query",rx);_.c2(location.href,"sv")==="1"&&(_.C(rB,_.ip).params="EgOAAgE%3D",Pk=_.RA(Pk,"sv","1"));_.C(rB,_.ip)&&(_.C(rB,_.ip).query=rx);
Pk=Pk.replace(/%20/g,"+");_.C(rB.commandMetadata,_.wk).url=Pk;HV=_.T("desktop_enable_entity_suggest")?{entityMid:HV}:{};_.tG().resolve(_.PG).resolveCommand(rB,{form:{tempData:Object.assign({},{gs_l:I6,oq:dV!=null?dV:rx},HV)}});TG();Fa.value.value=rx;Fa.value.blur();gV.reset()}}
function y(rx){return _.F(function(I6){return I6.return(new Promise(function(HV){var dV=new XMLHttpRequest;dV.open("GET",Aic(rx),!0);dV.withCredentials=!0;var Pk=_.Et("SBOX_SETTINGS");(Pk==null?0:Pk.SEND_VISITOR_DATA)&&dV.setRequestHeader("X-Goog-Visitor-Id",Pk==null?void 0:Pk.VISITOR_DATA);dV.onload=function(){HV(dV.responseText)};
dV.onerror=function(){_.Y8(Error("nl"));HV(null)};
setTimeout(function(){dV.abort()},1E4);
dV.send(null)}))})}
function e(rx){var I6,HV,dV,Pk;return _.F(function(rB){switch(rB.nextAddress){case 1:return I6={credentials:"include",headers:mwc()},window.AbortController&&(HV=new AbortController,setTimeout(function(){HV.abort("ytsbox-suggest-timeout")},1E4),I6.signal=HV.signal),_.tD(rB,2),_.H(rB,fetch(Aic(rx),I6),4);
case 4:dV=rB.yieldResult.text();_.jv(rB,3);break;case 2:return Pk=_.nm(rB),Pk!=="ytsbox-abort-last"&&Pk!=="ytsbox-suggest-timeout"&&_.Y8(Pk),rB.return(null);case 3:return rB.return(dV)}})}
function t(rx){var I6,HV,dV;return _.F(function(Pk){switch(Pk.nextAddress){case 1:if(I6=_.tG().resolve(_.kF(sEV)))return Pk.return(I6);HV=Date.now();w();return _.T("yt_searchbox_xhr")?_.H(Pk,y(rx),5):_.H(Pk,e(rx),4);case 4:dV=Pk.yieldResult;Pk.jumpTo(3);break;case 5:dV=Pk.yieldResult;case 3:if(dV){QF&&(clearTimeout(QF),QF=null);var rB=gV,RR=HV,pA=rx.query.length===0;RR=Date.now()-RR;pA?rB.zeroPrefixRoundTripTime=RR:(rB.JSC$18318_totalRoundTripTime+=RR,rB.maxRoundTripTime=Math.max(rB.maxRoundTripTime,
RR),pA=Math.floor(RR/100),pA>=SJV.length?++rB.roundTripTimeHistogram[9]:++rB.roundTripTimeHistogram[SJV[pA]])}return Pk.return(dV)}})}
function X(rx){var I6,HV,dV;return _.F(function(Pk){if(Pk.nextAddress==1)return(I6=W3.cache.get(f8K(rx)))?Pk.return(I6):_.H(Pk,t(rx),2);HV=Pk.yieldResult;if(HV===null)return Pk.return(null);dV=new vLT(HV);rx.query.length===0&&dV.suggestions.length===0||W3.cache.set(f8K(rx),dV);return Pk.return(dV)})}
function G(rx){var I6,HV;return _.F(function(dV){if(dV.nextAddress==1){hc=!1;var Pk=jR;Pk=_.wgf()==="search"?(_.c2(location.href,"search_query")||_.c2(location.href,"q"))===Pk:!1;I6=new Vjh(rx,Pk?jR:null);return _.H(dV,X(I6),2)}HV=dV.yieldResult;if(HV===null)return dV.return();I6.query.length===0&&(gV.zeroPrefixSuggestionCount=HV.suggestions.length);if(I6.id<=lc)return gV.outOfSyncResponseCount++,dV.return();if(document.activeElement!==Fa.value)return dV.return();lc=I6.id;var rB=gV,RR=HV.rawResponse[2]||
{};rB.experimentTriggeredBeforeFinal||(rB.experimentTriggeredBeforeFinal=rB.experimentTriggeredFinal);rB.experimentTriggeredFinal=!!RR.e;gV.updateSuggestions(HV.suggestions);a(-1);K7([]);HV.suggestions!==d()&&EZ(HV.suggestions.length);V(HV.suggestions);C7(HV.suggestions.length>0&&HV.suggestions[0].type===33);Hk&&(Hk.hidden=HV.suggestions.length===0,P4()?(Hk.style.minWidth="",rB=Hk.style,RR=(Pk=d()[0])==null?void 0:Pk.ignoredPrefix,rB.marginLeft=(RR?Math.min(RR.length*6,eq.value.offsetWidth):0).toString()+
"px"):(Hk.style.minWidth=eq.value.offsetWidth+"px",Hk.style.marginLeft="0"),xm());_.HI(dV)})}
function n(){if(!mj)return!1;var rx=_.Et("REFINEMENTS_TUPLE");return rx?(rx=rx[1].map(function(I6,HV){return new pt6([I6,0,[71]],Fa.value.value,HV)}),d()!==rx&&EZ(rx.length),K7([]),V(rx),gV.updateSuggestions(rx),mj=!1,Hk.hidden=rx.length===0,hc=rx.length>0,!0):!1}
function N(){var rx=Fa.value.value;(typeof rx==="string"||rx instanceof String)&&rx!==""?S(!0):S(!1)}
function Q(){if(_.wgf()==="search"){var rx=window.location.href;try{var I6=_.c2(rx,"search_query")||_.c2(rx,"q")||""}catch(HV){I6=""}I6&&(Fa.value.value=I6,S(!0))}}
var I=_.P(_.r4([],void 0,"kGFAjf")),U=I.next().value;I=I.next().value;var d=U,V=I;U=_.P(_.r4(-1,void 0,"mLGL9e"));var J=U.next().value,a=U.next().value;U=_.P(_.r4(-1,void 0,"u2rYdc"));var b=U.next().value,g=U.next().value;U=_.P(_.r4(!1,void 0,"W9DFC"));var l=U.next().value,S=U.next().value;U=_.P(_.r4(!1,void 0,"Ip4dNc"));var eH=U.next().value,x=U.next().value;I=_.P(_.r4(!1,void 0,"ZNKSQb"));U=I.next().value;I=I.next().value;var P4=U,C7=I;I=_.P(_.r4(!1,void 0,"JBrGLd"));U=I.next().value;var mu=I.next().value;
I=_.P(_.r4(!1,void 0,"P2pD6e"));var Os=I.next().value,YJ=I.next().value;I=_.P(_.r4(1,void 0,"SjP20c"));var ao=I.next().value,bc=I.next().value;I=_.P(_.r4([],void 0,"h4dRaf"));var Ro=I.next().value,K7=I.next().value;I=_.P(_.r4(!1,void 0,"TUTzaf"));var gx=I.next().value,dx=I.next().value;I=_.T("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var tc=_.Bm(),Fa=_.Bm(),eq=_.Bm(),Hk,W3=new GE6,gV=gLV(),Fl=_.tG().resolve(_.kF(_.Rg)),
C$=function(){var rx;return((rx=q.forceDarkMode)==null?void 0:rx.call(q))||!(Fl==null||!Fl())},ZZ=function(){return _.T("desktop_enable_scrollable_suggestions_panel")},EA="i"+enx++,mj=!1,hc=!1,jR="",QF=null,lc=-1,TG=function(){K7([]);
V([]);C7(!1);Hk&&(Hk.hidden=!0);QF&&(clearTimeout(QF),QF=null);a(-1)},G4=function(rx,I6){rx.preventDefault();
dx(!0);Hk&&(Hk.hidden=!1);var HV=J();rx=d();var dV=Ro();I6=zK4(I6);HV+=I6;for(HV>=rx.length?HV=-1:HV<-1&&(HV=rx.length-1);HV!==-1&&(dV.includes(HV)||HV>=rx.length||HV<0);)HV+=I6,HV>=rx.length&&(HV=-1);a(HV);J()>=0&&(Fa.value.value=d()[J()].text,g(0),N(),rx=J(),dV=b(),(dV=document.getElementById(W2[rx][dV]))&&ZZ()&&(rx===d().length-1?Hk.scrollTop=Hk.scrollHeight:dV.scrollIntoView({block:"nearest",inline:"start"})))},OX=_.QS(function(rx){if(!(rx.relatedTarget instanceof Element&&rx.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){x(!0);
var I6;(I6=q.focusCallback)==null||I6.call(q,!0);n()||(hc?Hk.hidden=!1:(_.t7(tc.value,"yt-autonav-pause-focus",{}),G(rx.target.value)))}}),ij=_.QS(function(rx){if(!(rx.relatedTarget instanceof Element&&rx.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){x(!1);
var I6;(I6=q.focusCallback)==null||I6.call(q,!1);Hk.scrollTop=0;Hk.hidden=!0;_.t7(tc.value,"yt-autonav-pause-blur",{})}}),nA=function(rx){rx=zK4(rx);
var I6;((I6=W2[J()])==null?0:I6[b()+rx])&&g(b()+rx)},WT=_.QS(function(rx){var I6=rx.target;
switch(rx.keyCode){case 13:rx.preventDefault();var HV;if((HV=W2[J()])==null?0:HV[b()]){var dV;(dV=document.getElementById(W2[J()][b()]))==null||dV.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}rx=rx.shiftKey?4:3;HV=gV;dV=J();HV.selectedSuggestionIndex=dV;u(I6.value,rx);break;case 27:Hk&&(Hk.hidden=!0);break;case 40:G4(rx,40);break;case 38:G4(rx,38);break;case 39:nA(39);break;case 37:nA(37);break;case 229:gV.inputMethodsTracker.add(4);break;default:gV.inputMethodsTracker.add(1),
ELm(gV)}return!1}),RK=_.QS(function(rx){G(rx.target.value);
N();ZZ()&&Hk&&(Hk.scrollTop=0);return!1}),Uq=_.QS(function(){gV.inputMethodsTracker.add(2);
ELm(gV);return!1});
_.DR(function(){if(Hk){gV.reset();if(window.ResizeObserver){var rx=new ResizeObserver(function(){P4()||(Hk.style.minWidth=eq.value.offsetWidth+"px")});
rx.observe(eq.value);(new ResizeObserver(function(){xm()})).observe(Hk);
_.ZG(function(){rx.disconnect()})}Q();
window.addEventListener("yt-navigate-finish",Q);window.addEventListener("yt-focus-searchbox",function(){Fa.value.focus()});
var I6;mu((I6=_.Et("SBOX_SETTINGS"))==null?void 0:I6.HAS_ON_SCREEN_KEYBOARD)}else _.vm(new _.fv("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var TC=_.QS(function(rx){rx.preventDefault();u(Fa.value.value,12);return!1}),R6=_.QS(function(rx){rx.preventDefault();
var I6,HV;(I6=Fa)==null||(HV=I6.value)==null||HV.focus();var dV,Pk;((dV=Fa)==null?void 0:(Pk=dV.value)==null?void 0:Pk.value)!==""&&(Fa.value.value="",Fa.value.dispatchEvent(new Event("input")));return!1}),mT=_.QS(function(){var rx=CYx(Fa.value.value,d().filter(function(I6){return I6.type!==35}).map(function(I6){return{label:I6.text}}));
_.Pw(tc.value,"yt-open-popup-action",[{openPopupAction:rx},document.body]);return!1}),qz=_.QS(function(){Fa.value.focus();
return!1}),M6=function(rx,I6,HV,dV,Pk){gV.selectedSuggestionIndex=HV;
u(I6,Pk?3:1,dV)},IR=function(rx){Fa.value.value=rx;
Fa.value.dispatchEvent(new Event("input"));gV.inputMethodsTracker.add(5);ELm(gV,!0)},W2=[[]],iO=function(rx){var I6="searchbox-suggestion"+_.mv(_.Iu);
W2[rx].push(I6);return I6},EZ=function(rx){if(d()){W2=[[]];
for(var I6=0;I6<rx;I6++)W2.push([])}},xm=function(){if(ZZ()){var rx=Hk,I6=rx.scrollTop;
rx=rx.scrollHeight-rx.clientHeight;YJ(I6>=rx);I6=Math.abs(rx-I6);I6<=40?bc(1-(40-I6)/40):bc(1)}},o2=function(){return"opacity: "+ao()*100+"%"},Us=_.QS(function(){xm();
return!1}),p7=_.QS(function(){dx(!1);
return!1}),Es,NT={},k6={},ma={},nh={};
return _.W("yt-searchbox",{class:_.HR("ytSearchboxComponentHost",(NT.ytSearchboxComponentMweb=!1,NT.ytSearchboxComponentDesktop=!0,NT["yt-searchbox-filled-query"]=function(){return l()},NT["ytd-masthead"]=function(){return!eH()},NT.ytSearchboxComponentHostDark=C$,NT)),
role:"search",el:tc,"client-ve-type":10349},_.W("div",{el:eq,"on:click":qz,class:_.HR("ytSearchboxComponentInputBox",(k6.ytSearchboxComponentInputBoxDark=C$,k6.ytSearchboxComponentInputBoxHasFocus=eH,k6))},_.W("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":TC},_.W(_.r,{cond:eH,then:function(){return _.W("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.W(_.U3,{icon:"SEARCH"}))}}),_.W("input",{el:Fa,
class:_.HR("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":EA,"aria-expanded":!((Es=Hk)==null?0:Es.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":ij,"on:focus":OX,"on:input":RK,"on:keydown":WT,"on:paste":Uq,placeholder:q.placeholderText,"aria-activedescendant":function(){var rx;return(rx=W2[J()])==null?void 0:rx[b()]},
"aria-autocomplete":"list",role:"combobox"})),_.W(_.r,{cond:U,then:function(){return _.W("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.W(FYK,null))}}),_.W(_.r,{cond:l,
then:function(){return _.W("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.W("button",{class:"ytSearchboxComponentClearButton","on:click":R6,"aria-label":q.clearButtonAriaLabel||WYm},_.W(_.U3,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.W(_.dm,{model:{}})))}})),_.W("button",{class:_.HR("ytSearchboxComponentSearchButton",(ma.ytSearchboxComponentSearchButtonDark=C$,ma)),
"on:click":TC,"aria-label":H0x,title:q.placeholderText},_.W(_.U3,{icon:"SEARCH"})),_.W(_.r,{cond:function(){if(EGK()&&_.T("mweb_voice_search")&&q.voiceSearchButton)return q.voiceSearchButton()},
then:function(rx){var I6={};return _.W("div",{class:_.HR("ytSearchboxComponentVoiceSearchWrapper",(I6.ytSearchboxComponentHideVoiceSearchButton=function(){return l()},I6))},_.W(_.OF,{data:rx},{buttonRenderer:function(HV){return _.W(_.pz,{data:HV.data,
onButtonClickCallback:function(){}})}}))}}),_.W("div",{el:_.M2(function(rx){return void(Hk=rx)}),
id:EA,class:_.HR("ytSearchboxComponentSuggestionsContainer",(nh.ytSearchboxComponentSuggestionsContainerDark=C$,nh["yt-searchbox-suggestions-container"]=!1,nh.ytSearchboxComponentSuggestionsContainerScrollable=ZZ(),nh.ytSearchboxComponentSuggestionsContainerAnimated=I,nh)),"on:scroll":Us,"on:mousemove":p7,role:"listbox",hidden:!0},_.W(_.mL,{each:d},function(rx,I6){return _.W(XFh,{suggestion:rx,isHighlighted:function(){return I6()===J()},
onClickCallback:M6,onHoverUpdateCallback:function(HV){if(_.T("desktop_enable_single_suggestion_highlight")){var dV=I6();HV&&(g(0),a(dV))}},
onRemoveCallback:function(HV){nVc(W3);HV===void 0||HV<0||Ro().includes(HV)||K7([].concat(_.Cm(Ro()),[HV]))},
labels:q.labels,queryBuilderFunction:IR,suggestionIndex:I6,generateUniqueId:iO,highlightedId:function(){var HV;return(HV=W2[J()])==null?void 0:HV[b()]},
useScrollMargin:ZZ(),isKeyboardMode:gx})}),_.W(_.r,{cond:function(){return!P4()&&d().find(function(rx){return rx.type!==35})&&_.T("searchbox_reporting")},
then:function(){return _.W("button",{class:"ytSearchboxComponentReportButton","on:mousedown":mT},_.ID("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.W(_.r,{cond:function(){return!Os()&&ZZ()},
then:function(){return _.W("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.W("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:o2}))}})))},"lg"),"yt-searchbox",{props:{searchEndpoint:_.pK,
placeholderText:_.pK,labels:_.pK,voiceSearchButton:_.pK,focusCallback:_.xB,clearButtonAriaLabel:_.pK,forceDarkMode:_.pK}});var tn=function(){var q=_.Y.apply(this,arguments)||this;q.menuButtonTargetId="topbar-guide-menu";q.narrow=!1;q.menuStrings={BACK_ALT_LABEL:_.ID("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.ID("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.ID("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.ID("SBOX_PLACEHOLDER",void 0,"Search")};q.pageDarkTheme=document.documentElement.hasAttribute("dark");q.watchPageScrollTop=0;q.theater=!1;q.fullscreen=!1;q.desktopUnifiedSearchPanelMode=_.T("desktop_enable_unified_search_panel");
q.cinematicTheaterMode=_.T("web_cinematic_theater_mode");q.ytSearchboxFocused=!1;q.searchboxLabels=_.Et("SBOX_LABELS");q.topbarIsAboveChipbar=!1;q.isDarkThemeForced=!1;q.areGhostCardsHidden=!1;q.guideKeyboardToggle=!1;q.voiceSearchManager=Jmj();q.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};q.setYtSearchboxFocused=function(w){q.ytSearchboxFocused=w};
return q};
_.O(tn,_.Y);_.k=tn.prototype;_.k.computeSimpleText=function(q){return _.lA(q)};
_.k.onDarkChanged=function(){for(var q=_.P(this.buttons||[]),w=q.next();!w.done;w=q.next())w.value.isOverlay=!!this.dark;q=_.P(this.buttonRenderers||[]);for(w=q.next();!w.done;w=q.next())w.value.overrides=this.computeButtonOverride()};
_.k.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.k.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"}}}};
_.k.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var q=_.ZU(_.DU(),"aa");_.ef(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||q||(this.isDarkThemeForced=this.dark=!0);this.logoType?(q=this.hostElement.querySelector("#masthead-logo"))&&(_.T("polymer_on_demand_shady_dom")?q.setAttribute("slot","masthead-logo-old"):_.UN(q)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Fj(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Fj(this,this.onSetTheaterModeEnabled))};
_.k.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Fj(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Fj(this,this.onSetTheaterModeEnabled))};
_.k.dataChanged=function(){var q=this.data;q&&(this.voiceEnabled=q.voiceSearchButton?Jmj().isSupported():!1,_.Ozc(_.e0(),this.menuButtonTargetId,this.guideButton),q.onReceivedActions&&q.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.nq(this.hostElement,q.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&q&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.ef(this.hostElement,"dark",!1),_.ef(this.hostElement,"theater",!1),
(q=this.hostElement.querySelector("#masthead-logo"))&&(_.T("polymer_on_demand_shady_dom")?q.setAttribute("slot","masthead-logo-old"):_.UN(q))))};
_.k.computeCenterHidden=function(){var q;return this.data&&!((q=this.data.searchbox)==null?0:q.fusionSearchboxRenderer)};
_.k.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.ef(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.k.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.k.onWatchScroll=function(q){this.watchPageScrollTop=q.detail||0;this.updateMastheadBackgroundOpacity()};
_.k.onFullscreenChangeAction=function(q){q||(this.watchPageScrollTop=0);this.fullscreen=q;this.updateMastheadBackgroundOpacity()};
_.k.onSetTheaterModeEnabled=function(q){this.theater=q.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.k.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.k.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.k.setBackgroundOpacity=function(q){q=this.calculateBackgroundOpacity(q);this.background.style.opacity=""+q};
_.k.calculateBackgroundOpacity=function(q){var w=this.theater&&this.cinematicTheaterMode?.6:0,u=this.hostElement.clientHeight/2;return Math.min(Math.max(q,0),u)/u*(1-w)+w};
_.k.shouldShowCinematicMastHead=function(){var q=_.T("kevlar_watch_grid")&&!_.T("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(q||this.pageDarkTheme)};
_.k.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.k.focusGuide=function(){this.guideButton.focus()};
_.k.onGuideToggleTap=function(){_.t7(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.k.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.k.onGuideToggleHover=function(){_.t7(this.hostElement,"yt-guide-hover")};
_.k.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.k.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.k.closeOnOutsideClickCondition=function(q){for(q=_.SQ(q);q[0];){var w=q.shift();if(w instanceof Element&&w.id==="kbd")return!1}return!0};
_.k.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.k.pausePlayer=function(){var q;(q=_.xo())==null||q.pause();this.pauseMiniplayer()};
_.k.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var q;(q=_.tG().resolve(_.$X).getPlayerElement())==null||q.pause()}};
_.k.isMiniplayerActive=function(){return _.tG().resolve(_.$X).isMiniplayerActive()};
_.k.updateNarrowFromBinding=function(q){this.narrow=q.detail.value};
_.k.onYtSendFeedbackAction=function(){_.Pw(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.x$.Object.defineProperties(tn.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.T("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var q;return(q=this.data)==null?void 0:q.voiceSearchButton}}}});
tn.prototype.narrowChanged=tn.prototype.narrowChanged;tn.prototype.onWatchPageChange=tn.prototype.onWatchPageChange;tn.prototype.onRendererStamperFinished=tn.prototype.onRendererStamperFinished;tn.prototype.dataChanged=tn.prototype.dataChanged;tn.prototype.onDarkChanged=tn.prototype.onDarkChanged;_.c([_.D(_.mF),_.h("design:type",Object)],tn.prototype,"ironResizableBehavior",void 0);_.c([_.D(_.DCm),_.h("design:type",Object)],tn.prototype,"ytdExpandableInputBehavior",void 0);
_.c([_.D(_.D$.YtdGuideStateAwareBehavior),_.h("design:type",Object)],tn.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],tn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],tn.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],tn.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],tn.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.fU),_.h("design:type",Object)],tn.prototype,"ytdReduxBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],tn.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],tn.prototype,"narrow",void 0);_.c([_.v(),_.h("design:type",Object)],tn.prototype,"logoType",void 0);_.c([_.v(),_.h("design:type",Boolean)],tn.prototype,"voiceEnabled",void 0);
_.c([_.v(),_.h("design:type",Object)],tn.prototype,"menuStrings",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],tn.prototype,"dark",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],tn.prototype,"pageDarkTheme",void 0);_.c([_.v(),_.h("design:type",Object)],tn.prototype,"watchPageScrollTop",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.ZV}),_.h("design:type",Boolean)],tn.prototype,"isWatchPage",void 0);
_.c([_.v({reflectToAttribute:!0,selector:_.nPH}),_.h("design:type",Boolean)],tn.prototype,"isShortsPage",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],tn.prototype,"theater",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],tn.prototype,"fullscreen",void 0);_.c([_.v({reflectToAttribute:!0,selector:_.QBj}),_.h("design:type",String)],tn.prototype,"frostedGlassMode",void 0);_.c([_.v(),_.h("design:type",Object)],tn.prototype,"ytSearchboxFocused",void 0);
_.c([_.s6("#buttons > *"),_.h("design:type",Array)],tn.prototype,"buttons",void 0);_.c([_.s6("ytd-button-renderer"),_.h("design:type",Array)],tn.prototype,"buttonRenderers",void 0);_.c([_.Wj("#background"),_.h("design:type",HTMLDivElement)],tn.prototype,"background",void 0);_.c([_.Wj("#guide-button"),_.h("design:type",Object)],tn.prototype,"guideButton",void 0);_.c([_.Wj("#logo"),_.h("design:type",Object)],tn.prototype,"logo",void 0);
_.c([_.v({computed:"computeButtonOverride(dark)"}),_.h("design:type",Object)],tn.prototype,"buttonOverrides",void 0);_.c([_.I9("dark"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tn.prototype,"onDarkChanged",null);_.c([_.v({value:function(){return this.onVoiceTap.bind(this)}}),
_.h("design:type",Function)],tn.prototype,"boundOnTapVoiceButton",void 0);_.c([_.v(),_.h("design:type",Object)],tn.prototype,"topbarIsAboveChipbar",void 0);_.c([_.v(),_.h("design:type",String),_.h("design:paramtypes",[])],tn.prototype,"guideIcon",null);_.c([_.Z("voiceEnabled"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tn.prototype,"shouldShowVoiceSearchButton",null);_.c([_.Z("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],tn.prototype,"voiceSearchButton",null);
_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tn.prototype,"dataChanged",null);_.c([_.Gm("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tn.prototype,"onRendererStamperFinished",null);_.c([_.I9("isWatchPage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tn.prototype,"onWatchPageChange",null);
_.c([_.I9("narrow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tn.prototype,"narrowChanged",null);tn=_.c([_.E({disableElementRegistration:!0,is:"ytd-masthead"})],tn);
_.R(tn,"ytd-masthead",function(){if(uMV!==void 0)return uMV;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return uMV=q},{mode:_.kB("kevlar_poly_si_batch_j036")?1:2});var NTh;var QEA={},Im6={},i04={},rRx={},UPV=(rRx.OFFLINE=(QEA["publicytnetworkstatus-online"]="BACK_ONLINE",QEA),rRx.ONLINE=(Im6["publicytnetworkstatus-offline"]="OFFLINE",Im6),rRx.BACK_ONLINE=(i04["publicytnetworkstatus-offline"]="OFFLINE",i04.TIMER_TRIGGER="ONLINE",i04),rRx),PB=function(){var q=_.Y.apply(this,arguments)||this;q.currentState="ONLINE";q.scheduledJobId=0;q.bannerString="";q.bannerVe=null;q.networkStatusManagerInstance=new _.MQ;return q};
_.O(PB,_.Y);_.k=PB.prototype;_.k.attached=function(){var q=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){q.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){q.stateChangeHandler("publicytnetworkstatus-offline")})};
_.k.detached=function(){var q=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){q.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){q.stateChangeHandler("publicytnetworkstatus-offline")})};
_.k.enterState=function(q){var w=this;this.scheduledJobId&&_.pi.cancelJob(this.scheduledJobId);q==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):q==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.ID("NO_INTERNET_CONNECTION",void 0,"No internet connection")):q==="BACK_ONLINE"&&(this.bannerString=_.ID("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.mg(_.pi,function(){w.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=q};
_.k.stateChangeHandler=function(q){(q=UPV[this.currentState][q])&&this.enterState(q)};
_.k.logVisibility=function(q){var w=_.pN();this.createBannerVe(q);w&&this.bannerVe&&(q?_.SB(w,[this.bannerVe]):_.h7(w,[this.bannerVe]))};
_.k.createBannerVe=function(q){!this.bannerVe&&q&&(this.bannerVe=_.oV(37929),_.tb(_.Qz(),this.bannerVe))};
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",String)],PB.prototype,"currentState",void 0);_.c([_.v(),_.h("design:type",Object)],PB.prototype,"scheduledJobId",void 0);_.c([_.v(),_.h("design:type",Object)],PB.prototype,"bannerString",void 0);PB=_.c([_.E({disableElementRegistration:!0,is:"ytd-network-status-banner"})],PB);
_.R(PB,"ytd-network-status-banner",function(){if(NTh!==void 0)return NTh;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return NTh=
q},{mode:1});var TTc;var Xt=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};q.hidden=!0;q.frostedGlass=_.T("web_frosted_glass");return q};
_.O(Xt,_.Y);Xt.prototype.computeHidden=function(q){return q&&q.status?!1:!0};
Xt.prototype.handleUpdatePermissionRoleCommand=function(q){if(q=_.C(q,_.ddj))if(q=_.C(q.renderer,_.CRc))this.data=q};
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Xt.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Xt.prototype,"componentBehavior",void 0);_.c([_.v({value:!0,computed:"computeHidden(data)"}),_.h("design:type",Object)],Xt.prototype,"hidden",void 0);_.c([_.v(),_.h("design:type",Object)],Xt.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Xt.prototype,"frostedGlass",void 0);
Xt=_.c([_.E({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Xt);
_.R(Xt,"ytd-permission-role-bottom-bar-renderer",function(){if(TTc!==void 0)return TTc;var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);return TTc=q},{mode:1});var Ceq;var dPj;var a_H={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Ft=function(){return _.Y.apply(this,arguments)||this};
_.O(Ft,_.Y);_.k=Ft.prototype;_.k.attached=function(){this.JSC$18420_scroller&&(this.JSC$18420_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18420_scroller.attached&&typeof this.JSC$18420_scroller.attached==="function"&&this.JSC$18420_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.k.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(u){u.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var q=_.A(this.hostElement);q.querySelector("tp-yt-paper-radio-group").selected="";var w=q.querySelector("#reason-text");w&&(w.value="");q.querySelector("#description-text").value=""}};
_.k.canSubmit=function(q,w){_.t7(this.hostElement,"yt-invalidate-popup-tabbables");return!(q&&w)};
_.k.onCancel=function(){_.Pw(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.k.onSubmit=function(){var q=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(t){return t.active}).map(function(t){return t.innerText.trim()}),w=this.hostElement.querySelector("tp-yt-paper-radio-group"),u=w.selectedItem,y=u.name;
u=u.innerText.trim();var e=w.querySelector("#reason-text");w=void 0;e&&(w=e.value);(e=this.descriptionText.value)&&(e=e.trim());DUx(this.data.searchQuery,q,y,u,e,w);_.Pw(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.k.sendFormSubmitToast=function(){var q=_.xN(_.ID("SBOX_INAPPROPRIATE_TOAST"));_.Pw(this.hostElement,"yt-open-popup-action",[q,this])};
_.k.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(q){return q.active})};
_.k.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Ft.prototype.onIronSelect=Ft.prototype.onIronSelect;Ft.prototype.onIronChange=Ft.prototype.onIronChange;Ft.prototype.dataChanged=Ft.prototype.dataChanged;_.c([_.v(),_.h("design:type",Object)],Ft.prototype,"data",void 0);_.c([_.v({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.h("design:type",Boolean)],Ft.prototype,"submitDisabled",void 0);_.c([_.v(),_.h("design:type",Boolean)],Ft.prototype,"suggestionSelected",void 0);
_.c([_.v(),_.h("design:type",Boolean)],Ft.prototype,"catagorySelected",void 0);_.c([_.Wj("#scroller"),_.h("design:type",Object)],Ft.prototype,"JSC$18420_scroller",void 0);_.c([_.Wj("#description-text"),_.h("design:type",Object)],Ft.prototype,"descriptionText",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ft.prototype,"dataChanged",null);
_.c([_.Gm("iron-change"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ft.prototype,"onIronChange",null);_.c([_.Gm("iron-select"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ft.prototype,"onIronSelect",null);Ft=_.c([_.E({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Ft);
_.R(Ft,"ytd-search-suggestion-report-dialog",function(){if(dPj!==void 0)return dPj;var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return dPj=q},{mode:1});var GY=function(q){var w=q.openPopupAction;var u=q.target;var y=q.container;var e=q.popupContainerConfig;var t=q.getElement;q=q.removeWhenClosed===void 0?!1:q.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=w;this.target=u;this.container=y;this.popupContainerConfig=e;this.getElement=t;this.JSC$18426_popupConfig=this.popupContainerConfig.JSC$17543_popupConfig[this.openPopupAction.popupType];this.rendererName=(w=this.getName())?_.ABy(w,Xd6(this.popupContainerConfig,
w)):"";_.T("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=q);this.createPopup()};
GY.prototype.updatePopup=function(q){this.openPopupAction=q;this.JSC$18426_popupConfig=this.popupContainerConfig.JSC$17543_popupConfig[this.openPopupAction.popupType];O0x(this);_.T("reorder_popup_updates_killswitch")&&oV6(this);_.T("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var mP6=function(q,w,u){q.target=u;var y;u=((y=q.target.polymerController)!=null?y:q.target).popupPositionTarget||q.target;q.JSC$18426_popupConfig.targetContainer&&(u=q.container);q.popup.positionTarget=u;q.popupContent.positionTarget=u;_.T("reorder_popup_updates_killswitch")||oV6(q);q.JSC$18426_popupConfig.forceFocus&&(q.popupContent.style.outline="none");q.popupContent.tabIndex=-1;q.JSC$18426_popupConfig.narrowProperties&&(q.popup.style.position="static");q.JSC$18426_popupConfig.preventAutonav&&
q.popup.setAttribute("prevent-autonav",!0);q.JSC$18426_popupConfig.forceCloseOnOutsideClick&&q.popup.setAttribute("force-close-on-outside-click",!0);Vmh(q,w);fmj(q,q.JSC$18426_popupConfig.styles);q.isRtl()&&fmj(q,q.JSC$18426_popupConfig.rtlStyles);if(!q.openPopupAction.shouldStopParentSignal){var e;w=(e=q.target.polymerController)!=null?e:q.target;(q.popupContent.startForwardingEvents||q.popupContainerConfig.forwardingEnabledPopups.has(q.rendererName))&&w.parentComponent!==q.popupContent&&q.popupContent!==
q.target&&q.target!==document.body&&(q.popupContent.startForwardingEvents?q.popupContent.startForwardingEvents(q.popupContainerConfig.forwardedEvents,q.target):(q.JSC$18426_eventForwarder||(q.JSC$18426_eventForwarder=new _.nC(q.popupContent)),q.JSC$18426_eventForwarder.start(q.popupContainerConfig.forwardedEvents,q.target)))}};
GY.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var Vmh=function(q,w){ARB(q,w&&q.JSC$18426_popupConfig.narrowProperties?q.JSC$18426_popupConfig.narrowProperties:q.JSC$18426_popupConfig.properties);q.isRtl()&&ARB(q,q.JSC$18426_popupConfig.rtlProperties);oV6(q)};
GY.prototype.createPopup=function(){var q=this.JSC$18426_popupConfig.component;if(this.popupContent=JRa(this,this.rendererName)){if(q){this.popup=JRa(this,q);var w=this.popupContent;_.T("web_enable_wrapper_for_cow_component_in_popup")&&(w=document.createElement("div"),w.appendChild(this.popupContent));_.T("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18426_popupConfig.slotName&&w.setAttribute("slot",this.JSC$18426_popupConfig.slotName);q=this.popup;var u=this.container.tagName.toLowerCase(),
y=_.jQ(w);_.wAM(_.Lp(q),_.qa(w,u,y));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.T("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.A(this.container).appendChild(this.popup)}};
var O0x=function(q){var w,u,y=(w=q.openPopupAction.accessibilityData)==null?void 0:(u=w.accessibilityData)==null?void 0:u.label;y&&(q.popup.ariaLabel=y);var e;((e=q.popupContent.polymerController)!=null?e:q.popupContent).data=(0,_.db.unsafeClone)(q.openPopupAction.popup[q.getName()]);q.popupContent.duration=znh(q);q.popupContent.positionType=q.openPopupAction.position;var t=q.openPopupAction.properties;t&&Object.keys(t).forEach(function(X){q.popupContent[X]=t[X]})},ARB=function(q,w){if(w)for(var u=
_.P(Object.keys(w)),y=u.next();!y.done;y=u.next())y=y.value,q.popup[y]=w[y]},oV6=function(q){if(q.openPopupAction.position){var w=q.JSC$18426_popupConfig.positionalProperties&&q.JSC$18426_popupConfig.positionalProperties[q.openPopupAction.position],u=q.JSC$18426_popupConfig.rtlPositionalProperties&&q.JSC$18426_popupConfig.rtlPositionalProperties[q.openPopupAction.position];
w=q.isRtl()&&u?u:w;w.shiftedHorizontalOffset&&(u=q.popup.style.display,q.popup.style.display="block",q.popupContent&&q.popup.positionTarget&&q.popupContent.clientWidth>q.popup.positionTarget.clientWidth&&(w.horizontalOffset=q.popup.positionTarget.clientWidth/2-w.shiftedHorizontalOffset),q.popup.style.display=u);ARB(q,w)}},fmj=function(q,w){if(w)for(var u=_.P(Object.keys(w)),y=u.next();!y.done;y=u.next())y=y.value,q.popup.style[y]=w[y]};
GY.prototype.getName=function(){return _.bo(this.openPopupAction.popup,"renderer")||_.bo(this.openPopupAction.popup,"dialog")||_.bo(this.openPopupAction.popup,"model")||void 0};
var znh=function(q){q=q.openPopupAction.durationHintMs;return q===0?q:Math.max(4E3,q||4E3)};
GY.prototype.isRtl=function(){return _.Et("HTML_DIR")==="rtl"};
var JRa=function(q,w){q=q.getElement(w,q.target);q==null&&_.Y8(new _.fv("popup getElement returned null",w));return q};var amc={};
amc.YtPopupContainerBehavior=[_.fK.YtComponentBehavior,_.hm.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},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.eB(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.k1(this.hostElement)},
closePopup:function(q){var w=this.createCacheKey(void 0,q);this.popups_[w]&&this.handleClosePopupAction_(void 0,q)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.pi.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.pi.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(q){q.opened&&q.keepBelowPlayer&&this.ensurePopupBelowPlayer(q)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var q in this.popups_){var w=this.popups_[q];if(w.popup.scrollAction==="refit"){var u=w.popup.positionTarget.getBoundingClientRect(),y=w.popup;u=u.top;var e=w;if(!e.naturalHeight){e.popup.hidden=!1;e.popup.style.position="fixed";e.popup.style.top="0px";e.popup.style.left="0px";var t=e.popup.getBoundingClientRect();e.naturalHeight=t.bottom-t.top;e.popup.refit()}y.hidden=!(u>=e.naturalHeight+60);w.popupContent.clientHeight===0&&w.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(q){this.popupContainerConfig=q},
handleOpenPopupAction:function(q,w){var u=q.openPopupAction,y=_.tG().resolve(_.kF(_.cf6))&&u.popupType==="TOAST";y&&!u.uniqueId&&(u.uniqueId=_.V8());if(!_.T("popup_container_parent_target_killswitch")){var e;w=(e=this.getParentTarget(w))!=null?e:w}var t=this.ensurePopup_(u,w);return new _.IA(function(X){t.then(function(G){if(!G)return X();this.maybeCreateNarrowMediaQuery_();var n=this.createCacheKey(G.rendererName,G.openPopupAction.uniqueId);if(u.showOncePerUniqueId){if(this.shownPopupKeys_.has(n))return X();
this.shownPopupKeys_.add(n)}n=this.popups_[n];var N=!(!n||!n.openPopupAction.beReused);N=!!u.reusePopup||N;if(G.popup.opened&&!N){y&&!G.openPopupAction.replacePopup||this.handleClosePopupAction_(G.rendererName,G.openPopupAction.uniqueId);N=u.popupType==="DIALOG"&&!_.T("popup_container_dialog_reopen_killswitch");if(!y&&!N&&n&&n.target==w&&!G.openPopupAction.replacePopup)return X();_.KJ(G.popup,function(){this.completeOpenPopupAction_(u,w,G);X()}.bind(this))}else G.popup.opened?G.updatePopup(u):this.completeOpenPopupAction_(u,
w,G),X()}.bind(this))}.bind(this))},
getParentTarget:function(q){if(q&&q instanceof HTMLElement)for(var w=_.P(Object.entries(this.popups_)),u=w.next();!u.done;u=w.next())if(u=_.P(u.value),u.next(),u=u.next().value,u.popup.tagName==="TP-YT-IRON-DROPDOWN"&&u.popup.opened&&q.closest(u.rendererName))return u.target},
completeOpenPopupAction_:function(q,w,u){_.T("reorder_popup_updates_killswitch")?(mP6(u,this.narrowMediaQuery_.queryMatches,w),u.updatePopup(q)):(u.updatePopup(q),mP6(u,this.narrowMediaQuery_.queryMatches,w));q=u.popup;q.addEventListener("iron-overlay-opened",_.Fj(this,this.onPopupIronOverlayOpened_));q.addEventListener("iron-overlay-closed",_.Fj(this,this.onPopupIronOverlayClosed_));q.addEventListener("iron-overlay-canceled",_.Fj(this,this.onPopupIronOverlayCanceled_));q.addEventListener("yt-refit",
_.Fj(this,this.refitPopup_));q.addEventListener("yt-invalidate-popup-tabbables",_.Fj(this,this.handleInvalidatePopupTabbables_));q.open()},
getPopupDurationMs_:function(q){return q.durationHintMs===0?q.durationHintMs:Math.max(4E3,q.durationHintMs||4E3)},
handleClosePopupAction_:function(q,w){var u=_.T("web_popup_cache_key_killswitch")||!!w;if(q||u){var y=this.createCacheKey(q,w);q=(q=this.popups_[y])&&q.popup}else q=_.CvP(_.go);if(q&&q.close){if(w=_.tG().resolve(_.kF(_.LK)))q.restoreFocusOnClose=w.isKeyBoardInUse();q.close();this.removePopup_(q,y)}},
handleClosePopupCommand_:function(q){q.closePopupCommand&&q.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,q.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(q){var w={},u;for(u in this.popups_)if(w={key$jscomp$1161:w.key$jscomp$1161},w.key$jscomp$1161=u,!q||!q.some(function(t){return function(X){return X==t.key$jscomp$1161}}(w))){var y=this.popups_[w.key$jscomp$1161],e=y.popup;
_.tG().resolve(_.kF(_.cf6))&&y.openPopupAction.popupType==="TOAST"||(e&&e.close&&e.close(),this.removePopup_(e,w.key$jscomp$1161))}},
handleClosePopupsAction_:function(q){q.forEach(function(w){var u=this.popups_[w];u&&((u=u.popup)&&u.close&&u.close(),this.removePopup_(u,w))}.bind(this))},
handleGetPopupOpenedAction_:function(q,w){return(w=this.createCacheKey(q,w))&&this.popups_[w]?this.popups_[q].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var q=[],w;for(w in this.popups_){var u=this.popups_[w];u.popup.opened&&q.push(u)}return q},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(q,w){_.T("ytpopup_disable_default_html_caching")&&q&&q.removeWhenClosed&&(_.A(this.hostElement).removeChild(q),w&&this.popups_[w]&&delete this.popups_[w])},
shouldReusePopup_:function(q){return!(!q||!q.reusePopup)||!(!q||!q.beReused)},
ensurePopup_:function(q,w){this.maybeCreateNarrowMediaQuery_();var u=_.bo(q.popup,"renderer")||_.bo(q.popup,"dialog")||_.bo(q.popup,"model");if(!u)return _.Hw();u=_.ABy(u,Xd6(this.popupContainerConfig,u));return _.Hw(this.getAndMaybeCreatePopup_(q,u,w))},
getAndMaybeCreatePopup_:function(q,w,u){var y=this.createCacheKey(w,q.uniqueId);if(this.popups_[y])return this.popups_[y];q=new GY({openPopupAction:q,target:u,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(w)});return this.popups_[y]=q},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(q){return _.T("ytpopup_disable_default_html_caching")?q&&q.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",_.Fj(this,this.openPopupQueryMatchesChanged_)),_.A(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(q){q=q.detail.value;for(var w in this.popups_)Vmh(this.popups_[w],q)},
onPopupIronOverlayClosed_:function(q){var w=q.currentTarget,u=_.Tu6(w);u=u.length>0?u[0]:w;if(u.is!=="ytd-reel-watch-while-dialog-renderer"||q.target.is!=="tp-yt-iron-dropdown"){q.detail.popup=w;q.detail.popupRenderer=u;var y,e={context:{openingElement:((y=this.popups_[(u==null?void 0:u.is)||""])==null?void 0:y.target)||void 0}};Object.assign(e,q.detail);var t;_.t7((t=u.hostElement)!=null?t:u,"yt-popup-closed",e);w.removeEventListener("yt-refit",_.Fj(this,this.refitPopup_));w.removeEventListener("yt-invalidate-popup-tabbables",
_.Fj(this,this.handleInvalidatePopupTabbables_));w.removeEventListener("iron-overlay-canceled",_.Fj(this,this.onPopupIronOverlayCanceled_));w.removeEventListener("iron-overlay-closed",_.Fj(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(w)}},
onPopupIronOverlayCanceled_:function(q,w){var u=q.currentTarget,y=_.Tu6(u);y=y.length>0?y[0]:u;if(y.is!=="ytd-reel-watch-while-dialog-renderer"||q.target.is!=="tp-yt-iron-dropdown"){var e;_.t7((e=y.hostElement)!=null?e:y,"yt-popup-canceled",q.detail);e=w?_.SQ(w):null;(!w||["click","tap"].includes(w.type))&&!u.hasAttribute("force-close-on-outside-click")&&u.positionTarget&&e&&e.includes(u.positionTarget)&&q.preventDefault();u.restoreFocusOnClose=_.IZ.keyboardEventMatchesKeys(w,"esc")}},
onPopupIronOverlayOpened_:function(q){q=q.currentTarget;var w=_.Tu6(q);w=w.length>0?w[0]:q;var u,y;_.t7((u=w.hostElement)!=null?u:w,"yt-popup-opened",(y=w.hostElement)!=null?y:w);q.keepBelowPlayer&&(this.ensurePopupBelowPlayer(q,!0),this.dynamicallyPositionedElements_.add(q));u=_.tG().resolve(_.kF(_.LK));y=!!w.querySelector("#toast");u&&u.isKeyBoardInUse()&&!y&&(typeof w.focusFirstItem==="function"?w.focusFirstItem():(w=_.rEj(q),w.length&&w[0].focus()));q.removeEventListener("iron-overlay-opened",
_.Fj(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(q){q=q.currentTarget;q.refit&&q.refit()},
refitPopups_:function(){for(var q in this.popups_)this.popups_[q].refit()},
handleInvalidatePopupTabbables_:function(q){q=q.currentTarget;q.invalidateTabbables&&q.invalidateTabbables()},
createCacheKey:function(q,w){return _.T("web_popup_cache_key_killswitch")?w?q+"#"+w:q:w?"#"+w:q},
openSheet:function(q,w){var u=q==null?void 0:q.openPopupActionCommand;!u&&(q==null?0:q.viewModel)&&(u={openPopupAction:{popup:{sheetViewModel:q.viewModel},popupType:"CONTEXTUAL_SHEET"}});u&&this.handleOpenPopupAction(u,w)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var q=this;return _.F(function(w){return w.return(q.handleGetOpenedPopupsAction_().filter(function(u){var y;return((y=u.openPopupAction)==null?void 0:y.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(q,w,u){if(_.T("web_dialog_utils_killswitch")){var y=q==null?void 0:q.openPopupActionCommand,e=(u==null?0:u.ariaLabel)?{accessibilityData:{accessibilityData:{label:u.ariaLabel}}}:void 0;!y&&(q==null?0:q.viewModel)&&(y={openPopupAction:Object.assign({},{popup:{dialogViewModel:q.viewModel},popupType:(u==null?0:u.isModal)?"MODAL":"DIALOG"},e&&e)});y&&this.handleOpenPopupAction(y,w)}else{if(e=q==null?void 0:q.viewModel){var t=u=u===void 0?{}:u;u=t.ariaLabel;e={popup:{dialogViewModel:e},
popupType:t.isModal?"MODAL":"DIALOG"};t={accessibilityData:{label:u}};u&&(e.accessibilityData=t);e={openPopupAction:e}}else e=void 0;(e=(y=e)!=null?y:q==null?void 0:q.openPopupActionCommand)&&this.handleOpenPopupAction(e,w)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var q=this;return _.F(function(w){return w.return(q.handleGetOpenedPopupsAction_().filter(function(u){var y;return((y=u.openPopupAction)==null?void 0:y.popupType)==="DIALOG"}).length>0)})}}];var DPa;var Z0A;var pFx=_.Sc(["about:blank"]),n8=function(){var q=_.Y.apply(this,arguments)||this;q.isMuted=!1;q.pageLoadTimeoutId=void 0;return q};
_.O(n8,_.Y);_.k=n8.prototype;_.k.dataChanged=function(){var q=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var w=this.data.url,u=_.$Z(w);_.T("enable_yt_ata_iframe_authuser")?(u=_.$Z(w),_.Ja(this.iframe,ZqT(u))):_.Ja(this.iframe,u);this.pageLoadTimeoutId=_.mg(_.Vk(),function(){return void q.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.MG({destination:window,iframe:this.iframe,origin:_.mT6(u.toString()),channelName:"ataiframe",onMessage:_.YUM(WmT,function(y){s8c(y.data)?(y=_.T_(y.data,1,_.Ch,_.uI()),y.length!==1?_.Y8(Error("ol")):(y=y[0],y===3?(q.isMuted=!0,q.logStateChanged({adMuteRequested:!0})):y===1&&q.close())):_.Y8(Error("pl"))}),
onEstablished:function(){q.cancelPageLoadTimeout();q.logStateChanged({pageLoadSucceeded:!0})}})}};
_.k.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Vk().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.k.logStateChanged=function(q){var w;if((w=this.data)==null?0:w.trackingParams)q={adsClientData:{aboutThisAdData:q}},_.Qz().stateChanged(this.data.trackingParams,q)};
_.k.close=function(){_.Pw(this.hostElement,"yt-close-popup-action",[this.is])};
_.k.handlesPopupClosed=function(q,w){var u=this,y,e;return _.F(function(t){if(t.nextAddress==1)return _.Et("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.Pw(u.hostElement,"on-about-this-ad-popup-closed",[u.isMuted,w]),t.jumpTo(0)):q&&pwK(q)?_.H(t,$UB(q),4):(u.isMuted&&_.Pw(u.hostElement,"yt-mute-ad-action",[u.is,u]),t.jumpTo(0));if(y=t.yieldResult){var X=e=new _.HF(y),G=u.isMuted;X.getOptions().includes("onAboutThisAdPopupClosed")?_.jYZ(X,"onAboutThisAdPopupClosed",{isMuted:G,layoutId:w}):_.BC("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.HI(t)})};
_.k.onPopupClosed=function(q){var w=this,u,y;return _.F(function(e){u=_.qK(pFx);_.Ja(w.iframe,u);w.cancelPageLoadTimeout();if(!w.data)return e.jumpTo(0);w.ytRendererBehavior.markDirty();y=q.detail.context.openingElement;return _.H(e,w.handlesPopupClosed(y,w.data.layoutId),0)})};
_.k.detached=function(){this.cancelPageLoadTimeout()};
_.k.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
n8.prototype.onPopupClosed=n8.prototype.onPopupClosed;n8.prototype.dataChanged=n8.prototype.dataChanged;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);_.c([_.Wj("#iframe"),_.h("design:type",HTMLIFrameElement)],n8.prototype,"iframe",void 0);_.c([_.v(),_.h("design:type",Object)],n8.prototype,"data",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],n8.prototype,"dataChanged",null);
_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype",Promise)],n8.prototype,"onPopupClosed",null);n8=_.c([_.JM({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],n8);
_.R(n8,"yt-about-this-ad-renderer",function(){if(Z0A===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;DPa===void 0&&(DPa=document.createElement("template"));var y=DPa;u.call(w,y.content.cloneNode(!0),q.content.firstChild);Z0A=q}q=Z0A;return q},{mode:2});var $Pc;var vV6;var HB=function(q){var w=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=w.message;"stack"in w&&(this.stack=w.stack);this.maxFileSizeMB=q;Object.setPrototypeOf(this,HB.prototype)};
_.O(HB,Error);var b0j=function(q,w){var u=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=u.message;"stack"in u&&(this.stack=u.stack);this.minWidth=q;this.minHeight=w;Object.setPrototypeOf(this,b0j.prototype)};
_.O(b0j,Error);var YpA=function(q){this.requirements=q;this.JSC$18454_maxFileSize=q.maxFileSizeMB*1024*1024},gVm=function(q,w){if(w.size>q.JSC$18454_maxFileSize)throw new HB(q.requirements.maxFileSizeMB);
};var EV4=function(q,w){this.canvas=q;this.imageEditorBuilder=w};
EV4.prototype.addEventListeners=function(q){var w=function(e){Rnx(q,e)};
this.JSC$18460_mouseDownEvent=w;var u=function(e){cR4(q,e)};
this.JSC$18460_mouseMoveEvent=u;var y=function(){SpH(q)};
this.JSC$18460_mouseUpEvent=y;this.canvas.addEventListener("mousedown",w);this.canvas.addEventListener("mousemove",u);document.addEventListener("mouseup",y)};
EV4.prototype.removeEventListeners=function(){this.JSC$18460_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18460_mouseDownEvent);this.JSC$18460_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18460_mouseMoveEvent);this.JSC$18460_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18460_mouseUpEvent)};
var hnq=function(q,w){q.removeEventListeners();return new Promise(function(u){var y=new Image;y.crossOrigin="anonymous";y.onload=function(){var e=q.imageEditorBuilder(q.canvas,y);q.addEventListeners(e);u(e)};
y.src=w})},WB=function(q,w,u,y,e,t,X,G){this.canvas=q;
this.image=w;this.requiredRatio=u;this.minImageCropDimension=y;this.minOutputImageResolution=e;this.component=t;this.styleFocusedCorner=G===void 0?!0:G;this.action=2;this.focusedCorner=this.resizeCorner=0;q=this.canvas.getContext("2d");if(!q)throw Error("ql");this.ctx=q;this.canvasMargin=X!=null?X:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;X=this.image;q=this.canvasInnerWidth/X.width;X.height*q>912&&(q=X.width/X.height*912/X.width);X=q;this.scaledImageWidth=this.canvas.width%2?
bqq(this.image.width*X):v1T(this.image.width*X);this.scaledImageHeight=Math.round(this.image.height*X);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18463_overlayMarginBottom=this.JSC$18463_overlayMarginTop=this.canvasMargin;this.JSC$18463_overlayMarginRight=this.JSC$18463_overlayMarginLeft=this.horizontalMargin;this.JSC$18463_overlayWidth=this.scaledImageWidth;this.JSC$18463_overlayHeight=this.scaledImageHeight;
q=this.image.width/this.image.height;q>this.requiredRatio?(this.JSC$18463_overlayWidth=this.canvas.width%2?bqq(this.scaledImageHeight*this.requiredRatio):v1T(this.scaledImageHeight*this.requiredRatio),this.JSC$18463_overlayMarginRight=this.JSC$18463_overlayMarginLeft=(this.canvas.width-this.JSC$18463_overlayWidth)/2):q<this.requiredRatio&&(this.JSC$18463_overlayHeight=this.canvas.height%2?bqq(this.scaledImageWidth/this.requiredRatio):v1T(this.scaledImageWidth/this.requiredRatio),this.JSC$18463_overlayMarginBottom=
this.JSC$18463_overlayMarginTop=(this.canvas.height-this.JSC$18463_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*X,this.scaledImageWidth);jEh(this)};
WB.prototype.getContext=function(){return this.ctx};
var Rnx=function(q,w){w={x:Math.round(w.pageX-q.canvas.getBoundingClientRect().left),y:Math.round(w.pageY-q.canvas.getBoundingClientRect().top)};q.dragStart=w;lmq(q,w)!==0?(q.action=1,LY6(q,w),q.resizeCorner=lmq(q,w)):w.x>q.JSC$18463_overlayMarginLeft&&w.x<q.JSC$18463_overlayMarginLeft+q.JSC$18463_overlayWidth&&w.y>q.JSC$18463_overlayMarginTop&&w.y<q.JSC$18463_overlayMarginTop+q.JSC$18463_overlayHeight&&(q.action=0)},MmK=function(q,w){switch(w){case 1:return{x:q.JSC$18463_overlayMarginLeft,
y:q.JSC$18463_overlayMarginTop};case 2:return{x:q.JSC$18463_overlayMarginLeft,y:q.JSC$18463_overlayMarginTop+q.JSC$18463_overlayHeight};case 3:return{x:q.JSC$18463_overlayMarginLeft+q.JSC$18463_overlayWidth,y:q.JSC$18463_overlayMarginTop};case 4:return{x:q.JSC$18463_overlayMarginLeft+q.JSC$18463_overlayWidth,y:q.JSC$18463_overlayMarginTop+q.JSC$18463_overlayHeight};default:throw Error("rl");}},BTh=function(q,w){if(q.focusedCorner!==0){q.dragStart=MmK(q,q.focusedCorner);
q.action=1;q.resizeCorner=q.focusedCorner;var u=q.dragStart.x,y=q.dragStart.y;switch(w){case 0:q.focusedCorner===1||q.focusedCorner===4?(u-=10,y-=10):(u-=10,y+=10);break;case 1:q.focusedCorner===1||q.focusedCorner===4?(u+=10,y+=10):(u+=10,y-=10);break;case 2:u=q.focusedCorner===1||q.focusedCorner===4?u-10:u+10;y-=10;break;case 3:u=q.focusedCorner===1||q.focusedCorner===4?u+10:u-10;y+=10;break;default:throw Error("sl");}KYj(q,{x:u,y:y});jEh(q);q.action=2;q.dragStart=void 0}},cR4=function(q,w){w={x:Math.round(w.pageX-
q.canvas.getBoundingClientRect().left),
y:Math.round(w.pageY-q.canvas.getBoundingClientRect().top)};LY6(q,w);switch(q.action){case 1:KYj(q,w);break;case 0:q.dragStart&&(q.JSC$18463_overlayMarginLeft=Math.max(q.horizontalMargin,Math.min(q.JSC$18463_overlayMarginLeft-(q.dragStart.x-w.x),q.horizontalMargin+q.scaledImageWidth-q.JSC$18463_overlayWidth)),q.JSC$18463_overlayMarginRight=q.canvas.width-q.JSC$18463_overlayMarginLeft-q.JSC$18463_overlayWidth,q.JSC$18463_overlayMarginTop=Math.max(q.canvasMargin,Math.min(q.JSC$18463_overlayMarginTop-
(q.dragStart.y-w.y),q.scaledImageHeight-q.JSC$18463_overlayHeight+q.canvasMargin)),q.JSC$18463_overlayMarginBottom=q.canvas.height-(q.JSC$18463_overlayMarginTop+q.JSC$18463_overlayHeight));break;default:return}jEh(q);q.dragStart=w},SpH=function(q){q.action=2;
q.dragStart=void 0;document.body.style.cursor="auto"},LY6=function(q,w){switch(lmq(q,w)){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:q.action!==1&&(document.body.style.cursor="auto")}},lmq=function(q,w){var u=q.JSC$18463_overlayMarginLeft-5,y=q.JSC$18463_overlayMarginTop-5,e=q.JSC$18463_overlayMarginLeft+q.JSC$18463_overlayWidth-5;
q=q.JSC$18463_overlayMarginTop+q.JSC$18463_overlayHeight-5;return xP6(w,{x:u,y:y})?1:xP6(w,{x:e,y:y})?3:xP6(w,{x:u,y:q})?2:xP6(w,{x:e,y:q})?4:0},xP6=function(q,w){return q.x>=w.x&&q.x<=w.x+10&&q.y>=w.y&&q.y<=w.y+10},KYj=function(q,w){if(q.dragStart)switch(q.resizeCorner){case 2:Math.abs((q.JSC$18463_overlayMarginLeft+q.JSC$18463_overlayWidth-w.x)/(w.y-q.JSC$18463_overlayMarginTop))>=q.requiredRatio?qWq(q,w.x):waT(q,w.y);
break;case 1:Math.abs((q.JSC$18463_overlayMarginLeft+q.JSC$18463_overlayWidth-w.x)/(q.JSC$18463_overlayMarginTop+q.JSC$18463_overlayHeight-w.y))>=q.requiredRatio?ukm(q,w.x):waT(q,w.y);break;case 4:Math.abs((w.x-q.JSC$18463_overlayMarginLeft)/(w.y-q.JSC$18463_overlayMarginTop))>=q.requiredRatio?qWq(q,w.x):yWB(q,w.y);break;case 3:Math.abs((w.x-q.JSC$18463_overlayMarginLeft)/(q.JSC$18463_overlayMarginTop+q.JSC$18463_overlayHeight-w.y))>=q.requiredRatio?ukm(q,w.x):yWB(q,w.y);break;default:throw Error("tl");
}},qWq=function(q,w){var u=q.JSC$18463_overlayMarginTop;
q.JSC$18463_overlayMarginBottom=e74(q,w);q.JSC$18463_overlayHeight=q.canvas.height-q.JSC$18463_overlayMarginBottom-u;q.JSC$18463_overlayWidth=Math.round(q.JSC$18463_overlayHeight*q.requiredRatio);kHc(q)},ukm=function(q,w){var u=q.JSC$18463_overlayMarginTop+q.JSC$18463_overlayHeight;
q.JSC$18463_overlayMarginTop=e74(q,w);q.JSC$18463_overlayHeight=u-q.JSC$18463_overlayMarginTop;q.JSC$18463_overlayWidth=Math.round(q.JSC$18463_overlayHeight*q.requiredRatio);kHc(q)},kHc=function(q){switch(q.resizeCorner){case 2:case 1:q.JSC$18463_overlayMarginLeft=q.canvas.width-q.JSC$18463_overlayMarginRight-q.JSC$18463_overlayWidth;
break;case 4:case 3:q.JSC$18463_overlayMarginRight=q.canvas.width-q.JSC$18463_overlayMarginLeft-q.JSC$18463_overlayWidth;break;default:throw Error("tl");}},waT=function(q,w){var u=q.JSC$18463_overlayMarginLeft+q.JSC$18463_overlayWidth;
q.JSC$18463_overlayMarginLeft=toV(q,w);q.JSC$18463_overlayWidth=u-q.JSC$18463_overlayMarginLeft;q.JSC$18463_overlayHeight=Math.round(q.JSC$18463_overlayWidth/q.requiredRatio);P_x(q)},yWB=function(q,w){var u=q.JSC$18463_overlayMarginLeft;
q.JSC$18463_overlayMarginRight=toV(q,w);q.JSC$18463_overlayWidth=q.canvas.width-q.JSC$18463_overlayMarginRight-u;q.JSC$18463_overlayHeight=Math.round(q.JSC$18463_overlayWidth/q.requiredRatio);P_x(q)},P_x=function(q){switch(q.resizeCorner){case 2:case 4:q.JSC$18463_overlayMarginBottom=q.canvas.height-q.JSC$18463_overlayMarginTop-q.JSC$18463_overlayHeight;
break;case 1:case 3:q.JSC$18463_overlayMarginTop=q.canvas.height-q.JSC$18463_overlayMarginBottom-q.JSC$18463_overlayHeight;break;default:throw Error("tl");}},e74=function(q,w){switch(q.resizeCorner){case 2:w=q.canvas.height-(q.JSC$18463_overlayMarginTop+XaT(q,w));
break;case 4:w=q.canvas.height-(q.JSC$18463_overlayMarginTop+F34(q,w));break;case 1:w=q.JSC$18463_overlayMarginTop+q.JSC$18463_overlayHeight-XaT(q,w);break;case 3:w=q.JSC$18463_overlayMarginTop+q.JSC$18463_overlayHeight-F34(q,w);break;default:throw Error("tl");}return Math.max(w,q.canvasMargin)},XaT=function(q,w){w=q.JSC$18463_overlayMarginLeft+q.JSC$18463_overlayWidth-Math.max(w,q.horizontalMargin);
w=w<0?q.JSC$18463_overlayWidth:Math.max(w,q.minOverlayWidth);return Math.round(w/q.requiredRatio)},F34=function(q,w){w=q.canvas.width-Math.max(q.canvas.width-w,q.horizontalMargin)-q.JSC$18463_overlayMarginLeft;
w=w<0?q.JSC$18463_overlayWidth:Math.max(w,q.minOverlayWidth);return Math.round(w/q.requiredRatio)},toV=function(q,w){switch(q.resizeCorner){case 2:w=q.canvas.width-q.JSC$18463_overlayMarginRight-GHh(q,w);
break;case 4:w=q.canvas.width-q.JSC$18463_overlayMarginLeft-GHh(q,w);break;case 1:w=q.canvas.width-q.JSC$18463_overlayMarginRight-ncH(q,w);break;case 3:w=q.canvas.width-q.JSC$18463_overlayMarginLeft-ncH(q,w);break;default:throw Error("tl");}return Math.max(w,q.horizontalMargin)},GHh=function(q,w){w=q.canvas.height-Math.max(q.canvas.height-w,q.canvasMargin)-q.JSC$18463_overlayMarginTop;
return w<0?q.JSC$18463_overlayWidth:Math.max(Math.round(w*q.requiredRatio),q.minOverlayWidth)},ncH=function(q,w){w=q.JSC$18463_overlayMarginTop+q.JSC$18463_overlayHeight-Math.max(w,q.canvasMargin);
return w<0?q.JSC$18463_overlayWidth:Math.max(Math.round(w*q.requiredRatio),q.minOverlayWidth)},jEh=function(q){q.ctx.clearRect(0,0,q.canvas.width,q.canvas.height);
q.ctx.drawImage(q.image,0,0,q.image.width,q.image.height,q.horizontalMargin,q.canvasMargin,q.canvas.width-2*q.horizontalMargin,q.scaledImageHeight);q.ctx.fillStyle="rgba(0, 0, 0, 0.7)";q.ctx.fillRect(q.horizontalMargin,q.JSC$18463_overlayMarginTop,q.JSC$18463_overlayMarginLeft-q.horizontalMargin,q.JSC$18463_overlayHeight);q.ctx.fillRect(q.JSC$18463_overlayMarginLeft+q.JSC$18463_overlayWidth,q.JSC$18463_overlayMarginTop,q.JSC$18463_overlayMarginRight-q.horizontalMargin,q.JSC$18463_overlayHeight);q.ctx.fillRect(q.horizontalMargin,
q.canvasMargin,q.scaledImageWidth,q.JSC$18463_overlayMarginTop-q.canvasMargin);q.ctx.fillRect(q.horizontalMargin,q.JSC$18463_overlayMarginTop+q.JSC$18463_overlayHeight,q.scaledImageWidth,q.JSC$18463_overlayMarginBottom-q.canvasMargin);q.drawOverlay();q.component&&_.t7(q.component,"image-updated")};
WB.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18463_overlayMarginLeft,this.JSC$18463_overlayMarginTop,this.JSC$18463_overlayWidth,this.JSC$18463_overlayHeight);Hfj(this)};
var Hfj=function(q){var w=q.JSC$18463_overlayMarginLeft-5,u=q.JSC$18463_overlayMarginTop-5,y=q.JSC$18463_overlayMarginLeft+q.JSC$18463_overlayWidth-5,e=q.JSC$18463_overlayMarginTop+q.JSC$18463_overlayHeight-5;q.ctx.fillStyle="#FFF";q.ctx.fillRect(w,u,10,10);q.ctx.strokeRect(w,u,10,10);q.ctx.fillRect(y,u,10,10);q.ctx.strokeRect(y,u,10,10);q.ctx.fillRect(w,e,10,10);q.ctx.strokeRect(w,e,10,10);q.ctx.fillRect(y,e,10,10);q.ctx.strokeRect(y,e,10,10);if(q.focusedCorner!==0&&q.styleFocusedCorner){q.ctx.lineWidth=
4;q.ctx.strokeStyle="#3EA6FF";switch(q.focusedCorner){case 1:--w;--u;break;case 2:--w;u=e-1;break;case 3:w=y-1;--u;break;case 4:w=y-1;u=e-1;break;default:return}q.ctx.strokeRect(w,u,12,12)}};
WB.prototype.crop=function(q,w){w=w===void 0?!0:w;var u=this.image.width/this.scaledImageWidth,y=document.createElement("canvas"),e=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],t=this.JSC$18463_overlayWidth*u,X=this.JSC$18463_overlayHeight*u;y.width=Math.max(t,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);y.height=Math.max(X,e);q&&(y.width=Math.min(y.width,y.height),y.height=Math.min(y.width,y.height));
q=y.getContext("2d");if(!q)throw Error("hl");e=(this.JSC$18463_overlayMarginLeft-this.horizontalMargin)*u;u*=this.JSC$18463_overlayMarginTop-this.canvasMargin;w||(q.fillStyle="white",q.fillRect(0,0,y.width,y.height));q.drawImage(this.image,e,u,t,X,0,0,y.width,y.height);return y};var W3V=function(q,w,u,y,e){WB.call(this,q,w,u,y,void 0,e,8,!1)};
_.O(W3V,WB);W3V.prototype.drawOverlay=function(){var q=this.getContext(),w=this.JSC$18463_overlayWidth,u=this.JSC$18463_overlayHeight,y=this.JSC$18463_overlayMarginTop,e=this.JSC$18463_overlayMarginLeft;q.lineWidth=2;q.strokeStyle="#3EA6FF";q.beginPath();q.arc(e+w/2,y+u/2,w/2,0,2*Math.PI);q.stroke();q.strokeRect(e,y,w,u);Hfj(this)};
var sP6={maxFileSizeMB:15,minWidth:98,minHeight:98},NHK=["image/png","image/jpeg","image/gif"],s_=function(){var q=_.Y.apply(this,arguments)||this;q.fileSelectorFocusListener=null;q.errorMessage=null;q.isLoading=!0;q.hideContainer=!0;q.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return q};
_.O(s_,_.Y);_.k=s_.prototype;_.k.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.k.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.k.computePlaylistThumbnail=function(q){return q==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.k.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.Pw(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.k.setErrorState=function(q){this.resetErrorState();q&&(this.errorMessage=q)};
_.k.showPopup=function(){var q=this;this.hideContainer=!1;_.mg(_.pi,function(){_.t7(q.hostElement,"yt-refit")});
this.isLoading=!1};
_.k.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.k.closePopup=function(){this.resetFileSelector();_.Pw(this.hostElement,"yt-close-popup-action",[this.is])};
_.k.onCancelTap=function(){this.isPlaylistThumbnail||_.Pw(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.k.openFileSelector=function(){var q=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.mg(_.pi,function(){setTimeout(function(){if(!q.fileSelector.files||q.fileSelector.files.length===0)q.onCancelTap();q.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(w){w instanceof Error?_.vm(w):_.bD(new _.fv(JSON.stringify(w)))}};
_.k.handleFileSelection=function(){var q=this,w,u,y,e,t,X;return _.F(function(G){switch(G.nextAddress){case 1:_.tD(G,2);if(!q.fileSelector.files||!q.imageEditorCanvas)return q.onCancelTap(),G.return();w=q.fileSelector.files[0];gVm(q.imageChecker,w);_.tD(G,4);return _.H(G,GMh(w),6);case 6:q.mimeType=G.yieldResult;_.jv(G,5,2);break;case 4:_.nm(G,2),_.Pw(q.hostElement,"yt-image-selection-error-action",[(u=q.data)==null?void 0:u.genericImageLoadErrorMessage]),q.onCancelTap();case 5:y=new FileReader;y.addEventListener("load",
function(){var n,N;return _.F(function(Q){if(Q.nextAddress==1){if(!y.result)return _.Y8(Error("jl")),Q.return();n=y.result;N=new Image;N.src=n;N.onload=function(){try{var I=q.imageChecker;if(N.width<I.requirements.minWidth||N.height<I.requirements.minHeight)throw new b0j(I.requirements.minWidth,I.requirements.minHeight);}catch(d){if(d instanceof b0j){var U;_.Pw(q.hostElement,"yt-image-selection-error-action",[(U=q.data)==null?void 0:U.imageDimensionErrorMessage]);q.logImageDimensionErrorVe()}else d instanceof
Error?_.vm(d):(I=new _.fv(JSON.stringify(d)),_.vm(I));q.onCancelTap()}q.showPopup()};
N.onerror=function(){var I;_.Pw(q.hostElement,"yt-image-selection-error-action",[(I=q.data)==null?void 0:I.genericImageLoadErrorMessage]);q.onCancelTap()};
return _.H(Q,hnq(q.imageEditorCanvas,n),2)}q.imageEditor=Q.yieldResult;q.updatePositionOfAllCorners();q.addEventListeners(q.imageEditor);_.HI(Q)})},!1);
y.readAsDataURL(w);_.jv(G,0);break;case 2:e=_.nm(G),e instanceof HB?_.Pw(q.hostElement,"yt-image-selection-error-action",[(t=q.data)==null?void 0:t.imageSizeErrorMessage]):(e instanceof Error?_.vm(e):_.bD(new _.fv(JSON.stringify(e))),_.Pw(q.hostElement,"yt-image-selection-error-action",[(X=q.data)==null?void 0:X.genericImageLoadErrorMessage])),q.onCancelTap(),_.HI(G)}})};
_.k.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var q=_.N2(_.Qz(),{veType:232707,visualElement:_.oV(232707)});q&&(q={visualElement:q},_.sO().reportShown(q))}};
_.k.handleImageSelectionErrorAction=function(q){this.isPlaylistThumbnail&&_.lq7(this.hostElement,q)};
_.k.convertToImageFormatBundle=function(q){var w=this,u,y,e;return _.F(function(t){switch(t.nextAddress){case 1:return u=q.toDataURL(w.outputMimeType,1),_.H(t,n1V(u),2);case 2:y=t.yieldResult;_.tD(t,3);gVm(w.imageChecker,y);_.jv(t,4);break;case 3:e=_.nm(t);if(!(e instanceof HB))throw e;_.Y8(new _.fv("Output size is bigger than input size for image",w.mimeType,w.outputMimeType,y.size));u=q.toDataURL("image/jpeg",.95);return _.H(t,n1V(u),6);case 6:y=t.yieldResult;case 4:return t.return({dataUrl:u,imageFile:y})}})};
_.k.handleUploadImageToScottyCommand=function(q){var w=this,u,y,e,t,X,G,n,N,Q,I;return _.F(function(U){switch(U.nextAddress){case 1:if(!w.imageEditor||!_.C(q,A3H))return U.return();u=_.C(q,A3H).scottyUploadUrl;if(!u){var d=new _.fv("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.vm(d);return U.return()}_.tD(U,2);w.setLoadingState();y=w.imageEditor.crop(!1,!1);return _.H(U,w.convertToImageFormatBundle(y),4);case 4:return e=U.yieldResult,_.H(U,Xwq(e.imageFile,u),5);case 5:t=
U.yieldResult;((X=w.data)==null?0:X.onUploadEndpoint)?(G=w.buildUploadServiceEndpoint(t),w.ytComponentBehavior.resolveCommand(G),n=_.C(G,_.AO),((N=n)==null?0:N.params)?w.closePopup():w.resetFileSelector()):(_.Pw(w.hostElement,"yt-image-updated-action",[e.dataUrl,t]),w.closePopup());_.jv(U,0);break;case 2:Q=_.nm(U),w.setErrorState((I=w.data)==null?void 0:I.uploadErrorMessage),Q instanceof Error?_.vm(Q):(d=new _.fv(JSON.stringify(Q)),_.vm(d)),_.HI(U)}})};
_.k.buildUploadServiceEndpoint=function(q){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",q),this.data.onUploadEndpoint):null};
_.k.dataChanged=function(){var q=this,w;return _.F(function(u){if(u.nextAddress==1){if(!q.data||!q.canvasElement)return u.return();q.data.imageRatio&&q.data.minImageCropWidth||_.bD(new _.fv("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));w=function(y,e){return q.data.imageType==="IMAGE_TYPE_AVATAR"?new W3V(y,e,q.data.imageRatio,[q.data.minImageCropWidth,q.data.minImageCropWidth/q.data.imageRatio],q.hostElement):new WB(y,e,q.data.imageRatio,[q.data.minImageCropWidth,
q.data.minImageCropWidth/q.data.imageRatio],void 0,q.hostElement,8,!1)};
q.imageEditorCanvas=new EV4(q.canvasElement,w);return q.data.url?_.H(u,hnq(q.imageEditorCanvas,q.data.url),3):(q.hideContainer=!0,q.openFileSelector(),u.jumpTo(0))}q.imageEditor=u.yieldResult;q.showPopup();q.addEventListeners(q.imageEditor);_.HI(u)})};
_.k.addEventListeners=function(q){this.removeEventListeners();var w=function(e){Rnx(q,e)};
this.JSC$18471_mouseDownEvent=w;var u=function(e){cR4(q,e)};
this.JSC$18471_mouseMoveEvent=u;var y=function(){SpH(q)};
this.JSC$18471_mouseUpEvent=y;this.topLeftCorner.addEventListener("mousedown",w);this.topLeftCorner.addEventListener("mousemove",u);this.topLeftCorner.addEventListener("mouseup",y);this.topRightCorner.addEventListener("mousedown",w);this.topRightCorner.addEventListener("mousemove",u);this.topRightCorner.addEventListener("mouseup",y);this.bottomLeftCorner.addEventListener("mousedown",w);this.bottomLeftCorner.addEventListener("mousemove",u);this.bottomLeftCorner.addEventListener("mouseup",y);this.bottomRightCorner.addEventListener("mousedown",
w);this.bottomRightCorner.addEventListener("mousemove",u);this.bottomRightCorner.addEventListener("mouseup",y)};
_.k.removeEventListeners=function(){this.JSC$18471_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18471_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18471_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18471_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18471_mouseDownEvent));this.JSC$18471_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18471_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18471_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18471_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18471_mouseMoveEvent));this.JSC$18471_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18471_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18471_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18471_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18471_mouseUpEvent))};
_.k.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var q=document.activeElement;q&&q.shadowRoot&&q.shadowRoot.activeElement;)q=q.shadowRoot.activeElement;switch(q){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};
_.k.updatePositionOfCorner=function(q,w){var u=q.y-w.offsetHeight/2+4;w.style.left=q.x-w.offsetWidth/2+16+"px";w.style.top=u+"px"};
_.k.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var q=_.P([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),w=q.next();!w.done;w=q.next()){w=w.value;var u=MmK(this.imageEditor,w.corner);this.updatePositionOfCorner(u,w.div)}};
_.k.onLeft=function(q){this.imageEditor&&this.setFocusInImageEditor()&&(BTh(this.imageEditor,0),this.updatePositionOfAllCorners(),q.preventDefault())};
_.k.onRight=function(q){this.imageEditor&&this.setFocusInImageEditor()&&(BTh(this.imageEditor,1),this.updatePositionOfAllCorners(),q.preventDefault())};
_.k.onUp=function(q){this.imageEditor&&this.setFocusInImageEditor()&&(BTh(this.imageEditor,2),this.updatePositionOfAllCorners(),q.preventDefault())};
_.k.onDown=function(q){this.imageEditor&&this.setFocusInImageEditor()&&(BTh(this.imageEditor,3),this.updatePositionOfAllCorners(),q.preventDefault())};
_.k.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.k.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.x$.Object.defineProperties(s_.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&NHK.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var q,w,u;((w=this.data)==null?0:w.imageRatio)&&((u=this.data)==null?0:u.minImageCropWidth)?q={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:q=sP6;return new YpA(q)}}});
s_.prototype.updatePositionOfAllCorners=s_.prototype.updatePositionOfAllCorners;s_.prototype.dataChanged=s_.prototype.dataChanged;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],s_.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],s_.prototype,"ytComponentBehavior",void 0);_.c([_.D(_.IZ),_.h("design:type",Object)],s_.prototype,"ironA11yKeysBehavior",void 0);
_.c([_.Wj("#canvas"),_.h("design:type",HTMLCanvasElement)],s_.prototype,"canvasElement",void 0);_.c([_.Wj("#file-selector"),_.h("design:type",HTMLInputElement)],s_.prototype,"fileSelector",void 0);_.c([_.Wj("#top-left-corner"),_.h("design:type",HTMLDivElement)],s_.prototype,"topLeftCorner",void 0);_.c([_.Wj("#top-right-corner"),_.h("design:type",HTMLDivElement)],s_.prototype,"topRightCorner",void 0);
_.c([_.Wj("#bottom-left-corner"),_.h("design:type",HTMLDivElement)],s_.prototype,"bottomLeftCorner",void 0);_.c([_.Wj("#bottom-right-corner"),_.h("design:type",HTMLDivElement)],s_.prototype,"bottomRightCorner",void 0);_.c([_.v(),_.h("design:type",Object)],s_.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],s_.prototype,"errorMessage",void 0);_.c([_.v(),_.h("design:type",Object)],s_.prototype,"isLoading",void 0);_.c([_.v(),_.h("design:type",Object)],s_.prototype,"hideContainer",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.h("design:type",Boolean)],s_.prototype,"isPlaylistThumbnail",void 0);_.c([_.I9("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],s_.prototype,"dataChanged",null);_.c([_.Gm("image-updated"),_.Gm("yt-refit"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],s_.prototype,"updatePositionOfAllCorners",null);
s_=_.c([_.JM({is:"yt-image-editor-renderer",disableElementRegistration:!0})],s_);
_.R(s_,"yt-image-editor-renderer",function(){if(vV6===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;$Pc===void 0&&($Pc=document.createElement("template"));var y=$Pc;u.call(w,y.content.cloneNode(!0),q.content.firstChild);vV6=q}q=vV6;return q},{mode:2});var QPT;var Icx;var Ny=function(){return _.Y.apply(this,arguments)||this};
_.O(Ny,_.Y);Ny.prototype.updateMinutesFromBinding=function(q){this.handleMinutesChanged&&this.handleMinutesChanged(q)};
Ny.prototype.updateSecondsFromBinding=function(q){this.handleSecondsChanged&&this.handleSecondsChanged(q)};
Ny.prototype.updateDescriptionFromBinding=function(q){this.handleDescriptionChanged&&this.handleDescriptionChanged(q)};
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],Ny.prototype,"ytComponentBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ny.prototype,"data",void 0);_.c([_.v(),_.h("design:type",String)],Ny.prototype,"minutes",void 0);_.c([_.v(),_.h("design:type",String)],Ny.prototype,"seconds",void 0);_.c([_.v(),_.h("design:type",String)],Ny.prototype,"description",void 0);_.c([_.v(),_.h("design:type",Function)],Ny.prototype,"handleMinutesChanged",void 0);
_.c([_.v(),_.h("design:type",Function)],Ny.prototype,"handleSecondsChanged",void 0);_.c([_.v(),_.h("design:type",Function)],Ny.prototype,"handleDescriptionChanged",void 0);_.c([_.v(),_.h("design:type",Number)],Ny.prototype,"characterLimit",void 0);_.c([_.v(),_.h("design:type",Number)],Ny.prototype,"textNumRows",void 0);Ny=_.c([_.JM({is:"yt-report-details-form-content",disableElementRegistration:!0})],Ny);
_.R(Ny,"yt-report-details-form-content",function(){if(Icx===void 0){var q=document.createElement("template");_.f(q,'\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>');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;QPT===void 0&&(QPT=document.createElement("template"));var y=QPT;u.call(w,y.content.cloneNode(!0),q.content.firstChild);Icx=q}q=Icx;return q},{mode:2});var ifK;var rWT;var Qi=function(){var q=_.Y.apply(this,arguments)||this;q.updateMinutesFromBinding=function(w){q.minutes=w.detail.value};
q.updateSecondsFromBinding=function(w){q.seconds=w.detail.value};
q.updateDescriptionFromBinding=function(w){q.description=w.detail.value};
return q};
_.O(Qi,_.Y);_.k=Qi.prototype;_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.k.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"}}}};
_.k.ready=function(){_.A(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.k.onSubmitYtAction=function(q){var w=q.detail;w.actionName==="yt-service-request"&&(w=w.args[1],w.flagEndpoint&&(q.stopPropagation(),this.refireAction(w)))};
_.k.refireAction=function(q){var w={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(w.vss_id=this.vssId);_.GM(this.hostElement,[q,w]);this.submitDisabled=!0};
_.k.dataChanged=function(){var q=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var w=_.xo();w&&w.getPlayerPromise().then(function(u){var y=u.getOption("cc","track")||u.getOption("captions","track");y&&(q.vssId=y.vss_id);u=u.getCurrentTime();q.minutes=Math.floor(u/60).toString();q.seconds=(Math.floor(u)%60).toString()})};
_.k.updateSubmitButtonState=function(){var q;((q=this.data)==null?0:q.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==="")};
_.k.onYtServiceRequestCompleted=function(){_.Pw(this.hostElement,"yt-close-popup-action")};
_.k.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.x$.Object.defineProperties(Qi.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var q;return((q=this.data)==null?void 0:q.textNumRows)||4}}});
Qi.prototype.onYtServiceRequestError=Qi.prototype.onYtServiceRequestError;Qi.prototype.onYtServiceRequestCompleted=Qi.prototype.onYtServiceRequestCompleted;Qi.prototype.updateSubmitButtonState=Qi.prototype.updateSubmitButtonState;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Qi.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Qi.prototype,"ytRendererBehavior",void 0);
_.c([_.v({observer:"dataChanged"}),_.h("design:type",Object)],Qi.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Boolean)],Qi.prototype,"submitDisabled",void 0);_.c([_.v(),_.h("design:type",String)],Qi.prototype,"minutes",void 0);_.c([_.v(),_.h("design:type",String)],Qi.prototype,"seconds",void 0);_.c([_.v(),_.h("design:type",String)],Qi.prototype,"description",void 0);_.c([_.v(),_.h("design:type",String)],Qi.prototype,"vssId",void 0);
_.c([_.v({value:_.Et("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.h("design:type",Boolean)],Qi.prototype,"isMusic",void 0);_.c([_.Z("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],Qi.prototype,"characterLimit",null);_.c([_.Z("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],Qi.prototype,"textNumRows",null);
_.c([_.I9("minutes","seconds","description","submitDisabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qi.prototype,"updateSubmitButtonState",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qi.prototype,"onYtServiceRequestCompleted",null);
_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qi.prototype,"onYtServiceRequestError",null);Qi=_.c([_.JM({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Qi);
_.R(Qi,"yt-report-details-form-renderer",function(){if(rWT===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;ifK===void 0&&(ifK=document.createElement("template"));var y=ifK;u.call(w,y.content.cloneNode(!0),q.content.firstChild);rWT=q}q=rWT;return q});var UOx;var THa;var C_a;var dOH;var Ij=function(){return _.Y.apply(this,arguments)||this};
_.O(Ij,_.Y);
Ij.prototype.onCheckedChanged_=function(){if(this.data){var q=_.A(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.Pw(this.hostElement,"yt-additional-detail-checkbox-update",[q]):this.data.identifier==="yt-hide-user-checkbox"?_.Pw(this.hostElement,"yt-hide-user-checkbox-update",[q]):q&&this.data.enableCommand?_.Pw(this.hostElement,"yt-modify-report-form-command",[_.C(this.data.enableCommand,$Ah)]):!q&&this.data.disableCommand&&_.Pw(this.hostElement,
"yt-modify-report-form-command",[_.C(this.data.enableCommand,$Ah)])}};
Ij.prototype.onLabelTap_=function(q){q.target.tagName!="A"&&(_.A(this.hostElement).querySelector("#checkbox").checked=!_.A(this.hostElement).querySelector("#checkbox").checked)};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Ij.prototype,"data",void 0);Ij=_.c([_.JM({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Ij);
_.R(Ij,"yt-boolean-form-field-v2-renderer",function(){if(dOH===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;C_a===void 0&&(C_a=document.createElement("template"));var y=C_a;u.call(w,y.content.cloneNode(!0),q.content.firstChild);dOH=q}q=dOH;return q});var iL=function(){var q=_.Y.apply(this,arguments)||this;q.canShowAdditionalDetailCheckbox=!1;q.canShowCheckbox=!1;q.keepDropdownFocusedAfterSelection=!0;return q};
_.O(iL,_.Y);iL.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}}}}};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],iL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],iL.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],iL.prototype,"canShowAdditionalDetailCheckbox",void 0);_.c([_.v(),_.h("design:type",Object)],iL.prototype,"canShowCheckbox",void 0);_.c([_.v(),_.h("design:type",Object)],iL.prototype,"keepDropdownFocusedAfterSelection",void 0);
iL=_.c([_.JM({is:"yt-report-form-modal-content",disableElementRegistration:!0})],iL);
_.R(iL,"yt-report-form-modal-content",function(){if(THa===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;UOx===void 0&&(UOx=document.createElement("template"));var y=UOx;u.call(w,y.content.cloneNode(!0),q.content.firstChild);THa=q}q=THa;return q},{mode:2});var Ofh;var ocq;var rK=function(){var q=_.Y.apply(this,arguments)||this;q.submitting=!1;q.submitButtonDisabled=!0;q.command=null;q.canShowCheckbox=!1;q.canShowAdditionalDetailCheckbox=!1;q.canShowNextButton=!1;q.additionalDetailCheckboxChecked=!1;q.refitJob=0;q.keepDropdownFocusedAfterSelection=!0;q.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 q};
_.O(rK,_.Y);_.k=rK.prototype;_.k.created=function(){this.refitJob=0};
_.k.attached=function(){this.JSC$18494_scroller&&(this.JSC$18494_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18494_scroller.attached&&typeof this.JSC$18494_scroller.attached==="function"&&this.JSC$18494_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.k.dataChanged=function(q){q&&(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,q.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),q.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.k.onYtPopupOpened=function(){var q=_.xo();q&&q.getPlayerPromise().then(function(w){w.pauseVideo()})};
_.k.onYtNavigate=function(q){_.C(q.detail.endpoint,_.$L6)&&(q.stopPropagation(),this.hideReportForm=!0)};
_.k.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.k.onYtServiceRequestCompleted=function(q,w){var u=w.actions;if(u){if(u.length===1&&_.C(u[0],_.Ww)){var y;u=((y=_.C(u[0],_.Ww))==null?void 0:y.commands)||[]}y=0;for(var e=u.length;y<e;y++)_.C(u[y],_.Ou)&&(q.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(u[y]))}if(w.data&&(q=this.get("feedbackResponses",w.data)))for(w=0;w<q.length;w++)if(q[w].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.k.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.k._onDescendantIronResize=function(q){q.stopPropagation();return!1};
_.k.handleReportFormEndpointUpdateAction=function(q){if(q.submitEndpoint){var w=this.command=q.submitEndpoint;w=_.C(w,_.dBa);if(w==null?0:w.additionalDetailCheckboxChecked)w.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else q.submitNavigationEndpoint?(this.command=q.submitNavigationEndpoint,this.toggleSubmitButton(!1)):q.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:q.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;q.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",q));this.refit()};
_.k.handleConfirmDialogCloseAction=function(q){q.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.k.submitButtonDisabledChanged=function(){var q=this.hostElement.parentElement;q&&q.invalidateTabbables&&q.invalidateTabbables()};
_.k.handleModifyReportFormCommand=function(q){q=this.get("action",q);q==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:q==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:q==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:q==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:q==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:q==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.k.updateDialogStyling=function(){var q,w,u,y,e,t=((e=(q=this.data)==null?void 0:(w=q.optionsSupportedRenderers)==null?void 0:(u=w.optionsRenderer)==null?void 0:(y=u.items)==null?void 0:y.length)!=null?e:0)<=2?0:240;_.Pj(this.hostElement,{"--yt-report-form-modal-renderer-min-width":t+"px"})};
_.k.toggleSubmitButton=function(q){this.submitButtonDisabled=!q;this.submitButtonDisabled=q};
_.k.computeSubmitButtonData=function(q,w){var u={};_.C(w,_.$L6)?u.navigationEndpoint=w:u.command=w||void 0;q&&q.buttonRenderer&&_.db.extend(u,q.buttonRenderer);return u};
_.k.computeNextButtonData=function(q,w){var u={};if(!q||!q.buttonRenderer)return u;_.db.extend(u,q.buttonRenderer);if(!w)return u;if(_.C(w,_.$L6))u.navigationEndpoint=KPA(w);else if(u.command=KPA(w),q=_.C(u.command,_.dBa))q.legalCheckboxChecked=!0;return u};
_.k.computeShowNextButton=function(q,w,u){return!!q&&w&&u};
_.k.refit=function(){var q=this;this.refitJob||(this.refitJob=_.pi.addLowPriorityJob(function(){_.t7(q.hostElement,"yt-refit");q.refitJob=0}))};
_.k.handleAdditionalDetailCheckboxUpdateAction=function(q){this.additionalDetailCheckboxChecked=q;_.C(this.command,_.dBa).additionalDetailCheckboxChecked=q};
_.x$.Object.defineProperties(rK,{template:{configurable:!0,enumerable:!0,get:function(){if(ocq===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;Ofh===void 0&&(Ofh=document.createElement("template"));var y=Ofh;u.call(w,y.content.cloneNode(!0),q.content.firstChild);ocq=q}q=ocq;return q}}});
rK.prototype.onYtServiceRequestError=rK.prototype.onYtServiceRequestError;rK.prototype.onYtServiceRequestCompleted=rK.prototype.onYtServiceRequestCompleted;rK.prototype.onYtServiceRequestSent=rK.prototype.onYtServiceRequestSent;rK.prototype.onYtNavigate=rK.prototype.onYtNavigate;rK.prototype.onYtPopupOpened=rK.prototype.onYtPopupOpened;_.c([_.D(_.ux.YtOpenPopupBehavior),_.h("design:type",Object)],rK.prototype,"openPopupBehavior",void 0);
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],rK.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],rK.prototype,"eventForwardingBehavior",void 0);_.c([_.D(_.mF),_.h("design:type",Object)],rK.prototype,"ironResizableBehavior",void 0);_.c([_.v({observer:"dataChanged"}),_.h("design:type",Object)],rK.prototype,"data",void 0);
_.c([_.v(),_.h("design:type",Object)],rK.prototype,"submitting",void 0);_.c([_.v({observer:"submitButtonDisabledChanged"}),_.h("design:type",Object)],rK.prototype,"submitButtonDisabled",void 0);_.c([_.v(),_.h("design:type",Object)],rK.prototype,"command",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],rK.prototype,"hideReportForm",void 0);_.c([_.v(),_.h("design:type",Object)],rK.prototype,"canShowCheckbox",void 0);
_.c([_.v(),_.h("design:type",Object)],rK.prototype,"canShowAdditionalDetailCheckbox",void 0);_.c([_.v(),_.h("design:type",Object)],rK.prototype,"canShowNextButton",void 0);_.c([_.v(),_.h("design:type",Object)],rK.prototype,"additionalDetailCheckboxChecked",void 0);_.c([_.v(),_.h("design:type",Object)],rK.prototype,"refitJob",void 0);_.c([_.v(),_.h("design:type",Object)],rK.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.c([_.Wj("#scroller"),_.h("design:type",Object)],rK.prototype,"JSC$18494_scroller",void 0);_.c([_.Gm("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rK.prototype,"onYtPopupOpened",null);_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],rK.prototype,"onYtNavigate",null);
_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],rK.prototype,"onYtServiceRequestSent",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],rK.prototype,"onYtServiceRequestCompleted",null);
_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],rK.prototype,"onYtServiceRequestError",null);rK=_.c([_.JM({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],rK);var VoT;var fch;var U_=function(){return _.Y.apply(this,arguments)||this};
_.O(U_,_.Y);_.k=U_.prototype;_.k.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.k.onVisible=function(){if(_.T("web_ephemeral_actions_focus")){var q,w;(w=_.tG().resolve(_.kF(_.XH)))==null||w.enqueue({label:_.lA((q=this.data)==null?void 0:q.messageTitle),elementToFocus:this.hostElement})}};
_.k.onThumbnailLoaded=function(){_.t7(this.hostElement,"yt-refit")};
_.k.onDismissTap=function(){_.Pw(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.k.computeAlternateIcon=function(q){return q?q==="BACKSTAGE_ARTWORK"?"backstage:artwork":q:null};
_.k.computeFontFamily=function(q){return q==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.k.computeBackgroundStyle=function(q,w){if(q=this.computeBackgroundImage(q,w))if(q=_.uv(q.thumbnails))return'background-image: url("'+q+'");'};
_.k.computeHasFullHeightImage=function(q){return!(!(q&&q.thumbnails&&q.thumbnails.length>0)||this.modern)};
_.k.isModernStyle=function(q){return q.style==="STYLE_MODERN"};
_.k.computeIcon=function(q,w){if(q&&q.icon)return w?q.iconDark:q.icon};
_.k.computeBackgroundImage=function(q,w){if(q&&q.backgroundImage)return w?q.backgroundImageDark:q.backgroundImage};
_.k.computeLogo=function(q,w){if(q&&q.logo)return w?q.logoDark:q.logo};
_.k.computeShouldShowModernIcon=function(q,w){return q&&!!w};
_.k.getLogoContainerClassName=function(q){return this.logoWithPadding(q)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.k.getLogoImageId=function(q){return this.logoWithPadding(q)?"mealbar-logo-with-padding":"mealbar-logo"};
_.k.logoWithPadding=function(q){var w,u,y;return(q=(w=this.computeLogo(q,this.isDarkTheme))==null?void 0:(u=w.thumbnails)==null?void 0:(y=u[0])==null?void 0:y.height)&&q%31===0?!0:!1};
U_.prototype.onThumbnailLoaded=U_.prototype.onThumbnailLoaded;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],U_.prototype,"ytRendererBehavior",void 0);_.c([_.v({}),_.h("design:type",Object)],U_.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.h("design:type",Boolean)],U_.prototype,"modern",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],U_.prototype,"isDarkTheme",void 0);
_.c([_.v({computed:"computeIcon(data, isDarkTheme)"}),_.h("design:type",Object)],U_.prototype,"icon",void 0);_.c([_.v({computed:"computeLogo(data, isDarkTheme)"}),_.h("design:type",Object)],U_.prototype,"logo",void 0);_.c([_.v({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.h("design:type",Object)],U_.prototype,"backgroundStyle",void 0);_.c([_.v({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.h("design:type",Object)],U_.prototype,"alternateIcon",void 0);
_.c([_.v({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.h("design:type",Boolean)],U_.prototype,"hasFullHeightImage",void 0);_.c([_.v({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.h("design:type",Boolean)],U_.prototype,"useYoutubeSans",void 0);_.c([_.v({computed:"computeShouldShowModernIcon(modern, icon)"}),_.h("design:type",Boolean)],U_.prototype,"shouldShowModernIcon",void 0);
_.c([_.Gm("yt-img-shadow-loaded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],U_.prototype,"onThumbnailLoaded",null);U_=_.c([_.JM({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],U_);
_.R(U_,"yt-mealbar-promo-renderer",function(){if(fch===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;VoT===void 0&&(VoT=document.createElement("template"));var y=VoT;u.call(w,y.content.cloneNode(!0),q.content.firstChild);fch=q}q=fch;return q},{mode:2});var mOh;var AWm;var TY=function(){return _.Y.apply(this,arguments)||this};
_.O(TY,_.Y);_.k=TY.prototype;_.k.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]]"}}}}}};
_.k.computeHasButtons_=function(q){return!(!q.dismissButton&&!q.acceptButton)};
_.k.computeStyle_=function(q){return q||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.k.observeImpressionEndpoints_=function(){var q=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(w){w.clickTrackingParams&&delete w.clickTrackingParams;_.GM(q.hostElement,[w])})};
_.k.onTap_=function(){_.Pw(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
TY.prototype.observeImpressionEndpoints_=TY.prototype.observeImpressionEndpoints_;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],TY.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],TY.prototype,"ytEventForwardingBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],TY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],TY.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],TY.prototype,"positionType",void 0);_.c([_.v({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.h("design:type",Boolean)],TY.prototype,"hasButtons_",void 0);_.c([_.v({value:function(){return this.onTap_.bind(this)}}),
_.h("design:type",Function)],TY.prototype,"boundOnTap_",void 0);_.c([_.v({value:{style:"mono-inverse"}}),_.h("design:type",Object)],TY.prototype,"buttonOverride",void 0);_.c([_.nL("data.promoConfig.impressionEndpoints"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],TY.prototype,"observeImpressionEndpoints_",null);TY=_.c([_.JM({is:"yt-tooltip-renderer",disableElementRegistration:!0})],TY);
_.R(TY,"yt-tooltip-renderer",function(){if(AWm===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;mOh===void 0&&(mOh=document.createElement("template"));var y=mOh;u.call(w,y.content.cloneNode(!0),q.content.firstChild);AWm=q}q=AWm;return q},{mode:2});var JW6;var z7q;var acK={},DO6=(acK.WEB_REMIX="music.youtube.com",acK),C8=function(){var q=_.Y.apply(this,arguments)||this;q.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return q};
_.O(C8,_.Y);_.k=C8.prototype;_.k.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.k.created=function(){this.embedHost_=DO6[_.Et("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.k.ready=function(){_.A(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.k.computeEmbedCode_=function(q,w,u,y,e){if(!q)return"";var t=q.videoId,X=q.fullListId,G=[];q.attributionId&&G.push("si="+q.attributionId);y||G.push("controls=0");u&&Number(w)>0&&G.push("start="+w);X&&(t="videoseries",G.push("list="+X));u="https://"+(e?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+t;q.clipId&&(G.push("clip="+q.clipId),G.push("clipt="+q.clipTiming));w=G.length>0?u+"?"+G.join("&amp;"):u;q.encryptedEmbedConfig&&G.push("embed_config="+JSON.stringify({enc:q.encryptedEmbedConfig}));
G=G.length>0?u+"?"+G.join("&amp;"):u;_.T("web_sharing_embed_preview_killswitch")?_.A(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(G,q.previewWidth||854,q.previewHeight||480):(_.oJ(this.videoPreviewContainer),_.A(this.videoPreviewContainer).appendChild(this.buildIframeElement(G)));return this.getEmbedCode_(w,q.width||560,q.height||315)};
_.k.buildIframeElement=function(q){var w=document.createElement("iframe"),u,y;w.width=""+((y=(u=this.data)==null?void 0:u.previewWidth)!=null?y:854);var e,t;w.height=""+((t=(e=this.data)==null?void 0:e.previewHeight)!=null?t:480);_.rhf(w,2,q);w.title="YouTube video player";w.frameBorder="0";w.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";w.referrerPolicy="strict-origin-when-cross-origin";w.allowFullscreen=!0;return w};
_.k.computeIsSquareAspectRatio_=function(q){return q.previewHeight&&q.previewWidth?q.previewHeight==q.previewWidth:!1};
_.k.computeShowEmbedOptions_=function(q){return!!q.enablePrivacyModeOptionLabel||!!q.showPlayerControlsOptionLabel};
_.k.getEmbedCode_=function(q,w,u){return'<iframe width="'+w+'" height="'+u+'" src="'+q+'" 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>'};
_.k.handleSignalActionCopyShareEmbedUrl_=function(){_.A(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.k.handleSetTimestamp_=function(q){this.startAtTimeStamp_=(this.startAtChecked_=q.isSet)?q.timestamp:0};
_.k.closePanel_=function(){_.Pw(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.k.onEmbedCode_=function(){_.A(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.k.onYtPopupClosed_=function(){_.oJ(_.A(this.hostElement).querySelector("#video-preview"))};
_.k.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.C(this.data.actionButtons[0],_.aB)&&this.ytRendererBehavior.logExplicitClick(_.C(this.data.actionButtons[0],_.aB))};
C8.prototype.onYtPopupClosed_=C8.prototype.onYtPopupClosed_;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],C8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],C8.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],C8.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],C8.prototype,"data",void 0);
_.c([_.v({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.h("design:type",String)],C8.prototype,"embedCode_",void 0);_.c([_.v({value:!0}),_.h("design:type",Boolean)],C8.prototype,"isPlayerControlsOptionChecked_",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],C8.prototype,"isPrivacyModeOptionChecked_",void 0);_.c([_.v({value:!1,notify:!0}),_.h("design:type",Boolean)],C8.prototype,"startAtChecked_",void 0);
_.c([_.v({value:0}),_.h("design:type",Number)],C8.prototype,"startAtTimeStamp_",void 0);_.c([_.v({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],C8.prototype,"isSquareAspectRatio_",void 0);_.c([_.Wj("#video-preview"),_.h("design:type",HTMLElement)],C8.prototype,"videoPreviewContainer",void 0);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],C8.prototype,"onYtPopupClosed_",null);
C8=_.c([_.JM({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],C8);
_.R(C8,"yt-sharing-embed-renderer",function(){if(z7q===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;JW6===void 0&&(JW6=document.createElement("template"));var y=JW6;u.call(w,y.content.cloneNode(!0),q.content.firstChild);z7q=q}q=z7q;return q},{mode:2});var ZfA={};
ZfA.YtUnlimitedFamilyInterstitialBehavior=[_.ux.YtOpenPopupBehavior,_.hm.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(q){q=_.e3x(_.he(q),"yt-button-renderer");return q?q.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(q){this.dialogHistory_.push(q)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var q=this.popFromHistory();if(q){var w={openPopupAction:{popupType:"DIALOG",popup:{}}};w.openPopupAction.popup[q.renderer]=q.data;this.showingPreviousDialog_=!0;this.openPopup(w)}},
handleOpenPopupAction_:function(q){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var w=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(y){return!!q.openPopupAction.popup[y]}),u=this.getElementName_();
w&&this.data&&(this.pushToHistory({renderer:u,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(q){if(q=_.C(q,Gwq))this.loading=!0,_.Pw(this.hostElement,"yt-open-create-family-dialog",[q,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var q=this.hostElement.nodeName.split("-").slice(1).map(function(w){return""+w[0].toUpperCase()+w.slice(1).toLowerCase()}).join("");
return q[0].toLowerCase()+q.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var paB;var $OV;var dK=function(){return _.Y.apply(this,arguments)||this};
_.O(dK,_.Y);_.k=dK.prototype;_.k.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}}}}}};
_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Pw(this.hostElement,"yt-register-create-family-dialog");_.A(this.hostElement).querySelector("#thumbnail").onShow()};
_.k.fireOnCloseCommand_=function(){var q;((q=this.data)==null?0:q.onCloseCommand)&&_.nq(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.k.onYtServiceRequestSent_=function(q,w){w&&w.endpoint&&_.C(w.endpoint,_.NU)||(this.loading=!0)};
_.k.onYtServiceRequestCompleted_=function(){var q=this.hostElement.parentElement;q.close&&q.close();this.loading=!1};
_.k.openPopupHandler_=function(q){if(q.detail==this){var w;((w=this.data)==null?0:w.onOpenCommands)&&_.nq(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.k.closePopupHandler_=function(q,w){this.fireOnCloseCommand_();if(w&&w.canceled===!0||w&&w.canceled===!1&&w.confirmed===!1){var u;((u=this.data)==null?0:u.onDismissCommands)&&_.nq(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.k.dataChanged_=function(){this.loading=!1};
dK.prototype.dataChanged_=dK.prototype.dataChanged_;dK.prototype.closePopupHandler_=dK.prototype.closePopupHandler_;dK.prototype.openPopupHandler_=dK.prototype.openPopupHandler_;dK.prototype.onYtServiceRequestCompleted_=dK.prototype.onYtServiceRequestCompleted_;dK.prototype.onYtServiceRequestSent_=dK.prototype.onYtServiceRequestSent_;_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],dK.prototype,"ytEventForwardingBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],dK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(ZfA.YtUnlimitedFamilyInterstitialBehavior),_.h("design:type",Object)],dK.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],dK.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],dK.prototype,"loading",void 0);_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],dK.prototype,"onYtServiceRequestSent_",null);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],dK.prototype,"onYtServiceRequestCompleted_",null);
_.c([_.Gm("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],dK.prototype,"openPopupHandler_",null);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],dK.prototype,"closePopupHandler_",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dK.prototype,"dataChanged_",null);
dK=_.c([_.JM({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],dK);
_.R(dK,"yt-unlimited-family-message-interstitial-renderer",function(){if($OV===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;paB===void 0&&(paB=document.createElement("template"));var y=paB;u.call(w,y.content.cloneNode(!0),q.content.firstChild);$OV=q}q=$OV;return q},{mode:2});var vcT;var bfj;var O_=function(){return _.Y.apply(this,arguments)||this};
_.O(O_,_.Y);O_.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"}}}};
O_.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.A(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(q){q.onShow()});
_.A(this.hostElement).querySelector("#main-thumbnail").onShow()};
O_.prototype.onButtonTap_=function(q){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(q)};
O_.prototype.computeMainThumbnailWidth_=function(q){return q&&q.length!==0?72:96};
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],O_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],O_.prototype,"ytRendererBehavior",void 0);_.c([_.D(ZfA.YtUnlimitedFamilyInterstitialBehavior),_.h("design:type",Object)],O_.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],O_.prototype,"data",void 0);
_.c([_.v({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.h("design:type",Number)],O_.prototype,"mainThumbnailWidth_",void 0);_.c([_.v({value:function(){return this.onButtonTap_.bind(this)}}),
_.h("design:type",Function)],O_.prototype,"boundButtonTap_",void 0);O_=_.c([_.JM({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],O_);
_.R(O_,"yt-unlimited-family-profile-interstitial-renderer",function(){if(bfj===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;vcT===void 0&&(vcT=document.createElement("template"));var y=vcT;u.call(w,y.content.cloneNode(!0),q.content.firstChild);bfj=q}q=bfj;return q},{mode:2});var YWK;var gch;var oj=function(){var q=_.Y.apply(this,arguments)||this;q.sliderAriaValueText_=null;q.selectedIndex_=0;q.messages={PAUSE_SLIDER:_.ID("PAUSE_SLIDER",void 0,"Pause Duration")};return q};
_.O(oj,_.Y);_.k=oj.prototype;_.k.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_]]"}}}}}};
_.k.onPopupOpened_=function(q){q.detail==this&&_.T("enable_premium_voluntary_pause")&&(_.Pw(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.k.setDialogData=function(q){this.data=q;this.resetSlider_()};
_.k.dataChanged_=function(){this.data&&this.resetSlider_()};
_.k.onSubmitTap_=function(){if(this.data.confirmCommand){var q=this.data.confirmCommand;_.C(q,_.$YF)&&_.GM(this.hostElement,[q,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.k.onExitButtonTap_=function(){_.Pw(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.k.closePopupHandler_=function(q,w){(w&&w.canceled===!0||w.canceled===!1&&w.confirmed===!1)&&this.handleOnDismissCommands_()};
_.k.onSliderChange_=function(){this.selectedIndex_=_.A(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.k.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.k.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.k.resetSlider_=function(){if(this.data){var q=this.data.defaultEndOptionIndex||0,w=_.A(this.hostElement).querySelector("#id-pause-slider");if(w.immediateValue<q)for(;w.immediateValue!=q;)w.increment();else if(q<w.immediateValue)for(;w.immediateValue!=q;)w.decrement();this.selectedIndex_=q;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.k.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.nq(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.k.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.nq(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.k.onYtServiceRequestSent=function(){this.loading=!0};
_.k.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
oj.prototype.onYtServiceRequestCompleted=oj.prototype.onYtServiceRequestCompleted;oj.prototype.onYtServiceRequestSent=oj.prototype.onYtServiceRequestSent;oj.prototype.closePopupHandler_=oj.prototype.closePopupHandler_;oj.prototype.dataChanged_=oj.prototype.dataChanged_;oj.prototype.onPopupOpened_=oj.prototype.onPopupOpened_;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],oj.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],oj.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],oj.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],oj.prototype,"loading",void 0);_.c([_.v(),_.h("design:type",Number)],oj.prototype,"selectIndexMax_",void 0);_.c([_.v(),_.h("design:type",Object)],oj.prototype,"selectedData_",void 0);
_.c([_.v(),_.h("design:type",Object)],oj.prototype,"sliderAriaValueText_",void 0);_.c([_.v({value:function(){return this.onSubmitTap_.bind(this)}}),
_.h("design:type",Function)],oj.prototype,"onButtonTap_",void 0);_.c([_.v({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.h("design:type",Function)],oj.prototype,"onSecondaryTap_",void 0);_.c([_.v(),_.h("design:type",Object)],oj.prototype,"messages",void 0);_.c([_.Gm("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],oj.prototype,"onPopupOpened_",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oj.prototype,"dataChanged_",null);
_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],oj.prototype,"closePopupHandler_",null);_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],oj.prototype,"onYtServiceRequestSent",null);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],oj.prototype,"onYtServiceRequestCompleted",null);oj=_.c([_.JM({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],oj);
_.R(oj,"yt-unplugged-pause-membership-dialog-renderer",function(){if(gch===void 0){var q=document.createElement("template");_.f(q,'\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>');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;YWK===void 0&&(YWK=document.createElement("template"));var y=YWK;u.call(w,y.content.cloneNode(!0),q.content.firstChild);gch=q}q=gch;return q},{mode:2});var EcB;var R7q;var Vi=function(){return _.Y.apply(this,arguments)||this};
_.O(Vi,_.Y);Vi.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.zW("vcBalanceRenderer")}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Vi.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Vi.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],Vi.prototype,"data",void 0);Vi=_.c([_.JM({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],Vi);
_.R(Vi,"yt-vc-offer-layout-header-renderer",function(){if(R7q===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;EcB===void 0&&(EcB=document.createElement("template"));var y=EcB;u.call(w,y.content.cloneNode(!0),q.content.firstChild);R7q=q}q=R7q;return q},{mode:2});var cWH;var SWm;var h76;var jPK;var f8=function(){return _.Y.apply(this,arguments)||this};
_.O(f8,_.Y);f8.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.x$.Object.defineProperties(f8.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)}}});
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],f8.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],f8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.Okr.YtTappableItemBehavior),_.h("design:type",Object)],f8.prototype,"ytTappableItemBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],f8.prototype,"data",void 0);
_.c([_.v({reflectToAttribute:!0}),_.Z("data.accessibilityText"),_.h("design:type",String),_.h("design:paramtypes",[])],f8.prototype,"ariaLabel",null);_.c([_.v({reflectToAttribute:!0}),_.Z("data.style"),_.h("design:type",String),_.h("design:paramtypes",[])],f8.prototype,"vcOfferStyle",null);_.c([_.Z("data.style","data.titleText"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],f8.prototype,"showTitleText",null);f8=_.c([_.JM({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],f8);
_.R(f8,"yt-vc-offer-renderer",function(){if(jPK===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;h76===void 0&&(h76=document.createElement("template"));var y=h76;u.call(w,y.content.cloneNode(!0),q.content.firstChild);jPK=q}q=jPK;return q},{mode:2});var mA=function(){return _.Y.apply(this,arguments)||this};
_.O(mA,_.Y);mA.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}}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],mA.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],mA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],mA.prototype,"data",void 0);mA=_.c([_.JM({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],mA);
_.R(mA,"yt-vc-offer-layout-renderer",function(){if(SWm===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;cWH===void 0&&(cWH=document.createElement("template"));var y=cWH;u.call(w,y.content.cloneNode(!0),q.content.firstChild);SWm=q}q=SWm;return q},{mode:2});var lcc;var L3j;var MoB;var K3q;var An=function(){return _.Y.apply(this,arguments)||this};
_.O(An,_.Y);An.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}}}}}};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],An.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],An.prototype,"data",void 0);An=_.c([_.JM({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],An);
_.R(An,"yt-ypc-offers-modal-top-bar-renderer",function(){if(K3q===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;MoB===void 0&&(MoB=document.createElement("template"));var y=MoB;u.call(w,y.content.cloneNode(!0),q.content.firstChild);K3q=q}q=K3q;return q},{mode:2});var Jn=function(){return _.Y.apply(this,arguments)||this};
_.O(Jn,_.Y);Jn.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"}}}}};
Jn.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
Jn.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var q=this.scrollable;q.attached&&typeof q.attached==="function"&&q.attached()};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],Jn.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],Jn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.Wj("#scrollable"),_.h("design:type",Object)],Jn.prototype,"scrollable",void 0);_.c([_.v(),_.h("design:type",Object)],Jn.prototype,"data",void 0);Jn=_.c([_.JM({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],Jn);
_.R(Jn,"yt-ypc-offers-modal-renderer",function(){if(L3j===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;lcc===void 0&&(lcc=document.createElement("template"));var y=lcc;u.call(w,y.content.cloneNode(!0),q.content.firstChild);L3j=q}q=L3j;return q},{mode:2});var BHm;var xOx;var zY=function(){return _.Y.apply(this,arguments)||this};
_.O(zY,_.Y);_.k=zY.prototype;_.k.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}}}}}};
_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.A(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.k.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.Pw(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.k.onYtPopupOpened_=function(q,w){(w==null?void 0:w.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.nq(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.k.onYtPopupClosed_=function(q,w){this.continueButtonTapped||w&&(w.canceled===!0||w.canceled===!1&&w.confirmed===!1)&&this.data.onDismissCommands&&_.nq(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.k.onYtServiceRequestError_=function(q){this.set("showSpinner",!1);_.xH(this.hostElement,q.detail.error.message)};
_.k.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.T("enable_ypc_spinners")?_.Pw(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
zY.prototype.onYtServiceRequestError_=zY.prototype.onYtServiceRequestError_;zY.prototype.onYtPopupClosed_=zY.prototype.onYtPopupClosed_;zY.prototype.onYtPopupOpened_=zY.prototype.onYtPopupOpened_;zY.prototype.onYtServiceRequestCompleted_=zY.prototype.onYtServiceRequestCompleted_;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],zY.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],zY.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.v(),_.h("design:type",Object)],zY.prototype,"data",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],zY.prototype,"showSpinner",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],zY.prototype,"continueButtonTapped",void 0);_.c([_.v({value:function(){return this.onContinueTapped_.bind(this)}}),
_.h("design:type",Function)],zY.prototype,"bindOnContinueTapped_",void 0);_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],zY.prototype,"onYtServiceRequestCompleted_",null);_.c([_.Gm("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],zY.prototype,"onYtPopupOpened_",null);
_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],zY.prototype,"onYtPopupClosed_",null);_.c([_.Gm("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],zY.prototype,"onYtServiceRequestError_",null);zY=_.c([_.JM({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],zY);
_.R(zY,"yt-ypc-upgrade-dialog-renderer",function(){if(xOx===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;BHm===void 0&&(BHm=document.createElement("template"));var y=BHm;u.call(w,y.content.cloneNode(!0),q.content.firstChild);xOx=q}q=xOx;return q},{mode:2});var qSA;var wHK;var aj=function(){return _.Y.apply(this,arguments)||this};
_.O(aj,_.Y);aj.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
aj.prototype.computeHasButtons_=function(q){return!(!q.dismissButton&&!q.confirmButton)};
aj.prototype.computeStyle_=function(q){return q||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],aj.prototype,"ytEventForwardingBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],aj.prototype,"ytRendererstamperBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],aj.prototype,"data",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],aj.prototype,"positionType",void 0);
_.c([_.v({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.h("design:type",Boolean)],aj.prototype,"hasButtons_",void 0);_.c([_.v({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.h("design:type",Boolean)],aj.prototype,"style_",void 0);aj=_.c([_.JM({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],aj);
_.R(aj,"yt-bubble-hint-renderer",function(){if(wHK===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;qSA===void 0&&(qSA=document.createElement("template"));var y=qSA;u.call(w,y.content.cloneNode(!0),q.content.firstChild);wHK=q}q=wHK;return q},{mode:2});var uWc;var yAa;var DA=function(){var q=_.q4.apply(this,arguments)||this;q.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return q};
_.O(DA,_.q4);_.k=DA.prototype;_.k.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.k.attached=function(){var q=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){q.$.thumbnail.onShow();q.$["header-image"].onShow()})};
_.k.handleCheckBoxUpdateAction_=function(q){this.canShowCheckboxEnabledConfirmButton=q};
_.k.computeUseOverlayForSpinner_=function(q,w){return!!q&&w};
_.k.computeShowSpinner_=function(q,w){return q||!!w};
_.k.fireOnCloseActions_=function(){var q,w=_.P(((q=this.data)==null?void 0:q.onClosedActions)||[]);for(q=w.next();!q.done;q=w.next())this.ytRendererBehavior.resolveCommand(q.value)};
_.k.fireOnOpenCommands_=function(q){var w,u=(w=this.data)==null?void 0:w.onOpenCommands;if(u)for(q.stopImmediatePropagation(),q=_.P(u),w=q.next();!w.done;w=q.next())this.ytRendererBehavior.resolveCommand(w.value)};
_.k.fireOnDismissCommands_=function(q){var w,u=(w=this.data)==null?void 0:w.onDismissCommands;if(u)for(q.stopImmediatePropagation(),q=_.P(u),w=q.next();!w.done;w=q.next())this.ytRendererBehavior.resolveCommand(w.value)};
_.k.openPopupHandler_=function(q){q.detail==this&&this.fireOnOpenCommands_(q)};
_.k.closePopupHandler_=function(q,w){_.X4(this,"yt-confirm-dialog-close-action",[w]);this.fireOnCloseActions_();(w&&w.canceled===!0||w&&w.canceled===!1&&w.confirmed===!1)&&this.fireOnDismissCommands_(q)};
_.k.onHeaderImageChanged_=function(){var q;((q=this.data)==null?0:q.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.k.computeHasHeaderImageWidth_=function(q){return q!=void 0};
_.k.computeHasLoadingMessage=function(q){return!!q};
_.k.onHeaderImageWidthChanged_=function(){var q,w=(q=this.data)==null?void 0:q.headerImageWidth;if(w){if(q=1.25*w*2+w,this.$.main.style.width=q+"px",w=this.$.scroller.firstElementChild)w.style.minWidth=q+"px"}else this.$.main.style.width="100%"};
_.k.onThumbnailChanged_=function(){var q;((q=this.data)==null?0:q.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")};
_.k.onYtNavigate_=function(q){q=_.he(q);q instanceof Node&&_.y6(this.$["confirm-button"]).contains(q)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.k.computePrimaryIsCancel_=function(q){return q};
_.k.computeIsCancelButtonHidden_=function(q){return q.skipCancelButton||!q.cancelButton};
_.k.computeIsCheckboxHidden_=function(q){return!q.checkbox};
_.k.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.k.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.k.onYtServiceRequestCompleted_=function(){var q;((q=this.data)==null?0:q.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.x$.Object.defineProperties(DA,{template:{configurable:!0,enumerable:!0,get:function(){if(yAa===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;uWc===void 0&&(uWc=document.createElement("template"));var y=uWc;u.call(w,y.content.cloneNode(!0),q.content.firstChild);yAa=q}q=yAa;return q}}});
DA.prototype.onYtServiceRequestCompleted_=DA.prototype.onYtServiceRequestCompleted_;DA.prototype.onYtServiceRequestSent_=DA.prototype.onYtServiceRequestSent_;DA.prototype.onThumbnailLoaded_=DA.prototype.onThumbnailLoaded_;DA.prototype.onYtNavigate_=DA.prototype.onYtNavigate_;DA.prototype.onThumbnailChanged_=DA.prototype.onThumbnailChanged_;DA.prototype.onHeaderImageWidthChanged_=DA.prototype.onHeaderImageWidthChanged_;DA.prototype.onHeaderImageChanged_=DA.prototype.onHeaderImageChanged_;
DA.prototype.closePopupHandler_=DA.prototype.closePopupHandler_;DA.prototype.openPopupHandler_=DA.prototype.openPopupHandler_;_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],DA.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],DA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],DA.prototype,"ytRendererBehavior",void 0);
_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],DA.prototype,"ytEventForwardingBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],DA.prototype,"data",void 0);_.c([_.v({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.h("design:type",Boolean)],DA.prototype,"primaryIsCancel",void 0);_.c([_.v({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.h("design:type",Boolean)],DA.prototype,"isCancelButtonHidden",void 0);
_.c([_.v({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.h("design:type",Boolean)],DA.prototype,"isCheckboxHidden",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],DA.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.c([_.v({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.h("design:type",Boolean)],DA.prototype,"useOverlayForSpinner_",void 0);
_.c([_.v({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.h("design:type",Boolean)],DA.prototype,"showSpinner_",void 0);_.c([_.v({value:!1}),_.h("design:type",Boolean)],DA.prototype,"isActionInProgress_",void 0);_.c([_.v({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.h("design:type",Boolean)],DA.prototype,"hasHeaderImageWidth_",void 0);
_.c([_.v({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.h("design:type",Boolean)],DA.prototype,"hasLoadingMessage",void 0);_.c([_.Gm("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],DA.prototype,"openPopupHandler_",null);_.c([_.Gm("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],DA.prototype,"closePopupHandler_",null);
_.c([_.nL("data.headerImage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],DA.prototype,"onHeaderImageChanged_",null);_.c([_.nL("data.headerImageWidth"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],DA.prototype,"onHeaderImageWidthChanged_",null);_.c([_.nL("data.thumbnail"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],DA.prototype,"onThumbnailChanged_",null);
_.c([_.Gm("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],DA.prototype,"onYtNavigate_",null);_.c([_.Gm("yt-img-shadow-loaded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],DA.prototype,"onThumbnailLoaded_",null);_.c([_.Gm("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.Yo]),_.h("design:returntype")],DA.prototype,"onYtServiceRequestSent_",null);
_.c([_.Gm("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.lv]),_.h("design:returntype")],DA.prototype,"onYtServiceRequestCompleted_",null);DA=_.c([_.JM({is:"yt-confirm-dialog-renderer",noInjection:!0})],DA);var eAV;var kfA;var ZA=function(){return _.Y.apply(this,arguments)||this};
_.O(ZA,_.Y);ZA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.A(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
ZA.prototype.computeConfirmButton_=function(q){var w={text:q.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};q.confirmNavigationEndpoint?w.navigationEndpoint=q.confirmNavigationEndpoint:q.confirmServiceEndpoint&&(w.serviceEndpoint=q.confirmServiceEndpoint);return w};
ZA.prototype.computeShowTitle_=function(q){return!(q==null||!q.title)};
_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],ZA.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],ZA.prototype,"data",void 0);_.c([_.v({computed:"computeShowTitle_(data)"}),_.h("design:type",Boolean)],ZA.prototype,"showTitle",void 0);ZA=_.c([_.JM({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],ZA);
_.R(ZA,"yt-fancy-dismissible-dialog-renderer",function(){if(kfA===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;eAV===void 0&&(eAV=document.createElement("template"));var y=eAV;u.call(w,y.content.cloneNode(!0),q.content.firstChild);kfA=q}q=kfA;return q});var ttA;var PQc;var p8=function(){var q=_.Y.apply(this,arguments)||this;q.spinnerActive=!1;return q};
_.O(p8,_.Y);p8.prototype.created=function(){Aeh(2201)};
p8.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
p8.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
p8.prototype.onIronOverlayClosed=p8.prototype.onIronOverlayClosed;p8.prototype.onIronOverlayOpened=p8.prototype.onIronOverlayOpened;_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],p8.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.RZ),_.h("design:type",Object)],p8.prototype,"tpYtIronOverlayBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],p8.prototype,"data",void 0);_.c([_.v(),_.h("design:type",Object)],p8.prototype,"spinnerActive",void 0);
_.c([_.Gm("iron-overlay-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],p8.prototype,"onIronOverlayOpened",null);_.c([_.Gm("iron-overlay-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],p8.prototype,"onIronOverlayClosed",null);p8=_.c([_.JM({is:"yt-loading-renderer",disableElementRegistration:!0})],p8);
_.R(p8,"yt-loading-renderer",function(){if(PQc===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;ttA===void 0&&(ttA=document.createElement("template"));var y=ttA;u.call(w,y.content.cloneNode(!0),q.content.firstChild);PQc=q}q=PQc;return q},{mode:2});var XHA;var F5x;var $7=function(){var q=_.Y.apply(this,arguments)||this;q.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);q.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);q.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";q.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return q};
_.O($7,_.Y);_.k=$7.prototype;_.k.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.k.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.k.onDarkModeToggledAction=function(q){this.isDarkTheme=q};
_.k.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.k.openPopupHandler_=function(q){q.detail===this.hostElement&&this.hostElement.hidden&&_.Pw(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.k.onDismissButtonTap_=function(){var q;this.closeOnDismissButton_.has(((q=this.data)==null?void 0:q.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Pw(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.k.onAcceptButtonTap_=function(){var q;this.closeOnAcceptButton_.has(((q=this.data)==null?void 0:q.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Pw(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.k.computeHasHeader_=function(q){return!!q.headerBackgroundImage};
_.k.computeLayoutStyle_=function(q){return q};
_.k.computePopupSize_=function(q){return q};
_.k.computeIconType_=function(q){return q.dialogIcon&&q.dialogIcon.iconType?q.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":q.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":q.dialogIcon.iconType:""};
_.k.computeIsLogo_=function(q){return!!q.dialogIcon&&!!q.dialogIcon.iconType&&(q.dialogIcon.iconType==="YOUTUBE_LOGO"||q.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||q.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.k.computeHasCustomLogo=function(q){return!(q==null||!q.headerForegroundImage)};
_.k.computeCustomLogo=function(q,w){if(q!=null&&q.headerForegroundImage)return q.headerForegroundImageDark?w?q.headerForegroundImageDark:q.headerForegroundImage:q.headerForegroundImage};
_.k.computeHeaderBackgroundImage=function(q,w){if(q!=null&&q.headerBackgroundImage)return w&&(q==null?0:q.headerBackgroundImageDark)?q.headerBackgroundImageDark:q.headerBackgroundImage};
_.k.shouldShowIconContainer=function(q,w){return q&&!w};
_.k.shouldShowNonYouTubeIcon=function(q,w){return!q&&!w};
_.k.getLogoImageId=function(q){var w,u,y;return(q=(w=this.computeCustomLogo(q,this.isDarkTheme))==null?void 0:(u=w.thumbnails)==null?void 0:(y=u[0])==null?void 0:y.height)&&q%31===0?"custom-logo-with-padding":"custom-logo"};
$7.prototype.openPopupHandler_=$7.prototype.openPopupHandler_;$7.prototype.dataChanged_=$7.prototype.dataChanged_;_.c([_.D(_.S0.YtRendererstamperBehavior),_.h("design:type",Object)],$7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.c([_.v(),_.h("design:type",Boolean)],$7.prototype,"isDarkTheme",void 0);
_.c([_.v({computed:"computeCustomLogo(data, isDarkTheme)"}),_.h("design:type",Object)],$7.prototype,"customLogo",void 0);_.c([_.v({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.h("design:type",Object)],$7.prototype,"headerBackgroundImage",void 0);_.c([_.v(),_.h("design:type",Object)],$7.prototype,"data",void 0);_.c([_.v({computed:"computeHasHeader_(data)"}),_.h("design:type",Boolean)],$7.prototype,"hasHeader",void 0);
_.c([_.v({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.h("design:type",Object)],$7.prototype,"layoutStyle",void 0);_.c([_.v({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.h("design:type",Object)],$7.prototype,"popupSize",void 0);_.c([_.v({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],$7.prototype,"hasLogo",void 0);
_.c([_.v({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],$7.prototype,"hasCustomLogo",void 0);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$7.prototype,"dataChanged_",null);_.c([_.Gm("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],$7.prototype,"openPopupHandler_",null);
$7=_.c([_.JM({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],$7);
_.R($7,"yt-upsell-dialog-renderer",function(){if(F5x===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;XHA===void 0&&(XHA=document.createElement("template"));var y=XHA;u.call(w,y.content.cloneNode(!0),q.content.firstChild);F5x=q}q=F5x;return q},{mode:2});var Gfq=_.LL(function(q){return _.W("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.W(_.r,{cond:q.title,then:function(w){return _.W("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},w)}}))},"mg"),naH=_.LL(function(q){return _.W("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.W(_.OF,{data:q.closeButton},{buttonViewModel:function(w){return _.W("div",null,_.W(_.Zs,{data:w.data}))}}))},"ng"),HSK=_.LL(function(q){var w=
q.data;
return _.W(_.GS,null,_.W("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.W("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.W(_.r,{cond:function(){return!!w().image&&!!w().title},
then:function(){return _.W(_.ln,{data:function(){return w().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.W("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.W(_.r,{cond:function(){return w().title},
then:function(u){return _.W("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},u)}}),_.W(_.r,{cond:function(){return w().primaryGenre},
then:function(u){return _.W("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},u)}}))),_.W(_.r,{cond:function(){var u=w().description;
return u&&u.length<=150},
then:function(){return _.W("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.W("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return w().description}))}}))},"og"),W5a=_.LL(function(q){q=q.infoRows;
var w=_.tG().resolve(_.fc),u=_.T("enable_displaying_ppn");return _.W("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.W(_.mL,{each:q},function(y){return _.W("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.W(_.r,{cond:function(){return y.label},
then:function(e){return _.W("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},e)}}),_.W(_.r,{cond:function(){return y.attributedLabel},
then:function(e){return _.W("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.W(_.Lr,{text:e,noPreWrap:!0}))}}),_.W(_.r,{cond:function(){return y.value},
then:function(e){return _.W("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},e)}}),_.W(_.r,{cond:function(){return y.attributedValue},
then:function(e){return _.W("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.W(_.Lr,{text:e,noPreWrap:!0}))}}))}),_.W(_.r,{cond:function(){return u&&w.clientData.has("post_play_nonce")},
then:function(){return _.W("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.W("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.W("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},w.getData("post_play_nonce")))}}))},"pg"),sl6=_.LL(function(q){var w=q.data;
return _.W("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.W(Gfq,{title:function(){return w().dialogTitle}}),_.W(HSK,{data:w}),_.W(_.r,{cond:function(){return w().infoRow},
then:function(u){return _.W(W5a,{infoRows:u})}}),_.W(naH,{closeButton:function(){return w().closeButton}}))},"qg");
sl6.idomCompat=!0;_.q9(sl6,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.pK}});_.q9(_.LL(function(q){var w=q.data;return _.W("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.W(_.ln,{data:function(){return w().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.W("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.W("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.W(_.r,{cond:function(){var u=w().ytLogo;return u?u.iconType:null},
then:function(u){return _.W(_.U3,{icon:u,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.W("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.W("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.W(_.Lr,{text:function(){return w().title}})),_.W("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.W(_.Lr,{text:function(){return w().body}})),_.W("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.W(_.Lr,{text:function(){return w().verifyStateText}}))),
_.W("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.W("div",null,_.W(_.OF,{data:function(){return w().dismissButton}},{buttonViewModel:_.Zs})),_.W("div",null,_.W(_.OF,{data:function(){return w().linkParentButton}},{buttonViewModel:_.Zs})))))},"rg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.pK}});var NO6=_.LL(function(q){var w=q.data;return _.W("installment-agreements-view-model",{class:_.HR("ytInstallmentAgreementsViewModelHost")},_.W(_.mL,{each:_.jf(function(){return w().agreements},[])},function(u){return _.W("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.W("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.W(_.Lr,{text:u.label})),_.W("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.W(_.OF,{data:function(){return u.openButton}},{buttonViewModel:_.Zs})))}))},
"sg");
NO6.idomCompat=!0;var QlA=_.LL(function(q){return _.W("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.W(_.Lr,{text:function(){return q.data().inviteMessage}})),_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.W(_.Lr,{text:function(){return q.data().attributedAccountSectionHeaderText}})),_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.W(_.OF,{data:function(){return q.data().accountAvatar}},{avatarViewModel:_.Vb}),_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.W(_.Lr,{text:function(){return q.data().accountName}}),_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.W(_.Lr,{text:function(){return q.data().handle}}))),_.W(_.OF,{data:function(){return q.data().trailingButton}},{buttonViewModel:_.Zs})),_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.W(_.Lr,{text:function(){return q.data().termsOfService}})))},"tg");var Ifq=_.LL(function(q){var w=_.P(_.iv(function(){var x,P4;return((x=q.data().createPlaylistDialogFormSchema)==null?0:(P4=x.initialValues)==null?0:P4.title)?q.data().createPlaylistDialogFormSchema.initialValues.title:""})),u=w.next().value,y=w.next().value;
w=_.P(_.iv(function(){q.data();return!1}));
var e=w.next().value,t=w.next().value;w=_.P(_.iv(function(){q.data();return!1}));
var X=w.next().value,G=w.next().value;w=_.P(_.iv(function(){var x,P4;return(x=q.data().createPlaylistDialogFormSchema)==null?void 0:(P4=x.initialValues)==null?void 0:P4.visibility}));
var n=w.next().value,N=w.next().value;w=_.P(_.iv(function(){q.data();return!1}));
var Q=w.next().value,I=w.next().value;w=_.P(_.iv(function(){var x,P4;return(x=q.data().createPlaylistDialogFormSchema)==null?void 0:(P4=x.initialValues)==null?void 0:P4.isCollaborative}));
var U=w.next().value,d=w.next().value,V=_.Bm();_.DG(function(){var x=V.value.querySelector("textarea");x&&(x.value=u())});
_.p4(function(){var x;_.bmm((x=q.data().createPlaylistDialogFormSchema)==null?void 0:x.id,{onSubmit:function(){var P4=u();var C7=n(),mu=U(),Os=q.data();P4={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:P4,privacyStatus:C7,videoIds:Os.videoIds,sourcePlaylistId:Os.sourcePlaylistId,params:mu?Os.createPlaylistParamsCollaborationEnabled:Os.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.tG().resolve(_.PG).resolveCommand(P4)},
isValid:function(){return e()&&!X()&&!Q()}})});
var J=function(x){if(x!==void 0&&(y(x),!e()&&x.length>0&&t(!0),e())){var P4=YCA(q.data());if(P4){var C7=P4.minLength;P4=P4.maxLength;C7&&x.length<C7?G(!0):P4&&x.length>P4?G(!0):G(!1)}}},a=function(){var x=!(!U()||n()!=="PRIVATE");
I(x)},b=function(x){x!==void 0&&(N(x),a())},g=function(){if(Q())return E1H(q.data())},l=function(){d(!U());
a()},S=function(){return{validate:function(x){if(e()){var P4=YCA(q.data());
if(P4){var C7=P4.minLength;P4=P4.translations;if(C7&&x.length<C7)return P4==null?void 0:P4.minLengthErrorMessage}}}}},eH=function(){var x=YCA(q.data()),P4=x==null?void 0:x.maxLength,C7;
x=x==null?void 0:(C7=x.translations)==null?void 0:C7.maxLengthErrorMessage;if(P4&&x)return{maxChars:P4,errorMessage:x}};
return _.W("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.W("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:V},_.W(_.OF,{data:function(){return q.data().playlistTitle}},{textFormFieldViewModel:function(x){return _.W(_.T46,{data:x.data,
text:u,onInput:J,validation:S,characterLimit:eH})},
textFieldViewModel:function(x){return _.W(_.U$q,{data:x.data,text:u,onInput:J,validation:S,characterLimit:eH})}})),_.W("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.W(_.OF,{data:function(){return q.data().playlistVisibility}},{dropdownViewModel:function(x){return _.W(_.D$c,{data:x.data,
onSelected:b,error:g})}})),_.W(_.r,{cond:function(){return!!q.data().playlistCollaborate},
then:function(){return _.W("div",null,_.W(_.OF,{data:function(){return q.data().playlistCollaborate}},{switchListItemViewModel:function(x){return _.W(_.ZwG,{data:x.data,
onTap:l})}}))}}))},"ug");var iSx=_.LL(function(q){var w=_.jf(q.noPadding,!1),u=function(){var e,t;return(t=(e=q.data().logo.accessibilityData)==null?void 0:e.label)!=null?t:""},y={};
return _.W("upsell-view-model",{class:_.HR("ytUpsellViewModelHost",(y.ytUpsellViewModelHostNoPadding=function(){return w()},y))},_.W("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.W(_.r,{cond:function(){return _.lq(q.data().logo)},
then:function(e){return _.W(_.ln,{data:e,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:u})}})),_.W("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.W(_.Lr,{text:function(){return q.data().title}})),_.W("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.W(_.mL,{each:function(){var e;
return(e=q.data().subtitles)!=null?e:[]},
keyBy:"INDEX"},function(e){return _.W("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.W(_.Lr,{text:e}))})),_.W("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.W(_.mL,{each:function(){var e;
return(e=q.data().benefitInfos)!=null?e:[]},
keyBy:"INDEX"},function(e){return _.W(_.r,{cond:function(){return e().info},
then:function(t){return _.W("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.W(_.U3,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.W(_.Lr,{text:t}))}})})),_.W("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.W(_.mL,{each:function(){var e;
return(e=q.data().legalInfos)!=null?e:[]},
keyBy:"INDEX"},function(e){return _.W("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.W(_.Lr,{text:e}))})))},"vg");var rA4=_.LL(function(q){var w=q.data;q={};q=(q.ytMiniAppScoreChallengeViewModelScoreRadial=!0,q.ytMiniAppScoreChallengeViewModelDarkScoreRadial=RKA(),q);return _.W("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.W("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return w().title}),_.W("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return w().subtitle}),_.W("div",{class:_.s3(q)},_.W("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return w().score})),_.W("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return w().prompt}))},"wg");var USm=function(){this.store=_.cj();this.formId=""};var TOA=_.LL(function(q){function w(G){if(G&&(G=_.C(G,_.AdH)))return Object.assign({},G,{isSelected:t()})}
var u=_.P(_.iv(function(){var G,n;return(n=(G=_.C(q.data().option,_.AdH))==null?void 0:G.isSelected)!=null?n:!1})),y=u.next().value,e=u.next().value,t=y;
_.p4(function(){var G;_.bmm((G=q.data().formSchema)==null?void 0:G.id,{onSubmit:function(){var n=_.tG().resolve(_.PG),N=!!q.data().selectedCommand,Q=!!q.data().unselectedCommand;if(t()){if(N)var I=q.data().selectedCommand}else Q&&(I=q.data().unselectedCommand);I=_.Zh(I);w(q.data().option)&&!I?(n="",!N&&Q?n="selected ":N&&!Q&&(n="unselected "),N=new _.fv("No "+n+"command found for SelectionListItemFormViewModel"),_.vm(N)):I&&n.resolveCommand(I)},
isValid:function(){return!0}})});
var X=function(){e(!t())};
_.ZG(function(){var G,n,N=(G=q.data())==null?void 0:(n=G.formSchema)==null?void 0:n.id;N&&_.$rB()().delete(N)});
return _.W("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.W("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.W(_.Lr,{text:function(){return q.data().paragraph}})),_.W(_.r,{cond:function(){return w(q.data().option)},
then:function(G){return _.W(_.U$,{data:G,isCompact:!0,hideSelectionTextChevron:!0,onTap:X,disableHorizontalPadding:!0})}}))},"xg");var CQK=_.LL(function(q){var w=q.data;var u=q.disablePadding;var y=q.className;var e=_.Bm(),t=function(){return c7c(w().banner,w().assetContainerPaddingStyle)},X=function(){return c7c(w().imageBanner,w().assetContainerPaddingStyle)},G=function(){return w().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.p4(function(){var n=function(){_.Pw(e.value,"yt-refit-popups-action")},N;
(N=e.value)==null||N.addEventListener("image-loaded",n);_.ZG(function(){var Q;(Q=e.value)==null||Q.removeEventListener("image-loaded",n)})});
q={};return _.W("yt-dialog-header-view-model",{el:e,class:_.HR(y,(q.ytDialogHeaderViewModelHost=!0,q.ytDialogHeaderViewModelHostDisablePadding=u,q))},_.W(_.r,{cond:function(){return w().banner},
then:function(){var n={};return _.W("div",{class:_.HR(y,(n.ytDialogHeaderViewModelBanner=!0,n.ytDialogHeaderViewModelBannerFullBleed=G,n)),style:_.rm({"max-height":function(){return w().assetContainerMaxHeight?w().assetContainerMaxHeight+"px":""}})},_.W(_.jj,{data:t,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.W(_.r,{cond:function(){return w().imageBanner},
then:function(){var n={};return _.W("div",{class:_.HR(y,(n.ytDialogHeaderViewModelBanner=!0,n.ytDialogHeaderViewModelBannerFullBleed=G,n)),style:_.rm({"max-height":function(){return w().assetContainerMaxHeight!==void 0?w().assetContainerMaxHeight+"px":void 0}})},_.W(_.jj,{data:X,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.W(_.r,{cond:function(){return w().customAssetContainer},
then:function(n){return _.W("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.W(_.OF,{data:n},{avatarStackViewModel:_.TL}))}}),_.W(_.r,{cond:function(){return w().customBanner},
then:function(n){return _.W("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.W(_.OF,{data:n},{avatarStackViewModel:_.TL}))}}),_.W(_.r,{cond:function(){return w().headline},
then:function(n){return _.W("h2",null,_.W(_.Lr,{text:n,className:"ytDialogHeaderViewModelText"}))}}))},"yg");
CQK.idomCompat=!0;var dSh=_.LL(function(q){var w=_.YqH(function(){return q.data().formId}),u=w.onSubmit,y=w.isValid;
return _.W("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.W(_.OF,{data:function(){return q.data().panelFooter}},{panelFooterViewModel:function(e){return _.W(_.b2,{data:e.data,
disablePadding:!0,disablePrimaryButton:function(){return!y()},
onClickPrimaryButton:function(){u()}})}}))},"zg");var OSA=_.LL(function(q){var w=function(){var u,y;return(y=(u=_.C(q.data().rendererContext,_.ik))==null?void 0:u.label)!=null?y:""};
return _.W("yt-dialog-image-content-view-model",{class:_.HR("ytDialogImageContentViewModelHost",q.className)},_.W(_.r,{cond:function(){return _.lq(q.data().image)},
then:function(u){return _.W(_.ln,{data:u,alt:w,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.W(_.Lr,{text:function(){return q.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Ag");var ffq=_.LL(function(q){var w=_.lf(q,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),u=w.elRefCallback;q=w.iconWiz;var y=w.assetWiz,e=w.assetType,t=w.titleWiz,X=w.leadingActionHeaderWiz,G=w.trailingActionHeaderWiz,n=w.headerPosition,N=w.contentWiz,Q=w.buttonLayout,I=w.buttonStyle,U=w.primaryButtonWiz,d=w.secondaryButtonWiz,V=w.contentAlignment,J=w.isFullscreen,a=w.width,b=w.maxHeight,g=w.isHeaderWizDefined,
l=w.headerWiz,S=w.isFooterWizDefined,eH=w.footerWiz;w=_.Bm(function(Ro){u==null||u(Ro)});
var x=y?function(){return y({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,P4=U?function(){var Ro={};
return U({buttonOverrides:function(){return{style:(I==null?void 0:I())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.HR((Ro["yt-spec-dialog-layout__dialog-layout-button"]=!0,Ro["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(Q==null?void 0:Q())===0||(Q==null?void 0:Q())===2},Ro))})}:void 0,C7=d?function(){var Ro={};
return d({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.HR((Ro["yt-spec-dialog-layout__dialog-layout-button"]=!0,Ro["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(Q==null?void 0:Q())===0||(Q==null?void 0:Q())===2},Ro))})}:void 0,mu=function(){return(!!t||!!X||!!G)&&n()===0},Os={},YJ={},ao={},bc={};
return _.W("dialog-layout",{el:w,class:_.HR((Os["yt-spec-dialog-layout"]=!0,Os["yt-spec-dialog-layout--dialog-layout-fullscreen"]=J,Os["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!J()},Os["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return b()===1},Os["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(e==null?void 0:e())===1},Os)),
style:function(){return(a==null?void 0:a())!==void 0?"width: "+a+"px;":""}},q?_.W("div",{class:_.HR((YJ["yt-spec-dialog-layout__dialog-layout-icon"]=!0,YJ["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!y&&n()===1},YJ["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return V()===1},YJ))},_.W(q,null)):null,_.W(_.r,{cond:g,
then:function(){return l?_.W("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.W(l,null)):null},
else:function(){return _.W(_.GS,null,_.W(_.r,{cond:mu,then:function(){return _.W(oah,{contentAlignment:V,LeadingActionHeader:X,TrailingActionHeader:G,Title:t,isAboveAsset:!!x})}}),x?_.W("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.W(x,null)):null)}}),_.W("div",{class:_.HR((ao["yt-spec-dialog-layout__dialog-layout-container"]=!0,ao["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(V==null?void 0:V())===1},ao["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!t&&!l||!!x&&(n==null?void 0:n())===0},ao))},_.W(_.r,{cond:function(){return t&&!l&&(n==null?void 0:n())===1},
then:function(){return _.W(oah,{contentAlignment:V,LeadingActionHeader:X,TrailingActionHeader:G,Title:t,isAboveAsset:!1})}}),N?_.W("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.W("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.W(N,null))):null,_.W(_.r,{cond:S,
then:function(){return eH?_.W("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.W(eH,null)):null}}),P4||C7?_.W(Vt6,{footerClasses:_.HR((bc["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,bc["yt-spec-dialog-layout__dialog-layout-footer"]=!0,bc["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(Q==null?void 0:Q())===2},bc["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(Q==null?void 0:Q())===1},bc)),
PrimaryButton:P4,SecondaryButton:C7}):null))},"Bg"),oah=_.LL(function(q){var w=_.lf(q,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),u=w.contentAlignment,y=w.LeadingActionHeader;q=w.Title;var e=w.TrailingActionHeader,t=w.isAboveAsset,X=w.enableLeadingActionHeader;w={};return _.W("div",{class:_.HR((w["yt-spec-dialog-layout__dialog-header-container"]=!0,w["yt-spec-dialog-layout__dialog-header"]=!0,w["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=t,w["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(u==null?void 0:u())===1&&X()},w))},_.W(_.r,{cond:function(){return X()},
then:function(){return y?_.W("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.W(y,null)):null}}),q?_.W("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.W(q,null)):null,e?_.W("div",null,_.W(e,null)):null)},"Cg"),Vt6=_.LL(function(q){var w=q.footerClasses;
var u=q.PrimaryButton;q=q.SecondaryButton;return _.W("div",{class:w},q?_.W(q,null):null,u?_.W(u,null):null)},"Dg");var mS6=_.LL(function(q){var w=q.data;return _.W("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.W("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.W(_.OF,{data:function(){return w().avatar}},{avatarViewModel:_.Vb})),_.W("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.W(_.Lr,{text:function(){return w().title}})),_.W(_.Lr,{text:function(){return w().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Eg");var AAT=_.LL(function(q){var w=q.data;return _.W("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.W("div",{class:"ytAccessConfirmationViewModelContent"},_.W(_.OF,{data:function(){return w().dualAvatar}},{dualAvatarViewModel:function(u){return _.W("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.W(_.FiF,{data:u.data}))}}),_.W("h2",{class:"ytAccessConfirmationViewModelTitle"},_.W(_.Lr,{text:function(){return w().title}})),_.W(_.Lr,{text:function(){return w().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Fg");var JAA=_.LL(function(q){var w=q.data;var u=void 0;q=_.P(_.r4("",void 0,"bj3Bbf"));var y=q.next().value,e=q.next().value,t,X=function(){e("");var N;(N=u)!=null&&N.store.dispatch(_.tr({type:"RESET_COMMAND_MAP"}))};
_.p4(function(){u=new USm;window.addEventListener("yt-popup-closed",X)});
_.DG(function(){if(u&&t!==w().formId){var N=u,Q=w();Q.formId&&(N.formId=Q.formId,N.store.dispatch(_.tr({type:"SET_CURRENT_FORM_ID",payload:{formId:N.formId}})));t=w().formId}});
_.ZG(function(){window.removeEventListener("yt-popup-closed",X)});
var G=function(N,Q,I){Q.key&&I&&Q.key!==y()&&(e(Q.key),u&&Q.command&&u.store.dispatch(_.tr({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:I,command:Q.command}})))},n=function(){if(_.C(w().content,_.u3j))return!(y==null?0:y())};
return _.W("yt-dialog-view-model",{class:_.HR("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.W(ffq,{headerWiz:function(){return _.W("span",{skip:!0},_.W(_.OF,{data:function(){return w().header}},{dialogHeaderViewModel:function(N){return _.W(CQK,{data:N.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!w().header},
contentWiz:function(){return _.W("span",{skip:!0},_.W(_.OF,{data:function(){return w().customContent?w().customContent:w().content}},{basicContentViewModel:_.h6P,
createPlaylistDialogFormViewModel:Ifq,collaborativePlaylistInviteMessageViewModel:QlA,miniAppScoreChallengeViewModel:rA4,radioButtonGroupViewModel:function(N){return _.W(_.JXT,{data:N.data,selectedKey:y,onSelected:G})},
selectionListItemFormViewModel:TOA,upsellViewModel:function(N){return _.W(iSx,{data:N.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:mS6,installmentAgreementsViewModel:NO6,accessConfirmationViewModel:AAT,listViewModel:function(N){return _.W(_.EOa,{data:N.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:OSA}))},
footerWiz:function(){return _.W("span",{skip:!0},_.W(_.OF,{data:function(){return w().footer}},{panelFooterViewModel:function(N){return _.W(_.b2,{data:N.data,
disablePadding:!0,disablePrimaryButton:n})},
formPanelFooterViewModel:dSh,formFooterViewModel:function(N){return _.W(_.IGA,{data:N.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!w().footer}}))},"Gg");
JAA.idomCompat=!0;_.q9(JAA,"yt-dialog-view-model",{props:{data:_.pK},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var zA6=_.LL(function(q){var w=q.data;q={};return _.W("yt-panel-header-view-model",{class:_.HR("yt-panel-header-view-model-wiz",(q["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!w().shouldHideDivider},q["yt-panel-header-view-model-wiz--compact"]=function(){return!!w().subtitle},q))},_.W("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.W(_.r,{cond:function(){return w().title},
then:function(u){return _.W(_.Lr,{text:u,className:"yt-panel-header-view-model-wiz__title"})}}),_.W(_.r,{cond:function(){return w().subtitle},
then:function(u){return _.W(_.Lr,{text:u,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.W("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.W(_.OF,{data:function(){return w().trailingButtons}},{buttonViewModel:function(u){return _.W(_.Zs,{data:u.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Hg");
zA6.idomCompat=!0;var afh=_.LL(function(q){var w=_.QS(function(t){var X;if((X=q.skipContentClick)==null?0:X.call(q))return!1;q.onContentWrapperClick(t);return!0}),u,y,e;
return _.W("div",{class:_.HR("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return q.isAnimating()?"transform: translateY("+q.currentY()+"px);transition: 0.2s":""}},(u=q.header)==null?void 0:u.call(q),_.W("div",{id:q.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.rm({"max-height":(0,_.iK)(q.maxHeightForContentWrapper)}),"on:scroll":l_V(q.onScroll),"on:touchmove":l_V(function(t){return void t.stopPropagation()})},_.W("div",{el:{onRender:q.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":w},(y=q.body)==null?void 0:y.call(q))),(e=q.footer)==null?void 0:e.call(q))},"Ig");
afh.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var DS6=_.LL(function(q){var w=_.jf(q.leadingLabel),u=_.jf(q.trailingLabel),y=_.jf(q.footerButtonType),e=function(){return w()||u()||q.hasPrimaryButton()||q.hasSecondaryButton()},t={},X=_.HR("yt-spec-bottom-sheet-layout__primary-button",(t["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return y()===0&&q.hasPrimaryButton()},t["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return y()===1&&q.hasPrimaryButton()},t["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return y()===2&&q.hasPrimaryButton()},t["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return y()===3&&q.hasPrimaryButton()},t));
t={};var G=_.HR("yt-spec-bottom-sheet-layout__secondary-button",(t["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return y()===1&&q.hasSecondaryButton()},t["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return y()===2&&q.hasSecondaryButton()},t["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return y()===3&&q.hasPrimaryButton()},t));
return _.W(_.r,{cond:q.hasFooterOverride,then:function(){var n;return _.W(_.GS,null,(n=q.footerOverride)==null?void 0:n.call(q))},
else:function(){return _.W(_.r,{cond:e,then:function(){return _.W("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.W(_.r,{cond:function(){return w()||u()},
then:function(){var n={};return _.W("div",{class:_.HR("yt-spec-bottom-sheet-layout__footer-label-wrapper",(n["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!q.hasPrimaryButton()},n))},_.W(_.r,{cond:w,
then:function(){return _.W("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},w)}}),_.W(_.r,{cond:u,
then:function(){return _.W("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},u)}}))}}),_.W(_.r,{cond:function(){return q.hasPrimaryButton()||q.hasSecondaryButton()},
then:function(){var n={};return _.W("div",{class:_.HR("yt-spec-bottom-sheet-layout__footer-button-wrapper",(n["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.wH6,n))},_.W(_.r,{cond:function(){return q.hasSecondaryButton()&&y()!==0},
then:function(){var N;return _.W("div",{class:G},(N=q.secondaryButton)==null?void 0:N.call(q))}}),_.W(_.r,{cond:q.hasPrimaryButton,
then:function(){var N;return _.W("div",{class:X},(N=q.primaryButton)==null?void 0:N.call(q))}}))}}))}})}})},"Jg");
DS6.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var ZS4=_.LL(function(q){var w=_.jf(q.title),u=_.jf(q.subtitle),y=_.QS(function(X){var G;(G=q.touchstart)==null||G.call(q,X);return!1}),e=_.QS(function(X){var G;
(G=q.touchmove)==null||G.call(q,X);return!1}),t=_.QS(function(X){var G;
(G=q.touchend)==null||G.call(q,X);return!1});
return _.W("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:q.headerId,"on:touchstart":y,"on:touchmove":e,"on:touchend":t},_.W("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.W(_.r,{cond:q.hasHeaderOverride,then:function(){var X;return _.W(_.GS,null,(X=q.headerOverride)==null?void 0:X.call(q))},
else:function(){var X={};return _.W("div",{class:_.HR((X["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,X["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=w,X))},_.W("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.W(_.r,{cond:w,then:function(){return _.W(_.GS,null,_.W("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},w),_.W(_.r,{cond:u,then:function(){return _.W("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
u)}}))}})),_.W(_.r,{cond:function(){return w()&&q.hasActionHeader()},
then:function(){var G;return _.W("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(G=q.actionHeader)==null?void 0:G.call(q))}}))}}))},"Kg");
ZS4.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.LL(function(q){function w(x){if(!b&&typeof MutationObserver!=="undefined"){var P4={childList:!0};"MutationObserver"in window&&(b=new MutationObserver(u.bind(void 0,x)),b.observe(x,P4))}}
function u(x){typeof b!=="undefined"&&(g["content-wrapper"]===void 0&&(g["content-wrapper"]=x.children[0].clientHeight),d(g["content-wrapper"]),U()>V()||J(U()))}
function y(){I(window.innerHeight);U()>V()||J(U());l.isFullScreen[0]()&&U()>V()?S().dispatch("Snap To Full Screen",{maxHeight:a()}):S().dispatch("Snap To Neutral Position",{maxHeight:V()})}
function e(x){document.body.style.overscrollBehavior="none";x.preventDefault();S().dispatch("Touch Start",{event:x})}
function t(x){x.preventDefault();S().dispatch("Touch Move",{event:x,contentScrollable:U()>V(),fullContentWrapperHeight:a(),contentWrapperHeight:V(),contentHeightMap:g,contentWrapperId:"content-wrapper",header:MBA(q),footer:MBA(q)})}
function X(){document.body.style.overscrollBehavior="";l.isFullScreen[0]()?l.currentY[0]()>=60?S().dispatch("Snap To Neutral Position",{maxHeight:V()}):S().dispatch("Snap To Full Screen",{maxHeight:a()}):l.currentY[0]()>=60?G():l.currentY[0]()<=-60&&U()>V()?S().dispatch("Snap To Full Screen",{maxHeight:a()}):S().dispatch("Snap To Neutral Position",{maxHeight:V()})}
function G(){S().dispatch("Close Sheet",{clientHeight:Q(),maxHeight:0});setTimeout(function(){LR6()},250)}
var n=_.P(_.r4(window.innerHeight,void 0,"NWeFS")),N=n.next().value;n=n.next().value;var Q=N,I=n;n=_.P(_.r4(0,void 0,"oxfm4"));N=n.next().value;n=n.next().value;var U=N,d=n;n=_.P(_.iv(function(){var x=MBA(q);return.6*Q()-SCq(x)-hKc(x)}));
N=n.next().value;n=n.next().value;var V=N,J=n,a=function(){var x=MBA(q);return Q()-SCq(x)-hKc(x)-24-24},b=null,g={},l={initialY:_.r4(0,void 0,"cYBE5c"),
currentY:_.r4(0,void 0,"RndqHc"),isAnimating:_.r4(!1,void 0,"vO9DVd"),isFullScreen:_.r4(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.iv(V)},S=function(){var x=null;return function(){if(!x){var P4={initialY:l.initialY[0](),currentY:l.currentY[0](),isAnimating:l.isAnimating[0](),isFullScreen:l.isFullScreen[0](),maxHeightForContentWrapper:l.maxHeightForContentWrapper[0]()};x=jD6(P4)}return x}}();
_.p4(function(){window.addEventListener("resize",y);S().subscribe(function(x){l.initialY[1](x.initialY);l.currentY[1](x.currentY);l.isAnimating[1](x.isAnimating);l.isFullScreen[1](x.isFullScreen);l.maxHeightForContentWrapper[1](x.maxHeightForContentWrapper)})});
_.ZG(function(){window.removeEventListener("resize",y);b&&(b.disconnect(),b=null)});
var eH=_.HR({"bottom-sheet-content-without-icon":function(){var x;return!((x=q.shouldShowIcons)==null?0:x.call(q))}});
return _.W("bottom-sheet-layout",null,_.W(afh,{contentWrapperId:"content-wrapper",isAnimating:function(){return l.isAnimating[0]()},
currentY:function(){return l.currentY[0]()},
maxHeightForContentWrapper:function(){return l.maxHeightForContentWrapper[0]()},
shouldShowIcons:q.shouldShowIcons,skipContentClick:q.skipContentClick,onScroll:function(){var x=document.getElementById("header-wrapper"),P4=document.getElementById("content-wrapper");if(x&&P4){var C7={};C7=(C7["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,C7["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,C7);x.className=P4.scrollTop>1?_.s3(C7):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:LR6,contentWrapperEl:function(x){w(x);requestAnimationFrame(function(){u(x)})},
header:function(){return _.W(ZS4,{touchstart:e,touchmove:t,touchend:X,title:q.headerTitle,subtitle:q.headerSubtitle,headerId:"header-wrapper",headerOverride:q.headerFn,hasHeaderOverride:q.hasHeaderFn,actionHeader:q.headerActionHeader,hasActionHeader:q.hasHeaderActionHeader})},
footer:function(){return _.W(DS6,{footerButtonType:q.footerButtonType,leadingLabel:q.footerLeadingLabel,trailingLabel:q.footerTrailingLabel,primaryButton:q.footerPrimaryButton,hasPrimaryButton:q.hasFooterPrimaryButton,secondaryButton:q.footerSecondaryButton,hasSecondaryButton:q.hasFooterSecondaryButton,footerOverride:q.footerFn,hasFooterOverride:q.hasFooterFn})},
body:function(){return _.W(_.r,{cond:q.hasContentFn,then:function(){var x;return _.W("div",{class:eH},(x=q.contentFn)==null?void 0:x.call(q))}})}}))},"Lg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var pHc=_.LL(function(q){var w=_.tG().resolve(_.ru),u=_.QS(function(){return void w.closeSheet()});
return _.W("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":u},_.W(_.r,{cond:function(){return!!q.header},
then:function(){return _.W("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},q.header())}}),_.W(_.r,{cond:function(){return!!q.content},
then:function(){return _.W("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},q.content())}}),_.W(_.r,{cond:function(){return!!q.footer},
then:function(){return _.W("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},q.footer())}}))},"Mg");
pHc.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var $SK=_.LL(function(q){q=q.data;var w=_.Bm(function(y){if(_.T("web_focus_first_element_sheet"))return y.addEventListener("focus",function(){DQB(y)}),function(){y.removeEventListener("focus",function(){DQB(y)})}}),u={};
return _.W("yt-sheet-view-model",{class:_.HR("yt-sheet-view-model-wiz",(u["yt-sheet-view-model-wiz--contextual"]=!0,u["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.T("web_disable_backdrop_filter"),u)),el:w,tabindex:-1},_.W(_.r,{cond:q,then:function(y){return _.W(pHc,{header:function(){return _.W(_.OF,{data:function(){return y().header}},{panelHeaderViewModel:zA6})},
content:function(){return _.W(_.OF,{data:function(){return y().content}},{listViewModel:function(e){return _.W(_.EOa,{data:e.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:iSx,miniAppScoreChallengeViewModel:rA4})},
footer:function(){return _.W(_.OF,{data:function(){return y().footer}},{panelFooterViewModel:_.b2})}})}}))},"Ng");
$SK.idomCompat=!0;_.q9($SK,"yt-sheet-view-model",{props:{data:_.pK}});var bST=_.LL(function(q){var w=function(){var u;return(u=q.data().enableDebuggingFeatures)!=null?u:!1};
return _.W("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.W(_.mL,{each:function(){var u;return(u=q.data().stickers)!=null?u:[]}},function(u){return _.W(va6,{data:function(){return u},
debugMode:w})}))},"Og"),va6=_.LL(function(q){var w=_.lf(q,{debugMode:!1}).debugMode,u=_.jf(function(){var n;
return(n=q.data().region)==null?void 0:n.w},0),y=_.jf(function(){var n;
return(n=q.data().region)==null?void 0:n.h},0),e=_.jf(function(){var n;
return(n=q.data().region)==null?void 0:n.x},0),t=_.jf(function(){var n;
return(n=q.data().region)==null?void 0:n.y},0),X=_.QS(function(){var n=q.data().onTap;
n&&_.bn(n)}),G={};
return _.W("div",{class:_.HR("ytStoriesStickerLayerViewModelSticker",(G.ytStoriesStickerLayerViewModelDebugMode=w,G)),style:_.rm({width:function(){return 100*u()+"%"},
height:function(){return 100*y()+"%"},
left:function(){return 100*e()+"%"},
top:function(){return 100*t()+"%"},
"flex-direction":function(){return KRK(q.data().flexDirection)},
"justify-content":function(){return BkA(q.data().justifyContent)},
"align-items":function(){return xUH(q.data().alignItems)}}),
"on:click":X},_.W(_.OF,{data:function(){return q.data().button||q.data().toggleButton}},{buttonViewModel:function(n){return _.W(_.Zs,{data:n.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(n){return _.W(_.fr,{data:n.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Pg");var ga6=_.LL(function(q){var w=function(){return q.data()},u=_.jf(function(){return w().backgroundColor},0),y=_.jf(function(){return w().actionButtons},[]),e=_.jf(function(){return w().stickerLayer},{}),t={},X=function(){var n,N;
return{animationRef:t,animationConfig:{autoplay:!1,loop:!1,path:(N=(n=w().foregroundAnimation)==null?void 0:n.url)!=null?N:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){q.navigateToNextItemOnLottieComplete()}}}},G=function(){var n,N,Q,I,U,d,V,J;
return{animationConfig:{autoplay:(d=(n=w().backgroundAnimation)==null?void 0:(N=n.settings)==null?void 0:N.autoplay)!=null?d:!1,loop:(V=(Q=w().backgroundAnimation)==null?void 0:(I=Q.settings)==null?void 0:I.loop)!=null?V:!1,path:(J=(U=w().backgroundAnimation)==null?void 0:U.url)!=null?J:"",name:"stories_item_background_animation"}}};
_.DG(function(){if(q.isVisible()){var n;(n=t.lottieEl)==null||n.play()}else{var N;(N=t.lottieEl)==null||N.stop()}});
return _.W("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.rm({"background-color":function(){return _.Je(u())+";"}})},_.W("div",{class:"ytStoriesItemViewModelAssetContent"},_.W(_.r,{cond:function(){return!!w().backgroundAnimation},
then:function(){return _.W(_.WR,{data:G,animationName:function(){return G().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.W(_.r,{cond:function(){return!!w().backgroundImage},
then:function(){return _.W(_.ln,{data:function(){return w().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.W(_.r,{cond:function(){return!!w().foregroundAnimation},
then:function(){return _.W(_.WR,{data:X,animationName:function(){return X().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.W(_.r,{cond:function(){return!!w().foregroundImage},
then:function(){return _.W(_.ln,{data:function(){return w().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.W("div",{class:"ytStoriesItemViewModelTopShadow"}),_.W(_.OF,{data:function(){return e()}},{storiesStickerLayerViewModel:bST})),_.W("div",{class:"ytStoriesItemViewModelBottomShadow"},_.W("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.QS(q.pauseAutoNavigation)},_.W(_.mL,{each:y},function(n){return _.W(YS4,{data:function(){return n}})}))))},"Qg"),YS4=_.LL(function(q){var w={};
return _.W("div",{class:_.HR("ytStoriesItemViewModelActionButton",(w.ytStoriesItemViewModelStretchedActionButton=function(){return q.data().size==="STORIES_BUTTON_SIZE_STRETCH"},w))},_.W(_.OF,{data:function(){return q.data().button}},{buttonViewModel:function(u){return _.W(_.Zs,{data:u.data,
className:"ytStoriesItemViewModelButton"})}}))},"Rg");_.q9(_.LL(function(q){var w=_.P(_.iv(function(){var g;return(g=q.data().startIndex)!=null?g:0})),u=w.next().value,y=w.next().value;
w=_.P(_.r4(!1,void 0,"klmjc"));var e=w.next().value,t=w.next().value,X=function(){var g;return(g=q.data().storyItems)!=null?g:[]},G=function(){return q.data().dismissButton},n=function(){var g;
return _.C((g=_.C(G(),_.oH))==null?void 0:g.onTap,_.Dh)},N=_.Bm(),Q,I=function(){var g;
(g=Q)==null||g.cancel();Q=U(u()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});Q.onfinish=function(){U(u()).style.width="100%";var l=_.C(X()[u()],SzB),S,eH;l!=null&&l.foregroundAnimation&&((l==null?0:(S=l.foregroundAnimation)==null?0:S.url)||(l==null?0:(eH=l.foregroundAnimation)==null?0:eH.payload))||(u()!==X().length-1?(y(u()+1),I()):n()&&_.px(n()))}},U=function(g){return N.value.children[g].children[0]},d=function(){for(var g=0;g<u();g++)U(g).style.width="100%"};
w=_.QS(function(){e()?t(!1):(u()===X().length-1&&n()&&_.px(n()),U(u()).style.width="100%",u()!==X().length-1&&(y(u()+1),I()))});
var V=_.QS(function(){e()?t(!1):(U(u()).style.width="0%",u()!==0?y(u()-1):y(u()),I())}),J=function(){t(!0)},a=function(){U(u()).style.width="100%";
u()!==X().length-1?(y(u()+1),I()):n()&&_.px(n())},b=_.QS(function(){var g;
(g=Q)==null||g.pause()});
_.DG(function(){if(e()){var g;(g=Q)==null||g.pause()}else{var l;(l=Q)==null||l.play()}});
_.DG(function(){d();u()===q.data().startIndex&&I()});
_.p4(function(){d();I()});
return _.W("yt-stories-viewer-view-model",{class:_.HR("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.W("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.W("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":V,"on:mousedown":b}),_.W("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":w,"on:mousedown":b})),_.W(_.OF,{data:X},{storiesItemViewModel:function(g,l){var S=g.data;return _.W(_.r,{cond:function(){return Math.abs(l()-
u())<=1},
then:function(){var eH={};return _.W("div",{class:_.HR("ytStoriesViewerViewModelStoryItem",(eH.ytStoriesViewerViewModelHiddenStoryItem=function(){return l()!==u()},eH))},_.W(ga6,{data:S,
pauseAutoNavigation:J,navigateToNextItemOnLottieComplete:a,isVisible:function(){return l()===u()}}))}})}}),_.W("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:N},_.W(_.mL,{each:X},function(){return _.W("div",{class:"ytStoriesViewerViewModelProgressBar"},_.W("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.W("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.W(_.OF,{data:G},{buttonViewModel:_.Zs})))},"Sg"),"yt-stories-viewer-view-model",{props:{data:_.pK}});_.q9(_.LL(function(q){var w=q.data;var u=_.Bm(),y=[];return _.W("yt-gen-ai-feedback-form-view-model",{el:u,class:"ytGenAiFeedbackFormViewModelHost"},_.W(_.Lr,{text:function(){return w().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.W("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.W(_.OF,{data:function(){return w().feedbackChips}},{toggleButtonViewModel:function(e){var t=e.data;
return _.W(_.fr,{data:t,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(X){var G=t();G=_.C(G,_.Vo);G=_.C(G==null?void 0:G.defaultButtonViewModel,_.oH).trackingParams;X?y.push(G):(X=y.indexOf(G),X>-1&&y.splice(X,1))}})}})),_.W(_.Lr,{text:function(){return w().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.W("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.W(_.OF,{data:function(){return w().submitButton}},{buttonViewModel:function(e){return _.W(_.Zs,{data:e.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){q1q(u.value,y,w().uniqueId)}})}}),_.W(_.OF,{data:function(){return w().moreFeedbackButton}},{buttonViewModel:function(e){return _.W(_.Zs,{data:e.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Tg"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.pK},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var vB=function(){return _.Y.apply(this,arguments)||this};
_.O(vB,_.Y);vB.prototype.created=function(){Aeh(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(GV6);var q=_.tG().resolve(_.VeX);q&&(q.container=this.ytPopupContainerBehavior);if(q=_.tG().resolve(_.ru))q.container=this.ytPopupContainerBehavior;if(q=_.tG().resolve(_.Ui)){var w=this.ytPopupContainerBehavior;q.containerWasInjected?_.Y8(Error("bj")):q.container=w}};
vB.prototype.ensurePopupBelowPlayer=function(q,w){var u=_.tG().resolve(_.kF(_.KT));if(!u||!u.isOnWatch()||!_.xo())return!1;u=u.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.UP().height>u+this.getPopupHeight(q,w)?(q.style.top="auto",q.style.bottom="0px"):(q.style.top=u+"px",q.style.bottom="auto");return!0};
vB.prototype.getPopupHeight=function(q,w){w&&(q.cachedPopupHeight=0);if(!q.cachedPopupHeight){w=0;var u=q.clientHeight,y=window.getComputedStyle(q);w+=parseInt(y.marginTop,10);w+=parseInt(y.marginBottom,10);q.cachedPopupHeight=u+w}return q.cachedPopupHeight};
vB.prototype.getElement=function(q){return document.createElement(q)};
_.c([_.D(amc.YtPopupContainerBehavior),_.h("design:type",Object)],vB.prototype,"ytPopupContainerBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],vB.prototype,"ytComponentBehavior",void 0);vB=_.c([_.E({disableElementRegistration:!0,is:"ytd-popup-container"})],vB);
_.R(vB,"ytd-popup-container",function(){if(Ceq!==void 0)return Ceq;var q=document.createElement("template");_.f(q,"\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");q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);return Ceq=q},{mode:1});var Eah;var RAT={};RAT.YtLogYpcFlowCommandsBehavior=[_.hm.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(q){_.C(q,FF6)&&(q=_.C(q,FF6))&&(q.serializedTransactionFlowLoggingParams?_.C7f(q.serializedTransactionFlowLoggingParams):q.serializedYpcCancelFlowLoggingParams?(q=q.serializedYpcCancelFlowLoggingParams)&&_.AQ("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",q):q.serializedYpcResumeFlowLoggingParams?(q=q.serializedYpcResumeFlowLoggingParams)&&_.AQ("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",q):q.serializedYpcPauseFlowLoggingParams?(q=q.serializedYpcPauseFlowLoggingParams)&&
_.AQ("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",q):q.serializedYpcRefundFlowLoggingParams?(q=q.serializedYpcRefundFlowLoggingParams)&&HiA("YPC_EVENT_TYPE_START",q):q.serializedYpcDeactivateFlowLoggingParams?(q=q.serializedYpcDeactivateFlowLoggingParams)&&_.AQ("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",q):q.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(q=q.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.AQ("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",q))},
handleLogYpcFlowDismiss_:function(q){_.C(q,X86)&&(q=_.C(q,X86),q.serializedTransactionFlowLoggingParams?_.dRM(q.serializedTransactionFlowLoggingParams):q.serializedYpcCancelFlowLoggingParams?(q=q.serializedYpcCancelFlowLoggingParams)&&_.AQ("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",q):q.serializedYpcResumeFlowLoggingParams?(q=q.serializedYpcResumeFlowLoggingParams)&&_.AQ("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",q):q.serializedYpcPauseFlowLoggingParams?(q=
q.serializedYpcPauseFlowLoggingParams)&&_.AQ("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",q):q.serializedYpcRefundFlowLoggingParams&&(q=q.serializedYpcRefundFlowLoggingParams)&&HiA("YPC_EVENT_TYPE_CANCEL",q))}}];var cAq={};cAq.YtCancelRecurrenceBehavior=[_.fK.YtComponentBehavior,_.Y$6,{attached:function(){var q=this;WPK(this,function(w,u){return q.ypcCancelRecurrenceHandler(w,u)})},
ypcCancelRecurrenceHandler:function(q,w){var u=this;if(!w||!w.ypcCancelRecurrenceEndpoint)return!1;if(!w.ypcCancelRecurrenceEndpoint.params)return _.cl(Error("ul")),!0;_.js(this.hostElement);var y=_.E3.instance,e=_.tG().resolve(_.kF(_.OP));y&&_.RV(y,w)?_.cR(y,w).then(function(t){u.ypcCancelRecurrenceSuccess_(q,w,{data:t})},function(t){u.ypcCancelRecurrenceFailure_(q,w,t)}).thenCatch(function(){_.cl(Error("vl"))}):e?e.requestDataForServiceEndpoint(w).then(function(t){u.ypcCancelRecurrenceSuccess_(q,
w,t)},function(t){u.ypcCancelRecurrenceFailure_(q,w,t)}).thenCatch(function(){_.cl(Error("vl"))}):_.cl(Error("wl"));
return!0},
ypcCancelRecurrenceSuccess_:function(q,w,u){_.lr(this.hostElement);u.data||(u={data:u});u.data&&u.data.actions&&_.nq(this.hostElement,u.data.actions,this.hostElement);u.data.messageRenderer?szT(w.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(w=w.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.AQ("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",w);_.t7(q,"yt-service-request-completed",u)},
ypcCancelRecurrenceFailure_:function(q,w,u){_.lr(this.hostElement);szT(w.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.t7(q,"yt-service-request-error",{error:u,params:[q,w]})}}];var SSm=function(q,w){_.qM.call(this,w)};
_.O(SSm,vB6);var hA6={};hA6.YtCompleteTransactionBehavior=[_.fK.YtComponentBehavior,_.Y$6,{attached:function(){var q=this;WPK(this,function(w,u){return q.ypcCompleteTransactionHandler(w,u)})},
completeTransaction:function(q,w){var u=this;w={payments_payload:window.btoa(w.integratorData),buybucket_params:q.data.buybucketParams,offer_params:q.data.offerParams};var y=_.tG().resolve(_.OP),e=q.data.completeTransactionEndpoint,t=this.get("ypcCompleteTransactionEndpoint.actions",e);t&&_.nq(this.hostElement,t,this.hostElement);return(t=_.E3.instance)&&_.RV(t,e)?_.cR(t,e,w).then(function(X){return!X||(X==null?0:X.error)?(X=u.get("data.serializedTransactionFlowLoggingParams",q),_.og(new xb("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
X))):{data:X}}).then(function(X){return u.handleCompleteTransactionSuccess_(X,q)},function(){return u.handleCompleteTransactionFailure_(q)}):y.requestDataForServiceEndpoint(e,w).then(function(X){return u.handleCompleteTransactionSuccess_(X,q)},function(){return u.handleCompleteTransactionFailure_(q)})},
handleCompleteTransactionSuccess_:function(q,w){q.data||(q={data:q});if(q.data.messageRenderer)return _.og(new SSm(q.data.messageRenderer));if(q.data.trackingParams){var u=_.pN(),y=_.ZB();u&&y&&_.EC(u,y,_.Tj(q.data.trackingParams))}w=this.get("data.serializedTransactionFlowLoggingParams",w);Wrm(w);return _.Hw(q)},
handleCompleteTransactionFailure_:function(q){q=this.get("data.serializedTransactionFlowLoggingParams",q);_.Ri("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",q);return _.og(new xb("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",q))},
ypcCompleteTransactionHandler:function(q,w){var u=this;if(!w.ypcCompleteTransactionEndpoint)return!1;if(!w.ypcCompleteTransactionEndpoint.transactionParams)return _.cl(Error("xl")),!0;w.ypcCompleteTransactionEndpoint&&w.ypcCompleteTransactionEndpoint.gtmData&&_.s7(w.ypcCompleteTransactionEndpoint.gtmData);var y=_.tG().resolve(_.kF(_.OP));if(y){_.js(this.hostElement);var e=_.E3.instance;e&&_.RV(e,w)?_.cR(e,w).then(function(t){return!t||(t==null?0:t.error)?(t=u.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
w),_.og(new xb("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",t))):{data:t}}).then(function(t){_.t7(q,"yt-service-request-completed");
u.ypcCompleteTransactionSuccess_(w,t)},function(){return u.ypcCompleteTransactionFailure_(w)}):y.requestDataForServiceEndpoint(w).then(function(t){_.t7(q,"yt-service-request-completed");
u.ypcCompleteTransactionSuccess_(w,t)},function(){return u.ypcCompleteTransactionFailure_(w)})}return!0},
ypcCompleteTransactionSuccess_:function(q,w){_.lr(this.hostElement);w.data||(w={data:w});_.Pw(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);w.data.messageRenderer||w.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(q):(_.s7('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",q));w.data.actions&&(q=fBq(w.data.actions),w=m4V(w.data.actions),q.length&&_.GM(this.hostElement,
q),w.length&&_.nq(this.hostElement,w,this.hostElement))},
ypcCompleteTransactionFailure_:function(q){_.lr(this.hostElement);_.Pw(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",q,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(q,w,u){if(w=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",w))w={serializedTransactionFlowLoggingParams:w},u&&(w.errorType=u),_.pn(q,w),_.$8()}}];var jlh={};jlh.YtEndpointHandlerWithYpcBehavior=[_.Y$6,_.hm.YtActionHandlerBehavior,[{openWalletDialog:function(q,w,u,y,e,t,X){var G=this,n=_.S6();w=w.replace(/-/g,"+").replace(/_/g,"/");var N=_.UC().get("hl");_.Ffo(_.kX(_.cM),w,n.resolve,e,function(Q){t&&t();n.reject(Q)},N,function(Q){return G.onServerBackendAnalyticEvent_(q,u,Q)},this.onDialogClose_.bind(this),y,X);
return n.promise},
openFixFlowDialog:function(q,w,u,y){q=q.replace(/-/g,"+").replace(/_/g,"/");_.kX(_.cM).openFixFlowDialog(q,w,u,y)},
onDialogClose_:function(){_.Pw(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(q,w,u){_.t7(q,"yt-commerce-action-init-done");w&&_.GM(this.hostElement,[w,{backend_analytics:u}])}}],
_.ux.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(q,w){q=this.get("data.nativeFlowEndpoint",w);w=this.get("data.fallbackEndpoint",w);q?_.GM(this.hostElement,[q]):w&&_.t7(this.hostElement,"yt-navigate",{endpoint:w})}}],
cAq.YtCancelRecurrenceBehavior,hA6.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 q=this;WPK(this,function(w,u,y){return q.handleYPCEndpoint(w,u,y)});
this.ypcRegisterActionMapJobId_=_.mg(_.pi,function(){q.registerActionMap(q.buyFlowActionMap_)})},
detached:function(){var q=this;_.pi.cancelJob(this.ypcRegisterActionMapJobId_);_.mg(_.pi,function(){q.unregisterActionMap(q.buyFlowActionMap_)})},
handleYPCEndpoint:function(q,w,u){var y=w.ypcGetCartEndpoint;if(y){_.aD("commerce_transaction");var e=y.gtmId;e&&_.Wd(e);(y=y.gtmData)&&_.s7(y)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",w)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(q,w),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",w)!=null?(this.handleYPCFixInstrumentEndpoint_(q,w),!0):w.ypcPauseSubscriptionCommand?(FOh(this.hostElement,q,w,u),
!0):w.ypcResumeSubscriptionCommand?(Haj(this.hostElement,q,w),!0):w.getPaymentInstrumentsParamsCommand?(tNH(this.hostElement,q,w),!0):w.ypcHandleTransactionEndpoint?(ejA(this.hostElement,q,w,u),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(q,w){var u=this;_.D_("ttcr",void 0,"commerce_transaction");w=w.ypcGetCartEndpoint;var y=w.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,e=y.encryptedPurchaseParams,t=y.serializedTransactionFlowLoggingParams,X=y.serializedPaymentsClientParams,G=this.createGetCartResponseFromParams_(y,w.offerParams,t);this.changeButtonState(q,!0);_.Uj(this.openWalletDialog(q,e,y.ypcLogWalletAnalyticDataEndpoint,t,function(){u.changeButtonState(q,!1)},function(){u.changeButtonState(q,
!1)},X).then(function(n){return u.handleBuyFlowCompleteCallback_(q,G,n)},function(){return u.handleOnLoadError(G)}).then(function(n){return void u.handlePostPurchaseSuccess_(q,G,n)},function(n){return void u.handlePostPurchaseError_(n)}),function(){u.changeButtonState(q,!1);
q instanceof Element&&_.t7(q,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(q,w,u){var y=q.completeTransactionEndpoint,e=q.handleTransactionEndpoint;w={data:{offerParams:window.btoa(w),serializedTransactionFlowLoggingParams:u}};e?w.data.handleTransactionEndpoint=e:w.data.completeTransactionEndpoint=y;q.onCartDismissCommand&&(w.data.onCartDismissCommand=q.onCartDismissCommand);return w},
onGetCartServiceRequestCompleted_:function(q,w){var u=this,y=q.target;if(w&&w.data&&w.data.messageRenderer)_.lr(this.hostElement),this.handleMessageRenderer_(w.data.messageRenderer),this.changeButtonState(y,!1);else{var e=this.get("data.encryptedPurchaseParams",w),t=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",w),X=this.get("data.ypcLogWalletAnalyticDataEndpoint",w),G=this.get("data.serializedPaymentsClientParams",w),n=this.getLoggingParams_(w);if(n||e||t)q.stopPropagation(),_.D_("ttcr",
void 0,"commerce_transaction"),e||_.lr(this.hostElement),this.changeButtonState(y,!1),t?_.Pw(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Et("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:t}}},this]):e&&(this.changeButtonState(y,!0),q=null,q=this.openWalletDialog(y,e,X,n,function(){_.lr(u.hostElement);u.changeButtonState(y,!1)},function(){_.lr(u.hostElement);
u.changeButtonState(y,!1)},G),_.Uj(q.then(function(N){return u.handleBuyFlowCompleteCallback_(y,w,N)},function(){return u.handleOnLoadError(w)}).then(function(N){return u.handlePostPurchaseSuccess_(y,w,N)},function(N){return u.handlePostPurchaseError_(N)}),function(){u.changeButtonState(y,!1);
_.t7(y,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(q,w){w&&w.endpoint&&w.endpoint.ypcGetCartEndpoint&&!w.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",w.endpoint.ypcGetCartEndpoint)&&_.nq(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",w.endpoint.ypcGetCartEndpoint)],q.target),_.js(this.hostElement),this.changeButtonState(q.target,!0))},
onServiceRequestError_:function(q,w){if(w&&w.params&&w.params.length){w=_.P(w.params);for(var u=w.next();!u.done;u=w.next())if((u=u.value)&&u.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",u.ypcGetCartEndpoint)&&_.nq(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",u.ypcGetCartEndpoint)],q.target);_.lr(this.hostElement);this.changeButtonState(q.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(q,w,u){var y=u.integratorData;return y==null||y===""||u.error!=null?(y=this.getLoggingParams_(w),String(u.error)==="-1"?(w.data.onCartDismissCommand&&_.nq(this.hostElement,[w.data.onCartDismissCommand],q),_.og(new xb("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",y,!0))):_.og(new xb("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",y))):w.data.handleTransactionEndpoint?kax(this.hostElement,w.data.handleTransactionEndpoint,{payments_payload:y,funds_guarantee_callback_client_data:u.integratorClientCallbackData}):
this.completeTransaction(w,u)},
handlePostPurchaseSuccess_:function(q,w,u){w=u.data;var y=!1,e,t;if(w&&((e=w.command)==null?0:(t=e.commandExecutorCommand)==null?0:t.commands)){var X,G;e=(X=w.command)==null?void 0:(G=X.commandExecutorCommand)==null?void 0:G.commands;for(X=0;X<e.length;X++)if(_.C(e[X],_.ZGk)){y=!0;break}}y||(w&&w.gtmDatas&&w.gtmDatas.length?_.s7(w.gtmDatas[0]):_.s7('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));u.data&&u.data.actions&&(w=fBq(u.data.actions),u=m4V(u.data.actions),w.length&&
_.GM(this.hostElement,w),u.length&&_.nq(this.hostElement,u,q))},
handlePostPurchaseError_:function(q){q&&q.payload&&q.payload.isUserDismiss||_.vm(Error("zl"))},
handleOnLoadError:function(q){q=this.getLoggingParams_(q);return _.og(new xb("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",q))},
getLoggingParams_:function(q){return this.get("data.serializedTransactionFlowLoggingParams",q)},
handleMessageRenderer_:function(q){var w=_.bo(q,"renderer"),u=_.Et("openPopupConfig");w==="confirmDialogRenderer"&&u&&_.Pw(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:u.popupTypeMap[w],popup:q}},this])},
handleYPCFixInstrumentEndpoint_:function(q,w){var u=this,y=w.ypcFixInstrumentEndpoint;w=y.encryptedFixInstrumentParameters;this.logFixFopEvent_(y,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(q,!0);this.openFixFlowDialog(w,function(e,t){u.onFixFlowCompleteCallback_(y,e,t)},function(){return u.changeButtonState(q,!1)},function(){u.changeButtonState(q,!1);
u.logFixFopEvent_(y,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(q,w,u){var y=_.hP("payments.business.integration.scenario.FixInstrument");if(w==y.IntegratorCallbackType.ON_COMPLETE){w="FIX_FOP_EVENT_TYPE_CANCEL";var e=null;u.error!=null?u.error!=y.OnCompleteCallbackError.USER_CANCELLED&&(_.nq(this.hostElement,[q.errorAction],this.hostElement),w="FIX_FOP_EVENT_TYPE_FAILURE",e="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.nq(this.hostElement,[q.successAction],this.hostElement),w="FIX_FOP_EVENT_TYPE_SUCCESS");_.nq(this.hostElement,[q.onFinishAction],
this.hostElement);this.logFixFopEvent_(q,w,e)}},
logFixFopEvent_:function(q,w,u){(q=q.serializedFixFopLoggingParams)?(w={eventType:w,serializedFixFopLoggingParams:q},u!=null&&(w.errorType=u),_.pn("fixFopFlow",w),_.$8()):_.vm(Error("Al"))},
changeButtonState:function(q,w){_.T("enable_ypc_spinners")&&q&&(q.is==="yt-button-renderer"||q.is==="ytd-button-renderer")&&(q.disabled=w)}}];var lf6=function(q){this.JSC$28582_clientRoot=q;this.feedbackCollectorActionMap={"yt-help-dialog-requested":sOB,"yt-feedback-dialog-requested":WOB,"yt-signal-action-help":NGA,"yt-signal-action-send-feedback":QOj,"yt-send-feedback-action":iac,"yt-user-feedback-endpoint":rrV};_.Ln(_.lD.getInstance(),this.feedbackCollectorActionMap,this.JSC$28582_clientRoot)},L5T;var Mta=function(q){this.JSC$28587_clientRoot=q;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":UtB.bind(null,this.JSC$28587_clientRoot),"yt-signal-action-delete-all-downloads":CA4,"yt-signal-action-delete-download":dta,"yt-signal-action-delete-playlist-download":oN6,"yt-signal-action-install-pwa":zja,"yt-signal-action-refresh-downloads":Ar4,"yt-offline-video-endpoint":DtK,"yt-offline-playlist-endpoint":pQH,"yt-update-local-app-setting-command":vNh,"yt-offline-orchestration-action-command":Y1q,
"yt-signal-action-undo-delete-download":fVB,"yt-local-watch-history-command":Rjq};_.Ln(_.lD.getInstance(),this.downloadManagerActionMap,this.JSC$28587_clientRoot);_.bp.instance=new _.bp},K5q;var bL=function(){var q=_.Y.apply(this,arguments)||this;q.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_"};q.remoteApi_=null;return q};
_.O(bL,_.Y);_.k=bL.prototype;
_.k.ready=function(){_.T("polymer_enable_mdx")&&(G5m({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.T("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.T("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.T("enable_cast_short_lived_lounge_token")}),_.nn("yt-remote-connection-change",this.handleConnectionChange_,this),_.nn("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=IUA())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.k.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.k.handleConnectionChange_=function(q){(this.mdxConnected=q)?(q=WE6(),!q&&HNV()&&WHT()&&(q={key:"cast-selector-receiver",name:WHT()}),q=q.name):q=null;this.receiverName=q;_.BX(this.remoteApi_);(this.remoteApi_=IUA())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.k.handleReceiverAvailabilityChange_=function(){var q=HFV();HNV()&&_.Pd("yt-remote-cast-available")&&q.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=q.length>0};
_.k.handleRemoteQueueChange_=function(){var q=this.currentVideoId_,w=this.currentListId_,u=tS(this.remoteApi_);this.currentVideoId_=u.videoId;this.currentListId_=u.listId;this.currentVideoId_&&_.Pw(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.T("polymer_enable_mdx_queue")?this.currentListId_:null,q,w])};
_.k.handleAddToQueueAction_=function(q){q=_.C(q,h0V);this.remoteApi_&&(q.videoId?this.remoteApi_.addVideo(q.videoId):q.playlistId&&this.remoteApi_.addPlaylist(q.playlistId))};
_.k.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.k.handleInsertInQueueAction_=function(q){q=_.C(q,j86);this.remoteApi_&&q.videoId&&this.remoteApi_.JSC$17445_insertVideo(q.videoId)};
_.k.handleRemoveFromQueueAction_=function(q){q=_.C(q,lNj);this.remoteApi_&&q.videoId&&this.remoteApi_.JSC$17445_removeVideo(q.videoId)};
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],bL.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v(),_.h("design:type",Object)],bL.prototype,"appId",void 0);_.c([_.v(),_.h("design:type",Boolean)],bL.prototype,"mdxConnected",void 0);_.c([_.v(),_.h("design:type",Boolean)],bL.prototype,"receiverAvailable",void 0);_.c([_.v(),_.h("design:type",Object)],bL.prototype,"receiverName",void 0);_.c([_.v(),_.h("design:type",Object)],bL.prototype,"currentVideoId_",void 0);
_.c([_.v(),_.h("design:type",Object)],bL.prototype,"currentListId_",void 0);bL=_.c([_.JM({is:"yt-mdx-manager",disableElementRegistration:!0})],bL);_.R(bL,"yt-mdx-manager",void 0,{mode:2});var BOc;var xSq;var Y7=function(){var q=_.Y.apply(this,arguments)||this;q.APP_IDS={ytr:3,ytm:5};q.JSC$18683_timeoutId_=0;q.actionMap={"yt-open-create-family-dialog":"open"};return q};
_.O(Y7,_.Y);_.k=Y7.prototype;_.k.created=function(){Aeh(2200)};
_.k.detached=function(){this.observer_&&this.observer_.disconnect()};
_.k.open=function(q,w){var u=this,y=q.serializedYpcFamilyCreateLoggingParams;this.JSC$18683_timeoutId_=setTimeout(this.abort_.bind(this,q.postFlowErrorEndpoint,y),3E4);w&&(this.onReadyCallback_=w);var e=_.A(this.hostElement).querySelector("#unicorn-iframe");y&&y&&nZm("ypcFamilyCreateFlowStarted",y);_.Xzl("family_creation",function(){var t=_.hP("gapi.family_creation.render");_.hP("gapi.config.update")("iframes/family_creation/url",u.getFamilyCreationUrlWithUnicornParams_());var X=3;q.appId&&q.appId in
u.APP_IDS&&(X=u.APP_IDS[q.appId]);X={authUser:_.Et("SESSION_INDEX")||0,clientId:X,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Et("HL"),initialflow:[4,5,6,7],m:u.isMobile?1:0,onFlowComplete:u.onUnicornFlowComplete_.bind(u,q.postFlowSuccessEndpoint,y),onError:u.onUnicornFlowError_.bind(u,q.postFlowErrorEndpoint,y),onReady:u.onUnicornFlowReady_.bind(u,q.referencePcidParams)};t(e,X)})};
_.k.close=function(){_.A(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.k.onUnicornFlowComplete_=function(q,w){this.close();w&&w&&nZm("ypcFamilyCreateFlowSucceeded",w);_.t7(this.hostElement,"yt-navigate",{endpoint:q})};
_.k.onUnicornFlowError_=function(q,w){this.close();w&&nZm("ypcFamilyCreateFlowCancelled",w);_.t7(this.hostElement,"yt-navigate",{endpoint:q})};
_.k.onUnicornFlowReady_=function(q){var w=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();q&&_.hP("gapi.family_creation.setConfig")(0,q);this.observer_=new MutationObserver(function(){_.A(w.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.A(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.A(this.hostElement).querySelector("#dialog").open()};
_.k.getFamilyCreationUrlWithUnicornParams_=function(){return _.Et("YTR_FAMILY_CREATION_URL")};
_.k.getCurrentUrl_=function(){return document.location.href};
_.k.abort_=function(q,w){this.clearTimeout_();this.onUnicornFlowError_(q,w)};
_.k.clearTimeout_=function(){clearTimeout(this.JSC$18683_timeoutId_)};
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],Y7.prototype,"ytActionHandlerBehavior",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],Y7.prototype,"isMobile",void 0);_.c([_.v(),_.h("design:type",Object)],Y7.prototype,"onReadyCallback_",void 0);_.c([_.v(),_.h("design:type",Object)],Y7.prototype,"observer_",void 0);Y7=_.c([_.JM({is:"yt-create-family-dialog",disableElementRegistration:!0})],Y7);
_.R(Y7,"yt-create-family-dialog",function(){if(xSq===void 0){var q=document.createElement("template");_.f(q,'\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');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);var w=q.content,u=w.insertBefore;BOc===void 0&&(BOc=document.createElement("template"));var y=BOc;u.call(w,y.content.cloneNode(!0),q.content.firstChild);xSq=q}q=xSq;return q},{mode:2});var qdK;var wbT;var gK=function(){var q=_.Y.apply(this,arguments)||this;q.STEP=1;q.BLOCK_ON=80;q.MIN_PROGESS=0;q.MAX_PROGESS=100;return q};
_.O(gK,_.Y);_.k=gK.prototype;_.k.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.k.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));_.tG().addProvider({provide:j4V,useValue:this})};
_.k.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.k.finish=function(){var q=this;this.progress=this.MAX_PROGESS;crm(function(){q.progress==q.MAX_PROGESS&&(q.hostElement.hidden=!0)})};
_.k.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.x$.Object.defineProperties(gK.prototype,{progress:{configurable:!0,enumerable:!0,set:function(q){this.progress_=q;var w="scaleX("+q/this.MAX_PROGESS+")",u=_.A(this.hostElement).querySelector("#progress").style;u.transform=w;u.webkitTransform=w;this.hostElement.setAttribute("aria-valuenow",String(q))},
get:function(){return this.progress_}}});
_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],gK.prototype,"ytComponentBehavior",void 0);gK=_.c([_.JM({is:"yt-page-navigation-progress",disableElementRegistration:!0})],gK);
_.R(gK,"yt-page-navigation-progress",function(){if(wbT===void 0){var q=document.createElement("template");_.f(q,'\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');q.content.insertBefore(_.K().content.cloneNode(!0),
q.content.firstChild);var w=q.content,u=w.insertBefore;qdK===void 0&&(qdK=document.createElement("template"));var y=qdK;u.call(w,y.content.cloneNode(!0),q.content.firstChild);wbT=q}q=wbT;return q},{mode:2});var uIm={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"},y0m={"font-size":"12px","font-style":"italic"},eih={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.lVA=function(){return _.F(function(q){_.HI(q)})};_.q9(_.LL(function(){var q=_.aV(_.agJ);return _.W("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var w;return(w=q())==null?void 0:w.announcement})},"Ug"),"yt-ephemeral-actions");var Hpx=new Map;var StB=function(q,w){var u=this;this.handleError=q;this.logEventInternal=w;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){u.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
StB.prototype.logError=function(q){this.handleError(q)};
StB.prototype.logEvent=function(q,w){switch(q){case "IDB_DATA_CORRUPTED":_.T("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",w);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",w);break;case "IS_SUPPORTED_COMPLETED":_.T("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",w);break;case "QUOTA_EXCEEDED":kNH(this,w);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",w);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":q=Object.assign({},w,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",q)}};
var kNH=function(q,w){_.G$.getInstance().estimate().then(function(u){u=Object.assign({},w,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:sic(u==null?void 0:u.usage),deviceStorageQuotaMbytes:sic(u==null?void 0:u.quota)});q.logEventInternal("idbQuotaExceeded",u)})};var E_=function(){var q=_.Y.apply(this,arguments)||this;q.tabGesturesIsActive=!1;q.deprecateFullerscreenUi=_.T("web_watch_fullerscreen_deprecation_ui");q.hasDelegation=!1;q.darkerDarkTheme=_.T("web_darker_dark_theme");q.isFrostedGlassInitialized=!1;q.frostedGlassExp=_.T("web_frosted_glass");q.mastheadHiddenFocusWithinKillswitch=_.T("web_masthead_hidden_focus_within_killswitch");q.ephemeralActionsEnabled=_.T("web_ephemeral_actions");q.scrollAtTop=!0;q.guideScrollTop=0;q.isTheaterModeSession=_.RX("START_IN_THEATER_MODE");
q.iMaxTheaterMode=_.T("web_watch_imax_theater_mode");q.isFullWindowSession=_.RX("START_IN_FULL_WINDOW_MODE");q.hasCreateFamilyDialog=!1;q.mastheadHeight=56;q.networkStatusManager=new _.MQ;q.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"};q.dynamicActionMap={"yt-run-attestation-command":function(w){var u=_.ear.instance,y=_.C(w,_.qIX);return y?_.T("use_rta_manager_for_async")&&
AP6()?rMa(u,y,w.clickTrackingParams):iLj(u,y,w.clickTrackingParams):_.og(Error("li"))}};
q.isFrostedGlassDisabled=!1;q.isChannelOrPlaylistPage=!1;return q};
_.O(E_,_.Y);_.k=E_.prototype;_.k.created=function(){var q=_.tG();_.T("kevlar_clear_duplicate_pref_cookie")&&_.mg(_.pi,function(){var w=_.TQ.get("PREF");w&&!/f\d=/.test(w)&&(w=_.GQ("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=w?"PREF=null;domain="+w+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.T("gzip_gel_with_worker")&&_.oNM();_.T("jspb_serialize_with_worker")&&wGa();_.T("web_worker_availability_check")&&W4q();_.T("nwl_init_killswitch")||xZH().then(function(){_.pi.addLowPriorityJob(rph)});
this.pageManagerAttachedPromise=_.S6();this.ytdAppBehavior.loadDepsPromise=_.rD([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.MI(this.onThrottledScroll,200,this);_.T("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);hCj();$2x=!!_.hP("ytappsettings.initialized");Ge=_.hP("ytappsettings.previousValue");hW4=_.hP("ytappsettings.previousSnapshotTime");$2x||($2x=!0,j2V());oGA();VpK();_.g_("DEFERRED_DETACH",
_.T("kevlar_tuner_should_defer_detach"));_.g_("REUSE_COMPONENTS",!0);_.g_("STAMPER_STABLE_LIST",!0);_.g_("SCHEDULED_LAZY_LIST",!0);_.g_("openPopupConfig",FkH);_.g_("useClickHandler",!0);_.T("kevlar_shell_cleanup")&&_.pi.addLowPriorityJob(Zvm.bind(this,_.uc.caches));_.RX("IS_SHELL_LOAD")&&_.zM({shellStartupDurationMs:Math.round((0,_.eW)()-_.VY())});BGB(this.networkStatusManager);_.T("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",S1B(uIm)),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!",
S1B(y0m)),console.log("%cVisit http://go/join-youtube-web to apply today.",S1B(eih)));_.hqm(q.resolve(_.tQ),1E3)};
_.k.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var q=nFT();q&&!_.T("external_fullscreen_killswitch")&&document.addEventListener(q,this.setFullscreen.bind(this));(q=window.matchMedia("(prefers-color-scheme: dark)"))&&q.addEventListener&&q.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.k.attached=function(){var q=this;_.DU().processSignal("ci");_.T("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.D0j?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Wr(_.mFj(),"SUCCESS");this.updateIconSet();_.eB(this.guideInnerContent,!1);_.e0().initVisibilityObserver();this.guideService.guideElement=this.guide;var w=document.createElement("ytd-miniplayer"),u=_.A(this.hostElement).querySelector("#content");
_.A(this.hostElement).insertBefore(w,u);_.DU().processSignal("ma");_.tG().resolve(_.$X).init(w);_.RX("IS_SHELL_LOAD")&&(u=document.createElement("ytd-network-status-banner"),_.A(this.hostElement).insertBefore(u,w));_.T("kevlar_right_click_on_lockups")&&_.go._onCaptureClick&&document.addEventListener("contextmenu",_.go._onCaptureClick.bind(_.go),!0);var y=function(){var e=_.E7("yt-page-navigation-progress");_.A(q.hostElement).appendChild(e)};
setTimeout(function(){_.DU().parkOrScheduleJob(y,0,"eocs",16)},0);
_.T("service_worker_push_enabled")&&_.mg(_.pi,GPB);_.Ln(_.lD.getInstance(),this.dynamicActionMap,this.hostElement);_.t7(this.hostElement,"ytd-app-attached");_.DU().processSignal("aa");f7j(this.hostElement);_.wr("gapi.load",_.Xzl);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.mg(_.pi,
function(){var e=document.createElement("ytd-video-preview");_.A(_.A(q.hostElement).querySelector("#video-preview")).appendChild(e)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.mg(_.pi,function(){LOq();q.registerViewTransitionTasks()});
if(_.vM()&&this.isAppDarkTheme()!==_.pp())this.onDarkModeToggledAction();else w=_.$M()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==w&&(_.T("enable_dark_theme_only_on_shorts")?_.Zu(_.T("enable_dark_theme_only_on_shorts_control")?window.location.href:_.Bl(window.location.href,{theme:"dark"})):_.Y8(new _.fv("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(Wkh=new HKx(this.hostElement)),K5q=new Mta(this.hostElement),L5T=new lf6(this.hostElement),aiB=new zxT(this.hostElement)};
_.k.getThemeSettingsToLog=function(){var q=_.$M()==="USER_INTERFACE_THEME_DARK";q=_.vM()?_.pp()?"os-dark":"os-light":q?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:q,cookiesEnabled:_.d$()}};
_.k.detached=function(){_.k1(this.guideInnerContent);_.pi.cancelJob(kb);kb=0;_.pi.cancelJob(PP);PP=0;_.bpf(Vvh);Vvh.length=0;duj=_.yV7=null;_.e0().dispose();_.T("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.M5(_.lD.getInstance(),Wkh.playlistHandlerActionMap,Wkh.JSC$28283_clientRoot);_.M5(_.lD.getInstance(),K5q.downloadManagerActionMap,K5q.JSC$28587_clientRoot);_.M5(_.lD.getInstance(),L5T.feedbackCollectorActionMap,L5T.JSC$28582_clientRoot);
for(var q=_.P(aiB.eventListeners),w=q.next();!w.done;w=q.next()){var u=_.P(w.value);w=u.next().value;u=u.next().value;u=_.P(u);for(var y=u.next();!y.done;y=u.next()){var e=_.P(y.value);y=e.next().value;e=e.next().value;w.removeEventListener(y,e)}}_.M5(_.lD.getInstance(),aiB.autonavPauseActionMap,aiB.JSC$17630_clientRoot)};
_.k.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.UC().getFlag(186)};
_.k.computeIsInlinePreviewEnabled=function(q,w,u){return!u&&_.ESH({miniplayerIsActive:q,miniplayerPlaybackState:w})};
_.k.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.tr({type:"SET_FROSTED_GLASS_MODE",payload:!_.T("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.k.computeIsFrostedGlassDisabled=function(q,w,u,y){return q||w||u||y&&_.T("web_frosted_glass_disable_watch")};
_.k.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.T("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.k.computeIsHomePage=function(q,w){if(!q||w==null||!w.endpoint)return!1;var u;return((u=_.C(w.endpoint,_.Ii))==null?void 0:u.browseId)==="FEwhat_to_watch"};
_.k.updateIsChannelOrPlaylistPage=function(){if(_.T("web_frosted_glass")){var q,w,u=(w=(q=_.tG().resolve(_.kF(_.KT)))==null?void 0:q.getCurrentPage())==null?void 0:w.pageSubtype;this.isChannelOrPlaylistPage=u?["channel","channels","playlist"].includes(u):!1}};
_.k.scheduleFrostedGlassInitialization=function(){var q=this;_.T("web_frosted_glass")&&_.DU().parkOrScheduleJob(function(){q.isFrostedGlassInitialized=!0},0,_.JQ(["eocs",
"cr"]),300)};
_.k.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.JoZ(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.tr({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.tr({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.k.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(VDB(!0))};
_.k.onYtSignalActionRequestPersistentStorage=function(){if(!_.T("request_persistent_storage_killswitch")){var q=_.tG().resolve(_.gvX);q.cachedPersistStatePromise||(q.cachedPersistStatePromise=S6q())}};
_.k.handleYtChannelCreationFormEndpoints=function(q){q&&this.ytComponentBehavior.resolveCommand(q)};
_.k.handleShowEngagementPanelEndpoint=function(q){q&&this.ytComponentBehavior.resolveCommand(q)};
_.k.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(VDB(!1))};
_.k.initIconDefs=function(q,w,u){var y=document.createElement("iron-iconset-svg");y.name=q;q=document.createElementNS("http://www.w3.org/2000/svg","svg");y.appendChild(q);q.appendChild(w);if(u)for(var e in u)y[e]=u[e];document.body.appendChild(y);return y};
_.k.onWindowResized=function(){_.Pw(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var q=_.gz3.getInstance();q.documentWidth_=document.body.clientWidth;hM6(q)};
_.k.onWindowScrolled=function(){var q=_.tG().resolve(_.KT).getCurrentPage();if(q!=null&&q.getScrollTop){var w=this.ytdReduxBehavior,u=w.dispatch;q=q.getScrollTop()<=0;u.call(w,_.tr({type:"SET_SCROLL_AT_TOP",payload:q}))}};
_.k.guideIsVisibleButNotPersistentSelectorChanged=function(){var q=_.tG().resolve(_.KT).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=q.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"),
q.setScrollTop(this.guideScrollTop));_.X4(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.k.getCurrentPageScrollableElementType=function(){var q=_.tG().resolve(_.KT).getCurrentPage();if(q&&q.getPageScrollingElement())return q.getPageScrollingElement().nodeName};
_.k.observeGuideVisibility=function(){var q=_.gz3.getInstance(),w=this.miniGuideVisible;q.guidePersistentAndVisible_=this.guidePersistentAndVisible;q.miniGuideVisible_=w;hM6(q)};
_.k.handleEduDismissAction=function(q){q&&q.eduDismissAction&&(_.Pw(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.pA$.getInstance(),_.j$.set(q.eduDismissAction.key+"-dismissed",!0))};
_.k.handleEduImpressionAction=function(q){if(q&&q.eduImpressionAction){var w=_.pA$.getInstance();q=q.eduImpressionAction.key;w.JSC$10805_eduDisplayedThisLoad_[_.ZQ$[q].setKey||q]=!0;_.j$.set(q+"-impression",parseInt(_.j$.get(q+"-impression")||0,10)+1)}};
_.k.onYtSignalActionConfirmMentionsEdu=function(){_.Pw(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.Mk.getInstance();_.LF.set("edu-dismissed",!0)};
_.k.onYtSignalActionRecordMentionsEduImpression=function(){_.Mk.getInstance();var q=_.LF.set,w=parseInt(_.LF.get("edu-impressions"),10);q.call(_.LF,"edu-impressions",(isFinite(w)?w:0)+1)};
_.k.onYtPageManagerAttached=function(q){var w;((w=_.he(q))==null?void 0:w.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.k.onInvokeInstrumentManagerAction=function(q,w){ipc(w,q)};
_.k.updateIconSet=function(){var q=this.hostElement.querySelector("#masthead");if(q){var w=_.y6(q),u=w.querySelector("g#yt-logo-updated");u&&(q=document.createElementNS("http://www.w3.org/2000/svg","defs"),q.appendChild(u.cloneNode(!0)),(w=w.querySelector("g#yt-logo-red-updated"))&&q.appendChild(w.cloneNode(!0)),this.initIconDefs("yt-logos-ext",q))}};
_.k.updateMastheadData=function(){var q=this,w,u,y,e,t;return _.F(function(X){if(X.nextAddress==1){w=q.data;u=q.hostElement.querySelector("#masthead");if(!u)return X.return();_.KJ(q,function(){u.data=q.topbarData});
if(!q.get("response.topbar",w)||q.get("response.topbar.responseContext.maxAgeSeconds",w)===0)return X.jumpTo(0);if(y=_.tG().resolve(_.gq))return _.H(X,y(),6);e=_.tG().resolve(_.wu);return _.H(X,e.put("service:topbar:fallback",new _.ub({innertubeResponse:q.get("response.topbar",w)})),0)}return(t=X.yieldResult)?_.H(X,t.put("service:topbar:fallback",new _.ub({innertubeResponse:q.get("response.topbar",w)})),0):X.jumpTo(0)})};
_.k.computeTopbarData=function(q){if(!q)return null;var w;return this.isShortsPage&&this.topbarData&&!_.C((w=q.response)==null?void 0:w.topbar,aNV)?this.topbarData:q.response&&"topbar"in q.response?_.C(q.response.topbar,aNV)||null:null};
_.k.onSetTheaterModeEnabled=function(q,w){this.isTheaterModeSession=w.enabled;this.setTheaterModeStyles(w.enabled)};
_.k.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.k.onDarkModeToggledAction=function(){var q=_.QV(window.location.href);if(!_.HUz(q)){(q=!!_.K4(window.location.href).themeRefresh)&&_.Y8(new _.fv("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!q){j2V();q={themeRefresh:1};var w=_.tG().resolve(_.KT);if(w.isOnWatch()){var u,y;w=((u=w.getPlayerFromWatch())==null?void 0:(y=u.getPlayer())==null?void 0:y.getCurrentTime())||0;w>=1&&(q.time_continue=Math.floor(w))}_.d$()||_.$M()!=="USER_INTERFACE_THEME_DARK"||(q.theme="dark");_.Zu(_.Bl(window.location.href,
q))}_.T("web_appshell_refresh_trigger")&&_.uc.caches&&this.refreshAppShellResponse();u=_.cf(window.location.href);_.kz(_.tG().resolve(_.tH),_.qU(u,"theme"))}};
_.k.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.k.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.k.onPlayerFullscreen=function(q){_.uy();this.playerFullscreen=q};
_.k.setRestrictedMode=function(q){var w=_.UC();_.TM(0,58,q);w.save();_.tG().resolve(_.yA).reload()};
_.k.onPageChanged=function(q){q.detail.newPageType==="ytd-watch-flexy"||q.detail.newPageType==="ytd-watch-fixie"||q.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.fC("WEB_PAGE_TYPE_WATCH")):q.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.fC("WEB_PAGE_TYPE_SHORTS")):q.detail.newPageType==="ytd-browse"&&q.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.fC("WEB_PAGE_TYPE_MINI_APP")):_.T("web_frosted_glass")&&q.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.fC("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.fC("WEB_PAGE_TYPE_UNKNOWN"));q.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.k.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.k.onGuideToggleTap=function(){_.t7(this.hostElement,"yt-guide-toggle")};
_.k.onGuideToggleHover=function(){_.t7(this.hostElement,"yt-guide-hover")};
_.k.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.k.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.k.setMastheadTheme=function(){var q=_.y6(this.hostElement).querySelector("#masthead");q&&(q.dark=q.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),q.isDarkThemeForced=!1)};
_.k.onRequestPanelModeChange=function(q,w){this.hideHeaderShadow=w.mode!=="seamed"};
_.k.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.k.onDrawerIronSelect=function(q){_.he(q).id==="guide"&&this.processDrawerIronSelect()};
_.k.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var q="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(q="opened"));_.t7(this.hostElement,"yt-autonav-pause-guide-"+q)};
_.k.onAddElementToApp=function(q){_.A(this.hostElement).appendChild(q.detail)};
_.k.onThrottledScroll=function(){var q=_.tG().resolve(_.KT).getCurrentPage();q&&(this.scrollAtTop=q.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.k.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.k.setFullscreen=function(){if(_.T("external_fullscreen")||!this.isWatchPage){var q=_.T("kevlar_fullerscreen_root_only_killswitch")?!!_.uy():!!_.uy()&&_.uy()===document.documentElement;q=(this.isWatchPage||_.T("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(q||this.isFullWindowSession);this.fullscreen!==q&&((this.fullscreen=q)&&_.X4(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Mt().dispatch(_.owH(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.Pw(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.k.setFullscreenLoggingForShorts=function(q){var w,u,y;return _.F(function(e){if(e.nextAddress==1)return _.H(e,(w=_.xo())==null?void 0:w.getPlayerPromise(),2);u=e.yieldResult;(y=u)==null||y.setAppFullscreen(q);_.HI(e)})};
_.k.updateMastheadCssHeight=function(){var q=this.mastheadHeight;this.fullscreen&&(q=0);_.Pj(this.hostElement,{"--ytd-masthead-height":q+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.k.updateNetworkStatusBannerDisplayStatus=function(){var q="unset";this.fullscreen&&(q="none");_.Pj(this.hostElement,{"--ytd-network-status-banner-display":q})};
_.k.updateNetworkStatusBannerCssHeight=function(){var q="unset";this.fullscreen&&(q="0px");_.Pj(this.hostElement,{"--ytd-network-status-banner-max-height":q})};
_.k.updateScrollAndMasthead=function(q,w,u,y){this.iMaxTheaterMode||(y=!1);var e=_.tG().resolve(_.KT).getCurrentPage();q||w||y?(document.body.classList.add("no-scroll"),e.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Fj(this,this.onScroll)),e.setScrollTop(0),_.Pj(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.fl()+"px"})):u?_.t7(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.t7(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
e.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Fj(this,this.onScroll)));this.mastheadHidden=q||w||u;this.updateMastheadCssHeight();_.T("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.k.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.k.onYtNavigateAction=function(q){q=this.get("navigateAction.endpoint",q);_.t7(this.hostElement,"yt-navigate",{endpoint:q})};
_.k.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var q=document.createElement("yt-create-family-dialog");_.A(this.hostElement).appendChild(q);this.hasCreateFamilyDialog=!0}};
_.k.onSetPushNotificationsEnabledCommand=function(q){var w=this,u=_.C(q,z06);u&&typeof u.enabled==="boolean"&&(Notification.permission!=="granted"?kPc().then(function(){Notification.permission==="granted"?(EF4(!u.enabled).then(S86),u.successAction&&_.GM(w.hostElement,[u.successAction])):u.failureAction&&_.GM(w.hostElement,[u.failureAction])}):(EF4(!u.enabled).then(S86),u.successAction&&_.GM(this.hostElement,[u.successAction])))};
_.k.onYtSignalActionEnableChromeNotifications=function(){tWA(!0)};
_.k.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.C(this.topbarData.hotkeyDialog,puH)}}})};
_.k.onYtSignalActionShowKeyboardShortcutDialog=function(){_.Pw(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.k.onYtEndpointChangeHandler=function(q,w){var u=_.kX(_.u1);u.pendingPrefetchJob_&&(w=!(!w||w.autonav!="1"),u.pendingPrefetchJob_.resolve(q&&_.eFH(q)?_.kDM(q,w):""),u.pendingPrefetchJob_=null);_.Pw(this.hostElement,"yt-pause-active-page-context");_.Pw(this.hostElement,"ytd-log-youthere-nav");_.Pw(this.hostElement,"yt-prepare-page-dispose")};
_.k.handleCommandWithCommandHandler=function(q,w){_.nx.instance.resolveCommand(q,{form:{element:w}})};
_.k.onYtTimedCommand=function(q){var w=this;q=_.C(q,UAm);var u=q.command;u&&_.dE(_.pi,function(){var y=_.C(u,_.Gwr);y?(_.nx.instance.resolveCommand(u),w.maybeLogGetAnswerRequestTick(y)):_.nq(w.hostElement,[u],w.hostElement)},q.timeoutMs||0)};
_.k.maybeLogGetAnswerRequestTick=function(q){q&&q.isFirstRequest&&(_.aD("search_overview_answer"),_.D_("so_rq",void 0,"search_overview_answer"))};
_.k.onYtSignalActionSkipNavigation=function(){var q=_.tG().resolve(_.KT).getCurrentPage();_.q5(q)};
_.k.onYtSignalActionCopyDebugData=function(){r6A()};
_.k.handleEntityUpdateCommand=function(q){_.IO(_.C(q,_.F_r).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.k.logFlowLoggingEventCommand=function(q){if(q=_.C(q,_.SSl))if(q.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var w=q.flowEventNamespace,u=q.flowEventType,y=q.flowType;y&&w&&u&&_.Kkz(_.np(w,u,q.flowEventMetadata),y)}else{w=_.WM();u=q.flowEventNamespace;y=q.flowEventType;var e=q.flowType;e&&u&&y&&_.HM(w,_.np(u,y,q.flowEventMetadata),e,q.flowNonce)}};
_.k.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.k.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.k.onTouchStart=function(){var q=_.kY();_.pN()&&_.gm(q.JSC$10956_screenManager,{visualElement:q.ve})};
_.k.handleSelectLanguageCommand=function(q){if(q=_.C(q,mAT).hl){var w=_.UC();w.set("hl",q);w.save();_.tG().resolve(_.yA).reload()}};
_.k.handleConfirmDialogEndpoint=function(q){(q=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(q))&&this.ytOpenPopupBehavior.openPopup(q)};
_.k.handleOpenPopupNavigationEndpoints=function(q,w){_.T("web_button_rework")&&(q=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(q))&&this.ytOpenPopupBehavior.openPopup(q,w)};
_.k.handleSaveCommandToSessionStorage=function(q){if(q=_.C(q,_.tcc)){var w=q.key;w&&q.command&&window.sessionStorage.setItem(w,JSON.stringify(q.command))}};
_.k.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(q){q&&q.active&&q.active.postMessage({type:"refresh_shell"})}).catch(function(q){q.name!=="SecurityError"&&_.vm(q)})};
_.k.onDeviceThemeChanged=function(){var q=_.pp();_.TM(_.UC(),185,q);_.UC().save()};
_.k.handleYtRegisterPromoCommand=function(q){if(_.C(q,J3x)){var w=_.tG().resolve(_.KT).getCurrentPage()||this.hostElement;guK().registerPromoCommand(_.C(q,J3x),w)}};
_.k.onYtNavigateHomeAction=function(){if(!_.T("kevlar_miniplayer_navigate_home_from_app_killswitch")){var q,w,u,y,e=(y=(q=this.topbarData)==null?void 0:(w=q.logo)==null?void 0:(u=w.topbarLogoRenderer)==null?void 0:u.endpoint)!=null?y:_.Wh;this.ytComponentBehavior.resolveCommand(e)}};
_.k.onYtLocationCollectionCommand=function(q){jOx(_.C(q,c3m))};
_.k.onYtGetLocationCommand=function(q){aBT(_.C(q,R06),this)};
_.k.updateRenderGuideFromBinding=function(q){this.renderGuide=q.detail.value};
_.k.updateGuidePersistentAndVisibleFromBinding=function(q){this.guidePersistentAndVisible=q.detail.value};
_.k.updateMiniGuideVisibleFromBinding=function(q){this.miniGuideVisible=q.detail.value};
_.k.onThemeSelected=function(q,w){var u=_.UC(),y=q||w?q:_.pp(),e=(y&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!y&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.HUz(_.QV(window.location.href));_.TM(0,165,q);_.TM(0,174,w);u.save();e&&_.Pw(this.hostElement,"yt-dark-mode-toggled-action",[y]);_.Pw(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.k.getCurrentTheme=function(){return _.vM()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.$M()};
_.k.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.k.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.k.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.k.handleShowConsentPrimitive=function(q){var w=this,u,y;return _.F(function(e){if(e.nextAddress==1){try{u=(y=_.xo())==null?void 0:y.getPlayerPromise()}catch(t){}return _.H(e,nMA(q,u),2)}_.Pw(w.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.HI(e)})};
_.k.handleSelectActiveIdentityEndpointInternal=function(q){_.ai();q=_.C(q,_.o9F);if(q!=null&&q.supportedTokens){q=_.P(q.supportedTokens);for(var w=q.next();!w.done;w=q.next())w=w.value,w.accountSigninToken&&_.Zu(w.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.k.handleUpdatePermissionRoleCommand=function(q){if(q=_.C(q,_.ddj)){var w;this.hasDelegation=!((w=_.C(q.renderer,_.CRc))==null||!w.status)}};
_.k.registerViewTransitionTasks=function(){var q=this,w=_.tG().resolve(_.kF(_.Q8));if(w){var u,y=(u=this.guide)==null?void 0:u.querySelector("#scrim"),e,t=(e=this.guide)==null?void 0:e.querySelector("#contentContainer");y&&t&&(u={beforeTransition:function(){var X;(X=q.guide)!=null&&X.persistent||(y.style.viewTransitionName="app-drawer-scrim",t.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var X;(X=q.guide)!=null&&X.persistent||(y.style.viewTransitionName="",t.style.viewTransitionName="")}},L_(w,"slide",u),L_(w,"zoom",u))}};
_.x$.Object.defineProperties(E_.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.T("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.x$.Object.defineProperties(E_,{template:{configurable:!0,enumerable:!0,get:function(){if(Eah===void 0){var q=document.createElement("template");_.f(q,'\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<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
q.content.insertBefore(_.K().content.cloneNode(!0),q.content.firstChild);Eah=q}q=Eah;return q}}});
E_.prototype.onOpenHotkeyDialog=E_.prototype.onOpenHotkeyDialog;E_.prototype.setFullscreen=E_.prototype.setFullscreen;E_.prototype.onAddElementToApp=E_.prototype.onAddElementToApp;E_.prototype.onDrawerIronSelect=E_.prototype.onDrawerIronSelect;E_.prototype.onGuideOpenButtonHover=E_.prototype.onGuideOpenButtonHover;E_.prototype.onRequestPanelModeChange=E_.prototype.onRequestPanelModeChange;E_.prototype.onPageDataUpdated=E_.prototype.onPageDataUpdated;E_.prototype.onPageChanged=E_.prototype.onPageChanged;
E_.prototype.onSetTheaterModeEnabled=E_.prototype.onSetTheaterModeEnabled;E_.prototype.updateMastheadData=E_.prototype.updateMastheadData;E_.prototype.onYtPageManagerAttached=E_.prototype.onYtPageManagerAttached;E_.prototype.observeGuideVisibility=E_.prototype.observeGuideVisibility;E_.prototype.guideIsVisibleButNotPersistentSelectorChanged=E_.prototype.guideIsVisibleButNotPersistentSelectorChanged;E_.prototype.isInlinePreviewEnabledChanged=E_.prototype.isInlinePreviewEnabledChanged;
E_.prototype.isWatchPageChanged=E_.prototype.isWatchPageChanged;E_.prototype.dispatchFrostedGlassMode=E_.prototype.dispatchFrostedGlassMode;_.c([_.D(_.fU),_.h("design:type",Object)],E_.prototype,"ytdReduxBehavior",void 0);_.c([_.D(_.nz.YtEventForwardingBehavior),_.h("design:type",Object)],E_.prototype,"ytEventForwardingBehavior",void 0);_.c([_.D(_.ux.YtOpenPopupBehavior),_.h("design:type",Object)],E_.prototype,"ytOpenPopupBehavior",void 0);
_.c([_.D(_.hm.YtActionHandlerBehavior),_.h("design:type",Object)],E_.prototype,"ytActionHandlerBehavior",void 0);_.c([_.D({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.lD.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.T("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var q;((q=this.actionRouterNode.hostElement)!=null?q:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var q;((q=this.actionRouterNode.hostElement)!=null?q:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(q){this.actionRouter_.handleAction(q.detail)}}),
_.h("design:type",Object)],E_.prototype,"ytActionRouterBehavior",void 0);_.c([_.D(LEc.YtdAppBehavior),_.h("design:type",Object)],E_.prototype,"ytdAppBehavior",void 0);_.c([_.D(_.yL.YtEndpointBehavior),_.h("design:type",Object)],E_.prototype,"ytEndpointBehavior",void 0);_.c([_.D(jlh.YtEndpointHandlerWithYpcBehavior),_.h("design:type",Object)],E_.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.c([_.D(RAT.YtLogYpcFlowCommandsBehavior),_.h("design:type",Object)],E_.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.c([_.D(_.B.YtRendererBehavior),_.h("design:type",Object)],E_.prototype,"ytRendererBehavior",void 0);_.c([_.D(_.fK.YtComponentBehavior),_.h("design:type",Object)],E_.prototype,"ytComponentBehavior",void 0);_.c([_.v({selector:_.UCh}),_.h("design:type",Object)],E_.prototype,"tabGesturesIsActive",void 0);_.c([_.v(),_.h("design:type",Boolean)],E_.prototype,"renderGuide",void 0);
_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],E_.prototype,"guidePersistentAndVisible",void 0);_.c([_.v({selector:_.raq}),_.h("design:type",Boolean)],E_.prototype,"guideIsVisibleButNotPersistent",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],E_.prototype,"standalone",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],E_.prototype,"miniGuideVisible",void 0);
_.c([_.v({selector:_.sBc}),_.h("design:type",Number)],E_.prototype,"miniplayerPlaybackState",void 0);_.c([_.v({selector:_.DV,reflectToAttribute:!0}),_.h("design:type",Boolean)],E_.prototype,"miniplayerIsActive",void 0);_.c([_.v({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.h("design:type",Boolean)],E_.prototype,"isInlinePreviewEnabled",void 0);_.c([_.v(),_.h("design:type",Boolean)],E_.prototype,"isInlinePreviewDisabled",void 0);
_.c([_.v({reflectToAttribute:!0,value:function(){return _.RX("START_IN_FULL_WINDOW_MODE")}}),
_.h("design:type",Boolean)],E_.prototype,"mastheadHidden",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],E_.prototype,"playerFullscreen",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],E_.prototype,"deprecateFullerscreenUi",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],E_.prototype,"fullscreen",void 0);_.c([_.v({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],E_.prototype,"hideHeaderShadow",void 0);
_.c([_.v({value:{GUIDE_ALT_LABEL:_.ID("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.h("design:type",Object)],E_.prototype,"menuStrings",void 0);_.c([_.v({computed:"computeTopbarData(data)"}),_.h("design:type",Object)],E_.prototype,"topbarData",void 0);_.c([_.v({selector:_.ZV}),_.h("design:type",Boolean)],E_.prototype,"isWatchPage",void 0);_.c([_.v({selector:_.nPH,reflectToAttribute:!0}),_.h("design:type",Boolean)],E_.prototype,"isShortsPage",void 0);
_.c([_.v({selector:function(q){return q.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.h("design:type",Boolean)],E_.prototype,"isMiniAppPage",void 0);_.c([_.v({selector:function(q){return q.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.h("design:type",Boolean)],E_.prototype,"isBrowsePage",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Boolean)],E_.prototype,"scrolling",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],E_.prototype,"hasDelegation",void 0);_.c([_.v({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],E_.prototype,"guideScrolledByTouch",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],E_.prototype,"darkerDarkTheme",void 0);
_.c([_.v(),_.h("design:type",Object)],E_.prototype,"isFrostedGlassInitialized",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],E_.prototype,"frostedGlassExp",void 0);_.c([_.v({selector:function(q){return q.ui.chipBarIsSticky}}),
_.h("design:type",Boolean)],E_.prototype,"chipBarIsSticky",void 0);_.c([_.v({computed:"computeIsHomePage(isBrowsePage, data)"}),_.h("design:type",Boolean)],E_.prototype,"isHomePage",void 0);_.c([_.v({reflectToAttribute:!0}),_.h("design:type",Object)],E_.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.c([_.v(),_.h("design:type",Object)],E_.prototype,"ephemeralActionsEnabled",void 0);_.c([_.l2("guide"),_.h("design:type",Object)],E_.prototype,"guide",void 0);
_.c([_.l2("guide-service"),_.h("design:type",pdA)],E_.prototype,"guideService",void 0);_.c([_.l2("guide-inner-content"),_.h("design:type",HTMLDivElement)],E_.prototype,"guideInnerContent",void 0);_.c([_.v({selector:_.QBj}),_.h("design:type",String)],E_.prototype,"frostedGlassMode",void 0);
_.c([_.nL("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],E_.prototype,"dispatchFrostedGlassMode",null);_.c([_.v({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.h("design:type",Object)],E_.prototype,"isFrostedGlassDisabled",void 0);
_.c([_.nL("isWatchPage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],E_.prototype,"isWatchPageChanged",null);_.c([_.Z("isHomePage","chipBarIsSticky"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],E_.prototype,"applyFrostedGlassToChipBar",null);_.c([_.v(),_.h("design:type",Object)],E_.prototype,"isChannelOrPlaylistPage",void 0);
_.c([_.I9("isInlinePreviewEnabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],E_.prototype,"isInlinePreviewEnabledChanged",null);_.c([_.nL("guideIsVisibleButNotPersistent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],E_.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.c([_.nL("guidePersistentAndVisible","miniGuideVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],E_.prototype,"observeGuideVisibility",null);_.c([_.Gm("attached"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],E_.prototype,"onYtPageManagerAttached",null);_.c([_.nL("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],E_.prototype,"updateMastheadData",null);
_.c([_.Gm("yt-set-theater-mode-enabled"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],E_.prototype,"onSetTheaterModeEnabled",null);_.c([_.Gm("yt-page-type-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],E_.prototype,"onPageChanged",null);_.c([_.Gm("yt-page-data-updated"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],E_.prototype,"onPageDataUpdated",null);
_.c([_.Gm("yt-request-panel-mode-change"),_.h("design:type",Function),_.h("design:paramtypes",[Event,Object]),_.h("design:returntype")],E_.prototype,"onRequestPanelModeChange",null);_.c([_.Gm("yt-guide-hover"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],E_.prototype,"onGuideOpenButtonHover",null);_.c([_.Gm("app-drawer-transitioned"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],E_.prototype,"onDrawerIronSelect",null);
_.c([_.Gm("yt-add-element-to-app"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],E_.prototype,"onAddElementToApp",null);_.c([_.Gm("yt-set-fullerscreen-styles"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],E_.prototype,"setFullscreen",null);_.c([_.Gm("yt-open-hotkey-dialog"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],E_.prototype,"onOpenHotkeyDialog",null);
E_=_.c([_.E({is:"ytd-app"})],E_);_.DU().processSignal("eor");
_.pY();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
